Expose company connector plumbing to the renderer
A ComposioConnectionService owns the toolkit catalog (cursor-paged, cached), managed auth-config reuse, connect-link initiation, and the local connected-account mirror that agent runs read. Five IPC surfaces carry it to the UI - list toolkits, connect a toolkit, refresh account statuses, and employee-side grant/revoke - and the snapshot now includes connectorAccounts and connectorGrants. The org API key resolves through one choke point that seeds itself once from the developer cred.txt next to the app when the database has none, so both the UI and agent runtime pick up the key without manual setup.
This commit is contained in:
1 parent
66aae376c0
commit
fb72f1f29b
11 files changed
+275
-4
No files matched your search
@@ -64,6 +64,12 @@ import type {
|
||||
RevokeProviderCredentialInput,
|
||||
SaveProviderCredentialInput,
|
||||
SaveComposioSettingsInput,
|
||||
ComposioToolkitSummaryDto,
|
||||
ConnectComposioToolkitInput,
|
||||
ConnectComposioToolkitResult,
|
||||
ConnectorGrantInput,
|
||||
ListComposioToolkitsInput,
|
||||
RefreshComposioAccountsInput,
|
||||
SearchInput,
|
||||
SendMessageInput,
|
||||
SetActiveOrganizationInput,
|
||||
@@ -174,6 +180,11 @@ export interface DesktopApi {
|
||||
createRetentionFreeze(input: CreateRetentionFreezeInput): Promise<DesktopResult<AppSnapshot>>;
|
||||
setRetentionFreezeState(input: SetRetentionFreezeStateInput): Promise<DesktopResult<AppSnapshot>>;
|
||||
saveComposioSettings(input: SaveComposioSettingsInput): Promise<DesktopResult<AppSnapshot>>;
|
||||
listComposioToolkits(input: ListComposioToolkitsInput): Promise<DesktopResult<ComposioToolkitSummaryDto[]>>;
|
||||
connectComposioToolkit(input: ConnectComposioToolkitInput): Promise<DesktopResult<ConnectComposioToolkitResult>>;
|
||||
refreshComposioAccounts(input: RefreshComposioAccountsInput): Promise<DesktopResult<AppSnapshot>>;
|
||||
grantConnector(input: ConnectorGrantInput): Promise<DesktopResult<AppSnapshot>>;
|
||||
revokeConnector(input: ConnectorGrantInput): Promise<DesktopResult<AppSnapshot>>;
|
||||
search(input: SearchInput): Promise<DesktopResult<SearchResultRecord[]>>;
|
||||
subscribe(callback: (event: RendererEvent) => void): () => void;
|
||||
platform: "win32" | "darwin" | "linux";
|
||||
|
||||
Reference in new issue
Block a user