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