@matimo/gmail 0.1.0-alpha.4
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/LICENSE +21 -0
- package/definition.yaml +49 -0
- package/package.json +18 -0
- package/tools/README.md +1258 -0
- package/tools/create-draft/definition.yaml +99 -0
- package/tools/delete-message/definition.yaml +42 -0
- package/tools/get-message/definition.yaml +89 -0
- package/tools/list-messages/definition.yaml +84 -0
- package/tools/send-email/definition.yaml +95 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
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.
|
package/definition.yaml
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# Google OAuth2 Provider Definition
|
|
2
|
+
#
|
|
3
|
+
# This file defines the OAuth2 configuration for Google.
|
|
4
|
+
# All Gmail tools reference this provider definition.
|
|
5
|
+
#
|
|
6
|
+
# Users can override these endpoints via:
|
|
7
|
+
# 1. Runtime config (highest priority)
|
|
8
|
+
# 2. Environment variables: OAUTH_GOOGLE_AUTH_URL, OAUTH_GOOGLE_TOKEN_URL, etc.
|
|
9
|
+
# 3. This YAML definition (lowest priority)
|
|
10
|
+
#
|
|
11
|
+
# Pattern: Define once, use everywhere
|
|
12
|
+
|
|
13
|
+
name: google-provider
|
|
14
|
+
type: provider
|
|
15
|
+
version: '1.0.0'
|
|
16
|
+
|
|
17
|
+
description: |
|
|
18
|
+
Google OAuth2 Provider Configuration
|
|
19
|
+
|
|
20
|
+
All Gmail tools and Google-dependent tools use these endpoints.
|
|
21
|
+
|
|
22
|
+
Setup:
|
|
23
|
+
1. Create Google Cloud project
|
|
24
|
+
2. Enable Gmail API
|
|
25
|
+
3. Create OAuth2 credentials (web application)
|
|
26
|
+
4. Set GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET environment variables
|
|
27
|
+
5. Set GOOGLE_REDIRECT_URI to your callback URL
|
|
28
|
+
|
|
29
|
+
provider:
|
|
30
|
+
name: google
|
|
31
|
+
displayName: Google
|
|
32
|
+
|
|
33
|
+
# OAuth2 Endpoints
|
|
34
|
+
# Standard Google OAuth2 endpoints - change only if using custom proxy
|
|
35
|
+
endpoints:
|
|
36
|
+
authorizationUrl: https://accounts.google.com/o/oauth2/v2/auth
|
|
37
|
+
tokenUrl: https://oauth2.googleapis.com/token
|
|
38
|
+
revokeUrl: https://oauth2.googleapis.com/revoke
|
|
39
|
+
|
|
40
|
+
# Standard scopes for Gmail access
|
|
41
|
+
# Tools can override with their own scopes
|
|
42
|
+
defaultScopes:
|
|
43
|
+
- https://www.googleapis.com/auth/gmail.readonly
|
|
44
|
+
- https://www.googleapis.com/auth/gmail.send
|
|
45
|
+
- https://www.googleapis.com/auth/gmail.compose
|
|
46
|
+
|
|
47
|
+
# Additional metadata
|
|
48
|
+
documentation: https://developers.google.com/gmail/api
|
|
49
|
+
learnMore: https://developers.google.com/oauthplayground
|
package/package.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@matimo/gmail",
|
|
3
|
+
"version": "0.1.0-alpha.4",
|
|
4
|
+
"description": "Gmail tools for Matimo",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"files": [
|
|
7
|
+
"tools",
|
|
8
|
+
"README.md",
|
|
9
|
+
"definition.yaml"
|
|
10
|
+
],
|
|
11
|
+
"peerDependencies": {
|
|
12
|
+
"matimo": "^0.1.0-alpha.4"
|
|
13
|
+
},
|
|
14
|
+
"devDependencies": {
|
|
15
|
+
"axios": "^1.13.4",
|
|
16
|
+
"@matimo/core": "0.1.0-alpha.4"
|
|
17
|
+
}
|
|
18
|
+
}
|