@orq-ai/node 4.0.0-rc.67 → 4.0.0-rc.68

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 (143) hide show
  1. package/README.md +23 -18
  2. package/bin/mcp-server.js +2320 -1152
  3. package/bin/mcp-server.js.map +49 -46
  4. package/docs/sdks/responses/README.md +139 -0
  5. package/examples/package-lock.json +1 -1
  6. package/funcs/agentsResponsesCreate.d.ts +17 -0
  7. package/funcs/agentsResponsesCreate.d.ts.map +1 -0
  8. package/funcs/agentsResponsesCreate.js +120 -0
  9. package/funcs/agentsResponsesCreate.js.map +1 -0
  10. package/jsr.json +1 -1
  11. package/lib/config.d.ts +2 -2
  12. package/lib/config.js +2 -2
  13. package/mcp-server/mcp-server.js +1 -1
  14. package/mcp-server/server.d.ts.map +1 -1
  15. package/mcp-server/server.js +3 -1
  16. package/mcp-server/server.js.map +1 -1
  17. package/mcp-server/tools/agentsResponsesCreate.d.ts +8 -0
  18. package/mcp-server/tools/agentsResponsesCreate.d.ts.map +1 -0
  19. package/mcp-server/tools/agentsResponsesCreate.js +64 -0
  20. package/mcp-server/tools/agentsResponsesCreate.js.map +1 -0
  21. package/models/operations/createagent.js +4 -4
  22. package/models/operations/createagent.js.map +1 -1
  23. package/models/operations/createagentresponse.d.ts +564 -0
  24. package/models/operations/createagentresponse.d.ts.map +1 -0
  25. package/models/operations/createagentresponse.js +605 -0
  26. package/models/operations/createagentresponse.js.map +1 -0
  27. package/models/operations/createbudget.js +2 -2
  28. package/models/operations/createcontact.js +2 -2
  29. package/models/operations/createdataset.js +2 -2
  30. package/models/operations/createdatasetitem.js +8 -8
  31. package/models/operations/createdatasource.js +2 -2
  32. package/models/operations/createeval.js +28 -28
  33. package/models/operations/createtool.js +12 -12
  34. package/models/operations/fileget.js +2 -2
  35. package/models/operations/filelist.js +2 -2
  36. package/models/operations/fileupload.js +2 -2
  37. package/models/operations/getagent.js +2 -2
  38. package/models/operations/getagent.js.map +1 -1
  39. package/models/operations/getagenttask.d.ts +32 -32
  40. package/models/operations/getagenttask.d.ts.map +1 -1
  41. package/models/operations/getagenttask.js +50 -50
  42. package/models/operations/getagenttask.js.map +1 -1
  43. package/models/operations/getalltools.js +12 -12
  44. package/models/operations/getbudget.js +2 -2
  45. package/models/operations/getevals.js +28 -28
  46. package/models/operations/index.d.ts +1 -0
  47. package/models/operations/index.d.ts.map +1 -1
  48. package/models/operations/index.js +1 -0
  49. package/models/operations/index.js.map +1 -1
  50. package/models/operations/invokeagent.d.ts +95 -95
  51. package/models/operations/invokeagent.d.ts.map +1 -1
  52. package/models/operations/invokeagent.js +143 -134
  53. package/models/operations/invokeagent.js.map +1 -1
  54. package/models/operations/listagents.js +2 -2
  55. package/models/operations/listagents.js.map +1 -1
  56. package/models/operations/listbudgets.js +2 -2
  57. package/models/operations/listcontacts.js +2 -2
  58. package/models/operations/listdatasetdatapoints.js +8 -8
  59. package/models/operations/listdatasets.js +2 -2
  60. package/models/operations/listdatasources.js +2 -2
  61. package/models/operations/retrievecontact.js +2 -2
  62. package/models/operations/retrievedatapoint.js +8 -8
  63. package/models/operations/retrievedataset.js +2 -2
  64. package/models/operations/retrievedatasource.js +2 -2
  65. package/models/operations/retrievetool.js +12 -12
  66. package/models/operations/runagent.d.ts +54 -54
  67. package/models/operations/runagent.d.ts.map +1 -1
  68. package/models/operations/runagent.js +90 -90
  69. package/models/operations/runagent.js.map +1 -1
  70. package/models/operations/streamagent.d.ts +541 -68
  71. package/models/operations/streamagent.d.ts.map +1 -1
  72. package/models/operations/streamagent.js +649 -118
  73. package/models/operations/streamagent.js.map +1 -1
  74. package/models/operations/streamrunagent.d.ts +541 -68
  75. package/models/operations/streamrunagent.d.ts.map +1 -1
  76. package/models/operations/streamrunagent.js +657 -127
  77. package/models/operations/streamrunagent.js.map +1 -1
  78. package/models/operations/updateagent.js +4 -4
  79. package/models/operations/updateagent.js.map +1 -1
  80. package/models/operations/updatebudget.js +2 -2
  81. package/models/operations/updatecontact.js +2 -2
  82. package/models/operations/updatedatapoint.js +8 -8
  83. package/models/operations/updatedataset.js +2 -2
  84. package/models/operations/updatedatasource.js +2 -2
  85. package/models/operations/updateeval.js +28 -28
  86. package/models/operations/updatetool.js +14 -14
  87. package/package.json +1 -1
  88. package/sdk/agents.d.ts +3 -0
  89. package/sdk/agents.d.ts.map +1 -1
  90. package/sdk/agents.js +4 -0
  91. package/sdk/agents.js.map +1 -1
  92. package/sdk/responses.d.ts +12 -0
  93. package/sdk/responses.d.ts.map +1 -0
  94. package/sdk/responses.js +22 -0
  95. package/sdk/responses.js.map +1 -0
  96. package/src/funcs/agentsResponsesCreate.ts +168 -0
  97. package/src/lib/config.ts +2 -2
  98. package/src/mcp-server/mcp-server.ts +1 -1
  99. package/src/mcp-server/server.ts +3 -1
  100. package/src/mcp-server/tools/agentsResponsesCreate.ts +37 -0
  101. package/src/models/operations/createagent.ts +4 -4
  102. package/src/models/operations/createagentresponse.ts +1339 -0
  103. package/src/models/operations/createbudget.ts +2 -2
  104. package/src/models/operations/createcontact.ts +2 -2
  105. package/src/models/operations/createdataset.ts +2 -2
  106. package/src/models/operations/createdatasetitem.ts +8 -8
  107. package/src/models/operations/createdatasource.ts +2 -2
  108. package/src/models/operations/createeval.ts +28 -28
  109. package/src/models/operations/createtool.ts +12 -12
  110. package/src/models/operations/fileget.ts +2 -2
  111. package/src/models/operations/filelist.ts +2 -2
  112. package/src/models/operations/fileupload.ts +2 -2
  113. package/src/models/operations/getagent.ts +2 -2
  114. package/src/models/operations/getagenttask.ts +94 -94
  115. package/src/models/operations/getalltools.ts +12 -12
  116. package/src/models/operations/getbudget.ts +2 -2
  117. package/src/models/operations/getevals.ts +28 -28
  118. package/src/models/operations/index.ts +1 -0
  119. package/src/models/operations/invokeagent.ts +322 -246
  120. package/src/models/operations/listagents.ts +2 -2
  121. package/src/models/operations/listbudgets.ts +2 -2
  122. package/src/models/operations/listcontacts.ts +2 -2
  123. package/src/models/operations/listdatasetdatapoints.ts +8 -8
  124. package/src/models/operations/listdatasets.ts +2 -2
  125. package/src/models/operations/listdatasources.ts +2 -2
  126. package/src/models/operations/retrievecontact.ts +2 -2
  127. package/src/models/operations/retrievedatapoint.ts +8 -8
  128. package/src/models/operations/retrievedataset.ts +2 -2
  129. package/src/models/operations/retrievedatasource.ts +2 -2
  130. package/src/models/operations/retrievetool.ts +12 -12
  131. package/src/models/operations/runagent.ts +174 -157
  132. package/src/models/operations/streamagent.ts +1739 -297
  133. package/src/models/operations/streamrunagent.ts +1742 -307
  134. package/src/models/operations/updateagent.ts +4 -4
  135. package/src/models/operations/updatebudget.ts +2 -2
  136. package/src/models/operations/updatecontact.ts +2 -2
  137. package/src/models/operations/updatedatapoint.ts +8 -8
  138. package/src/models/operations/updatedataset.ts +2 -2
  139. package/src/models/operations/updatedatasource.ts +2 -2
  140. package/src/models/operations/updateeval.ts +28 -28
  141. package/src/models/operations/updatetool.ts +14 -14
  142. package/src/sdk/agents.ts +6 -0
  143. package/src/sdk/responses.ts +27 -0
