@@ -36,7 +36,10 @@ export const GoogleDriveBlock: BlockConfig<GoogleDriveResponse> = {
3636 required : true ,
3737 provider : 'google-drive' ,
3838 serviceId : 'google-drive' ,
39- requiredScopes : [ 'https://www.googleapis.com/auth/drive.readonly' ] ,
39+ requiredScopes : [
40+ 'https://www.googleapis.com/auth/drive.readonly' ,
41+ 'https://www.googleapis.com/auth/drive.file' ,
42+ ] ,
4043 placeholder : 'Select Google Drive account' ,
4144 } ,
4245 // Upload Fields
@@ -80,7 +83,10 @@ export const GoogleDriveBlock: BlockConfig<GoogleDriveResponse> = {
8083 canonicalParamId : 'folderId' ,
8184 provider : 'google-drive' ,
8285 serviceId : 'google-drive' ,
83- requiredScopes : [ 'https://www.googleapis.com/auth/drive.readonly' ] ,
86+ requiredScopes : [
87+ 'https://www.googleapis.com/auth/drive.readonly' ,
88+ 'https://www.googleapis.com/auth/drive.file' ,
89+ ] ,
8490 mimeType : 'application/vnd.google-apps.folder' ,
8591 placeholder : 'Select a parent folder' ,
8692 mode : 'basic' ,
@@ -156,7 +162,10 @@ export const GoogleDriveBlock: BlockConfig<GoogleDriveResponse> = {
156162 canonicalParamId : 'folderId' ,
157163 provider : 'google-drive' ,
158164 serviceId : 'google-drive' ,
159- requiredScopes : [ 'https://www.googleapis.com/auth/drive.readonly' ] ,
165+ requiredScopes : [
166+ 'https://www.googleapis.com/auth/drive.readonly' ,
167+ 'https://www.googleapis.com/auth/drive.file' ,
168+ ] ,
160169 mimeType : 'application/vnd.google-apps.folder' ,
161170 placeholder : 'Select a parent folder' ,
162171 mode : 'basic' ,
@@ -183,7 +192,10 @@ export const GoogleDriveBlock: BlockConfig<GoogleDriveResponse> = {
183192 canonicalParamId : 'folderId' ,
184193 provider : 'google-drive' ,
185194 serviceId : 'google-drive' ,
186- requiredScopes : [ 'https://www.googleapis.com/auth/drive.readonly' ] ,
195+ requiredScopes : [
196+ 'https://www.googleapis.com/auth/drive.readonly' ,
197+ 'https://www.googleapis.com/auth/drive.file' ,
198+ ] ,
187199 mimeType : 'application/vnd.google-apps.folder' ,
188200 placeholder : 'Select a folder to list files from' ,
189201 mode : 'basic' ,
0 commit comments