@orq-ai/node 4.5.0-rc.26 → 4.5.0-rc.33

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 (222) hide show
  1. package/README.md +38 -28
  2. package/funcs/agentsList.d.ts +1 -1
  3. package/funcs/agentsList.d.ts.map +1 -1
  4. package/funcs/agentsList.js +5 -3
  5. package/funcs/agentsList.js.map +1 -1
  6. package/funcs/agentsPostV2AgentsA2a.d.ts +18 -0
  7. package/funcs/agentsPostV2AgentsA2a.d.ts.map +1 -0
  8. package/funcs/agentsPostV2AgentsA2a.js +120 -0
  9. package/funcs/agentsPostV2AgentsA2a.js.map +1 -0
  10. package/funcs/agentsPostV2AgentsKeyCardRefresh.d.ts +18 -0
  11. package/funcs/agentsPostV2AgentsKeyCardRefresh.d.ts.map +1 -0
  12. package/funcs/agentsPostV2AgentsKeyCardRefresh.js +124 -0
  13. package/funcs/agentsPostV2AgentsKeyCardRefresh.js.map +1 -0
  14. package/funcs/agentsResponsesGet.d.ts +19 -0
  15. package/funcs/agentsResponsesGet.d.ts.map +1 -0
  16. package/funcs/agentsResponsesGet.js +128 -0
  17. package/funcs/agentsResponsesGet.js.map +1 -0
  18. package/funcs/agentsUpdate.d.ts +1 -1
  19. package/funcs/agentsUpdate.d.ts.map +1 -1
  20. package/funcs/agentsUpdate.js.map +1 -1
  21. package/jsr.json +1 -1
  22. package/lib/config.d.ts +3 -3
  23. package/lib/config.js +3 -3
  24. package/models/components/extendedmessage.d.ts +71 -0
  25. package/models/components/extendedmessage.d.ts.map +1 -0
  26. package/models/components/extendedmessage.js +98 -0
  27. package/models/components/extendedmessage.js.map +1 -0
  28. package/models/components/getagentresponse.d.ts +157 -0
  29. package/models/components/getagentresponse.d.ts.map +1 -0
  30. package/models/components/getagentresponse.js +175 -0
  31. package/models/components/getagentresponse.js.map +1 -0
  32. package/models/components/index.d.ts +2 -0
  33. package/models/components/index.d.ts.map +1 -1
  34. package/models/components/index.js +2 -0
  35. package/models/components/index.js.map +1 -1
  36. package/models/components/partdoneevent.js +1 -1
  37. package/models/components/reasoningpart.js +1 -1
  38. package/models/errors/index.d.ts +2 -0
  39. package/models/errors/index.d.ts.map +1 -1
  40. package/models/errors/index.js +2 -0
  41. package/models/errors/index.js.map +1 -1
  42. package/models/errors/postv2agentsa2a.d.ts +43 -0
  43. package/models/errors/postv2agentsa2a.d.ts.map +1 -0
  44. package/models/errors/postv2agentsa2a.js +94 -0
  45. package/models/errors/postv2agentsa2a.js.map +1 -0
  46. package/models/errors/postv2agentskeycardrefresh.d.ts +43 -0
  47. package/models/errors/postv2agentskeycardrefresh.d.ts.map +1 -0
  48. package/models/errors/postv2agentskeycardrefresh.js +94 -0
  49. package/models/errors/postv2agentskeycardrefresh.js.map +1 -0
  50. package/models/operations/createagentrequest.d.ts +309 -142
  51. package/models/operations/createagentrequest.d.ts.map +1 -1
  52. package/models/operations/createagentrequest.js +292 -160
  53. package/models/operations/createagentrequest.js.map +1 -1
  54. package/models/operations/createagentresponserequest.d.ts +22 -1
  55. package/models/operations/createagentresponserequest.d.ts.map +1 -1
  56. package/models/operations/createagentresponserequest.js +10 -1
  57. package/models/operations/createagentresponserequest.js.map +1 -1
  58. package/models/operations/createannotation.d.ts +1 -1
  59. package/models/operations/createannotation.d.ts.map +1 -1
  60. package/models/operations/createannotation.js +4 -0
  61. package/models/operations/createannotation.js.map +1 -1
  62. package/models/operations/createcontact.js +1 -1
  63. package/models/operations/createdataset.js +1 -1
  64. package/models/operations/createdatasetitem.js +4 -4
  65. package/models/operations/createdatasource.js +1 -1
  66. package/models/operations/createeval.js +16 -16
  67. package/models/operations/createidentity.js +1 -1
  68. package/models/operations/createknowledge.d.ts +7 -7
  69. package/models/operations/createknowledge.d.ts.map +1 -1
  70. package/models/operations/createknowledge.js +11 -11
  71. package/models/operations/createknowledge.js.map +1 -1
  72. package/models/operations/createtool.d.ts +39 -39
  73. package/models/operations/createtool.d.ts.map +1 -1
  74. package/models/operations/createtool.js +52 -49
  75. package/models/operations/createtool.js.map +1 -1
  76. package/models/operations/deploymentinvoke.d.ts +14 -0
  77. package/models/operations/deploymentinvoke.d.ts.map +1 -1
  78. package/models/operations/deploymentinvoke.js +16 -1
  79. package/models/operations/deploymentinvoke.js.map +1 -1
  80. package/models/operations/deploymentstream.d.ts +14 -0
  81. package/models/operations/deploymentstream.d.ts.map +1 -1
  82. package/models/operations/deploymentstream.js +16 -1
  83. package/models/operations/deploymentstream.js.map +1 -1
  84. package/models/operations/fileget.js +1 -1
  85. package/models/operations/filelist.js +1 -1
  86. package/models/operations/fileupload.js +1 -1
  87. package/models/operations/getagentresponse.d.ts +20 -0
  88. package/models/operations/getagentresponse.d.ts.map +1 -0
  89. package/models/operations/getagentresponse.js +56 -0
  90. package/models/operations/getagentresponse.js.map +1 -0
  91. package/models/operations/getalltools.d.ts +39 -39
  92. package/models/operations/getalltools.d.ts.map +1 -1
  93. package/models/operations/getalltools.js +49 -47
  94. package/models/operations/getalltools.js.map +1 -1
  95. package/models/operations/getevals.js +16 -16
  96. package/models/operations/index.d.ts +3 -0
  97. package/models/operations/index.d.ts.map +1 -1
  98. package/models/operations/index.js +3 -0
  99. package/models/operations/index.js.map +1 -1
  100. package/models/operations/invokeagent.d.ts +26 -1
  101. package/models/operations/invokeagent.d.ts.map +1 -1
  102. package/models/operations/invokeagent.js +12 -1
  103. package/models/operations/invokeagent.js.map +1 -1
  104. package/models/operations/listagents.d.ts +331 -147
  105. package/models/operations/listagents.d.ts.map +1 -1
  106. package/models/operations/listagents.js +314 -171
  107. package/models/operations/listagents.js.map +1 -1
  108. package/models/operations/listdatasetdatapoints.js +4 -4
  109. package/models/operations/listdatasets.js +1 -1
  110. package/models/operations/listdatasources.js +1 -1
  111. package/models/operations/listidentities.js +1 -1
  112. package/models/operations/listknowledgebases.d.ts +8 -8
  113. package/models/operations/listknowledgebases.d.ts.map +1 -1
  114. package/models/operations/listknowledgebases.js +13 -15
  115. package/models/operations/listknowledgebases.js.map +1 -1
  116. package/models/operations/postv2agentsa2a.d.ts +119 -0
  117. package/models/operations/postv2agentsa2a.d.ts.map +1 -0
  118. package/models/operations/postv2agentsa2a.js +147 -0
  119. package/models/operations/postv2agentsa2a.js.map +1 -0
  120. package/models/operations/postv2agentskeycardrefresh.d.ts +35 -0
  121. package/models/operations/postv2agentskeycardrefresh.d.ts.map +1 -0
  122. package/models/operations/postv2agentskeycardrefresh.js +71 -0
  123. package/models/operations/postv2agentskeycardrefresh.js.map +1 -0
  124. package/models/operations/retrieveagentrequest.d.ts +316 -150
  125. package/models/operations/retrieveagentrequest.d.ts.map +1 -1
  126. package/models/operations/retrieveagentrequest.js +307 -173
  127. package/models/operations/retrieveagentrequest.js.map +1 -1
  128. package/models/operations/retrievedatapoint.js +4 -4
  129. package/models/operations/retrievedataset.js +1 -1
  130. package/models/operations/retrievedatasource.js +1 -1
  131. package/models/operations/retrieveidentity.js +1 -1
  132. package/models/operations/retrievetool.js +6 -6
  133. package/models/operations/runagent.d.ts +15 -11
  134. package/models/operations/runagent.d.ts.map +1 -1
  135. package/models/operations/runagent.js +12 -12
  136. package/models/operations/runagent.js.map +1 -1
  137. package/models/operations/streamagent.d.ts +22 -1
  138. package/models/operations/streamagent.d.ts.map +1 -1
  139. package/models/operations/streamagent.js +11 -1
  140. package/models/operations/streamagent.js.map +1 -1
  141. package/models/operations/streamrunagent.d.ts +1 -1
  142. package/models/operations/streamrunagent.js +1 -1
  143. package/models/operations/updateagent.d.ts +370 -157
  144. package/models/operations/updateagent.d.ts.map +1 -1
  145. package/models/operations/updateagent.js +336 -179
  146. package/models/operations/updateagent.js.map +1 -1
  147. package/models/operations/updatedatapoint.js +4 -4
  148. package/models/operations/updatedataset.js +1 -1
  149. package/models/operations/updatedatasource.js +1 -1
  150. package/models/operations/updateeval.js +16 -16
  151. package/models/operations/updateidentity.js +1 -1
  152. package/models/operations/updatetool.js +7 -7
  153. package/package.json +1 -1
  154. package/sdk/agents.d.ts +16 -2
  155. package/sdk/agents.d.ts.map +1 -1
  156. package/sdk/agents.js +22 -2
  157. package/sdk/agents.js.map +1 -1
  158. package/sdk/responses.d.ts +8 -0
  159. package/sdk/responses.d.ts.map +1 -1
  160. package/sdk/responses.js +10 -0
  161. package/sdk/responses.js.map +1 -1
  162. package/src/funcs/agentsList.ts +5 -0
  163. package/src/funcs/agentsPostV2AgentsA2a.ts +178 -0
  164. package/src/funcs/agentsPostV2AgentsKeyCardRefresh.ts +187 -0
  165. package/src/funcs/agentsResponsesGet.ts +182 -0
  166. package/src/funcs/agentsUpdate.ts +2 -2
  167. package/src/lib/config.ts +3 -3
  168. package/src/models/components/extendedmessage.ts +146 -0
  169. package/src/models/components/getagentresponse.ts +348 -0
  170. package/src/models/components/index.ts +2 -0
  171. package/src/models/components/partdoneevent.ts +1 -1
  172. package/src/models/components/reasoningpart.ts +1 -1
  173. package/src/models/errors/index.ts +2 -0
  174. package/src/models/errors/postv2agentsa2a.ts +96 -0
  175. package/src/models/errors/postv2agentskeycardrefresh.ts +97 -0
  176. package/src/models/operations/createagentrequest.ts +714 -360
  177. package/src/models/operations/createagentresponserequest.ts +35 -1
  178. package/src/models/operations/createannotation.ts +5 -1
  179. package/src/models/operations/createcontact.ts +1 -1
  180. package/src/models/operations/createdataset.ts +1 -1
  181. package/src/models/operations/createdatasetitem.ts +4 -4
  182. package/src/models/operations/createdatasource.ts +1 -1
  183. package/src/models/operations/createeval.ts +16 -16
  184. package/src/models/operations/createidentity.ts +1 -1
  185. package/src/models/operations/createknowledge.ts +19 -17
  186. package/src/models/operations/createtool.ts +103 -91
  187. package/src/models/operations/deploymentinvoke.ts +38 -0
  188. package/src/models/operations/deploymentstream.ts +38 -0
  189. package/src/models/operations/fileget.ts +1 -1
  190. package/src/models/operations/filelist.ts +1 -1
  191. package/src/models/operations/fileupload.ts +1 -1
  192. package/src/models/operations/getagentresponse.ts +46 -0
  193. package/src/models/operations/getalltools.ts +93 -87
  194. package/src/models/operations/getevals.ts +16 -16
  195. package/src/models/operations/index.ts +3 -0
  196. package/src/models/operations/invokeagent.ts +45 -1
  197. package/src/models/operations/listagents.ts +723 -366
  198. package/src/models/operations/listdatasetdatapoints.ts +4 -4
  199. package/src/models/operations/listdatasets.ts +1 -1
  200. package/src/models/operations/listdatasources.ts +1 -1
  201. package/src/models/operations/listidentities.ts +1 -1
  202. package/src/models/operations/listknowledgebases.ts +72 -64
  203. package/src/models/operations/postv2agentsa2a.ts +252 -0
  204. package/src/models/operations/postv2agentskeycardrefresh.ts +100 -0
  205. package/src/models/operations/retrieveagentrequest.ts +975 -468
  206. package/src/models/operations/retrievedatapoint.ts +4 -4
  207. package/src/models/operations/retrievedataset.ts +1 -1
  208. package/src/models/operations/retrievedatasource.ts +1 -1
  209. package/src/models/operations/retrieveidentity.ts +1 -1
  210. package/src/models/operations/retrievetool.ts +6 -6
  211. package/src/models/operations/runagent.ts +35 -21
  212. package/src/models/operations/streamagent.ts +40 -1
  213. package/src/models/operations/streamrunagent.ts +2 -2
  214. package/src/models/operations/updateagent.ts +876 -385
  215. package/src/models/operations/updatedatapoint.ts +4 -4
  216. package/src/models/operations/updatedataset.ts +1 -1
  217. package/src/models/operations/updatedatasource.ts +1 -1
  218. package/src/models/operations/updateeval.ts +16 -16
  219. package/src/models/operations/updateidentity.ts +1 -1
  220. package/src/models/operations/updatetool.ts +7 -7
  221. package/src/sdk/agents.ts +39 -1
  222. package/src/sdk/responses.ts +19 -0
