-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbluebubbles-webhook.schema.json
More file actions
63 lines (63 loc) · 2 KB
/
Copy pathbluebubbles-webhook.schema.json
File metadata and controls
63 lines (63 loc) · 2 KB
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://bubblepilot.local/contracts/bluebubbles-webhook.schema.json",
"title": "BlueBubbles new-message webhook",
"type": "object",
"required": ["type", "data"],
"properties": {
"type": { "const": "new-message" },
"data": {
"type": "object",
"required": ["guid", "dateCreated", "isFromMe", "chats"],
"properties": {
"guid": { "type": "string", "minLength": 1 },
"text": { "type": ["string", "null"] },
"dateCreated": { "type": "integer", "minimum": 0 },
"isFromMe": { "type": "boolean" },
"handle": {
"oneOf": [
{ "type": "null" },
{
"type": "object",
"required": ["address"],
"properties": { "address": { "type": "string", "minLength": 1 } },
"additionalProperties": true
}
]
},
"chats": {
"type": "array",
"minItems": 1,
"items": {
"type": "object",
"required": ["guid"],
"properties": {
"guid": { "type": "string", "minLength": 1 },
"style": { "type": "integer" },
"displayName": { "type": ["string", "null"] },
"chatIdentifier": { "type": ["string", "null"] }
},
"additionalProperties": true
}
},
"attachments": {
"type": "array",
"items": {
"type": "object",
"required": ["guid"],
"properties": {
"guid": { "type": "string", "minLength": 1 },
"mimeType": { "type": ["string", "null"] },
"transferName": { "type": ["string", "null"] },
"totalBytes": { "type": ["integer", "null"], "minimum": 0 }
},
"additionalProperties": true
},
"default": []
}
},
"additionalProperties": true
}
},
"additionalProperties": true
}