@orq-ai/node 4.1.0-rc.4 → 4.1.0-rc.5

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 (210) hide show
  1. package/bin/mcp-server.js +25494 -27422
  2. package/bin/mcp-server.js.map +64 -47
  3. package/examples/package-lock.json +1 -1
  4. package/jsr.json +1 -1
  5. package/lib/config.d.ts +3 -3
  6. package/lib/config.js +3 -3
  7. package/mcp-server/mcp-server.js +1 -1
  8. package/mcp-server/server.js +1 -1
  9. package/models/components/actionreviewedstreamingevent.d.ts +76 -0
  10. package/models/components/actionreviewedstreamingevent.d.ts.map +1 -0
  11. package/models/components/actionreviewedstreamingevent.js +127 -0
  12. package/models/components/actionreviewedstreamingevent.js.map +1 -0
  13. package/models/components/actionreviewrequestedstreamingevent.d.ts +135 -0
  14. package/models/components/actionreviewrequestedstreamingevent.d.ts.map +1 -0
  15. package/models/components/actionreviewrequestedstreamingevent.js +180 -0
  16. package/models/components/actionreviewrequestedstreamingevent.js.map +1 -0
  17. package/models/components/agenterroredstreamingevent.d.ts +58 -0
  18. package/models/components/agenterroredstreamingevent.d.ts.map +1 -0
  19. package/models/components/agenterroredstreamingevent.js +91 -0
  20. package/models/components/agenterroredstreamingevent.js.map +1 -0
  21. package/models/components/agentexecutionstartedstreamingevent.d.ts +62 -0
  22. package/models/components/agentexecutionstartedstreamingevent.d.ts.map +1 -0
  23. package/models/components/agentexecutionstartedstreamingevent.js +103 -0
  24. package/models/components/agentexecutionstartedstreamingevent.js.map +1 -0
  25. package/models/components/agenthandedoffstreamingevent.d.ts +51 -0
  26. package/models/components/agenthandedoffstreamingevent.d.ts.map +1 -0
  27. package/models/components/agenthandedoffstreamingevent.js +96 -0
  28. package/models/components/agenthandedoffstreamingevent.js.map +1 -0
  29. package/models/components/agentinactivestreamingevent.d.ts +309 -0
  30. package/models/components/agentinactivestreamingevent.d.ts.map +1 -0
  31. package/models/components/agentinactivestreamingevent.js +385 -0
  32. package/models/components/agentinactivestreamingevent.js.map +1 -0
  33. package/models/components/agentmessagecreatedstreamingevent.d.ts +141 -0
  34. package/models/components/agentmessagecreatedstreamingevent.d.ts.map +1 -0
  35. package/models/components/agentmessagecreatedstreamingevent.js +190 -0
  36. package/models/components/agentmessagecreatedstreamingevent.js.map +1 -0
  37. package/models/components/agentstartedstreamingevent.d.ts +382 -0
  38. package/models/components/agentstartedstreamingevent.d.ts.map +1 -0
  39. package/models/components/agentstartedstreamingevent.js +441 -0
  40. package/models/components/agentstartedstreamingevent.js.map +1 -0
  41. package/models/components/agentthoughtstreamingevent.d.ts +542 -0
  42. package/models/components/agentthoughtstreamingevent.d.ts.map +1 -0
  43. package/models/components/agentthoughtstreamingevent.js +626 -0
  44. package/models/components/agentthoughtstreamingevent.js.map +1 -0
  45. package/models/components/errorstreamingevent.d.ts +51 -0
  46. package/models/components/errorstreamingevent.d.ts.map +1 -0
  47. package/models/components/errorstreamingevent.js +87 -0
  48. package/models/components/errorstreamingevent.js.map +1 -0
  49. package/models/components/executionnamedstreamingevent.d.ts +51 -0
  50. package/models/components/executionnamedstreamingevent.d.ts.map +1 -0
  51. package/models/components/executionnamedstreamingevent.js +96 -0
  52. package/models/components/executionnamedstreamingevent.js.map +1 -0
  53. package/models/components/executionreviewedstreamingevent.d.ts +45 -0
  54. package/models/components/executionreviewedstreamingevent.d.ts.map +1 -0
  55. package/models/components/executionreviewedstreamingevent.js +81 -0
  56. package/models/components/executionreviewedstreamingevent.js.map +1 -0
  57. package/models/components/executionreviewrequiredstreamingevent.d.ts +45 -0
  58. package/models/components/executionreviewrequiredstreamingevent.d.ts.map +1 -0
  59. package/models/components/executionreviewrequiredstreamingevent.js +82 -0
  60. package/models/components/executionreviewrequiredstreamingevent.js.map +1 -0
  61. package/models/components/filepart.d.ts +1 -1
  62. package/models/components/index.d.ts +17 -0
  63. package/models/components/index.d.ts.map +1 -1
  64. package/models/components/index.js +17 -0
  65. package/models/components/index.js.map +1 -1
  66. package/models/components/invokedeploymentrequest.d.ts +13 -13
  67. package/models/components/invokedeploymentrequest.d.ts.map +1 -1
  68. package/models/components/invokedeploymentrequest.js +17 -17
  69. package/models/components/invokedeploymentrequest.js.map +1 -1
  70. package/models/components/timeoutstreamingevent.d.ts +49 -0
  71. package/models/components/timeoutstreamingevent.d.ts.map +1 -0
  72. package/models/components/timeoutstreamingevent.js +85 -0
  73. package/models/components/timeoutstreamingevent.js.map +1 -0
  74. package/models/components/toolexecutionfailedstreamingevent.d.ts +144 -0
  75. package/models/components/toolexecutionfailedstreamingevent.d.ts.map +1 -0
  76. package/models/components/toolexecutionfailedstreamingevent.js +223 -0
  77. package/models/components/toolexecutionfailedstreamingevent.js.map +1 -0
  78. package/models/components/toolexecutionfinishedstreamingevent.d.ts +129 -0
  79. package/models/components/toolexecutionfinishedstreamingevent.d.ts.map +1 -0
  80. package/models/components/toolexecutionfinishedstreamingevent.js +205 -0
  81. package/models/components/toolexecutionfinishedstreamingevent.js.map +1 -0
  82. package/models/components/toolexecutionstartedstreamingevent.d.ts +139 -0
  83. package/models/components/toolexecutionstartedstreamingevent.d.ts.map +1 -0
  84. package/models/components/toolexecutionstartedstreamingevent.js +217 -0
  85. package/models/components/toolexecutionstartedstreamingevent.js.map +1 -0
  86. package/models/components/toolresultpart.d.ts +1 -1
  87. package/models/operations/createagentresponserequest.d.ts +4 -137
  88. package/models/operations/createagentresponserequest.d.ts.map +1 -1
  89. package/models/operations/createagentresponserequest.js +9 -138
  90. package/models/operations/createagentresponserequest.js.map +1 -1
  91. package/models/operations/createbudget.js +2 -2
  92. package/models/operations/createcontact.js +2 -2
  93. package/models/operations/createdataset.js +2 -2
  94. package/models/operations/createdatasetitem.js +8 -8
  95. package/models/operations/createdatasource.js +2 -2
  96. package/models/operations/createeval.d.ts +80 -145
  97. package/models/operations/createeval.d.ts.map +1 -1
  98. package/models/operations/createeval.js +190 -266
  99. package/models/operations/createeval.js.map +1 -1
  100. package/models/operations/createtool.js +12 -12
  101. package/models/operations/fileget.js +2 -2
  102. package/models/operations/filelist.js +2 -2
  103. package/models/operations/fileupload.js +2 -2
  104. package/models/operations/getalltools.js +12 -12
  105. package/models/operations/getbudget.js +2 -2
  106. package/models/operations/getevals.d.ts +14 -79
  107. package/models/operations/getevals.d.ts.map +1 -1
  108. package/models/operations/getevals.js +49 -132
  109. package/models/operations/getevals.js.map +1 -1
  110. package/models/operations/invokeagent.d.ts +14 -147
  111. package/models/operations/invokeagent.d.ts.map +1 -1
  112. package/models/operations/invokeagent.js +19 -148
  113. package/models/operations/invokeagent.js.map +1 -1
  114. package/models/operations/listbudgets.js +2 -2
  115. package/models/operations/listcontacts.js +2 -2
  116. package/models/operations/listdatasetdatapoints.js +8 -8
  117. package/models/operations/listdatasets.js +2 -2
  118. package/models/operations/listdatasources.js +2 -2
  119. package/models/operations/listknowledgebases.d.ts +16 -16
  120. package/models/operations/listknowledgebases.d.ts.map +1 -1
  121. package/models/operations/listknowledgebases.js +27 -25
  122. package/models/operations/listknowledgebases.js.map +1 -1
  123. package/models/operations/retrievecontact.js +2 -2
  124. package/models/operations/retrievedatapoint.js +8 -8
  125. package/models/operations/retrievedataset.js +2 -2
  126. package/models/operations/retrievedatasource.js +2 -2
  127. package/models/operations/retrievetool.js +12 -12
  128. package/models/operations/runagent.d.ts +4 -137
  129. package/models/operations/runagent.d.ts.map +1 -1
  130. package/models/operations/runagent.js +17 -145
  131. package/models/operations/runagent.js.map +1 -1
  132. package/models/operations/streamagent.d.ts +241 -2491
  133. package/models/operations/streamagent.d.ts.map +1 -1
  134. package/models/operations/streamagent.js +172 -2826
  135. package/models/operations/streamagent.js.map +1 -1
  136. package/models/operations/streamrunagent.d.ts +889 -3139
  137. package/models/operations/streamrunagent.d.ts.map +1 -1
  138. package/models/operations/streamrunagent.js +175 -2825
  139. package/models/operations/streamrunagent.js.map +1 -1
  140. package/models/operations/updatebudget.js +2 -2
  141. package/models/operations/updatecontact.js +2 -2
  142. package/models/operations/updatedatapoint.js +8 -8
  143. package/models/operations/updatedataset.js +2 -2
  144. package/models/operations/updatedatasource.js +2 -2
  145. package/models/operations/updateeval.d.ts +14 -79
  146. package/models/operations/updateeval.d.ts.map +1 -1
  147. package/models/operations/updateeval.js +51 -134
  148. package/models/operations/updateeval.js.map +1 -1
  149. package/models/operations/updatetool.js +14 -14
  150. package/package.json +1 -1
  151. package/src/lib/config.ts +3 -3
  152. package/src/mcp-server/mcp-server.ts +1 -1
  153. package/src/mcp-server/server.ts +1 -1
  154. package/src/models/components/actionreviewedstreamingevent.ts +189 -0
  155. package/src/models/components/actionreviewrequestedstreamingevent.ts +326 -0
  156. package/src/models/components/agenterroredstreamingevent.ts +142 -0
  157. package/src/models/components/agentexecutionstartedstreamingevent.ts +145 -0
  158. package/src/models/components/agenthandedoffstreamingevent.ts +142 -0
  159. package/src/models/components/agentinactivestreamingevent.ts +857 -0
  160. package/src/models/components/agentmessagecreatedstreamingevent.ts +396 -0
  161. package/src/models/components/agentstartedstreamingevent.ts +909 -0
  162. package/src/models/components/agentthoughtstreamingevent.ts +1419 -0
  163. package/src/models/components/errorstreamingevent.ts +129 -0
  164. package/src/models/components/executionnamedstreamingevent.ts +142 -0
  165. package/src/models/components/executionreviewedstreamingevent.ts +122 -0
  166. package/src/models/components/executionreviewrequiredstreamingevent.ts +130 -0
  167. package/src/models/components/filepart.ts +1 -1
  168. package/src/models/components/index.ts +17 -0
  169. package/src/models/components/invokedeploymentrequest.ts +32 -27
  170. package/src/models/components/timeoutstreamingevent.ts +125 -0
  171. package/src/models/components/toolexecutionfailedstreamingevent.ts +406 -0
  172. package/src/models/components/toolexecutionfinishedstreamingevent.ts +373 -0
  173. package/src/models/components/toolexecutionstartedstreamingevent.ts +350 -0
  174. package/src/models/components/toolresultpart.ts +1 -1
  175. package/src/models/operations/createagentresponserequest.ts +20 -321
  176. package/src/models/operations/createbudget.ts +2 -2
  177. package/src/models/operations/createcontact.ts +2 -2
  178. package/src/models/operations/createdataset.ts +2 -2
  179. package/src/models/operations/createdatasetitem.ts +8 -8
  180. package/src/models/operations/createdatasource.ts +2 -2
  181. package/src/models/operations/createeval.ts +318 -615
  182. package/src/models/operations/createtool.ts +12 -12
  183. package/src/models/operations/fileget.ts +2 -2
  184. package/src/models/operations/filelist.ts +2 -2
  185. package/src/models/operations/fileupload.ts +2 -2
  186. package/src/models/operations/getalltools.ts +12 -12
  187. package/src/models/operations/getbudget.ts +2 -2
  188. package/src/models/operations/getevals.ts +52 -287
  189. package/src/models/operations/invokeagent.ts +36 -373
  190. package/src/models/operations/listbudgets.ts +2 -2
  191. package/src/models/operations/listcontacts.ts +2 -2
  192. package/src/models/operations/listdatasetdatapoints.ts +8 -8
  193. package/src/models/operations/listdatasets.ts +2 -2
  194. package/src/models/operations/listdatasources.ts +2 -2
  195. package/src/models/operations/listknowledgebases.ts +82 -102
  196. package/src/models/operations/retrievecontact.ts +2 -2
  197. package/src/models/operations/retrievedatapoint.ts +8 -8
  198. package/src/models/operations/retrievedataset.ts +2 -2
  199. package/src/models/operations/retrievedatasource.ts +2 -2
  200. package/src/models/operations/retrievetool.ts +12 -12
  201. package/src/models/operations/runagent.ts +17 -365
  202. package/src/models/operations/streamagent.ts +794 -6985
  203. package/src/models/operations/streamrunagent.ts +3939 -9983
  204. package/src/models/operations/updatebudget.ts +2 -2
  205. package/src/models/operations/updatecontact.ts +2 -2
  206. package/src/models/operations/updatedatapoint.ts +8 -8
  207. package/src/models/operations/updatedataset.ts +2 -2
  208. package/src/models/operations/updatedatasource.ts +2 -2
  209. package/src/models/operations/updateeval.ts +52 -287
  210. package/src/models/operations/updatetool.ts +14 -14
