Interface: IPluginPermissions
Defined in: src/types/interfaces/plugin.interface.ts:169
Plugin permissions (declared capabilities).
Remarks
Plugins must declare permissions for:
- Network access (which domains)
- Storage quota (max size)
- Event hooks (which events to subscribe)
Permissions are intended to be enforced by the plugin sandbox (isolated-vm). That enforcement is not wired up; see the status note at the top of this file.
Since
0.1.0
Properties
hooks?
readonlyoptionalhooks: readonlystring[]
Defined in: src/types/interfaces/plugin.interface.ts:201
Event hook subscriptions.
network?
readonlyoptionalnetwork:object
Defined in: src/types/interfaces/plugin.interface.ts:173
Network access permissions.
allowedDomains
readonlyallowedDomains: readonlystring[]
Allowed domains for HTTP requests.
Remarks
Plugins can only make requests to these domains.
Example
["api.github.com", "orcid.org"]
storage?
readonlyoptionalstorage:object
Defined in: src/types/interfaces/plugin.interface.ts:188
Storage permissions.
maxSize
readonlymaxSize:number
Maximum storage size in bytes.
Remarks
Plugins have isolated key-value storage. This limits total size.