@orq-ai/node 4.3.2 → 4.4.0-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (482) hide show
  1. package/examples/package-lock.json +4 -7
  2. package/jsr.json +1 -1
  3. package/lib/config.d.ts +2 -2
  4. package/lib/config.js +2 -2
  5. package/lib/config.js.map +1 -1
  6. package/models/components/conversationresponse.js +1 -1
  7. package/models/components/conversationwithmessagesresponse.js +1 -1
  8. package/models/components/partdoneevent.js +1 -1
  9. package/models/components/reasoningpart.js +1 -1
  10. package/models/operations/createcontact.js +1 -1
  11. package/models/operations/createconversation.js +1 -1
  12. package/models/operations/createconversationresponse.js +2 -2
  13. package/models/operations/createdataset.js +1 -1
  14. package/models/operations/createdatasetitem.js +4 -4
  15. package/models/operations/createdatasource.js +1 -1
  16. package/models/operations/createeval.js +14 -14
  17. package/models/operations/createidentity.js +1 -1
  18. package/models/operations/createtool.js +6 -6
  19. package/models/operations/fileget.js +1 -1
  20. package/models/operations/filelist.js +1 -1
  21. package/models/operations/fileupload.js +1 -1
  22. package/models/operations/generateconversationname.js +1 -1
  23. package/models/operations/getalltools.js +6 -6
  24. package/models/operations/getevals.js +14 -14
  25. package/models/operations/listdatasetdatapoints.js +4 -4
  26. package/models/operations/listdatasets.js +1 -1
  27. package/models/operations/listdatasources.js +1 -1
  28. package/models/operations/listidentities.js +1 -1
  29. package/models/operations/retrievedatapoint.js +4 -4
  30. package/models/operations/retrievedataset.js +1 -1
  31. package/models/operations/retrievedatasource.js +1 -1
  32. package/models/operations/retrieveidentity.js +1 -1
  33. package/models/operations/retrievetool.js +6 -6
  34. package/models/operations/runagent.js +1 -1
  35. package/models/operations/streamrunagent.js +1 -1
  36. package/models/operations/updateconversation.js +1 -1
  37. package/models/operations/updatedatapoint.js +4 -4
  38. package/models/operations/updatedataset.js +1 -1
  39. package/models/operations/updatedatasource.js +1 -1
  40. package/models/operations/updateeval.js +14 -14
  41. package/models/operations/updateidentity.js +1 -1
  42. package/models/operations/updatetool.js +7 -7
  43. package/package.json +4 -3
  44. package/src/lib/config.ts +2 -2
  45. package/src/models/components/conversationresponse.ts +1 -1
  46. package/src/models/components/conversationwithmessagesresponse.ts +1 -1
  47. package/src/models/components/partdoneevent.ts +1 -1
  48. package/src/models/components/reasoningpart.ts +1 -1
  49. package/src/models/operations/createcontact.ts +1 -1
  50. package/src/models/operations/createconversation.ts +1 -1
  51. package/src/models/operations/createconversationresponse.ts +2 -2
  52. package/src/models/operations/createdataset.ts +1 -1
  53. package/src/models/operations/createdatasetitem.ts +4 -4
  54. package/src/models/operations/createdatasource.ts +1 -1
  55. package/src/models/operations/createeval.ts +14 -14
  56. package/src/models/operations/createidentity.ts +1 -1
  57. package/src/models/operations/createtool.ts +6 -6
  58. package/src/models/operations/fileget.ts +1 -1
  59. package/src/models/operations/filelist.ts +1 -1
  60. package/src/models/operations/fileupload.ts +1 -1
  61. package/src/models/operations/generateconversationname.ts +1 -1
  62. package/src/models/operations/getalltools.ts +6 -6
  63. package/src/models/operations/getevals.ts +14 -14
  64. package/src/models/operations/listdatasetdatapoints.ts +4 -4
  65. package/src/models/operations/listdatasets.ts +1 -1
  66. package/src/models/operations/listdatasources.ts +1 -1
  67. package/src/models/operations/listidentities.ts +1 -1
  68. package/src/models/operations/retrievedatapoint.ts +4 -4
  69. package/src/models/operations/retrievedataset.ts +1 -1
  70. package/src/models/operations/retrievedatasource.ts +1 -1
  71. package/src/models/operations/retrieveidentity.ts +1 -1
  72. package/src/models/operations/retrievetool.ts +6 -6
  73. package/src/models/operations/runagent.ts +1 -1
  74. package/src/models/operations/streamrunagent.ts +1 -1
  75. package/src/models/operations/updateconversation.ts +1 -1
  76. package/src/models/operations/updatedatapoint.ts +4 -4
  77. package/src/models/operations/updatedataset.ts +1 -1
  78. package/src/models/operations/updatedatasource.ts +1 -1
  79. package/src/models/operations/updateeval.ts +14 -14
  80. package/src/models/operations/updateidentity.ts +1 -1
  81. package/src/models/operations/updatetool.ts +7 -7
  82. package/_speakeasy/.github/action-inputs-config.json +0 -53
  83. package/_speakeasy/.github/action-security-config.json +0 -88
  84. package/packages/orq-rc/examples/contactsCreate.example.ts +0 -42
  85. package/packages/orq-rc/examples/package-lock.json +0 -610
  86. package/packages/orq-rc/examples/package.json +0 -18
  87. package/packages/orq-rc/jsr.json +0 -28
  88. package/packages/orq-rc/package-lock.json +0 -1740
  89. package/packages/orq-rc/package.json +0 -30
  90. package/packages/orq-rc/src/core.ts +0 -13
  91. package/packages/orq-rc/src/funcs/agentsCreate.ts +0 -161
  92. package/packages/orq-rc/src/funcs/agentsDelete.ts +0 -180
  93. package/packages/orq-rc/src/funcs/agentsInvoke.ts +0 -177
  94. package/packages/orq-rc/src/funcs/agentsList.ts +0 -179
  95. package/packages/orq-rc/src/funcs/agentsResponsesCreate.ts +0 -183
  96. package/packages/orq-rc/src/funcs/agentsRetrieve.ts +0 -180
  97. package/packages/orq-rc/src/funcs/agentsRun.ts +0 -162
  98. package/packages/orq-rc/src/funcs/agentsStream.ts +0 -201
  99. package/packages/orq-rc/src/funcs/agentsStreamRun.ts +0 -186
  100. package/packages/orq-rc/src/funcs/agentsUpdate.ts +0 -184
  101. package/packages/orq-rc/src/funcs/chunkingParse.ts +0 -160
  102. package/packages/orq-rc/src/funcs/contactsCreate.ts +0 -160
  103. package/packages/orq-rc/src/funcs/conversationsCreate.ts +0 -161
  104. package/packages/orq-rc/src/funcs/conversationsCreateConversationResponse.ts +0 -186
  105. package/packages/orq-rc/src/funcs/conversationsDelete.ts +0 -180
  106. package/packages/orq-rc/src/funcs/conversationsGenerateName.ts +0 -194
  107. package/packages/orq-rc/src/funcs/conversationsList.ts +0 -186
  108. package/packages/orq-rc/src/funcs/conversationsRetrieve.ts +0 -181
  109. package/packages/orq-rc/src/funcs/conversationsUpdate.ts +0 -184
  110. package/packages/orq-rc/src/funcs/datasetsClear.ts +0 -167
  111. package/packages/orq-rc/src/funcs/datasetsCreate.ts +0 -165
  112. package/packages/orq-rc/src/funcs/datasetsCreateDatapoint.ts +0 -171
  113. package/packages/orq-rc/src/funcs/datasetsDelete.ts +0 -167
  114. package/packages/orq-rc/src/funcs/datasetsDeleteDatapoint.ts +0 -182
  115. package/packages/orq-rc/src/funcs/datasetsList.ts +0 -167
  116. package/packages/orq-rc/src/funcs/datasetsListDatapoints.ts +0 -174
  117. package/packages/orq-rc/src/funcs/datasetsRetrieve.ts +0 -175
  118. package/packages/orq-rc/src/funcs/datasetsRetrieveDatapoint.ts +0 -181
  119. package/packages/orq-rc/src/funcs/datasetsUpdate.ts +0 -176
  120. package/packages/orq-rc/src/funcs/datasetsUpdateDatapoint.ts +0 -179
  121. package/packages/orq-rc/src/funcs/deploymentsGetConfig.ts +0 -168
  122. package/packages/orq-rc/src/funcs/deploymentsInvoke.ts +0 -176
  123. package/packages/orq-rc/src/funcs/deploymentsList.ts +0 -176
  124. package/packages/orq-rc/src/funcs/deploymentsMetricsCreate.ts +0 -168
  125. package/packages/orq-rc/src/funcs/deploymentsStream.ts +0 -183
  126. package/packages/orq-rc/src/funcs/evalsAll.ts +0 -173
  127. package/packages/orq-rc/src/funcs/evalsCreate.ts +0 -169
  128. package/packages/orq-rc/src/funcs/evalsDelete.ts +0 -173
  129. package/packages/orq-rc/src/funcs/evalsInvoke.ts +0 -181
  130. package/packages/orq-rc/src/funcs/evalsUpdate.ts +0 -173
  131. package/packages/orq-rc/src/funcs/evaluatorsGetV2EvaluatorsIdVersions.ts +0 -183
  132. package/packages/orq-rc/src/funcs/feedbackCreate.ts +0 -160
  133. package/packages/orq-rc/src/funcs/filesCreate.ts +0 -187
  134. package/packages/orq-rc/src/funcs/filesDelete.ts +0 -164
  135. package/packages/orq-rc/src/funcs/filesGet.ts +0 -166
  136. package/packages/orq-rc/src/funcs/filesList.ts +0 -167
  137. package/packages/orq-rc/src/funcs/identitiesCreate.ts +0 -165
  138. package/packages/orq-rc/src/funcs/identitiesDelete.ts +0 -176
  139. package/packages/orq-rc/src/funcs/identitiesList.ts +0 -170
  140. package/packages/orq-rc/src/funcs/identitiesRetrieve.ts +0 -175
  141. package/packages/orq-rc/src/funcs/identitiesUpdate.ts +0 -176
  142. package/packages/orq-rc/src/funcs/knowledgeCreate.ts +0 -158
  143. package/packages/orq-rc/src/funcs/knowledgeCreateChunks.ts +0 -171
  144. package/packages/orq-rc/src/funcs/knowledgeCreateDatasource.ts +0 -166
  145. package/packages/orq-rc/src/funcs/knowledgeDelete.ts +0 -167
  146. package/packages/orq-rc/src/funcs/knowledgeDeleteChunk.ts +0 -174
  147. package/packages/orq-rc/src/funcs/knowledgeDeleteChunks.ts +0 -170
  148. package/packages/orq-rc/src/funcs/knowledgeDeleteDatasource.ts +0 -173
  149. package/packages/orq-rc/src/funcs/knowledgeGetChunksCount.ts +0 -170
  150. package/packages/orq-rc/src/funcs/knowledgeList.ts +0 -169
  151. package/packages/orq-rc/src/funcs/knowledgeListChunks.ts +0 -178
  152. package/packages/orq-rc/src/funcs/knowledgeListChunksPaginated.ts +0 -171
  153. package/packages/orq-rc/src/funcs/knowledgeListDatasources.ts +0 -174
  154. package/packages/orq-rc/src/funcs/knowledgeRetrieve.ts +0 -166
  155. package/packages/orq-rc/src/funcs/knowledgeRetrieveChunk.ts +0 -173
  156. package/packages/orq-rc/src/funcs/knowledgeRetrieveDatasource.ts +0 -169
  157. package/packages/orq-rc/src/funcs/knowledgeSearch.ts +0 -167
  158. package/packages/orq-rc/src/funcs/knowledgeUpdate.ts +0 -164
  159. package/packages/orq-rc/src/funcs/knowledgeUpdateChunk.ts +0 -174
  160. package/packages/orq-rc/src/funcs/knowledgeUpdateDatasource.ts +0 -170
  161. package/packages/orq-rc/src/funcs/memoryStoresCreate.ts +0 -162
  162. package/packages/orq-rc/src/funcs/memoryStoresCreateDocument.ts +0 -176
  163. package/packages/orq-rc/src/funcs/memoryStoresCreateMemory.ts +0 -170
  164. package/packages/orq-rc/src/funcs/memoryStoresDelete.ts +0 -168
  165. package/packages/orq-rc/src/funcs/memoryStoresDeleteDocument.ts +0 -185
  166. package/packages/orq-rc/src/funcs/memoryStoresDeleteMemory.ts +0 -180
  167. package/packages/orq-rc/src/funcs/memoryStoresList.ts +0 -178
  168. package/packages/orq-rc/src/funcs/memoryStoresListDocuments.ts +0 -184
  169. package/packages/orq-rc/src/funcs/memoryStoresListMemories.ts +0 -177
  170. package/packages/orq-rc/src/funcs/memoryStoresRetrieve.ts +0 -177
  171. package/packages/orq-rc/src/funcs/memoryStoresRetrieveDocument.ts +0 -179
  172. package/packages/orq-rc/src/funcs/memoryStoresRetrieveMemory.ts +0 -174
  173. package/packages/orq-rc/src/funcs/memoryStoresUpdate.ts +0 -168
  174. package/packages/orq-rc/src/funcs/memoryStoresUpdateDocument.ts +0 -180
  175. package/packages/orq-rc/src/funcs/memoryStoresUpdateMemory.ts +0 -175
  176. package/packages/orq-rc/src/funcs/modelsList.ts +0 -142
  177. package/packages/orq-rc/src/funcs/promptsCreate.ts +0 -160
  178. package/packages/orq-rc/src/funcs/promptsDelete.ts +0 -173
  179. package/packages/orq-rc/src/funcs/promptsGetVersion.ts +0 -181
  180. package/packages/orq-rc/src/funcs/promptsList.ts +0 -167
  181. package/packages/orq-rc/src/funcs/promptsListVersions.ts +0 -173
  182. package/packages/orq-rc/src/funcs/promptsRetrieve.ts +0 -166
  183. package/packages/orq-rc/src/funcs/promptsUpdate.ts +0 -173
  184. package/packages/orq-rc/src/funcs/remoteconfigsRetrieve.ts +0 -161
  185. package/packages/orq-rc/src/funcs/routerAudioSpeechCreate.ts +0 -161
  186. package/packages/orq-rc/src/funcs/routerAudioTranscriptionsCreate.ts +0 -262
  187. package/packages/orq-rc/src/funcs/routerAudioTranslationsCreate.ts +0 -252
  188. package/packages/orq-rc/src/funcs/routerChatCompletionsCreate.ts +0 -168
  189. package/packages/orq-rc/src/funcs/routerCompletionsCreate.ts +0 -168
  190. package/packages/orq-rc/src/funcs/routerEmbeddingsCreate.ts +0 -161
  191. package/packages/orq-rc/src/funcs/routerImagesEditsCreate.ts +0 -222
  192. package/packages/orq-rc/src/funcs/routerImagesGenerationsCreate.ts +0 -160
  193. package/packages/orq-rc/src/funcs/routerImagesVariationsCreate.ts +0 -218
  194. package/packages/orq-rc/src/funcs/routerModerationsCreate.ts +0 -167
  195. package/packages/orq-rc/src/funcs/routerOcr.ts +0 -158
  196. package/packages/orq-rc/src/funcs/routerRerankCreate.ts +0 -160
  197. package/packages/orq-rc/src/funcs/routerResponsesCreate.ts +0 -167
  198. package/packages/orq-rc/src/funcs/toolsCreate.ts +0 -163
  199. package/packages/orq-rc/src/funcs/toolsDelete.ts +0 -167
  200. package/packages/orq-rc/src/funcs/toolsGetV2ToolsToolIdVersions.ts +0 -183
  201. package/packages/orq-rc/src/funcs/toolsGetV2ToolsToolIdVersionsVersionId.ts +0 -190
  202. package/packages/orq-rc/src/funcs/toolsList.ts +0 -176
  203. package/packages/orq-rc/src/funcs/toolsRetrieve.ts +0 -166
  204. package/packages/orq-rc/src/funcs/toolsUpdate.ts +0 -176
  205. package/packages/orq-rc/src/hooks/global.ts +0 -44
  206. package/packages/orq-rc/src/hooks/hooks.ts +0 -132
  207. package/packages/orq-rc/src/hooks/index.ts +0 -6
  208. package/packages/orq-rc/src/hooks/registration.ts +0 -15
  209. package/packages/orq-rc/src/hooks/types.ts +0 -112
  210. package/packages/orq-rc/src/index.ts +0 -9
  211. package/packages/orq-rc/src/lib/base64.ts +0 -37
  212. package/packages/orq-rc/src/lib/config.ts +0 -74
  213. package/packages/orq-rc/src/lib/dlv.ts +0 -53
  214. package/packages/orq-rc/src/lib/encodings.ts +0 -497
  215. package/packages/orq-rc/src/lib/env.ts +0 -89
  216. package/packages/orq-rc/src/lib/event-streams.ts +0 -152
  217. package/packages/orq-rc/src/lib/files.ts +0 -82
  218. package/packages/orq-rc/src/lib/http.ts +0 -323
  219. package/packages/orq-rc/src/lib/is-plain-object.ts +0 -43
  220. package/packages/orq-rc/src/lib/logger.ts +0 -9
  221. package/packages/orq-rc/src/lib/matchers.ts +0 -345
  222. package/packages/orq-rc/src/lib/primitives.ts +0 -150
  223. package/packages/orq-rc/src/lib/retries.ts +0 -218
  224. package/packages/orq-rc/src/lib/schemas.ts +0 -91
  225. package/packages/orq-rc/src/lib/sdks.ts +0 -407
  226. package/packages/orq-rc/src/lib/security.ts +0 -264
  227. package/packages/orq-rc/src/lib/url.ts +0 -33
  228. package/packages/orq-rc/src/models/components/actionreviewedstreamingevent.ts +0 -99
  229. package/packages/orq-rc/src/models/components/actionreviewrequestedstreamingevent.ts +0 -185
  230. package/packages/orq-rc/src/models/components/agenterroredstreamingevent.ts +0 -73
  231. package/packages/orq-rc/src/models/components/agentexecutionstartedstreamingevent.ts +0 -91
  232. package/packages/orq-rc/src/models/components/agenthandedoffstreamingevent.ts +0 -71
  233. package/packages/orq-rc/src/models/components/agentinactivestreamingevent.ts +0 -507
  234. package/packages/orq-rc/src/models/components/agentmessagecreatedstreamingevent.ts +0 -165
  235. package/packages/orq-rc/src/models/components/agentresponsemessage.ts +0 -103
  236. package/packages/orq-rc/src/models/components/agentstartedstreamingevent.ts +0 -503
  237. package/packages/orq-rc/src/models/components/agentthoughtstreamingevent.ts +0 -807
  238. package/packages/orq-rc/src/models/components/audiocontentpartschema.ts +0 -136
  239. package/packages/orq-rc/src/models/components/conversationresponse.ts +0 -132
  240. package/packages/orq-rc/src/models/components/conversationwithmessagesresponse.ts +0 -149
  241. package/packages/orq-rc/src/models/components/createagentresponse.ts +0 -299
  242. package/packages/orq-rc/src/models/components/datapart.ts +0 -38
  243. package/packages/orq-rc/src/models/components/errorpart.ts +0 -58
  244. package/packages/orq-rc/src/models/components/errorstreamingevent.ts +0 -66
  245. package/packages/orq-rc/src/models/components/executionnamedstreamingevent.ts +0 -71
  246. package/packages/orq-rc/src/models/components/executionreviewedstreamingevent.ts +0 -61
  247. package/packages/orq-rc/src/models/components/executionreviewrequiredstreamingevent.ts +0 -67
  248. package/packages/orq-rc/src/models/components/filecontentpartschema.ts +0 -87
  249. package/packages/orq-rc/src/models/components/filepart.ts +0 -218
  250. package/packages/orq-rc/src/models/components/imagecontentpartschema.ts +0 -268
  251. package/packages/orq-rc/src/models/components/index.ts +0 -60
  252. package/packages/orq-rc/src/models/components/invokedeploymentrequest.ts +0 -3457
  253. package/packages/orq-rc/src/models/components/messageresponse.ts +0 -127
  254. package/packages/orq-rc/src/models/components/partdelta.ts +0 -39
  255. package/packages/orq-rc/src/models/components/partdeltaevent.ts +0 -73
  256. package/packages/orq-rc/src/models/components/partdoneevent.ts +0 -139
  257. package/packages/orq-rc/src/models/components/publiccontact.ts +0 -71
  258. package/packages/orq-rc/src/models/components/publicidentity.ts +0 -69
  259. package/packages/orq-rc/src/models/components/reasoningpart.ts +0 -62
  260. package/packages/orq-rc/src/models/components/reasoningpartschema.ts +0 -71
  261. package/packages/orq-rc/src/models/components/redactedreasoningpartschema.ts +0 -66
  262. package/packages/orq-rc/src/models/components/refusalpartschema.ts +0 -64
  263. package/packages/orq-rc/src/models/components/responsedoneevent.ts +0 -318
  264. package/packages/orq-rc/src/models/components/responsefailedevent.ts +0 -72
  265. package/packages/orq-rc/src/models/components/responsestartedevent.ts +0 -91
  266. package/packages/orq-rc/src/models/components/responsestreamingevent.ts +0 -85
  267. package/packages/orq-rc/src/models/components/reviewoutcome.ts +0 -23
  268. package/packages/orq-rc/src/models/components/security.ts +0 -32
  269. package/packages/orq-rc/src/models/components/textcontentpartschema.ts +0 -207
  270. package/packages/orq-rc/src/models/components/textpart.ts +0 -54
  271. package/packages/orq-rc/src/models/components/thinkingconfigdisabledschema.ts +0 -59
  272. package/packages/orq-rc/src/models/components/thinkingconfigenabledschema.ts +0 -106
  273. package/packages/orq-rc/src/models/components/timeoutstreamingevent.ts +0 -64
  274. package/packages/orq-rc/src/models/components/toolcallpart.ts +0 -51
  275. package/packages/orq-rc/src/models/components/tooldoneevent.ts +0 -77
  276. package/packages/orq-rc/src/models/components/toolexecutionfailedstreamingevent.ts +0 -230
  277. package/packages/orq-rc/src/models/components/toolexecutionfinishedstreamingevent.ts +0 -214
  278. package/packages/orq-rc/src/models/components/toolexecutionstartedstreamingevent.ts +0 -200
  279. package/packages/orq-rc/src/models/components/toolfailedevent.ts +0 -77
  280. package/packages/orq-rc/src/models/components/toolresultpart.ts +0 -71
  281. package/packages/orq-rc/src/models/components/toolreviewdoneevent.ts +0 -78
  282. package/packages/orq-rc/src/models/components/toolreviewrequestedevent.ts +0 -87
  283. package/packages/orq-rc/src/models/components/toolstartedevent.ts +0 -82
  284. package/packages/orq-rc/src/models/components/usermessagerequest.ts +0 -136
  285. package/packages/orq-rc/src/models/errors/apierror.ts +0 -40
  286. package/packages/orq-rc/src/models/errors/createeval.ts +0 -51
  287. package/packages/orq-rc/src/models/errors/createmoderation.ts +0 -84
  288. package/packages/orq-rc/src/models/errors/createtranscription.ts +0 -87
  289. package/packages/orq-rc/src/models/errors/createtranslation.ts +0 -87
  290. package/packages/orq-rc/src/models/errors/deleteagent.ts +0 -51
  291. package/packages/orq-rc/src/models/errors/deleteconversation.ts +0 -51
  292. package/packages/orq-rc/src/models/errors/deleteeval.ts +0 -51
  293. package/packages/orq-rc/src/models/errors/deleteidentity.ts +0 -62
  294. package/packages/orq-rc/src/models/errors/deleteprompt.ts +0 -51
  295. package/packages/orq-rc/src/models/errors/generateconversationname.ts +0 -99
  296. package/packages/orq-rc/src/models/errors/getevals.ts +0 -51
  297. package/packages/orq-rc/src/models/errors/getpromptversion.ts +0 -51
  298. package/packages/orq-rc/src/models/errors/getv2evaluatorsidversions.ts +0 -51
  299. package/packages/orq-rc/src/models/errors/getv2toolstoolidversions.ts +0 -51
  300. package/packages/orq-rc/src/models/errors/getv2toolstoolidversionsversionid.ts +0 -52
  301. package/packages/orq-rc/src/models/errors/honoapierror.ts +0 -59
  302. package/packages/orq-rc/src/models/errors/httpclienterrors.ts +0 -62
  303. package/packages/orq-rc/src/models/errors/index.ts +0 -37
  304. package/packages/orq-rc/src/models/errors/invokeeval.ts +0 -141
  305. package/packages/orq-rc/src/models/errors/orqerror.ts +0 -35
  306. package/packages/orq-rc/src/models/errors/responsevalidationerror.ts +0 -50
  307. package/packages/orq-rc/src/models/errors/retrieveagentrequest.ts +0 -51
  308. package/packages/orq-rc/src/models/errors/retrieveconversation.ts +0 -51
  309. package/packages/orq-rc/src/models/errors/retrieveidentity.ts +0 -62
  310. package/packages/orq-rc/src/models/errors/sdkvalidationerror.ts +0 -109
  311. package/packages/orq-rc/src/models/errors/streamagent.ts +0 -51
  312. package/packages/orq-rc/src/models/errors/streamrunagent.ts +0 -51
  313. package/packages/orq-rc/src/models/errors/updateagent.ts +0 -51
  314. package/packages/orq-rc/src/models/errors/updateconversation.ts +0 -51
  315. package/packages/orq-rc/src/models/errors/updateeval.ts +0 -51
  316. package/packages/orq-rc/src/models/errors/updateidentity.ts +0 -54
  317. package/packages/orq-rc/src/models/errors/updateprompt.ts +0 -51
  318. package/packages/orq-rc/src/models/errors/updatetool.ts +0 -62
  319. package/packages/orq-rc/src/models/operations/cleardataset.ts +0 -39
  320. package/packages/orq-rc/src/models/operations/createagentrequest.ts +0 -7093
  321. package/packages/orq-rc/src/models/operations/createagentresponserequest.ts +0 -609
  322. package/packages/orq-rc/src/models/operations/createchatcompletion.ts +0 -6381
  323. package/packages/orq-rc/src/models/operations/createchunk.ts +0 -222
  324. package/packages/orq-rc/src/models/operations/createcompletion.ts +0 -3413
  325. package/packages/orq-rc/src/models/operations/createcontact.ts +0 -156
  326. package/packages/orq-rc/src/models/operations/createconversation.ts +0 -227
  327. package/packages/orq-rc/src/models/operations/createconversationresponse.ts +0 -498
  328. package/packages/orq-rc/src/models/operations/createdataset.ts +0 -162
  329. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +0 -2551
  330. package/packages/orq-rc/src/models/operations/createdatasource.ts +0 -437
  331. package/packages/orq-rc/src/models/operations/createembedding.ts +0 -947
  332. package/packages/orq-rc/src/models/operations/createeval.ts +0 -3128
  333. package/packages/orq-rc/src/models/operations/createfeedback.ts +0 -144
  334. package/packages/orq-rc/src/models/operations/createidentity.ts +0 -162
  335. package/packages/orq-rc/src/models/operations/createimage.ts +0 -1028
  336. package/packages/orq-rc/src/models/operations/createimageedit.ts +0 -1045
  337. package/packages/orq-rc/src/models/operations/createimagevariation.ts +0 -1067
  338. package/packages/orq-rc/src/models/operations/createknowledge.ts +0 -944
  339. package/packages/orq-rc/src/models/operations/creatememory.ts +0 -142
  340. package/packages/orq-rc/src/models/operations/creatememorydocument.ts +0 -152
  341. package/packages/orq-rc/src/models/operations/creatememorystore.ts +0 -199
  342. package/packages/orq-rc/src/models/operations/createmoderation.ts +0 -664
  343. package/packages/orq-rc/src/models/operations/createprompt.ts +0 -5400
  344. package/packages/orq-rc/src/models/operations/creatererank.ts +0 -890
  345. package/packages/orq-rc/src/models/operations/createresponse.ts +0 -3294
  346. package/packages/orq-rc/src/models/operations/createspeech.ts +0 -700
  347. package/packages/orq-rc/src/models/operations/createtool.ts +0 -2499
  348. package/packages/orq-rc/src/models/operations/createtranscription.ts +0 -955
  349. package/packages/orq-rc/src/models/operations/createtranslation.ts +0 -930
  350. package/packages/orq-rc/src/models/operations/deleteagent.ts +0 -39
  351. package/packages/orq-rc/src/models/operations/deletechunk.ts +0 -53
  352. package/packages/orq-rc/src/models/operations/deletechunks.ts +0 -125
  353. package/packages/orq-rc/src/models/operations/deleteconversation.ts +0 -39
  354. package/packages/orq-rc/src/models/operations/deletedatapoint.ts +0 -46
  355. package/packages/orq-rc/src/models/operations/deletedataset.ts +0 -39
  356. package/packages/orq-rc/src/models/operations/deletedatasource.ts +0 -46
  357. package/packages/orq-rc/src/models/operations/deleteeval.ts +0 -31
  358. package/packages/orq-rc/src/models/operations/deleteidentity.ts +0 -34
  359. package/packages/orq-rc/src/models/operations/deleteknowledge.ts +0 -39
  360. package/packages/orq-rc/src/models/operations/deletememory.ts +0 -46
  361. package/packages/orq-rc/src/models/operations/deletememorydocument.ts +0 -55
  362. package/packages/orq-rc/src/models/operations/deletememorystore.ts +0 -39
  363. package/packages/orq-rc/src/models/operations/deleteprompt.ts +0 -34
  364. package/packages/orq-rc/src/models/operations/deletetool.ts +0 -36
  365. package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +0 -2370
  366. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +0 -4525
  367. package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +0 -689
  368. package/packages/orq-rc/src/models/operations/deployments.ts +0 -1267
  369. package/packages/orq-rc/src/models/operations/deploymentstream.ts +0 -4613
  370. package/packages/orq-rc/src/models/operations/filedelete.ts +0 -39
  371. package/packages/orq-rc/src/models/operations/fileget.ts +0 -116
  372. package/packages/orq-rc/src/models/operations/filelist.ts +0 -172
  373. package/packages/orq-rc/src/models/operations/fileupload.ts +0 -170
  374. package/packages/orq-rc/src/models/operations/generateconversationname.ts +0 -207
  375. package/packages/orq-rc/src/models/operations/getallmemories.ts +0 -173
  376. package/packages/orq-rc/src/models/operations/getallmemorydocuments.ts +0 -188
  377. package/packages/orq-rc/src/models/operations/getallmemorystores.ts +0 -200
  378. package/packages/orq-rc/src/models/operations/getallprompts.ts +0 -3163
  379. package/packages/orq-rc/src/models/operations/getalltools.ts +0 -1398
  380. package/packages/orq-rc/src/models/operations/getchunkscount.ts +0 -121
  381. package/packages/orq-rc/src/models/operations/getevals.ts +0 -2330
  382. package/packages/orq-rc/src/models/operations/getonechunk.ts +0 -171
  383. package/packages/orq-rc/src/models/operations/getoneknowledge.ts +0 -652
  384. package/packages/orq-rc/src/models/operations/getoneprompt.ts +0 -3088
  385. package/packages/orq-rc/src/models/operations/getpromptversion.ts +0 -3133
  386. package/packages/orq-rc/src/models/operations/getv2evaluatorsidversions.ts +0 -162
  387. package/packages/orq-rc/src/models/operations/getv2toolstoolidversions.ts +0 -163
  388. package/packages/orq-rc/src/models/operations/getv2toolstoolidversionsversionid.ts +0 -110
  389. package/packages/orq-rc/src/models/operations/index.ts +0 -118
  390. package/packages/orq-rc/src/models/operations/invokeagent.ts +0 -733
  391. package/packages/orq-rc/src/models/operations/invokeeval.ts +0 -1129
  392. package/packages/orq-rc/src/models/operations/listagents.ts +0 -3018
  393. package/packages/orq-rc/src/models/operations/listchunks.ts +0 -260
  394. package/packages/orq-rc/src/models/operations/listchunkspaginated.ts +0 -263
  395. package/packages/orq-rc/src/models/operations/listconversations.ts +0 -104
  396. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +0 -1498
  397. package/packages/orq-rc/src/models/operations/listdatasets.ts +0 -205
  398. package/packages/orq-rc/src/models/operations/listdatasources.ts +0 -235
  399. package/packages/orq-rc/src/models/operations/listidentities.ts +0 -275
  400. package/packages/orq-rc/src/models/operations/listknowledgebases.ts +0 -642
  401. package/packages/orq-rc/src/models/operations/listmodels.ts +0 -143
  402. package/packages/orq-rc/src/models/operations/listpromptversions.ts +0 -3208
  403. package/packages/orq-rc/src/models/operations/parse.ts +0 -777
  404. package/packages/orq-rc/src/models/operations/postv2routerocr.ts +0 -478
  405. package/packages/orq-rc/src/models/operations/remoteconfigsgetconfig.ts +0 -108
  406. package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +0 -3104
  407. package/packages/orq-rc/src/models/operations/retrieveconversation.ts +0 -41
  408. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +0 -1402
  409. package/packages/orq-rc/src/models/operations/retrievedataset.ts +0 -150
  410. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +0 -152
  411. package/packages/orq-rc/src/models/operations/retrieveidentity.ts +0 -117
  412. package/packages/orq-rc/src/models/operations/retrievememory.ts +0 -112
  413. package/packages/orq-rc/src/models/operations/retrievememorydocument.ts +0 -118
  414. package/packages/orq-rc/src/models/operations/retrievememorystore.ts +0 -144
  415. package/packages/orq-rc/src/models/operations/retrievetool.ts +0 -1379
  416. package/packages/orq-rc/src/models/operations/runagent.ts +0 -5351
  417. package/packages/orq-rc/src/models/operations/searchknowledge.ts +0 -1762
  418. package/packages/orq-rc/src/models/operations/streamagent.ts +0 -629
  419. package/packages/orq-rc/src/models/operations/streamrunagent.ts +0 -5546
  420. package/packages/orq-rc/src/models/operations/updateagent.ts +0 -7447
  421. package/packages/orq-rc/src/models/operations/updatechunk.ts +0 -236
  422. package/packages/orq-rc/src/models/operations/updateconversation.ts +0 -252
  423. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +0 -2555
  424. package/packages/orq-rc/src/models/operations/updatedataset.ts +0 -206
  425. package/packages/orq-rc/src/models/operations/updatedatasource.ts +0 -186
  426. package/packages/orq-rc/src/models/operations/updateeval.ts +0 -3303
  427. package/packages/orq-rc/src/models/operations/updateidentity.ts +0 -189
  428. package/packages/orq-rc/src/models/operations/updateknowledge.ts +0 -1231
  429. package/packages/orq-rc/src/models/operations/updatememory.ts +0 -142
  430. package/packages/orq-rc/src/models/operations/updatememorydocument.ts +0 -159
  431. package/packages/orq-rc/src/models/operations/updatememorystore.ts +0 -245
  432. package/packages/orq-rc/src/models/operations/updateprompt.ts +0 -5471
  433. package/packages/orq-rc/src/models/operations/updatetool.ts +0 -2696
  434. package/packages/orq-rc/src/sdk/agents.ts +0 -196
  435. package/packages/orq-rc/src/sdk/audio.ts +0 -25
  436. package/packages/orq-rc/src/sdk/chat.ts +0 -13
  437. package/packages/orq-rc/src/sdk/chunking.ts +0 -27
  438. package/packages/orq-rc/src/sdk/completions.ts +0 -32
  439. package/packages/orq-rc/src/sdk/contacts.ts +0 -27
  440. package/packages/orq-rc/src/sdk/conversations.ts +0 -147
  441. package/packages/orq-rc/src/sdk/datasets.ts +0 -204
  442. package/packages/orq-rc/src/sdk/deployments.ts +0 -89
  443. package/packages/orq-rc/src/sdk/edits.ts +0 -27
  444. package/packages/orq-rc/src/sdk/embeddings.ts +0 -27
  445. package/packages/orq-rc/src/sdk/evals.ts +0 -84
  446. package/packages/orq-rc/src/sdk/evaluators.ts +0 -27
  447. package/packages/orq-rc/src/sdk/feedback.ts +0 -27
  448. package/packages/orq-rc/src/sdk/files.ts +0 -78
  449. package/packages/orq-rc/src/sdk/generations.ts +0 -27
  450. package/packages/orq-rc/src/sdk/identities.ts +0 -99
  451. package/packages/orq-rc/src/sdk/images.ts +0 -25
  452. package/packages/orq-rc/src/sdk/index.ts +0 -5
  453. package/packages/orq-rc/src/sdk/internal.ts +0 -28
  454. package/packages/orq-rc/src/sdk/knowledge.ts +0 -309
  455. package/packages/orq-rc/src/sdk/memorystores.ts +0 -286
  456. package/packages/orq-rc/src/sdk/metrics.ts +0 -27
  457. package/packages/orq-rc/src/sdk/models.ts +0 -25
  458. package/packages/orq-rc/src/sdk/moderations.ts +0 -24
  459. package/packages/orq-rc/src/sdk/orqcompletions.ts +0 -32
  460. package/packages/orq-rc/src/sdk/orqresponses.ts +0 -32
  461. package/packages/orq-rc/src/sdk/prompts.ts +0 -126
  462. package/packages/orq-rc/src/sdk/remoteconfigs.ts +0 -24
  463. package/packages/orq-rc/src/sdk/rerank.ts +0 -27
  464. package/packages/orq-rc/src/sdk/responses.ts +0 -34
  465. package/packages/orq-rc/src/sdk/router.ts +0 -72
  466. package/packages/orq-rc/src/sdk/sdk.ts +0 -121
  467. package/packages/orq-rc/src/sdk/speech.ts +0 -27
  468. package/packages/orq-rc/src/sdk/tools.ts +0 -135
  469. package/packages/orq-rc/src/sdk/transcriptions.ts +0 -24
  470. package/packages/orq-rc/src/sdk/translations.ts +0 -24
  471. package/packages/orq-rc/src/sdk/variations.ts +0 -27
  472. package/packages/orq-rc/src/types/async.ts +0 -68
  473. package/packages/orq-rc/src/types/blobs.ts +0 -32
  474. package/packages/orq-rc/src/types/constdatetime.ts +0 -15
  475. package/packages/orq-rc/src/types/enums.ts +0 -45
  476. package/packages/orq-rc/src/types/fp.ts +0 -50
  477. package/packages/orq-rc/src/types/index.ts +0 -11
  478. package/packages/orq-rc/src/types/operations.ts +0 -105
  479. package/packages/orq-rc/src/types/rfcdate.ts +0 -54
  480. package/packages/orq-rc/src/types/streams.ts +0 -21
  481. package/packages/orq-rc/src/types/unrecognized.ts +0 -35
  482. package/packages/orq-rc/tsconfig.json +0 -40
