aboutsummaryrefslogtreecommitdiffhomepage
path: root/packages/models/src/plugins/plugin-package-json.model.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/models/src/plugins/plugin-package-json.model.ts')
-rw-r--r--packages/models/src/plugins/plugin-package-json.model.ts29
1 files changed, 29 insertions, 0 deletions
diff --git a/packages/models/src/plugins/plugin-package-json.model.ts b/packages/models/src/plugins/plugin-package-json.model.ts
new file mode 100644
index 000000000..5b9ccec56
--- /dev/null
+++ b/packages/models/src/plugins/plugin-package-json.model.ts
@@ -0,0 +1,29 @@
1import { PluginClientScope } from './client/plugin-client-scope.type.js'
2
3export type PluginTranslationPathsJSON = {
4 [ locale: string ]: string
5}
6
7export type ClientScriptJSON = {
8 script: string
9 scopes: PluginClientScope[]
10}
11
12export type PluginPackageJSON = {
13 name: string
14 version: string
15 description: string
16 engine: { peertube: string }
17
18 homepage: string
19 author: string
20 bugs: string
21 library: string
22
23 staticDirs: { [ name: string ]: string }
24 css: string[]
25
26 clientScripts: ClientScriptJSON[]
27
28 translations: PluginTranslationPathsJSON
29}