Skip to content

Commit

Permalink
docs: update schemas to match upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
andyholmes committed Apr 16, 2024
1 parent bd0c7e8 commit 37203b4
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 8 deletions.
24 changes: 17 additions & 7 deletions doc/schemas/kdeconnect.telephony.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
{
"$schema": "http://json-schema.org/schema#",
"title": "kdeconnect.telephony",
"description": "This packet is a telephony event, such as the phone ringing.",
"description": "This packet is a telephony event, such as the phone ringing.\n\nNote that both the `sms` event type and the `messageBody` field are deprecated in favor of the SMS plugin.",
"examples": [
{
"id": 0,
"type": "kdeconnect.telephony",
"body": {
"event": "talking",
"contactName": "John Smith",
"messageBody": "A text message",
"phoneNumber": "555-555-5555",
"phoneThumbnail": "<base64 encoded JPEG>"
}
Expand All @@ -23,6 +22,17 @@
"phoneNumber": "555-555-5555",
"isCancel": true
}
},
{
"id": 0,
"type": "kdeconnect.telephony",
"body": {
"event": "sms",
"contactName": "John Smith",
"messageBody": "A text message",
"phoneNumber": "555-555-5555",
"phoneThumbnail": "<base64 encoded JPEG>"
}
}
],
"type": "object",
Expand All @@ -42,8 +52,7 @@
"body": {
"type": "object",
"required": [
"event",
"phoneNumber"
"event"
],
"properties": {
"event": {
Expand All @@ -56,15 +65,15 @@
]
},
"contactName": {
"type": ["string", "null"],
"type": "string",
"description": "The contact name associated with the event."
},
"messageBody": {
"type": "string",
"description": "The message text associated with the event."
"description": "⚠️ Deprecated: The message text associated with the event."
},
"phoneNumber": {
"type": ["string", "null"],
"type": "string",
"description": "The phone number associated with the event."
},
"phoneThumbnail": {
Expand All @@ -79,3 +88,4 @@
}
}
}

3 changes: 2 additions & 1 deletion doc/sdk/protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@
{MD_HEADER * 4} `Null`
The intentional absence of any object value.
The intentional absence of any object value. Note that this type is currently
unused in the protocol and reserved for future use.
{MD_HEADER * 3} Symbols
Expand Down

0 comments on commit 37203b4

Please sign in to comment.