summaryrefslogtreecommitdiffstats
path: root/browser/components/newtab/content-src/asrouter/templates/OnboardingMessage/UpdateAction.schema.json
blob: 7624c67d4c2bd5a658cab7b01833697b0835ea4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{
  "title": "UpdateActionMessage",
  "description": "A template for messages that execute predetermined actions.",
  "version": "1.0.0",
  "type": "object",
  "properties": {
    "action": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "data": {
          "type": "object",
          "properties": {
            "url": {
              "type": "string",
              "description": "URL data to be used as argument to the action"
            },
            "expireDelta": {
              "type": "number",
              "description": "Expiration timestamp to be used as argument to the action"
            }
          }
        },
        "description": "Additional data provided as argument when executing the action"
      },
      "additionalProperties": false,
      "description": "Optional action to take in addition to showing the notification"
    },
    "additionalProperties": false,
    "required": ["id", "action"]
  },
  "additionalProperties": false,
  "required": ["action"]
}