@onlyworlds/sdk 4.133.0 → 4.133.2

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/AGENTS.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # For AI agents using @onlyworlds/sdk
2
2
 
3
- **Current as of**: SDK **4.x** · schema-dist **v0.34.0-dist.108** (canonical 00.34.00).
3
+ **Current as of**: SDK **4.x** · schema-dist **v0.34.0-dist.109** (canonical 00.34.00).
4
4
  This line is asserted by `codegen:check` in CI — if the pin moves and this file is not
5
5
  re-read against it, the check fails rather than letting this document rot quietly.
6
6
 
package/CHANGELOG.md CHANGED
@@ -5,6 +5,23 @@ earlier history lives in git log only.
5
5
 
6
6
  ## [Unreleased]
7
7
 
8
+ ## [4.133.2] - 2026-11-08
9
+
10
+ ### Changed
11
+
12
+ - Schema repinned to schema-dist `v0.34.0-dist.109` (canonical 00.34.00 unchanged, no field moved). The calendar profile now refuses an era whose `year_base` is present and not 0 or 1, as its field table always said, and its fixture gains `refuse-year-base-five` (77 cases, 43 refusals). The calendar reader already refused such an era; the replayed fixture now holds it.
13
+
14
+ ### Fixed
15
+
16
+ - `mintWorldKey`'s comment said that without `keep`, revoking the token takes the keys it minted. That holds for a token a tool got through Sign in with OnlyWorlds; a token from `signInWithPassword` or one made by hand never takes its keys, as `revokeAccountToken`'s comment already said. Words only.
17
+ - `createAccountWorld`'s comments said an account with a PIN must leave `pin` out (a 422) and that the route takes no Idempotency-Key. Since 2026-11-07 the server checks a `pin` sent by an account that has one before it makes the world (a wrong one is a 401 with `param: 'pin'`, nothing made) and takes an Idempotency-Key, whose replay answers the world without its key. The call is unchanged: it sends `pin` as given and no Idempotency-Key. Words only.
18
+
19
+ ## [4.133.1] - 2026-11-06
20
+
21
+ ### Changed
22
+
23
+ - `TOOLS` is the tools list at `9452529`: Atlas's row now says `opens_public: true` (its links open a public world with nothing signed in, and `needs` stays `account` for a private one), so `openersFor` with `TOOLS` offers Atlas as a live row on a world's public page.
24
+
8
25
  ## [4.133.0] - 2026-11-06
9
26
 
10
27
  ### Added
package/SCHEMA.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # OnlyWorlds Schema Reference
2
2
 
3
- **Source**: https://github.com/OnlyWorlds/schema-dist @ **v0.34.0-dist.108** — canonical schema **00.34.00**, published 2026-11-04.
3
+ **Source**: https://github.com/OnlyWorlds/schema-dist @ **v0.34.0-dist.109** — canonical schema **00.34.00**, published 2026-11-07.
4
4
 
5
5
  GENERATED from the canonical schema YAML — do not hand-edit (regenerate: `python codegen/generate_types.py`).
6
6
  Written for both humans and AI agents reading this package locally.
@@ -1401,7 +1401,8 @@ var TOOLS = [
1401
1401
  "element": "https://atlas.onlyworlds.com/#/open/{world}/element/{id}",
1402
1402
  "needs": "account",
1403
1403
  "element_skips": [],
1404
- "element_types": null
1404
+ "element_types": null,
1405
+ "opens_public": true
1405
1406
  }
1406
1407
  },
