Nsid Module
Functions for creating, validating, and extracting data from Nsid values.
Functions and values
| Function or value |
Description
|
Full Usage:
authority arg1
Parameters:
Nsid
Returns: string
The authority string (e.g. "app.bsky.feed" for NSID "app.bsky.feed.post").
|
Extract the authority (reversed domain name) portion of an NSID.
|
Extract the name (final segment) of an NSID.
|
|
Full Usage:
parse s
Parameters:
string
-
An NSID string in the format domain.segments.name
(e.g. "app.bsky.feed.post"). Must have at least three segments,
where the final segment (name) starts with a letter and the preceding segments
form a valid reversed domain authority.
Returns: Result<Nsid, string>
Ok with a validated Nsid, or Error with a message describing the validation failure.
Validation failures include: null input, exceeding the 317-character limit,
or invalid NSID syntax.
|
Parse and validate an NSID string.
Example
union case Result.Ok: ResultValue: 'T -> Result<'T,'TError>
val nsid: obj
val printfn: format: Printf.TextWriterFormat<'T> -> 'T
union case Result.Error: ErrorValue: 'TError -> Result<'T,'TError>
val e: string
|
Full Usage:
value arg1
Parameters:
Nsid
Returns: string
The full NSID string (e.g. "app.bsky.feed.post").
|
Extract the string representation of an NSID.
|