@@ -10,6 +10,18 @@ import { Result as SafeParseResult } from "../../types/fp.js";
10
10
  import * as components from "../components/index.js";
11
11
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
12
12
 
13
+ /**
14
+ * Filter agents by type: "internal" for Orquesta-managed agents, "a2a" for external A2A-compliant agents
15
+ */
16
+ export const QueryParamType = {
17
+ Internal: "internal",
18
+ A2a: "a2a",
19
+ } as const;
20
+ /**
21
+ * Filter agents by type: "internal" for Orquesta-managed agents, "a2a" for external A2A-compliant agents
22
+ */
23
+ export type QueryParamType = ClosedEnum<typeof QueryParamType>;
24
+
13
25
  export type ListAgentsRequest = {
14
26
  /**
15
27
  * A limit on the number of objects to be returned. Limit can range between 1 and 200. When not provided, returns all agents without pagination.
@@ -23,6 +35,10 @@ export type ListAgentsRequest = {
23
35
  * A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 20 objects, starting with `01JJ1HDHN79XAS7A01WB3HYSDB`, your subsequent call can include `before=01JJ1HDHN79XAS7A01WB3HYSDB` in order to fetch the previous page of the list.
24
36
  */
25
37
  endingBefore?: string | undefined;
38
+ /**
39
+ * Filter agents by type: "internal" for Orquesta-managed agents, "a2a" for external A2A-compliant agents
40
+ */
41
+ type?: QueryParamType | undefined;
26
42
  };
27
43
 
