tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

UpdateAction.schema.json (1474B)


      1 {
      2  "$schema": "https://json-schema.org/draft/2019-09/schema",
      3  "$id": "file:///UpdateAction.schema.json",
      4  "title": "UpdateActionMessage",
      5  "description": "A template for messages that execute predetermined actions.",
      6  "allOf": [{ "$ref": "file:///FxMSCommon.schema.json#/$defs/Message" }],
      7  "type": "object",
      8  "properties": {
      9    "content": {
     10      "type": "object",
     11      "properties": {
     12        "action": {
     13          "type": "object",
     14          "properties": {
     15            "id": {
     16              "type": "string"
     17            },
     18            "data": {
     19              "type": "object",
     20              "description": "Additional data provided as argument when executing the action",
     21              "properties": {
     22                "url": {
     23                  "type": "string",
     24                  "description": "URL data to be used as argument to the action"
     25                },
     26                "expireDelta": {
     27                  "type": "number",
     28                  "description": "Expiration timestamp to be used as argument to the action"
     29                }
     30              }
     31            }
     32          },
     33          "additionalProperties": true,
     34          "description": "Optional action to take in addition to showing the notification",
     35          "required": ["id", "data"]
     36        }
     37      },
     38      "additionalProperties": true,
     39      "required": ["action"]
     40    },
     41    "template": {
     42      "type": "string",
     43      "const": "update_action"
     44    }
     45  },
     46  "required": ["targeting"]
     47 }