A2APushPolicy
Defined in: agents/src/a2a/push.ts:22
Properties
Section titled “Properties”fetch?
Section titled “fetch?”optional fetch?: FetchLike;Defined in: agents/src/a2a/push.ts:28
signingSecret?
Section titled “signingSecret?”optional signingSecret?: string;Defined in: agents/src/a2a/push.ts:31
Optional providerkit extension, not an A2A standard signature header.
timeoutMs?
Section titled “timeoutMs?”optional timeoutMs?: number;Defined in: agents/src/a2a/push.ts:29
Methods
Section titled “Methods”allow()
Section titled “allow()”allow(url, scope): boolean | Promise<boolean>;Defined in: agents/src/a2a/push.ts:27
Rechecked before every delivery. DNS/address pinning belongs to this hook’s egress proxy or fetch implementation; portable literal checks alone cannot prove DNS safety.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
url |
URL |
scope |
A2ATaskScope |
Returns
Section titled “Returns”boolean | Promise<boolean>
authorize()
Section titled “authorize()”authorize(scope, taskId): boolean | Promise<boolean>;Defined in: agents/src/a2a/push.ts:24
Rechecked before every delivery. Must enforce current task access, not just the URL.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
scope |
A2ATaskScope |
taskId |
string |
Returns
Section titled “Returns”boolean | Promise<boolean>