@ai4b-team/fsaos-gateway-sdk 5.8.0 → 5.9.1
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 +1 -0
- package/dist/iife/gateway.js +9 -6
- package/dist/iife/gateway.js.map +4 -4
- package/dist/iife/ui.js +1 -1
- package/dist/index.cjs +562 -398
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +17 -46
- package/dist/index.d.ts +17 -46
- package/dist/index.js +562 -399
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -52,6 +52,7 @@ Rule of thumb: if the answer should differ depending on *who is asking* or *whic
|
|
|
52
52
|
|
|
53
53
|
### File Uploads
|
|
54
54
|
- `uploadFile(file, { parentPath, name? })` and `useFileUpload()` save a new file item. If its name is taken, the kernel atomically chooses a numbered sibling such as `photo-2.png` and the SDK returns that item's actual ID and path. Retrying the same upload reuses its item.
|
|
55
|
+
- Files above 100 MiB travel in sequential parts. For a draft with a Retry button, keep the object returned by `createFileUpload(file, options)` and call `attempt.run(onProgress, signal)` again. The active draft retains acknowledged parts. Progress reaches 100 when the gateway confirms the saved file.
|
|
55
56
|
- A caller that treats the filename as a fixed address can pass `collisionPolicy: 'fail'` to retain `NAME_TAKEN`. For example, a version snapshot that later reads `version-<id>.json` by exact path must use this policy.
|
|
56
57
|
- Naming and replay are kernel decisions. The SDK makes no list request or client-side retry loop to choose a name.
|
|
57
58
|
|