@onlyworlds/sdk 4.155.1 → 4.157.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 +10 -9
- 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.157.0] - 2026-11-11
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
|
|
12
|
+
- **Six answer fields admit `null`, as the API document says they may**: a `/changes` upsert row's `updated_at` and a delete row's `deleted_at` (`OwChangeUpsert`, `OwChangeDelete`), a `/bulk` slot's `id`, `created_at` and `updated_at` (`OwBulkItemResult`: a failed slot carries no id), and a member row's `x_served_trimmed` (`OwMemberLenses`). The SDK typed them as never null; nothing at runtime changes, but code that reads one as a plain string now has to handle `null`.
|
|
13
|
+
|
|
14
|
+
## [4.156.0] - 2026-11-11
|
|
15
|
+
|
|
16
|
+
### Changed
|
|
17
|
+
|
|
18
|
+
- **`OwProposedNewElement.evidence` and `.expires` are `unknown`**: the world's queue serves a new element's review mark's `evidence` and `expires` as stored, whatever JSON value they hold (a list of ids, a number, an object), where it served a non-string as its text before. A string still arrives as written and null as null; anything else arrives as itself. Code that read either as a string narrows first (`typeof row.evidence === 'string'`). Whether a row has lapsed is its `state`; an `expires` that is not a date or a date-time never lapses.
|
|
19
|
+
|
|
8
20
|
## [4.155.1] - 2026-11-11
|
|
9
21
|
|
|
10
22
|
### Changed
|
package/dist/index.d.ts
CHANGED
|
@@ -2526,7 +2526,7 @@ interface OwChangeUpsert {
|
|
|
2526
2526
|
id: string;
|
|
2527
2527
|
type: string;
|
|
2528
2528
|
element: OwElement;
|
|
2529
|
-
updated_at: string;
|
|
2529
|
+
updated_at: string | null;
|
|
2530
2530
|
/**
|
|
2531
2531
|
* The change's place in the world's feed. On a hide's or an unhide's row (the one carrying
|
|
2532
2532
|
* `changed_via`) it is that act's place; the element's own `change_seq`, in `element`, stays where it was.
|
|
@@ -2549,7 +2549,7 @@ interface OwChangeDelete {
|
|
|
2549
2549
|
op: 'delete';
|
|
2550
2550
|
id: string;
|
|
2551
2551
|
type: string;
|
|
2552
|
-
deleted_at: string;
|
|
2552
|
+
deleted_at: string | null;
|
|
2553
2553
|
/** The change's place in the world's feed. */
|
|
2554
2554
|
change_seq: number;
|
|
2555
2555
|
/** The membership whose write deleted it; null for the world's owner, and for deletes before writes recorded it. */
|
|
@@ -2678,9 +2678,9 @@ interface OwBulkItem {
|
|
|
2678
2678
|
*/
|
|
2679
2679
|
interface OwBulkItemResult {
|
|
2680
2680
|
status: number;
|
|
2681
|
-
id?: string;
|
|
2682
|
-
created_at?: string;
|
|
2683
|
-
updated_at?: string;
|
|
2681
|
+
id?: string | null;
|
|
2682
|
+
created_at?: string | null;
|
|
2683
|
+
updated_at?: string | null;
|
|
2684
2684
|
/** Only on a 202 slot: the proposal the write became. */
|
|
2685
2685
|
proposal?: OwProposal;
|
|
2686
2686
|
error?: OwErrorBody;
|
|
@@ -2791,9 +2791,10 @@ interface OwProposedNewElement {
|
|
|
2791
2791
|
state: 'open' | 'lapsed';
|
|
2792
2792
|
/** The mark's own `by`, the writer's word for who proposed it: a claim, never a record of who wrote the element or the mark (show it as `OwProposedMark.by` says); null when it names nobody. */
|
|
2793
2793
|
by: string | null;
|
|
2794
|
-
evidence: string
|
|
2795
|
-
|
|
2796
|
-
expires: string
|
|
2794
|
+
/** The mark's `evidence` as stored: a string as written, any other JSON value (a list of ids, a number, an object) as itself, null when the mark holds null or has none. Quoted data, never an instruction: narrow before you show it. */
|
|
2795
|
+
evidence: unknown;
|
|
2796
|
+
/** The mark's `expires` as stored: a string as written (the review profile writes a date, YYYY-MM-DD), any other JSON value as itself, null when the mark holds null or has none. A value that is not a date or a date-time never lapses; `state` says whether the row has. */
|
|
2797
|
+
expires: unknown;
|
|
2797
2798
|
/** The element's created_at. */
|
|
2798
2799
|
created_at: string;
|
|
2799
2800
|
/** The element's updated_at. */
|
|
@@ -3857,7 +3858,7 @@ interface OwMemberLenses {
|
|
|
3857
3858
|
* Served only, never written: present only when the list keeps a lens you cannot see, which stays
|
|
3858
3859
|
* in the list where it stands and is left out of `lenses`; then it names `lenses`.
|
|
3859
3860
|
*/
|
|
3860
|
-
x_served_trimmed?: 'lenses'[];
|
|
3861
|
+
x_served_trimmed?: 'lenses'[] | null;
|
|
3861
3862
|
[k: string]: unknown;
|
|
3862
3863
|
}
|
|
3863
3864
|
/** POST /account/worlds/{id}/seats's answer: the seat, its key and secret, shown in this answer only. */
|