types(shared): add credentials/oauth channels, events, and desktop-api
- Add IPC_CHANNELS entries for credentials list/save/remove/test and oauth start/cancel/prompt/manual-code - Extend DesktopEvent union with oauth:*, credentials-changed, and agent-event variants used by pi-mono runtime and settings UI - Extend DesktopApi CredentialsApi with listCredentials / saveCredential / removeCredential / testCredential and OAuth submit helpers
This commit is contained in:
1 parent
1f310a121e
commit
ef90a58fa2
3 files changed
+100
-1
No files matched your search
@@ -133,4 +133,14 @@ export const IPC_CHANNELS = {
|
||||
windowMaximize: "window:maximize",
|
||||
windowClose: "window:close",
|
||||
windowIsMaximized: "window:isMaximized",
|
||||
// Credentials (pi-mono)
|
||||
credentialsList: "credentials:list",
|
||||
credentialsSave: "credentials:save",
|
||||
credentialsRemove: "credentials:remove",
|
||||
credentialsTest: "credentials:test",
|
||||
// OAuth (pi-mono)
|
||||
oauthStart: "oauth:start",
|
||||
oauthCancel: "oauth:cancel",
|
||||
oauthPromptResponse: "oauth:submit-prompt",
|
||||
oauthManualCodeResponse: "oauth:submit-manual-code",
|
||||
} as const;
|
||||
Reference in new issue
Block a user