@synopackageland/sdk 0.9.3 → 0.9.5
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/dist/src/protocol/codec.d.ts +2 -0
- package/dist/style.css +1 -1
- package/dist/vue.js +821 -835
- package/package.json +1 -1
- package/spec/protocol/v1/README.md +7 -3
- package/dist/src/files/FolderIcon.vue.d.ts +0 -8
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synopackageland/sdk",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.5",
|
|
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",
|
|
@@ -30,14 +30,18 @@ the executor against the vectors here.
|
|
|
30
30
|
## Request
|
|
31
31
|
|
|
32
32
|
```json
|
|
33
|
-
{"v":1,"op":"files.moveFromStaging","auth":{"dsm_cookie":"…","dsm_synotoken":"…"},"params":{…}}
|
|
33
|
+
{"v":1,"op":"files.moveFromStaging","auth":{"dsm_cookie":"…","dsm_synotoken":"…","remote_addr":"192.0.2.1"},"params":{…}}
|
|
34
34
|
```
|
|
35
35
|
|
|
36
36
|
- `v` MUST be `1`.
|
|
37
37
|
- `op` MUST be one of the ops with a schema in `schema/`. An unknown op is
|
|
38
38
|
`UNKNOWN_OP`; an op outside the approved policy is `POLICY_DENIED`.
|
|
39
|
-
- `auth` is OPTIONAL. When present it MUST contain only `dsm_cookie
|
|
40
|
-
`dsm_synotoken
|
|
39
|
+
- `auth` is OPTIONAL. When present it MUST contain only `dsm_cookie`,
|
|
40
|
+
`dsm_synotoken` and `remote_addr` (since 0.9.4), the browser's address
|
|
41
|
+
(REMOTE_ADDR). DSM's Application Privileges are evaluated for that address;
|
|
42
|
+
an op that checks them MUST be refused with `APP_DENIED` when a present
|
|
43
|
+
`auth` has no usable `remote_addr`. Requests without `auth` are checked as
|
|
44
|
+
coming from 127.0.0.1. A present `auth` is always treated as caller
|
|
41
45
|
authentication, never ignored, even when empty. Ops whose schema says
|
|
42
46
|
`"auth": "required"` MUST be refused with `AUTH_DENIED` without a valid DSM
|
|
43
47
|
session.
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
type __VLS_Props = {
|
|
2
|
-
size?: number;
|
|
3
|
-
};
|
|
4
|
-
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
5
|
-
size: number;
|
|
6
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
|
-
declare const _default: typeof __VLS_export;
|
|
8
|
-
export default _default;
|