@@ -5,9 +5,9 @@ import { BlockConfig } from '../types'
55export const GmailBlock : BlockConfig < GmailToolResponse > = {
66 type : 'gmail' ,
77 name : 'Gmail' ,
8- description : 'Send, read, and search Gmail' ,
8+ description : 'Send Gmail' ,
99 longDescription :
10- 'Integrate Gmail functionality to send, read, and search email messages within your workflow. Automate email communications and process email content using OAuth authentication.' ,
10+ 'Integrate Gmail functionality to send email messages within your workflow. Automate email communications and process email content using OAuth authentication.' ,
1111 category : 'tools' ,
1212 bgColor : '#E0E0E0' ,
1313 icon : GmailIcon ,
@@ -20,8 +20,8 @@ export const GmailBlock: BlockConfig<GmailToolResponse> = {
2020 layout : 'full' ,
2121 options : [
2222 { label : 'Send Email' , id : 'send_gmail' } ,
23- { label : 'Read Email' , id : 'read_gmail' } ,
24- { label : 'Search Emails' , id : 'search_gmail' } ,
23+ // { label: 'Read Email', id: 'read_gmail' },
24+ // { label: 'Search Emails', id: 'search_gmail' },
2525 ] ,
2626 } ,
2727 // Gmail Credentials
@@ -34,7 +34,7 @@ export const GmailBlock: BlockConfig<GmailToolResponse> = {
3434 serviceId : 'gmail' ,
3535 requiredScopes : [
3636 'https://www.googleapis.com/auth/gmail.send' ,
37- 'https://www.googleapis.com/auth/gmail.readonly' ,
37+ // 'https://www.googleapis.com/auth/gmail.readonly',
3838 'https://www.googleapis.com/auth/gmail.labels' ,
3939 ] ,
4040 placeholder : 'Select Gmail account' ,
@@ -65,64 +65,67 @@ export const GmailBlock: BlockConfig<GmailToolResponse> = {
6565 condition : { field : 'operation' , value : 'send_gmail' } ,
6666 } ,
6767 // Read Email Fields - Add folder selector
68- {
69- id : 'folder' ,
70- title : 'Label' ,
71- type : 'folder-selector' ,
72- layout : 'full' ,
73- provider : 'google-email' ,
74- serviceId : 'gmail' ,
75- requiredScopes : [ 'https://www.googleapis.com/auth/gmail.readonly' ] ,
76- placeholder : 'Select Gmail label/folder' ,
77- condition : { field : 'operation' , value : 'read_gmail' } ,
78- } ,
79- {
80- id : 'unreadOnly' ,
81- title : 'Unread Only' ,
82- type : 'switch' ,
83- layout : 'full' ,
84- condition : { field : 'operation' , value : 'read_gmail' } ,
85- } ,
86- {
87- id : 'maxResults' ,
88- title : 'Number of Emails' ,
89- type : 'short-input' ,
90- layout : 'full' ,
91- placeholder : 'Number of emails to retrieve (default: 1, max: 10)' ,
92- condition : { field : 'operation' , value : 'read_gmail' } ,
93- } ,
94- {
95- id : 'messageId' ,
96- title : 'Message ID' ,
97- type : 'short-input' ,
98- layout : 'full' ,
99- placeholder : 'Enter message ID to read (optional)' ,
100- condition : {
101- field : 'operation' ,
102- value : 'read_gmail' ,
103- and : {
104- field : 'folder' ,
105- value : '' ,
106- } ,
107- } ,
108- } ,
109- // Search Fields
110- {
111- id : 'query' ,
112- title : 'Search Query' ,
113- type : 'short-input' ,
114- layout : 'full' ,
115- placeholder : 'Enter search terms' ,
116- condition : { field : 'operation' , value : 'search_gmail' } ,
117- } ,
118- {
119- id : 'maxResults' ,
120- title : 'Max Results' ,
121- type : 'short-input' ,
122- layout : 'full' ,
123- placeholder : 'Maximum number of results (default: 10)' ,
124- condition : { field : 'operation' , value : 'search_gmail' } ,
125- } ,
68+ // {
69+ // id: 'folder',
70+ // title: 'Label',
71+ // type: 'folder-selector',
72+ // layout: 'full',
73+ // provider: 'google-email',
74+ // serviceId: 'gmail',
75+ // requiredScopes: [
76+ // // 'https://www.googleapis.com/auth/gmail.readonly',
77+ // 'https://www.googleapis.com/auth/gmail.labels',
78+ // ],
79+ // placeholder: 'Select Gmail label/folder',
80+ // condition: { field: 'operation', value: 'read_gmail' },
81+ // },
82+ // {
83+ // id: 'unreadOnly',
84+ // title: 'Unread Only',
85+ // type: 'switch',
86+ // layout: 'full',
87+ // condition: { field: 'operation', value: 'read_gmail' },
88+ // },
89+ // {
90+ // id: 'maxResults',
91+ // title: 'Number of Emails',
92+ // type: 'short-input',
93+ // layout: 'full',
94+ // placeholder: 'Number of emails to retrieve (default: 1, max: 10)',
95+ // condition: { field: 'operation', value: 'read_gmail' },
96+ // },
97+ // {
98+ // id: 'messageId',
99+ // title: 'Message ID',
100+ // type: 'short-input',
101+ // layout: 'full',
102+ // placeholder: 'Enter message ID to read (optional)',
103+ // condition: {
104+ // field: 'operation',
105+ // value: 'read_gmail',
106+ // and: {
107+ // field: 'folder',
108+ // value: '',
109+ // },
110+ // },
111+ // },
112+ // // Search Fields
113+ // {
114+ // id: 'query',
115+ // title: 'Search Query',
116+ // type: 'short-input',
117+ // layout: 'full',
118+ // placeholder: 'Enter search terms',
119+ // condition: { field: 'operation', value: 'search_gmail' },
120+ // },
121+ // {
122+ // id: 'maxResults',
123+ // title: 'Max Results',
124+ // type: 'short-input',
125+ // layout: 'full',
126+ // placeholder: 'Maximum number of results (default: 10)',
127+ // condition: { field: 'operation', value: 'search_gmail' },
128+ // },
126129 ] ,
127130 tools : {
128131 access : [ 'gmail_send' , 'gmail_read' , 'gmail_search' ] ,
0 commit comments