@onlyworlds/sdk 4.72.4 → 4.74.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 +12 -0
- package/dist/index.d.ts +19 -1
- package/dist/index.js +1 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,18 @@ earlier history lives in git log only.
|
|
|
5
5
|
|
|
6
6
|
## [Unreleased]
|
|
7
7
|
|
|
8
|
+
## [4.74.0] - 2026-10-25
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- **A hide's and an unhide's row on `/changes`**: `OwChangeUpsert` names `changed_at`, `changed_by` and `changed_via`, which keel sends only on the upsert row a hide or an unhide gives the readers who still see the element (the owner's keys, a co-builder, the member who made it; keel #682). The body carries `hidden: true` after a hide and no `hidden` after an unhide; the row's `change_seq` is the act's, the element's own stays in `element`. Every other upsert row carries none of the three.
|
|
13
|
+
|
|
14
|
+
## [4.73.0] - 2026-10-25
|
|
15
|
+
|
|
16
|
+
### Added
|
|
17
|
+
|
|
18
|
+
- **`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.
|
|
19
|
+
|
|
8
20
|
## [4.72.4] - 2026-10-25
|
|
9
21
|
|
|
10
22
|
### Changed
|
package/dist/index.d.ts
CHANGED
|
@@ -2047,8 +2047,21 @@ interface OwChangeUpsert {
|
|
|
2047
2047
|
type: string;
|
|
2048
2048
|
element: OwElement;
|
|
2049
2049
|
updated_at: string;
|
|
2050
|
-
/**
|
|
2050
|
+
/**
|
|
2051
|
+
* The change's place in the world's feed. On a hide's or an unhide's row (the one carrying
|
|
2052
|
+
* `changed_via`) it is that act's place; the element's own `change_seq`, in `element`, stays where it was.
|
|
2053
|
+
*/
|
|
2051
2054
|
change_seq: number;
|
|
2055
|
+
/**
|
|
2056
|
+
* Only on a hide's or an unhide's row, sent to the readers who still see the element (the owner's
|
|
2057
|
+
* keys, a co-builder, the member who made it): when it was hidden (`element.hidden` is true) or
|
|
2058
|
+
* unhidden (no `hidden`). Absent on every other upsert row.
|
|
2059
|
+
*/
|
|
2060
|
+
changed_at?: string | null;
|
|
2061
|
+
/** Only on a hide's or an unhide's row: the membership that hid or unhid it, or null for the world's owner (as a `hidden` delete row's `deleted_by`). */
|
|
2062
|
+
changed_by?: string | null;
|
|
2063
|
+
/** Only on a hide's or an unhide's row: its door (see {@link OwWriteDoor}), `site` for the owner's page on onlyworlds.com. */
|
|
2064
|
+
changed_via?: OwWriteDoor;
|
|
2052
2065
|
[k: string]: unknown;
|
|
2053
2066
|
}
|
|
2054
2067
|
/** A /changes item for an element deleted. */
|
|
@@ -3558,6 +3571,11 @@ interface OwSignInComplete {
|
|
|
3558
3571
|
interface OwSignInResult {
|
|
3559
3572
|
/** An `ow_a_` account token: keep it, it is the only copy (the SDK stores none). */
|
|
3560
3573
|
token: string;
|
|
3574
|
+
/**
|
|
3575
|
+
* The token's id: a tool done with the token revokes it with `DELETE /account/tokens/{tokenId}`,
|
|
3576
|
+
* sending the token itself as the bearer. Null from a server that does not send it yet.
|
|
3577
|
+
*/
|
|
3578
|
+
tokenId: string | null;
|
|
3561
3579
|
tokenType: 'bearer';
|
|
3562
3580
|
account: {
|
|
3563
3581
|
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
|