@@ -43,86 +43,13 @@ export type InvokeAgentRole =
43
43
  | InvokeAgentRoleUserMessage
44
44
  | InvokeAgentRoleToolMessage;
45
45
 
46
- export const InvokeAgentPublicMessagePartAgentsKind = {
47
- ToolResult: "tool_result",
48
- } as const;
49
- export type InvokeAgentPublicMessagePartAgentsKind = ClosedEnum<
50
- typeof InvokeAgentPublicMessagePartAgentsKind
51
- >;
52
-
53
- /**
54
- * 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.
55
- */
56
- export type PublicMessagePartToolResultPart = {
57
- kind: InvokeAgentPublicMessagePartAgentsKind;
58
- toolCallId: string;
59
- result?: any | undefined;
60
- metadata?: { [k: string]: any } | undefined;
61
- };
62
-
63
- export const InvokeAgentPublicMessagePartKind = {
64
- File: "file",
65
- } as const;
66
- export type InvokeAgentPublicMessagePartKind = ClosedEnum<
67
- typeof InvokeAgentPublicMessagePartKind
68
- >;
69
-
70
- /**
71
- * File in URI format. Check in the model's documentation for the supported mime types for the URI format
72
- */
73
- export type FileFileInURIFormat = {
74
- /**
75
- * URL for the File content
76
- */
77
- uri: string;
78
- /**
79
- * Optional mimeType for the file
80
- */
81
- mimeType?: string | undefined;
82
- /**
83
- * Optional name for the file
84
- */
85
- name?: string | undefined;
86
- };
87
-
88
- /**
89
- * Binary in base64 format. Check in the model's documentation for the supported mime types for the binary format.
90
- */
91
- export type FileBinaryFormat = {
92
- /**
93
- * base64 encoded content of the file
94
- */
95
- bytes: string;
96
- /**
97
- * Optional mimeType for the file
98
- */
99
- mimeType?: string | undefined;
100
- /**
101
- * Optional name for the file
102
- */
103
- name?: string | undefined;
104
- };
105
-
106
- export type InvokeAgentPublicMessagePartFile =
107
- | FileBinaryFormat
108
- | FileFileInURIFormat;
109
-
110
- /**
111
- * File attachment part. Use this to send files (images, documents, etc.) to the agent for processing.
112
- */
113
- export type PublicMessagePartFilePart = {
114
- kind: InvokeAgentPublicMessagePartKind;
115
- file: FileBinaryFormat | FileFileInURIFormat;
116
- metadata?: { [k: string]: any } | undefined;
117
- };
118
-
119
46
  /**
120
47
  * 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.
121
48
  */
