@orq-ai/node 4.9.0 → 4.10.0-rc.1

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