Repository navigation
OnlyWorlds Unity SDK 0.18.0
Elements written as proposed, from Unity: the world's review queue lists new elements that carry the review mark, a
keeper settles one with ReviewNewElementAsync, and the mark's two readers say whether an element is settled
(schema-dist dist.52). A world can also be made on an account with its first key (CreateAccountWorldAsync). A
minor release because it adds public API (below).
Added
- The world's review queue lists new elements written as proposed.
OWClient.WorldProposalsAsync
now returns two kinds of row in one order, newest first, told apart by the newOWProposal.Kind: a proposed change
to an element (proposal), and a new element that carries the review markx_review_proposed(new_element,
OWProposal.IsNewElement). A new-element row is the element's own record: itsIdis the element's id, andBy,
EvidenceandExpires(a date) are the mark's words. A row from an older server has no kind and is a
proposal. The page'sNextCursoris opaque: pass it back as it came. OWProposal.Omitted: the fields a whole-replace proposal would empty (each also inFieldsat its empty value).
A proposal'sFieldsnow holds only what differs from the element.OWClient.ReviewNewElementAsync(type, id, decision, reason): a keeper (the owner or a co-builder, with the PIN)
settles a new element written as proposed (POST /{type}/{id}/review)."accept"clears the mark and returns the
element as written (OWReviewed.Element);"decline"deletes the element and returns its id (OWReviewed.Deleted).
A reason goes with a decline only. Another decision, or a reason on an accept, is refused before anything is sent;
an answer without the key its decision settles is anOWApiError. SendsX-OW-Client, neverX-OW-Agent.OWApiError.IsNotProposed: 422not_proposed, a review of an element that carries no mark (never marked, or
already accepted).- Reading the review mark (schema-dist's review profile):
OWPayload.IsProposed(body)and
OWElement.IsProposedare true whenx_review_proposedis an object. That is the rule of the review queue and of a
viewer, which shows such an element with its mark visible and apart from settled ones.
OWPayload.IsProposedOrInDoubt(body)andOWElement.IsProposedOrInDoubtare true when the key is there with any
value butnull, a mark or a doubt. That is the rule of a reader that hands a world on, such as a context pack for
an AI, which leaves those elements out unless asked. The mark is kept in the element's extensions and written back
as it came, a clearednullincluded. - Parity with the TypeScript SDK 4.66.0 and the Python package 0.35.0 (the queue, the review,
IsNotProposed), and
with the Python package 0.36.0 and the server's own two rules (the mark's readers); their test vectors ported. OWClient.CreateAccountWorldAsync(OWAccountWorldCreate): makes a world on the account (POST /account/worlds)
with its one write key, and returnsOWAccountWorldCreated: the world's id, name, role andPublicRead, its key
row (OWAccountWorldKey: name, last four, scope, revoked), and the fullow_w_key inKey, shown this once.
Nameis required;Pinonly for an account with no PIN yet (it becomes the account PIN; either mistake is a 422
withParampinand nothing made);KeyNamenames the key;SourceandProducerare the folder format's
provenance lines, kept on the world and served back as itsorigin. Members left null are not sent. It takes an
account token (ow_a_) only: any other key is refused before anything is sent. Parity with the TypeScript SDK
4.66.0 (createAccountWorld), its test vectors ported; the answer is checked against the server's published
AccountWorldCreated.
Changed
OWClient.PatchWorldAsyncalso leaves outcounts, which the server now serves on a world read with no key and
refuses on a world write (OWPayload.WorldReadOnlyFields), as the TypeScript SDK 4.68.0 and the Python package
0.37.0 do.- The schema pin moves to dist.52 (
v0.33.0-dist.52; canonical00.33.00unchanged, no schema file moved). Only the
review profile moved: its reader rule.