122
49
  export type InvokeAgentPublicMessagePart =
123
50
  | components.TextPart
124
- | PublicMessagePartFilePart
125
- | PublicMessagePartToolResultPart;
51
+ | components.FilePart
52
+ | components.ToolResultPart;
126
53
 
127
54
  /**
128
55
  * The A2A message to send to the agent (user input or tool results)
@@ -140,9 +67,7 @@ export type InvokeAgentA2AMessage = {
140
67
  * A2A message parts (text, file, or tool_result only)
141
68
  */
142
69
  parts: Array<
143
- | components.TextPart
144
- | PublicMessagePartFilePart
145
- | PublicMessagePartToolResultPart
70
+ components.TextPart | components.FilePart | components.ToolResultPart
146
71
  >;
147
72
  };
148
73
 
@@ -242,13 +167,13 @@ export type InvokeAgentRequest = {
242
167
  /**
243
168
  * A2A entity type identifier
244
169
  */
245
- export const InvokeAgentKind = {
170
+ export const Kind = {
246
171
  Task: "task",
247
172
  } as const;
248
173
  /**
249
174
  * A2A entity type identifier
250
175
  */
251
- export type InvokeAgentKind = ClosedEnum<typeof InvokeAgentKind>;
176
+ export type Kind = ClosedEnum<typeof Kind>;
252
177
 
253
178
  /**
254
179
  * Current state of the agent task execution. Values: submitted (queued), working (executing), input-required (awaiting user input), completed (finished successfully), failed (error occurred). Note: auth-required, canceled, and rejected statuses are defined for A2A protocol compatibility but are not currently supported in task execution.
@@ -268,10 +193,10 @@ export const TaskState = {
268
193
  */
269
194
  export type TaskState = ClosedEnum<typeof TaskState>;
270
195
 
271
- export const InvokeAgentAgentsKind = {
196
+ export const InvokeAgentKind = {
272
197
  Message: "message",
273
198
  } as const;
274
- export type InvokeAgentAgentsKind = ClosedEnum<typeof InvokeAgentAgentsKind>;
199
+ export type InvokeAgentKind = ClosedEnum<typeof InvokeAgentKind>;
275
200
 
276
201
  /**
277
202
  * Role of the message sender in the A2A protocol. Values: user (end user), agent (AI agent), tool (tool execution result), system (system instructions/prompts).
@@ -298,7 +223,7 @@ export type InvokeAgentParts =
298
223
  * Optional A2A message providing additional context about the current status
299
224
  */
300
225
  export type TaskStatusMessage = {
301
- kind: InvokeAgentAgentsKind;
226
+ kind: InvokeAgentKind;
302
227
  messageId: string;
303
228
  /**
304
229
  * Role of the message sender in the A2A protocol. Values: user (end user), agent (AI agent), tool (tool execution result), system (system instructions/prompts).
@@ -346,7 +271,7 @@ export type InvokeAgentA2ATaskResponse = {
346
271
  /**
347
272
  * A2A entity type identifier
348
273
  */
349
- kind: InvokeAgentKind;
274
+ kind: Kind;
350
275
  /**
351
276
  * Current task status information
352
277
  */
@@ -412,267 +337,6 @@ export function invokeAgentRoleFromJSON(
412
337
  );
413
338
  }
414
339
 
415
- /** @internal */
416
- export const InvokeAgentPublicMessagePartAgentsKind$inboundSchema:
417
- z.ZodNativeEnum<typeof InvokeAgentPublicMessagePartAgentsKind> = z.nativeEnum(
418
- InvokeAgentPublicMessagePartAgentsKind,
419
- );
420
- /** @internal */
421
- export const InvokeAgentPublicMessagePartAgentsKind$outboundSchema:
422
- z.ZodNativeEnum<typeof InvokeAgentPublicMessagePartAgentsKind> =
423
- InvokeAgentPublicMessagePartAgentsKind$inboundSchema;
424
-
425
- /** @internal */
426
- export const PublicMessagePartToolResultPart$inboundSchema: z.ZodType<
427
- PublicMessagePartToolResultPart,
428
- z.ZodTypeDef,
429
- unknown
430
- > = z.object({
431
- kind: InvokeAgentPublicMessagePartAgentsKind$inboundSchema,
432
- tool_call_id: z.string(),
433
- result: z.any().optional(),
434
- metadata: z.record(z.any()).optional(),
435
- }).transform((v) => {
436
- return remap$(v, {
437
- "tool_call_id": "toolCallId",
438
- });
439
- });
440
- /** @internal */
441
- export type PublicMessagePartToolResultPart$Outbound = {
442
- kind: string;
443
- tool_call_id: string;
444
- result?: any | undefined;
445
- metadata?: { [k: string]: any } | undefined;
446
- };
447
-
448
- /** @internal */
449
- export const PublicMessagePartToolResultPart$outboundSchema: z.ZodType<
450
- PublicMessagePartToolResultPart$Outbound,
451
- z.ZodTypeDef,
452
- PublicMessagePartToolResultPart
453
- > = z.object({
454
- kind: InvokeAgentPublicMessagePartAgentsKind$outboundSchema,
455
- toolCallId: z.string(),
456
- result: z.any().optional(),
457
- metadata: z.record(z.any()).optional(),
458
- }).transform((v) => {
459
- return remap$(v, {
460
- toolCallId: "tool_call_id",
461
- });
462
- });
463
-
464
- export function publicMessagePartToolResultPartToJSON(
465
- publicMessagePartToolResultPart: PublicMessagePartToolResultPart,
466
- ): string {
467
- return JSON.stringify(
468
- PublicMessagePartToolResultPart$outboundSchema.parse(
469
- publicMessagePartToolResultPart,
470
- ),
471
- );
472
- }
473
- export function publicMessagePartToolResultPartFromJSON(
474
- jsonString: string,
475
- ): SafeParseResult<PublicMessagePartToolResultPart, SDKValidationError> {
476
- return safeParse(
477
- jsonString,
478
- (x) => PublicMessagePartToolResultPart$inboundSchema.parse(JSON.parse(x)),
479
- `Failed to parse 'PublicMessagePartToolResultPart' from JSON`,
480
- );
481
- }
482
-
483
- /** @internal */
484
- export const InvokeAgentPublicMessagePartKind$inboundSchema: z.ZodNativeEnum<
485
- typeof InvokeAgentPublicMessagePartKind
486
- > = z.nativeEnum(InvokeAgentPublicMessagePartKind);
487
- /** @internal */
488
- export const InvokeAgentPublicMessagePartKind$outboundSchema: z.ZodNativeEnum<
489
- typeof InvokeAgentPublicMessagePartKind
490
- > = InvokeAgentPublicMessagePartKind$inboundSchema;
491
-
492
- /** @internal */
493
- export const FileFileInURIFormat$inboundSchema: z.ZodType<
494
- FileFileInURIFormat,
495
- z.ZodTypeDef,
496
- unknown
497
- > = z.object({
498
- uri: z.string(),
499
- mimeType: z.string().optional(),
500
- name: z.string().optional(),
501
- });
502
- /** @internal */
503
- export type FileFileInURIFormat$Outbound = {
504
- uri: string;
505
- mimeType?: string | undefined;
506
- name?: string | undefined;
507
- };
508
-
509
- /** @internal */
510
- export const FileFileInURIFormat$outboundSchema: z.ZodType<
511
- FileFileInURIFormat$Outbound,
512
- z.ZodTypeDef,
513
- FileFileInURIFormat
514
- > = z.object({
515
- uri: z.string(),
516
- mimeType: z.string().optional(),
517
- name: z.string().optional(),
518
- });
519
-
520
- export function fileFileInURIFormatToJSON(
521
- fileFileInURIFormat: FileFileInURIFormat,
522
- ): string {
523
- return JSON.stringify(
524
- FileFileInURIFormat$outboundSchema.parse(fileFileInURIFormat),
525
- );
526
- }
527
- export function fileFileInURIFormatFromJSON(
528
- jsonString: string,
529
- ): SafeParseResult<FileFileInURIFormat, SDKValidationError> {
530
- return safeParse(
531
- jsonString,
532
- (x) => FileFileInURIFormat$inboundSchema.parse(JSON.parse(x)),
533
- `Failed to parse 'FileFileInURIFormat' from JSON`,
534
- );
535
- }
536
-
537
- /** @internal */
538
- export const FileBinaryFormat$inboundSchema: z.ZodType<
539
- FileBinaryFormat,
540
- z.ZodTypeDef,
541
- unknown
542
- > = z.object({
543
- bytes: z.string(),
544
- mimeType: z.string().optional(),
545
- name: z.string().optional(),
546
- });
547
- /** @internal */
548
- export type FileBinaryFormat$Outbound = {
549
- bytes: string;
550
- mimeType?: string | undefined;
551
- name?: string | undefined;
552
- };
553
-
554
- /** @internal */
555
- export const FileBinaryFormat$outboundSchema: z.ZodType<
556
- FileBinaryFormat$Outbound,
557
- z.ZodTypeDef,
558
- FileBinaryFormat
559
- > = z.object({
560
- bytes: z.string(),
561
- mimeType: z.string().optional(),
562
- name: z.string().optional(),
563
- });
564
-
565
- export function fileBinaryFormatToJSON(
566
- fileBinaryFormat: FileBinaryFormat,
567
- ): string {
568
- return JSON.stringify(
569
- FileBinaryFormat$outboundSchema.parse(fileBinaryFormat),
570
- );
571
- }
572
- export function fileBinaryFormatFromJSON(
573
- jsonString: string,
574
- ): SafeParseResult<FileBinaryFormat, SDKValidationError> {
575
- return safeParse(
576
- jsonString,
577
- (x) => FileBinaryFormat$inboundSchema.parse(JSON.parse(x)),
578
- `Failed to parse 'FileBinaryFormat' from JSON`,
579
- );
580
- }
581
-
582
- /** @internal */
583
- export const InvokeAgentPublicMessagePartFile$inboundSchema: z.ZodType<
584
- InvokeAgentPublicMessagePartFile,
585
- z.ZodTypeDef,
586
- unknown
587
- > = z.union([
588
- z.lazy(() => FileBinaryFormat$inboundSchema),
589
- z.lazy(() => FileFileInURIFormat$inboundSchema),
590
- ]);
591
- /** @internal */
592
- export type InvokeAgentPublicMessagePartFile$Outbound =
593
- | FileBinaryFormat$Outbound
594
- | FileFileInURIFormat$Outbound;
595
-
596
- /** @internal */
597
- export const InvokeAgentPublicMessagePartFile$outboundSchema: z.ZodType<
598
- InvokeAgentPublicMessagePartFile$Outbound,
599
- z.ZodTypeDef,
600
- InvokeAgentPublicMessagePartFile
601
- > = z.union([
602
- z.lazy(() => FileBinaryFormat$outboundSchema),
603
- z.lazy(() => FileFileInURIFormat$outboundSchema),
604
- ]);
605
-
606
- export function invokeAgentPublicMessagePartFileToJSON(
607
- invokeAgentPublicMessagePartFile: InvokeAgentPublicMessagePartFile,
608
- ): string {
609
- return JSON.stringify(
610
- InvokeAgentPublicMessagePartFile$outboundSchema.parse(
611
- invokeAgentPublicMessagePartFile,
612
- ),
613
- );
614
- }
615
- export function invokeAgentPublicMessagePartFileFromJSON(
616
- jsonString: string,
617
- ): SafeParseResult<InvokeAgentPublicMessagePartFile, SDKValidationError> {
618
- return safeParse(
619
- jsonString,
620
- (x) => InvokeAgentPublicMessagePartFile$inboundSchema.parse(JSON.parse(x)),
621
- `Failed to parse 'InvokeAgentPublicMessagePartFile' from JSON`,
622
- );
623
- }
624
-
625
- /** @internal */
626
- export const PublicMessagePartFilePart$inboundSchema: z.ZodType<
627
- PublicMessagePartFilePart,
628
- z.ZodTypeDef,
629
- unknown
630
- > = z.object({
631
- kind: InvokeAgentPublicMessagePartKind$inboundSchema,
632
- file: z.union([
633
- z.lazy(() => FileBinaryFormat$inboundSchema),
634
- z.lazy(() => FileFileInURIFormat$inboundSchema),
635
- ]),
636
- metadata: z.record(z.any()).optional(),
637
- });
638
- /** @internal */
639
- export type PublicMessagePartFilePart$Outbound = {
640
- kind: string;
641
- file: FileBinaryFormat$Outbound | FileFileInURIFormat$Outbound;
642
- metadata?: { [k: string]: any } | undefined;
643
- };
644
-
645
- /** @internal */
646
- export const PublicMessagePartFilePart$outboundSchema: z.ZodType<
647
- PublicMessagePartFilePart$Outbound,
648
- z.ZodTypeDef,
649
- PublicMessagePartFilePart
650
- > = z.object({
651
- kind: InvokeAgentPublicMessagePartKind$outboundSchema,
652
- file: z.union([
653
- z.lazy(() => FileBinaryFormat$outboundSchema),
654
- z.lazy(() => FileFileInURIFormat$outboundSchema),
655
- ]),
656
- metadata: z.record(z.any()).optional(),
657
- });
658
-
659
- export function publicMessagePartFilePartToJSON(
660
- publicMessagePartFilePart: PublicMessagePartFilePart,
661
- ): string {
662
- return JSON.stringify(
663
- PublicMessagePartFilePart$outboundSchema.parse(publicMessagePartFilePart),
664
- );
665
- }
666
- export function publicMessagePartFilePartFromJSON(
667
- jsonString: string,
668
- ): SafeParseResult<PublicMessagePartFilePart, SDKValidationError> {
669
- return safeParse(
670
- jsonString,
671
- (x) => PublicMessagePartFilePart$inboundSchema.parse(JSON.parse(x)),
672
- `Failed to parse 'PublicMessagePartFilePart' from JSON`,
673
- );
674
- }
675
-
676
340
  /** @internal */
677
341
  export const InvokeAgentPublicMessagePart$inboundSchema: z.ZodType<
678
342
  InvokeAgentPublicMessagePart,
@@ -680,14 +344,14 @@ export const InvokeAgentPublicMessagePart$inboundSchema: z.ZodType<
680
344
  unknown
681
345
  > = z.union([
682
346
  components.TextPart$inboundSchema,
683
- z.lazy(() => PublicMessagePartFilePart$inboundSchema),
684
- z.lazy(() => PublicMessagePartToolResultPart$inboundSchema),
347
+ components.FilePart$inboundSchema,
348
+ components.ToolResultPart$inboundSchema,
685
349
  ]);
686
350
  /** @internal */
687
351
  export type InvokeAgentPublicMessagePart$Outbound =
688
352
  | components.TextPart$Outbound
689
- | PublicMessagePartFilePart$Outbound
690
- | PublicMessagePartToolResultPart$Outbound;
353
+ | components.FilePart$Outbound
354
+ | components.ToolResultPart$Outbound;
691
355
 
692
356
  /** @internal */
693
357
  export const InvokeAgentPublicMessagePart$outboundSchema: z.ZodType<
@@ -696,8 +360,8 @@ export const InvokeAgentPublicMessagePart$outboundSchema: z.ZodType<
696
360
  InvokeAgentPublicMessagePart
697
361
  > = z.union([
698
362
  components.TextPart$outboundSchema,
699
- z.lazy(() => PublicMessagePartFilePart$outboundSchema),
700
- z.lazy(() => PublicMessagePartToolResultPart$outboundSchema),
363
+ components.FilePart$outboundSchema,
364
+ components.ToolResultPart$outboundSchema,
701
365
  ]);
702
366
 
703
367
  export function invokeAgentPublicMessagePartToJSON(
@@ -733,8 +397,8 @@ export const InvokeAgentA2AMessage$inboundSchema: z.ZodType<
733
397
  parts: z.array(
734
398
  z.union([
735
399
  components.TextPart$inboundSchema,
736
- z.lazy(() => PublicMessagePartFilePart$inboundSchema),
737
- z.lazy(() => PublicMessagePartToolResultPart$inboundSchema),
400
+ components.FilePart$inboundSchema,
401
+ components.ToolResultPart$inboundSchema,
738
402
  ]),
739
403
  ),
740
404
  });
@@ -744,8 +408,8 @@ export type InvokeAgentA2AMessage$Outbound = {
744
408
  role: string | string;
745
409
  parts: Array<
746
410
  | components.TextPart$Outbound
747
- | PublicMessagePartFilePart$Outbound
748
- | PublicMessagePartToolResultPart$Outbound
411
+ | components.FilePart$Outbound
412
+ | components.ToolResultPart$Outbound
749
413
  >;
750
414
  };
751
415
 
@@ -763,8 +427,8 @@ export const InvokeAgentA2AMessage$outboundSchema: z.ZodType<
763
427
  parts: z.array(
764
428
  z.union([
765
429
  components.TextPart$outboundSchema,
766
- z.lazy(() => PublicMessagePartFilePart$outboundSchema),
767
- z.lazy(() => PublicMessagePartToolResultPart$outboundSchema),
430
+ components.FilePart$outboundSchema,
431
+ components.ToolResultPart$outboundSchema,
768
432
  ]),
769
433
  ),
770
434
  });
