@onlyworlds/sdk 4.151.0 → 4.152.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 +6 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +9 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,12 @@ earlier history lives in git log only.
|
|
|
5
5
|
|
|
6
6
|
## [Unreleased]
|
|
7
7
|
|
|
8
|
+
## [4.152.0] - 2026-11-11
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- **`OwApiError.isReviewByAnother`**: true for 403 `review_by_another`. A write from a key below co-builder (a contributor's or a guest's, a person's or an AI seat's) that sets an `x_review_proposed` or `x_review_checked` mark is refused when the mark's `by` is not the writer's own membership id and the mark is not exactly the one the element holds; `param` names the mark, and nothing is written. Send your own membership id as `by`, or the mark as the element holds it. A Character's id is refused too.
|
|
13
|
+
|
|
8
14
|
## [4.151.0] - 2026-11-10
|
|
9
15
|
|
|
10
16
|
### Added
|
package/dist/index.d.ts
CHANGED
|
@@ -4414,6 +4414,13 @@ declare class OwApiError extends Error {
|
|
|
4414
4414
|
* nothing to settle. Someone settled it already, or it was never written as proposed.
|
|
4415
4415
|
*/
|
|
4416
4416
|
get isNotProposed(): boolean;
|
|
4417
|
+
/**
|
|
4418
|
+
* A write from a key below co-builder (a contributor's or a guest's, a person's or an AI seat's) set an
|
|
4419
|
+
* `x_review_proposed` or `x_review_checked` mark whose `by` is not the writer's own membership id
|
|
4420
|
+
* (403 `review_by_another`, `param` the mark; nothing written). Send your own membership id as `by`, or
|
|
4421
|
+
* the mark exactly as the element holds it. A Character's id is refused too. Retrying will not help.
|
|
4422
|
+
*/
|
|
4423
|
+
get isReviewByAnother(): boolean;
|
|
4417
4424
|
}
|
|
4418
4425
|
/**
|
|
4419
4426
|
* 412 `precondition_failed`: the element changed since the `change_seq` sent as
|
package/dist/index.js
CHANGED
|
@@ -459,6 +459,15 @@ var OwApiError = class extends Error {
|
|
|
459
459
|
get isNotProposed() {
|
|
460
460
|
return this.status === 422 && this.code === "not_proposed";
|
|
461
461
|
}
|
|
462
|
+
/**
|
|
463
|
+
* A write from a key below co-builder (a contributor's or a guest's, a person's or an AI seat's) set an
|
|
464
|
+
* `x_review_proposed` or `x_review_checked` mark whose `by` is not the writer's own membership id
|
|
465
|
+
* (403 `review_by_another`, `param` the mark; nothing written). Send your own membership id as `by`, or
|
|
466
|
+
* the mark exactly as the element holds it. A Character's id is refused too. Retrying will not help.
|
|
467
|
+
*/
|
|
468
|
+
get isReviewByAnother() {
|
|
469
|
+
return this.status === 403 && this.code === "review_by_another";
|
|
470
|
+
}
|
|
462
471
|
};
|
|
463
472
|
var OwPreconditionFailedError = class extends OwApiError {
|
|
464
473
|
constructor(status, code, message, docUrl, detail, type = null, param = null, retryAfter = null) {
|