silverbullet/plugs/federation/federation.plug.yaml

54 lines
1.1 KiB
YAML
Raw Normal View History

name: federation
requiredPermissions:
- fetch
config:
schema.config.properties:
libraries:
type: array
items:
type: object
properties:
import:
type: string
format: page-ref
exclude:
type: array
items:
type: string
format: page-ref
nullable: true
required:
- import
nullable: true
functions:
readFile:
path: ./federation.ts:readFile
pageNamespace:
2024-07-18 02:18:53 +08:00
pattern: "^!.+"
operation: readFile
writeFile:
path: ./federation.ts:writeFile
pageNamespace:
2024-07-18 02:18:53 +08:00
pattern: "^!.+"
operation: writeFile
deleteFile:
path: ./federation.ts:deleteFile
pageNamespace:
2024-07-18 02:18:53 +08:00
pattern: "^!.+"
operation: deleteFile
getFileMeta:
path: ./federation.ts:getFileMeta
pageNamespace:
2024-07-18 02:18:53 +08:00
pattern: "^!.+"
2023-08-02 03:35:19 +08:00
operation: getFileMeta
# Library management commands
updateLibrariesCommand:
path: library.ts:updateLibrariesCommand
command:
name: "Libraries: Update"
requireMode: rw
updateLibraries:
path: library.ts:updateLibraries
env: server