-
Notifications
You must be signed in to change notification settings - Fork 108
Expand file tree
/
Copy pathplugin.json
More file actions
215 lines (215 loc) · 9.96 KB
/
plugin.json
File metadata and controls
215 lines (215 loc) · 9.96 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
{
"id": "com.mattermost.demo-plugin",
"name": "Demo Plugin",
"description": "This plugin demonstrates the capabilities of a Mattermost plugin.",
"homepage_url": "https://github.com/mattermost/mattermost-plugin-demo",
"support_url": "https://github.com/mattermost/mattermost-plugin-demo/issues",
"icon_path": "assets/icon.svg",
"version": "0.10.3",
"min_server_version": "7.9.0",
"server": {
"executables": {
"linux-amd64": "server/dist/plugin-linux-amd64",
"linux-arm64": "server/dist/plugin-linux-arm64",
"darwin-amd64": "server/dist/plugin-darwin-amd64",
"darwin-arm64": "server/dist/plugin-darwin-arm64",
"windows-amd64": "server/dist/plugin-windows-amd64.exe"
}
},
"webapp": {
"bundle_path": "webapp/dist/main.js"
},
"settings_schema": {
"header": "Header: Configure your demo plugin settings below.",
"footer": "Footer: The code for this demo plugin can be found [here](https://github.com/mattermost/mattermost-plugin-demo).",
"settings": [
{
"key": "SecretMessage",
"display_name": "Secret Message:",
"type": "custom",
"help_text": "The message posted by the demo plugin when the secret phrase is detected.",
"placeholder": "",
"default": "Yay! The random secret string was posted! Go to the settings page for this plugin in the System Console to generate a new random secret."
},
{
"key": "CustomSetting",
"display_name": "",
"type": "custom",
"help_text": "",
"placeholder": "",
"default": null
}
],
"sections": [
{
"key": "SectionUserChannel",
"title": "User & Channel",
"settings": [
{
"key": "ChannelName",
"display_name": "Channel Name:",
"type": "text",
"help_text": "The channel to use as part of the demo plugin, created for each team automatically if it does not exist.",
"placeholder": "demo_plugin",
"default": "demo_plugin"
},
{
"key": "Username",
"display_name": "Username:",
"type": "text",
"help_text": "The user to use as part of the demo plugin, created automatically if it does not exist.",
"placeholder": "demo_plugin",
"default": "demo_plugin"
},
{
"key": "LastName",
"display_name": "Demo User Last Name:",
"type": "radio",
"help_text": "Select the last name for the demo user.",
"placeholder": "",
"default": "Plugin User",
"options": [
{
"display_name": "Plugin User",
"value": "Plugin User"
},
{
"display_name": "Demoson III",
"value": "Demoson III"
},
{
"display_name": "McDemo",
"value": "McDemo"
}
]
},
{
"key": "TextStyle",
"display_name": "Text Style:",
"type": "dropdown",
"help_text": "Change the text style of the messages posted by this plugin.",
"placeholder": "",
"default": "",
"options": [
{
"display_name": "none",
"value": ""
},
{
"display_name": "italics",
"value": "_"
},
{
"display_name": "bold",
"value": "**"
}
]
}
]
},
{
"key": "SectionSecrets",
"title": "Secrets",
"settings": [
{
"key": "RandomSecret",
"display_name": "Random Secret:",
"type": "generated",
"help_text": "Generate a random string that the demo plugin will watch for. If the secret string is mentioned in any channel then the demo plugin will publish a special message.",
"regenerate_help_text": "Generate a new secret string.",
"placeholder": "",
"default": "CFgcq9Hr9OKSevvqH_SH-mPlgVklmpUm"
},
{
"key": "secretNumber",
"display_name": "Secret Number:",
"type": "number",
"help_text": "A secret number that the demo plugin will watch for. If the secret number is mentioned in any channel then the demo plugin will publish a special message.",
"placeholder": "Some secret number",
"default": 123
},
{
"key": "ServiceAPIKey",
"display_name": "Service API Key:",
"type": "text",
"help_text": "An API key for an external service. This setting demonstrates a secret setting inside a section, which is sanitized before being returned through the API.",
"placeholder": "Enter API key",
"default": "",
"secret": true
}
]
},
{
"key": "SectionMentions",
"title": "Mentions & Integrations",
"settings": [
{
"key": "EnableMentionUser",
"display_name": "Enable Mention User:",
"type": "bool",
"help_text": "Enable or disable the demo plugin to tag a username on every message sent. The username value is set below.",
"placeholder": "",
"default": false
},
{
"key": "MentionUser",
"display_name": "Mention User:",
"type": "username",
"help_text": "Configure the username to be mentioned by the demo plugin. Must be enabled in the setting above.",
"placeholder": "demo_plugin",
"default": "demo_plugin"
},
{
"key": "integrationRequestDelay",
"display_name": "Integration Request delay",
"type": "number",
"help_text": "A deplay in seconds that is applied to Slash Command responses, Post Actions responses and Interactive Dialog responses. It's useful for testing.",
"placeholder": "A delay in seconds",
"default": 0
}
]
},
{
"key": "SectionFileDownloads",
"title": "File Downloads",
"settings": [
{
"key": "RejectFileDownloads",
"display_name": "Reject File Downloads:",
"type": "bool",
"help_text": "When enabled, full file downloads will be rejected with an error message. This is useful for testing the plugin's file download hook logic.",
"placeholder": "",
"default": false
},
{
"key": "RejectThumbDownloads",
"display_name": "Reject Thumbnail Downloads:",
"type": "bool",
"help_text": "When enabled, thumbnail downloads will be rejected with an error message. This is useful for testing the plugin's thumbnail download hook logic.",
"placeholder": "",
"default": false
},
{
"key": "RejectPreviewDownloads",
"display_name": "Reject Preview Downloads:",
"type": "bool",
"help_text": "When enabled, preview image downloads will be rejected with an error message. This is useful for testing the plugin's preview download hook logic.",
"placeholder": "",
"default": false
},
{
"key": "RejectPublicLinkDownloads",
"display_name": "Reject Public Link Downloads:",
"type": "bool",
"help_text": "When enabled, public link file downloads will be rejected with an error message. This is useful for testing the plugin's public link download hook logic.",
"placeholder": "",
"default": false
}
]
}
]
},
"props": {
"support_packet": "Demo plugin support packet"
}
}