upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/52.md
diff options
context:
space:
mode:
Diffstat (limited to '52.md')
-rw-r--r--52.md14
1 files changed, 12 insertions, 2 deletions
diff --git a/52.md b/52.md
index 97873ef..fb85737 100644
--- a/52.md
+++ b/52.md
@@ -187,6 +187,12 @@ This NIP is intentionally not defining who is authorized to attend a calendar ev
187 187
188This NIP is also intentionally not defining what happens if a calendar event changes after an RSVP is submitted. 188This NIP is also intentionally not defining what happens if a calendar event changes after an RSVP is submitted.
189 189
190The RSVP MUST tag the calendar event it is in response to with an `e` tag on the calendar event's id.
191
192The RSVP MAY tag use an `a` tag to the calendar event's event coordinates to indicate that the RSVP response could hold trueregardless of any future revisions to the calendar event. If the `a` tag is omitted, the author of the RSVP is explicitly indicating that its response holds true for only that specific revision of the calendar event from the `e` tag.
193
194The RSVP MAY tag the author of the calendar event it is in response to using a `p` tag so that clients can easily query all RSVPs that pertain to the author.
195
190### Format 196### Format
191 197
192The format uses a parameterized replaceable event kind `31925`. 198The format uses a parameterized replaceable event kind `31925`.
@@ -194,10 +200,12 @@ The format uses a parameterized replaceable event kind `31925`.
194The `.content` of these events is optional and should be a free-form note that adds more context to this calendar event response. 200The `.content` of these events is optional and should be a free-form note that adds more context to this calendar event response.
195 201
196The list of tags are as follows: 202The list of tags are as follows:
197* `a` (required) reference tag to kind `31922` or `31923` calendar event being responded to. 203* `e` (required) event tag to kind `31922` or `31923` calendar event being responded to.
204* `a` (optional) reference tag to kind `31922` or `31923` calendar event being responded to.
198* `d` (required) universally unique identifier. Generated by the client creating the calendar event RSVP. 205* `d` (required) universally unique identifier. Generated by the client creating the calendar event RSVP.
199* `status` (required) `accepted`, `declined`, or `tentative`. Determines attendance status to the referenced calendar event. 206* `status` (required) `accepted`, `declined`, or `tentative`. Determines attendance status to the referenced calendar event.
200* `fb` (optional) `free` or `busy`. Determines if the user would be free or busy for the duration of the calendar event. This tag must be omitted or ignored if the `status` label is set to `declined`. 207* `fb` (optional) `free` or `busy`. Determines if the user would be free or busy for the duration of the calendar event. This tag must be omitted or ignored if the `status` label is set to `declined`.
208* `p` (optional) author of the calendar event being responded to.
201 209
202```json 210```json
203{ 211{
@@ -207,10 +215,12 @@ The list of tags are as follows:
207 "kind": 31925, 215 "kind": 31925,
208 "content": "<note>", 216 "content": "<note>",
209 "tags": [ 217 "tags": [
210 ["a", "<31922 or 31923>:<calendar event author pubkey>:<d-identifier of calendar event>", "<optional relay url>"], 218 ["e", "<kind 31922 or 31923 event id", "<optional recommended relay URL>"]
219 ["a", "<31922 or 31923>:<calendar event author pubkey>:<d-identifier of calendar event>", "<optional recommended relay URL>"],
211 ["d", "<UUID>"], 220 ["d", "<UUID>"],
212 ["status", "<accepted/declined/tentative>"], 221 ["status", "<accepted/declined/tentative>"],
213 ["fb", "<free/busy>"], 222 ["fb", "<free/busy>"],
223 ["p", "<hex pubkey of kind 31922 or 31923 event>", "<optional recommended relay URL>"]
214 ] 224 ]
215} 225}
216``` 226```