22import { doveadm_arg_types ,
33 doveadm_args_query ,
44 doveadm_args_usermask ,
5- doveadm_flag_types } from '../lib/doveadm.js'
5+ doveadm_flag_types ,
6+ doveadm_response_types } from '../lib/doveadm.js'
67
78export const doveadm = {
89
@@ -51,8 +52,21 @@ export const doveadm = {
5152 // deprecated: {},
5253 // removed: {},
5354
54- // Fields/Values returned. Values are rendered w/Markdown.
55- // fields: {},
55+ // Response data.
56+ // KEY = identifier
57+ // response: {
58+ // key: {
59+ // // An example value to be used in documentation.
60+ // example: 0,
61+ //
62+ // // The description of the response data type.
63+ // // Rendered w/Markdown.
64+ // text: `Description`,
65+ //
66+ // // The response data type
67+ // type: doveadm_response_types.INTEGER,
68+ // }
69+ // },
5670
5771 // What doveadm flags does this command support (bit field)
5872 // Arguments are automatically added for each flag set
@@ -237,8 +251,11 @@ Applicable to [[link,mdbox]] and [[link,sdbox]] mailbox formats only.
237251 text : `UID of user to apply operation to.` ,
238252 } ,
239253 } ,
240- fields : {
241- 'entries' : 0
254+ response : {
255+ entries : {
256+ type : doveadm_response_types . INTEGER ,
257+ text : `The number of cache entries flushed.`
258+ } ,
242259 } ,
243260 man : 'doveadm-auth' ,
244261 text : `Flush authentication cache.` ,
@@ -1355,7 +1372,7 @@ to secure it.
13551372 text : `Mailbox mask.`
13561373 } ,
13571374 } ,
1358- fields : { } ,
1375+ response : { } ,
13591376 flags : doveadm_flag_types . USER ,
13601377 plugin : 'mail-crypt' ,
13611378 man : 'doveadm-mailbox-cryptokey' ,
@@ -1375,7 +1392,7 @@ to secure it.
13751392 text : `Mailbox mask.`
13761393 } ,
13771394 } ,
1378- fields : { } ,
1395+ response : { } ,
13791396 flags : doveadm_flag_types . USER ,
13801397 plugin : 'mail-crypt' ,
13811398 man : 'doveadm-mailbox-cryptokey' ,
@@ -1410,7 +1427,7 @@ to secure it.
14101427 text : `Old password.`
14111428 } ,
14121429 } ,
1413- fields : { } ,
1430+ response : { } ,
14141431 flags : doveadm_flag_types . USER ,
14151432 plugin : 'mail-crypt' ,
14161433 man : 'doveadm-mailbox-cryptokey' ,
0 commit comments