@mailmodo/a2a 0.3.3 → 0.3.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.
@@ -0,0 +1,2550 @@
1
+ /**
2
+ * A discriminated union representing all possible JSON-RPC 2.0 requests supported by the A2A specification.
3
+ *
4
+ * This interface was referenced by `MySchema`'s JSON-Schema
5
+ * via the `definition` "A2ARequest".
6
+ */
7
+ type A2ARequest = SendMessageRequest | SendStreamingMessageRequest | GetTaskRequest | CancelTaskRequest | SetTaskPushNotificationConfigRequest | GetTaskPushNotificationConfigRequest | TaskResubscriptionRequest | ListTaskPushNotificationConfigRequest | DeleteTaskPushNotificationConfigRequest | GetAuthenticatedExtendedCardRequest;
8
+ /**
9
+ * A discriminated union representing a part of a message or artifact, which can
10
+ * be text, a file, or structured data.
11
+ *
12
+ * This interface was referenced by `MySchema`'s JSON-Schema
13
+ * via the `definition` "Part".
14
+ */
15
+ type Part = TextPart | FilePart | DataPart;
16
+ /**
17
+ * Defines a security scheme that can be used to secure an agent's endpoints.
18
+ * This is a discriminated union type based on the OpenAPI 3.0 Security Scheme Object.
19
+ *
20
+ * This interface was referenced by `MySchema`'s JSON-Schema
21
+ * via the `definition` "SecurityScheme".
22
+ */
23
+ type SecurityScheme = APIKeySecurityScheme | HTTPAuthSecurityScheme | OAuth2SecurityScheme | OpenIdConnectSecurityScheme | MutualTLSSecurityScheme;
24
+ /**
25
+ * Represents a JSON-RPC response for the `tasks/cancel` method.
26
+ *
27
+ * This interface was referenced by `MySchema`'s JSON-Schema
28
+ * via the `definition` "CancelTaskResponse".
29
+ */
30
+ type CancelTaskResponse = JSONRPCErrorResponse | CancelTaskSuccessResponse;
31
+ /**
32
+ * Represents a JSON-RPC response for the `tasks/pushNotificationConfig/delete` method.
33
+ *
34
+ * This interface was referenced by `MySchema`'s JSON-Schema
35
+ * via the `definition` "DeleteTaskPushNotificationConfigResponse".
36
+ */
37
+ type DeleteTaskPushNotificationConfigResponse = JSONRPCErrorResponse | DeleteTaskPushNotificationConfigSuccessResponse;
38
+ /**
39
+ * Represents a JSON-RPC response for the `agent/getAuthenticatedExtendedCard` method.
40
+ *
41
+ * This interface was referenced by `MySchema`'s JSON-Schema
42
+ * via the `definition` "GetAuthenticatedExtendedCardResponse".
43
+ */
44
+ type GetAuthenticatedExtendedCardResponse = JSONRPCErrorResponse | GetAuthenticatedExtendedCardSuccessResponse;
45
+ /**
46
+ * Represents a JSON-RPC response for the `tasks/pushNotificationConfig/get` method.
47
+ *
48
+ * This interface was referenced by `MySchema`'s JSON-Schema
49
+ * via the `definition` "GetTaskPushNotificationConfigResponse".
50
+ */
51
+ type GetTaskPushNotificationConfigResponse = JSONRPCErrorResponse | GetTaskPushNotificationConfigSuccessResponse;
52
+ /**
53
+ * Represents a JSON-RPC response for the `tasks/get` method.
54
+ *
55
+ * This interface was referenced by `MySchema`'s JSON-Schema
56
+ * via the `definition` "GetTaskResponse".
57
+ */
58
+ type GetTaskResponse = JSONRPCErrorResponse | GetTaskSuccessResponse;
59
+ /**
60
+ * A discriminated union representing all possible JSON-RPC 2.0 responses
61
+ * for the A2A specification methods.
62
+ *
63
+ * This interface was referenced by `MySchema`'s JSON-Schema
64
+ * via the `definition` "JSONRPCResponse".
65
+ */
66
+ type JSONRPCResponse = JSONRPCErrorResponse | SendMessageSuccessResponse | SendStreamingMessageSuccessResponse | GetTaskSuccessResponse | CancelTaskSuccessResponse | SetTaskPushNotificationConfigSuccessResponse | GetTaskPushNotificationConfigSuccessResponse | ListTaskPushNotificationConfigSuccessResponse | DeleteTaskPushNotificationConfigSuccessResponse | GetAuthenticatedExtendedCardSuccessResponse;
67
+ /**
68
+ * Represents a JSON-RPC response for the `tasks/pushNotificationConfig/list` method.
69
+ *
70
+ * This interface was referenced by `MySchema`'s JSON-Schema
71
+ * via the `definition` "ListTaskPushNotificationConfigResponse".
72
+ */
73
+ type ListTaskPushNotificationConfigResponse = JSONRPCErrorResponse | ListTaskPushNotificationConfigSuccessResponse;
74
+ /**
75
+ * Represents a JSON-RPC response for the `message/send` method.
76
+ *
77
+ * This interface was referenced by `MySchema`'s JSON-Schema
78
+ * via the `definition` "SendMessageResponse".
79
+ */
80
+ type SendMessageResponse = JSONRPCErrorResponse | SendMessageSuccessResponse;
81
+ /**
82
+ * Represents a JSON-RPC response for the `message/stream` method.
83
+ *
84
+ * This interface was referenced by `MySchema`'s JSON-Schema
85
+ * via the `definition` "SendStreamingMessageResponse".
86
+ */
87
+ type SendStreamingMessageResponse = JSONRPCErrorResponse | SendStreamingMessageSuccessResponse;
88
+ /**
89
+ * Represents a JSON-RPC response for the `tasks/pushNotificationConfig/set` method.
90
+ *
91
+ * This interface was referenced by `MySchema`'s JSON-Schema
92
+ * via the `definition` "SetTaskPushNotificationConfigResponse".
93
+ */
94
+ type SetTaskPushNotificationConfigResponse = JSONRPCErrorResponse | SetTaskPushNotificationConfigSuccessResponse;
95
+ /**
96
+ * Defines the lifecycle states of a Task.
97
+ *
98
+ * This interface was referenced by `MySchema`'s JSON-Schema
99
+ * via the `definition` "TaskState".
100
+ */
101
+ type TaskState = "submitted" | "working" | "input-required" | "completed" | "canceled" | "failed" | "rejected" | "auth-required" | "unknown";
102
+ /**
103
+ * Supported A2A transport protocols.
104
+ *
105
+ * This interface was referenced by `MySchema`'s JSON-Schema
106
+ * via the `definition` "TransportProtocol".
107
+ */
108
+ type TransportProtocol = "JSONRPC" | "GRPC" | "HTTP+JSON";
109
+ interface MySchema {
110
+ [k: string]: unknown;
111
+ }
112
+ /**
113
+ * An error indicating that the server received invalid JSON.
114
+ *
115
+ * This interface was referenced by `MySchema`'s JSON-Schema
116
+ * via the `definition` "JSONParseError".
117
+ */
118
+ interface JSONParseError {
119
+ /**
120
+ * The error code for a JSON parse error.
121
+ */
122
+ code: -32700;
123
+ /**
124
+ * A primitive or structured value containing additional information about the error.
125
+ * This may be omitted.
126
+ */
127
+ data?: {
128
+ [k: string]: unknown;
129
+ };
130
+ /**
131
+ * The error message.
132
+ */
133
+ message: string;
134
+ }
135
+ /**
136
+ * An error indicating that the JSON sent is not a valid Request object.
137
+ *
138
+ * This interface was referenced by `MySchema`'s JSON-Schema
139
+ * via the `definition` "InvalidRequestError".
140
+ */
141
+ interface InvalidRequestError {
142
+ /**
143
+ * The error code for an invalid request.
144
+ */
145
+ code: -32600;
146
+ /**
147
+ * A primitive or structured value containing additional information about the error.
148
+ * This may be omitted.
149
+ */
150
+ data?: {
151
+ [k: string]: unknown;
152
+ };
153
+ /**
154
+ * The error message.
155
+ */
156
+ message: string;
157
+ }
158
+ /**
159
+ * An error indicating that the requested method does not exist or is not available.
160
+ *
161
+ * This interface was referenced by `MySchema`'s JSON-Schema
162
+ * via the `definition` "MethodNotFoundError".
163
+ */
164
+ interface MethodNotFoundError {
165
+ /**
166
+ * The error code for a method not found error.
167
+ */
168
+ code: -32601;
169
+ /**
170
+ * A primitive or structured value containing additional information about the error.
171
+ * This may be omitted.
172
+ */
173
+ data?: {
174
+ [k: string]: unknown;
175
+ };
176
+ /**
177
+ * The error message.
178
+ */
179
+ message: string;
180
+ }
181
+ /**
182
+ * An error indicating that the method parameters are invalid.
183
+ *
184
+ * This interface was referenced by `MySchema`'s JSON-Schema
185
+ * via the `definition` "InvalidParamsError".
186
+ */
187
+ interface InvalidParamsError {
188
+ /**
189
+ * The error code for an invalid parameters error.
190
+ */
191
+ code: -32602;
192
+ /**
193
+ * A primitive or structured value containing additional information about the error.
194
+ * This may be omitted.
195
+ */
196
+ data?: {
197
+ [k: string]: unknown;
198
+ };
199
+ /**
200
+ * The error message.
201
+ */
202
+ message: string;
203
+ }
204
+ /**
205
+ * An error indicating an internal error on the server.
206
+ *
207
+ * This interface was referenced by `MySchema`'s JSON-Schema
208
+ * via the `definition` "InternalError".
209
+ */
210
+ interface InternalError {
211
+ /**
212
+ * The error code for an internal server error.
213
+ */
214
+ code: -32603;
215
+ /**
216
+ * A primitive or structured value containing additional information about the error.
217
+ * This may be omitted.
218
+ */
219
+ data?: {
220
+ [k: string]: unknown;
221
+ };
222
+ /**
223
+ * The error message.
224
+ */
225
+ message: string;
226
+ }
227
+ /**
228
+ * An A2A-specific error indicating that the requested task ID was not found.
229
+ *
230
+ * This interface was referenced by `MySchema`'s JSON-Schema
231
+ * via the `definition` "TaskNotFoundError".
232
+ */
233
+ interface TaskNotFoundError {
234
+ /**
235
+ * The error code for a task not found error.
236
+ */
237
+ code: -32001;
238
+ /**
239
+ * A primitive or structured value containing additional information about the error.
240
+ * This may be omitted.
241
+ */
242
+ data?: {
243
+ [k: string]: unknown;
244
+ };
245
+ /**
246
+ * The error message.
247
+ */
248
+ message: string;
249
+ }
250
+ /**
251
+ * An A2A-specific error indicating that the task is in a state where it cannot be canceled.
252
+ *
253
+ * This interface was referenced by `MySchema`'s JSON-Schema
254
+ * via the `definition` "TaskNotCancelableError".
255
+ */
256
+ interface TaskNotCancelableError {
257
+ /**
258
+ * The error code for a task that cannot be canceled.
259
+ */
260
+ code: -32002;
261
+ /**
262
+ * A primitive or structured value containing additional information about the error.
263
+ * This may be omitted.
264
+ */
265
+ data?: {
266
+ [k: string]: unknown;
267
+ };
268
+ /**
269
+ * The error message.
270
+ */
271
+ message: string;
272
+ }
273
+ /**
274
+ * An A2A-specific error indicating that the agent does not support push notifications.
275
+ *
276
+ * This interface was referenced by `MySchema`'s JSON-Schema
277
+ * via the `definition` "PushNotificationNotSupportedError".
278
+ */
279
+ interface PushNotificationNotSupportedError {
280
+ /**
281
+ * The error code for when push notifications are not supported.
282
+ */
283
+ code: -32003;
284
+ /**
285
+ * A primitive or structured value containing additional information about the error.
286
+ * This may be omitted.
287
+ */
288
+ data?: {
289
+ [k: string]: unknown;
290
+ };
291
+ /**
292
+ * The error message.
293
+ */
294
+ message: string;
295
+ }
296
+ /**
297
+ * An A2A-specific error indicating that the requested operation is not supported by the agent.
298
+ *
299
+ * This interface was referenced by `MySchema`'s JSON-Schema
300
+ * via the `definition` "UnsupportedOperationError".
301
+ */
302
+ interface UnsupportedOperationError {
303
+ /**
304
+ * The error code for an unsupported operation.
305
+ */
306
+ code: -32004;
307
+ /**
308
+ * A primitive or structured value containing additional information about the error.
309
+ * This may be omitted.
310
+ */
311
+ data?: {
312
+ [k: string]: unknown;
313
+ };
314
+ /**
315
+ * The error message.
316
+ */
317
+ message: string;
318
+ }
319
+ /**
320
+ * An A2A-specific error indicating an incompatibility between the requested
321
+ * content types and the agent's capabilities.
322
+ *
323
+ * This interface was referenced by `MySchema`'s JSON-Schema
324
+ * via the `definition` "ContentTypeNotSupportedError".
325
+ */
326
+ interface ContentTypeNotSupportedError {
327
+ /**
328
+ * The error code for an unsupported content type.
329
+ */
330
+ code: -32005;
331
+ /**
332
+ * A primitive or structured value containing additional information about the error.
333
+ * This may be omitted.
334
+ */
335
+ data?: {
336
+ [k: string]: unknown;
337
+ };
338
+ /**
339
+ * The error message.
340
+ */
341
+ message: string;
342
+ }
343
+ /**
344
+ * An A2A-specific error indicating that the agent returned a response that
345
+ * does not conform to the specification for the current method.
346
+ *
347
+ * This interface was referenced by `MySchema`'s JSON-Schema
348
+ * via the `definition` "InvalidAgentResponseError".
349
+ */
350
+ interface InvalidAgentResponseError {
351
+ /**
352
+ * The error code for an invalid agent response.
353
+ */
354
+ code: -32006;
355
+ /**
356
+ * A primitive or structured value containing additional information about the error.
357
+ * This may be omitted.
358
+ */
359
+ data?: {
360
+ [k: string]: unknown;
361
+ };
362
+ /**
363
+ * The error message.
364
+ */
365
+ message: string;
366
+ }
367
+ /**
368
+ * An A2A-specific error indicating that the agent does not have an Authenticated Extended Card configured
369
+ *
370
+ * This interface was referenced by `MySchema`'s JSON-Schema
371
+ * via the `definition` "AuthenticatedExtendedCardNotConfiguredError".
372
+ */
373
+ interface AuthenticatedExtendedCardNotConfiguredError {
374
+ /**
375
+ * The error code for when an authenticated extended card is not configured.
376
+ */
377
+ code: -32007;
378
+ /**
379
+ * A primitive or structured value containing additional information about the error.
380
+ * This may be omitted.
381
+ */
382
+ data?: {
383
+ [k: string]: unknown;
384
+ };
385
+ /**
386
+ * The error message.
387
+ */
388
+ message: string;
389
+ }
390
+ /**
391
+ * Represents a JSON-RPC request for the `message/send` method.
392
+ *
393
+ * This interface was referenced by `MySchema`'s JSON-Schema
394
+ * via the `definition` "SendMessageRequest".
395
+ */
396
+ interface SendMessageRequest {
397
+ /**
398
+ * The identifier for this request.
399
+ */
400
+ id: string | number;
401
+ /**
402
+ * The version of the JSON-RPC protocol. MUST be exactly "2.0".
403
+ */
404
+ jsonrpc: "2.0";
405
+ /**
406
+ * The method name. Must be 'message/send'.
407
+ */
408
+ method: "message/send";
409
+ params: MessageSendParams;
410
+ }
411
+ /**
412
+ * The parameters for sending a message.
413
+ */
414
+ interface MessageSendParams {
415
+ configuration?: MessageSendConfiguration;
416
+ message: Message;
417
+ /**
418
+ * Optional metadata for extensions.
419
+ */
420
+ metadata?: {
421
+ [k: string]: unknown;
422
+ };
423
+ }
424
+ /**
425
+ * Optional configuration for the send request.
426
+ */
427
+ interface MessageSendConfiguration {
428
+ /**
429
+ * A list of output MIME types the client is prepared to accept in the response.
430
+ */
431
+ acceptedOutputModes?: string[];
432
+ /**
433
+ * If true, the client will wait for the task to complete. The server may reject this if the task is long-running.
434
+ */
435
+ blocking?: boolean;
436
+ /**
437
+ * The number of most recent messages from the task's history to retrieve in the response.
438
+ */
439
+ historyLength?: number;
440
+ pushNotificationConfig?: PushNotificationConfig;
441
+ }
442
+ /**
443
+ * Configuration for the agent to send push notifications for updates after the initial response.
444
+ */
445
+ interface PushNotificationConfig {
446
+ authentication?: PushNotificationAuthenticationInfo;
447
+ /**
448
+ * A unique ID for the push notification configuration, set by the client
449
+ * to support multiple notification callbacks.
450
+ */
451
+ id?: string;
452
+ /**
453
+ * A unique token for this task or session to validate incoming push notifications.
454
+ */
455
+ token?: string;
456
+ /**
457
+ * The callback URL where the agent should send push notifications.
458
+ */
459
+ url: string;
460
+ }
461
+ /**
462
+ * Optional authentication details for the agent to use when calling the notification URL.
463
+ */
464
+ interface PushNotificationAuthenticationInfo {
465
+ /**
466
+ * Optional credentials required by the push notification endpoint.
467
+ */
468
+ credentials?: string;
469
+ /**
470
+ * A list of supported authentication schemes (e.g., 'Basic', 'Bearer').
471
+ */
472
+ schemes: string[];
473
+ }
474
+ /**
475
+ * The message object being sent to the agent.
476
+ */
477
+ interface Message {
478
+ /**
479
+ * The context identifier for this message, used to group related interactions.
480
+ */
481
+ contextId?: string;
482
+ /**
483
+ * The URIs of extensions that are relevant to this message.
484
+ */
485
+ extensions?: string[];
486
+ /**
487
+ * The type of this object, used as a discriminator. Always 'message' for a Message.
488
+ */
489
+ kind: "message";
490
+ /**
491
+ * A unique identifier for the message, typically a UUID, generated by the sender.
492
+ */
493
+ messageId: string;
494
+ /**
495
+ * Optional metadata for extensions. The key is an extension-specific identifier.
496
+ */
497
+ metadata?: {
498
+ [k: string]: unknown;
499
+ };
500
+ /**
501
+ * An array of content parts that form the message body. A message can be
502
+ * composed of multiple parts of different types (e.g., text and files).
503
+ */
504
+ parts: Part[];
505
+ /**
506
+ * A list of other task IDs that this message references for additional context.
507
+ */
508
+ referenceTaskIds?: string[];
509
+ /**
510
+ * Identifies the sender of the message. `user` for the client, `agent` for the service.
511
+ */
512
+ role: "agent" | "user";
513
+ /**
514
+ * The identifier of the task this message is part of. Can be omitted for the first message of a new task.
515
+ */
516
+ taskId?: string;
517
+ }
518
+ /**
519
+ * Represents a text segment within a message or artifact.
520
+ *
521
+ * This interface was referenced by `MySchema`'s JSON-Schema
522
+ * via the `definition` "TextPart".
523
+ */
524
+ interface TextPart {
525
+ /**
526
+ * The type of this part, used as a discriminator. Always 'text'.
527
+ */
528
+ kind: "text";
529
+ /**
530
+ * Optional metadata associated with this part.
531
+ */
532
+ metadata?: {
533
+ [k: string]: unknown;
534
+ };
535
+ /**
536
+ * The string content of the text part.
537
+ */
538
+ text: string;
539
+ }
540
+ /**
541
+ * Represents a file segment within a message or artifact. The file content can be
542
+ * provided either directly as bytes or as a URI.
543
+ *
544
+ * This interface was referenced by `MySchema`'s JSON-Schema
545
+ * via the `definition` "FilePart".
546
+ */
547
+ interface FilePart {
548
+ /**
549
+ * The file content, represented as either a URI or as base64-encoded bytes.
550
+ */
551
+ file: FileWithBytes | FileWithUri;
552
+ /**
553
+ * The type of this part, used as a discriminator. Always 'file'.
554
+ */
555
+ kind: "file";
556
+ /**
557
+ * Optional metadata associated with this part.
558
+ */
559
+ metadata?: {
560
+ [k: string]: unknown;
561
+ };
562
+ }
563
+ /**
564
+ * Represents a file with its content provided directly as a base64-encoded string.
565
+ *
566
+ * This interface was referenced by `MySchema`'s JSON-Schema
567
+ * via the `definition` "FileWithBytes".
568
+ */
569
+ interface FileWithBytes {
570
+ /**
571
+ * The base64-encoded content of the file.
572
+ */
573
+ bytes: string;
574
+ /**
575
+ * The MIME type of the file (e.g., "application/pdf").
576
+ */
577
+ mimeType?: string;
578
+ /**
579
+ * An optional name for the file (e.g., "document.pdf").
580
+ */
581
+ name?: string;
582
+ }
583
+ /**
584
+ * Represents a file with its content located at a specific URI.
585
+ *
586
+ * This interface was referenced by `MySchema`'s JSON-Schema
587
+ * via the `definition` "FileWithUri".
588
+ */
589
+ interface FileWithUri {
590
+ /**
591
+ * The MIME type of the file (e.g., "application/pdf").
592
+ */
593
+ mimeType?: string;
594
+ /**
595
+ * An optional name for the file (e.g., "document.pdf").
596
+ */
597
+ name?: string;
598
+ /**
599
+ * A URL pointing to the file's content.
600
+ */
601
+ uri: string;
602
+ }
603
+ /**
604
+ * Represents a structured data segment (e.g., JSON) within a message or artifact.
605
+ *
606
+ * This interface was referenced by `MySchema`'s JSON-Schema
607
+ * via the `definition` "DataPart".
608
+ */
609
+ interface DataPart {
610
+ /**
611
+ * The structured data content.
612
+ */
613
+ data: {
614
+ [k: string]: unknown;
615
+ };
616
+ /**
617
+ * The type of this part, used as a discriminator. Always 'data'.
618
+ */
619
+ kind: "data";
620
+ /**
621
+ * Optional metadata associated with this part.
622
+ */
623
+ metadata?: {
624
+ [k: string]: unknown;
625
+ };
626
+ }
627
+ /**
628
+ * Represents a JSON-RPC request for the `message/stream` method.
629
+ *
630
+ * This interface was referenced by `MySchema`'s JSON-Schema
631
+ * via the `definition` "SendStreamingMessageRequest".
632
+ */
633
+ interface SendStreamingMessageRequest {
634
+ /**
635
+ * The identifier for this request.
636
+ */
637
+ id: string | number;
638
+ /**
639
+ * The version of the JSON-RPC protocol. MUST be exactly "2.0".
640
+ */
641
+ jsonrpc: "2.0";
642
+ /**
643
+ * The method name. Must be 'message/stream'.
644
+ */
645
+ method: "message/stream";
646
+ params: MessageSendParams1;
647
+ }
648
+ /**
649
+ * The parameters for sending a message.
650
+ */
651
+ interface MessageSendParams1 {
652
+ configuration?: MessageSendConfiguration;
653
+ message: Message;
654
+ /**
655
+ * Optional metadata for extensions.
656
+ */
657
+ metadata?: {
658
+ [k: string]: unknown;
659
+ };
660
+ }
661
+ /**
662
+ * Represents a JSON-RPC request for the `tasks/get` method.
663
+ *
664
+ * This interface was referenced by `MySchema`'s JSON-Schema
665
+ * via the `definition` "GetTaskRequest".
666
+ */
667
+ interface GetTaskRequest {
668
+ /**
669
+ * The identifier for this request.
670
+ */
671
+ id: string | number;
672
+ /**
673
+ * The version of the JSON-RPC protocol. MUST be exactly "2.0".
674
+ */
675
+ jsonrpc: "2.0";
676
+ /**
677
+ * The method name. Must be 'tasks/get'.
678
+ */
679
+ method: "tasks/get";
680
+ params: TaskQueryParams;
681
+ }
682
+ /**
683
+ * The parameters for querying a task.
684
+ */
685
+ interface TaskQueryParams {
686
+ /**
687
+ * The number of most recent messages from the task's history to retrieve.
688
+ */
689
+ historyLength?: number;
690
+ /**
691
+ * The unique identifier of the task.
692
+ */
693
+ id: string;
694
+ /**
695
+ * Optional metadata associated with the request.
696
+ */
697
+ metadata?: {
698
+ [k: string]: unknown;
699
+ };
700
+ }
701
+ /**
702
+ * Represents a JSON-RPC request for the `tasks/cancel` method.
703
+ *
704
+ * This interface was referenced by `MySchema`'s JSON-Schema
705
+ * via the `definition` "CancelTaskRequest".
706
+ */
707
+ interface CancelTaskRequest {
708
+ /**
709
+ * The identifier for this request.
710
+ */
711
+ id: string | number;
712
+ /**
713
+ * The version of the JSON-RPC protocol. MUST be exactly "2.0".
714
+ */
715
+ jsonrpc: "2.0";
716
+ /**
717
+ * The method name. Must be 'tasks/cancel'.
718
+ */
719
+ method: "tasks/cancel";
720
+ params: TaskIdParams;
721
+ }
722
+ /**
723
+ * The parameters identifying the task to cancel.
724
+ */
725
+ interface TaskIdParams {
726
+ /**
727
+ * The unique identifier of the task.
728
+ */
729
+ id: string;
730
+ /**
731
+ * Optional metadata associated with the request.
732
+ */
733
+ metadata?: {
734
+ [k: string]: unknown;
735
+ };
736
+ }
737
+ /**
738
+ * Represents a JSON-RPC request for the `tasks/pushNotificationConfig/set` method.
739
+ *
740
+ * This interface was referenced by `MySchema`'s JSON-Schema
741
+ * via the `definition` "SetTaskPushNotificationConfigRequest".
742
+ */
743
+ interface SetTaskPushNotificationConfigRequest {
744
+ /**
745
+ * The identifier for this request.
746
+ */
747
+ id: string | number;
748
+ /**
749
+ * The version of the JSON-RPC protocol. MUST be exactly "2.0".
750
+ */
751
+ jsonrpc: "2.0";
752
+ /**
753
+ * The method name. Must be 'tasks/pushNotificationConfig/set'.
754
+ */
755
+ method: "tasks/pushNotificationConfig/set";
756
+ params: TaskPushNotificationConfig;
757
+ }
758
+ /**
759
+ * The parameters for setting the push notification configuration.
760
+ */
761
+ interface TaskPushNotificationConfig {
762
+ pushNotificationConfig: PushNotificationConfig1;
763
+ /**
764
+ * The ID of the task.
765
+ */
766
+ taskId: string;
767
+ }
768
+ /**
769
+ * The push notification configuration for this task.
770
+ */
771
+ interface PushNotificationConfig1 {
772
+ authentication?: PushNotificationAuthenticationInfo;
773
+ /**
774
+ * A unique ID for the push notification configuration, set by the client
775
+ * to support multiple notification callbacks.
776
+ */
777
+ id?: string;
778
+ /**
779
+ * A unique token for this task or session to validate incoming push notifications.
780
+ */
781
+ token?: string;
782
+ /**
783
+ * The callback URL where the agent should send push notifications.
784
+ */
785
+ url: string;
786
+ }
787
+ /**
788
+ * Represents a JSON-RPC request for the `tasks/pushNotificationConfig/get` method.
789
+ *
790
+ * This interface was referenced by `MySchema`'s JSON-Schema
791
+ * via the `definition` "GetTaskPushNotificationConfigRequest".
792
+ */
793
+ interface GetTaskPushNotificationConfigRequest {
794
+ /**
795
+ * The identifier for this request.
796
+ */
797
+ id: string | number;
798
+ /**
799
+ * The version of the JSON-RPC protocol. MUST be exactly "2.0".
800
+ */
801
+ jsonrpc: "2.0";
802
+ /**
803
+ * The method name. Must be 'tasks/pushNotificationConfig/get'.
804
+ */
805
+ method: "tasks/pushNotificationConfig/get";
806
+ /**
807
+ * The parameters for getting a push notification configuration.
808
+ */
809
+ params: TaskIdParams1 | GetTaskPushNotificationConfigParams;
810
+ }
811
+ /**
812
+ * Defines parameters containing a task ID, used for simple task operations.
813
+ *
814
+ * This interface was referenced by `MySchema`'s JSON-Schema
815
+ * via the `definition` "TaskIdParams".
816
+ */
817
+ interface TaskIdParams1 {
818
+ /**
819
+ * The unique identifier of the task.
820
+ */
821
+ id: string;
822
+ /**
823
+ * Optional metadata associated with the request.
824
+ */
825
+ metadata?: {
826
+ [k: string]: unknown;
827
+ };
828
+ }
829
+ /**
830
+ * Defines parameters for fetching a specific push notification configuration for a task.
831
+ *
832
+ * This interface was referenced by `MySchema`'s JSON-Schema
833
+ * via the `definition` "GetTaskPushNotificationConfigParams".
834
+ */
835
+ interface GetTaskPushNotificationConfigParams {
836
+ /**
837
+ * The unique identifier of the task.
838
+ */
839
+ id: string;
840
+ /**
841
+ * Optional metadata associated with the request.
842
+ */
843
+ metadata?: {
844
+ [k: string]: unknown;
845
+ };
846
+ /**
847
+ * The ID of the push notification configuration to retrieve.
848
+ */
849
+ pushNotificationConfigId?: string;
850
+ }
851
+ /**
852
+ * Represents a JSON-RPC request for the `tasks/resubscribe` method, used to resume a streaming connection.
853
+ *
854
+ * This interface was referenced by `MySchema`'s JSON-Schema
855
+ * via the `definition` "TaskResubscriptionRequest".
856
+ */
857
+ interface TaskResubscriptionRequest {
858
+ /**
859
+ * The identifier for this request.
860
+ */
861
+ id: string | number;
862
+ /**
863
+ * The version of the JSON-RPC protocol. MUST be exactly "2.0".
864
+ */
865
+ jsonrpc: "2.0";
866
+ /**
867
+ * The method name. Must be 'tasks/resubscribe'.
868
+ */
869
+ method: "tasks/resubscribe";
870
+ params: TaskIdParams2;
871
+ }
872
+ /**
873
+ * Defines parameters containing a task ID, used for simple task operations.
874
+ */
875
+ interface TaskIdParams2 {
876
+ /**
877
+ * The unique identifier of the task.
878
+ */
879
+ id: string;
880
+ /**
881
+ * Optional metadata associated with the request.
882
+ */
883
+ metadata?: {
884
+ [k: string]: unknown;
885
+ };
886
+ }
887
+ /**
888
+ * Represents a JSON-RPC request for the `tasks/pushNotificationConfig/list` method.
889
+ *
890
+ * This interface was referenced by `MySchema`'s JSON-Schema
891
+ * via the `definition` "ListTaskPushNotificationConfigRequest".
892
+ */
893
+ interface ListTaskPushNotificationConfigRequest {
894
+ /**
895
+ * The identifier for this request.
896
+ */
897
+ id: string | number;
898
+ /**
899
+ * The version of the JSON-RPC protocol. MUST be exactly "2.0".
900
+ */
901
+ jsonrpc: "2.0";
902
+ /**
903
+ * The method name. Must be 'tasks/pushNotificationConfig/list'.
904
+ */
905
+ method: "tasks/pushNotificationConfig/list";
906
+ params: ListTaskPushNotificationConfigParams;
907
+ }
908
+ /**
909
+ * The parameters identifying the task whose configurations are to be listed.
910
+ */
911
+ interface ListTaskPushNotificationConfigParams {
912
+ /**
913
+ * The unique identifier of the task.
914
+ */
915
+ id: string;
916
+ /**
917
+ * Optional metadata associated with the request.
918
+ */
919
+ metadata?: {
920
+ [k: string]: unknown;
921
+ };
922
+ }
923
+ /**
924
+ * Represents a JSON-RPC request for the `tasks/pushNotificationConfig/delete` method.
925
+ *
926
+ * This interface was referenced by `MySchema`'s JSON-Schema
927
+ * via the `definition` "DeleteTaskPushNotificationConfigRequest".
928
+ */
929
+ interface DeleteTaskPushNotificationConfigRequest {
930
+ /**
931
+ * The identifier for this request.
932
+ */
933
+ id: string | number;
934
+ /**
935
+ * The version of the JSON-RPC protocol. MUST be exactly "2.0".
936
+ */
937
+ jsonrpc: "2.0";
938
+ /**
939
+ * The method name. Must be 'tasks/pushNotificationConfig/delete'.
940
+ */
941
+ method: "tasks/pushNotificationConfig/delete";
942
+ params: DeleteTaskPushNotificationConfigParams;
943
+ }
944
+ /**
945
+ * The parameters identifying the push notification configuration to delete.
946
+ */
947
+ interface DeleteTaskPushNotificationConfigParams {
948
+ /**
949
+ * The unique identifier of the task.
950
+ */
951
+ id: string;
952
+ /**
953
+ * Optional metadata associated with the request.
954
+ */
955
+ metadata?: {
956
+ [k: string]: unknown;
957
+ };
958
+ /**
959
+ * The ID of the push notification configuration to delete.
960
+ */
961
+ pushNotificationConfigId: string;
962
+ }
963
+ /**
964
+ * Represents a JSON-RPC request for the `agent/getAuthenticatedExtendedCard` method.
965
+ *
966
+ * This interface was referenced by `MySchema`'s JSON-Schema
967
+ * via the `definition` "GetAuthenticatedExtendedCardRequest".
968
+ */
969
+ interface GetAuthenticatedExtendedCardRequest {
970
+ /**
971
+ * The identifier for this request.
972
+ */
973
+ id: string | number;
974
+ /**
975
+ * The version of the JSON-RPC protocol. MUST be exactly "2.0".
976
+ */
977
+ jsonrpc: "2.0";
978
+ /**
979
+ * The method name. Must be 'agent/getAuthenticatedExtendedCard'.
980
+ */
981
+ method: "agent/getAuthenticatedExtendedCard";
982
+ }
983
+ /**
984
+ * Defines a security scheme using an API key.
985
+ *
986
+ * This interface was referenced by `MySchema`'s JSON-Schema
987
+ * via the `definition` "APIKeySecurityScheme".
988
+ */
989
+ interface APIKeySecurityScheme {
990
+ /**
991
+ * An optional description for the security scheme.
992
+ */
993
+ description?: string;
994
+ /**
995
+ * The location of the API key.
996
+ */
997
+ in: "cookie" | "header" | "query";
998
+ /**
999
+ * The name of the header, query, or cookie parameter to be used.
1000
+ */
1001
+ name: string;
1002
+ /**
1003
+ * The type of the security scheme. Must be 'apiKey'.
1004
+ */
1005
+ type: "apiKey";
1006
+ }
1007
+ /**
1008
+ * Defines optional capabilities supported by an agent.
1009
+ *
1010
+ * This interface was referenced by `MySchema`'s JSON-Schema
1011
+ * via the `definition` "AgentCapabilities".
1012
+ */
1013
+ interface AgentCapabilities {
1014
+ /**
1015
+ * A list of protocol extensions supported by the agent.
1016
+ */
1017
+ extensions?: AgentExtension[];
1018
+ /**
1019
+ * Indicates if the agent supports sending push notifications for asynchronous task updates.
1020
+ */
1021
+ pushNotifications?: boolean;
1022
+ /**
1023
+ * Indicates if the agent provides a history of state transitions for a task.
1024
+ */
1025
+ stateTransitionHistory?: boolean;
1026
+ /**
1027
+ * Indicates if the agent supports Server-Sent Events (SSE) for streaming responses.
1028
+ */
1029
+ streaming?: boolean;
1030
+ }
1031
+ /**
1032
+ * A declaration of a protocol extension supported by an Agent.
1033
+ *
1034
+ * This interface was referenced by `MySchema`'s JSON-Schema
1035
+ * via the `definition` "AgentExtension".
1036
+ */
1037
+ interface AgentExtension {
1038
+ /**
1039
+ * A human-readable description of how this agent uses the extension.
1040
+ */
1041
+ description?: string;
1042
+ /**
1043
+ * Optional, extension-specific configuration parameters.
1044
+ */
1045
+ params?: {
1046
+ [k: string]: unknown;
1047
+ };
1048
+ /**
1049
+ * If true, the client must understand and comply with the extension's requirements
1050
+ * to interact with the agent.
1051
+ */
1052
+ required?: boolean;
1053
+ /**
1054
+ * The unique URI identifying the extension.
1055
+ */
1056
+ uri: string;
1057
+ }
1058
+ /**
1059
+ * The AgentCard is a self-describing manifest for an agent. It provides essential
1060
+ * metadata including the agent's identity, capabilities, skills, supported
1061
+ * communication methods, and security requirements.
1062
+ *
1063
+ * This interface was referenced by `MySchema`'s JSON-Schema
1064
+ * via the `definition` "AgentCard".
1065
+ */
1066
+ interface AgentCard {
1067
+ /**
1068
+ * A list of additional supported interfaces (transport and URL combinations).
1069
+ * This allows agents to expose multiple transports, potentially at different URLs.
1070
+ *
1071
+ * Best practices:
1072
+ * - SHOULD include all supported transports for completeness
1073
+ * - SHOULD include an entry matching the main 'url' and 'preferredTransport'
1074
+ * - MAY reuse URLs if multiple transports are available at the same endpoint
1075
+ * - MUST accurately declare the transport available at each URL
1076
+ *
1077
+ * Clients can select any interface from this list based on their transport capabilities
1078
+ * and preferences. This enables transport negotiation and fallback scenarios.
1079
+ */
1080
+ additionalInterfaces?: AgentInterface[];
1081
+ capabilities: AgentCapabilities1;
1082
+ /**
1083
+ * Default set of supported input MIME types for all skills, which can be
1084
+ * overridden on a per-skill basis.
1085
+ */
1086
+ defaultInputModes: string[];
1087
+ /**
1088
+ * Default set of supported output MIME types for all skills, which can be
1089
+ * overridden on a per-skill basis.
1090
+ */
1091
+ defaultOutputModes: string[];
1092
+ /**
1093
+ * A human-readable description of the agent, assisting users and other agents
1094
+ * in understanding its purpose.
1095
+ */
1096
+ description: string;
1097
+ /**
1098
+ * An optional URL to the agent's documentation.
1099
+ */
1100
+ documentationUrl?: string;
1101
+ /**
1102
+ * An optional URL to an icon for the agent.
1103
+ */
1104
+ iconUrl?: string;
1105
+ /**
1106
+ * A human-readable name for the agent.
1107
+ */
1108
+ name: string;
1109
+ /**
1110
+ * The transport protocol for the preferred endpoint (the main 'url' field).
1111
+ * If not specified, defaults to 'JSONRPC'.
1112
+ *
1113
+ * IMPORTANT: The transport specified here MUST be available at the main 'url'.
1114
+ * This creates a binding between the main URL and its supported transport protocol.
1115
+ * Clients should prefer this transport and URL combination when both are supported.
1116
+ */
1117
+ preferredTransport?: string;
1118
+ /**
1119
+ * The version of the A2A protocol this agent supports.
1120
+ */
1121
+ protocolVersion: string;
1122
+ provider?: AgentProvider;
1123
+ /**
1124
+ * A list of security requirement objects that apply to all agent interactions. Each object
1125
+ * lists security schemes that can be used. Follows the OpenAPI 3.0 Security Requirement Object.
1126
+ * This list can be seen as an OR of ANDs. Each object in the list describes one possible
1127
+ * set of security requirements that must be present on a request. This allows specifying,
1128
+ * for example, "callers must either use OAuth OR an API Key AND mTLS."
1129
+ */
1130
+ security?: {
1131
+ [k: string]: string[];
1132
+ }[];
1133
+ /**
1134
+ * A declaration of the security schemes available to authorize requests. The key is the
1135
+ * scheme name. Follows the OpenAPI 3.0 Security Scheme Object.
1136
+ */
1137
+ securitySchemes?: {
1138
+ [k: string]: SecurityScheme;
1139
+ };
1140
+ /**
1141
+ * JSON Web Signatures computed for this AgentCard.
1142
+ */
1143
+ signatures?: AgentCardSignature[];
1144
+ /**
1145
+ * The set of skills, or distinct capabilities, that the agent can perform.
1146
+ */
1147
+ skills: AgentSkill[];
1148
+ /**
1149
+ * If true, the agent can provide an extended agent card with additional details
1150
+ * to authenticated users. Defaults to false.
1151
+ */
1152
+ supportsAuthenticatedExtendedCard?: boolean;
1153
+ /**
1154
+ * The preferred endpoint URL for interacting with the agent.
1155
+ * This URL MUST support the transport specified by 'preferredTransport'.
1156
+ */
1157
+ url: string;
1158
+ /**
1159
+ * The agent's own version number. The format is defined by the provider.
1160
+ */
1161
+ version: string;
1162
+ }
1163
+ /**
1164
+ * Declares a combination of a target URL and a transport protocol for interacting with the agent.
1165
+ * This allows agents to expose the same functionality over multiple transport mechanisms.
1166
+ *
1167
+ * This interface was referenced by `MySchema`'s JSON-Schema
1168
+ * via the `definition` "AgentInterface".
1169
+ */
1170
+ interface AgentInterface {
1171
+ /**
1172
+ * The transport protocol supported at this URL.
1173
+ */
1174
+ transport: string;
1175
+ /**
1176
+ * The URL where this interface is available. Must be a valid absolute HTTPS URL in production.
1177
+ */
1178
+ url: string;
1179
+ }
1180
+ /**
1181
+ * A declaration of optional capabilities supported by the agent.
1182
+ */
1183
+ interface AgentCapabilities1 {
1184
+ /**
1185
+ * A list of protocol extensions supported by the agent.
1186
+ */
1187
+ extensions?: AgentExtension[];
1188
+ /**
1189
+ * Indicates if the agent supports sending push notifications for asynchronous task updates.
1190
+ */
1191
+ pushNotifications?: boolean;
1192
+ /**
1193
+ * Indicates if the agent provides a history of state transitions for a task.
1194
+ */
1195
+ stateTransitionHistory?: boolean;
1196
+ /**
1197
+ * Indicates if the agent supports Server-Sent Events (SSE) for streaming responses.
1198
+ */
1199
+ streaming?: boolean;
1200
+ }
1201
+ /**
1202
+ * Information about the agent's service provider.
1203
+ */
1204
+ interface AgentProvider {
1205
+ /**
1206
+ * The name of the agent provider's organization.
1207
+ */
1208
+ organization: string;
1209
+ /**
1210
+ * A URL for the agent provider's website or relevant documentation.
1211
+ */
1212
+ url: string;
1213
+ }
1214
+ /**
1215
+ * Defines a security scheme using HTTP authentication.
1216
+ *
1217
+ * This interface was referenced by `MySchema`'s JSON-Schema
1218
+ * via the `definition` "HTTPAuthSecurityScheme".
1219
+ */
1220
+ interface HTTPAuthSecurityScheme {
1221
+ /**
1222
+ * A hint to the client to identify how the bearer token is formatted (e.g., "JWT").
1223
+ * This is primarily for documentation purposes.
1224
+ */
1225
+ bearerFormat?: string;
1226
+ /**
1227
+ * An optional description for the security scheme.
1228
+ */
1229
+ description?: string;
1230
+ /**
1231
+ * The name of the HTTP Authentication scheme to be used in the Authorization header,
1232
+ * as defined in RFC7235 (e.g., "Bearer").
1233
+ * This value should be registered in the IANA Authentication Scheme registry.
1234
+ */
1235
+ scheme: string;
1236
+ /**
1237
+ * The type of the security scheme. Must be 'http'.
1238
+ */
1239
+ type: "http";
1240
+ }
1241
+ /**
1242
+ * Defines a security scheme using OAuth 2.0.
1243
+ *
1244
+ * This interface was referenced by `MySchema`'s JSON-Schema
1245
+ * via the `definition` "OAuth2SecurityScheme".
1246
+ */
1247
+ interface OAuth2SecurityScheme {
1248
+ /**
1249
+ * An optional description for the security scheme.
1250
+ */
1251
+ description?: string;
1252
+ flows: OAuthFlows;
1253
+ /**
1254
+ * URL to the oauth2 authorization server metadata
1255
+ * [RFC8414](https://datatracker.ietf.org/doc/html/rfc8414). TLS is required.
1256
+ */
1257
+ oauth2MetadataUrl?: string;
1258
+ /**
1259
+ * The type of the security scheme. Must be 'oauth2'.
1260
+ */
1261
+ type: "oauth2";
1262
+ }
1263
+ /**
1264
+ * An object containing configuration information for the supported OAuth 2.0 flows.
1265
+ */
1266
+ interface OAuthFlows {
1267
+ authorizationCode?: AuthorizationCodeOAuthFlow;
1268
+ clientCredentials?: ClientCredentialsOAuthFlow;
1269
+ implicit?: ImplicitOAuthFlow;
1270
+ password?: PasswordOAuthFlow;
1271
+ }
1272
+ /**
1273
+ * Configuration for the OAuth Authorization Code flow. Previously called accessCode in OpenAPI 2.0.
1274
+ */
1275
+ interface AuthorizationCodeOAuthFlow {
1276
+ /**
1277
+ * The authorization URL to be used for this flow.
1278
+ * This MUST be a URL and use TLS.
1279
+ */
1280
+ authorizationUrl: string;
1281
+ /**
1282
+ * The URL to be used for obtaining refresh tokens.
1283
+ * This MUST be a URL and use TLS.
1284
+ */
1285
+ refreshUrl?: string;
1286
+ /**
1287
+ * The available scopes for the OAuth2 security scheme. A map between the scope
1288
+ * name and a short description for it.
1289
+ */
1290
+ scopes: {
1291
+ [k: string]: string;
1292
+ };
1293
+ /**
1294
+ * The token URL to be used for this flow.
1295
+ * This MUST be a URL and use TLS.
1296
+ */
1297
+ tokenUrl: string;
1298
+ }
1299
+ /**
1300
+ * Configuration for the OAuth Client Credentials flow. Previously called application in OpenAPI 2.0.
1301
+ */
1302
+ interface ClientCredentialsOAuthFlow {
1303
+ /**
1304
+ * The URL to be used for obtaining refresh tokens. This MUST be a URL.
1305
+ */
1306
+ refreshUrl?: string;
1307
+ /**
1308
+ * The available scopes for the OAuth2 security scheme. A map between the scope
1309
+ * name and a short description for it.
1310
+ */
1311
+ scopes: {
1312
+ [k: string]: string;
1313
+ };
1314
+ /**
1315
+ * The token URL to be used for this flow. This MUST be a URL.
1316
+ */
1317
+ tokenUrl: string;
1318
+ }
1319
+ /**
1320
+ * Configuration for the OAuth Implicit flow.
1321
+ */
1322
+ interface ImplicitOAuthFlow {
1323
+ /**
1324
+ * The authorization URL to be used for this flow. This MUST be a URL.
1325
+ */
1326
+ authorizationUrl: string;
1327
+ /**
1328
+ * The URL to be used for obtaining refresh tokens. This MUST be a URL.
1329
+ */
1330
+ refreshUrl?: string;
1331
+ /**
1332
+ * The available scopes for the OAuth2 security scheme. A map between the scope
1333
+ * name and a short description for it.
1334
+ */
1335
+ scopes: {
1336
+ [k: string]: string;
1337
+ };
1338
+ }
1339
+ /**
1340
+ * Configuration for the OAuth Resource Owner Password flow.
1341
+ */
1342
+ interface PasswordOAuthFlow {
1343
+ /**
1344
+ * The URL to be used for obtaining refresh tokens. This MUST be a URL.
1345
+ */
1346
+ refreshUrl?: string;
1347
+ /**
1348
+ * The available scopes for the OAuth2 security scheme. A map between the scope
1349
+ * name and a short description for it.
1350
+ */
1351
+ scopes: {
1352
+ [k: string]: string;
1353
+ };
1354
+ /**
1355
+ * The token URL to be used for this flow. This MUST be a URL.
1356
+ */
1357
+ tokenUrl: string;
1358
+ }
1359
+ /**
1360
+ * Defines a security scheme using OpenID Connect.
1361
+ *
1362
+ * This interface was referenced by `MySchema`'s JSON-Schema
1363
+ * via the `definition` "OpenIdConnectSecurityScheme".
1364
+ */
1365
+ interface OpenIdConnectSecurityScheme {
1366
+ /**
1367
+ * An optional description for the security scheme.
1368
+ */
1369
+ description?: string;
1370
+ /**
1371
+ * The OpenID Connect Discovery URL for the OIDC provider's metadata.
1372
+ */
1373
+ openIdConnectUrl: string;
1374
+ /**
1375
+ * The type of the security scheme. Must be 'openIdConnect'.
1376
+ */
1377
+ type: "openIdConnect";
1378
+ }
1379
+ /**
1380
+ * Defines a security scheme using mTLS authentication.
1381
+ *
1382
+ * This interface was referenced by `MySchema`'s JSON-Schema
1383
+ * via the `definition` "MutualTLSSecurityScheme".
1384
+ */
1385
+ interface MutualTLSSecurityScheme {
1386
+ /**
1387
+ * An optional description for the security scheme.
1388
+ */
1389
+ description?: string;
1390
+ /**
1391
+ * The type of the security scheme. Must be 'mutualTLS'.
1392
+ */
1393
+ type: "mutualTLS";
1394
+ }
1395
+ /**
1396
+ * AgentCardSignature represents a JWS signature of an AgentCard.
1397
+ * This follows the JSON format of an RFC 7515 JSON Web Signature (JWS).
1398
+ *
1399
+ * This interface was referenced by `MySchema`'s JSON-Schema
1400
+ * via the `definition` "AgentCardSignature".
1401
+ */
1402
+ interface AgentCardSignature {
1403
+ /**
1404
+ * The unprotected JWS header values.
1405
+ */
1406
+ header?: {
1407
+ [k: string]: unknown;
1408
+ };
1409
+ /**
1410
+ * The protected JWS header for the signature. This is a Base64url-encoded
1411
+ * JSON object, as per RFC 7515.
1412
+ */
1413
+ protected: string;
1414
+ /**
1415
+ * The computed signature, Base64url-encoded.
1416
+ */
1417
+ signature: string;
1418
+ }
1419
+ /**
1420
+ * Represents a distinct capability or function that an agent can perform.
1421
+ *
1422
+ * This interface was referenced by `MySchema`'s JSON-Schema
1423
+ * via the `definition` "AgentSkill".
1424
+ */
1425
+ interface AgentSkill {
1426
+ /**
1427
+ * A detailed description of the skill, intended to help clients or users
1428
+ * understand its purpose and functionality.
1429
+ */
1430
+ description: string;
1431
+ /**
1432
+ * Example prompts or scenarios that this skill can handle. Provides a hint to
1433
+ * the client on how to use the skill.
1434
+ */
1435
+ examples?: string[];
1436
+ /**
1437
+ * A unique identifier for the agent's skill.
1438
+ */
1439
+ id: string;
1440
+ /**
1441
+ * The set of supported input MIME types for this skill, overriding the agent's defaults.
1442
+ */
1443
+ inputModes?: string[];
1444
+ /**
1445
+ * A human-readable name for the skill.
1446
+ */
1447
+ name: string;
1448
+ /**
1449
+ * The set of supported output MIME types for this skill, overriding the agent's defaults.
1450
+ */
1451
+ outputModes?: string[];
1452
+ /**
1453
+ * Security schemes necessary for the agent to leverage this skill.
1454
+ * As in the overall AgentCard.security, this list represents a logical OR of security
1455
+ * requirement objects. Each object is a set of security schemes that must be used together
1456
+ * (a logical AND).
1457
+ */
1458
+ security?: {
1459
+ [k: string]: string[];
1460
+ }[];
1461
+ /**
1462
+ * A set of keywords describing the skill's capabilities.
1463
+ */
1464
+ tags: string[];
1465
+ }
1466
+ /**
1467
+ * Represents the service provider of an agent.
1468
+ *
1469
+ * This interface was referenced by `MySchema`'s JSON-Schema
1470
+ * via the `definition` "AgentProvider".
1471
+ */
1472
+ interface AgentProvider1 {
1473
+ /**
1474
+ * The name of the agent provider's organization.
1475
+ */
1476
+ organization: string;
1477
+ /**
1478
+ * A URL for the agent provider's website or relevant documentation.
1479
+ */
1480
+ url: string;
1481
+ }
1482
+ /**
1483
+ * Represents a file, data structure, or other resource generated by an agent during a task.
1484
+ *
1485
+ * This interface was referenced by `MySchema`'s JSON-Schema
1486
+ * via the `definition` "Artifact".
1487
+ */
1488
+ interface Artifact {
1489
+ /**
1490
+ * A unique identifier for the artifact within the scope of the task.
1491
+ */
1492
+ artifactId: string;
1493
+ /**
1494
+ * An optional, human-readable description of the artifact.
1495
+ */
1496
+ description?: string;
1497
+ /**
1498
+ * The URIs of extensions that are relevant to this artifact.
1499
+ */
1500
+ extensions?: string[];
1501
+ /**
1502
+ * Optional metadata for extensions. The key is an extension-specific identifier.
1503
+ */
1504
+ metadata?: {
1505
+ [k: string]: unknown;
1506
+ };
1507
+ /**
1508
+ * An optional, human-readable name for the artifact.
1509
+ */
1510
+ name?: string;
1511
+ /**
1512
+ * An array of content parts that make up the artifact.
1513
+ */
1514
+ parts: Part[];
1515
+ }
1516
+ /**
1517
+ * Defines configuration details for the OAuth 2.0 Authorization Code flow.
1518
+ *
1519
+ * This interface was referenced by `MySchema`'s JSON-Schema
1520
+ * via the `definition` "AuthorizationCodeOAuthFlow".
1521
+ */
1522
+ interface AuthorizationCodeOAuthFlow1 {
1523
+ /**
1524
+ * The authorization URL to be used for this flow.
1525
+ * This MUST be a URL and use TLS.
1526
+ */
1527
+ authorizationUrl: string;
1528
+ /**
1529
+ * The URL to be used for obtaining refresh tokens.
1530
+ * This MUST be a URL and use TLS.
1531
+ */
1532
+ refreshUrl?: string;
1533
+ /**
1534
+ * The available scopes for the OAuth2 security scheme. A map between the scope
1535
+ * name and a short description for it.
1536
+ */
1537
+ scopes: {
1538
+ [k: string]: string;
1539
+ };
1540
+ /**
1541
+ * The token URL to be used for this flow.
1542
+ * This MUST be a URL and use TLS.
1543
+ */
1544
+ tokenUrl: string;
1545
+ }
1546
+ /**
1547
+ * Represents a JSON-RPC 2.0 Error Response object.
1548
+ *
1549
+ * This interface was referenced by `MySchema`'s JSON-Schema
1550
+ * via the `definition` "JSONRPCErrorResponse".
1551
+ */
1552
+ interface JSONRPCErrorResponse {
1553
+ /**
1554
+ * An object describing the error that occurred.
1555
+ */
1556
+ error: JSONRPCError | JSONParseError | InvalidRequestError | MethodNotFoundError | InvalidParamsError | InternalError | TaskNotFoundError | TaskNotCancelableError | PushNotificationNotSupportedError | UnsupportedOperationError | ContentTypeNotSupportedError | InvalidAgentResponseError | AuthenticatedExtendedCardNotConfiguredError;
1557
+ /**
1558
+ * The identifier established by the client.
1559
+ */
1560
+ id: string | number | null;
1561
+ /**
1562
+ * The version of the JSON-RPC protocol. MUST be exactly "2.0".
1563
+ */
1564
+ jsonrpc: "2.0";
1565
+ }
1566
+ /**
1567
+ * Represents a JSON-RPC 2.0 Error object, included in an error response.
1568
+ *
1569
+ * This interface was referenced by `MySchema`'s JSON-Schema
1570
+ * via the `definition` "JSONRPCError".
1571
+ */
1572
+ interface JSONRPCError {
1573
+ /**
1574
+ * A number that indicates the error type that occurred.
1575
+ */
1576
+ code: number;
1577
+ /**
1578
+ * A primitive or structured value containing additional information about the error.
1579
+ * This may be omitted.
1580
+ */
1581
+ data?: {
1582
+ [k: string]: unknown;
1583
+ };
1584
+ /**
1585
+ * A string providing a short description of the error.
1586
+ */
1587
+ message: string;
1588
+ }
1589
+ /**
1590
+ * Represents a successful JSON-RPC response for the `tasks/cancel` method.
1591
+ *
1592
+ * This interface was referenced by `MySchema`'s JSON-Schema
1593
+ * via the `definition` "CancelTaskSuccessResponse".
1594
+ */
1595
+ interface CancelTaskSuccessResponse {
1596
+ /**
1597
+ * The identifier established by the client.
1598
+ */
1599
+ id: string | number | null;
1600
+ /**
1601
+ * The version of the JSON-RPC protocol. MUST be exactly "2.0".
1602
+ */
1603
+ jsonrpc: "2.0";
1604
+ result: Task;
1605
+ }
1606
+ /**
1607
+ * The result, containing the final state of the canceled Task object.
1608
+ */
1609
+ interface Task {
1610
+ /**
1611
+ * A collection of artifacts generated by the agent during the execution of the task.
1612
+ */
1613
+ artifacts?: Artifact[];
1614
+ /**
1615
+ * A server-generated identifier for maintaining context across multiple related tasks or interactions.
1616
+ */
1617
+ contextId: string;
1618
+ /**
1619
+ * An array of messages exchanged during the task, representing the conversation history.
1620
+ */
1621
+ history?: Message1[];
1622
+ /**
1623
+ * A unique identifier for the task, generated by the server for a new task.
1624
+ */
1625
+ id: string;
1626
+ /**
1627
+ * The type of this object, used as a discriminator. Always 'task' for a Task.
1628
+ */
1629
+ kind: "task";
1630
+ /**
1631
+ * Optional metadata for extensions. The key is an extension-specific identifier.
1632
+ */
1633
+ metadata?: {
1634
+ [k: string]: unknown;
1635
+ };
1636
+ status: TaskStatus;
1637
+ }
1638
+ /**
1639
+ * Represents a single message in the conversation between a user and an agent.
1640
+ *
1641
+ * This interface was referenced by `MySchema`'s JSON-Schema
1642
+ * via the `definition` "Message".
1643
+ */
1644
+ interface Message1 {
1645
+ /**
1646
+ * The context identifier for this message, used to group related interactions.
1647
+ */
1648
+ contextId?: string;
1649
+ /**
1650
+ * The URIs of extensions that are relevant to this message.
1651
+ */
1652
+ extensions?: string[];
1653
+ /**
1654
+ * The type of this object, used as a discriminator. Always 'message' for a Message.
1655
+ */
1656
+ kind: "message";
1657
+ /**
1658
+ * A unique identifier for the message, typically a UUID, generated by the sender.
1659
+ */
1660
+ messageId: string;
1661
+ /**
1662
+ * Optional metadata for extensions. The key is an extension-specific identifier.
1663
+ */
1664
+ metadata?: {
1665
+ [k: string]: unknown;
1666
+ };
1667
+ /**
1668
+ * An array of content parts that form the message body. A message can be
1669
+ * composed of multiple parts of different types (e.g., text and files).
1670
+ */
1671
+ parts: Part[];
1672
+ /**
1673
+ * A list of other task IDs that this message references for additional context.
1674
+ */
1675
+ referenceTaskIds?: string[];
1676
+ /**
1677
+ * Identifies the sender of the message. `user` for the client, `agent` for the service.
1678
+ */
1679
+ role: "agent" | "user";
1680
+ /**
1681
+ * The identifier of the task this message is part of. Can be omitted for the first message of a new task.
1682
+ */
1683
+ taskId?: string;
1684
+ }
1685
+ /**
1686
+ * The current status of the task, including its state and a descriptive message.
1687
+ */
1688
+ interface TaskStatus {
1689
+ message?: Message2;
1690
+ /**
1691
+ * The current state of the task's lifecycle.
1692
+ */
1693
+ state: "submitted" | "working" | "input-required" | "completed" | "canceled" | "failed" | "rejected" | "auth-required" | "unknown";
1694
+ /**
1695
+ * An ISO 8601 datetime string indicating when this status was recorded.
1696
+ */
1697
+ timestamp?: string;
1698
+ }
1699
+ /**
1700
+ * Represents a single message in the conversation between a user and an agent.
1701
+ */
1702
+ interface Message2 {
1703
+ /**
1704
+ * The context identifier for this message, used to group related interactions.
1705
+ */
1706
+ contextId?: string;
1707
+ /**
1708
+ * The URIs of extensions that are relevant to this message.
1709
+ */
1710
+ extensions?: string[];
1711
+ /**
1712
+ * The type of this object, used as a discriminator. Always 'message' for a Message.
1713
+ */
1714
+ kind: "message";
1715
+ /**
1716
+ * A unique identifier for the message, typically a UUID, generated by the sender.
1717
+ */
1718
+ messageId: string;
1719
+ /**
1720
+ * Optional metadata for extensions. The key is an extension-specific identifier.
1721
+ */
1722
+ metadata?: {
1723
+ [k: string]: unknown;
1724
+ };
1725
+ /**
1726
+ * An array of content parts that form the message body. A message can be
1727
+ * composed of multiple parts of different types (e.g., text and files).
1728
+ */
1729
+ parts: Part[];
1730
+ /**
1731
+ * A list of other task IDs that this message references for additional context.
1732
+ */
1733
+ referenceTaskIds?: string[];
1734
+ /**
1735
+ * Identifies the sender of the message. `user` for the client, `agent` for the service.
1736
+ */
1737
+ role: "agent" | "user";
1738
+ /**
1739
+ * The identifier of the task this message is part of. Can be omitted for the first message of a new task.
1740
+ */
1741
+ taskId?: string;
1742
+ }
1743
+ /**
1744
+ * Defines configuration details for the OAuth 2.0 Client Credentials flow.
1745
+ *
1746
+ * This interface was referenced by `MySchema`'s JSON-Schema
1747
+ * via the `definition` "ClientCredentialsOAuthFlow".
1748
+ */
1749
+ interface ClientCredentialsOAuthFlow1 {
1750
+ /**
1751
+ * The URL to be used for obtaining refresh tokens. This MUST be a URL.
1752
+ */
1753
+ refreshUrl?: string;
1754
+ /**
1755
+ * The available scopes for the OAuth2 security scheme. A map between the scope
1756
+ * name and a short description for it.
1757
+ */
1758
+ scopes: {
1759
+ [k: string]: string;
1760
+ };
1761
+ /**
1762
+ * The token URL to be used for this flow. This MUST be a URL.
1763
+ */
1764
+ tokenUrl: string;
1765
+ }
1766
+ /**
1767
+ * Defines parameters for deleting a specific push notification configuration for a task.
1768
+ *
1769
+ * This interface was referenced by `MySchema`'s JSON-Schema
1770
+ * via the `definition` "DeleteTaskPushNotificationConfigParams".
1771
+ */
1772
+ interface DeleteTaskPushNotificationConfigParams1 {
1773
+ /**
1774
+ * The unique identifier of the task.
1775
+ */
1776
+ id: string;
1777
+ /**
1778
+ * Optional metadata associated with the request.
1779
+ */
1780
+ metadata?: {
1781
+ [k: string]: unknown;
1782
+ };
1783
+ /**
1784
+ * The ID of the push notification configuration to delete.
1785
+ */
1786
+ pushNotificationConfigId: string;
1787
+ }
1788
+ /**
1789
+ * Represents a successful JSON-RPC response for the `tasks/pushNotificationConfig/delete` method.
1790
+ *
1791
+ * This interface was referenced by `MySchema`'s JSON-Schema
1792
+ * via the `definition` "DeleteTaskPushNotificationConfigSuccessResponse".
1793
+ */
1794
+ interface DeleteTaskPushNotificationConfigSuccessResponse {
1795
+ /**
1796
+ * The identifier established by the client.
1797
+ */
1798
+ id: string | number | null;
1799
+ /**
1800
+ * The version of the JSON-RPC protocol. MUST be exactly "2.0".
1801
+ */
1802
+ jsonrpc: "2.0";
1803
+ /**
1804
+ * The result is null on successful deletion.
1805
+ */
1806
+ result: null;
1807
+ }
1808
+ /**
1809
+ * Defines base properties for a file.
1810
+ *
1811
+ * This interface was referenced by `MySchema`'s JSON-Schema
1812
+ * via the `definition` "FileBase".
1813
+ */
1814
+ interface FileBase {
1815
+ /**
1816
+ * The MIME type of the file (e.g., "application/pdf").
1817
+ */
1818
+ mimeType?: string;
1819
+ /**
1820
+ * An optional name for the file (e.g., "document.pdf").
1821
+ */
1822
+ name?: string;
1823
+ }
1824
+ /**
1825
+ * Represents a successful JSON-RPC response for the `agent/getAuthenticatedExtendedCard` method.
1826
+ *
1827
+ * This interface was referenced by `MySchema`'s JSON-Schema
1828
+ * via the `definition` "GetAuthenticatedExtendedCardSuccessResponse".
1829
+ */
1830
+ interface GetAuthenticatedExtendedCardSuccessResponse {
1831
+ /**
1832
+ * The identifier established by the client.
1833
+ */
1834
+ id: string | number | null;
1835
+ /**
1836
+ * The version of the JSON-RPC protocol. MUST be exactly "2.0".
1837
+ */
1838
+ jsonrpc: "2.0";
1839
+ result: AgentCard1;
1840
+ }
1841
+ /**
1842
+ * The result is an Agent Card object.
1843
+ */
1844
+ interface AgentCard1 {
1845
+ /**
1846
+ * A list of additional supported interfaces (transport and URL combinations).
1847
+ * This allows agents to expose multiple transports, potentially at different URLs.
1848
+ *
1849
+ * Best practices:
1850
+ * - SHOULD include all supported transports for completeness
1851
+ * - SHOULD include an entry matching the main 'url' and 'preferredTransport'
1852
+ * - MAY reuse URLs if multiple transports are available at the same endpoint
1853
+ * - MUST accurately declare the transport available at each URL
1854
+ *
1855
+ * Clients can select any interface from this list based on their transport capabilities
1856
+ * and preferences. This enables transport negotiation and fallback scenarios.
1857
+ */
1858
+ additionalInterfaces?: AgentInterface[];
1859
+ capabilities: AgentCapabilities1;
1860
+ /**
1861
+ * Default set of supported input MIME types for all skills, which can be
1862
+ * overridden on a per-skill basis.
1863
+ */
1864
+ defaultInputModes: string[];
1865
+ /**
1866
+ * Default set of supported output MIME types for all skills, which can be
1867
+ * overridden on a per-skill basis.
1868
+ */
1869
+ defaultOutputModes: string[];
1870
+ /**
1871
+ * A human-readable description of the agent, assisting users and other agents
1872
+ * in understanding its purpose.
1873
+ */
1874
+ description: string;
1875
+ /**
1876
+ * An optional URL to the agent's documentation.
1877
+ */
1878
+ documentationUrl?: string;
1879
+ /**
1880
+ * An optional URL to an icon for the agent.
1881
+ */
1882
+ iconUrl?: string;
1883
+ /**
1884
+ * A human-readable name for the agent.
1885
+ */
1886
+ name: string;
1887
+ /**
1888
+ * The transport protocol for the preferred endpoint (the main 'url' field).
1889
+ * If not specified, defaults to 'JSONRPC'.
1890
+ *
1891
+ * IMPORTANT: The transport specified here MUST be available at the main 'url'.
1892
+ * This creates a binding between the main URL and its supported transport protocol.
1893
+ * Clients should prefer this transport and URL combination when both are supported.
1894
+ */
1895
+ preferredTransport?: string;
1896
+ /**
1897
+ * The version of the A2A protocol this agent supports.
1898
+ */
1899
+ protocolVersion: string;
1900
+ provider?: AgentProvider;
1901
+ /**
1902
+ * A list of security requirement objects that apply to all agent interactions. Each object
1903
+ * lists security schemes that can be used. Follows the OpenAPI 3.0 Security Requirement Object.
1904
+ * This list can be seen as an OR of ANDs. Each object in the list describes one possible
1905
+ * set of security requirements that must be present on a request. This allows specifying,
1906
+ * for example, "callers must either use OAuth OR an API Key AND mTLS."
1907
+ */
1908
+ security?: {
1909
+ [k: string]: string[];
1910
+ }[];
1911
+ /**
1912
+ * A declaration of the security schemes available to authorize requests. The key is the
1913
+ * scheme name. Follows the OpenAPI 3.0 Security Scheme Object.
1914
+ */
1915
+ securitySchemes?: {
1916
+ [k: string]: SecurityScheme;
1917
+ };
1918
+ /**
1919
+ * JSON Web Signatures computed for this AgentCard.
1920
+ */
1921
+ signatures?: AgentCardSignature[];
1922
+ /**
1923
+ * The set of skills, or distinct capabilities, that the agent can perform.
1924
+ */
1925
+ skills: AgentSkill[];
1926
+ /**
1927
+ * If true, the agent can provide an extended agent card with additional details
1928
+ * to authenticated users. Defaults to false.
1929
+ */
1930
+ supportsAuthenticatedExtendedCard?: boolean;
1931
+ /**
1932
+ * The preferred endpoint URL for interacting with the agent.
1933
+ * This URL MUST support the transport specified by 'preferredTransport'.
1934
+ */
1935
+ url: string;
1936
+ /**
1937
+ * The agent's own version number. The format is defined by the provider.
1938
+ */
1939
+ version: string;
1940
+ }
1941
+ /**
1942
+ * Represents a successful JSON-RPC response for the `tasks/pushNotificationConfig/get` method.
1943
+ *
1944
+ * This interface was referenced by `MySchema`'s JSON-Schema
1945
+ * via the `definition` "GetTaskPushNotificationConfigSuccessResponse".
1946
+ */
1947
+ interface GetTaskPushNotificationConfigSuccessResponse {
1948
+ /**
1949
+ * The identifier established by the client.
1950
+ */
1951
+ id: string | number | null;
1952
+ /**
1953
+ * The version of the JSON-RPC protocol. MUST be exactly "2.0".
1954
+ */
1955
+ jsonrpc: "2.0";
1956
+ result: TaskPushNotificationConfig1;
1957
+ }
1958
+ /**
1959
+ * The result, containing the requested push notification configuration.
1960
+ */
1961
+ interface TaskPushNotificationConfig1 {
1962
+ pushNotificationConfig: PushNotificationConfig1;
1963
+ /**
1964
+ * The ID of the task.
1965
+ */
1966
+ taskId: string;
1967
+ }
1968
+ /**
1969
+ * Represents a successful JSON-RPC response for the `tasks/get` method.
1970
+ *
1971
+ * This interface was referenced by `MySchema`'s JSON-Schema
1972
+ * via the `definition` "GetTaskSuccessResponse".
1973
+ */
1974
+ interface GetTaskSuccessResponse {
1975
+ /**
1976
+ * The identifier established by the client.
1977
+ */
1978
+ id: string | number | null;
1979
+ /**
1980
+ * The version of the JSON-RPC protocol. MUST be exactly "2.0".
1981
+ */
1982
+ jsonrpc: "2.0";
1983
+ result: Task1;
1984
+ }
1985
+ /**
1986
+ * The result, containing the requested Task object.
1987
+ */
1988
+ interface Task1 {
1989
+ /**
1990
+ * A collection of artifacts generated by the agent during the execution of the task.
1991
+ */
1992
+ artifacts?: Artifact[];
1993
+ /**
1994
+ * A server-generated identifier for maintaining context across multiple related tasks or interactions.
1995
+ */
1996
+ contextId: string;
1997
+ /**
1998
+ * An array of messages exchanged during the task, representing the conversation history.
1999
+ */
2000
+ history?: Message1[];
2001
+ /**
2002
+ * A unique identifier for the task, generated by the server for a new task.
2003
+ */
2004
+ id: string;
2005
+ /**
2006
+ * The type of this object, used as a discriminator. Always 'task' for a Task.
2007
+ */
2008
+ kind: "task";
2009
+ /**
2010
+ * Optional metadata for extensions. The key is an extension-specific identifier.
2011
+ */
2012
+ metadata?: {
2013
+ [k: string]: unknown;
2014
+ };
2015
+ status: TaskStatus;
2016
+ }
2017
+ /**
2018
+ * Defines configuration details for the OAuth 2.0 Implicit flow.
2019
+ *
2020
+ * This interface was referenced by `MySchema`'s JSON-Schema
2021
+ * via the `definition` "ImplicitOAuthFlow".
2022
+ */
2023
+ interface ImplicitOAuthFlow1 {
2024
+ /**
2025
+ * The authorization URL to be used for this flow. This MUST be a URL.
2026
+ */
2027
+ authorizationUrl: string;
2028
+ /**
2029
+ * The URL to be used for obtaining refresh tokens. This MUST be a URL.
2030
+ */
2031
+ refreshUrl?: string;
2032
+ /**
2033
+ * The available scopes for the OAuth2 security scheme. A map between the scope
2034
+ * name and a short description for it.
2035
+ */
2036
+ scopes: {
2037
+ [k: string]: string;
2038
+ };
2039
+ }
2040
+ /**
2041
+ * Defines the base structure for any JSON-RPC 2.0 request, response, or notification.
2042
+ *
2043
+ * This interface was referenced by `MySchema`'s JSON-Schema
2044
+ * via the `definition` "JSONRPCMessage".
2045
+ */
2046
+ interface JSONRPCMessage {
2047
+ /**
2048
+ * A unique identifier established by the client. It must be a String, a Number, or null.
2049
+ * The server must reply with the same value in the response. This property is omitted for notifications.
2050
+ */
2051
+ id?: string | number | null;
2052
+ /**
2053
+ * The version of the JSON-RPC protocol. MUST be exactly "2.0".
2054
+ */
2055
+ jsonrpc: "2.0";
2056
+ }
2057
+ /**
2058
+ * Represents a JSON-RPC 2.0 Request object.
2059
+ *
2060
+ * This interface was referenced by `MySchema`'s JSON-Schema
2061
+ * via the `definition` "JSONRPCRequest".
2062
+ */
2063
+ interface JSONRPCRequest {
2064
+ /**
2065
+ * A unique identifier established by the client. It must be a String, a Number, or null.
2066
+ * The server must reply with the same value in the response. This property is omitted for notifications.
2067
+ */
2068
+ id?: string | number | null;
2069
+ /**
2070
+ * The version of the JSON-RPC protocol. MUST be exactly "2.0".
2071
+ */
2072
+ jsonrpc: "2.0";
2073
+ /**
2074
+ * A string containing the name of the method to be invoked.
2075
+ */
2076
+ method: string;
2077
+ /**
2078
+ * A structured value holding the parameter values to be used during the method invocation.
2079
+ */
2080
+ params?: {
2081
+ [k: string]: unknown;
2082
+ };
2083
+ }
2084
+ /**
2085
+ * Represents a successful JSON-RPC response for the `message/send` method.
2086
+ *
2087
+ * This interface was referenced by `MySchema`'s JSON-Schema
2088
+ * via the `definition` "SendMessageSuccessResponse".
2089
+ */
2090
+ interface SendMessageSuccessResponse {
2091
+ /**
2092
+ * The identifier established by the client.
2093
+ */
2094
+ id: string | number | null;
2095
+ /**
2096
+ * The version of the JSON-RPC protocol. MUST be exactly "2.0".
2097
+ */
2098
+ jsonrpc: "2.0";
2099
+ /**
2100
+ * The result, which can be a direct reply Message or the initial Task object.
2101
+ */
2102
+ result: Task2 | Message1;
2103
+ }
2104
+ /**
2105
+ * Represents a single, stateful operation or conversation between a client and an agent.
2106
+ *
2107
+ * This interface was referenced by `MySchema`'s JSON-Schema
2108
+ * via the `definition` "Task".
2109
+ */
2110
+ interface Task2 {
2111
+ /**
2112
+ * A collection of artifacts generated by the agent during the execution of the task.
2113
+ */
2114
+ artifacts?: Artifact[];
2115
+ /**
2116
+ * A server-generated identifier for maintaining context across multiple related tasks or interactions.
2117
+ */
2118
+ contextId: string;
2119
+ /**
2120
+ * An array of messages exchanged during the task, representing the conversation history.
2121
+ */
2122
+ history?: Message1[];
2123
+ /**
2124
+ * A unique identifier for the task, generated by the server for a new task.
2125
+ */
2126
+ id: string;
2127
+ /**
2128
+ * The type of this object, used as a discriminator. Always 'task' for a Task.
2129
+ */
2130
+ kind: "task";
2131
+ /**
2132
+ * Optional metadata for extensions. The key is an extension-specific identifier.
2133
+ */
2134
+ metadata?: {
2135
+ [k: string]: unknown;
2136
+ };
2137
+ status: TaskStatus;
2138
+ }
2139
+ /**
2140
+ * Represents a successful JSON-RPC response for the `message/stream` method.
2141
+ * The server may send multiple response objects for a single request.
2142
+ *
2143
+ * This interface was referenced by `MySchema`'s JSON-Schema
2144
+ * via the `definition` "SendStreamingMessageSuccessResponse".
2145
+ */
2146
+ interface SendStreamingMessageSuccessResponse {
2147
+ /**
2148
+ * The identifier established by the client.
2149
+ */
2150
+ id: string | number | null;
2151
+ /**
2152
+ * The version of the JSON-RPC protocol. MUST be exactly "2.0".
2153
+ */
2154
+ jsonrpc: "2.0";
2155
+ /**
2156
+ * The result, which can be a Message, Task, or a streaming update event.
2157
+ */
2158
+ result: Task2 | Message1 | TaskStatusUpdateEvent | TaskArtifactUpdateEvent;
2159
+ }
2160
+ /**
2161
+ * An event sent by the agent to notify the client of a change in a task's status.
2162
+ * This is typically used in streaming or subscription models.
2163
+ *
2164
+ * This interface was referenced by `MySchema`'s JSON-Schema
2165
+ * via the `definition` "TaskStatusUpdateEvent".
2166
+ */
2167
+ interface TaskStatusUpdateEvent {
2168
+ /**
2169
+ * The context ID associated with the task.
2170
+ */
2171
+ contextId: string;
2172
+ /**
2173
+ * If true, this is the final event in the stream for this interaction.
2174
+ */
2175
+ final: boolean;
2176
+ /**
2177
+ * The type of this event, used as a discriminator. Always 'status-update'.
2178
+ */
2179
+ kind: "status-update";
2180
+ /**
2181
+ * Optional metadata for extensions.
2182
+ */
2183
+ metadata?: {
2184
+ [k: string]: unknown;
2185
+ };
2186
+ status: TaskStatus1;
2187
+ /**
2188
+ * The ID of the task that was updated.
2189
+ */
2190
+ taskId: string;
2191
+ }
2192
+ /**
2193
+ * The new status of the task.
2194
+ */
2195
+ interface TaskStatus1 {
2196
+ message?: Message2;
2197
+ /**
2198
+ * The current state of the task's lifecycle.
2199
+ */
2200
+ state: "submitted" | "working" | "input-required" | "completed" | "canceled" | "failed" | "rejected" | "auth-required" | "unknown";
2201
+ /**
2202
+ * An ISO 8601 datetime string indicating when this status was recorded.
2203
+ */
2204
+ timestamp?: string;
2205
+ }
2206
+ /**
2207
+ * An event sent by the agent to notify the client that an artifact has been
2208
+ * generated or updated. This is typically used in streaming models.
2209
+ *
2210
+ * This interface was referenced by `MySchema`'s JSON-Schema
2211
+ * via the `definition` "TaskArtifactUpdateEvent".
2212
+ */
2213
+ interface TaskArtifactUpdateEvent {
2214
+ /**
2215
+ * If true, the content of this artifact should be appended to a previously sent artifact with the same ID.
2216
+ */
2217
+ append?: boolean;
2218
+ artifact: Artifact1;
2219
+ /**
2220
+ * The context ID associated with the task.
2221
+ */
2222
+ contextId: string;
2223
+ /**
2224
+ * The type of this event, used as a discriminator. Always 'artifact-update'.
2225
+ */
2226
+ kind: "artifact-update";
2227
+ /**
2228
+ * If true, this is the final chunk of the artifact.
2229
+ */
2230
+ lastChunk?: boolean;
2231
+ /**
2232
+ * Optional metadata for extensions.
2233
+ */
2234
+ metadata?: {
2235
+ [k: string]: unknown;
2236
+ };
2237
+ /**
2238
+ * The ID of the task this artifact belongs to.
2239
+ */
2240
+ taskId: string;
2241
+ }
2242
+ /**
2243
+ * Represents a file, data structure, or other resource generated by an agent during a task.
2244
+ */
2245
+ interface Artifact1 {
2246
+ /**
2247
+ * A unique identifier for the artifact within the scope of the task.
2248
+ */
2249
+ artifactId: string;
2250
+ /**
2251
+ * An optional, human-readable description of the artifact.
2252
+ */
2253
+ description?: string;
2254
+ /**
2255
+ * The URIs of extensions that are relevant to this artifact.
2256
+ */
2257
+ extensions?: string[];
2258
+ /**
2259
+ * Optional metadata for extensions. The key is an extension-specific identifier.
2260
+ */
2261
+ metadata?: {
2262
+ [k: string]: unknown;
2263
+ };
2264
+ /**
2265
+ * An optional, human-readable name for the artifact.
2266
+ */
2267
+ name?: string;
2268
+ /**
2269
+ * An array of content parts that make up the artifact.
2270
+ */
2271
+ parts: Part[];
2272
+ }
2273
+ /**
2274
+ * Represents a successful JSON-RPC response for the `tasks/pushNotificationConfig/set` method.
2275
+ *
2276
+ * This interface was referenced by `MySchema`'s JSON-Schema
2277
+ * via the `definition` "SetTaskPushNotificationConfigSuccessResponse".
2278
+ */
2279
+ interface SetTaskPushNotificationConfigSuccessResponse {
2280
+ /**
2281
+ * The identifier established by the client.
2282
+ */
2283
+ id: string | number | null;
2284
+ /**
2285
+ * The version of the JSON-RPC protocol. MUST be exactly "2.0".
2286
+ */
2287
+ jsonrpc: "2.0";
2288
+ result: TaskPushNotificationConfig2;
2289
+ }
2290
+ /**
2291
+ * The result, containing the configured push notification settings.
2292
+ */
2293
+ interface TaskPushNotificationConfig2 {
2294
+ pushNotificationConfig: PushNotificationConfig1;
2295
+ /**
2296
+ * The ID of the task.
2297
+ */
2298
+ taskId: string;
2299
+ }
2300
+ /**
2301
+ * Represents a successful JSON-RPC response for the `tasks/pushNotificationConfig/list` method.
2302
+ *
2303
+ * This interface was referenced by `MySchema`'s JSON-Schema
2304
+ * via the `definition` "ListTaskPushNotificationConfigSuccessResponse".
2305
+ */
2306
+ interface ListTaskPushNotificationConfigSuccessResponse {
2307
+ /**
2308
+ * The identifier established by the client.
2309
+ */
2310
+ id: string | number | null;
2311
+ /**
2312
+ * The version of the JSON-RPC protocol. MUST be exactly "2.0".
2313
+ */
2314
+ jsonrpc: "2.0";
2315
+ /**
2316
+ * The result, containing an array of all push notification configurations for the task.
2317
+ */
2318
+ result: TaskPushNotificationConfig3[];
2319
+ }
2320
+ /**
2321
+ * A container associating a push notification configuration with a specific task.
2322
+ *
2323
+ * This interface was referenced by `MySchema`'s JSON-Schema
2324
+ * via the `definition` "TaskPushNotificationConfig".
2325
+ */
2326
+ interface TaskPushNotificationConfig3 {
2327
+ pushNotificationConfig: PushNotificationConfig1;
2328
+ /**
2329
+ * The ID of the task.
2330
+ */
2331
+ taskId: string;
2332
+ }
2333
+ /**
2334
+ * Represents a successful JSON-RPC 2.0 Response object.
2335
+ *
2336
+ * This interface was referenced by `MySchema`'s JSON-Schema
2337
+ * via the `definition` "JSONRPCSuccessResponse".
2338
+ */
2339
+ interface JSONRPCSuccessResponse {
2340
+ /**
2341
+ * The identifier established by the client.
2342
+ */
2343
+ id: string | number | null;
2344
+ /**
2345
+ * The version of the JSON-RPC protocol. MUST be exactly "2.0".
2346
+ */
2347
+ jsonrpc: "2.0";
2348
+ /**
2349
+ * The value of this member is determined by the method invoked on the Server.
2350
+ */
2351
+ result: {
2352
+ [k: string]: unknown;
2353
+ };
2354
+ }
2355
+ /**
2356
+ * Defines parameters for listing all push notification configurations associated with a task.
2357
+ *
2358
+ * This interface was referenced by `MySchema`'s JSON-Schema
2359
+ * via the `definition` "ListTaskPushNotificationConfigParams".
2360
+ */
2361
+ interface ListTaskPushNotificationConfigParams1 {
2362
+ /**
2363
+ * The unique identifier of the task.
2364
+ */
2365
+ id: string;
2366
+ /**
2367
+ * Optional metadata associated with the request.
2368
+ */
2369
+ metadata?: {
2370
+ [k: string]: unknown;
2371
+ };
2372
+ }
2373
+ /**
2374
+ * Defines configuration options for a `message/send` or `message/stream` request.
2375
+ *
2376
+ * This interface was referenced by `MySchema`'s JSON-Schema
2377
+ * via the `definition` "MessageSendConfiguration".
2378
+ */
2379
+ interface MessageSendConfiguration1 {
2380
+ /**
2381
+ * A list of output MIME types the client is prepared to accept in the response.
2382
+ */
2383
+ acceptedOutputModes?: string[];
2384
+ /**
2385
+ * If true, the client will wait for the task to complete. The server may reject this if the task is long-running.
2386
+ */
2387
+ blocking?: boolean;
2388
+ /**
2389
+ * The number of most recent messages from the task's history to retrieve in the response.
2390
+ */
2391
+ historyLength?: number;
2392
+ pushNotificationConfig?: PushNotificationConfig;
2393
+ }
2394
+ /**
2395
+ * Defines the parameters for a request to send a message to an agent. This can be used
2396
+ * to create a new task, continue an existing one, or restart a task.
2397
+ *
2398
+ * This interface was referenced by `MySchema`'s JSON-Schema
2399
+ * via the `definition` "MessageSendParams".
2400
+ */
2401
+ interface MessageSendParams2 {
2402
+ configuration?: MessageSendConfiguration;
2403
+ message: Message;
2404
+ /**
2405
+ * Optional metadata for extensions.
2406
+ */
2407
+ metadata?: {
2408
+ [k: string]: unknown;
2409
+ };
2410
+ }
2411
+ /**
2412
+ * Defines the configuration for the supported OAuth 2.0 flows.
2413
+ *
2414
+ * This interface was referenced by `MySchema`'s JSON-Schema
2415
+ * via the `definition` "OAuthFlows".
2416
+ */
2417
+ interface OAuthFlows1 {
2418
+ authorizationCode?: AuthorizationCodeOAuthFlow;
2419
+ clientCredentials?: ClientCredentialsOAuthFlow;
2420
+ implicit?: ImplicitOAuthFlow;
2421
+ password?: PasswordOAuthFlow;
2422
+ }
2423
+ /**
2424
+ * Defines base properties common to all message or artifact parts.
2425
+ *
2426
+ * This interface was referenced by `MySchema`'s JSON-Schema
2427
+ * via the `definition` "PartBase".
2428
+ */
2429
+ interface PartBase {
2430
+ /**
2431
+ * Optional metadata associated with this part.
2432
+ */
2433
+ metadata?: {
2434
+ [k: string]: unknown;
2435
+ };
2436
+ }
2437
+ /**
2438
+ * Defines configuration details for the OAuth 2.0 Resource Owner Password flow.
2439
+ *
2440
+ * This interface was referenced by `MySchema`'s JSON-Schema
2441
+ * via the `definition` "PasswordOAuthFlow".
2442
+ */
2443
+ interface PasswordOAuthFlow1 {
2444
+ /**
2445
+ * The URL to be used for obtaining refresh tokens. This MUST be a URL.
2446
+ */
2447
+ refreshUrl?: string;
2448
+ /**
2449
+ * The available scopes for the OAuth2 security scheme. A map between the scope
2450
+ * name and a short description for it.
2451
+ */
2452
+ scopes: {
2453
+ [k: string]: string;
2454
+ };
2455
+ /**
2456
+ * The token URL to be used for this flow. This MUST be a URL.
2457
+ */
2458
+ tokenUrl: string;
2459
+ }
2460
+ /**
2461
+ * Defines authentication details for a push notification endpoint.
2462
+ *
2463
+ * This interface was referenced by `MySchema`'s JSON-Schema
2464
+ * via the `definition` "PushNotificationAuthenticationInfo".
2465
+ */
2466
+ interface PushNotificationAuthenticationInfo1 {
2467
+ /**
2468
+ * Optional credentials required by the push notification endpoint.
2469
+ */
2470
+ credentials?: string;
2471
+ /**
2472
+ * A list of supported authentication schemes (e.g., 'Basic', 'Bearer').
2473
+ */
2474
+ schemes: string[];
2475
+ }
2476
+ /**
2477
+ * Defines the configuration for setting up push notifications for task updates.
2478
+ *
2479
+ * This interface was referenced by `MySchema`'s JSON-Schema
2480
+ * via the `definition` "PushNotificationConfig".
2481
+ */
2482
+ interface PushNotificationConfig2 {
2483
+ authentication?: PushNotificationAuthenticationInfo;
2484
+ /**
2485
+ * A unique ID for the push notification configuration, set by the client
2486
+ * to support multiple notification callbacks.
2487
+ */
2488
+ id?: string;
2489
+ /**
2490
+ * A unique token for this task or session to validate incoming push notifications.
2491
+ */
2492
+ token?: string;
2493
+ /**
2494
+ * The callback URL where the agent should send push notifications.
2495
+ */
2496
+ url: string;
2497
+ }
2498
+ /**
2499
+ * Defines base properties shared by all security scheme objects.
2500
+ *
2501
+ * This interface was referenced by `MySchema`'s JSON-Schema
2502
+ * via the `definition` "SecuritySchemeBase".
2503
+ */
2504
+ interface SecuritySchemeBase {
2505
+ /**
2506
+ * An optional description for the security scheme.
2507
+ */
2508
+ description?: string;
2509
+ }
2510
+ /**
2511
+ * Defines parameters for querying a task, with an option to limit history length.
2512
+ *
2513
+ * This interface was referenced by `MySchema`'s JSON-Schema
2514
+ * via the `definition` "TaskQueryParams".
2515
+ */
2516
+ interface TaskQueryParams1 {
2517
+ /**
2518
+ * The number of most recent messages from the task's history to retrieve.
2519
+ */
2520
+ historyLength?: number;
2521
+ /**
2522
+ * The unique identifier of the task.
2523
+ */
2524
+ id: string;
2525
+ /**
2526
+ * Optional metadata associated with the request.
2527
+ */
2528
+ metadata?: {
2529
+ [k: string]: unknown;
2530
+ };
2531
+ }
2532
+ /**
2533
+ * Represents the status of a task at a specific point in time.
2534
+ *
2535
+ * This interface was referenced by `MySchema`'s JSON-Schema
2536
+ * via the `definition` "TaskStatus".
2537
+ */
2538
+ interface TaskStatus2 {
2539
+ message?: Message2;
2540
+ /**
2541
+ * The current state of the task's lifecycle.
2542
+ */
2543
+ state: "submitted" | "working" | "input-required" | "completed" | "canceled" | "failed" | "rejected" | "auth-required" | "unknown";
2544
+ /**
2545
+ * An ISO 8601 datetime string indicating when this status was recorded.
2546
+ */
2547
+ timestamp?: string;
2548
+ }
2549
+
2550
+ export type { DataPart as $, AgentCard as A, InternalError as B, CancelTaskResponse as C, DeleteTaskPushNotificationConfigParams as D, TaskNotFoundError as E, TaskNotCancelableError as F, GetTaskPushNotificationConfigResponse as G, PushNotificationNotSupportedError as H, InvalidRequestError as I, JSONRPCResponse as J, ContentTypeNotSupportedError as K, ListTaskPushNotificationConfigParams as L, MessageSendParams as M, InvalidAgentResponseError as N, AuthenticatedExtendedCardNotConfiguredError as O, Part as P, SendMessageRequest as Q, MessageSendConfiguration as R, SendMessageResponse as S, Task as T, UnsupportedOperationError as U, PushNotificationConfig as V, PushNotificationAuthenticationInfo as W, TextPart as X, FilePart as Y, FileWithBytes as Z, FileWithUri as _, Message as a, PushNotificationAuthenticationInfo1 as a$, SendStreamingMessageRequest as a0, MessageSendParams1 as a1, GetTaskRequest as a2, CancelTaskRequest as a3, SetTaskPushNotificationConfigRequest as a4, PushNotificationConfig1 as a5, GetTaskPushNotificationConfigRequest as a6, TaskIdParams1 as a7, GetTaskPushNotificationConfigParams as a8, TaskResubscriptionRequest as a9, Message2 as aA, ClientCredentialsOAuthFlow1 as aB, DeleteTaskPushNotificationConfigParams1 as aC, FileBase as aD, AgentCard1 as aE, GetTaskPushNotificationConfigSuccessResponse as aF, TaskPushNotificationConfig1 as aG, GetTaskSuccessResponse as aH, Task1 as aI, ImplicitOAuthFlow1 as aJ, JSONRPCMessage as aK, JSONRPCRequest as aL, SendMessageSuccessResponse as aM, Task2 as aN, SendStreamingMessageSuccessResponse as aO, TaskStatus1 as aP, Artifact1 as aQ, SetTaskPushNotificationConfigSuccessResponse as aR, TaskPushNotificationConfig2 as aS, TaskPushNotificationConfig3 as aT, JSONRPCSuccessResponse as aU, ListTaskPushNotificationConfigParams1 as aV, MessageSendConfiguration1 as aW, MessageSendParams2 as aX, OAuthFlows1 as aY, PartBase as aZ, PasswordOAuthFlow1 as a_, TaskIdParams2 as aa, ListTaskPushNotificationConfigRequest as ab, DeleteTaskPushNotificationConfigRequest as ac, GetAuthenticatedExtendedCardRequest as ad, APIKeySecurityScheme as ae, AgentCapabilities as af, AgentExtension as ag, AgentInterface as ah, AgentCapabilities1 as ai, AgentProvider as aj, HTTPAuthSecurityScheme as ak, OAuth2SecurityScheme as al, OAuthFlows as am, AuthorizationCodeOAuthFlow as an, ClientCredentialsOAuthFlow as ao, ImplicitOAuthFlow as ap, PasswordOAuthFlow as aq, OpenIdConnectSecurityScheme as ar, MutualTLSSecurityScheme as as, AgentCardSignature as at, AgentSkill as au, AgentProvider1 as av, AuthorizationCodeOAuthFlow1 as aw, JSONRPCError as ax, CancelTaskSuccessResponse as ay, Message1 as az, TaskStatusUpdateEvent as b, PushNotificationConfig2 as b0, SecuritySchemeBase as b1, TaskQueryParams1 as b2, TaskStatus2 as b3, TaskArtifactUpdateEvent as c, TaskPushNotificationConfig as d, SetTaskPushNotificationConfigResponse as e, TaskIdParams as f, ListTaskPushNotificationConfigResponse as g, DeleteTaskPushNotificationConfigResponse as h, TaskQueryParams as i, GetTaskResponse as j, SendStreamingMessageResponse as k, ListTaskPushNotificationConfigSuccessResponse as l, DeleteTaskPushNotificationConfigSuccessResponse as m, GetAuthenticatedExtendedCardSuccessResponse as n, JSONRPCErrorResponse as o, TaskStatus as p, Artifact as q, A2ARequest as r, SecurityScheme as s, GetAuthenticatedExtendedCardResponse as t, TaskState as u, TransportProtocol as v, MySchema as w, JSONParseError as x, MethodNotFoundError as y, InvalidParamsError as z };