@robinpath/gmail 0.1.0 → 0.1.1
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 +111 -111
- package/package.json +16 -3
- package/dist/gmail.d.ts +0 -202
- package/dist/gmail.d.ts.map +0 -1
- package/dist/gmail.js +0 -150
- package/dist/gmail.js.map +0 -1
- package/dist/index.d.ts +0 -6
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -12
- package/dist/index.js.map +0 -1
package/README.md
CHANGED
|
@@ -1,111 +1,111 @@
|
|
|
1
|
-
# @robinpath/gmail
|
|
2
|
-
|
|
3
|
-
> Gmail module for RobinPath.
|
|
4
|
-
|
|
5
|
-
   
|
|
6
|
-
|
|
7
|
-
## Why use this module?
|
|
8
|
-
|
|
9
|
-
The `gmail` module lets you:
|
|
10
|
-
|
|
11
|
-
- List/search messages
|
|
12
|
-
- Get message details
|
|
13
|
-
- Send a plain text email
|
|
14
|
-
- Move message to trash
|
|
15
|
-
- Remove from trash
|
|
16
|
-
|
|
17
|
-
All functions are callable directly from RobinPath scripts with a simple, consistent API.
|
|
18
|
-
|
|
19
|
-
## Installation
|
|
20
|
-
|
|
21
|
-
```bash
|
|
22
|
-
npm install @robinpath/gmail
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
## Quick Start
|
|
26
|
-
|
|
27
|
-
**1. Set up credentials**
|
|
28
|
-
|
|
29
|
-
```robinpath
|
|
30
|
-
gmail.setCredentials "your-credentials"
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
**2. List/search messages**
|
|
34
|
-
|
|
35
|
-
```robinpath
|
|
36
|
-
gmail.listMessages
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
## Available Functions
|
|
40
|
-
|
|
41
|
-
| Function | Description |
|
|
42
|
-
|----------|-------------|
|
|
43
|
-
| `gmail.setCredentials` | Configure Gmail OAuth2 credentials. |
|
|
44
|
-
| `gmail.listMessages` | List/search messages |
|
|
45
|
-
| `gmail.getMessage` | Get message details |
|
|
46
|
-
| `gmail.sendEmail` | Send a plain text email |
|
|
47
|
-
| `gmail.trashMessage` | Move message to trash |
|
|
48
|
-
| `gmail.untrashMessage` | Remove from trash |
|
|
49
|
-
| `gmail.deleteMessage` | Permanently delete message |
|
|
50
|
-
| `gmail.modifyLabels` | Add/remove labels |
|
|
51
|
-
| `gmail.markAsRead` | Mark as read |
|
|
52
|
-
| `gmail.markAsUnread` | Mark as unread |
|
|
53
|
-
| `gmail.listLabels` | List all labels |
|
|
54
|
-
| `gmail.createLabel` | Create a label |
|
|
55
|
-
| `gmail.createDraft` | Create a draft |
|
|
56
|
-
| `gmail.listDrafts` | List drafts |
|
|
57
|
-
| `gmail.sendDraft` | Send a draft |
|
|
58
|
-
| `gmail.deleteDraft` | Delete a draft |
|
|
59
|
-
| `gmail.getProfile` | Get user profile |
|
|
60
|
-
|
|
61
|
-
## Examples
|
|
62
|
-
|
|
63
|
-
### List/search messages
|
|
64
|
-
|
|
65
|
-
```robinpath
|
|
66
|
-
gmail.listMessages
|
|
67
|
-
```
|
|
68
|
-
|
|
69
|
-
### Get message details
|
|
70
|
-
|
|
71
|
-
```robinpath
|
|
72
|
-
gmail.getMessage
|
|
73
|
-
```
|
|
74
|
-
|
|
75
|
-
### Send a plain text email
|
|
76
|
-
|
|
77
|
-
```robinpath
|
|
78
|
-
gmail.sendEmail
|
|
79
|
-
```
|
|
80
|
-
|
|
81
|
-
## Integration with RobinPath
|
|
82
|
-
|
|
83
|
-
```typescript
|
|
84
|
-
import { RobinPath } from "@wiredwp/robinpath";
|
|
85
|
-
import Module from "@robinpath/gmail";
|
|
86
|
-
|
|
87
|
-
const rp = new RobinPath();
|
|
88
|
-
rp.registerModule(Module.name, Module.functions);
|
|
89
|
-
rp.registerModuleMeta(Module.name, Module.functionMetadata);
|
|
90
|
-
|
|
91
|
-
const result = await rp.executeScript(`
|
|
92
|
-
gmail.setCredentials "your-credentials"
|
|
93
|
-
gmail.listMessages
|
|
94
|
-
`);
|
|
95
|
-
```
|
|
96
|
-
|
|
97
|
-
## Full API Reference
|
|
98
|
-
|
|
99
|
-
See [MODULE.md](./MODULE.md) for complete documentation including all parameters, return types, error handling, and advanced examples.
|
|
100
|
-
|
|
101
|
-
## Related Modules
|
|
102
|
-
|
|
103
|
-
- [`@robinpath/google-sheets`](../google-sheets) — Google Sheets module for complementary functionality
|
|
104
|
-
- [`@robinpath/google-calendar`](../google-calendar) — Google Calendar module for complementary functionality
|
|
105
|
-
- [`@robinpath/google-contacts`](../google-contacts) — Google Contacts module for complementary functionality
|
|
106
|
-
- [`@robinpath/google-forms`](../google-forms) — Google Forms module for complementary functionality
|
|
107
|
-
- [`@robinpath/outlook`](../outlook) — Outlook module for complementary functionality
|
|
108
|
-
|
|
109
|
-
## License
|
|
110
|
-
|
|
111
|
-
MIT
|
|
1
|
+
# @robinpath/gmail
|
|
2
|
+
|
|
3
|
+
> Gmail module for RobinPath.
|
|
4
|
+
|
|
5
|
+
   
|
|
6
|
+
|
|
7
|
+
## Why use this module?
|
|
8
|
+
|
|
9
|
+
The `gmail` module lets you:
|
|
10
|
+
|
|
11
|
+
- List/search messages
|
|
12
|
+
- Get message details
|
|
13
|
+
- Send a plain text email
|
|
14
|
+
- Move message to trash
|
|
15
|
+
- Remove from trash
|
|
16
|
+
|
|
17
|
+
All functions are callable directly from RobinPath scripts with a simple, consistent API.
|
|
18
|
+
|
|
19
|
+
## Installation
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
npm install @robinpath/gmail
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Quick Start
|
|
26
|
+
|
|
27
|
+
**1. Set up credentials**
|
|
28
|
+
|
|
29
|
+
```robinpath
|
|
30
|
+
gmail.setCredentials "your-credentials"
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
**2. List/search messages**
|
|
34
|
+
|
|
35
|
+
```robinpath
|
|
36
|
+
gmail.listMessages
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## Available Functions
|
|
40
|
+
|
|
41
|
+
| Function | Description |
|
|
42
|
+
|----------|-------------|
|
|
43
|
+
| `gmail.setCredentials` | Configure Gmail OAuth2 credentials. |
|
|
44
|
+
| `gmail.listMessages` | List/search messages |
|
|
45
|
+
| `gmail.getMessage` | Get message details |
|
|
46
|
+
| `gmail.sendEmail` | Send a plain text email |
|
|
47
|
+
| `gmail.trashMessage` | Move message to trash |
|
|
48
|
+
| `gmail.untrashMessage` | Remove from trash |
|
|
49
|
+
| `gmail.deleteMessage` | Permanently delete message |
|
|
50
|
+
| `gmail.modifyLabels` | Add/remove labels |
|
|
51
|
+
| `gmail.markAsRead` | Mark as read |
|
|
52
|
+
| `gmail.markAsUnread` | Mark as unread |
|
|
53
|
+
| `gmail.listLabels` | List all labels |
|
|
54
|
+
| `gmail.createLabel` | Create a label |
|
|
55
|
+
| `gmail.createDraft` | Create a draft |
|
|
56
|
+
| `gmail.listDrafts` | List drafts |
|
|
57
|
+
| `gmail.sendDraft` | Send a draft |
|
|
58
|
+
| `gmail.deleteDraft` | Delete a draft |
|
|
59
|
+
| `gmail.getProfile` | Get user profile |
|
|
60
|
+
|
|
61
|
+
## Examples
|
|
62
|
+
|
|
63
|
+
### List/search messages
|
|
64
|
+
|
|
65
|
+
```robinpath
|
|
66
|
+
gmail.listMessages
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
### Get message details
|
|
70
|
+
|
|
71
|
+
```robinpath
|
|
72
|
+
gmail.getMessage
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
### Send a plain text email
|
|
76
|
+
|
|
77
|
+
```robinpath
|
|
78
|
+
gmail.sendEmail
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
## Integration with RobinPath
|
|
82
|
+
|
|
83
|
+
```typescript
|
|
84
|
+
import { RobinPath } from "@wiredwp/robinpath";
|
|
85
|
+
import Module from "@robinpath/gmail";
|
|
86
|
+
|
|
87
|
+
const rp = new RobinPath();
|
|
88
|
+
rp.registerModule(Module.name, Module.functions);
|
|
89
|
+
rp.registerModuleMeta(Module.name, Module.functionMetadata);
|
|
90
|
+
|
|
91
|
+
const result = await rp.executeScript(`
|
|
92
|
+
gmail.setCredentials "your-credentials"
|
|
93
|
+
gmail.listMessages
|
|
94
|
+
`);
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
## Full API Reference
|
|
98
|
+
|
|
99
|
+
See [MODULE.md](./MODULE.md) for complete documentation including all parameters, return types, error handling, and advanced examples.
|
|
100
|
+
|
|
101
|
+
## Related Modules
|
|
102
|
+
|
|
103
|
+
- [`@robinpath/google-sheets`](../google-sheets) — Google Sheets module for complementary functionality
|
|
104
|
+
- [`@robinpath/google-calendar`](../google-calendar) — Google Calendar module for complementary functionality
|
|
105
|
+
- [`@robinpath/google-contacts`](../google-contacts) — Google Contacts module for complementary functionality
|
|
106
|
+
- [`@robinpath/google-forms`](../google-forms) — Google Forms module for complementary functionality
|
|
107
|
+
- [`@robinpath/outlook`](../outlook) — Outlook module for complementary functionality
|
|
108
|
+
|
|
109
|
+
## License
|
|
110
|
+
|
|
111
|
+
MIT
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@robinpath/gmail",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -20,10 +20,23 @@
|
|
|
20
20
|
"build": "tsc"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
|
-
"@
|
|
23
|
+
"@robinpath/core": ">=0.20.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@
|
|
26
|
+
"@robinpath/core": "^0.30.1",
|
|
27
27
|
"typescript": "^5.6.0"
|
|
28
|
+
},
|
|
29
|
+
"description": "Gmail module for RobinPath.",
|
|
30
|
+
"keywords": [
|
|
31
|
+
"gmail",
|
|
32
|
+
"productivity"
|
|
33
|
+
],
|
|
34
|
+
"license": "MIT",
|
|
35
|
+
"robinpath": {
|
|
36
|
+
"category": "productivity",
|
|
37
|
+
"type": "integration",
|
|
38
|
+
"auth": "api-key",
|
|
39
|
+
"functionCount": 17,
|
|
40
|
+
"baseUrl": "https://gmail.googleapis.com"
|
|
28
41
|
}
|
|
29
42
|
}
|
package/dist/gmail.d.ts
DELETED
|
@@ -1,202 +0,0 @@
|
|
|
1
|
-
import type { BuiltinHandler } from "@wiredwp/robinpath";
|
|
2
|
-
export declare const GmailFunctions: Record<string, BuiltinHandler>;
|
|
3
|
-
export declare const GmailFunctionMetadata: {
|
|
4
|
-
setCredentials: {
|
|
5
|
-
description: string;
|
|
6
|
-
parameters: {
|
|
7
|
-
name: string;
|
|
8
|
-
dataType: string;
|
|
9
|
-
description: string;
|
|
10
|
-
formInputType: string;
|
|
11
|
-
required: boolean;
|
|
12
|
-
}[];
|
|
13
|
-
returnType: string;
|
|
14
|
-
returnDescription: string;
|
|
15
|
-
};
|
|
16
|
-
listMessages: {
|
|
17
|
-
description: string;
|
|
18
|
-
parameters: {
|
|
19
|
-
name: string;
|
|
20
|
-
dataType: string;
|
|
21
|
-
description: string;
|
|
22
|
-
formInputType: string;
|
|
23
|
-
required: boolean;
|
|
24
|
-
}[];
|
|
25
|
-
returnType: string;
|
|
26
|
-
returnDescription: string;
|
|
27
|
-
};
|
|
28
|
-
getMessage: {
|
|
29
|
-
description: string;
|
|
30
|
-
parameters: {
|
|
31
|
-
name: string;
|
|
32
|
-
dataType: string;
|
|
33
|
-
description: string;
|
|
34
|
-
formInputType: string;
|
|
35
|
-
required: boolean;
|
|
36
|
-
}[];
|
|
37
|
-
returnType: string;
|
|
38
|
-
returnDescription: string;
|
|
39
|
-
};
|
|
40
|
-
sendEmail: {
|
|
41
|
-
description: string;
|
|
42
|
-
parameters: {
|
|
43
|
-
name: string;
|
|
44
|
-
dataType: string;
|
|
45
|
-
description: string;
|
|
46
|
-
formInputType: string;
|
|
47
|
-
required: boolean;
|
|
48
|
-
}[];
|
|
49
|
-
returnType: string;
|
|
50
|
-
returnDescription: string;
|
|
51
|
-
};
|
|
52
|
-
trashMessage: {
|
|
53
|
-
description: string;
|
|
54
|
-
parameters: {
|
|
55
|
-
name: string;
|
|
56
|
-
dataType: string;
|
|
57
|
-
description: string;
|
|
58
|
-
formInputType: string;
|
|
59
|
-
required: boolean;
|
|
60
|
-
}[];
|
|
61
|
-
returnType: string;
|
|
62
|
-
returnDescription: string;
|
|
63
|
-
};
|
|
64
|
-
untrashMessage: {
|
|
65
|
-
description: string;
|
|
66
|
-
parameters: {
|
|
67
|
-
name: string;
|
|
68
|
-
dataType: string;
|
|
69
|
-
description: string;
|
|
70
|
-
formInputType: string;
|
|
71
|
-
required: boolean;
|
|
72
|
-
}[];
|
|
73
|
-
returnType: string;
|
|
74
|
-
returnDescription: string;
|
|
75
|
-
};
|
|
76
|
-
deleteMessage: {
|
|
77
|
-
description: string;
|
|
78
|
-
parameters: {
|
|
79
|
-
name: string;
|
|
80
|
-
dataType: string;
|
|
81
|
-
description: string;
|
|
82
|
-
formInputType: string;
|
|
83
|
-
required: boolean;
|
|
84
|
-
}[];
|
|
85
|
-
returnType: string;
|
|
86
|
-
returnDescription: string;
|
|
87
|
-
};
|
|
88
|
-
modifyLabels: {
|
|
89
|
-
description: string;
|
|
90
|
-
parameters: {
|
|
91
|
-
name: string;
|
|
92
|
-
dataType: string;
|
|
93
|
-
description: string;
|
|
94
|
-
formInputType: string;
|
|
95
|
-
required: boolean;
|
|
96
|
-
}[];
|
|
97
|
-
returnType: string;
|
|
98
|
-
returnDescription: string;
|
|
99
|
-
};
|
|
100
|
-
markAsRead: {
|
|
101
|
-
description: string;
|
|
102
|
-
parameters: {
|
|
103
|
-
name: string;
|
|
104
|
-
dataType: string;
|
|
105
|
-
description: string;
|
|
106
|
-
formInputType: string;
|
|
107
|
-
required: boolean;
|
|
108
|
-
}[];
|
|
109
|
-
returnType: string;
|
|
110
|
-
returnDescription: string;
|
|
111
|
-
};
|
|
112
|
-
markAsUnread: {
|
|
113
|
-
description: string;
|
|
114
|
-
parameters: {
|
|
115
|
-
name: string;
|
|
116
|
-
dataType: string;
|
|
117
|
-
description: string;
|
|
118
|
-
formInputType: string;
|
|
119
|
-
required: boolean;
|
|
120
|
-
}[];
|
|
121
|
-
returnType: string;
|
|
122
|
-
returnDescription: string;
|
|
123
|
-
};
|
|
124
|
-
listLabels: {
|
|
125
|
-
description: string;
|
|
126
|
-
parameters: never[];
|
|
127
|
-
returnType: string;
|
|
128
|
-
returnDescription: string;
|
|
129
|
-
};
|
|
130
|
-
createLabel: {
|
|
131
|
-
description: string;
|
|
132
|
-
parameters: {
|
|
133
|
-
name: string;
|
|
134
|
-
dataType: string;
|
|
135
|
-
description: string;
|
|
136
|
-
formInputType: string;
|
|
137
|
-
required: boolean;
|
|
138
|
-
}[];
|
|
139
|
-
returnType: string;
|
|
140
|
-
returnDescription: string;
|
|
141
|
-
};
|
|
142
|
-
createDraft: {
|
|
143
|
-
description: string;
|
|
144
|
-
parameters: {
|
|
145
|
-
name: string;
|
|
146
|
-
dataType: string;
|
|
147
|
-
description: string;
|
|
148
|
-
formInputType: string;
|
|
149
|
-
required: boolean;
|
|
150
|
-
}[];
|
|
151
|
-
returnType: string;
|
|
152
|
-
returnDescription: string;
|
|
153
|
-
};
|
|
154
|
-
listDrafts: {
|
|
155
|
-
description: string;
|
|
156
|
-
parameters: {
|
|
157
|
-
name: string;
|
|
158
|
-
dataType: string;
|
|
159
|
-
description: string;
|
|
160
|
-
formInputType: string;
|
|
161
|
-
required: boolean;
|
|
162
|
-
}[];
|
|
163
|
-
returnType: string;
|
|
164
|
-
returnDescription: string;
|
|
165
|
-
};
|
|
166
|
-
sendDraft: {
|
|
167
|
-
description: string;
|
|
168
|
-
parameters: {
|
|
169
|
-
name: string;
|
|
170
|
-
dataType: string;
|
|
171
|
-
description: string;
|
|
172
|
-
formInputType: string;
|
|
173
|
-
required: boolean;
|
|
174
|
-
}[];
|
|
175
|
-
returnType: string;
|
|
176
|
-
returnDescription: string;
|
|
177
|
-
};
|
|
178
|
-
deleteDraft: {
|
|
179
|
-
description: string;
|
|
180
|
-
parameters: {
|
|
181
|
-
name: string;
|
|
182
|
-
dataType: string;
|
|
183
|
-
description: string;
|
|
184
|
-
formInputType: string;
|
|
185
|
-
required: boolean;
|
|
186
|
-
}[];
|
|
187
|
-
returnType: string;
|
|
188
|
-
returnDescription: string;
|
|
189
|
-
};
|
|
190
|
-
getProfile: {
|
|
191
|
-
description: string;
|
|
192
|
-
parameters: never[];
|
|
193
|
-
returnType: string;
|
|
194
|
-
returnDescription: string;
|
|
195
|
-
};
|
|
196
|
-
};
|
|
197
|
-
export declare const GmailModuleMetadata: {
|
|
198
|
-
description: string;
|
|
199
|
-
methods: string[];
|
|
200
|
-
category: string;
|
|
201
|
-
};
|
|
202
|
-
//# sourceMappingURL=gmail.d.ts.map
|
package/dist/gmail.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"gmail.d.ts","sourceRoot":"","sources":["../src/gmail.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAA2C,MAAM,oBAAoB,CAAC;AA4FlG,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAEzD,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkBjC,CAAC;AAEF,eAAO,MAAM,mBAAmB;;;;CAI/B,CAAC"}
|
package/dist/gmail.js
DELETED
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
const config = new Map();
|
|
2
|
-
function getConfig(key) {
|
|
3
|
-
const val = config.get(key);
|
|
4
|
-
if (!val)
|
|
5
|
-
throw new Error(`Gmail: "${key}" not configured. Call gmail.setCredentials first.`);
|
|
6
|
-
return val;
|
|
7
|
-
}
|
|
8
|
-
async function gmailApi(path, method = "GET", body) {
|
|
9
|
-
const token = getConfig("accessToken");
|
|
10
|
-
const res = await fetch(`https://gmail.googleapis.com/gmail/v1/users/me${path}`, {
|
|
11
|
-
method, headers: { Authorization: `Bearer ${token}`, "Content-Type": "application/json" },
|
|
12
|
-
body: body ? JSON.stringify(body) : undefined,
|
|
13
|
-
});
|
|
14
|
-
if (!res.ok) {
|
|
15
|
-
const t = await res.text();
|
|
16
|
-
throw new Error(`Gmail API error (${res.status}): ${t}`);
|
|
17
|
-
}
|
|
18
|
-
const ct = res.headers.get("content-type");
|
|
19
|
-
return ct && ct.includes("application/json") ? res.json() : res.text();
|
|
20
|
-
}
|
|
21
|
-
const setCredentials = (args) => {
|
|
22
|
-
const accessToken = args[0];
|
|
23
|
-
if (!accessToken)
|
|
24
|
-
throw new Error("gmail.setCredentials requires accessToken.");
|
|
25
|
-
config.set("accessToken", accessToken);
|
|
26
|
-
return "Gmail credentials configured.";
|
|
27
|
-
};
|
|
28
|
-
const listMessages = async (args) => {
|
|
29
|
-
const q = args[0];
|
|
30
|
-
const max = args[1] || 10;
|
|
31
|
-
return gmailApi(`/messages?maxResults=${max}${q ? `&q=${encodeURIComponent(q)}` : ""}`);
|
|
32
|
-
};
|
|
33
|
-
const getMessage = async (args) => {
|
|
34
|
-
const id = args[0];
|
|
35
|
-
if (!id)
|
|
36
|
-
throw new Error("getMessage requires messageId");
|
|
37
|
-
return gmailApi(`/messages/${id}`);
|
|
38
|
-
};
|
|
39
|
-
const sendEmail = async (args) => {
|
|
40
|
-
const to = args[0];
|
|
41
|
-
const subject = args[1];
|
|
42
|
-
const body = args[2];
|
|
43
|
-
if (!to || !subject || !body)
|
|
44
|
-
throw new Error("sendEmail requires to, subject, body");
|
|
45
|
-
const raw = btoa(`To: ${to}\r\nSubject: ${subject}\r\nContent-Type: text/plain; charset=utf-8\r\n\r\n${body}`).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
|
|
46
|
-
return gmailApi("/messages/send", "POST", { raw });
|
|
47
|
-
};
|
|
48
|
-
const trashMessage = async (args) => {
|
|
49
|
-
const id = args[0];
|
|
50
|
-
if (!id)
|
|
51
|
-
throw new Error("trashMessage requires messageId");
|
|
52
|
-
return gmailApi(`/messages/${id}/trash`, "POST");
|
|
53
|
-
};
|
|
54
|
-
const untrashMessage = async (args) => {
|
|
55
|
-
const id = args[0];
|
|
56
|
-
if (!id)
|
|
57
|
-
throw new Error("untrashMessage requires messageId");
|
|
58
|
-
return gmailApi(`/messages/${id}/untrash`, "POST");
|
|
59
|
-
};
|
|
60
|
-
const deleteMessage = async (args) => {
|
|
61
|
-
const id = args[0];
|
|
62
|
-
if (!id)
|
|
63
|
-
throw new Error("deleteMessage requires messageId");
|
|
64
|
-
return gmailApi(`/messages/${id}`, "DELETE");
|
|
65
|
-
};
|
|
66
|
-
const modifyLabels = async (args) => {
|
|
67
|
-
const id = args[0];
|
|
68
|
-
const add = (args[1] || []);
|
|
69
|
-
const rem = (args[2] || []);
|
|
70
|
-
if (!id)
|
|
71
|
-
throw new Error("modifyLabels requires messageId");
|
|
72
|
-
return gmailApi(`/messages/${id}/modify`, "POST", { addLabelIds: add, removeLabelIds: rem });
|
|
73
|
-
};
|
|
74
|
-
const markAsRead = async (args) => {
|
|
75
|
-
const id = args[0];
|
|
76
|
-
if (!id)
|
|
77
|
-
throw new Error("markAsRead requires messageId");
|
|
78
|
-
return gmailApi(`/messages/${id}/modify`, "POST", { removeLabelIds: ["UNREAD"] });
|
|
79
|
-
};
|
|
80
|
-
const markAsUnread = async (args) => {
|
|
81
|
-
const id = args[0];
|
|
82
|
-
if (!id)
|
|
83
|
-
throw new Error("markAsUnread requires messageId");
|
|
84
|
-
return gmailApi(`/messages/${id}/modify`, "POST", { addLabelIds: ["UNREAD"] });
|
|
85
|
-
};
|
|
86
|
-
const listLabels = async (args) => {
|
|
87
|
-
return gmailApi("/labels");
|
|
88
|
-
};
|
|
89
|
-
const createLabel = async (args) => {
|
|
90
|
-
const n = args[0];
|
|
91
|
-
if (!n)
|
|
92
|
-
throw new Error("createLabel requires name");
|
|
93
|
-
return gmailApi("/labels", "POST", { name: n });
|
|
94
|
-
};
|
|
95
|
-
const createDraft = async (args) => {
|
|
96
|
-
const to = args[0];
|
|
97
|
-
const subject = args[1];
|
|
98
|
-
const body = args[2];
|
|
99
|
-
if (!to || !subject || !body)
|
|
100
|
-
throw new Error("createDraft requires to, subject, body");
|
|
101
|
-
const raw = btoa(`To: ${to}\r\nSubject: ${subject}\r\nContent-Type: text/plain; charset=utf-8\r\n\r\n${body}`).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
|
|
102
|
-
return gmailApi("/drafts", "POST", { message: { raw } });
|
|
103
|
-
};
|
|
104
|
-
const listDrafts = async (args) => {
|
|
105
|
-
const max = args[0] || 10;
|
|
106
|
-
return gmailApi(`/drafts?maxResults=${max}`);
|
|
107
|
-
};
|
|
108
|
-
const sendDraft = async (args) => {
|
|
109
|
-
const id = args[0];
|
|
110
|
-
if (!id)
|
|
111
|
-
throw new Error("sendDraft requires draftId");
|
|
112
|
-
return gmailApi("/drafts/send", "POST", { id });
|
|
113
|
-
};
|
|
114
|
-
const deleteDraft = async (args) => {
|
|
115
|
-
const id = args[0];
|
|
116
|
-
if (!id)
|
|
117
|
-
throw new Error("deleteDraft requires draftId");
|
|
118
|
-
return gmailApi(`/drafts/${id}`, "DELETE");
|
|
119
|
-
};
|
|
120
|
-
const getProfile = async (args) => {
|
|
121
|
-
return gmailApi("/profile");
|
|
122
|
-
};
|
|
123
|
-
export const GmailFunctions = {
|
|
124
|
-
setCredentials, listMessages, getMessage, sendEmail, trashMessage, untrashMessage, deleteMessage, modifyLabels, markAsRead, markAsUnread, listLabels, createLabel, createDraft, listDrafts, sendDraft, deleteDraft, getProfile,
|
|
125
|
-
};
|
|
126
|
-
export const GmailFunctionMetadata = {
|
|
127
|
-
setCredentials: { description: "Configure Gmail OAuth2 credentials.", parameters: [{ name: "accessToken", dataType: "string", description: "OAuth2 access token", formInputType: "text", required: true }], returnType: "object", returnDescription: "API response." },
|
|
128
|
-
listMessages: { description: "List/search messages", parameters: [{ name: "query", dataType: "string", description: "Search query", formInputType: "text", required: false }, { name: "maxResults", dataType: "number", description: "Max results", formInputType: "number", required: false }], returnType: "object", returnDescription: "API response." },
|
|
129
|
-
getMessage: { description: "Get message details", parameters: [{ name: "messageId", dataType: "string", description: "Message ID", formInputType: "text", required: true }], returnType: "object", returnDescription: "API response." },
|
|
130
|
-
sendEmail: { description: "Send a plain text email", parameters: [{ name: "to", dataType: "string", description: "Recipient", formInputType: "text", required: true }, { name: "subject", dataType: "string", description: "Subject", formInputType: "text", required: true }, { name: "body", dataType: "string", description: "Body", formInputType: "text", required: true }], returnType: "object", returnDescription: "API response." },
|
|
131
|
-
trashMessage: { description: "Move message to trash", parameters: [{ name: "messageId", dataType: "string", description: "Message ID", formInputType: "text", required: true }], returnType: "object", returnDescription: "API response." },
|
|
132
|
-
untrashMessage: { description: "Remove from trash", parameters: [{ name: "messageId", dataType: "string", description: "Message ID", formInputType: "text", required: true }], returnType: "object", returnDescription: "API response." },
|
|
133
|
-
deleteMessage: { description: "Permanently delete message", parameters: [{ name: "messageId", dataType: "string", description: "Message ID", formInputType: "text", required: true }], returnType: "object", returnDescription: "API response." },
|
|
134
|
-
modifyLabels: { description: "Add/remove labels", parameters: [{ name: "messageId", dataType: "string", description: "Message ID", formInputType: "text", required: true }, { name: "addLabels", dataType: "object", description: "Labels to add", formInputType: "json", required: false }, { name: "removeLabels", dataType: "object", description: "Labels to remove", formInputType: "json", required: false }], returnType: "object", returnDescription: "API response." },
|
|
135
|
-
markAsRead: { description: "Mark as read", parameters: [{ name: "messageId", dataType: "string", description: "Message ID", formInputType: "text", required: true }], returnType: "object", returnDescription: "API response." },
|
|
136
|
-
markAsUnread: { description: "Mark as unread", parameters: [{ name: "messageId", dataType: "string", description: "Message ID", formInputType: "text", required: true }], returnType: "object", returnDescription: "API response." },
|
|
137
|
-
listLabels: { description: "List all labels", parameters: [], returnType: "object", returnDescription: "API response." },
|
|
138
|
-
createLabel: { description: "Create a label", parameters: [{ name: "name", dataType: "string", description: "Label name", formInputType: "text", required: true }], returnType: "object", returnDescription: "API response." },
|
|
139
|
-
createDraft: { description: "Create a draft", parameters: [{ name: "to", dataType: "string", description: "Recipient", formInputType: "text", required: true }, { name: "subject", dataType: "string", description: "Subject", formInputType: "text", required: true }, { name: "body", dataType: "string", description: "Body", formInputType: "text", required: true }], returnType: "object", returnDescription: "API response." },
|
|
140
|
-
listDrafts: { description: "List drafts", parameters: [{ name: "maxResults", dataType: "number", description: "Max results", formInputType: "number", required: false }], returnType: "object", returnDescription: "API response." },
|
|
141
|
-
sendDraft: { description: "Send a draft", parameters: [{ name: "draftId", dataType: "string", description: "Draft ID", formInputType: "text", required: true }], returnType: "object", returnDescription: "API response." },
|
|
142
|
-
deleteDraft: { description: "Delete a draft", parameters: [{ name: "draftId", dataType: "string", description: "Draft ID", formInputType: "text", required: true }], returnType: "object", returnDescription: "API response." },
|
|
143
|
-
getProfile: { description: "Get user profile", parameters: [], returnType: "object", returnDescription: "API response." },
|
|
144
|
-
};
|
|
145
|
-
export const GmailModuleMetadata = {
|
|
146
|
-
description: "Read, send, label, search, and manage emails via the Gmail REST API.",
|
|
147
|
-
methods: Object.keys(GmailFunctions),
|
|
148
|
-
category: "email",
|
|
149
|
-
};
|
|
150
|
-
//# sourceMappingURL=gmail.js.map
|
package/dist/gmail.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"gmail.js","sourceRoot":"","sources":["../src/gmail.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,GAAG,IAAI,GAAG,EAAkB,CAAC;AAE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GmailFunctions, GmailFunctionMetadata, GmailModuleMetadata } from "./gmail.js";
|
|
6
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAGxD,QAAA,MAAM,WAAW,EAAE,aAMlB,CAAC;AAEF,eAAe,WAAW,CAAC;AAC3B,OAAO,EAAE,WAAW,EAAE,CAAC;AACvB,OAAO,EAAE,cAAc,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC"}
|
package/dist/index.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { GmailFunctions, GmailFunctionMetadata, GmailModuleMetadata } from "./gmail.js";
|
|
2
|
-
const GmailModule = {
|
|
3
|
-
name: "gmail",
|
|
4
|
-
functions: GmailFunctions,
|
|
5
|
-
functionMetadata: GmailFunctionMetadata,
|
|
6
|
-
moduleMetadata: GmailModuleMetadata,
|
|
7
|
-
global: false,
|
|
8
|
-
}; // as ModuleAdapter
|
|
9
|
-
export default GmailModule;
|
|
10
|
-
export { GmailModule };
|
|
11
|
-
export { GmailFunctions, GmailFunctionMetadata, GmailModuleMetadata } from "./gmail.js";
|
|
12
|
-
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAExF,MAAM,WAAW,GAAkB;IACjC,IAAI,EAAE,OAAO;IACb,SAAS,EAAE,cAAc;IACzB,gBAAgB,EAAE,qBAA4B;IAC9C,cAAc,EAAE,mBAA0B;IAC1C,MAAM,EAAE,KAAK;CACd,CAAC,CAAC,mBAAmB;AAEtB,eAAe,WAAW,CAAC;AAC3B,OAAO,EAAE,WAAW,EAAE,CAAC;AACvB,OAAO,EAAE,cAAc,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC"}
|