Skip to content

Commit 1d5300c

Browse files
committed
fixup! feat(ui): move API to SDK (/users)
Signed-off-by: Petr Bulánek <[email protected]>
1 parent 2384295 commit 1d5300c

File tree

5 files changed

+6
-4
lines changed

5 files changed

+6
-4
lines changed

apps/agentstack-sdk-ts/src/client/a2a/extensions/interactions/approval.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
import z from 'zod';
77

8-
import type { A2AUiExtension } from '../core/types';
8+
import type { A2AUiExtension } from '../../../core/extensions/types';
99

1010
const URI = 'https://a2a-extensions.agentstack.beeai.dev/interactions/approval/v1';
1111

apps/agentstack-sdk-ts/src/client/a2a/create-authenticated-fetch.ts renamed to apps/agentstack-sdk-ts/src/client/core/createAuthenticatedFetch.ts

File renamed without changes.

apps/agentstack-sdk-ts/src/client/core/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* SPDX-License-Identifier: Apache-2.0
44
*/
55

6+
export * from './createAuthenticatedFetch';
67
export * from './extensions/extract';
78
export * from './extensions/fulfill';
89
export * from './extensions/resolveUserMetadata';

apps/agentstack-ui/src/api/a2a/agent-card.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ export async function getAgentClient(providerId: string, token?: string) {
1313
const agentCardUrl = `${getBaseUrl()}/api/v1/a2a/${providerId}/.well-known/agent-card.json`;
1414

1515
const fetchImpl = token ? createAuthenticatedFetch(token, clientFetch) : clientFetch;
16+
1617
return await A2AClient.fromCardUrl(agentCardUrl, { fetchImpl });
1718
}
1819

apps/agentstack-ui/src/modules/platform-context/api/queries/useContextToken.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ export function useContextToken(agent: Agent) {
2727
}
2828

2929
const token = await createContextToken({
30-
contextId,
31-
contextPermissions: contextTokenPermissions.grant_context_permissions ?? {},
32-
globalPermissions: contextTokenPermissions.grant_global_permissions ?? {},
30+
context_id: contextId,
31+
grant_context_permissions: contextTokenPermissions.grant_context_permissions ?? {},
32+
grant_global_permissions: contextTokenPermissions.grant_global_permissions ?? {},
3333
});
3434

3535
if (!token) {

0 commit comments

Comments
 (0)