@orq-ai/node 4.0.2 → 4.0.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 (170) hide show
  1. package/bin/mcp-server.js +213 -213
  2. package/bin/mcp-server.js.map +36 -36
  3. package/examples/package-lock.json +1 -1
  4. package/jsr.json +1 -1
  5. package/lib/config.d.ts +2 -2
  6. package/lib/config.js +2 -2
  7. package/mcp-server/mcp-server.js +1 -1
  8. package/mcp-server/server.js +1 -1
  9. package/models/operations/createbudget.js +2 -2
  10. package/models/operations/createcontact.js +2 -2
  11. package/models/operations/createdataset.js +2 -2
  12. package/models/operations/createdatasetitem.js +8 -8
  13. package/models/operations/createdatasource.js +2 -2
  14. package/models/operations/createeval.js +28 -28
  15. package/models/operations/createtool.js +12 -12
  16. package/models/operations/fileget.js +2 -2
  17. package/models/operations/filelist.js +2 -2
  18. package/models/operations/fileupload.js +2 -2
  19. package/models/operations/getalltools.js +12 -12
  20. package/models/operations/getbudget.js +2 -2
  21. package/models/operations/getevals.js +28 -28
  22. package/models/operations/listbudgets.js +2 -2
  23. package/models/operations/listcontacts.js +2 -2
  24. package/models/operations/listdatasetdatapoints.js +8 -8
  25. package/models/operations/listdatasets.js +2 -2
  26. package/models/operations/listdatasources.js +2 -2
  27. package/models/operations/retrievecontact.js +2 -2
  28. package/models/operations/retrievedatapoint.js +8 -8
  29. package/models/operations/retrievedataset.js +2 -2
  30. package/models/operations/retrievedatasource.js +2 -2
  31. package/models/operations/retrievetool.js +12 -12
  32. package/models/operations/runagent.js +2 -2
  33. package/models/operations/streamrunagent.js +2 -2
  34. package/models/operations/updatebudget.js +2 -2
  35. package/models/operations/updatecontact.js +2 -2
  36. package/models/operations/updatedatapoint.js +8 -8
  37. package/models/operations/updatedataset.js +2 -2
  38. package/models/operations/updatedatasource.js +2 -2
  39. package/models/operations/updateeval.js +28 -28
  40. package/models/operations/updatetool.js +14 -14
  41. package/package.json +1 -1
  42. package/packages/orq-rc/README.md +38 -47
  43. package/packages/orq-rc/docs/sdks/agents/README.md +230 -529
  44. package/packages/orq-rc/docs/sdks/responses/README.md +60 -65
  45. package/packages/orq-rc/examples/package-lock.json +1 -1
  46. package/packages/orq-rc/jsr.json +1 -1
  47. package/packages/orq-rc/package-lock.json +2 -2
  48. package/packages/orq-rc/package.json +1 -1
  49. package/packages/orq-rc/src/funcs/agentsCreate.ts +16 -14
  50. package/packages/orq-rc/src/funcs/agentsDelete.ts +10 -6
  51. package/packages/orq-rc/src/funcs/agentsInvoke.ts +16 -6
  52. package/packages/orq-rc/src/funcs/agentsList.ts +18 -6
  53. package/packages/orq-rc/src/funcs/agentsResponsesCreate.ts +23 -12
  54. package/packages/orq-rc/src/funcs/agentsRetrieve.ts +21 -16
  55. package/packages/orq-rc/src/funcs/agentsRun.ts +4 -2
  56. package/packages/orq-rc/src/funcs/agentsStream.ts +16 -6
  57. package/packages/orq-rc/src/funcs/agentsStreamRun.ts +4 -2
  58. package/packages/orq-rc/src/funcs/agentsUpdate.ts +14 -6
  59. package/packages/orq-rc/src/lib/config.ts +2 -2
  60. package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
  61. package/packages/orq-rc/src/mcp-server/server.ts +1 -9
  62. package/packages/orq-rc/src/mcp-server/tools/agentsCreate.ts +3 -3
  63. package/packages/orq-rc/src/mcp-server/tools/agentsDelete.ts +5 -5
  64. package/packages/orq-rc/src/mcp-server/tools/agentsInvoke.ts +7 -4
  65. package/packages/orq-rc/src/mcp-server/tools/agentsList.ts +9 -5
  66. package/packages/orq-rc/src/mcp-server/tools/agentsResponsesCreate.ts +8 -4
  67. package/packages/orq-rc/src/mcp-server/tools/agentsRetrieve.ts +5 -5
  68. package/packages/orq-rc/src/mcp-server/tools/agentsRun.ts +2 -2
  69. package/packages/orq-rc/src/mcp-server/tools/agentsStream.ts +7 -4
  70. package/packages/orq-rc/src/mcp-server/tools/agentsStreamRun.ts +2 -2
  71. package/packages/orq-rc/src/mcp-server/tools/agentsUpdate.ts +8 -4
  72. package/packages/orq-rc/src/models/errors/createagentrequest.ts +67 -0
  73. package/packages/orq-rc/src/models/errors/deleteagent.ts +2 -2
  74. package/packages/orq-rc/src/models/errors/index.ts +2 -3
  75. package/packages/orq-rc/src/models/errors/{listagenttasks.ts → retrieveagentrequest.ts} +15 -15
  76. package/packages/orq-rc/src/models/errors/updateagent.ts +2 -2
  77. package/packages/orq-rc/src/models/operations/{createagent.ts → createagentrequest.ts} +1643 -1485
  78. package/packages/orq-rc/src/models/operations/{createagentresponse.ts → createagentresponserequest.ts} +141 -127
  79. package/packages/orq-rc/src/models/operations/createbudget.ts +2 -2
  80. package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
  81. package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
  82. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +8 -8
  83. package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
  84. package/packages/orq-rc/src/models/operations/createeval.ts +28 -28
  85. package/packages/orq-rc/src/models/operations/createprompt.ts +4 -4
  86. package/packages/orq-rc/src/models/operations/createtool.ts +12 -12
  87. package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
  88. package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
  89. package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
  90. package/packages/orq-rc/src/models/operations/getalltools.ts +12 -12
  91. package/packages/orq-rc/src/models/operations/getbudget.ts +2 -2
  92. package/packages/orq-rc/src/models/operations/getevals.ts +28 -28
  93. package/packages/orq-rc/src/models/operations/index.ts +3 -7
  94. package/packages/orq-rc/src/models/operations/invokeagent.ts +153 -190
  95. package/packages/orq-rc/src/models/operations/listagents.ts +9 -21
  96. package/packages/orq-rc/src/models/operations/listbudgets.ts +2 -2
  97. package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
  98. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +8 -8
  99. package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
  100. package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
  101. package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +3741 -0
  102. package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
  103. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +8 -8
  104. package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
  105. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
  106. package/packages/orq-rc/src/models/operations/retrievetool.ts +12 -12
  107. package/packages/orq-rc/src/models/operations/runagent.ts +53 -57
  108. package/packages/orq-rc/src/models/operations/streamagent.ts +1 -1
  109. package/packages/orq-rc/src/models/operations/streamrunagent.ts +68 -82
  110. package/packages/orq-rc/src/models/operations/updateagent.ts +17 -17
  111. package/packages/orq-rc/src/models/operations/updatebudget.ts +2 -2
  112. package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
  113. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +8 -8
  114. package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
  115. package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
  116. package/packages/orq-rc/src/models/operations/updateeval.ts +28 -28
  117. package/packages/orq-rc/src/models/operations/updateprompt.ts +4 -4
  118. package/packages/orq-rc/src/models/operations/updatetool.ts +14 -14
  119. package/packages/orq-rc/src/sdk/agents.ts +51 -99
  120. package/packages/orq-rc/src/sdk/responses.ts +7 -5
  121. package/src/lib/config.ts +2 -2
  122. package/src/mcp-server/mcp-server.ts +1 -1
  123. package/src/mcp-server/server.ts +1 -1
  124. package/src/models/operations/createbudget.ts +2 -2
  125. package/src/models/operations/createcontact.ts +2 -2
  126. package/src/models/operations/createdataset.ts +2 -2
  127. package/src/models/operations/createdatasetitem.ts +8 -8
  128. package/src/models/operations/createdatasource.ts +2 -2
  129. package/src/models/operations/createeval.ts +28 -28
  130. package/src/models/operations/createtool.ts +12 -12
  131. package/src/models/operations/fileget.ts +2 -2
  132. package/src/models/operations/filelist.ts +2 -2
  133. package/src/models/operations/fileupload.ts +2 -2
  134. package/src/models/operations/getalltools.ts +12 -12
  135. package/src/models/operations/getbudget.ts +2 -2
  136. package/src/models/operations/getevals.ts +28 -28
  137. package/src/models/operations/listbudgets.ts +2 -2
  138. package/src/models/operations/listcontacts.ts +2 -2
  139. package/src/models/operations/listdatasetdatapoints.ts +8 -8
  140. package/src/models/operations/listdatasets.ts +2 -2
  141. package/src/models/operations/listdatasources.ts +2 -2
  142. package/src/models/operations/retrievecontact.ts +2 -2
  143. package/src/models/operations/retrievedatapoint.ts +8 -8
  144. package/src/models/operations/retrievedataset.ts +2 -2
  145. package/src/models/operations/retrievedatasource.ts +2 -2
  146. package/src/models/operations/retrievetool.ts +12 -12
  147. package/src/models/operations/runagent.ts +2 -2
  148. package/src/models/operations/streamrunagent.ts +2 -2
  149. package/src/models/operations/updatebudget.ts +2 -2
  150. package/src/models/operations/updatecontact.ts +2 -2
  151. package/src/models/operations/updatedatapoint.ts +8 -8
  152. package/src/models/operations/updatedataset.ts +2 -2
  153. package/src/models/operations/updatedatasource.ts +2 -2
  154. package/src/models/operations/updateeval.ts +28 -28
  155. package/src/models/operations/updatetool.ts +14 -14
  156. package/packages/orq-rc/src/funcs/agentsListActions.ts +0 -169
  157. package/packages/orq-rc/src/funcs/agentsListTasks.ts +0 -183
  158. package/packages/orq-rc/src/funcs/agentsRetrieveAction.ts +0 -173
  159. package/packages/orq-rc/src/funcs/agentsRetrieveTask.ts +0 -179
  160. package/packages/orq-rc/src/mcp-server/tools/agentsListActions.ts +0 -35
  161. package/packages/orq-rc/src/mcp-server/tools/agentsListTasks.ts +0 -37
  162. package/packages/orq-rc/src/mcp-server/tools/agentsRetrieveAction.ts +0 -35
  163. package/packages/orq-rc/src/mcp-server/tools/agentsRetrieveTask.ts +0 -37
  164. package/packages/orq-rc/src/models/errors/createagent.ts +0 -67
  165. package/packages/orq-rc/src/models/errors/getagent.ts +0 -67
  166. package/packages/orq-rc/src/models/operations/getagent.ts +0 -3480
  167. package/packages/orq-rc/src/models/operations/getagenttask.ts +0 -2389
  168. package/packages/orq-rc/src/models/operations/listactions.ts +0 -427
  169. package/packages/orq-rc/src/models/operations/listagenttasks.ts +0 -2614
  170. package/packages/orq-rc/src/models/operations/retrieveaction.ts +0 -354
