Skip to content

Commit e13be3e

Browse files
committed
feat: add permissions to manifest
1 parent 5c17100 commit e13be3e

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

assets/manifest.schema.json

+25-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@
5959
"type": "string"
6060
}
6161
},
62-
"required": ["name"]
62+
"required": ["name"],
63+
"additionalProperties": false
6364
}
6465
},
6566
"legacyIds": {
@@ -92,6 +93,29 @@
9293
"entrypoint": {
9394
"type": "string",
9495
"description": "Entrypoint to pass to the runtime. eg index.js"
96+
},
97+
"permissions": {
98+
"type": "object",
99+
"description": "Permissions required by the module. This is used to inform the user of the permissions required by the module.\nNote: this requires the node22 or newer runtime",
100+
"properties": {
101+
"worker-threads": {
102+
"type": "boolean",
103+
"description": "Enable if the module uses worker threads"
104+
},
105+
"child-process": {
106+
"type": "boolean",
107+
"description": "Enable if the module uses child processes"
108+
},
109+
"native-addons": {
110+
"type": "boolean",
111+
"description": "Enable if the module uses native addons"
112+
},
113+
"filesystem": {
114+
"type": "boolean",
115+
"description": "Enable if the module requires read/write access to the filesystem"
116+
}
117+
},
118+
"additionalProperties": false
95119
}
96120
},
97121
"required": ["type", "api", "apiVersion", "entrypoint"]

0 commit comments

Comments
 (0)