Repository navigation
OnlyWorlds Unity SDK 0.40.0
An address found in prose. OWAddress.ReadLinkAt reads an address inside other text from the index where its
prefix starts and says where it ends, as the address page's "An address in prose" rules (schema-dist serial 123), so
the address fixture's 61 prose cases now run here instead of being ignored. And a read-only sign-in: Sign in with
OnlyWorlds can ask for a token that reads and never writes, for a tool that only reads. A /changes row also reads
its updated_at, deleted_at and reason. A minor release: it adds public API.
Added
OWAddress.ReadLinkAt(text, index = 0)and its answer,OWAddressAt(Reading,End): the address that
starts exactly atindexin a text, and the index just past it, or null when the text there is not an address. The
TypeScript SDK'sreadOwLinkAtand the Python package'sread_ow_link_at. Both forms are found, the prefix as
written. Where the address ends is the grammar's, never the next space's: after the path it continues only with@
and a moment and then?lens=and a lens; any other query key, a fragment and a full stop are prose. In the site's
form the run after/w/is read whole: exactly an id's form is the id, any other legal slug is the slug, else there
is no address, and a run followed by a letter of any script, a combining mark or an underscore is cut inside a word
and is no address (the character after it read as a whole code point, so a letter above U+FFFF cuts as any letter
does).indexandEndare C# string indexes, UTF-16 code units, so they matchstring.IndexOfand
string.Substring. A null text is anArgumentNullException, a negative index anArgumentOutOfRangeException,
and an index past the end reads nothing.OWAddress.ParseLinkis unchanged and still reads a string whole.OWChange.UpdatedAt,OWChange.DeletedAtandOWChange.Reason: the three fields of a/changesrow the
client did not map, as the TypeScript SDK'sOwChangeUpsertandOwChangeDeleteread them. An upsert's
updated_at; a delete'sdeleted_at(on ahiddenrow, when it was hidden); and a delete'sreason:deleted
(gone, a GET answers 410),hidden(hidden from this reader by the world's owner or a co-builder; it still exists
and a GET answers 404) orout_of_view(declared, sent by nothing yet). Each is null on the other kind of row.
Remove the element from the local copy whatever the reason.OWClient.SignInWithOnlyWorlds(clientId, redirectUri, scope): a read-only sign-in, withscopeset to
OWSignIn.ReadScope("world:read"). The token it gives reads everything the account reads, and every write
(a world key minted, a world made, another token minted, an AI call) is refused with 403permission_error, except
revoking the token itself. The authorize URL carriesscope=world%3Areadafter its other parameters, and the
pending sign-in keeps it asOWSignInBegun.Scope. Any other scope is anArgumentExceptionbefore anything is
made or sent; null, the default, signs in as before, with a token that writes as the account does. The TypeScript
SDK'ssignInWithOnlyWorlds({ scope: 'world:read' })(4.164.0).OWSignInResult.Scope:"world:read"when the server granted a read-only token, null when its answer carries
no scope, so a tool that asked for read-only reads what it holds. A read-only sign-in gets no AI door token:
CompleteSignInAsyncwithaiUsesbeside one is anArgumentExceptionbefore the code is spent, and the same
return then completes without them.OWAccountToken.Scope(and soOWMintedAiToken.Scope):"world:read"on a token a read-only sign-in minted,
asListAccountTokensAsynclists it; null on every other token.