@mailmodo/a2a 0.3.5 → 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.
@@ -1,3 +1,15 @@
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;
1
13
  /**
2
14
  * A discriminated union representing all possible JSON-RPC 2.0 requests supported by the A2A specification.
3
15
  *
@@ -2547,4 +2559,31 @@ interface TaskStatus2 {
2547
2559
  timestamp?: string;
2548
2560
  }
2549
2561
 
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 };
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 };
@@ -1,3 +1,15 @@
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;
1
13
  /**
2
14
  * A discriminated union representing all possible JSON-RPC 2.0 requests supported by the A2A specification.
3
15
  *
@@ -2547,4 +2559,31 @@ interface TaskStatus2 {
2547
2559
  timestamp?: string;
2548
2560
  }
2549
2561
 
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 };
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 };
package/dist/index.d.mts CHANGED
@@ -1,11 +1,5 @@
1
- import { S as SendMessageResponse, k as SendStreamingMessageResponse, j as GetTaskResponse, C as CancelTaskResponse, e as SetTaskPushNotificationConfigResponse, G as GetTaskPushNotificationConfigResponse, l as ListTaskPushNotificationConfigSuccessResponse, m as DeleteTaskPushNotificationConfigSuccessResponse, n as GetAuthenticatedExtendedCardSuccessResponse, o as JSONRPCErrorResponse, p as TaskStatus, q as Artifact } from './types-Due_Cv6t.mjs';
2
- export { r as A2ARequest, ae as APIKeySecurityScheme, af as AgentCapabilities, ai as AgentCapabilities1, A as AgentCard, aE as AgentCard1, at as AgentCardSignature, ag as AgentExtension, ah as AgentInterface, aj as AgentProvider, av as AgentProvider1, au as AgentSkill, aQ as Artifact1, O as AuthenticatedExtendedCardNotConfiguredError, an as AuthorizationCodeOAuthFlow, aw as AuthorizationCodeOAuthFlow1, a3 as CancelTaskRequest, ay as CancelTaskSuccessResponse, ao as ClientCredentialsOAuthFlow, aB as ClientCredentialsOAuthFlow1, K as ContentTypeNotSupportedError, $ as DataPart, D as DeleteTaskPushNotificationConfigParams, aC as DeleteTaskPushNotificationConfigParams1, ac as DeleteTaskPushNotificationConfigRequest, h as DeleteTaskPushNotificationConfigResponse, aD as FileBase, Y as FilePart, Z as FileWithBytes, _ as FileWithUri, ad as GetAuthenticatedExtendedCardRequest, t as GetAuthenticatedExtendedCardResponse, a8 as GetTaskPushNotificationConfigParams, a6 as GetTaskPushNotificationConfigRequest, aF as GetTaskPushNotificationConfigSuccessResponse, a2 as GetTaskRequest, aH as GetTaskSuccessResponse, ak as HTTPAuthSecurityScheme, ap as ImplicitOAuthFlow, aJ as ImplicitOAuthFlow1, B as InternalError, N as InvalidAgentResponseError, z as InvalidParamsError, I as InvalidRequestError, x as JSONParseError, ax as JSONRPCError, aK as JSONRPCMessage, aL as JSONRPCRequest, J as JSONRPCResponse, aU as JSONRPCSuccessResponse, L as ListTaskPushNotificationConfigParams, aV as ListTaskPushNotificationConfigParams1, ab as ListTaskPushNotificationConfigRequest, g as ListTaskPushNotificationConfigResponse, a as Message, az as Message1, aA as Message2, R as MessageSendConfiguration, aW as MessageSendConfiguration1, M as MessageSendParams, a1 as MessageSendParams1, aX as MessageSendParams2, y as MethodNotFoundError, as as MutualTLSSecurityScheme, w as MySchema, al as OAuth2SecurityScheme, am as OAuthFlows, aY as OAuthFlows1, ar as OpenIdConnectSecurityScheme, P as Part, aZ as PartBase, aq as PasswordOAuthFlow, a_ as PasswordOAuthFlow1, W as PushNotificationAuthenticationInfo, a$ as PushNotificationAuthenticationInfo1, V as PushNotificationConfig, a5 as PushNotificationConfig1, b0 as PushNotificationConfig2, H as PushNotificationNotSupportedError, s as SecurityScheme, b1 as SecuritySchemeBase, Q as SendMessageRequest, aM as SendMessageSuccessResponse, a0 as SendStreamingMessageRequest, aO as SendStreamingMessageSuccessResponse, a4 as SetTaskPushNotificationConfigRequest, aR as SetTaskPushNotificationConfigSuccessResponse, T as Task, aI as Task1, aN as Task2, c as TaskArtifactUpdateEvent, f as TaskIdParams, a7 as TaskIdParams1, aa as TaskIdParams2, F as TaskNotCancelableError, E as TaskNotFoundError, d as TaskPushNotificationConfig, aG as TaskPushNotificationConfig1, aS as TaskPushNotificationConfig2, aT as TaskPushNotificationConfig3, i as TaskQueryParams, b2 as TaskQueryParams1, a9 as TaskResubscriptionRequest, u as TaskState, aP as TaskStatus1, b3 as TaskStatus2, b as TaskStatusUpdateEvent, X as TextPart, v as TransportProtocol, U as UnsupportedOperationError } from './types-Due_Cv6t.mjs';
3
- export { i as A2AError, b as AgentExecutionEvent, A as AgentExecutor, D as DefaultExecutionEventBus, d as DefaultExecutionEventBusManager, f as DefaultRequestHandler, E as ExecutionEventBus, c as ExecutionEventBusManager, e as ExecutionEventQueue, I as InMemoryTaskStore, J as JsonRpcTransportHandler, R as RequestContext, h as ResultManager, T as TaskStore } from './error-DExKs0Q3.mjs';
4
- export { A as A2ARequestHandler } from './a2a_request_handler-DPkhsCMt.mjs';
5
- export { A as A2AClient, a as A2AClientOptions, b as AuthenticationHandler, H as HttpHeaders, c as createAuthenticatingFetchWithRetry } from './auth-handler-DVLcl8yj.mjs';
6
- export { A2AExpressApp } from './server/express/index.mjs';
7
- import 'events';
8
- import 'express';
1
+ import { S as SendMessageResponse, a as SendStreamingMessageResponse, G as GetTaskResponse, C as CancelTaskResponse, b as SetTaskPushNotificationConfigResponse, c as GetTaskPushNotificationConfigResponse, L as ListTaskPushNotificationConfigSuccessResponse, D as DeleteTaskPushNotificationConfigSuccessResponse, d as GetAuthenticatedExtendedCardSuccessResponse, J as JSONRPCErrorResponse } from './extensions-DvruCIzw.mjs';
2
+ export { A as A2AError, f as A2ARequest, ab as APIKeySecurityScheme, ac as AgentCapabilities, ag as AgentCapabilities1, ae as AgentCard, aF as AgentCard1, ar as AgentCardSignature, ad as AgentExtension, af as AgentInterface, ah as AgentProvider, at as AgentProvider1, as as AgentSkill, au as Artifact, aT as Artifact1, v as AuthenticatedExtendedCardNotConfiguredError, al as AuthorizationCodeOAuthFlow, av as AuthorizationCodeOAuthFlow1, Y as CancelTaskRequest, ax as CancelTaskSuccessResponse, am as ClientCredentialsOAuthFlow, aC as ClientCredentialsOAuthFlow1, t as ContentTypeNotSupportedError, Q as DataPart, a9 as DeleteTaskPushNotificationConfigParams, aD as DeleteTaskPushNotificationConfigParams1, a8 as DeleteTaskPushNotificationConfigRequest, h as DeleteTaskPushNotificationConfigResponse, e as ExtensionURI, E as Extensions, aE as FileBase, K as FilePart, N as FileWithBytes, O as FileWithUri, aa as GetAuthenticatedExtendedCardRequest, i as GetAuthenticatedExtendedCardResponse, a3 as GetTaskPushNotificationConfigParams, a1 as GetTaskPushNotificationConfigRequest, aG as GetTaskPushNotificationConfigSuccessResponse, W as GetTaskRequest, aI as GetTaskSuccessResponse, ai as HTTPAuthSecurityScheme, an as ImplicitOAuthFlow, aK as ImplicitOAuthFlow1, p as InternalError, u as InvalidAgentResponseError, o as InvalidParamsError, I as InvalidRequestError, m as JSONParseError, aw as JSONRPCError, aL as JSONRPCMessage, aM as JSONRPCRequest, j as JSONRPCResponse, aX as JSONRPCSuccessResponse, a7 as ListTaskPushNotificationConfigParams, aY as ListTaskPushNotificationConfigParams1, a6 as ListTaskPushNotificationConfigRequest, k as ListTaskPushNotificationConfigResponse, F as Message, az as Message1, aB as Message2, y as MessageSendConfiguration, aZ as MessageSendConfiguration1, x as MessageSendParams, V as MessageSendParams1, a_ as MessageSendParams2, n as MethodNotFoundError, aq as MutualTLSSecurityScheme, M as MySchema, aj as OAuth2SecurityScheme, ak as OAuthFlows, a$ as OAuthFlows1, ap as OpenIdConnectSecurityScheme, P as Part, b0 as PartBase, ao as PasswordOAuthFlow, b1 as PasswordOAuthFlow1, B as PushNotificationAuthenticationInfo, b2 as PushNotificationAuthenticationInfo1, z as PushNotificationConfig, a0 as PushNotificationConfig1, b3 as PushNotificationConfig2, s as PushNotificationNotSupportedError, g as SecurityScheme, b4 as SecuritySchemeBase, w as SendMessageRequest, aN as SendMessageSuccessResponse, R as SendStreamingMessageRequest, aP as SendStreamingMessageSuccessResponse, _ as SetTaskPushNotificationConfigRequest, aU as SetTaskPushNotificationConfigSuccessResponse, ay as Task, aJ as Task1, aO as Task2, aS as TaskArtifactUpdateEvent, Z as TaskIdParams, a2 as TaskIdParams1, a5 as TaskIdParams2, r as TaskNotCancelableError, q as TaskNotFoundError, $ as TaskPushNotificationConfig, aH as TaskPushNotificationConfig1, aV as TaskPushNotificationConfig2, aW as TaskPushNotificationConfig3, X as TaskQueryParams, b5 as TaskQueryParams1, a4 as TaskResubscriptionRequest, T as TaskState, aA as TaskStatus, aR as TaskStatus1, b6 as TaskStatus2, aQ as TaskStatusUpdateEvent, H as TextPart, l as TransportProtocol, U as UnsupportedOperationError } from './extensions-DvruCIzw.mjs';
9
3
 
10
4
  /**
11
5
  * Represents any valid JSON-RPC response defined in the A2A protocol.
@@ -19,31 +13,9 @@ type A2AResponse = SendMessageResponse | SendStreamingMessageResponse | GetTaskR
19
13
  * The well-known path for the agent card
20
14
  */
