@synopackageland/sdk 0.31.5 → 0.32.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 +4 -3
- package/dist/index.js +31 -5
- package/dist/src/entry/EntryGuard.vue.d.ts +27 -0
- package/dist/src/entry/check.d.ts +13 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/src/protocol/v1.d.ts +2 -2
- package/dist/src/vue.d.ts +1 -0
- package/dist/vue.js +1437 -1360
- package/executor-manifest.json +5 -5
- package/package.json +1 -1
- package/spec/protocol/v1/README.md +9 -0
- package/spec/protocol/v1/errors.json +2 -2
- package/spec/protocol/v1/schema/files.write.json +1 -1
package/executor-manifest.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"formatVersion": 1,
|
|
3
|
-
"sdkVersion": "0.
|
|
4
|
-
"executorVersion": "0.
|
|
3
|
+
"sdkVersion": "0.32.0",
|
|
4
|
+
"executorVersion": "0.32.0",
|
|
5
5
|
"executorDigests": {
|
|
6
|
-
"x86_64": "
|
|
7
|
-
"aarch64": "
|
|
8
|
-
"armv7": "
|
|
6
|
+
"x86_64": "aa8259f22620c3301ee83b76f6de6fbf06b4df36f49b64a5cc12772a3072abcc",
|
|
7
|
+
"aarch64": "97d2b3d8d4a169ba39583a78d5f30428f877d9aac7b38415a69ac024200716bd",
|
|
8
|
+
"armv7": "3cb936feabe1252a6fc4d44ac5318ff340bbc5fc89acd53a9afaddeaa94914bf",
|
|
9
9
|
"lifecycle": {
|
|
10
10
|
"x86_64": "c6fbb377ecd5ec7ee5b96439f22091d9fa5965dfd616d510ca9445722f436721",
|
|
11
11
|
"aarch64": "a9ca1750d4d5cff4727dc29789e6eaf0a365cb0e674f1bb796971d82f2d4fa27",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synopackageland/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.32.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",
|
|
@@ -427,6 +427,15 @@ input MUST be `operation-conflict`. States: `queued`, `copying`, `committed`,
|
|
|
427
427
|
`files.cancelOperation` report the operation; `code` and `reason` in it are
|
|
428
428
|
codes of kind `outcome` and `reason`.
|
|
429
429
|
|
|
430
|
+
## files.write size limit
|
|
431
|
+
|
|
432
|
+
`files.write` publishes a package-staged file into the granted folder as the
|
|
433
|
+
delegated user. The staged file MUST be at most 104857600 bytes (100 MiB); the
|
|
434
|
+
executor MUST check the size of the opened staging file before creating a
|
|
435
|
+
destination or child and refuse a larger one with `limit-exceeded`. The limit is
|
|
436
|
+
independent of the `files.read` cap (`max_bytes`, at most 64 MiB). Copying MUST
|
|
437
|
+
use bounded buffers; the file MUST NOT be held in memory.
|
|
438
|
+
|
|
430
439
|
## Vectors
|
|
431
440
|
|
|
432
441
|
Each line of `vectors/*.jsonl`:
|
|
@@ -375,8 +375,8 @@
|
|
|
375
375
|
"kind": "refusal",
|
|
376
376
|
"retryable": false,
|
|
377
377
|
"httpStatus": 413,
|
|
378
|
-
"en": "The file is larger than max_bytes, or root output is larger than its policy max_output.",
|
|
379
|
-
"zh-TW": "檔案超過 max_bytes
|
|
378
|
+
"en": "The file is larger than max_bytes (files.read) or 100 MiB (files.write), or root output is larger than its policy max_output.",
|
|
379
|
+
"zh-TW": "檔案超過 max_bytes(files.read)或 100 MiB(files.write),或 root 輸出超過 policy 的 max_output。"
|
|
380
380
|
},
|
|
381
381
|
{
|
|
382
382
|
"code": "OPERATION_CANCELED",
|
|
@@ -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.write.json",
|
|
4
4
|
"title": "files.write",
|
|
5
|
-
"description": "Publish a staged file synchronously.",
|
|
5
|
+
"description": "Publish a staged file synchronously. The staged file may be at most 104857600 bytes (100 MiB); a larger one is refused with limit-exceeded.",
|
|
6
6
|
"since": "0.9.0",
|
|
7
7
|
"auth": "optional",
|
|
8
8
|
"type": "object",
|