@onlyworlds/sdk 4.72.4 → 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/CHANGELOG.md CHANGED
@@ -5,6 +5,12 @@ 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
+
8
14
  ## [4.72.4] - 2026-10-25
9
15
 
10
16
  ### Changed
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onlyworlds/sdk",
3
- "version": "4.72.4",
3
+ "version": "4.73.0",
4
4
  "description": "TypeScript SDK for the OnlyWorlds API - build world-building applications with type safety",
5
5
  "type": "module",
6
6
  "exports": {