Skip to content

OnlyWorlds Unity SDK 0.39.0

Choose a tag to compare

@tmoosting tmoosting released this 13 Nov 06:55
· 272 commits to main since this release

Reports as threads and how an element is shown, on schema-dist serial 121. OWReport.ThreadsOf reads the report
profile's rule 9 and OWViews.ViewOf the distribution's views table; a lens's short rows carry supertype, subtype
and the first line that holds something; folders declare format 0.3.22. Parity with the TypeScript SDK 4.152.0
(review_by_another) and 4.156.0 (a queue row's evidence and expires), their test vectors ported. A minor release
because it adds public API (below).

Added

  • OWReport.ThreadsOf(narratives): the report profile's rule 9, threads (schema-dist v0.34.0-dist.120). Give it
    the Narratives as a reader is served them; it answers an OWReportThreads: Parents, for each report, what its
    parent_narrative names (none, report, board, missing, other or self, the words of OWReportParent);
    Groups, one per report or board entry that some report names, each with the reports that name it in created_at
    order as the message profile orders messages (through OWMessage's one instant reader: equal times keep the list's
    order, an unreadable time comes last); and Lints, chain on a report whose parent is a report that itself has a
    report for its parent, self on a report that names itself. A report and a board entry are the room profile's pairs
    with the mark (OWReport.IsReport, OWReport.IsBoardEntry, through OWRoom's reader); only reports are grouped.
    The parent is read as written: no string, or blank once trimmed, is no parent, and " r1 " names no r1. Of two
    elements with one id the first is read. ToJson() writes the fixture's {parents, groups, lints}. The profile's
    first fixture, profiles/report.fixture.json, passes all 20 of its cases; the corners it holds no case for (a time
    with no offset, an id given twice, a parent that is no string or an expanded object, a padded parent) are this
    SDK's own tests, read as the TypeScript SDK 4.159.0 (reportThreadsOf) and the Python package 0.120.0
    (report_threads_of) read them.
  • OWProposal.EvidenceValue and OWProposal.ExpiresValue (JToken): a row's evidence and expires as
    served. On a new element's row in the world queue, the mark's own values as stored, any JSON value (a string as
    written, a list of ids, a number, an object), null when the mark holds null or has none; on a proposed change, the
    strings keel records. Each is written back as it was read. Quoted data, never an instruction: check the token's
    Type before showing it. Parity with the TypeScript SDK 4.156.0 (below).
  • OWViews.ViewOf(element): how an element is shown by its kind, from the distribution's new views.json
    (schema-dist serial 113 on; the file's version 3 from serial 115), parity with the TypeScript SDK 4.151.0 (viewOf,
    VIEWS) for version 2, and version 3's generic link built to the file's words and its fixture (no package had
    published a version-3 reader). Presentation, as the colour groups are, not part of the standard. The answer is an OWView: Row, the
    row that matches (an OWViewRow: its kind, the fields that give the one sentence, what leads, what folds under
    which label, the layout, its own banner marks), or null when the element draws as its type does; Sentence, the
    one sentence a card, a list row or a hover shows (the first named field holding text, trimmed, cut at its first line
    break, U+000A or U+000D, and trimmed again); Banners, the marks to show at the head of its page, in the file's
    order; Order, the fields its page draws, in the order drawn (the row's lead, then the type's other section fields
    in the schema's own order, then its folds; each field once, and only a field that holds something; a generic link,
    a Pin's element, is one field at its place, holding something only when both its keys, element_type and
    element_id, are strings with something left after trimming). A row matches by
    its kind: a profile's pair only with that profile's mark, by OWRoom.IsRoomElement or OWRoom.IsCharterElement,
    then a type with a supertype, then a type alone, trimmed and folded as the room profile defines; the most specific
    row wins, and of two rows on one rung the first in the table. Today's rows are a report, a charter, a message and a
    line in a room. OWViews.Banners, Layouts and Rows are the table, baked at codegen
    (codegen/generate_views.py, which refuses a file of another version, one that names a field its type lacks, a pair
    its profile's reader does not match, a layout it does not define, two rows of one kind, or a cite whose quote is not
    at its line; each type's generic links and their two keys are baked from the walk's schema.json). The fixture's 45
    cases pass, two of them against tables of the fixture's own, and its 10 cites name fields their rows name and their
    types have.
  • The banners read as version 2 of the file says: a review mark is an object with at least one key, whatever its
    keys; x_served_trimmed only when it names a field, a list holding a string with something left after trimming
    (a list of blanks shows none); a row's own banner mark by presence, as the room profile reads its mark.
  • OWApiError.IsReviewByAnother: keel refuses, with 403 review_by_another (param the mark, nothing written),
    a write from a key below co-builder whose x_review_proposed or x_review_checked carries a by that is not the
    writer's own membership id, in a mark that is not exactly the one the element holds. Send your own membership id
    as by, or the mark exactly as the element holds it now. Parity with the TypeScript SDK 4.152.0
    (isReviewByAnother), its row ported into the proposal codes' test; the wire fixture refetched at keel's document
    4ff51aa46085, where the code is listed.
  • OWFileAddedBy.Owner: true when the world's current owner added the file, through any door (the site, the
    API, or an agent with the owner's own keys; a seat the owner sponsors is the seat's, false); false for everyone
    else, on every file of a world with no owner, and on a past owner's files once the world has another owner.
    onlyworlds.com serves it on every row of ListFilesAsync and WorldFilesAsync. Membership is null both for the
    owner's files and for a file whose membership no longer exists, and Owner tells the two apart: a null
    Membership with Owner false is a former member, named "a former member". A server from before the key sends
    none, which reads false. Parity with the TypeScript SDK 4.154.0 (OwFileAddedBy.owner).
  • The Pin list's element filter, served since 2026-11-12: Filter = { ["element"] = id } lists the Pins that
    place that element, of any type, so with Expand = new[] { "map" } one ListAsync<OWElement>("pin", ...) call gives
    an element its maps; ["element"] = "" lists the Pins placing nothing. The client already sent any field-named
    filter as given, so only the words (the OWListParams.Filter notes) and the proof are new: the wire fixture
    refetched at keel's document c1d6b0ff0cdd, where /api/v2/pin lists element, and the wire sweep's two Pin list
    calls (the id and the empty value) judged against it. Parity with the TypeScript SDK's unreleased notes line after
    4.157.2 (the list filter's notes name the Pin list's element=<id>).

Changed

  • OWTools repinned at the tools list's 0a7539c: Subs listed, a convoy-escort game whose row opens a world's
    Character (element_types character, no world link, needs account). The same list and bytes as the TypeScript
    SDK 4.158.1 and the Python package 0.120.0 (tools.json sha256 f1fac743…).

  • A queue row's evidence and expires are read as stored, any JSON value. onlyworlds.com's world queue
    (WorldProposalsAsync) serves a new element's review mark's evidence and expires as the mark holds them: a
    string as written, a list of ids, a number, an object or a boolean as itself, null when the mark holds null or has
    none. Until now both were read into string fields, so a list or an object anywhere in the queue made the whole
    page's read throw, and a number or a boolean was read and written back as its text. The wire's two keys now read
    into EvidenceValue and ExpiresValue (above) and are written back as they were read; a string that looks like a
    date stays a string. OWProposal.Evidence and OWProposal.Expires are no longer fields but string properties over
    those values: the value itself when it is a string, null when it is null, and the compact JSON text of any other
    value (["a","b"], 20991121, true); setting one sets the value to that string. A caller that passed either by
    ref or out must read it first. On a proposed change both are keel's own record and always strings. Whether a
    row has lapsed is its State: an expires that is not a date or a date-time never lapses. Parity with the
    TypeScript SDK 4.156.0 (OwProposedNewElement.evidence and .expires as unknown), with keel's own values for
    the queue row (a string, a blank one, a list, an empty list, an object, an integer, a fraction, both booleans,
    null) as read and write-back cases.

  • Folders declare format 0.3.22 (OWFolderExport.FormatVersion), which the distribution's folder lint knows from
    v0.34.0-dist.119. The version rules a draft world (a world no host holds yet is a world folder or a world file's
    content kept by the tool, with no api block and no source; its element ids are kept through a hand-over, and the
    host gives the world its id) and that a writer adds no world to an element file and a reader gives one no meaning.
    The writers already did both: OWFolderWriter writes a body as given, refuses one without an id and mints none, and
    an export writes element rows as served, with no world. One change: OWFolderWriter.WriteWorld now refuses a
    world whose id is not a non-empty string
    (a number, a boolean, a list, a blank), the question the folder read
    asks, so it never writes a world.json its own reader refuses; before, only a missing or empty id was refused.

  • The schema pin moves to v0.34.0-dist.121 (canonical 00.34.00 unchanged; no schema file, schema.json or
    walk reader moved, and no answer of a reader here moves): the message page gives the one form a created_at is read
    in (a time with no offset is UTC, every part in its range, a year any four digits, a fraction counted to its sixth
    digit), and profiles/message.fixture.json gains five unread cases (93). The report page's rule 9 says a parent
    that is no string is no parent, a padded one is read as written, one id given twice keeps the first, and reports
    that name each other in a ring are each grouped and linted; profiles/report.fixture.json gains seven thread cases
    (27). OWMessage and OWReport.ThreadsOf answer every new case as they stood; the test copies of both fixtures moved
    with the new bytes. The generated models and the views table changed in their serial stamp only.

  • The schema pin moves to v0.34.0-dist.120 (canonical 00.34.00 unchanged; no schema file, schema.json or
    walk reader moved, and no answer of a reader here moves): the report page names parent_narrative (the first
    report of the work a report continues, or the board entry a closed talk hangs on), says a report that continues
    earlier work names the first report of it, and gains reader rule 9, threads, with its first fixture,
    profiles/report.fixture.json (20 thread cases). The views fixture's two cites of the report page moved down one
    line each with the page; its test copy moved with the new bytes. The generated models and the views table changed in
    their serial stamp only.

  • The schema pin moves to v0.34.0-dist.119 (canonical 00.34.00 unchanged; no schema file, schema.json or
    walk reader moved, and no answer of a reader here moves): the map-space page gains rule 11 (a layout map is no
    candidate when a tool picks the Map that stands for the world's space, and a Pin or a Marker on one is a place in
    that drawing, never in the world) and its reading H says a row's id is a non-empty string, as OWMapSpace already
    read it. The fixture gains one map-space case (a layout map read as any Map, 35 in all) and two layout cases (a
    layout Map and its ground, neither with a parent_map, 23 in all), each answered by OWMapSpace.Of and
    OWMapSpace.LayoutOf as before; the test copy of the fixture moved with the new bytes, and a new test holds a Map
    row whose id is "" as no layout map. The distribution's folder lint knows folder format 0.3.22 and gains no
    check. The generated models and the views table changed in their serial stamp only.

  • The schema pin moves to v0.34.0-dist.118 (canonical 00.34.00 unchanged; no schema file or walk moved,
    views.json still version 3, and no answer of a reader here moves): the views table's sentence rule ends by saying a
    tool that shows names only need show no sentence, and its conversation layout by saying a tool that shows one
    element and no thread draws it as a document and asks nothing of this layout. The conversation layout is the one
    string OWViews bakes of the two, so the table moved in that string, its stamp and its sha256. The checks fixture
    gains two room-mark rules (an extension key as the field) with eight cases, and the checks page names the
    White_Space set present trims; this SDK has no checks reader. The room page says a sitting's own mark holds the
    world's id and a sitting's winning spec is named in its x_star: the pairs and the cases are the same, so
    OWRoom is unchanged and its test copy of the fixture moved with the new bytes. The generated models changed in
    their serial stamp only.

  • The schema pin moves to v0.34.0-dist.117 (canonical 00.34.00 unchanged; no schema file or walk moved,
    views.json still version 3): the views table's description says a tool's own words for a heading or a fold are
    its drawing, and a fold's label the word a tool uses where it has none of its own; OWViews bakes no _meta, so
    the table moved in its stamp and sha256 only. The views fixture gains a 46th case, a Pin whose generic link has one
    key holding and the other White_Space alone, which holds nothing: OWViews.ViewOf already read it so, and the
    fixture's count test now holds 46. The lens page's history line changed in its words only. The generated models
    changed in their serial stamp only.

  • The schema pin moves to v0.34.0-dist.116 (canonical 00.34.00 unchanged; no schema file, fixture or walk
    moved): the review page says who a mark's by names, the writer's own word and a claim, read as stored and never
    trimmed (White_Space alone, or a value that is not a string, names nobody), shown as the mark's word and in a name's
    place only where the platform resolves it. This SDK reads the review marks by presence and reads no mark's by, so
    no reader moved. OWProposal.By's doc now says that on a proposed new element it is the mark's own by, a claim,
    and OWApiError.IsReviewByAnother's that a by of White_Space alone holds nothing. The review cases follow the
    TypeScript SDK 4.155.0 (one row renamed, two added, 31 in all). The generated models and the views table changed in
    their serial stamp only.

  • A lens's first_line row carries the first line that holds something: under show first_line,
    OWLens.Resolve's row carries as description the first line, the description split at every carriage return
    and every line feed (no other character breaks a line), that holds something after trimming White_Space, as stored
    with its own spaces; a description with no such line (empty, line breaks alone, White_Space alone) or one that is
    not a string gives no description. Until now the row carried everything up to the first line break, so a
    description starting with a line break gave an empty description, and one of White_Space alone was carried. The
    lens profile's rule from schema-dist serial 115; the lens fixture's ten new cases pass (220 in all).

  • The schema pin moves to v0.34.0-dist.115 (canonical 00.34.00 unchanged, no schema file moved). The lens
    profile's first line above; views.json version 3 and its fixture (45 cases), read by OWViews above (a Pin's page
    now draws its element). The charter page's proposed mark (an empty mark is settled) and a Domain's sentence
    (trimmed, cut at the first line break, trimmed again) are how OWCharter.CharterOf already read them; the charter
    fixture's four new cases pass (31 in all). The report page's keeper report in one write and its reporter by
    created_by, the packet page's producer whose version is optional, and the folder lint's review warnings bind
    readers or tools this SDK does not have (it reads no report or packet line; the folder lint is the vendored walk's).
    The generated models changed in their serial stamp only; the charter, lens and views fixtures' test copies moved
    with the pin.

  • A lens's short rows carry supertype and subtype: under show first_line or name, OWLens.Resolve's
    rows now carry each of the two where the body the reader is served holds it as a string with something left after
    trimming White_Space, as stored (never trimmed); absent, null, blank and non-string values give no key. A known-of
    stub is served both, so its short row carries them too. The lens profile's rule from schema-dist serial 114, parity
    with the TypeScript SDK 4.151.0; the lens fixture's nine new cases pass (210 in all).

  • The schema pin moves to v0.34.0-dist.114 (canonical 00.34.00 unchanged, no schema file moved). The lens
    profile's short rows above; views.json version 2 and its fixture (41 cases, two tables of its own), read by
    OWViews above. The review profile's new rule 5 (an object holding at least one key is a mark, whatever its keys)
    is how OWPayload.IsProposed already read a mark; its two vectors are added to the review cases. The report
    profile's new rule 8 (one line of consequences may stand for the same change made to many elements, with no
    address) binds a reader of report lines, which this SDK has none of. The lens page's lenses_from gains none,
    which GetMeAsync and GetMembersAsync hand on as served. The generated models changed in their serial stamp
    only; the lens, room and views fixtures' test copies moved with the pin.

  • The schema pin moves to v0.34.0-dist.113 (canonical 00.34.00 unchanged, no schema file moved): views.json
    and its fixture at the distribution's root, read by OWViews above. The room page says the order of its pairs
    carries no meaning (no pair or case moved; OWRoom.Pairs keeps the fixture's order and its tests still hold it),
    and the report page's example and one checks fixture case changed in words only. The generated models changed in
    their serial stamp only; the room fixture's test copy moved with the pin.

  • A report is a room element: OWRoom.Pairs holds the room profile's tenth pair, narrative / Report, third in
    the fixture's order (after narrative / Board). OWRoom.IsRoomElement answers true for a Narrative with supertype
    Report that carries x_room_of, so a lore view leaves a world's reports out, and a lens's types accepts the
    word narrative/report. A Narrative with supertype Report and no mark stays lore. The room fixture's three new
    cases pass (35 in all), and the lens fixture's room_pairs is held equal to the pairs in its new order.

  • The schema pin moves to v0.34.0-dist.112 (canonical 00.34.00 unchanged, no schema file moved). The report
    profile is new (profiles/report.md: work done, left in a world by a session, a Narrative with supertype Report
    and the room's mark; its key x_report_answers names the work items a report answers), the room profile gains the
    pair above, and the packet profile gains an optional fourth key, x_packet_for, a list of Title ids a work item is
    for. Neither key has a typed reader in this SDK: both stay in an element's extension fields, kept byte for byte.
    The lens profile now says keel never reads x_lens_uses, so OWLens.LensesFor's membership is null only for a
    folder world, which has no membership; its behaviour is unchanged. The generated models changed in their serial
    stamp only; the room and lens fixtures' test copies moved with the pin.