mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-06-15 20:05:16 +02:00
feat(google-docs): use Google Picker + drive.file scope instead of full-drive listing
This commit is contained in:
parent
505a9a27e8
commit
d08bf49d5a
6 changed files with 229 additions and 174 deletions
|
|
@ -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': {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue