zone.stratos.sync.subscribeRecords

lexicon.northsky.app

{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "commit": {
      "description": "A commit event containing record operations.",
      "properties": {
        "did": {
          "description": "The DID of the account.",
          "format": "did",
          "type": "string"
        },
        "ops": {
          "description": "List of record operations in this commit.",
          "items": {
            "ref": "#recordOp",
            "type": "ref"
          },
          "type": "array"
        },
        "rev": {
          "description": "The repo revision.",
          "format": "tid",
          "type": "string"
        },
        "seq": {
          "description": "The sequence number of this event.",
          "type": "integer"
        },
        "time": {
          "description": "Timestamp of when the event was sequenced.",
          "format": "datetime",
          "type": "string"
        }
      },
      "required": [
        "seq",
        "did",
        "time",
        "rev",
        "ops"
      ],
      "type": "object"
    },
    "enrollment": {
      "description": "An enrollment event indicating a user has enrolled or unenrolled from the service.",
      "properties": {
        "action": {
          "description": "The enrollment action.",
          "knownValues": [
            "enroll",
            "unenroll"
          ],
          "maxLength": 32,
          "type": "string"
        },
        "boundaries": {
          "description": "The boundaries assigned to the user.",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "did": {
          "description": "The DID of the user.",
          "format": "did",
          "type": "string"
        },
        "service": {
          "description": "The Stratos service endpoint URL.",
          "format": "uri",
          "type": "string"
        },
        "time": {
          "description": "Timestamp of the enrollment event.",
          "format": "datetime",
          "type": "string"
        }
      },
      "required": [
        "did",
        "action",
        "time"
      ],
      "type": "object"
    },
    "info": {
      "description": "An informational message about the subscription state.",
      "properties": {
        "message": {
          "description": "Additional details about the info message.",
          "maxLength": 1024,
          "type": "string"
        },
        "name": {
          "description": "The type of info message.",
          "knownValues": [
            "OutdatedCursor"
          ],
          "maxLength": 128,
          "type": "string"
        }
      },
      "required": [
        "name"
      ],
      "type": "object"
    },
    "main": {
      "description": "Subscribe to stratos events. When 'did' is provided, subscribes to record updates for that account. When omitted, subscribes to service-level events (enrollments). Callers must authenticate with a signed service JWT via the Authorization: Bearer header.",
      "errors": [
        {
          "description": "Cursor is in the future.",
          "name": "FutureCursor"
        },
        {
          "description": "Authentication is required.",
          "name": "AuthRequired"
        }
      ],
      "message": {
        "schema": {
          "refs": [
            "#commit",
            "#enrollment",
            "#info"
          ],
          "type": "union"
        }
      },
      "parameters": {
        "properties": {
          "cursor": {
            "description": "The last known event sequence number to resume from.",
            "type": "integer"
          },
          "did": {
            "description": "The DID of the account to subscribe to. If omitted, subscribes to service-level enrollment events.",
            "format": "did",
            "type": "string"
          },
          "domain": {
            "description": "Optional domain filter. Only events for records with this domain in their boundary will be emitted.",
            "maxLength": 253,
            "type": "string"
          }
        },
        "type": "params"
      },
      "type": "subscription"
    },
    "recordOp": {
      "description": "A single record operation within a commit.",
      "properties": {
        "action": {
          "description": "The type of operation.",
          "knownValues": [
            "create",
            "update",
            "delete"
          ],
          "maxLength": 32,
          "type": "string"
        },
        "cid": {
          "description": "The CID of the record. Present for create and update operations.",
          "type": "cid-link"
        },
        "path": {
          "description": "The record path (collection/rkey).",
          "maxLength": 512,
          "type": "string"
        },
        "record": {
          "description": "The record content. Present for create and update operations.",
          "type": "unknown"
        }
      },
      "required": [
        "action",
        "path"
      ],
      "type": "object"
    }
  },
  "id": "zone.stratos.sync.subscribeRecords",
  "lexicon": 1
}

Validate Record

Validate a record against zone.stratos.sync.subscribeRecords

Validation Options
Treat any remaining unresolved references as valid

Metadata

DID
did:plc:6uxgo3ypovauub7nblwylqyv
CID
bafyreic7vx2jl2fx7ggz5zkd4a7hq3qxv3eafvzkikkgppywhvddqko6fy
Indexed At
2026-08-26 08:59 UTC
AT-URI
at://did:plc:6uxgo3ypovauub7nblwylqyv/com.atproto.lexicon.schema/zone.stratos.sync.subscribeRecords

Version History (3 versions)

Similar Lexicons

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.

  • Stream every archived and live Jetstream event in seq order, framed per the xrpc.v1.json subprotocol. The kinds, dids, and collections filters are independent predicates ANDed together; each is match-all when omitted. S…

Lexicon Garden

@