@@ -1055,13 +719,12 @@ export function invokeAgentRequestFromJSON(
1055
719
  }
1056
720
 
1057
721
  /** @internal */
1058
- export const InvokeAgentKind$inboundSchema: z.ZodNativeEnum<
1059
- typeof InvokeAgentKind
1060
- > = z.nativeEnum(InvokeAgentKind);
722
+ export const Kind$inboundSchema: z.ZodNativeEnum<typeof Kind> = z.nativeEnum(
723
+ Kind,
724
+ );
1061
725
  /** @internal */
1062
- export const InvokeAgentKind$outboundSchema: z.ZodNativeEnum<
1063
- typeof InvokeAgentKind
1064
- > = InvokeAgentKind$inboundSchema;
726
+ export const Kind$outboundSchema: z.ZodNativeEnum<typeof Kind> =
727
+ Kind$inboundSchema;
1065
728
 
1066
729
  /** @internal */
1067
730
  export const TaskState$inboundSchema: z.ZodNativeEnum<typeof TaskState> = z
@@ -1071,13 +734,13 @@ export const TaskState$outboundSchema: z.ZodNativeEnum<typeof TaskState> =
1071
734
  TaskState$inboundSchema;
1072
735
 
1073
736
  /** @internal */
1074
- export const InvokeAgentAgentsKind$inboundSchema: z.ZodNativeEnum<
1075
- typeof InvokeAgentAgentsKind
1076
- > = z.nativeEnum(InvokeAgentAgentsKind);
737
+ export const InvokeAgentKind$inboundSchema: z.ZodNativeEnum<
738
+ typeof InvokeAgentKind
739
+ > = z.nativeEnum(InvokeAgentKind);
1077
740
  /** @internal */