28
44
  export const ListAgentsObject = {
@@ -33,7 +49,147 @@ export type ListAgentsObject = ClosedEnum<typeof ListAgentsObject>;
33
49
  /**
34
50
  * The status of the agent. `Live` is the latest version of the agent. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
35
51
  */
36
- export const ListAgentsStatus = {
52
+ export const ListAgentsDataStatus = {
53
+ Live: "live",
54
+ Draft: "draft",
55
+ Pending: "pending",
56
+ Published: "published",
57
+ } as const;
58
+ /**
59
+ * The status of the agent. `Live` is the latest version of the agent. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
60
+ */
61
+ export type ListAgentsDataStatus = ClosedEnum<typeof ListAgentsDataStatus>;
62
+
63
+ export type ListAgentsDataTeamOfAgents = {
64
+ /**
65
+ * The unique key of the agent within the workspace
66
+ */
67
+ key: string;
68
+ /**
69
+ * The role of the agent in this context. This is used to give extra information to the leader to help it decide which agent to hand off to.
70
+ */
71
+ role?: string | undefined;
72
+ };
73
+
74
+ export type ListAgentsDataMetrics = {
75
+ totalCost: number;
76
+ };
77
+
78
+ export type ListAgentsDataKnowledgeBases = {
79
+ /**
80
+ * Unique identifier of the knowledge base to search
81
+ */
82
+ knowledgeId: string;
83
+ };
84
+
85
+ export const ListAgentsDataSource = {
86
+ Internal: "internal",
87
+ External: "external",
88
+ Experiment: "experiment",
89
+ } as const;
90
+ export type ListAgentsDataSource = ClosedEnum<typeof ListAgentsDataSource>;
91
+
92
+ export type DataHeaders = {
93
+ /**
94
+ * Header value. **Update behavior**: Provide empty string ("") to preserve existing encrypted value without re-entering credentials. Provide new value to rotate. Omit header entirely to remove.
95
+ */
96
+ value: string;
97
+ encrypted: boolean;
98
+ };
99
+
100
+ /**
101
+ * A2A configuration with agent endpoint and authentication. External agents manage their own model/settings.
102
+ */
103
+ export type DataA2AAgentConfiguration = {
104
+ /**
105
+ * The A2A agent endpoint URL (e.g., https://example.com/agent/a2a)
106
+ */
107
+ agentUrl: string;
108
+ /**
109
+ * Optional explicit URL to fetch agent card. Defaults to {agent_url}/card if not provided
110
+ */
111
+ cardUrl?: string | undefined;
112
+ /**
113
+ * HTTP headers for A2A agent requests with encryption support (max 20 headers). **Update behavior**: Empty string values preserve existing encrypted headers, allowing partial updates without credential re-entry.
114
+ */
115
+ headers?: { [k: string]: DataHeaders } | undefined;
116
+ /**
117
+ * Cached agent card from discovery. Refreshed periodically.
118
+ */
119
+ cachedCard?: any | undefined;
120
+ };
121
+
122
+ export type Data2 = {
123
+ id: string;
124
+ /**
125
+ * Unique identifier for the agent within the workspace
126
+ */
127
+ key: string;
128
+ displayName?: string | undefined;
129
+ createdById?: string | null | undefined;
130
+ updatedById?: string | null | undefined;
131
+ created?: string | undefined;
132
+ updated?: string | undefined;
133
+ /**
134
+ * The status of the agent. `Live` is the latest version of the agent. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
135
+ */
136
+ status: ListAgentsDataStatus;
137
+ versionHash?: string | undefined;
138
+ /**
139
+ * Entity storage path in the format: `project/folder/subfolder/...`
140
+ *
141
+ * @remarks
142
+ *
143
+ * The first element identifies the project, followed by nested folders (auto-created as needed).
144
+ *
145
+ * With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
146
+ */
147
+ path: string;
148
+ /**
149
+ * Array of memory store identifiers. Accepts both memory store IDs and keys.
150
+ */
151
+ memoryStores?: Array<string> | undefined;
152
+ /**
153
+ * The agents that are accessible to this orchestrator. The main agent can hand off to these agents to perform tasks.
154
+ */
155
+ teamOfAgents?: Array<ListAgentsDataTeamOfAgents> | undefined;
156
+ metrics?: ListAgentsDataMetrics | undefined;
157
+ /**
158
+ * Extracted variables from agent instructions
159
+ */
160
+ variables?: { [k: string]: any } | undefined;
161
+ /**
162
+ * Agent knowledge bases reference
163
+ */
164
+ knowledgeBases?: Array<ListAgentsDataKnowledgeBases> | undefined;
165
+ source?: ListAgentsDataSource | undefined;
166
+ /**
167
+ * External A2A-compliant agent
168
+ */
169
+ type: "a2a";
170
+ /**
171
+ * Role fetched from agent card name or user-provided
172
+ */
173
+ role: string;
174
+ /**
175
+ * Description fetched from agent card or user-provided
176
+ */
177
+ description: string;
178
+ systemPrompt?: string | undefined;
179
+ /**
180
+ * Instructions from agent card description or user-provided
181
+ */
182
+ instructions: string;
183
+ /**
184
+ * A2A configuration with agent endpoint and authentication. External agents manage their own model/settings.
185
+ */
186
+ a2a: DataA2AAgentConfiguration;
187
+ };
188
+
189
+ /**
190
+ * The status of the agent. `Live` is the latest version of the agent. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
191
+ */
192
+ export const DataStatus = {
37
193
  Live: "live",
38
194
  Draft: "draft",
39
195
  Pending: "pending",
@@ -42,12 +198,41 @@ export const ListAgentsStatus = {
42
198
  /**
43
199
  * The status of the agent. `Live` is the latest version of the agent. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
44
200
  */
45
- export type ListAgentsStatus = ClosedEnum<typeof ListAgentsStatus>;
201
+ export type DataStatus = ClosedEnum<typeof DataStatus>;
202
+
203
+ export type DataTeamOfAgents = {
204
+ /**
205
+ * The unique key of the agent within the workspace
206
+ */
207
+ key: string;
208
+ /**
209
+ * The role of the agent in this context. This is used to give extra information to the leader to help it decide which agent to hand off to.
210
+ */
211
+ role?: string | undefined;
212
+ };
213
+
214
+ export type DataMetrics = {
215
+ totalCost: number;
216
+ };
217
+
218
+ export type DataKnowledgeBases = {
219
+ /**
220
+ * Unique identifier of the knowledge base to search
221
+ */
222
+ knowledgeId: string;
223
+ };
224
+
225
+ export const DataSource = {
226
+ Internal: "internal",
227
+ External: "external",
228
+ Experiment: "experiment",
229
+ } as const;
230
+ export type DataSource = ClosedEnum<typeof DataSource>;
46
231
 
47
232
  /**
48
233
  * If all, the agent will require approval for all tools. If respect_tool, the agent will require approval for tools that have the requires_approval flag set to true. If none, the agent will not require approval for any tools.
49
234
  */
50
- export const ListAgentsToolApprovalRequired = {
235
+ export const DataToolApprovalRequired = {
51
236
  All: "all",
52
237
  RespectTool: "respect_tool",
53
238
  None: "none",
@@ -55,11 +240,11 @@ export const ListAgentsToolApprovalRequired = {
55
240
  /**
56
241
  * If all, the agent will require approval for all tools. If respect_tool, the agent will require approval for tools that have the requires_approval flag set to true. If none, the agent will not require approval for any tools.
57
242
  */
58
- export type ListAgentsToolApprovalRequired = ClosedEnum<
59
- typeof ListAgentsToolApprovalRequired
243
+ export type DataToolApprovalRequired = ClosedEnum<
244
+ typeof DataToolApprovalRequired
60
245
  >;
61
246
 
62
- export type ListAgentsConditions = {
247
+ export type DataConditions = {
63
248
  /**
64
249
  * The argument of the tool call to evaluate
65
250
  */
@@ -74,7 +259,7 @@ export type ListAgentsConditions = {
74
259
  value: string;
75
260
  };
76
261
 
77
- export type ListAgentsTools = {
262
+ export type DataTools = {
78
263
  /**
79
264
  * The id of the resource
80
265
  */
@@ -94,7 +279,7 @@ export type ListAgentsTools = {
94
279
  * Nested tool ID for MCP tools (identifies specific tool within MCP server)
95
280
  */
96
281
  toolId?: string | undefined;
97
- conditions?: Array<ListAgentsConditions> | undefined;
282
+ conditions?: Array<DataConditions> | undefined;
98
283
  /**
99
284
  * Tool execution timeout in seconds (default: 2 minutes, max: 10 minutes)
100
285
  */
@@ -104,16 +289,16 @@ export type ListAgentsTools = {
104
289
  /**
105
290
  * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
106
291
  */
107
- export const ListAgentsExecuteOn = {
292
+ export const DataExecuteOn = {
108
293
  Input: "input",
109
294
  Output: "output",
110
295
  } as const;
111
296
  /**
112
297
  * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
113
298
  */
114
- export type ListAgentsExecuteOn = ClosedEnum<typeof ListAgentsExecuteOn>;
299
+ export type DataExecuteOn = ClosedEnum<typeof DataExecuteOn>;
115
300
 
116
- export type ListAgentsEvaluators = {
301
+ export type DataEvaluators = {
117
302
  /**
118
303
  * Unique key or identifier of the evaluator
119
304
  */
@@ -125,24 +310,24 @@ export type ListAgentsEvaluators = {
125
310
  /**
126
311
  * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
127
312
  */
128
- executeOn: ListAgentsExecuteOn;
313
+ executeOn: DataExecuteOn;
129
314
  };
130
315
 
131
316
  /**
132
317
  * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
133
318
  */
134
- export const ListAgentsAgentsExecuteOn = {
319
+ export const ListAgentsDataExecuteOn = {
135
320
  Input: "input",
136
321
  Output: "output",
137
322
  } as const;
138
323
  /**
139
324
  * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
140
325
  */
141
- export type ListAgentsAgentsExecuteOn = ClosedEnum<
142
- typeof ListAgentsAgentsExecuteOn
326
+ export type ListAgentsDataExecuteOn = ClosedEnum<
327
+ typeof ListAgentsDataExecuteOn
143
328
  >;
144
329
 
145
- export type ListAgentsGuardrails = {
330
+ export type DataGuardrails = {
146
331
  /**
147
332
  * Unique key or identifier of the evaluator
148
333
  */
@@ -154,10 +339,10 @@ export type ListAgentsGuardrails = {
154
339
  /**
155
340
  * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
156
341
  */
157
- executeOn: ListAgentsAgentsExecuteOn;
342
+ executeOn: ListAgentsDataExecuteOn;
158
343
  };
159
344
 
160
- export type ListAgentsSettings = {
345
+ export type DataSettings = {
161
346
  /**
162
347
  * Maximum iterations(llm calls) before the agent will stop executing.
163
348
  */
@@ -173,16 +358,16 @@ export type ListAgentsSettings = {
173
358
  /**
174
359
  * If all, the agent will require approval for all tools. If respect_tool, the agent will require approval for tools that have the requires_approval flag set to true. If none, the agent will not require approval for any tools.
175
360
  */
176
- toolApprovalRequired: ListAgentsToolApprovalRequired;
177
- tools?: Array<ListAgentsTools> | undefined;
361
+ toolApprovalRequired: DataToolApprovalRequired;
362
+ tools?: Array<DataTools> | undefined;
178
363
  /**
179
364
  * Configuration for an evaluator applied to the agent
180
365
  */
181
- evaluators?: Array<ListAgentsEvaluators> | undefined;
366
+ evaluators?: Array<DataEvaluators> | undefined;
182
367
  /**
183
368
  * Configuration for a guardrail applied to the agent
184
369
  */
185
- guardrails?: Array<ListAgentsGuardrails> | undefined;
370
+ guardrails?: Array<DataGuardrails> | undefined;
186
371
  };
187
372
 
188
373
  export type ListAgentsResponseFormatJsonSchema = {
@@ -235,7 +420,7 @@ export type ListAgentsResponseFormatText = {
235
420
  /**
236
421
  * An object specifying the format that the model must output
237
422
  */
238
- export type ListAgentsResponseFormat =
423
+ export type DataResponseFormat =
239
424
  | ListAgentsResponseFormatText
240
425
  | ListAgentsResponseFormatJSONObject
241
426
  | ListAgentsResponseFormatAgentsJSONSchema;
@@ -252,7 +437,7 @@ export type ListAgentsResponseFormat =
252
437
  *
253
438
  * Any of "none", "minimal", "low", "medium", "high", "xhigh".
254
439
  */
255
- export const ListAgentsReasoningEffort = {
440
+ export const DataReasoningEffort = {
256
441
  None: "none",
257
442
  Minimal: "minimal",
258
443
  Low: "low",
@@ -272,16 +457,14 @@ export const ListAgentsReasoningEffort = {
272
457
  *
273
458
  * Any of "none", "minimal", "low", "medium", "high", "xhigh".
274
459
  */
275
- export type ListAgentsReasoningEffort = ClosedEnum<
276
- typeof ListAgentsReasoningEffort
277
- >;
460
+ export type DataReasoningEffort = ClosedEnum<typeof DataReasoningEffort>;
278
461
 
279
462
  /**
280
463
  * Up to 4 sequences where the API will stop generating further tokens.
281
464
  */
282
- export type ListAgentsStop = string | Array<string>;
465
+ export type DataStop = string | Array<string>;
283
466
 
284
- export type ListAgentsThinking =
467
+ export type DataThinking =
285
468
  | components.ThinkingConfigDisabledSchema
286
469
  | components.ThinkingConfigEnabledSchema;
287
470
 
@@ -323,15 +506,13 @@ export type ListAgentsToolChoice1 = ClosedEnum<typeof ListAgentsToolChoice1>;
323
506
  /**
324
507
  * Controls which (if any) tool is called by the model.
325
508
  */
326
- export type ListAgentsToolChoice =
327
- | ListAgentsToolChoice2
328
- | ListAgentsToolChoice1;
509
+ export type DataToolChoice = ListAgentsToolChoice2 | ListAgentsToolChoice1;
329
510
 
330
- export const ListAgentsModalities = {
511
+ export const DataModalities = {
331
512
  Text: "text",
332
513
  Audio: "audio",
333
514
  } as const;
334
- export type ListAgentsModalities = ClosedEnum<typeof ListAgentsModalities>;
515
+ export type DataModalities = ClosedEnum<typeof DataModalities>;
335
516
 
336
517
  /**
337
518
  * The key of the guardrail.
@@ -346,51 +527,53 @@ export const ListAgentsId1 = {
346
527
  */
347
528
  export type ListAgentsId1 = ClosedEnum<typeof ListAgentsId1>;
348
529
 
349
- export type ListAgentsId = ListAgentsId1 | string;
530
+ export type DataId = ListAgentsId1 | string;
350
531
 
351
532
  /**
352
533
  * Determines whether the guardrail runs on the input (user message) or output (model response).
353
534
  */
354
- export const ListAgentsAgentsResponseExecuteOn = {
535
+ export const ListAgentsDataAgentsExecuteOn = {
355
536
  Input: "input",
356
537
  Output: "output",
357
538
  } as const;
358
539
  /**
359
540
  * Determines whether the guardrail runs on the input (user message) or output (model response).
360
541
  */
361
- export type ListAgentsAgentsResponseExecuteOn = ClosedEnum<
362
- typeof ListAgentsAgentsResponseExecuteOn
542
+ export type ListAgentsDataAgentsExecuteOn = ClosedEnum<
543
+ typeof ListAgentsDataAgentsExecuteOn
363
544
  >;
364
545
 
365
- export type ListAgentsAgentsGuardrails = {
546
+ export type ListAgentsDataGuardrails = {
366
547
  id: ListAgentsId1 | string;
367
548
  /**
368
549
  * Determines whether the guardrail runs on the input (user message) or output (model response).
369
550
  */
370
- executeOn: ListAgentsAgentsResponseExecuteOn;
551
+ executeOn: ListAgentsDataAgentsExecuteOn;
371
552
  };
372
553
 
373
- export type ListAgentsFallbacks = {
554
+ export type DataFallbacks = {
374
555
  /**
375
556
  * Fallback model identifier
376
557
  */
377
558
  model: string;
378
559
  };
379
560
 
380
- export const ListAgentsType = {
561
+ export const ListAgentsDataAgentsResponseType = {
381
562
  ExactMatch: "exact_match",
382
563
  } as const;
383
- export type ListAgentsType = ClosedEnum<typeof ListAgentsType>;
564
+ export type ListAgentsDataAgentsResponseType = ClosedEnum<
565
+ typeof ListAgentsDataAgentsResponseType
566
+ >;
384
567
 
385
568
  /**
386
569
  * Cache configuration for the request.
387
570
  */
388
- export type ListAgentsCache = {
571
+ export type DataCache = {
389
572
  /**
390
573
  * Time to live for cached responses in seconds. Maximum 259200 seconds (3 days).
391
574
  */
392
575
  ttl: number;
393
- type: ListAgentsType;
576
+ type: ListAgentsDataAgentsResponseType;
394
577
  };
395
578
 
396
579
  export const ListAgentsLoadBalancerType = {
@@ -419,12 +602,12 @@ export type ListAgentsLoadBalancer1 = {
419
602
  /**
420
603
  * Load balancer configuration for the request.
421
604
  */
422
- export type ListAgentsLoadBalancer = ListAgentsLoadBalancer1;
605
+ export type DataLoadBalancer = ListAgentsLoadBalancer1;
423
606
 
424
607
  /**
425
608
  * Timeout configuration to apply to the request. If the request exceeds the timeout, it will be retried or fallback to the next model if configured.
426
609
  */
427
- export type ListAgentsTimeout = {
610
+ export type DataTimeout = {
428
611
  /**
429
612
  * Timeout value in milliseconds
430
613
  */
@@ -434,7 +617,7 @@ export type ListAgentsTimeout = {
434
617
  /**
435
618
  * Model behavior parameters (snake_case) stored as part of the agent configuration. These become the default parameters used when the agent is executed. Commonly used: temperature (0-1, controls randomness), max_completion_tokens (response length), top_p (nucleus sampling). Advanced: frequency_penalty, presence_penalty, response_format (JSON/structured output), reasoning_effort (for o1/thinking models), seed (reproducibility), stop sequences. Model-specific support varies. Runtime parameters in agent execution requests can override these defaults.
436
619
  */
437
- export type ListAgentsParameters = {
620
+ export type DataParameters = {
438
621
  /**
439
622
  * The name to display on the trace. If not specified, the default system name will be used.
440
623
  */
@@ -479,7 +662,7 @@ export type ListAgentsParameters = {
479
662
  *
480
663
  * Any of "none", "minimal", "low", "medium", "high", "xhigh".
481
664
  */
482
- reasoningEffort?: ListAgentsReasoningEffort | undefined;
665
+ reasoningEffort?: DataReasoningEffort | undefined;
483
666
  /**
484
667
  * Adjusts response verbosity. Lower levels yield shorter answers.
485
668
  */
@@ -519,19 +702,19 @@ export type ListAgentsParameters = {
519
702
  /**
520
703
  * Output types that you would like the model to generate. Most models are capable of generating text, which is the default: ["text"]. The gpt-4o-audio-preview model can also be used to generate audio. To request that this model generate both text and audio responses, you can use: ["text", "audio"].
521
704
  */
522
- modalities?: Array<ListAgentsModalities> | null | undefined;
705
+ modalities?: Array<DataModalities> | null | undefined;
523
706
  /**
524
707
  * A list of guardrails to apply to the request.
525
708
  */
526
- guardrails?: Array<ListAgentsAgentsGuardrails> | undefined;
709
+ guardrails?: Array<ListAgentsDataGuardrails> | undefined;
527
710
  /**
528
711
  * Array of fallback models to use if primary model fails
529
712
  */
530
- fallbacks?: Array<ListAgentsFallbacks> | undefined;
713
+ fallbacks?: Array<DataFallbacks> | undefined;
531
714
  /**
532
715
  * Cache configuration for the request.
533
716
  */
534
- cache?: ListAgentsCache | undefined;
717
+ cache?: DataCache | undefined;
535
718
  /**
536
719
  * Load balancer configuration for the request.
537
720
  */
@@ -539,13 +722,13 @@ export type ListAgentsParameters = {
539
722
  /**
540
723
  * Timeout configuration to apply to the request. If the request exceeds the timeout, it will be retried or fallback to the next model if configured.
541
724
  */
542
- timeout?: ListAgentsTimeout | undefined;
725
+ timeout?: DataTimeout | undefined;
543
726
  };
544
727
 
545
728
  /**
546
729
  * Retry configuration for model requests. Allows customizing retry count (1-5) and HTTP status codes that trigger retries. Default codes: [429]. Common codes: 500 (internal error), 429 (rate limit), 502/503/504 (gateway errors).
547
730
  */
548
- export type ListAgentsRetry = {
731
+ export type DataRetry = {
549
732
  /**
550
733
  * Number of retry attempts (1-5)
551
734
  */
@@ -967,11 +1150,11 @@ export type ListAgentsFallbackModelConfiguration2 = {
967
1150
  /**
968
1151
  * Fallback model for automatic failover when primary model request fails. Supports optional parameter overrides. Can be a simple model ID string or a configuration object with model-specific parameters. Fallbacks are tried in order.
969
1152
  */
970
- export type ListAgentsFallbackModelConfiguration =
1153
+ export type DataFallbackModelConfiguration =
971
1154
  | ListAgentsFallbackModelConfiguration2
972
1155
  | string;
973
1156
 
974
- export type ListAgentsModel = {
1157
+ export type DataModel = {
975
1158
  /**
976
1159
  * The database ID of the primary model
977
1160
  */
@@ -983,11 +1166,11 @@ export type ListAgentsModel = {
983
1166
  /**
984
1167
  * Model behavior parameters (snake_case) stored as part of the agent configuration. These become the default parameters used when the agent is executed. Commonly used: temperature (0-1, controls randomness), max_completion_tokens (response length), top_p (nucleus sampling). Advanced: frequency_penalty, presence_penalty, response_format (JSON/structured output), reasoning_effort (for o1/thinking models), seed (reproducibility), stop sequences. Model-specific support varies. Runtime parameters in agent execution requests can override these defaults.
985
1168
  */
986
- parameters?: ListAgentsParameters | undefined;
1169
+ parameters?: DataParameters | undefined;
987
1170
  /**
988
1171
  * Retry configuration for model requests. Allows customizing retry count (1-5) and HTTP status codes that trigger retries. Default codes: [429]. Common codes: 500 (internal error), 429 (rate limit), 502/503/504 (gateway errors).
989
1172
  */
990
- retry?: ListAgentsRetry | undefined;
1173
+ retry?: DataRetry | undefined;
991
1174
  /**
992
1175
  * Optional array of fallback models (string IDs or config objects) that will be used automatically in order if the primary model fails
993
1176
  */
@@ -997,36 +1180,7 @@ export type ListAgentsModel = {
997
1180
  | undefined;
998
1181
  };
999
1182
 
1000
- export type ListAgentsTeamOfAgents = {
1001
- /**
1002
- * The unique key of the agent within the workspace
1003
- */
1004
- key: string;
1005
- /**
1006
- * The role of the agent in this context. This is used to give extra information to the leader to help it decide which agent to hand off to.
1007
- */
1008
- role?: string | undefined;
1009
- };
1010
-
1011
- export type ListAgentsMetrics = {
1012
- totalCost: number;
1013
- };
1014
-
1015
- export type ListAgentsKnowledgeBases = {
1016
- /**
1017
- * Unique identifier of the knowledge base to search
1018
- */
1019
- knowledgeId: string;
1020
- };
1021
-
1022
- export const ListAgentsSource = {
1023
- Internal: "internal",
1024
- External: "external",
1025
- Experiment: "experiment",
1026
- } as const;
1027
- export type ListAgentsSource = ClosedEnum<typeof ListAgentsSource>;
1028
-
1029
- export type ListAgentsData = {
1183
+ export type Data1 = {
1030
1184
  id: string;
1031
1185
  /**
1032
1186
  * Unique identifier for the agent within the workspace
@@ -1037,16 +1191,10 @@ export type ListAgentsData = {
1037
1191
  updatedById?: string | null | undefined;
1038
1192
  created?: string | undefined;
1039
1193
  updated?: string | undefined;
1040
- role: string;
1041
- description: string;
1042
- systemPrompt?: string | undefined;
1043
- instructions: string;
1044
1194
  /**
1045
1195
  * The status of the agent. `Live` is the latest version of the agent. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
1046
1196
  */
1047
- status: ListAgentsStatus;
1048
- settings?: ListAgentsSettings | undefined;
1049
- model: ListAgentsModel;
1197
+ status: DataStatus;
1050
1198
  versionHash?: string | undefined;
1051
1199
  /**
1052
1200
  * Entity storage path in the format: `project/folder/subfolder/...`
@@ -1061,12 +1209,12 @@ export type ListAgentsData = {
1061
1209
  /**
1062
1210
  * Array of memory store identifiers. Accepts both memory store IDs and keys.
1063
1211
  */
1064
- memoryStores: Array<string>;
1212
+ memoryStores?: Array<string> | undefined;
1065
1213
  /**
1066
1214
  * The agents that are accessible to this orchestrator. The main agent can hand off to these agents to perform tasks.
1067
1215
  */
1068
- teamOfAgents: Array<ListAgentsTeamOfAgents>;
1069
- metrics?: ListAgentsMetrics | undefined;
1216
+ teamOfAgents?: Array<DataTeamOfAgents> | undefined;
1217
+ metrics?: DataMetrics | undefined;
1070
1218
  /**
1071
1219
  * Extracted variables from agent instructions
1072
1220
  */
@@ -1074,24 +1222,42 @@ export type ListAgentsData = {
1074
1222
  /**
1075
1223
  * Agent knowledge bases reference
1076
1224
  */
1077
- knowledgeBases?: Array<ListAgentsKnowledgeBases> | undefined;
1078
- source?: ListAgentsSource | undefined;
1225
+ knowledgeBases?: Array<DataKnowledgeBases> | undefined;
1226
+ source?: DataSource | undefined;
1227
+ /**
1228
+ * Orquesta-managed agent
1229
+ */
1230
+ type: "internal";
1231
+ role: string;
1232
+ description: string;
1233
+ systemPrompt?: string | undefined;
1234
+ instructions: string;
1235
+ settings?: DataSettings | undefined;
1236
+ model: DataModel;
1079
1237
  };
1080
1238
 
1239
+ export type ListAgentsData = Data1 | Data2;
1240
+
1081
1241
  /**
1082
1242
  * Successfully retrieved the list of agents. Returns a paginated response containing agent manifests with complete configurations, including primary and fallback models, tools, knowledge bases, and execution settings.
1083
1243
  */
1084
1244
  export type ListAgentsResponseBody = {
1085
1245
  object: ListAgentsObject;
1086
- data: Array<ListAgentsData>;
1246
+ data: Array<Data1 | Data2>;
1087
1247
  hasMore: boolean;
1088
1248
  };
1089
1249
 
1250
+ /** @internal */
1251
+ export const QueryParamType$outboundSchema: z.ZodNativeEnum<
1252
+ typeof QueryParamType
1253
+ > = z.nativeEnum(QueryParamType);
1254
+
1090
1255
  /** @internal */
1091
1256
  export type ListAgentsRequest$Outbound = {
1092
1257
  limit?: number | undefined;
1093
1258
  starting_after?: string | undefined;
1094
1259
  ending_before?: string | undefined;
1260
+ type?: string | undefined;
1095
1261
  };
1096
1262
 
1097
1263
  /** @internal */
@@ -1103,6 +1269,7 @@ export const ListAgentsRequest$outboundSchema: z.ZodType<
1103
1269
  limit: z.number().optional(),
1104
1270
  startingAfter: z.string().optional(),
1105
1271
  endingBefore: z.string().optional(),
1272
+ type: QueryParamType$outboundSchema.optional(),
1106
1273
  }).transform((v) => {
1107
1274
  return remap$(v, {
1108
1275
  startingAfter: "starting_after",
@@ -1124,18 +1291,264 @@ export const ListAgentsObject$inboundSchema: z.ZodNativeEnum<
1124
1291
  > = z.nativeEnum(ListAgentsObject);
1125
1292
 
1126
1293
  /** @internal */
1127
- export const ListAgentsStatus$inboundSchema: z.ZodNativeEnum<
1128
- typeof ListAgentsStatus
1129
- > = z.nativeEnum(ListAgentsStatus);
1294
+ export const ListAgentsDataStatus$inboundSchema: z.ZodNativeEnum<
1295
+ typeof ListAgentsDataStatus
1296
+ > = z.nativeEnum(ListAgentsDataStatus);
1297
+
1298
+ /** @internal */
1299
+ export const ListAgentsDataTeamOfAgents$inboundSchema: z.ZodType<
1300
+ ListAgentsDataTeamOfAgents,
1301
+ z.ZodTypeDef,
1302
+ unknown
1303
+ > = z.object({
1304
+ key: z.string(),
1305
+ role: z.string().optional(),
1306
+ });
1307
+
1308
+ export function listAgentsDataTeamOfAgentsFromJSON(
1309
+ jsonString: string,
1310
+ ): SafeParseResult<ListAgentsDataTeamOfAgents, SDKValidationError> {
1311
+ return safeParse(
1312
+ jsonString,
1313
+ (x) => ListAgentsDataTeamOfAgents$inboundSchema.parse(JSON.parse(x)),
1314
+ `Failed to parse 'ListAgentsDataTeamOfAgents' from JSON`,
1315
+ );
1316
+ }
1317
+
1318
+ /** @internal */
1319
+ export const ListAgentsDataMetrics$inboundSchema: z.ZodType<
1320
+ ListAgentsDataMetrics,
1321
+ z.ZodTypeDef,
1322
+ unknown
1323
+ > = z.object({
1324
+ total_cost: z.number().default(0),
1325
+ }).transform((v) => {
1326
+ return remap$(v, {
1327
+ "total_cost": "totalCost",
1328
+ });
1329
+ });
1330
+
1331
+ export function listAgentsDataMetricsFromJSON(
1332
+ jsonString: string,
1333
+ ): SafeParseResult<ListAgentsDataMetrics, SDKValidationError> {
1334
+ return safeParse(
1335
+ jsonString,
1336
+ (x) => ListAgentsDataMetrics$inboundSchema.parse(JSON.parse(x)),
1337
+ `Failed to parse 'ListAgentsDataMetrics' from JSON`,
1338
+ );
1339
+ }
1340
+
1341
+ /** @internal */
1342
+ export const ListAgentsDataKnowledgeBases$inboundSchema: z.ZodType<
1343
+ ListAgentsDataKnowledgeBases,
1344
+ z.ZodTypeDef,
1345
+ unknown
1346
+ > = z.object({
1347
+ knowledge_id: z.string(),
1348
+ }).transform((v) => {
1349
+ return remap$(v, {
1350
+ "knowledge_id": "knowledgeId",
1351
+ });
1352
+ });
1353
+
1354
+ export function listAgentsDataKnowledgeBasesFromJSON(
1355
+ jsonString: string,
1356
+ ): SafeParseResult<ListAgentsDataKnowledgeBases, SDKValidationError> {
1357
+ return safeParse(
1358
+ jsonString,
1359
+ (x) => ListAgentsDataKnowledgeBases$inboundSchema.parse(JSON.parse(x)),
1360
+ `Failed to parse 'ListAgentsDataKnowledgeBases' from JSON`,
1361
+ );
1362
+ }
1363
+
1364
+ /** @internal */
1365
+ export const ListAgentsDataSource$inboundSchema: z.ZodNativeEnum<
1366
+ typeof ListAgentsDataSource
1367
+ > = z.nativeEnum(ListAgentsDataSource);
1368
+
1369
+ /** @internal */
1370
+ export const DataHeaders$inboundSchema: z.ZodType<
1371
+ DataHeaders,
1372
+ z.ZodTypeDef,
1373
+ unknown
1374
+ > = z.object({
1375
+ value: z.string(),
1376
+ encrypted: z.boolean().default(false),
1377
+ });
1378
+
1379
+ export function dataHeadersFromJSON(
1380
+ jsonString: string,
1381
+ ): SafeParseResult<DataHeaders, SDKValidationError> {
1382
+ return safeParse(
1383
+ jsonString,
1384
+ (x) => DataHeaders$inboundSchema.parse(JSON.parse(x)),
1385
+ `Failed to parse 'DataHeaders' from JSON`,
1386
+ );
1387
+ }
1388
+
1389
+ /** @internal */
1390
+ export const DataA2AAgentConfiguration$inboundSchema: z.ZodType<
1391
+ DataA2AAgentConfiguration,
1392
+ z.ZodTypeDef,
1393
+ unknown
1394
+ > = z.object({
1395
+ agent_url: z.string(),
1396
+ card_url: z.string().optional(),
1397
+ headers: z.record(z.lazy(() => DataHeaders$inboundSchema)).optional(),
1398
+ cached_card: z.any().optional(),
1399
+ }).transform((v) => {
1400
+ return remap$(v, {
1401
+ "agent_url": "agentUrl",
1402
+ "card_url": "cardUrl",
1403
+ "cached_card": "cachedCard",
1404
+ });
1405
+ });
1406
+
1407
+ export function dataA2AAgentConfigurationFromJSON(
1408
+ jsonString: string,
1409
+ ): SafeParseResult<DataA2AAgentConfiguration, SDKValidationError> {
1410
+ return safeParse(
1411
+ jsonString,
1412
+ (x) => DataA2AAgentConfiguration$inboundSchema.parse(JSON.parse(x)),
1413
+ `Failed to parse 'DataA2AAgentConfiguration' from JSON`,
1414
+ );
1415
+ }
1416
+
1417
+ /** @internal */
1418
+ export const Data2$inboundSchema: z.ZodType<Data2, z.ZodTypeDef, unknown> = z
1419
+ .object({
1420
+ _id: z.string(),
1421
+ key: z.string(),
1422
+ display_name: z.string().optional(),
1423
+ created_by_id: z.nullable(z.string()).optional(),
1424
+ updated_by_id: z.nullable(z.string()).optional(),
1425
+ created: z.string().optional(),
1426
+ updated: z.string().optional(),
1427
+ status: ListAgentsDataStatus$inboundSchema,
1428
+ version_hash: z.string().optional(),
1429
+ path: z.string(),
1430
+ memory_stores: z.array(z.string()).optional(),
1431
+ team_of_agents: z.array(
1432
+ z.lazy(() => ListAgentsDataTeamOfAgents$inboundSchema),
1433
+ ).optional(),
1434
+ metrics: z.lazy(() => ListAgentsDataMetrics$inboundSchema).optional(),
1435
+ variables: z.record(z.any()).optional(),
1436
+ knowledge_bases: z.array(
1437
+ z.lazy(() => ListAgentsDataKnowledgeBases$inboundSchema),
1438
+ ).optional(),
1439
+ source: ListAgentsDataSource$inboundSchema.optional(),
1440
+ type: z.literal("a2a"),
1441
+ role: z.string(),
1442
+ description: z.string(),
1443
+ system_prompt: z.string().optional(),
1444
+ instructions: z.string(),
1445
+ a2a: z.lazy(() => DataA2AAgentConfiguration$inboundSchema),
1446
+ }).transform((v) => {
1447
+ return remap$(v, {
1448
+ "_id": "id",
1449
+ "display_name": "displayName",
1450
+ "created_by_id": "createdById",
1451
+ "updated_by_id": "updatedById",
1452
+ "version_hash": "versionHash",
1453
+ "memory_stores": "memoryStores",
1454
+ "team_of_agents": "teamOfAgents",
1455
+ "knowledge_bases": "knowledgeBases",
1456
+ "system_prompt": "systemPrompt",
1457
+ });
1458
+ });
1459
+
1460
+ export function data2FromJSON(
1461
+ jsonString: string,
1462
+ ): SafeParseResult<Data2, SDKValidationError> {
1463
+ return safeParse(
1464
+ jsonString,
1465
+ (x) => Data2$inboundSchema.parse(JSON.parse(x)),
1466
+ `Failed to parse 'Data2' from JSON`,
1467
+ );
1468
+ }
1469
+
1470
+ /** @internal */
1471
+ export const DataStatus$inboundSchema: z.ZodNativeEnum<typeof DataStatus> = z
1472
+ .nativeEnum(DataStatus);
1473
+
1474
+ /** @internal */
1475
+ export const DataTeamOfAgents$inboundSchema: z.ZodType<
1476
+ DataTeamOfAgents,
1477
+ z.ZodTypeDef,
1478
+ unknown
1479
+ > = z.object({
1480
+ key: z.string(),
1481
+ role: z.string().optional(),
1482
+ });
1483
+
1484
+ export function dataTeamOfAgentsFromJSON(
1485
+ jsonString: string,
1486
+ ): SafeParseResult<DataTeamOfAgents, SDKValidationError> {
1487
+ return safeParse(
1488
+ jsonString,
1489
+ (x) => DataTeamOfAgents$inboundSchema.parse(JSON.parse(x)),
1490
+ `Failed to parse 'DataTeamOfAgents' from JSON`,
1491
+ );
1492
+ }
1493
+
1494
+ /** @internal */
1495
+ export const DataMetrics$inboundSchema: z.ZodType<
1496
+ DataMetrics,
1497
+ z.ZodTypeDef,
1498
+ unknown
1499
+ > = z.object({
1500
+ total_cost: z.number().default(0),
1501
+ }).transform((v) => {
1502
+ return remap$(v, {
1503
+ "total_cost": "totalCost",
1504
+ });
1505
+ });
1506
+
1507
+ export function dataMetricsFromJSON(
1508
+ jsonString: string,
1509
+ ): SafeParseResult<DataMetrics, SDKValidationError> {
1510
+ return safeParse(
1511
+ jsonString,
1512
+ (x) => DataMetrics$inboundSchema.parse(JSON.parse(x)),
1513
+ `Failed to parse 'DataMetrics' from JSON`,
1514
+ );
1515
+ }
1130
1516
 
1131
1517
  /** @internal */
1132
- export const ListAgentsToolApprovalRequired$inboundSchema: z.ZodNativeEnum<
1133
- typeof ListAgentsToolApprovalRequired
1134
- > = z.nativeEnum(ListAgentsToolApprovalRequired);
1518
+ export const DataKnowledgeBases$inboundSchema: z.ZodType<
1519
+ DataKnowledgeBases,
1520
+ z.ZodTypeDef,
1521
+ unknown
1522
+ > = z.object({
1523
+ knowledge_id: z.string(),
1524
+ }).transform((v) => {
1525
+ return remap$(v, {
1526
+ "knowledge_id": "knowledgeId",
1527
+ });
1528
+ });
1529
+
1530
+ export function dataKnowledgeBasesFromJSON(
1531
+ jsonString: string,
1532
+ ): SafeParseResult<DataKnowledgeBases, SDKValidationError> {
1533
+ return safeParse(
1534
+ jsonString,
1535
+ (x) => DataKnowledgeBases$inboundSchema.parse(JSON.parse(x)),
1536
+ `Failed to parse 'DataKnowledgeBases' from JSON`,
1537
+ );
1538
+ }
1539
+
1540
+ /** @internal */
1541
+ export const DataSource$inboundSchema: z.ZodNativeEnum<typeof DataSource> = z
1542
+ .nativeEnum(DataSource);
1543
+
1544
+ /** @internal */
1545
+ export const DataToolApprovalRequired$inboundSchema: z.ZodNativeEnum<
1546
+ typeof DataToolApprovalRequired
1547
+ > = z.nativeEnum(DataToolApprovalRequired);
1135
1548
 
1136
1549
  /** @internal */
1137
- export const ListAgentsConditions$inboundSchema: z.ZodType<
1138
- ListAgentsConditions,
1550
+ export const DataConditions$inboundSchema: z.ZodType<
1551
+ DataConditions,
1139
1552
  z.ZodTypeDef,
1140
1553
  unknown
1141
1554
  > = z.object({
@@ -1144,19 +1557,19 @@ export const ListAgentsConditions$inboundSchema: z.ZodType<
1144
1557
  value: z.string(),
1145
1558
  });
1146
1559
 
1147
- export function listAgentsConditionsFromJSON(
1560
+ export function dataConditionsFromJSON(
1148
1561
  jsonString: string,
1149
- ): SafeParseResult<ListAgentsConditions, SDKValidationError> {
1562
+ ): SafeParseResult<DataConditions, SDKValidationError> {
1150
1563
  return safeParse(
1151
1564
  jsonString,
1152
- (x) => ListAgentsConditions$inboundSchema.parse(JSON.parse(x)),
1153
- `Failed to parse 'ListAgentsConditions' from JSON`,
1565
+ (x) => DataConditions$inboundSchema.parse(JSON.parse(x)),
1566
+ `Failed to parse 'DataConditions' from JSON`,
1154
1567
  );
1155
1568
  }
1156
1569
 
1157
1570
  /** @internal */
1158
- export const ListAgentsTools$inboundSchema: z.ZodType<
1159
- ListAgentsTools,
1571
+ export const DataTools$inboundSchema: z.ZodType<
1572
+ DataTools,
1160
1573
  z.ZodTypeDef,
1161
1574
  unknown
1162
1575
  > = z.object({
@@ -1167,8 +1580,7 @@ export const ListAgentsTools$inboundSchema: z.ZodType<
1167
1580
  description: z.string().optional(),
1168
1581
  requires_approval: z.boolean().default(false),
1169
1582
  tool_id: z.string().optional(),
1170
- conditions: z.array(z.lazy(() => ListAgentsConditions$inboundSchema))
1171
- .optional(),
1583
+ conditions: z.array(z.lazy(() => DataConditions$inboundSchema)).optional(),
1172
1584
  timeout: z.number().default(120),
1173
1585
  }).transform((v) => {
1174
1586
  return remap$(v, {
@@ -1179,30 +1591,30 @@ export const ListAgentsTools$inboundSchema: z.ZodType<
1179
1591
  });
1180
1592
  });
1181
1593
 
1182
- export function listAgentsToolsFromJSON(
1594
+ export function dataToolsFromJSON(
1183
1595
  jsonString: string,
1184
- ): SafeParseResult<ListAgentsTools, SDKValidationError> {
1596
+ ): SafeParseResult<DataTools, SDKValidationError> {
1185
1597
  return safeParse(
1186
1598
  jsonString,
1187
- (x) => ListAgentsTools$inboundSchema.parse(JSON.parse(x)),
1188
- `Failed to parse 'ListAgentsTools' from JSON`,
1599
+ (x) => DataTools$inboundSchema.parse(JSON.parse(x)),
1600
+ `Failed to parse 'DataTools' from JSON`,
1189
1601
  );
1190
1602
  }
1191
1603
 
1192
1604
  /** @internal */
1193
- export const ListAgentsExecuteOn$inboundSchema: z.ZodNativeEnum<
1194
- typeof ListAgentsExecuteOn
1195
- > = z.nativeEnum(ListAgentsExecuteOn);
1605
+ export const DataExecuteOn$inboundSchema: z.ZodNativeEnum<
1606
+ typeof DataExecuteOn
1607
+ > = z.nativeEnum(DataExecuteOn);
1196
1608
 
1197
1609
  /** @internal */
1198
- export const ListAgentsEvaluators$inboundSchema: z.ZodType<
1199
- ListAgentsEvaluators,
1610
+ export const DataEvaluators$inboundSchema: z.ZodType<
1611
+ DataEvaluators,
1200
1612
  z.ZodTypeDef,
1201
1613
  unknown
1202
1614
  > = z.object({
1203
1615
  id: z.string(),
1204
1616
  sample_rate: z.number().default(50),
1205
- execute_on: ListAgentsExecuteOn$inboundSchema,
1617
+ execute_on: DataExecuteOn$inboundSchema,
1206
1618
  }).transform((v) => {
1207
1619
  return remap$(v, {
1208
1620
  "sample_rate": "sampleRate",
@@ -1210,30 +1622,30 @@ export const ListAgentsEvaluators$inboundSchema: z.ZodType<
1210
1622
  });
1211
1623
  });
1212
1624
 
1213
- export function listAgentsEvaluatorsFromJSON(
1625
+ export function dataEvaluatorsFromJSON(
1214
1626
  jsonString: string,
1215
- ): SafeParseResult<ListAgentsEvaluators, SDKValidationError> {
1627
+ ): SafeParseResult<DataEvaluators, SDKValidationError> {
1216
1628
  return safeParse(
1217
1629
  jsonString,
1218
- (x) => ListAgentsEvaluators$inboundSchema.parse(JSON.parse(x)),
1219
- `Failed to parse 'ListAgentsEvaluators' from JSON`,
1630
+ (x) => DataEvaluators$inboundSchema.parse(JSON.parse(x)),
1631
+ `Failed to parse 'DataEvaluators' from JSON`,
1220
1632
  );
1221
1633
  }
1222
1634
 
1223
1635
  /** @internal */
1224
- export const ListAgentsAgentsExecuteOn$inboundSchema: z.ZodNativeEnum<
1225
- typeof ListAgentsAgentsExecuteOn
1226
- > = z.nativeEnum(ListAgentsAgentsExecuteOn);
1636
+ export const ListAgentsDataExecuteOn$inboundSchema: z.ZodNativeEnum<
1637
+ typeof ListAgentsDataExecuteOn
1638
+ > = z.nativeEnum(ListAgentsDataExecuteOn);
1227
1639
 
1228
1640
  /** @internal */
1229
- export const ListAgentsGuardrails$inboundSchema: z.ZodType<
1230
- ListAgentsGuardrails,
1641
+ export const DataGuardrails$inboundSchema: z.ZodType<
1642
+ DataGuardrails,
1231
1643
  z.ZodTypeDef,
1232
1644
  unknown
1233
1645
  > = z.object({
1234
1646
  id: z.string(),
1235
1647
  sample_rate: z.number().default(50),
1236
- execute_on: ListAgentsAgentsExecuteOn$inboundSchema,
1648
+ execute_on: ListAgentsDataExecuteOn$inboundSchema,
1237
1649
  }).transform((v) => {
1238
1650
  return remap$(v, {
1239
1651
  "sample_rate": "sampleRate",
@@ -1241,33 +1653,31 @@ export const ListAgentsGuardrails$inboundSchema: z.ZodType<
1241
1653
  });
1242
1654
  });
1243
1655
 
1244
- export function listAgentsGuardrailsFromJSON(
1656
+ export function dataGuardrailsFromJSON(
1245
1657
  jsonString: string,
1246
- ): SafeParseResult<ListAgentsGuardrails, SDKValidationError> {
1658
+ ): SafeParseResult<DataGuardrails, SDKValidationError> {
1247
1659
  return safeParse(
1248
1660
  jsonString,
1249
- (x) => ListAgentsGuardrails$inboundSchema.parse(JSON.parse(x)),
1250
- `Failed to parse 'ListAgentsGuardrails' from JSON`,
1661
+ (x) => DataGuardrails$inboundSchema.parse(JSON.parse(x)),
1662
+ `Failed to parse 'DataGuardrails' from JSON`,
1251
1663
  );
1252
1664
  }
1253
1665
 
1254
1666
  /** @internal */
1255
- export const ListAgentsSettings$inboundSchema: z.ZodType<
1256
- ListAgentsSettings,
1667
+ export const DataSettings$inboundSchema: z.ZodType<
1668
+ DataSettings,
1257
1669
  z.ZodTypeDef,
1258
1670
  unknown
1259
1671
  > = z.object({
1260
1672
  max_iterations: z.number().int().default(100),
1261
1673
  max_execution_time: z.number().int().default(600),
1262
1674
  max_cost: z.number().default(0),
1263
- tool_approval_required: ListAgentsToolApprovalRequired$inboundSchema.default(
1675
+ tool_approval_required: DataToolApprovalRequired$inboundSchema.default(
1264
1676
  "respect_tool",
1265
1677
  ),
1266
- tools: z.array(z.lazy(() => ListAgentsTools$inboundSchema)).optional(),
1267
- evaluators: z.array(z.lazy(() => ListAgentsEvaluators$inboundSchema))
1268
- .optional(),
1269
- guardrails: z.array(z.lazy(() => ListAgentsGuardrails$inboundSchema))
1270
- .optional(),
1678
+ tools: z.array(z.lazy(() => DataTools$inboundSchema)).optional(),
1679
+ evaluators: z.array(z.lazy(() => DataEvaluators$inboundSchema)).optional(),
1680
+ guardrails: z.array(z.lazy(() => DataGuardrails$inboundSchema)).optional(),
1271
1681
  }).transform((v) => {
1272
1682
  return remap$(v, {
1273
1683
  "max_iterations": "maxIterations",
@@ -1277,13 +1687,13 @@ export const ListAgentsSettings$inboundSchema: z.ZodType<
1277
1687
  });
1278
1688
  });
1279
1689
 
1280
- export function listAgentsSettingsFromJSON(
1690
+ export function dataSettingsFromJSON(
1281
1691
  jsonString: string,
1282
- ): SafeParseResult<ListAgentsSettings, SDKValidationError> {
1692
+ ): SafeParseResult<DataSettings, SDKValidationError> {
1283
1693
  return safeParse(
1284
1694
  jsonString,
1285
- (x) => ListAgentsSettings$inboundSchema.parse(JSON.parse(x)),
1286
- `Failed to parse 'ListAgentsSettings' from JSON`,
1695
+ (x) => DataSettings$inboundSchema.parse(JSON.parse(x)),
1696
+ `Failed to parse 'DataSettings' from JSON`,
1287
1697
  );
1288
1698
  }
1289
1699
 
@@ -1380,8 +1790,8 @@ export function listAgentsResponseFormatTextFromJSON(
1380
1790
  }
1381
1791
 
1382
1792
  /** @internal */
1383
- export const ListAgentsResponseFormat$inboundSchema: z.ZodType<
1384
- ListAgentsResponseFormat,
1793
+ export const DataResponseFormat$inboundSchema: z.ZodType<
1794
+ DataResponseFormat,
1385
1795
  z.ZodTypeDef,
1386
1796
  unknown
1387
1797
  > = z.union([
@@ -1390,41 +1800,41 @@ export const ListAgentsResponseFormat$inboundSchema: z.ZodType<
1390
1800
  z.lazy(() => ListAgentsResponseFormatAgentsJSONSchema$inboundSchema),
1391
1801
  ]);
1392
1802
 
1393
- export function listAgentsResponseFormatFromJSON(
1803
+ export function dataResponseFormatFromJSON(
1394
1804
  jsonString: string,
1395
- ): SafeParseResult<ListAgentsResponseFormat, SDKValidationError> {
1805
+ ): SafeParseResult<DataResponseFormat, SDKValidationError> {
1396
1806
  return safeParse(
1397
1807
  jsonString,
1398
- (x) => ListAgentsResponseFormat$inboundSchema.parse(JSON.parse(x)),
1399
- `Failed to parse 'ListAgentsResponseFormat' from JSON`,
1808
+ (x) => DataResponseFormat$inboundSchema.parse(JSON.parse(x)),
1809
+ `Failed to parse 'DataResponseFormat' from JSON`,
1400
1810
  );
1401
1811
  }
1402
1812
 
1403
1813
  /** @internal */
1404
- export const ListAgentsReasoningEffort$inboundSchema: z.ZodNativeEnum<
1405
- typeof ListAgentsReasoningEffort
1406
- > = z.nativeEnum(ListAgentsReasoningEffort);
1814
+ export const DataReasoningEffort$inboundSchema: z.ZodNativeEnum<
1815
+ typeof DataReasoningEffort
1816
+ > = z.nativeEnum(DataReasoningEffort);
1407
1817
 
1408
1818
  /** @internal */
1409
- export const ListAgentsStop$inboundSchema: z.ZodType<
1410
- ListAgentsStop,
1819
+ export const DataStop$inboundSchema: z.ZodType<
1820
+ DataStop,
1411
1821
  z.ZodTypeDef,
1412
1822
  unknown
1413
1823
  > = z.union([z.string(), z.array(z.string())]);
1414
1824
 
1415
- export function listAgentsStopFromJSON(
1825
+ export function dataStopFromJSON(
1416
1826
  jsonString: string,
1417
- ): SafeParseResult<ListAgentsStop, SDKValidationError> {
1827
+ ): SafeParseResult<DataStop, SDKValidationError> {
1418
1828
  return safeParse(
1419
1829
  jsonString,
1420
- (x) => ListAgentsStop$inboundSchema.parse(JSON.parse(x)),
1421
- `Failed to parse 'ListAgentsStop' from JSON`,
1830
+ (x) => DataStop$inboundSchema.parse(JSON.parse(x)),
1831
+ `Failed to parse 'DataStop' from JSON`,
1422
1832
  );
1423
1833
  }
1424
1834
 
1425
1835
  /** @internal */
1426
- export const ListAgentsThinking$inboundSchema: z.ZodType<
1427
- ListAgentsThinking,
1836
+ export const DataThinking$inboundSchema: z.ZodType<
1837
+ DataThinking,
1428
1838
  z.ZodTypeDef,
1429
1839
  unknown
1430
1840
  > = z.union([
@@ -1432,13 +1842,13 @@ export const ListAgentsThinking$inboundSchema: z.ZodType<
1432
1842
  components.ThinkingConfigEnabledSchema$inboundSchema,
1433
1843
  ]);
1434
1844
 
1435
- export function listAgentsThinkingFromJSON(
1845
+ export function dataThinkingFromJSON(
1436
1846
  jsonString: string,
1437
- ): SafeParseResult<ListAgentsThinking, SDKValidationError> {
1847
+ ): SafeParseResult<DataThinking, SDKValidationError> {
1438
1848
  return safeParse(
1439
1849
  jsonString,
1440
- (x) => ListAgentsThinking$inboundSchema.parse(JSON.parse(x)),
1441
- `Failed to parse 'ListAgentsThinking' from JSON`,
1850
+ (x) => DataThinking$inboundSchema.parse(JSON.parse(x)),
1851
+ `Failed to parse 'DataThinking' from JSON`,
1442
1852
  );
1443
1853
  }
1444
1854
 
@@ -1492,8 +1902,8 @@ export const ListAgentsToolChoice1$inboundSchema: z.ZodNativeEnum<
1492
1902
  > = z.nativeEnum(ListAgentsToolChoice1);
1493
1903
 
1494
1904
  /** @internal */
1495
- export const ListAgentsToolChoice$inboundSchema: z.ZodType<
1496
- ListAgentsToolChoice,
1905
+ export const DataToolChoice$inboundSchema: z.ZodType<
1906
+ DataToolChoice,
1497
1907
  z.ZodTypeDef,
1498
1908
  unknown
1499
1909
  > = z.union([
@@ -1501,20 +1911,20 @@ export const ListAgentsToolChoice$inboundSchema: z.ZodType<
1501
1911
  ListAgentsToolChoice1$inboundSchema,
1502
1912
  ]);
1503
1913
 
1504
- export function listAgentsToolChoiceFromJSON(
1914
+ export function dataToolChoiceFromJSON(
1505
1915
  jsonString: string,
1506
- ): SafeParseResult<ListAgentsToolChoice, SDKValidationError> {
1916
+ ): SafeParseResult<DataToolChoice, SDKValidationError> {
1507
1917
  return safeParse(
1508
1918
  jsonString,
1509
- (x) => ListAgentsToolChoice$inboundSchema.parse(JSON.parse(x)),
1510
- `Failed to parse 'ListAgentsToolChoice' from JSON`,
1919
+ (x) => DataToolChoice$inboundSchema.parse(JSON.parse(x)),
1920
+ `Failed to parse 'DataToolChoice' from JSON`,
1511
1921
  );
1512
1922
  }
1513
1923
 
1514
1924
  /** @internal */
1515
- export const ListAgentsModalities$inboundSchema: z.ZodNativeEnum<
1516
- typeof ListAgentsModalities
1517
- > = z.nativeEnum(ListAgentsModalities);
1925
+ export const DataModalities$inboundSchema: z.ZodNativeEnum<
1926
+ typeof DataModalities
1927
+ > = z.nativeEnum(DataModalities);
1518
1928
 
1519
1929
  /** @internal */
1520
1930
  export const ListAgentsId1$inboundSchema: z.ZodNativeEnum<
@@ -1522,92 +1932,89 @@ export const ListAgentsId1$inboundSchema: z.ZodNativeEnum<
1522
1932
  > = z.nativeEnum(ListAgentsId1);
1523
1933
 
1524
1934
  /** @internal */
1525
- export const ListAgentsId$inboundSchema: z.ZodType<
1526
- ListAgentsId,
1527
- z.ZodTypeDef,
1528
- unknown
1529
- > = z.union([ListAgentsId1$inboundSchema, z.string()]);
1935
+ export const DataId$inboundSchema: z.ZodType<DataId, z.ZodTypeDef, unknown> = z
1936
+ .union([ListAgentsId1$inboundSchema, z.string()]);
1530
1937
 
1531
- export function listAgentsIdFromJSON(
1938
+ export function dataIdFromJSON(
1532
1939
  jsonString: string,
1533
- ): SafeParseResult<ListAgentsId, SDKValidationError> {
1940
+ ): SafeParseResult<DataId, SDKValidationError> {
1534
1941
  return safeParse(
1535
1942
  jsonString,
1536
- (x) => ListAgentsId$inboundSchema.parse(JSON.parse(x)),
1537
- `Failed to parse 'ListAgentsId' from JSON`,
1943
+ (x) => DataId$inboundSchema.parse(JSON.parse(x)),
1944
+ `Failed to parse 'DataId' from JSON`,
1538
1945
  );
1539
1946
  }
1540
1947
 
1541
1948
  /** @internal */
1542
- export const ListAgentsAgentsResponseExecuteOn$inboundSchema: z.ZodNativeEnum<
1543
- typeof ListAgentsAgentsResponseExecuteOn
1544
- > = z.nativeEnum(ListAgentsAgentsResponseExecuteOn);
1949
+ export const ListAgentsDataAgentsExecuteOn$inboundSchema: z.ZodNativeEnum<
1950
+ typeof ListAgentsDataAgentsExecuteOn
1951
+ > = z.nativeEnum(ListAgentsDataAgentsExecuteOn);
1545
1952
 
1546
1953
  /** @internal */
1547
- export const ListAgentsAgentsGuardrails$inboundSchema: z.ZodType<
1548
- ListAgentsAgentsGuardrails,
1954
+ export const ListAgentsDataGuardrails$inboundSchema: z.ZodType<
1955
+ ListAgentsDataGuardrails,
1549
1956
  z.ZodTypeDef,
1550
1957
  unknown
1551
1958
  > = z.object({
1552
1959
  id: z.union([ListAgentsId1$inboundSchema, z.string()]),
1553
- execute_on: ListAgentsAgentsResponseExecuteOn$inboundSchema,
1960
+ execute_on: ListAgentsDataAgentsExecuteOn$inboundSchema,
1554
1961
  }).transform((v) => {
1555
1962
  return remap$(v, {
1556
1963
  "execute_on": "executeOn",
1557
1964
  });
1558
1965
  });
1559
1966
 
1560
- export function listAgentsAgentsGuardrailsFromJSON(
1967
+ export function listAgentsDataGuardrailsFromJSON(
1561
1968
  jsonString: string,
1562
- ): SafeParseResult<ListAgentsAgentsGuardrails, SDKValidationError> {
1969
+ ): SafeParseResult<ListAgentsDataGuardrails, SDKValidationError> {
1563
1970
  return safeParse(
1564
1971
  jsonString,
1565
- (x) => ListAgentsAgentsGuardrails$inboundSchema.parse(JSON.parse(x)),
1566
- `Failed to parse 'ListAgentsAgentsGuardrails' from JSON`,
1972
+ (x) => ListAgentsDataGuardrails$inboundSchema.parse(JSON.parse(x)),
1973
+ `Failed to parse 'ListAgentsDataGuardrails' from JSON`,
1567
1974
  );
1568
1975
  }
1569
1976
 
1570
1977
  /** @internal */
1571
- export const ListAgentsFallbacks$inboundSchema: z.ZodType<
1572
- ListAgentsFallbacks,
1978
+ export const DataFallbacks$inboundSchema: z.ZodType<
1979
+ DataFallbacks,
1573
1980
  z.ZodTypeDef,
1574
1981
  unknown
1575
1982
  > = z.object({
1576
1983
  model: z.string(),
1577
1984
  });
1578
1985
 
1579
- export function listAgentsFallbacksFromJSON(
1986
+ export function dataFallbacksFromJSON(
1580
1987
  jsonString: string,
1581
- ): SafeParseResult<ListAgentsFallbacks, SDKValidationError> {
1988
+ ): SafeParseResult<DataFallbacks, SDKValidationError> {
1582
1989
  return safeParse(
1583
1990
  jsonString,
1584
- (x) => ListAgentsFallbacks$inboundSchema.parse(JSON.parse(x)),
1585
- `Failed to parse 'ListAgentsFallbacks' from JSON`,
1991
+ (x) => DataFallbacks$inboundSchema.parse(JSON.parse(x)),
1992
+ `Failed to parse 'DataFallbacks' from JSON`,
1586
1993
  );
1587
1994
  }
1588
1995
 
1589
1996
  /** @internal */
1590
- export const ListAgentsType$inboundSchema: z.ZodNativeEnum<
1591
- typeof ListAgentsType
1592
- > = z.nativeEnum(ListAgentsType);
1997
+ export const ListAgentsDataAgentsResponseType$inboundSchema: z.ZodNativeEnum<
1998
+ typeof ListAgentsDataAgentsResponseType
1999
+ > = z.nativeEnum(ListAgentsDataAgentsResponseType);
1593
2000
 
1594
2001
  /** @internal */
1595
- export const ListAgentsCache$inboundSchema: z.ZodType<
1596
- ListAgentsCache,
2002
+ export const DataCache$inboundSchema: z.ZodType<
2003
+ DataCache,
1597
2004
  z.ZodTypeDef,
1598
2005
  unknown
1599
2006
  > = z.object({
1600
2007
  ttl: z.number().default(1800),
1601
- type: ListAgentsType$inboundSchema,
2008
+ type: ListAgentsDataAgentsResponseType$inboundSchema,
1602
2009
  });
1603
2010
 
1604
- export function listAgentsCacheFromJSON(
2011
+ export function dataCacheFromJSON(
1605
2012
  jsonString: string,
1606
- ): SafeParseResult<ListAgentsCache, SDKValidationError> {
2013
+ ): SafeParseResult<DataCache, SDKValidationError> {
1607
2014
  return safeParse(
1608
2015
  jsonString,
1609
- (x) => ListAgentsCache$inboundSchema.parse(JSON.parse(x)),
1610
- `Failed to parse 'ListAgentsCache' from JSON`,
2016
+ (x) => DataCache$inboundSchema.parse(JSON.parse(x)),
2017
+ `Failed to parse 'DataCache' from JSON`,
1611
2018
  );
1612
2019
  }
1613
2020
 
@@ -1657,25 +2064,25 @@ export function listAgentsLoadBalancer1FromJSON(
1657
2064
  }
1658
2065
 
1659
2066
  /** @internal */
1660
- export const ListAgentsLoadBalancer$inboundSchema: z.ZodType<
1661
- ListAgentsLoadBalancer,
2067
+ export const DataLoadBalancer$inboundSchema: z.ZodType<
2068
+ DataLoadBalancer,
1662
2069
  z.ZodTypeDef,
1663
2070
  unknown
1664
2071
  > = z.lazy(() => ListAgentsLoadBalancer1$inboundSchema);
1665
2072
 
1666
- export function listAgentsLoadBalancerFromJSON(
2073
+ export function dataLoadBalancerFromJSON(
1667
2074
  jsonString: string,
1668
- ): SafeParseResult<ListAgentsLoadBalancer, SDKValidationError> {
2075
+ ): SafeParseResult<DataLoadBalancer, SDKValidationError> {
1669
2076
  return safeParse(
1670
2077
  jsonString,
1671
- (x) => ListAgentsLoadBalancer$inboundSchema.parse(JSON.parse(x)),
1672
- `Failed to parse 'ListAgentsLoadBalancer' from JSON`,
2078
+ (x) => DataLoadBalancer$inboundSchema.parse(JSON.parse(x)),
2079
+ `Failed to parse 'DataLoadBalancer' from JSON`,
1673
2080
  );
1674
2081
  }
1675
2082
 
1676
2083
  /** @internal */
1677
- export const ListAgentsTimeout$inboundSchema: z.ZodType<
1678
- ListAgentsTimeout,
2084
+ export const DataTimeout$inboundSchema: z.ZodType<
2085
+ DataTimeout,
1679
2086
  z.ZodTypeDef,
1680
2087
  unknown
1681
2088
  > = z.object({
@@ -1686,19 +2093,19 @@ export const ListAgentsTimeout$inboundSchema: z.ZodType<
1686
2093
  });
1687
2094
  });
1688
2095
 
1689
- export function listAgentsTimeoutFromJSON(
2096
+ export function dataTimeoutFromJSON(
1690
2097
  jsonString: string,
1691
- ): SafeParseResult<ListAgentsTimeout, SDKValidationError> {
2098
+ ): SafeParseResult<DataTimeout, SDKValidationError> {
1692
2099
  return safeParse(
1693
2100
  jsonString,
1694
- (x) => ListAgentsTimeout$inboundSchema.parse(JSON.parse(x)),
1695
- `Failed to parse 'ListAgentsTimeout' from JSON`,
2101
+ (x) => DataTimeout$inboundSchema.parse(JSON.parse(x)),
2102
+ `Failed to parse 'DataTimeout' from JSON`,
1696
2103
  );
1697
2104
  }
1698
2105
 
1699
2106
  /** @internal */
1700
- export const ListAgentsParameters$inboundSchema: z.ZodType<
1701
- ListAgentsParameters,
2107
+ export const DataParameters$inboundSchema: z.ZodType<
2108
+ DataParameters,
1702
2109
  z.ZodTypeDef,
1703
2110
  unknown
1704
2111
  > = z.object({
@@ -1712,7 +2119,7 @@ export const ListAgentsParameters$inboundSchema: z.ZodType<
1712
2119
  z.lazy(() => ListAgentsResponseFormatJSONObject$inboundSchema),
1713
2120
  z.lazy(() => ListAgentsResponseFormatAgentsJSONSchema$inboundSchema),
1714
2121
  ]).optional(),
1715
- reasoning_effort: ListAgentsReasoningEffort$inboundSchema.optional(),
2122
+ reasoning_effort: DataReasoningEffort$inboundSchema.optional(),
1716
2123
  verbosity: z.string().optional(),
1717
2124
  seed: z.nullable(z.number()).optional(),
1718
2125
  stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
@@ -1728,15 +2135,13 @@ export const ListAgentsParameters$inboundSchema: z.ZodType<
1728
2135
  ListAgentsToolChoice1$inboundSchema,
1729
2136
  ]).optional(),
1730
2137
  parallel_tool_calls: z.boolean().optional(),
1731
- modalities: z.nullable(z.array(ListAgentsModalities$inboundSchema))
1732
- .optional(),
1733
- guardrails: z.array(z.lazy(() => ListAgentsAgentsGuardrails$inboundSchema))
2138
+ modalities: z.nullable(z.array(DataModalities$inboundSchema)).optional(),
2139
+ guardrails: z.array(z.lazy(() => ListAgentsDataGuardrails$inboundSchema))
1734
2140
  .optional(),
1735
- fallbacks: z.array(z.lazy(() => ListAgentsFallbacks$inboundSchema))
1736
- .optional(),
1737
- cache: z.lazy(() => ListAgentsCache$inboundSchema).optional(),
2141
+ fallbacks: z.array(z.lazy(() => DataFallbacks$inboundSchema)).optional(),
2142
+ cache: z.lazy(() => DataCache$inboundSchema).optional(),
1738
2143
  load_balancer: z.lazy(() => ListAgentsLoadBalancer1$inboundSchema).optional(),
1739
- timeout: z.lazy(() => ListAgentsTimeout$inboundSchema).optional(),
2144
+ timeout: z.lazy(() => DataTimeout$inboundSchema).optional(),
1740
2145
  }).transform((v) => {
1741
2146
  return remap$(v, {
1742
2147
  "frequency_penalty": "frequencyPenalty",
@@ -1753,19 +2158,19 @@ export const ListAgentsParameters$inboundSchema: z.ZodType<
1753
2158
  });
1754
2159
  });
1755
2160
 
1756
- export function listAgentsParametersFromJSON(
2161
+ export function dataParametersFromJSON(
1757
2162
  jsonString: string,
1758
- ): SafeParseResult<ListAgentsParameters, SDKValidationError> {
2163
+ ): SafeParseResult<DataParameters, SDKValidationError> {
1759
2164
  return safeParse(
1760
2165
  jsonString,
1761
- (x) => ListAgentsParameters$inboundSchema.parse(JSON.parse(x)),
1762
- `Failed to parse 'ListAgentsParameters' from JSON`,
2166
+ (x) => DataParameters$inboundSchema.parse(JSON.parse(x)),
2167
+ `Failed to parse 'DataParameters' from JSON`,
1763
2168
  );
1764
2169
  }
1765
2170
 
1766
2171
  /** @internal */
1767
- export const ListAgentsRetry$inboundSchema: z.ZodType<
1768
- ListAgentsRetry,
2172
+ export const DataRetry$inboundSchema: z.ZodType<
2173
+ DataRetry,
1769
2174
  z.ZodTypeDef,
1770
2175
  unknown
1771
2176
  > = z.object({
@@ -1777,13 +2182,13 @@ export const ListAgentsRetry$inboundSchema: z.ZodType<
1777
2182
  });
1778
2183
  });
1779
2184
 
1780
- export function listAgentsRetryFromJSON(
2185
+ export function dataRetryFromJSON(
1781
2186
  jsonString: string,
1782
- ): SafeParseResult<ListAgentsRetry, SDKValidationError> {
2187
+ ): SafeParseResult<DataRetry, SDKValidationError> {
1783
2188
  return safeParse(
1784
2189
  jsonString,
1785
- (x) => ListAgentsRetry$inboundSchema.parse(JSON.parse(x)),
1786
- `Failed to parse 'ListAgentsRetry' from JSON`,
2190
+ (x) => DataRetry$inboundSchema.parse(JSON.parse(x)),
2191
+ `Failed to parse 'DataRetry' from JSON`,
1787
2192
  );
1788
2193
  }
1789
2194
 
@@ -2422,8 +2827,8 @@ export function listAgentsFallbackModelConfiguration2FromJSON(
2422
2827
  }
2423
2828
 
2424
2829
  /** @internal */
2425
- export const ListAgentsFallbackModelConfiguration$inboundSchema: z.ZodType<
2426
- ListAgentsFallbackModelConfiguration,
2830
+ export const DataFallbackModelConfiguration$inboundSchema: z.ZodType<
2831
+ DataFallbackModelConfiguration,
2427
2832
  z.ZodTypeDef,
2428
2833
  unknown
2429
2834
  > = z.union([
@@ -2431,27 +2836,26 @@ export const ListAgentsFallbackModelConfiguration$inboundSchema: z.ZodType<
2431
2836
  z.string(),
2432
2837
  ]);
2433
2838
 
2434
- export function listAgentsFallbackModelConfigurationFromJSON(
2839
+ export function dataFallbackModelConfigurationFromJSON(
2435
2840
  jsonString: string,
2436
- ): SafeParseResult<ListAgentsFallbackModelConfiguration, SDKValidationError> {
2841
+ ): SafeParseResult<DataFallbackModelConfiguration, SDKValidationError> {
2437
2842
  return safeParse(
2438
2843
  jsonString,
2439
- (x) =>
2440
- ListAgentsFallbackModelConfiguration$inboundSchema.parse(JSON.parse(x)),
2441
- `Failed to parse 'ListAgentsFallbackModelConfiguration' from JSON`,
2844
+ (x) => DataFallbackModelConfiguration$inboundSchema.parse(JSON.parse(x)),
2845
+ `Failed to parse 'DataFallbackModelConfiguration' from JSON`,
2442
2846
  );
2443
2847
  }
2444
2848
 
2445
2849
  /** @internal */
2446
- export const ListAgentsModel$inboundSchema: z.ZodType<
2447
- ListAgentsModel,
2850
+ export const DataModel$inboundSchema: z.ZodType<
2851
+ DataModel,
2448
2852
  z.ZodTypeDef,
2449
2853
  unknown
2450
2854
  > = z.object({
2451
2855
  id: z.string(),
2452
2856
  integration_id: z.nullable(z.string()).optional(),
2453
- parameters: z.lazy(() => ListAgentsParameters$inboundSchema).optional(),
2454
- retry: z.lazy(() => ListAgentsRetry$inboundSchema).optional(),
2857
+ parameters: z.lazy(() => DataParameters$inboundSchema).optional(),
2858
+ retry: z.lazy(() => DataRetry$inboundSchema).optional(),
2455
2859
  fallback_models: z.nullable(
2456
2860
  z.array(z.union([
2457
2861
  z.lazy(() => ListAgentsFallbackModelConfiguration2$inboundSchema),
@@ -2465,129 +2869,77 @@ export const ListAgentsModel$inboundSchema: z.ZodType<
2465
2869
  });
2466
2870
  });
2467
2871
 
2468
- export function listAgentsModelFromJSON(
2872
+ export function dataModelFromJSON(
2469
2873
  jsonString: string,
2470
- ): SafeParseResult<ListAgentsModel, SDKValidationError> {
2874
+ ): SafeParseResult<DataModel, SDKValidationError> {
2471
2875
  return safeParse(
2472
2876
  jsonString,
2473
- (x) => ListAgentsModel$inboundSchema.parse(JSON.parse(x)),
2474
- `Failed to parse 'ListAgentsModel' from JSON`,
2877
+ (x) => DataModel$inboundSchema.parse(JSON.parse(x)),
2878
+ `Failed to parse 'DataModel' from JSON`,
2475
2879
  );
2476
2880
  }
2477
2881
 
2478
2882
  /** @internal */
2479
- export const ListAgentsTeamOfAgents$inboundSchema: z.ZodType<
2480
- ListAgentsTeamOfAgents,
2481
- z.ZodTypeDef,
2482
- unknown
2483
- > = z.object({
2484
- key: z.string(),
2485
- role: z.string().optional(),
2486
- });
2487
-
2488
- export function listAgentsTeamOfAgentsFromJSON(
2489
- jsonString: string,
2490
- ): SafeParseResult<ListAgentsTeamOfAgents, SDKValidationError> {
2491
- return safeParse(
2492
- jsonString,
2493
- (x) => ListAgentsTeamOfAgents$inboundSchema.parse(JSON.parse(x)),
2494
- `Failed to parse 'ListAgentsTeamOfAgents' from JSON`,
2495
- );
2496
- }
2497
-
2498
- /** @internal */
2499
- export const ListAgentsMetrics$inboundSchema: z.ZodType<
2500
- ListAgentsMetrics,
2501
- z.ZodTypeDef,
2502
- unknown
2503
- > = z.object({
2504
- total_cost: z.number().default(0),
2505
- }).transform((v) => {
2506
- return remap$(v, {
2507
- "total_cost": "totalCost",
2508
- });
2509
- });
2510
-
2511
- export function listAgentsMetricsFromJSON(
2512
- jsonString: string,
2513
- ): SafeParseResult<ListAgentsMetrics, SDKValidationError> {
2514
- return safeParse(
2515
- jsonString,
2516
- (x) => ListAgentsMetrics$inboundSchema.parse(JSON.parse(x)),
2517
- `Failed to parse 'ListAgentsMetrics' from JSON`,
2518
- );
2519
- }
2520
-
2521
- /** @internal */
2522
- export const ListAgentsKnowledgeBases$inboundSchema: z.ZodType<
2523
- ListAgentsKnowledgeBases,
2524
- z.ZodTypeDef,
2525
- unknown
2526
- > = z.object({
2527
- knowledge_id: z.string(),
2528
- }).transform((v) => {
2529
- return remap$(v, {
2530
- "knowledge_id": "knowledgeId",
2883
+ export const Data1$inboundSchema: z.ZodType<Data1, z.ZodTypeDef, unknown> = z
2884
+ .object({
2885
+ _id: z.string(),
2886
+ key: z.string(),
2887
+ display_name: z.string().optional(),
2888
+ created_by_id: z.nullable(z.string()).optional(),
2889
+ updated_by_id: z.nullable(z.string()).optional(),
2890
+ created: z.string().optional(),
2891
+ updated: z.string().optional(),
2892
+ status: DataStatus$inboundSchema,
2893
+ version_hash: z.string().optional(),
2894
+ path: z.string(),
2895
+ memory_stores: z.array(z.string()).optional(),
2896
+ team_of_agents: z.array(z.lazy(() => DataTeamOfAgents$inboundSchema))
2897
+ .optional(),
2898
+ metrics: z.lazy(() => DataMetrics$inboundSchema).optional(),
2899
+ variables: z.record(z.any()).optional(),
2900
+ knowledge_bases: z.array(z.lazy(() => DataKnowledgeBases$inboundSchema))
2901
+ .optional(),
2902
+ source: DataSource$inboundSchema.optional(),
2903
+ type: z.literal("internal"),
2904
+ role: z.string(),
2905
+ description: z.string(),
2906
+ system_prompt: z.string().optional(),
2907
+ instructions: z.string(),
2908
+ settings: z.lazy(() => DataSettings$inboundSchema).optional(),
2909
+ model: z.lazy(() => DataModel$inboundSchema),
2910
+ }).transform((v) => {
2911
+ return remap$(v, {
2912
+ "_id": "id",
2913
+ "display_name": "displayName",
2914
+ "created_by_id": "createdById",
2915
+ "updated_by_id": "updatedById",
2916
+ "version_hash": "versionHash",
2917
+ "memory_stores": "memoryStores",
2918
+ "team_of_agents": "teamOfAgents",
2919
+ "knowledge_bases": "knowledgeBases",
2920
+ "system_prompt": "systemPrompt",
2921
+ });
2531
2922
  });
2532
- });
2533
2923
 
2534
- export function listAgentsKnowledgeBasesFromJSON(
2924
+ export function data1FromJSON(
2535
2925
  jsonString: string,
2536
- ): SafeParseResult<ListAgentsKnowledgeBases, SDKValidationError> {
2926
+ ): SafeParseResult<Data1, SDKValidationError> {
2537
2927
  return safeParse(
2538
2928
  jsonString,
2539
- (x) => ListAgentsKnowledgeBases$inboundSchema.parse(JSON.parse(x)),
2540
- `Failed to parse 'ListAgentsKnowledgeBases' from JSON`,
2929
+ (x) => Data1$inboundSchema.parse(JSON.parse(x)),
2930
+ `Failed to parse 'Data1' from JSON`,
2541
2931
  );
2542
2932
  }
2543
2933
 
2544
- /** @internal */
2545
- export const ListAgentsSource$inboundSchema: z.ZodNativeEnum<
2546
- typeof ListAgentsSource
2547
- > = z.nativeEnum(ListAgentsSource);
2548
-
2549
2934
  /** @internal */
2550
2935
  export const ListAgentsData$inboundSchema: z.ZodType<
2551
2936
  ListAgentsData,
2552
2937
  z.ZodTypeDef,
2553
2938
  unknown
2554
- > = z.object({
2555
- _id: z.string(),
2556
- key: z.string(),
2557
- display_name: z.string().optional(),
2558
- created_by_id: z.nullable(z.string()).optional(),
2559
- updated_by_id: z.nullable(z.string()).optional(),
2560
- created: z.string().optional(),
2561
- updated: z.string().optional(),
2562
- role: z.string(),
2563
- description: z.string(),
2564
- system_prompt: z.string().optional(),
2565
- instructions: z.string(),
2566
- status: ListAgentsStatus$inboundSchema,
2567
- settings: z.lazy(() => ListAgentsSettings$inboundSchema).optional(),
2568
- model: z.lazy(() => ListAgentsModel$inboundSchema),
2569
- version_hash: z.string().optional(),
2570
- path: z.string(),
2571
- memory_stores: z.array(z.string()),
2572
- team_of_agents: z.array(z.lazy(() => ListAgentsTeamOfAgents$inboundSchema)),
2573
- metrics: z.lazy(() => ListAgentsMetrics$inboundSchema).optional(),
2574
- variables: z.record(z.any()).optional(),
2575
- knowledge_bases: z.array(z.lazy(() => ListAgentsKnowledgeBases$inboundSchema))
2576
- .optional(),
2577
- source: ListAgentsSource$inboundSchema.optional(),
2578
- }).transform((v) => {
2579
- return remap$(v, {
2580
- "_id": "id",
2581
- "display_name": "displayName",
2582
- "created_by_id": "createdById",
2583
- "updated_by_id": "updatedById",
2584
- "system_prompt": "systemPrompt",
2585
- "version_hash": "versionHash",
2586
- "memory_stores": "memoryStores",
2587
- "team_of_agents": "teamOfAgents",
2588
- "knowledge_bases": "knowledgeBases",
2589
- });
2590
- });
2939
+ > = z.union([
2940
+ z.lazy(() => Data1$inboundSchema),
2941
+ z.lazy(() => Data2$inboundSchema),
2942
+ ]);
2591
2943
 
2592
2944
  export function listAgentsDataFromJSON(
2593
2945
  jsonString: string,
@@ -2606,7 +2958,12 @@ export const ListAgentsResponseBody$inboundSchema: z.ZodType<
2606
2958
  unknown
2607
2959
  > = z.object({
2608
2960
  object: ListAgentsObject$inboundSchema,
2609
- data: z.array(z.lazy(() => ListAgentsData$inboundSchema)),
2961
+ data: z.array(
2962
+ z.union([
2963
+ z.lazy(() => Data1$inboundSchema),
2964
+ z.lazy(() => Data2$inboundSchema),
2965
+ ]),
2966
+ ),
2610
2967
  has_more: z.boolean(),
2611
2968
  }).transform((v) => {
2612
2969
  return remap$(v, {