-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathopenclaw.plugin.json
More file actions
93 lines (93 loc) · 2.86 KB
/
Copy pathopenclaw.plugin.json
File metadata and controls
93 lines (93 loc) · 2.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
{
"id": "gmail",
"name": "Gmail",
"description": "OpenClaw communication channel backed by Gmail threads",
"activation": {
"onStartup": false
},
"channels": ["gmail"],
"channelEnvVars": {
"gmail": ["GMAIL_CLIENT_ID", "GMAIL_CLIENT_SECRET", "GMAIL_REFRESH_TOKEN"]
},
"configSchema": {
"type": "object",
"additionalProperties": false,
"properties": {}
},
"channelConfigs": {
"gmail": {
"schema": {
"type": "object",
"additionalProperties": false,
"properties": {
"enabled": { "type": "boolean", "default": true },
"defaultAccount": { "type": "string", "minLength": 1 },
"accounts": {
"type": "object",
"additionalProperties": {
"type": "object",
"additionalProperties": false,
"required": ["email"],
"properties": {
"name": { "type": "string", "minLength": 1 },
"enabled": { "type": "boolean", "default": true },
"email": { "type": "string", "format": "email" },
"oauth": {
"type": "object",
"additionalProperties": false,
"properties": {
"clientId": { "$ref": "#/$defs/secretInput" },
"clientSecret": { "$ref": "#/$defs/secretInput" },
"refreshToken": { "$ref": "#/$defs/secretInput" }
}
},
"allowFrom": { "type": "array", "items": { "type": "string" } },
"allowTo": { "type": "array", "items": { "type": "string" } },
"pollIntervalSeconds": {
"type": "integer",
"minimum": 10,
"maximum": 3600,
"default": 30
}
}
}
}
},
"$defs": {
"secretInput": {
"oneOf": [
{ "type": "string" },
{
"type": "object",
"additionalProperties": false,
"required": ["source", "provider", "id"],
"properties": {
"source": {
"type": "string",
"enum": ["env"]
},
"provider": { "type": "string", "minLength": 1 },
"id": { "type": "string", "minLength": 1 }
}
}
]
}
}
},
"uiHints": {
"accounts.*.oauth.clientId": {
"label": "OAuth client ID",
"sensitive": true
},
"accounts.*.oauth.clientSecret": {
"label": "OAuth client secret",
"sensitive": true
},
"accounts.*.oauth.refreshToken": {
"label": "OAuth refresh token",
"sensitive": true
}
}
}
}
}