-
Notifications
You must be signed in to change notification settings - Fork 463
/
users.json
379 lines (370 loc) · 12.4 KB
/
users.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
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
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
{
"_id":"users",
"$schema":"http://json-schema.org/draft-03/schema#",
"id":"http://json-schema.org/draft-03/schema#",
"description":"Schema for a user",
"properties":{
"enabled":{
"description":"Determines if the user is currently enabled",
"type":"boolean",
"default":true
},
"username":{
"description":"The GUI login username - alpha-numeric, dashes, at symbol, periods, plusses, and underscores allowed",
"type":"string",
"minLength":1,
"maxLength":256,
"pattern":"^([+@.\\\w_-]+)$"
},
"first_name":{
"description":"The first name of the user",
"required":"true",
"type":"string",
"minLength":1,
"maxLength":32
},
"last_name":{
"description":"The last name of the user",
"required":"true",
"type":"string",
"minLength":1,
"maxLength":32
},
"email":{
"description":"The email of the user",
"type":"string",
"minLength":1,
"maxLength":256
},
"vm_to_email_enabled":{
"description":"Determines if the user would like voicemails emailed to them",
"type":"boolean",
"default":true
},
"verified":{
"description":"Determines if the user has been verified",
"type":"boolean",
"default":false
},
"require_password_update":{
"description":"UI flag that the user should update their password.",
"type":"boolean",
"default":false
},
"priv_level":{
"description":"The privilege level of the user",
"type":"string",
"enum":[
"user",
"admin"
],
"default":"user"
},
"is_sub_account_rep":{
"description":"Determines if the user should be in the pool of users that recieve emails when sub accounts are created",
"type":"boolean",
"default":false
},
"apps":{
"description":"The applications the user has enabled in the GUI",
"type":"object",
"enum":[
"cluster",
"voip",
"userportal",
"connectivity"
],
"properties":{
"label":{
"description":"The display name of the application",
"type":"string",
"pattern":"^[0-9A-Za-z_]*$",
"maxLength":25
},
"icon":{
"description":"The display icon of the application",
"type":"string",
"pattern":"^[0-9A-Za-z_]*$",
"maxLength":25
},
"api_url":{
"description":"The API url of the application",
"type":"string",
"maxLength":64
}
},
"default":{
}
},
"caller_id":{
"description":"The default caller ID parameters",
"type":"object",
"properties":{
"internal":{
"description":"The default caller ID used when dialing internal extensions",
"type":"object",
"properties":{
"name":{
"description":"The caller id name for the object type",
"type":"string",
"maxLength":15,
"pattern":"^[0-9A-Za-z ,]*$"
},
"number":{
"description":"The caller id number for the object type",
"type":"string",
"maxLength":15
}
}
},
"external":{
"description":"The default caller ID used when dialing external numbers",
"type":"object",
"properties":{
"name":{
"description":"The caller id name for the object type",
"type":"string",
"maxLength":15,
"pattern":"^[0-9A-Za-z ,]*$"
},
"number":{
"description":"The caller id number for the object type",
"type":"string",
"maxLength":15
}
}
},
"emergency":{
"description":"The caller ID used when external, internal, or emergency is not defined",
"type":"object",
"properties":{
"name":{
"description":"The caller id name for the object type",
"type":"string",
"maxLength":15,
"pattern":"^[0-9A-Za-z ,]*$"
},
"number":{
"description":"The caller id number for the object type",
"type":"string",
"maxLength":15
}
}
}
},
"default":{
}
},
"caller_id_options":{
"description":"The caller ID option parameters for the user",
"type":"object",
"properties":{
"reformat":{
"description":"A regular expression that if can reformat the displayed caller id",
"type":"string",
"maxLength":64
}
},
"default":{
}
},
"media":{
"description":"The media parameters for the user",
"type":"object",
"properties":{
"audio":{
"description":"The user audio media parameters",
"type":"object",
"properties":{
"codecs":{
"description":"A list of audio codecs to use",
"type":"array",
"enum":[
"G729",
"PCMU",
"PCMA",
"G722_16",
"G722_32",
"CELT_48",
"CELT_64"
],
"default":[
"PCMU"
]
}
}
},
"video":{
"description":"The user video media parameters",
"type":"object",
"properties":{
"codecs":{
"description":"A list of video codecs to use",
"type":"array",
"enum":[
"H261",
"H263",
"H264"
],
"default":[
]
}
}
}
},
"default":{
}
},
"music_on_hold":{
"description":"The user music on hold parameters",
"type":"object",
"properties":{
"media_id":{
"description":"The ID of a media object that should be used as the user music on hold",
"type":"string",
"minLength":32,
"maxLength":32
}
},
"default":{
}
},
"hotdesk":{
"description":"The user hotdesk parameters",
"type":"object",
"properties":{
"enabled":{
"description":"Determines if the user has hotdesking enabled",
"type":"boolean",
"default":false
},
"id":{
"description":"The users hotdesk id",
"type":"string",
"maxLength":15
},
"require_pin":{
"description":"Determines if user requires a pin to change the hotdesk state",
"type":"boolean",
"default":false
},
"pin":{
"description":"The users hotdesk pin number",
"type":"string",
"minLength":4,
"maxLength":15
},
"keep_logged_in_elsewhere":{
"description":"Determines if user should be able to login to mutliple phones simultaneously",
"type":"boolean",
"default":false
}
},
"default":{
}
},
"call_forward":{
"description":"The user call forward parameters",
"type":"object",
"properties":{
"enabled":{
"description":"Determines if the call forwarding should be used",
"type":"boolean",
"default":false
},
"number":{
"description":"The number to forward calls to",
"type":"string",
"maxLength":15
},
"substitute":{
"description":"Determines if the call forwarding replaces the user",
"type":"boolean",
"default":true
},
"require_keypress":{
"description":"Determines if the callee is prompted to press 1 to accept the call",
"type":"boolean",
"default":true
},
"keep_caller_id":{
"description":"Determines if the caller id is kept when the call is forwarded, if not the users caller id is used",
"type":"boolean",
"default":true
},
"direct_calls_only":{
"description":"Determines if the calls that are not directly sent to the user should be forwarded",
"type":"boolean",
"default":false
},
"ignore_early_media":{
"description":"The option to determine if early media from the call forwarded number should ignored",
"type":"boolean",
"default":true
}
},
"default":{
}
},
"notifications":{
"description":"The notifications parameters for this account",
"type":"object",
"properties":{
"voicemail_to_email":{
"description":"The voicemail to email notification parameters for this account",
"type":"object",
"properties":{
"email_text_template":{
"description":"The email html body template. Has access to an acccount, service, and voicemail object",
"type":"string"
},
"email_html_template":{
"description":"The email text body template. Has access to an acccount, service, and voicemail object",
"type":"string"
},
"email_subject_template":{
"description":"The email subject template. Has access to an acccount, service, and voicemail object",
"type":"string"
},
"support_number":{
"description":"The support number provided to the templates",
"type":"string",
"maxLength":128
},
"support_email":{
"description":"The support email provided to the templates",
"type":"string",
"maxLength":256
},
"service_url":{
"description":"The support number provided to the templates",
"type":"string",
"maxLength":128
},
"service_name":{
"description":"The service name provided",
"type":"string",
"maxLength":128
},
"service_provider":{
"description":"The service provider name",
"type":"string",
"maxLength":128
},
"send_from":{
"description":"The from address used when sending the email",
"type":"string",
"maxLength":256
}
}
}
},
"default":{
}
},
"directories":{
"type":"object",
"description":"Provides the mappings for what directory the user is a part of (the key), and what callflow (the value) to invoke if the user is selected by the caller."
}
}
}