@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.
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "formatVersion": 1,
3
- "sdkVersion": "0.31.5",
4
- "executorVersion": "0.31.0",
3
+ "sdkVersion": "0.32.0",
4
+ "executorVersion": "0.32.0",
5
5
  "executorDigests": {
6
- "x86_64": "6ca1cb1c9441fafe7c4cf6e5ccea15d2fd1b99eeaeb9ecf28ebb866a2903a366",
7
- "aarch64": "1df50df4434de081c32aae37126fc8852b8a6f4c97bca1722e996edf678c0743",
8
- "armv7": "cb2af26402247d0de31c73326006404e928f269b1ad9f797a0e9382cb040e039",
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.31.5",
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,或 root 輸出超過 policy 的 max_output。"
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",