Skip to content

Commit 5dcade7

Browse files
committed
update getMessages endpoint - set the correct bimi response type
1 parent 3dfe218 commit 5dcade7

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

lib/api/messages.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -405,9 +405,12 @@ module.exports = (db, server, messageHandler, userHandler, storageHandler, setti
405405
answered: booleanSchema.required().description('Does this message have a Answered flag'),
406406
forwarded: booleanSchema.required().description('Does this message have a $Forwarded flag'),
407407
references: Joi.array().items(ReferenceWithAttachments).required().description('References'),
408-
bimi: Bimi.required().description(
409-
'Marks BIMI verification as passed for a domain. NB! BIMI record and logo files for the domain must be valid.'
410-
),
408+
bimi: Joi.object({
409+
certified: booleanSchema.description('If true, then this logo is from a VMC file'),
410+
url: Joi.string().description('URL of the resource the logo was retrieved from'),
411+
image: Joi.string().description('Data URL for the SVG image'),
412+
type: Joi.string().valid('VMC', 'CMC').description('Certificate type (only for VMC files)')
413+
}).description('BIMI logo info. If logo validation failed in any way, then this property is not set'),
411414
contentType: Joi.object({
412415
value: Joi.string().required().description('MIME type of the message, eg. "multipart/mixed"'),
413416
params: Joi.object().required().description('An object with Content-Type params as key-value pairs')

0 commit comments

Comments
 (0)