tauri-plugin-nostr-native 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +105 -0
- package/dist-js/index.cjs +61 -0
- package/dist-js/index.d.ts +13 -0
- package/dist-js/index.js +52 -0
- package/package.json +38 -0
- package/permissions/autogenerated/commands/blossom_get_blob.toml +13 -0
- package/permissions/autogenerated/commands/blossom_mirror.toml +13 -0
- package/permissions/autogenerated/commands/blossom_upload.toml +13 -0
- package/permissions/autogenerated/commands/blossom_upload_content.toml +13 -0
- package/permissions/autogenerated/commands/create_discovery_event.toml +13 -0
- package/permissions/autogenerated/commands/decrypt_discovery_event.toml +13 -0
- package/permissions/autogenerated/commands/decrypt_pns_event.toml +13 -0
- package/permissions/autogenerated/commands/delete_calendar.toml +13 -0
- package/permissions/autogenerated/commands/delete_calendar_event.toml +13 -0
- package/permissions/autogenerated/commands/delete_chat_messages.toml +13 -0
- package/permissions/autogenerated/commands/derive_pns_keys.toml +13 -0
- package/permissions/autogenerated/commands/fetch_bookmarks.toml +13 -0
- package/permissions/autogenerated/commands/fetch_calendar_events.toml +13 -0
- package/permissions/autogenerated/commands/fetch_calendars.toml +13 -0
- package/permissions/autogenerated/commands/fetch_contact_list.toml +13 -0
- package/permissions/autogenerated/commands/fetch_discovery_events.toml +13 -0
- package/permissions/autogenerated/commands/fetch_event_details.toml +13 -0
- package/permissions/autogenerated/commands/fetch_pns_events.toml +13 -0
- package/permissions/autogenerated/commands/fetch_profiles.toml +13 -0
- package/permissions/autogenerated/commands/fetch_received_rsvps.toml +13 -0
- package/permissions/autogenerated/commands/fetch_rsvps.toml +13 -0
- package/permissions/autogenerated/commands/fetch_user_rsvps.toml +13 -0
- package/permissions/autogenerated/commands/generate_new_nsec.toml +13 -0
- package/permissions/autogenerated/commands/parse_pubkey.toml +13 -0
- package/permissions/autogenerated/commands/publish_batch_calendar_events.toml +13 -0
- package/permissions/autogenerated/commands/publish_calendar.toml +13 -0
- package/permissions/autogenerated/commands/publish_calendar_event.toml +13 -0
- package/permissions/autogenerated/commands/publish_chat_message.toml +13 -0
- package/permissions/autogenerated/commands/publish_rsvp.toml +13 -0
- package/permissions/autogenerated/commands/remove_bookmark.toml +13 -0
- package/permissions/autogenerated/commands/save_bookmark.toml +13 -0
- package/permissions/autogenerated/commands/send_direct_message.toml +13 -0
- package/permissions/autogenerated/commands/update_contact_list.toml +13 -0
- package/permissions/autogenerated/commands/verify_nsec.toml +13 -0
- package/permissions/autogenerated/reference.md +934 -0
- package/permissions/default.toml +38 -0
- package/permissions/schemas/schema.json +714 -0
|
@@ -0,0 +1,714 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"title": "PermissionFile",
|
|
4
|
+
"description": "Permission file that can define a default permission, a set of permissions or a list of inlined permissions.",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"default": {
|
|
8
|
+
"description": "The default permission set for the plugin",
|
|
9
|
+
"anyOf": [
|
|
10
|
+
{
|
|
11
|
+
"$ref": "#/definitions/DefaultPermission"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"type": "null"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
},
|
|
18
|
+
"set": {
|
|
19
|
+
"description": "A list of permissions sets defined",
|
|
20
|
+
"type": "array",
|
|
21
|
+
"items": {
|
|
22
|
+
"$ref": "#/definitions/PermissionSet"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"permission": {
|
|
26
|
+
"description": "A list of inlined permissions",
|
|
27
|
+
"default": [],
|
|
28
|
+
"type": "array",
|
|
29
|
+
"items": {
|
|
30
|
+
"$ref": "#/definitions/Permission"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"definitions": {
|
|
35
|
+
"DefaultPermission": {
|
|
36
|
+
"description": "The default permission set of the plugin.\n\nWorks similarly to a permission with the \"default\" identifier.",
|
|
37
|
+
"type": "object",
|
|
38
|
+
"required": [
|
|
39
|
+
"permissions"
|
|
40
|
+
],
|
|
41
|
+
"properties": {
|
|
42
|
+
"version": {
|
|
43
|
+
"description": "The version of the permission.",
|
|
44
|
+
"type": [
|
|
45
|
+
"integer",
|
|
46
|
+
"null"
|
|
47
|
+
],
|
|
48
|
+
"format": "uint64",
|
|
49
|
+
"minimum": 1.0
|
|
50
|
+
},
|
|
51
|
+
"description": {
|
|
52
|
+
"description": "Human-readable description of what the permission does. Tauri convention is to use `<h4>` headings in markdown content for Tauri documentation generation purposes.",
|
|
53
|
+
"type": [
|
|
54
|
+
"string",
|
|
55
|
+
"null"
|
|
56
|
+
]
|
|
57
|
+
},
|
|
58
|
+
"permissions": {
|
|
59
|
+
"description": "All permissions this set contains.",
|
|
60
|
+
"type": "array",
|
|
61
|
+
"items": {
|
|
62
|
+
"type": "string"
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"PermissionSet": {
|
|
68
|
+
"description": "A set of direct permissions grouped together under a new name.",
|
|
69
|
+
"type": "object",
|
|
70
|
+
"required": [
|
|
71
|
+
"description",
|
|
72
|
+
"identifier",
|
|
73
|
+
"permissions"
|
|
74
|
+
],
|
|
75
|
+
"properties": {
|
|
76
|
+
"identifier": {
|
|
77
|
+
"description": "A unique identifier for the permission.",
|
|
78
|
+
"type": "string"
|
|
79
|
+
},
|
|
80
|
+
"description": {
|
|
81
|
+
"description": "Human-readable description of what the permission does.",
|
|
82
|
+
"type": "string"
|
|
83
|
+
},
|
|
84
|
+
"permissions": {
|
|
85
|
+
"description": "All permissions this set contains.",
|
|
86
|
+
"type": "array",
|
|
87
|
+
"items": {
|
|
88
|
+
"$ref": "#/definitions/PermissionKind"
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
"Permission": {
|
|
94
|
+
"description": "Descriptions of explicit privileges of commands.\n\nIt can enable commands to be accessible in the frontend of the application.\n\nIf the scope is defined it can be used to fine grain control the access of individual or multiple commands.",
|
|
95
|
+
"type": "object",
|
|
96
|
+
"required": [
|
|
97
|
+
"identifier"
|
|
98
|
+
],
|
|
99
|
+
"properties": {
|
|
100
|
+
"version": {
|
|
101
|
+
"description": "The version of the permission.",
|
|
102
|
+
"type": [
|
|
103
|
+
"integer",
|
|
104
|
+
"null"
|
|
105
|
+
],
|
|
106
|
+
"format": "uint64",
|
|
107
|
+
"minimum": 1.0
|
|
108
|
+
},
|
|
109
|
+
"identifier": {
|
|
110
|
+
"description": "A unique identifier for the permission.",
|
|
111
|
+
"type": "string"
|
|
112
|
+
},
|
|
113
|
+
"description": {
|
|
114
|
+
"description": "Human-readable description of what the permission does. Tauri internal convention is to use `<h4>` headings in markdown content for Tauri documentation generation purposes.",
|
|
115
|
+
"type": [
|
|
116
|
+
"string",
|
|
117
|
+
"null"
|
|
118
|
+
]
|
|
119
|
+
},
|
|
120
|
+
"commands": {
|
|
121
|
+
"description": "Allowed or denied commands when using this permission.",
|
|
122
|
+
"default": {
|
|
123
|
+
"allow": [],
|
|
124
|
+
"deny": []
|
|
125
|
+
},
|
|
126
|
+
"allOf": [
|
|
127
|
+
{
|
|
128
|
+
"$ref": "#/definitions/Commands"
|
|
129
|
+
}
|
|
130
|
+
]
|
|
131
|
+
},
|
|
132
|
+
"scope": {
|
|
133
|
+
"description": "Allowed or denied scoped when using this permission.",
|
|
134
|
+
"allOf": [
|
|
135
|
+
{
|
|
136
|
+
"$ref": "#/definitions/Scopes"
|
|
137
|
+
}
|
|
138
|
+
]
|
|
139
|
+
},
|
|
140
|
+
"platforms": {
|
|
141
|
+
"description": "Target platforms this permission applies. By default all platforms are affected by this permission.",
|
|
142
|
+
"type": [
|
|
143
|
+
"array",
|
|
144
|
+
"null"
|
|
145
|
+
],
|
|
146
|
+
"items": {
|
|
147
|
+
"$ref": "#/definitions/Target"
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
"Commands": {
|
|
153
|
+
"description": "Allowed and denied commands inside a permission.\n\nIf two commands clash inside of `allow` and `deny`, it should be denied by default.",
|
|
154
|
+
"type": "object",
|
|
155
|
+
"properties": {
|
|
156
|
+
"allow": {
|
|
157
|
+
"description": "Allowed command.",
|
|
158
|
+
"default": [],
|
|
159
|
+
"type": "array",
|
|
160
|
+
"items": {
|
|
161
|
+
"type": "string"
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
"deny": {
|
|
165
|
+
"description": "Denied command, which takes priority.",
|
|
166
|
+
"default": [],
|
|
167
|
+
"type": "array",
|
|
168
|
+
"items": {
|
|
169
|
+
"type": "string"
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
"Scopes": {
|
|
175
|
+
"description": "An argument for fine grained behavior control of Tauri commands.\n\nIt can be of any serde serializable type and is used to allow or prevent certain actions inside a Tauri command. The configured scope is passed to the command and will be enforced by the command implementation.\n\n## Example\n\n```json { \"allow\": [{ \"path\": \"$HOME/**\" }], \"deny\": [{ \"path\": \"$HOME/secret.txt\" }] } ```",
|
|
176
|
+
"type": "object",
|
|
177
|
+
"properties": {
|
|
178
|
+
"allow": {
|
|
179
|
+
"description": "Data that defines what is allowed by the scope.",
|
|
180
|
+
"type": [
|
|
181
|
+
"array",
|
|
182
|
+
"null"
|
|
183
|
+
],
|
|
184
|
+
"items": {
|
|
185
|
+
"$ref": "#/definitions/Value"
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
"deny": {
|
|
189
|
+
"description": "Data that defines what is denied by the scope. This should be prioritized by validation logic.",
|
|
190
|
+
"type": [
|
|
191
|
+
"array",
|
|
192
|
+
"null"
|
|
193
|
+
],
|
|
194
|
+
"items": {
|
|
195
|
+
"$ref": "#/definitions/Value"
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
},
|
|
200
|
+
"Value": {
|
|
201
|
+
"description": "All supported ACL values.",
|
|
202
|
+
"anyOf": [
|
|
203
|
+
{
|
|
204
|
+
"description": "Represents a null JSON value.",
|
|
205
|
+
"type": "null"
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"description": "Represents a [`bool`].",
|
|
209
|
+
"type": "boolean"
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"description": "Represents a valid ACL [`Number`].",
|
|
213
|
+
"allOf": [
|
|
214
|
+
{
|
|
215
|
+
"$ref": "#/definitions/Number"
|
|
216
|
+
}
|
|
217
|
+
]
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"description": "Represents a [`String`].",
|
|
221
|
+
"type": "string"
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
"description": "Represents a list of other [`Value`]s.",
|
|
225
|
+
"type": "array",
|
|
226
|
+
"items": {
|
|
227
|
+
"$ref": "#/definitions/Value"
|
|
228
|
+
}
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
"description": "Represents a map of [`String`] keys to [`Value`]s.",
|
|
232
|
+
"type": "object",
|
|
233
|
+
"additionalProperties": {
|
|
234
|
+
"$ref": "#/definitions/Value"
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
]
|
|
238
|
+
},
|
|
239
|
+
"Number": {
|
|
240
|
+
"description": "A valid ACL number.",
|
|
241
|
+
"anyOf": [
|
|
242
|
+
{
|
|
243
|
+
"description": "Represents an [`i64`].",
|
|
244
|
+
"type": "integer",
|
|
245
|
+
"format": "int64"
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
"description": "Represents a [`f64`].",
|
|
249
|
+
"type": "number",
|
|
250
|
+
"format": "double"
|
|
251
|
+
}
|
|
252
|
+
]
|
|
253
|
+
},
|
|
254
|
+
"Target": {
|
|
255
|
+
"description": "Platform target.",
|
|
256
|
+
"oneOf": [
|
|
257
|
+
{
|
|
258
|
+
"description": "MacOS.",
|
|
259
|
+
"type": "string",
|
|
260
|
+
"enum": [
|
|
261
|
+
"macOS"
|
|
262
|
+
]
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
"description": "Windows.",
|
|
266
|
+
"type": "string",
|
|
267
|
+
"enum": [
|
|
268
|
+
"windows"
|
|
269
|
+
]
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
"description": "Linux.",
|
|
273
|
+
"type": "string",
|
|
274
|
+
"enum": [
|
|
275
|
+
"linux"
|
|
276
|
+
]
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
"description": "Android.",
|
|
280
|
+
"type": "string",
|
|
281
|
+
"enum": [
|
|
282
|
+
"android"
|
|
283
|
+
]
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
"description": "iOS.",
|
|
287
|
+
"type": "string",
|
|
288
|
+
"enum": [
|
|
289
|
+
"iOS"
|
|
290
|
+
]
|
|
291
|
+
}
|
|
292
|
+
]
|
|
293
|
+
},
|
|
294
|
+
"PermissionKind": {
|
|
295
|
+
"type": "string",
|
|
296
|
+
"oneOf": [
|
|
297
|
+
{
|
|
298
|
+
"description": "Enables the blossom_get_blob command without any pre-configured scope.",
|
|
299
|
+
"type": "string",
|
|
300
|
+
"const": "allow-blossom-get-blob",
|
|
301
|
+
"markdownDescription": "Enables the blossom_get_blob command without any pre-configured scope."
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
"description": "Denies the blossom_get_blob command without any pre-configured scope.",
|
|
305
|
+
"type": "string",
|
|
306
|
+
"const": "deny-blossom-get-blob",
|
|
307
|
+
"markdownDescription": "Denies the blossom_get_blob command without any pre-configured scope."
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
"description": "Enables the blossom_mirror command without any pre-configured scope.",
|
|
311
|
+
"type": "string",
|
|
312
|
+
"const": "allow-blossom-mirror",
|
|
313
|
+
"markdownDescription": "Enables the blossom_mirror command without any pre-configured scope."
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
"description": "Denies the blossom_mirror command without any pre-configured scope.",
|
|
317
|
+
"type": "string",
|
|
318
|
+
"const": "deny-blossom-mirror",
|
|
319
|
+
"markdownDescription": "Denies the blossom_mirror command without any pre-configured scope."
|
|
320
|
+
},
|
|
321
|
+
{
|
|
322
|
+
"description": "Enables the blossom_upload command without any pre-configured scope.",
|
|
323
|
+
"type": "string",
|
|
324
|
+
"const": "allow-blossom-upload",
|
|
325
|
+
"markdownDescription": "Enables the blossom_upload command without any pre-configured scope."
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
"description": "Denies the blossom_upload command without any pre-configured scope.",
|
|
329
|
+
"type": "string",
|
|
330
|
+
"const": "deny-blossom-upload",
|
|
331
|
+
"markdownDescription": "Denies the blossom_upload command without any pre-configured scope."
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
"description": "Enables the blossom_upload_content command without any pre-configured scope.",
|
|
335
|
+
"type": "string",
|
|
336
|
+
"const": "allow-blossom-upload-content",
|
|
337
|
+
"markdownDescription": "Enables the blossom_upload_content command without any pre-configured scope."
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
"description": "Denies the blossom_upload_content command without any pre-configured scope.",
|
|
341
|
+
"type": "string",
|
|
342
|
+
"const": "deny-blossom-upload-content",
|
|
343
|
+
"markdownDescription": "Denies the blossom_upload_content command without any pre-configured scope."
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
"description": "Enables the create_discovery_event command without any pre-configured scope.",
|
|
347
|
+
"type": "string",
|
|
348
|
+
"const": "allow-create-discovery-event",
|
|
349
|
+
"markdownDescription": "Enables the create_discovery_event command without any pre-configured scope."
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
"description": "Denies the create_discovery_event command without any pre-configured scope.",
|
|
353
|
+
"type": "string",
|
|
354
|
+
"const": "deny-create-discovery-event",
|
|
355
|
+
"markdownDescription": "Denies the create_discovery_event command without any pre-configured scope."
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
"description": "Enables the decrypt_discovery_event command without any pre-configured scope.",
|
|
359
|
+
"type": "string",
|
|
360
|
+
"const": "allow-decrypt-discovery-event",
|
|
361
|
+
"markdownDescription": "Enables the decrypt_discovery_event command without any pre-configured scope."
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
"description": "Denies the decrypt_discovery_event command without any pre-configured scope.",
|
|
365
|
+
"type": "string",
|
|
366
|
+
"const": "deny-decrypt-discovery-event",
|
|
367
|
+
"markdownDescription": "Denies the decrypt_discovery_event command without any pre-configured scope."
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
"description": "Enables the decrypt_pns_event command without any pre-configured scope.",
|
|
371
|
+
"type": "string",
|
|
372
|
+
"const": "allow-decrypt-pns-event",
|
|
373
|
+
"markdownDescription": "Enables the decrypt_pns_event command without any pre-configured scope."
|
|
374
|
+
},
|
|
375
|
+
{
|
|
376
|
+
"description": "Denies the decrypt_pns_event command without any pre-configured scope.",
|
|
377
|
+
"type": "string",
|
|
378
|
+
"const": "deny-decrypt-pns-event",
|
|
379
|
+
"markdownDescription": "Denies the decrypt_pns_event command without any pre-configured scope."
|
|
380
|
+
},
|
|
381
|
+
{
|
|
382
|
+
"description": "Enables the delete_calendar command without any pre-configured scope.",
|
|
383
|
+
"type": "string",
|
|
384
|
+
"const": "allow-delete-calendar",
|
|
385
|
+
"markdownDescription": "Enables the delete_calendar command without any pre-configured scope."
|
|
386
|
+
},
|
|
387
|
+
{
|
|
388
|
+
"description": "Denies the delete_calendar command without any pre-configured scope.",
|
|
389
|
+
"type": "string",
|
|
390
|
+
"const": "deny-delete-calendar",
|
|
391
|
+
"markdownDescription": "Denies the delete_calendar command without any pre-configured scope."
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
"description": "Enables the delete_calendar_event command without any pre-configured scope.",
|
|
395
|
+
"type": "string",
|
|
396
|
+
"const": "allow-delete-calendar-event",
|
|
397
|
+
"markdownDescription": "Enables the delete_calendar_event command without any pre-configured scope."
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
"description": "Denies the delete_calendar_event command without any pre-configured scope.",
|
|
401
|
+
"type": "string",
|
|
402
|
+
"const": "deny-delete-calendar-event",
|
|
403
|
+
"markdownDescription": "Denies the delete_calendar_event command without any pre-configured scope."
|
|
404
|
+
},
|
|
405
|
+
{
|
|
406
|
+
"description": "Enables the delete_chat_messages command without any pre-configured scope.",
|
|
407
|
+
"type": "string",
|
|
408
|
+
"const": "allow-delete-chat-messages",
|
|
409
|
+
"markdownDescription": "Enables the delete_chat_messages command without any pre-configured scope."
|
|
410
|
+
},
|
|
411
|
+
{
|
|
412
|
+
"description": "Denies the delete_chat_messages command without any pre-configured scope.",
|
|
413
|
+
"type": "string",
|
|
414
|
+
"const": "deny-delete-chat-messages",
|
|
415
|
+
"markdownDescription": "Denies the delete_chat_messages command without any pre-configured scope."
|
|
416
|
+
},
|
|
417
|
+
{
|
|
418
|
+
"description": "Enables the derive_pns_keys command without any pre-configured scope.",
|
|
419
|
+
"type": "string",
|
|
420
|
+
"const": "allow-derive-pns-keys",
|
|
421
|
+
"markdownDescription": "Enables the derive_pns_keys command without any pre-configured scope."
|
|
422
|
+
},
|
|
423
|
+
{
|
|
424
|
+
"description": "Denies the derive_pns_keys command without any pre-configured scope.",
|
|
425
|
+
"type": "string",
|
|
426
|
+
"const": "deny-derive-pns-keys",
|
|
427
|
+
"markdownDescription": "Denies the derive_pns_keys command without any pre-configured scope."
|
|
428
|
+
},
|
|
429
|
+
{
|
|
430
|
+
"description": "Enables the fetch_bookmarks command without any pre-configured scope.",
|
|
431
|
+
"type": "string",
|
|
432
|
+
"const": "allow-fetch-bookmarks",
|
|
433
|
+
"markdownDescription": "Enables the fetch_bookmarks command without any pre-configured scope."
|
|
434
|
+
},
|
|
435
|
+
{
|
|
436
|
+
"description": "Denies the fetch_bookmarks command without any pre-configured scope.",
|
|
437
|
+
"type": "string",
|
|
438
|
+
"const": "deny-fetch-bookmarks",
|
|
439
|
+
"markdownDescription": "Denies the fetch_bookmarks command without any pre-configured scope."
|
|
440
|
+
},
|
|
441
|
+
{
|
|
442
|
+
"description": "Enables the fetch_calendar_events command without any pre-configured scope.",
|
|
443
|
+
"type": "string",
|
|
444
|
+
"const": "allow-fetch-calendar-events",
|
|
445
|
+
"markdownDescription": "Enables the fetch_calendar_events command without any pre-configured scope."
|
|
446
|
+
},
|
|
447
|
+
{
|
|
448
|
+
"description": "Denies the fetch_calendar_events command without any pre-configured scope.",
|
|
449
|
+
"type": "string",
|
|
450
|
+
"const": "deny-fetch-calendar-events",
|
|
451
|
+
"markdownDescription": "Denies the fetch_calendar_events command without any pre-configured scope."
|
|
452
|
+
},
|
|
453
|
+
{
|
|
454
|
+
"description": "Enables the fetch_calendars command without any pre-configured scope.",
|
|
455
|
+
"type": "string",
|
|
456
|
+
"const": "allow-fetch-calendars",
|
|
457
|
+
"markdownDescription": "Enables the fetch_calendars command without any pre-configured scope."
|
|
458
|
+
},
|
|
459
|
+
{
|
|
460
|
+
"description": "Denies the fetch_calendars command without any pre-configured scope.",
|
|
461
|
+
"type": "string",
|
|
462
|
+
"const": "deny-fetch-calendars",
|
|
463
|
+
"markdownDescription": "Denies the fetch_calendars command without any pre-configured scope."
|
|
464
|
+
},
|
|
465
|
+
{
|
|
466
|
+
"description": "Enables the fetch_contact_list command without any pre-configured scope.",
|
|
467
|
+
"type": "string",
|
|
468
|
+
"const": "allow-fetch-contact-list",
|
|
469
|
+
"markdownDescription": "Enables the fetch_contact_list command without any pre-configured scope."
|
|
470
|
+
},
|
|
471
|
+
{
|
|
472
|
+
"description": "Denies the fetch_contact_list command without any pre-configured scope.",
|
|
473
|
+
"type": "string",
|
|
474
|
+
"const": "deny-fetch-contact-list",
|
|
475
|
+
"markdownDescription": "Denies the fetch_contact_list command without any pre-configured scope."
|
|
476
|
+
},
|
|
477
|
+
{
|
|
478
|
+
"description": "Enables the fetch_discovery_events command without any pre-configured scope.",
|
|
479
|
+
"type": "string",
|
|
480
|
+
"const": "allow-fetch-discovery-events",
|
|
481
|
+
"markdownDescription": "Enables the fetch_discovery_events command without any pre-configured scope."
|
|
482
|
+
},
|
|
483
|
+
{
|
|
484
|
+
"description": "Denies the fetch_discovery_events command without any pre-configured scope.",
|
|
485
|
+
"type": "string",
|
|
486
|
+
"const": "deny-fetch-discovery-events",
|
|
487
|
+
"markdownDescription": "Denies the fetch_discovery_events command without any pre-configured scope."
|
|
488
|
+
},
|
|
489
|
+
{
|
|
490
|
+
"description": "Enables the fetch_event_details command without any pre-configured scope.",
|
|
491
|
+
"type": "string",
|
|
492
|
+
"const": "allow-fetch-event-details",
|
|
493
|
+
"markdownDescription": "Enables the fetch_event_details command without any pre-configured scope."
|
|
494
|
+
},
|
|
495
|
+
{
|
|
496
|
+
"description": "Denies the fetch_event_details command without any pre-configured scope.",
|
|
497
|
+
"type": "string",
|
|
498
|
+
"const": "deny-fetch-event-details",
|
|
499
|
+
"markdownDescription": "Denies the fetch_event_details command without any pre-configured scope."
|
|
500
|
+
},
|
|
501
|
+
{
|
|
502
|
+
"description": "Enables the fetch_pns_events command without any pre-configured scope.",
|
|
503
|
+
"type": "string",
|
|
504
|
+
"const": "allow-fetch-pns-events",
|
|
505
|
+
"markdownDescription": "Enables the fetch_pns_events command without any pre-configured scope."
|
|
506
|
+
},
|
|
507
|
+
{
|
|
508
|
+
"description": "Denies the fetch_pns_events command without any pre-configured scope.",
|
|
509
|
+
"type": "string",
|
|
510
|
+
"const": "deny-fetch-pns-events",
|
|
511
|
+
"markdownDescription": "Denies the fetch_pns_events command without any pre-configured scope."
|
|
512
|
+
},
|
|
513
|
+
{
|
|
514
|
+
"description": "Enables the fetch_profiles command without any pre-configured scope.",
|
|
515
|
+
"type": "string",
|
|
516
|
+
"const": "allow-fetch-profiles",
|
|
517
|
+
"markdownDescription": "Enables the fetch_profiles command without any pre-configured scope."
|
|
518
|
+
},
|
|
519
|
+
{
|
|
520
|
+
"description": "Denies the fetch_profiles command without any pre-configured scope.",
|
|
521
|
+
"type": "string",
|
|
522
|
+
"const": "deny-fetch-profiles",
|
|
523
|
+
"markdownDescription": "Denies the fetch_profiles command without any pre-configured scope."
|
|
524
|
+
},
|
|
525
|
+
{
|
|
526
|
+
"description": "Enables the fetch_received_rsvps command without any pre-configured scope.",
|
|
527
|
+
"type": "string",
|
|
528
|
+
"const": "allow-fetch-received-rsvps",
|
|
529
|
+
"markdownDescription": "Enables the fetch_received_rsvps command without any pre-configured scope."
|
|
530
|
+
},
|
|
531
|
+
{
|
|
532
|
+
"description": "Denies the fetch_received_rsvps command without any pre-configured scope.",
|
|
533
|
+
"type": "string",
|
|
534
|
+
"const": "deny-fetch-received-rsvps",
|
|
535
|
+
"markdownDescription": "Denies the fetch_received_rsvps command without any pre-configured scope."
|
|
536
|
+
},
|
|
537
|
+
{
|
|
538
|
+
"description": "Enables the fetch_rsvps command without any pre-configured scope.",
|
|
539
|
+
"type": "string",
|
|
540
|
+
"const": "allow-fetch-rsvps",
|
|
541
|
+
"markdownDescription": "Enables the fetch_rsvps command without any pre-configured scope."
|
|
542
|
+
},
|
|
543
|
+
{
|
|
544
|
+
"description": "Denies the fetch_rsvps command without any pre-configured scope.",
|
|
545
|
+
"type": "string",
|
|
546
|
+
"const": "deny-fetch-rsvps",
|
|
547
|
+
"markdownDescription": "Denies the fetch_rsvps command without any pre-configured scope."
|
|
548
|
+
},
|
|
549
|
+
{
|
|
550
|
+
"description": "Enables the fetch_user_rsvps command without any pre-configured scope.",
|
|
551
|
+
"type": "string",
|
|
552
|
+
"const": "allow-fetch-user-rsvps",
|
|
553
|
+
"markdownDescription": "Enables the fetch_user_rsvps command without any pre-configured scope."
|
|
554
|
+
},
|
|
555
|
+
{
|
|
556
|
+
"description": "Denies the fetch_user_rsvps command without any pre-configured scope.",
|
|
557
|
+
"type": "string",
|
|
558
|
+
"const": "deny-fetch-user-rsvps",
|
|
559
|
+
"markdownDescription": "Denies the fetch_user_rsvps command without any pre-configured scope."
|
|
560
|
+
},
|
|
561
|
+
{
|
|
562
|
+
"description": "Enables the generate_new_nsec command without any pre-configured scope.",
|
|
563
|
+
"type": "string",
|
|
564
|
+
"const": "allow-generate-new-nsec",
|
|
565
|
+
"markdownDescription": "Enables the generate_new_nsec command without any pre-configured scope."
|
|
566
|
+
},
|
|
567
|
+
{
|
|
568
|
+
"description": "Denies the generate_new_nsec command without any pre-configured scope.",
|
|
569
|
+
"type": "string",
|
|
570
|
+
"const": "deny-generate-new-nsec",
|
|
571
|
+
"markdownDescription": "Denies the generate_new_nsec command without any pre-configured scope."
|
|
572
|
+
},
|
|
573
|
+
{
|
|
574
|
+
"description": "Enables the parse_pubkey command without any pre-configured scope.",
|
|
575
|
+
"type": "string",
|
|
576
|
+
"const": "allow-parse-pubkey",
|
|
577
|
+
"markdownDescription": "Enables the parse_pubkey command without any pre-configured scope."
|
|
578
|
+
},
|
|
579
|
+
{
|
|
580
|
+
"description": "Denies the parse_pubkey command without any pre-configured scope.",
|
|
581
|
+
"type": "string",
|
|
582
|
+
"const": "deny-parse-pubkey",
|
|
583
|
+
"markdownDescription": "Denies the parse_pubkey command without any pre-configured scope."
|
|
584
|
+
},
|
|
585
|
+
{
|
|
586
|
+
"description": "Enables the publish_batch_calendar_events command without any pre-configured scope.",
|
|
587
|
+
"type": "string",
|
|
588
|
+
"const": "allow-publish-batch-calendar-events",
|
|
589
|
+
"markdownDescription": "Enables the publish_batch_calendar_events command without any pre-configured scope."
|
|
590
|
+
},
|
|
591
|
+
{
|
|
592
|
+
"description": "Denies the publish_batch_calendar_events command without any pre-configured scope.",
|
|
593
|
+
"type": "string",
|
|
594
|
+
"const": "deny-publish-batch-calendar-events",
|
|
595
|
+
"markdownDescription": "Denies the publish_batch_calendar_events command without any pre-configured scope."
|
|
596
|
+
},
|
|
597
|
+
{
|
|
598
|
+
"description": "Enables the publish_calendar command without any pre-configured scope.",
|
|
599
|
+
"type": "string",
|
|
600
|
+
"const": "allow-publish-calendar",
|
|
601
|
+
"markdownDescription": "Enables the publish_calendar command without any pre-configured scope."
|
|
602
|
+
},
|
|
603
|
+
{
|
|
604
|
+
"description": "Denies the publish_calendar command without any pre-configured scope.",
|
|
605
|
+
"type": "string",
|
|
606
|
+
"const": "deny-publish-calendar",
|
|
607
|
+
"markdownDescription": "Denies the publish_calendar command without any pre-configured scope."
|
|
608
|
+
},
|
|
609
|
+
{
|
|
610
|
+
"description": "Enables the publish_calendar_event command without any pre-configured scope.",
|
|
611
|
+
"type": "string",
|
|
612
|
+
"const": "allow-publish-calendar-event",
|
|
613
|
+
"markdownDescription": "Enables the publish_calendar_event command without any pre-configured scope."
|
|
614
|
+
},
|
|
615
|
+
{
|
|
616
|
+
"description": "Denies the publish_calendar_event command without any pre-configured scope.",
|
|
617
|
+
"type": "string",
|
|
618
|
+
"const": "deny-publish-calendar-event",
|
|
619
|
+
"markdownDescription": "Denies the publish_calendar_event command without any pre-configured scope."
|
|
620
|
+
},
|
|
621
|
+
{
|
|
622
|
+
"description": "Enables the publish_chat_message command without any pre-configured scope.",
|
|
623
|
+
"type": "string",
|
|
624
|
+
"const": "allow-publish-chat-message",
|
|
625
|
+
"markdownDescription": "Enables the publish_chat_message command without any pre-configured scope."
|
|
626
|
+
},
|
|
627
|
+
{
|
|
628
|
+
"description": "Denies the publish_chat_message command without any pre-configured scope.",
|
|
629
|
+
"type": "string",
|
|
630
|
+
"const": "deny-publish-chat-message",
|
|
631
|
+
"markdownDescription": "Denies the publish_chat_message command without any pre-configured scope."
|
|
632
|
+
},
|
|
633
|
+
{
|
|
634
|
+
"description": "Enables the publish_rsvp command without any pre-configured scope.",
|
|
635
|
+
"type": "string",
|
|
636
|
+
"const": "allow-publish-rsvp",
|
|
637
|
+
"markdownDescription": "Enables the publish_rsvp command without any pre-configured scope."
|
|
638
|
+
},
|
|
639
|
+
{
|
|
640
|
+
"description": "Denies the publish_rsvp command without any pre-configured scope.",
|
|
641
|
+
"type": "string",
|
|
642
|
+
"const": "deny-publish-rsvp",
|
|
643
|
+
"markdownDescription": "Denies the publish_rsvp command without any pre-configured scope."
|
|
644
|
+
},
|
|
645
|
+
{
|
|
646
|
+
"description": "Enables the remove_bookmark command without any pre-configured scope.",
|
|
647
|
+
"type": "string",
|
|
648
|
+
"const": "allow-remove-bookmark",
|
|
649
|
+
"markdownDescription": "Enables the remove_bookmark command without any pre-configured scope."
|
|
650
|
+
},
|
|
651
|
+
{
|
|
652
|
+
"description": "Denies the remove_bookmark command without any pre-configured scope.",
|
|
653
|
+
"type": "string",
|
|
654
|
+
"const": "deny-remove-bookmark",
|
|
655
|
+
"markdownDescription": "Denies the remove_bookmark command without any pre-configured scope."
|
|
656
|
+
},
|
|
657
|
+
{
|
|
658
|
+
"description": "Enables the save_bookmark command without any pre-configured scope.",
|
|
659
|
+
"type": "string",
|
|
660
|
+
"const": "allow-save-bookmark",
|
|
661
|
+
"markdownDescription": "Enables the save_bookmark command without any pre-configured scope."
|
|
662
|
+
},
|
|
663
|
+
{
|
|
664
|
+
"description": "Denies the save_bookmark command without any pre-configured scope.",
|
|
665
|
+
"type": "string",
|
|
666
|
+
"const": "deny-save-bookmark",
|
|
667
|
+
"markdownDescription": "Denies the save_bookmark command without any pre-configured scope."
|
|
668
|
+
},
|
|
669
|
+
{
|
|
670
|
+
"description": "Enables the send_direct_message command without any pre-configured scope.",
|
|
671
|
+
"type": "string",
|
|
672
|
+
"const": "allow-send-direct-message",
|
|
673
|
+
"markdownDescription": "Enables the send_direct_message command without any pre-configured scope."
|
|
674
|
+
},
|
|
675
|
+
{
|
|
676
|
+
"description": "Denies the send_direct_message command without any pre-configured scope.",
|
|
677
|
+
"type": "string",
|
|
678
|
+
"const": "deny-send-direct-message",
|
|
679
|
+
"markdownDescription": "Denies the send_direct_message command without any pre-configured scope."
|
|
680
|
+
},
|
|
681
|
+
{
|
|
682
|
+
"description": "Enables the update_contact_list command without any pre-configured scope.",
|
|
683
|
+
"type": "string",
|
|
684
|
+
"const": "allow-update-contact-list",
|
|
685
|
+
"markdownDescription": "Enables the update_contact_list command without any pre-configured scope."
|
|
686
|
+
},
|
|
687
|
+
{
|
|
688
|
+
"description": "Denies the update_contact_list command without any pre-configured scope.",
|
|
689
|
+
"type": "string",
|
|
690
|
+
"const": "deny-update-contact-list",
|
|
691
|
+
"markdownDescription": "Denies the update_contact_list command without any pre-configured scope."
|
|
692
|
+
},
|
|
693
|
+
{
|
|
694
|
+
"description": "Enables the verify_nsec command without any pre-configured scope.",
|
|
695
|
+
"type": "string",
|
|
696
|
+
"const": "allow-verify-nsec",
|
|
697
|
+
"markdownDescription": "Enables the verify_nsec command without any pre-configured scope."
|
|
698
|
+
},
|
|
699
|
+
{
|
|
700
|
+
"description": "Denies the verify_nsec command without any pre-configured scope.",
|
|
701
|
+
"type": "string",
|
|
702
|
+
"const": "deny-verify-nsec",
|
|
703
|
+
"markdownDescription": "Denies the verify_nsec command without any pre-configured scope."
|
|
704
|
+
},
|
|
705
|
+
{
|
|
706
|
+
"description": "Default permissions for nostrnative plugin. Enables all commands by default.\n#### This default permission set includes:\n\n- `allow-generate-new-nsec`\n- `allow-parse-pubkey`\n- `allow-verify-nsec`\n- `allow-fetch-calendar-events`\n- `allow-publish-batch-calendar-events`\n- `allow-publish-calendar-event`\n- `allow-delete-calendar-event`\n- `allow-fetch-calendars`\n- `allow-publish-calendar`\n- `allow-delete-calendar`\n- `allow-fetch-profiles`\n- `allow-fetch-contact-list`\n- `allow-update-contact-list`\n- `allow-fetch-rsvps`\n- `allow-fetch-user-rsvps`\n- `allow-fetch-received-rsvps`\n- `allow-publish-rsvp`\n- `allow-send-direct-message`\n- `allow-fetch-bookmarks`\n- `allow-fetch-event-details`\n- `allow-save-bookmark`\n- `allow-remove-bookmark`\n- `allow-blossom-mirror`\n- `allow-blossom-upload`\n- `allow-blossom-upload-content`\n- `allow-blossom-get-blob`\n- `allow-derive-pns-keys`\n- `allow-create-discovery-event`\n- `allow-decrypt-discovery-event`\n- `allow-publish-chat-message`\n- `allow-decrypt-pns-event`\n- `allow-fetch-pns-events`\n- `allow-delete-chat-messages`\n- `allow-fetch-discovery-events`",
|
|
707
|
+
"type": "string",
|
|
708
|
+
"const": "default",
|
|
709
|
+
"markdownDescription": "Default permissions for nostrnative plugin. Enables all commands by default.\n#### This default permission set includes:\n\n- `allow-generate-new-nsec`\n- `allow-parse-pubkey`\n- `allow-verify-nsec`\n- `allow-fetch-calendar-events`\n- `allow-publish-batch-calendar-events`\n- `allow-publish-calendar-event`\n- `allow-delete-calendar-event`\n- `allow-fetch-calendars`\n- `allow-publish-calendar`\n- `allow-delete-calendar`\n- `allow-fetch-profiles`\n- `allow-fetch-contact-list`\n- `allow-update-contact-list`\n- `allow-fetch-rsvps`\n- `allow-fetch-user-rsvps`\n- `allow-fetch-received-rsvps`\n- `allow-publish-rsvp`\n- `allow-send-direct-message`\n- `allow-fetch-bookmarks`\n- `allow-fetch-event-details`\n- `allow-save-bookmark`\n- `allow-remove-bookmark`\n- `allow-blossom-mirror`\n- `allow-blossom-upload`\n- `allow-blossom-upload-content`\n- `allow-blossom-get-blob`\n- `allow-derive-pns-keys`\n- `allow-create-discovery-event`\n- `allow-decrypt-discovery-event`\n- `allow-publish-chat-message`\n- `allow-decrypt-pns-event`\n- `allow-fetch-pns-events`\n- `allow-delete-chat-messages`\n- `allow-fetch-discovery-events`"
|
|
710
|
+
}
|
|
711
|
+
]
|
|
712
|
+
}
|
|
713
|
+
}
|
|
714
|
+
}
|