@@ -36,10 +36,7 @@ export const GoogleDriveBlock: BlockConfig<GoogleDriveResponse> = {
3636 required : true ,
3737 provider : 'google-drive' ,
3838 serviceId : 'google-drive' ,
39- requiredScopes : [
40- 'https://www.googleapis.com/auth/drive.readonly' ,
41- 'https://www.googleapis.com/auth/drive.file' ,
42- ] ,
39+ requiredScopes : [ 'https://www.googleapis.com/auth/drive.file' ] ,
4340 placeholder : 'Select Google Drive account' ,
4441 } ,
4542 // Create/Upload File Fields
@@ -106,10 +103,7 @@ export const GoogleDriveBlock: BlockConfig<GoogleDriveResponse> = {
106103 canonicalParamId : 'folderId' ,
107104 provider : 'google-drive' ,
108105 serviceId : 'google-drive' ,
109- requiredScopes : [
110- 'https://www.googleapis.com/auth/drive.readonly' ,
111- 'https://www.googleapis.com/auth/drive.file' ,
112- ] ,
106+ requiredScopes : [ 'https://www.googleapis.com/auth/drive.file' ] ,
113107 mimeType : 'application/vnd.google-apps.folder' ,
114108 placeholder : 'Select a parent folder' ,
115109 mode : 'basic' ,
@@ -179,10 +173,7 @@ export const GoogleDriveBlock: BlockConfig<GoogleDriveResponse> = {
179173 canonicalParamId : 'folderId' ,
180174 provider : 'google-drive' ,
181175 serviceId : 'google-drive' ,
182- requiredScopes : [
183- 'https://www.googleapis.com/auth/drive.readonly' ,
184- 'https://www.googleapis.com/auth/drive.file' ,
185- ] ,
176+ requiredScopes : [ 'https://www.googleapis.com/auth/drive.file' ] ,
186177 mimeType : 'application/vnd.google-apps.folder' ,
187178 placeholder : 'Select a parent folder' ,
188179 mode : 'basic' ,
@@ -207,10 +198,7 @@ export const GoogleDriveBlock: BlockConfig<GoogleDriveResponse> = {
207198 canonicalParamId : 'folderId' ,
208199 provider : 'google-drive' ,
209200 serviceId : 'google-drive' ,
210- requiredScopes : [
211- 'https://www.googleapis.com/auth/drive.readonly' ,
212- 'https://www.googleapis.com/auth/drive.file' ,
213- ] ,
201+ requiredScopes : [ 'https://www.googleapis.com/auth/drive.file' ] ,
214202 mimeType : 'application/vnd.google-apps.folder' ,
215203 placeholder : 'Select a folder to list files from' ,
216204 mode : 'basic' ,
@@ -249,10 +237,7 @@ export const GoogleDriveBlock: BlockConfig<GoogleDriveResponse> = {
249237 canonicalParamId : 'fileId' ,
250238 provider : 'google-drive' ,
251239 serviceId : 'google-drive' ,
252- requiredScopes : [
253- 'https://www.googleapis.com/auth/drive.readonly' ,
254- 'https://www.googleapis.com/auth/drive.file' ,
255- ] ,
240+ requiredScopes : [ 'https://www.googleapis.com/auth/drive.file' ] ,
256241 placeholder : 'Select a file to download' ,
257242 mode : 'basic' ,
258243 dependsOn : [ 'credential' ] ,
0 commit comments