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