@onlyworlds/sdk 4.13.0 → 4.14.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 +11 -0
- package/dist/index.d.ts +8 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,17 @@ earlier history lives in git log only.
|
|
|
5
5
|
|
|
6
6
|
## [Unreleased]
|
|
7
7
|
|
|
8
|
+
## [4.14.0] — 2026-10-12
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
- **The co-builder role is `co_builder` on the wire.** `OwJoinPreview.role` and
|
|
12
|
+
`OwJoinedMembership.role` listed `'co-builder'`, which is only the label keel shows (keel
|
|
13
|
+
`MemberRole.CO_BUILDER = "co_builder"`). The types were open, so nothing broke at runtime, but
|
|
14
|
+
a comparison written from them would never match. Caught by Temper from Lantern's fakes.
|
|
15
|
+
|
|
16
|
+
### Added
|
|
17
|
+
- `OwMemberRole` (`'co_builder' | 'contributor' | 'guest'`, open), the type both now use.
|
|
18
|
+
|
|
8
19
|
## [4.13.0] — 2026-10-12
|
|
9
20
|
|
|
10
21
|
### Added
|
package/dist/index.d.ts
CHANGED
|
@@ -1988,6 +1988,11 @@ interface OwRemovalTicket {
|
|
|
1988
1988
|
referenced: number;
|
|
1989
1989
|
}
|
|
1990
1990
|
/** The edge's 200 for one removal. */
|
|
1991
|
+
/**
|
|
1992
|
+
* A member's role as the wire sends it (keel `MemberRole`, accounts/models.py). `co_builder`
|
|
1993
|
+
* is the value; "co-builder" is only its label in prose. Open, so a new role still types.
|
|
1994
|
+
*/
|
|
1995
|
+
type OwMemberRole = 'co_builder' | 'contributor' | 'guest' | (string & {});
|
|
1991
1996
|
/** POST /account/ask: keel's AI proxy's answer (keel #159). */
|
|
1992
1997
|
interface OwAskAnswer {
|
|
1993
1998
|
/** The answer, from the context only; "The world doesn't say." when it does not hold one. */
|
|
@@ -2014,7 +2019,7 @@ interface OwJoinPreview {
|
|
|
2014
2019
|
invited_by: string | null;
|
|
2015
2020
|
/** The world owner's chosen Character's name, never a username; null when none is set. */
|
|
2016
2021
|
owner_character: string | null;
|
|
2017
|
-
role:
|
|
2022
|
+
role: OwMemberRole;
|
|
2018
2023
|
/** Whether joining gives the joiner a Character of their own (agent links). */
|
|
2019
2024
|
with_character: boolean | null;
|
|
2020
2025
|
/** ISO 8601, UTC. */
|
|
@@ -2027,7 +2032,7 @@ interface OwJoinedMembership {
|
|
|
2027
2032
|
id: string;
|
|
2028
2033
|
world_id: string;
|
|
2029
2034
|
world_name: string;
|
|
2030
|
-
role:
|
|
2035
|
+
role: OwMemberRole;
|
|
2031
2036
|
joined_at: string | null;
|
|
2032
2037
|
/** The id of the joiner's roster Character, or null. */
|
|
2033
2038
|
roster_character: string | null;
|
|
@@ -3137,4 +3142,4 @@ declare class TokenResource {
|
|
|
3137
3142
|
getEncryptionInfo(): Promise<EncryptionInfo>;
|
|
3138
3143
|
}
|
|
3139
3144
|
|
|
3140
|
-
export { ASK_LIMITS, type AccessKeyResponse, ELEMENT_FAMILIES, ELEMENT_ICONS, ELEMENT_LABELS, ELEMENT_SECTIONS, ELEMENT_TYPES, type ElementFamily, type ElementType, type EncryptionInfo, FAMILY_COLORS, FAMILY_ORDER, FIELD_SCHEMA, type FieldInfo, type FieldType, GameTier, type ListParams, ONLYWORLDS_VERSION, OwApiError, type OwAskAnswer, type OwAskContext, type OwAuthErrorCode, type OwBulkItem, type OwBulkItemResult, type OwBulkResponse, type OwChange, type OwChangesPage, type OwClientConfig, type OwElement, type OwElementBase, type OwErrorBody, type OwJoinPreview, type OwJoinedMembership, type OwKeyKind, type OwLinkEdit, type OwLookupElement, type OwLookupHit, type OwLookupLink, type OwLookupOptions, type OwLookupReason, type OwMediaTicket, OwNetworkError, type OwPage, type OwPhotoOptions, type OwPhotoPlan, OwPreconditionFailedError, type OwPreparedPhoto, type OwReadWorldFile, type OwReadWorldFileOptions, type OwRemovalTicket, type OwRemovedImage, type OwRenderOptions, type OwUploadedImage, OwV2Client, type OwWorldFileEntry, OwWorldFileError, type OwWorldFileReason, type OwWorldIndex, type OwWorldMeta, PHOTO_MAX_BYTES, PHOTO_TYPES, type RevokeAllSessionsResponse, type RevokeSessionResponse, SPATIAL_TYPES, type SectionInfo, type TokenConsumeParams, type TokenConsumeResponse, TokenResource, type TokenStatus, type TokenTransport, WORLD_FILE_MAX_BYTES, WORLD_FILE_MAX_ENTRIES, buildAskContext, buildWorldIndex, detectKeyKind, elementColor, errorFromResponse, familyOf, getElementIcon, getElementLabel, isDemoKey, kindCanWrite, lookupWorld, parseErrorEnvelope, pinExpectation, planPhoto, preparePhoto, readWorldFile, renderElement, writeWorldFile };
|
|
3145
|
+
export { ASK_LIMITS, type AccessKeyResponse, ELEMENT_FAMILIES, ELEMENT_ICONS, ELEMENT_LABELS, ELEMENT_SECTIONS, ELEMENT_TYPES, type ElementFamily, type ElementType, type EncryptionInfo, FAMILY_COLORS, FAMILY_ORDER, FIELD_SCHEMA, type FieldInfo, type FieldType, GameTier, type ListParams, ONLYWORLDS_VERSION, OwApiError, type OwAskAnswer, type OwAskContext, type OwAuthErrorCode, type OwBulkItem, type OwBulkItemResult, type OwBulkResponse, type OwChange, type OwChangesPage, type OwClientConfig, type OwElement, type OwElementBase, type OwErrorBody, type OwJoinPreview, type OwJoinedMembership, type OwKeyKind, type OwLinkEdit, type OwLookupElement, type OwLookupHit, type OwLookupLink, type OwLookupOptions, type OwLookupReason, type OwMediaTicket, type OwMemberRole, OwNetworkError, type OwPage, type OwPhotoOptions, type OwPhotoPlan, OwPreconditionFailedError, type OwPreparedPhoto, type OwReadWorldFile, type OwReadWorldFileOptions, type OwRemovalTicket, type OwRemovedImage, type OwRenderOptions, type OwUploadedImage, OwV2Client, type OwWorldFileEntry, OwWorldFileError, type OwWorldFileReason, type OwWorldIndex, type OwWorldMeta, PHOTO_MAX_BYTES, PHOTO_TYPES, type RevokeAllSessionsResponse, type RevokeSessionResponse, SPATIAL_TYPES, type SectionInfo, type TokenConsumeParams, type TokenConsumeResponse, TokenResource, type TokenStatus, type TokenTransport, WORLD_FILE_MAX_BYTES, WORLD_FILE_MAX_ENTRIES, buildAskContext, buildWorldIndex, detectKeyKind, elementColor, errorFromResponse, familyOf, getElementIcon, getElementLabel, isDemoKey, kindCanWrite, lookupWorld, parseErrorEnvelope, pinExpectation, planPhoto, preparePhoto, readWorldFile, renderElement, writeWorldFile };
|