@@ -12,56 +12,64 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
12
12
  /**
13
13
  * Message containing tool execution results
14
14
  */
15
- export const RoleToolMessage = {
15
+ export const InvokeAgentRoleToolMessage = {
16
16
  Tool: "tool",
17
17
  } as const;
18
18
  /**
19
19
  * Message containing tool execution results
20
20
  */
21
- export type RoleToolMessage = ClosedEnum<typeof RoleToolMessage>;
21
+ export type InvokeAgentRoleToolMessage = ClosedEnum<
22
+ typeof InvokeAgentRoleToolMessage
23
+ >;
22
24
 
23
25
  /**
24
26
  * Message from the end user
25
27
  */
26
- export const RoleUserMessage = {
28
+ export const InvokeAgentRoleUserMessage = {
27
29
  User: "user",
28
30
  } as const;
29
31
  /**
30
32
  * Message from the end user
31
33
  */
32
- export type RoleUserMessage = ClosedEnum<typeof RoleUserMessage>;
34
+ export type InvokeAgentRoleUserMessage = ClosedEnum<
35
+ typeof InvokeAgentRoleUserMessage
36
+ >;
33
37
 
34
38
  /**
35
39
  * Message role (user or tool for continuing executions)
36
40
  */
37
- export type InvokeAgentRole = RoleUserMessage | RoleToolMessage;
41
+ export type InvokeAgentRole =
42
+ | InvokeAgentRoleUserMessage
43
+ | InvokeAgentRoleToolMessage;
38
44
 
39
- export const InvokeAgentPublicMessagePartKind = {
45
+ export const InvokeAgentPublicMessagePartAgentsRequestKind = {
40
46
  ToolResult: "tool_result",
41
47
  } as const;
42
- export type InvokeAgentPublicMessagePartKind = ClosedEnum<
43
- typeof InvokeAgentPublicMessagePartKind
48
+ export type InvokeAgentPublicMessagePartAgentsRequestKind = ClosedEnum<
49
+ typeof InvokeAgentPublicMessagePartAgentsRequestKind
44
50
  >;
45
51
 
46
52
  /**
47
53
  * Tool execution result part. Use this ONLY when providing results for a pending tool call from the agent. The tool_call_id must match the ID from the agent's tool call request.
48
54
  */
49
- export type ToolResultPart = {
50
- kind: InvokeAgentPublicMessagePartKind;
55
+ export type PublicMessagePartToolResultPart = {
56
+ kind: InvokeAgentPublicMessagePartAgentsRequestKind;
51
57
  toolCallId: string;
52
58
  result?: any | undefined;
53
59
  metadata?: { [k: string]: any } | undefined;
54
60
  };
55
61
 
56
- export const PublicMessagePartKind = {
62
+ export const InvokeAgentPublicMessagePartAgentsKind = {
57
63
  File: "file",
58
64
  } as const;
59
- export type PublicMessagePartKind = ClosedEnum<typeof PublicMessagePartKind>;
65
+ export type InvokeAgentPublicMessagePartAgentsKind = ClosedEnum<
66
+ typeof InvokeAgentPublicMessagePartAgentsKind
67
+ >;
60
68
 
61
69
  /**
62
70
  * File in URI format. Check in the model's documentation for the supported mime types for the URI format
63
71
  */
64
- export type FileInURIFormat = {
72
+ export type FileFileInURIFormat = {
65
73
  /**
66
74
  * URL for the File content
67
75
  */
@@ -79,7 +87,7 @@ export type FileInURIFormat = {
79
87
  /**
80
88
  * Binary in base64 format. Check in the model's documentation for the supported mime types for the binary format.
81
89
  */
82
- export type BinaryFormat = {
90
+ export type FileBinaryFormat = {
83
91
  /**
84
92
  * base64 encoded content of the file
85
93
  */
@@ -94,39 +102,46 @@ export type BinaryFormat = {
94
102
  name?: string | undefined;
95
103
  };
96
104
 
97
- export type PublicMessagePartFile = BinaryFormat | FileInURIFormat;
105
+ export type InvokeAgentPublicMessagePartFile =
106
+ | FileBinaryFormat
107
+ | FileFileInURIFormat;
98
108
 
99
109
  /**
100
110
  * File attachment part. Use this to send files (images, documents, etc.) to the agent for processing.
101
111
  */
102
- export type FilePart = {
103
- kind: PublicMessagePartKind;
104
- file: BinaryFormat | FileInURIFormat;
112
+ export type PublicMessagePartFilePart = {
113
+ kind: InvokeAgentPublicMessagePartAgentsKind;
114
+ file: FileBinaryFormat | FileFileInURIFormat;
105
115
  metadata?: { [k: string]: any } | undefined;
106
116
  };
107
117
 
108
- export const Kind = {
118
+ export const InvokeAgentPublicMessagePartKind = {
109
119
  Text: "text",
110
120
  } as const;
111
- export type Kind = ClosedEnum<typeof Kind>;
121
+ export type InvokeAgentPublicMessagePartKind = ClosedEnum<
122
+ typeof InvokeAgentPublicMessagePartKind
123
+ >;
112
124
 
113
125
  /**
114
126
  * Text content part. Use this to send text messages to the agent.
115
127
  */
116
- export type TextPart = {
117
- kind: Kind;
128
+ export type PublicMessagePartTextPart = {
129
+ kind: InvokeAgentPublicMessagePartKind;
118
130
  text: string;
119
131
  };
120
132
 
121
133
  /**
122
134
  * Message part that can be provided by users. Use "text" for regular messages, "file" for attachments, or "tool_result" when responding to tool call requests.
123
135
  */
124
- export type PublicMessagePart = TextPart | FilePart | ToolResultPart;
136
+ export type InvokeAgentPublicMessagePart =
137
+ | PublicMessagePartTextPart
138
+ | PublicMessagePartFilePart
139
+ | PublicMessagePartToolResultPart;
125
140
 
126
141
  /**
127
142
  * The A2A message to send to the agent (user input or tool results)
128
143
  */
129
- export type A2AMessage = {
144
+ export type InvokeAgentA2AMessage = {
130
145
  /**
131
146
  * Optional A2A message ID in ULID format
132
147
  */
@@ -134,17 +149,21 @@ export type A2AMessage = {
134
149
  /**
135
150
  * Message role (user or tool for continuing executions)
136
151
  */
137
- role: RoleUserMessage | RoleToolMessage;
152
+ role: InvokeAgentRoleUserMessage | InvokeAgentRoleToolMessage;
138
153
  /**
139
154
  * A2A message parts (text, file, or tool_result only)
140
155
  */
141
- parts: Array<TextPart | FilePart | ToolResultPart>;
156
+ parts: Array<
157
+ | PublicMessagePartTextPart
158
+ | PublicMessagePartFilePart
159
+ | PublicMessagePartToolResultPart
160
+ >;
142
161
  };
143
162
 
144
163
  /**
145
164
  * Information about the contact making the request. If the contact does not exist, it will be created automatically.
146
165
  */
147
- export type Contact = {
166
+ export type InvokeAgentContact = {
148
167
  /**
149
168
  * Unique identifier for the contact
150
169
  */
@@ -188,7 +207,7 @@ export type InvokeAgentThread = {
188
207
  /**
189
208
  * Memory configuration for the agent execution. Used to associate memory stores with specific entities like users or sessions.
190
209
  */
191
- export type Memory = {
210
+ export type InvokeAgentMemory = {
192
211
  /**
193
212
  * An entity ID used to link memory stores to a specific user, session, or conversation. This ID is used to isolate and retrieve memories specific to the entity across agent executions.
194
213
  */
@@ -203,7 +222,7 @@ export type InvokeAgentRequestBody = {
203
222
  /**
204
223
  * The A2A message to send to the agent (user input or tool results)
205
224
  */
206
- message: A2AMessage;
225
+ message: InvokeAgentA2AMessage;
207
226
  /**
208
227
  * Optional variables for template replacement in system prompt, instructions, and messages
209
228
  */
@@ -211,7 +230,7 @@ export type InvokeAgentRequestBody = {
211
230
  /**
212
231
  * Information about the contact making the request. If the contact does not exist, it will be created automatically.
213
232
  */
214
- contact?: Contact | undefined;
233
+ contact?: InvokeAgentContact | undefined;
215
234
  /**
216
235
  * Thread information to group related requests
217
236
  */
@@ -219,7 +238,7 @@ export type InvokeAgentRequestBody = {
219
238
  /**
220
239
  * Memory configuration for the agent execution. Used to associate memory stores with specific entities like users or sessions.
221
240
  */
222
- memory?: Memory | undefined;
241
+ memory?: InvokeAgentMemory | undefined;
223
242
  /**
224
243
  * Optional metadata for the agent invocation as key-value pairs that will be included in traces
225
244
  */
@@ -475,29 +494,32 @@ export type InvokeAgentA2ATaskResponse = {
475
494
  };
476
495
 
477
496
  /** @internal */
478
- export const RoleToolMessage$inboundSchema: z.ZodNativeEnum<
479
- typeof RoleToolMessage
480
- > = z.nativeEnum(RoleToolMessage);
497
+ export const InvokeAgentRoleToolMessage$inboundSchema: z.ZodNativeEnum<
498
+ typeof InvokeAgentRoleToolMessage
499
+ > = z.nativeEnum(InvokeAgentRoleToolMessage);
481
500
  /** @internal */
482
- export const RoleToolMessage$outboundSchema: z.ZodNativeEnum<
483
- typeof RoleToolMessage
484
- > = RoleToolMessage$inboundSchema;
501
+ export const InvokeAgentRoleToolMessage$outboundSchema: z.ZodNativeEnum<
502
+ typeof InvokeAgentRoleToolMessage
503
+ > = InvokeAgentRoleToolMessage$inboundSchema;
485
504
 
486
505
  /** @internal */
487
- export const RoleUserMessage$inboundSchema: z.ZodNativeEnum<
488
- typeof RoleUserMessage
489
- > = z.nativeEnum(RoleUserMessage);
506
+ export const InvokeAgentRoleUserMessage$inboundSchema: z.ZodNativeEnum<
507
+ typeof InvokeAgentRoleUserMessage
508
+ > = z.nativeEnum(InvokeAgentRoleUserMessage);
490
509
  /** @internal */
491
- export const RoleUserMessage$outboundSchema: z.ZodNativeEnum<
492
- typeof RoleUserMessage
493
- > = RoleUserMessage$inboundSchema;
510
+ export const InvokeAgentRoleUserMessage$outboundSchema: z.ZodNativeEnum<
511
+ typeof InvokeAgentRoleUserMessage
512
+ > = InvokeAgentRoleUserMessage$inboundSchema;
494
513
 
495
514
  /** @internal */
496
515
  export const InvokeAgentRole$inboundSchema: z.ZodType<
497
516
  InvokeAgentRole,
498
517
  z.ZodTypeDef,
499
518
  unknown
500
- > = z.union([RoleUserMessage$inboundSchema, RoleToolMessage$inboundSchema]);
519
+ > = z.union([
520
+ InvokeAgentRoleUserMessage$inboundSchema,
521
+ InvokeAgentRoleToolMessage$inboundSchema,
522
+ ]);
501
523
  /** @internal */
502
524
  export type InvokeAgentRole$Outbound = string | string;
503
525
 
@@ -506,7 +528,10 @@ export const InvokeAgentRole$outboundSchema: z.ZodType<
506
528
  InvokeAgentRole$Outbound,
507
529
  z.ZodTypeDef,
508
530
  InvokeAgentRole
509
- > = z.union([RoleUserMessage$outboundSchema, RoleToolMessage$outboundSchema]);
531
+ > = z.union([
532
+ InvokeAgentRoleUserMessage$outboundSchema,
533
+ InvokeAgentRoleToolMessage$outboundSchema,
534
+ ]);
510
535
 
511
536
  export function invokeAgentRoleToJSON(
512
537
  invokeAgentRole: InvokeAgentRole,
@@ -524,21 +549,21 @@ export function invokeAgentRoleFromJSON(
524
549
  }
525
550
 
526
551
  /** @internal */
527
- export const InvokeAgentPublicMessagePartKind$inboundSchema: z.ZodNativeEnum<
528
- typeof InvokeAgentPublicMessagePartKind
529
- > = z.nativeEnum(InvokeAgentPublicMessagePartKind);
552
+ export const InvokeAgentPublicMessagePartAgentsRequestKind$inboundSchema:
553
+ z.ZodNativeEnum<typeof InvokeAgentPublicMessagePartAgentsRequestKind> = z
554
+ .nativeEnum(InvokeAgentPublicMessagePartAgentsRequestKind);
530
555
  /** @internal */
531
- export const InvokeAgentPublicMessagePartKind$outboundSchema: z.ZodNativeEnum<
532
- typeof InvokeAgentPublicMessagePartKind
533
- > = InvokeAgentPublicMessagePartKind$inboundSchema;
556
+ export const InvokeAgentPublicMessagePartAgentsRequestKind$outboundSchema:
557
+ z.ZodNativeEnum<typeof InvokeAgentPublicMessagePartAgentsRequestKind> =
558
+ InvokeAgentPublicMessagePartAgentsRequestKind$inboundSchema;
534
559
 
535
560
  /** @internal */
536
- export const ToolResultPart$inboundSchema: z.ZodType<
537
- ToolResultPart,
561
+ export const PublicMessagePartToolResultPart$inboundSchema: z.ZodType<
562
+ PublicMessagePartToolResultPart,
538
563
  z.ZodTypeDef,
539
564
  unknown
540
565
  > = z.object({
541
- kind: InvokeAgentPublicMessagePartKind$inboundSchema,
566
+ kind: InvokeAgentPublicMessagePartAgentsRequestKind$inboundSchema,
542
567
  tool_call_id: z.string(),
543
568
  result: z.any().optional(),
544
569
  metadata: z.record(z.any()).optional(),
@@ -548,7 +573,7 @@ export const ToolResultPart$inboundSchema: z.ZodType<
548
573
  });
549
574
  });
550
575
  /** @internal */
551
- export type ToolResultPart$Outbound = {
576
+ export type PublicMessagePartToolResultPart$Outbound = {
552
577
  kind: string;
553
578
  tool_call_id: string;
554
579
  result?: any | undefined;
@@ -556,12 +581,12 @@ export type ToolResultPart$Outbound = {
556
581
  };
557
582
 
558
583
  /** @internal */
559
- export const ToolResultPart$outboundSchema: z.ZodType<
560
- ToolResultPart$Outbound,
584
+ export const PublicMessagePartToolResultPart$outboundSchema: z.ZodType<
585
+ PublicMessagePartToolResultPart$Outbound,
561
586
  z.ZodTypeDef,
562
- ToolResultPart
587
+ PublicMessagePartToolResultPart
563
588
  > = z.object({
564
- kind: InvokeAgentPublicMessagePartKind$outboundSchema,
589
+ kind: InvokeAgentPublicMessagePartAgentsRequestKind$outboundSchema,
565
590
  toolCallId: z.string(),
566
591
  result: z.any().optional(),
567
592
  metadata: z.record(z.any()).optional(),
@@ -571,31 +596,38 @@ export const ToolResultPart$outboundSchema: z.ZodType<
571
596
  });
572
597
  });
573
598
 
574
- export function toolResultPartToJSON(toolResultPart: ToolResultPart): string {
575
- return JSON.stringify(ToolResultPart$outboundSchema.parse(toolResultPart));
599
+ export function publicMessagePartToolResultPartToJSON(
600
+ publicMessagePartToolResultPart: PublicMessagePartToolResultPart,
601
+ ): string {
602
+ return JSON.stringify(
603
+ PublicMessagePartToolResultPart$outboundSchema.parse(
604
+ publicMessagePartToolResultPart,
605
+ ),
606
+ );
576
607
  }
577
- export function toolResultPartFromJSON(
608
+ export function publicMessagePartToolResultPartFromJSON(
578
609
  jsonString: string,
579
- ): SafeParseResult<ToolResultPart, SDKValidationError> {
610
+ ): SafeParseResult<PublicMessagePartToolResultPart, SDKValidationError> {
580
611
  return safeParse(
581
612
  jsonString,
582
- (x) => ToolResultPart$inboundSchema.parse(JSON.parse(x)),
583
- `Failed to parse 'ToolResultPart' from JSON`,
613
+ (x) => PublicMessagePartToolResultPart$inboundSchema.parse(JSON.parse(x)),
614
+ `Failed to parse 'PublicMessagePartToolResultPart' from JSON`,
584
615
  );
585
616
  }
586
617
 
587
618
  /** @internal */
588
- export const PublicMessagePartKind$inboundSchema: z.ZodNativeEnum<
589
- typeof PublicMessagePartKind
590
- > = z.nativeEnum(PublicMessagePartKind);
619
+ export const InvokeAgentPublicMessagePartAgentsKind$inboundSchema:
620
+ z.ZodNativeEnum<typeof InvokeAgentPublicMessagePartAgentsKind> = z.nativeEnum(
621
+ InvokeAgentPublicMessagePartAgentsKind,
622
+ );
591
623
  /** @internal */
592
- export const PublicMessagePartKind$outboundSchema: z.ZodNativeEnum<
593
- typeof PublicMessagePartKind
594
- > = PublicMessagePartKind$inboundSchema;
624
+ export const InvokeAgentPublicMessagePartAgentsKind$outboundSchema:
625
+ z.ZodNativeEnum<typeof InvokeAgentPublicMessagePartAgentsKind> =
626
+ InvokeAgentPublicMessagePartAgentsKind$inboundSchema;
595
627
 
596
628
  /** @internal */
597
- export const FileInURIFormat$inboundSchema: z.ZodType<
598
- FileInURIFormat,
629
+ export const FileFileInURIFormat$inboundSchema: z.ZodType<
630
+ FileFileInURIFormat,
599
631
  z.ZodTypeDef,
600
632
  unknown
601
633
  > = z.object({
@@ -604,41 +636,43 @@ export const FileInURIFormat$inboundSchema: z.ZodType<
604
636
  name: z.string().optional(),
605
637
  });
606
638
  /** @internal */
607
- export type FileInURIFormat$Outbound = {
639
+ export type FileFileInURIFormat$Outbound = {
608
640
  uri: string;
609
641
  mimeType?: string | undefined;
610
642
  name?: string | undefined;
611
643
  };
612
644
 
613
645
  /** @internal */
614
- export const FileInURIFormat$outboundSchema: z.ZodType<
615
- FileInURIFormat$Outbound,
646
+ export const FileFileInURIFormat$outboundSchema: z.ZodType<
647
+ FileFileInURIFormat$Outbound,
616
648
  z.ZodTypeDef,
617
- FileInURIFormat
649
+ FileFileInURIFormat
618
650
  > = z.object({
619
651
  uri: z.string(),
620
652
  mimeType: z.string().optional(),
621
653
  name: z.string().optional(),
622
654
  });
623
655
 
624
- export function fileInURIFormatToJSON(
625
- fileInURIFormat: FileInURIFormat,
656
+ export function fileFileInURIFormatToJSON(
657
+ fileFileInURIFormat: FileFileInURIFormat,
626
658
  ): string {
627
- return JSON.stringify(FileInURIFormat$outboundSchema.parse(fileInURIFormat));
659
+ return JSON.stringify(
660
+ FileFileInURIFormat$outboundSchema.parse(fileFileInURIFormat),
661
+ );
628
662
  }
629
- export function fileInURIFormatFromJSON(
663
+ export function fileFileInURIFormatFromJSON(
630
664
  jsonString: string,
631
- ): SafeParseResult<FileInURIFormat, SDKValidationError> {
665
+ ): SafeParseResult<FileFileInURIFormat, SDKValidationError> {
632
666
  return safeParse(
633
667
  jsonString,
634
- (x) => FileInURIFormat$inboundSchema.parse(JSON.parse(x)),
635
- `Failed to parse 'FileInURIFormat' from JSON`,
668
+ (x) => FileFileInURIFormat$inboundSchema.parse(JSON.parse(x)),
669
+ `Failed to parse 'FileFileInURIFormat' from JSON`,
636
670
  );
637
671
  }
638
672
 
639
673
  /** @internal */
640
- export const BinaryFormat$inboundSchema: z.ZodType<
641
- BinaryFormat,
674
+ export const FileBinaryFormat$inboundSchema: z.ZodType<
675
+ FileBinaryFormat,
642
676
  z.ZodTypeDef,
643
677
  unknown
644
678
  > = z.object({
@@ -647,287 +681,318 @@ export const BinaryFormat$inboundSchema: z.ZodType<
647
681
  name: z.string().optional(),
648
682
  });
649
683
  /** @internal */
650
- export type BinaryFormat$Outbound = {
684
+ export type FileBinaryFormat$Outbound = {
651
685
  bytes: string;
652
686
  mimeType?: string | undefined;
653
687
  name?: string | undefined;
654
688
  };
655
689
 
656
690
  /** @internal */
657
- export const BinaryFormat$outboundSchema: z.ZodType<
658
- BinaryFormat$Outbound,
691
+ export const FileBinaryFormat$outboundSchema: z.ZodType<
692
+ FileBinaryFormat$Outbound,
659
693
  z.ZodTypeDef,
660
- BinaryFormat
694
+ FileBinaryFormat
661
695
  > = z.object({
662
696
  bytes: z.string(),
663
697
  mimeType: z.string().optional(),
664
698
  name: z.string().optional(),
665
699
  });
666
700
 
667
- export function binaryFormatToJSON(binaryFormat: BinaryFormat): string {
668
- return JSON.stringify(BinaryFormat$outboundSchema.parse(binaryFormat));
701
+ export function fileBinaryFormatToJSON(
702
+ fileBinaryFormat: FileBinaryFormat,
703
+ ): string {
704
+ return JSON.stringify(
705
+ FileBinaryFormat$outboundSchema.parse(fileBinaryFormat),
706
+ );
669
707
  }
670
- export function binaryFormatFromJSON(
708
+ export function fileBinaryFormatFromJSON(
671
709
  jsonString: string,
672
- ): SafeParseResult<BinaryFormat, SDKValidationError> {
710
+ ): SafeParseResult<FileBinaryFormat, SDKValidationError> {
673
711
  return safeParse(
674
712
  jsonString,
675
- (x) => BinaryFormat$inboundSchema.parse(JSON.parse(x)),
676
- `Failed to parse 'BinaryFormat' from JSON`,
713
+ (x) => FileBinaryFormat$inboundSchema.parse(JSON.parse(x)),
714
+ `Failed to parse 'FileBinaryFormat' from JSON`,
677
715
  );
678
716
  }
679
717
 
680
718
  /** @internal */
681
- export const PublicMessagePartFile$inboundSchema: z.ZodType<
682
- PublicMessagePartFile,
719
+ export const InvokeAgentPublicMessagePartFile$inboundSchema: z.ZodType<
720
+ InvokeAgentPublicMessagePartFile,
683
721
  z.ZodTypeDef,
684
722
  unknown
685
723
  > = z.union([
686
- z.lazy(() => BinaryFormat$inboundSchema),
687
- z.lazy(() => FileInURIFormat$inboundSchema),
724
+ z.lazy(() => FileBinaryFormat$inboundSchema),
725
+ z.lazy(() => FileFileInURIFormat$inboundSchema),
688
726
  ]);
689
727
  /** @internal */
690
- export type PublicMessagePartFile$Outbound =
691
- | BinaryFormat$Outbound
692
- | FileInURIFormat$Outbound;
728
+ export type InvokeAgentPublicMessagePartFile$Outbound =
729
+ | FileBinaryFormat$Outbound
730
+ | FileFileInURIFormat$Outbound;
693
731
 
694
732
  /** @internal */
695
- export const PublicMessagePartFile$outboundSchema: z.ZodType<
696
- PublicMessagePartFile$Outbound,
733
+ export const InvokeAgentPublicMessagePartFile$outboundSchema: z.ZodType<
734
+ InvokeAgentPublicMessagePartFile$Outbound,
697
735
  z.ZodTypeDef,
698
- PublicMessagePartFile
736
+ InvokeAgentPublicMessagePartFile
699
737
  > = z.union([
700
- z.lazy(() => BinaryFormat$outboundSchema),
701
- z.lazy(() => FileInURIFormat$outboundSchema),
738
+ z.lazy(() => FileBinaryFormat$outboundSchema),
739
+ z.lazy(() => FileFileInURIFormat$outboundSchema),
702
740
  ]);
703
741
 
704
- export function publicMessagePartFileToJSON(
705
- publicMessagePartFile: PublicMessagePartFile,
742
+ export function invokeAgentPublicMessagePartFileToJSON(
743
+ invokeAgentPublicMessagePartFile: InvokeAgentPublicMessagePartFile,
706
744
  ): string {
707
745
  return JSON.stringify(
708
- PublicMessagePartFile$outboundSchema.parse(publicMessagePartFile),
746
+ InvokeAgentPublicMessagePartFile$outboundSchema.parse(
747
+ invokeAgentPublicMessagePartFile,
748
+ ),
709
749
  );
710
750
  }
711
- export function publicMessagePartFileFromJSON(
751
+ export function invokeAgentPublicMessagePartFileFromJSON(
712
752
  jsonString: string,
713
- ): SafeParseResult<PublicMessagePartFile, SDKValidationError> {
753
+ ): SafeParseResult<InvokeAgentPublicMessagePartFile, SDKValidationError> {
714
754
  return safeParse(
715
755
  jsonString,
716
- (x) => PublicMessagePartFile$inboundSchema.parse(JSON.parse(x)),
717
- `Failed to parse 'PublicMessagePartFile' from JSON`,
756
+ (x) => InvokeAgentPublicMessagePartFile$inboundSchema.parse(JSON.parse(x)),
757
+ `Failed to parse 'InvokeAgentPublicMessagePartFile' from JSON`,
718
758
  );
719
759
  }
720
760
 
721
761
  /** @internal */
722
- export const FilePart$inboundSchema: z.ZodType<
723
- FilePart,
762
+ export const PublicMessagePartFilePart$inboundSchema: z.ZodType<
763
+ PublicMessagePartFilePart,
724
764
  z.ZodTypeDef,
725
765
  unknown
726
766
  > = z.object({
727
- kind: PublicMessagePartKind$inboundSchema,
767
+ kind: InvokeAgentPublicMessagePartAgentsKind$inboundSchema,
728
768
  file: z.union([
729
- z.lazy(() => BinaryFormat$inboundSchema),
730
- z.lazy(() => FileInURIFormat$inboundSchema),
769
+ z.lazy(() => FileBinaryFormat$inboundSchema),
770
+ z.lazy(() => FileFileInURIFormat$inboundSchema),
731
771
  ]),
732
772
  metadata: z.record(z.any()).optional(),
733
773
  });
734
774
  /** @internal */
735
- export type FilePart$Outbound = {
775
+ export type PublicMessagePartFilePart$Outbound = {
736
776
  kind: string;
737
- file: BinaryFormat$Outbound | FileInURIFormat$Outbound;
777
+ file: FileBinaryFormat$Outbound | FileFileInURIFormat$Outbound;
738
778
  metadata?: { [k: string]: any } | undefined;
739
779
  };
740
780
 
741
781
  /** @internal */
742
- export const FilePart$outboundSchema: z.ZodType<
743
- FilePart$Outbound,
782
+ export const PublicMessagePartFilePart$outboundSchema: z.ZodType<
783
+ PublicMessagePartFilePart$Outbound,
744
784
  z.ZodTypeDef,
745
- FilePart
785
+ PublicMessagePartFilePart
746
786
  > = z.object({
747
- kind: PublicMessagePartKind$outboundSchema,
787
+ kind: InvokeAgentPublicMessagePartAgentsKind$outboundSchema,
748
788
  file: z.union([
749
- z.lazy(() => BinaryFormat$outboundSchema),
750
- z.lazy(() => FileInURIFormat$outboundSchema),
789
+ z.lazy(() => FileBinaryFormat$outboundSchema),
790
+ z.lazy(() => FileFileInURIFormat$outboundSchema),
751
791
  ]),
752
792
  metadata: z.record(z.any()).optional(),
753
793
  });
754
794
 
755
- export function filePartToJSON(filePart: FilePart): string {
756
- return JSON.stringify(FilePart$outboundSchema.parse(filePart));
795
+ export function publicMessagePartFilePartToJSON(
796
+ publicMessagePartFilePart: PublicMessagePartFilePart,
797
+ ): string {
798
+ return JSON.stringify(
799
+ PublicMessagePartFilePart$outboundSchema.parse(publicMessagePartFilePart),
800
+ );
757
801
  }
758
- export function filePartFromJSON(
802
+ export function publicMessagePartFilePartFromJSON(
759
803
  jsonString: string,
760
- ): SafeParseResult<FilePart, SDKValidationError> {
804
+ ): SafeParseResult<PublicMessagePartFilePart, SDKValidationError> {
761
805
  return safeParse(
762
806
  jsonString,
763
- (x) => FilePart$inboundSchema.parse(JSON.parse(x)),
764
- `Failed to parse 'FilePart' from JSON`,
807
+ (x) => PublicMessagePartFilePart$inboundSchema.parse(JSON.parse(x)),
808
+ `Failed to parse 'PublicMessagePartFilePart' from JSON`,
765
809
  );
766
810
  }
767
811
 
768
812
  /** @internal */
769
- export const Kind$inboundSchema: z.ZodNativeEnum<typeof Kind> = z.nativeEnum(
770
- Kind,
771
- );
813
+ export const InvokeAgentPublicMessagePartKind$inboundSchema: z.ZodNativeEnum<
814
+ typeof InvokeAgentPublicMessagePartKind
815
+ > = z.nativeEnum(InvokeAgentPublicMessagePartKind);
772
816
  /** @internal */
773
- export const Kind$outboundSchema: z.ZodNativeEnum<typeof Kind> =
774
- Kind$inboundSchema;
817
+ export const InvokeAgentPublicMessagePartKind$outboundSchema: z.ZodNativeEnum<
818
+ typeof InvokeAgentPublicMessagePartKind
819
+ > = InvokeAgentPublicMessagePartKind$inboundSchema;
775
820
 
776
821
  /** @internal */
777
- export const TextPart$inboundSchema: z.ZodType<
778
- TextPart,
822
+ export const PublicMessagePartTextPart$inboundSchema: z.ZodType<
823
+ PublicMessagePartTextPart,
779
824
  z.ZodTypeDef,
780
825
  unknown
781
826
  > = z.object({
782
- kind: Kind$inboundSchema,
827
+ kind: InvokeAgentPublicMessagePartKind$inboundSchema,
783
828
  text: z.string(),
784
829
  });
785
830
  /** @internal */
786
- export type TextPart$Outbound = {
831
+ export type PublicMessagePartTextPart$Outbound = {
787
832
  kind: string;
788
833
  text: string;
789
834
  };
790
835
 
791
836
  /** @internal */
792
- export const TextPart$outboundSchema: z.ZodType<
793
- TextPart$Outbound,
837
+ export const PublicMessagePartTextPart$outboundSchema: z.ZodType<
838
+ PublicMessagePartTextPart$Outbound,
794
839
  z.ZodTypeDef,
795
- TextPart
840
+ PublicMessagePartTextPart
796
841
  > = z.object({
797
- kind: Kind$outboundSchema,
842
+ kind: InvokeAgentPublicMessagePartKind$outboundSchema,
798
843
  text: z.string(),
799
844
  });
800
845
 
801
- export function textPartToJSON(textPart: TextPart): string {
802
- return JSON.stringify(TextPart$outboundSchema.parse(textPart));
846
+ export function publicMessagePartTextPartToJSON(
847
+ publicMessagePartTextPart: PublicMessagePartTextPart,
848
+ ): string {
849
+ return JSON.stringify(
850
+ PublicMessagePartTextPart$outboundSchema.parse(publicMessagePartTextPart),
851
+ );
803
852
  }
804
- export function textPartFromJSON(
853
+ export function publicMessagePartTextPartFromJSON(
805
854
  jsonString: string,
806
- ): SafeParseResult<TextPart, SDKValidationError> {
855
+ ): SafeParseResult<PublicMessagePartTextPart, SDKValidationError> {
807
856
  return safeParse(
808
857
  jsonString,
809
- (x) => TextPart$inboundSchema.parse(JSON.parse(x)),
810
- `Failed to parse 'TextPart' from JSON`,
858
+ (x) => PublicMessagePartTextPart$inboundSchema.parse(JSON.parse(x)),
859
+ `Failed to parse 'PublicMessagePartTextPart' from JSON`,
811
860
  );
812
861
  }
813
862
 
814
863
  /** @internal */
815
- export const PublicMessagePart$inboundSchema: z.ZodType<
816
- PublicMessagePart,
864
+ export const InvokeAgentPublicMessagePart$inboundSchema: z.ZodType<
865
+ InvokeAgentPublicMessagePart,
817
866
  z.ZodTypeDef,
818
867
  unknown
819
868
  > = z.union([
820
- z.lazy(() => TextPart$inboundSchema),
821
- z.lazy(() => FilePart$inboundSchema),
822
- z.lazy(() => ToolResultPart$inboundSchema),
869
+ z.lazy(() => PublicMessagePartTextPart$inboundSchema),
870
+ z.lazy(() => PublicMessagePartFilePart$inboundSchema),
871
+ z.lazy(() => PublicMessagePartToolResultPart$inboundSchema),
823
872
  ]);
824
873
  /** @internal */
825
- export type PublicMessagePart$Outbound =
826
- | TextPart$Outbound
827
- | FilePart$Outbound
828
- | ToolResultPart$Outbound;
874
+ export type InvokeAgentPublicMessagePart$Outbound =
875
+ | PublicMessagePartTextPart$Outbound
876
+ | PublicMessagePartFilePart$Outbound
877
+ | PublicMessagePartToolResultPart$Outbound;
829
878
 
830
879
  /** @internal */
831
- export const PublicMessagePart$outboundSchema: z.ZodType<
832
- PublicMessagePart$Outbound,
880
+ export const InvokeAgentPublicMessagePart$outboundSchema: z.ZodType<
881
+ InvokeAgentPublicMessagePart$Outbound,
833
882
  z.ZodTypeDef,
834
- PublicMessagePart
883
+ InvokeAgentPublicMessagePart
835
884
  > = z.union([
836
- z.lazy(() => TextPart$outboundSchema),
837
- z.lazy(() => FilePart$outboundSchema),
838
- z.lazy(() => ToolResultPart$outboundSchema),
885
+ z.lazy(() => PublicMessagePartTextPart$outboundSchema),
886
+ z.lazy(() => PublicMessagePartFilePart$outboundSchema),
887
+ z.lazy(() => PublicMessagePartToolResultPart$outboundSchema),
839
888
  ]);
840
889
 
841
- export function publicMessagePartToJSON(
842
- publicMessagePart: PublicMessagePart,
890
+ export function invokeAgentPublicMessagePartToJSON(
891
+ invokeAgentPublicMessagePart: InvokeAgentPublicMessagePart,
843
892
  ): string {
844
893
  return JSON.stringify(
845
- PublicMessagePart$outboundSchema.parse(publicMessagePart),
894
+ InvokeAgentPublicMessagePart$outboundSchema.parse(
895
+ invokeAgentPublicMessagePart,
896
+ ),
846
897
  );
847
898
  }
848
- export function publicMessagePartFromJSON(
899
+ export function invokeAgentPublicMessagePartFromJSON(
849
900
  jsonString: string,
850
- ): SafeParseResult<PublicMessagePart, SDKValidationError> {
901
+ ): SafeParseResult<InvokeAgentPublicMessagePart, SDKValidationError> {
851
902
  return safeParse(
852
903
  jsonString,
853
- (x) => PublicMessagePart$inboundSchema.parse(JSON.parse(x)),
854
- `Failed to parse 'PublicMessagePart' from JSON`,
904
+ (x) => InvokeAgentPublicMessagePart$inboundSchema.parse(JSON.parse(x)),
905
+ `Failed to parse 'InvokeAgentPublicMessagePart' from JSON`,
855
906
  );
856
907
  }
857
908
 
858
909
  /** @internal */
859
- export const A2AMessage$inboundSchema: z.ZodType<
860
- A2AMessage,
910
+ export const InvokeAgentA2AMessage$inboundSchema: z.ZodType<
911
+ InvokeAgentA2AMessage,
861
912
  z.ZodTypeDef,
862
913
  unknown
863
914
  > = z.object({
864
915
  messageId: z.string().optional(),
865
- role: z.union([RoleUserMessage$inboundSchema, RoleToolMessage$inboundSchema]),
916
+ role: z.union([
917
+ InvokeAgentRoleUserMessage$inboundSchema,
918
+ InvokeAgentRoleToolMessage$inboundSchema,
919
+ ]),
866
920
  parts: z.array(
867
921
  z.union([
868
- z.lazy(() => TextPart$inboundSchema),
869
- z.lazy(() => FilePart$inboundSchema),
870
- z.lazy(() => ToolResultPart$inboundSchema),
922
+ z.lazy(() => PublicMessagePartTextPart$inboundSchema),
923
+ z.lazy(() => PublicMessagePartFilePart$inboundSchema),
924
+ z.lazy(() => PublicMessagePartToolResultPart$inboundSchema),
871
925
  ]),
872
926
  ),
873
927
  });
874
928
  /** @internal */
875
- export type A2AMessage$Outbound = {
929
+ export type InvokeAgentA2AMessage$Outbound = {
876
930
  messageId?: string | undefined;
877
931
  role: string | string;
878
- parts: Array<TextPart$Outbound | FilePart$Outbound | ToolResultPart$Outbound>;
932
+ parts: Array<
933
+ | PublicMessagePartTextPart$Outbound
934
+ | PublicMessagePartFilePart$Outbound
935
+ | PublicMessagePartToolResultPart$Outbound
936
+ >;
879
937
  };
880
938
 
881
939
  /** @internal */
882
- export const A2AMessage$outboundSchema: z.ZodType<
883
- A2AMessage$Outbound,
940
+ export const InvokeAgentA2AMessage$outboundSchema: z.ZodType<
941
+ InvokeAgentA2AMessage$Outbound,
884
942
  z.ZodTypeDef,
885
- A2AMessage
943
+ InvokeAgentA2AMessage
886
944
  > = z.object({
887
945
  messageId: z.string().optional(),
888
946
  role: z.union([
889
- RoleUserMessage$outboundSchema,
890
- RoleToolMessage$outboundSchema,
947
+ InvokeAgentRoleUserMessage$outboundSchema,
948
+ InvokeAgentRoleToolMessage$outboundSchema,
891
949
  ]),
892
950
  parts: z.array(
893
951
  z.union([
894
- z.lazy(() => TextPart$outboundSchema),
895
- z.lazy(() => FilePart$outboundSchema),
896
- z.lazy(() => ToolResultPart$outboundSchema),
952
+ z.lazy(() => PublicMessagePartTextPart$outboundSchema),
953
+ z.lazy(() => PublicMessagePartFilePart$outboundSchema),
954
+ z.lazy(() => PublicMessagePartToolResultPart$outboundSchema),
897
955
  ]),
898
956
  ),
899
957
  });
900
958
 
901
- export function a2AMessageToJSON(a2AMessage: A2AMessage): string {
902
- return JSON.stringify(A2AMessage$outboundSchema.parse(a2AMessage));
959
+ export function invokeAgentA2AMessageToJSON(
960
+ invokeAgentA2AMessage: InvokeAgentA2AMessage,
961
+ ): string {
962
+ return JSON.stringify(
963
+ InvokeAgentA2AMessage$outboundSchema.parse(invokeAgentA2AMessage),
964
+ );
903
965
  }
904
- export function a2AMessageFromJSON(
966
+ export function invokeAgentA2AMessageFromJSON(
905
967
  jsonString: string,
906
- ): SafeParseResult<A2AMessage, SDKValidationError> {
968
+ ): SafeParseResult<InvokeAgentA2AMessage, SDKValidationError> {
907
969
  return safeParse(
908
970
  jsonString,
909
- (x) => A2AMessage$inboundSchema.parse(JSON.parse(x)),
910
- `Failed to parse 'A2AMessage' from JSON`,
971
+ (x) => InvokeAgentA2AMessage$inboundSchema.parse(JSON.parse(x)),
972
+ `Failed to parse 'InvokeAgentA2AMessage' from JSON`,
911
973
  );
912
974
  }
913
975
 
914
976
  /** @internal */
915
- export const Contact$inboundSchema: z.ZodType<Contact, z.ZodTypeDef, unknown> =
916
- z.object({
917
- id: z.string(),
918
- display_name: z.string().optional(),
919
- email: z.string().optional(),
920
- metadata: z.array(z.record(z.any())).optional(),
921
- logo_url: z.string().optional(),
922
- tags: z.array(z.string()).optional(),
923
- }).transform((v) => {
924
- return remap$(v, {
925
- "display_name": "displayName",
926
- "logo_url": "logoUrl",
927
- });
977
+ export const InvokeAgentContact$inboundSchema: z.ZodType<
978
+ InvokeAgentContact,
979
+ z.ZodTypeDef,
980
+ unknown
981
+ > = z.object({
982
+ id: z.string(),
983
+ display_name: z.string().optional(),
984
+ email: z.string().optional(),
985
+ metadata: z.array(z.record(z.any())).optional(),
986
+ logo_url: z.string().optional(),
987
+ tags: z.array(z.string()).optional(),
988
+ }).transform((v) => {
989
+ return remap$(v, {
990
+ "display_name": "displayName",
991
+ "logo_url": "logoUrl",
928
992
  });
993
+ });
929
994
  /** @internal */
930
- export type Contact$Outbound = {
995
+ export type InvokeAgentContact$Outbound = {
931
996
  id: string;
932
997
  display_name?: string | undefined;
933
998
  email?: string | undefined;
@@ -937,10 +1002,10 @@ export type Contact$Outbound = {
937
1002
  };
938
1003
 
939
1004
  /** @internal */
940
- export const Contact$outboundSchema: z.ZodType<
941
- Contact$Outbound,
1005
+ export const InvokeAgentContact$outboundSchema: z.ZodType<
1006
+ InvokeAgentContact$Outbound,
942
1007
  z.ZodTypeDef,
943
- Contact
1008
+ InvokeAgentContact
944
1009
  > = z.object({
945
1010
  id: z.string(),
946
1011
  displayName: z.string().optional(),
@@ -955,16 +1020,20 @@ export const Contact$outboundSchema: z.ZodType<
955
1020
  });
956
1021
  });
957
1022
 
958
- export function contactToJSON(contact: Contact): string {
959
- return JSON.stringify(Contact$outboundSchema.parse(contact));
1023
+ export function invokeAgentContactToJSON(
1024
+ invokeAgentContact: InvokeAgentContact,
1025
+ ): string {
1026
+ return JSON.stringify(
1027
+ InvokeAgentContact$outboundSchema.parse(invokeAgentContact),
1028
+ );
960
1029
  }
961
- export function contactFromJSON(
1030
+ export function invokeAgentContactFromJSON(
962
1031
  jsonString: string,
963
- ): SafeParseResult<Contact, SDKValidationError> {
1032
+ ): SafeParseResult<InvokeAgentContact, SDKValidationError> {
964
1033
  return safeParse(
965
1034
  jsonString,
966
- (x) => Contact$inboundSchema.parse(JSON.parse(x)),
967
- `Failed to parse 'Contact' from JSON`,
1035
+ (x) => InvokeAgentContact$inboundSchema.parse(JSON.parse(x)),
1036
+ `Failed to parse 'InvokeAgentContact' from JSON`,
968
1037
  );
969
1038
  }
970
1039
 
@@ -1011,24 +1080,27 @@ export function invokeAgentThreadFromJSON(
1011
1080
  }
1012
1081
 
1013
1082
  /** @internal */
1014
- export const Memory$inboundSchema: z.ZodType<Memory, z.ZodTypeDef, unknown> = z
1015
- .object({
1016
- entity_id: z.string(),
1017
- }).transform((v) => {
1018
- return remap$(v, {
1019
- "entity_id": "entityId",
1020
- });
1083
+ export const InvokeAgentMemory$inboundSchema: z.ZodType<
1084
+ InvokeAgentMemory,
1085
+ z.ZodTypeDef,
1086
+ unknown
1087
+ > = z.object({
1088
+ entity_id: z.string(),
1089
+ }).transform((v) => {
1090
+ return remap$(v, {
1091
+ "entity_id": "entityId",
1021
1092
  });
1093
+ });
1022
1094
  /** @internal */
1023
- export type Memory$Outbound = {
1095
+ export type InvokeAgentMemory$Outbound = {
1024
1096
  entity_id: string;
1025
1097
  };
1026
1098
 
1027
1099
  /** @internal */
1028
- export const Memory$outboundSchema: z.ZodType<
1029
- Memory$Outbound,
1100
+ export const InvokeAgentMemory$outboundSchema: z.ZodType<
1101
+ InvokeAgentMemory$Outbound,
1030
1102
  z.ZodTypeDef,
1031
- Memory
1103
+ InvokeAgentMemory
1032
1104
  > = z.object({
1033
1105
  entityId: z.string(),
1034
1106
  }).transform((v) => {
@@ -1037,16 +1109,20 @@ export const Memory$outboundSchema: z.ZodType<
1037
1109
  });
1038
1110
  });
1039
1111
 
1040
- export function memoryToJSON(memory: Memory): string {
1041
- return JSON.stringify(Memory$outboundSchema.parse(memory));
1112
+ export function invokeAgentMemoryToJSON(
1113
+ invokeAgentMemory: InvokeAgentMemory,
1114
+ ): string {
1115
+ return JSON.stringify(
1116
+ InvokeAgentMemory$outboundSchema.parse(invokeAgentMemory),
1117
+ );
1042
1118
  }
1043
- export function memoryFromJSON(
1119
+ export function invokeAgentMemoryFromJSON(
1044
1120
  jsonString: string,
1045
- ): SafeParseResult<Memory, SDKValidationError> {
1121
+ ): SafeParseResult<InvokeAgentMemory, SDKValidationError> {
1046
1122
  return safeParse(
1047
1123
  jsonString,
1048
- (x) => Memory$inboundSchema.parse(JSON.parse(x)),
1049
- `Failed to parse 'Memory' from JSON`,
1124
+ (x) => InvokeAgentMemory$inboundSchema.parse(JSON.parse(x)),
1125
+ `Failed to parse 'InvokeAgentMemory' from JSON`,
1050
1126
  );
1051
1127
  }
1052
1128
 
@@ -1057,11 +1133,11 @@ export const InvokeAgentRequestBody$inboundSchema: z.ZodType<
1057
1133
  unknown
1058
1134
  > = z.object({
1059
1135
  task_id: z.string().optional(),
1060
- message: z.lazy(() => A2AMessage$inboundSchema),
1136
+ message: z.lazy(() => InvokeAgentA2AMessage$inboundSchema),
1061
1137
  variables: z.record(z.any()).optional(),
1062
- contact: z.lazy(() => Contact$inboundSchema).optional(),
1138
+ contact: z.lazy(() => InvokeAgentContact$inboundSchema).optional(),
1063
1139
  thread: z.lazy(() => InvokeAgentThread$inboundSchema).optional(),
1064
- memory: z.lazy(() => Memory$inboundSchema).optional(),
1140
+ memory: z.lazy(() => InvokeAgentMemory$inboundSchema).optional(),
1065
1141
  metadata: z.record(z.any()).optional(),
1066
1142
  }).transform((v) => {
1067
1143
  return remap$(v, {
@@ -1071,11 +1147,11 @@ export const InvokeAgentRequestBody$inboundSchema: z.ZodType<
1071
1147
  /** @internal */
1072
1148
  export type InvokeAgentRequestBody$Outbound = {
1073
1149
  task_id?: string | undefined;
1074
- message: A2AMessage$Outbound;
1150
+ message: InvokeAgentA2AMessage$Outbound;
1075
1151
  variables?: { [k: string]: any } | undefined;
1076
- contact?: Contact$Outbound | undefined;
1152
+ contact?: InvokeAgentContact$Outbound | undefined;
1077
1153
  thread?: InvokeAgentThread$Outbound | undefined;
1078
- memory?: Memory$Outbound | undefined;
1154
+ memory?: InvokeAgentMemory$Outbound | undefined;
1079
1155
  metadata?: { [k: string]: any } | undefined;
1080
1156
  };
1081
1157
 
@@ -1086,11 +1162,11 @@ export const InvokeAgentRequestBody$outboundSchema: z.ZodType<
1086
1162
  InvokeAgentRequestBody
1087
1163
  > = z.object({
1088
1164
  taskId: z.string().optional(),
1089
- message: z.lazy(() => A2AMessage$outboundSchema),
1165
+ message: z.lazy(() => InvokeAgentA2AMessage$outboundSchema),
1090
1166
  variables: z.record(z.any()).optional(),
1091
- contact: z.lazy(() => Contact$outboundSchema).optional(),
1167
+ contact: z.lazy(() => InvokeAgentContact$outboundSchema).optional(),
1092
1168
  thread: z.lazy(() => InvokeAgentThread$outboundSchema).optional(),
1093
- memory: z.lazy(() => Memory$outboundSchema).optional(),
1169
+ memory: z.lazy(() => InvokeAgentMemory$outboundSchema).optional(),
1094
1170
  metadata: z.record(z.any()).optional(),
1095
1171
  }).transform((v) => {
1096
1172
  return remap$(v, {