@orq-ai/node 3.13.9 → 3.13.11

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 (292) hide show
  1. package/README.md +107 -93
  2. package/bin/mcp-server.js +43652 -40649
  3. package/bin/mcp-server.js.map +117 -98
  4. package/docs/sdks/agents/README.md +566 -0
  5. package/examples/package-lock.json +1 -1
  6. package/funcs/agentsCreate.d.ts +18 -0
  7. package/funcs/agentsCreate.d.ts.map +1 -0
  8. package/funcs/agentsCreate.js +120 -0
  9. package/funcs/agentsCreate.js.map +1 -0
  10. package/funcs/agentsDelete.d.ts +18 -0
  11. package/funcs/agentsDelete.d.ts.map +1 -0
  12. package/funcs/agentsDelete.js +124 -0
  13. package/funcs/agentsDelete.js.map +1 -0
  14. package/funcs/agentsInvoke.d.ts +17 -0
  15. package/funcs/agentsInvoke.d.ts.map +1 -0
  16. package/funcs/agentsInvoke.js +120 -0
  17. package/funcs/agentsInvoke.js.map +1 -0
  18. package/funcs/agentsStream.d.ts +19 -0
  19. package/funcs/agentsStream.d.ts.map +1 -0
  20. package/funcs/agentsStream.js +134 -0
  21. package/funcs/agentsStream.js.map +1 -0
  22. package/funcs/agentsUpdate.d.ts +18 -0
  23. package/funcs/agentsUpdate.d.ts.map +1 -0
  24. package/funcs/agentsUpdate.js +124 -0
  25. package/funcs/agentsUpdate.js.map +1 -0
  26. package/jsr.json +1 -1
  27. package/lib/config.d.ts +2 -2
  28. package/lib/config.js +2 -2
  29. package/lib/config.js.map +1 -1
  30. package/mcp-server/mcp-server.js +1 -1
  31. package/mcp-server/mcp-server.js.map +1 -1
  32. package/mcp-server/server.d.ts.map +1 -1
  33. package/mcp-server/server.js +11 -1
  34. package/mcp-server/server.js.map +1 -1
  35. package/mcp-server/tools/agentsCreate.d.ts +8 -0
  36. package/mcp-server/tools/agentsCreate.d.ts.map +1 -0
  37. package/mcp-server/tools/agentsCreate.js +64 -0
  38. package/mcp-server/tools/agentsCreate.js.map +1 -0
  39. package/mcp-server/tools/agentsDelete.d.ts +8 -0
  40. package/mcp-server/tools/agentsDelete.d.ts.map +1 -0
  41. package/mcp-server/tools/agentsDelete.js +63 -0
  42. package/mcp-server/tools/agentsDelete.js.map +1 -0
  43. package/mcp-server/tools/agentsInvoke.d.ts +8 -0
  44. package/mcp-server/tools/agentsInvoke.d.ts.map +1 -0
  45. package/mcp-server/tools/agentsInvoke.js +64 -0
  46. package/mcp-server/tools/agentsInvoke.js.map +1 -0
  47. package/mcp-server/tools/agentsStream.d.ts +8 -0
  48. package/mcp-server/tools/agentsStream.d.ts.map +1 -0
  49. package/mcp-server/tools/agentsStream.js +64 -0
  50. package/mcp-server/tools/agentsStream.js.map +1 -0
  51. package/mcp-server/tools/agentsUpdate.d.ts +8 -0
  52. package/mcp-server/tools/agentsUpdate.d.ts.map +1 -0
  53. package/mcp-server/tools/agentsUpdate.js +64 -0
  54. package/mcp-server/tools/agentsUpdate.js.map +1 -0
  55. package/models/errors/createagent.d.ts +41 -0
  56. package/models/errors/createagent.d.ts.map +1 -0
  57. package/models/errors/createagent.js +85 -0
  58. package/models/errors/createagent.js.map +1 -0
  59. package/models/errors/deleteagent.d.ts +41 -0
  60. package/models/errors/deleteagent.d.ts.map +1 -0
  61. package/models/errors/deleteagent.js +85 -0
  62. package/models/errors/deleteagent.js.map +1 -0
  63. package/models/errors/index.d.ts +4 -0
  64. package/models/errors/index.d.ts.map +1 -1
  65. package/models/errors/index.js +4 -0
  66. package/models/errors/index.js.map +1 -1
  67. package/models/errors/streamagent.d.ts +41 -0
  68. package/models/errors/streamagent.d.ts.map +1 -0
  69. package/models/errors/streamagent.js +85 -0
  70. package/models/errors/streamagent.js.map +1 -0
  71. package/models/errors/updateagent.d.ts +41 -0
  72. package/models/errors/updateagent.d.ts.map +1 -0
  73. package/models/errors/updateagent.js +85 -0
  74. package/models/errors/updateagent.js.map +1 -0
  75. package/models/operations/createagent.d.ts +1504 -0
  76. package/models/operations/createagent.d.ts.map +1 -0
  77. package/models/operations/createagent.js +1530 -0
  78. package/models/operations/createagent.js.map +1 -0
  79. package/models/operations/createbudget.js +2 -2
  80. package/models/operations/createcontact.js +2 -2
  81. package/models/operations/createdataset.js +2 -2
  82. package/models/operations/createdatasetitem.js +2 -2
  83. package/models/operations/createdatasource.js +2 -2
  84. package/models/operations/createeval.js +28 -28
  85. package/models/operations/createtool.d.ts +20 -20
  86. package/models/operations/createtool.d.ts.map +1 -1
  87. package/models/operations/createtool.js +34 -34
  88. package/models/operations/createtool.js.map +1 -1
  89. package/models/operations/deleteagent.d.ts +32 -0
  90. package/models/operations/deleteagent.d.ts.map +1 -0
  91. package/models/operations/deleteagent.js +78 -0
  92. package/models/operations/deleteagent.js.map +1 -0
  93. package/models/operations/duplicatetool.d.ts +10 -10
  94. package/models/operations/duplicatetool.d.ts.map +1 -1
  95. package/models/operations/duplicatetool.js +20 -20
  96. package/models/operations/duplicatetool.js.map +1 -1
  97. package/models/operations/fileget.js +2 -2
  98. package/models/operations/filelist.js +2 -2
  99. package/models/operations/fileupload.js +2 -2
  100. package/models/operations/getagent.d.ts +44 -175
  101. package/models/operations/getagent.d.ts.map +1 -1
  102. package/models/operations/getagent.js +51 -184
  103. package/models/operations/getagent.js.map +1 -1
  104. package/models/operations/getalltools.d.ts +10 -10
  105. package/models/operations/getalltools.d.ts.map +1 -1
  106. package/models/operations/getalltools.js +20 -20
  107. package/models/operations/getalltools.js.map +1 -1
  108. package/models/operations/getbudget.js +2 -2
  109. package/models/operations/getevals.js +28 -28
  110. package/models/operations/index.d.ts +5 -0
  111. package/models/operations/index.d.ts.map +1 -1
  112. package/models/operations/index.js +5 -0
  113. package/models/operations/index.js.map +1 -1
  114. package/models/operations/invokeagent.d.ts +912 -0
  115. package/models/operations/invokeagent.d.ts.map +1 -0
  116. package/models/operations/invokeagent.js +824 -0
  117. package/models/operations/invokeagent.js.map +1 -0
  118. package/models/operations/listagents.d.ts +6 -137
  119. package/models/operations/listagents.d.ts.map +1 -1
  120. package/models/operations/listagents.js +3 -139
  121. package/models/operations/listagents.js.map +1 -1
  122. package/models/operations/listagenttasks.d.ts +5 -0
  123. package/models/operations/listagenttasks.d.ts.map +1 -1
  124. package/models/operations/listagenttasks.js +2 -0
  125. package/models/operations/listagenttasks.js.map +1 -1
  126. package/models/operations/listbudgets.js +2 -2
  127. package/models/operations/listcontacts.js +2 -2
  128. package/models/operations/listdatasetdatapoints.js +2 -2
  129. package/models/operations/listdatasets.js +2 -2
  130. package/models/operations/listdatasources.js +2 -2
  131. package/models/operations/retrievecontact.js +2 -2
  132. package/models/operations/retrievedatapoint.js +2 -2
  133. package/models/operations/retrievedataset.js +2 -2
  134. package/models/operations/retrievedatasource.js +2 -2
  135. package/models/operations/retrievetool.d.ts +10 -10
  136. package/models/operations/retrievetool.d.ts.map +1 -1
  137. package/models/operations/retrievetool.js +20 -20
  138. package/models/operations/retrievetool.js.map +1 -1
  139. package/models/operations/runagent.d.ts +640 -721
  140. package/models/operations/runagent.d.ts.map +1 -1
  141. package/models/operations/runagent.js +817 -928
  142. package/models/operations/runagent.js.map +1 -1
  143. package/models/operations/streamagent.d.ts +676 -0
  144. package/models/operations/streamagent.d.ts.map +1 -0
  145. package/models/operations/streamagent.js +670 -0
  146. package/models/operations/streamagent.js.map +1 -0
  147. package/models/operations/streamrunagent.d.ts +567 -648
  148. package/models/operations/streamrunagent.d.ts.map +1 -1
  149. package/models/operations/streamrunagent.js +721 -835
  150. package/models/operations/streamrunagent.js.map +1 -1
  151. package/models/operations/updateagent.d.ts +1515 -0
  152. package/models/operations/updateagent.d.ts.map +1 -0
  153. package/models/operations/updateagent.js +1576 -0
  154. package/models/operations/updateagent.js.map +1 -0
  155. package/models/operations/updatebudget.js +2 -2
  156. package/models/operations/updatecontact.js +2 -2
  157. package/models/operations/updatedatapoint.js +2 -2
  158. package/models/operations/updatedataset.js +2 -2
  159. package/models/operations/updatedatasource.js +2 -2
  160. package/models/operations/updateeval.js +28 -28
  161. package/models/operations/updatetool.d.ts +18 -18
  162. package/models/operations/updatetool.d.ts.map +1 -1
  163. package/models/operations/updatetool.js +36 -36
  164. package/models/operations/updatetool.js.map +1 -1
  165. package/package.json +1 -1
  166. package/packages/orq-rc/README.md +103 -94
  167. package/packages/orq-rc/docs/sdks/agents/README.md +297 -0
  168. package/packages/orq-rc/examples/package-lock.json +1 -1
  169. package/packages/orq-rc/jsr.json +1 -1
  170. package/packages/orq-rc/package-lock.json +2 -2
  171. package/packages/orq-rc/package.json +1 -1
  172. package/packages/orq-rc/src/funcs/agentsCreate.ts +172 -0
  173. package/packages/orq-rc/src/funcs/agentsDelete.ts +176 -0
  174. package/packages/orq-rc/src/funcs/agentsUpdate.ts +176 -0
  175. package/packages/orq-rc/src/lib/config.ts +2 -2
  176. package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
  177. package/packages/orq-rc/src/mcp-server/server.ts +7 -1
  178. package/packages/orq-rc/src/mcp-server/tools/agentsCreate.ts +37 -0
  179. package/packages/orq-rc/src/mcp-server/tools/agentsDelete.ts +35 -0
  180. package/packages/orq-rc/src/mcp-server/tools/agentsUpdate.ts +37 -0
  181. package/packages/orq-rc/src/models/errors/createagent.ts +80 -0
  182. package/packages/orq-rc/src/models/errors/deleteagent.ts +80 -0
  183. package/packages/orq-rc/src/models/errors/index.ts +3 -0
  184. package/packages/orq-rc/src/models/errors/updateagent.ts +80 -0
  185. package/packages/orq-rc/src/models/operations/createagent.ts +3027 -0
  186. package/packages/orq-rc/src/models/operations/createbudget.ts +2 -2
  187. package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
  188. package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
  189. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +8 -8
  190. package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
  191. package/packages/orq-rc/src/models/operations/createeval.ts +28 -28
  192. package/packages/orq-rc/src/models/operations/createtool.ts +50 -50
  193. package/packages/orq-rc/src/models/operations/deleteagent.ts +78 -0
  194. package/packages/orq-rc/src/models/operations/duplicatetool.ts +30 -30
  195. package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
  196. package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
  197. package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
  198. package/packages/orq-rc/src/models/operations/getagent.ts +87 -387
  199. package/packages/orq-rc/src/models/operations/getalltools.ts +33 -33
  200. package/packages/orq-rc/src/models/operations/getbudget.ts +2 -2
  201. package/packages/orq-rc/src/models/operations/getevals.ts +28 -28
  202. package/packages/orq-rc/src/models/operations/index.ts +3 -0
  203. package/packages/orq-rc/src/models/operations/invokeagent.ts +12 -4
  204. package/packages/orq-rc/src/models/operations/listagents.ts +8 -321
  205. package/packages/orq-rc/src/models/operations/listagenttasks.ts +7 -0
  206. package/packages/orq-rc/src/models/operations/listbudgets.ts +2 -2
  207. package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
  208. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +8 -8
  209. package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
  210. package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
  211. package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
  212. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +8 -8
  213. package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
  214. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
  215. package/packages/orq-rc/src/models/operations/retrievetool.ts +30 -30
  216. package/packages/orq-rc/src/models/operations/runagent.ts +1003 -1113
  217. package/packages/orq-rc/src/models/operations/streamagent.ts +4 -2
  218. package/packages/orq-rc/src/models/operations/streamrunagent.ts +1276 -1427
  219. package/packages/orq-rc/src/models/operations/updateagent.ts +3239 -0
  220. package/packages/orq-rc/src/models/operations/updatebudget.ts +2 -2
  221. package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
  222. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +8 -8
  223. package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
  224. package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
  225. package/packages/orq-rc/src/models/operations/updateeval.ts +28 -28
  226. package/packages/orq-rc/src/models/operations/updatetool.ts +56 -56
  227. package/packages/orq-rc/src/sdk/agents.ts +54 -0
  228. package/sdk/agents.d.ts +35 -0
  229. package/sdk/agents.d.ts.map +1 -1
  230. package/sdk/agents.js +50 -0
  231. package/sdk/agents.js.map +1 -1
  232. package/src/funcs/agentsCreate.ts +172 -0
  233. package/src/funcs/agentsDelete.ts +176 -0
  234. package/src/funcs/agentsInvoke.ts +167 -0
  235. package/src/funcs/agentsStream.ts +191 -0
  236. package/src/funcs/agentsUpdate.ts +176 -0
  237. package/src/lib/config.ts +2 -2
  238. package/src/mcp-server/mcp-server.ts +1 -1
  239. package/src/mcp-server/server.ts +11 -1
  240. package/src/mcp-server/tools/agentsCreate.ts +37 -0
  241. package/src/mcp-server/tools/agentsDelete.ts +35 -0
  242. package/src/mcp-server/tools/agentsInvoke.ts +37 -0
  243. package/src/mcp-server/tools/agentsStream.ts +37 -0
  244. package/src/mcp-server/tools/agentsUpdate.ts +37 -0
  245. package/src/models/errors/createagent.ts +80 -0
  246. package/src/models/errors/deleteagent.ts +80 -0
  247. package/src/models/errors/index.ts +4 -0
  248. package/src/models/errors/streamagent.ts +80 -0
  249. package/src/models/errors/updateagent.ts +80 -0
  250. package/src/models/operations/createagent.ts +3021 -0
  251. package/src/models/operations/createbudget.ts +2 -2
  252. package/src/models/operations/createcontact.ts +2 -2
  253. package/src/models/operations/createdataset.ts +2 -2
  254. package/src/models/operations/createdatasetitem.ts +2 -2
  255. package/src/models/operations/createdatasource.ts +2 -2
  256. package/src/models/operations/createeval.ts +28 -28
  257. package/src/models/operations/createtool.ts +54 -54
  258. package/src/models/operations/deleteagent.ts +78 -0
  259. package/src/models/operations/duplicatetool.ts +30 -30
  260. package/src/models/operations/fileget.ts +2 -2
  261. package/src/models/operations/filelist.ts +2 -2
  262. package/src/models/operations/fileupload.ts +2 -2
  263. package/src/models/operations/getagent.ts +87 -387
  264. package/src/models/operations/getalltools.ts +30 -30
  265. package/src/models/operations/getbudget.ts +2 -2
  266. package/src/models/operations/getevals.ts +28 -28
  267. package/src/models/operations/index.ts +5 -0
  268. package/src/models/operations/invokeagent.ts +1569 -0
  269. package/src/models/operations/listagents.ts +8 -321
  270. package/src/models/operations/listagenttasks.ts +7 -0
  271. package/src/models/operations/listbudgets.ts +2 -2
  272. package/src/models/operations/listcontacts.ts +2 -2
  273. package/src/models/operations/listdatasetdatapoints.ts +2 -2
  274. package/src/models/operations/listdatasets.ts +2 -2
  275. package/src/models/operations/listdatasources.ts +2 -2
  276. package/src/models/operations/retrievecontact.ts +2 -2
  277. package/src/models/operations/retrievedatapoint.ts +2 -2
  278. package/src/models/operations/retrievedataset.ts +2 -2
  279. package/src/models/operations/retrievedatasource.ts +2 -2
  280. package/src/models/operations/retrievetool.ts +30 -30
  281. package/src/models/operations/runagent.ts +1441 -1488
  282. package/src/models/operations/streamagent.ts +1367 -0
  283. package/src/models/operations/streamrunagent.ts +1542 -1657
  284. package/src/models/operations/updateagent.ts +3227 -0
  285. package/src/models/operations/updatebudget.ts +2 -2
  286. package/src/models/operations/updatecontact.ts +2 -2
  287. package/src/models/operations/updatedatapoint.ts +2 -2
  288. package/src/models/operations/updatedataset.ts +2 -2
  289. package/src/models/operations/updatedatasource.ts +2 -2
  290. package/src/models/operations/updateeval.ts +28 -28
  291. package/src/models/operations/updatetool.ts +60 -60
  292. package/src/sdk/agents.ts +90 -0
