@onlyworlds/sdk 4.33.0 → 4.33.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/CHANGELOG.md CHANGED
@@ -5,6 +5,13 @@ earlier history lives in git log only.
5
5
 
6
6
  ## [Unreleased]
7
7
 
8
+ ## [4.33.1] - 2026-10-19
9
+
10
+ ### Fixed
11
+ - An `agent: true` client's file uploads now declare it: `createFileTicket` (and so `uploadFile`) sends
12
+ `X-OW-Agent`, the one files route keel's document lists it on (keel PR 95), so the file reads
13
+ `added_by.agent: true`. The other files routes and the upload host get no such header.
14
+
8
15
  ## [4.33.0] - 2026-10-19
9
16
 
10
17
  ### Added
package/dist/index.js CHANGED
@@ -638,7 +638,7 @@ var OwV2Client = class {
638
638
  const kind = req.kind ?? requireFileKind(name);
639
639
  const body = { name, kind, size };
640
640
  if (req.label !== void 0) body.label = req.label;
641
- return this.request("POST", `/${type}/${encodeURIComponent(id)}/files`, { body });
641
+ return this.request("POST", `/${type}/${encodeURIComponent(id)}/files`, { body, write: true });
642
642
  }
643
643
  /**
644
644
  * Attach one file to an element: a ticket from the API (createFileTicket), then the bytes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onlyworlds/sdk",
3
- "version": "4.33.0",
3
+ "version": "4.33.1",
4
4
  "description": "TypeScript SDK for the OnlyWorlds API - build world-building applications with type safety",
5
5
  "type": "module",
6
6
  "exports": {