@orq-ai/node 4.0.2 → 4.1.0-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (497) hide show
  1. package/bin/mcp-server.js +214 -217
  2. package/bin/mcp-server.js.map +39 -39
  3. package/docs/sdks/agents/README.md +8 -4
  4. package/docs/sdks/budgets/README.md +4 -2
  5. package/docs/sdks/tools/README.md +2 -2
  6. package/examples/package-lock.json +4 -7
  7. package/jsr.json +1 -1
  8. package/lib/config.d.ts +2 -2
  9. package/lib/config.js +2 -2
  10. package/lib/config.js.map +1 -1
  11. package/mcp-server/mcp-server.js +1 -1
  12. package/mcp-server/mcp-server.js.map +1 -1
  13. package/mcp-server/server.js +1 -1
  14. package/mcp-server/server.js.map +1 -1
  15. package/models/operations/createbudget.js +2 -2
  16. package/models/operations/createcontact.js +2 -2
  17. package/models/operations/createdataset.js +2 -2
  18. package/models/operations/createdatasetitem.js +8 -8
  19. package/models/operations/createdatasource.js +2 -2
  20. package/models/operations/createeval.js +28 -28
  21. package/models/operations/createtool.js +12 -12
  22. package/models/operations/fileget.js +2 -2
  23. package/models/operations/filelist.js +2 -2
  24. package/models/operations/fileupload.js +2 -2
  25. package/models/operations/getalltools.js +12 -12
  26. package/models/operations/getbudget.js +2 -2
  27. package/models/operations/getevals.js +28 -28
  28. package/models/operations/listbudgets.js +2 -2
  29. package/models/operations/listcontacts.js +2 -2
  30. package/models/operations/listdatasetdatapoints.js +8 -8
  31. package/models/operations/listdatasets.js +2 -2
  32. package/models/operations/listdatasources.js +2 -2
  33. package/models/operations/retrievecontact.js +2 -2
  34. package/models/operations/retrievedatapoint.js +8 -8
  35. package/models/operations/retrievedataset.js +2 -2
  36. package/models/operations/retrievedatasource.js +2 -2
  37. package/models/operations/retrievetool.js +12 -12
  38. package/models/operations/runagent.js +2 -2
  39. package/models/operations/streamrunagent.js +2 -2
  40. package/models/operations/updatebudget.js +2 -2
  41. package/models/operations/updatecontact.js +2 -2
  42. package/models/operations/updatedatapoint.js +8 -8
  43. package/models/operations/updatedataset.js +2 -2
  44. package/models/operations/updatedatasource.js +2 -2
  45. package/models/operations/updateeval.js +28 -28
  46. package/models/operations/updatetool.js +14 -14
  47. package/package.json +4 -3
  48. package/src/lib/config.ts +2 -2
  49. package/src/mcp-server/mcp-server.ts +1 -1
  50. package/src/mcp-server/server.ts +1 -1
  51. package/src/models/operations/createbudget.ts +2 -2
  52. package/src/models/operations/createcontact.ts +2 -2
  53. package/src/models/operations/createdataset.ts +2 -2
  54. package/src/models/operations/createdatasetitem.ts +8 -8
  55. package/src/models/operations/createdatasource.ts +2 -2
  56. package/src/models/operations/createeval.ts +28 -28
  57. package/src/models/operations/createtool.ts +12 -12
  58. package/src/models/operations/fileget.ts +2 -2
  59. package/src/models/operations/filelist.ts +2 -2
  60. package/src/models/operations/fileupload.ts +2 -2
  61. package/src/models/operations/getalltools.ts +12 -12
  62. package/src/models/operations/getbudget.ts +2 -2
  63. package/src/models/operations/getevals.ts +28 -28
  64. package/src/models/operations/listbudgets.ts +2 -2
  65. package/src/models/operations/listcontacts.ts +2 -2
  66. package/src/models/operations/listdatasetdatapoints.ts +8 -8
  67. package/src/models/operations/listdatasets.ts +2 -2
  68. package/src/models/operations/listdatasources.ts +2 -2
  69. package/src/models/operations/retrievecontact.ts +2 -2
  70. package/src/models/operations/retrievedatapoint.ts +8 -8
  71. package/src/models/operations/retrievedataset.ts +2 -2
  72. package/src/models/operations/retrievedatasource.ts +2 -2
  73. package/src/models/operations/retrievetool.ts +12 -12
  74. package/src/models/operations/runagent.ts +2 -2
  75. package/src/models/operations/streamrunagent.ts +2 -2
  76. package/src/models/operations/updatebudget.ts +2 -2
  77. package/src/models/operations/updatecontact.ts +2 -2
  78. package/src/models/operations/updatedatapoint.ts +8 -8
  79. package/src/models/operations/updatedataset.ts +2 -2
  80. package/src/models/operations/updatedatasource.ts +2 -2
  81. package/src/models/operations/updateeval.ts +28 -28
  82. package/src/models/operations/updatetool.ts +14 -14
  83. package/packages/orq-rc/FUNCTIONS.md +0 -103
  84. package/packages/orq-rc/README.md +0 -910
  85. package/packages/orq-rc/RUNTIMES.md +0 -48
  86. package/packages/orq-rc/docs/sdks/agents/README.md +0 -1363
  87. package/packages/orq-rc/docs/sdks/budgets/README.md +0 -401
  88. package/packages/orq-rc/docs/sdks/chunking/README.md +0 -97
  89. package/packages/orq-rc/docs/sdks/contacts/README.md +0 -450
  90. package/packages/orq-rc/docs/sdks/datasets/README.md +0 -836
  91. package/packages/orq-rc/docs/sdks/deployments/README.md +0 -312
  92. package/packages/orq-rc/docs/sdks/evals/README.md +0 -339
  93. package/packages/orq-rc/docs/sdks/feedback/README.md +0 -89
  94. package/packages/orq-rc/docs/sdks/files/README.md +0 -301
  95. package/packages/orq-rc/docs/sdks/knowledge/README.md +0 -1487
  96. package/packages/orq-rc/docs/sdks/memorystores/README.md +0 -1171
  97. package/packages/orq-rc/docs/sdks/metrics/README.md +0 -83
  98. package/packages/orq-rc/docs/sdks/models/README.md +0 -76
  99. package/packages/orq-rc/docs/sdks/prompts/README.md +0 -591
  100. package/packages/orq-rc/docs/sdks/remoteconfigs/README.md +0 -77
  101. package/packages/orq-rc/docs/sdks/responses/README.md +0 -139
  102. package/packages/orq-rc/docs/sdks/tools/README.md +0 -420
  103. package/packages/orq-rc/examples/README.md +0 -31
  104. package/packages/orq-rc/examples/contactsCreate.example.ts +0 -42
  105. package/packages/orq-rc/examples/package-lock.json +0 -619
  106. package/packages/orq-rc/examples/package.json +0 -18
  107. package/packages/orq-rc/jsr.json +0 -28
  108. package/packages/orq-rc/package-lock.json +0 -3047
  109. package/packages/orq-rc/package.json +0 -40
  110. package/packages/orq-rc/src/core.ts +0 -13
  111. package/packages/orq-rc/src/funcs/agentsCreate.ts +0 -172
  112. package/packages/orq-rc/src/funcs/agentsDelete.ts +0 -176
  113. package/packages/orq-rc/src/funcs/agentsInvoke.ts +0 -167
  114. package/packages/orq-rc/src/funcs/agentsList.ts +0 -167
  115. package/packages/orq-rc/src/funcs/agentsListActions.ts +0 -169
  116. package/packages/orq-rc/src/funcs/agentsListTasks.ts +0 -183
  117. package/packages/orq-rc/src/funcs/agentsResponsesCreate.ts +0 -168
  118. package/packages/orq-rc/src/funcs/agentsRetrieve.ts +0 -175
  119. package/packages/orq-rc/src/funcs/agentsRetrieveAction.ts +0 -173
  120. package/packages/orq-rc/src/funcs/agentsRetrieveTask.ts +0 -179
  121. package/packages/orq-rc/src/funcs/agentsRun.ts +0 -163
  122. package/packages/orq-rc/src/funcs/agentsStream.ts +0 -191
  123. package/packages/orq-rc/src/funcs/agentsStreamRun.ts +0 -189
  124. package/packages/orq-rc/src/funcs/agentsUpdate.ts +0 -176
  125. package/packages/orq-rc/src/funcs/budgetsCreate.ts +0 -160
  126. package/packages/orq-rc/src/funcs/budgetsDelete.ts +0 -167
  127. package/packages/orq-rc/src/funcs/budgetsGet.ts +0 -166
  128. package/packages/orq-rc/src/funcs/budgetsList.ts +0 -170
  129. package/packages/orq-rc/src/funcs/budgetsUpdate.ts +0 -167
  130. package/packages/orq-rc/src/funcs/chunkingParse.ts +0 -160
  131. package/packages/orq-rc/src/funcs/contactsCreate.ts +0 -165
  132. package/packages/orq-rc/src/funcs/contactsDelete.ts +0 -176
  133. package/packages/orq-rc/src/funcs/contactsList.ts +0 -169
  134. package/packages/orq-rc/src/funcs/contactsRetrieve.ts +0 -175
  135. package/packages/orq-rc/src/funcs/contactsUpdate.ts +0 -176
  136. package/packages/orq-rc/src/funcs/datasetsClear.ts +0 -167
  137. package/packages/orq-rc/src/funcs/datasetsCreate.ts +0 -165
  138. package/packages/orq-rc/src/funcs/datasetsCreateDatapoint.ts +0 -171
  139. package/packages/orq-rc/src/funcs/datasetsDelete.ts +0 -167
  140. package/packages/orq-rc/src/funcs/datasetsDeleteDatapoint.ts +0 -182
  141. package/packages/orq-rc/src/funcs/datasetsList.ts +0 -167
  142. package/packages/orq-rc/src/funcs/datasetsListDatapoints.ts +0 -174
  143. package/packages/orq-rc/src/funcs/datasetsRetrieve.ts +0 -175
  144. package/packages/orq-rc/src/funcs/datasetsRetrieveDatapoint.ts +0 -181
  145. package/packages/orq-rc/src/funcs/datasetsUpdate.ts +0 -176
  146. package/packages/orq-rc/src/funcs/datasetsUpdateDatapoint.ts +0 -179
  147. package/packages/orq-rc/src/funcs/deploymentsGetConfig.ts +0 -168
  148. package/packages/orq-rc/src/funcs/deploymentsInvoke.ts +0 -176
  149. package/packages/orq-rc/src/funcs/deploymentsList.ts +0 -176
  150. package/packages/orq-rc/src/funcs/deploymentsMetricsCreate.ts +0 -168
  151. package/packages/orq-rc/src/funcs/deploymentsStream.ts +0 -183
  152. package/packages/orq-rc/src/funcs/evalsAll.ts +0 -173
  153. package/packages/orq-rc/src/funcs/evalsCreate.ts +0 -169
  154. package/packages/orq-rc/src/funcs/evalsDelete.ts +0 -173
  155. package/packages/orq-rc/src/funcs/evalsUpdate.ts +0 -173
  156. package/packages/orq-rc/src/funcs/feedbackCreate.ts +0 -160
  157. package/packages/orq-rc/src/funcs/filesCreate.ts +0 -187
  158. package/packages/orq-rc/src/funcs/filesDelete.ts +0 -164
  159. package/packages/orq-rc/src/funcs/filesGet.ts +0 -166
  160. package/packages/orq-rc/src/funcs/filesList.ts +0 -167
  161. package/packages/orq-rc/src/funcs/knowledgeCreate.ts +0 -158
  162. package/packages/orq-rc/src/funcs/knowledgeCreateChunks.ts +0 -171
  163. package/packages/orq-rc/src/funcs/knowledgeCreateDatasource.ts +0 -166
  164. package/packages/orq-rc/src/funcs/knowledgeDelete.ts +0 -167
  165. package/packages/orq-rc/src/funcs/knowledgeDeleteChunk.ts +0 -174
  166. package/packages/orq-rc/src/funcs/knowledgeDeleteChunks.ts +0 -170
  167. package/packages/orq-rc/src/funcs/knowledgeDeleteDatasource.ts +0 -173
  168. package/packages/orq-rc/src/funcs/knowledgeGetChunksCount.ts +0 -170
  169. package/packages/orq-rc/src/funcs/knowledgeList.ts +0 -169
  170. package/packages/orq-rc/src/funcs/knowledgeListChunks.ts +0 -178
  171. package/packages/orq-rc/src/funcs/knowledgeListChunksPaginated.ts +0 -171
  172. package/packages/orq-rc/src/funcs/knowledgeListDatasources.ts +0 -174
  173. package/packages/orq-rc/src/funcs/knowledgeRetrieve.ts +0 -166
  174. package/packages/orq-rc/src/funcs/knowledgeRetrieveChunk.ts +0 -173
  175. package/packages/orq-rc/src/funcs/knowledgeRetrieveDatasource.ts +0 -169
  176. package/packages/orq-rc/src/funcs/knowledgeSearch.ts +0 -167
  177. package/packages/orq-rc/src/funcs/knowledgeUpdate.ts +0 -164
  178. package/packages/orq-rc/src/funcs/knowledgeUpdateChunk.ts +0 -174
  179. package/packages/orq-rc/src/funcs/knowledgeUpdateDatasource.ts +0 -170
  180. package/packages/orq-rc/src/funcs/memoryStoresCreate.ts +0 -162
  181. package/packages/orq-rc/src/funcs/memoryStoresCreateDocument.ts +0 -175
  182. package/packages/orq-rc/src/funcs/memoryStoresCreateMemory.ts +0 -170
  183. package/packages/orq-rc/src/funcs/memoryStoresDelete.ts +0 -168
  184. package/packages/orq-rc/src/funcs/memoryStoresDeleteDocument.ts +0 -184
  185. package/packages/orq-rc/src/funcs/memoryStoresDeleteMemory.ts +0 -179
  186. package/packages/orq-rc/src/funcs/memoryStoresList.ts +0 -178
  187. package/packages/orq-rc/src/funcs/memoryStoresListDocuments.ts +0 -181
  188. package/packages/orq-rc/src/funcs/memoryStoresListMemories.ts +0 -176
  189. package/packages/orq-rc/src/funcs/memoryStoresRetrieve.ts +0 -177
  190. package/packages/orq-rc/src/funcs/memoryStoresRetrieveDocument.ts +0 -178
  191. package/packages/orq-rc/src/funcs/memoryStoresRetrieveMemory.ts +0 -173
  192. package/packages/orq-rc/src/funcs/memoryStoresUpdate.ts +0 -168
  193. package/packages/orq-rc/src/funcs/memoryStoresUpdateDocument.ts +0 -179
  194. package/packages/orq-rc/src/funcs/memoryStoresUpdateMemory.ts +0 -174
  195. package/packages/orq-rc/src/funcs/modelsList.ts +0 -142
  196. package/packages/orq-rc/src/funcs/promptsCreate.ts +0 -160
  197. package/packages/orq-rc/src/funcs/promptsDelete.ts +0 -164
  198. package/packages/orq-rc/src/funcs/promptsGetVersion.ts +0 -181
  199. package/packages/orq-rc/src/funcs/promptsList.ts +0 -167
  200. package/packages/orq-rc/src/funcs/promptsListVersions.ts +0 -173
  201. package/packages/orq-rc/src/funcs/promptsRetrieve.ts +0 -166
  202. package/packages/orq-rc/src/funcs/promptsUpdate.ts +0 -173
  203. package/packages/orq-rc/src/funcs/remoteconfigsRetrieve.ts +0 -161
  204. package/packages/orq-rc/src/funcs/toolsCreate.ts +0 -172
  205. package/packages/orq-rc/src/funcs/toolsDelete.ts +0 -167
  206. package/packages/orq-rc/src/funcs/toolsList.ts +0 -176
  207. package/packages/orq-rc/src/funcs/toolsRetrieve.ts +0 -166
  208. package/packages/orq-rc/src/funcs/toolsUpdate.ts +0 -176
  209. package/packages/orq-rc/src/hooks/global.ts +0 -44
  210. package/packages/orq-rc/src/hooks/hooks.ts +0 -132
  211. package/packages/orq-rc/src/hooks/index.ts +0 -6
  212. package/packages/orq-rc/src/hooks/registration.ts +0 -15
  213. package/packages/orq-rc/src/hooks/types.ts +0 -112
  214. package/packages/orq-rc/src/index.ts +0 -9
  215. package/packages/orq-rc/src/lib/base64.ts +0 -37
  216. package/packages/orq-rc/src/lib/config.ts +0 -74
  217. package/packages/orq-rc/src/lib/dlv.ts +0 -53
  218. package/packages/orq-rc/src/lib/encodings.ts +0 -483
  219. package/packages/orq-rc/src/lib/env.ts +0 -89
  220. package/packages/orq-rc/src/lib/event-streams.ts +0 -135
  221. package/packages/orq-rc/src/lib/files.ts +0 -82
  222. package/packages/orq-rc/src/lib/http.ts +0 -323
  223. package/packages/orq-rc/src/lib/is-plain-object.ts +0 -43
  224. package/packages/orq-rc/src/lib/logger.ts +0 -9
  225. package/packages/orq-rc/src/lib/matchers.ts +0 -345
  226. package/packages/orq-rc/src/lib/primitives.ts +0 -150
  227. package/packages/orq-rc/src/lib/retries.ts +0 -218
  228. package/packages/orq-rc/src/lib/schemas.ts +0 -91
  229. package/packages/orq-rc/src/lib/sdks.ts +0 -407
  230. package/packages/orq-rc/src/lib/security.ts +0 -264
  231. package/packages/orq-rc/src/lib/url.ts +0 -33
  232. package/packages/orq-rc/src/mcp-server/cli/start/command.ts +0 -111
  233. package/packages/orq-rc/src/mcp-server/cli/start/impl.ts +0 -136
  234. package/packages/orq-rc/src/mcp-server/cli.ts +0 -13
  235. package/packages/orq-rc/src/mcp-server/console-logger.ts +0 -71
  236. package/packages/orq-rc/src/mcp-server/extensions.ts +0 -17
  237. package/packages/orq-rc/src/mcp-server/mcp-server.ts +0 -26
  238. package/packages/orq-rc/src/mcp-server/prompts.ts +0 -117
  239. package/packages/orq-rc/src/mcp-server/resources.ts +0 -172
  240. package/packages/orq-rc/src/mcp-server/scopes.ts +0 -7
  241. package/packages/orq-rc/src/mcp-server/server.ts +0 -259
  242. package/packages/orq-rc/src/mcp-server/shared.ts +0 -74
  243. package/packages/orq-rc/src/mcp-server/tools/agentsCreate.ts +0 -37
  244. package/packages/orq-rc/src/mcp-server/tools/agentsDelete.ts +0 -35
  245. package/packages/orq-rc/src/mcp-server/tools/agentsInvoke.ts +0 -37
  246. package/packages/orq-rc/src/mcp-server/tools/agentsList.ts +0 -37
  247. package/packages/orq-rc/src/mcp-server/tools/agentsListActions.ts +0 -35
  248. package/packages/orq-rc/src/mcp-server/tools/agentsListTasks.ts +0 -37
  249. package/packages/orq-rc/src/mcp-server/tools/agentsResponsesCreate.ts +0 -37
  250. package/packages/orq-rc/src/mcp-server/tools/agentsRetrieve.ts +0 -37
  251. package/packages/orq-rc/src/mcp-server/tools/agentsRetrieveAction.ts +0 -35
  252. package/packages/orq-rc/src/mcp-server/tools/agentsRetrieveTask.ts +0 -37
  253. package/packages/orq-rc/src/mcp-server/tools/agentsRun.ts +0 -37
  254. package/packages/orq-rc/src/mcp-server/tools/agentsStream.ts +0 -37
  255. package/packages/orq-rc/src/mcp-server/tools/agentsStreamRun.ts +0 -37
  256. package/packages/orq-rc/src/mcp-server/tools/agentsUpdate.ts +0 -37
  257. package/packages/orq-rc/src/mcp-server/tools/budgetsCreate.ts +0 -37
  258. package/packages/orq-rc/src/mcp-server/tools/budgetsDelete.ts +0 -35
  259. package/packages/orq-rc/src/mcp-server/tools/budgetsGet.ts +0 -37
  260. package/packages/orq-rc/src/mcp-server/tools/budgetsList.ts +0 -37
  261. package/packages/orq-rc/src/mcp-server/tools/budgetsUpdate.ts +0 -37
  262. package/packages/orq-rc/src/mcp-server/tools/chunkingParse.ts +0 -37
  263. package/packages/orq-rc/src/mcp-server/tools/contactsCreate.ts +0 -37
  264. package/packages/orq-rc/src/mcp-server/tools/contactsDelete.ts +0 -35
  265. package/packages/orq-rc/src/mcp-server/tools/contactsList.ts +0 -37
  266. package/packages/orq-rc/src/mcp-server/tools/contactsRetrieve.ts +0 -37
  267. package/packages/orq-rc/src/mcp-server/tools/contactsUpdate.ts +0 -37
  268. package/packages/orq-rc/src/mcp-server/tools/datasetsClear.ts +0 -35
  269. package/packages/orq-rc/src/mcp-server/tools/datasetsCreate.ts +0 -37
  270. package/packages/orq-rc/src/mcp-server/tools/datasetsCreateDatapoint.ts +0 -37
  271. package/packages/orq-rc/src/mcp-server/tools/datasetsDelete.ts +0 -35
  272. package/packages/orq-rc/src/mcp-server/tools/datasetsDeleteDatapoint.ts +0 -35
  273. package/packages/orq-rc/src/mcp-server/tools/datasetsList.ts +0 -37
  274. package/packages/orq-rc/src/mcp-server/tools/datasetsListDatapoints.ts +0 -37
  275. package/packages/orq-rc/src/mcp-server/tools/datasetsRetrieve.ts +0 -37
  276. package/packages/orq-rc/src/mcp-server/tools/datasetsRetrieveDatapoint.ts +0 -37
  277. package/packages/orq-rc/src/mcp-server/tools/datasetsUpdate.ts +0 -37
  278. package/packages/orq-rc/src/mcp-server/tools/datasetsUpdateDatapoint.ts +0 -35
  279. package/packages/orq-rc/src/mcp-server/tools/deploymentsGetConfig.ts +0 -37
  280. package/packages/orq-rc/src/mcp-server/tools/deploymentsInvoke.ts +0 -37
  281. package/packages/orq-rc/src/mcp-server/tools/deploymentsList.ts +0 -37
  282. package/packages/orq-rc/src/mcp-server/tools/deploymentsMetricsCreate.ts +0 -37
  283. package/packages/orq-rc/src/mcp-server/tools/deploymentsStream.ts +0 -37
  284. package/packages/orq-rc/src/mcp-server/tools/evalsAll.ts +0 -35
  285. package/packages/orq-rc/src/mcp-server/tools/evalsCreate.ts +0 -35
  286. package/packages/orq-rc/src/mcp-server/tools/evalsDelete.ts +0 -33
  287. package/packages/orq-rc/src/mcp-server/tools/evalsUpdate.ts +0 -35
  288. package/packages/orq-rc/src/mcp-server/tools/feedbackCreate.ts +0 -37
  289. package/packages/orq-rc/src/mcp-server/tools/filesCreate.ts +0 -37
  290. package/packages/orq-rc/src/mcp-server/tools/filesDelete.ts +0 -33
  291. package/packages/orq-rc/src/mcp-server/tools/filesGet.ts +0 -37
  292. package/packages/orq-rc/src/mcp-server/tools/filesList.ts +0 -37
  293. package/packages/orq-rc/src/mcp-server/tools/knowledgeCreate.ts +0 -35
  294. package/packages/orq-rc/src/mcp-server/tools/knowledgeCreateChunks.ts +0 -35
  295. package/packages/orq-rc/src/mcp-server/tools/knowledgeCreateDatasource.ts +0 -35
  296. package/packages/orq-rc/src/mcp-server/tools/knowledgeDelete.ts +0 -35
  297. package/packages/orq-rc/src/mcp-server/tools/knowledgeDeleteChunk.ts +0 -33
  298. package/packages/orq-rc/src/mcp-server/tools/knowledgeDeleteChunks.ts +0 -35
  299. package/packages/orq-rc/src/mcp-server/tools/knowledgeDeleteDatasource.ts +0 -35
  300. package/packages/orq-rc/src/mcp-server/tools/knowledgeGetChunksCount.ts +0 -35
  301. package/packages/orq-rc/src/mcp-server/tools/knowledgeList.ts +0 -37
  302. package/packages/orq-rc/src/mcp-server/tools/knowledgeListChunks.ts +0 -35
  303. package/packages/orq-rc/src/mcp-server/tools/knowledgeListChunksPaginated.ts +0 -35
  304. package/packages/orq-rc/src/mcp-server/tools/knowledgeListDatasources.ts +0 -35
  305. package/packages/orq-rc/src/mcp-server/tools/knowledgeRetrieve.ts +0 -37
  306. package/packages/orq-rc/src/mcp-server/tools/knowledgeRetrieveChunk.ts +0 -35
  307. package/packages/orq-rc/src/mcp-server/tools/knowledgeRetrieveDatasource.ts +0 -35
  308. package/packages/orq-rc/src/mcp-server/tools/knowledgeSearch.ts +0 -37
  309. package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdate.ts +0 -35
  310. package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdateChunk.ts +0 -35
  311. package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdateDatasource.ts +0 -35
  312. package/packages/orq-rc/src/mcp-server/tools/memoryStoresCreate.ts +0 -35
  313. package/packages/orq-rc/src/mcp-server/tools/memoryStoresCreateDocument.ts +0 -37
  314. package/packages/orq-rc/src/mcp-server/tools/memoryStoresCreateMemory.ts +0 -37
  315. package/packages/orq-rc/src/mcp-server/tools/memoryStoresDelete.ts +0 -35
  316. package/packages/orq-rc/src/mcp-server/tools/memoryStoresDeleteDocument.ts +0 -40
  317. package/packages/orq-rc/src/mcp-server/tools/memoryStoresDeleteMemory.ts +0 -40
  318. package/packages/orq-rc/src/mcp-server/tools/memoryStoresList.ts +0 -37
  319. package/packages/orq-rc/src/mcp-server/tools/memoryStoresListDocuments.ts +0 -37
  320. package/packages/orq-rc/src/mcp-server/tools/memoryStoresListMemories.ts +0 -37
  321. package/packages/orq-rc/src/mcp-server/tools/memoryStoresRetrieve.ts +0 -37
  322. package/packages/orq-rc/src/mcp-server/tools/memoryStoresRetrieveDocument.ts +0 -37
  323. package/packages/orq-rc/src/mcp-server/tools/memoryStoresRetrieveMemory.ts +0 -37
  324. package/packages/orq-rc/src/mcp-server/tools/memoryStoresUpdate.ts +0 -37
  325. package/packages/orq-rc/src/mcp-server/tools/memoryStoresUpdateDocument.ts +0 -37
  326. package/packages/orq-rc/src/mcp-server/tools/memoryStoresUpdateMemory.ts +0 -37
  327. package/packages/orq-rc/src/mcp-server/tools/modelsList.ts +0 -30
  328. package/packages/orq-rc/src/mcp-server/tools/promptsCreate.ts +0 -35
  329. package/packages/orq-rc/src/mcp-server/tools/promptsDelete.ts +0 -33
  330. package/packages/orq-rc/src/mcp-server/tools/promptsGetVersion.ts +0 -37
  331. package/packages/orq-rc/src/mcp-server/tools/promptsList.ts +0 -37
  332. package/packages/orq-rc/src/mcp-server/tools/promptsListVersions.ts +0 -37
  333. package/packages/orq-rc/src/mcp-server/tools/promptsRetrieve.ts +0 -37
  334. package/packages/orq-rc/src/mcp-server/tools/promptsUpdate.ts +0 -35
  335. package/packages/orq-rc/src/mcp-server/tools/remoteconfigsRetrieve.ts +0 -36
  336. package/packages/orq-rc/src/mcp-server/tools/toolsCreate.ts +0 -37
  337. package/packages/orq-rc/src/mcp-server/tools/toolsDelete.ts +0 -35
  338. package/packages/orq-rc/src/mcp-server/tools/toolsList.ts +0 -37
  339. package/packages/orq-rc/src/mcp-server/tools/toolsRetrieve.ts +0 -37
  340. package/packages/orq-rc/src/mcp-server/tools/toolsUpdate.ts +0 -37
  341. package/packages/orq-rc/src/mcp-server/tools.ts +0 -129
  342. package/packages/orq-rc/src/models/components/index.ts +0 -6
  343. package/packages/orq-rc/src/models/components/invokedeploymentrequest.ts +0 -6261
  344. package/packages/orq-rc/src/models/components/security.ts +0 -56
  345. package/packages/orq-rc/src/models/errors/apierror.ts +0 -40
  346. package/packages/orq-rc/src/models/errors/createagent.ts +0 -67
  347. package/packages/orq-rc/src/models/errors/createeval.ts +0 -67
  348. package/packages/orq-rc/src/models/errors/deleteagent.ts +0 -67
  349. package/packages/orq-rc/src/models/errors/deletecontact.ts +0 -78
  350. package/packages/orq-rc/src/models/errors/deleteeval.ts +0 -67
  351. package/packages/orq-rc/src/models/errors/getagent.ts +0 -67
  352. package/packages/orq-rc/src/models/errors/getevals.ts +0 -67
  353. package/packages/orq-rc/src/models/errors/getpromptversion.ts +0 -67
  354. package/packages/orq-rc/src/models/errors/honoapierror.ts +0 -77
  355. package/packages/orq-rc/src/models/errors/httpclienterrors.ts +0 -62
  356. package/packages/orq-rc/src/models/errors/index.ts +0 -27
  357. package/packages/orq-rc/src/models/errors/listagenttasks.ts +0 -67
  358. package/packages/orq-rc/src/models/errors/orqerror.ts +0 -35
  359. package/packages/orq-rc/src/models/errors/responsevalidationerror.ts +0 -50
  360. package/packages/orq-rc/src/models/errors/retrievecontact.ts +0 -78
  361. package/packages/orq-rc/src/models/errors/sdkvalidationerror.ts +0 -109
  362. package/packages/orq-rc/src/models/errors/streamagent.ts +0 -67
  363. package/packages/orq-rc/src/models/errors/streamrunagent.ts +0 -67
  364. package/packages/orq-rc/src/models/errors/updateagent.ts +0 -67
  365. package/packages/orq-rc/src/models/errors/updatecontact.ts +0 -70
  366. package/packages/orq-rc/src/models/errors/updateeval.ts +0 -67
  367. package/packages/orq-rc/src/models/errors/updateprompt.ts +0 -67
  368. package/packages/orq-rc/src/models/errors/updatetool.ts +0 -78
  369. package/packages/orq-rc/src/models/operations/cleardataset.ts +0 -63
  370. package/packages/orq-rc/src/models/operations/createagent.ts +0 -8057
  371. package/packages/orq-rc/src/models/operations/createagentresponse.ts +0 -1339
  372. package/packages/orq-rc/src/models/operations/createbudget.ts +0 -582
  373. package/packages/orq-rc/src/models/operations/createchunk.ts +0 -341
  374. package/packages/orq-rc/src/models/operations/createcontact.ts +0 -237
  375. package/packages/orq-rc/src/models/operations/createdataset.ts +0 -257
  376. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +0 -5379
  377. package/packages/orq-rc/src/models/operations/createdatasource.ts +0 -694
  378. package/packages/orq-rc/src/models/operations/createeval.ts +0 -6857
  379. package/packages/orq-rc/src/models/operations/createfeedback.ts +0 -226
  380. package/packages/orq-rc/src/models/operations/createknowledge.ts +0 -1489
  381. package/packages/orq-rc/src/models/operations/creatememory.ts +0 -229
  382. package/packages/orq-rc/src/models/operations/creatememorydocument.ts +0 -242
  383. package/packages/orq-rc/src/models/operations/creatememorystore.ts +0 -310
  384. package/packages/orq-rc/src/models/operations/createprompt.ts +0 -6179
  385. package/packages/orq-rc/src/models/operations/createtool.ts +0 -3956
  386. package/packages/orq-rc/src/models/operations/deleteagent.ts +0 -63
  387. package/packages/orq-rc/src/models/operations/deletebudget.ts +0 -54
  388. package/packages/orq-rc/src/models/operations/deletechunk.ts +0 -81
  389. package/packages/orq-rc/src/models/operations/deletechunks.ts +0 -198
  390. package/packages/orq-rc/src/models/operations/deletecontact.ts +0 -54
  391. package/packages/orq-rc/src/models/operations/deletedatapoint.ts +0 -72
  392. package/packages/orq-rc/src/models/operations/deletedataset.ts +0 -63
  393. package/packages/orq-rc/src/models/operations/deletedatasource.ts +0 -72
  394. package/packages/orq-rc/src/models/operations/deleteeval.ts +0 -51
  395. package/packages/orq-rc/src/models/operations/deleteknowledge.ts +0 -63
  396. package/packages/orq-rc/src/models/operations/deletememory.ts +0 -72
  397. package/packages/orq-rc/src/models/operations/deletememorydocument.ts +0 -83
  398. package/packages/orq-rc/src/models/operations/deletememorystore.ts +0 -63
  399. package/packages/orq-rc/src/models/operations/deleteprompt.ts +0 -54
  400. package/packages/orq-rc/src/models/operations/deletetool.ts +0 -60
  401. package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +0 -5091
  402. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +0 -8055
  403. package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +0 -980
  404. package/packages/orq-rc/src/models/operations/deployments.ts +0 -2054
  405. package/packages/orq-rc/src/models/operations/deploymentstream.ts +0 -8269
  406. package/packages/orq-rc/src/models/operations/filedelete.ts +0 -63
  407. package/packages/orq-rc/src/models/operations/fileget.ts +0 -181
  408. package/packages/orq-rc/src/models/operations/filelist.ts +0 -268
  409. package/packages/orq-rc/src/models/operations/fileupload.ts +0 -258
  410. package/packages/orq-rc/src/models/operations/getagent.ts +0 -3480
  411. package/packages/orq-rc/src/models/operations/getagenttask.ts +0 -2389
  412. package/packages/orq-rc/src/models/operations/getallmemories.ts +0 -261
  413. package/packages/orq-rc/src/models/operations/getallmemorydocuments.ts +0 -280
  414. package/packages/orq-rc/src/models/operations/getallmemorystores.ts +0 -325
  415. package/packages/orq-rc/src/models/operations/getallprompts.ts +0 -2033
  416. package/packages/orq-rc/src/models/operations/getalltools.ts +0 -2292
  417. package/packages/orq-rc/src/models/operations/getbudget.ts +0 -357
  418. package/packages/orq-rc/src/models/operations/getchunkscount.ts +0 -185
  419. package/packages/orq-rc/src/models/operations/getevals.ts +0 -5543
  420. package/packages/orq-rc/src/models/operations/getonechunk.ts +0 -258
  421. package/packages/orq-rc/src/models/operations/getoneknowledge.ts +0 -1070
  422. package/packages/orq-rc/src/models/operations/getoneprompt.ts +0 -1924
  423. package/packages/orq-rc/src/models/operations/getpromptversion.ts +0 -1942
  424. package/packages/orq-rc/src/models/operations/index.ts +0 -102
  425. package/packages/orq-rc/src/models/operations/invokeagent.ts +0 -1930
  426. package/packages/orq-rc/src/models/operations/listactions.ts +0 -427
  427. package/packages/orq-rc/src/models/operations/listagents.ts +0 -3626
  428. package/packages/orq-rc/src/models/operations/listagenttasks.ts +0 -2614
  429. package/packages/orq-rc/src/models/operations/listbudgets.ts +0 -494
  430. package/packages/orq-rc/src/models/operations/listchunks.ts +0 -395
  431. package/packages/orq-rc/src/models/operations/listchunkspaginated.ts +0 -408
  432. package/packages/orq-rc/src/models/operations/listcontacts.ts +0 -413
  433. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +0 -3169
  434. package/packages/orq-rc/src/models/operations/listdatasets.ts +0 -334
  435. package/packages/orq-rc/src/models/operations/listdatasources.ts +0 -363
  436. package/packages/orq-rc/src/models/operations/listknowledgebases.ts +0 -1068
  437. package/packages/orq-rc/src/models/operations/listmodels.ts +0 -207
  438. package/packages/orq-rc/src/models/operations/listpromptversions.ts +0 -2041
  439. package/packages/orq-rc/src/models/operations/parse.ts +0 -1013
  440. package/packages/orq-rc/src/models/operations/remoteconfigsgetconfig.ts +0 -146
  441. package/packages/orq-rc/src/models/operations/retrieveaction.ts +0 -354
  442. package/packages/orq-rc/src/models/operations/retrievecontact.ts +0 -180
  443. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +0 -2985
  444. package/packages/orq-rc/src/models/operations/retrievedataset.ts +0 -246
  445. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +0 -231
  446. package/packages/orq-rc/src/models/operations/retrievememory.ts +0 -171
  447. package/packages/orq-rc/src/models/operations/retrievememorydocument.ts +0 -189
  448. package/packages/orq-rc/src/models/operations/retrievememorystore.ts +0 -234
  449. package/packages/orq-rc/src/models/operations/retrievetool.ts +0 -2347
  450. package/packages/orq-rc/src/models/operations/runagent.ts +0 -7617
  451. package/packages/orq-rc/src/models/operations/searchknowledge.ts +0 -2775
  452. package/packages/orq-rc/src/models/operations/streamagent.ts +0 -9732
  453. package/packages/orq-rc/src/models/operations/streamrunagent.ts +0 -15831
  454. package/packages/orq-rc/src/models/operations/updateagent.ts +0 -8649
  455. package/packages/orq-rc/src/models/operations/updatebudget.ts +0 -502
  456. package/packages/orq-rc/src/models/operations/updatechunk.ts +0 -361
  457. package/packages/orq-rc/src/models/operations/updatecontact.ts +0 -280
  458. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +0 -5374
  459. package/packages/orq-rc/src/models/operations/updatedataset.ts +0 -326
  460. package/packages/orq-rc/src/models/operations/updatedatasource.ts +0 -288
  461. package/packages/orq-rc/src/models/operations/updateeval.ts +0 -7197
  462. package/packages/orq-rc/src/models/operations/updateknowledge.ts +0 -1925
  463. package/packages/orq-rc/src/models/operations/updatememory.ts +0 -238
  464. package/packages/orq-rc/src/models/operations/updatememorydocument.ts +0 -251
  465. package/packages/orq-rc/src/models/operations/updatememorystore.ts +0 -463
  466. package/packages/orq-rc/src/models/operations/updateprompt.ts +0 -6410
  467. package/packages/orq-rc/src/models/operations/updatetool.ts +0 -4279
  468. package/packages/orq-rc/src/sdk/agents.ts +0 -244
  469. package/packages/orq-rc/src/sdk/budgets.ts +0 -99
  470. package/packages/orq-rc/src/sdk/chunking.ts +0 -27
  471. package/packages/orq-rc/src/sdk/contacts.ts +0 -99
  472. package/packages/orq-rc/src/sdk/datasets.ts +0 -204
  473. package/packages/orq-rc/src/sdk/deployments.ts +0 -89
  474. package/packages/orq-rc/src/sdk/evals.ts +0 -69
  475. package/packages/orq-rc/src/sdk/feedback.ts +0 -27
  476. package/packages/orq-rc/src/sdk/files.ts +0 -78
  477. package/packages/orq-rc/src/sdk/index.ts +0 -5
  478. package/packages/orq-rc/src/sdk/knowledge.ts +0 -309
  479. package/packages/orq-rc/src/sdk/memorystores.ts +0 -286
  480. package/packages/orq-rc/src/sdk/metrics.ts +0 -27
  481. package/packages/orq-rc/src/sdk/models.ts +0 -25
  482. package/packages/orq-rc/src/sdk/prompts.ts +0 -126
  483. package/packages/orq-rc/src/sdk/remoteconfigs.ts +0 -24
  484. package/packages/orq-rc/src/sdk/responses.ts +0 -27
  485. package/packages/orq-rc/src/sdk/sdk.ts +0 -97
  486. package/packages/orq-rc/src/sdk/tools.ts +0 -99
  487. package/packages/orq-rc/src/types/async.ts +0 -68
  488. package/packages/orq-rc/src/types/blobs.ts +0 -32
  489. package/packages/orq-rc/src/types/constdatetime.ts +0 -15
  490. package/packages/orq-rc/src/types/enums.ts +0 -45
  491. package/packages/orq-rc/src/types/fp.ts +0 -50
  492. package/packages/orq-rc/src/types/index.ts +0 -11
  493. package/packages/orq-rc/src/types/operations.ts +0 -105
  494. package/packages/orq-rc/src/types/rfcdate.ts +0 -54
  495. package/packages/orq-rc/src/types/streams.ts +0 -21
  496. package/packages/orq-rc/src/types/unrecognized.ts +0 -27
  497. package/packages/orq-rc/tsconfig.json +0 -41
