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): ZMSA-74: fix api endpoints' input and output object types (#988)
* update addresses API request and response types
* fix asps input and output api types
* fix audit api input and output API types
* fix webhooks api input and output API types
* fix submit.js api input and output API types
* fix storage endpoints' input and output types
* fix settings endpoints' input and output types
* fix autoreply endpoints' input and output types
* fix certs endpoints' input and output types
* fix domainaccess endpoints' input and output types
* fix domainaliases endpoints' input and output types
* fix dkim endpoints' input and output types
* fix addresses endpoints' input and output types
* fix auth endpoints' input and output types
* fix mailboxes endpoints' input and output types
* fix general schemas, make the wildcard address regex more correct
* fix filters endpoints' input and output types
* fix messages' endpoints' input and output types
* search for messages endpoint should also return attachmentsList as getMessages endpoint
'Add a new email address for a User. Addresses can contain unicode characters. Dots in usernames are normalized so no need to create both "firstlast@example.com" and "first.last@example.com" Special addresses `*@example.com`, `*suffix@example.com` and `username@*` catches all emails to these domains or users without a registered destination (requires allowWildcard argument)',
274
+
'Add a new email address for a User. Addresses can contain unicode characters. Dots in usernames are normalized so no need to create both "firstlast@example.com" and "first.last@example.com" Special addresses `*@example.com`and `username@*` catch all emails to these domains or users without a registered destination (requires allowWildcard argument)',
275
275
tags: ['Addresses'],
276
276
validationObjs: {
277
277
requestBody: {
278
-
address: Joi.alternatives()
279
-
.try(
280
-
addressEmail,
281
-
Joi.string()
282
-
.regex(/^\w+@\*$/,'special address')
283
-
.description('Wildcard address')
284
-
)
285
-
.description('String. Either an e-mail address or a wildduck address'),
278
+
address: addressEmailOrWildcard.description('String. Either an e-mail address or a wildcard address').required(),
'Application Specific Password. Generated password is whitespace agnostic, so it could be displayed to the client as "abcd efgh ijkl mnop" instead of "abcdefghijklmnop"'
347
348
),
348
-
mobileconfig: Joi.string()
349
-
.required()
350
-
.description(
351
-
'Base64 encoded mobileconfig file. Generated profile file should be sent to the client with Content-Type value of application/x-apple-aspen-config.'
address: Joi.string().required().description('Account address or the address specified in params of this endpoint')
349
+
mobileconfig: Joi.string().description(
350
+
'Base64 encoded mobileconfig file. Present when generateMobileconfig is true. Generated profile file should be sent to the client with Content-Type value of application/x-apple-aspen-config.'
351
+
),
352
+
name: Joi.string().description('Account name. Present when generateMobileconfig is true.'),
353
+
address: Joi.string().description('Account address or the address specified in params of this endpoint. Present when generateMobileconfig is true.')
0 commit comments