21
15
  declare const AGENT_CARD_PATH = ".well-known/agent-card.json";
22
-
23
- /**
24
- * Generates a timestamp in ISO 8601 format.
25
- * @returns The current timestamp as a string.
26
- */
27
- declare function getCurrentTimestamp(): string;
28
- /**
29
- * Checks if a value is a plain object (excluding arrays and null).
30
- * @param value The value to check.
31
- * @returns True if the value is a plain object, false otherwise.
32
- */
33
- declare function isObject(value: unknown): value is Record<string, unknown>;
34
- /**
35
- * Type guard to check if an object is a TaskStatus update (lacks 'parts').
36
- * Used to differentiate yielded updates from the handler.
37
- */
38
- declare function isTaskStatusUpdate(update: unknown): update is Omit<TaskStatus, 'timestamp'>;
39
- /**
40
- * Type guard to check if an object is an Artifact update (has 'parts').
41
- * Used to differentiate yielded updates from the handler.
42
- */
43
- declare function isArtifactUpdate(update: unknown): update is Artifact;
44
16
  /**
45
- * Used to parse the extensions extracted from the request header
17
+ * The name of the extension header used in http
46
18
  */
47
- declare function getRequestedExtensions(values: string | undefined): Set<string>;
19
+ declare const HTTP_EXTENSION_HEADER = "X-A2A-Extensions";
48
20
 
