mirror of
https://github.com/nostr-protocol/nips.git
synced 2024-12-22 16:35:52 -05:00
Update 107.md
This commit is contained in:
parent
dcfb78932f
commit
0984355d91
8
107.md
8
107.md
|
@ -58,15 +58,15 @@ This message is sent by a `user` to a `device`. The `device` saves the config lo
|
|||
"description": <String (optional), device description>,
|
||||
"categories":[ <String (optional), device category, such as 'boiler'>],
|
||||
"send_to_pubkeys":[ [<String (optional), user public-key>]],
|
||||
"commands_from_pubkeys":[ [<String (optional), user public-key>]],
|
||||
"intents_from_pubkeys":[ [<String (optional), user public-key>]],
|
||||
}
|
||||
```
|
||||
|
||||
| Field | Description |
|
||||
|---|---|
|
||||
| `admin_pubkeys` | List of public keys that are allowed to configure this device.<br>A fresh/blank device will not have this value, so the first received `"type: 0"` should set it. |
|
||||
| `send_to_pubkeys` | |
|
||||
| `commands_from_pubkeys` | |
|
||||
| `admin_pubkeys` | List of public keys that are allowed to configure this device.<br>A fresh/blank device will not have this value, so the first received `"type: 0"` should set it.<br/> The `admin_pubkeys` implicitly have the `actions_from_pubkeys` permissions. |
|
||||
| `send_to_pubkeys` | List of public keys to which events are published. |
|
||||
| `actions_from_pubkeys` | List of public keys that are allowed to trigger an action on this device.<br/> The `admin_pubkeys` implicitly have the `actions_from_pubkeys` permissions. |
|
||||
|
||||
### Event: Update a `device`
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user