@agent-native/core 0.157.15 → 0.157.16
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.
package/dist/a2a/server.d.ts
CHANGED
|
@@ -2,11 +2,14 @@ import type { A2AConfig, AgentSkill } from "./types.js";
|
|
|
2
2
|
/**
|
|
3
3
|
* Result of verifying an inbound A2A JWT. `email` is the caller identity from
|
|
4
4
|
* the token's `sub` claim (null when verification fails), `orgDomain` mirrors
|
|
5
|
-
* the verified `org_domain` claim when present
|
|
5
|
+
* the verified `org_domain` claim when present, and `orgId` mirrors the
|
|
6
|
+
* optional verified `org_id` claim used when a sender knows its exact org but
|
|
7
|
+
* cannot resolve that org's domain.
|
|
6
8
|
*/
|
|
7
9
|
export interface A2ATokenPayload {
|
|
8
10
|
email: string | null;
|
|
9
11
|
orgDomain: string | null;
|
|
12
|
+
orgId?: string;
|
|
10
13
|
}
|
|
11
14
|
/**
|
|
12
15
|
* Verify an inbound A2A bearer token (HS256) exactly as the
|
package/dist/a2a/server.js
CHANGED
|
@@ -166,9 +166,13 @@ export async function verifyA2AToken(token, event, audienceOptions) {
|
|
|
166
166
|
for (const secret of candidateSecrets) {
|
|
167
167
|
try {
|
|
168
168
|
const { payload } = await jose.jwtVerify(token, new TextEncoder().encode(secret), verifyOptions);
|
|
169
|
+
const orgId = typeof payload.org_id === "string" && payload.org_id.trim()
|
|
170
|
+
? payload.org_id.trim()
|
|
171
|
+
: undefined;
|
|
169
172
|
return {
|
|
170
173
|
email: payload.sub ?? null,
|
|
171
174
|
orgDomain: payload.org_domain ?? null,
|
|
175
|
+
...(orgId ? { orgId } : {}),
|
|
172
176
|
};
|
|
173
177
|
}
|
|
174
178
|
catch {
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
* Body: { json: any, fieldName?: string, type?: "map"|"array", requestSource?: string }
|
|
14
14
|
*/
|
|
15
15
|
export declare const postCollabJson: import("h3").EventHandlerWithFetch<import("h3").EventHandlerRequest, Promise<{
|
|
16
|
-
error: string;
|
|
17
16
|
ok?: undefined;
|
|
17
|
+
error: string;
|
|
18
18
|
} | {
|
|
19
19
|
error?: undefined;
|
|
20
20
|
ok: boolean;
|
|
@@ -41,16 +41,16 @@ export declare function createObservabilityHandler(): import("h3").EventHandlerW
|
|
|
41
41
|
thumbsUpRate: number;
|
|
42
42
|
avgEvalScore: number;
|
|
43
43
|
} | {
|
|
44
|
-
error?: undefined;
|
|
45
44
|
summary: import("./types.js").TraceSummary;
|
|
46
45
|
spans: import("./types.js").TraceSpan[];
|
|
47
46
|
id?: undefined;
|
|
47
|
+
error?: undefined;
|
|
48
48
|
ok?: undefined;
|
|
49
49
|
} | {
|
|
50
|
-
error?: undefined;
|
|
51
50
|
summary?: undefined;
|
|
52
51
|
spans?: undefined;
|
|
53
52
|
id: string;
|
|
53
|
+
error?: undefined;
|
|
54
54
|
ok?: undefined;
|
|
55
55
|
} | {
|
|
56
56
|
summary?: undefined;
|
|
@@ -59,9 +59,9 @@ export declare function createObservabilityHandler(): import("h3").EventHandlerW
|
|
|
59
59
|
error: any;
|
|
60
60
|
ok?: undefined;
|
|
61
61
|
} | {
|
|
62
|
-
error?: undefined;
|
|
63
62
|
summary?: undefined;
|
|
64
63
|
spans?: undefined;
|
|
65
64
|
id?: undefined;
|
|
65
|
+
error?: undefined;
|
|
66
66
|
ok: boolean;
|
|
67
67
|
}>>;
|
|
@@ -27,10 +27,10 @@ export declare function resolveAgentEngineApiKeyWriteTarget(event: H3Event, scop
|
|
|
27
27
|
export declare function createAgentEngineApiKeyHandler(): import("h3").EventHandlerWithFetch<import("h3").EventHandlerRequest, Promise<{
|
|
28
28
|
error: any;
|
|
29
29
|
} | {
|
|
30
|
-
error?: undefined;
|
|
31
30
|
ok: boolean;
|
|
32
31
|
key: string;
|
|
33
32
|
baseUrlKey?: string;
|
|
34
33
|
scope: AgentEngineApiKeyScope;
|
|
34
|
+
error?: undefined;
|
|
35
35
|
}>>;
|
|
36
36
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agent-native/core",
|
|
3
|
-
"version": "0.157.
|
|
3
|
+
"version": "0.157.16",
|
|
4
4
|
"description": "Framework for agent-native application development — where AI agents and UI share SQL state, actions, and context",
|
|
5
5
|
"homepage": "https://github.com/BuilderIO/agent-native#readme",
|
|
6
6
|
"bugs": {
|