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
fix(api-ApplicationPassword): Added all ApplicationPasswords API endpoints to API docs generation ZMS-136 (#645)
* List Application Passwords and Request ASP information endpoints added to API docs generation
* fixes. Added Create new Application Password endpoint to API docs generation
* Added Delete an Application Password api endpoint to API docs generation
description: Joi.string().trim().max(255).required().description('Description for the Application Password entry'),
304
+
scopes: Joi.array()
305
+
.items(
306
+
Joi.string()
307
+
.valid(...consts.SCOPES,'*')
308
+
.required()
309
+
)
310
+
.unique()
311
+
.description(
312
+
'List of scopes this Password applies to. Special scope "*" indicates that this password can be used for any scope except "master"'
313
+
),
314
+
address: Joi.string()
315
+
.empty('')
316
+
.email({tlds: false})
317
+
.description(
318
+
'E-mail address to be used as the account address in mobileconfig file. Must be one of the listed identity addresses of the user. Defaults to the main address of the user'
319
+
),
320
+
password: Joi.string()
321
+
.empty('')
322
+
.pattern(/^[a-z]{16}$/,{name: 'password'})
323
+
.description('Optional pregenerated password. Must be 16 characters, latin letters only.'),
324
+
generateMobileconfig: booleanSchema
325
+
.default(false)
326
+
.description('If true then result contains a mobileconfig formatted file with account config'),
327
+
ttl: Joi.number().empty([0,'']).description('TTL in seconds for this password. Every time password is used, TTL is reset to this value'),
328
+
sess: sessSchema,
329
+
ip: sessIPSchema
330
+
},
331
+
queryParams: {},
332
+
pathParams: {user: userId},
333
+
response: {
334
+
200: {
335
+
description: 'Success',
336
+
model: Joi.object({
337
+
success: successRes,
338
+
id: Joi.string().required().description('ID of the Application Password'),
339
+
password: Joi.string()
340
+
.required()
341
+
.description(
342
+
'Application Specific Password. Generated password is whitespace agnostic, so it could be displayed to the client as "abcd efgh ijkl mnop" instead of "abcdefghijklmnop"'
343
+
),
344
+
mobileconfig: Joi.string()
345
+
.required()
346
+
.description(
347
+
'Base64 encoded mobileconfig file. Generated profile file should be sent to the client with Content-Type value of application/x-apple-aspen-config.'
0 commit comments