emptyem-webex/folder_actions-api/schema.json

98 lines
2.3 KiB
JSON

[
{
"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": "onEmptyTrash",
"type": "function",
"description": "Fired when Trash folders are emptied",
"parameters": []
},
{
"name": "onEmptyJunk",
"type": "function",
"description": "Fired when Junk folders are emptied",
"parameters": []
}
],
"types": [
{
"id": "MailFolder",
"type": "object",
"description": "Information about a mail folder",
"properties": {
"name": {
"type": "string",
"description": "Name of the folder to be emptied"
}
}
},
{
"id": "ApiOptions",
"type": "object",
"description": "Folder API options",
"properties": {
"consoleDebug": {
"type": "integer",
"minimum": 0,
"optional": true,
"description": "If set to 1, debug messages are printed out in console log"
},
"alsoCompact": {
"type": "integer",
"minimum": 0,
"optional": true,
"description": "If set to 1, also compact folder after emptying"
}
}
}
],
"functions": [
{
"name": "setOptions",
"type": "function",
"description": "Sets options for this API",
"parameters": [
{
"name": "options",
"$ref": "ApiOptions",
"description": "API Options object"
}
]
},
{
"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