@@ -34,20 +34,20 @@ export type RoleUserMessage = ClosedEnum<typeof RoleUserMessage>;
34
34
  /**
35
35
  * Message role (user or tool for continuing executions)
36
36
  */
37
- export type CreateAgentResponseRole = RoleUserMessage | RoleToolMessage;
37
+ export type CreateAgentResponseRequestRole = RoleUserMessage | RoleToolMessage;
38
38
 
39
- export const CreateAgentResponsePublicMessagePartKind = {
39
+ export const CreateAgentResponseRequestPublicMessagePartKind = {
40
40
  ToolResult: "tool_result",
41
41
  } as const;
42
- export type CreateAgentResponsePublicMessagePartKind = ClosedEnum<
43
- typeof CreateAgentResponsePublicMessagePartKind
42
+ export type CreateAgentResponseRequestPublicMessagePartKind = ClosedEnum<
43
+ typeof CreateAgentResponseRequestPublicMessagePartKind
44
44
  >;
45
45
 
46
46
  /**
47
47
  * 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.
48
48
  */
49
49
  export type ToolResultPart = {
50
- kind: CreateAgentResponsePublicMessagePartKind;
50
+ kind: CreateAgentResponseRequestPublicMessagePartKind;
51
51
  toolCallId: string;
52
52
  result?: any | undefined;
53
53
  metadata?: { [k: string]: any } | undefined;
@@ -174,7 +174,7 @@ export type Contact = {
174
174
  /**
175
175
  * Thread information to group related requests
176
176
  */
177
- export type CreateAgentResponseThread = {
177
+ export type CreateAgentResponseRequestThread = {
178
178
  /**
179
179
  * Unique thread identifier to group related invocations.
180
180
  */
@@ -195,7 +195,7 @@ export type Memory = {
195
195
  entityId: string;
196
196
  };
197
197
 
198
- export type CreateAgentResponseRequestBody = {
198
+ export type CreateAgentResponseRequestRequestBody = {
199
199
  /**
200
200
  * Optional task ID to continue an existing agent execution. When provided, the agent will continue the conversation from the existing task state. The task must be in an inactive state to continue.
201
201
  */
@@ -215,7 +215,7 @@ export type CreateAgentResponseRequestBody = {
215
215
  /**
216
216
  * Thread information to group related requests
217
217
  */
218
- thread?: CreateAgentResponseThread | undefined;
218
+ thread?: CreateAgentResponseRequestThread | undefined;
219
219
  /**
220
220
  * Memory configuration for the agent execution. Used to associate memory stores with specific entities like users or sessions.
221
221
  */
@@ -230,27 +230,27 @@ export type CreateAgentResponseRequestBody = {
230
230
  background?: boolean | undefined;
231
231
  };
232
232
 
233
- export type CreateAgentResponseRequest = {
233
+ export type CreateAgentResponseRequestRequest = {
234
234
  /**
235
- * The key or ID of the agent to invoke
235
+ * The unique key of identifier of the agent to invoke
236
236
  */
237
237
  agentKey: string;
238
- requestBody?: CreateAgentResponseRequestBody | undefined;
238
+ requestBody?: CreateAgentResponseRequestRequestBody | undefined;
239
239
  };
240
240
 
241
- export const CreateAgentResponseAgentsResponsesRole = {
241
+ export const CreateAgentResponseRequestAgentsResponsesRole = {
242
242
  User: "user",
243
243
  Agent: "agent",
244
244
  Tool: "tool",
245
245
  System: "system",
246
246
  } as const;
247
- export type CreateAgentResponseAgentsResponsesRole = ClosedEnum<
248
- typeof CreateAgentResponseAgentsResponsesRole
247
+ export type CreateAgentResponseRequestAgentsResponsesRole = ClosedEnum<
248
+ typeof CreateAgentResponseRequestAgentsResponsesRole
249
249
  >;
250
250
 
251
251
  export type Output = {
252
252
  messageId: string;
253
- role: CreateAgentResponseAgentsResponsesRole;
253
+ role: CreateAgentResponseRequestAgentsResponsesRole;
254
254
  parts: Array<any>;
255
255
  metadata?: { [k: string]: any } | undefined;
256
256
  };
@@ -276,7 +276,7 @@ export type CompletionTokensDetails = {
276
276
  /**
277
277
  * Token usage from the agent execution
278
278
  */
279
- export type CreateAgentResponseUsage = {
279
+ export type CreateAgentResponseRequestUsage = {
280
280
  /**
281
281
  * Number of tokens in the generated completion.
282
282
  */
@@ -294,9 +294,9 @@ export type CreateAgentResponseUsage = {
294
294
  };
295
295
 
296
296
  /**
297
- * Agent response created successfully
297
+ * Agent response successfully created and completed. Returns the full conversation including all messages, tool interactions, model used, and token usage statistics. In background mode, returns immediately with initial task details.
298
298
  */
299
- export type CreateAgentResponseResponseBody = {
299
+ export type CreateAgentResponseRequestResponseBody = {
300
300
  /**
301
301
  * The unique response ID
302
302
  */
@@ -320,7 +320,7 @@ export type CreateAgentResponseResponseBody = {
320
320
  /**
321
321
  * Token usage from the agent execution
322
322
  */
323
- usage?: CreateAgentResponseUsage | null | undefined;
323
+ usage?: CreateAgentResponseRequestUsage | null | undefined;
324
324
  };
325
325
 
326
326
  /** @internal */
@@ -342,46 +342,48 @@ export const RoleUserMessage$outboundSchema: z.ZodNativeEnum<
342
342
  > = RoleUserMessage$inboundSchema;
343
343
 
344
344
  /** @internal */
345
- export const CreateAgentResponseRole$inboundSchema: z.ZodType<
346
- CreateAgentResponseRole,
345
+ export const CreateAgentResponseRequestRole$inboundSchema: z.ZodType<
346
+ CreateAgentResponseRequestRole,
347
347
  z.ZodTypeDef,
348
348
  unknown
349
349
  > = z.union([RoleUserMessage$inboundSchema, RoleToolMessage$inboundSchema]);
350
350
  /** @internal */
351
- export type CreateAgentResponseRole$Outbound = string | string;
351
+ export type CreateAgentResponseRequestRole$Outbound = string | string;
352
352
 
353
353
  /** @internal */
354
- export const CreateAgentResponseRole$outboundSchema: z.ZodType<
355
- CreateAgentResponseRole$Outbound,
354
+ export const CreateAgentResponseRequestRole$outboundSchema: z.ZodType<
355
+ CreateAgentResponseRequestRole$Outbound,
356
356
  z.ZodTypeDef,
357
- CreateAgentResponseRole
357
+ CreateAgentResponseRequestRole
358
358
  > = z.union([RoleUserMessage$outboundSchema, RoleToolMessage$outboundSchema]);
359
359
 
360
- export function createAgentResponseRoleToJSON(
361
- createAgentResponseRole: CreateAgentResponseRole,
360
+ export function createAgentResponseRequestRoleToJSON(
361
+ createAgentResponseRequestRole: CreateAgentResponseRequestRole,
362
362
  ): string {
363
363
  return JSON.stringify(
364
- CreateAgentResponseRole$outboundSchema.parse(createAgentResponseRole),
364
+ CreateAgentResponseRequestRole$outboundSchema.parse(
365
+ createAgentResponseRequestRole,
366
+ ),
365
367
  );
366
368
  }
367
- export function createAgentResponseRoleFromJSON(
369
+ export function createAgentResponseRequestRoleFromJSON(
368
370
  jsonString: string,
369
- ): SafeParseResult<CreateAgentResponseRole, SDKValidationError> {
371
+ ): SafeParseResult<CreateAgentResponseRequestRole, SDKValidationError> {
370
372
  return safeParse(
371
373
  jsonString,
372
- (x) => CreateAgentResponseRole$inboundSchema.parse(JSON.parse(x)),
373
- `Failed to parse 'CreateAgentResponseRole' from JSON`,
374
+ (x) => CreateAgentResponseRequestRole$inboundSchema.parse(JSON.parse(x)),
375
+ `Failed to parse 'CreateAgentResponseRequestRole' from JSON`,
374
376
  );
375
377
  }
376
378
 
377
379
  /** @internal */
378
- export const CreateAgentResponsePublicMessagePartKind$inboundSchema:
379
- z.ZodNativeEnum<typeof CreateAgentResponsePublicMessagePartKind> = z
380
- .nativeEnum(CreateAgentResponsePublicMessagePartKind);
380
+ export const CreateAgentResponseRequestPublicMessagePartKind$inboundSchema:
381
+ z.ZodNativeEnum<typeof CreateAgentResponseRequestPublicMessagePartKind> = z
382
+ .nativeEnum(CreateAgentResponseRequestPublicMessagePartKind);
381
383
  /** @internal */
382
- export const CreateAgentResponsePublicMessagePartKind$outboundSchema:
383
- z.ZodNativeEnum<typeof CreateAgentResponsePublicMessagePartKind> =
384
- CreateAgentResponsePublicMessagePartKind$inboundSchema;
384
+ export const CreateAgentResponseRequestPublicMessagePartKind$outboundSchema:
385
+ z.ZodNativeEnum<typeof CreateAgentResponseRequestPublicMessagePartKind> =
386
+ CreateAgentResponseRequestPublicMessagePartKind$inboundSchema;
385
387
 
386
388
  /** @internal */
387
389
  export const ToolResultPart$inboundSchema: z.ZodType<
@@ -389,7 +391,7 @@ export const ToolResultPart$inboundSchema: z.ZodType<
389
391
  z.ZodTypeDef,
390
392
  unknown
391
393
  > = z.object({
392
- kind: CreateAgentResponsePublicMessagePartKind$inboundSchema,
394
+ kind: CreateAgentResponseRequestPublicMessagePartKind$inboundSchema,
393
395
  tool_call_id: z.string(),
394
396
  result: z.any().optional(),
395
397
  metadata: z.record(z.any()).optional(),
@@ -412,7 +414,7 @@ export const ToolResultPart$outboundSchema: z.ZodType<
412
414
  z.ZodTypeDef,
413
415
  ToolResultPart
414
416
  > = z.object({
415
- kind: CreateAgentResponsePublicMessagePartKind$outboundSchema,
417
+ kind: CreateAgentResponseRequestPublicMessagePartKind$outboundSchema,
416
418
  toolCallId: z.string(),
417
419
  result: z.any().optional(),
418
420
  metadata: z.record(z.any()).optional(),
@@ -820,8 +822,8 @@ export function contactFromJSON(
820
822
  }
821
823
 
822
824
  /** @internal */
823
- export const CreateAgentResponseThread$inboundSchema: z.ZodType<
824
- CreateAgentResponseThread,
825
+ export const CreateAgentResponseRequestThread$inboundSchema: z.ZodType<
826
+ CreateAgentResponseRequestThread,
825
827
  z.ZodTypeDef,
826
828
  unknown
827
829
  > = z.object({
@@ -829,35 +831,37 @@ export const CreateAgentResponseThread$inboundSchema: z.ZodType<
829
831
  tags: z.array(z.string()).optional(),
830
832
  });
831
833
  /** @internal */
832
- export type CreateAgentResponseThread$Outbound = {
834
+ export type CreateAgentResponseRequestThread$Outbound = {
833
835
  id: string;
834
836
  tags?: Array<string> | undefined;
835
837
  };
836
838
 
837
839
  /** @internal */
838
- export const CreateAgentResponseThread$outboundSchema: z.ZodType<
839
- CreateAgentResponseThread$Outbound,
840
+ export const CreateAgentResponseRequestThread$outboundSchema: z.ZodType<
841
+ CreateAgentResponseRequestThread$Outbound,
840
842
  z.ZodTypeDef,
841
- CreateAgentResponseThread
843
+ CreateAgentResponseRequestThread
842
844
  > = z.object({
843
845
  id: z.string(),
844
846
  tags: z.array(z.string()).optional(),
845
847
  });
846
848
 
847
- export function createAgentResponseThreadToJSON(
848
- createAgentResponseThread: CreateAgentResponseThread,
849
+ export function createAgentResponseRequestThreadToJSON(
850
+ createAgentResponseRequestThread: CreateAgentResponseRequestThread,
849
851
  ): string {
850
852
  return JSON.stringify(
851
- CreateAgentResponseThread$outboundSchema.parse(createAgentResponseThread),
853
+ CreateAgentResponseRequestThread$outboundSchema.parse(
854
+ createAgentResponseRequestThread,
855
+ ),
852
856
  );
853
857
  }
854
- export function createAgentResponseThreadFromJSON(
858
+ export function createAgentResponseRequestThreadFromJSON(
855
859
  jsonString: string,
856
- ): SafeParseResult<CreateAgentResponseThread, SDKValidationError> {
860
+ ): SafeParseResult<CreateAgentResponseRequestThread, SDKValidationError> {
857
861
  return safeParse(
858
862
  jsonString,
859
- (x) => CreateAgentResponseThread$inboundSchema.parse(JSON.parse(x)),
860
- `Failed to parse 'CreateAgentResponseThread' from JSON`,
863
+ (x) => CreateAgentResponseRequestThread$inboundSchema.parse(JSON.parse(x)),
864
+ `Failed to parse 'CreateAgentResponseRequestThread' from JSON`,
861
865
  );
862
866
  }
863
867
 
@@ -902,8 +906,8 @@ export function memoryFromJSON(
902
906
  }
903
907
 
904
908
  /** @internal */
905
- export const CreateAgentResponseRequestBody$inboundSchema: z.ZodType<
906
- CreateAgentResponseRequestBody,
909
+ export const CreateAgentResponseRequestRequestBody$inboundSchema: z.ZodType<
910
+ CreateAgentResponseRequestRequestBody,
907
911
  z.ZodTypeDef,
908
912
  unknown
909
913
  > = z.object({
@@ -911,7 +915,8 @@ export const CreateAgentResponseRequestBody$inboundSchema: z.ZodType<
911
915
  message: z.lazy(() => A2AMessage$inboundSchema),
912
916
  variables: z.record(z.any()).optional(),
913
917
  contact: z.lazy(() => Contact$inboundSchema).optional(),
914
- thread: z.lazy(() => CreateAgentResponseThread$inboundSchema).optional(),
918
+ thread: z.lazy(() => CreateAgentResponseRequestThread$inboundSchema)
919
+ .optional(),
915
920
  memory: z.lazy(() => Memory$inboundSchema).optional(),
916
921
  metadata: z.record(z.any()).optional(),
917
922
  background: z.boolean().default(false),
@@ -921,28 +926,29 @@ export const CreateAgentResponseRequestBody$inboundSchema: z.ZodType<
921
926
  });
922
927
  });
923
928
  /** @internal */
924
- export type CreateAgentResponseRequestBody$Outbound = {
929
+ export type CreateAgentResponseRequestRequestBody$Outbound = {
925
930
  task_id?: string | undefined;
926
931
  message: A2AMessage$Outbound;
927
932
  variables?: { [k: string]: any } | undefined;
928
933
  contact?: Contact$Outbound | undefined;
929
- thread?: CreateAgentResponseThread$Outbound | undefined;
934
+ thread?: CreateAgentResponseRequestThread$Outbound | undefined;
930
935
  memory?: Memory$Outbound | undefined;
931
936
  metadata?: { [k: string]: any } | undefined;
932
937
  background: boolean;
933
938
  };
934
939
 
935
940
  /** @internal */
936
- export const CreateAgentResponseRequestBody$outboundSchema: z.ZodType<
937
- CreateAgentResponseRequestBody$Outbound,
941
+ export const CreateAgentResponseRequestRequestBody$outboundSchema: z.ZodType<
942
+ CreateAgentResponseRequestRequestBody$Outbound,
938
943
  z.ZodTypeDef,
939
- CreateAgentResponseRequestBody
944
+ CreateAgentResponseRequestRequestBody
940
945
  > = z.object({
941
946
  taskId: z.string().optional(),
942
947
  message: z.lazy(() => A2AMessage$outboundSchema),
943
948
  variables: z.record(z.any()).optional(),
944
949
  contact: z.lazy(() => Contact$outboundSchema).optional(),
945
- thread: z.lazy(() => CreateAgentResponseThread$outboundSchema).optional(),
950
+ thread: z.lazy(() => CreateAgentResponseRequestThread$outboundSchema)
951
+ .optional(),
946
952
  memory: z.lazy(() => Memory$outboundSchema).optional(),
947
953
  metadata: z.record(z.any()).optional(),
948
954
  background: z.boolean().default(false),
@@ -952,33 +958,34 @@ export const CreateAgentResponseRequestBody$outboundSchema: z.ZodType<
952
958
  });
953
959
  });
954
960
 
955
- export function createAgentResponseRequestBodyToJSON(
956
- createAgentResponseRequestBody: CreateAgentResponseRequestBody,
961
+ export function createAgentResponseRequestRequestBodyToJSON(
962
+ createAgentResponseRequestRequestBody: CreateAgentResponseRequestRequestBody,
957
963
  ): string {
958
964
  return JSON.stringify(
959
- CreateAgentResponseRequestBody$outboundSchema.parse(
960
- createAgentResponseRequestBody,
965
+ CreateAgentResponseRequestRequestBody$outboundSchema.parse(
966
+ createAgentResponseRequestRequestBody,
961
967
  ),
962
968
  );
963
969
  }
964
- export function createAgentResponseRequestBodyFromJSON(
970
+ export function createAgentResponseRequestRequestBodyFromJSON(
965
971
  jsonString: string,
966
- ): SafeParseResult<CreateAgentResponseRequestBody, SDKValidationError> {
972
+ ): SafeParseResult<CreateAgentResponseRequestRequestBody, SDKValidationError> {
967
973
  return safeParse(
968
974
  jsonString,
969
- (x) => CreateAgentResponseRequestBody$inboundSchema.parse(JSON.parse(x)),
970
- `Failed to parse 'CreateAgentResponseRequestBody' from JSON`,
975
+ (x) =>
976
+ CreateAgentResponseRequestRequestBody$inboundSchema.parse(JSON.parse(x)),
977
+ `Failed to parse 'CreateAgentResponseRequestRequestBody' from JSON`,
971
978
  );
972
979
  }
973
980
 
974
981
  /** @internal */
975
- export const CreateAgentResponseRequest$inboundSchema: z.ZodType<
976
- CreateAgentResponseRequest,
982
+ export const CreateAgentResponseRequestRequest$inboundSchema: z.ZodType<
983
+ CreateAgentResponseRequestRequest,
977
984
  z.ZodTypeDef,
978
985
  unknown
979
986
  > = z.object({
980
987
  agent_key: z.string(),
981
- RequestBody: z.lazy(() => CreateAgentResponseRequestBody$inboundSchema)
988
+ RequestBody: z.lazy(() => CreateAgentResponseRequestRequestBody$inboundSchema)
982
989
  .optional(),
983
990
  }).transform((v) => {
984
991
  return remap$(v, {
@@ -987,20 +994,21 @@ export const CreateAgentResponseRequest$inboundSchema: z.ZodType<
987
994
  });
988
995
  });
989
996
  /** @internal */
990
- export type CreateAgentResponseRequest$Outbound = {
997
+ export type CreateAgentResponseRequestRequest$Outbound = {
991
998
  agent_key: string;
992
- RequestBody?: CreateAgentResponseRequestBody$Outbound | undefined;
999
+ RequestBody?: CreateAgentResponseRequestRequestBody$Outbound | undefined;
993
1000
  };
994
1001
 
995
1002
  /** @internal */
996
- export const CreateAgentResponseRequest$outboundSchema: z.ZodType<
997
- CreateAgentResponseRequest$Outbound,
1003
+ export const CreateAgentResponseRequestRequest$outboundSchema: z.ZodType<
1004
+ CreateAgentResponseRequestRequest$Outbound,
998
1005
  z.ZodTypeDef,
999
- CreateAgentResponseRequest
1006
+ CreateAgentResponseRequestRequest
1000
1007
  > = z.object({
1001
1008
  agentKey: z.string(),
1002
- requestBody: z.lazy(() => CreateAgentResponseRequestBody$outboundSchema)
1003
- .optional(),
1009
+ requestBody: z.lazy(() =>
1010
+ CreateAgentResponseRequestRequestBody$outboundSchema
1011
+ ).optional(),
1004
1012
  }).transform((v) => {
1005
1013
  return remap$(v, {
1006
1014
  agentKey: "agent_key",
@@ -1008,38 +1016,39 @@ export const CreateAgentResponseRequest$outboundSchema: z.ZodType<
1008
1016
  });
1009
1017
  });
1010
1018
 
1011
- export function createAgentResponseRequestToJSON(
1012
- createAgentResponseRequest: CreateAgentResponseRequest,
1019
+ export function createAgentResponseRequestRequestToJSON(
1020
+ createAgentResponseRequestRequest: CreateAgentResponseRequestRequest,
1013
1021
  ): string {
1014
1022
  return JSON.stringify(
1015
- CreateAgentResponseRequest$outboundSchema.parse(createAgentResponseRequest),
1023
+ CreateAgentResponseRequestRequest$outboundSchema.parse(
1024
+ createAgentResponseRequestRequest,
1025
+ ),
1016
1026
  );
1017
1027
  }
1018
- export function createAgentResponseRequestFromJSON(
1028
+ export function createAgentResponseRequestRequestFromJSON(
1019
1029
  jsonString: string,
1020
- ): SafeParseResult<CreateAgentResponseRequest, SDKValidationError> {
1030
+ ): SafeParseResult<CreateAgentResponseRequestRequest, SDKValidationError> {
1021
1031
  return safeParse(
1022
1032
  jsonString,
1023
- (x) => CreateAgentResponseRequest$inboundSchema.parse(JSON.parse(x)),
1024
- `Failed to parse 'CreateAgentResponseRequest' from JSON`,
1033
+ (x) => CreateAgentResponseRequestRequest$inboundSchema.parse(JSON.parse(x)),
1034
+ `Failed to parse 'CreateAgentResponseRequestRequest' from JSON`,
1025
1035
  );
1026
1036
  }
1027
1037
 
1028
1038
  /** @internal */
1029
- export const CreateAgentResponseAgentsResponsesRole$inboundSchema:
1030
- z.ZodNativeEnum<typeof CreateAgentResponseAgentsResponsesRole> = z.nativeEnum(
1031
- CreateAgentResponseAgentsResponsesRole,
1032
- );
1039
+ export const CreateAgentResponseRequestAgentsResponsesRole$inboundSchema:
1040
+ z.ZodNativeEnum<typeof CreateAgentResponseRequestAgentsResponsesRole> = z
1041
+ .nativeEnum(CreateAgentResponseRequestAgentsResponsesRole);
1033
1042
  /** @internal */
1034
- export const CreateAgentResponseAgentsResponsesRole$outboundSchema:
1035
- z.ZodNativeEnum<typeof CreateAgentResponseAgentsResponsesRole> =
1036
- CreateAgentResponseAgentsResponsesRole$inboundSchema;
1043
+ export const CreateAgentResponseRequestAgentsResponsesRole$outboundSchema:
1044
+ z.ZodNativeEnum<typeof CreateAgentResponseRequestAgentsResponsesRole> =
1045
+ CreateAgentResponseRequestAgentsResponsesRole$inboundSchema;
1037
1046
 
1038
1047
  /** @internal */
1039
1048
  export const Output$inboundSchema: z.ZodType<Output, z.ZodTypeDef, unknown> = z
1040
1049
  .object({
1041
1050
  messageId: z.string(),
1042
- role: CreateAgentResponseAgentsResponsesRole$inboundSchema,
1051
+ role: CreateAgentResponseRequestAgentsResponsesRole$inboundSchema,
1043
1052
  parts: z.array(z.any()),
1044
1053
  metadata: z.record(z.any()).optional(),
1045
1054
  });
@@ -1058,7 +1067,7 @@ export const Output$outboundSchema: z.ZodType<
1058
1067
  Output
1059
1068
  > = z.object({
1060
1069
  messageId: z.string(),
1061
- role: CreateAgentResponseAgentsResponsesRole$outboundSchema,
1070
+ role: CreateAgentResponseRequestAgentsResponsesRole$outboundSchema,
1062
1071
  parts: z.array(z.any()),
1063
1072
  metadata: z.record(z.any()).optional(),
1064
1073
  });
@@ -1191,8 +1200,8 @@ export function completionTokensDetailsFromJSON(
1191
1200
  }
1192
1201
 
1193
1202
  /** @internal */
1194
- export const CreateAgentResponseUsage$inboundSchema: z.ZodType<
1195
- CreateAgentResponseUsage,
1203
+ export const CreateAgentResponseRequestUsage$inboundSchema: z.ZodType<
1204
+ CreateAgentResponseRequestUsage,
1196
1205
  z.ZodTypeDef,
1197
1206
  unknown
1198
1207
  > = z.object({
@@ -1215,7 +1224,7 @@ export const CreateAgentResponseUsage$inboundSchema: z.ZodType<
1215
1224
  });
1216
1225
  });
1217
1226
  /** @internal */
1218
- export type CreateAgentResponseUsage$Outbound = {
1227
+ export type CreateAgentResponseRequestUsage$Outbound = {
1219
1228
  completion_tokens?: number | undefined;
1220
1229
  prompt_tokens?: number | undefined;
1221
1230
  total_tokens?: number | undefined;
@@ -1227,10 +1236,10 @@ export type CreateAgentResponseUsage$Outbound = {
1227
1236
  };
1228
1237
 
1229
1238
  /** @internal */
1230
- export const CreateAgentResponseUsage$outboundSchema: z.ZodType<
1231
- CreateAgentResponseUsage$Outbound,
1239
+ export const CreateAgentResponseRequestUsage$outboundSchema: z.ZodType<
1240
+ CreateAgentResponseRequestUsage$Outbound,
1232
1241
  z.ZodTypeDef,
1233
- CreateAgentResponseUsage
1242
+ CreateAgentResponseRequestUsage
1234
1243
  > = z.object({
1235
1244
  completionTokens: z.number().optional(),
1236
1245
  promptTokens: z.number().optional(),
@@ -1251,26 +1260,28 @@ export const CreateAgentResponseUsage$outboundSchema: z.ZodType<
1251
1260
  });
1252
1261
  });
1253
1262
 
1254
- export function createAgentResponseUsageToJSON(
1255
- createAgentResponseUsage: CreateAgentResponseUsage,
1263
+ export function createAgentResponseRequestUsageToJSON(
1264
+ createAgentResponseRequestUsage: CreateAgentResponseRequestUsage,
1256
1265
  ): string {
1257
1266
  return JSON.stringify(
1258
- CreateAgentResponseUsage$outboundSchema.parse(createAgentResponseUsage),
1267
+ CreateAgentResponseRequestUsage$outboundSchema.parse(
1268
+ createAgentResponseRequestUsage,
1269
+ ),
1259
1270
  );
1260
1271
  }
1261
- export function createAgentResponseUsageFromJSON(
1272
+ export function createAgentResponseRequestUsageFromJSON(
1262
1273
  jsonString: string,
1263
- ): SafeParseResult<CreateAgentResponseUsage, SDKValidationError> {
1274
+ ): SafeParseResult<CreateAgentResponseRequestUsage, SDKValidationError> {
1264
1275
  return safeParse(
1265
1276
  jsonString,
1266
- (x) => CreateAgentResponseUsage$inboundSchema.parse(JSON.parse(x)),
1267
- `Failed to parse 'CreateAgentResponseUsage' from JSON`,
1277
+ (x) => CreateAgentResponseRequestUsage$inboundSchema.parse(JSON.parse(x)),
1278
+ `Failed to parse 'CreateAgentResponseRequestUsage' from JSON`,
1268
1279
  );
1269
1280
  }
1270
1281
 
1271
1282
  /** @internal */
1272
- export const CreateAgentResponseResponseBody$inboundSchema: z.ZodType<
1273
- CreateAgentResponseResponseBody,
1283
+ export const CreateAgentResponseRequestResponseBody$inboundSchema: z.ZodType<
1284
+ CreateAgentResponseRequestResponseBody,
1274
1285
  z.ZodTypeDef,
1275
1286
  unknown
1276
1287
  > = z.object({
@@ -1279,7 +1290,7 @@ export const CreateAgentResponseResponseBody$inboundSchema: z.ZodType<
1279
1290
  output: z.array(z.lazy(() => Output$inboundSchema)),
1280
1291
  created_at: z.string(),
1281
1292
  model: z.string(),
1282
- usage: z.nullable(z.lazy(() => CreateAgentResponseUsage$inboundSchema))
1293
+ usage: z.nullable(z.lazy(() => CreateAgentResponseRequestUsage$inboundSchema))
1283
1294
  .optional(),
1284
1295
  }).transform((v) => {
1285
1296
  return remap$(v, {
@@ -1289,28 +1300,29 @@ export const CreateAgentResponseResponseBody$inboundSchema: z.ZodType<
1289
1300
  });
1290
1301
  });
1291
1302
  /** @internal */
1292
- export type CreateAgentResponseResponseBody$Outbound = {
1303
+ export type CreateAgentResponseRequestResponseBody$Outbound = {
1293
1304
  _id: string;
1294
1305
  task_id: string;
1295
1306
  output: Array<Output$Outbound>;
1296
1307
  created_at: string;
1297
1308
  model: string;
1298
- usage?: CreateAgentResponseUsage$Outbound | null | undefined;
1309
+ usage?: CreateAgentResponseRequestUsage$Outbound | null | undefined;
1299
1310
  };
1300
1311
 
1301
1312
  /** @internal */
1302
- export const CreateAgentResponseResponseBody$outboundSchema: z.ZodType<
1303
- CreateAgentResponseResponseBody$Outbound,
1313
+ export const CreateAgentResponseRequestResponseBody$outboundSchema: z.ZodType<
1314
+ CreateAgentResponseRequestResponseBody$Outbound,
1304
1315
  z.ZodTypeDef,
1305
- CreateAgentResponseResponseBody
1316
+ CreateAgentResponseRequestResponseBody
1306
1317
  > = z.object({
1307
1318
  id: z.string(),
1308
1319
  taskId: z.string(),
1309
1320
  output: z.array(z.lazy(() => Output$outboundSchema)),
1310
1321
  createdAt: z.string(),
1311
1322
  model: z.string(),
1312
- usage: z.nullable(z.lazy(() => CreateAgentResponseUsage$outboundSchema))
1313
- .optional(),
1323
+ usage: z.nullable(
1324
+ z.lazy(() => CreateAgentResponseRequestUsage$outboundSchema),
1325
+ ).optional(),
1314
1326
  }).transform((v) => {
1315
1327
  return remap$(v, {
1316
1328
  id: "_id",
@@ -1319,21 +1331,23 @@ export const CreateAgentResponseResponseBody$outboundSchema: z.ZodType<
1319
1331
  });
1320
1332
  });
1321
1333
 
1322
- export function createAgentResponseResponseBodyToJSON(
1323
- createAgentResponseResponseBody: CreateAgentResponseResponseBody,
1334
+ export function createAgentResponseRequestResponseBodyToJSON(
1335
+ createAgentResponseRequestResponseBody:
1336
+ CreateAgentResponseRequestResponseBody,
1324
1337
  ): string {
1325
1338
  return JSON.stringify(
1326
- CreateAgentResponseResponseBody$outboundSchema.parse(
1327
- createAgentResponseResponseBody,
1339
+ CreateAgentResponseRequestResponseBody$outboundSchema.parse(
1340
+ createAgentResponseRequestResponseBody,
1328
1341
  ),
1329
1342
  );
1330
1343
  }
1331
- export function createAgentResponseResponseBodyFromJSON(
1344
+ export function createAgentResponseRequestResponseBodyFromJSON(
1332
1345
  jsonString: string,
1333
- ): SafeParseResult<CreateAgentResponseResponseBody, SDKValidationError> {
1346
+ ): SafeParseResult<CreateAgentResponseRequestResponseBody, SDKValidationError> {
1334
1347
  return safeParse(
1335
1348
  jsonString,
1336
- (x) => CreateAgentResponseResponseBody$inboundSchema.parse(JSON.parse(x)),
1337
- `Failed to parse 'CreateAgentResponseResponseBody' from JSON`,
1349
+ (x) =>
1350
+ CreateAgentResponseRequestResponseBody$inboundSchema.parse(JSON.parse(x)),
1351
+ `Failed to parse 'CreateAgentResponseRequestResponseBody' from JSON`,
1338
1352
  );
1339
1353
  }
@@ -516,7 +516,7 @@ export const CreateBudgetResponseBody$inboundSchema: z.ZodType<
516
516
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
517
517
  .optional(),
518
518
  updated: z.string().datetime({ offset: true }).default(
519
- "2025-11-22T21:11:48.742Z",
519
+ "2025-11-24T07:10:58.421Z",
520
520
  ).transform(v => new Date(v)),
521
521
  }).transform((v) => {
522
522
  return remap$(v, {
@@ -553,7 +553,7 @@ export const CreateBudgetResponseBody$outboundSchema: z.ZodType<
553
553
  isActive: z.boolean(),
554
554
  consumption: z.lazy(() => Consumption$outboundSchema).optional(),
555
555
  created: z.date().transform(v => v.toISOString()).optional(),
556
- updated: z.date().default(() => new Date("2025-11-22T21:11:48.742Z"))
556
+ updated: z.date().default(() => new Date("2025-11-24T07:10:58.421Z"))
557
557
  .transform(v => v.toISOString()),
558
558
  }).transform((v) => {
559
559
  return remap$(v, {
@@ -167,7 +167,7 @@ export const CreateContactResponseBody$inboundSchema: z.ZodType<
167
167
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
168
168
  .optional(),
169
169
  updated: z.string().datetime({ offset: true }).default(
170
- "2025-11-22T21:11:48.435Z",
170
+ "2025-11-24T07:10:58.070Z",
171
171
  ).transform(v => new Date(v)),
172
172
  }).transform((v) => {
173
173
  return remap$(v, {
@@ -207,7 +207,7 @@ export const CreateContactResponseBody$outboundSchema: z.ZodType<
207
207
  tags: z.array(z.string()).optional(),
208
208
  metadata: z.record(z.any()).optional(),
209
209
  created: z.date().transform(v => v.toISOString()).optional(),
210
- updated: z.date().default(() => new Date("2025-11-22T21:11:48.435Z"))
210
+ updated: z.date().default(() => new Date("2025-11-24T07:10:58.070Z"))
211
211
  .transform(v => v.toISOString()),
212
212
  }).transform((v) => {
213
213
  return remap$(v, {
@@ -187,7 +187,7 @@ export const CreateDatasetResponseBody$inboundSchema: z.ZodType<
187
187
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
188
188
  .optional(),
189
189
  updated: z.string().datetime({ offset: true }).default(
190
- "2025-11-22T21:11:48.435Z",
190
+ "2025-11-24T07:10:58.070Z",
191
191
  ).transform(v => new Date(v)),
192
192
  }).transform((v) => {
193
193
  return remap$(v, {
@@ -226,7 +226,7 @@ export const CreateDatasetResponseBody$outboundSchema: z.ZodType<
226
226
  createdById: z.string().optional(),
227
227
  updatedById: z.string().optional(),
228
228
  created: z.date().transform(v => v.toISOString()).optional(),
229
- updated: z.date().default(() => new Date("2025-11-22T21:11:48.435Z"))
229
+ updated: z.date().default(() => new Date("2025-11-24T07:10:58.070Z"))
230
230
  .transform(v => v.toISOString()),
231
231
  }).transform((v) => {
232
232
  return remap$(v, {