lol.dids.manage.validate

ngerakines.me

{
  "id": "lol.dids.manage.validate",
  "defs": {
    "main": {
      "type": "procedure",
      "input": {
        "schema": {
          "type": "object",
          "required": [
            "record"
          ],
          "properties": {
            "rkey": {
              "type": "string",
              "description": "Required for a site (the hostname). For a tile: an existing rkey for a new version, a TID the client holds, or absent to have bard mint one."
            },
            "space": {
              "type": "string",
              "format": "at-uri",
              "description": "Validate as a record in this space; the caller must be its authority."
            },
            "dryRun": {
              "type": "boolean",
              "description": "Validate only; never prepare."
            },
            "record": {
              "type": "unknown",
              "description": "A lol.dids.sites.site or lol.dids.sites.tile record, with $type."
            }
          }
        },
        "encoding": "application/json"
      },
      "errors": [
        {
          "name": "InvalidRecordKey",
          "description": "A site validation without rkey, or an rkey that is not a canonical hostname / valid TID."
        },
        {
          "name": "TileNotReady",
          "description": "The bound tile is known only as pending-publication and cannot be bound yet."
        },
        {
          "name": "SpaceNotFound",
          "description": "Bard is not connected to that space."
        },
        {
          "name": "NotSpaceAuthority",
          "description": "Only the space's authority may publish in it."
        },
        {
          "name": "RateLimitExceeded",
          "description": "Too many preparations this hour."
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "valid",
            "errors",
            "parameterErrors",
            "prepared",
            "missingBlobs"
          ],
          "properties": {
            "cid": {
              "type": "string",
              "format": "cid"
            },
            "uri": {
              "type": "string",
              "format": "at-uri"
            },
            "state": {
              "ref": "lol.dids.defs#indexState",
              "type": "ref"
            },
            "valid": {
              "type": "boolean"
            },
            "errors": {
              "type": "array",
              "items": {
                "ref": "lol.dids.defs#validationError",
                "type": "ref"
              }
            },
            "reason": {
              "type": "string",
              "knownValues": [
                "DomainNotVerified",
                "TileAuthorNotPermitted",
                "PreparedQuotaExceeded",
                "SpacePreparationUnsupported",
                "DryRun"
              ]
            },
            "record": {
              "type": "unknown",
              "description": "The record as bard will serialize it; submit it verbatim."
            },
            "prepared": {
              "type": "boolean"
            },
            "expiresAt": {
              "type": "string",
              "format": "datetime"
            },
            "entryCount": {
              "type": "integer"
            },
            "totalBytes": {
              "type": "integer"
            },
            "missingBlobs": {
              "type": "array",
              "items": {
                "ref": "lol.dids.defs#missingBlob",
                "type": "ref"
              }
            },
            "parameterErrors": {
              "type": "array",
              "items": {
                "ref": "lol.dids.defs#validationError",
                "type": "ref"
              }
            }
          }
        },
        "encoding": "application/json"
      },
      "description": "Validate a site or tile record before writing it, and — for an authorized caller — prepare bard for it. Returns the AT-URI the record will have, the CID it will have, and the canonical record to submit with putRecord at that key."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}

Validate Record

Validate a record against lol.dids.manage.validate

Validation Options
Automatically resolve and include external schemas for full validation
Treat any remaining unresolved references as valid

Metadata

DID
did:plc:cbkjy5n7bk3ax2wplmtjofq2
CID
bafyreieeqnudcbqfrfwgi2pzmkkavke7k6r2mafjzldgpo72i2pjibjzpi
Indexed At
2026-08-30 03:10 UTC
AT-URI
at://did:plc:cbkjy5n7bk3ax2wplmtjofq2/com.atproto.lexicon.schema/lol.dids.manage.validate

Referenced Schemas (3)

Lexicon Garden

@