Interface: IPluginPermissions
Defined in: src/types/interfaces/plugin.interface.ts:155
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 enforced by the plugin sandbox (isolated-vm).
Since
0.1.0
Properties
hooks?
readonlyoptionalhooks: readonlystring[]
Defined in: src/types/interfaces/plugin.interface.ts:187
Event hook subscriptions.
network?
readonlyoptionalnetwork:object
Defined in: src/types/interfaces/plugin.interface.ts:159
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:174
Storage permissions.
maxSize
readonlymaxSize:number
Maximum storage size in bytes.
Remarks
Plugins have isolated key-value storage. This limits total size.