@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.
Files changed (136) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +34 -2
  3. package/dist/i18n/authorization/de.json +37 -0
  4. package/dist/i18n/authorization/en.json +37 -0
  5. package/dist/i18n/authorization/es.json +37 -0
  6. package/dist/i18n/authorization/fr.json +37 -0
  7. package/dist/i18n/authorization/it.json +37 -0
  8. package/dist/i18n/authorization/ja.json +37 -0
  9. package/dist/i18n/authorization/ko.json +37 -0
  10. package/dist/i18n/authorization/zh-CN.json +37 -0
  11. package/dist/i18n/authorization/zh-TW.json +37 -0
  12. package/dist/i18n/background/de.json +75 -0
  13. package/dist/i18n/background/en.json +75 -0
  14. package/dist/i18n/background/es.json +75 -0
  15. package/dist/i18n/background/fr.json +75 -0
  16. package/dist/i18n/background/it.json +75 -0
  17. package/dist/i18n/background/ja.json +75 -0
  18. package/dist/i18n/background/ko.json +75 -0
  19. package/dist/i18n/background/zh-CN.json +75 -0
  20. package/dist/i18n/background/zh-TW.json +75 -0
  21. package/dist/i18n/delegate/de.json +49 -0
  22. package/dist/i18n/delegate/en.json +49 -0
  23. package/dist/i18n/delegate/es.json +49 -0
  24. package/dist/i18n/delegate/fr.json +49 -0
  25. package/dist/i18n/delegate/it.json +49 -0
  26. package/dist/i18n/delegate/ja.json +49 -0
  27. package/dist/i18n/delegate/ko.json +49 -0
  28. package/dist/i18n/delegate/zh-CN.json +49 -0
  29. package/dist/i18n/delegate/zh-TW.json +49 -0
  30. package/dist/i18n/files/de.json +41 -0
  31. package/dist/i18n/files/en.json +41 -0
  32. package/dist/i18n/files/es.json +41 -0
  33. package/dist/i18n/files/fr.json +41 -0
  34. package/dist/i18n/files/it.json +41 -0
  35. package/dist/i18n/files/ja.json +41 -0
  36. package/dist/i18n/files/ko.json +41 -0
  37. package/dist/i18n/files/zh-CN.json +41 -0
  38. package/dist/i18n/files/zh-TW.json +41 -0
  39. package/dist/i18n/identity/de.json +27 -0
  40. package/dist/i18n/identity/en.json +27 -0
  41. package/dist/i18n/identity/es.json +27 -0
  42. package/dist/i18n/identity/fr.json +27 -0
  43. package/dist/i18n/identity/it.json +27 -0
  44. package/dist/i18n/identity/ja.json +27 -0
  45. package/dist/i18n/identity/ko.json +27 -0
  46. package/dist/i18n/identity/zh-CN.json +27 -0
  47. package/dist/i18n/identity/zh-TW.json +27 -0
  48. package/dist/i18n/save/de.json +42 -0
  49. package/dist/i18n/save/en.json +42 -0
  50. package/dist/i18n/save/es.json +42 -0
  51. package/dist/i18n/save/fr.json +42 -0
  52. package/dist/i18n/save/it.json +42 -0
  53. package/dist/i18n/save/ja.json +42 -0
  54. package/dist/i18n/save/ko.json +42 -0
  55. package/dist/i18n/save/zh-CN.json +42 -0
  56. package/dist/i18n/save/zh-TW.json +42 -0
  57. package/dist/i18n/shell/de.json +4 -0
  58. package/dist/i18n/shell/en.json +4 -0
  59. package/dist/i18n/shell/es.json +4 -0
  60. package/dist/i18n/shell/fr.json +4 -0
  61. package/dist/i18n/shell/it.json +4 -0
  62. package/dist/i18n/shell/ja.json +4 -0
  63. package/dist/i18n/shell/ko.json +4 -0
  64. package/dist/i18n/shell/zh-CN.json +4 -0
  65. package/dist/i18n/shell/zh-TW.json +4 -0
  66. package/dist/index.js +2627 -0
  67. package/dist/src/authorization/AuthorizationGate.vue.d.ts +22 -0
  68. package/dist/src/authorization/i18n.d.ts +3 -0
  69. package/dist/src/background/BackgroundPanel.vue.d.ts +7 -0
  70. package/dist/src/background/i18n.d.ts +79 -0
  71. package/dist/src/background/picker-provider.d.ts +3 -0
  72. package/dist/src/background/request-key.d.ts +1 -0
  73. package/dist/src/context.d.ts +114 -0
  74. package/dist/src/delegate/BackgroundSavePanel.vue.d.ts +18 -0
  75. package/dist/src/delegate/DelegatePanel.vue.d.ts +7 -0
  76. package/dist/src/delegate/ExecutorSettings.vue.d.ts +13 -0
  77. package/dist/src/delegate/copy.d.ts +101 -0
  78. package/dist/src/delegate/executor-setup.d.ts +16 -0
  79. package/dist/src/delegate/facade.d.ts +8 -0
  80. package/dist/src/delegate/long-running.d.ts +74 -0
  81. package/dist/src/delegate/save-copy.d.ts +126 -0
  82. package/dist/src/delegate/scoped-picker.d.ts +3 -0
  83. package/dist/src/delegate/use-executor-setup.d.ts +4 -0
  84. package/dist/src/files/FileBrowser.vue.d.ts +17 -0
  85. package/dist/src/files/FilesPage.vue.d.ts +7 -0
  86. package/dist/src/files/transfers.d.ts +9 -0
  87. package/dist/src/i18n.d.ts +7 -0
  88. package/dist/src/identity/LoginPage.vue.d.ts +8 -0
  89. package/dist/src/identity/i18n.d.ts +31 -0
  90. package/dist/src/identity/session.d.ts +20 -0
  91. package/dist/src/index.d.ts +24 -0
  92. package/dist/src/nas/NasPicker.vue.d.ts +22 -0
  93. package/dist/src/nas/contract.d.ts +27 -0
  94. package/dist/src/nas/i18n.d.ts +2 -0
  95. package/dist/src/nas/locale.d.ts +45 -0
  96. package/dist/src/nas/provider.d.ts +3 -0
  97. package/dist/src/nas/use-request.d.ts +6 -0
  98. package/dist/src/portal/PortalSettings.vue.d.ts +7 -0
  99. package/dist/src/protocol/codec.d.ts +17 -0
  100. package/dist/src/protocol/v1.d.ts +518 -0
  101. package/dist/src/shell/AppShell.vue.d.ts +26 -0
  102. package/dist/src/shell/i18n.d.ts +7 -0
  103. package/dist/src/shell/pages.d.ts +7 -0
  104. package/dist/src/vue.d.ts +15 -0
  105. package/dist/style.css +1 -0
  106. package/dist/vue.js +2331 -0
  107. package/package.json +64 -4
  108. package/spec/protocol/v1/README.md +112 -0
  109. package/spec/protocol/v1/errors.json +454 -0
  110. package/spec/protocol/v1/schema/delegate.audit.json +11 -0
  111. package/spec/protocol/v1/schema/delegate.create.json +49 -0
  112. package/spec/protocol/v1/schema/delegate.disable.json +11 -0
  113. package/spec/protocol/v1/schema/delegate.enable.json +11 -0
  114. package/spec/protocol/v1/schema/delegate.list.json +11 -0
  115. package/spec/protocol/v1/schema/delegate.revoke.json +23 -0
  116. package/spec/protocol/v1/schema/files.cancelOperation.json +24 -0
  117. package/spec/protocol/v1/schema/files.checkPermission.json +30 -0
  118. package/spec/protocol/v1/schema/files.copy.json +42 -0
  119. package/spec/protocol/v1/schema/files.createFolder.json +38 -0
  120. package/spec/protocol/v1/schema/files.delete.json +36 -0
  121. package/spec/protocol/v1/schema/files.info.json +30 -0
  122. package/spec/protocol/v1/schema/files.list.json +30 -0
  123. package/spec/protocol/v1/schema/files.move.json +42 -0
  124. package/spec/protocol/v1/schema/files.moveFromStaging.json +47 -0
  125. package/spec/protocol/v1/schema/files.operationStatus.json +24 -0
  126. package/spec/protocol/v1/schema/files.read.json +35 -0
  127. package/spec/protocol/v1/schema/files.rename.json +35 -0
  128. package/spec/protocol/v1/schema/files.taskCancel.json +29 -0
  129. package/spec/protocol/v1/schema/files.taskStatus.json +29 -0
  130. package/spec/protocol/v1/schema/files.write.json +46 -0
  131. package/spec/protocol/v1/schema/root.run.json +19 -0
  132. package/spec/protocol/v1/schema/status.json +11 -0
  133. package/spec/protocol/v1/vectors/delegate.jsonl +16 -0
  134. package/spec/protocol/v1/vectors/envelope.jsonl +11 -0
  135. package/spec/protocol/v1/vectors/files.jsonl +10 -0
  136. 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
+ }