49
- export { type A2AResponse, AGENT_CARD_PATH, Artifact, CancelTaskResponse, DeleteTaskPushNotificationConfigSuccessResponse, GetAuthenticatedExtendedCardSuccessResponse, GetTaskPushNotificationConfigResponse, GetTaskResponse, JSONRPCErrorResponse, ListTaskPushNotificationConfigSuccessResponse, SendMessageResponse, SendStreamingMessageResponse, SetTaskPushNotificationConfigResponse, TaskStatus, getCurrentTimestamp, getRequestedExtensions, isArtifactUpdate, isObject, isTaskStatusUpdate };
21
+ export { type A2AResponse, AGENT_CARD_PATH, CancelTaskResponse, DeleteTaskPushNotificationConfigSuccessResponse, GetAuthenticatedExtendedCardSuccessResponse, GetTaskPushNotificationConfigResponse, GetTaskResponse, HTTP_EXTENSION_HEADER, JSONRPCErrorResponse, ListTaskPushNotificationConfigSuccessResponse, SendMessageResponse, SendStreamingMessageResponse, SetTaskPushNotificationConfigResponse };
package/dist/index.d.ts CHANGED
@@ -1,11 +1,5 @@
1
- import { S as SendMessageResponse, k as SendStreamingMessageResponse, j as GetTaskResponse, C as CancelTaskResponse, e as SetTaskPushNotificationConfigResponse, G as GetTaskPushNotificationConfigResponse, l as ListTaskPushNotificationConfigSuccessResponse, m as DeleteTaskPushNotificationConfigSuccessResponse, n as GetAuthenticatedExtendedCardSuccessResponse, o as JSONRPCErrorResponse, p as TaskStatus, q as Artifact } from './types-Due_Cv6t.js';
2
- export { r as A2ARequest, ae as APIKeySecurityScheme, af as AgentCapabilities, ai as AgentCapabilities1, A as AgentCard, aE as AgentCard1, at as AgentCardSignature, ag as AgentExtension, ah as AgentInterface, aj as AgentProvider, av as AgentProvider1, au as AgentSkill, aQ as Artifact1, O as AuthenticatedExtendedCardNotConfiguredError, an as AuthorizationCodeOAuthFlow, aw as AuthorizationCodeOAuthFlow1, a3 as CancelTaskRequest, ay as CancelTaskSuccessResponse, ao as ClientCredentialsOAuthFlow, aB as ClientCredentialsOAuthFlow1, K as ContentTypeNotSupportedError, $ as DataPart, D as DeleteTaskPushNotificationConfigParams, aC as DeleteTaskPushNotificationConfigParams1, ac as DeleteTaskPushNotificationConfigRequest, h as DeleteTaskPushNotificationConfigResponse, aD as FileBase, Y as FilePart, Z as FileWithBytes, _ as FileWithUri, ad as GetAuthenticatedExtendedCardRequest, t as GetAuthenticatedExtendedCardResponse, a8 as GetTaskPushNotificationConfigParams, a6 as GetTaskPushNotificationConfigRequest, aF as GetTaskPushNotificationConfigSuccessResponse, a2 as GetTaskRequest, aH as GetTaskSuccessResponse, ak as HTTPAuthSecurityScheme, ap as ImplicitOAuthFlow, aJ as ImplicitOAuthFlow1, B as InternalError, N as InvalidAgentResponseError, z as InvalidParamsError, I as InvalidRequestError, x as JSONParseError, ax as JSONRPCError, aK as JSONRPCMessage, aL as JSONRPCRequest, J as JSONRPCResponse, aU as JSONRPCSuccessResponse, L as ListTaskPushNotificationConfigParams, aV as ListTaskPushNotificationConfigParams1, ab as ListTaskPushNotificationConfigRequest, g as ListTaskPushNotificationConfigResponse, a as Message, az as Message1, aA as Message2, R as MessageSendConfiguration, aW as MessageSendConfiguration1, M as MessageSendParams, a1 as MessageSendParams1, aX as MessageSendParams2, y as MethodNotFoundError, as as MutualTLSSecurityScheme, w as MySchema, al as OAuth2SecurityScheme, am as OAuthFlows, aY as OAuthFlows1, ar as OpenIdConnectSecurityScheme, P as Part, aZ as PartBase, aq as PasswordOAuthFlow, a_ as PasswordOAuthFlow1, W as PushNotificationAuthenticationInfo, a$ as PushNotificationAuthenticationInfo1, V as PushNotificationConfig, a5 as PushNotificationConfig1, b0 as PushNotificationConfig2, H as PushNotificationNotSupportedError, s as SecurityScheme, b1 as SecuritySchemeBase, Q as SendMessageRequest, aM as SendMessageSuccessResponse, a0 as SendStreamingMessageRequest, aO as SendStreamingMessageSuccessResponse, a4 as SetTaskPushNotificationConfigRequest, aR as SetTaskPushNotificationConfigSuccessResponse, T as Task, aI as Task1, aN as Task2, c as TaskArtifactUpdateEvent, f as TaskIdParams, a7 as TaskIdParams1, aa as TaskIdParams2, F as TaskNotCancelableError, E as TaskNotFoundError, d as TaskPushNotificationConfig, aG as TaskPushNotificationConfig1, aS as TaskPushNotificationConfig2, aT as TaskPushNotificationConfig3, i as TaskQueryParams, b2 as TaskQueryParams1, a9 as TaskResubscriptionRequest, u as TaskState, aP as TaskStatus1, b3 as TaskStatus2, b as TaskStatusUpdateEvent, X as TextPart, v as TransportProtocol, U as UnsupportedOperationError } from './types-Due_Cv6t.js';
3
- export { i as A2AError, b as AgentExecutionEvent, A as AgentExecutor, D as DefaultExecutionEventBus, d as DefaultExecutionEventBusManager, f as DefaultRequestHandler, E as ExecutionEventBus, c as ExecutionEventBusManager, e as ExecutionEventQueue, I as InMemoryTaskStore, J as JsonRpcTransportHandler, R as RequestContext, h as ResultManager, T as TaskStore } from './error-j1vYKII2.js';
4
- export { A as A2ARequestHandler } from './a2a_request_handler-DQfg1Q-R.js';
5
- export { A as A2AClient, a as A2AClientOptions, b as AuthenticationHandler, H as HttpHeaders, c as createAuthenticatingFetchWithRetry } from './auth-handler-Gzpf3xHC.js';
6
- export { A2AExpressApp } from './server/express/index.js';
7
- import 'events';
8
- import 'express';
1
+ import { S as SendMessageResponse, a as SendStreamingMessageResponse, G as GetTaskResponse, C as CancelTaskResponse, b as SetTaskPushNotificationConfigResponse, c as GetTaskPushNotificationConfigResponse, L as ListTaskPushNotificationConfigSuccessResponse, D as DeleteTaskPushNotificationConfigSuccessResponse, d as GetAuthenticatedExtendedCardSuccessResponse, J as JSONRPCErrorResponse } from './extensions-DvruCIzw.js';
2
+ export { A as A2AError, f as A2ARequest, ab as APIKeySecurityScheme, ac as AgentCapabilities, ag as AgentCapabilities1, ae as AgentCard, aF as AgentCard1, ar as AgentCardSignature, ad as AgentExtension, af as AgentInterface, ah as AgentProvider, at as AgentProvider1, as as AgentSkill, au as Artifact, aT as Artifact1, v as AuthenticatedExtendedCardNotConfiguredError, al as AuthorizationCodeOAuthFlow, av as AuthorizationCodeOAuthFlow1, Y as CancelTaskRequest, ax as CancelTaskSuccessResponse, am as ClientCredentialsOAuthFlow, aC as ClientCredentialsOAuthFlow1, t as ContentTypeNotSupportedError, Q as DataPart, a9 as DeleteTaskPushNotificationConfigParams, aD as DeleteTaskPushNotificationConfigParams1, a8 as DeleteTaskPushNotificationConfigRequest, h as DeleteTaskPushNotificationConfigResponse, e as ExtensionURI, E as Extensions, aE as FileBase, K as FilePart, N as FileWithBytes, O as FileWithUri, aa as GetAuthenticatedExtendedCardRequest, i as GetAuthenticatedExtendedCardResponse, a3 as GetTaskPushNotificationConfigParams, a1 as GetTaskPushNotificationConfigRequest, aG as GetTaskPushNotificationConfigSuccessResponse, W as GetTaskRequest, aI as GetTaskSuccessResponse, ai as HTTPAuthSecurityScheme, an as ImplicitOAuthFlow, aK as ImplicitOAuthFlow1, p as InternalError, u as InvalidAgentResponseError, o as InvalidParamsError, I as InvalidRequestError, m as JSONParseError, aw as JSONRPCError, aL as JSONRPCMessage, aM as JSONRPCRequest, j as JSONRPCResponse, aX as JSONRPCSuccessResponse, a7 as ListTaskPushNotificationConfigParams, aY as ListTaskPushNotificationConfigParams1, a6 as ListTaskPushNotificationConfigRequest, k as ListTaskPushNotificationConfigResponse, F as Message, az as Message1, aB as Message2, y as MessageSendConfiguration, aZ as MessageSendConfiguration1, x as MessageSendParams, V as MessageSendParams1, a_ as MessageSendParams2, n as MethodNotFoundError, aq as MutualTLSSecurityScheme, M as MySchema, aj as OAuth2SecurityScheme, ak as OAuthFlows, a$ as OAuthFlows1, ap as OpenIdConnectSecurityScheme, P as Part, b0 as PartBase, ao as PasswordOAuthFlow, b1 as PasswordOAuthFlow1, B as PushNotificationAuthenticationInfo, b2 as PushNotificationAuthenticationInfo1, z as PushNotificationConfig, a0 as PushNotificationConfig1, b3 as PushNotificationConfig2, s as PushNotificationNotSupportedError, g as SecurityScheme, b4 as SecuritySchemeBase, w as SendMessageRequest, aN as SendMessageSuccessResponse, R as SendStreamingMessageRequest, aP as SendStreamingMessageSuccessResponse, _ as SetTaskPushNotificationConfigRequest, aU as SetTaskPushNotificationConfigSuccessResponse, ay as Task, aJ as Task1, aO as Task2, aS as TaskArtifactUpdateEvent, Z as TaskIdParams, a2 as TaskIdParams1, a5 as TaskIdParams2, r as TaskNotCancelableError, q as TaskNotFoundError, $ as TaskPushNotificationConfig, aH as TaskPushNotificationConfig1, aV as TaskPushNotificationConfig2, aW as TaskPushNotificationConfig3, X as TaskQueryParams, b5 as TaskQueryParams1, a4 as TaskResubscriptionRequest, T as TaskState, aA as TaskStatus, aR as TaskStatus1, b6 as TaskStatus2, aQ as TaskStatusUpdateEvent, H as TextPart, l as TransportProtocol, U as UnsupportedOperationError } from './extensions-DvruCIzw.js';
9
3
 
