@synopackageland/sdk 0.9.0 → 0.9.2

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 (55) hide show
  1. package/README.md +1 -1
  2. package/dist/i18n/authorization/de.json +7 -2
  3. package/dist/i18n/authorization/en.json +6 -1
  4. package/dist/i18n/authorization/es.json +6 -1
  5. package/dist/i18n/authorization/fr.json +6 -1
  6. package/dist/i18n/authorization/it.json +6 -1
  7. package/dist/i18n/authorization/ja.json +7 -2
  8. package/dist/i18n/authorization/ko.json +7 -2
  9. package/dist/i18n/authorization/zh-CN.json +6 -1
  10. package/dist/i18n/authorization/zh-TW.json +6 -1
  11. package/dist/i18n/delegate/de.json +2 -0
  12. package/dist/i18n/delegate/en.json +2 -0
  13. package/dist/i18n/delegate/es.json +2 -0
  14. package/dist/i18n/delegate/fr.json +2 -0
  15. package/dist/i18n/delegate/it.json +2 -0
  16. package/dist/i18n/delegate/ja.json +2 -0
  17. package/dist/i18n/delegate/ko.json +2 -0
  18. package/dist/i18n/delegate/zh-CN.json +2 -0
  19. package/dist/i18n/delegate/zh-TW.json +2 -0
  20. package/dist/i18n/files/de.json +5 -2
  21. package/dist/i18n/files/en.json +5 -2
  22. package/dist/i18n/files/es.json +5 -2
  23. package/dist/i18n/files/fr.json +5 -2
  24. package/dist/i18n/files/it.json +5 -2
  25. package/dist/i18n/files/ja.json +5 -2
  26. package/dist/i18n/files/ko.json +5 -2
  27. package/dist/i18n/files/zh-CN.json +5 -2
  28. package/dist/i18n/files/zh-TW.json +5 -2
  29. package/dist/i18n/save/de.json +2 -0
  30. package/dist/i18n/save/en.json +2 -0
  31. package/dist/i18n/save/es.json +2 -0
  32. package/dist/i18n/save/fr.json +2 -0
  33. package/dist/i18n/save/it.json +2 -0
  34. package/dist/i18n/save/ja.json +2 -0
  35. package/dist/i18n/save/ko.json +2 -0
  36. package/dist/i18n/save/zh-CN.json +2 -0
  37. package/dist/i18n/save/zh-TW.json +2 -0
  38. package/dist/index.js +2136 -2029
  39. package/dist/src/authorization/AuthorizationGate.vue.d.ts +2 -2
  40. package/dist/src/authorization/AuthorizationSettings.vue.d.ts +3 -0
  41. package/dist/src/authorization/use-authorization.d.ts +20 -0
  42. package/dist/src/delegate/copy.d.ts +4 -0
  43. package/dist/src/delegate/long-running.d.ts +1 -1
  44. package/dist/src/delegate/save-copy.d.ts +6 -0
  45. package/dist/src/files/FolderIcon.vue.d.ts +8 -0
  46. package/dist/src/files/size.d.ts +2 -0
  47. package/dist/src/i18n.d.ts +3 -2
  48. package/dist/src/nas/locale.d.ts +3 -0
  49. package/dist/src/protocol/v1.d.ts +1 -7
  50. package/dist/src/vue.d.ts +2 -0
  51. package/dist/style.css +1 -1
  52. package/dist/vue.js +1335 -1220
  53. package/package.json +3 -3
  54. package/spec/protocol/v1/README.md +11 -0
  55. package/spec/protocol/v1/errors.json +0 -8
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synopackageland/sdk",
3
- "version": "0.9.0",
3
+ "version": "0.9.2",
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",
@@ -40,7 +40,7 @@
40
40
  },
41
41
  "peerDependencies": {
42
42
  "@lucide/vue": "^1.48.0",
43
- "@synopackageland/ui": "^0.9.0",
43
+ "@synopackageland/ui": "^0.9.1",
44
44
  "vue": "^3.5.0"
45
45
  },
46
46
  "peerDependenciesMeta": {
@@ -53,7 +53,7 @@
53
53
  },
54
54
  "devDependencies": {
55
55
  "@lucide/vue": "1.48.0",
56
- "@synopackageland/ui": "0.9.0",
56
+ "@synopackageland/ui": "0.9.1",
57
57
  "@types/node": "24.19.2",
58
58
  "@vitejs/plugin-vue": "6.0.9",
59
59
  "jsdom": "27.4.0",
@@ -76,6 +76,17 @@ digest MUST change only when the executor source changes.
76
76
  - An until-revoked grant (`destination`, `lifetime: "until-revoked"`) covers
77
77
  only `files.moveFromStaging` into one directory. A new grant for the same
78
78
  user and destination MUST revoke the previous one (`destination-replaced`).
79
+ Creating it again for the same directory MUST return the active grant
80
+ unchanged, so a client retrying a create it timed out on keeps its saves.
81
+ - Every operation under an until-revoked grant MUST revalidate the account,
82
+ Application Privileges, scope, directory identity and write permission
83
+ against DSM. A failure the user or an administrator can undo MUST fail only
84
+ that operation and MUST keep the grant: `PERMISSION_DENIED` (the ACL refuses
85
+ the write) and `not-found` (the granted folder is not at its path). Once the
86
+ cause is fixed, a new operation under the same grant succeeds. Any other
87
+ revalidation failure (`DELEGATION_DENIED`, `INELIGIBLE`, `APP_DENIED`,
88
+ `SCOPE_DENIED`, including a different folder at the granted path) MUST
89
+ revoke the grant; the user then chooses the destination again.
79
90
  - `files.taskStatus` and `files.taskCancel` follow the task's op and MUST NOT
80
91
  be granted directly.
81
92
  - An administrator MAY turn the integration off with `delegate.disable`; then
@@ -378,14 +378,6 @@
378
378
  "en": "An administrator disabled the integration.",
379
379
  "zh-TW": "管理員停用了此整合。"
380
380
  },
381
- {
382
- "code": "grant-inactive",
383
- "kind": "reason",
384
- "retryable": false,
385
- "httpStatus": 409,
386
- "en": "The grant is inactive.",
387
- "zh-TW": "授權目前無效。"
388
- },
389
381
  {
390
382
  "code": "validation-denied",
391
383
  "kind": "reason",