@mailmodo/a2a 0.3.3 → 0.3.7

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