@matimo/gmail 0.1.0-alpha.8 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -216,7 +216,7 @@ parameters:
216
216
  required: false # Optional
217
217
  example: 'cc@example.com'
218
218
 
219
- is_html:
219
+ isHtml:
220
220
  type: boolean
221
221
  required: false
222
222
  default: false
@@ -269,7 +269,7 @@ execution:
269
269
 
270
270
  ```yaml
271
271
  parameter_encoding:
272
- - source: [to, subject, body, cc, bcc, is_html]
272
+ - source: [to, subject, body, cc, bcc, isHtml]
273
273
  target: raw
274
274
  encoding: mime_rfc2822_base64url # Convert to MIME format
275
275
  ```
@@ -657,10 +657,10 @@ pnpm run gmail:factory --email:youremail@gmail.com
657
657
  | Tool | Purpose | Input | Output |
658
658
  | ---------------------- | ---------------------- | ------------------------------------ | -------------------------- |
659
659
  | `gmail-list-messages` | List emails from inbox | `maxResults`, `query`, `labelIds` | `messages[]` |
660
- | `gmail-get-message` | Get full email details | `message_id`, `format` | `id`, `payload`, `headers` |
660
+ | `gmail-get-message` | Get full email details | `messageId`, `format` | `id`, `payload`, `headers` |
661
661
  | `gmail-send-email` | Send email | `to`, `subject`, `body`, `cc`, `bcc` | `id` |
662
662
  | `gmail-create-draft` | Create draft email | `to`, `subject`, `body`, `cc`, `bcc` | `id` |
663
- | `gmail-delete-message` | Delete email | `message_id` | `success` |
663
+ | `gmail-delete-message` | Delete email | `messageId` | `success` |
664
664
 
665
665
  ### Tool Reference
666
666
 
