org.simocracy.alias

A globally unique URL slug pointing at a gathering or sim. Written by the facilitator account so that PDS-level rkey uniqueness inside the facilitator's repo gives us a single global namespace. The rkey IS the slug — there is at most one alias record per slug across the entire platform.

Details · record, key any
Kindrecord
Record keyany
Authoritysimocracy.org
Indexed
cid bafyreiereqdmzyy4dy6b64rzdto4ppsj77swnccvpsq2m4d4y6rhdy7xzu

Checks

Valid
  • unlimited-string defs.main.record.properties.kindNo maxLength, maxGraphemes or format limits this string.
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A globally unique URL slug pointing at a gathering or sim. Written by the facilitator account so that PDS-level rkey uniqueness inside the facilitator's repo gives us a single global namespace. The rkey IS the slug — there is at most one alias record per slug across the entire platform.",
      "key": "any",
      "record": {
        "properties": {
          "createdAt": {
            "description": "Timestamp when the alias was claimed.",
            "format": "datetime",
            "type": "string"
          },
          "kind": {
            "description": "Which collection the target lives in. Used by routers to decide whether the alias resolves under /events/<slug> or /sims/<slug>.",
            "knownValues": [
              "gathering",
              "sim"
            ],
            "type": "string"
          },
          "owner": {
            "description": "DID of the user who claimed this slug. Must equal the DID in the target record's repo. Used for authorising release without re-fetching the target.",
            "format": "did",
            "type": "string"
          },
          "slug": {
            "description": "URL-safe slug. Must equal the rkey of this record. Lowercase letters, digits, and hyphens only; no leading or trailing hyphen. Mirrored as a field so consumers that don't expose rkey can still read the slug.",
            "maxLength": 64,
            "minLength": 2,
            "type": "string"
          },
          "target": {
            "description": "StrongRef to the gathering or sim record this slug points to.",
            "ref": "com.atproto.repo.strongRef",
            "type": "ref"
          }
        },
        "required": [
          "slug",
          "kind",
          "target",
          "owner",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "org.simocracy.alias",
  "lexicon": 1
}