zone.stratos.sync.subscribeRecords
{
"$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). AppViews must provide a signed service JWT via syncToken.",
"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"
},
"syncToken": {
"description": "Signed service JWT for AppView authentication. Must include iss, aud, exp, and lxm claims. Required for service callers; owner callers may use the Authorization header instead.",
"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
}
Metadata
- DID
-
did:plc:6uxgo3ypovauub7nblwylqyv - CID
-
bafyreic3s27wqbtd6athmg4ofyzwrmpyxgahfjym4gr6vlwywf7prbcal4 - Indexed At
- 2026-03-21 15:01 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.
-
network.bsky.jetstream.subscribeEvents subscription
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…