@synopackageland/sdk 0.0.0-stage → 0.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +34 -2
- package/dist/i18n/authorization/de.json +37 -0
- package/dist/i18n/authorization/en.json +37 -0
- package/dist/i18n/authorization/es.json +37 -0
- package/dist/i18n/authorization/fr.json +37 -0
- package/dist/i18n/authorization/it.json +37 -0
- package/dist/i18n/authorization/ja.json +37 -0
- package/dist/i18n/authorization/ko.json +37 -0
- package/dist/i18n/authorization/zh-CN.json +37 -0
- package/dist/i18n/authorization/zh-TW.json +37 -0
- package/dist/i18n/background/de.json +75 -0
- package/dist/i18n/background/en.json +75 -0
- package/dist/i18n/background/es.json +75 -0
- package/dist/i18n/background/fr.json +75 -0
- package/dist/i18n/background/it.json +75 -0
- package/dist/i18n/background/ja.json +75 -0
- package/dist/i18n/background/ko.json +75 -0
- package/dist/i18n/background/zh-CN.json +75 -0
- package/dist/i18n/background/zh-TW.json +75 -0
- package/dist/i18n/delegate/de.json +49 -0
- package/dist/i18n/delegate/en.json +49 -0
- package/dist/i18n/delegate/es.json +49 -0
- package/dist/i18n/delegate/fr.json +49 -0
- package/dist/i18n/delegate/it.json +49 -0
- package/dist/i18n/delegate/ja.json +49 -0
- package/dist/i18n/delegate/ko.json +49 -0
- package/dist/i18n/delegate/zh-CN.json +49 -0
- package/dist/i18n/delegate/zh-TW.json +49 -0
- package/dist/i18n/files/de.json +41 -0
- package/dist/i18n/files/en.json +41 -0
- package/dist/i18n/files/es.json +41 -0
- package/dist/i18n/files/fr.json +41 -0
- package/dist/i18n/files/it.json +41 -0
- package/dist/i18n/files/ja.json +41 -0
- package/dist/i18n/files/ko.json +41 -0
- package/dist/i18n/files/zh-CN.json +41 -0
- package/dist/i18n/files/zh-TW.json +41 -0
- package/dist/i18n/identity/de.json +27 -0
- package/dist/i18n/identity/en.json +27 -0
- package/dist/i18n/identity/es.json +27 -0
- package/dist/i18n/identity/fr.json +27 -0
- package/dist/i18n/identity/it.json +27 -0
- package/dist/i18n/identity/ja.json +27 -0
- package/dist/i18n/identity/ko.json +27 -0
- package/dist/i18n/identity/zh-CN.json +27 -0
- package/dist/i18n/identity/zh-TW.json +27 -0
- package/dist/i18n/save/de.json +42 -0
- package/dist/i18n/save/en.json +42 -0
- package/dist/i18n/save/es.json +42 -0
- package/dist/i18n/save/fr.json +42 -0
- package/dist/i18n/save/it.json +42 -0
- package/dist/i18n/save/ja.json +42 -0
- package/dist/i18n/save/ko.json +42 -0
- package/dist/i18n/save/zh-CN.json +42 -0
- package/dist/i18n/save/zh-TW.json +42 -0
- package/dist/i18n/shell/de.json +4 -0
- package/dist/i18n/shell/en.json +4 -0
- package/dist/i18n/shell/es.json +4 -0
- package/dist/i18n/shell/fr.json +4 -0
- package/dist/i18n/shell/it.json +4 -0
- package/dist/i18n/shell/ja.json +4 -0
- package/dist/i18n/shell/ko.json +4 -0
- package/dist/i18n/shell/zh-CN.json +4 -0
- package/dist/i18n/shell/zh-TW.json +4 -0
- package/dist/index.js +2627 -0
- package/dist/src/authorization/AuthorizationGate.vue.d.ts +22 -0
- package/dist/src/authorization/i18n.d.ts +3 -0
- package/dist/src/background/BackgroundPanel.vue.d.ts +7 -0
- package/dist/src/background/i18n.d.ts +79 -0
- package/dist/src/background/picker-provider.d.ts +3 -0
- package/dist/src/background/request-key.d.ts +1 -0
- package/dist/src/context.d.ts +114 -0
- package/dist/src/delegate/BackgroundSavePanel.vue.d.ts +18 -0
- package/dist/src/delegate/DelegatePanel.vue.d.ts +7 -0
- package/dist/src/delegate/ExecutorSettings.vue.d.ts +13 -0
- package/dist/src/delegate/copy.d.ts +101 -0
- package/dist/src/delegate/executor-setup.d.ts +16 -0
- package/dist/src/delegate/facade.d.ts +8 -0
- package/dist/src/delegate/long-running.d.ts +74 -0
- package/dist/src/delegate/save-copy.d.ts +126 -0
- package/dist/src/delegate/scoped-picker.d.ts +3 -0
- package/dist/src/delegate/use-executor-setup.d.ts +4 -0
- package/dist/src/files/FileBrowser.vue.d.ts +17 -0
- package/dist/src/files/FilesPage.vue.d.ts +7 -0
- package/dist/src/files/transfers.d.ts +9 -0
- package/dist/src/i18n.d.ts +7 -0
- package/dist/src/identity/LoginPage.vue.d.ts +8 -0
- package/dist/src/identity/i18n.d.ts +31 -0
- package/dist/src/identity/session.d.ts +20 -0
- package/dist/src/index.d.ts +24 -0
- package/dist/src/nas/NasPicker.vue.d.ts +22 -0
- package/dist/src/nas/contract.d.ts +27 -0
- package/dist/src/nas/i18n.d.ts +2 -0
- package/dist/src/nas/locale.d.ts +45 -0
- package/dist/src/nas/provider.d.ts +3 -0
- package/dist/src/nas/use-request.d.ts +6 -0
- package/dist/src/portal/PortalSettings.vue.d.ts +7 -0
- package/dist/src/protocol/codec.d.ts +17 -0
- package/dist/src/protocol/v1.d.ts +518 -0
- package/dist/src/shell/AppShell.vue.d.ts +26 -0
- package/dist/src/shell/i18n.d.ts +7 -0
- package/dist/src/shell/pages.d.ts +7 -0
- package/dist/src/vue.d.ts +15 -0
- package/dist/style.css +1 -0
- package/dist/vue.js +2331 -0
- package/package.json +64 -4
- package/spec/protocol/v1/README.md +112 -0
- package/spec/protocol/v1/errors.json +454 -0
- package/spec/protocol/v1/schema/delegate.audit.json +11 -0
- package/spec/protocol/v1/schema/delegate.create.json +49 -0
- package/spec/protocol/v1/schema/delegate.disable.json +11 -0
- package/spec/protocol/v1/schema/delegate.enable.json +11 -0
- package/spec/protocol/v1/schema/delegate.list.json +11 -0
- package/spec/protocol/v1/schema/delegate.revoke.json +23 -0
- package/spec/protocol/v1/schema/files.cancelOperation.json +24 -0
- package/spec/protocol/v1/schema/files.checkPermission.json +30 -0
- package/spec/protocol/v1/schema/files.copy.json +42 -0
- package/spec/protocol/v1/schema/files.createFolder.json +38 -0
- package/spec/protocol/v1/schema/files.delete.json +36 -0
- package/spec/protocol/v1/schema/files.info.json +30 -0
- package/spec/protocol/v1/schema/files.list.json +30 -0
- package/spec/protocol/v1/schema/files.move.json +42 -0
- package/spec/protocol/v1/schema/files.moveFromStaging.json +47 -0
- package/spec/protocol/v1/schema/files.operationStatus.json +24 -0
- package/spec/protocol/v1/schema/files.read.json +35 -0
- package/spec/protocol/v1/schema/files.rename.json +35 -0
- package/spec/protocol/v1/schema/files.taskCancel.json +29 -0
- package/spec/protocol/v1/schema/files.taskStatus.json +29 -0
- package/spec/protocol/v1/schema/files.write.json +46 -0
- package/spec/protocol/v1/schema/root.run.json +19 -0
- package/spec/protocol/v1/schema/status.json +11 -0
- package/spec/protocol/v1/vectors/delegate.jsonl +16 -0
- package/spec/protocol/v1/vectors/envelope.jsonl +11 -0
- package/spec/protocol/v1/vectors/files.jsonl +10 -0
- package/spec/protocol/v1/vectors/status.jsonl +2 -0
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://github.com/synopackageland/syno-pkg-land-sdk/spec/protocol/v1/schema/delegate.create.json",
|
|
4
|
+
"title": "delegate.create",
|
|
5
|
+
"description": "Create a time-limited grant (job_id, ttl_seconds) or an until-revoked destination grant (destination, lifetime).",
|
|
6
|
+
"since": "0.9.0",
|
|
7
|
+
"auth": "required",
|
|
8
|
+
"type": "object",
|
|
9
|
+
"properties": {
|
|
10
|
+
"job_id": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
|
|
13
|
+
},
|
|
14
|
+
"ops": {
|
|
15
|
+
"type": "array",
|
|
16
|
+
"minItems": 1,
|
|
17
|
+
"items": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"pattern": "^files\\."
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"scope": {
|
|
23
|
+
"type": "string"
|
|
24
|
+
},
|
|
25
|
+
"path": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"pattern": "^/",
|
|
28
|
+
"maxLength": 4096
|
|
29
|
+
},
|
|
30
|
+
"ttl_seconds": {
|
|
31
|
+
"type": "integer",
|
|
32
|
+
"minimum": 1,
|
|
33
|
+
"maximum": 2592000
|
|
34
|
+
},
|
|
35
|
+
"destination": {
|
|
36
|
+
"type": "string",
|
|
37
|
+
"pattern": "^[a-z][a-z0-9_-]{0,63}$"
|
|
38
|
+
},
|
|
39
|
+
"lifetime": {
|
|
40
|
+
"const": "until-revoked"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"additionalProperties": false,
|
|
44
|
+
"required": [
|
|
45
|
+
"ops",
|
|
46
|
+
"scope",
|
|
47
|
+
"path"
|
|
48
|
+
]
|
|
49
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://github.com/synopackageland/syno-pkg-land-sdk/spec/protocol/v1/schema/delegate.disable.json",
|
|
4
|
+
"title": "delegate.disable",
|
|
5
|
+
"description": "Administrator: turn the integration off and cancel grants.",
|
|
6
|
+
"since": "0.9.0",
|
|
7
|
+
"auth": "required",
|
|
8
|
+
"type": "object",
|
|
9
|
+
"properties": {},
|
|
10
|
+
"additionalProperties": false
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://github.com/synopackageland/syno-pkg-land-sdk/spec/protocol/v1/schema/delegate.enable.json",
|
|
4
|
+
"title": "delegate.enable",
|
|
5
|
+
"description": "Administrator: turn the integration on.",
|
|
6
|
+
"since": "0.9.0",
|
|
7
|
+
"auth": "required",
|
|
8
|
+
"type": "object",
|
|
9
|
+
"properties": {},
|
|
10
|
+
"additionalProperties": false
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://github.com/synopackageland/syno-pkg-land-sdk/spec/protocol/v1/schema/delegate.list.json",
|
|
4
|
+
"title": "delegate.list",
|
|
5
|
+
"description": "List the caller's grants for this package.",
|
|
6
|
+
"since": "0.9.0",
|
|
7
|
+
"auth": "required",
|
|
8
|
+
"type": "object",
|
|
9
|
+
"properties": {},
|
|
10
|
+
"additionalProperties": false
|
|
11
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://github.com/synopackageland/syno-pkg-land-sdk/spec/protocol/v1/schema/delegate.revoke.json",
|
|
4
|
+
"title": "delegate.revoke",
|
|
5
|
+
"description": "Revoke a grant: with auth by its owner (or an administrator for time-limited grants), without auth by job_id.",
|
|
6
|
+
"since": "0.9.0",
|
|
7
|
+
"auth": "optional",
|
|
8
|
+
"type": "object",
|
|
9
|
+
"properties": {
|
|
10
|
+
"delegation_id": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
13
|
+
},
|
|
14
|
+
"job_id": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"additionalProperties": false,
|
|
20
|
+
"required": [
|
|
21
|
+
"delegation_id"
|
|
22
|
+
]
|
|
23
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://github.com/synopackageland/syno-pkg-land-sdk/spec/protocol/v1/schema/files.cancelOperation.json",
|
|
4
|
+
"title": "files.cancelOperation",
|
|
5
|
+
"description": "Cancel an asynchronous operation.",
|
|
6
|
+
"since": "0.9.0",
|
|
7
|
+
"auth": "optional",
|
|
8
|
+
"type": "object",
|
|
9
|
+
"properties": {
|
|
10
|
+
"delegation_id": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
13
|
+
},
|
|
14
|
+
"job_id": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"additionalProperties": false,
|
|
20
|
+
"required": [
|
|
21
|
+
"delegation_id",
|
|
22
|
+
"job_id"
|
|
23
|
+
]
|
|
24
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://github.com/synopackageland/syno-pkg-land-sdk/spec/protocol/v1/schema/files.checkPermission.json",
|
|
4
|
+
"title": "files.checkPermission",
|
|
5
|
+
"description": "Check write permission for the delegated user.",
|
|
6
|
+
"since": "0.9.0",
|
|
7
|
+
"auth": "optional",
|
|
8
|
+
"type": "object",
|
|
9
|
+
"properties": {
|
|
10
|
+
"delegation_id": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
13
|
+
},
|
|
14
|
+
"job_id": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
|
|
17
|
+
},
|
|
18
|
+
"path": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"pattern": "^/",
|
|
21
|
+
"maxLength": 4096
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"additionalProperties": false,
|
|
25
|
+
"required": [
|
|
26
|
+
"delegation_id",
|
|
27
|
+
"job_id",
|
|
28
|
+
"path"
|
|
29
|
+
]
|
|
30
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://github.com/synopackageland/syno-pkg-land-sdk/spec/protocol/v1/schema/files.copy.json",
|
|
4
|
+
"title": "files.copy",
|
|
5
|
+
"description": "Start a File Station copy task.",
|
|
6
|
+
"since": "0.9.0",
|
|
7
|
+
"auth": "optional",
|
|
8
|
+
"type": "object",
|
|
9
|
+
"properties": {
|
|
10
|
+
"delegation_id": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
13
|
+
},
|
|
14
|
+
"job_id": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
|
|
17
|
+
},
|
|
18
|
+
"path": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"pattern": "^/",
|
|
21
|
+
"maxLength": 4096
|
|
22
|
+
},
|
|
23
|
+
"dest_dir": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"pattern": "^/"
|
|
26
|
+
},
|
|
27
|
+
"conflict": {
|
|
28
|
+
"enum": [
|
|
29
|
+
"fail",
|
|
30
|
+
"overwrite",
|
|
31
|
+
"rename"
|
|
32
|
+
]
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"additionalProperties": false,
|
|
36
|
+
"required": [
|
|
37
|
+
"delegation_id",
|
|
38
|
+
"job_id",
|
|
39
|
+
"path",
|
|
40
|
+
"dest_dir"
|
|
41
|
+
]
|
|
42
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://github.com/synopackageland/syno-pkg-land-sdk/spec/protocol/v1/schema/files.createFolder.json",
|
|
4
|
+
"title": "files.createFolder",
|
|
5
|
+
"description": "Create a folder; parents creates missing ancestors in scope.",
|
|
6
|
+
"since": "0.9.0",
|
|
7
|
+
"auth": "optional",
|
|
8
|
+
"type": "object",
|
|
9
|
+
"properties": {
|
|
10
|
+
"delegation_id": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
13
|
+
},
|
|
14
|
+
"job_id": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
|
|
17
|
+
},
|
|
18
|
+
"path": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"pattern": "^/",
|
|
21
|
+
"maxLength": 4096
|
|
22
|
+
},
|
|
23
|
+
"name": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"minLength": 1
|
|
26
|
+
},
|
|
27
|
+
"parents": {
|
|
28
|
+
"type": "boolean"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"additionalProperties": false,
|
|
32
|
+
"required": [
|
|
33
|
+
"delegation_id",
|
|
34
|
+
"job_id",
|
|
35
|
+
"path",
|
|
36
|
+
"name"
|
|
37
|
+
]
|
|
38
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://github.com/synopackageland/syno-pkg-land-sdk/spec/protocol/v1/schema/files.delete.json",
|
|
4
|
+
"title": "files.delete",
|
|
5
|
+
"description": "Start a File Station delete task.",
|
|
6
|
+
"since": "0.9.0",
|
|
7
|
+
"auth": "optional",
|
|
8
|
+
"type": "object",
|
|
9
|
+
"properties": {
|
|
10
|
+
"delegation_id": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
13
|
+
},
|
|
14
|
+
"job_id": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
|
|
17
|
+
},
|
|
18
|
+
"path": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"pattern": "^/",
|
|
21
|
+
"maxLength": 4096
|
|
22
|
+
},
|
|
23
|
+
"recursive": {
|
|
24
|
+
"type": "boolean"
|
|
25
|
+
},
|
|
26
|
+
"permanent": {
|
|
27
|
+
"type": "boolean"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"additionalProperties": false,
|
|
31
|
+
"required": [
|
|
32
|
+
"delegation_id",
|
|
33
|
+
"job_id",
|
|
34
|
+
"path"
|
|
35
|
+
]
|
|
36
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://github.com/synopackageland/syno-pkg-land-sdk/spec/protocol/v1/schema/files.info.json",
|
|
4
|
+
"title": "files.info",
|
|
5
|
+
"description": "Describe a path as the delegated user.",
|
|
6
|
+
"since": "0.9.0",
|
|
7
|
+
"auth": "optional",
|
|
8
|
+
"type": "object",
|
|
9
|
+
"properties": {
|
|
10
|
+
"delegation_id": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
13
|
+
},
|
|
14
|
+
"job_id": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
|
|
17
|
+
},
|
|
18
|
+
"path": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"pattern": "^/",
|
|
21
|
+
"maxLength": 4096
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"additionalProperties": false,
|
|
25
|
+
"required": [
|
|
26
|
+
"delegation_id",
|
|
27
|
+
"job_id",
|
|
28
|
+
"path"
|
|
29
|
+
]
|
|
30
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://github.com/synopackageland/syno-pkg-land-sdk/spec/protocol/v1/schema/files.list.json",
|
|
4
|
+
"title": "files.list",
|
|
5
|
+
"description": "List a folder as the delegated user.",
|
|
6
|
+
"since": "0.9.0",
|
|
7
|
+
"auth": "optional",
|
|
8
|
+
"type": "object",
|
|
9
|
+
"properties": {
|
|
10
|
+
"delegation_id": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
13
|
+
},
|
|
14
|
+
"job_id": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
|
|
17
|
+
},
|
|
18
|
+
"path": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"pattern": "^/",
|
|
21
|
+
"maxLength": 4096
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"additionalProperties": false,
|
|
25
|
+
"required": [
|
|
26
|
+
"delegation_id",
|
|
27
|
+
"job_id",
|
|
28
|
+
"path"
|
|
29
|
+
]
|
|
30
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://github.com/synopackageland/syno-pkg-land-sdk/spec/protocol/v1/schema/files.move.json",
|
|
4
|
+
"title": "files.move",
|
|
5
|
+
"description": "Start a File Station move task.",
|
|
6
|
+
"since": "0.9.0",
|
|
7
|
+
"auth": "optional",
|
|
8
|
+
"type": "object",
|
|
9
|
+
"properties": {
|
|
10
|
+
"delegation_id": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
13
|
+
},
|
|
14
|
+
"job_id": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
|
|
17
|
+
},
|
|
18
|
+
"path": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"pattern": "^/",
|
|
21
|
+
"maxLength": 4096
|
|
22
|
+
},
|
|
23
|
+
"dest_dir": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"pattern": "^/"
|
|
26
|
+
},
|
|
27
|
+
"conflict": {
|
|
28
|
+
"enum": [
|
|
29
|
+
"fail",
|
|
30
|
+
"overwrite",
|
|
31
|
+
"rename"
|
|
32
|
+
]
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"additionalProperties": false,
|
|
36
|
+
"required": [
|
|
37
|
+
"delegation_id",
|
|
38
|
+
"job_id",
|
|
39
|
+
"path",
|
|
40
|
+
"dest_dir"
|
|
41
|
+
]
|
|
42
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://github.com/synopackageland/syno-pkg-land-sdk/spec/protocol/v1/schema/files.moveFromStaging.json",
|
|
4
|
+
"title": "files.moveFromStaging",
|
|
5
|
+
"description": "Admit an asynchronous move from staging into an until-revoked destination.",
|
|
6
|
+
"since": "0.9.0",
|
|
7
|
+
"auth": "optional",
|
|
8
|
+
"type": "object",
|
|
9
|
+
"properties": {
|
|
10
|
+
"delegation_id": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
13
|
+
},
|
|
14
|
+
"job_id": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
|
|
17
|
+
},
|
|
18
|
+
"staging": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"minLength": 1
|
|
21
|
+
},
|
|
22
|
+
"name": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"minLength": 1
|
|
25
|
+
},
|
|
26
|
+
"size": {
|
|
27
|
+
"type": "integer",
|
|
28
|
+
"minimum": 0,
|
|
29
|
+
"maximum": 17179869184
|
|
30
|
+
},
|
|
31
|
+
"conflict": {
|
|
32
|
+
"enum": [
|
|
33
|
+
"fail",
|
|
34
|
+
"overwrite",
|
|
35
|
+
"rename"
|
|
36
|
+
]
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"additionalProperties": false,
|
|
40
|
+
"required": [
|
|
41
|
+
"delegation_id",
|
|
42
|
+
"job_id",
|
|
43
|
+
"staging",
|
|
44
|
+
"name",
|
|
45
|
+
"size"
|
|
46
|
+
]
|
|
47
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://github.com/synopackageland/syno-pkg-land-sdk/spec/protocol/v1/schema/files.operationStatus.json",
|
|
4
|
+
"title": "files.operationStatus",
|
|
5
|
+
"description": "Read an asynchronous operation.",
|
|
6
|
+
"since": "0.9.0",
|
|
7
|
+
"auth": "optional",
|
|
8
|
+
"type": "object",
|
|
9
|
+
"properties": {
|
|
10
|
+
"delegation_id": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
13
|
+
},
|
|
14
|
+
"job_id": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"additionalProperties": false,
|
|
20
|
+
"required": [
|
|
21
|
+
"delegation_id",
|
|
22
|
+
"job_id"
|
|
23
|
+
]
|
|
24
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://github.com/synopackageland/syno-pkg-land-sdk/spec/protocol/v1/schema/files.read.json",
|
|
4
|
+
"title": "files.read",
|
|
5
|
+
"description": "Copy a file into staging as the delegated user.",
|
|
6
|
+
"since": "0.9.0",
|
|
7
|
+
"auth": "optional",
|
|
8
|
+
"type": "object",
|
|
9
|
+
"properties": {
|
|
10
|
+
"delegation_id": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
13
|
+
},
|
|
14
|
+
"job_id": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
|
|
17
|
+
},
|
|
18
|
+
"path": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"pattern": "^/",
|
|
21
|
+
"maxLength": 4096
|
|
22
|
+
},
|
|
23
|
+
"max_bytes": {
|
|
24
|
+
"type": "integer",
|
|
25
|
+
"minimum": 1,
|
|
26
|
+
"maximum": 67108864
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"additionalProperties": false,
|
|
30
|
+
"required": [
|
|
31
|
+
"delegation_id",
|
|
32
|
+
"job_id",
|
|
33
|
+
"path"
|
|
34
|
+
]
|
|
35
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://github.com/synopackageland/syno-pkg-land-sdk/spec/protocol/v1/schema/files.rename.json",
|
|
4
|
+
"title": "files.rename",
|
|
5
|
+
"description": "Rename through File Station as the delegated user.",
|
|
6
|
+
"since": "0.9.0",
|
|
7
|
+
"auth": "optional",
|
|
8
|
+
"type": "object",
|
|
9
|
+
"properties": {
|
|
10
|
+
"delegation_id": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
13
|
+
},
|
|
14
|
+
"job_id": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
|
|
17
|
+
},
|
|
18
|
+
"path": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"pattern": "^/",
|
|
21
|
+
"maxLength": 4096
|
|
22
|
+
},
|
|
23
|
+
"name": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"minLength": 1
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"additionalProperties": false,
|
|
29
|
+
"required": [
|
|
30
|
+
"delegation_id",
|
|
31
|
+
"job_id",
|
|
32
|
+
"path",
|
|
33
|
+
"name"
|
|
34
|
+
]
|
|
35
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://github.com/synopackageland/syno-pkg-land-sdk/spec/protocol/v1/schema/files.taskCancel.json",
|
|
4
|
+
"title": "files.taskCancel",
|
|
5
|
+
"description": "Cancel a copy, move or delete task.",
|
|
6
|
+
"since": "0.9.0",
|
|
7
|
+
"auth": "optional",
|
|
8
|
+
"type": "object",
|
|
9
|
+
"properties": {
|
|
10
|
+
"delegation_id": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
13
|
+
},
|
|
14
|
+
"job_id": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
|
|
17
|
+
},
|
|
18
|
+
"task_id": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"minLength": 1
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"additionalProperties": false,
|
|
24
|
+
"required": [
|
|
25
|
+
"delegation_id",
|
|
26
|
+
"job_id",
|
|
27
|
+
"task_id"
|
|
28
|
+
]
|
|
29
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://github.com/synopackageland/syno-pkg-land-sdk/spec/protocol/v1/schema/files.taskStatus.json",
|
|
4
|
+
"title": "files.taskStatus",
|
|
5
|
+
"description": "Status of a copy, move or delete task.",
|
|
6
|
+
"since": "0.9.0",
|
|
7
|
+
"auth": "optional",
|
|
8
|
+
"type": "object",
|
|
9
|
+
"properties": {
|
|
10
|
+
"delegation_id": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
13
|
+
},
|
|
14
|
+
"job_id": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
|
|
17
|
+
},
|
|
18
|
+
"task_id": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"minLength": 1
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"additionalProperties": false,
|
|
24
|
+
"required": [
|
|
25
|
+
"delegation_id",
|
|
26
|
+
"job_id",
|
|
27
|
+
"task_id"
|
|
28
|
+
]
|
|
29
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://github.com/synopackageland/syno-pkg-land-sdk/spec/protocol/v1/schema/files.write.json",
|
|
4
|
+
"title": "files.write",
|
|
5
|
+
"description": "Publish a staged file synchronously.",
|
|
6
|
+
"since": "0.9.0",
|
|
7
|
+
"auth": "optional",
|
|
8
|
+
"type": "object",
|
|
9
|
+
"properties": {
|
|
10
|
+
"delegation_id": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
13
|
+
},
|
|
14
|
+
"job_id": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
|
|
17
|
+
},
|
|
18
|
+
"staging": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"minLength": 1
|
|
21
|
+
},
|
|
22
|
+
"dest_dir": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"pattern": "^/"
|
|
25
|
+
},
|
|
26
|
+
"name": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"minLength": 1
|
|
29
|
+
},
|
|
30
|
+
"conflict": {
|
|
31
|
+
"enum": [
|
|
32
|
+
"fail",
|
|
33
|
+
"overwrite",
|
|
34
|
+
"rename"
|
|
35
|
+
]
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"additionalProperties": false,
|
|
39
|
+
"required": [
|
|
40
|
+
"delegation_id",
|
|
41
|
+
"job_id",
|
|
42
|
+
"staging",
|
|
43
|
+
"dest_dir",
|
|
44
|
+
"name"
|
|
45
|
+
]
|
|
46
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://github.com/synopackageland/syno-pkg-land-sdk/spec/protocol/v1/schema/root.run.json",
|
|
4
|
+
"title": "root.run",
|
|
5
|
+
"description": "Administrator: run a root operation pinned by digest in the policy.",
|
|
6
|
+
"since": "0.9.0",
|
|
7
|
+
"auth": "required",
|
|
8
|
+
"type": "object",
|
|
9
|
+
"properties": {
|
|
10
|
+
"name": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"minLength": 1
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"additionalProperties": false,
|
|
16
|
+
"required": [
|
|
17
|
+
"name"
|
|
18
|
+
]
|
|
19
|
+
}
|