@onlyworlds/sdk 4.72.3 → 4.73.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/AGENTS.md +1 -1
- package/CHANGELOG.md +12 -0
- package/SCHEMA.md +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.js +1 -0
- package/package.json +1 -1
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.33.0-dist.
|
|
3
|
+
**Current as of**: SDK **4.x** · schema-dist **v0.33.0-dist.63** (canonical 00.33.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,18 @@ earlier history lives in git log only.
|
|
|
5
5
|
|
|
6
6
|
## [Unreleased]
|
|
7
7
|
|
|
8
|
+
## [4.73.0] - 2026-10-25
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- **`OwSignInResult.tokenId`**: the account token's id from Sign in with OnlyWorlds' exchange answer (`token_id`, live on onlyworlds.com 2026-10-25). A tool done with the token revokes it with `DELETE /account/tokens/{tokenId}`, sending the token itself as the bearer, instead of finding it in the token list by its last four characters. `null` from a server that does not send it yet, never a made-up id.
|
|
13
|
+
|
|
14
|
+
## [4.72.4] - 2026-10-25
|
|
15
|
+
|
|
16
|
+
### Changed
|
|
17
|
+
|
|
18
|
+
- **Schema repinned to schema-dist `v0.33.0-dist.63`** (from dist.61; the same canonical 00.33.00, so `ONLYWORLDS_VERSION` stays `'00.33.00'`, no schema file moved and no generated type changed). Serials 62 and 63 change only the dist's folder checker, `walk/lint_folder.py`: it imports the schema walk only when run as a command. This package does not ship it; the repin keeps both client packages on one serial.
|
|
19
|
+
|
|
8
20
|
## [4.72.3] - 2026-10-24
|
|
9
21
|
|
|
10
22
|
### Changed
|
package/SCHEMA.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# OnlyWorlds Schema Reference
|
|
2
2
|
|
|
3
|
-
**Source**: https://github.com/OnlyWorlds/schema-dist @ **v0.33.0-dist.
|
|
3
|
+
**Source**: https://github.com/OnlyWorlds/schema-dist @ **v0.33.0-dist.63** — canonical schema **00.33.00**, published 2026-10-25.
|
|
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.
|
package/dist/index.d.ts
CHANGED
|
@@ -3558,6 +3558,11 @@ interface OwSignInComplete {
|
|
|
3558
3558
|
interface OwSignInResult {
|
|
3559
3559
|
/** An `ow_a_` account token: keep it, it is the only copy (the SDK stores none). */
|
|
3560
3560
|
token: string;
|
|
3561
|
+
/**
|
|
3562
|
+
* The token's id: a tool done with the token revokes it with `DELETE /account/tokens/{tokenId}`,
|
|
3563
|
+
* sending the token itself as the bearer. Null from a server that does not send it yet.
|
|
3564
|
+
*/
|
|
3565
|
+
tokenId: string | null;
|
|
3561
3566
|
tokenType: 'bearer';
|
|
3562
3567
|
account: {
|
|
3563
3568
|
id: string;
|
package/dist/index.js
CHANGED
|
@@ -581,6 +581,7 @@ async function completeSignIn(baseUrl, fetchImpl, opts) {
|
|
|
581
581
|
}
|
|
582
582
|
return {
|
|
583
583
|
token: ok.token,
|
|
584
|
+
tokenId: typeof ok.token_id === "string" && ok.token_id !== "" ? ok.token_id : null,
|
|
584
585
|
tokenType: "bearer",
|
|
585
586
|
account: { id: ok.account.id, username: typeof ok.account.username === "string" ? ok.account.username : "" },
|
|
586
587
|
resume: record.resume ?? null
|