-
Notifications
You must be signed in to change notification settings - Fork 4
/
synapse-webhook.yaml
93 lines (85 loc) · 2.51 KB
/
synapse-webhook.yaml
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
name: zw-webhook
version: 1.0.3
synapse_minversion: [2, 129, 0]
desc: The zw-webhook package provides commands to interact with common third-party messaging platforms (Slack, Teams, Discord and Keybase) through their webhook APIs.
author:
url: https://zanderwork.com/
name: Zander Work
genopts:
dotstorm: true
perms:
- perm: [zw, webhook, user]
desc: Allows a user to leverage the zw-webhook package
gate: cortex
- perm: [zw, webhook, admin]
desc: Allows a user to view, use, and delete any webhook
gate: cortex
modules:
- name: zw.webhook.privsep
asroot:perms:
- [zw, webhook, user]
commands:
- name: zw.webhook.add
descr: Add a new webhook
perms:
- [zw, webhook, user]
cmdargs:
- - --service
- type: str
default: auto
help: "Service to use this webhook for. If unset (or set to auto), service is determined based on webhook URL. Valid options are: auto, discord, slack, teams, keybase."
- - --global
- type: bool
default: false
action: store_true
help: Make webhook available to all users. By default, only available to the user who created it.
- - name
- type: str
help: Name of the webhook (must be unique)
- - url
- type: str
help: URL of the webhook
- name: zw.webhook.send
descr: Send a message using the webhook
perms:
- [zw, webhook, user]
cmdargs:
- - --debug
- type: bool
default: false
action: store_true
help: Show verbose debug output.
- - --defang
- type: bool
default: false
action: store_true
help: Replace "http" with "hxxp" and "." with "[.]".
- - --no-verify
- type: bool
default: true
action: store_false
help: Ignore SSL verification errors.
- - name
- type: str
help: Name of the webhook to use
- - mesg
- type: str
help: Message to send
- name: zw.webhook.delete
descr: Delete a webhook. Requires zw.webhook.admin if the webhook isn't yours.
perms:
- [zw, webhook, user]
cmdargs:
- - name
- type: str
help: Name of the webhook to delete
- name: zw.webhook.list
descr: List the configured webhooks
perms:
- [zw, webhook, user]
cmdargs:
- - --all
- type: bool
default: false
action: store_true
help: Show all webhooks (requires zw.webhook.admin).