diff --git a/22.md b/22.md index 2b67bc9d..b96d512e 100644 --- a/22.md +++ b/22.md @@ -12,13 +12,13 @@ Traditional static content limits user interaction and engagement. Smart Widgets A new addressable event kind is proposed for Smart Widgets kind 30031. This event kind will encapsulate the data necessary to render and interact with the Smart Widgets. ## Event Structure -The content of these events `MUST` be of a specified **MIME types** in a corresponding `m` tag. It is required and can't be empty. For more info about **MIME types** [see](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types) +The content of these events `MUST` be of a specified **MIME type** in a corresponding `m` tag. It is required and can't be empty. For more info about **MIME type** [see](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types) The list of tags are as follows: `d` (required) universally unique identifier (UUID). Generated by the client creating the smart widget event. -`m` (required) allows clients to easily know **MIME types** before proceeding it. +`m` (required) allows clients to easily know **MIME type** before proceeding it. `title` (optional) title of the smart widget. @@ -55,27 +55,11 @@ A stringified JSON of the kind 30031 smart widget would look like this: "created_at": 1725194263529, "kind": 30031, "tags": [ - [ - "d", - "534304df-be5e-47bf-a761-1e6515e3ca75" - ], - [ - "m", - "image/svg+xml" - ], - [ - "client", - "My Client", - "31990:app1-pubkey:" - ], - [ - "title", - "Learn how to set up Nostr Relay with relays.xport.top article" - ], - [ - "summary", - "Take control of your relay lists, or let them control you." - ] + ["d", "534304df-be5e-47bf-a761-1e6515e3ca75"], + ["m", "image/svg+xml"], + ["client", "My Client", "31990:app1-pubkey:"], + ["title", "Learn how to set up Nostr Relay with relays.xport.top article"], + ["summary", "Take control of your relay lists, or let them control you."] ], "content": "", "pubkey": "b12e28991eae808d408208743f382d99b777c51887286c6002258b5bed9d9c8b",