@diskd-ai/sdk 5.1.2
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/LICENSE +190 -0
- package/README.md +1036 -0
- package/dist/agentHub/StreamProtocolFetcher.d.ts +55 -0
- package/dist/agentHub/StreamProtocolFetcher.d.ts.map +1 -0
- package/dist/agentHub/StreamProtocolFetcher.js +176 -0
- package/dist/agentHub/StreamProtocolFetcher.js.map +1 -0
- package/dist/agentHub/StreamProtocolHandler.d.ts +18 -0
- package/dist/agentHub/StreamProtocolHandler.d.ts.map +1 -0
- package/dist/agentHub/StreamProtocolHandler.js +63 -0
- package/dist/agentHub/StreamProtocolHandler.js.map +1 -0
- package/dist/agentHub/agentHub.d.ts +30 -0
- package/dist/agentHub/agentHub.d.ts.map +1 -0
- package/dist/agentHub/agentHub.js +200 -0
- package/dist/agentHub/agentHub.js.map +1 -0
- package/dist/agentHub/agentHubTypes.d.ts +110 -0
- package/dist/agentHub/agentHubTypes.d.ts.map +1 -0
- package/dist/agentHub/agentHubTypes.js +8 -0
- package/dist/agentHub/agentHubTypes.js.map +1 -0
- package/dist/agentHub/streamProtocolMap.d.ts +328 -0
- package/dist/agentHub/streamProtocolMap.d.ts.map +1 -0
- package/dist/agentHub/streamProtocolMap.js +8 -0
- package/dist/agentHub/streamProtocolMap.js.map +1 -0
- package/dist/auth/createApiKeyAuth.d.ts +11 -0
- package/dist/auth/createApiKeyAuth.d.ts.map +1 -0
- package/dist/auth/createApiKeyAuth.js +31 -0
- package/dist/auth/createApiKeyAuth.js.map +1 -0
- package/dist/auth/createAuth.d.ts +3 -0
- package/dist/auth/createAuth.d.ts.map +1 -0
- package/dist/auth/createAuth.js +128 -0
- package/dist/auth/createAuth.js.map +1 -0
- package/dist/auth/createAuthBrowser.d.ts +3 -0
- package/dist/auth/createAuthBrowser.d.ts.map +1 -0
- package/dist/auth/createAuthBrowser.js +104 -0
- package/dist/auth/createAuthBrowser.js.map +1 -0
- package/dist/auth/jwtClaims.d.ts +3 -0
- package/dist/auth/jwtClaims.d.ts.map +1 -0
- package/dist/auth/jwtClaims.js +23 -0
- package/dist/auth/jwtClaims.js.map +1 -0
- package/dist/auth/keyfile.d.ts +10 -0
- package/dist/auth/keyfile.d.ts.map +1 -0
- package/dist/auth/keyfile.js +28 -0
- package/dist/auth/keyfile.js.map +1 -0
- package/dist/auth/oidcDiscovery.d.ts +9 -0
- package/dist/auth/oidcDiscovery.d.ts.map +1 -0
- package/dist/auth/oidcDiscovery.js +27 -0
- package/dist/auth/oidcDiscovery.js.map +1 -0
- package/dist/auth/pkce.d.ts +4 -0
- package/dist/auth/pkce.d.ts.map +1 -0
- package/dist/auth/pkce.js +43 -0
- package/dist/auth/pkce.js.map +1 -0
- package/dist/auth/sessionStorage.d.ts +8 -0
- package/dist/auth/sessionStorage.d.ts.map +1 -0
- package/dist/auth/sessionStorage.js +8 -0
- package/dist/auth/sessionStorage.js.map +1 -0
- package/dist/auth/tokenRequests.d.ts +15 -0
- package/dist/auth/tokenRequests.d.ts.map +1 -0
- package/dist/auth/tokenRequests.js +89 -0
- package/dist/auth/tokenRequests.js.map +1 -0
- package/dist/auth/types.d.ts +35 -0
- package/dist/auth/types.d.ts.map +1 -0
- package/dist/auth/types.js +2 -0
- package/dist/auth/types.js.map +1 -0
- package/dist/auth/urlRuntime.d.ts +7 -0
- package/dist/auth/urlRuntime.d.ts.map +1 -0
- package/dist/auth/urlRuntime.js +17 -0
- package/dist/auth/urlRuntime.js.map +1 -0
- package/dist/browser/index.d.ts +8 -0
- package/dist/browser/index.d.ts.map +1 -0
- package/dist/browser/index.js +3 -0
- package/dist/browser/index.js.map +1 -0
- package/dist/calendar/calendar.d.ts +21 -0
- package/dist/calendar/calendar.d.ts.map +1 -0
- package/dist/calendar/calendar.js +105 -0
- package/dist/calendar/calendar.js.map +1 -0
- package/dist/calendar/calendarTypes.d.ts +191 -0
- package/dist/calendar/calendarTypes.d.ts.map +1 -0
- package/dist/calendar/calendarTypes.js +4 -0
- package/dist/calendar/calendarTypes.js.map +1 -0
- package/dist/contacts/contacts.d.ts +10 -0
- package/dist/contacts/contacts.d.ts.map +1 -0
- package/dist/contacts/contacts.js +86 -0
- package/dist/contacts/contacts.js.map +1 -0
- package/dist/contacts/contactsTypes.d.ts +81 -0
- package/dist/contacts/contactsTypes.d.ts.map +1 -0
- package/dist/contacts/contactsTypes.js +4 -0
- package/dist/contacts/contactsTypes.js.map +1 -0
- package/dist/drive/DriveRepository.d.ts +88 -0
- package/dist/drive/DriveRepository.d.ts.map +1 -0
- package/dist/drive/DriveRepository.js +156 -0
- package/dist/drive/DriveRepository.js.map +1 -0
- package/dist/drive/crontab.d.ts +7 -0
- package/dist/drive/crontab.d.ts.map +1 -0
- package/dist/drive/crontab.js +374 -0
- package/dist/drive/crontab.js.map +1 -0
- package/dist/drive/crontabTypes.d.ts +136 -0
- package/dist/drive/crontabTypes.d.ts.map +1 -0
- package/dist/drive/crontabTypes.js +2 -0
- package/dist/drive/crontabTypes.js.map +1 -0
- package/dist/drive/drive.d.ts +8 -0
- package/dist/drive/drive.d.ts.map +1 -0
- package/dist/drive/drive.js +711 -0
- package/dist/drive/drive.js.map +1 -0
- package/dist/drive/driveDb.d.ts +6 -0
- package/dist/drive/driveDb.d.ts.map +1 -0
- package/dist/drive/driveDb.js +220 -0
- package/dist/drive/driveDb.js.map +1 -0
- package/dist/drive/driveDbTypes.d.ts +138 -0
- package/dist/drive/driveDbTypes.d.ts.map +1 -0
- package/dist/drive/driveDbTypes.js +5 -0
- package/dist/drive/driveDbTypes.js.map +1 -0
- package/dist/drive/driveTypes.d.ts +322 -0
- package/dist/drive/driveTypes.d.ts.map +1 -0
- package/dist/drive/driveTypes.js +5 -0
- package/dist/drive/driveTypes.js.map +1 -0
- package/dist/drive/rpc.d.ts +14 -0
- package/dist/drive/rpc.d.ts.map +1 -0
- package/dist/drive/rpc.js +48 -0
- package/dist/drive/rpc.js.map +1 -0
- package/dist/drive/session.d.ts +7 -0
- package/dist/drive/session.d.ts.map +1 -0
- package/dist/drive/session.js +450 -0
- package/dist/drive/session.js.map +1 -0
- package/dist/drive/sessionBuilder.d.ts +33 -0
- package/dist/drive/sessionBuilder.d.ts.map +1 -0
- package/dist/drive/sessionBuilder.js +77 -0
- package/dist/drive/sessionBuilder.js.map +1 -0
- package/dist/drive/sessionObject.d.ts +57 -0
- package/dist/drive/sessionObject.d.ts.map +1 -0
- package/dist/drive/sessionObject.js +191 -0
- package/dist/drive/sessionObject.js.map +1 -0
- package/dist/drive/sessionTypes.d.ts +182 -0
- package/dist/drive/sessionTypes.d.ts.map +1 -0
- package/dist/drive/sessionTypes.js +2 -0
- package/dist/drive/sessionTypes.js.map +1 -0
- package/dist/drive/typeorm/DriveDriver.d.ts +27 -0
- package/dist/drive/typeorm/DriveDriver.d.ts.map +1 -0
- package/dist/drive/typeorm/DriveDriver.js +86 -0
- package/dist/drive/typeorm/DriveDriver.js.map +1 -0
- package/dist/drive/typeorm/DriveQueryRunner.d.ts +15 -0
- package/dist/drive/typeorm/DriveQueryRunner.d.ts.map +1 -0
- package/dist/drive/typeorm/DriveQueryRunner.js +76 -0
- package/dist/drive/typeorm/DriveQueryRunner.js.map +1 -0
- package/dist/drive/typeorm/createDriveDataSource.d.ts +3 -0
- package/dist/drive/typeorm/createDriveDataSource.d.ts.map +1 -0
- package/dist/drive/typeorm/createDriveDataSource.js +36 -0
- package/dist/drive/typeorm/createDriveDataSource.js.map +1 -0
- package/dist/drive/typeorm/datasourceTypes.d.ts +56 -0
- package/dist/drive/typeorm/datasourceTypes.d.ts.map +1 -0
- package/dist/drive/typeorm/datasourceTypes.js +5 -0
- package/dist/drive/typeorm/datasourceTypes.js.map +1 -0
- package/dist/drive/types.d.ts +48 -0
- package/dist/drive/types.d.ts.map +1 -0
- package/dist/drive/types.js +2 -0
- package/dist/drive/types.js.map +1 -0
- package/dist/env/apiKey.d.ts +2 -0
- package/dist/env/apiKey.d.ts.map +1 -0
- package/dist/env/apiKey.js +11 -0
- package/dist/env/apiKey.js.map +1 -0
- package/dist/env/baseUrl.d.ts +3 -0
- package/dist/env/baseUrl.d.ts.map +1 -0
- package/dist/env/baseUrl.js +31 -0
- package/dist/env/baseUrl.js.map +1 -0
- package/dist/inbox/inboxTypes.d.ts +34 -0
- package/dist/inbox/inboxTypes.d.ts.map +1 -0
- package/dist/inbox/inboxTypes.js +5 -0
- package/dist/inbox/inboxTypes.js.map +1 -0
- package/dist/index.d.ts +56 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +43 -0
- package/dist/index.js.map +1 -0
- package/dist/llmRouter/llmRouter.d.ts +23 -0
- package/dist/llmRouter/llmRouter.d.ts.map +1 -0
- package/dist/llmRouter/llmRouter.js +566 -0
- package/dist/llmRouter/llmRouter.js.map +1 -0
- package/dist/llmRouter/llmRouterTypes.d.ts +350 -0
- package/dist/llmRouter/llmRouterTypes.d.ts.map +1 -0
- package/dist/llmRouter/llmRouterTypes.js +5 -0
- package/dist/llmRouter/llmRouterTypes.js.map +1 -0
- package/dist/mcpHub/mcpHub.d.ts +23 -0
- package/dist/mcpHub/mcpHub.d.ts.map +1 -0
- package/dist/mcpHub/mcpHub.js +223 -0
- package/dist/mcpHub/mcpHub.js.map +1 -0
- package/dist/mcpHub/mcpHubTypes.d.ts +228 -0
- package/dist/mcpHub/mcpHubTypes.d.ts.map +1 -0
- package/dist/mcpHub/mcpHubTypes.js +5 -0
- package/dist/mcpHub/mcpHubTypes.js.map +1 -0
- package/dist/mcpTools/mcpTools.d.ts +31 -0
- package/dist/mcpTools/mcpTools.d.ts.map +1 -0
- package/dist/mcpTools/mcpTools.js +144 -0
- package/dist/mcpTools/mcpTools.js.map +1 -0
- package/dist/mcpTools/mcpToolsTypes.d.ts +45 -0
- package/dist/mcpTools/mcpToolsTypes.d.ts.map +1 -0
- package/dist/mcpTools/mcpToolsTypes.js +5 -0
- package/dist/mcpTools/mcpToolsTypes.js.map +1 -0
- package/dist/messagesStore/messagesStore.d.ts +22 -0
- package/dist/messagesStore/messagesStore.d.ts.map +1 -0
- package/dist/messagesStore/messagesStore.js +402 -0
- package/dist/messagesStore/messagesStore.js.map +1 -0
- package/dist/messagesStore/messagesStoreTypes.d.ts +327 -0
- package/dist/messagesStore/messagesStoreTypes.d.ts.map +1 -0
- package/dist/messagesStore/messagesStoreTypes.js +11 -0
- package/dist/messagesStore/messagesStoreTypes.js.map +1 -0
- package/dist/node/fastDns.d.ts +2 -0
- package/dist/node/fastDns.d.ts.map +1 -0
- package/dist/node/fastDns.js +119 -0
- package/dist/node/fastDns.js.map +1 -0
- package/dist/operatives/operatives.d.ts +22 -0
- package/dist/operatives/operatives.d.ts.map +1 -0
- package/dist/operatives/operatives.js +199 -0
- package/dist/operatives/operatives.js.map +1 -0
- package/dist/operatives/operativesTypes.d.ts +141 -0
- package/dist/operatives/operativesTypes.d.ts.map +1 -0
- package/dist/operatives/operativesTypes.js +6 -0
- package/dist/operatives/operativesTypes.js.map +1 -0
- package/dist/platformEvents/platformEvents.d.ts +14 -0
- package/dist/platformEvents/platformEvents.d.ts.map +1 -0
- package/dist/platformEvents/platformEvents.js +70 -0
- package/dist/platformEvents/platformEvents.js.map +1 -0
- package/dist/platformEvents/platformEventsTypes.d.ts +31 -0
- package/dist/platformEvents/platformEventsTypes.d.ts.map +1 -0
- package/dist/platformEvents/platformEventsTypes.js +8 -0
- package/dist/platformEvents/platformEventsTypes.js.map +1 -0
- package/dist/projects/projects.d.ts +19 -0
- package/dist/projects/projects.d.ts.map +1 -0
- package/dist/projects/projects.js +52 -0
- package/dist/projects/projects.js.map +1 -0
- package/dist/projects/projectsTypes.d.ts +47 -0
- package/dist/projects/projectsTypes.d.ts.map +1 -0
- package/dist/projects/projectsTypes.js +4 -0
- package/dist/projects/projectsTypes.js.map +1 -0
- package/dist/routineRuns/routineRuns.d.ts +19 -0
- package/dist/routineRuns/routineRuns.d.ts.map +1 -0
- package/dist/routineRuns/routineRuns.js +47 -0
- package/dist/routineRuns/routineRuns.js.map +1 -0
- package/dist/routineRuns/routineRunsTypes.d.ts +39 -0
- package/dist/routineRuns/routineRunsTypes.d.ts.map +1 -0
- package/dist/routineRuns/routineRunsTypes.js +4 -0
- package/dist/routineRuns/routineRunsTypes.js.map +1 -0
- package/dist/routines/routines.d.ts +19 -0
- package/dist/routines/routines.d.ts.map +1 -0
- package/dist/routines/routines.js +77 -0
- package/dist/routines/routines.js.map +1 -0
- package/dist/routines/routinesTypes.d.ts +106 -0
- package/dist/routines/routinesTypes.d.ts.map +1 -0
- package/dist/routines/routinesTypes.js +4 -0
- package/dist/routines/routinesTypes.js.map +1 -0
- package/dist/sdk/diskd.d.ts +3 -0
- package/dist/sdk/diskd.d.ts.map +1 -0
- package/dist/sdk/diskd.js +126 -0
- package/dist/sdk/diskd.js.map +1 -0
- package/dist/sdk/http.d.ts +13 -0
- package/dist/sdk/http.d.ts.map +1 -0
- package/dist/sdk/http.js +80 -0
- package/dist/sdk/http.js.map +1 -0
- package/dist/sdk/types.d.ts +115 -0
- package/dist/sdk/types.d.ts.map +1 -0
- package/dist/sdk/types.js +2 -0
- package/dist/sdk/types.js.map +1 -0
- package/dist/testing/auth.d.ts +8 -0
- package/dist/testing/auth.d.ts.map +1 -0
- package/dist/testing/auth.js +14 -0
- package/dist/testing/auth.js.map +1 -0
- package/dist/testing/fetchMock.d.ts +17 -0
- package/dist/testing/fetchMock.d.ts.map +1 -0
- package/dist/testing/fetchMock.js +46 -0
- package/dist/testing/fetchMock.js.map +1 -0
- package/dist/testing/index.d.ts +11 -0
- package/dist/testing/index.d.ts.map +1 -0
- package/dist/testing/index.js +11 -0
- package/dist/testing/index.js.map +1 -0
- package/dist/testing/integration.d.ts +33 -0
- package/dist/testing/integration.d.ts.map +1 -0
- package/dist/testing/integration.js +32 -0
- package/dist/testing/integration.js.map +1 -0
- package/dist/testing/jsonRpc.d.ts +9 -0
- package/dist/testing/jsonRpc.d.ts.map +1 -0
- package/dist/testing/jsonRpc.js +24 -0
- package/dist/testing/jsonRpc.js.map +1 -0
- package/dist/testing/rpcMock.d.ts +16 -0
- package/dist/testing/rpcMock.d.ts.map +1 -0
- package/dist/testing/rpcMock.js +28 -0
- package/dist/testing/rpcMock.js.map +1 -0
- package/dist/tgUserbot/tgUserbot.d.ts +23 -0
- package/dist/tgUserbot/tgUserbot.d.ts.map +1 -0
- package/dist/tgUserbot/tgUserbot.js +314 -0
- package/dist/tgUserbot/tgUserbot.js.map +1 -0
- package/dist/tgUserbot/tgUserbotTypes.d.ts +124 -0
- package/dist/tgUserbot/tgUserbotTypes.d.ts.map +1 -0
- package/dist/tgUserbot/tgUserbotTypes.js +5 -0
- package/dist/tgUserbot/tgUserbotTypes.js.map +1 -0
- package/dist/webNavigator/webNavigator.d.ts +22 -0
- package/dist/webNavigator/webNavigator.d.ts.map +1 -0
- package/dist/webNavigator/webNavigator.js +46 -0
- package/dist/webNavigator/webNavigator.js.map +1 -0
- package/dist/webNavigator/webNavigatorTypes.d.ts +133 -0
- package/dist/webNavigator/webNavigatorTypes.d.ts.map +1 -0
- package/dist/webNavigator/webNavigatorTypes.js +5 -0
- package/dist/webNavigator/webNavigatorTypes.js.map +1 -0
- package/package.json +90 -0
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import type { StreamProtocolStream } from './StreamProtocolFetcher.js';
|
|
2
|
+
export type MessageContentTextPart = {
|
|
3
|
+
readonly type: 'text';
|
|
4
|
+
readonly text: string;
|
|
5
|
+
};
|
|
6
|
+
export type MessageContentImagePart = {
|
|
7
|
+
readonly type: 'image_url';
|
|
8
|
+
readonly imageUrl: string;
|
|
9
|
+
};
|
|
10
|
+
export type MessageContentPart = MessageContentTextPart | MessageContentImagePart;
|
|
11
|
+
export type ChatCompletionMessageParam = {
|
|
12
|
+
readonly role: 'system' | 'user' | 'assistant' | 'tool';
|
|
13
|
+
readonly content: string | readonly MessageContentPart[];
|
|
14
|
+
};
|
|
15
|
+
export type AgentInvokeContext = {
|
|
16
|
+
readonly history?: readonly ChatCompletionMessageParam[];
|
|
17
|
+
readonly inodes?: readonly string[];
|
|
18
|
+
readonly user?: {
|
|
19
|
+
readonly id: string;
|
|
20
|
+
readonly name?: string;
|
|
21
|
+
readonly email?: string;
|
|
22
|
+
};
|
|
23
|
+
readonly chatSessionId?: string;
|
|
24
|
+
};
|
|
25
|
+
export type AgentOptions = {
|
|
26
|
+
readonly routeKey?: string;
|
|
27
|
+
readonly provider?: string;
|
|
28
|
+
readonly model?: string;
|
|
29
|
+
readonly maxTokens?: number;
|
|
30
|
+
readonly contextWindow?: number;
|
|
31
|
+
readonly instructions?: string;
|
|
32
|
+
readonly temperature?: number;
|
|
33
|
+
readonly topP?: number;
|
|
34
|
+
};
|
|
35
|
+
export type AgentHubInvokeParams = {
|
|
36
|
+
readonly agentName: string;
|
|
37
|
+
readonly query: string | readonly MessageContentPart[];
|
|
38
|
+
readonly context?: AgentInvokeContext;
|
|
39
|
+
readonly agentOptions?: AgentOptions;
|
|
40
|
+
};
|
|
41
|
+
export type AgentInfo = {
|
|
42
|
+
readonly id: string;
|
|
43
|
+
readonly displayName: string;
|
|
44
|
+
};
|
|
45
|
+
export type AgentHubModelInfo = {
|
|
46
|
+
readonly provider: string;
|
|
47
|
+
readonly model: string;
|
|
48
|
+
readonly displayName: string;
|
|
49
|
+
readonly description: string;
|
|
50
|
+
readonly supportedTypes?: readonly string[];
|
|
51
|
+
readonly isStreamModel?: boolean;
|
|
52
|
+
};
|
|
53
|
+
export type SupportedModelsResult = {
|
|
54
|
+
readonly models: readonly AgentHubModelInfo[];
|
|
55
|
+
};
|
|
56
|
+
export type BillingAliasModel = {
|
|
57
|
+
readonly billingAlias: string;
|
|
58
|
+
readonly provider: string;
|
|
59
|
+
readonly model: string;
|
|
60
|
+
readonly displayName: string;
|
|
61
|
+
readonly description: string;
|
|
62
|
+
readonly usedBy: readonly string[];
|
|
63
|
+
readonly supportedTypes: readonly string[];
|
|
64
|
+
readonly isStreamModel: boolean;
|
|
65
|
+
};
|
|
66
|
+
export type BillingAliasesResult = {
|
|
67
|
+
readonly models: readonly BillingAliasModel[];
|
|
68
|
+
readonly providers: readonly {
|
|
69
|
+
readonly id: string;
|
|
70
|
+
}[];
|
|
71
|
+
readonly agents: readonly AgentInfo[];
|
|
72
|
+
};
|
|
73
|
+
/**
|
|
74
|
+
* Agent Hub client organized by namespace.
|
|
75
|
+
*
|
|
76
|
+
* Obtain via `createAgentHubClient`. The workspace is derived from
|
|
77
|
+
* `auth.getWorkspaceId()` and forwarded as `X-Workspace-Id` on all requests.
|
|
78
|
+
*
|
|
79
|
+
* The `invoke` method returns a `StreamProtocolStream` for fluent event
|
|
80
|
+
* processing via `StreamProtocolHandler`:
|
|
81
|
+
*
|
|
82
|
+
* ```ts
|
|
83
|
+
* const hub = createAgentHubClient({ auth });
|
|
84
|
+
* const handler = new StreamProtocolHandler()
|
|
85
|
+
* .on('response.output_text.delta', (e) => process.stdout.write(e.delta))
|
|
86
|
+
* .on('response.completed', () => console.log('done'))
|
|
87
|
+
* .on('error', (e) => console.error(e.message));
|
|
88
|
+
*
|
|
89
|
+
* const stream = await hub.invoke({ agentName: 'assistant', query: 'Hello' });
|
|
90
|
+
* stream
|
|
91
|
+
* .map((event) => handler.handle(event))
|
|
92
|
+
* .stop(() => console.log('stream closed'))
|
|
93
|
+
* .catch((err) => console.error(err));
|
|
94
|
+
* ```
|
|
95
|
+
*/
|
|
96
|
+
export type AgentHubClient = {
|
|
97
|
+
/** POST /invoke -- stream agent response via SSE. Returns a StreamProtocolStream. */
|
|
98
|
+
readonly invoke: (params: AgentHubInvokeParams) => Promise<StreamProtocolStream>;
|
|
99
|
+
readonly agents: {
|
|
100
|
+
/** GET /supported-agents -- list all available agents. */
|
|
101
|
+
readonly list: () => Promise<readonly AgentInfo[]>;
|
|
102
|
+
/** GET /supported-models?agent={id} -- list models supported by an agent. */
|
|
103
|
+
readonly getSupportedModels: (agentId: string) => Promise<SupportedModelsResult>;
|
|
104
|
+
};
|
|
105
|
+
readonly billing: {
|
|
106
|
+
/** GET /billing-aliases -- list billing alias models, providers, and agents. */
|
|
107
|
+
readonly getAliases: () => Promise<BillingAliasesResult>;
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
//# sourceMappingURL=agentHubTypes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agentHubTypes.d.ts","sourceRoot":"","sources":["../../src/agentHub/agentHubTypes.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAIvE,MAAM,MAAM,sBAAsB,GAAG;IACnC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;IACpC,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;IAC3B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,sBAAsB,GAAG,uBAAuB,CAAC;AAElF,MAAM,MAAM,0BAA0B,GAAG;IACvC,QAAQ,CAAC,IAAI,EAAE,QAAQ,GAAG,MAAM,GAAG,WAAW,GAAG,MAAM,CAAC;IACxD,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,kBAAkB,EAAE,CAAC;CAC1D,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS,0BAA0B,EAAE,CAAC;IACzD,QAAQ,CAAC,MAAM,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACpC,QAAQ,CAAC,IAAI,CAAC,EAAE;QACd,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;QACpB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QACvB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;KACzB,CAAC;IACF,QAAQ,CAAC,aAAa,C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AChF,QAAQ,CAAC,UAAU,EAAE,MAAM,OAAO,CAAC,oBAAoB,CAAC,CAAC;KAC1D,CAAC;CACH,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// Domain types for the Agent Hub API.
|
|
2
|
+
// These are pure data types only -- no classes, no I/O, no side effects.
|
|
3
|
+
//
|
|
4
|
+
// Stream event types live in streamProtocolMap.ts and are consumed via
|
|
5
|
+
// StreamProtocolHandler (fluent .on() API) and StreamProtocolFetcher
|
|
6
|
+
// (SSE stream consumer returning StreamProtocolStream).
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=agentHubTypes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agentHubTypes.js","sourceRoot":"","sources":["../../src/agentHub/agentHubTypes.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,yEAAyE;AACzE,EAAE;AACF,uEAAuE;AACvE,qEAAqE;AACrE,wDAAwD"}
|
|
@@ -0,0 +1,328 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Protocol event map for Agent Hub streaming protocol.
|
|
3
|
+
* Defines all event types based on the agent-hub STREAMING_PROTO.md specification.
|
|
4
|
+
*
|
|
5
|
+
* These are pure data types only -- no classes, no I/O, no side effects.
|
|
6
|
+
*/
|
|
7
|
+
type ContentPartType = 'output_text' | 'image' | 'file' | 'audio';
|
|
8
|
+
export type ResponseCreatedEvent = {
|
|
9
|
+
readonly type: 'response.created';
|
|
10
|
+
readonly response: {
|
|
11
|
+
readonly id: string;
|
|
12
|
+
readonly object: string;
|
|
13
|
+
readonly created_at: number;
|
|
14
|
+
readonly status: string;
|
|
15
|
+
readonly model: string;
|
|
16
|
+
readonly output: readonly unknown[];
|
|
17
|
+
readonly temperature: number;
|
|
18
|
+
readonly top_p: number;
|
|
19
|
+
readonly metadata: Readonly<Record<string, unknown>>;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export type ResponseInProgressEvent = {
|
|
23
|
+
readonly type: 'response.in_progress';
|
|
24
|
+
readonly response: {
|
|
25
|
+
readonly id: string;
|
|
26
|
+
readonly object: string;
|
|
27
|
+
readonly created_at: number;
|
|
28
|
+
readonly status: string;
|
|
29
|
+
readonly model: string;
|
|
30
|
+
readonly output: readonly unknown[];
|
|
31
|
+
readonly temperature: number;
|
|
32
|
+
readonly top_p: number;
|
|
33
|
+
readonly metadata: Readonly<Record<string, unknown>>;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
export type ResponseCompletedEvent = {
|
|
37
|
+
readonly type: 'response.completed';
|
|
38
|
+
readonly response: {
|
|
39
|
+
readonly id: string;
|
|
40
|
+
readonly object: string;
|
|
41
|
+
readonly created_at: number;
|
|
42
|
+
readonly status: 'completed';
|
|
43
|
+
readonly model: string;
|
|
44
|
+
readonly output: readonly {
|
|
45
|
+
readonly id: string;
|
|
46
|
+
readonly type: string;
|
|
47
|
+
readonly role: string;
|
|
48
|
+
readonly status: string;
|
|
49
|
+
readonly content: readonly {
|
|
50
|
+
readonly type: string;
|
|
51
|
+
readonly text: string;
|
|
52
|
+
readonly annotations: readonly unknown[];
|
|
53
|
+
}[];
|
|
54
|
+
}[];
|
|
55
|
+
readonly temperature: number;
|
|
56
|
+
readonly top_p: number;
|
|
57
|
+
readonly usage: {
|
|
58
|
+
readonly input_tokens: number;
|
|
59
|
+
readonly output_tokens: number;
|
|
60
|
+
readonly total_tokens: number;
|
|
61
|
+
readonly output_tokens_details?: {
|
|
62
|
+
readonly reasoning_tokens: number;
|
|
63
|
+
};
|
|
64
|
+
} | null;
|
|
65
|
+
readonly metadata: Readonly<Record<string, unknown>>;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
export type ResponseFailedEvent = {
|
|
69
|
+
readonly type: 'response.failed';
|
|
70
|
+
readonly response: {
|
|
71
|
+
readonly id: string;
|
|
72
|
+
readonly object: string;
|
|
73
|
+
readonly created_at: number;
|
|
74
|
+
readonly status: 'failed';
|
|
75
|
+
readonly error: {
|
|
76
|
+
readonly code: string;
|
|
77
|
+
readonly message: string;
|
|
78
|
+
};
|
|
79
|
+
readonly model: string;
|
|
80
|
+
readonly output: readonly unknown[];
|
|
81
|
+
readonly metadata: Readonly<Record<string, unknown>>;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
export type ResponseIncompleteEvent = {
|
|
85
|
+
readonly type: 'response.incomplete';
|
|
86
|
+
readonly response: {
|
|
87
|
+
readonly id: string;
|
|
88
|
+
readonly object: string;
|
|
89
|
+
readonly created_at: number;
|
|
90
|
+
readonly status: 'incomplete';
|
|
91
|
+
readonly incomplete_details: {
|
|
92
|
+
readonly reason: string;
|
|
93
|
+
};
|
|
94
|
+
readonly model: string;
|
|
95
|
+
readonly output: readonly unknown[];
|
|
96
|
+
readonly metadata: Readonly<Record<string, unknown>>;
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
export type OutputItemAddedEvent = {
|
|
100
|
+
readonly type: 'response.output_item.added';
|
|
101
|
+
readonly output_index: number;
|
|
102
|
+
readonly item: {
|
|
103
|
+
readonly id: string;
|
|
104
|
+
readonly status: 'in_progress';
|
|
105
|
+
readonly type: string;
|
|
106
|
+
readonly role: string;
|
|
107
|
+
readonly content: readonly unknown[];
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
export type OutputItemDoneEvent = {
|
|
111
|
+
readonly type: 'response.output_item.done';
|
|
112
|
+
readonly output_index: number;
|
|
113
|
+
readonly item: {
|
|
114
|
+
readonly id: string;
|
|
115
|
+
readonly status: 'completed';
|
|
116
|
+
readonly type: string;
|
|
117
|
+
readonly role: string;
|
|
118
|
+
readonly content: readonly {
|
|
119
|
+
readonly type: string;
|
|
120
|
+
readonly text: string;
|
|
121
|
+
readonly annotations: readonly unknown[];
|
|
122
|
+
}[];
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
export type ContentPartAddedEvent = {
|
|
126
|
+
readonly type: 'response.content_part.added';
|
|
127
|
+
readonly item_id: string;
|
|
128
|
+
readonly output_index: number;
|
|
129
|
+
readonly content_index: number;
|
|
130
|
+
readonly part: {
|
|
131
|
+
readonly type: ContentPartType;
|
|
132
|
+
readonly text?: string;
|
|
133
|
+
readonly image?: {
|
|
134
|
+
readonly data: string;
|
|
135
|
+
readonly mimeType: string;
|
|
136
|
+
};
|
|
137
|
+
readonly file?: {
|
|
138
|
+
readonly data: string;
|
|
139
|
+
readonly filename: string;
|
|
140
|
+
readonly mimeType: string;
|
|
141
|
+
};
|
|
142
|
+
readonly annotations: readonly unknown[];
|
|
143
|
+
};
|
|
144
|
+
};
|
|
145
|
+
export type ContentPartDoneEvent = {
|
|
146
|
+
readonly type: 'response.content_part.done';
|
|
147
|
+
readonly item_id: string;
|
|
148
|
+
readonly output_index: number;
|
|
149
|
+
readonly content_index: number;
|
|
150
|
+
readonly part: {
|
|
151
|
+
readonly type: ContentPartType;
|
|
152
|
+
readonly text?: string;
|
|
153
|
+
readonly image?: {
|
|
154
|
+
readonly data: string;
|
|
155
|
+
readonly mimeType: string;
|
|
156
|
+
};
|
|
157
|
+
readonly file?: {
|
|
158
|
+
readonly data: string;
|
|
159
|
+
readonly filename: string;
|
|
160
|
+
readonly mimeType: string;
|
|
161
|
+
};
|
|
162
|
+
readonly annotations: readonly unknown[];
|
|
163
|
+
};
|
|
164
|
+
};
|
|
165
|
+
export type TextOutputDeltaEvent = {
|
|
166
|
+
readonly type: 'response.output_text.delta';
|
|
167
|
+
readonly item_id: string;
|
|
168
|
+
readonly output_index: number;
|
|
169
|
+
readonly content_index: number;
|
|
170
|
+
readonly delta: string;
|
|
171
|
+
};
|
|
172
|
+
export type TextOutputDoneEvent = {
|
|
173
|
+
readonly type: 'response.output_text.done';
|
|
174
|
+
readonly item_id: string;
|
|
175
|
+
readonly output_index: number;
|
|
176
|
+
readonly content_index: number;
|
|
177
|
+
readonly text: string;
|
|
178
|
+
};
|
|
179
|
+
export type TextOutputAnnotationAddedEvent = {
|
|
180
|
+
readonly type: 'response.output_text.annotation.added';
|
|
181
|
+
readonly item_id: string;
|
|
182
|
+
readonly output_index: number;
|
|
183
|
+
readonly content_index: number;
|
|
184
|
+
readonly annotation_index: number;
|
|
185
|
+
readonly annotation: {
|
|
186
|
+
readonly type: string;
|
|
187
|
+
readonly index: number;
|
|
188
|
+
readonly file_id?: string;
|
|
189
|
+
readonly filename?: string;
|
|
190
|
+
readonly [key: string]: unknown;
|
|
191
|
+
};
|
|
192
|
+
};
|
|
193
|
+
export type RefusalDeltaEvent = {
|
|
194
|
+
readonly type: 'response.refusal.delta';
|
|
195
|
+
readonly item_id: string;
|
|
196
|
+
readonly output_index: number;
|
|
197
|
+
readonly content_index: number;
|
|
198
|
+
readonly delta: string;
|
|
199
|
+
};
|
|
200
|
+
export type RefusalDoneEvent = {
|
|
201
|
+
readonly type: 'response.refusal.done';
|
|
202
|
+
readonly item_id: string;
|
|
203
|
+
readonly output_index: number;
|
|
204
|
+
readonly content_index: number;
|
|
205
|
+
readonly refusal: string;
|
|
206
|
+
};
|
|
207
|
+
export type FunctionCallArgumentsDeltaEvent = {
|
|
208
|
+
readonly type: 'response.function_call_arguments.delta';
|
|
209
|
+
readonly functionName: string;
|
|
210
|
+
readonly item_id: string;
|
|
211
|
+
readonly output_index: number;
|
|
212
|
+
readonly delta: string;
|
|
213
|
+
};
|
|
214
|
+
export type FunctionCallArgumentsDoneEvent = {
|
|
215
|
+
readonly type: 'response.function_call_arguments.done';
|
|
216
|
+
readonly functionName: string;
|
|
217
|
+
readonly item_id: string;
|
|
218
|
+
readonly output_index: number;
|
|
219
|
+
readonly arguments: string;
|
|
220
|
+
};
|
|
221
|
+
export type FunctionCallResultEvent = {
|
|
222
|
+
readonly type: 'response.function_call.result';
|
|
223
|
+
readonly functionName: string;
|
|
224
|
+
readonly item_id: string;
|
|
225
|
+
readonly output_index: number;
|
|
226
|
+
readonly result: unknown;
|
|
227
|
+
};
|
|
228
|
+
export type EventExternalSourceItem = {
|
|
229
|
+
readonly uuid: string;
|
|
230
|
+
readonly origin_uri: string;
|
|
231
|
+
readonly origin_title: string;
|
|
232
|
+
readonly document_id: string;
|
|
233
|
+
readonly content: string;
|
|
234
|
+
readonly score: number;
|
|
235
|
+
readonly metadata: Readonly<Record<string, unknown>>;
|
|
236
|
+
};
|
|
237
|
+
export type ExternalSourcesAddedEvent = {
|
|
238
|
+
readonly type: 'response.external_sources.added';
|
|
239
|
+
readonly sources: readonly EventExternalSourceItem[];
|
|
240
|
+
};
|
|
241
|
+
export type UpdatePlanEvent = {
|
|
242
|
+
readonly type: 'response.update_plan';
|
|
243
|
+
readonly task: string;
|
|
244
|
+
};
|
|
245
|
+
export type FileSearchCallInProgressEvent = {
|
|
246
|
+
readonly type: 'response.file_search_call.in_progress';
|
|
247
|
+
readonly output_index: number;
|
|
248
|
+
readonly item_id: string;
|
|
249
|
+
};
|
|
250
|
+
export type FileSearchCallSearchingEvent = {
|
|
251
|
+
readonly type: 'response.file_search_call.searching';
|
|
252
|
+
readonly output_index: number;
|
|
253
|
+
readonly item_id: string;
|
|
254
|
+
};
|
|
255
|
+
export type FileSearchCallCompletedEvent = {
|
|
256
|
+
readonly type: 'response.file_search_call.completed';
|
|
257
|
+
readonly output_index: number;
|
|
258
|
+
readonly item_id: string;
|
|
259
|
+
};
|
|
260
|
+
export type WebSearchCallInProgressEvent = {
|
|
261
|
+
readonly type: 'response.web_search_call.in_progress';
|
|
262
|
+
readonly output_index: number;
|
|
263
|
+
readonly item_id: string;
|
|
264
|
+
};
|
|
265
|
+
export type WebSearchCallSearchingEvent = {
|
|
266
|
+
readonly type: 'response.web_search_call.searching';
|
|
267
|
+
readonly output_index: number;
|
|
268
|
+
readonly item_id: string;
|
|
269
|
+
};
|
|
270
|
+
export type WebSearchCallCompletedEvent = {
|
|
271
|
+
readonly type: 'response.web_search_call.completed';
|
|
272
|
+
readonly output_index: number;
|
|
273
|
+
readonly item_id: string;
|
|
274
|
+
};
|
|
275
|
+
export type SessionUpdateEvent = {
|
|
276
|
+
readonly type: 'session.update';
|
|
277
|
+
readonly sessionId: string;
|
|
278
|
+
};
|
|
279
|
+
export type StreamProtocolErrorEvent = {
|
|
280
|
+
readonly type: 'error';
|
|
281
|
+
readonly code: string;
|
|
282
|
+
readonly message: string;
|
|
283
|
+
readonly param: null;
|
|
284
|
+
};
|
|
285
|
+
export type NotificationEvent = {
|
|
286
|
+
readonly type: 'response.notification';
|
|
287
|
+
readonly notification: {
|
|
288
|
+
readonly method: string;
|
|
289
|
+
readonly params: {
|
|
290
|
+
readonly level: 'info' | 'debug' | 'warning' | 'error';
|
|
291
|
+
readonly data: string;
|
|
292
|
+
};
|
|
293
|
+
};
|
|
294
|
+
};
|
|
295
|
+
export type StreamProtocolMap = {
|
|
296
|
+
readonly 'response.created': (event: ResponseCreatedEvent) => void;
|
|
297
|
+
readonly 'response.in_progress': (event: ResponseInProgressEvent) => void;
|
|
298
|
+
readonly 'response.completed': (event: ResponseCompletedEvent) => void;
|
|
299
|
+
readonly 'response.failed': (event: ResponseFailedEvent) => void;
|
|
300
|
+
readonly 'response.incomplete': (event: ResponseIncompleteEvent) => void;
|
|
301
|
+
readonly 'response.output_item.added': (event: OutputItemAddedEvent) => void;
|
|
302
|
+
readonly 'response.output_item.done': (event: OutputItemDoneEvent) => void;
|
|
303
|
+
readonly 'response.content_part.added': (event: ContentPartAddedEvent) => void;
|
|
304
|
+
readonly 'response.content_part.done': (event: ContentPartDoneEvent) => void;
|
|
305
|
+
readonly 'response.output_text.delta': (event: TextOutputDeltaEvent) => void;
|
|
306
|
+
readonly 'response.output_text.done': (event: TextOutputDoneEvent) => void;
|
|
307
|
+
readonly 'response.output_text.annotation.added': (event: TextOutputAnnotationAddedEvent) => void;
|
|
308
|
+
readonly 'response.refusal.delta': (event: RefusalDeltaEvent) => void;
|
|
309
|
+
readonly 'response.refusal.done': (event: RefusalDoneEvent) => void;
|
|
310
|
+
readonly 'response.function_call_arguments.delta': (event: FunctionCallArgumentsDeltaEvent) => void;
|
|
311
|
+
readonly 'response.function_call_arguments.done': (event: FunctionCallArgumentsDoneEvent) => void;
|
|
312
|
+
readonly 'response.function_call.result': (event: FunctionCallResultEvent) => void;
|
|
313
|
+
readonly 'response.external_sources.added': (event: ExternalSourcesAddedEvent) => void;
|
|
314
|
+
readonly 'response.update_plan': (event: UpdatePlanEvent) => void;
|
|
315
|
+
readonly 'response.file_search_call.in_progress': (event: FileSearchCallInProgressEvent) => void;
|
|
316
|
+
readonly 'response.file_search_call.searching': (event: FileSearchCallSearchingEvent) => void;
|
|
317
|
+
readonly 'response.file_search_call.completed': (event: FileSearchCallCompletedEvent) => void;
|
|
318
|
+
readonly 'response.web_search_call.in_progress': (event: WebSearchCallInProgressEvent) => void;
|
|
319
|
+
readonly 'response.web_search_call.searching': (event: WebSearchCallSearchingEvent) => void;
|
|
320
|
+
readonly 'response.web_search_call.completed': (event: WebSearchCallCompletedEvent) => void;
|
|
321
|
+
readonly 'session.update': (event: SessionUpdateEvent) => void;
|
|
322
|
+
readonly 'response.notification': (event: NotificationEvent) => void;
|
|
323
|
+
readonly error: (event: StreamProtocolErrorEvent) => void;
|
|
324
|
+
readonly string: (event: string) => void;
|
|
325
|
+
readonly content: (event: unknown) => void;
|
|
326
|
+
};
|
|
327
|
+
export {};
|
|
328
|
+
//# sourceMappingURL=streamProtocolMap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"streamProtocolMap.d.ts","sourceRoot":"","sources":["../../src/agentHub/streamProtocolMap.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,KAAK,eAAe,GAAG,aAAa,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC;AAIlE,MAAM,MAAM,oBAAoB,GAAG;IACjC,QAAQ,CAAC,IAAI,EAAE,kBAAkB,CAAC;IAClC,QAAQ,CAAC,QAAQ,EAAE;QACjB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;QACpB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;QACxB,QAAQ,C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,6BAA6B,KAAK,IAAI,CAAC;IACjG,QAAQ,CAAC,qCAAqC,EAAE,CAAC,KAAK,EAAE,4BAA4B,KAAK,IAAI,CAAC;IAC9F,QAAQ,CAAC,qCAAqC,EAAE,CAAC,KAAK,EAAE,4BAA4B,KAAK,IAAI,CAAC;IAE9F,QAAQ,CAAC,sCAAsC,EAAE,CAAC,KAAK,EAAE,4BAA4B,KAAK,IAAI,CAAC;IAC/F,QAAQ,CAAC,oCAAoC,EAAE,CAAC,KAAK,EAAE,2BAA2B,KAAK,IAAI,CAAC;IAC5F,QAAQ,CAAC,oCAAoC,EAAE,CAAC,KAAK,EAAE,2BAA2B,KAAK,IAAI,CAAC;IAE5F,QAAQ,CAAC,gBAAgB,EAAE,CAAC,KAAK,EAAE,kBAAkB,KAAK,IAAI,CAAC;IAE/D,QAAQ,CAAC,uBAAuB,EAAE,CAAC,KAAK,EAAE,iBAAiB,KAAK,IAAI,CAAC;IACrE,QAAQ,CAAC,KAAK,EAAE,CAAC,KAAK,EAAE,wBAAwB,KAAK,IAAI,CAAC;IAE1D,QAAQ,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,QAAQ,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;CAC5C,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Protocol event map for Agent Hub streaming protocol.
|
|
3
|
+
* Defines all event types based on the agent-hub STREAMING_PROTO.md specification.
|
|
4
|
+
*
|
|
5
|
+
* These are pure data types only -- no classes, no I/O, no side effects.
|
|
6
|
+
*/
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=streamProtocolMap.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"streamProtocolMap.js","sourceRoot":"","sources":["../../src/agentHub/streamProtocolMap.ts"],"names":[],"mappings":"AAAA;;;;;GAKG"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ApiKeyAuthParams, AuthModule } from './types.js';
|
|
2
|
+
/**
|
|
3
|
+
* Creates an AuthModule for internal service-to-service communication
|
|
4
|
+
* using API key + workspace identity headers.
|
|
5
|
+
*
|
|
6
|
+
* Use this for services running inside the cluster or connecting
|
|
7
|
+
* to localhost port-forwards. For external clients, use createAuth()
|
|
8
|
+
* with OAuth2 credentials instead.
|
|
9
|
+
*/
|
|
10
|
+
export declare const createApiKeyAuth: (params: ApiKeyAuthParams) => AuthModule;
|
|
11
|
+
//# sourceMappingURL=createApiKeyAuth.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createApiKeyAuth.d.ts","sourceRoot":"","sources":["../../src/auth/createApiKeyAuth.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE/D;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,GAAI,QAAQ,gBAAgB,KAAG,UAqB3D,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { resolveApisApiKey } from '../env/apiKey.js';
|
|
2
|
+
import { resolveDiskdBaseUrl } from '../env/baseUrl.js';
|
|
3
|
+
/**
|
|
4
|
+
* Creates an AuthModule for internal service-to-service communication
|
|
5
|
+
* using API key + workspace identity headers.
|
|
6
|
+
*
|
|
7
|
+
* Use this for services running inside the cluster or connecting
|
|
8
|
+
* to localhost port-forwards. For external clients, use createAuth()
|
|
9
|
+
* with OAuth2 credentials instead.
|
|
10
|
+
*/
|
|
11
|
+
export const createApiKeyAuth = (params) => {
|
|
12
|
+
// API-key auth is only supported through the APIS gateway contract.
|
|
13
|
+
resolveDiskdBaseUrl();
|
|
14
|
+
const apiKey = resolveApisApiKey();
|
|
15
|
+
const headers = {
|
|
16
|
+
'X-Api-Key': apiKey,
|
|
17
|
+
'X-Workspace-Id': params.workspaceId,
|
|
18
|
+
'X-User-Id': params.userId ?? params.workspaceId,
|
|
19
|
+
'X-Organization-Id': params.orgId ?? params.workspaceId,
|
|
20
|
+
};
|
|
21
|
+
return {
|
|
22
|
+
signIn: async () => { },
|
|
23
|
+
signOut: () => { },
|
|
24
|
+
handleRedirectCallback: async () => { },
|
|
25
|
+
getAccessToken: async () => apiKey,
|
|
26
|
+
getToken: () => ({ accessToken: apiKey }),
|
|
27
|
+
getWorkspaceId: async () => params.workspaceId,
|
|
28
|
+
getRequestHeaders: async () => headers,
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=createApiKeyAuth.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createApiKeyAuth.js","sourceRoot":"","sources":["../../src/auth/createApiKeyAuth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAGxD;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,MAAwB,EAAc,EAAE;IACvE,oEAAoE;IACpE,mBAAmB,EAAE,CAAC;IACtB,MAAM,MAAM,GAAG,iBAAiB,EAAE,CAAC;IAEnC,MAAM,OAAO,GAAqC;QAChD,WAAW,EAAE,MAAM;QACnB,gBAAgB,EAAE,MAAM,CAAC,WAAW;QACpC,WAAW,EAAE,MAAM,CAAC,MAAM,IAAI,MAAM,CAAC,WAAW;QAChD,mBAAmB,EAAE,MAAM,CAAC,KAAK,IAAI,MAAM,CAAC,WAAW;KACxD,CAAC;IAEF,OAAO;QACL,MAAM,EAAE,KAAK,IAAI,EAAE,GAAE,CAAC;QACtB,OAAO,EAAE,GAAG,EAAE,GAAE,CAAC;QACjB,sBAAsB,EAAE,KAAK,IAAI,EAAE,GAAE,CAAC;QACtC,cAAc,EAAE,KAAK,IAAI,EAAE,CAAC,MAAM;QAClC,QAAQ,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,WAAW,EAAE,MAAM,EAAE,CAAC;QACzC,cAAc,EAAE,KAAK,IAAI,EAAE,CAAC,MAAM,CAAC,WAAW;QAC9C,iBAAiB,EAAE,KAAK,IAAI,EAAE,CAAC,OAAO;KACvC,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createAuth.d.ts","sourceRoot":"","sources":["../../src/auth/createAuth.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,UAAU,EAAa,eAAe,EAAE,MAAM,YAAY,CAAC;AAYzE,eAAO,MAAM,UAAU,GAAU,QAAQ,eAAe,KAAG,OAAO,CAAC,UAAU,CAwI5E,CAAC"}
|