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

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