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:
ZacharyZhang-NY committed 2026-04-17 01:28:06 -04:00
1 parent 1f310a121e
commit ef90a58fa2
3 files changed
+100 -1

No files matched your search

+10
View File
@@ -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;