@@ -0,0 +1,676 @@
1
+ import * as z from "zod";
2
+ import { ClosedEnum } from "../../types/enums.js";
3
+ import { Result as SafeParseResult } from "../../types/fp.js";
4
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
5
+ /**
6
+ * Tool message
7
+ */
8
+ export declare const StreamAgentRoleToolMessage: {
9
+ readonly Tool: "tool";
10
+ };
11
+ /**
12
+ * Tool message
13
+ */
14
+ export type StreamAgentRoleToolMessage = ClosedEnum<typeof StreamAgentRoleToolMessage>;
15
+ /**
16
+ * User message
17
+ */
18
+ export declare const StreamAgentRoleUserMessage: {
19
+ readonly User: "user";
20
+ };
21
+ /**
22
+ * User message
23
+ */
24
+ export type StreamAgentRoleUserMessage = ClosedEnum<typeof StreamAgentRoleUserMessage>;
25
+ /**
26
+ * Message role (user or tool for continuing executions)
27
+ */
28
+ export type StreamAgentRole = StreamAgentRoleUserMessage | StreamAgentRoleToolMessage;
29
+ export declare const StreamAgentPublicMessagePartAgentsRequestKind: {
30
+ readonly ToolResult: "tool_result";
31
+ };
32
+ export type StreamAgentPublicMessagePartAgentsRequestKind = ClosedEnum<typeof StreamAgentPublicMessagePartAgentsRequestKind>;
33
+ /**
34
+ * 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.
35
+ */
36
+ export type StreamAgentPublicMessagePartToolResultPart = {
37
+ kind: StreamAgentPublicMessagePartAgentsRequestKind;
38
+ toolCallId: string;
39
+ result?: any | undefined;
40
+ metadata?: {
41
+ [k: string]: any;
42
+ } | undefined;
43
+ };
44
+ export declare const StreamAgentPublicMessagePartAgentsKind: {
45
+ readonly File: "file";
46
+ };
47
+ export type StreamAgentPublicMessagePartAgentsKind = ClosedEnum<typeof StreamAgentPublicMessagePartAgentsKind>;
48
+ /**
49
+ * File in URI format. Check in the model's documentation for the supported mime types for the URI format
50
+ */
51
+ export type StreamAgentFileFileInURIFormat = {
52
+ /**
53
+ * URL for the File content
54
+ */
55
+ uri: string;
56
+ /**
57
+ * Optional mimeType for the file
58
+ */
59
+ mimeType?: string | undefined;
60
+ /**
61
+ * Optional name for the file
62
+ */
63
+ name?: string | undefined;
64
+ };
65
+ /**
66
+ * Binary in base64 format. Check in the model's documentation for the supported mime types for the binary format.
67
+ */
68
+ export type StreamAgentFileBinaryFormat = {
69
+ /**
70
+ * base64 encoded content of the file
71
+ */
72
+ bytes: string;
73
+ /**
74
+ * Optional mimeType for the file
75
+ */
76
+ mimeType?: string | undefined;
77
+ /**
78
+ * Optional name for the file
79
+ */
80
+ name?: string | undefined;
81
+ };
82
+ export type StreamAgentPublicMessagePartFile = StreamAgentFileBinaryFormat | StreamAgentFileFileInURIFormat;
83
+ /**
84
+ * File attachment part. Use this to send files (images, documents, etc.) to the agent for processing.
85
+ */
86
+ export type StreamAgentPublicMessagePartFilePart = {
87
+ kind: StreamAgentPublicMessagePartAgentsKind;
88
+ file: StreamAgentFileBinaryFormat | StreamAgentFileFileInURIFormat;
89
+ metadata?: {
90
+ [k: string]: any;
91
+ } | undefined;
92
+ };
93
+ export declare const StreamAgentPublicMessagePartKind: {
94
+ readonly Text: "text";
95
+ };
96
+ export type StreamAgentPublicMessagePartKind = ClosedEnum<typeof StreamAgentPublicMessagePartKind>;
97
+ /**
98
+ * Text content part. Use this to send text messages to the agent.
99
+ */
100
+ export type StreamAgentPublicMessagePartTextPart = {
101
+ kind: StreamAgentPublicMessagePartKind;
102
+ text: string;
103
+ };
104
+ /**
105
+ * 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.
106
+ */
107
+ export type StreamAgentPublicMessagePart = StreamAgentPublicMessagePartTextPart | StreamAgentPublicMessagePartFilePart | StreamAgentPublicMessagePartToolResultPart;
108
+ export type StreamAgentMessage = {
109
+ /**
110
+ * Optional A2A message ID in ULID format
111
+ */
112
+ messageId?: string | undefined;
113
+ /**
114
+ * Message role (user or tool for continuing executions)
115
+ */
116
+ role: StreamAgentRoleUserMessage | StreamAgentRoleToolMessage;
117
+ /**
118
+ * A2A message parts (text, file, or tool_result only)
119
+ */
120
+ parts: Array<StreamAgentPublicMessagePartTextPart | StreamAgentPublicMessagePartFilePart | StreamAgentPublicMessagePartToolResultPart>;
121
+ };
122
+ /**
123
+ * Information about the contact making the request. If the contact does not exist, it will be created automatically.
124
+ */
125
+ export type StreamAgentContact = {
126
+ /**
127
+ * Unique identifier for the contact
128
+ */
129
+ id: string;
130
+ /**
131
+ * Display name of the contact
132
+ */
133
+ displayName?: string | undefined;
134
+ /**
135
+ * Email address of the contact
136
+ */
137
+ email?: string | undefined;
138
+ /**
139
+ * A hash of key/value pairs containing any other data about the contact
140
+ */
141
+ metadata?: Array<{
142
+ [k: string]: any;
143
+ }> | undefined;
144
+ /**
145
+ * URL to the contact's avatar or logo
146
+ */
147
+ logoUrl?: string | undefined;
148
+ /**
149
+ * A list of tags associated with the contact
150
+ */
151
+ tags?: Array<string> | undefined;
152
+ };
153
+ /**
154
+ * Thread information to group related requests
155
+ */
156
+ export type StreamAgentThread = {
157
+ /**
158
+ * Unique thread identifier to group related invocations.
159
+ */
160
+ id: string;
161
+ /**
162
+ * Optional tags to differentiate or categorize threads
163
+ */
164
+ tags?: Array<string> | undefined;
165
+ };
166
+ /**
167
+ * Memory configuration for the agent execution. Used to associate memory stores with specific entities like users or sessions.
168
+ */
169
+ export type StreamAgentMemory = {
170
+ /**
171
+ * 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.
172
+ */
173
+ entityId: string;
174
+ };
175
+ export type StreamAgentRequestBody = {
176
+ /**
177
+ * 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.
178
+ */
179
+ taskId?: string | undefined;
180
+ message: StreamAgentMessage;
181
+ /**
182
+ * Optional variables for template replacement in system prompt, instructions, and messages
183
+ */
184
+ variables?: {
185
+ [k: string]: any;
186
+ } | undefined;
187
+ /**
188
+ * Information about the contact making the request. If the contact does not exist, it will be created automatically.
189
+ */
190
+ contact?: StreamAgentContact | undefined;
191
+ /**
192
+ * Thread information to group related requests
193
+ */
194
+ thread?: StreamAgentThread | undefined;
195
+ /**
196
+ * Memory configuration for the agent execution. Used to associate memory stores with specific entities like users or sessions.
197
+ */
198
+ memory?: StreamAgentMemory | undefined;
199
+ /**
200
+ * Optional metadata for the agent invocation as key-value pairs that will be included in traces
201
+ */
202
+ metadata?: {
203
+ [k: string]: any;
204
+ } | undefined;
205
+ /**
206
+ * Stream timeout in seconds (1-3600). Default: 1800 (30 minutes)
207
+ */
208
+ streamTimeoutSeconds?: number | undefined;
209
+ };
210
+ export type StreamAgentRequest = {
211
+ /**
212
+ * The key or ID of the agent to invoke
213
+ */
214
+ key: string;
215
+ requestBody?: StreamAgentRequestBody | undefined;
216
+ };
217
+ /**
218
+ * SSE stream of agent events
219
+ */
220
+ export type StreamAgentResponseBody = {
221
+ /**
222
+ * JSON-encoded event data
223
+ */
224
+ data: string;
225
+ };
226
+ /** @internal */
227
+ export declare const StreamAgentRoleToolMessage$inboundSchema: z.ZodNativeEnum<typeof StreamAgentRoleToolMessage>;
228
+ /** @internal */
229
+ export declare const StreamAgentRoleToolMessage$outboundSchema: z.ZodNativeEnum<typeof StreamAgentRoleToolMessage>;
230
+ /**
231
+ * @internal
232
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
233
+ */
234
+ export declare namespace StreamAgentRoleToolMessage$ {
235
+ /** @deprecated use `StreamAgentRoleToolMessage$inboundSchema` instead. */
236
+ const inboundSchema: z.ZodNativeEnum<{
237
+ readonly Tool: "tool";
238
+ }>;
239
+ /** @deprecated use `StreamAgentRoleToolMessage$outboundSchema` instead. */
240
+ const outboundSchema: z.ZodNativeEnum<{
241
+ readonly Tool: "tool";
242
+ }>;
243
+ }
244
+ /** @internal */
245
+ export declare const StreamAgentRoleUserMessage$inboundSchema: z.ZodNativeEnum<typeof StreamAgentRoleUserMessage>;
246
+ /** @internal */
247
+ export declare const StreamAgentRoleUserMessage$outboundSchema: z.ZodNativeEnum<typeof StreamAgentRoleUserMessage>;
248
+ /**
249
+ * @internal
250
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
251
+ */
252
+ export declare namespace StreamAgentRoleUserMessage$ {
253
+ /** @deprecated use `StreamAgentRoleUserMessage$inboundSchema` instead. */
254
+ const inboundSchema: z.ZodNativeEnum<{
255
+ readonly User: "user";
256
+ }>;
257
+ /** @deprecated use `StreamAgentRoleUserMessage$outboundSchema` instead. */
258
+ const outboundSchema: z.ZodNativeEnum<{
259
+ readonly User: "user";
260
+ }>;
261
+ }
262
+ /** @internal */
263
+ export declare const StreamAgentRole$inboundSchema: z.ZodType<StreamAgentRole, z.ZodTypeDef, unknown>;
264
+ /** @internal */
265
+ export type StreamAgentRole$Outbound = string | string;
266
+ /** @internal */
267
+ export declare const StreamAgentRole$outboundSchema: z.ZodType<StreamAgentRole$Outbound, z.ZodTypeDef, StreamAgentRole>;
268
+ /**
269
+ * @internal
270
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
271
+ */
272
+ export declare namespace StreamAgentRole$ {
273
+ /** @deprecated use `StreamAgentRole$inboundSchema` instead. */
274
+ const inboundSchema: z.ZodType<StreamAgentRole, z.ZodTypeDef, unknown>;
275
+ /** @deprecated use `StreamAgentRole$outboundSchema` instead. */
276
+ const outboundSchema: z.ZodType<string, z.ZodTypeDef, StreamAgentRole>;
277
+ /** @deprecated use `StreamAgentRole$Outbound` instead. */
278
+ type Outbound = StreamAgentRole$Outbound;
279
+ }
280
+ export declare function streamAgentRoleToJSON(streamAgentRole: StreamAgentRole): string;
281
+ export declare function streamAgentRoleFromJSON(jsonString: string): SafeParseResult<StreamAgentRole, SDKValidationError>;
282
+ /** @internal */
283
+ export declare const StreamAgentPublicMessagePartAgentsRequestKind$inboundSchema: z.ZodNativeEnum<typeof StreamAgentPublicMessagePartAgentsRequestKind>;
284
+ /** @internal */
285
+ export declare const StreamAgentPublicMessagePartAgentsRequestKind$outboundSchema: z.ZodNativeEnum<typeof StreamAgentPublicMessagePartAgentsRequestKind>;
286
+ /**
287
+ * @internal
288
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
289
+ */
290
+ export declare namespace StreamAgentPublicMessagePartAgentsRequestKind$ {
291
+ /** @deprecated use `StreamAgentPublicMessagePartAgentsRequestKind$inboundSchema` instead. */
292
+ const inboundSchema: z.ZodNativeEnum<{
293
+ readonly ToolResult: "tool_result";
294
+ }>;
295
+ /** @deprecated use `StreamAgentPublicMessagePartAgentsRequestKind$outboundSchema` instead. */
296
+ const outboundSchema: z.ZodNativeEnum<{
297
+ readonly ToolResult: "tool_result";
298
+ }>;
299
+ }
300
+ /** @internal */
301
+ export declare const StreamAgentPublicMessagePartToolResultPart$inboundSchema: z.ZodType<StreamAgentPublicMessagePartToolResultPart, z.ZodTypeDef, unknown>;
302
+ /** @internal */
303
+ export type StreamAgentPublicMessagePartToolResultPart$Outbound = {
304
+ kind: string;
305
+ tool_call_id: string;
306
+ result?: any | undefined;
307
+ metadata?: {
308
+ [k: string]: any;
309
+ } | undefined;
310
+ };
311
+ /** @internal */
312
+ export declare const StreamAgentPublicMessagePartToolResultPart$outboundSchema: z.ZodType<StreamAgentPublicMessagePartToolResultPart$Outbound, z.ZodTypeDef, StreamAgentPublicMessagePartToolResultPart>;
313
+ /**
314
+ * @internal
315
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
316
+ */
317
+ export declare namespace StreamAgentPublicMessagePartToolResultPart$ {
318
+ /** @deprecated use `StreamAgentPublicMessagePartToolResultPart$inboundSchema` instead. */
319
+ const inboundSchema: z.ZodType<StreamAgentPublicMessagePartToolResultPart, z.ZodTypeDef, unknown>;
320
+ /** @deprecated use `StreamAgentPublicMessagePartToolResultPart$outboundSchema` instead. */
321
+ const outboundSchema: z.ZodType<StreamAgentPublicMessagePartToolResultPart$Outbound, z.ZodTypeDef, StreamAgentPublicMessagePartToolResultPart>;
322
+ /** @deprecated use `StreamAgentPublicMessagePartToolResultPart$Outbound` instead. */
323
+ type Outbound = StreamAgentPublicMessagePartToolResultPart$Outbound;
324
+ }
325
+ export declare function streamAgentPublicMessagePartToolResultPartToJSON(streamAgentPublicMessagePartToolResultPart: StreamAgentPublicMessagePartToolResultPart): string;
326
+ export declare function streamAgentPublicMessagePartToolResultPartFromJSON(jsonString: string): SafeParseResult<StreamAgentPublicMessagePartToolResultPart, SDKValidationError>;
327
+ /** @internal */
328
+ export declare const StreamAgentPublicMessagePartAgentsKind$inboundSchema: z.ZodNativeEnum<typeof StreamAgentPublicMessagePartAgentsKind>;
329
+ /** @internal */
330
+ export declare const StreamAgentPublicMessagePartAgentsKind$outboundSchema: z.ZodNativeEnum<typeof StreamAgentPublicMessagePartAgentsKind>;
331
+ /**
332
+ * @internal
333
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
334
+ */
335
+ export declare namespace StreamAgentPublicMessagePartAgentsKind$ {
336
+ /** @deprecated use `StreamAgentPublicMessagePartAgentsKind$inboundSchema` instead. */
337
+ const inboundSchema: z.ZodNativeEnum<{
338
+ readonly File: "file";
339
+ }>;
340
+ /** @deprecated use `StreamAgentPublicMessagePartAgentsKind$outboundSchema` instead. */
341
+ const outboundSchema: z.ZodNativeEnum<{
342
+ readonly File: "file";
343
+ }>;
344
+ }
345
+ /** @internal */
346
+ export declare const StreamAgentFileFileInURIFormat$inboundSchema: z.ZodType<StreamAgentFileFileInURIFormat, z.ZodTypeDef, unknown>;
347
+ /** @internal */
348
+ export type StreamAgentFileFileInURIFormat$Outbound = {
349
+ uri: string;
350
+ mimeType?: string | undefined;
351
+ name?: string | undefined;
352
+ };
353
+ /** @internal */
354
+ export declare const StreamAgentFileFileInURIFormat$outboundSchema: z.ZodType<StreamAgentFileFileInURIFormat$Outbound, z.ZodTypeDef, StreamAgentFileFileInURIFormat>;
355
+ /**
356
+ * @internal
357
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
358
+ */
359
+ export declare namespace StreamAgentFileFileInURIFormat$ {
360
+ /** @deprecated use `StreamAgentFileFileInURIFormat$inboundSchema` instead. */
361
+ const inboundSchema: z.ZodType<StreamAgentFileFileInURIFormat, z.ZodTypeDef, unknown>;
362
+ /** @deprecated use `StreamAgentFileFileInURIFormat$outboundSchema` instead. */
363
+ const outboundSchema: z.ZodType<StreamAgentFileFileInURIFormat$Outbound, z.ZodTypeDef, StreamAgentFileFileInURIFormat>;
364
+ /** @deprecated use `StreamAgentFileFileInURIFormat$Outbound` instead. */
365
+ type Outbound = StreamAgentFileFileInURIFormat$Outbound;
366
+ }
367
+ export declare function streamAgentFileFileInURIFormatToJSON(streamAgentFileFileInURIFormat: StreamAgentFileFileInURIFormat): string;
368
+ export declare function streamAgentFileFileInURIFormatFromJSON(jsonString: string): SafeParseResult<StreamAgentFileFileInURIFormat, SDKValidationError>;
369
+ /** @internal */
370
+ export declare const StreamAgentFileBinaryFormat$inboundSchema: z.ZodType<StreamAgentFileBinaryFormat, z.ZodTypeDef, unknown>;
371
+ /** @internal */
372
+ export type StreamAgentFileBinaryFormat$Outbound = {
373
+ bytes: string;
374
+ mimeType?: string | undefined;
375
+ name?: string | undefined;
376
+ };
377
+ /** @internal */
378
+ export declare const StreamAgentFileBinaryFormat$outboundSchema: z.ZodType<StreamAgentFileBinaryFormat$Outbound, z.ZodTypeDef, StreamAgentFileBinaryFormat>;
379
+ /**
380
+ * @internal
381
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
382
+ */
383
+ export declare namespace StreamAgentFileBinaryFormat$ {
384
+ /** @deprecated use `StreamAgentFileBinaryFormat$inboundSchema` instead. */
385
+ const inboundSchema: z.ZodType<StreamAgentFileBinaryFormat, z.ZodTypeDef, unknown>;
386
+ /** @deprecated use `StreamAgentFileBinaryFormat$outboundSchema` instead. */
387
+ const outboundSchema: z.ZodType<StreamAgentFileBinaryFormat$Outbound, z.ZodTypeDef, StreamAgentFileBinaryFormat>;
388
+ /** @deprecated use `StreamAgentFileBinaryFormat$Outbound` instead. */
389
+ type Outbound = StreamAgentFileBinaryFormat$Outbound;
390
+ }
391
+ export declare function streamAgentFileBinaryFormatToJSON(streamAgentFileBinaryFormat: StreamAgentFileBinaryFormat): string;
392
+ export declare function streamAgentFileBinaryFormatFromJSON(jsonString: string): SafeParseResult<StreamAgentFileBinaryFormat, SDKValidationError>;
393
+ /** @internal */
394
+ export declare const StreamAgentPublicMessagePartFile$inboundSchema: z.ZodType<StreamAgentPublicMessagePartFile, z.ZodTypeDef, unknown>;
395
+ /** @internal */
396
+ export type StreamAgentPublicMessagePartFile$Outbound = StreamAgentFileBinaryFormat$Outbound | StreamAgentFileFileInURIFormat$Outbound;
397
+ /** @internal */
398
+ export declare const StreamAgentPublicMessagePartFile$outboundSchema: z.ZodType<StreamAgentPublicMessagePartFile$Outbound, z.ZodTypeDef, StreamAgentPublicMessagePartFile>;
399
+ /**
400
+ * @internal
401
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
402
+ */
403
+ export declare namespace StreamAgentPublicMessagePartFile$ {
404
+ /** @deprecated use `StreamAgentPublicMessagePartFile$inboundSchema` instead. */
405
+ const inboundSchema: z.ZodType<StreamAgentPublicMessagePartFile, z.ZodTypeDef, unknown>;
406
+ /** @deprecated use `StreamAgentPublicMessagePartFile$outboundSchema` instead. */
407
+ const outboundSchema: z.ZodType<StreamAgentPublicMessagePartFile$Outbound, z.ZodTypeDef, StreamAgentPublicMessagePartFile>;
408
+ /** @deprecated use `StreamAgentPublicMessagePartFile$Outbound` instead. */
409
+ type Outbound = StreamAgentPublicMessagePartFile$Outbound;
410
+ }
411
+ export declare function streamAgentPublicMessagePartFileToJSON(streamAgentPublicMessagePartFile: StreamAgentPublicMessagePartFile): string;
412
+ export declare function streamAgentPublicMessagePartFileFromJSON(jsonString: string): SafeParseResult<StreamAgentPublicMessagePartFile, SDKValidationError>;
413
+ /** @internal */
414
+ export declare const StreamAgentPublicMessagePartFilePart$inboundSchema: z.ZodType<StreamAgentPublicMessagePartFilePart, z.ZodTypeDef, unknown>;
415
+ /** @internal */
416
+ export type StreamAgentPublicMessagePartFilePart$Outbound = {
417
+ kind: string;
418
+ file: StreamAgentFileBinaryFormat$Outbound | StreamAgentFileFileInURIFormat$Outbound;
419
+ metadata?: {
420
+ [k: string]: any;
421
+ } | undefined;
422
+ };
423
+ /** @internal */
424
+ export declare const StreamAgentPublicMessagePartFilePart$outboundSchema: z.ZodType<StreamAgentPublicMessagePartFilePart$Outbound, z.ZodTypeDef, StreamAgentPublicMessagePartFilePart>;
425
+ /**
426
+ * @internal
427
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
428
+ */
429
+ export declare namespace StreamAgentPublicMessagePartFilePart$ {
430
+ /** @deprecated use `StreamAgentPublicMessagePartFilePart$inboundSchema` instead. */
431
+ const inboundSchema: z.ZodType<StreamAgentPublicMessagePartFilePart, z.ZodTypeDef, unknown>;
432
+ /** @deprecated use `StreamAgentPublicMessagePartFilePart$outboundSchema` instead. */
433
+ const outboundSchema: z.ZodType<StreamAgentPublicMessagePartFilePart$Outbound, z.ZodTypeDef, StreamAgentPublicMessagePartFilePart>;
434
+ /** @deprecated use `StreamAgentPublicMessagePartFilePart$Outbound` instead. */
435
+ type Outbound = StreamAgentPublicMessagePartFilePart$Outbound;
436
+ }
437
+ export declare function streamAgentPublicMessagePartFilePartToJSON(streamAgentPublicMessagePartFilePart: StreamAgentPublicMessagePartFilePart): string;
438
+ export declare function streamAgentPublicMessagePartFilePartFromJSON(jsonString: string): SafeParseResult<StreamAgentPublicMessagePartFilePart, SDKValidationError>;
439
+ /** @internal */
440
+ export declare const StreamAgentPublicMessagePartKind$inboundSchema: z.ZodNativeEnum<typeof StreamAgentPublicMessagePartKind>;
441
+ /** @internal */
442
+ export declare const StreamAgentPublicMessagePartKind$outboundSchema: z.ZodNativeEnum<typeof StreamAgentPublicMessagePartKind>;
443
+ /**
444
+ * @internal
445
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
446
+ */
447
+ export declare namespace StreamAgentPublicMessagePartKind$ {
448
+ /** @deprecated use `StreamAgentPublicMessagePartKind$inboundSchema` instead. */
449
+ const inboundSchema: z.ZodNativeEnum<{
450
+ readonly Text: "text";
451
+ }>;
452
+ /** @deprecated use `StreamAgentPublicMessagePartKind$outboundSchema` instead. */
453
+ const outboundSchema: z.ZodNativeEnum<{
454
+ readonly Text: "text";
455
+ }>;
456
+ }
457
+ /** @internal */
458
+ export declare const StreamAgentPublicMessagePartTextPart$inboundSchema: z.ZodType<StreamAgentPublicMessagePartTextPart, z.ZodTypeDef, unknown>;
459
+ /** @internal */
460
+ export type StreamAgentPublicMessagePartTextPart$Outbound = {
461
+ kind: string;
462
+ text: string;
463
+ };
464
+ /** @internal */
465
+ export declare const StreamAgentPublicMessagePartTextPart$outboundSchema: z.ZodType<StreamAgentPublicMessagePartTextPart$Outbound, z.ZodTypeDef, StreamAgentPublicMessagePartTextPart>;
466
+ /**
467
+ * @internal
468
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
469
+ */
470
+ export declare namespace StreamAgentPublicMessagePartTextPart$ {
471
+ /** @deprecated use `StreamAgentPublicMessagePartTextPart$inboundSchema` instead. */
472
+ const inboundSchema: z.ZodType<StreamAgentPublicMessagePartTextPart, z.ZodTypeDef, unknown>;
473
+ /** @deprecated use `StreamAgentPublicMessagePartTextPart$outboundSchema` instead. */
474
+ const outboundSchema: z.ZodType<StreamAgentPublicMessagePartTextPart$Outbound, z.ZodTypeDef, StreamAgentPublicMessagePartTextPart>;
475
+ /** @deprecated use `StreamAgentPublicMessagePartTextPart$Outbound` instead. */
476
+ type Outbound = StreamAgentPublicMessagePartTextPart$Outbound;
477
+ }
478
+ export declare function streamAgentPublicMessagePartTextPartToJSON(streamAgentPublicMessagePartTextPart: StreamAgentPublicMessagePartTextPart): string;
479
+ export declare function streamAgentPublicMessagePartTextPartFromJSON(jsonString: string): SafeParseResult<StreamAgentPublicMessagePartTextPart, SDKValidationError>;
480
+ /** @internal */
481
+ export declare const StreamAgentPublicMessagePart$inboundSchema: z.ZodType<StreamAgentPublicMessagePart, z.ZodTypeDef, unknown>;
482
+ /** @internal */
483
+ export type StreamAgentPublicMessagePart$Outbound = StreamAgentPublicMessagePartTextPart$Outbound | StreamAgentPublicMessagePartFilePart$Outbound | StreamAgentPublicMessagePartToolResultPart$Outbound;
484
+ /** @internal */
485
+ export declare const StreamAgentPublicMessagePart$outboundSchema: z.ZodType<StreamAgentPublicMessagePart$Outbound, z.ZodTypeDef, StreamAgentPublicMessagePart>;
486
+ /**
487
+ * @internal
488
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
489
+ */
490
+ export declare namespace StreamAgentPublicMessagePart$ {
491
+ /** @deprecated use `StreamAgentPublicMessagePart$inboundSchema` instead. */
492
+ const inboundSchema: z.ZodType<StreamAgentPublicMessagePart, z.ZodTypeDef, unknown>;
493
+ /** @deprecated use `StreamAgentPublicMessagePart$outboundSchema` instead. */
494
+ const outboundSchema: z.ZodType<StreamAgentPublicMessagePart$Outbound, z.ZodTypeDef, StreamAgentPublicMessagePart>;
495
+ /** @deprecated use `StreamAgentPublicMessagePart$Outbound` instead. */
496
+ type Outbound = StreamAgentPublicMessagePart$Outbound;
497
+ }
498
+ export declare function streamAgentPublicMessagePartToJSON(streamAgentPublicMessagePart: StreamAgentPublicMessagePart): string;
499
+ export declare function streamAgentPublicMessagePartFromJSON(jsonString: string): SafeParseResult<StreamAgentPublicMessagePart, SDKValidationError>;
500
+ /** @internal */
501
+ export declare const StreamAgentMessage$inboundSchema: z.ZodType<StreamAgentMessage, z.ZodTypeDef, unknown>;
502
+ /** @internal */
503
+ export type StreamAgentMessage$Outbound = {
504
+ messageId?: string | undefined;
505
+ role: string | string;
506
+ parts: Array<StreamAgentPublicMessagePartTextPart$Outbound | StreamAgentPublicMessagePartFilePart$Outbound | StreamAgentPublicMessagePartToolResultPart$Outbound>;
507
+ };
508
+ /** @internal */
509
+ export declare const StreamAgentMessage$outboundSchema: z.ZodType<StreamAgentMessage$Outbound, z.ZodTypeDef, StreamAgentMessage>;
510
+ /**
511
+ * @internal
512
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
513
+ */
514
+ export declare namespace StreamAgentMessage$ {
515
+ /** @deprecated use `StreamAgentMessage$inboundSchema` instead. */
516
+ const inboundSchema: z.ZodType<StreamAgentMessage, z.ZodTypeDef, unknown>;
517
+ /** @deprecated use `StreamAgentMessage$outboundSchema` instead. */
518
+ const outboundSchema: z.ZodType<StreamAgentMessage$Outbound, z.ZodTypeDef, StreamAgentMessage>;
519
+ /** @deprecated use `StreamAgentMessage$Outbound` instead. */
520
+ type Outbound = StreamAgentMessage$Outbound;
521
+ }
522
+ export declare function streamAgentMessageToJSON(streamAgentMessage: StreamAgentMessage): string;
523
+ export declare function streamAgentMessageFromJSON(jsonString: string): SafeParseResult<StreamAgentMessage, SDKValidationError>;
524
+ /** @internal */
525
+ export declare const StreamAgentContact$inboundSchema: z.ZodType<StreamAgentContact, z.ZodTypeDef, unknown>;
526
+ /** @internal */
527
+ export type StreamAgentContact$Outbound = {
528
+ id: string;
529
+ display_name?: string | undefined;
530
+ email?: string | undefined;
531
+ metadata?: Array<{
532
+ [k: string]: any;
533
+ }> | undefined;
534
+ logo_url?: string | undefined;
535
+ tags?: Array<string> | undefined;
536
+ };
537
+ /** @internal */
538
+ export declare const StreamAgentContact$outboundSchema: z.ZodType<StreamAgentContact$Outbound, z.ZodTypeDef, StreamAgentContact>;
539
+ /**
540
+ * @internal
541
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
542
+ */
543
+ export declare namespace StreamAgentContact$ {
544
+ /** @deprecated use `StreamAgentContact$inboundSchema` instead. */
545
+ const inboundSchema: z.ZodType<StreamAgentContact, z.ZodTypeDef, unknown>;
546
+ /** @deprecated use `StreamAgentContact$outboundSchema` instead. */
547
+ const outboundSchema: z.ZodType<StreamAgentContact$Outbound, z.ZodTypeDef, StreamAgentContact>;
548
+ /** @deprecated use `StreamAgentContact$Outbound` instead. */
549
+ type Outbound = StreamAgentContact$Outbound;
550
+ }
551
+ export declare function streamAgentContactToJSON(streamAgentContact: StreamAgentContact): string;
552
+ export declare function streamAgentContactFromJSON(jsonString: string): SafeParseResult<StreamAgentContact, SDKValidationError>;
553
+ /** @internal */
554
+ export declare const StreamAgentThread$inboundSchema: z.ZodType<StreamAgentThread, z.ZodTypeDef, unknown>;
555
+ /** @internal */
556
+ export type StreamAgentThread$Outbound = {
557
+ id: string;
558
+ tags?: Array<string> | undefined;
559
+ };
560
+ /** @internal */
561
+ export declare const StreamAgentThread$outboundSchema: z.ZodType<StreamAgentThread$Outbound, z.ZodTypeDef, StreamAgentThread>;
562
+ /**
563
+ * @internal
564
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
565
+ */
566
+ export declare namespace StreamAgentThread$ {
567
+ /** @deprecated use `StreamAgentThread$inboundSchema` instead. */
568
+ const inboundSchema: z.ZodType<StreamAgentThread, z.ZodTypeDef, unknown>;
569
+ /** @deprecated use `StreamAgentThread$outboundSchema` instead. */
570
+ const outboundSchema: z.ZodType<StreamAgentThread$Outbound, z.ZodTypeDef, StreamAgentThread>;
571
+ /** @deprecated use `StreamAgentThread$Outbound` instead. */
572
+ type Outbound = StreamAgentThread$Outbound;
573
+ }
574
+ export declare function streamAgentThreadToJSON(streamAgentThread: StreamAgentThread): string;
575
+ export declare function streamAgentThreadFromJSON(jsonString: string): SafeParseResult<StreamAgentThread, SDKValidationError>;
576
+ /** @internal */
577
+ export declare const StreamAgentMemory$inboundSchema: z.ZodType<StreamAgentMemory, z.ZodTypeDef, unknown>;
578
+ /** @internal */
579
+ export type StreamAgentMemory$Outbound = {
580
+ entity_id: string;
581
+ };
582
+ /** @internal */
583
+ export declare const StreamAgentMemory$outboundSchema: z.ZodType<StreamAgentMemory$Outbound, z.ZodTypeDef, StreamAgentMemory>;
584
+ /**
585
+ * @internal
586
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
587
+ */
588
+ export declare namespace StreamAgentMemory$ {
589
+ /** @deprecated use `StreamAgentMemory$inboundSchema` instead. */
590
+ const inboundSchema: z.ZodType<StreamAgentMemory, z.ZodTypeDef, unknown>;
591
+ /** @deprecated use `StreamAgentMemory$outboundSchema` instead. */
592
+ const outboundSchema: z.ZodType<StreamAgentMemory$Outbound, z.ZodTypeDef, StreamAgentMemory>;
593
+ /** @deprecated use `StreamAgentMemory$Outbound` instead. */
594
+ type Outbound = StreamAgentMemory$Outbound;
595
+ }
596
+ export declare function streamAgentMemoryToJSON(streamAgentMemory: StreamAgentMemory): string;
597
+ export declare function streamAgentMemoryFromJSON(jsonString: string): SafeParseResult<StreamAgentMemory, SDKValidationError>;
598
+ /** @internal */
599
+ export declare const StreamAgentRequestBody$inboundSchema: z.ZodType<StreamAgentRequestBody, z.ZodTypeDef, unknown>;
600
+ /** @internal */
601
+ export type StreamAgentRequestBody$Outbound = {
602
+ task_id?: string | undefined;
603
+ message: StreamAgentMessage$Outbound;
604
+ variables?: {
605
+ [k: string]: any;
606
+ } | undefined;
607
+ contact?: StreamAgentContact$Outbound | undefined;
608
+ thread?: StreamAgentThread$Outbound | undefined;
609
+ memory?: StreamAgentMemory$Outbound | undefined;
610
+ metadata?: {
611
+ [k: string]: any;
612
+ } | undefined;
613
+ stream_timeout_seconds?: number | undefined;
614
+ };
615
+ /** @internal */
616
+ export declare const StreamAgentRequestBody$outboundSchema: z.ZodType<StreamAgentRequestBody$Outbound, z.ZodTypeDef, StreamAgentRequestBody>;
617
+ /**
618
+ * @internal
619
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
620
+ */
621
+ export declare namespace StreamAgentRequestBody$ {
622
+ /** @deprecated use `StreamAgentRequestBody$inboundSchema` instead. */
623
+ const inboundSchema: z.ZodType<StreamAgentRequestBody, z.ZodTypeDef, unknown>;
624
+ /** @deprecated use `StreamAgentRequestBody$outboundSchema` instead. */
625
+ const outboundSchema: z.ZodType<StreamAgentRequestBody$Outbound, z.ZodTypeDef, StreamAgentRequestBody>;
626
+ /** @deprecated use `StreamAgentRequestBody$Outbound` instead. */
627
+ type Outbound = StreamAgentRequestBody$Outbound;
628
+ }
629
+ export declare function streamAgentRequestBodyToJSON(streamAgentRequestBody: StreamAgentRequestBody): string;
630
+ export declare function streamAgentRequestBodyFromJSON(jsonString: string): SafeParseResult<StreamAgentRequestBody, SDKValidationError>;
631
+ /** @internal */
632
+ export declare const StreamAgentRequest$inboundSchema: z.ZodType<StreamAgentRequest, z.ZodTypeDef, unknown>;
633
+ /** @internal */
634
+ export type StreamAgentRequest$Outbound = {
635
+ key: string;
636
+ RequestBody?: StreamAgentRequestBody$Outbound | undefined;
637
+ };
638
+ /** @internal */
639
+ export declare const StreamAgentRequest$outboundSchema: z.ZodType<StreamAgentRequest$Outbound, z.ZodTypeDef, StreamAgentRequest>;
640
+ /**
641
+ * @internal
642
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
643
+ */
644
+ export declare namespace StreamAgentRequest$ {
645
+ /** @deprecated use `StreamAgentRequest$inboundSchema` instead. */
646
+ const inboundSchema: z.ZodType<StreamAgentRequest, z.ZodTypeDef, unknown>;
647
+ /** @deprecated use `StreamAgentRequest$outboundSchema` instead. */
648
+ const outboundSchema: z.ZodType<StreamAgentRequest$Outbound, z.ZodTypeDef, StreamAgentRequest>;
649
+ /** @deprecated use `StreamAgentRequest$Outbound` instead. */
650
+ type Outbound = StreamAgentRequest$Outbound;
651
+ }
652
+ export declare function streamAgentRequestToJSON(streamAgentRequest: StreamAgentRequest): string;
653
+ export declare function streamAgentRequestFromJSON(jsonString: string): SafeParseResult<StreamAgentRequest, SDKValidationError>;
654
+ /** @internal */
655
+ export declare const StreamAgentResponseBody$inboundSchema: z.ZodType<StreamAgentResponseBody, z.ZodTypeDef, unknown>;
656
+ /** @internal */
657
+ export type StreamAgentResponseBody$Outbound = {
658
+ data: string;
659
+ };
660
+ /** @internal */
661
+ export declare const StreamAgentResponseBody$outboundSchema: z.ZodType<StreamAgentResponseBody$Outbound, z.ZodTypeDef, StreamAgentResponseBody>;
662
+ /**
663
+ * @internal
664
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
665
+ */
666
+ export declare namespace StreamAgentResponseBody$ {
667
+ /** @deprecated use `StreamAgentResponseBody$inboundSchema` instead. */
668
+ const inboundSchema: z.ZodType<StreamAgentResponseBody, z.ZodTypeDef, unknown>;
669
+ /** @deprecated use `StreamAgentResponseBody$outboundSchema` instead. */
670
+ const outboundSchema: z.ZodType<StreamAgentResponseBody$Outbound, z.ZodTypeDef, StreamAgentResponseBody>;
671
+ /** @deprecated use `StreamAgentResponseBody$Outbound` instead. */
672
+ type Outbound = StreamAgentResponseBody$Outbound;
673
+ }
674
+ export declare function streamAgentResponseBodyToJSON(streamAgentResponseBody: StreamAgentResponseBody): string;
675
+ export declare function streamAgentResponseBodyFromJSON(jsonString: string): SafeParseResult<StreamAgentResponseBody, SDKValidationError>;
676
+ //# sourceMappingURL=streamagent.d.ts.map