feat(google-docs): use Google Picker + drive.file scope instead of full-drive listing

This commit is contained in:
Gagancreates 2026-06-01 23:47:27 +05:30
parent 505a9a27e8
commit d08bf49d5a
6 changed files with 229 additions and 174 deletions

View file

@ -650,18 +650,11 @@ const ipcSchemas = {
missingScopes: z.array(z.string()),
}),
},
'google-docs:list': {
req: z.object({
query: z.string().optional(),
}),
// Live Google OAuth access token for driving the Google Picker in the renderer.
'google-docs:getAccessToken': {
req: z.null(),
res: z.object({
files: z.array(z.object({
id: z.string(),
name: z.string(),
url: z.string(),
modifiedTime: z.string().nullable(),
owner: z.string().nullable(),
})),
accessToken: z.string().nullable(),
}),
},
'google-docs:import': {