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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (451) hide show
  1. package/examples/package-lock.json +4 -7
  2. package/jsr.json +1 -1
  3. package/lib/config.d.ts +2 -2
  4. package/lib/config.js +2 -2
  5. package/lib/config.js.map +1 -1
  6. package/models/components/partdoneevent.js +1 -1
  7. package/models/components/reasoningpart.js +1 -1
  8. package/models/operations/createcontact.js +1 -1
  9. package/models/operations/createdataset.js +1 -1
  10. package/models/operations/createdatasetitem.js +4 -4
  11. package/models/operations/createdatasource.js +1 -1
  12. package/models/operations/createeval.js +16 -16
  13. package/models/operations/createidentity.js +1 -1
  14. package/models/operations/createtool.js +6 -6
  15. package/models/operations/fileget.js +1 -1
  16. package/models/operations/filelist.js +1 -1
  17. package/models/operations/fileupload.js +1 -1
  18. package/models/operations/getalltools.js +6 -6
  19. package/models/operations/getevals.js +16 -16
  20. package/models/operations/listdatasetdatapoints.js +4 -4
  21. package/models/operations/listdatasets.js +1 -1
  22. package/models/operations/listdatasources.js +1 -1
  23. package/models/operations/listidentities.js +1 -1
  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 +4 -3
  38. package/src/lib/config.ts +2 -2
  39. package/src/models/components/partdoneevent.ts +1 -1
  40. package/src/models/components/reasoningpart.ts +1 -1
  41. package/src/models/operations/createcontact.ts +1 -1
  42. package/src/models/operations/createdataset.ts +1 -1
  43. package/src/models/operations/createdatasetitem.ts +4 -4
  44. package/src/models/operations/createdatasource.ts +1 -1
  45. package/src/models/operations/createeval.ts +16 -16
  46. package/src/models/operations/createidentity.ts +1 -1
  47. package/src/models/operations/createtool.ts +6 -6
  48. package/src/models/operations/fileget.ts +1 -1
  49. package/src/models/operations/filelist.ts +1 -1
  50. package/src/models/operations/fileupload.ts +1 -1
  51. package/src/models/operations/getalltools.ts +6 -6
  52. package/src/models/operations/getevals.ts +16 -16
  53. package/src/models/operations/listdatasetdatapoints.ts +4 -4
  54. package/src/models/operations/listdatasets.ts +1 -1
  55. package/src/models/operations/listdatasources.ts +1 -1
  56. package/src/models/operations/listidentities.ts +1 -1
  57. package/src/models/operations/retrievedatapoint.ts +4 -4
  58. package/src/models/operations/retrievedataset.ts +1 -1
  59. package/src/models/operations/retrievedatasource.ts +1 -1
  60. package/src/models/operations/retrieveidentity.ts +1 -1
  61. package/src/models/operations/retrievetool.ts +6 -6
  62. package/src/models/operations/runagent.ts +1 -1
  63. package/src/models/operations/streamrunagent.ts +1 -1
  64. package/src/models/operations/updatedatapoint.ts +4 -4
  65. package/src/models/operations/updatedataset.ts +1 -1
  66. package/src/models/operations/updatedatasource.ts +1 -1
  67. package/src/models/operations/updateeval.ts +16 -16
  68. package/src/models/operations/updateidentity.ts +1 -1
  69. package/src/models/operations/updatetool.ts +7 -7
  70. package/_speakeasy/.github/action-inputs-config.json +0 -53
  71. package/_speakeasy/.github/action-security-config.json +0 -88
  72. package/packages/orq-rc/examples/contactsCreate.example.ts +0 -42
  73. package/packages/orq-rc/examples/package-lock.json +0 -610
  74. package/packages/orq-rc/examples/package.json +0 -18
  75. package/packages/orq-rc/jsr.json +0 -28
  76. package/packages/orq-rc/package-lock.json +0 -1740
  77. package/packages/orq-rc/package.json +0 -30
  78. package/packages/orq-rc/src/core.ts +0 -13
  79. package/packages/orq-rc/src/funcs/agentsCreate.ts +0 -161
  80. package/packages/orq-rc/src/funcs/agentsDelete.ts +0 -180
  81. package/packages/orq-rc/src/funcs/agentsInvoke.ts +0 -177
  82. package/packages/orq-rc/src/funcs/agentsList.ts +0 -179
  83. package/packages/orq-rc/src/funcs/agentsResponsesCreate.ts +0 -183
  84. package/packages/orq-rc/src/funcs/agentsRetrieve.ts +0 -180
  85. package/packages/orq-rc/src/funcs/agentsRun.ts +0 -162
  86. package/packages/orq-rc/src/funcs/agentsStream.ts +0 -201
  87. package/packages/orq-rc/src/funcs/agentsStreamRun.ts +0 -186
  88. package/packages/orq-rc/src/funcs/agentsUpdate.ts +0 -184
  89. package/packages/orq-rc/src/funcs/annotationsCreate.ts +0 -171
  90. package/packages/orq-rc/src/funcs/annotationsDelete.ts +0 -171
  91. package/packages/orq-rc/src/funcs/chunkingParse.ts +0 -160
  92. package/packages/orq-rc/src/funcs/contactsCreate.ts +0 -160
  93. package/packages/orq-rc/src/funcs/datasetsClear.ts +0 -167
  94. package/packages/orq-rc/src/funcs/datasetsCreate.ts +0 -165
  95. package/packages/orq-rc/src/funcs/datasetsCreateDatapoint.ts +0 -171
  96. package/packages/orq-rc/src/funcs/datasetsDelete.ts +0 -167
  97. package/packages/orq-rc/src/funcs/datasetsDeleteDatapoint.ts +0 -182
  98. package/packages/orq-rc/src/funcs/datasetsList.ts +0 -167
  99. package/packages/orq-rc/src/funcs/datasetsListDatapoints.ts +0 -174
  100. package/packages/orq-rc/src/funcs/datasetsRetrieve.ts +0 -175
  101. package/packages/orq-rc/src/funcs/datasetsRetrieveDatapoint.ts +0 -181
  102. package/packages/orq-rc/src/funcs/datasetsUpdate.ts +0 -176
  103. package/packages/orq-rc/src/funcs/datasetsUpdateDatapoint.ts +0 -179
  104. package/packages/orq-rc/src/funcs/deploymentsGetConfig.ts +0 -168
  105. package/packages/orq-rc/src/funcs/deploymentsInvoke.ts +0 -176
  106. package/packages/orq-rc/src/funcs/deploymentsList.ts +0 -176
  107. package/packages/orq-rc/src/funcs/deploymentsMetricsCreate.ts +0 -168
  108. package/packages/orq-rc/src/funcs/deploymentsStream.ts +0 -183
  109. package/packages/orq-rc/src/funcs/evalsAll.ts +0 -173
  110. package/packages/orq-rc/src/funcs/evalsCreate.ts +0 -169
  111. package/packages/orq-rc/src/funcs/evalsDelete.ts +0 -173
  112. package/packages/orq-rc/src/funcs/evalsInvoke.ts +0 -181
  113. package/packages/orq-rc/src/funcs/evalsUpdate.ts +0 -173
  114. package/packages/orq-rc/src/funcs/evaluatorsGetV2EvaluatorsIdVersions.ts +0 -183
  115. package/packages/orq-rc/src/funcs/feedbackCreate.ts +0 -160
  116. package/packages/orq-rc/src/funcs/filesCreate.ts +0 -187
  117. package/packages/orq-rc/src/funcs/filesDelete.ts +0 -164
  118. package/packages/orq-rc/src/funcs/filesGet.ts +0 -166
  119. package/packages/orq-rc/src/funcs/filesList.ts +0 -167
  120. package/packages/orq-rc/src/funcs/identitiesCreate.ts +0 -165
  121. package/packages/orq-rc/src/funcs/identitiesDelete.ts +0 -176
  122. package/packages/orq-rc/src/funcs/identitiesList.ts +0 -170
  123. package/packages/orq-rc/src/funcs/identitiesRetrieve.ts +0 -175
  124. package/packages/orq-rc/src/funcs/identitiesUpdate.ts +0 -176
  125. package/packages/orq-rc/src/funcs/knowledgeCreate.ts +0 -158
  126. package/packages/orq-rc/src/funcs/knowledgeCreateChunks.ts +0 -171
  127. package/packages/orq-rc/src/funcs/knowledgeCreateDatasource.ts +0 -166
  128. package/packages/orq-rc/src/funcs/knowledgeDelete.ts +0 -167
  129. package/packages/orq-rc/src/funcs/knowledgeDeleteChunk.ts +0 -174
  130. package/packages/orq-rc/src/funcs/knowledgeDeleteChunks.ts +0 -170
  131. package/packages/orq-rc/src/funcs/knowledgeDeleteDatasource.ts +0 -173
  132. package/packages/orq-rc/src/funcs/knowledgeGetChunksCount.ts +0 -170
  133. package/packages/orq-rc/src/funcs/knowledgeList.ts +0 -169
  134. package/packages/orq-rc/src/funcs/knowledgeListChunks.ts +0 -178
  135. package/packages/orq-rc/src/funcs/knowledgeListChunksPaginated.ts +0 -171
  136. package/packages/orq-rc/src/funcs/knowledgeListDatasources.ts +0 -174
  137. package/packages/orq-rc/src/funcs/knowledgeRetrieve.ts +0 -166
  138. package/packages/orq-rc/src/funcs/knowledgeRetrieveChunk.ts +0 -173
  139. package/packages/orq-rc/src/funcs/knowledgeRetrieveDatasource.ts +0 -169
  140. package/packages/orq-rc/src/funcs/knowledgeSearch.ts +0 -167
  141. package/packages/orq-rc/src/funcs/knowledgeUpdate.ts +0 -164
  142. package/packages/orq-rc/src/funcs/knowledgeUpdateChunk.ts +0 -174
  143. package/packages/orq-rc/src/funcs/knowledgeUpdateDatasource.ts +0 -170
  144. package/packages/orq-rc/src/funcs/memoryStoresCreate.ts +0 -162
  145. package/packages/orq-rc/src/funcs/memoryStoresCreateDocument.ts +0 -176
  146. package/packages/orq-rc/src/funcs/memoryStoresCreateMemory.ts +0 -170
  147. package/packages/orq-rc/src/funcs/memoryStoresDelete.ts +0 -168
  148. package/packages/orq-rc/src/funcs/memoryStoresDeleteDocument.ts +0 -185
  149. package/packages/orq-rc/src/funcs/memoryStoresDeleteMemory.ts +0 -180
  150. package/packages/orq-rc/src/funcs/memoryStoresList.ts +0 -178
  151. package/packages/orq-rc/src/funcs/memoryStoresListDocuments.ts +0 -184
  152. package/packages/orq-rc/src/funcs/memoryStoresListMemories.ts +0 -177
  153. package/packages/orq-rc/src/funcs/memoryStoresRetrieve.ts +0 -177
  154. package/packages/orq-rc/src/funcs/memoryStoresRetrieveDocument.ts +0 -179
  155. package/packages/orq-rc/src/funcs/memoryStoresRetrieveMemory.ts +0 -174
  156. package/packages/orq-rc/src/funcs/memoryStoresUpdate.ts +0 -168
  157. package/packages/orq-rc/src/funcs/memoryStoresUpdateDocument.ts +0 -180
  158. package/packages/orq-rc/src/funcs/memoryStoresUpdateMemory.ts +0 -175
  159. package/packages/orq-rc/src/funcs/modelsList.ts +0 -142
  160. package/packages/orq-rc/src/funcs/promptsCreate.ts +0 -160
  161. package/packages/orq-rc/src/funcs/promptsDelete.ts +0 -173
  162. package/packages/orq-rc/src/funcs/promptsGetVersion.ts +0 -181
  163. package/packages/orq-rc/src/funcs/promptsList.ts +0 -167
  164. package/packages/orq-rc/src/funcs/promptsListVersions.ts +0 -173
  165. package/packages/orq-rc/src/funcs/promptsRetrieve.ts +0 -166
  166. package/packages/orq-rc/src/funcs/promptsUpdate.ts +0 -173
  167. package/packages/orq-rc/src/funcs/remoteconfigsRetrieve.ts +0 -161
  168. package/packages/orq-rc/src/funcs/routerAudioSpeechCreate.ts +0 -161
  169. package/packages/orq-rc/src/funcs/routerAudioTranscriptionsCreate.ts +0 -262
  170. package/packages/orq-rc/src/funcs/routerAudioTranslationsCreate.ts +0 -252
  171. package/packages/orq-rc/src/funcs/routerChatCompletionsCreate.ts +0 -168
  172. package/packages/orq-rc/src/funcs/routerCompletionsCreate.ts +0 -168
  173. package/packages/orq-rc/src/funcs/routerEmbeddingsCreate.ts +0 -161
  174. package/packages/orq-rc/src/funcs/routerImagesEditsCreate.ts +0 -222
  175. package/packages/orq-rc/src/funcs/routerImagesGenerationsCreate.ts +0 -160
  176. package/packages/orq-rc/src/funcs/routerImagesVariationsCreate.ts +0 -218
  177. package/packages/orq-rc/src/funcs/routerModerationsCreate.ts +0 -167
  178. package/packages/orq-rc/src/funcs/routerOcr.ts +0 -158
  179. package/packages/orq-rc/src/funcs/routerRerankCreate.ts +0 -160
  180. package/packages/orq-rc/src/funcs/routerResponsesCreate.ts +0 -167
  181. package/packages/orq-rc/src/funcs/toolsCreate.ts +0 -163
  182. package/packages/orq-rc/src/funcs/toolsDelete.ts +0 -167
  183. package/packages/orq-rc/src/funcs/toolsGetV2ToolsToolIdVersions.ts +0 -183
  184. package/packages/orq-rc/src/funcs/toolsGetV2ToolsToolIdVersionsVersionId.ts +0 -190
  185. package/packages/orq-rc/src/funcs/toolsList.ts +0 -176
  186. package/packages/orq-rc/src/funcs/toolsRetrieve.ts +0 -166
  187. package/packages/orq-rc/src/funcs/toolsUpdate.ts +0 -176
  188. package/packages/orq-rc/src/hooks/global.ts +0 -44
  189. package/packages/orq-rc/src/hooks/hooks.ts +0 -132
  190. package/packages/orq-rc/src/hooks/index.ts +0 -6
  191. package/packages/orq-rc/src/hooks/registration.ts +0 -15
  192. package/packages/orq-rc/src/hooks/types.ts +0 -112
  193. package/packages/orq-rc/src/index.ts +0 -9
  194. package/packages/orq-rc/src/lib/base64.ts +0 -37
  195. package/packages/orq-rc/src/lib/config.ts +0 -74
  196. package/packages/orq-rc/src/lib/dlv.ts +0 -53
  197. package/packages/orq-rc/src/lib/encodings.ts +0 -497
  198. package/packages/orq-rc/src/lib/env.ts +0 -89
  199. package/packages/orq-rc/src/lib/event-streams.ts +0 -152
  200. package/packages/orq-rc/src/lib/files.ts +0 -82
  201. package/packages/orq-rc/src/lib/http.ts +0 -323
  202. package/packages/orq-rc/src/lib/is-plain-object.ts +0 -43
  203. package/packages/orq-rc/src/lib/logger.ts +0 -9
  204. package/packages/orq-rc/src/lib/matchers.ts +0 -345
  205. package/packages/orq-rc/src/lib/primitives.ts +0 -150
  206. package/packages/orq-rc/src/lib/retries.ts +0 -218
  207. package/packages/orq-rc/src/lib/schemas.ts +0 -91
  208. package/packages/orq-rc/src/lib/sdks.ts +0 -407
  209. package/packages/orq-rc/src/lib/security.ts +0 -264
  210. package/packages/orq-rc/src/lib/url.ts +0 -33
  211. package/packages/orq-rc/src/models/components/actionreviewedstreamingevent.ts +0 -99
  212. package/packages/orq-rc/src/models/components/actionreviewrequestedstreamingevent.ts +0 -185
  213. package/packages/orq-rc/src/models/components/agenterroredstreamingevent.ts +0 -73
  214. package/packages/orq-rc/src/models/components/agentexecutionstartedstreamingevent.ts +0 -91
  215. package/packages/orq-rc/src/models/components/agenthandedoffstreamingevent.ts +0 -71
  216. package/packages/orq-rc/src/models/components/agentinactivestreamingevent.ts +0 -507
  217. package/packages/orq-rc/src/models/components/agentmessagecreatedstreamingevent.ts +0 -165
  218. package/packages/orq-rc/src/models/components/agentresponsemessage.ts +0 -103
  219. package/packages/orq-rc/src/models/components/agentstartedstreamingevent.ts +0 -517
  220. package/packages/orq-rc/src/models/components/agentthoughtstreamingevent.ts +0 -807
  221. package/packages/orq-rc/src/models/components/audiocontentpartschema.ts +0 -136
  222. package/packages/orq-rc/src/models/components/createagentresponse.ts +0 -299
  223. package/packages/orq-rc/src/models/components/datapart.ts +0 -38
  224. package/packages/orq-rc/src/models/components/errorpart.ts +0 -58
  225. package/packages/orq-rc/src/models/components/errorstreamingevent.ts +0 -66
  226. package/packages/orq-rc/src/models/components/executionnamedstreamingevent.ts +0 -71
  227. package/packages/orq-rc/src/models/components/executionreviewedstreamingevent.ts +0 -61
  228. package/packages/orq-rc/src/models/components/executionreviewrequiredstreamingevent.ts +0 -67
  229. package/packages/orq-rc/src/models/components/filecontentpartschema.ts +0 -87
  230. package/packages/orq-rc/src/models/components/filepart.ts +0 -218
  231. package/packages/orq-rc/src/models/components/imagecontentpartschema.ts +0 -268
  232. package/packages/orq-rc/src/models/components/index.ts +0 -56
  233. package/packages/orq-rc/src/models/components/invokedeploymentrequest.ts +0 -3450
  234. package/packages/orq-rc/src/models/components/partdelta.ts +0 -39
  235. package/packages/orq-rc/src/models/components/partdeltaevent.ts +0 -73
  236. package/packages/orq-rc/src/models/components/partdoneevent.ts +0 -139
  237. package/packages/orq-rc/src/models/components/publiccontact.ts +0 -71
  238. package/packages/orq-rc/src/models/components/publicidentity.ts +0 -69
  239. package/packages/orq-rc/src/models/components/reasoningpart.ts +0 -62
  240. package/packages/orq-rc/src/models/components/reasoningpartschema.ts +0 -71
  241. package/packages/orq-rc/src/models/components/redactedreasoningpartschema.ts +0 -66
  242. package/packages/orq-rc/src/models/components/refusalpartschema.ts +0 -64
  243. package/packages/orq-rc/src/models/components/responsedoneevent.ts +0 -318
  244. package/packages/orq-rc/src/models/components/responsefailedevent.ts +0 -72
  245. package/packages/orq-rc/src/models/components/responsestartedevent.ts +0 -91
  246. package/packages/orq-rc/src/models/components/responsestreamingevent.ts +0 -85
  247. package/packages/orq-rc/src/models/components/reviewoutcome.ts +0 -23
  248. package/packages/orq-rc/src/models/components/security.ts +0 -32
  249. package/packages/orq-rc/src/models/components/textcontentpartschema.ts +0 -207
  250. package/packages/orq-rc/src/models/components/textpart.ts +0 -54
  251. package/packages/orq-rc/src/models/components/thinkingconfigdisabledschema.ts +0 -59
  252. package/packages/orq-rc/src/models/components/thinkingconfigenabledschema.ts +0 -106
  253. package/packages/orq-rc/src/models/components/timeoutstreamingevent.ts +0 -64
  254. package/packages/orq-rc/src/models/components/toolcallpart.ts +0 -51
  255. package/packages/orq-rc/src/models/components/tooldoneevent.ts +0 -77
  256. package/packages/orq-rc/src/models/components/toolexecutionfailedstreamingevent.ts +0 -230
  257. package/packages/orq-rc/src/models/components/toolexecutionfinishedstreamingevent.ts +0 -214
  258. package/packages/orq-rc/src/models/components/toolexecutionstartedstreamingevent.ts +0 -200
  259. package/packages/orq-rc/src/models/components/toolfailedevent.ts +0 -77
  260. package/packages/orq-rc/src/models/components/toolresultpart.ts +0 -71
  261. package/packages/orq-rc/src/models/components/toolreviewdoneevent.ts +0 -78
  262. package/packages/orq-rc/src/models/components/toolreviewrequestedevent.ts +0 -87
  263. package/packages/orq-rc/src/models/components/toolstartedevent.ts +0 -82
  264. package/packages/orq-rc/src/models/errors/apierror.ts +0 -40
  265. package/packages/orq-rc/src/models/errors/createeval.ts +0 -51
  266. package/packages/orq-rc/src/models/errors/createmoderation.ts +0 -84
  267. package/packages/orq-rc/src/models/errors/createtranscription.ts +0 -87
  268. package/packages/orq-rc/src/models/errors/createtranslation.ts +0 -87
  269. package/packages/orq-rc/src/models/errors/deleteagent.ts +0 -51
  270. package/packages/orq-rc/src/models/errors/deleteeval.ts +0 -51
  271. package/packages/orq-rc/src/models/errors/deleteidentity.ts +0 -62
  272. package/packages/orq-rc/src/models/errors/deleteprompt.ts +0 -51
  273. package/packages/orq-rc/src/models/errors/getevals.ts +0 -51
  274. package/packages/orq-rc/src/models/errors/getpromptversion.ts +0 -51
  275. package/packages/orq-rc/src/models/errors/getv2evaluatorsidversions.ts +0 -51
  276. package/packages/orq-rc/src/models/errors/getv2toolstoolidversions.ts +0 -51
  277. package/packages/orq-rc/src/models/errors/getv2toolstoolidversionsversionid.ts +0 -52
  278. package/packages/orq-rc/src/models/errors/honoapierror.ts +0 -59
  279. package/packages/orq-rc/src/models/errors/httpclienterrors.ts +0 -62
  280. package/packages/orq-rc/src/models/errors/index.ts +0 -33
  281. package/packages/orq-rc/src/models/errors/invokeeval.ts +0 -141
  282. package/packages/orq-rc/src/models/errors/orqerror.ts +0 -35
  283. package/packages/orq-rc/src/models/errors/responsevalidationerror.ts +0 -50
  284. package/packages/orq-rc/src/models/errors/retrieveagentrequest.ts +0 -51
  285. package/packages/orq-rc/src/models/errors/retrieveidentity.ts +0 -62
  286. package/packages/orq-rc/src/models/errors/sdkvalidationerror.ts +0 -109
  287. package/packages/orq-rc/src/models/errors/streamagent.ts +0 -51
  288. package/packages/orq-rc/src/models/errors/streamrunagent.ts +0 -51
  289. package/packages/orq-rc/src/models/errors/updateagent.ts +0 -51
  290. package/packages/orq-rc/src/models/errors/updateeval.ts +0 -51
  291. package/packages/orq-rc/src/models/errors/updateidentity.ts +0 -54
  292. package/packages/orq-rc/src/models/errors/updateprompt.ts +0 -51
  293. package/packages/orq-rc/src/models/errors/updatetool.ts +0 -62
  294. package/packages/orq-rc/src/models/operations/cleardataset.ts +0 -39
  295. package/packages/orq-rc/src/models/operations/createagentrequest.ts +0 -7093
  296. package/packages/orq-rc/src/models/operations/createagentresponserequest.ts +0 -609
  297. package/packages/orq-rc/src/models/operations/createannotation.ts +0 -162
  298. package/packages/orq-rc/src/models/operations/createchatcompletion.ts +0 -6381
  299. package/packages/orq-rc/src/models/operations/createchunk.ts +0 -222
  300. package/packages/orq-rc/src/models/operations/createcompletion.ts +0 -3413
  301. package/packages/orq-rc/src/models/operations/createcontact.ts +0 -156
  302. package/packages/orq-rc/src/models/operations/createdataset.ts +0 -162
  303. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +0 -2551
  304. package/packages/orq-rc/src/models/operations/createdatasource.ts +0 -437
  305. package/packages/orq-rc/src/models/operations/createembedding.ts +0 -947
  306. package/packages/orq-rc/src/models/operations/createeval.ts +0 -4170
  307. package/packages/orq-rc/src/models/operations/createfeedback.ts +0 -144
  308. package/packages/orq-rc/src/models/operations/createidentity.ts +0 -162
  309. package/packages/orq-rc/src/models/operations/createimage.ts +0 -1028
  310. package/packages/orq-rc/src/models/operations/createimageedit.ts +0 -1045
  311. package/packages/orq-rc/src/models/operations/createimagevariation.ts +0 -1067
  312. package/packages/orq-rc/src/models/operations/createknowledge.ts +0 -944
  313. package/packages/orq-rc/src/models/operations/creatememory.ts +0 -142
  314. package/packages/orq-rc/src/models/operations/creatememorydocument.ts +0 -152
  315. package/packages/orq-rc/src/models/operations/creatememorystore.ts +0 -199
  316. package/packages/orq-rc/src/models/operations/createmoderation.ts +0 -664
  317. package/packages/orq-rc/src/models/operations/createprompt.ts +0 -5401
  318. package/packages/orq-rc/src/models/operations/creatererank.ts +0 -890
  319. package/packages/orq-rc/src/models/operations/createresponse.ts +0 -3324
  320. package/packages/orq-rc/src/models/operations/createspeech.ts +0 -700
  321. package/packages/orq-rc/src/models/operations/createtool.ts +0 -2499
  322. package/packages/orq-rc/src/models/operations/createtranscription.ts +0 -955
  323. package/packages/orq-rc/src/models/operations/createtranslation.ts +0 -930
  324. package/packages/orq-rc/src/models/operations/deleteagent.ts +0 -39
  325. package/packages/orq-rc/src/models/operations/deleteannotation.ts +0 -79
  326. package/packages/orq-rc/src/models/operations/deletechunk.ts +0 -53
  327. package/packages/orq-rc/src/models/operations/deletechunks.ts +0 -125
  328. package/packages/orq-rc/src/models/operations/deletedatapoint.ts +0 -46
  329. package/packages/orq-rc/src/models/operations/deletedataset.ts +0 -39
  330. package/packages/orq-rc/src/models/operations/deletedatasource.ts +0 -46
  331. package/packages/orq-rc/src/models/operations/deleteeval.ts +0 -31
  332. package/packages/orq-rc/src/models/operations/deleteidentity.ts +0 -34
  333. package/packages/orq-rc/src/models/operations/deleteknowledge.ts +0 -39
  334. package/packages/orq-rc/src/models/operations/deletememory.ts +0 -46
  335. package/packages/orq-rc/src/models/operations/deletememorydocument.ts +0 -55
  336. package/packages/orq-rc/src/models/operations/deletememorystore.ts +0 -39
  337. package/packages/orq-rc/src/models/operations/deleteprompt.ts +0 -34
  338. package/packages/orq-rc/src/models/operations/deletetool.ts +0 -36
  339. package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +0 -2370
  340. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +0 -4525
  341. package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +0 -690
  342. package/packages/orq-rc/src/models/operations/deployments.ts +0 -1268
  343. package/packages/orq-rc/src/models/operations/deploymentstream.ts +0 -4614
  344. package/packages/orq-rc/src/models/operations/filedelete.ts +0 -39
  345. package/packages/orq-rc/src/models/operations/fileget.ts +0 -116
  346. package/packages/orq-rc/src/models/operations/filelist.ts +0 -172
  347. package/packages/orq-rc/src/models/operations/fileupload.ts +0 -170
  348. package/packages/orq-rc/src/models/operations/getallmemories.ts +0 -173
  349. package/packages/orq-rc/src/models/operations/getallmemorydocuments.ts +0 -188
  350. package/packages/orq-rc/src/models/operations/getallmemorystores.ts +0 -200
  351. package/packages/orq-rc/src/models/operations/getallprompts.ts +0 -3164
  352. package/packages/orq-rc/src/models/operations/getalltools.ts +0 -1398
  353. package/packages/orq-rc/src/models/operations/getchunkscount.ts +0 -121
  354. package/packages/orq-rc/src/models/operations/getevals.ts +0 -2842
  355. package/packages/orq-rc/src/models/operations/getonechunk.ts +0 -171
  356. package/packages/orq-rc/src/models/operations/getoneknowledge.ts +0 -652
  357. package/packages/orq-rc/src/models/operations/getoneprompt.ts +0 -3089
  358. package/packages/orq-rc/src/models/operations/getpromptversion.ts +0 -3134
  359. package/packages/orq-rc/src/models/operations/getv2evaluatorsidversions.ts +0 -162
  360. package/packages/orq-rc/src/models/operations/getv2toolstoolidversions.ts +0 -163
  361. package/packages/orq-rc/src/models/operations/getv2toolstoolidversionsversionid.ts +0 -110
  362. package/packages/orq-rc/src/models/operations/index.ts +0 -113
  363. package/packages/orq-rc/src/models/operations/invokeagent.ts +0 -733
  364. package/packages/orq-rc/src/models/operations/invokeeval.ts +0 -1253
  365. package/packages/orq-rc/src/models/operations/listagents.ts +0 -3018
  366. package/packages/orq-rc/src/models/operations/listchunks.ts +0 -260
  367. package/packages/orq-rc/src/models/operations/listchunkspaginated.ts +0 -263
  368. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +0 -1498
  369. package/packages/orq-rc/src/models/operations/listdatasets.ts +0 -205
  370. package/packages/orq-rc/src/models/operations/listdatasources.ts +0 -235
  371. package/packages/orq-rc/src/models/operations/listidentities.ts +0 -275
  372. package/packages/orq-rc/src/models/operations/listknowledgebases.ts +0 -642
  373. package/packages/orq-rc/src/models/operations/listmodels.ts +0 -143
  374. package/packages/orq-rc/src/models/operations/listpromptversions.ts +0 -3209
  375. package/packages/orq-rc/src/models/operations/parse.ts +0 -777
  376. package/packages/orq-rc/src/models/operations/postv2routerocr.ts +0 -478
  377. package/packages/orq-rc/src/models/operations/remoteconfigsgetconfig.ts +0 -108
  378. package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +0 -3104
  379. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +0 -1402
  380. package/packages/orq-rc/src/models/operations/retrievedataset.ts +0 -150
  381. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +0 -152
  382. package/packages/orq-rc/src/models/operations/retrieveidentity.ts +0 -117
  383. package/packages/orq-rc/src/models/operations/retrievememory.ts +0 -112
  384. package/packages/orq-rc/src/models/operations/retrievememorydocument.ts +0 -118
  385. package/packages/orq-rc/src/models/operations/retrievememorystore.ts +0 -144
  386. package/packages/orq-rc/src/models/operations/retrievetool.ts +0 -1379
  387. package/packages/orq-rc/src/models/operations/runagent.ts +0 -5351
  388. package/packages/orq-rc/src/models/operations/searchknowledge.ts +0 -1762
  389. package/packages/orq-rc/src/models/operations/streamagent.ts +0 -629
  390. package/packages/orq-rc/src/models/operations/streamrunagent.ts +0 -5546
  391. package/packages/orq-rc/src/models/operations/updateagent.ts +0 -7447
  392. package/packages/orq-rc/src/models/operations/updatechunk.ts +0 -236
  393. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +0 -2555
  394. package/packages/orq-rc/src/models/operations/updatedataset.ts +0 -206
  395. package/packages/orq-rc/src/models/operations/updatedatasource.ts +0 -186
  396. package/packages/orq-rc/src/models/operations/updateeval.ts +0 -4066
  397. package/packages/orq-rc/src/models/operations/updateidentity.ts +0 -189
  398. package/packages/orq-rc/src/models/operations/updateknowledge.ts +0 -1231
  399. package/packages/orq-rc/src/models/operations/updatememory.ts +0 -142
  400. package/packages/orq-rc/src/models/operations/updatememorydocument.ts +0 -159
  401. package/packages/orq-rc/src/models/operations/updatememorystore.ts +0 -246
  402. package/packages/orq-rc/src/models/operations/updateprompt.ts +0 -5472
  403. package/packages/orq-rc/src/models/operations/updatetool.ts +0 -2696
  404. package/packages/orq-rc/src/sdk/agents.ts +0 -196
  405. package/packages/orq-rc/src/sdk/annotations.ts +0 -39
  406. package/packages/orq-rc/src/sdk/audio.ts +0 -25
  407. package/packages/orq-rc/src/sdk/chat.ts +0 -13
  408. package/packages/orq-rc/src/sdk/chunking.ts +0 -27
  409. package/packages/orq-rc/src/sdk/completions.ts +0 -32
  410. package/packages/orq-rc/src/sdk/contacts.ts +0 -27
  411. package/packages/orq-rc/src/sdk/datasets.ts +0 -204
  412. package/packages/orq-rc/src/sdk/deployments.ts +0 -89
  413. package/packages/orq-rc/src/sdk/edits.ts +0 -27
  414. package/packages/orq-rc/src/sdk/embeddings.ts +0 -27
  415. package/packages/orq-rc/src/sdk/evals.ts +0 -84
  416. package/packages/orq-rc/src/sdk/evaluators.ts +0 -27
  417. package/packages/orq-rc/src/sdk/feedback.ts +0 -27
  418. package/packages/orq-rc/src/sdk/files.ts +0 -78
  419. package/packages/orq-rc/src/sdk/generations.ts +0 -27
  420. package/packages/orq-rc/src/sdk/identities.ts +0 -99
  421. package/packages/orq-rc/src/sdk/images.ts +0 -25
  422. package/packages/orq-rc/src/sdk/index.ts +0 -5
  423. package/packages/orq-rc/src/sdk/knowledge.ts +0 -309
  424. package/packages/orq-rc/src/sdk/memorystores.ts +0 -286
  425. package/packages/orq-rc/src/sdk/metrics.ts +0 -27
  426. package/packages/orq-rc/src/sdk/models.ts +0 -25
  427. package/packages/orq-rc/src/sdk/moderations.ts +0 -24
  428. package/packages/orq-rc/src/sdk/orqcompletions.ts +0 -32
  429. package/packages/orq-rc/src/sdk/orqresponses.ts +0 -32
  430. package/packages/orq-rc/src/sdk/prompts.ts +0 -126
  431. package/packages/orq-rc/src/sdk/remoteconfigs.ts +0 -24
  432. package/packages/orq-rc/src/sdk/rerank.ts +0 -27
  433. package/packages/orq-rc/src/sdk/responses.ts +0 -34
  434. package/packages/orq-rc/src/sdk/router.ts +0 -72
  435. package/packages/orq-rc/src/sdk/sdk.ts +0 -115
  436. package/packages/orq-rc/src/sdk/speech.ts +0 -27
  437. package/packages/orq-rc/src/sdk/tools.ts +0 -135
  438. package/packages/orq-rc/src/sdk/transcriptions.ts +0 -24
  439. package/packages/orq-rc/src/sdk/translations.ts +0 -24
  440. package/packages/orq-rc/src/sdk/variations.ts +0 -27
  441. package/packages/orq-rc/src/types/async.ts +0 -68
  442. package/packages/orq-rc/src/types/blobs.ts +0 -32
  443. package/packages/orq-rc/src/types/constdatetime.ts +0 -15
  444. package/packages/orq-rc/src/types/enums.ts +0 -45
  445. package/packages/orq-rc/src/types/fp.ts +0 -50
  446. package/packages/orq-rc/src/types/index.ts +0 -11
  447. package/packages/orq-rc/src/types/operations.ts +0 -105
  448. package/packages/orq-rc/src/types/rfcdate.ts +0 -54
  449. package/packages/orq-rc/src/types/streams.ts +0 -21
  450. package/packages/orq-rc/src/types/unrecognized.ts +0 -35
  451. package/packages/orq-rc/tsconfig.json +0 -40
