Repository navigation
OnlyWorlds Unity SDK 0.16.0
The server's newer conversation, caught up with the TypeScript SDK through 4.63.0. Writes name the client that made
them, a tip read can come back "unchanged", the PIN goes only where the server checks it, deletes, patches and link
edits can be made conditional on what you read, and a member can propose a change instead of making it. The sync's
reset no longer empties a copy unless the server says the elements left the key's view. Also the room profile's
reader, and a folder export at format 0.3.15. A minor release because it adds public API (below).
Added
OWRoom.IsRoomElement(element), the room profile's reader (schema-distprofiles/room.md, serial 45): true
when an element's type and supertype, each trimmed and compared without regard to case, match one of the profile's
eight pairs (OWRoom.Pairs: a parlor's Message, a workshop's Work item) and it carries the markx_room_ofas a
non-empty string. A lore view (a list, a count, a search, a map) leaves room elements out unless asked; a pair
without the mark is lore, and a mark without a pair is not a room element. The profile's 23-case fixture is its
test, as it is the TypeScript SDK's and the Python package's. Parity with the TypeScript SDK 4.55.0 and 4.57.2's
trim, its tests ported.- The client's name on every element write:
OWClientConfig.Clientnames the software that
writes, sent asX-OW-ClientonCreateAsync,PatchAsync,DeleteAsync,EditLinksAsyncandBulkAsync, never
on a read. keel stores it on the element asOWElement.ChangedClientand on a/changesdelete as the new
OWChange.DeletedClient, so a reader can tell which tool made a change. Left null it isunity-sdk
(OWClient.DefaultClientName); a game or tool passes its own ("atlas"). The rule is keel's,[a-z0-9-]{1,32}
(lower case letters, digits and hyphens, no version): anything else, the empty string included, is an
ArgumentExceptionwhen the client is built, never trimmed. The name is the client's claim, not proof, and it
changes no permission: an agent still setsAgent. Parity with the TypeScript SDK 4.56.0, its test vector ported. - The conditional tip read:
ChangesAsync(headOnly: true)keeps the last tip read'sETagand sends
it back asIf-None-Match, exactly as received. When nothing moved, keel answers 304 with no body (refunded against
the request budget), and the call returns the last 200's head, cursor and epoch with the new
OWChangesPage.Unchangedset; every 200 leaves it false. A 409resync_requiredfrom anyChangesAsynccall drops
the tag, so the next tip read is a full 200. A 304 while no tag is held is anOWApiErrorwith status 304, never a
made-up head. The client never polls on its own.OWSync.HasChangesAsyncandIncrementalAsyncread the tip this
way unchanged, so a poll that mostly finds nothing costs little. Parity with the TypeScript SDK 4.57.0, its test
vector ported. - The world's front door:
OWFrontDoor, who a key is in a world, who answers for it and the house
rules:Sponsor(membership id, kind and Character name of the person who answers for a seat; null for the
owner's keys),SponsorCharacter,MyCharacter,Charter(the Law to read first) andCharterSkill(the Objects
the Charter names).OWFrontDoor.Of(me)reads it fromGetMeAsync's answer, and an agent's join answer carries it
asOWJoined.FrontDoor(null for a player). Parity with the TypeScript SDK 4.60.0 (which shipped the types with no
test; these tests are this package's own, with a wire check that the model maps exactly the keys keel serves). - A conditional delete:
DeleteAsync(type, id, ifMatch: changeSeq)sends the element'schange_seq
as you read it inIf-Match. The delete lands only if nothing changed since; otherwise it throws anOWApiError
whose newIsPreconditionFailedis true (412precondition_failed) and whose newCurrentis the element as it is
now, and nothing is deleted. On an element already gone it is the idempotent 204. A negativeifMatchis an
ArgumentOutOfRangeExceptionbefore anything is sent. The parameter comes afterct, so existing calls compile
as they were. Parity with the TypeScript SDK 4.61.0, its test vector ported. - Conditional patches and link edits:
PatchAsyncandEditLinksAsynctakeifMatchas
DeleteAsyncdoes, the element'schange_seqas you read it, sent inIf-Match. The write lands only if nobody
changed the element since; otherwise nothing is written and theOWApiErrorhasIsPreconditionFailedand the
element as it is now inCurrent. A link edit moves the element too, so it is checked the same way. Last
parameter, so existing calls compile as they were. Parity with the TypeScript SDK'spatchandeditLinks
ifMatch, their test vectors ported. - The proposed change: a member can propose a change to an element without making it, and the world's
owner or a co-builder decides.ProposeAsync(type, id, fields, evidence, expires, idempotencyKey)(fields cleaned
as a PATCH body is, a known-of stub refused),ListProposalsAsyncandWorldProposalsAsync(pages of
OWProposal, filtered byOWProposalQuery: state, since, element for the world queue, limit, cursor),
AcceptProposalAsync(the row and the element as written, one ordinary write by the keeper),
DeclineProposalAsync(with an optional reason) andWithdrawProposalAsync. In a world that takes an agent
seat's writes as proposals, a seat'sPatchAsyncorEditLinksAsyncanswers 202: it throws the new
OWProposedError(IsProposed, the row underProposal) and the element did not change; a bulk item's 202 stays
in its slot (OWBulkSlot.IsProposed,OWBulkSlot.Proposal). Five newOWApiErrorhelpers:IsFieldNotVisible,
IsTooManyOpen,IsStaleProposal(with the moved fields in the newConflictsand the element inCurrent),
IsProposedOnlyandIsOwnProposal.OWApiErroris no longer sealed, soOWProposedErrorcan derive from it.
Propose and accept send the client's name (X-OW-Client) and neverX-OW-Agent, as keel's document lists. A
world'sagent_writes_proposedswitch reads throughGetWorldAsync; this package has no world write to strip it
from. Parity with the TypeScript SDK 4.58.0, its test vector ported. - Why a view restarted (served while the server's hidden-element feature is on):
OWChangesPage.EpochReasonsays why the epoch
last moved,role(the key's own role or membership moved: keep what a fresh walk no longer names, it is out of
view, not gone) orview(something left the key's view: drop it);OWApiError.ResyncReasonreads the same word
from a 409resync_required, and covers every move since the cursor. Both are null when keel sends none. A
conditional tip read answered 304 carries noEpochReason, as in the TypeScript SDK. Parity with the TypeScript
SDK'sepoch_reasonandresyncReason, their test vectors ported.
Changed
- A folder export declares folder format 0.3.15 (
OWFolderExport.FormatVersion), with the onlyworlds Python
package's 0.32.0. Nothing else in what an export writes changed: 0.3.15's clause is about sharing records, which an
export from the server carries none of. - A private producer is matched to its directory by the archive's one fold (folder spec §4.7, OW-8; OW-18's
NFC, then simple case folding), so a manifest'sFoldor a decomposedcaféleaves outrecords/fold/or the
composedrecords/café/. 0.15.0 ignored case alone, which let a directory written in another Unicode form travel.
Parity with the TypeScript SDK's 4.63.0 fix (363adc9), its test vector ported. Packrefuses a records manifest it cannot read, as the TypeScript SDK and the Python package do, unless
private records go too: one that is not UTF-8 (a byte order mark is read past), holds an entry that is not an
object, or marks private an entry whoseproduceris not one directory name (missing, empty,.,.., or with a
/or\). 0.15.0 skipped such entries, so a private producer it could not name travelled.API-Pingoes only where keel checks it: on every write, onGetMeAsync, and on every request of a 10-digit
legacy key; a prefixed key's other reads now go without it, and an account token never sent it. keel verifies a
PIN wherever one is sent, at a real memory cost per request, so reads carrying one loaded the server for nothing.
A wrong PIN therefore no longer fails a read: the settings window's Test Connection now asksGET /mefor a key
that takes a PIN, so it still catches one. Parity with the TypeScript SDK 4.59.0, its test vector ported.- A reset keeps what the server's reason says to keep: when the change feed answers 409
resync_required,OWSync.IncrementalAsyncstill walks the world again from the start, but no longer drops every
element the new walk does not name. On reasonviewit drops them, as before; onrole, or with no reason (a
server older than 2026-10-20), it keeps them: they are out of this key's view now, not gone, and sharing is
forward-only.OWSyncResult.ResyncReasonandOWSyncResult.Keptsay which happened, andRebaselineReasonsays
it in words. A reset whose walk fails now puts the cache and its cursor back as they were and throws, where it left
the cache emptied. This is the rule the TypeScript SDK and the Python package document for their callers (neither
keeps a copy itself), with the no-reason case as the published changes documentation states it. - A cursor ahead of the server's head keeps the copy too: when
OWSync.IncrementalAsyncfinds the server rewound
(restored from a backup), it walks the world again as before, but keeps what the cache held that the restored
server no longer names (OWSyncResult.Kept), where it used to clear it, and a failed walk leaves the cache as it
was. A restore rewinds the server, not what this copy read.