@synopackageland/sdk 0.26.0 → 0.27.0
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/README.md +14 -0
- package/dist/index.js +2952 -2804
- package/dist/src/background/picker-provider.d.ts +1 -1
- package/dist/src/context.d.ts +1 -1
- package/dist/src/dsm/filestation.d.ts +35 -0
- package/dist/src/files/transfers.d.ts +4 -3
- package/dist/src/index.d.ts +2 -0
- package/dist/src/nas/contract.d.ts +1 -1
- package/dist/src/protocol/v1.d.ts +2 -2
- package/dist/style.css +1 -1
- package/dist/vue.js +1221 -1220
- package/package.json +2 -2
- package/spec/protocol/v1/README.md +10 -0
- package/spec/protocol/v1/schema/files.checkPermission.json +1 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synopackageland/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.27.0",
|
|
4
4
|
"description": "Frontend SDK for DSM packages built with synopkgland: headless client and Vue components",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://github.com/synopackageland/syno-pkg-land-sdk/tree/main/ts#readme",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@lucide/vue": "1.48.0",
|
|
60
|
-
"@synopackageland/ui": "0.14.
|
|
60
|
+
"@synopackageland/ui": "0.14.8",
|
|
61
61
|
"@types/node": "24.19.2",
|
|
62
62
|
"@vitejs/plugin-vue": "6.0.9",
|
|
63
63
|
"jsdom": "29.1.1",
|
|
@@ -487,3 +487,13 @@ It MUST NOT raise frame limits. Staging MUST be App-owned 0600 under a private
|
|
|
487
487
|
0700 package directory. The App MUST verify size/hash and unlink after reading.
|
|
488
488
|
Header, execution, spool cleanup and error rules are specified in
|
|
489
489
|
[the raw contract](../../../docs/webapi-raw.md).
|
|
490
|
+
|
|
491
|
+
### Destination permission observations
|
|
492
|
+
|
|
493
|
+
`files.checkPermission` also supports an existing until-revoked
|
|
494
|
+
`files.moveFromStaging` destination: omit `job_id`, provide the exact granted
|
|
495
|
+
path and the current owner's session. The approved move policy permits only
|
|
496
|
+
this observation; it cannot widen the destination or grant new authority.
|
|
497
|
+
The executor rechecks current identity, App Privileges, scope, ACL and grant
|
|
498
|
+
fences. Legacy time-limited grants continue to require their `job_id` and
|
|
499
|
+
explicit operation policy. See `docs/dsm-session-transport.md` at the root.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"$id": "https://github.com/synopackageland/syno-pkg-land-sdk/spec/protocol/v1/schema/files.checkPermission.json",
|
|
4
4
|
"title": "files.checkPermission",
|
|
5
|
-
"description": "Check write permission for the delegated user.",
|
|
5
|
+
"description": "Check write permission for the delegated user. A legacy grant requires job_id. An until-revoked moveFromStaging destination omits job_id, requires the current owner session, and permits only its exact destination path; it never creates or widens a grant.",
|
|
6
6
|
"since": "0.9.0",
|
|
7
7
|
"auth": "optional",
|
|
8
8
|
"type": "object",
|
|
@@ -24,7 +24,6 @@
|
|
|
24
24
|
"additionalProperties": false,
|
|
25
25
|
"required": [
|
|
26
26
|
"delegation_id",
|
|
27
|
-
"job_id",
|
|
28
27
|
"path"
|
|
29
28
|
]
|
|
30
29
|
}
|