10
4
  /**
11
5
  * Represents any valid JSON-RPC response defined in the A2A protocol.
@@ -19,31 +13,9 @@ type A2AResponse = SendMessageResponse | SendStreamingMessageResponse | GetTaskR
19
13
  * The well-known path for the agent card
20
14
  */
21
15
  declare const AGENT_CARD_PATH = ".well-known/agent-card.json";
22
-
23
- /**
24
- * Generates a timestamp in ISO 8601 format.
25
- * @returns The current timestamp as a string.
26
- */
27
- declare function getCurrentTimestamp(): string;
28
- /**
29
- * Checks if a value is a plain object (excluding arrays and null).
30
- * @param value The value to check.
31
- * @returns True if the value is a plain object, false otherwise.
32
- */
33
- declare function isObject(value: unknown): value is Record<string, unknown>;
34
- /**
35
- * Type guard to check if an object is a TaskStatus update (lacks 'parts').
36
- * Used to differentiate yielded updates from the handler.
37
- */
38
- declare function isTaskStatusUpdate(update: unknown): update is Omit<TaskStatus, 'timestamp'>;
39
- /**
40
- * Type guard to check if an object is an Artifact update (has 'parts').
41
- * Used to differentiate yielded updates from the handler.
42
- */
43
- declare function isArtifactUpdate(update: unknown): update is Artifact;
44
16
  /**
45
- * Used to parse the extensions extracted from the request header
17
+ * The name of the extension header used in http
46
18
  */