1407
1408
  {
package/dist/index.d.ts CHANGED
@@ -3533,7 +3533,7 @@ interface OwAccountWorld {
3533
3533
  interface OwCreateAccountWorldInput {
3534
3534
  /** The world's name: 1 to 255 characters, not blank (keel trims it). */
3535
3535
  name: string;
3536
- /** Only for an account with no PIN yet: 4 digits, 1000-9999, which becomes the account PIN. An account with a PIN leaves it out. */
3536
+ /** The account PIN, 4 digits. An account with no PIN yet must send one (1000-9999), which becomes the account PIN; an account with a PIN may send it to have it checked before the world is made (wrong: 401 with `param: 'pin'`, nothing made), or leave it out. */
3537
3537
  pin?: string | number;
3538
3538
  /** A name for the world's write key, as the website's key list shows it: 1 to 80 characters, trimmed. Left out or null: no name. */
3539
3539
  keyName?: string | null;
@@ -5108,18 +5108,20 @@ declare class OwV2Client {
5108
5108
  listAccountWorlds(): Promise<OwAccountWorld[]>;
5109
5109
  /**
5110
5110
  * POST /account/worlds -- make a world on the account, with its one write key. `name` is required
5111
- * (1 to 255 characters, not blank; keel trims it). `pin` only while the account has no PIN (4
5112
- * digits, 1000-9999): it becomes the account PIN and the write wall on every world of the
5113
- * account. An account with a PIN must leave it out. Either mistake is a 422 with `param: 'pin'`
5114
- * (`err.param`) and nothing made, so a tool that cannot tell which account it holds sends without
5115
- * `pin` first and, on that 422, again with it. `keyName` names the write key as the website's key
5111
+ * (1 to 255 characters, not blank; keel trims it). `pin` is the account PIN, 4 digits. An account
5112
+ * with no PIN must send one (1000-9999): it becomes the account PIN and the write wall on every
5113
+ * world of the account; left out, a 422 with `param: 'pin'` (`err.param`) and nothing made. An
5114
+ * account with a PIN may send it to have it checked before the world is made: a wrong one is a 401
5115
+ * `invalid_credentials` with `param: 'pin'` and nothing made, counted toward the same lockout as a
5116
+ * write's PIN (then 429 `rate_limited`); left out, the world takes the account's PIN. So a tool
5117
+ * that holds the person's PIN can always send it. `keyName` names the write key as the website's key
5116
5118
  * list shows it (1 to 80 characters, trimmed; null or left out: no name). `source` and `producer`
5117
5119
  * are the folder format's provenance lines (spec 4.2), each an object or null, from a tool that
5118
5120
  * makes the world from a folder: kept on the World as given, served by getWorld() as `origin`.
5119
5121
  * Only the keys given are sent, `keyName` as `key_name`. 201: the world's row, as
5120
- * listAccountWorlds lists it, with the full write key once in `key`. Account token only; no
5121
- * Idempotency-Key (keel's document declares none): if the answer is lost, the world is in
5122
- * listAccountWorlds, and mintWorldKey gives it a key.
5122
+ * listAccountWorlds lists it, with the full write key once in `key`. Account token only. Sends no
5123
+ * Idempotency-Key (keel takes one since 2026-11-07, and a replay answers the world without `key`):
5124
+ * if the answer is lost, the world is in listAccountWorlds, and mintWorldKey gives it a key.
5123
5125
  */
5124
5126
  createAccountWorld(opts: OwCreateAccountWorldInput): Promise<OwCreatedAccountWorld>;
5125
5127
  /**
@@ -5131,7 +5133,9 @@ declare class OwV2Client {
5131
5133
  * token only; no Idempotency-Key. `keep: true` keeps the key across a sign-out: revoking the token
5132
5134
  * that minted it leaves it live (a tool that stores a key on the device passes it), while
5133
5135
  * disconnecting the tool, or a replayed sign-in code, still takes it; the answer says `kept`.
5134
- * Without it, revoking the token revokes the keys it minted unless the tool holds another live token.
5136
+ * Without it, revoking a token a tool got through Sign in with OnlyWorlds revokes the keys it minted,
5137
+ * unless the person holds another live token of the same tool; a token made by hand or by a password
5138
+ * sign-in (signInWithPassword), or one of a tool that asks each time, never takes its keys.
5135
5139
  */
5136
5140
  mintWorldKey(worldId: string, opts?: {
5137
5141
  scope?: 'read' | 'write';
package/dist/index.js CHANGED
@@ -42,7 +42,7 @@ import {
42
42
  trimWhiteSpace,
43
43
  typeWord,
44
44
  unknownKey
45
- } from "./chunk-UNCDYXE2.js";
45
+ } from "./chunk-I2JWJYIP.js";
46
46
 
47
47
  // src/v2/keyed-id.ts
48
48
  var KEYED_IDS = "0199b6a0-6f0e-7c2a-9d1e-3b5c7a8e4f21";
@@ -1903,18 +1903,20 @@ var OwV2Client = class {
1903
1903
  }
1904
1904
  /**
1905
1905
  * POST /account/worlds -- make a world on the account, with its one write key. `name` is required
1906
- * (1 to 255 characters, not blank; keel trims it). `pin` only while the account has no PIN (4
1907
- * digits, 1000-9999): it becomes the account PIN and the write wall on every world of the
1908
- * account. An account with a PIN must leave it out. Either mistake is a 422 with `param: 'pin'`
1909
- * (`err.param`) and nothing made, so a tool that cannot tell which account it holds sends without
1910
- * `pin` first and, on that 422, again with it. `keyName` names the write key as the website's key
1906
+ * (1 to 255 characters, not blank; keel trims it). `pin` is the account PIN, 4 digits. An account
1907
+ * with no PIN must send one (1000-9999): it becomes the account PIN and the write wall on every
1908
+ * world of the account; left out, a 422 with `param: 'pin'` (`err.param`) and nothing made. An
1909
+ * account with a PIN may send it to have it checked before the world is made: a wrong one is a 401
1910
+ * `invalid_credentials` with `param: 'pin'` and nothing made, counted toward the same lockout as a
1911
+ * write's PIN (then 429 `rate_limited`); left out, the world takes the account's PIN. So a tool
1912
+ * that holds the person's PIN can always send it. `keyName` names the write key as the website's key
1911
1913
  * list shows it (1 to 80 characters, trimmed; null or left out: no name). `source` and `producer`
1912
1914
  * are the folder format's provenance lines (spec 4.2), each an object or null, from a tool that
1913
1915
  * makes the world from a folder: kept on the World as given, served by getWorld() as `origin`.
1914
1916
  * Only the keys given are sent, `keyName` as `key_name`. 201: the world's row, as
1915
- * listAccountWorlds lists it, with the full write key once in `key`. Account token only; no
1916
- * Idempotency-Key (keel's document declares none): if the answer is lost, the world is in
1917
- * listAccountWorlds, and mintWorldKey gives it a key.
1917
+ * listAccountWorlds lists it, with the full write key once in `key`. Account token only. Sends no
1918
+ * Idempotency-Key (keel takes one since 2026-11-07, and a replay answers the world without `key`):
1919
+ * if the answer is lost, the world is in listAccountWorlds, and mintWorldKey gives it a key.
1918
1920
  */
1919
1921
  async createAccountWorld(opts) {
1920
1922
  only("createAccountWorld", opts, ["name", "pin", "keyName", "source", "producer"]);
@@ -1940,7 +1942,9 @@ var OwV2Client = class {
1940
1942
  * token only; no Idempotency-Key. `keep: true` keeps the key across a sign-out: revoking the token
1941
1943
  * that minted it leaves it live (a tool that stores a key on the device passes it), while
1942
1944
  * disconnecting the tool, or a replayed sign-in code, still takes it; the answer says `kept`.
1943
- * Without it, revoking the token revokes the keys it minted unless the tool holds another live token.
1945
+ * Without it, revoking a token a tool got through Sign in with OnlyWorlds revokes the keys it minted,
1946
+ * unless the person holds another live token of the same tool; a token made by hand or by a password
1947
+ * sign-in (signInWithPassword), or one of a tool that asks each time, never takes its keys.
1944
1948
  */
1945
1949
  async mintWorldKey(worldId, opts = {}) {
1946
1950
  only("mintWorldKey", opts, ["scope", "name", "keep"]);
package/dist/waymark.js CHANGED
@@ -6,7 +6,7 @@ import {
6
6
  openersFor,
7
7
  refuseUnknownOptions,
8
8
  typeWord
9
- } from "./chunk-UNCDYXE2.js";
9
+ } from "./chunk-I2JWJYIP.js";
10
10
 
11
11
  // src/waymark/glyphs.ts
12
12
  var MARK_PATH = "M48.8 0.0 43.8 0.4 39.0 1.2 36.0 2.0 33.2 2.9 29.3 4.5 24.8 6.8 20.6 9.5 17.0 12.4 13.6 15.7 10.4 19.4 7.8 23.1 5.8 26.6 4.5 29.3 3.3 32.1 1.8 36.8 0.8 41.2 0.1 46.3 0.0 51.1 0.4 56.2 1.2 61.0 2.0 63.9 2.9 66.8 4.5 70.7 6.8 75.2 9.5 79.4 12.4 82.9 15.7 86.3 19.4 89.5 23.1 92.1 26.6 94.2 29.3 95.5 32.1 96.7 36.8 98.2 41.2 99.2 46.3 99.8 51.1 100.0 56.2 99.6 61.0 98.8 63.9 98.0 66.8 97.1 70.7 95.5 75.2 93.2 79.4 90.4 82.9 87.6 86.3 84.3 89.5 80.5 92.1 76.9 94.2 73.4 95.5 70.7 96.7 67.9 98.2 63.2 99.2 58.7 99.8 53.7 100.0 48.8 99.6 43.8 98.6 38.4 97.1 33.2 95.5 29.3 93.2 24.8 90.4 20.6 87.6 17.0 84.3 13.6 80.5 10.4 76.9 7.8 73.4 5.8 70.7 4.5 67.9 3.3 63.2 1.8 58.7 0.8 53.7 0.1ZM77.5 80.7 74.1 83.4 70.7 85.7 67.0 87.5 64.5 88.6 64.1 88.7 65.7 86.3 67.1 83.9 68.7 80.7 69.9 77.6 72.7 78.5 73.0 78.4ZM22.5 80.7 25.6 79.0 27.3 78.3 30.0 77.6 31.3 80.7 32.8 83.9 34.2 86.3 35.9 88.7 32.9 87.5 29.3 85.7 25.8 83.4ZM51.2 74.5 55.1 74.7 59.9 75.2 64.2 76.0 67.5 76.9 66.0 80.5 64.2 84.0 62.0 87.4 59.6 90.1 55.1 90.9 52.2 91.2 51.2 91.1ZM48.7 74.5 48.8 91.1 47.7 91.2 44.9 90.9 40.3 90.1 38.2 87.8 36.3 85.0 34.2 81.2 32.5 77.0 35.8 76.0 40.5 75.2 44.5 74.7ZM91.1 51.2 91.1 52.9 90.8 56.3 90.1 59.7 89.3 62.5 88.5 64.8 87.2 67.7 85.7 70.7 83.9 73.4 82.0 75.9 79.4 78.9 76.3 77.2 73.8 76.1 76.2 68.8 77.8 62.7 78.7 56.8 79.0 51.2ZM55.8 51.2 67.7 51.2 67.6 55.1 67.2 59.0 66.7 61.5 65.7 65.0 61.0 64.2 55.7 63.6ZM32.5 51.2 44.5 51.2 44.4 63.6 39.7 64.1 34.5 65.0 33.5 61.3 32.9 58.1 32.5 54.2ZM8.8 51.2 21.0 51.2 21.0 53.3 21.4 56.6 22.7 64.0 23.8 68.4 25.0 72.1 26.6 75.9 23.7 77.2 20.6 78.9 18.5 76.7 16.5 74.1 14.8 71.5 13.4 69.1 12.1 66.3 11.0 63.6 10.1 60.5 9.4 57.3 8.9 53.5 8.8 51.3ZM36.2 27.0 39.5 27.5 44.5 28.2 44.4 48.8 32.4 48.7 32.8 44.5 33.6 39.1 35.0 32.0ZM63.9 26.9 65.2 32.1 66.6 39.2 67.4 44.8 67.7 48.7 55.8 48.8 55.7 28.1 60.5 27.5ZM74.8 23.4 76.9 22.5 79.4 21.1 82.0 24.0 84.8 27.8 86.2 30.3 87.5 32.9 88.6 35.4 89.5 38.1 90.3 41.2 90.8 44.0 91.1 47.0 91.1 48.8 79.0 48.7 78.7 44.6 78.0 39.3 76.5 31.2 74.7 23.5ZM25.5 23.5 25.5 23.7 24.5 26.8 23.7 30.2 22.4 36.6 21.5 42.5 21.1 48.7 8.8 48.8 8.8 47.0 9.2 43.7 9.8 40.8 10.5 38.1 11.5 35.2 12.4 32.9 13.8 30.2 15.2 27.8 17.9 24.0 20.6 21.1 23.1 22.5ZM64.1 11.3 67.0 12.4 70.7 14.3 74.1 16.5 77.5 19.3 75.6 20.3 73.2 21.5 70.0 22.6 68.7 19.2 67.1 16.1 65.7 13.6ZM35.9 11.3 34.2 13.6 32.8 16.1 31.3 19.2 30.0 22.5 27.9 21.9 26.4 21.3 22.5 19.3 25.8 16.5 29.3 14.3 32.9 12.4 35.4 11.4ZM51.2 8.8 52.2 8.8 55.1 9.0 59.6 9.9 61.7 12.2 64.2 16.0 66.0 19.5 67.6 23.3 64.3 24.3 59.4 25.2 56.2 25.6 51.2 25.5ZM48.8 8.8 48.7 25.5 44.2 25.6 40.6 25.2 36.4 24.5 32.4 23.2 33.9 19.5 35.7 16.0 38.2 12.2 40.3 9.9 44.9 9.0 47.7 8.8Z";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onlyworlds/sdk",
3
- "version": "4.133.0",
3
+ "version": "4.133.2",
4
4
  "description": "TypeScript SDK for the OnlyWorlds API - build world-building applications with type safety",
5
5
  "type": "module",
6
6
  "exports": {