forked from amidaware/community-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
community_scripts.schema.json
132 lines (132 loc) · 3.91 KB
/
community_scripts.schema.json
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
{
"title": "TRMM Community Scripts",
"description": "JSON schema for the Tactical RMM Community Scripts configuration file.",
"$schema": "https://json-schema.org/draft/2019-09/schema",
"$id": "https://raw.githubusercontent.com/amidaware/community-scripts/main/community_scripts.schema.json",
"type": "array",
"items": {
"type": "object",
"properties": {
"submittedBy": {
"description": "Who submitted the script? Usually a URI, email or any string.",
"type": [
"string",
"uri",
"email"
]
},
"args": {
"description": "The script arguments listed as an array.",
"type": "array",
"items": {
"type": "string"
}
},
"filename": {
"description": "The filename of the script.",
"type": "string"
},
"shell": {
"description": "The scripting platform, or type of script. One of cmd, powershell, python, shell.",
"type": "string",
"enum": [
"cmd",
"powershell",
"python",
"shell"
]
},
"supported_platforms": {
"description": "List of platforms the script supports",
"type": "array",
"items": {
"enum": [
"windows",
"darwin",
"linux"
]
}
},
"name": {
"description": "The name of the script that will be shown in TRMM",
"type": "string"
},
"guid": {
"description": "Unique ID for the script.",
"type": "uuid"
},
"description": {
"description": "Description of what the script does, or the purpose of the script.",
"type": "string"
},
"syntax": {
"description": "The syntax for the command line arguments accepted by the script.",
"type": "string"
},
"category": {
"description": "The category for the script. Choose from a list of existing categories or enter a new category.",
"type": "string",
"anyOf": [
{
"description": "A new category not yet used.",
"type": "string"
},
{
"description": "Choose from an existing category.",
"type": "string",
"enum": [
"TRMM (All):3rd Party Software",
"TRMM (All):Network",
"TRMM (Linux):Checks",
"TRMM (Win):3rd Party Software",
"TRMM (Win):3rd Party Software>Chocolatey",
"TRMM (Win):3rd Party Software>Monitoring",
"TRMM (Win):3rd Party Software>WinGet",
"TRMM (Win):Active Directory",
"TRMM (Win):Azure>AD",
"TRMM (Win):Azure>Backup",
"TRMM (Win):Browsers",
"TRMM (Win):Collectors",
"TRMM (Win):Hardware",
"TRMM (Win):Maintenance",
"TRMM (Win):Misc>Reference",
"TRMM (Win):Monitoring",
"TRMM (Win):Network",
"TRMM (Win):Office",
"TRMM (Win):Other",
"TRMM (Win):Power",
"TRMM (Win):Printing",
"TRMM (Win):Security",
"TRMM (Win):Security>Antivirus",
"TRMM (Win):Storage",
"TRMM (Win):TacticalRMM Related",
"TRMM (Win):Testing",
"TRMM (Win):Updates",
"TRMM (Win):User Management",
"TRMM (Win):Win11 Tweaks",
"TRMM (Win):Windows Features"
]
}
]
},
"default_timeout": {
"description": "Enter the default timeout for the script, in seconds.",
"default": 90,
"type": [
"number",
"string"
]
}
},
"required": [
"guid",
"filename",
"submittedBy",
"name",
"description",
"shell",
"category",
"supported_platforms"
]
}
}