1078
- export const InvokeAgentAgentsKind$outboundSchema: z.ZodNativeEnum<
1079
- typeof InvokeAgentAgentsKind
1080
- > = InvokeAgentAgentsKind$inboundSchema;
741
+ export const InvokeAgentKind$outboundSchema: z.ZodNativeEnum<
742
+ typeof InvokeAgentKind
743
+ > = InvokeAgentKind$inboundSchema;
1081
744
 
1082
745
  /** @internal */
1083
746
  export const ExtendedMessageRole$inboundSchema: z.ZodNativeEnum<
@@ -1172,7 +835,7 @@ export const TaskStatusMessage$inboundSchema: z.ZodType<
1172
835
  z.ZodTypeDef,
1173
836
  unknown
1174
837
  > = z.object({
1175
- kind: InvokeAgentAgentsKind$inboundSchema,
838
+ kind: InvokeAgentKind$inboundSchema,
1176
839
  messageId: z.string(),
1177
840
  role: ExtendedMessageRole$inboundSchema,
1178
841
  parts: z.array(
@@ -1225,7 +888,7 @@ export const TaskStatusMessage$outboundSchema: z.ZodType<
1225
888
  z.ZodTypeDef,
1226
889
  TaskStatusMessage
1227
890
  > = z.object({
1228
- kind: InvokeAgentAgentsKind$outboundSchema,
891
+ kind: InvokeAgentKind$outboundSchema,
1229
892
  messageId: z.string(),
1230
893
  role: ExtendedMessageRole$outboundSchema,
1231
894
  parts: z.array(
@@ -1325,7 +988,7 @@ export const InvokeAgentA2ATaskResponse$inboundSchema: z.ZodType<
1325
988
  > = z.object({
1326
989
  id: z.string(),
1327
990
  contextId: z.string(),
1328
- kind: InvokeAgentKind$inboundSchema,
991
+ kind: Kind$inboundSchema,
1329
992
  status: z.lazy(() => TaskStatus$inboundSchema),
1330
993
  metadata: z.record(z.any()).optional(),
1331
994
  });
@@ -1346,7 +1009,7 @@ export const InvokeAgentA2ATaskResponse$outboundSchema: z.ZodType<
1346
1009
  > = z.object({
1347
1010
  id: z.string(),
1348
1011
  contextId: z.string(),
1349
- kind: InvokeAgentKind$outboundSchema,
1012
+ kind: Kind$outboundSchema,
1350
1013
  status: z.lazy(() => TaskStatus$outboundSchema),
1351
1014
  metadata: z.record(z.any()).optional(),
1352
1015
  });
@@ -381,7 +381,7 @@ export const ListBudgetsData$inboundSchema: z.ZodType<
381
381
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
382
382
  .optional(),
383
383
  updated: z.string().datetime({ offset: true }).default(
384
- "2025-11-25T12:44:28.109Z",
384
+ "2025-11-25T16:34:40.403Z",
385
385
  ).transform(v => new Date(v)),
386
386
  }).transform((v) => {
387
387
  return remap$(v, {
@@ -415,7 +415,7 @@ export const ListBudgetsData$outboundSchema: z.ZodType<
415
415
  isActive: z.boolean(),
416
416
  consumption: z.lazy(() => ListBudgetsConsumption$outboundSchema).optional(),
417
417
  created: z.date().transform(v => v.toISOString()).optional(),
418
- updated: z.date().default(() => new Date("2025-11-25T12:44:28.109Z"))
418
+ updated: z.date().default(() => new Date("2025-11-25T16:34:40.403Z"))
419
419
  .transform(v => v.toISOString()),
420
420
  }).transform((v) => {
421
421
  return remap$(v, {
@@ -298,7 +298,7 @@ export const Data$inboundSchema: z.ZodType<Data, z.ZodTypeDef, unknown> = z
298
298
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
299
299
  .optional(),
300
300
  updated: z.string().datetime({ offset: true }).default(
301
- "2025-11-25T12:44:27.774Z",
301
+ "2025-11-25T16:34:40.058Z",
302
302
  ).transform(v => new Date(v)),
303
303
  metrics: z.lazy(() => ListContactsMetrics$inboundSchema),
304
304
  }).transform((v) => {
@@ -334,7 +334,7 @@ export const Data$outboundSchema: z.ZodType<Data$Outbound, z.ZodTypeDef, Data> =
334
334
  tags: z.array(z.string()).optional(),
335
335
  metadata: z.record(z.any()).optional(),
336
336
  created: z.date().transform(v => v.toISOString()).optional(),
337
- updated: z.date().default(() => new Date("2025-11-25T12:44:27.774Z"))
337
+ updated: z.date().default(() => new Date("2025-11-25T16:34:40.058Z"))
338
338
  .transform(v => v.toISOString()),
339
339
  metrics: z.lazy(() => ListContactsMetrics$outboundSchema),
340
340
  }).transform((v) => {
@@ -2622,7 +2622,7 @@ export const ListDatasetDatapointsEvaluations3$inboundSchema: z.ZodType<
2622
2622
  source: ListDatasetDatapointsEvaluationsSource$inboundSchema.default("orq"),
2623
2623
  reviewed_by_id: z.string(),
2624
2624
  reviewed_at: z.string().datetime({ offset: true }).default(
2625
- "2025-11-25T12:44:38.522Z",
2625
+ "2025-11-25T16:34:51.471Z",
2626
2626
  ).transform(v => new Date(v)),
2627
2627
  type: ListDatasetDatapointsEvaluationsDatasetsType$inboundSchema,
2628
2628
  values: z.array(z.string()),
@@ -2657,7 +2657,7 @@ export const ListDatasetDatapointsEvaluations3$outboundSchema: z.ZodType<
2657
2657
  humanReviewId: z.string(),
2658
2658
  source: ListDatasetDatapointsEvaluationsSource$outboundSchema.default("orq"),
2659
2659
  reviewedById: z.string(),
2660
- reviewedAt: z.date().default(() => new Date("2025-11-25T12:44:38.522Z"))
2660
+ reviewedAt: z.date().default(() => new Date("2025-11-25T16:34:51.471Z"))
2661
2661
  .transform(v => v.toISOString()),
2662
2662
  type: ListDatasetDatapointsEvaluationsDatasetsType$outboundSchema,
2663
2663
  values: z.array(z.string()),
@@ -2738,7 +2738,7 @@ export const ListDatasetDatapointsEvaluations2$inboundSchema: z.ZodType<
2738
2738
  .default("orq"),
2739
2739
  reviewed_by_id: z.string(),
2740
2740
  reviewed_at: z.string().datetime({ offset: true }).default(
2741
- "2025-11-25T12:44:38.521Z",
2741
+ "2025-11-25T16:34:51.471Z",
2742
2742
  ).transform(v => new Date(v)),
2743
2743
  type: ListDatasetDatapointsEvaluationsType$inboundSchema,
2744
2744
  value: z.number(),
@@ -2775,7 +2775,7 @@ export const ListDatasetDatapointsEvaluations2$outboundSchema: z.ZodType<
2775
2775
  source: ListDatasetDatapointsEvaluationsDatasetsResponseSource$outboundSchema
2776
2776
  .default("orq"),
2777
2777
  reviewedById: z.string(),
2778
- reviewedAt: z.date().default(() => new Date("2025-11-25T12:44:38.521Z"))
2778
+ reviewedAt: z.date().default(() => new Date("2025-11-25T16:34:51.471Z"))
2779
2779
  .transform(v => v.toISOString()),
2780
2780
  type: ListDatasetDatapointsEvaluationsType$outboundSchema,
2781
2781
  value: z.number(),
@@ -2851,7 +2851,7 @@ export const ListDatasetDatapointsEvaluations1$inboundSchema: z.ZodType<
2851
2851
  ),
2852
2852
  reviewed_by_id: z.string(),
2853
2853
  reviewed_at: z.string().datetime({ offset: true }).default(
2854
- "2025-11-25T12:44:38.520Z",
2854
+ "2025-11-25T16:34:51.470Z",
2855
2855
  ).transform(v => new Date(v)),
2856
2856
  type: ListDatasetDatapointsEvaluationsDatasetsResponseType$inboundSchema,
2857
2857
  value: z.string(),
@@ -2889,7 +2889,7 @@ export const ListDatasetDatapointsEvaluations1$outboundSchema: z.ZodType<
2889
2889
  "orq",
2890
2890
  ),
2891
2891
  reviewedById: z.string(),
2892
- reviewedAt: z.date().default(() => new Date("2025-11-25T12:44:38.520Z"))
2892
+ reviewedAt: z.date().default(() => new Date("2025-11-25T16:34:51.470Z"))
2893
2893
  .transform(v => v.toISOString()),
2894
2894
  type: ListDatasetDatapointsEvaluationsDatasetsResponseType$outboundSchema,
2895
2895
  value: z.string(),
@@ -3002,7 +3002,7 @@ export const ListDatasetDatapointsData$inboundSchema: z.ZodType<
3002
3002
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
3003
3003
  .optional(),
3004
3004
  updated: z.string().datetime({ offset: true }).default(
3005
- "2025-11-25T12:44:27.774Z",
3005
+ "2025-11-25T16:34:40.058Z",
3006
3006
  ).transform(v => new Date(v)),
3007
3007
  }).transform((v) => {
3008
3008
  return remap$(v, {
@@ -3082,7 +3082,7 @@ export const ListDatasetDatapointsData$outboundSchema: z.ZodType<
3082
3082
  createdById: z.string().optional(),
3083
3083
  updatedById: z.string().optional(),
3084
3084
  created: z.date().transform(v => v.toISOString()).optional(),
3085
- updated: z.date().default(() => new Date("2025-11-25T12:44:27.774Z"))
3085
+ updated: z.date().default(() => new Date("2025-11-25T16:34:40.058Z"))
3086
3086
  .transform(v => v.toISOString()),
3087
3087
  }).transform((v) => {
3088
3088
  return remap$(v, {
@@ -211,7 +211,7 @@ export const ListDatasetsData$inboundSchema: z.ZodType<
211
211
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
212
212
  .optional(),
213
213
  updated: z.string().datetime({ offset: true }).default(
214
- "2025-11-25T12:44:27.774Z",
214
+ "2025-11-25T16:34:40.058Z",
215
215
  ).transform(v => new Date(v)),
216
216
  }).transform((v) => {
217
217
  return remap$(v, {
@@ -250,7 +250,7 @@ export const ListDatasetsData$outboundSchema: z.ZodType<
250
250
  createdById: z.string().optional(),
251
251
  updatedById: z.string().optional(),
252
252
  created: z.date().transform(v => v.toISOString()).optional(),
253
- updated: z.date().default(() => new Date("2025-11-25T12:44:27.774Z"))
253
+ updated: z.date().default(() => new Date("2025-11-25T16:34:40.058Z"))
254
254
  .transform(v => v.toISOString()),
255
255
  }).transform((v) => {
256
256
  return remap$(v, {
@@ -224,7 +224,7 @@ export const ListDatasourcesData$inboundSchema: z.ZodType<
224
224
  z.ZodTypeDef,
225
225
  unknown
226
226
  > = z.object({
227
- _id: z.string().default("01KAXGPT57ZVZW7R4TAJHCQ065"),
227
+ _id: z.string().default("01KAXXWBBZK3SF8AJ6696FCWSF"),
228
228
  display_name: z.string(),
229
229
  description: z.string().optional(),
230
230
  status: ListDatasourcesStatus$inboundSchema,
@@ -267,7 +267,7 @@ export const ListDatasourcesData$outboundSchema: z.ZodType<
267
267
  z.ZodTypeDef,
268
268
  ListDatasourcesData
269
269
  > = z.object({
270
- id: z.string().default("01KAXGPT57ZVZW7R4TAJHCQ065"),
270
+ id: z.string().default("01KAXXWBBZK3SF8AJ6696FCWSF"),
271
271
  displayName: z.string(),
272
272
  description: z.string().optional(),
273
273
  status: ListDatasourcesStatus$outboundSchema,