[ { "namespace": "manifest", "types": [ { "$extend": "WebExtensionManifest", "properties": { "folder_actions": { "type": "object", "additionalProperties": { "$ref": "UnrecognizedProperty" }, "properties": { "name": { "type": "string", "preprocess": "localize" } }, "optional": true } } } ] }, { "namespace": "folder_actions", "events": [ { "name": "onEmptyFolder", "type": "function", "description": "Fired when a folder is emptied", "parameters": [ { "name": "folderName", "$ref": "MailFolder", "description": "The folder to be emptied" } ] } ], "types": [ { "id": "MailFolder", "type": "object", "description": "Information about a mail folder", "properties": { "name": { "type": "string", "description": "Name of the folder to be emptied" } } } ], "functions": [ { "name": "emptyFolder", "type": "function", "description": "Empties specified mail folder", "parameters": [ { "name": "folderName", "$ref": "MailFolder", "description": "The mail folder to empty" } ] }, { "name": "emptyTrashFolders", "type": "function", "description": "Empties Trash folders in all accounts", "parameters": [] }, { "name": "emptyJunkFolders", "type": "function", "description": "Empties Junk folders in all accounts", "parameters": [] } ] } ] // vim: ts=2 sw=2 sts=2 et