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
37
38
39
40
41
42
43
44
45
46
47
48
49
|
{
"$schema": "https://json-schema.org/draft/2019-09/schema",
"$id": "file:///UpdateAction.schema.json",
"title": "UpdateActionMessage",
"description": "A template for messages that execute predetermined actions.",
"allOf": [
{ "$ref": "file:///FxMSCommon.schema.json#/$defs/Message" }
],
"type": "object",
"properties": {
"content": {
"type": "object",
"properties": {
"action": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"data": {
"type": "object",
"description": "Additional data provided as argument when executing the action",
"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"
}
}
}
},
"additionalProperties": true,
"description": "Optional action to take in addition to showing the notification",
"required": ["id", "data"]
}
},
"additionalProperties": true,
"required": ["action"]
},
"template": {
"type": "string",
"const": "update_action"
}
},
"required": ["targeting"]
}
|