@@ -723,7 +723,7 @@ const result = await matimo.execute('gmail-list-messages', {
723
723
  body: string; // Required: Email body
724
724
  cc?: string; // Optional: CC recipient(s)
725
725
  bcc?: string; // Optional: BCC recipient(s)
726
- is_html?: boolean; // Optional: HTML body (default: false)
726
+ isHtml?: boolean; // Optional: HTML body (default: false)
727
727
  }
728
728
  ```
729
729
 
@@ -751,7 +751,7 @@ const result = await matimo.execute('gmail-send-email', {
751
751
  to: 'user@example.com',
752
752
  subject: 'Hello from Matimo',
753
753
  body: 'This email was sent via Gmail tools!',
754
- is_html: false,
754
+ isHtml: false,
755
755
  });
756
756
  ```
757
757
 
@@ -770,7 +770,7 @@ const result = await matimo.execute('gmail-send-email', {
770
770
  body: string; // Required: Draft body
771
771
  cc?: string; // Optional: CC recipient(s)
772
772
  bcc?: string; // Optional: BCC recipient(s)
773
- is_html?: boolean; // Optional: HTML body (default: false)
773
+ isHtml?: boolean; // Optional: HTML body (default: false)
774
774
  }
775
775
  ```
776
776
 
@@ -796,7 +796,7 @@ const result = await matimo.execute('gmail-create-draft', {
796
796
  to: 'user@example.com',
797
797
  subject: 'Weekly Summary',
798
798
  body: 'Generated by AI agent...',
799
- is_html: true,
799
+ isHtml: true,
800
800
  });
801
801
  // User can manually review and send from Gmail
802
802
  ```
@@ -811,7 +811,7 @@ const result = await matimo.execute('gmail-create-draft', {
811
811
 
812
812
  ```typescript
813
813
  {
814
- message_id: string; // Required: Email ID (from list-messages)
814
+ messageId: string; // Required: Email ID (from list-messages)
815
815
  format?: string; // Optional: "minimal" | "full" | "raw"
816
816
  // Default: "full"
817
817
  }
@@ -844,7 +844,7 @@ const result = await matimo.execute('gmail-create-draft', {
844
844
 
845
845
  ```typescript
846
846
  const result = await matimo.execute('gmail-get-message', {
847
- message_id: '18b8f4a2a1c5e3d2',
847
+ messageId: '18b8f4a2a1c5e3d2',
848
848
  format: 'full',
849
849
  });
850
850
  ```
@@ -859,7 +859,7 @@ const result = await matimo.execute('gmail-get-message', {
859
859
 
860
860
  ```typescript
861
861
  {
862
- message_id: string; // Required: Email ID to delete
862
+ messageId: string; // Required: Email ID to delete
863
863
  }
864
864
  ```
865
865
 
@@ -868,7 +868,7 @@ const result = await matimo.execute('gmail-get-message', {
868
868
  ```typescript
869
869
  {
870
870
  success: boolean;
871
- message_id: string;
871
+ messageId: string;
872
872
  }
873
873
  ```
874
874
 
@@ -876,7 +876,7 @@ const result = await matimo.execute('gmail-get-message', {
876
876
 
877
877
  ```typescript
878
878
  const result = await matimo.execute('gmail-delete-message', {
879
- message_id: '18b8f4a2a1c5e3d2',
879
+ messageId: '18b8f4a2a1c5e3d2',
880
880
  });
881
881
  ```
882
882
 
@@ -1029,7 +1029,7 @@ await matimo.execute('gmail-send-email', {
1029
1029
  <p>This is an <strong>HTML</strong> email.</p>
1030
1030
  <a href="https://example.com">Click here</a>
1031
1031
  `,
1032
- is_html: true, // Enable HTML parsing
1032
+ isHtml: true, // Enable HTML parsing
1033
1033
  });
1034
1034
  ```
1035
1035
 
@@ -1084,7 +1084,7 @@ await matimo.execute('gmail-send-email', {
1084
1084
 
1085
1085
  ```yaml
1086
1086
  parameter_encoding:
1087
- - source: [to, subject, body, cc, bcc, is_html]
1087
+ - source: [to, subject, body, cc, bcc, isHtml]
1088
1088
  target: raw
1089
1089
  encoding: mime_rfc2822_base64url # Handles all the above
1090
1090
  ```
@@ -1211,7 +1211,7 @@ Sends an email via Gmail API.
1211
1211
  - `body` (required): Email body (plain text or HTML)
1212
1212
  - `cc` (optional): CC recipients
1213
1213
  - `bcc` (optional): BCC recipients
1214
- - `is_html` (optional): Treat body as HTML (default: false)
1214
+ - `isHtml` (optional): Treat body as HTML (default: false)
1215
1215
  - `GMAIL_ACCESS_TOKEN` (required): OAuth access token
1216
1216
 
1217
1217
  **Response:**
@@ -1252,7 +1252,7 @@ Gets a specific message with full details.
1252
1252
 
1253
1253
  **Parameters:**
1254
1254
 
1255
- - `message_id` (required): Message ID to retrieve
1255
+ - `messageId` (required): Message ID to retrieve
1256
1256
  - `format` (optional): Response format ("minimal" | "full" | "raw")
1257
1257
  - `GMAIL_ACCESS_TOKEN` (required): OAuth access token
1258
1258
 
@@ -1279,7 +1279,7 @@ Creates a draft email.
1279
1279
  - `body` (required): Draft body
1280
1280
  - `cc` (optional): CC recipients
1281
1281
  - `bcc` (optional): BCC recipients
1282
- - `is_html` (optional): Treat body as HTML
1282
+ - `isHtml` (optional): Treat body as HTML
1283
1283
  - `GMAIL_ACCESS_TOKEN` (required): OAuth access token
1284
1284
 
1285
1285
  **Response:**
@@ -1296,7 +1296,7 @@ Permanently deletes a message.
1296
1296
 
1297
1297
  **Parameters:**
1298
1298
 
1299
- - `message_id` (required): Message ID to delete
1299
+ - `messageId` (required): Message ID to delete
1300
1300
  - `GMAIL_ACCESS_TOKEN` (required): OAuth access token
1301
1301
 
1302
1302
  **Response:**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@matimo/gmail",
3
- "version": "0.1.0-alpha.8",
3
+ "version": "0.1.0",
4
4
  "description": "Gmail tools for Matimo",
5
5
  "type": "module",
6
6
  "files": [
@@ -9,10 +9,10 @@
9
9
  "definition.yaml"
10
10
  ],
11
11
  "peerDependencies": {
12
- "matimo": "0.1.0-alpha.8"
12
+ "matimo": "0.1.0-alpha.14"
13
13
  },
14
14
  "devDependencies": {
15
- "axios": "^1.13.4",
16
- "@matimo/core": "0.1.0-alpha.8"
15
+ "axios": "^1.15.2",
16
+ "@matimo/core": "0.1.0"
17
17
  }
18
18
  }
@@ -33,7 +33,7 @@ parameters:
33
33
  required: false
34
34
  example: 'bcc@example.com'
35
35
 
36
- is_html:
36
+ isHtml:
37
37
  type: boolean
38
38
  description: Whether the body content is HTML (default is plain text)
39
39
  required: false
@@ -55,7 +55,7 @@ execution:
55
55
 
56
56
  # Parameter encoding: automatically convert to/subject/body to MIME format
57
57
  parameter_encoding:
58
- - source: [to, subject, body, cc, bcc, is_html]
58
+ - source: [to, subject, body, cc, bcc, isHtml]
59
59
  target: raw
60
60
  encoding: mime_rfc2822_base64url
61
61
 
@@ -3,7 +3,7 @@ description: Permanently delete a message from Gmail (cannot be undone)
3
3
  version: '1.0.0'
4
4
 
5
5
  parameters:
6
- message_id:
6
+ messageId:
7
7
  type: string
8
8
  description: ID of the message to delete
9
9
  required: true
@@ -12,7 +12,7 @@ parameters:
12
12
  execution:
13
13
  type: http
14
14
  method: DELETE
15
- url: 'https://www.googleapis.com/gmail/v1/users/me/messages/{message_id}'
15
+ url: 'https://www.googleapis.com/gmail/v1/users/me/messages/{messageId}'
16
16
  headers:
17
17
  Authorization: 'Bearer {GMAIL_ACCESS_TOKEN}'
18
18
  note: 'Immediately and permanently deletes the message. This operation cannot be undone. Use trash instead if you want to allow recovery.'
@@ -25,11 +25,7 @@ authentication:
25
25
 
26
26
  output_schema:
27
27
  type: object
28
- description: Empty response on successful deletion (204 No Content)
29
- properties:
30
- success:
31
- type: boolean
32
- description: Whether the message was successfully deleted
28
+ description: Empty response on successful deletion (204 No Content). The executor may return an empty body for 204 responses.
33
29
 
34
30
  error_handling:
35
31
  retry: 3
@@ -3,7 +3,7 @@ description: Get full details of a specific Gmail message including headers and
3
3
  version: '1.0.0'
4
4
 
5
5
  parameters:
6
- message_id:
6
+ messageId:
7
7
  type: string
8
8
  description: ID of the message to retrieve
9
9
  required: true
@@ -20,7 +20,7 @@ parameters:
20
20
  default: full
21
21
  example: full
22
22
 
23
- metadata_headers:
23
+ metadataHeaders:
24
24
  type: string
25
25
  description: Comma-separated headers to include in metadata (when format=minimal)
26
26
  required: false
@@ -29,7 +29,10 @@ parameters:
29
29
  execution:
30
30
  type: http
31
31
  method: GET
32
- url: 'https://www.googleapis.com/gmail/v1/users/me/messages/{message_id}?format={format}&metadataHeaders={metadata_headers}'
32
+ url: 'https://www.googleapis.com/gmail/v1/users/me/messages/{messageId}'
33
+ query_params:
34
+ format: '{format}'
35
+ metadataHeaders: '{metadataHeaders}'
33
36
  headers:
34
37
  Authorization: 'Bearer {GMAIL_ACCESS_TOKEN}'
35
38
  Accept: 'application/json'
@@ -39,8 +42,6 @@ authentication:
39
42
  provider: google
40
43
  scopes:
41
44
  - 'https://www.googleapis.com/auth/gmail.readonly'
42
- client_id_env: GMAIL_CLIENT_ID
43
- client_secret_env: GMAIL_CLIENT_SECRET
44
45
 
45
46
  output_schema:
46
47
  type: object
@@ -48,10 +49,10 @@ output_schema:
48
49
  id:
49
50
  type: string
50
51
  description: Message ID
51
- thread_id:
52
+ threadId:
52
53
  type: string
53
54
  description: Thread ID
54
- label_ids:
55
+ labelIds:
55
56
  type: array
56
57
  items:
57
58
  type: string
@@ -59,7 +60,7 @@ output_schema:
59
60
  snippet:
60
61
  type: string
61
62
  description: Short snippet of the message text
62
- size_estimate:
63
+ sizeEstimate:
63
64
  type: number
64
65
  description: Estimated size of the message in bytes
65
66
  headers:
@@ -69,7 +70,7 @@ output_schema:
69
70
  type: object
70
71
  description: Message body with data and mimeType
71
72
  properties:
72
- mime_type:
73
+ mimeType:
73
74
  type: string
74
75
  data:
75
76
  type: string
@@ -33,7 +33,7 @@ parameters:
33
33
  required: false
34
34
  example: 'bcc@example.com'
35
35
 
36
- is_html:
36
+ isHtml:
37
37
  type: boolean
38
38
  description: Whether the body content is HTML (default is plain text)
39
39
  required: false
@@ -55,7 +55,7 @@ execution:
55
55
 
56
56
  # Parameter encoding: automatically convert to/subject/body to MIME format
57
57
  parameter_encoding:
58
- - source: [to, subject, body, cc, bcc, is_html]
58
+ - source: [to, subject, body, cc, bcc, isHtml]
59
59
  target: raw
60
60
  encoding: mime_rfc2822_base64url
61
61
 
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 tallclub
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.