@@ -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.file' ] ,
39+ requiredScopes : [
40+ 'https://www.googleapis.com/auth/drive.file' ,
41+ 'https://www.googleapis.com/auth/drive' ,
42+ ] ,
4043 placeholder : 'Select Google Drive account' ,
4144 } ,
4245 // Create/Upload File Fields
@@ -103,7 +106,10 @@ export const GoogleDriveBlock: BlockConfig<GoogleDriveResponse> = {
103106 canonicalParamId : 'folderId' ,
104107 provider : 'google-drive' ,
105108 serviceId : 'google-drive' ,
106- requiredScopes : [ 'https://www.googleapis.com/auth/drive.file' ] ,
109+ requiredScopes : [
110+ 'https://www.googleapis.com/auth/drive.file' ,
111+ 'https://www.googleapis.com/auth/drive' ,
112+ ] ,
107113 mimeType : 'application/vnd.google-apps.folder' ,
108114 placeholder : 'Select a parent folder' ,
109115 mode : 'basic' ,
@@ -173,7 +179,10 @@ export const GoogleDriveBlock: BlockConfig<GoogleDriveResponse> = {
173179 canonicalParamId : 'folderId' ,
174180 provider : 'google-drive' ,
175181 serviceId : 'google-drive' ,
176- requiredScopes : [ 'https://www.googleapis.com/auth/drive.file' ] ,
182+ requiredScopes : [
183+ 'https://www.googleapis.com/auth/drive.file' ,
184+ 'https://www.googleapis.com/auth/drive' ,
185+ ] ,
177186 mimeType : 'application/vnd.google-apps.folder' ,
178187 placeholder : 'Select a parent folder' ,
179188 mode : 'basic' ,
@@ -198,7 +207,10 @@ export const GoogleDriveBlock: BlockConfig<GoogleDriveResponse> = {
198207 canonicalParamId : 'folderId' ,
199208 provider : 'google-drive' ,
200209 serviceId : 'google-drive' ,
201- requiredScopes : [ 'https://www.googleapis.com/auth/drive.file' ] ,
210+ requiredScopes : [
211+ 'https://www.googleapis.com/auth/drive.file' ,
212+ 'https://www.googleapis.com/auth/drive' ,
213+ ] ,
202214 mimeType : 'application/vnd.google-apps.folder' ,
203215 placeholder : 'Select a folder to list files from' ,
204216 mode : 'basic' ,
@@ -237,7 +249,10 @@ export const GoogleDriveBlock: BlockConfig<GoogleDriveResponse> = {
237249 canonicalParamId : 'fileId' ,
238250 provider : 'google-drive' ,
239251 serviceId : 'google-drive' ,
240- requiredScopes : [ 'https://www.googleapis.com/auth/drive.file' ] ,
252+ requiredScopes : [
253+ 'https://www.googleapis.com/auth/drive.file' ,
254+ 'https://www.googleapis.com/auth/drive' ,
255+ ] ,
241256 placeholder : 'Select a file to download' ,
242257 mode : 'basic' ,
243258 dependsOn : [ 'credential' ] ,
0 commit comments