47
- declare function getRequestedExtensions(values: string | undefined): Set<string>;
19
+ declare const HTTP_EXTENSION_HEADER = "X-A2A-Extensions";
48
20
 
49
- export { type A2AResponse, AGENT_CARD_PATH, Artifact, CancelTaskResponse, DeleteTaskPushNotificationConfigSuccessResponse, GetAuthenticatedExtendedCardSuccessResponse, GetTaskPushNotificationConfigResponse, GetTaskResponse, JSONRPCErrorResponse, ListTaskPushNotificationConfigSuccessResponse, SendMessageResponse, SendStreamingMessageResponse, SetTaskPushNotificationConfigResponse, TaskStatus, getCurrentTimestamp, getRequestedExtensions, isArtifactUpdate, isObject, isTaskStatusUpdate };
21
+ export { type A2AResponse, AGENT_CARD_PATH, CancelTaskResponse, DeleteTaskPushNotificationConfigSuccessResponse, GetAuthenticatedExtendedCardSuccessResponse, GetTaskPushNotificationConfigResponse, GetTaskResponse, HTTP_EXTENSION_HEADER, JSONRPCErrorResponse, ListTaskPushNotificationConfigSuccessResponse, SendMessageResponse, SendStreamingMessageResponse, SetTaskPushNotificationConfigResponse };