@@ -1,1930 +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 { safeParse } from "../../lib/schemas.js";
8
- import { ClosedEnum } from "../../types/enums.js";
9
- import { Result as SafeParseResult } from "../../types/fp.js";
10
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
-
12
- /**
13
- * Message containing tool execution results
14
- */
15
- export const InvokeAgentRoleToolMessage = {
16
- Tool: "tool",
17
- } as const;
18
- /**
19
- * Message containing tool execution results
20
- */
21
- export type InvokeAgentRoleToolMessage = ClosedEnum<
22
- typeof InvokeAgentRoleToolMessage
23
- >;
24
-
25
- /**
26
- * Message from the end user
27
- */
28
- export const InvokeAgentRoleUserMessage = {
29
- User: "user",
30
- } as const;
31
- /**
32
- * Message from the end user
33
- */
34
- export type InvokeAgentRoleUserMessage = ClosedEnum<
35
- typeof InvokeAgentRoleUserMessage
36
- >;
37
-
38
- /**
39
- * Message role (user or tool for continuing executions)
40
- */
41
- export type InvokeAgentRole =
42
- | InvokeAgentRoleUserMessage
43
- | InvokeAgentRoleToolMessage;
44
-
45
- export const InvokeAgentPublicMessagePartAgentsRequestKind = {
46
- ToolResult: "tool_result",
47
- } as const;
48
- export type InvokeAgentPublicMessagePartAgentsRequestKind = ClosedEnum<
49
- typeof InvokeAgentPublicMessagePartAgentsRequestKind
50
- >;
51
-
52
- /**
53
- * Tool execution result part. Use this ONLY when providing results for a pending tool call from the agent. The tool_call_id must match the ID from the agent's tool call request.
54
- */
55
- export type PublicMessagePartToolResultPart = {
56
- kind: InvokeAgentPublicMessagePartAgentsRequestKind;
57
- toolCallId: string;
58
- result?: any | undefined;
59
- metadata?: { [k: string]: any } | undefined;
60
- };
61
-
62
- export const InvokeAgentPublicMessagePartAgentsKind = {
63
- File: "file",
64
- } as const;
65
- export type InvokeAgentPublicMessagePartAgentsKind = ClosedEnum<
66
- typeof InvokeAgentPublicMessagePartAgentsKind
67
- >;
68
-
69
- /**
70
- * File in URI format. Check in the model's documentation for the supported mime types for the URI format
71
- */
72
- export type FileFileInURIFormat = {
73
- /**
74
- * URL for the File content
75
- */
76
- uri: string;
77
- /**
78
- * Optional mimeType for the file
79
- */
80
- mimeType?: string | undefined;
81
- /**
82
- * Optional name for the file
83
- */
84
- name?: string | undefined;
85
- };
86
-
87
- /**
88
- * Binary in base64 format. Check in the model's documentation for the supported mime types for the binary format.
89
- */
90
- export type FileBinaryFormat = {
91
- /**
92
- * base64 encoded content of the file
93
- */
94
- bytes: string;
95
- /**
96
- * Optional mimeType for the file
97
- */
98
- mimeType?: string | undefined;
99
- /**
100
- * Optional name for the file
101
- */
102
- name?: string | undefined;
103
- };
104
-
105
- export type InvokeAgentPublicMessagePartFile =
106
- | FileBinaryFormat
107
- | FileFileInURIFormat;
108
-
109
- /**
110
- * File attachment part. Use this to send files (images, documents, etc.) to the agent for processing.
111
- */
112
- export type PublicMessagePartFilePart = {
113
- kind: InvokeAgentPublicMessagePartAgentsKind;
114
- file: FileBinaryFormat | FileFileInURIFormat;
115
- metadata?: { [k: string]: any } | undefined;
116
- };
117
-
118
- export const InvokeAgentPublicMessagePartKind = {
119
- Text: "text",
120
- } as const;
121
- export type InvokeAgentPublicMessagePartKind = ClosedEnum<
122
- typeof InvokeAgentPublicMessagePartKind
123
- >;
124
-
125
- /**
126
- * Text content part. Use this to send text messages to the agent.
127
- */
128
- export type PublicMessagePartTextPart = {
129
- kind: InvokeAgentPublicMessagePartKind;
130
- text: string;
131
- };
132
-
133
- /**
134
- * Message part that can be provided by users. Use "text" for regular messages, "file" for attachments, or "tool_result" when responding to tool call requests.
135
- */
136
- export type InvokeAgentPublicMessagePart =
137
- | PublicMessagePartTextPart
138
- | PublicMessagePartFilePart
139
- | PublicMessagePartToolResultPart;
140
-
141
- /**
142
- * The A2A message to send to the agent (user input or tool results)
143
- */
144
- export type InvokeAgentA2AMessage = {
145
- /**
146
- * Optional A2A message ID in ULID format
147
- */
148
- messageId?: string | undefined;
149
- /**
150
- * Message role (user or tool for continuing executions)
151
- */
152
- role: InvokeAgentRoleUserMessage | InvokeAgentRoleToolMessage;
153
- /**
154
- * A2A message parts (text, file, or tool_result only)
155
- */
156
- parts: Array<
157
- | PublicMessagePartTextPart
158
- | PublicMessagePartFilePart
159
- | PublicMessagePartToolResultPart
160
- >;
161
- };
162
-
163
- /**
164
- * Information about the contact making the request. If the contact does not exist, it will be created automatically.
165
- */
166
- export type InvokeAgentContact = {
167
- /**
168
- * Unique identifier for the contact
169
- */
170
- id: string;
171
- /**
172
- * Display name of the contact
173
- */
174
- displayName?: string | undefined;
175
- /**
176
- * Email address of the contact
177
- */
178
- email?: string | undefined;
179
- /**
180
- * A hash of key/value pairs containing any other data about the contact
181
- */
182
- metadata?: Array<{ [k: string]: any }> | undefined;
183
- /**
184
- * URL to the contact's avatar or logo
185
- */
186
- logoUrl?: string | undefined;
187
- /**
188
- * A list of tags associated with the contact
189
- */
190
- tags?: Array<string> | undefined;
191
- };
192
-
193
- /**
194
- * Thread information to group related requests
195
- */
196
- export type InvokeAgentThread = {
197
- /**
198
- * Unique thread identifier to group related invocations.
199
- */
200
- id: string;
201
- /**
202
- * Optional tags to differentiate or categorize threads
203
- */
204
- tags?: Array<string> | undefined;
205
- };
206
-
207
- /**
208
- * Memory configuration for the agent execution. Used to associate memory stores with specific entities like users or sessions.
209
- */
210
- export type InvokeAgentMemory = {
211
- /**
212
- * An entity ID used to link memory stores to a specific user, session, or conversation. This ID is used to isolate and retrieve memories specific to the entity across agent executions.
213
- */
214
- entityId: string;
215
- };
216
-
217
- export type InvokeAgentRequestBody = {
218
- /**
219
- * Optional task ID to continue an existing agent execution. When provided, the agent will continue the conversation from the existing task state. The task must be in an inactive state to continue.
220
- */
221
- taskId?: string | undefined;
222
- /**
223
- * The A2A message to send to the agent (user input or tool results)
224
- */
225
- message: InvokeAgentA2AMessage;
226
- /**
227
- * Optional variables for template replacement in system prompt, instructions, and messages
228
- */
229
- variables?: { [k: string]: any } | undefined;
230
- /**
231
- * Information about the contact making the request. If the contact does not exist, it will be created automatically.
232
- */
233
- contact?: InvokeAgentContact | undefined;
234
- /**
235
- * Thread information to group related requests
236
- */
237
- thread?: InvokeAgentThread | undefined;
238
- /**
239
- * Memory configuration for the agent execution. Used to associate memory stores with specific entities like users or sessions.
240
- */
241
- memory?: InvokeAgentMemory | undefined;
242
- /**
243
- * Optional metadata for the agent invocation as key-value pairs that will be included in traces
244
- */
245
- metadata?: { [k: string]: any } | undefined;
246
- };
247
-
248
- export type InvokeAgentRequest = {
249
- /**
250
- * The key or ID of the agent to invoke
251
- */
252
- key: string;
253
- requestBody?: InvokeAgentRequestBody | undefined;
254
- };
255
-
256
- /**
257
- * A2A entity type identifier
258
- */
259
- export const InvokeAgentKind = {
260
- Task: "task",
261
- } as const;
262
- /**
263
- * A2A entity type identifier
264
- */
265
- export type InvokeAgentKind = ClosedEnum<typeof InvokeAgentKind>;
266
-
267
- /**
268
- * Current state of the agent task execution. Values: submitted (queued), working (executing), input-required (awaiting user input), completed (finished successfully), failed (error occurred). Note: auth-required, canceled, and rejected statuses are defined for A2A protocol compatibility but are not currently supported in task execution.
269
- */
270
- export const TaskState = {
271
- Submitted: "submitted",
272
- Working: "working",
273
- InputRequired: "input-required",
274
- AuthRequired: "auth-required",
275
- Completed: "completed",
276
- Failed: "failed",
277
- Canceled: "canceled",
278
- Rejected: "rejected",
279
- } as const;
280
- /**
281
- * Current state of the agent task execution. Values: submitted (queued), working (executing), input-required (awaiting user input), completed (finished successfully), failed (error occurred). Note: auth-required, canceled, and rejected statuses are defined for A2A protocol compatibility but are not currently supported in task execution.
282
- */
283
- export type TaskState = ClosedEnum<typeof TaskState>;
284
-
285
- export const InvokeAgentAgentsKind = {
286
- Message: "message",
287
- } as const;
288
- export type InvokeAgentAgentsKind = ClosedEnum<typeof InvokeAgentAgentsKind>;
289
-
290
- /**
291
- * Role of the message sender in the A2A protocol. Values: user (end user), agent (AI agent), tool (tool execution result), system (system instructions/prompts).
292
- */
293
- export const InvokeAgentExtendedMessageRole = {
294
- User: "user",
295
- Agent: "agent",
296
- Tool: "tool",
297
- System: "system",
298
- } as const;
299
- /**
300
- * Role of the message sender in the A2A protocol. Values: user (end user), agent (AI agent), tool (tool execution result), system (system instructions/prompts).
301
- */
302
- export type InvokeAgentExtendedMessageRole = ClosedEnum<
303
- typeof InvokeAgentExtendedMessageRole
304
- >;
305
-
306
- export const InvokeAgentPartsAgentsResponse200Kind = {
307
- ToolResult: "tool_result",
308
- } as const;
309
- export type InvokeAgentPartsAgentsResponse200Kind = ClosedEnum<
310
- typeof InvokeAgentPartsAgentsResponse200Kind
311
- >;
312
-
313
- /**
314
- * The result of a tool execution. Contains the tool call ID for correlation and the result data from the tool invocation.
315
- */
316
- export type InvokeAgentPartsToolResultPart = {
317
- kind: InvokeAgentPartsAgentsResponse200Kind;
318
- toolCallId: string;
319
- result?: any | undefined;
320
- metadata?: { [k: string]: any } | undefined;
321
- };
322
-
323
- export const InvokeAgentPartsAgentsResponseKind = {
324
- ToolCall: "tool_call",
325
- } as const;
326
- export type InvokeAgentPartsAgentsResponseKind = ClosedEnum<
327
- typeof InvokeAgentPartsAgentsResponseKind
328
- >;
329
-
330
- /**
331
- * A tool invocation request from an agent. Contains the tool name, unique call ID, and arguments for the tool execution.
332
- */
333
- export type InvokeAgentPartsToolCallPart = {
334
- kind: InvokeAgentPartsAgentsResponseKind;
335
- toolName: string;
336
- toolCallId: string;
337
- arguments: { [k: string]: any };
338
- metadata?: { [k: string]: any } | undefined;
339
- };
340
-
341
- export const InvokeAgentPartsAgentsKind = {
342
- File: "file",
343
- } as const;
344
- export type InvokeAgentPartsAgentsKind = ClosedEnum<
345
- typeof InvokeAgentPartsAgentsKind
346
- >;
347
-
348
- /**
349
- * File in URI format. Check in the model's documentation for the supported mime types for the URI format
350
- */
351
- export type InvokeAgentFileFileInURIFormat = {
352
- /**
353
- * URL for the File content
354
- */
355
- uri: string;
356
- /**
357
- * Optional mimeType for the file
358
- */
359
- mimeType?: string | undefined;
360
- /**
361
- * Optional name for the file
362
- */
363
- name?: string | undefined;
364
- };
365
-
366
- /**
367
- * Binary in base64 format. Check in the model's documentation for the supported mime types for the binary format.
368
- */
369
- export type InvokeAgentFileBinaryFormat = {
370
- /**
371
- * base64 encoded content of the file
372
- */
373
- bytes: string;
374
- /**
375
- * Optional mimeType for the file
376
- */
377
- mimeType?: string | undefined;
378
- /**
379
- * Optional name for the file
380
- */
381
- name?: string | undefined;
382
- };
383
-
384
- export type InvokeAgentPartsFile =
385
- | InvokeAgentFileBinaryFormat
386
- | InvokeAgentFileFileInURIFormat;
387
-
388
- /**
389
- * A file content part that can contain either base64-encoded bytes or a URI reference. Used for images, documents, and other binary content in agent communications.
390
- */
391
- export type InvokeAgentPartsFilePart = {
392
- kind: InvokeAgentPartsAgentsKind;
393
- file: InvokeAgentFileBinaryFormat | InvokeAgentFileFileInURIFormat;
394
- metadata?: { [k: string]: any } | undefined;
395
- };
396
-
397
- export const InvokeAgentPartsKind = {
398
- Data: "data",
399
- } as const;
400
- export type InvokeAgentPartsKind = ClosedEnum<typeof InvokeAgentPartsKind>;
401
-
402
- /**
403
- * A structured data part containing JSON-serializable key-value pairs. Used for passing structured information between agents and tools.
404
- */
405
- export type InvokeAgentPartsDataPart = {
406
- kind: InvokeAgentPartsKind;
407
- data: { [k: string]: any };
408
- metadata?: { [k: string]: any } | undefined;
409
- };
410
-
411
- export const InvokeAgentPartsAgentsResponse200ApplicationJSONKind = {
412
- Text: "text",
413
- } as const;
414
- export type InvokeAgentPartsAgentsResponse200ApplicationJSONKind = ClosedEnum<
415
- typeof InvokeAgentPartsAgentsResponse200ApplicationJSONKind
416
- >;
417
-
418
- /**
419
- * A text content part containing plain text or markdown. Used for agent messages, user input, and text-based responses.
420
- */
421
- export type InvokeAgentPartsTextPart = {
422
- kind: InvokeAgentPartsAgentsResponse200ApplicationJSONKind;
423
- text: string;
424
- };
425
-
426
- export type InvokeAgentParts =
427
- | InvokeAgentPartsToolCallPart
428
- | InvokeAgentPartsTextPart
429
- | InvokeAgentPartsDataPart
430
- | InvokeAgentPartsFilePart
431
- | InvokeAgentPartsToolResultPart;
432
-
433
- /**
434
- * Optional A2A message providing additional context about the current status
435
- */
436
- export type TaskStatusMessage = {
437
- kind: InvokeAgentAgentsKind;
438
- messageId: string;
439
- /**
440
- * Role of the message sender in the A2A protocol. Values: user (end user), agent (AI agent), tool (tool execution result), system (system instructions/prompts).
441
- */
442
- role: InvokeAgentExtendedMessageRole;
443
- parts: Array<
444
- | InvokeAgentPartsToolCallPart
445
- | InvokeAgentPartsTextPart
446
- | InvokeAgentPartsDataPart
447
- | InvokeAgentPartsFilePart
448
- | InvokeAgentPartsToolResultPart
449
- >;
450
- };
451
-
452
- /**
453
- * Current task status information
454
- */
455
- export type TaskStatus = {
456
- /**
457
- * Current state of the agent task execution. Values: submitted (queued), working (executing), input-required (awaiting user input), completed (finished successfully), failed (error occurred). Note: auth-required, canceled, and rejected statuses are defined for A2A protocol compatibility but are not currently supported in task execution.
458
- */
459
- state: TaskState;
460
- /**
461
- * ISO 8601 timestamp of when the status was updated
462
- */
463
- timestamp?: string | undefined;
464
- /**
465
- * Optional A2A message providing additional context about the current status
466
- */
467
- message?: TaskStatusMessage | undefined;
468
- };
469
-
470
- /**
471
- * Response format following the Agent-to-Agent (A2A) protocol. Returned when starting or continuing an agent task execution.
472
- */
473
- export type InvokeAgentA2ATaskResponse = {
474
- /**
475
- * The unique ID of the created agent execution task
476
- */
477
- id: string;
478
- /**
479
- * The correlation ID for this execution (used for tracking)
480
- */
481
- contextId: string;
482
- /**
483
- * A2A entity type identifier
484
- */
485
- kind: InvokeAgentKind;
486
- /**
487
- * Current task status information
488
- */
489
- status: TaskStatus;
490
- /**
491
- * Task metadata containing workspace_id and trace_id for feedback and tracking
492
- */
493
- metadata?: { [k: string]: any } | undefined;
494
- };
495
-
496
- /** @internal */
497
- export const InvokeAgentRoleToolMessage$inboundSchema: z.ZodNativeEnum<
498
- typeof InvokeAgentRoleToolMessage
499
- > = z.nativeEnum(InvokeAgentRoleToolMessage);
500
- /** @internal */
501
- export const InvokeAgentRoleToolMessage$outboundSchema: z.ZodNativeEnum<
502
- typeof InvokeAgentRoleToolMessage
503
- > = InvokeAgentRoleToolMessage$inboundSchema;
504
-
505
- /** @internal */
506
- export const InvokeAgentRoleUserMessage$inboundSchema: z.ZodNativeEnum<
507
- typeof InvokeAgentRoleUserMessage
508
- > = z.nativeEnum(InvokeAgentRoleUserMessage);
509
- /** @internal */
510
- export const InvokeAgentRoleUserMessage$outboundSchema: z.ZodNativeEnum<
511
- typeof InvokeAgentRoleUserMessage
512
- > = InvokeAgentRoleUserMessage$inboundSchema;
513
-
514
- /** @internal */
515
- export const InvokeAgentRole$inboundSchema: z.ZodType<
516
- InvokeAgentRole,
517
- z.ZodTypeDef,
518
- unknown
519
- > = z.union([
520
- InvokeAgentRoleUserMessage$inboundSchema,
521
- InvokeAgentRoleToolMessage$inboundSchema,
522
- ]);
523
- /** @internal */
524
- export type InvokeAgentRole$Outbound = string | string;
525
-
526
- /** @internal */
527
- export const InvokeAgentRole$outboundSchema: z.ZodType<
528
- InvokeAgentRole$Outbound,
529
- z.ZodTypeDef,
530
- InvokeAgentRole
531
- > = z.union([
532
- InvokeAgentRoleUserMessage$outboundSchema,
533
- InvokeAgentRoleToolMessage$outboundSchema,
534
- ]);
535
-
536
- export function invokeAgentRoleToJSON(
537
- invokeAgentRole: InvokeAgentRole,
538
- ): string {
539
- return JSON.stringify(InvokeAgentRole$outboundSchema.parse(invokeAgentRole));
540
- }
541
- export function invokeAgentRoleFromJSON(
542
- jsonString: string,
543
- ): SafeParseResult<InvokeAgentRole, SDKValidationError> {
544
- return safeParse(
545
- jsonString,
546
- (x) => InvokeAgentRole$inboundSchema.parse(JSON.parse(x)),
547
- `Failed to parse 'InvokeAgentRole' from JSON`,
548
- );
549
- }
550
-
551
- /** @internal */
552
- export const InvokeAgentPublicMessagePartAgentsRequestKind$inboundSchema:
553
- z.ZodNativeEnum<typeof InvokeAgentPublicMessagePartAgentsRequestKind> = z
554
- .nativeEnum(InvokeAgentPublicMessagePartAgentsRequestKind);
555
- /** @internal */
556
- export const InvokeAgentPublicMessagePartAgentsRequestKind$outboundSchema:
557
- z.ZodNativeEnum<typeof InvokeAgentPublicMessagePartAgentsRequestKind> =
558
- InvokeAgentPublicMessagePartAgentsRequestKind$inboundSchema;
559
-
560
- /** @internal */
561
- export const PublicMessagePartToolResultPart$inboundSchema: z.ZodType<
562
- PublicMessagePartToolResultPart,
563
- z.ZodTypeDef,
564
- unknown
565
- > = z.object({
566
- kind: InvokeAgentPublicMessagePartAgentsRequestKind$inboundSchema,
567
- tool_call_id: z.string(),
568
- result: z.any().optional(),
569
- metadata: z.record(z.any()).optional(),
570
- }).transform((v) => {
571
- return remap$(v, {
572
- "tool_call_id": "toolCallId",
573
- });
574
- });
575
- /** @internal */
576
- export type PublicMessagePartToolResultPart$Outbound = {
577
- kind: string;
578
- tool_call_id: string;
579
- result?: any | undefined;
580
- metadata?: { [k: string]: any } | undefined;
581
- };
582
-
583
- /** @internal */
584
- export const PublicMessagePartToolResultPart$outboundSchema: z.ZodType<
585
- PublicMessagePartToolResultPart$Outbound,
586
- z.ZodTypeDef,
587
- PublicMessagePartToolResultPart
588
- > = z.object({
589
- kind: InvokeAgentPublicMessagePartAgentsRequestKind$outboundSchema,
590
- toolCallId: z.string(),
591
- result: z.any().optional(),
592
- metadata: z.record(z.any()).optional(),
593
- }).transform((v) => {
594
- return remap$(v, {
595
- toolCallId: "tool_call_id",
596
- });
597
- });
598
-
599
- export function publicMessagePartToolResultPartToJSON(
600
- publicMessagePartToolResultPart: PublicMessagePartToolResultPart,
601
- ): string {
602
- return JSON.stringify(
603
- PublicMessagePartToolResultPart$outboundSchema.parse(
604
- publicMessagePartToolResultPart,
605
- ),
606
- );
607
- }
608
- export function publicMessagePartToolResultPartFromJSON(
609
- jsonString: string,
610
- ): SafeParseResult<PublicMessagePartToolResultPart, SDKValidationError> {
611
- return safeParse(
612
- jsonString,
613
- (x) => PublicMessagePartToolResultPart$inboundSchema.parse(JSON.parse(x)),
614
- `Failed to parse 'PublicMessagePartToolResultPart' from JSON`,
615
- );
616
- }
617
-
618
- /** @internal */
619
- export const InvokeAgentPublicMessagePartAgentsKind$inboundSchema:
620
- z.ZodNativeEnum<typeof InvokeAgentPublicMessagePartAgentsKind> = z.nativeEnum(
621
- InvokeAgentPublicMessagePartAgentsKind,
622
- );
623
- /** @internal */
624
- export const InvokeAgentPublicMessagePartAgentsKind$outboundSchema:
625
- z.ZodNativeEnum<typeof InvokeAgentPublicMessagePartAgentsKind> =
626
- InvokeAgentPublicMessagePartAgentsKind$inboundSchema;
627
-
628
- /** @internal */
629
- export const FileFileInURIFormat$inboundSchema: z.ZodType<
630
- FileFileInURIFormat,
631
- z.ZodTypeDef,
632
- unknown
633
- > = z.object({
634
- uri: z.string(),
635
- mimeType: z.string().optional(),
636
- name: z.string().optional(),
637
- });
638
- /** @internal */
639
- export type FileFileInURIFormat$Outbound = {
640
- uri: string;
641
- mimeType?: string | undefined;
642
- name?: string | undefined;
643
- };
644
-
645
- /** @internal */
646
- export const FileFileInURIFormat$outboundSchema: z.ZodType<
647
- FileFileInURIFormat$Outbound,
648
- z.ZodTypeDef,
649
- FileFileInURIFormat
650
- > = z.object({
651
- uri: z.string(),
652
- mimeType: z.string().optional(),
653
- name: z.string().optional(),
654
- });
655
-
656
- export function fileFileInURIFormatToJSON(
657
- fileFileInURIFormat: FileFileInURIFormat,
658
- ): string {
659
- return JSON.stringify(
660
- FileFileInURIFormat$outboundSchema.parse(fileFileInURIFormat),
661
- );
662
- }
663
- export function fileFileInURIFormatFromJSON(
664
- jsonString: string,
665
- ): SafeParseResult<FileFileInURIFormat, SDKValidationError> {
666
- return safeParse(
667
- jsonString,
668
- (x) => FileFileInURIFormat$inboundSchema.parse(JSON.parse(x)),
669
- `Failed to parse 'FileFileInURIFormat' from JSON`,
670
- );
671
- }
672
-
673
- /** @internal */
674
- export const FileBinaryFormat$inboundSchema: z.ZodType<
675
- FileBinaryFormat,
676
- z.ZodTypeDef,
677
- unknown
678
- > = z.object({
679
- bytes: z.string(),
680
- mimeType: z.string().optional(),
681
- name: z.string().optional(),
682
- });
683
- /** @internal */
684
- export type FileBinaryFormat$Outbound = {
685
- bytes: string;
686
- mimeType?: string | undefined;
687
- name?: string | undefined;
688
- };
689
-
690
- /** @internal */
691
- export const FileBinaryFormat$outboundSchema: z.ZodType<
692
- FileBinaryFormat$Outbound,
693
- z.ZodTypeDef,
694
- FileBinaryFormat
695
- > = z.object({
696
- bytes: z.string(),
697
- mimeType: z.string().optional(),
698
- name: z.string().optional(),
699
- });
700
-
701
- export function fileBinaryFormatToJSON(
702
- fileBinaryFormat: FileBinaryFormat,
703
- ): string {
704
- return JSON.stringify(
705
- FileBinaryFormat$outboundSchema.parse(fileBinaryFormat),
706
- );
707
- }
708
- export function fileBinaryFormatFromJSON(
709
- jsonString: string,
710
- ): SafeParseResult<FileBinaryFormat, SDKValidationError> {
711
- return safeParse(
712
- jsonString,
713
- (x) => FileBinaryFormat$inboundSchema.parse(JSON.parse(x)),
714
- `Failed to parse 'FileBinaryFormat' from JSON`,
715
- );
716
- }
717
-
718
- /** @internal */
719
- export const InvokeAgentPublicMessagePartFile$inboundSchema: z.ZodType<
720
- InvokeAgentPublicMessagePartFile,
721
- z.ZodTypeDef,
722
- unknown
723
- > = z.union([
724
- z.lazy(() => FileBinaryFormat$inboundSchema),
725
- z.lazy(() => FileFileInURIFormat$inboundSchema),
726
- ]);
727
- /** @internal */
728
- export type InvokeAgentPublicMessagePartFile$Outbound =
729
- | FileBinaryFormat$Outbound
730
- | FileFileInURIFormat$Outbound;
731
-
732
- /** @internal */
733
- export const InvokeAgentPublicMessagePartFile$outboundSchema: z.ZodType<
734
- InvokeAgentPublicMessagePartFile$Outbound,
735
- z.ZodTypeDef,
736
- InvokeAgentPublicMessagePartFile
737
- > = z.union([
738
- z.lazy(() => FileBinaryFormat$outboundSchema),
739
- z.lazy(() => FileFileInURIFormat$outboundSchema),
740
- ]);
741
-
742
- export function invokeAgentPublicMessagePartFileToJSON(
743
- invokeAgentPublicMessagePartFile: InvokeAgentPublicMessagePartFile,
744
- ): string {
745
- return JSON.stringify(
746
- InvokeAgentPublicMessagePartFile$outboundSchema.parse(
747
- invokeAgentPublicMessagePartFile,
748
- ),
749
- );
750
- }
751
- export function invokeAgentPublicMessagePartFileFromJSON(
752
- jsonString: string,
753
- ): SafeParseResult<InvokeAgentPublicMessagePartFile, SDKValidationError> {
754
- return safeParse(
755
- jsonString,
756
- (x) => InvokeAgentPublicMessagePartFile$inboundSchema.parse(JSON.parse(x)),
757
- `Failed to parse 'InvokeAgentPublicMessagePartFile' from JSON`,
758
- );
759
- }
760
-
761
- /** @internal */
762
- export const PublicMessagePartFilePart$inboundSchema: z.ZodType<
763
- PublicMessagePartFilePart,
764
- z.ZodTypeDef,
765
- unknown
766
- > = z.object({
767
- kind: InvokeAgentPublicMessagePartAgentsKind$inboundSchema,
768
- file: z.union([
769
- z.lazy(() => FileBinaryFormat$inboundSchema),
770
- z.lazy(() => FileFileInURIFormat$inboundSchema),
771
- ]),
772
- metadata: z.record(z.any()).optional(),
773
- });
774
- /** @internal */
775
- export type PublicMessagePartFilePart$Outbound = {
776
- kind: string;
777
- file: FileBinaryFormat$Outbound | FileFileInURIFormat$Outbound;
778
- metadata?: { [k: string]: any } | undefined;
779
- };
780
-
781
- /** @internal */
782
- export const PublicMessagePartFilePart$outboundSchema: z.ZodType<
783
- PublicMessagePartFilePart$Outbound,
784
- z.ZodTypeDef,
785
- PublicMessagePartFilePart
786
- > = z.object({
787
- kind: InvokeAgentPublicMessagePartAgentsKind$outboundSchema,
788
- file: z.union([
789
- z.lazy(() => FileBinaryFormat$outboundSchema),
790
- z.lazy(() => FileFileInURIFormat$outboundSchema),
791
- ]),
792
- metadata: z.record(z.any()).optional(),
793
- });
794
-
795
- export function publicMessagePartFilePartToJSON(
796
- publicMessagePartFilePart: PublicMessagePartFilePart,
797
- ): string {
798
- return JSON.stringify(
799
- PublicMessagePartFilePart$outboundSchema.parse(publicMessagePartFilePart),
800
- );
801
- }
802
- export function publicMessagePartFilePartFromJSON(
803
- jsonString: string,
804
- ): SafeParseResult<PublicMessagePartFilePart, SDKValidationError> {
805
- return safeParse(
806
- jsonString,
807
- (x) => PublicMessagePartFilePart$inboundSchema.parse(JSON.parse(x)),
808
- `Failed to parse 'PublicMessagePartFilePart' from JSON`,
809
- );
810
- }
811
-
812
- /** @internal */
813
- export const InvokeAgentPublicMessagePartKind$inboundSchema: z.ZodNativeEnum<
814
- typeof InvokeAgentPublicMessagePartKind
815
- > = z.nativeEnum(InvokeAgentPublicMessagePartKind);
816
- /** @internal */
817
- export const InvokeAgentPublicMessagePartKind$outboundSchema: z.ZodNativeEnum<
818
- typeof InvokeAgentPublicMessagePartKind
819
- > = InvokeAgentPublicMessagePartKind$inboundSchema;
820
-
821
- /** @internal */
822
- export const PublicMessagePartTextPart$inboundSchema: z.ZodType<
823
- PublicMessagePartTextPart,
824
- z.ZodTypeDef,
825
- unknown
826
- > = z.object({
827
- kind: InvokeAgentPublicMessagePartKind$inboundSchema,
828
- text: z.string(),
829
- });
830
- /** @internal */
831
- export type PublicMessagePartTextPart$Outbound = {
832
- kind: string;
833
- text: string;
834
- };
835
-
836
- /** @internal */
837
- export const PublicMessagePartTextPart$outboundSchema: z.ZodType<
838
- PublicMessagePartTextPart$Outbound,
839
- z.ZodTypeDef,
840
- PublicMessagePartTextPart
841
- > = z.object({
842
- kind: InvokeAgentPublicMessagePartKind$outboundSchema,
843
- text: z.string(),
844
- });
845
-
846
- export function publicMessagePartTextPartToJSON(
847
- publicMessagePartTextPart: PublicMessagePartTextPart,
848
- ): string {
849
- return JSON.stringify(
850
- PublicMessagePartTextPart$outboundSchema.parse(publicMessagePartTextPart),
851
- );
852
- }
853
- export function publicMessagePartTextPartFromJSON(
854
- jsonString: string,
855
- ): SafeParseResult<PublicMessagePartTextPart, SDKValidationError> {
856
- return safeParse(
857
- jsonString,
858
- (x) => PublicMessagePartTextPart$inboundSchema.parse(JSON.parse(x)),
859
- `Failed to parse 'PublicMessagePartTextPart' from JSON`,
860
- );
861
- }
862
-
863
- /** @internal */
864
- export const InvokeAgentPublicMessagePart$inboundSchema: z.ZodType<
865
- InvokeAgentPublicMessagePart,
866
- z.ZodTypeDef,
867
- unknown
868
- > = z.union([
869
- z.lazy(() => PublicMessagePartTextPart$inboundSchema),
870
- z.lazy(() => PublicMessagePartFilePart$inboundSchema),
871
- z.lazy(() => PublicMessagePartToolResultPart$inboundSchema),
872
- ]);
873
- /** @internal */
874
- export type InvokeAgentPublicMessagePart$Outbound =
875
- | PublicMessagePartTextPart$Outbound
876
- | PublicMessagePartFilePart$Outbound
877
- | PublicMessagePartToolResultPart$Outbound;
878
-
879
- /** @internal */
880
- export const InvokeAgentPublicMessagePart$outboundSchema: z.ZodType<
881
- InvokeAgentPublicMessagePart$Outbound,
882
- z.ZodTypeDef,
883
- InvokeAgentPublicMessagePart
884
- > = z.union([
885
- z.lazy(() => PublicMessagePartTextPart$outboundSchema),
886
- z.lazy(() => PublicMessagePartFilePart$outboundSchema),
887
- z.lazy(() => PublicMessagePartToolResultPart$outboundSchema),
888
- ]);
889
-
890
- export function invokeAgentPublicMessagePartToJSON(
891
- invokeAgentPublicMessagePart: InvokeAgentPublicMessagePart,
892
- ): string {
893
- return JSON.stringify(
894
- InvokeAgentPublicMessagePart$outboundSchema.parse(
895
- invokeAgentPublicMessagePart,
896
- ),
897
- );
898
- }
899
- export function invokeAgentPublicMessagePartFromJSON(
900
- jsonString: string,
901
- ): SafeParseResult<InvokeAgentPublicMessagePart, SDKValidationError> {
902
- return safeParse(
903
- jsonString,
904
- (x) => InvokeAgentPublicMessagePart$inboundSchema.parse(JSON.parse(x)),
905
- `Failed to parse 'InvokeAgentPublicMessagePart' from JSON`,
906
- );
907
- }
908
-
909
- /** @internal */
910
- export const InvokeAgentA2AMessage$inboundSchema: z.ZodType<
911
- InvokeAgentA2AMessage,
912
- z.ZodTypeDef,
913
- unknown
914
- > = z.object({
915
- messageId: z.string().optional(),
916
- role: z.union([
917
- InvokeAgentRoleUserMessage$inboundSchema,
918
- InvokeAgentRoleToolMessage$inboundSchema,
919
- ]),
920
- parts: z.array(
921
- z.union([
922
- z.lazy(() => PublicMessagePartTextPart$inboundSchema),
923
- z.lazy(() => PublicMessagePartFilePart$inboundSchema),
924
- z.lazy(() => PublicMessagePartToolResultPart$inboundSchema),
925
- ]),
926
- ),
927
- });
928
- /** @internal */
929
- export type InvokeAgentA2AMessage$Outbound = {
930
- messageId?: string | undefined;
931
- role: string | string;
932
- parts: Array<
933
- | PublicMessagePartTextPart$Outbound
934
- | PublicMessagePartFilePart$Outbound
935
- | PublicMessagePartToolResultPart$Outbound
936
- >;
937
- };
938
-
939
- /** @internal */
940
- export const InvokeAgentA2AMessage$outboundSchema: z.ZodType<
941
- InvokeAgentA2AMessage$Outbound,
942
- z.ZodTypeDef,
943
- InvokeAgentA2AMessage
944
- > = z.object({
945
- messageId: z.string().optional(),
946
- role: z.union([
947
- InvokeAgentRoleUserMessage$outboundSchema,
948
- InvokeAgentRoleToolMessage$outboundSchema,
949
- ]),
950
- parts: z.array(
951
- z.union([
952
- z.lazy(() => PublicMessagePartTextPart$outboundSchema),
953
- z.lazy(() => PublicMessagePartFilePart$outboundSchema),
954
- z.lazy(() => PublicMessagePartToolResultPart$outboundSchema),
955
- ]),
956
- ),
957
- });
958
-
959
- export function invokeAgentA2AMessageToJSON(
960
- invokeAgentA2AMessage: InvokeAgentA2AMessage,
961
- ): string {
962
- return JSON.stringify(
963
- InvokeAgentA2AMessage$outboundSchema.parse(invokeAgentA2AMessage),
964
- );
965
- }
966
- export function invokeAgentA2AMessageFromJSON(
967
- jsonString: string,
968
- ): SafeParseResult<InvokeAgentA2AMessage, SDKValidationError> {
969
- return safeParse(
970
- jsonString,
971
- (x) => InvokeAgentA2AMessage$inboundSchema.parse(JSON.parse(x)),
972
- `Failed to parse 'InvokeAgentA2AMessage' from JSON`,
973
- );
974
- }
975
-
976
- /** @internal */
977
- export const InvokeAgentContact$inboundSchema: z.ZodType<
978
- InvokeAgentContact,
979
- z.ZodTypeDef,
980
- unknown
981
- > = z.object({
982
- id: z.string(),
983
- display_name: z.string().optional(),
984
- email: z.string().optional(),
985
- metadata: z.array(z.record(z.any())).optional(),
986
- logo_url: z.string().optional(),
987
- tags: z.array(z.string()).optional(),
988
- }).transform((v) => {
989
- return remap$(v, {
990
- "display_name": "displayName",
991
- "logo_url": "logoUrl",
992
- });
993
- });
994
- /** @internal */
995
- export type InvokeAgentContact$Outbound = {
996
- id: string;
997
- display_name?: string | undefined;
998
- email?: string | undefined;
999
- metadata?: Array<{ [k: string]: any }> | undefined;
1000
- logo_url?: string | undefined;
1001
- tags?: Array<string> | undefined;
1002
- };
1003
-
1004
- /** @internal */
1005
- export const InvokeAgentContact$outboundSchema: z.ZodType<
1006
- InvokeAgentContact$Outbound,
1007
- z.ZodTypeDef,
1008
- InvokeAgentContact
1009
- > = z.object({
1010
- id: z.string(),
1011
- displayName: z.string().optional(),
1012
- email: z.string().optional(),
1013
- metadata: z.array(z.record(z.any())).optional(),
1014
- logoUrl: z.string().optional(),
1015
- tags: z.array(z.string()).optional(),
1016
- }).transform((v) => {
1017
- return remap$(v, {
1018
- displayName: "display_name",
1019
- logoUrl: "logo_url",
1020
- });
1021
- });
1022
-
1023
- export function invokeAgentContactToJSON(
1024
- invokeAgentContact: InvokeAgentContact,
1025
- ): string {
1026
- return JSON.stringify(
1027
- InvokeAgentContact$outboundSchema.parse(invokeAgentContact),
1028
- );
1029
- }
1030
- export function invokeAgentContactFromJSON(
1031
- jsonString: string,
1032
- ): SafeParseResult<InvokeAgentContact, SDKValidationError> {
1033
- return safeParse(
1034
- jsonString,
1035
- (x) => InvokeAgentContact$inboundSchema.parse(JSON.parse(x)),
1036
- `Failed to parse 'InvokeAgentContact' from JSON`,
1037
- );
1038
- }
1039
-
1040
- /** @internal */
1041
- export const InvokeAgentThread$inboundSchema: z.ZodType<
1042
- InvokeAgentThread,
1043
- z.ZodTypeDef,
1044
- unknown
1045
- > = z.object({
1046
- id: z.string(),
1047
- tags: z.array(z.string()).optional(),
1048
- });
1049
- /** @internal */
1050
- export type InvokeAgentThread$Outbound = {
1051
- id: string;
1052
- tags?: Array<string> | undefined;
1053
- };
1054
-
1055
- /** @internal */
1056
- export const InvokeAgentThread$outboundSchema: z.ZodType<
1057
- InvokeAgentThread$Outbound,
1058
- z.ZodTypeDef,
1059
- InvokeAgentThread
1060
- > = z.object({
1061
- id: z.string(),
1062
- tags: z.array(z.string()).optional(),
1063
- });
1064
-
1065
- export function invokeAgentThreadToJSON(
1066
- invokeAgentThread: InvokeAgentThread,
1067
- ): string {
1068
- return JSON.stringify(
1069
- InvokeAgentThread$outboundSchema.parse(invokeAgentThread),
1070
- );
1071
- }
1072
- export function invokeAgentThreadFromJSON(
1073
- jsonString: string,
1074
- ): SafeParseResult<InvokeAgentThread, SDKValidationError> {
1075
- return safeParse(
1076
- jsonString,
1077
- (x) => InvokeAgentThread$inboundSchema.parse(JSON.parse(x)),
1078
- `Failed to parse 'InvokeAgentThread' from JSON`,
1079
- );
1080
- }
1081
-
1082
- /** @internal */
1083
- export const InvokeAgentMemory$inboundSchema: z.ZodType<
1084
- InvokeAgentMemory,
1085
- z.ZodTypeDef,
1086
- unknown
1087
- > = z.object({
1088
- entity_id: z.string(),
1089
- }).transform((v) => {
1090
- return remap$(v, {
1091
- "entity_id": "entityId",
1092
- });
1093
- });
1094
- /** @internal */
1095
- export type InvokeAgentMemory$Outbound = {
1096
- entity_id: string;
1097
- };
1098
-
1099
- /** @internal */
1100
- export const InvokeAgentMemory$outboundSchema: z.ZodType<
1101
- InvokeAgentMemory$Outbound,
1102
- z.ZodTypeDef,
1103
- InvokeAgentMemory
1104
- > = z.object({
1105
- entityId: z.string(),
1106
- }).transform((v) => {
1107
- return remap$(v, {
1108
- entityId: "entity_id",
1109
- });
1110
- });
1111
-
1112
- export function invokeAgentMemoryToJSON(
1113
- invokeAgentMemory: InvokeAgentMemory,
1114
- ): string {
1115
- return JSON.stringify(
1116
- InvokeAgentMemory$outboundSchema.parse(invokeAgentMemory),
1117
- );
1118
- }
1119
- export function invokeAgentMemoryFromJSON(
1120
- jsonString: string,
1121
- ): SafeParseResult<InvokeAgentMemory, SDKValidationError> {
1122
- return safeParse(
1123
- jsonString,
1124
- (x) => InvokeAgentMemory$inboundSchema.parse(JSON.parse(x)),
1125
- `Failed to parse 'InvokeAgentMemory' from JSON`,
1126
- );
1127
- }
1128
-
1129
- /** @internal */
1130
- export const InvokeAgentRequestBody$inboundSchema: z.ZodType<
1131
- InvokeAgentRequestBody,
1132
- z.ZodTypeDef,
1133
- unknown
1134
- > = z.object({
1135
- task_id: z.string().optional(),
1136
- message: z.lazy(() => InvokeAgentA2AMessage$inboundSchema),
1137
- variables: z.record(z.any()).optional(),
1138
- contact: z.lazy(() => InvokeAgentContact$inboundSchema).optional(),
1139
- thread: z.lazy(() => InvokeAgentThread$inboundSchema).optional(),
1140
- memory: z.lazy(() => InvokeAgentMemory$inboundSchema).optional(),
1141
- metadata: z.record(z.any()).optional(),
1142
- }).transform((v) => {
1143
- return remap$(v, {
1144
- "task_id": "taskId",
1145
- });
1146
- });
1147
- /** @internal */
1148
- export type InvokeAgentRequestBody$Outbound = {
1149
- task_id?: string | undefined;
1150
- message: InvokeAgentA2AMessage$Outbound;
1151
- variables?: { [k: string]: any } | undefined;
1152
- contact?: InvokeAgentContact$Outbound | undefined;
1153
- thread?: InvokeAgentThread$Outbound | undefined;
1154
- memory?: InvokeAgentMemory$Outbound | undefined;
1155
- metadata?: { [k: string]: any } | undefined;
1156
- };
1157
-
1158
- /** @internal */
1159
- export const InvokeAgentRequestBody$outboundSchema: z.ZodType<
1160
- InvokeAgentRequestBody$Outbound,
1161
- z.ZodTypeDef,
1162
- InvokeAgentRequestBody
1163
- > = z.object({
1164
- taskId: z.string().optional(),
1165
- message: z.lazy(() => InvokeAgentA2AMessage$outboundSchema),
1166
- variables: z.record(z.any()).optional(),
1167
- contact: z.lazy(() => InvokeAgentContact$outboundSchema).optional(),
1168
- thread: z.lazy(() => InvokeAgentThread$outboundSchema).optional(),
1169
- memory: z.lazy(() => InvokeAgentMemory$outboundSchema).optional(),
1170
- metadata: z.record(z.any()).optional(),
1171
- }).transform((v) => {
1172
- return remap$(v, {
1173
- taskId: "task_id",
1174
- });
1175
- });
1176
-
1177
- export function invokeAgentRequestBodyToJSON(
1178
- invokeAgentRequestBody: InvokeAgentRequestBody,
1179
- ): string {
1180
- return JSON.stringify(
1181
- InvokeAgentRequestBody$outboundSchema.parse(invokeAgentRequestBody),
1182
- );
1183
- }
1184
- export function invokeAgentRequestBodyFromJSON(
1185
- jsonString: string,
1186
- ): SafeParseResult<InvokeAgentRequestBody, SDKValidationError> {
1187
- return safeParse(
1188
- jsonString,
1189
- (x) => InvokeAgentRequestBody$inboundSchema.parse(JSON.parse(x)),
1190
- `Failed to parse 'InvokeAgentRequestBody' from JSON`,
1191
- );
1192
- }
1193
-
1194
- /** @internal */
1195
- export const InvokeAgentRequest$inboundSchema: z.ZodType<
1196
- InvokeAgentRequest,
1197
- z.ZodTypeDef,
1198
- unknown
1199
- > = z.object({
1200
- key: z.string(),
1201
- RequestBody: z.lazy(() => InvokeAgentRequestBody$inboundSchema).optional(),
1202
- }).transform((v) => {
1203
- return remap$(v, {
1204
- "RequestBody": "requestBody",
1205
- });
1206
- });
1207
- /** @internal */
1208
- export type InvokeAgentRequest$Outbound = {
1209
- key: string;
1210
- RequestBody?: InvokeAgentRequestBody$Outbound | undefined;
1211
- };
1212
-
1213
- /** @internal */
1214
- export const InvokeAgentRequest$outboundSchema: z.ZodType<
1215
- InvokeAgentRequest$Outbound,
1216
- z.ZodTypeDef,
1217
- InvokeAgentRequest
1218
- > = z.object({
1219
- key: z.string(),
1220
- requestBody: z.lazy(() => InvokeAgentRequestBody$outboundSchema).optional(),
1221
- }).transform((v) => {
1222
- return remap$(v, {
1223
- requestBody: "RequestBody",
1224
- });
1225
- });
1226
-
1227
- export function invokeAgentRequestToJSON(
1228
- invokeAgentRequest: InvokeAgentRequest,
1229
- ): string {
1230
- return JSON.stringify(
1231
- InvokeAgentRequest$outboundSchema.parse(invokeAgentRequest),
1232
- );
1233
- }
1234
- export function invokeAgentRequestFromJSON(
1235
- jsonString: string,
1236
- ): SafeParseResult<InvokeAgentRequest, SDKValidationError> {
1237
- return safeParse(
1238
- jsonString,
1239
- (x) => InvokeAgentRequest$inboundSchema.parse(JSON.parse(x)),
1240
- `Failed to parse 'InvokeAgentRequest' from JSON`,
1241
- );
1242
- }
1243
-
1244
- /** @internal */
1245
- export const InvokeAgentKind$inboundSchema: z.ZodNativeEnum<
1246
- typeof InvokeAgentKind
1247
- > = z.nativeEnum(InvokeAgentKind);
1248
- /** @internal */
1249
- export const InvokeAgentKind$outboundSchema: z.ZodNativeEnum<
1250
- typeof InvokeAgentKind
1251
- > = InvokeAgentKind$inboundSchema;
1252
-
1253
- /** @internal */
1254
- export const TaskState$inboundSchema: z.ZodNativeEnum<typeof TaskState> = z
1255
- .nativeEnum(TaskState);
1256
- /** @internal */
1257
- export const TaskState$outboundSchema: z.ZodNativeEnum<typeof TaskState> =
1258
- TaskState$inboundSchema;
1259
-
1260
- /** @internal */
1261
- export const InvokeAgentAgentsKind$inboundSchema: z.ZodNativeEnum<
1262
- typeof InvokeAgentAgentsKind
1263
- > = z.nativeEnum(InvokeAgentAgentsKind);
1264
- /** @internal */
1265
- export const InvokeAgentAgentsKind$outboundSchema: z.ZodNativeEnum<
1266
- typeof InvokeAgentAgentsKind
1267
- > = InvokeAgentAgentsKind$inboundSchema;
1268
-
1269
- /** @internal */
1270
- export const InvokeAgentExtendedMessageRole$inboundSchema: z.ZodNativeEnum<
1271
- typeof InvokeAgentExtendedMessageRole
1272
- > = z.nativeEnum(InvokeAgentExtendedMessageRole);
1273
- /** @internal */
1274
- export const InvokeAgentExtendedMessageRole$outboundSchema: z.ZodNativeEnum<
1275
- typeof InvokeAgentExtendedMessageRole
1276
- > = InvokeAgentExtendedMessageRole$inboundSchema;
1277
-
1278
- /** @internal */
1279
- export const InvokeAgentPartsAgentsResponse200Kind$inboundSchema:
1280
- z.ZodNativeEnum<typeof InvokeAgentPartsAgentsResponse200Kind> = z.nativeEnum(
1281
- InvokeAgentPartsAgentsResponse200Kind,
1282
- );
1283
- /** @internal */
1284
- export const InvokeAgentPartsAgentsResponse200Kind$outboundSchema:
1285
- z.ZodNativeEnum<typeof InvokeAgentPartsAgentsResponse200Kind> =
1286
- InvokeAgentPartsAgentsResponse200Kind$inboundSchema;
1287
-
1288
- /** @internal */
1289
- export const InvokeAgentPartsToolResultPart$inboundSchema: z.ZodType<
1290
- InvokeAgentPartsToolResultPart,
1291
- z.ZodTypeDef,
1292
- unknown
1293
- > = z.object({
1294
- kind: InvokeAgentPartsAgentsResponse200Kind$inboundSchema,
1295
- tool_call_id: z.string(),
1296
- result: z.any().optional(),
1297
- metadata: z.record(z.any()).optional(),
1298
- }).transform((v) => {
1299
- return remap$(v, {
1300
- "tool_call_id": "toolCallId",
1301
- });
1302
- });
1303
- /** @internal */
1304
- export type InvokeAgentPartsToolResultPart$Outbound = {
1305
- kind: string;
1306
- tool_call_id: string;
1307
- result?: any | undefined;
1308
- metadata?: { [k: string]: any } | undefined;
1309
- };
1310
-
1311
- /** @internal */
1312
- export const InvokeAgentPartsToolResultPart$outboundSchema: z.ZodType<
1313
- InvokeAgentPartsToolResultPart$Outbound,
1314
- z.ZodTypeDef,
1315
- InvokeAgentPartsToolResultPart
1316
- > = z.object({
1317
- kind: InvokeAgentPartsAgentsResponse200Kind$outboundSchema,
1318
- toolCallId: z.string(),
1319
- result: z.any().optional(),
1320
- metadata: z.record(z.any()).optional(),
1321
- }).transform((v) => {
1322
- return remap$(v, {
1323
- toolCallId: "tool_call_id",
1324
- });
1325
- });
1326
-
1327
- export function invokeAgentPartsToolResultPartToJSON(
1328
- invokeAgentPartsToolResultPart: InvokeAgentPartsToolResultPart,
1329
- ): string {
1330
- return JSON.stringify(
1331
- InvokeAgentPartsToolResultPart$outboundSchema.parse(
1332
- invokeAgentPartsToolResultPart,
1333
- ),
1334
- );
1335
- }
1336
- export function invokeAgentPartsToolResultPartFromJSON(
1337
- jsonString: string,
1338
- ): SafeParseResult<InvokeAgentPartsToolResultPart, SDKValidationError> {
1339
- return safeParse(
1340
- jsonString,
1341
- (x) => InvokeAgentPartsToolResultPart$inboundSchema.parse(JSON.parse(x)),
1342
- `Failed to parse 'InvokeAgentPartsToolResultPart' from JSON`,
1343
- );
1344
- }
1345
-
1346
- /** @internal */
1347
- export const InvokeAgentPartsAgentsResponseKind$inboundSchema: z.ZodNativeEnum<
1348
- typeof InvokeAgentPartsAgentsResponseKind
1349
- > = z.nativeEnum(InvokeAgentPartsAgentsResponseKind);
1350
- /** @internal */
1351
- export const InvokeAgentPartsAgentsResponseKind$outboundSchema: z.ZodNativeEnum<
1352
- typeof InvokeAgentPartsAgentsResponseKind
1353
- > = InvokeAgentPartsAgentsResponseKind$inboundSchema;
1354
-
1355
- /** @internal */
1356
- export const InvokeAgentPartsToolCallPart$inboundSchema: z.ZodType<
1357
- InvokeAgentPartsToolCallPart,
1358
- z.ZodTypeDef,
1359
- unknown
1360
- > = z.object({
1361
- kind: InvokeAgentPartsAgentsResponseKind$inboundSchema,
1362
- tool_name: z.string(),
1363
- tool_call_id: z.string(),
1364
- arguments: z.record(z.any()),
1365
- metadata: z.record(z.any()).optional(),
1366
- }).transform((v) => {
1367
- return remap$(v, {
1368
- "tool_name": "toolName",
1369
- "tool_call_id": "toolCallId",
1370
- });
1371
- });
1372
- /** @internal */
1373
- export type InvokeAgentPartsToolCallPart$Outbound = {
1374
- kind: string;
1375
- tool_name: string;
1376
- tool_call_id: string;
1377
- arguments: { [k: string]: any };
1378
- metadata?: { [k: string]: any } | undefined;
1379
- };
1380
-
1381
- /** @internal */
1382
- export const InvokeAgentPartsToolCallPart$outboundSchema: z.ZodType<
1383
- InvokeAgentPartsToolCallPart$Outbound,
1384
- z.ZodTypeDef,
1385
- InvokeAgentPartsToolCallPart
1386
- > = z.object({
1387
- kind: InvokeAgentPartsAgentsResponseKind$outboundSchema,
1388
- toolName: z.string(),
1389
- toolCallId: z.string(),
1390
- arguments: z.record(z.any()),
1391
- metadata: z.record(z.any()).optional(),
1392
- }).transform((v) => {
1393
- return remap$(v, {
1394
- toolName: "tool_name",
1395
- toolCallId: "tool_call_id",
1396
- });
1397
- });
1398
-
1399
- export function invokeAgentPartsToolCallPartToJSON(
1400
- invokeAgentPartsToolCallPart: InvokeAgentPartsToolCallPart,
1401
- ): string {
1402
- return JSON.stringify(
1403
- InvokeAgentPartsToolCallPart$outboundSchema.parse(
1404
- invokeAgentPartsToolCallPart,
1405
- ),
1406
- );
1407
- }
1408
- export function invokeAgentPartsToolCallPartFromJSON(
1409
- jsonString: string,
1410
- ): SafeParseResult<InvokeAgentPartsToolCallPart, SDKValidationError> {
1411
- return safeParse(
1412
- jsonString,
1413
- (x) => InvokeAgentPartsToolCallPart$inboundSchema.parse(JSON.parse(x)),
1414
- `Failed to parse 'InvokeAgentPartsToolCallPart' from JSON`,
1415
- );
1416
- }
1417
-
1418
- /** @internal */
1419
- export const InvokeAgentPartsAgentsKind$inboundSchema: z.ZodNativeEnum<
1420
- typeof InvokeAgentPartsAgentsKind
1421
- > = z.nativeEnum(InvokeAgentPartsAgentsKind);
1422
- /** @internal */
1423
- export const InvokeAgentPartsAgentsKind$outboundSchema: z.ZodNativeEnum<
1424
- typeof InvokeAgentPartsAgentsKind
1425
- > = InvokeAgentPartsAgentsKind$inboundSchema;
1426
-
1427
- /** @internal */
1428
- export const InvokeAgentFileFileInURIFormat$inboundSchema: z.ZodType<
1429
- InvokeAgentFileFileInURIFormat,
1430
- z.ZodTypeDef,
1431
- unknown
1432
- > = z.object({
1433
- uri: z.string(),
1434
- mimeType: z.string().optional(),
1435
- name: z.string().optional(),
1436
- });
1437
- /** @internal */
1438
- export type InvokeAgentFileFileInURIFormat$Outbound = {
1439
- uri: string;
1440
- mimeType?: string | undefined;
1441
- name?: string | undefined;
1442
- };
1443
-
1444
- /** @internal */
1445
- export const InvokeAgentFileFileInURIFormat$outboundSchema: z.ZodType<
1446
- InvokeAgentFileFileInURIFormat$Outbound,
1447
- z.ZodTypeDef,
1448
- InvokeAgentFileFileInURIFormat
1449
- > = z.object({
1450
- uri: z.string(),
1451
- mimeType: z.string().optional(),
1452
- name: z.string().optional(),
1453
- });
1454
-
1455
- export function invokeAgentFileFileInURIFormatToJSON(
1456
- invokeAgentFileFileInURIFormat: InvokeAgentFileFileInURIFormat,
1457
- ): string {
1458
- return JSON.stringify(
1459
- InvokeAgentFileFileInURIFormat$outboundSchema.parse(
1460
- invokeAgentFileFileInURIFormat,
1461
- ),
1462
- );
1463
- }
1464
- export function invokeAgentFileFileInURIFormatFromJSON(
1465
- jsonString: string,
1466
- ): SafeParseResult<InvokeAgentFileFileInURIFormat, SDKValidationError> {
1467
- return safeParse(
1468
- jsonString,
1469
- (x) => InvokeAgentFileFileInURIFormat$inboundSchema.parse(JSON.parse(x)),
1470
- `Failed to parse 'InvokeAgentFileFileInURIFormat' from JSON`,
1471
- );
1472
- }
1473
-
1474
- /** @internal */
1475
- export const InvokeAgentFileBinaryFormat$inboundSchema: z.ZodType<
1476
- InvokeAgentFileBinaryFormat,
1477
- z.ZodTypeDef,
1478
- unknown
1479
- > = z.object({
1480
- bytes: z.string(),
1481
- mimeType: z.string().optional(),
1482
- name: z.string().optional(),
1483
- });
1484
- /** @internal */
1485
- export type InvokeAgentFileBinaryFormat$Outbound = {
1486
- bytes: string;
1487
- mimeType?: string | undefined;
1488
- name?: string | undefined;
1489
- };
1490
-
1491
- /** @internal */
1492
- export const InvokeAgentFileBinaryFormat$outboundSchema: z.ZodType<
1493
- InvokeAgentFileBinaryFormat$Outbound,
1494
- z.ZodTypeDef,
1495
- InvokeAgentFileBinaryFormat
1496
- > = z.object({
1497
- bytes: z.string(),
1498
- mimeType: z.string().optional(),
1499
- name: z.string().optional(),
1500
- });
1501
-
1502
- export function invokeAgentFileBinaryFormatToJSON(
1503
- invokeAgentFileBinaryFormat: InvokeAgentFileBinaryFormat,
1504
- ): string {
1505
- return JSON.stringify(
1506
- InvokeAgentFileBinaryFormat$outboundSchema.parse(
1507
- invokeAgentFileBinaryFormat,
1508
- ),
1509
- );
1510
- }
1511
- export function invokeAgentFileBinaryFormatFromJSON(
1512
- jsonString: string,
1513
- ): SafeParseResult<InvokeAgentFileBinaryFormat, SDKValidationError> {
1514
- return safeParse(
1515
- jsonString,
1516
- (x) => InvokeAgentFileBinaryFormat$inboundSchema.parse(JSON.parse(x)),
1517
- `Failed to parse 'InvokeAgentFileBinaryFormat' from JSON`,
1518
- );
1519
- }
1520
-
1521
- /** @internal */
1522
- export const InvokeAgentPartsFile$inboundSchema: z.ZodType<
1523
- InvokeAgentPartsFile,
1524
- z.ZodTypeDef,
1525
- unknown
1526
- > = z.union([
1527
- z.lazy(() => InvokeAgentFileBinaryFormat$inboundSchema),
1528
- z.lazy(() => InvokeAgentFileFileInURIFormat$inboundSchema),
1529
- ]);
1530
- /** @internal */
1531
- export type InvokeAgentPartsFile$Outbound =
1532
- | InvokeAgentFileBinaryFormat$Outbound
1533
- | InvokeAgentFileFileInURIFormat$Outbound;
1534
-
1535
- /** @internal */
1536
- export const InvokeAgentPartsFile$outboundSchema: z.ZodType<
1537
- InvokeAgentPartsFile$Outbound,
1538
- z.ZodTypeDef,
1539
- InvokeAgentPartsFile
1540
- > = z.union([
1541
- z.lazy(() => InvokeAgentFileBinaryFormat$outboundSchema),
1542
- z.lazy(() => InvokeAgentFileFileInURIFormat$outboundSchema),
1543
- ]);
1544
-
1545
- export function invokeAgentPartsFileToJSON(
1546
- invokeAgentPartsFile: InvokeAgentPartsFile,
1547
- ): string {
1548
- return JSON.stringify(
1549
- InvokeAgentPartsFile$outboundSchema.parse(invokeAgentPartsFile),
1550
- );
1551
- }
1552
- export function invokeAgentPartsFileFromJSON(
1553
- jsonString: string,
1554
- ): SafeParseResult<InvokeAgentPartsFile, SDKValidationError> {
1555
- return safeParse(
1556
- jsonString,
1557
- (x) => InvokeAgentPartsFile$inboundSchema.parse(JSON.parse(x)),
1558
- `Failed to parse 'InvokeAgentPartsFile' from JSON`,
1559
- );
1560
- }
1561
-
1562
- /** @internal */
1563
- export const InvokeAgentPartsFilePart$inboundSchema: z.ZodType<
1564
- InvokeAgentPartsFilePart,
1565
- z.ZodTypeDef,
1566
- unknown
1567
- > = z.object({
1568
- kind: InvokeAgentPartsAgentsKind$inboundSchema,
1569
- file: z.union([
1570
- z.lazy(() => InvokeAgentFileBinaryFormat$inboundSchema),
1571
- z.lazy(() => InvokeAgentFileFileInURIFormat$inboundSchema),
1572
- ]),
1573
- metadata: z.record(z.any()).optional(),
1574
- });
1575
- /** @internal */
1576
- export type InvokeAgentPartsFilePart$Outbound = {
1577
- kind: string;
1578
- file:
1579
- | InvokeAgentFileBinaryFormat$Outbound
1580
- | InvokeAgentFileFileInURIFormat$Outbound;
1581
- metadata?: { [k: string]: any } | undefined;
1582
- };
1583
-
1584
- /** @internal */
1585
- export const InvokeAgentPartsFilePart$outboundSchema: z.ZodType<
1586
- InvokeAgentPartsFilePart$Outbound,
1587
- z.ZodTypeDef,
1588
- InvokeAgentPartsFilePart
1589
- > = z.object({
1590
- kind: InvokeAgentPartsAgentsKind$outboundSchema,
1591
- file: z.union([
1592
- z.lazy(() => InvokeAgentFileBinaryFormat$outboundSchema),
1593
- z.lazy(() => InvokeAgentFileFileInURIFormat$outboundSchema),
1594
- ]),
1595
- metadata: z.record(z.any()).optional(),
1596
- });
1597
-
1598
- export function invokeAgentPartsFilePartToJSON(
1599
- invokeAgentPartsFilePart: InvokeAgentPartsFilePart,
1600
- ): string {
1601
- return JSON.stringify(
1602
- InvokeAgentPartsFilePart$outboundSchema.parse(invokeAgentPartsFilePart),
1603
- );
1604
- }
1605
- export function invokeAgentPartsFilePartFromJSON(
1606
- jsonString: string,
1607
- ): SafeParseResult<InvokeAgentPartsFilePart, SDKValidationError> {
1608
- return safeParse(
1609
- jsonString,
1610
- (x) => InvokeAgentPartsFilePart$inboundSchema.parse(JSON.parse(x)),
1611
- `Failed to parse 'InvokeAgentPartsFilePart' from JSON`,
1612
- );
1613
- }
1614
-
1615
- /** @internal */
1616
- export const InvokeAgentPartsKind$inboundSchema: z.ZodNativeEnum<
1617
- typeof InvokeAgentPartsKind
1618
- > = z.nativeEnum(InvokeAgentPartsKind);
1619
- /** @internal */
1620
- export const InvokeAgentPartsKind$outboundSchema: z.ZodNativeEnum<
1621
- typeof InvokeAgentPartsKind
1622
- > = InvokeAgentPartsKind$inboundSchema;
1623
-
1624
- /** @internal */
1625
- export const InvokeAgentPartsDataPart$inboundSchema: z.ZodType<
1626
- InvokeAgentPartsDataPart,
1627
- z.ZodTypeDef,
1628
- unknown
1629
- > = z.object({
1630
- kind: InvokeAgentPartsKind$inboundSchema,
1631
- data: z.record(z.any()),
1632
- metadata: z.record(z.any()).optional(),
1633
- });
1634
- /** @internal */
1635
- export type InvokeAgentPartsDataPart$Outbound = {
1636
- kind: string;
1637
- data: { [k: string]: any };
1638
- metadata?: { [k: string]: any } | undefined;
1639
- };
1640
-
1641
- /** @internal */
1642
- export const InvokeAgentPartsDataPart$outboundSchema: z.ZodType<
1643
- InvokeAgentPartsDataPart$Outbound,
1644
- z.ZodTypeDef,
1645
- InvokeAgentPartsDataPart
1646
- > = z.object({
1647
- kind: InvokeAgentPartsKind$outboundSchema,
1648
- data: z.record(z.any()),
1649
- metadata: z.record(z.any()).optional(),
1650
- });
1651
-
1652
- export function invokeAgentPartsDataPartToJSON(
1653
- invokeAgentPartsDataPart: InvokeAgentPartsDataPart,
1654
- ): string {
1655
- return JSON.stringify(
1656
- InvokeAgentPartsDataPart$outboundSchema.parse(invokeAgentPartsDataPart),
1657
- );
1658
- }
1659
- export function invokeAgentPartsDataPartFromJSON(
1660
- jsonString: string,
1661
- ): SafeParseResult<InvokeAgentPartsDataPart, SDKValidationError> {
1662
- return safeParse(
1663
- jsonString,
1664
- (x) => InvokeAgentPartsDataPart$inboundSchema.parse(JSON.parse(x)),
1665
- `Failed to parse 'InvokeAgentPartsDataPart' from JSON`,
1666
- );
1667
- }
1668
-
1669
- /** @internal */
1670
- export const InvokeAgentPartsAgentsResponse200ApplicationJSONKind$inboundSchema:
1671
- z.ZodNativeEnum<typeof InvokeAgentPartsAgentsResponse200ApplicationJSONKind> =
1672
- z.nativeEnum(InvokeAgentPartsAgentsResponse200ApplicationJSONKind);
1673
- /** @internal */
1674
- export const InvokeAgentPartsAgentsResponse200ApplicationJSONKind$outboundSchema:
1675
- z.ZodNativeEnum<typeof InvokeAgentPartsAgentsResponse200ApplicationJSONKind> =
1676
- InvokeAgentPartsAgentsResponse200ApplicationJSONKind$inboundSchema;
1677
-
1678
- /** @internal */
1679
- export const InvokeAgentPartsTextPart$inboundSchema: z.ZodType<
1680
- InvokeAgentPartsTextPart,
1681
- z.ZodTypeDef,
1682
- unknown
1683
- > = z.object({
1684
- kind: InvokeAgentPartsAgentsResponse200ApplicationJSONKind$inboundSchema,
1685
- text: z.string(),
1686
- });
1687
- /** @internal */
1688
- export type InvokeAgentPartsTextPart$Outbound = {
1689
- kind: string;
1690
- text: string;
1691
- };
1692
-
1693
- /** @internal */
1694
- export const InvokeAgentPartsTextPart$outboundSchema: z.ZodType<
1695
- InvokeAgentPartsTextPart$Outbound,
1696
- z.ZodTypeDef,
1697
- InvokeAgentPartsTextPart
1698
- > = z.object({
1699
- kind: InvokeAgentPartsAgentsResponse200ApplicationJSONKind$outboundSchema,
1700
- text: z.string(),
1701
- });
1702
-
1703
- export function invokeAgentPartsTextPartToJSON(
1704
- invokeAgentPartsTextPart: InvokeAgentPartsTextPart,
1705
- ): string {
1706
- return JSON.stringify(
1707
- InvokeAgentPartsTextPart$outboundSchema.parse(invokeAgentPartsTextPart),
1708
- );
1709
- }
1710
- export function invokeAgentPartsTextPartFromJSON(
1711
- jsonString: string,
1712
- ): SafeParseResult<InvokeAgentPartsTextPart, SDKValidationError> {
1713
- return safeParse(
1714
- jsonString,
1715
- (x) => InvokeAgentPartsTextPart$inboundSchema.parse(JSON.parse(x)),
1716
- `Failed to parse 'InvokeAgentPartsTextPart' from JSON`,
1717
- );
1718
- }
1719
-
1720
- /** @internal */
1721
- export const InvokeAgentParts$inboundSchema: z.ZodType<
1722
- InvokeAgentParts,
1723
- z.ZodTypeDef,
1724
- unknown
1725
- > = z.union([
1726
- z.lazy(() => InvokeAgentPartsToolCallPart$inboundSchema),
1727
- z.lazy(() => InvokeAgentPartsTextPart$inboundSchema),
1728
- z.lazy(() => InvokeAgentPartsDataPart$inboundSchema),
1729
- z.lazy(() => InvokeAgentPartsFilePart$inboundSchema),
1730
- z.lazy(() => InvokeAgentPartsToolResultPart$inboundSchema),
1731
- ]);
1732
- /** @internal */
1733
- export type InvokeAgentParts$Outbound =
1734
- | InvokeAgentPartsToolCallPart$Outbound
1735
- | InvokeAgentPartsTextPart$Outbound
1736
- | InvokeAgentPartsDataPart$Outbound
1737
- | InvokeAgentPartsFilePart$Outbound
1738
- | InvokeAgentPartsToolResultPart$Outbound;
1739
-
1740
- /** @internal */
1741
- export const InvokeAgentParts$outboundSchema: z.ZodType<
1742
- InvokeAgentParts$Outbound,
1743
- z.ZodTypeDef,
1744
- InvokeAgentParts
1745
- > = z.union([
1746
- z.lazy(() => InvokeAgentPartsToolCallPart$outboundSchema),
1747
- z.lazy(() => InvokeAgentPartsTextPart$outboundSchema),
1748
- z.lazy(() => InvokeAgentPartsDataPart$outboundSchema),
1749
- z.lazy(() => InvokeAgentPartsFilePart$outboundSchema),
1750
- z.lazy(() => InvokeAgentPartsToolResultPart$outboundSchema),
1751
- ]);
1752
-
1753
- export function invokeAgentPartsToJSON(
1754
- invokeAgentParts: InvokeAgentParts,
1755
- ): string {
1756
- return JSON.stringify(
1757
- InvokeAgentParts$outboundSchema.parse(invokeAgentParts),
1758
- );
1759
- }
1760
- export function invokeAgentPartsFromJSON(
1761
- jsonString: string,
1762
- ): SafeParseResult<InvokeAgentParts, SDKValidationError> {
1763
- return safeParse(
1764
- jsonString,
1765
- (x) => InvokeAgentParts$inboundSchema.parse(JSON.parse(x)),
1766
- `Failed to parse 'InvokeAgentParts' from JSON`,
1767
- );
1768
- }
1769
-
1770
- /** @internal */
1771
- export const TaskStatusMessage$inboundSchema: z.ZodType<
1772
- TaskStatusMessage,
1773
- z.ZodTypeDef,
1774
- unknown
1775
- > = z.object({
1776
- kind: InvokeAgentAgentsKind$inboundSchema,
1777
- messageId: z.string(),
1778
- role: InvokeAgentExtendedMessageRole$inboundSchema,
1779
- parts: z.array(
1780
- z.union([
1781
- z.lazy(() => InvokeAgentPartsToolCallPart$inboundSchema),
1782
- z.lazy(() => InvokeAgentPartsTextPart$inboundSchema),
1783
- z.lazy(() => InvokeAgentPartsDataPart$inboundSchema),
1784
- z.lazy(() => InvokeAgentPartsFilePart$inboundSchema),
1785
- z.lazy(() => InvokeAgentPartsToolResultPart$inboundSchema),
1786
- ]),
1787
- ),
1788
- });
1789
- /** @internal */
1790
- export type TaskStatusMessage$Outbound = {
1791
- kind: string;
1792
- messageId: string;
1793
- role: string;
1794
- parts: Array<
1795
- | InvokeAgentPartsToolCallPart$Outbound
1796
- | InvokeAgentPartsTextPart$Outbound
1797
- | InvokeAgentPartsDataPart$Outbound
1798
- | InvokeAgentPartsFilePart$Outbound
1799
- | InvokeAgentPartsToolResultPart$Outbound
1800
- >;
1801
- };
1802
-
1803
- /** @internal */
1804
- export const TaskStatusMessage$outboundSchema: z.ZodType<
1805
- TaskStatusMessage$Outbound,
1806
- z.ZodTypeDef,
1807
- TaskStatusMessage
1808
- > = z.object({
1809
- kind: InvokeAgentAgentsKind$outboundSchema,
1810
- messageId: z.string(),
1811
- role: InvokeAgentExtendedMessageRole$outboundSchema,
1812
- parts: z.array(
1813
- z.union([
1814
- z.lazy(() => InvokeAgentPartsToolCallPart$outboundSchema),
1815
- z.lazy(() => InvokeAgentPartsTextPart$outboundSchema),
1816
- z.lazy(() => InvokeAgentPartsDataPart$outboundSchema),
1817
- z.lazy(() => InvokeAgentPartsFilePart$outboundSchema),
1818
- z.lazy(() => InvokeAgentPartsToolResultPart$outboundSchema),
1819
- ]),
1820
- ),
1821
- });
1822
-
1823
- export function taskStatusMessageToJSON(
1824
- taskStatusMessage: TaskStatusMessage,
1825
- ): string {
1826
- return JSON.stringify(
1827
- TaskStatusMessage$outboundSchema.parse(taskStatusMessage),
1828
- );
1829
- }
1830
- export function taskStatusMessageFromJSON(
1831
- jsonString: string,
1832
- ): SafeParseResult<TaskStatusMessage, SDKValidationError> {
1833
- return safeParse(
1834
- jsonString,
1835
- (x) => TaskStatusMessage$inboundSchema.parse(JSON.parse(x)),
1836
- `Failed to parse 'TaskStatusMessage' from JSON`,
1837
- );
1838
- }
1839
-
1840
- /** @internal */
1841
- export const TaskStatus$inboundSchema: z.ZodType<
1842
- TaskStatus,
1843
- z.ZodTypeDef,
1844
- unknown
1845
- > = z.object({
1846
- state: TaskState$inboundSchema,
1847
- timestamp: z.string().optional(),
1848
- message: z.lazy(() => TaskStatusMessage$inboundSchema).optional(),
1849
- });
1850
- /** @internal */
1851
- export type TaskStatus$Outbound = {
1852
- state: string;
1853
- timestamp?: string | undefined;
1854
- message?: TaskStatusMessage$Outbound | undefined;
1855
- };
1856
-
1857
- /** @internal */
1858
- export const TaskStatus$outboundSchema: z.ZodType<
1859
- TaskStatus$Outbound,
1860
- z.ZodTypeDef,
1861
- TaskStatus
1862
- > = z.object({
1863
- state: TaskState$outboundSchema,
1864
- timestamp: z.string().optional(),
1865
- message: z.lazy(() => TaskStatusMessage$outboundSchema).optional(),
1866
- });
1867
-
1868
- export function taskStatusToJSON(taskStatus: TaskStatus): string {
1869
- return JSON.stringify(TaskStatus$outboundSchema.parse(taskStatus));
1870
- }
1871
- export function taskStatusFromJSON(
1872
- jsonString: string,
1873
- ): SafeParseResult<TaskStatus, SDKValidationError> {
1874
- return safeParse(
1875
- jsonString,
1876
- (x) => TaskStatus$inboundSchema.parse(JSON.parse(x)),
1877
- `Failed to parse 'TaskStatus' from JSON`,
1878
- );
1879
- }
1880
-
1881
- /** @internal */
1882
- export const InvokeAgentA2ATaskResponse$inboundSchema: z.ZodType<
1883
- InvokeAgentA2ATaskResponse,
1884
- z.ZodTypeDef,
1885
- unknown
1886
- > = z.object({
1887
- id: z.string(),
1888
- contextId: z.string(),
1889
- kind: InvokeAgentKind$inboundSchema,
1890
- status: z.lazy(() => TaskStatus$inboundSchema),
1891
- metadata: z.record(z.any()).optional(),
1892
- });
1893
- /** @internal */
1894
- export type InvokeAgentA2ATaskResponse$Outbound = {
1895
- id: string;
1896
- contextId: string;
1897
- kind: string;
1898
- status: TaskStatus$Outbound;
1899
- metadata?: { [k: string]: any } | undefined;
1900
- };
1901
-
1902
- /** @internal */
1903
- export const InvokeAgentA2ATaskResponse$outboundSchema: z.ZodType<
1904
- InvokeAgentA2ATaskResponse$Outbound,
1905
- z.ZodTypeDef,
1906
- InvokeAgentA2ATaskResponse
1907
- > = z.object({
1908
- id: z.string(),
1909
- contextId: z.string(),
1910
- kind: InvokeAgentKind$outboundSchema,
1911
- status: z.lazy(() => TaskStatus$outboundSchema),
1912
- metadata: z.record(z.any()).optional(),
1913
- });
1914
-
1915
- export function invokeAgentA2ATaskResponseToJSON(
1916
- invokeAgentA2ATaskResponse: InvokeAgentA2ATaskResponse,
1917
- ): string {
1918
- return JSON.stringify(
1919
- InvokeAgentA2ATaskResponse$outboundSchema.parse(invokeAgentA2ATaskResponse),
1920
- );
1921
- }
1922
- export function invokeAgentA2ATaskResponseFromJSON(
1923
- jsonString: string,
1924
- ): SafeParseResult<InvokeAgentA2ATaskResponse, SDKValidationError> {
1925
- return safeParse(
1926
- jsonString,
1927
- (x) => InvokeAgentA2ATaskResponse$inboundSchema.parse(JSON.parse(x)),
1928
- `Failed to parse 'InvokeAgentA2ATaskResponse' from JSON`,
1929
- );
1930
- }