@@ -1,1398 +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 {
8
- collectExtraKeys as collectExtraKeys$,
9
- safeParse,
10
- } from "../../lib/schemas.js";
11
- import { ClosedEnum } from "../../types/enums.js";
12
- import { Result as SafeParseResult } from "../../types/fp.js";
13
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
14
-
15
- export type GetAllToolsRequest = {
16
- /**
17
- * Maximum number of tools per page (1-200). Omit to return all tools.
18
- */
19
- limit?: number | undefined;
20
- /**
21
- * A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 20 objects, ending with `01JJ1HDHN79XAS7A01WB3HYSDB`, your subsequent call can include `after=01JJ1HDHN79XAS7A01WB3HYSDB` in order to fetch the next page of the list.
22
- */
23
- startingAfter?: string | undefined;
24
- /**
25
- * A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 20 objects, starting with `01JJ1HDHN79XAS7A01WB3HYSDB`, your subsequent call can include `before=01JJ1HDHN79XAS7A01WB3HYSDB` in order to fetch the previous page of the list.
26
- */
27
- endingBefore?: string | undefined;
28
- };
29
-
30
- export const GetAllToolsObject = {
31
- List: "list",
32
- } as const;
33
- export type GetAllToolsObject = ClosedEnum<typeof GetAllToolsObject>;
34
-
35
- /**
36
- * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
37
- */
38
- export const GetAllToolsDataToolsResponse200Status = {
39
- Live: "live",
40
- Draft: "draft",
41
- Pending: "pending",
42
- Published: "published",
43
- } as const;
44
- /**
45
- * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
46
- */
47
- export type GetAllToolsDataToolsResponse200Status = ClosedEnum<
48
- typeof GetAllToolsDataToolsResponse200Status
49
- >;
50
-
51
- /**
52
- * The type must be "object"
53
- */
54
- export const GetAllToolsDataToolsResponse200ApplicationJSONResponseBody5Type = {
55
- Object: "object",
56
- } as const;
57
- /**
58
- * The type must be "object"
59
- */
60
- export type GetAllToolsDataToolsResponse200ApplicationJSONResponseBody5Type =
61
- ClosedEnum<
62
- typeof GetAllToolsDataToolsResponse200ApplicationJSONResponseBody5Type
63
- >;
64
-
65
- /**
66
- * The parameters the functions accepts, described as a JSON Schema object. See the `OpenAI` [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
67
- */
68
- export type GetAllToolsDataParameters = {
69
- /**
70
- * The type must be "object"
71
- */
72
- type: GetAllToolsDataToolsResponse200ApplicationJSONResponseBody5Type;
73
- /**
74
- * The properties of the function parameters
75
- */
76
- properties: { [k: string]: any };
77
- /**
78
- * Array of required parameter names
79
- */
80
- required: Array<string>;
81
- additionalProperties?: { [k: string]: any } | undefined;
82
- };
83
-
84
- export const DataLanguage = {
85
- Python: "python",
86
- } as const;
87
- export type DataLanguage = ClosedEnum<typeof DataLanguage>;
88
-
89
- export type DataCodeTool = {
90
- /**
91
- * The parameters the functions accepts, described as a JSON Schema object. See the `OpenAI` [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
92
- */
93
- parameters?: GetAllToolsDataParameters | undefined;
94
- language: DataLanguage;
95
- /**
96
- * The code to execute.
97
- */
98
- code: string;
99
- };
100
-
101
- /**
102
- * Executes code snippets in a sandboxed environment, currently supporting Python.
103
- */
104
- export type DataCodeExecutionTool = {
105
- id: string;
106
- /**
107
- * Entity storage path in the format: `project/folder/subfolder/...`
108
- *
109
- * @remarks
110
- *
111
- * The first element identifies the project, followed by nested folders (auto-created as needed).
112
- *
113
- * With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
114
- */
115
- path: string;
116
- /**
117
- * Unique key of the tool as it will be displayed in the UI
118
- */
119
- key: string;
120
- /**
121
- * The name of the tool as it will be displayed in the UI. This is optional and if not provided, the `key` will be used.
122
- */
123
- displayName?: string | undefined;
124
- /**
125
- * A description of the tool, used by the model to choose when and how to call the tool. We do recommend using the `description` field as accurate as possible to give enough context to the model to make the right decision.
126
- */
127
- description: string;
128
- /**
129
- * The id of the user that created the tool
130
- */
131
- createdById?: string | undefined;
132
- /**
133
- * The id of the user that last updated the tool
134
- */
135
- updatedById?: string | undefined;
136
- projectId: string;
137
- workspaceId: string;
138
- created: string;
139
- updated: string;
140
- /**
141
- * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
142
- */
143
- status: GetAllToolsDataToolsResponse200Status;
144
- versionHash?: string | undefined;
145
- type: "code";
146
- codeTool: DataCodeTool;
147
- };
148
-
149
- /**
150
- * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
151
- */
152
- export const GetAllToolsDataToolsResponseStatus = {
153
- Live: "live",
154
- Draft: "draft",
155
- Pending: "pending",
156
- Published: "published",
157
- } as const;
158
- /**
159
- * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
160
- */
161
- export type GetAllToolsDataToolsResponseStatus = ClosedEnum<
162
- typeof GetAllToolsDataToolsResponseStatus
163
- >;
164
-
165
- export type DataHeaders = {
166
- value: string;
167
- encrypted: boolean;
168
- };
169
-
170
- export const GetAllToolsDataToolsResponse200ApplicationJSONResponseBody4Type = {
171
- Object: "object",
172
- } as const;
173
- export type GetAllToolsDataToolsResponse200ApplicationJSONResponseBody4Type =
174
- ClosedEnum<
175
- typeof GetAllToolsDataToolsResponse200ApplicationJSONResponseBody4Type
176
- >;
177
-
178
- export type GetAllToolsDataSchema = {
179
- type: GetAllToolsDataToolsResponse200ApplicationJSONResponseBody4Type;
180
- properties?: { [k: string]: any } | undefined;
181
- required?: Array<string> | undefined;
182
- };
183
-
184
- export type DataTools = {
185
- id: string;
186
- name: string;
187
- description?: string | undefined;
188
- schema: GetAllToolsDataSchema;
189
- };
190
-
191
- /**
192
- * The connection type used by the MCP server
193
- */
194
- export const DataConnectionType = {
195
- Http: "http",
196
- Sse: "sse",
197
- } as const;
198
- /**
199
- * The connection type used by the MCP server
200
- */
201
- export type DataConnectionType = ClosedEnum<typeof DataConnectionType>;
202
-
203
- export type DataMcp = {
204
- /**
205
- * The MCP server URL (cached for execution)
206
- */
207
- serverUrl: string;
208
- /**
209
- * HTTP headers for MCP server requests with encryption support
210
- */
211
- headers?: { [k: string]: DataHeaders } | undefined;
212
- /**
213
- * Array of tools available from the MCP server
214
- */
215
- tools: Array<DataTools>;
216
- /**
217
- * The connection type used by the MCP server
218
- */
219
- connectionType: DataConnectionType;
220
- };
221
-
222
- /**
223
- * A tool from a Model Context Protocol (MCP) server that provides standardized access to external capabilities.
224
- */
225
- export type DataMCPTool = {
226
- id: string;
227
- /**
228
- * Entity storage path in the format: `project/folder/subfolder/...`
229
- *
230
- * @remarks
231
- *
232
- * The first element identifies the project, followed by nested folders (auto-created as needed).
233
- *
234
- * With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
235
- */
236
- path: string;
237
- /**
238
- * Unique key of the tool as it will be displayed in the UI
239
- */
240
- key: string;
241
- /**
242
- * The name of the tool as it will be displayed in the UI. This is optional and if not provided, the `key` will be used.
243
- */
244
- displayName?: string | undefined;
245
- /**
246
- * A description of the tool, used by the model to choose when and how to call the tool. We do recommend using the `description` field as accurate as possible to give enough context to the model to make the right decision.
247
- */
248
- description: string;
249
- /**
250
- * The id of the user that created the tool
251
- */
252
- createdById?: string | undefined;
253
- /**
254
- * The id of the user that last updated the tool
255
- */
256
- updatedById?: string | undefined;
257
- projectId: string;
258
- workspaceId: string;
259
- created: string;
260
- updated: string;
261
- /**
262
- * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
263
- */
264
- status: GetAllToolsDataToolsResponseStatus;
265
- versionHash?: string | undefined;
266
- type: "mcp";
267
- mcp: DataMcp;
268
- };
269
-
270
- /**
271
- * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
272
- */
273
- export const GetAllToolsDataToolsStatus = {
274
- Live: "live",
275
- Draft: "draft",
276
- Pending: "pending",
277
- Published: "published",
278
- } as const;
279
- /**
280
- * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
281
- */
282
- export type GetAllToolsDataToolsStatus = ClosedEnum<
283
- typeof GetAllToolsDataToolsStatus
284
- >;
285
-
286
- /**
287
- * The HTTP method to use.
288
- */
289
- export const GetAllToolsDataMethod = {
290
- Get: "GET",
291
- Post: "POST",
292
- Put: "PUT",
293
- Delete: "DELETE",
294
- } as const;
295
- /**
296
- * The HTTP method to use.
297
- */
298
- export type GetAllToolsDataMethod = ClosedEnum<typeof GetAllToolsDataMethod>;
299
-
300
- export type GetAllToolsHeaders2 = {
301
- value: string;
302
- encrypted: boolean;
303
- };
304
-
305
- export type GetAllToolsDataHeaders = GetAllToolsHeaders2 | string;
306
-
307
- /**
308
- * The blueprint for the HTTP request. The `arguments` field will be used to replace the placeholders in the `url`, `headers`, `body`, and `arguments` fields.
309
- */
310
- export type DataBlueprint = {
311
- /**
312
- * The URL to send the request to.
313
- */
314
- url: string;
315
- /**
316
- * The HTTP method to use.
317
- */
318
- method: GetAllToolsDataMethod;
319
- /**
320
- * The headers to send with the request. Can be a string value or an object with value and encrypted properties.
321
- */
322
- headers?: { [k: string]: GetAllToolsHeaders2 | string } | undefined;
323
- /**
324
- * The body to send with the request.
325
- */
326
- body?: { [k: string]: any } | undefined;
327
- };
328
-
329
- /**
330
- * The type of the argument.
331
- */
332
- export const GetAllToolsDataToolsResponse200ApplicationJSONResponseBody3Type = {
333
- String: "string",
334
- Number: "number",
335
- Boolean: "boolean",
336
- } as const;
337
- /**
338
- * The type of the argument.
339
- */
340
- export type GetAllToolsDataToolsResponse200ApplicationJSONResponseBody3Type =
341
- ClosedEnum<
342
- typeof GetAllToolsDataToolsResponse200ApplicationJSONResponseBody3Type
343
- >;
344
-
345
- /**
346
- * The default value of the argument.
347
- */
348
- export type DataDefaultValue = string | number | boolean;
349
-
350
- export type DataArguments = {
351
- /**
352
- * The type of the argument.
353
- */
354
- type: GetAllToolsDataToolsResponse200ApplicationJSONResponseBody3Type;
355
- /**
356
- * A description of the argument.
357
- */
358
- description: string;
359
- /**
360
- * Whether to send the argument to the model. If set to false, the argument will not be sent to the model and needs to be provided by the user or it will be left blank.
361
- */
362
- sendToModel: boolean;
363
- /**
364
- * The default value of the argument.
365
- */
366
- defaultValue?: string | number | boolean | undefined;
367
- };
368
-
369
- export type GetAllToolsDataHttp = {
370
- /**
371
- * The blueprint for the HTTP request. The `arguments` field will be used to replace the placeholders in the `url`, `headers`, `body`, and `arguments` fields.
372
- */
373
- blueprint: DataBlueprint;
374
- /**
375
- * The arguments to send with the request. The keys will be used to replace the placeholders in the `blueprint` field.
376
- */
377
- arguments?: { [k: string]: DataArguments } | undefined;
378
- };
379
-
380
- /**
381
- * Executes HTTP requests to interact with external APIs and web services using customizable blueprints.
382
- */
383
- export type DataHTTPTool = {
384
- id: string;
385
- /**
386
- * Entity storage path in the format: `project/folder/subfolder/...`
387
- *
388
- * @remarks
389
- *
390
- * The first element identifies the project, followed by nested folders (auto-created as needed).
391
- *
392
- * With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
393
- */
394
- path: string;
395
- /**
396
- * Unique key of the tool as it will be displayed in the UI
397
- */
398
- key: string;
399
- /**
400
- * The name of the tool as it will be displayed in the UI. This is optional and if not provided, the `key` will be used.
401
- */
402
- displayName?: string | undefined;
403
- /**
404
- * A description of the tool, used by the model to choose when and how to call the tool. We do recommend using the `description` field as accurate as possible to give enough context to the model to make the right decision.
405
- */
406
- description: string;
407
- /**
408
- * The id of the user that created the tool
409
- */
410
- createdById?: string | undefined;
411
- /**
412
- * The id of the user that last updated the tool
413
- */
414
- updatedById?: string | undefined;
415
- projectId: string;
416
- workspaceId: string;
417
- created: string;
418
- updated: string;
419
- /**
420
- * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
421
- */
422
- status: GetAllToolsDataToolsStatus;
423
- versionHash?: string | undefined;
424
- type: "http";
425
- http: GetAllToolsDataHttp;
426
- };
427
-
428
- /**
429
- * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
430
- */
431
- export const GetAllToolsDataStatus = {
432
- Live: "live",
433
- Draft: "draft",
434
- Pending: "pending",
435
- Published: "published",
436
- } as const;
437
- /**
438
- * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
439
- */
440
- export type GetAllToolsDataStatus = ClosedEnum<typeof GetAllToolsDataStatus>;
441
-
442
- /**
443
- * The schema for the response format, described as a JSON Schema object. See the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
444
- */
445
- export type DataSchema = {
446
- /**
447
- * The JSON Schema type
448
- */
449
- type: string;
450
- /**
451
- * The properties of the JSON Schema object
452
- */
453
- properties: { [k: string]: any };
454
- /**
455
- * Array of required property names
456
- */
457
- required: Array<string>;
458
- additionalProperties?: { [k: string]: any } | undefined;
459
- };
460
-
461
- export type DataJsonSchema = {
462
- /**
463
- * The name of the response format. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
464
- */
465
- name: string;
466
- /**
467
- * A description of what the response format is for. This will be shown to the user.
468
- */
469
- description: string;
470
- /**
471
- * The schema for the response format, described as a JSON Schema object. See the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
472
- */
473
- schema: DataSchema;
474
- /**
475
- * Whether to enable strict schema adherence when generating the output. If set to true, the model will always follow the exact schema defined in the `schema` field. Only a subset of JSON Schema is supported when `strict` is `true`. Only compatible with `OpenAI` models.
476
- */
477
- strict?: boolean | undefined;
478
- };
479
-
480
- /**
481
- * A tool that enforces structured output format using JSON Schema for consistent response formatting.
482
- */
483
- export type DataJSONSchemaTool = {
484
- id: string;
485
- /**
486
- * Entity storage path in the format: `project/folder/subfolder/...`
487
- *
488
- * @remarks
489
- *
490
- * The first element identifies the project, followed by nested folders (auto-created as needed).
491
- *
492
- * With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
493
- */
494
- path: string;
495
- /**
496
- * Unique key of the tool as it will be displayed in the UI
497
- */
498
- key: string;
499
- /**
500
- * The name of the tool as it will be displayed in the UI. This is optional and if not provided, the `key` will be used.
501
- */
502
- displayName?: string | undefined;
503
- /**
504
- * A description of the tool, used by the model to choose when and how to call the tool. We do recommend using the `description` field as accurate as possible to give enough context to the model to make the right decision.
505
- */
506
- description: string;
507
- /**
508
- * The id of the user that created the tool
509
- */
510
- createdById?: string | undefined;
511
- /**
512
- * The id of the user that last updated the tool
513
- */
514
- updatedById?: string | undefined;
515
- projectId: string;
516
- workspaceId: string;
517
- created: string;
518
- updated: string;
519
- /**
520
- * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
521
- */
522
- status: GetAllToolsDataStatus;
523
- versionHash?: string | undefined;
524
- type: "json_schema";
525
- jsonSchema: DataJsonSchema;
526
- };
527
-
528
- /**
529
- * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
530
- */
531
- export const DataStatus = {
532
- Live: "live",
533
- Draft: "draft",
534
- Pending: "pending",
535
- Published: "published",
536
- } as const;
537
- /**
538
- * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
539
- */
540
- export type DataStatus = ClosedEnum<typeof DataStatus>;
541
-
542
- /**
543
- * The type must be "object"
544
- */
545
- export const GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType = {
546
- Object: "object",
547
- } as const;
548
- /**
549
- * The type must be "object"
550
- */
551
- export type GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType =
552
- ClosedEnum<
553
- typeof GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType
554
- >;
555
-
556
- /**
557
- * The parameters the functions accepts, described as a JSON Schema object. See the `OpenAI` [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
558
- */
559
- export type DataParameters = {
560
- /**
561
- * The type must be "object"
562
- */
563
- type: GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType;
564
- /**
565
- * The properties of the function parameters
566
- */
567
- properties: { [k: string]: any };
568
- /**
569
- * Array of required parameter names
570
- */
571
- required: Array<string>;
572
- additionalProperties?: { [k: string]: any } | undefined;
573
- };
574
-
575
- export type GetAllToolsDataFunction = {
576
- /**
577
- * The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
578
- */
579
- name: string;
580
- /**
581
- * A description of what the function does, used by the model to choose when and how to call the function.
582
- */
583
- description?: string | undefined;
584
- /**
585
- * Whether to enable strict schema adherence when generating the function call. If set to true, the model will follow the exact schema defined in the `parameters` field. Only a subset of JSON Schema is supported when `strict` is `true`. Currently only compatible with `OpenAI` models.
586
- */
587
- strict?: boolean | undefined;
588
- /**
589
- * The parameters the functions accepts, described as a JSON Schema object. See the `OpenAI` [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
590
- */
591
- parameters?: DataParameters | undefined;
592
- };
593
-
594
- /**
595
- * A custom function tool that allows the model to call predefined functions with structured parameters.
596
- */
597
- export type DataFunctionTool = {
598
- id: string;
599
- /**
600
- * Entity storage path in the format: `project/folder/subfolder/...`
601
- *
602
- * @remarks
603
- *
604
- * The first element identifies the project, followed by nested folders (auto-created as needed).
605
- *
606
- * With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
607
- */
608
- path: string;
609
- /**
610
- * Unique key of the tool as it will be displayed in the UI
611
- */
612
- key: string;
613
- /**
614
- * The name of the tool as it will be displayed in the UI. This is optional and if not provided, the `key` will be used.
615
- */
616
- displayName?: string | undefined;
617
- /**
618
- * A description of the tool, used by the model to choose when and how to call the tool. We do recommend using the `description` field as accurate as possible to give enough context to the model to make the right decision.
619
- */
620
- description: string;
621
- /**
622
- * The id of the user that created the tool
623
- */
624
- createdById?: string | undefined;
625
- /**
626
- * The id of the user that last updated the tool
627
- */
628
- updatedById?: string | undefined;
629
- projectId: string;
630
- workspaceId: string;
631
- created: string;
632
- updated: string;
633
- /**
634
- * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
635
- */
636
- status: DataStatus;
637
- versionHash?: string | undefined;
638
- type: "function";
639
- function: GetAllToolsDataFunction;
640
- };
641
-
642
- export type GetAllToolsData =
643
- | DataFunctionTool
644
- | DataJSONSchemaTool
645
- | DataHTTPTool
646
- | DataMCPTool
647
- | DataCodeExecutionTool;
648
-
649
- /**
650
- * Successfully retrieved the list of tools.
651
- */
652
- export type GetAllToolsResponseBody = {
653
- object: GetAllToolsObject;
654
- data: Array<
655
- | DataFunctionTool
656
- | DataJSONSchemaTool
657
- | DataHTTPTool
658
- | DataMCPTool
659
- | DataCodeExecutionTool
660
- >;
661
- hasMore: boolean;
662
- };
663
-
664
- /** @internal */
665
- export type GetAllToolsRequest$Outbound = {
666
- limit?: number | undefined;
667
- starting_after?: string | undefined;
668
- ending_before?: string | undefined;
669
- };
670
-
671
- /** @internal */
672
- export const GetAllToolsRequest$outboundSchema: z.ZodType<
673
- GetAllToolsRequest$Outbound,
674
- z.ZodTypeDef,
675
- GetAllToolsRequest
676
- > = z.object({
677
- limit: z.number().optional(),
678
- startingAfter: z.string().optional(),
679
- endingBefore: z.string().optional(),
680
- }).transform((v) => {
681
- return remap$(v, {
682
- startingAfter: "starting_after",
683
- endingBefore: "ending_before",
684
- });
685
- });
686
-
687
- export function getAllToolsRequestToJSON(
688
- getAllToolsRequest: GetAllToolsRequest,
689
- ): string {
690
- return JSON.stringify(
691
- GetAllToolsRequest$outboundSchema.parse(getAllToolsRequest),
692
- );
693
- }
694
-
695
- /** @internal */
696
- export const GetAllToolsObject$inboundSchema: z.ZodNativeEnum<
697
- typeof GetAllToolsObject
698
- > = z.nativeEnum(GetAllToolsObject);
699
-
700
- /** @internal */
701
- export const GetAllToolsDataToolsResponse200Status$inboundSchema:
702
- z.ZodNativeEnum<typeof GetAllToolsDataToolsResponse200Status> = z.nativeEnum(
703
- GetAllToolsDataToolsResponse200Status,
704
- );
705
-
706
- /** @internal */
707
- export const GetAllToolsDataToolsResponse200ApplicationJSONResponseBody5Type$inboundSchema:
708
- z.ZodNativeEnum<
709
- typeof GetAllToolsDataToolsResponse200ApplicationJSONResponseBody5Type
710
- > = z.nativeEnum(
711
- GetAllToolsDataToolsResponse200ApplicationJSONResponseBody5Type,
712
- );
713
-
714
- /** @internal */
715
- export const GetAllToolsDataParameters$inboundSchema: z.ZodType<
716
- GetAllToolsDataParameters,
717
- z.ZodTypeDef,
718
- unknown
719
- > = collectExtraKeys$(
720
- z.object({
721
- type:
722
- GetAllToolsDataToolsResponse200ApplicationJSONResponseBody5Type$inboundSchema,
723
- properties: z.record(z.any()),
724
- required: z.array(z.string()),
725
- }).catchall(z.any()),
726
- "additionalProperties",
727
- true,
728
- );
729
-
730
- export function getAllToolsDataParametersFromJSON(
731
- jsonString: string,
732
- ): SafeParseResult<GetAllToolsDataParameters, SDKValidationError> {
733
- return safeParse(
734
- jsonString,
735
- (x) => GetAllToolsDataParameters$inboundSchema.parse(JSON.parse(x)),
736
- `Failed to parse 'GetAllToolsDataParameters' from JSON`,
737
- );
738
- }
739
-
740
- /** @internal */
741
- export const DataLanguage$inboundSchema: z.ZodNativeEnum<typeof DataLanguage> =
742
- z.nativeEnum(DataLanguage);
743
-
744
- /** @internal */
745
- export const DataCodeTool$inboundSchema: z.ZodType<
746
- DataCodeTool,
747
- z.ZodTypeDef,
748
- unknown
749
- > = z.object({
750
- parameters: z.lazy(() => GetAllToolsDataParameters$inboundSchema).optional(),
751
- language: DataLanguage$inboundSchema,
752
- code: z.string(),
753
- });
754
-
755
- export function dataCodeToolFromJSON(
756
- jsonString: string,
757
- ): SafeParseResult<DataCodeTool, SDKValidationError> {
758
- return safeParse(
759
- jsonString,
760
- (x) => DataCodeTool$inboundSchema.parse(JSON.parse(x)),
761
- `Failed to parse 'DataCodeTool' from JSON`,
762
- );
763
- }
764
-
765
- /** @internal */
766
- export const DataCodeExecutionTool$inboundSchema: z.ZodType<
767
- DataCodeExecutionTool,
768
- z.ZodTypeDef,
769
- unknown
770
- > = z.object({
771
- _id: z.string().default("tool_01KHBX71CVFH0T304P96A9387Y"),
772
- path: z.string(),
773
- key: z.string(),
774
- display_name: z.string().optional(),
775
- description: z.string(),
776
- created_by_id: z.string().optional(),
777
- updated_by_id: z.string().optional(),
778
- project_id: z.string(),
779
- workspace_id: z.string(),
780
- created: z.string(),
781
- updated: z.string(),
782
- status: GetAllToolsDataToolsResponse200Status$inboundSchema.default("live"),
783
- version_hash: z.string().optional(),
784
- type: z.literal("code"),
785
- code_tool: z.lazy(() => DataCodeTool$inboundSchema),
786
- }).transform((v) => {
787
- return remap$(v, {
788
- "_id": "id",
789
- "display_name": "displayName",
790
- "created_by_id": "createdById",
791
- "updated_by_id": "updatedById",
792
- "project_id": "projectId",
793
- "workspace_id": "workspaceId",
794
- "version_hash": "versionHash",
795
- "code_tool": "codeTool",
796
- });
797
- });
798
-
799
- export function dataCodeExecutionToolFromJSON(
800
- jsonString: string,
801
- ): SafeParseResult<DataCodeExecutionTool, SDKValidationError> {
802
- return safeParse(
803
- jsonString,
804
- (x) => DataCodeExecutionTool$inboundSchema.parse(JSON.parse(x)),
805
- `Failed to parse 'DataCodeExecutionTool' from JSON`,
806
- );
807
- }
808
-
809
- /** @internal */
810
- export const GetAllToolsDataToolsResponseStatus$inboundSchema: z.ZodNativeEnum<
811
- typeof GetAllToolsDataToolsResponseStatus
812
- > = z.nativeEnum(GetAllToolsDataToolsResponseStatus);
813
-
814
- /** @internal */
815
- export const DataHeaders$inboundSchema: z.ZodType<
816
- DataHeaders,
817
- z.ZodTypeDef,
818
- unknown
819
- > = z.object({
820
- value: z.string(),
821
- encrypted: z.boolean().default(false),
822
- });
823
-
824
- export function dataHeadersFromJSON(
825
- jsonString: string,
826
- ): SafeParseResult<DataHeaders, SDKValidationError> {
827
- return safeParse(
828
- jsonString,
829
- (x) => DataHeaders$inboundSchema.parse(JSON.parse(x)),
830
- `Failed to parse 'DataHeaders' from JSON`,
831
- );
832
- }
833
-
834
- /** @internal */
835
- export const GetAllToolsDataToolsResponse200ApplicationJSONResponseBody4Type$inboundSchema:
836
- z.ZodNativeEnum<
837
- typeof GetAllToolsDataToolsResponse200ApplicationJSONResponseBody4Type
838
- > = z.nativeEnum(
839
- GetAllToolsDataToolsResponse200ApplicationJSONResponseBody4Type,
840
- );
841
-
842
- /** @internal */
843
- export const GetAllToolsDataSchema$inboundSchema: z.ZodType<
844
- GetAllToolsDataSchema,
845
- z.ZodTypeDef,
846
- unknown
847
- > = z.object({
848
- type:
849
- GetAllToolsDataToolsResponse200ApplicationJSONResponseBody4Type$inboundSchema,
850
- properties: z.record(z.any()).optional(),
851
- required: z.array(z.string()).optional(),
852
- });
853
-
854
- export function getAllToolsDataSchemaFromJSON(
855
- jsonString: string,
856
- ): SafeParseResult<GetAllToolsDataSchema, SDKValidationError> {
857
- return safeParse(
858
- jsonString,
859
- (x) => GetAllToolsDataSchema$inboundSchema.parse(JSON.parse(x)),
860
- `Failed to parse 'GetAllToolsDataSchema' from JSON`,
861
- );
862
- }
863
-
864
- /** @internal */
865
- export const DataTools$inboundSchema: z.ZodType<
866
- DataTools,
867
- z.ZodTypeDef,
868
- unknown
869
- > = z.object({
870
- id: z.string().default("01KHBX71CV4YQY6DYGP8Y7RMV5"),
871
- name: z.string(),
872
- description: z.string().optional(),
873
- schema: z.lazy(() => GetAllToolsDataSchema$inboundSchema),
874
- });
875
-
876
- export function dataToolsFromJSON(
877
- jsonString: string,
878
- ): SafeParseResult<DataTools, SDKValidationError> {
879
- return safeParse(
880
- jsonString,
881
- (x) => DataTools$inboundSchema.parse(JSON.parse(x)),
882
- `Failed to parse 'DataTools' from JSON`,
883
- );
884
- }
885
-
886
- /** @internal */
887
- export const DataConnectionType$inboundSchema: z.ZodNativeEnum<
888
- typeof DataConnectionType
889
- > = z.nativeEnum(DataConnectionType);
890
-
891
- /** @internal */
892
- export const DataMcp$inboundSchema: z.ZodType<DataMcp, z.ZodTypeDef, unknown> =
893
- z.object({
894
- server_url: z.string(),
895
- headers: z.record(z.lazy(() => DataHeaders$inboundSchema)).optional(),
896
- tools: z.array(z.lazy(() => DataTools$inboundSchema)),
897
- connection_type: DataConnectionType$inboundSchema,
898
- }).transform((v) => {
899
- return remap$(v, {
900
- "server_url": "serverUrl",
901
- "connection_type": "connectionType",
902
- });
903
- });
904
-
905
- export function dataMcpFromJSON(
906
- jsonString: string,
907
- ): SafeParseResult<DataMcp, SDKValidationError> {
908
- return safeParse(
909
- jsonString,
910
- (x) => DataMcp$inboundSchema.parse(JSON.parse(x)),
911
- `Failed to parse 'DataMcp' from JSON`,
912
- );
913
- }
914
-
915
- /** @internal */
916
- export const DataMCPTool$inboundSchema: z.ZodType<
917
- DataMCPTool,
918
- z.ZodTypeDef,
919
- unknown
920
- > = z.object({
921
- _id: z.string().default("tool_01KHBX71CS61FB62ME7148D2Y3"),
922
- path: z.string(),
923
- key: z.string(),
924
- display_name: z.string().optional(),
925
- description: z.string(),
926
- created_by_id: z.string().optional(),
927
- updated_by_id: z.string().optional(),
928
- project_id: z.string(),
929
- workspace_id: z.string(),
930
- created: z.string(),
931
- updated: z.string(),
932
- status: GetAllToolsDataToolsResponseStatus$inboundSchema.default("live"),
933
- version_hash: z.string().optional(),
934
- type: z.literal("mcp"),
935
- mcp: z.lazy(() => DataMcp$inboundSchema),
936
- }).transform((v) => {
937
- return remap$(v, {
938
- "_id": "id",
939
- "display_name": "displayName",
940
- "created_by_id": "createdById",
941
- "updated_by_id": "updatedById",
942
- "project_id": "projectId",
943
- "workspace_id": "workspaceId",
944
- "version_hash": "versionHash",
945
- });
946
- });
947
-
948
- export function dataMCPToolFromJSON(
949
- jsonString: string,
950
- ): SafeParseResult<DataMCPTool, SDKValidationError> {
951
- return safeParse(
952
- jsonString,
953
- (x) => DataMCPTool$inboundSchema.parse(JSON.parse(x)),
954
- `Failed to parse 'DataMCPTool' from JSON`,
955
- );
956
- }
957
-
958
- /** @internal */
959
- export const GetAllToolsDataToolsStatus$inboundSchema: z.ZodNativeEnum<
960
- typeof GetAllToolsDataToolsStatus
961
- > = z.nativeEnum(GetAllToolsDataToolsStatus);
962
-
963
- /** @internal */
964
- export const GetAllToolsDataMethod$inboundSchema: z.ZodNativeEnum<
965
- typeof GetAllToolsDataMethod
966
- > = z.nativeEnum(GetAllToolsDataMethod);
967
-
968
- /** @internal */
969
- export const GetAllToolsHeaders2$inboundSchema: z.ZodType<
970
- GetAllToolsHeaders2,
971
- z.ZodTypeDef,
972
- unknown
973
- > = z.object({
974
- value: z.string(),
975
- encrypted: z.boolean().default(false),
976
- });
977
-
978
- export function getAllToolsHeaders2FromJSON(
979
- jsonString: string,
980
- ): SafeParseResult<GetAllToolsHeaders2, SDKValidationError> {
981
- return safeParse(
982
- jsonString,
983
- (x) => GetAllToolsHeaders2$inboundSchema.parse(JSON.parse(x)),
984
- `Failed to parse 'GetAllToolsHeaders2' from JSON`,
985
- );
986
- }
987
-
988
- /** @internal */
989
- export const GetAllToolsDataHeaders$inboundSchema: z.ZodType<
990
- GetAllToolsDataHeaders,
991
- z.ZodTypeDef,
992
- unknown
993
- > = z.union([z.lazy(() => GetAllToolsHeaders2$inboundSchema), z.string()]);
994
-
995
- export function getAllToolsDataHeadersFromJSON(
996
- jsonString: string,
997
- ): SafeParseResult<GetAllToolsDataHeaders, SDKValidationError> {
998
- return safeParse(
999
- jsonString,
1000
- (x) => GetAllToolsDataHeaders$inboundSchema.parse(JSON.parse(x)),
1001
- `Failed to parse 'GetAllToolsDataHeaders' from JSON`,
1002
- );
1003
- }
1004
-
1005
- /** @internal */
1006
- export const DataBlueprint$inboundSchema: z.ZodType<
1007
- DataBlueprint,
1008
- z.ZodTypeDef,
1009
- unknown
1010
- > = z.object({
1011
- url: z.string(),
1012
- method: GetAllToolsDataMethod$inboundSchema,
1013
- headers: z.record(
1014
- z.union([z.lazy(() => GetAllToolsHeaders2$inboundSchema), z.string()]),
1015
- ).optional(),
1016
- body: z.record(z.any()).optional(),
1017
- });
1018
-
1019
- export function dataBlueprintFromJSON(
1020
- jsonString: string,
1021
- ): SafeParseResult<DataBlueprint, SDKValidationError> {
1022
- return safeParse(
1023
- jsonString,
1024
- (x) => DataBlueprint$inboundSchema.parse(JSON.parse(x)),
1025
- `Failed to parse 'DataBlueprint' from JSON`,
1026
- );
1027
- }
1028
-
1029
- /** @internal */
1030
- export const GetAllToolsDataToolsResponse200ApplicationJSONResponseBody3Type$inboundSchema:
1031
- z.ZodNativeEnum<
1032
- typeof GetAllToolsDataToolsResponse200ApplicationJSONResponseBody3Type
1033
- > = z.nativeEnum(
1034
- GetAllToolsDataToolsResponse200ApplicationJSONResponseBody3Type,
1035
- );
1036
-
1037
- /** @internal */
1038
- export const DataDefaultValue$inboundSchema: z.ZodType<
1039
- DataDefaultValue,
1040
- z.ZodTypeDef,
1041
- unknown
1042
- > = z.union([z.string(), z.number(), z.boolean()]);
1043
-
1044
- export function dataDefaultValueFromJSON(
1045
- jsonString: string,
1046
- ): SafeParseResult<DataDefaultValue, SDKValidationError> {
1047
- return safeParse(
1048
- jsonString,
1049
- (x) => DataDefaultValue$inboundSchema.parse(JSON.parse(x)),
1050
- `Failed to parse 'DataDefaultValue' from JSON`,
1051
- );
1052
- }
1053
-
1054
- /** @internal */
1055
- export const DataArguments$inboundSchema: z.ZodType<
1056
- DataArguments,
1057
- z.ZodTypeDef,
1058
- unknown
1059
- > = z.object({
1060
- type:
1061
- GetAllToolsDataToolsResponse200ApplicationJSONResponseBody3Type$inboundSchema,
1062
- description: z.string(),
1063
- send_to_model: z.boolean().default(true),
1064
- default_value: z.union([z.string(), z.number(), z.boolean()]).optional(),
1065
- }).transform((v) => {
1066
- return remap$(v, {
1067
- "send_to_model": "sendToModel",
1068
- "default_value": "defaultValue",
1069
- });
1070
- });
1071
-
1072
- export function dataArgumentsFromJSON(
1073
- jsonString: string,
1074
- ): SafeParseResult<DataArguments, SDKValidationError> {
1075
- return safeParse(
1076
- jsonString,
1077
- (x) => DataArguments$inboundSchema.parse(JSON.parse(x)),
1078
- `Failed to parse 'DataArguments' from JSON`,
1079
- );
1080
- }
1081
-
1082
- /** @internal */
1083
- export const GetAllToolsDataHttp$inboundSchema: z.ZodType<
1084
- GetAllToolsDataHttp,
1085
- z.ZodTypeDef,
1086
- unknown
1087
- > = z.object({
1088
- blueprint: z.lazy(() => DataBlueprint$inboundSchema),
1089
- arguments: z.record(z.lazy(() => DataArguments$inboundSchema)).optional(),
1090
- });
1091
-
1092
- export function getAllToolsDataHttpFromJSON(
1093
- jsonString: string,
1094
- ): SafeParseResult<GetAllToolsDataHttp, SDKValidationError> {
1095
- return safeParse(
1096
- jsonString,
1097
- (x) => GetAllToolsDataHttp$inboundSchema.parse(JSON.parse(x)),
1098
- `Failed to parse 'GetAllToolsDataHttp' from JSON`,
1099
- );
1100
- }
1101
-
1102
- /** @internal */
1103
- export const DataHTTPTool$inboundSchema: z.ZodType<
1104
- DataHTTPTool,
1105
- z.ZodTypeDef,
1106
- unknown
1107
- > = z.object({
1108
- _id: z.string().default("tool_01KHBX71CG2XVA6BXZAPKBDCDN"),
1109
- path: z.string(),
1110
- key: z.string(),
1111
- display_name: z.string().optional(),
1112
- description: z.string(),
1113
- created_by_id: z.string().optional(),
1114
- updated_by_id: z.string().optional(),
1115
- project_id: z.string(),
1116
- workspace_id: z.string(),
1117
- created: z.string(),
1118
- updated: z.string(),
1119
- status: GetAllToolsDataToolsStatus$inboundSchema.default("live"),
1120
- version_hash: z.string().optional(),
1121
- type: z.literal("http"),
1122
- http: z.lazy(() => GetAllToolsDataHttp$inboundSchema),
1123
- }).transform((v) => {
1124
- return remap$(v, {
1125
- "_id": "id",
1126
- "display_name": "displayName",
1127
- "created_by_id": "createdById",
1128
- "updated_by_id": "updatedById",
1129
- "project_id": "projectId",
1130
- "workspace_id": "workspaceId",
1131
- "version_hash": "versionHash",
1132
- });
1133
- });
1134
-
1135
- export function dataHTTPToolFromJSON(
1136
- jsonString: string,
1137
- ): SafeParseResult<DataHTTPTool, SDKValidationError> {
1138
- return safeParse(
1139
- jsonString,
1140
- (x) => DataHTTPTool$inboundSchema.parse(JSON.parse(x)),
1141
- `Failed to parse 'DataHTTPTool' from JSON`,
1142
- );
1143
- }
1144
-
1145
- /** @internal */
1146
- export const GetAllToolsDataStatus$inboundSchema: z.ZodNativeEnum<
1147
- typeof GetAllToolsDataStatus
1148
- > = z.nativeEnum(GetAllToolsDataStatus);
1149
-
1150
- /** @internal */
1151
- export const DataSchema$inboundSchema: z.ZodType<
1152
- DataSchema,
1153
- z.ZodTypeDef,
1154
- unknown
1155
- > = collectExtraKeys$(
1156
- z.object({
1157
- type: z.string(),
1158
- properties: z.record(z.any()),
1159
- required: z.array(z.string()),
1160
- }).catchall(z.any()),
1161
- "additionalProperties",
1162
- true,
1163
- );
1164
-
1165
- export function dataSchemaFromJSON(
1166
- jsonString: string,
1167
- ): SafeParseResult<DataSchema, SDKValidationError> {
1168
- return safeParse(
1169
- jsonString,
1170
- (x) => DataSchema$inboundSchema.parse(JSON.parse(x)),
1171
- `Failed to parse 'DataSchema' from JSON`,
1172
- );
1173
- }
1174
-
1175
- /** @internal */
1176
- export const DataJsonSchema$inboundSchema: z.ZodType<
1177
- DataJsonSchema,
1178
- z.ZodTypeDef,
1179
- unknown
1180
- > = z.object({
1181
- name: z.string(),
1182
- description: z.string(),
1183
- schema: z.lazy(() => DataSchema$inboundSchema),
1184
- strict: z.boolean().optional(),
1185
- });
1186
-
1187
- export function dataJsonSchemaFromJSON(
1188
- jsonString: string,
1189
- ): SafeParseResult<DataJsonSchema, SDKValidationError> {
1190
- return safeParse(
1191
- jsonString,
1192
- (x) => DataJsonSchema$inboundSchema.parse(JSON.parse(x)),
1193
- `Failed to parse 'DataJsonSchema' from JSON`,
1194
- );
1195
- }
1196
-
1197
- /** @internal */
1198
- export const DataJSONSchemaTool$inboundSchema: z.ZodType<
1199
- DataJSONSchemaTool,
1200
- z.ZodTypeDef,
1201
- unknown
1202
- > = z.object({
1203
- _id: z.string().default("tool_01KHBX71CE8HF97SB47EG9J5WF"),
1204
- path: z.string(),
1205
- key: z.string(),
1206
- display_name: z.string().optional(),
1207
- description: z.string(),
1208
- created_by_id: z.string().optional(),
1209
- updated_by_id: z.string().optional(),
1210
- project_id: z.string(),
1211
- workspace_id: z.string(),
1212
- created: z.string(),
1213
- updated: z.string(),
1214
- status: GetAllToolsDataStatus$inboundSchema.default("live"),
1215
- version_hash: z.string().optional(),
1216
- type: z.literal("json_schema"),
1217
- json_schema: z.lazy(() => DataJsonSchema$inboundSchema),
1218
- }).transform((v) => {
1219
- return remap$(v, {
1220
- "_id": "id",
1221
- "display_name": "displayName",
1222
- "created_by_id": "createdById",
1223
- "updated_by_id": "updatedById",
1224
- "project_id": "projectId",
1225
- "workspace_id": "workspaceId",
1226
- "version_hash": "versionHash",
1227
- "json_schema": "jsonSchema",
1228
- });
1229
- });
1230
-
1231
- export function dataJSONSchemaToolFromJSON(
1232
- jsonString: string,
1233
- ): SafeParseResult<DataJSONSchemaTool, SDKValidationError> {
1234
- return safeParse(
1235
- jsonString,
1236
- (x) => DataJSONSchemaTool$inboundSchema.parse(JSON.parse(x)),
1237
- `Failed to parse 'DataJSONSchemaTool' from JSON`,
1238
- );
1239
- }
1240
-
1241
- /** @internal */
1242
- export const DataStatus$inboundSchema: z.ZodNativeEnum<typeof DataStatus> = z
1243
- .nativeEnum(DataStatus);
1244
-
1245
- /** @internal */
1246
- export const GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType$inboundSchema:
1247
- z.ZodNativeEnum<
1248
- typeof GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType
1249
- > = z.nativeEnum(
1250
- GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType,
1251
- );
1252
-
1253
- /** @internal */
1254
- export const DataParameters$inboundSchema: z.ZodType<
1255
- DataParameters,
1256
- z.ZodTypeDef,
1257
- unknown
1258
- > = collectExtraKeys$(
1259
- z.object({
1260
- type:
1261
- GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType$inboundSchema,
1262
- properties: z.record(z.any()),
1263
- required: z.array(z.string()),
1264
- }).catchall(z.any()),
1265
- "additionalProperties",
1266
- true,
1267
- );
1268
-
1269
- export function dataParametersFromJSON(
1270
- jsonString: string,
1271
- ): SafeParseResult<DataParameters, SDKValidationError> {
1272
- return safeParse(
1273
- jsonString,
1274
- (x) => DataParameters$inboundSchema.parse(JSON.parse(x)),
1275
- `Failed to parse 'DataParameters' from JSON`,
1276
- );
1277
- }
1278
-
1279
- /** @internal */
1280
- export const GetAllToolsDataFunction$inboundSchema: z.ZodType<
1281
- GetAllToolsDataFunction,
1282
- z.ZodTypeDef,
1283
- unknown
1284
- > = z.object({
1285
- name: z.string(),
1286
- description: z.string().optional(),
1287
- strict: z.boolean().optional(),
1288
- parameters: z.lazy(() => DataParameters$inboundSchema).optional(),
1289
- });
1290
-
1291
- export function getAllToolsDataFunctionFromJSON(
1292
- jsonString: string,
1293
- ): SafeParseResult<GetAllToolsDataFunction, SDKValidationError> {
1294
- return safeParse(
1295
- jsonString,
1296
- (x) => GetAllToolsDataFunction$inboundSchema.parse(JSON.parse(x)),
1297
- `Failed to parse 'GetAllToolsDataFunction' from JSON`,
1298
- );
1299
- }
1300
-
1301
- /** @internal */
1302
- export const DataFunctionTool$inboundSchema: z.ZodType<
1303
- DataFunctionTool,
1304
- z.ZodTypeDef,
1305
- unknown
1306
- > = z.object({
1307
- _id: z.string().default("tool_01KHBX71CDQ28ZYV101Y9WJBC3"),
1308
- path: z.string(),
1309
- key: z.string(),
1310
- display_name: z.string().optional(),
1311
- description: z.string(),
1312
- created_by_id: z.string().optional(),
1313
- updated_by_id: z.string().optional(),
1314
- project_id: z.string(),
1315
- workspace_id: z.string(),
1316
- created: z.string(),
1317
- updated: z.string(),
1318
- status: DataStatus$inboundSchema.default("live"),
1319
- version_hash: z.string().optional(),
1320
- type: z.literal("function"),
1321
- function: z.lazy(() => GetAllToolsDataFunction$inboundSchema),
1322
- }).transform((v) => {
1323
- return remap$(v, {
1324
- "_id": "id",
1325
- "display_name": "displayName",
1326
- "created_by_id": "createdById",
1327
- "updated_by_id": "updatedById",
1328
- "project_id": "projectId",
1329
- "workspace_id": "workspaceId",
1330
- "version_hash": "versionHash",
1331
- });
1332
- });
1333
-
1334
- export function dataFunctionToolFromJSON(
1335
- jsonString: string,
1336
- ): SafeParseResult<DataFunctionTool, SDKValidationError> {
1337
- return safeParse(
1338
- jsonString,
1339
- (x) => DataFunctionTool$inboundSchema.parse(JSON.parse(x)),
1340
- `Failed to parse 'DataFunctionTool' from JSON`,
1341
- );
1342
- }
1343
-
1344
- /** @internal */
1345
- export const GetAllToolsData$inboundSchema: z.ZodType<
1346
- GetAllToolsData,
1347
- z.ZodTypeDef,
1348
- unknown
1349
- > = z.union([
1350
- z.lazy(() => DataFunctionTool$inboundSchema),
1351
- z.lazy(() => DataJSONSchemaTool$inboundSchema),
1352
- z.lazy(() => DataHTTPTool$inboundSchema),
1353
- z.lazy(() => DataMCPTool$inboundSchema),
1354
- z.lazy(() => DataCodeExecutionTool$inboundSchema),
1355
- ]);
1356
-
1357
- export function getAllToolsDataFromJSON(
1358
- jsonString: string,
1359
- ): SafeParseResult<GetAllToolsData, SDKValidationError> {
1360
- return safeParse(
1361
- jsonString,
1362
- (x) => GetAllToolsData$inboundSchema.parse(JSON.parse(x)),
1363
- `Failed to parse 'GetAllToolsData' from JSON`,
1364
- );
1365
- }
1366
-
1367
- /** @internal */
1368
- export const GetAllToolsResponseBody$inboundSchema: z.ZodType<
1369
- GetAllToolsResponseBody,
1370
- z.ZodTypeDef,
1371
- unknown
1372
- > = z.object({
1373
- object: GetAllToolsObject$inboundSchema,
1374
- data: z.array(
1375
- z.union([
1376
- z.lazy(() => DataFunctionTool$inboundSchema),
1377
- z.lazy(() => DataJSONSchemaTool$inboundSchema),
1378
- z.lazy(() => DataHTTPTool$inboundSchema),
1379
- z.lazy(() => DataMCPTool$inboundSchema),
1380
- z.lazy(() => DataCodeExecutionTool$inboundSchema),
1381
- ]),
1382
- ),
1383
- has_more: z.boolean(),
1384
- }).transform((v) => {
1385
- return remap$(v, {
1386
- "has_more": "hasMore",
1387
- });
1388
- });
1389
-
1390
- export function getAllToolsResponseBodyFromJSON(
1391
- jsonString: string,
1392
- ): SafeParseResult<GetAllToolsResponseBody, SDKValidationError> {
1393
- return safeParse(
1394
- jsonString,
1395
- (x) => GetAllToolsResponseBody$inboundSchema.parse(JSON.parse(x)),
1396
- `Failed to parse 'GetAllToolsResponseBody' from JSON`,
1397
- );
1398
- }