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