You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I moved this all into a monorepo, I added a .gitignore file for
python, but that gitignore accidentally ignored a critical static js
directory that was created by add-on builder.
This changes the .gitignore file and adds the directory back in.
"errorMsg": "Length of Account name should be between 1 and 50"
47
+
},
48
+
{
49
+
"type": "regex",
50
+
"pattern": "^[a-zA-Z]\\w*$",
51
+
"errorMsg": "Account name must start with a letter and followed by alphabetic letters, digits or underscores."
52
+
}
53
+
]
54
+
},
55
+
{
56
+
"field": "username",
57
+
"label": "Username",
58
+
"type": "text",
59
+
"required": true,
60
+
"help": "Enter the username for this account.",
61
+
"options": {
62
+
"placeholder": "Enter the username here"
63
+
},
64
+
"validators": [
65
+
{
66
+
"type": "string",
67
+
"minLength": 1,
68
+
"maxLength": 200,
69
+
"errorMsg": "Length of username should be between 1 and 200"
70
+
}
71
+
]
72
+
},
73
+
{
74
+
"field": "password",
75
+
"label": "Password",
76
+
"type": "text",
77
+
"encrypted": true,
78
+
"required": true,
79
+
"help": "Enter the password for this account.",
80
+
"validators": [
81
+
{
82
+
"type": "string",
83
+
"minLength": 1,
84
+
"maxLength": 8192,
85
+
"errorMsg": "Length of password should be between 1 and 8192"
86
+
}
87
+
]
88
+
}
89
+
]
90
+
},
91
+
{
92
+
"name": "proxy",
93
+
"title": "Proxy",
94
+
"entity": [
95
+
{
96
+
"field": "proxy_enabled",
97
+
"label": "Enable",
98
+
"type": "checkbox"
99
+
},
100
+
{
101
+
"field": "proxy_type",
102
+
"label": "Proxy Type",
103
+
"type": "singleSelect",
104
+
"options": {
105
+
"disableSearch": true,
106
+
"autoCompleteFields": [
107
+
{
108
+
"label": "http",
109
+
"value": "http"
110
+
},
111
+
{
112
+
"label": "socks4",
113
+
"value": "socks4"
114
+
},
115
+
{
116
+
"label": "socks5",
117
+
"value": "socks5"
118
+
}
119
+
]
120
+
},
121
+
"defaultValue": "http"
122
+
},
123
+
{
124
+
"field": "proxy_url",
125
+
"label": "Host",
126
+
"type": "text",
127
+
"validators": [
128
+
{
129
+
"type": "string",
130
+
"minLength": 0,
131
+
"maxLength": 4096,
132
+
"errorMsg": "Max host length is 4096"
133
+
}
134
+
]
135
+
},
136
+
{
137
+
"field": "proxy_port",
138
+
"label": "Port",
139
+
"type": "text",
140
+
"validators": [
141
+
{
142
+
"type": "number",
143
+
"range": [
144
+
1,
145
+
65535
146
+
]
147
+
}
148
+
]
149
+
},
150
+
{
151
+
"field": "proxy_username",
152
+
"label": "Username",
153
+
"type": "text",
154
+
"validators": [
155
+
{
156
+
"type": "string",
157
+
"minLength": 0,
158
+
"maxLength": 50,
159
+
"errorMsg": "Max length of username is 50"
160
+
}
161
+
]
162
+
},
163
+
{
164
+
"field": "proxy_password",
165
+
"label": "Password",
166
+
"type": "text",
167
+
"encrypted": true,
168
+
"validators": [
169
+
{
170
+
"type": "string",
171
+
"minLength": 0,
172
+
"maxLength": 8192,
173
+
"errorMsg": "Max length of password is 8192"
174
+
}
175
+
]
176
+
},
177
+
{
178
+
"field": "proxy_rdns",
179
+
"label": "Remote DNS resolution",
180
+
"type": "checkbox"
181
+
}
182
+
],
183
+
"options": {
184
+
"saveValidator": "function(formData) { if(!formData.proxy_enabled || formData.proxy_enabled === '0') {return true; } if(!formData.proxy_url) { return 'Proxy Host can not be empty'; } if(!formData.proxy_port) { return 'Proxy Port can not be empty'; } return true; }"
185
+
}
186
+
},
187
+
{
188
+
"name": "logging",
189
+
"title": "Logging",
190
+
"entity": [
191
+
{
192
+
"field": "loglevel",
193
+
"label": "Log level",
194
+
"type": "singleSelect",
195
+
"options": {
196
+
"disableSearch": true,
197
+
"autoCompleteFields": [
198
+
{
199
+
"label": "DEBUG",
200
+
"value": "DEBUG"
201
+
},
202
+
{
203
+
"label": "INFO",
204
+
"value": "INFO"
205
+
},
206
+
{
207
+
"label": "WARNING",
208
+
"value": "WARNING"
209
+
},
210
+
{
211
+
"label": "ERROR",
212
+
"value": "ERROR"
213
+
},
214
+
{
215
+
"label": "CRITICAL",
216
+
"value": "CRITICAL"
217
+
}
218
+
]
219
+
},
220
+
"defaultValue": "INFO"
221
+
}
222
+
]
223
+
}
224
+
]
225
+
},
226
+
"inputs": {
227
+
"title": "Inputs",
228
+
"description": "Manage your data inputs",
229
+
"table": {
230
+
"header": [
231
+
{
232
+
"field": "name",
233
+
"label": "Name"
234
+
},
235
+
{
236
+
"field": "interval",
237
+
"label": "Interval"
238
+
},
239
+
{
240
+
"field": "index",
241
+
"label": "Index"
242
+
},
243
+
{
244
+
"field": "disabled",
245
+
"label": "Status"
246
+
}
247
+
],
248
+
"moreInfo": [
249
+
{
250
+
"field": "name",
251
+
"label": "Name"
252
+
},
253
+
{
254
+
"field": "interval",
255
+
"label": "Interval"
256
+
},
257
+
{
258
+
"field": "index",
259
+
"label": "Index"
260
+
},
261
+
{
262
+
"field": "disabled",
263
+
"label": "Status"
264
+
},
265
+
{
266
+
"field": "api_key_id",
267
+
"label": "API Key ID"
268
+
},
269
+
{
270
+
"field": "api_key",
271
+
"label": "API Key"
272
+
}
273
+
],
274
+
"actions": [
275
+
"edit",
276
+
"enable",
277
+
"delete",
278
+
"clone"
279
+
]
280
+
},
281
+
"services": [
282
+
{
283
+
"name": "cortex_xdr",
284
+
"title": "Cortex XDR",
285
+
"entity": [
286
+
{
287
+
"field": "name",
288
+
"label": "Name",
289
+
"type": "text",
290
+
"help": "Enter a unique name for the data input",
291
+
"required": true,
292
+
"validators": [
293
+
{
294
+
"type": "regex",
295
+
"pattern": "^[a-zA-Z]\\w*$",
296
+
"errorMsg": "Input Name must start with a letter and followed by alphabetic letters, digits or underscores."
297
+
},
298
+
{
299
+
"type": "string",
300
+
"minLength": 1,
301
+
"maxLength": 100,
302
+
"errorMsg": "Length of input name should be between 1 and 100"
303
+
}
304
+
]
305
+
},
306
+
{
307
+
"field": "interval",
308
+
"label": "Interval",
309
+
"type": "text",
310
+
"required": true,
311
+
"help": "Time interval of input in seconds.",
312
+
"validators": [
313
+
{
314
+
"type": "regex",
315
+
"pattern": "^\\-[1-9]\\d*$|^\\d*$",
316
+
"errorMsg": "Interval must be an integer."
317
+
}
318
+
]
319
+
},
320
+
{
321
+
"field": "index",
322
+
"label": "Index",
323
+
"type": "singleSelect",
324
+
"defaultValue": "default",
325
+
"options": {
326
+
"endpointUrl": "data/indexes",
327
+
"blackList": "^_.*$",
328
+
"createSearchChoice": true
329
+
},
330
+
"required": true,
331
+
"validators": [
332
+
{
333
+
"type": "string",
334
+
"minLength": 1,
335
+
"maxLength": 80,
336
+
"errorMsg": "Length of index name should be between 1 and 80."
0 commit comments