@@ -1,2696 +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
- /**
16
- * 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.
17
- */
18
- export const UpdateToolRequestBodyToolsRequest5Status = {
19
- Live: "live",
20
- Draft: "draft",
21
- Pending: "pending",
22
- Published: "published",
23
- } as const;
24
- /**
25
- * 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.
26
- */
27
- export type UpdateToolRequestBodyToolsRequest5Status = ClosedEnum<
28
- typeof UpdateToolRequestBodyToolsRequest5Status
29
- >;
30
-
31
- /**
32
- * The type must be "object"
33
- */
34
- export const UpdateToolRequestBodyToolsRequest5CodeToolType = {
35
- Object: "object",
36
- } as const;
37
- /**
38
- * The type must be "object"
39
- */
40
- export type UpdateToolRequestBodyToolsRequest5CodeToolType = ClosedEnum<
41
- typeof UpdateToolRequestBodyToolsRequest5CodeToolType
42
- >;
43
-
44
- /**
45
- * 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.
46
- */
47
- export type UpdateToolRequestBodyToolsParameters = {
48
- /**
49
- * The type must be "object"
50
- */
51
- type: UpdateToolRequestBodyToolsRequest5CodeToolType;
52
- /**
53
- * The properties of the function parameters
54
- */
55
- properties: { [k: string]: any };
56
- /**
57
- * Array of required parameter names
58
- */
59
- required: Array<string>;
60
- additionalProperties?: { [k: string]: any } | undefined;
61
- };
62
-
63
- export const UpdateToolRequestBodyLanguage = {
64
- Python: "python",
65
- } as const;
66
- export type UpdateToolRequestBodyLanguage = ClosedEnum<
67
- typeof UpdateToolRequestBodyLanguage
68
- >;
69
-
70
- export type UpdateToolRequestBodyCodeTool = {
71
- /**
72
- * 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.
73
- */
74
- parameters?: UpdateToolRequestBodyToolsParameters | undefined;
75
- language: UpdateToolRequestBodyLanguage;
76
- /**
77
- * The code to execute.
78
- */
79
- code: string;
80
- };
81
-
82
- /**
83
- * Updates an existing code execution tool configuration.
84
- */
85
- export type UpdateCodeExecutionTool = {
86
- /**
87
- * Entity storage path in the format: `project/folder/subfolder/...`
88
- *
89
- * @remarks
90
- *
91
- * The first element identifies the project, followed by nested folders (auto-created as needed).
92
- *
93
- * With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
94
- */
95
- path?: string | undefined;
96
- /**
97
- * Unique key of the tool as it will be displayed in the UI
98
- */
99
- key?: string | undefined;
100
- /**
101
- * 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.
102
- */
103
- displayName?: string | undefined;
104
- /**
105
- * 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.
106
- */
107
- description?: string | undefined;
108
- /**
109
- * 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.
110
- */
111
- status?: UpdateToolRequestBodyToolsRequest5Status | undefined;
112
- type: "code";
113
- codeTool?: UpdateToolRequestBodyCodeTool | undefined;
114
- };
115
-
116
- /**
117
- * 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.
118
- */
119
- export const UpdateToolRequestBodyToolsRequest4Status = {
120
- Live: "live",
121
- Draft: "draft",
122
- Pending: "pending",
123
- Published: "published",
124
- } as const;
125
- /**
126
- * 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.
127
- */
128
- export type UpdateToolRequestBodyToolsRequest4Status = ClosedEnum<
129
- typeof UpdateToolRequestBodyToolsRequest4Status
130
- >;
131
-
132
- export type UpdateToolRequestBodyHeaders = {
133
- value: string;
134
- encrypted?: boolean | undefined;
135
- };
136
-
137
- export const UpdateToolRequestBodyToolsRequest4McpType = {
138
- Object: "object",
139
- } as const;
140
- export type UpdateToolRequestBodyToolsRequest4McpType = ClosedEnum<
141
- typeof UpdateToolRequestBodyToolsRequest4McpType
142
- >;
143
-
144
- export type UpdateToolRequestBodyToolsSchema = {
145
- type: UpdateToolRequestBodyToolsRequest4McpType;
146
- properties?: { [k: string]: any } | undefined;
147
- required?: Array<string> | undefined;
148
- };
149
-
150
- export type RequestBodyTools = {
151
- id?: string | undefined;
152
- name: string;
153
- description?: string | undefined;
154
- schema: UpdateToolRequestBodyToolsSchema;
155
- };
156
-
157
- /**
158
- * The connection type used by the MCP server
159
- */
160
- export const UpdateToolRequestBodyConnectionType = {
161
- Http: "http",
162
- Sse: "sse",
163
- } as const;
164
- /**
165
- * The connection type used by the MCP server
166
- */
167
- export type UpdateToolRequestBodyConnectionType = ClosedEnum<
168
- typeof UpdateToolRequestBodyConnectionType
169
- >;
170
-
171
- export type UpdateToolRequestBodyMcp = {
172
- /**
173
- * The MCP server URL (cached for execution)
174
- */
175
- serverUrl?: string | undefined;
176
- /**
177
- * HTTP headers for MCP server requests with encryption support
178
- */
179
- headers?: { [k: string]: UpdateToolRequestBodyHeaders } | undefined;
180
- /**
181
- * Array of tools available from the MCP server
182
- */
183
- tools?: Array<RequestBodyTools> | undefined;
184
- /**
185
- * The connection type used by the MCP server
186
- */
187
- connectionType?: UpdateToolRequestBodyConnectionType | undefined;
188
- };
189
-
190
- /**
191
- * Updates an existing MCP tool configuration.
192
- */
193
- export type UpdateMCPTool = {
194
- /**
195
- * Entity storage path in the format: `project/folder/subfolder/...`
196
- *
197
- * @remarks
198
- *
199
- * The first element identifies the project, followed by nested folders (auto-created as needed).
200
- *
201
- * With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
202
- */
203
- path?: string | undefined;
204
- /**
205
- * Unique key of the tool as it will be displayed in the UI
206
- */
207
- key?: string | undefined;
208
- /**
209
- * 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.
210
- */
211
- displayName?: string | undefined;
212
- /**
213
- * 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.
214
- */
215
- description?: string | undefined;
216
- /**
217
- * 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.
218
- */
219
- status?: UpdateToolRequestBodyToolsRequest4Status | undefined;
220
- type: "mcp";
221
- mcp?: UpdateToolRequestBodyMcp | undefined;
222
- };
223
-
224
- /**
225
- * 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.
226
- */
227
- export const UpdateToolRequestBodyToolsRequestStatus = {
228
- Live: "live",
229
- Draft: "draft",
230
- Pending: "pending",
231
- Published: "published",
232
- } as const;
233
- /**
234
- * 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.
235
- */
236
- export type UpdateToolRequestBodyToolsRequestStatus = ClosedEnum<
237
- typeof UpdateToolRequestBodyToolsRequestStatus
238
- >;
239
-
240
- /**
241
- * The HTTP method to use.
242
- */
243
- export const UpdateToolRequestBodyMethod = {
244
- Get: "GET",
245
- Post: "POST",
246
- Put: "PUT",
247
- Delete: "DELETE",
248
- } as const;
249
- /**
250
- * The HTTP method to use.
251
- */
252
- export type UpdateToolRequestBodyMethod = ClosedEnum<
253
- typeof UpdateToolRequestBodyMethod
254
- >;
255
-
256
- export type UpdateToolHeaders2 = {
257
- value: string;
258
- encrypted?: boolean | undefined;
259
- };
260
-
261
- export type UpdateToolRequestBodyToolsHeaders = UpdateToolHeaders2 | string;
262
-
263
- /**
264
- * The blueprint for the HTTP request. The `arguments` field will be used to replace the placeholders in the `url`, `headers`, `body`, and `arguments` fields.
265
- */
266
- export type UpdateToolRequestBodyBlueprint = {
267
- /**
268
- * The URL to send the request to.
269
- */
270
- url: string;
271
- /**
272
- * The HTTP method to use.
273
- */
274
- method: UpdateToolRequestBodyMethod;
275
- /**
276
- * The headers to send with the request. Can be a string value or an object with value and encrypted properties.
277
- */
278
- headers?: { [k: string]: UpdateToolHeaders2 | string } | undefined;
279
- /**
280
- * The body to send with the request.
281
- */
282
- body?: { [k: string]: any } | undefined;
283
- };
284
-
285
- /**
286
- * The type of the argument.
287
- */
288
- export const UpdateToolRequestBodyToolsRequest3Type = {
289
- String: "string",
290
- Number: "number",
291
- Boolean: "boolean",
292
- } as const;
293
- /**
294
- * The type of the argument.
295
- */
296
- export type UpdateToolRequestBodyToolsRequest3Type = ClosedEnum<
297
- typeof UpdateToolRequestBodyToolsRequest3Type
298
- >;
299
-
300
- /**
301
- * The default value of the argument.
302
- */
303
- export type UpdateToolRequestBodyDefaultValue = string | number | boolean;
304
-
305
- export type UpdateToolRequestBodyArguments = {
306
- /**
307
- * The type of the argument.
308
- */
309
- type: UpdateToolRequestBodyToolsRequest3Type;
310
- /**
311
- * A description of the argument.
312
- */
313
- description: string;
314
- /**
315
- * 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.
316
- */
317
- sendToModel?: boolean | undefined;
318
- /**
319
- * The default value of the argument.
320
- */
321
- defaultValue?: string | number | boolean | undefined;
322
- };
323
-
324
- export type UpdateToolRequestBodyHttp = {
325
- /**
326
- * The blueprint for the HTTP request. The `arguments` field will be used to replace the placeholders in the `url`, `headers`, `body`, and `arguments` fields.
327
- */
328
- blueprint: UpdateToolRequestBodyBlueprint;
329
- /**
330
- * The arguments to send with the request. The keys will be used to replace the placeholders in the `blueprint` field.
331
- */
332
- arguments?: { [k: string]: UpdateToolRequestBodyArguments } | undefined;
333
- };
334
-
335
- /**
336
- * Updates an existing HTTP tool configuration.
337
- */
338
- export type UpdateHTTPTool = {
339
- /**
340
- * Entity storage path in the format: `project/folder/subfolder/...`
341
- *
342
- * @remarks
343
- *
344
- * The first element identifies the project, followed by nested folders (auto-created as needed).
345
- *
346
- * With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
347
- */
348
- path?: string | undefined;
349
- /**
350
- * Unique key of the tool as it will be displayed in the UI
351
- */
352
- key?: string | undefined;
353
- /**
354
- * 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.
355
- */
356
- displayName?: string | undefined;
357
- /**
358
- * 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.
359
- */
360
- description?: string | undefined;
361
- /**
362
- * 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.
363
- */
364
- status?: UpdateToolRequestBodyToolsRequestStatus | undefined;
365
- type: "http";
366
- http?: UpdateToolRequestBodyHttp | undefined;
367
- };
368
-
369
- /**
370
- * 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.
371
- */
372
- export const UpdateToolRequestBodyToolsStatus = {
373
- Live: "live",
374
- Draft: "draft",
375
- Pending: "pending",
376
- Published: "published",
377
- } as const;
378
- /**
379
- * 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.
380
- */
381
- export type UpdateToolRequestBodyToolsStatus = ClosedEnum<
382
- typeof UpdateToolRequestBodyToolsStatus
383
- >;
384
-
385
- /**
386
- * 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.
387
- */
388
- export type UpdateToolRequestBodySchema = {
389
- /**
390
- * The JSON Schema type
391
- */
392
- type: string;
393
- /**
394
- * The properties of the JSON Schema object
395
- */
396
- properties: { [k: string]: any };
397
- /**
398
- * Array of required property names
399
- */
400
- required: Array<string>;
401
- additionalProperties?: { [k: string]: any } | undefined;
402
- };
403
-
404
- export type UpdateToolRequestBodyJsonSchema = {
405
- /**
406
- * 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.
407
- */
408
- name: string;
409
- /**
410
- * A description of what the response format is for. This will be shown to the user.
411
- */
412
- description: string;
413
- /**
414
- * 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.
415
- */
416
- schema: UpdateToolRequestBodySchema;
417
- /**
418
- * 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.
419
- */
420
- strict?: boolean | undefined;
421
- };
422
-
423
- /**
424
- * Updates an existing JSON Schema tool configuration.
425
- */
426
- export type UpdateJSONSchemaTool = {
427
- /**
428
- * Entity storage path in the format: `project/folder/subfolder/...`
429
- *
430
- * @remarks
431
- *
432
- * The first element identifies the project, followed by nested folders (auto-created as needed).
433
- *
434
- * With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
435
- */
436
- path?: string | undefined;
437
- /**
438
- * Unique key of the tool as it will be displayed in the UI
439
- */
440
- key?: string | undefined;
441
- /**
442
- * 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.
443
- */
444
- displayName?: string | undefined;
445
- /**
446
- * 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.
447
- */
448
- description?: string | undefined;
449
- /**
450
- * 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.
451
- */
452
- status?: UpdateToolRequestBodyToolsStatus | undefined;
453
- type: "json_schema";
454
- jsonSchema?: UpdateToolRequestBodyJsonSchema | undefined;
455
- };
456
-
457
- /**
458
- * 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.
459
- */
460
- export const UpdateToolRequestBodyStatus = {
461
- Live: "live",
462
- Draft: "draft",
463
- Pending: "pending",
464
- Published: "published",
465
- } as const;
466
- /**
467
- * 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.
468
- */
469
- export type UpdateToolRequestBodyStatus = ClosedEnum<
470
- typeof UpdateToolRequestBodyStatus
471
- >;
472
-
473
- /**
474
- * The type must be "object"
475
- */
476
- export const UpdateToolRequestBodyToolsRequest1Type = {
477
- Object: "object",
478
- } as const;
479
- /**
480
- * The type must be "object"
481
- */
482
- export type UpdateToolRequestBodyToolsRequest1Type = ClosedEnum<
483
- typeof UpdateToolRequestBodyToolsRequest1Type
484
- >;
485
-
486
- /**
487
- * 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.
488
- */
489
- export type UpdateToolRequestBodyParameters = {
490
- /**
491
- * The type must be "object"
492
- */
493
- type: UpdateToolRequestBodyToolsRequest1Type;
494
- /**
495
- * The properties of the function parameters
496
- */
497
- properties: { [k: string]: any };
498
- /**
499
- * Array of required parameter names
500
- */
501
- required: Array<string>;
502
- additionalProperties?: { [k: string]: any } | undefined;
503
- };
504
-
505
- export type UpdateToolRequestBodyFunction = {
506
- /**
507
- * 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.
508
- */
509
- name: string;
510
- /**
511
- * A description of what the function does, used by the model to choose when and how to call the function.
512
- */
513
- description?: string | undefined;
514
- /**
515
- * 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.
516
- */
517
- strict?: boolean | undefined;
518
- /**
519
- * 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.
520
- */
521
- parameters?: UpdateToolRequestBodyParameters | undefined;
522
- };
523
-
524
- /**
525
- * Updates an existing function tool configuration.
526
- */
527
- export type UpdateFunctionTool = {
528
- /**
529
- * Entity storage path in the format: `project/folder/subfolder/...`
530
- *
531
- * @remarks
532
- *
533
- * The first element identifies the project, followed by nested folders (auto-created as needed).
534
- *
535
- * With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
536
- */
537
- path?: string | undefined;
538
- /**
539
- * Unique key of the tool as it will be displayed in the UI
540
- */
541
- key?: string | undefined;
542
- /**
543
- * 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.
544
- */
545
- displayName?: string | undefined;
546
- /**
547
- * 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.
548
- */
549
- description?: string | undefined;
550
- /**
551
- * 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.
552
- */
553
- status?: UpdateToolRequestBodyStatus | undefined;
554
- type: "function";
555
- function?: UpdateToolRequestBodyFunction | undefined;
556
- };
557
-
558
- /**
559
- * The tool to update
560
- */
561
- export type UpdateToolRequestBody =
562
- | UpdateFunctionTool
563
- | UpdateJSONSchemaTool
564
- | UpdateHTTPTool
565
- | UpdateMCPTool
566
- | UpdateCodeExecutionTool;
567
-
568
- export type UpdateToolRequest = {
569
- toolId: string;
570
- /**
571
- * The tool to update
572
- */
573
- requestBody?:
574
- | UpdateFunctionTool
575
- | UpdateJSONSchemaTool
576
- | UpdateHTTPTool
577
- | UpdateMCPTool
578
- | UpdateCodeExecutionTool
579
- | undefined;
580
- };
581
-
582
- /**
583
- * 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.
584
- */
585
- export const UpdateToolResponseBodyToolsResponse200ApplicationJSONStatus = {
586
- Live: "live",
587
- Draft: "draft",
588
- Pending: "pending",
589
- Published: "published",
590
- } as const;
591
- /**
592
- * 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.
593
- */
594
- export type UpdateToolResponseBodyToolsResponse200ApplicationJSONStatus =
595
- ClosedEnum<
596
- typeof UpdateToolResponseBodyToolsResponse200ApplicationJSONStatus
597
- >;
598
-
599
- /**
600
- * The type must be "object"
601
- */
602
- export const UpdateToolResponseBodyToolsResponse200ApplicationJson5Type = {
603
- Object: "object",
604
- } as const;
605
- /**
606
- * The type must be "object"
607
- */
608
- export type UpdateToolResponseBodyToolsResponse200ApplicationJson5Type =
609
- ClosedEnum<typeof UpdateToolResponseBodyToolsResponse200ApplicationJson5Type>;
610
-
611
- /**
612
- * 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.
613
- */
614
- export type UpdateToolResponseBodyToolsParameters = {
615
- /**
616
- * The type must be "object"
617
- */
618
- type: UpdateToolResponseBodyToolsResponse200ApplicationJson5Type;
619
- /**
620
- * The properties of the function parameters
621
- */
622
- properties: { [k: string]: any };
623
- /**
624
- * Array of required parameter names
625
- */
626
- required: Array<string>;
627
- additionalProperties?: { [k: string]: any } | undefined;
628
- };
629
-
630
- export const UpdateToolResponseBodyLanguage = {
631
- Python: "python",
632
- } as const;
633
- export type UpdateToolResponseBodyLanguage = ClosedEnum<
634
- typeof UpdateToolResponseBodyLanguage
635
- >;
636
-
637
- export type UpdateToolResponseBodyCodeTool = {
638
- /**
639
- * 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.
640
- */
641
- parameters?: UpdateToolResponseBodyToolsParameters | undefined;
642
- language: UpdateToolResponseBodyLanguage;
643
- /**
644
- * The code to execute.
645
- */
646
- code: string;
647
- };
648
-
649
- /**
650
- * Executes code snippets in a sandboxed environment, currently supporting Python.
651
- */
652
- export type UpdateToolResponseBodyCodeExecutionTool = {
653
- id: string;
654
- /**
655
- * Entity storage path in the format: `project/folder/subfolder/...`
656
- *
657
- * @remarks
658
- *
659
- * The first element identifies the project, followed by nested folders (auto-created as needed).
660
- *
661
- * With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
662
- */
663
- path: string;
664
- /**
665
- * Unique key of the tool as it will be displayed in the UI
666
- */
667
- key: string;
668
- /**
669
- * 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.
670
- */
671
- displayName?: string | undefined;
672
- /**
673
- * 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.
674
- */
675
- description: string;
676
- /**
677
- * The id of the user that created the tool
678
- */
679
- createdById?: string | undefined;
680
- /**
681
- * The id of the user that last updated the tool
682
- */
683
- updatedById?: string | undefined;
684
- projectId: string;
685
- workspaceId: string;
686
- created: string;
687
- updated: string;
688
- /**
689
- * 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.
690
- */
691
- status: UpdateToolResponseBodyToolsResponse200ApplicationJSONStatus;
692
- versionHash?: string | undefined;
693
- type: "code";
694
- codeTool: UpdateToolResponseBodyCodeTool;
695
- };
696
-
697
- /**
698
- * 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.
699
- */
700
- export const UpdateToolResponseBodyToolsResponse200Status = {
701
- Live: "live",
702
- Draft: "draft",
703
- Pending: "pending",
704
- Published: "published",
705
- } as const;
706
- /**
707
- * 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.
708
- */
709
- export type UpdateToolResponseBodyToolsResponse200Status = ClosedEnum<
710
- typeof UpdateToolResponseBodyToolsResponse200Status
711
- >;
712
-
713
- export type UpdateToolResponseBodyHeaders = {
714
- value: string;
715
- encrypted: boolean;
716
- };
717
-
718
- export const UpdateToolResponseBodyToolsResponse200ApplicationJson4Type = {
719
- Object: "object",
720
- } as const;
721
- export type UpdateToolResponseBodyToolsResponse200ApplicationJson4Type =
722
- ClosedEnum<typeof UpdateToolResponseBodyToolsResponse200ApplicationJson4Type>;
723
-
724
- export type UpdateToolResponseBodyToolsSchema = {
725
- type: UpdateToolResponseBodyToolsResponse200ApplicationJson4Type;
726
- properties?: { [k: string]: any } | undefined;
727
- required?: Array<string> | undefined;
728
- };
729
-
730
- export type UpdateToolResponseBodyTools = {
731
- id: string;
732
- name: string;
733
- description?: string | undefined;
734
- schema: UpdateToolResponseBodyToolsSchema;
735
- };
736
-
737
- /**
738
- * The connection type used by the MCP server
739
- */
740
- export const UpdateToolResponseBodyConnectionType = {
741
- Http: "http",
742
- Sse: "sse",
743
- } as const;
744
- /**
745
- * The connection type used by the MCP server
746
- */
747
- export type UpdateToolResponseBodyConnectionType = ClosedEnum<
748
- typeof UpdateToolResponseBodyConnectionType
749
- >;
750
-
751
- export type UpdateToolResponseBodyMcp = {
752
- /**
753
- * The MCP server URL (cached for execution)
754
- */
755
- serverUrl: string;
756
- /**
757
- * HTTP headers for MCP server requests with encryption support
758
- */
759
- headers?: { [k: string]: UpdateToolResponseBodyHeaders } | undefined;
760
- /**
761
- * Array of tools available from the MCP server
762
- */
763
- tools: Array<UpdateToolResponseBodyTools>;
764
- /**
765
- * The connection type used by the MCP server
766
- */
767
- connectionType: UpdateToolResponseBodyConnectionType;
768
- };
769
-
770
- /**
771
- * A tool from a Model Context Protocol (MCP) server that provides standardized access to external capabilities.
772
- */
773
- export type UpdateToolResponseBodyMCPTool = {
774
- id: string;
775
- /**
776
- * Entity storage path in the format: `project/folder/subfolder/...`
777
- *
778
- * @remarks
779
- *
780
- * The first element identifies the project, followed by nested folders (auto-created as needed).
781
- *
782
- * With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
783
- */
784
- path: string;
785
- /**
786
- * Unique key of the tool as it will be displayed in the UI
787
- */
788
- key: string;
789
- /**
790
- * 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.
791
- */
792
- displayName?: string | undefined;
793
- /**
794
- * 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.
795
- */
796
- description: string;
797
- /**
798
- * The id of the user that created the tool
799
- */
800
- createdById?: string | undefined;
801
- /**
802
- * The id of the user that last updated the tool
803
- */
804
- updatedById?: string | undefined;
805
- projectId: string;
806
- workspaceId: string;
807
- created: string;
808
- updated: string;
809
- /**
810
- * 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.
811
- */
812
- status: UpdateToolResponseBodyToolsResponse200Status;
813
- versionHash?: string | undefined;
814
- type: "mcp";
815
- mcp: UpdateToolResponseBodyMcp;
816
- };
817
-
818
- /**
819
- * 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.
820
- */
821
- export const UpdateToolResponseBodyToolsResponseStatus = {
822
- Live: "live",
823
- Draft: "draft",
824
- Pending: "pending",
825
- Published: "published",
826
- } as const;
827
- /**
828
- * 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.
829
- */
830
- export type UpdateToolResponseBodyToolsResponseStatus = ClosedEnum<
831
- typeof UpdateToolResponseBodyToolsResponseStatus
832
- >;
833
-
834
- /**
835
- * The HTTP method to use.
836
- */
837
- export const UpdateToolResponseBodyMethod = {
838
- Get: "GET",
839
- Post: "POST",
840
- Put: "PUT",
841
- Delete: "DELETE",
842
- } as const;
843
- /**
844
- * The HTTP method to use.
845
- */
846
- export type UpdateToolResponseBodyMethod = ClosedEnum<
847
- typeof UpdateToolResponseBodyMethod
848
- >;
849
-
850
- export type UpdateToolHeadersTools2 = {
851
- value: string;
852
- encrypted: boolean;
853
- };
854
-
855
- export type UpdateToolResponseBodyToolsHeaders =
856
- | UpdateToolHeadersTools2
857
- | string;
858
-
859
- /**
860
- * The blueprint for the HTTP request. The `arguments` field will be used to replace the placeholders in the `url`, `headers`, `body`, and `arguments` fields.
861
- */
862
- export type UpdateToolResponseBodyBlueprint = {
863
- /**
864
- * The URL to send the request to.
865
- */
866
- url: string;
867
- /**
868
- * The HTTP method to use.
869
- */
870
- method: UpdateToolResponseBodyMethod;
871
- /**
872
- * The headers to send with the request. Can be a string value or an object with value and encrypted properties.
873
- */
874
- headers?: { [k: string]: UpdateToolHeadersTools2 | string } | undefined;
875
- /**
876
- * The body to send with the request.
877
- */
878
- body?: { [k: string]: any } | undefined;
879
- };
880
-
881
- /**
882
- * The type of the argument.
883
- */
884
- export const UpdateToolResponseBodyToolsResponse200ApplicationJson3Type = {
885
- String: "string",
886
- Number: "number",
887
- Boolean: "boolean",
888
- } as const;
889
- /**
890
- * The type of the argument.
891
- */
892
- export type UpdateToolResponseBodyToolsResponse200ApplicationJson3Type =
893
- ClosedEnum<typeof UpdateToolResponseBodyToolsResponse200ApplicationJson3Type>;
894
-
895
- /**
896
- * The default value of the argument.
897
- */
898
- export type UpdateToolResponseBodyDefaultValue = string | number | boolean;
899
-
900
- export type UpdateToolResponseBodyArguments = {
901
- /**
902
- * The type of the argument.
903
- */
904
- type: UpdateToolResponseBodyToolsResponse200ApplicationJson3Type;
905
- /**
906
- * A description of the argument.
907
- */
908
- description: string;
909
- /**
910
- * 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.
911
- */
912
- sendToModel: boolean;
913
- /**
914
- * The default value of the argument.
915
- */
916
- defaultValue?: string | number | boolean | undefined;
917
- };
918
-
919
- export type UpdateToolResponseBodyHttp = {
920
- /**
921
- * The blueprint for the HTTP request. The `arguments` field will be used to replace the placeholders in the `url`, `headers`, `body`, and `arguments` fields.
922
- */
923
- blueprint: UpdateToolResponseBodyBlueprint;
924
- /**
925
- * The arguments to send with the request. The keys will be used to replace the placeholders in the `blueprint` field.
926
- */
927
- arguments?: { [k: string]: UpdateToolResponseBodyArguments } | undefined;
928
- };
929
-
930
- /**
931
- * Executes HTTP requests to interact with external APIs and web services using customizable blueprints.
932
- */
933
- export type UpdateToolResponseBodyHTTPTool = {
934
- id: string;
935
- /**
936
- * Entity storage path in the format: `project/folder/subfolder/...`
937
- *
938
- * @remarks
939
- *
940
- * The first element identifies the project, followed by nested folders (auto-created as needed).
941
- *
942
- * With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
943
- */
944
- path: string;
945
- /**
946
- * Unique key of the tool as it will be displayed in the UI
947
- */
948
- key: string;
949
- /**
950
- * 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.
951
- */
952
- displayName?: string | undefined;
953
- /**
954
- * 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.
955
- */
956
- description: string;
957
- /**
958
- * The id of the user that created the tool
959
- */
960
- createdById?: string | undefined;
961
- /**
962
- * The id of the user that last updated the tool
963
- */
964
- updatedById?: string | undefined;
965
- projectId: string;
966
- workspaceId: string;
967
- created: string;
968
- updated: string;
969
- /**
970
- * 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.
971
- */
972
- status: UpdateToolResponseBodyToolsResponseStatus;
973
- versionHash?: string | undefined;
974
- type: "http";
975
- http: UpdateToolResponseBodyHttp;
976
- };
977
-
978
- /**
979
- * 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.
980
- */
981
- export const UpdateToolResponseBodyToolsStatus = {
982
- Live: "live",
983
- Draft: "draft",
984
- Pending: "pending",
985
- Published: "published",
986
- } as const;
987
- /**
988
- * 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.
989
- */
990
- export type UpdateToolResponseBodyToolsStatus = ClosedEnum<
991
- typeof UpdateToolResponseBodyToolsStatus
992
- >;
993
-
994
- /**
995
- * 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.
996
- */
997
- export type UpdateToolResponseBodySchema = {
998
- /**
999
- * The JSON Schema type
1000
- */
1001
- type: string;
1002
- /**
1003
- * The properties of the JSON Schema object
1004
- */
1005
- properties: { [k: string]: any };
1006
- /**
1007
- * Array of required property names
1008
- */
1009
- required: Array<string>;
1010
- additionalProperties?: { [k: string]: any } | undefined;
1011
- };
1012
-
1013
- export type UpdateToolResponseBodyJsonSchema = {
1014
- /**
1015
- * 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.
1016
- */
1017
- name: string;
1018
- /**
1019
- * A description of what the response format is for. This will be shown to the user.
1020
- */
1021
- description: string;
1022
- /**
1023
- * 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.
1024
- */
1025
- schema: UpdateToolResponseBodySchema;
1026
- /**
1027
- * 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.
1028
- */
1029
- strict?: boolean | undefined;
1030
- };
1031
-
1032
- /**
1033
- * A tool that enforces structured output format using JSON Schema for consistent response formatting.
1034
- */
1035
- export type UpdateToolResponseBodyJSONSchemaTool = {
1036
- id: string;
1037
- /**
1038
- * Entity storage path in the format: `project/folder/subfolder/...`
1039
- *
1040
- * @remarks
1041
- *
1042
- * The first element identifies the project, followed by nested folders (auto-created as needed).
1043
- *
1044
- * With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
1045
- */
1046
- path: string;
1047
- /**
1048
- * Unique key of the tool as it will be displayed in the UI
1049
- */
1050
- key: string;
1051
- /**
1052
- * 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.
1053
- */
1054
- displayName?: string | undefined;
1055
- /**
1056
- * 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.
1057
- */
1058
- description: string;
1059
- /**
1060
- * The id of the user that created the tool
1061
- */
1062
- createdById?: string | undefined;
1063
- /**
1064
- * The id of the user that last updated the tool
1065
- */
1066
- updatedById?: string | undefined;
1067
- projectId: string;
1068
- workspaceId: string;
1069
- created: string;
1070
- updated: string;
1071
- /**
1072
- * 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.
1073
- */
1074
- status: UpdateToolResponseBodyToolsStatus;
1075
- versionHash?: string | undefined;
1076
- type: "json_schema";
1077
- jsonSchema: UpdateToolResponseBodyJsonSchema;
1078
- };
1079
-
1080
- /**
1081
- * 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.
1082
- */
1083
- export const UpdateToolResponseBodyStatus = {
1084
- Live: "live",
1085
- Draft: "draft",
1086
- Pending: "pending",
1087
- Published: "published",
1088
- } as const;
1089
- /**
1090
- * 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.
1091
- */
1092
- export type UpdateToolResponseBodyStatus = ClosedEnum<
1093
- typeof UpdateToolResponseBodyStatus
1094
- >;
1095
-
1096
- /**
1097
- * The type must be "object"
1098
- */
1099
- export const UpdateToolResponseBodyToolsResponse200ApplicationJson1Type = {
1100
- Object: "object",
1101
- } as const;
1102
- /**
1103
- * The type must be "object"
1104
- */
1105
- export type UpdateToolResponseBodyToolsResponse200ApplicationJson1Type =
1106
- ClosedEnum<typeof UpdateToolResponseBodyToolsResponse200ApplicationJson1Type>;
1107
-
1108
- /**
1109
- * 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.
1110
- */
1111
- export type UpdateToolResponseBodyParameters = {
1112
- /**
1113
- * The type must be "object"
1114
- */
1115
- type: UpdateToolResponseBodyToolsResponse200ApplicationJson1Type;
1116
- /**
1117
- * The properties of the function parameters
1118
- */
1119
- properties: { [k: string]: any };
1120
- /**
1121
- * Array of required parameter names
1122
- */
1123
- required: Array<string>;
1124
- additionalProperties?: { [k: string]: any } | undefined;
1125
- };
1126
-
1127
- export type UpdateToolResponseBodyFunction = {
1128
- /**
1129
- * 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.
1130
- */
1131
- name: string;
1132
- /**
1133
- * A description of what the function does, used by the model to choose when and how to call the function.
1134
- */
1135
- description?: string | undefined;
1136
- /**
1137
- * 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.
1138
- */
1139
- strict?: boolean | undefined;
1140
- /**
1141
- * 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.
1142
- */
1143
- parameters?: UpdateToolResponseBodyParameters | undefined;
1144
- };
1145
-
1146
- /**
1147
- * A custom function tool that allows the model to call predefined functions with structured parameters.
1148
- */
1149
- export type UpdateToolResponseBodyFunctionTool = {
1150
- id: string;
1151
- /**
1152
- * Entity storage path in the format: `project/folder/subfolder/...`
1153
- *
1154
- * @remarks
1155
- *
1156
- * The first element identifies the project, followed by nested folders (auto-created as needed).
1157
- *
1158
- * With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
1159
- */
1160
- path: string;
1161
- /**
1162
- * Unique key of the tool as it will be displayed in the UI
1163
- */
1164
- key: string;
1165
- /**
1166
- * 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.
1167
- */
1168
- displayName?: string | undefined;
1169
- /**
1170
- * 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.
1171
- */
1172
- description: string;
1173
- /**
1174
- * The id of the user that created the tool
1175
- */
1176
- createdById?: string | undefined;
1177
- /**
1178
- * The id of the user that last updated the tool
1179
- */
1180
- updatedById?: string | undefined;
1181
- projectId: string;
1182
- workspaceId: string;
1183
- created: string;
1184
- updated: string;
1185
- /**
1186
- * 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.
1187
- */
1188
- status: UpdateToolResponseBodyStatus;
1189
- versionHash?: string | undefined;
1190
- type: "function";
1191
- function: UpdateToolResponseBodyFunction;
1192
- };
1193
-
1194
- /**
1195
- * Successfully updated the tool.
1196
- */
1197
- export type UpdateToolResponseBody =
1198
- | UpdateToolResponseBodyFunctionTool
1199
- | UpdateToolResponseBodyJSONSchemaTool
1200
- | UpdateToolResponseBodyHTTPTool
1201
- | UpdateToolResponseBodyMCPTool
1202
- | UpdateToolResponseBodyCodeExecutionTool;
1203
-
1204
- /** @internal */
1205
- export const UpdateToolRequestBodyToolsRequest5Status$outboundSchema:
1206
- z.ZodNativeEnum<typeof UpdateToolRequestBodyToolsRequest5Status> = z
1207
- .nativeEnum(UpdateToolRequestBodyToolsRequest5Status);
1208
-
1209
- /** @internal */
1210
- export const UpdateToolRequestBodyToolsRequest5CodeToolType$outboundSchema:
1211
- z.ZodNativeEnum<typeof UpdateToolRequestBodyToolsRequest5CodeToolType> = z
1212
- .nativeEnum(UpdateToolRequestBodyToolsRequest5CodeToolType);
1213
-
1214
- /** @internal */
1215
- export type UpdateToolRequestBodyToolsParameters$Outbound = {
1216
- type: string;
1217
- properties: { [k: string]: any };
1218
- required: Array<string>;
1219
- [additionalProperties: string]: unknown;
1220
- };
1221
-
1222
- /** @internal */
1223
- export const UpdateToolRequestBodyToolsParameters$outboundSchema: z.ZodType<
1224
- UpdateToolRequestBodyToolsParameters$Outbound,
1225
- z.ZodTypeDef,
1226
- UpdateToolRequestBodyToolsParameters
1227
- > = z.object({
1228
- type: UpdateToolRequestBodyToolsRequest5CodeToolType$outboundSchema,
1229
- properties: z.record(z.any()),
1230
- required: z.array(z.string()),
1231
- additionalProperties: z.record(z.any()).optional(),
1232
- }).transform((v) => {
1233
- return {
1234
- ...v.additionalProperties,
1235
- ...remap$(v, {
1236
- additionalProperties: null,
1237
- }),
1238
- };
1239
- });
1240
-
1241
- export function updateToolRequestBodyToolsParametersToJSON(
1242
- updateToolRequestBodyToolsParameters: UpdateToolRequestBodyToolsParameters,
1243
- ): string {
1244
- return JSON.stringify(
1245
- UpdateToolRequestBodyToolsParameters$outboundSchema.parse(
1246
- updateToolRequestBodyToolsParameters,
1247
- ),
1248
- );
1249
- }
1250
-
1251
- /** @internal */
1252
- export const UpdateToolRequestBodyLanguage$outboundSchema: z.ZodNativeEnum<
1253
- typeof UpdateToolRequestBodyLanguage
1254
- > = z.nativeEnum(UpdateToolRequestBodyLanguage);
1255
-
1256
- /** @internal */
1257
- export type UpdateToolRequestBodyCodeTool$Outbound = {
1258
- parameters?: UpdateToolRequestBodyToolsParameters$Outbound | undefined;
1259
- language: string;
1260
- code: string;
1261
- };
1262
-
1263
- /** @internal */
1264
- export const UpdateToolRequestBodyCodeTool$outboundSchema: z.ZodType<
1265
- UpdateToolRequestBodyCodeTool$Outbound,
1266
- z.ZodTypeDef,
1267
- UpdateToolRequestBodyCodeTool
1268
- > = z.object({
1269
- parameters: z.lazy(() => UpdateToolRequestBodyToolsParameters$outboundSchema)
1270
- .optional(),
1271
- language: UpdateToolRequestBodyLanguage$outboundSchema,
1272
- code: z.string(),
1273
- });
1274
-
1275
- export function updateToolRequestBodyCodeToolToJSON(
1276
- updateToolRequestBodyCodeTool: UpdateToolRequestBodyCodeTool,
1277
- ): string {
1278
- return JSON.stringify(
1279
- UpdateToolRequestBodyCodeTool$outboundSchema.parse(
1280
- updateToolRequestBodyCodeTool,
1281
- ),
1282
- );
1283
- }
1284
-
1285
- /** @internal */
1286
- export type UpdateCodeExecutionTool$Outbound = {
1287
- path?: string | undefined;
1288
- key?: string | undefined;
1289
- display_name?: string | undefined;
1290
- description?: string | undefined;
1291
- status: string;
1292
- type: "code";
1293
- code_tool?: UpdateToolRequestBodyCodeTool$Outbound | undefined;
1294
- };
1295
-
1296
- /** @internal */
1297
- export const UpdateCodeExecutionTool$outboundSchema: z.ZodType<
1298
- UpdateCodeExecutionTool$Outbound,
1299
- z.ZodTypeDef,
1300
- UpdateCodeExecutionTool
1301
- > = z.object({
1302
- path: z.string().optional(),
1303
- key: z.string().optional(),
1304
- displayName: z.string().optional(),
1305
- description: z.string().optional(),
1306
- status: UpdateToolRequestBodyToolsRequest5Status$outboundSchema.default(
1307
- "live",
1308
- ),
1309
- type: z.literal("code"),
1310
- codeTool: z.lazy(() => UpdateToolRequestBodyCodeTool$outboundSchema)
1311
- .optional(),
1312
- }).transform((v) => {
1313
- return remap$(v, {
1314
- displayName: "display_name",
1315
- codeTool: "code_tool",
1316
- });
1317
- });
1318
-
1319
- export function updateCodeExecutionToolToJSON(
1320
- updateCodeExecutionTool: UpdateCodeExecutionTool,
1321
- ): string {
1322
- return JSON.stringify(
1323
- UpdateCodeExecutionTool$outboundSchema.parse(updateCodeExecutionTool),
1324
- );
1325
- }
1326
-
1327
- /** @internal */
1328
- export const UpdateToolRequestBodyToolsRequest4Status$outboundSchema:
1329
- z.ZodNativeEnum<typeof UpdateToolRequestBodyToolsRequest4Status> = z
1330
- .nativeEnum(UpdateToolRequestBodyToolsRequest4Status);
1331
-
1332
- /** @internal */
1333
- export type UpdateToolRequestBodyHeaders$Outbound = {
1334
- value: string;
1335
- encrypted: boolean;
1336
- };
1337
-
1338
- /** @internal */
1339
- export const UpdateToolRequestBodyHeaders$outboundSchema: z.ZodType<
1340
- UpdateToolRequestBodyHeaders$Outbound,
1341
- z.ZodTypeDef,
1342
- UpdateToolRequestBodyHeaders
1343
- > = z.object({
1344
- value: z.string(),
1345
- encrypted: z.boolean().default(false),
1346
- });
1347
-
1348
- export function updateToolRequestBodyHeadersToJSON(
1349
- updateToolRequestBodyHeaders: UpdateToolRequestBodyHeaders,
1350
- ): string {
1351
- return JSON.stringify(
1352
- UpdateToolRequestBodyHeaders$outboundSchema.parse(
1353
- updateToolRequestBodyHeaders,
1354
- ),
1355
- );
1356
- }
1357
-
1358
- /** @internal */
1359
- export const UpdateToolRequestBodyToolsRequest4McpType$outboundSchema:
1360
- z.ZodNativeEnum<typeof UpdateToolRequestBodyToolsRequest4McpType> = z
1361
- .nativeEnum(UpdateToolRequestBodyToolsRequest4McpType);
1362
-
1363
- /** @internal */
1364
- export type UpdateToolRequestBodyToolsSchema$Outbound = {
1365
- type: string;
1366
- properties?: { [k: string]: any } | undefined;
1367
- required?: Array<string> | undefined;
1368
- };
1369
-
1370
- /** @internal */
1371
- export const UpdateToolRequestBodyToolsSchema$outboundSchema: z.ZodType<
1372
- UpdateToolRequestBodyToolsSchema$Outbound,
1373
- z.ZodTypeDef,
1374
- UpdateToolRequestBodyToolsSchema
1375
- > = z.object({
1376
- type: UpdateToolRequestBodyToolsRequest4McpType$outboundSchema,
1377
- properties: z.record(z.any()).optional(),
1378
- required: z.array(z.string()).optional(),
1379
- });
1380
-
1381
- export function updateToolRequestBodyToolsSchemaToJSON(
1382
- updateToolRequestBodyToolsSchema: UpdateToolRequestBodyToolsSchema,
1383
- ): string {
1384
- return JSON.stringify(
1385
- UpdateToolRequestBodyToolsSchema$outboundSchema.parse(
1386
- updateToolRequestBodyToolsSchema,
1387
- ),
1388
- );
1389
- }
1390
-
1391
- /** @internal */
1392
- export type RequestBodyTools$Outbound = {
1393
- id: string;
1394
- name: string;
1395
- description?: string | undefined;
1396
- schema: UpdateToolRequestBodyToolsSchema$Outbound;
1397
- };
1398
-
1399
- /** @internal */
1400
- export const RequestBodyTools$outboundSchema: z.ZodType<
1401
- RequestBodyTools$Outbound,
1402
- z.ZodTypeDef,
1403
- RequestBodyTools
1404
- > = z.object({
1405
- id: z.string().default("01KJ60BRPFEV9H5PDGVNJXXF0N"),
1406
- name: z.string(),
1407
- description: z.string().optional(),
1408
- schema: z.lazy(() => UpdateToolRequestBodyToolsSchema$outboundSchema),
1409
- });
1410
-
1411
- export function requestBodyToolsToJSON(
1412
- requestBodyTools: RequestBodyTools,
1413
- ): string {
1414
- return JSON.stringify(
1415
- RequestBodyTools$outboundSchema.parse(requestBodyTools),
1416
- );
1417
- }
1418
-
1419
- /** @internal */
1420
- export const UpdateToolRequestBodyConnectionType$outboundSchema:
1421
- z.ZodNativeEnum<typeof UpdateToolRequestBodyConnectionType> = z.nativeEnum(
1422
- UpdateToolRequestBodyConnectionType,
1423
- );
1424
-
1425
- /** @internal */
1426
- export type UpdateToolRequestBodyMcp$Outbound = {
1427
- server_url?: string | undefined;
1428
- headers?: { [k: string]: UpdateToolRequestBodyHeaders$Outbound } | undefined;
1429
- tools?: Array<RequestBodyTools$Outbound> | undefined;
1430
- connection_type?: string | undefined;
1431
- };
1432
-
1433
- /** @internal */
1434
- export const UpdateToolRequestBodyMcp$outboundSchema: z.ZodType<
1435
- UpdateToolRequestBodyMcp$Outbound,
1436
- z.ZodTypeDef,
1437
- UpdateToolRequestBodyMcp
1438
- > = z.object({
1439
- serverUrl: z.string().optional(),
1440
- headers: z.record(z.lazy(() => UpdateToolRequestBodyHeaders$outboundSchema))
1441
- .optional(),
1442
- tools: z.array(z.lazy(() => RequestBodyTools$outboundSchema)).optional(),
1443
- connectionType: UpdateToolRequestBodyConnectionType$outboundSchema.optional(),
1444
- }).transform((v) => {
1445
- return remap$(v, {
1446
- serverUrl: "server_url",
1447
- connectionType: "connection_type",
1448
- });
1449
- });
1450
-
1451
- export function updateToolRequestBodyMcpToJSON(
1452
- updateToolRequestBodyMcp: UpdateToolRequestBodyMcp,
1453
- ): string {
1454
- return JSON.stringify(
1455
- UpdateToolRequestBodyMcp$outboundSchema.parse(updateToolRequestBodyMcp),
1456
- );
1457
- }
1458
-
1459
- /** @internal */
1460
- export type UpdateMCPTool$Outbound = {
1461
- path?: string | undefined;
1462
- key?: string | undefined;
1463
- display_name?: string | undefined;
1464
- description?: string | undefined;
1465
- status: string;
1466
- type: "mcp";
1467
- mcp?: UpdateToolRequestBodyMcp$Outbound | undefined;
1468
- };
1469
-
1470
- /** @internal */
1471
- export const UpdateMCPTool$outboundSchema: z.ZodType<
1472
- UpdateMCPTool$Outbound,
1473
- z.ZodTypeDef,
1474
- UpdateMCPTool
1475
- > = z.object({
1476
- path: z.string().optional(),
1477
- key: z.string().optional(),
1478
- displayName: z.string().optional(),
1479
- description: z.string().optional(),
1480
- status: UpdateToolRequestBodyToolsRequest4Status$outboundSchema.default(
1481
- "live",
1482
- ),
1483
- type: z.literal("mcp"),
1484
- mcp: z.lazy(() => UpdateToolRequestBodyMcp$outboundSchema).optional(),
1485
- }).transform((v) => {
1486
- return remap$(v, {
1487
- displayName: "display_name",
1488
- });
1489
- });
1490
-
1491
- export function updateMCPToolToJSON(updateMCPTool: UpdateMCPTool): string {
1492
- return JSON.stringify(UpdateMCPTool$outboundSchema.parse(updateMCPTool));
1493
- }
1494
-
1495
- /** @internal */
1496
- export const UpdateToolRequestBodyToolsRequestStatus$outboundSchema:
1497
- z.ZodNativeEnum<typeof UpdateToolRequestBodyToolsRequestStatus> = z
1498
- .nativeEnum(UpdateToolRequestBodyToolsRequestStatus);
1499
-
1500
- /** @internal */
1501
- export const UpdateToolRequestBodyMethod$outboundSchema: z.ZodNativeEnum<
1502
- typeof UpdateToolRequestBodyMethod
1503
- > = z.nativeEnum(UpdateToolRequestBodyMethod);
1504
-
1505
- /** @internal */
1506
- export type UpdateToolHeaders2$Outbound = {
1507
- value: string;
1508
- encrypted: boolean;
1509
- };
1510
-
1511
- /** @internal */
1512
- export const UpdateToolHeaders2$outboundSchema: z.ZodType<
1513
- UpdateToolHeaders2$Outbound,
1514
- z.ZodTypeDef,
1515
- UpdateToolHeaders2
1516
- > = z.object({
1517
- value: z.string(),
1518
- encrypted: z.boolean().default(false),
1519
- });
1520
-
1521
- export function updateToolHeaders2ToJSON(
1522
- updateToolHeaders2: UpdateToolHeaders2,
1523
- ): string {
1524
- return JSON.stringify(
1525
- UpdateToolHeaders2$outboundSchema.parse(updateToolHeaders2),
1526
- );
1527
- }
1528
-
1529
- /** @internal */
1530
- export type UpdateToolRequestBodyToolsHeaders$Outbound =
1531
- | UpdateToolHeaders2$Outbound
1532
- | string;
1533
-
1534
- /** @internal */
1535
- export const UpdateToolRequestBodyToolsHeaders$outboundSchema: z.ZodType<
1536
- UpdateToolRequestBodyToolsHeaders$Outbound,
1537
- z.ZodTypeDef,
1538
- UpdateToolRequestBodyToolsHeaders
1539
- > = z.union([z.lazy(() => UpdateToolHeaders2$outboundSchema), z.string()]);
1540
-
1541
- export function updateToolRequestBodyToolsHeadersToJSON(
1542
- updateToolRequestBodyToolsHeaders: UpdateToolRequestBodyToolsHeaders,
1543
- ): string {
1544
- return JSON.stringify(
1545
- UpdateToolRequestBodyToolsHeaders$outboundSchema.parse(
1546
- updateToolRequestBodyToolsHeaders,
1547
- ),
1548
- );
1549
- }
1550
-
1551
- /** @internal */
1552
- export type UpdateToolRequestBodyBlueprint$Outbound = {
1553
- url: string;
1554
- method: string;
1555
- headers?: { [k: string]: UpdateToolHeaders2$Outbound | string } | undefined;
1556
- body?: { [k: string]: any } | undefined;
1557
- };
1558
-
1559
- /** @internal */
1560
- export const UpdateToolRequestBodyBlueprint$outboundSchema: z.ZodType<
1561
- UpdateToolRequestBodyBlueprint$Outbound,
1562
- z.ZodTypeDef,
1563
- UpdateToolRequestBodyBlueprint
1564
- > = z.object({
1565
- url: z.string(),
1566
- method: UpdateToolRequestBodyMethod$outboundSchema,
1567
- headers: z.record(
1568
- z.union([z.lazy(() => UpdateToolHeaders2$outboundSchema), z.string()]),
1569
- ).optional(),
1570
- body: z.record(z.any()).optional(),
1571
- });
1572
-
1573
- export function updateToolRequestBodyBlueprintToJSON(
1574
- updateToolRequestBodyBlueprint: UpdateToolRequestBodyBlueprint,
1575
- ): string {
1576
- return JSON.stringify(
1577
- UpdateToolRequestBodyBlueprint$outboundSchema.parse(
1578
- updateToolRequestBodyBlueprint,
1579
- ),
1580
- );
1581
- }
1582
-
1583
- /** @internal */
1584
- export const UpdateToolRequestBodyToolsRequest3Type$outboundSchema:
1585
- z.ZodNativeEnum<typeof UpdateToolRequestBodyToolsRequest3Type> = z.nativeEnum(
1586
- UpdateToolRequestBodyToolsRequest3Type,
1587
- );
1588
-
1589
- /** @internal */
1590
- export type UpdateToolRequestBodyDefaultValue$Outbound =
1591
- | string
1592
- | number
1593
- | boolean;
1594
-
1595
- /** @internal */
1596
- export const UpdateToolRequestBodyDefaultValue$outboundSchema: z.ZodType<
1597
- UpdateToolRequestBodyDefaultValue$Outbound,
1598
- z.ZodTypeDef,
1599
- UpdateToolRequestBodyDefaultValue
1600
- > = z.union([z.string(), z.number(), z.boolean()]);
1601
-
1602
- export function updateToolRequestBodyDefaultValueToJSON(
1603
- updateToolRequestBodyDefaultValue: UpdateToolRequestBodyDefaultValue,
1604
- ): string {
1605
- return JSON.stringify(
1606
- UpdateToolRequestBodyDefaultValue$outboundSchema.parse(
1607
- updateToolRequestBodyDefaultValue,
1608
- ),
1609
- );
1610
- }
1611
-
1612
- /** @internal */
1613
- export type UpdateToolRequestBodyArguments$Outbound = {
1614
- type: string;
1615
- description: string;
1616
- send_to_model: boolean;
1617
- default_value?: string | number | boolean | undefined;
1618
- };
1619
-
1620
- /** @internal */
1621
- export const UpdateToolRequestBodyArguments$outboundSchema: z.ZodType<
1622
- UpdateToolRequestBodyArguments$Outbound,
1623
- z.ZodTypeDef,
1624
- UpdateToolRequestBodyArguments
1625
- > = z.object({
1626
- type: UpdateToolRequestBodyToolsRequest3Type$outboundSchema,
1627
- description: z.string(),
1628
- sendToModel: z.boolean().default(true),
1629
- defaultValue: z.union([z.string(), z.number(), z.boolean()]).optional(),
1630
- }).transform((v) => {
1631
- return remap$(v, {
1632
- sendToModel: "send_to_model",
1633
- defaultValue: "default_value",
1634
- });
1635
- });
1636
-
1637
- export function updateToolRequestBodyArgumentsToJSON(
1638
- updateToolRequestBodyArguments: UpdateToolRequestBodyArguments,
1639
- ): string {
1640
- return JSON.stringify(
1641
- UpdateToolRequestBodyArguments$outboundSchema.parse(
1642
- updateToolRequestBodyArguments,
1643
- ),
1644
- );
1645
- }
1646
-
1647
- /** @internal */
1648
- export type UpdateToolRequestBodyHttp$Outbound = {
1649
- blueprint: UpdateToolRequestBodyBlueprint$Outbound;
1650
- arguments?:
1651
- | { [k: string]: UpdateToolRequestBodyArguments$Outbound }
1652
- | undefined;
1653
- };
1654
-
1655
- /** @internal */
1656
- export const UpdateToolRequestBodyHttp$outboundSchema: z.ZodType<
1657
- UpdateToolRequestBodyHttp$Outbound,
1658
- z.ZodTypeDef,
1659
- UpdateToolRequestBodyHttp
1660
- > = z.object({
1661
- blueprint: z.lazy(() => UpdateToolRequestBodyBlueprint$outboundSchema),
1662
- arguments: z.record(
1663
- z.lazy(() => UpdateToolRequestBodyArguments$outboundSchema),
1664
- ).optional(),
1665
- });
1666
-
1667
- export function updateToolRequestBodyHttpToJSON(
1668
- updateToolRequestBodyHttp: UpdateToolRequestBodyHttp,
1669
- ): string {
1670
- return JSON.stringify(
1671
- UpdateToolRequestBodyHttp$outboundSchema.parse(updateToolRequestBodyHttp),
1672
- );
1673
- }
1674
-
1675
- /** @internal */
1676
- export type UpdateHTTPTool$Outbound = {
1677
- path?: string | undefined;
1678
- key?: string | undefined;
1679
- display_name?: string | undefined;
1680
- description?: string | undefined;
1681
- status: string;
1682
- type: "http";
1683
- http?: UpdateToolRequestBodyHttp$Outbound | undefined;
1684
- };
1685
-
1686
- /** @internal */
1687
- export const UpdateHTTPTool$outboundSchema: z.ZodType<
1688
- UpdateHTTPTool$Outbound,
1689
- z.ZodTypeDef,
1690
- UpdateHTTPTool
1691
- > = z.object({
1692
- path: z.string().optional(),
1693
- key: z.string().optional(),
1694
- displayName: z.string().optional(),
1695
- description: z.string().optional(),
1696
- status: UpdateToolRequestBodyToolsRequestStatus$outboundSchema.default(
1697
- "live",
1698
- ),
1699
- type: z.literal("http"),
1700
- http: z.lazy(() => UpdateToolRequestBodyHttp$outboundSchema).optional(),
1701
- }).transform((v) => {
1702
- return remap$(v, {
1703
- displayName: "display_name",
1704
- });
1705
- });
1706
-
1707
- export function updateHTTPToolToJSON(updateHTTPTool: UpdateHTTPTool): string {
1708
- return JSON.stringify(UpdateHTTPTool$outboundSchema.parse(updateHTTPTool));
1709
- }
1710
-
1711
- /** @internal */
1712
- export const UpdateToolRequestBodyToolsStatus$outboundSchema: z.ZodNativeEnum<
1713
- typeof UpdateToolRequestBodyToolsStatus
1714
- > = z.nativeEnum(UpdateToolRequestBodyToolsStatus);
1715
-
1716
- /** @internal */
1717
- export type UpdateToolRequestBodySchema$Outbound = {
1718
- type: string;
1719
- properties: { [k: string]: any };
1720
- required: Array<string>;
1721
- [additionalProperties: string]: unknown;
1722
- };
1723
-
1724
- /** @internal */
1725
- export const UpdateToolRequestBodySchema$outboundSchema: z.ZodType<
1726
- UpdateToolRequestBodySchema$Outbound,
1727
- z.ZodTypeDef,
1728
- UpdateToolRequestBodySchema
1729
- > = z.object({
1730
- type: z.string(),
1731
- properties: z.record(z.any()),
1732
- required: z.array(z.string()),
1733
- additionalProperties: z.record(z.any()).optional(),
1734
- }).transform((v) => {
1735
- return {
1736
- ...v.additionalProperties,
1737
- ...remap$(v, {
1738
- additionalProperties: null,
1739
- }),
1740
- };
1741
- });
1742
-
1743
- export function updateToolRequestBodySchemaToJSON(
1744
- updateToolRequestBodySchema: UpdateToolRequestBodySchema,
1745
- ): string {
1746
- return JSON.stringify(
1747
- UpdateToolRequestBodySchema$outboundSchema.parse(
1748
- updateToolRequestBodySchema,
1749
- ),
1750
- );
1751
- }
1752
-
1753
- /** @internal */
1754
- export type UpdateToolRequestBodyJsonSchema$Outbound = {
1755
- name: string;
1756
- description: string;
1757
- schema: UpdateToolRequestBodySchema$Outbound;
1758
- strict?: boolean | undefined;
1759
- };
1760
-
1761
- /** @internal */
1762
- export const UpdateToolRequestBodyJsonSchema$outboundSchema: z.ZodType<
1763
- UpdateToolRequestBodyJsonSchema$Outbound,
1764
- z.ZodTypeDef,
1765
- UpdateToolRequestBodyJsonSchema
1766
- > = z.object({
1767
- name: z.string(),
1768
- description: z.string(),
1769
- schema: z.lazy(() => UpdateToolRequestBodySchema$outboundSchema),
1770
- strict: z.boolean().optional(),
1771
- });
1772
-
1773
- export function updateToolRequestBodyJsonSchemaToJSON(
1774
- updateToolRequestBodyJsonSchema: UpdateToolRequestBodyJsonSchema,
1775
- ): string {
1776
- return JSON.stringify(
1777
- UpdateToolRequestBodyJsonSchema$outboundSchema.parse(
1778
- updateToolRequestBodyJsonSchema,
1779
- ),
1780
- );
1781
- }
1782
-
1783
- /** @internal */
1784
- export type UpdateJSONSchemaTool$Outbound = {
1785
- path?: string | undefined;
1786
- key?: string | undefined;
1787
- display_name?: string | undefined;
1788
- description?: string | undefined;
1789
- status: string;
1790
- type: "json_schema";
1791
- json_schema?: UpdateToolRequestBodyJsonSchema$Outbound | undefined;
1792
- };
1793
-
1794
- /** @internal */
1795
- export const UpdateJSONSchemaTool$outboundSchema: z.ZodType<
1796
- UpdateJSONSchemaTool$Outbound,
1797
- z.ZodTypeDef,
1798
- UpdateJSONSchemaTool
1799
- > = z.object({
1800
- path: z.string().optional(),
1801
- key: z.string().optional(),
1802
- displayName: z.string().optional(),
1803
- description: z.string().optional(),
1804
- status: UpdateToolRequestBodyToolsStatus$outboundSchema.default("live"),
1805
- type: z.literal("json_schema"),
1806
- jsonSchema: z.lazy(() => UpdateToolRequestBodyJsonSchema$outboundSchema)
1807
- .optional(),
1808
- }).transform((v) => {
1809
- return remap$(v, {
1810
- displayName: "display_name",
1811
- jsonSchema: "json_schema",
1812
- });
1813
- });
1814
-
1815
- export function updateJSONSchemaToolToJSON(
1816
- updateJSONSchemaTool: UpdateJSONSchemaTool,
1817
- ): string {
1818
- return JSON.stringify(
1819
- UpdateJSONSchemaTool$outboundSchema.parse(updateJSONSchemaTool),
1820
- );
1821
- }
1822
-
1823
- /** @internal */
1824
- export const UpdateToolRequestBodyStatus$outboundSchema: z.ZodNativeEnum<
1825
- typeof UpdateToolRequestBodyStatus
1826
- > = z.nativeEnum(UpdateToolRequestBodyStatus);
1827
-
1828
- /** @internal */
1829
- export const UpdateToolRequestBodyToolsRequest1Type$outboundSchema:
1830
- z.ZodNativeEnum<typeof UpdateToolRequestBodyToolsRequest1Type> = z.nativeEnum(
1831
- UpdateToolRequestBodyToolsRequest1Type,
1832
- );
1833
-
1834
- /** @internal */
1835
- export type UpdateToolRequestBodyParameters$Outbound = {
1836
- type: string;
1837
- properties: { [k: string]: any };
1838
- required: Array<string>;
1839
- [additionalProperties: string]: unknown;
1840
- };
1841
-
1842
- /** @internal */
1843
- export const UpdateToolRequestBodyParameters$outboundSchema: z.ZodType<
1844
- UpdateToolRequestBodyParameters$Outbound,
1845
- z.ZodTypeDef,
1846
- UpdateToolRequestBodyParameters
1847
- > = z.object({
1848
- type: UpdateToolRequestBodyToolsRequest1Type$outboundSchema,
1849
- properties: z.record(z.any()),
1850
- required: z.array(z.string()),
1851
- additionalProperties: z.record(z.any()).optional(),
1852
- }).transform((v) => {
1853
- return {
1854
- ...v.additionalProperties,
1855
- ...remap$(v, {
1856
- additionalProperties: null,
1857
- }),
1858
- };
1859
- });
1860
-
1861
- export function updateToolRequestBodyParametersToJSON(
1862
- updateToolRequestBodyParameters: UpdateToolRequestBodyParameters,
1863
- ): string {
1864
- return JSON.stringify(
1865
- UpdateToolRequestBodyParameters$outboundSchema.parse(
1866
- updateToolRequestBodyParameters,
1867
- ),
1868
- );
1869
- }
1870
-
1871
- /** @internal */
1872
- export type UpdateToolRequestBodyFunction$Outbound = {
1873
- name: string;
1874
- description?: string | undefined;
1875
- strict?: boolean | undefined;
1876
- parameters?: UpdateToolRequestBodyParameters$Outbound | undefined;
1877
- };
1878
-
1879
- /** @internal */
1880
- export const UpdateToolRequestBodyFunction$outboundSchema: z.ZodType<
1881
- UpdateToolRequestBodyFunction$Outbound,
1882
- z.ZodTypeDef,
1883
- UpdateToolRequestBodyFunction
1884
- > = z.object({
1885
- name: z.string(),
1886
- description: z.string().optional(),
1887
- strict: z.boolean().optional(),
1888
- parameters: z.lazy(() => UpdateToolRequestBodyParameters$outboundSchema)
1889
- .optional(),
1890
- });
1891
-
1892
- export function updateToolRequestBodyFunctionToJSON(
1893
- updateToolRequestBodyFunction: UpdateToolRequestBodyFunction,
1894
- ): string {
1895
- return JSON.stringify(
1896
- UpdateToolRequestBodyFunction$outboundSchema.parse(
1897
- updateToolRequestBodyFunction,
1898
- ),
1899
- );
1900
- }
1901
-
1902
- /** @internal */
1903
- export type UpdateFunctionTool$Outbound = {
1904
- path?: string | undefined;
1905
- key?: string | undefined;
1906
- display_name?: string | undefined;
1907
- description?: string | undefined;
1908
- status: string;
1909
- type: "function";
1910
- function?: UpdateToolRequestBodyFunction$Outbound | undefined;
1911
- };
1912
-
1913
- /** @internal */
1914
- export const UpdateFunctionTool$outboundSchema: z.ZodType<
1915
- UpdateFunctionTool$Outbound,
1916
- z.ZodTypeDef,
1917
- UpdateFunctionTool
1918
- > = z.object({
1919
- path: z.string().optional(),
1920
- key: z.string().optional(),
1921
- displayName: z.string().optional(),
1922
- description: z.string().optional(),
1923
- status: UpdateToolRequestBodyStatus$outboundSchema.default("live"),
1924
- type: z.literal("function"),
1925
- function: z.lazy(() => UpdateToolRequestBodyFunction$outboundSchema)
1926
- .optional(),
1927
- }).transform((v) => {
1928
- return remap$(v, {
1929
- displayName: "display_name",
1930
- });
1931
- });
1932
-
1933
- export function updateFunctionToolToJSON(
1934
- updateFunctionTool: UpdateFunctionTool,
1935
- ): string {
1936
- return JSON.stringify(
1937
- UpdateFunctionTool$outboundSchema.parse(updateFunctionTool),
1938
- );
1939
- }
1940
-
1941
- /** @internal */
1942
- export type UpdateToolRequestBody$Outbound =
1943
- | UpdateFunctionTool$Outbound
1944
- | UpdateJSONSchemaTool$Outbound
1945
- | UpdateHTTPTool$Outbound
1946
- | UpdateMCPTool$Outbound
1947
- | UpdateCodeExecutionTool$Outbound;
1948
-
1949
- /** @internal */
1950
- export const UpdateToolRequestBody$outboundSchema: z.ZodType<
1951
- UpdateToolRequestBody$Outbound,
1952
- z.ZodTypeDef,
1953
- UpdateToolRequestBody
1954
- > = z.union([
1955
- z.lazy(() => UpdateFunctionTool$outboundSchema),
1956
- z.lazy(() => UpdateJSONSchemaTool$outboundSchema),
1957
- z.lazy(() => UpdateHTTPTool$outboundSchema),
1958
- z.lazy(() => UpdateMCPTool$outboundSchema),
1959
- z.lazy(() => UpdateCodeExecutionTool$outboundSchema),
1960
- ]);
1961
-
1962
- export function updateToolRequestBodyToJSON(
1963
- updateToolRequestBody: UpdateToolRequestBody,
1964
- ): string {
1965
- return JSON.stringify(
1966
- UpdateToolRequestBody$outboundSchema.parse(updateToolRequestBody),
1967
- );
1968
- }
1969
-
1970
- /** @internal */
1971
- export type UpdateToolRequest$Outbound = {
1972
- tool_id: string;
1973
- RequestBody?:
1974
- | UpdateFunctionTool$Outbound
1975
- | UpdateJSONSchemaTool$Outbound
1976
- | UpdateHTTPTool$Outbound
1977
- | UpdateMCPTool$Outbound
1978
- | UpdateCodeExecutionTool$Outbound
1979
- | undefined;
1980
- };
1981
-
1982
- /** @internal */
1983
- export const UpdateToolRequest$outboundSchema: z.ZodType<
1984
- UpdateToolRequest$Outbound,
1985
- z.ZodTypeDef,
1986
- UpdateToolRequest
1987
- > = z.object({
1988
- toolId: z.string(),
1989
- requestBody: z.union([
1990
- z.lazy(() => UpdateFunctionTool$outboundSchema),
1991
- z.lazy(() => UpdateJSONSchemaTool$outboundSchema),
1992
- z.lazy(() => UpdateHTTPTool$outboundSchema),
1993
- z.lazy(() => UpdateMCPTool$outboundSchema),
1994
- z.lazy(() => UpdateCodeExecutionTool$outboundSchema),
1995
- ]).optional(),
1996
- }).transform((v) => {
1997
- return remap$(v, {
1998
- toolId: "tool_id",
1999
- requestBody: "RequestBody",
2000
- });
2001
- });
2002
-
2003
- export function updateToolRequestToJSON(
2004
- updateToolRequest: UpdateToolRequest,
2005
- ): string {
2006
- return JSON.stringify(
2007
- UpdateToolRequest$outboundSchema.parse(updateToolRequest),
2008
- );
2009
- }
2010
-
2011
- /** @internal */
2012
- export const UpdateToolResponseBodyToolsResponse200ApplicationJSONStatus$inboundSchema:
2013
- z.ZodNativeEnum<
2014
- typeof UpdateToolResponseBodyToolsResponse200ApplicationJSONStatus
2015
- > = z.nativeEnum(UpdateToolResponseBodyToolsResponse200ApplicationJSONStatus);
2016
-
2017
- /** @internal */
2018
- export const UpdateToolResponseBodyToolsResponse200ApplicationJson5Type$inboundSchema:
2019
- z.ZodNativeEnum<
2020
- typeof UpdateToolResponseBodyToolsResponse200ApplicationJson5Type
2021
- > = z.nativeEnum(UpdateToolResponseBodyToolsResponse200ApplicationJson5Type);
2022
-
2023
- /** @internal */
2024
- export const UpdateToolResponseBodyToolsParameters$inboundSchema: z.ZodType<
2025
- UpdateToolResponseBodyToolsParameters,
2026
- z.ZodTypeDef,
2027
- unknown
2028
- > = collectExtraKeys$(
2029
- z.object({
2030
- type:
2031
- UpdateToolResponseBodyToolsResponse200ApplicationJson5Type$inboundSchema,
2032
- properties: z.record(z.any()),
2033
- required: z.array(z.string()),
2034
- }).catchall(z.any()),
2035
- "additionalProperties",
2036
- true,
2037
- );
2038
-
2039
- export function updateToolResponseBodyToolsParametersFromJSON(
2040
- jsonString: string,
2041
- ): SafeParseResult<UpdateToolResponseBodyToolsParameters, SDKValidationError> {
2042
- return safeParse(
2043
- jsonString,
2044
- (x) =>
2045
- UpdateToolResponseBodyToolsParameters$inboundSchema.parse(JSON.parse(x)),
2046
- `Failed to parse 'UpdateToolResponseBodyToolsParameters' from JSON`,
2047
- );
2048
- }
2049
-
2050
- /** @internal */
2051
- export const UpdateToolResponseBodyLanguage$inboundSchema: z.ZodNativeEnum<
2052
- typeof UpdateToolResponseBodyLanguage
2053
- > = z.nativeEnum(UpdateToolResponseBodyLanguage);
2054
-
2055
- /** @internal */
2056
- export const UpdateToolResponseBodyCodeTool$inboundSchema: z.ZodType<
2057
- UpdateToolResponseBodyCodeTool,
2058
- z.ZodTypeDef,
2059
- unknown
2060
- > = z.object({
2061
- parameters: z.lazy(() => UpdateToolResponseBodyToolsParameters$inboundSchema)
2062
- .optional(),
2063
- language: UpdateToolResponseBodyLanguage$inboundSchema,
2064
- code: z.string(),
2065
- });
2066
-
2067
- export function updateToolResponseBodyCodeToolFromJSON(
2068
- jsonString: string,
2069
- ): SafeParseResult<UpdateToolResponseBodyCodeTool, SDKValidationError> {
2070
- return safeParse(
2071
- jsonString,
2072
- (x) => UpdateToolResponseBodyCodeTool$inboundSchema.parse(JSON.parse(x)),
2073
- `Failed to parse 'UpdateToolResponseBodyCodeTool' from JSON`,
2074
- );
2075
- }
2076
-
2077
- /** @internal */
2078
- export const UpdateToolResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
2079
- UpdateToolResponseBodyCodeExecutionTool,
2080
- z.ZodTypeDef,
2081
- unknown
2082
- > = z.object({
2083
- _id: z.string().default("tool_01KJ60BRP6WN92Y7CXANV6HF09"),
2084
- path: z.string(),
2085
- key: z.string(),
2086
- display_name: z.string().optional(),
2087
- description: z.string(),
2088
- created_by_id: z.string().optional(),
2089
- updated_by_id: z.string().optional(),
2090
- project_id: z.string(),
2091
- workspace_id: z.string(),
2092
- created: z.string(),
2093
- updated: z.string(),
2094
- status:
2095
- UpdateToolResponseBodyToolsResponse200ApplicationJSONStatus$inboundSchema
2096
- .default("live"),
2097
- version_hash: z.string().optional(),
2098
- type: z.literal("code"),
2099
- code_tool: z.lazy(() => UpdateToolResponseBodyCodeTool$inboundSchema),
2100
- }).transform((v) => {
2101
- return remap$(v, {
2102
- "_id": "id",
2103
- "display_name": "displayName",
2104
- "created_by_id": "createdById",
2105
- "updated_by_id": "updatedById",
2106
- "project_id": "projectId",
2107
- "workspace_id": "workspaceId",
2108
- "version_hash": "versionHash",
2109
- "code_tool": "codeTool",
2110
- });
2111
- });
2112
-
2113
- export function updateToolResponseBodyCodeExecutionToolFromJSON(
2114
- jsonString: string,
2115
- ): SafeParseResult<
2116
- UpdateToolResponseBodyCodeExecutionTool,
2117
- SDKValidationError
2118
- > {
2119
- return safeParse(
2120
- jsonString,
2121
- (x) =>
2122
- UpdateToolResponseBodyCodeExecutionTool$inboundSchema.parse(
2123
- JSON.parse(x),
2124
- ),
2125
- `Failed to parse 'UpdateToolResponseBodyCodeExecutionTool' from JSON`,
2126
- );
2127
- }
2128
-
2129
- /** @internal */
2130
- export const UpdateToolResponseBodyToolsResponse200Status$inboundSchema:
2131
- z.ZodNativeEnum<typeof UpdateToolResponseBodyToolsResponse200Status> = z
2132
- .nativeEnum(UpdateToolResponseBodyToolsResponse200Status);
2133
-
2134
- /** @internal */
2135
- export const UpdateToolResponseBodyHeaders$inboundSchema: z.ZodType<
2136
- UpdateToolResponseBodyHeaders,
2137
- z.ZodTypeDef,
2138
- unknown
2139
- > = z.object({
2140
- value: z.string(),
2141
- encrypted: z.boolean().default(false),
2142
- });
2143
-
2144
- export function updateToolResponseBodyHeadersFromJSON(
2145
- jsonString: string,
2146
- ): SafeParseResult<UpdateToolResponseBodyHeaders, SDKValidationError> {
2147
- return safeParse(
2148
- jsonString,
2149
- (x) => UpdateToolResponseBodyHeaders$inboundSchema.parse(JSON.parse(x)),
2150
- `Failed to parse 'UpdateToolResponseBodyHeaders' from JSON`,
2151
- );
2152
- }
2153
-
2154
- /** @internal */
2155
- export const UpdateToolResponseBodyToolsResponse200ApplicationJson4Type$inboundSchema:
2156
- z.ZodNativeEnum<
2157
- typeof UpdateToolResponseBodyToolsResponse200ApplicationJson4Type
2158
- > = z.nativeEnum(UpdateToolResponseBodyToolsResponse200ApplicationJson4Type);
2159
-
2160
- /** @internal */
2161
- export const UpdateToolResponseBodyToolsSchema$inboundSchema: z.ZodType<
2162
- UpdateToolResponseBodyToolsSchema,
2163
- z.ZodTypeDef,
2164
- unknown
2165
- > = z.object({
2166
- type:
2167
- UpdateToolResponseBodyToolsResponse200ApplicationJson4Type$inboundSchema,
2168
- properties: z.record(z.any()).optional(),
2169
- required: z.array(z.string()).optional(),
2170
- });
2171
-
2172
- export function updateToolResponseBodyToolsSchemaFromJSON(
2173
- jsonString: string,
2174
- ): SafeParseResult<UpdateToolResponseBodyToolsSchema, SDKValidationError> {
2175
- return safeParse(
2176
- jsonString,
2177
- (x) => UpdateToolResponseBodyToolsSchema$inboundSchema.parse(JSON.parse(x)),
2178
- `Failed to parse 'UpdateToolResponseBodyToolsSchema' from JSON`,
2179
- );
2180
- }
2181
-
2182
- /** @internal */
2183
- export const UpdateToolResponseBodyTools$inboundSchema: z.ZodType<
2184
- UpdateToolResponseBodyTools,
2185
- z.ZodTypeDef,
2186
- unknown
2187
- > = z.object({
2188
- id: z.string().default("01KJ60BRP5FWQK82DMNHQP93EX"),
2189
- name: z.string(),
2190
- description: z.string().optional(),
2191
- schema: z.lazy(() => UpdateToolResponseBodyToolsSchema$inboundSchema),
2192
- });
2193
-
2194
- export function updateToolResponseBodyToolsFromJSON(
2195
- jsonString: string,
2196
- ): SafeParseResult<UpdateToolResponseBodyTools, SDKValidationError> {
2197
- return safeParse(
2198
- jsonString,
2199
- (x) => UpdateToolResponseBodyTools$inboundSchema.parse(JSON.parse(x)),
2200
- `Failed to parse 'UpdateToolResponseBodyTools' from JSON`,
2201
- );
2202
- }
2203
-
2204
- /** @internal */
2205
- export const UpdateToolResponseBodyConnectionType$inboundSchema:
2206
- z.ZodNativeEnum<typeof UpdateToolResponseBodyConnectionType> = z.nativeEnum(
2207
- UpdateToolResponseBodyConnectionType,
2208
- );
2209
-
2210
- /** @internal */
2211
- export const UpdateToolResponseBodyMcp$inboundSchema: z.ZodType<
2212
- UpdateToolResponseBodyMcp,
2213
- z.ZodTypeDef,
2214
- unknown
2215
- > = z.object({
2216
- server_url: z.string(),
2217
- headers: z.record(z.lazy(() => UpdateToolResponseBodyHeaders$inboundSchema))
2218
- .optional(),
2219
- tools: z.array(z.lazy(() => UpdateToolResponseBodyTools$inboundSchema)),
2220
- connection_type: UpdateToolResponseBodyConnectionType$inboundSchema,
2221
- }).transform((v) => {
2222
- return remap$(v, {
2223
- "server_url": "serverUrl",
2224
- "connection_type": "connectionType",
2225
- });
2226
- });
2227
-
2228
- export function updateToolResponseBodyMcpFromJSON(
2229
- jsonString: string,
2230
- ): SafeParseResult<UpdateToolResponseBodyMcp, SDKValidationError> {
2231
- return safeParse(
2232
- jsonString,
2233
- (x) => UpdateToolResponseBodyMcp$inboundSchema.parse(JSON.parse(x)),
2234
- `Failed to parse 'UpdateToolResponseBodyMcp' from JSON`,
2235
- );
2236
- }
2237
-
2238
- /** @internal */
2239
- export const UpdateToolResponseBodyMCPTool$inboundSchema: z.ZodType<
2240
- UpdateToolResponseBodyMCPTool,
2241
- z.ZodTypeDef,
2242
- unknown
2243
- > = z.object({
2244
- _id: z.string().default("tool_01KJ60BRP3JY859ZWKDCFFPFK1"),
2245
- path: z.string(),
2246
- key: z.string(),
2247
- display_name: z.string().optional(),
2248
- description: z.string(),
2249
- created_by_id: z.string().optional(),
2250
- updated_by_id: z.string().optional(),
2251
- project_id: z.string(),
2252
- workspace_id: z.string(),
2253
- created: z.string(),
2254
- updated: z.string(),
2255
- status: UpdateToolResponseBodyToolsResponse200Status$inboundSchema.default(
2256
- "live",
2257
- ),
2258
- version_hash: z.string().optional(),
2259
- type: z.literal("mcp"),
2260
- mcp: z.lazy(() => UpdateToolResponseBodyMcp$inboundSchema),
2261
- }).transform((v) => {
2262
- return remap$(v, {
2263
- "_id": "id",
2264
- "display_name": "displayName",
2265
- "created_by_id": "createdById",
2266
- "updated_by_id": "updatedById",
2267
- "project_id": "projectId",
2268
- "workspace_id": "workspaceId",
2269
- "version_hash": "versionHash",
2270
- });
2271
- });
2272
-
2273
- export function updateToolResponseBodyMCPToolFromJSON(
2274
- jsonString: string,
2275
- ): SafeParseResult<UpdateToolResponseBodyMCPTool, SDKValidationError> {
2276
- return safeParse(
2277
- jsonString,
2278
- (x) => UpdateToolResponseBodyMCPTool$inboundSchema.parse(JSON.parse(x)),
2279
- `Failed to parse 'UpdateToolResponseBodyMCPTool' from JSON`,
2280
- );
2281
- }
2282
-
2283
- /** @internal */
2284
- export const UpdateToolResponseBodyToolsResponseStatus$inboundSchema:
2285
- z.ZodNativeEnum<typeof UpdateToolResponseBodyToolsResponseStatus> = z
2286
- .nativeEnum(UpdateToolResponseBodyToolsResponseStatus);
2287
-
2288
- /** @internal */
2289
- export const UpdateToolResponseBodyMethod$inboundSchema: z.ZodNativeEnum<
2290
- typeof UpdateToolResponseBodyMethod
2291
- > = z.nativeEnum(UpdateToolResponseBodyMethod);
2292
-
2293
- /** @internal */
2294
- export const UpdateToolHeadersTools2$inboundSchema: z.ZodType<
2295
- UpdateToolHeadersTools2,
2296
- z.ZodTypeDef,
2297
- unknown
2298
- > = z.object({
2299
- value: z.string(),
2300
- encrypted: z.boolean().default(false),
2301
- });
2302
-
2303
- export function updateToolHeadersTools2FromJSON(
2304
- jsonString: string,
2305
- ): SafeParseResult<UpdateToolHeadersTools2, SDKValidationError> {
2306
- return safeParse(
2307
- jsonString,
2308
- (x) => UpdateToolHeadersTools2$inboundSchema.parse(JSON.parse(x)),
2309
- `Failed to parse 'UpdateToolHeadersTools2' from JSON`,
2310
- );
2311
- }
2312
-
2313
- /** @internal */
2314
- export const UpdateToolResponseBodyToolsHeaders$inboundSchema: z.ZodType<
2315
- UpdateToolResponseBodyToolsHeaders,
2316
- z.ZodTypeDef,
2317
- unknown
2318
- > = z.union([z.lazy(() => UpdateToolHeadersTools2$inboundSchema), z.string()]);
2319
-
2320
- export function updateToolResponseBodyToolsHeadersFromJSON(
2321
- jsonString: string,
2322
- ): SafeParseResult<UpdateToolResponseBodyToolsHeaders, SDKValidationError> {
2323
- return safeParse(
2324
- jsonString,
2325
- (x) =>
2326
- UpdateToolResponseBodyToolsHeaders$inboundSchema.parse(JSON.parse(x)),
2327
- `Failed to parse 'UpdateToolResponseBodyToolsHeaders' from JSON`,
2328
- );
2329
- }
2330
-
2331
- /** @internal */
2332
- export const UpdateToolResponseBodyBlueprint$inboundSchema: z.ZodType<
2333
- UpdateToolResponseBodyBlueprint,
2334
- z.ZodTypeDef,
2335
- unknown
2336
- > = z.object({
2337
- url: z.string(),
2338
- method: UpdateToolResponseBodyMethod$inboundSchema,
2339
- headers: z.record(
2340
- z.union([z.lazy(() => UpdateToolHeadersTools2$inboundSchema), z.string()]),
2341
- ).optional(),
2342
- body: z.record(z.any()).optional(),
2343
- });
2344
-
2345
- export function updateToolResponseBodyBlueprintFromJSON(
2346
- jsonString: string,
2347
- ): SafeParseResult<UpdateToolResponseBodyBlueprint, SDKValidationError> {
2348
- return safeParse(
2349
- jsonString,
2350
- (x) => UpdateToolResponseBodyBlueprint$inboundSchema.parse(JSON.parse(x)),
2351
- `Failed to parse 'UpdateToolResponseBodyBlueprint' from JSON`,
2352
- );
2353
- }
2354
-
2355
- /** @internal */
2356
- export const UpdateToolResponseBodyToolsResponse200ApplicationJson3Type$inboundSchema:
2357
- z.ZodNativeEnum<
2358
- typeof UpdateToolResponseBodyToolsResponse200ApplicationJson3Type
2359
- > = z.nativeEnum(UpdateToolResponseBodyToolsResponse200ApplicationJson3Type);
2360
-
2361
- /** @internal */
2362
- export const UpdateToolResponseBodyDefaultValue$inboundSchema: z.ZodType<
2363
- UpdateToolResponseBodyDefaultValue,
2364
- z.ZodTypeDef,
2365
- unknown
2366
- > = z.union([z.string(), z.number(), z.boolean()]);
2367
-
2368
- export function updateToolResponseBodyDefaultValueFromJSON(
2369
- jsonString: string,
2370
- ): SafeParseResult<UpdateToolResponseBodyDefaultValue, SDKValidationError> {
2371
- return safeParse(
2372
- jsonString,
2373
- (x) =>
2374
- UpdateToolResponseBodyDefaultValue$inboundSchema.parse(JSON.parse(x)),
2375
- `Failed to parse 'UpdateToolResponseBodyDefaultValue' from JSON`,
2376
- );
2377
- }
2378
-
2379
- /** @internal */
2380
- export const UpdateToolResponseBodyArguments$inboundSchema: z.ZodType<
2381
- UpdateToolResponseBodyArguments,
2382
- z.ZodTypeDef,
2383
- unknown
2384
- > = z.object({
2385
- type:
2386
- UpdateToolResponseBodyToolsResponse200ApplicationJson3Type$inboundSchema,
2387
- description: z.string(),
2388
- send_to_model: z.boolean().default(true),
2389
- default_value: z.union([z.string(), z.number(), z.boolean()]).optional(),
2390
- }).transform((v) => {
2391
- return remap$(v, {
2392
- "send_to_model": "sendToModel",
2393
- "default_value": "defaultValue",
2394
- });
2395
- });
2396
-
2397
- export function updateToolResponseBodyArgumentsFromJSON(
2398
- jsonString: string,
2399
- ): SafeParseResult<UpdateToolResponseBodyArguments, SDKValidationError> {
2400
- return safeParse(
2401
- jsonString,
2402
- (x) => UpdateToolResponseBodyArguments$inboundSchema.parse(JSON.parse(x)),
2403
- `Failed to parse 'UpdateToolResponseBodyArguments' from JSON`,
2404
- );
2405
- }
2406
-
2407
- /** @internal */
2408
- export const UpdateToolResponseBodyHttp$inboundSchema: z.ZodType<
2409
- UpdateToolResponseBodyHttp,
2410
- z.ZodTypeDef,
2411
- unknown
2412
- > = z.object({
2413
- blueprint: z.lazy(() => UpdateToolResponseBodyBlueprint$inboundSchema),
2414
- arguments: z.record(
2415
- z.lazy(() => UpdateToolResponseBodyArguments$inboundSchema),
2416
- ).optional(),
2417
- });
2418
-
2419
- export function updateToolResponseBodyHttpFromJSON(
2420
- jsonString: string,
2421
- ): SafeParseResult<UpdateToolResponseBodyHttp, SDKValidationError> {
2422
- return safeParse(
2423
- jsonString,
2424
- (x) => UpdateToolResponseBodyHttp$inboundSchema.parse(JSON.parse(x)),
2425
- `Failed to parse 'UpdateToolResponseBodyHttp' from JSON`,
2426
- );
2427
- }
2428
-
2429
- /** @internal */
2430
- export const UpdateToolResponseBodyHTTPTool$inboundSchema: z.ZodType<
2431
- UpdateToolResponseBodyHTTPTool,
2432
- z.ZodTypeDef,
2433
- unknown
2434
- > = z.object({
2435
- _id: z.string().default("tool_01KJ60BRP0XK9VD759RV06ZGZ4"),
2436
- path: z.string(),
2437
- key: z.string(),
2438
- display_name: z.string().optional(),
2439
- description: z.string(),
2440
- created_by_id: z.string().optional(),
2441
- updated_by_id: z.string().optional(),
2442
- project_id: z.string(),
2443
- workspace_id: z.string(),
2444
- created: z.string(),
2445
- updated: z.string(),
2446
- status: UpdateToolResponseBodyToolsResponseStatus$inboundSchema.default(
2447
- "live",
2448
- ),
2449
- version_hash: z.string().optional(),
2450
- type: z.literal("http"),
2451
- http: z.lazy(() => UpdateToolResponseBodyHttp$inboundSchema),
2452
- }).transform((v) => {
2453
- return remap$(v, {
2454
- "_id": "id",
2455
- "display_name": "displayName",
2456
- "created_by_id": "createdById",
2457
- "updated_by_id": "updatedById",
2458
- "project_id": "projectId",
2459
- "workspace_id": "workspaceId",
2460
- "version_hash": "versionHash",
2461
- });
2462
- });
2463
-
2464
- export function updateToolResponseBodyHTTPToolFromJSON(
2465
- jsonString: string,
2466
- ): SafeParseResult<UpdateToolResponseBodyHTTPTool, SDKValidationError> {
2467
- return safeParse(
2468
- jsonString,
2469
- (x) => UpdateToolResponseBodyHTTPTool$inboundSchema.parse(JSON.parse(x)),
2470
- `Failed to parse 'UpdateToolResponseBodyHTTPTool' from JSON`,
2471
- );
2472
- }
2473
-
2474
- /** @internal */
2475
- export const UpdateToolResponseBodyToolsStatus$inboundSchema: z.ZodNativeEnum<
2476
- typeof UpdateToolResponseBodyToolsStatus
2477
- > = z.nativeEnum(UpdateToolResponseBodyToolsStatus);
2478
-
2479
- /** @internal */
2480
- export const UpdateToolResponseBodySchema$inboundSchema: z.ZodType<
2481
- UpdateToolResponseBodySchema,
2482
- z.ZodTypeDef,
2483
- unknown
2484
- > = collectExtraKeys$(
2485
- z.object({
2486
- type: z.string(),
2487
- properties: z.record(z.any()),
2488
- required: z.array(z.string()),
2489
- }).catchall(z.any()),
2490
- "additionalProperties",
2491
- true,
2492
- );
2493
-
2494
- export function updateToolResponseBodySchemaFromJSON(
2495
- jsonString: string,
2496
- ): SafeParseResult<UpdateToolResponseBodySchema, SDKValidationError> {
2497
- return safeParse(
2498
- jsonString,
2499
- (x) => UpdateToolResponseBodySchema$inboundSchema.parse(JSON.parse(x)),
2500
- `Failed to parse 'UpdateToolResponseBodySchema' from JSON`,
2501
- );
2502
- }
2503
-
2504
- /** @internal */
2505
- export const UpdateToolResponseBodyJsonSchema$inboundSchema: z.ZodType<
2506
- UpdateToolResponseBodyJsonSchema,
2507
- z.ZodTypeDef,
2508
- unknown
2509
- > = z.object({
2510
- name: z.string(),
2511
- description: z.string(),
2512
- schema: z.lazy(() => UpdateToolResponseBodySchema$inboundSchema),
2513
- strict: z.boolean().optional(),
2514
- });
2515
-
2516
- export function updateToolResponseBodyJsonSchemaFromJSON(
2517
- jsonString: string,
2518
- ): SafeParseResult<UpdateToolResponseBodyJsonSchema, SDKValidationError> {
2519
- return safeParse(
2520
- jsonString,
2521
- (x) => UpdateToolResponseBodyJsonSchema$inboundSchema.parse(JSON.parse(x)),
2522
- `Failed to parse 'UpdateToolResponseBodyJsonSchema' from JSON`,
2523
- );
2524
- }
2525
-
2526
- /** @internal */
2527
- export const UpdateToolResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
2528
- UpdateToolResponseBodyJSONSchemaTool,
2529
- z.ZodTypeDef,
2530
- unknown
2531
- > = z.object({
2532
- _id: z.string().default("tool_01KJ60BRNWQDJNZW34TGXZ152F"),
2533
- path: z.string(),
2534
- key: z.string(),
2535
- display_name: z.string().optional(),
2536
- description: z.string(),
2537
- created_by_id: z.string().optional(),
2538
- updated_by_id: z.string().optional(),
2539
- project_id: z.string(),
2540
- workspace_id: z.string(),
2541
- created: z.string(),
2542
- updated: z.string(),
2543
- status: UpdateToolResponseBodyToolsStatus$inboundSchema.default("live"),
2544
- version_hash: z.string().optional(),
2545
- type: z.literal("json_schema"),
2546
- json_schema: z.lazy(() => UpdateToolResponseBodyJsonSchema$inboundSchema),
2547
- }).transform((v) => {
2548
- return remap$(v, {
2549
- "_id": "id",
2550
- "display_name": "displayName",
2551
- "created_by_id": "createdById",
2552
- "updated_by_id": "updatedById",
2553
- "project_id": "projectId",
2554
- "workspace_id": "workspaceId",
2555
- "version_hash": "versionHash",
2556
- "json_schema": "jsonSchema",
2557
- });
2558
- });
2559
-
2560
- export function updateToolResponseBodyJSONSchemaToolFromJSON(
2561
- jsonString: string,
2562
- ): SafeParseResult<UpdateToolResponseBodyJSONSchemaTool, SDKValidationError> {
2563
- return safeParse(
2564
- jsonString,
2565
- (x) =>
2566
- UpdateToolResponseBodyJSONSchemaTool$inboundSchema.parse(JSON.parse(x)),
2567
- `Failed to parse 'UpdateToolResponseBodyJSONSchemaTool' from JSON`,
2568
- );
2569
- }
2570
-
2571
- /** @internal */
2572
- export const UpdateToolResponseBodyStatus$inboundSchema: z.ZodNativeEnum<
2573
- typeof UpdateToolResponseBodyStatus
2574
- > = z.nativeEnum(UpdateToolResponseBodyStatus);
2575
-
2576
- /** @internal */
2577
- export const UpdateToolResponseBodyToolsResponse200ApplicationJson1Type$inboundSchema:
2578
- z.ZodNativeEnum<
2579
- typeof UpdateToolResponseBodyToolsResponse200ApplicationJson1Type
2580
- > = z.nativeEnum(UpdateToolResponseBodyToolsResponse200ApplicationJson1Type);
2581
-
2582
- /** @internal */
2583
- export const UpdateToolResponseBodyParameters$inboundSchema: z.ZodType<
2584
- UpdateToolResponseBodyParameters,
2585
- z.ZodTypeDef,
2586
- unknown
2587
- > = collectExtraKeys$(
2588
- z.object({
2589
- type:
2590
- UpdateToolResponseBodyToolsResponse200ApplicationJson1Type$inboundSchema,
2591
- properties: z.record(z.any()),
2592
- required: z.array(z.string()),
2593
- }).catchall(z.any()),
2594
- "additionalProperties",
2595
- true,
2596
- );
2597
-
2598
- export function updateToolResponseBodyParametersFromJSON(
2599
- jsonString: string,
2600
- ): SafeParseResult<UpdateToolResponseBodyParameters, SDKValidationError> {
2601
- return safeParse(
2602
- jsonString,
2603
- (x) => UpdateToolResponseBodyParameters$inboundSchema.parse(JSON.parse(x)),
2604
- `Failed to parse 'UpdateToolResponseBodyParameters' from JSON`,
2605
- );
2606
- }
2607
-
2608
- /** @internal */
2609
- export const UpdateToolResponseBodyFunction$inboundSchema: z.ZodType<
2610
- UpdateToolResponseBodyFunction,
2611
- z.ZodTypeDef,
2612
- unknown
2613
- > = z.object({
2614
- name: z.string(),
2615
- description: z.string().optional(),
2616
- strict: z.boolean().optional(),
2617
- parameters: z.lazy(() => UpdateToolResponseBodyParameters$inboundSchema)
2618
- .optional(),
2619
- });
2620
-
2621
- export function updateToolResponseBodyFunctionFromJSON(
2622
- jsonString: string,
2623
- ): SafeParseResult<UpdateToolResponseBodyFunction, SDKValidationError> {
2624
- return safeParse(
2625
- jsonString,
2626
- (x) => UpdateToolResponseBodyFunction$inboundSchema.parse(JSON.parse(x)),
2627
- `Failed to parse 'UpdateToolResponseBodyFunction' from JSON`,
2628
- );
2629
- }
2630
-
2631
- /** @internal */
2632
- export const UpdateToolResponseBodyFunctionTool$inboundSchema: z.ZodType<
2633
- UpdateToolResponseBodyFunctionTool,
2634
- z.ZodTypeDef,
2635
- unknown
2636
- > = z.object({
2637
- _id: z.string().default("tool_01KJ60BRNQKGSMM58BSWH7YH9A"),
2638
- path: z.string(),
2639
- key: z.string(),
2640
- display_name: z.string().optional(),
2641
- description: z.string(),
2642
- created_by_id: z.string().optional(),
2643
- updated_by_id: z.string().optional(),
2644
- project_id: z.string(),
2645
- workspace_id: z.string(),
2646
- created: z.string(),
2647
- updated: z.string(),
2648
- status: UpdateToolResponseBodyStatus$inboundSchema.default("live"),
2649
- version_hash: z.string().optional(),
2650
- type: z.literal("function"),
2651
- function: z.lazy(() => UpdateToolResponseBodyFunction$inboundSchema),
2652
- }).transform((v) => {
2653
- return remap$(v, {
2654
- "_id": "id",
2655
- "display_name": "displayName",
2656
- "created_by_id": "createdById",
2657
- "updated_by_id": "updatedById",
2658
- "project_id": "projectId",
2659
- "workspace_id": "workspaceId",
2660
- "version_hash": "versionHash",
2661
- });
2662
- });
2663
-
2664
- export function updateToolResponseBodyFunctionToolFromJSON(
2665
- jsonString: string,
2666
- ): SafeParseResult<UpdateToolResponseBodyFunctionTool, SDKValidationError> {
2667
- return safeParse(
2668
- jsonString,
2669
- (x) =>
2670
- UpdateToolResponseBodyFunctionTool$inboundSchema.parse(JSON.parse(x)),
2671
- `Failed to parse 'UpdateToolResponseBodyFunctionTool' from JSON`,
2672
- );
2673
- }
2674
-
2675
- /** @internal */
2676
- export const UpdateToolResponseBody$inboundSchema: z.ZodType<
2677
- UpdateToolResponseBody,
2678
- z.ZodTypeDef,
2679
- unknown
2680
- > = z.union([
2681
- z.lazy(() => UpdateToolResponseBodyFunctionTool$inboundSchema),
2682
- z.lazy(() => UpdateToolResponseBodyJSONSchemaTool$inboundSchema),
2683
- z.lazy(() => UpdateToolResponseBodyHTTPTool$inboundSchema),
2684
- z.lazy(() => UpdateToolResponseBodyMCPTool$inboundSchema),
2685
- z.lazy(() => UpdateToolResponseBodyCodeExecutionTool$inboundSchema),
2686
- ]);
2687
-
2688
- export function updateToolResponseBodyFromJSON(
2689
- jsonString: string,
2690
- ): SafeParseResult<UpdateToolResponseBody, SDKValidationError> {
2691
- return safeParse(
2692
- jsonString,
2693
- (x) => UpdateToolResponseBody$inboundSchema.parse(JSON.parse(x)),
2694
- `Failed to parse 'UpdateToolResponseBody' from JSON`,
2695
- );
2696
- }