Latch.SpaceURI (latch v0.8.0)

Copy Markdown

The anatomy of a space at-uri

at://did:plc:ewvi7nxzyoun6zhxrhs64oiz/space/com.atmoboards.forum/general/did:plc:bvraa6gajy4tfr3eh2sisdkr/com.atmoboards.thread/3k2u5kbfqzf2k
__/  ______________________________/ ___/ ________________/ _____/ ______________________________/ _________________/ ________/
 |                |                    |           |              |                 |                         |               |
scheme       space authority         marker     space type      skey             author                   collection      record key
(always      (DID — the space's     (literal   (NSID — the   (an rkey —      (DID — the member          (NSID — the     (rkey — e.g.
 "at")        root of access)        "space")   modality)     slug or TID)    whose repo holds           lexicon type)   a TID)
                                                                             the record)

https://atproto.com/blog/atproto-spaces-alpha

Summary

Functions

new(authority, type, skey)

new(authority, type, skey, author, collection, rkey)

new!(authority, type, skey)

new!(authority, type, skey, author, collection, rkey)

parse(arg1)

Parses space at-uris like at://did:plc:ewvi7nxzyoun6zhxrhs64oiz/space/com.atmoboards.forum/general.

record?(space_uri)

space_uri?(arg1)

to_ref(space_uri)

to_string(space_uri)