···11+# perlds
22+33+`perlds` is a Perl 5 Personal Data Server for the AT Protocol / Bluesky ecosystem.
44+55+The project goal is to expose the current external `com.atproto.*` PDS-facing XRPC
66+surface from the official lexicons, with a local SQLite-backed implementation for:
77+88+- account and session management
99+- DID/handle identity resolution
1010+- record and blob storage
1111+- DAG-CBOR block storage
1212+- Merkle Search Tree repository state
1313+- CAR export/import and sync endpoints
1414+1515+The codebase intentionally keeps protocol metadata close to the source by deriving
1616+its route inventory from the upstream lexicons vendored during development.
···11+{
22+ "lexicon": 1,
33+ "id": "com.atproto.identity.refreshIdentity",
44+ "defs": {
55+ "main": {
66+ "type": "procedure",
77+ "description": "Request that the server re-resolve an identity (DID and handle). The server may ignore this request, or require authentication, depending on the role, implementation, and policy of the server.",
88+ "input": {
99+ "encoding": "application/json",
1010+ "schema": {
1111+ "type": "object",
1212+ "required": ["identifier"],
1313+ "properties": {
1414+ "identifier": {
1515+ "type": "string",
1616+ "format": "at-identifier"
1717+ }
1818+ }
1919+ }
2020+ },
2121+ "output": {
2222+ "encoding": "application/json",
2323+ "schema": {
2424+ "type": "ref",
2525+ "ref": "com.atproto.identity.defs#identityInfo"
2626+ }
2727+ },
2828+ "errors": [
2929+ {
3030+ "name": "HandleNotFound",
3131+ "description": "The resolution process confirmed that the handle does not resolve to any DID."
3232+ },
3333+ {
3434+ "name": "DidNotFound",
3535+ "description": "The DID resolution process confirmed that there is no current DID."
3636+ },
3737+ {
3838+ "name": "DidDeactivated",
3939+ "description": "The DID previously existed, but has been deactivated."
4040+ }
4141+ ]
4242+ }
4343+ }
4444+}
···11+{
22+ "lexicon": 1,
33+ "id": "com.atproto.identity.requestPlcOperationSignature",
44+ "defs": {
55+ "main": {
66+ "type": "procedure",
77+ "description": "Request an email with a code to in order to request a signed PLC operation. Requires Auth."
88+ }
99+ }
1010+}
···11+{
22+ "lexicon": 1,
33+ "id": "com.atproto.label.defs",
44+ "defs": {
55+ "label": {
66+ "type": "object",
77+ "description": "Metadata tag on an atproto resource (eg, repo or record).",
88+ "required": ["src", "uri", "val", "cts"],
99+ "properties": {
1010+ "ver": {
1111+ "type": "integer",
1212+ "description": "The AT Protocol version of the label object."
1313+ },
1414+ "src": {
1515+ "type": "string",
1616+ "format": "did",
1717+ "description": "DID of the actor who created this label."
1818+ },
1919+ "uri": {
2020+ "type": "string",
2121+ "format": "uri",
2222+ "description": "AT URI of the record, repository (account), or other resource that this label applies to."
2323+ },
2424+ "cid": {
2525+ "type": "string",
2626+ "format": "cid",
2727+ "description": "Optionally, CID specifying the specific version of 'uri' resource this label applies to."
2828+ },
2929+ "val": {
3030+ "type": "string",
3131+ "maxLength": 128,
3232+ "description": "The short string name of the value or type of this label."
3333+ },
3434+ "neg": {
3535+ "type": "boolean",
3636+ "description": "If true, this is a negation label, overwriting a previous label."
3737+ },
3838+ "cts": {
3939+ "type": "string",
4040+ "format": "datetime",
4141+ "description": "Timestamp when this label was created."
4242+ },
4343+ "exp": {
4444+ "type": "string",
4545+ "format": "datetime",
4646+ "description": "Timestamp at which this label expires (no longer applies)."
4747+ },
4848+ "sig": {
4949+ "type": "bytes",
5050+ "description": "Signature of dag-cbor encoded label."
5151+ }
5252+ }
5353+ },
5454+ "selfLabels": {
5555+ "type": "object",
5656+ "description": "Metadata tags on an atproto record, published by the author within the record.",
5757+ "required": ["values"],
5858+ "properties": {
5959+ "values": {
6060+ "type": "array",
6161+ "items": { "type": "ref", "ref": "#selfLabel" },
6262+ "maxLength": 10
6363+ }
6464+ }
6565+ },
6666+ "selfLabel": {
6767+ "type": "object",
6868+ "description": "Metadata tag on an atproto record, published by the author within the record. Note that schemas should use #selfLabels, not #selfLabel.",
6969+ "required": ["val"],
7070+ "properties": {
7171+ "val": {
7272+ "type": "string",
7373+ "maxLength": 128,
7474+ "description": "The short string name of the value or type of this label."
7575+ }
7676+ }
7777+ },
7878+ "labelValueDefinition": {
7979+ "type": "object",
8080+ "description": "Declares a label value and its expected interpretations and behaviors.",
8181+ "required": ["identifier", "severity", "blurs", "locales"],
8282+ "properties": {
8383+ "identifier": {
8484+ "type": "string",
8585+ "description": "The value of the label being defined. Must only include lowercase ascii and the '-' character ([a-z-]+).",
8686+ "maxLength": 100,
8787+ "maxGraphemes": 100
8888+ },
8989+ "severity": {
9090+ "type": "string",
9191+ "description": "How should a client visually convey this label? 'inform' means neutral and informational; 'alert' means negative and warning; 'none' means show nothing.",
9292+ "knownValues": ["inform", "alert", "none"]
9393+ },
9494+ "blurs": {
9595+ "type": "string",
9696+ "description": "What should this label hide in the UI, if applied? 'content' hides all of the target; 'media' hides the images/video/audio; 'none' hides nothing.",
9797+ "knownValues": ["content", "media", "none"]
9898+ },
9999+ "defaultSetting": {
100100+ "type": "string",
101101+ "description": "The default setting for this label.",
102102+ "knownValues": ["ignore", "warn", "hide"],
103103+ "default": "warn"
104104+ },
105105+ "adultOnly": {
106106+ "type": "boolean",
107107+ "description": "Does the user need to have adult content enabled in order to configure this label?"
108108+ },
109109+ "locales": {
110110+ "type": "array",
111111+ "items": { "type": "ref", "ref": "#labelValueDefinitionStrings" }
112112+ }
113113+ }
114114+ },
115115+ "labelValueDefinitionStrings": {
116116+ "type": "object",
117117+ "description": "Strings which describe the label in the UI, localized into a specific language.",
118118+ "required": ["lang", "name", "description"],
119119+ "properties": {
120120+ "lang": {
121121+ "type": "string",
122122+ "description": "The code of the language these strings are written in.",
123123+ "format": "language"
124124+ },
125125+ "name": {
126126+ "type": "string",
127127+ "description": "A short human-readable name for the label.",
128128+ "maxGraphemes": 64,
129129+ "maxLength": 640
130130+ },
131131+ "description": {
132132+ "type": "string",
133133+ "description": "A longer description of what the label means and why it might be applied.",
134134+ "maxGraphemes": 10000,
135135+ "maxLength": 100000
136136+ }
137137+ }
138138+ },
139139+ "labelValue": {
140140+ "type": "string",
141141+ "knownValues": [
142142+ "!hide",
143143+ "!no-promote",
144144+ "!warn",
145145+ "!no-unauthenticated",
146146+ "dmca-violation",
147147+ "doxxing",
148148+ "porn",
149149+ "sexual",
150150+ "nudity",
151151+ "nsfl",
152152+ "gore"
153153+ ]
154154+ }
155155+ }
156156+}
+47
share/lexicons/com/atproto/label/queryLabels.json
···11+{
22+ "lexicon": 1,
33+ "id": "com.atproto.label.queryLabels",
44+ "defs": {
55+ "main": {
66+ "type": "query",
77+ "description": "Find labels relevant to the provided AT-URI patterns. Public endpoint for moderation services, though may return different or additional results with auth.",
88+ "parameters": {
99+ "type": "params",
1010+ "required": ["uriPatterns"],
1111+ "properties": {
1212+ "uriPatterns": {
1313+ "type": "array",
1414+ "items": { "type": "string" },
1515+ "description": "List of AT URI patterns to match (boolean 'OR'). Each may be a prefix (ending with '*'; will match inclusive of the string leading to '*'), or a full URI."
1616+ },
1717+ "sources": {
1818+ "type": "array",
1919+ "items": { "type": "string", "format": "did" },
2020+ "description": "Optional list of label sources (DIDs) to filter on."
2121+ },
2222+ "limit": {
2323+ "type": "integer",
2424+ "minimum": 1,
2525+ "maximum": 250,
2626+ "default": 50
2727+ },
2828+ "cursor": { "type": "string" }
2929+ }
3030+ },
3131+ "output": {
3232+ "encoding": "application/json",
3333+ "schema": {
3434+ "type": "object",
3535+ "required": ["labels"],
3636+ "properties": {
3737+ "cursor": { "type": "string" },
3838+ "labels": {
3939+ "type": "array",
4040+ "items": { "type": "ref", "ref": "com.atproto.label.defs#label" }
4141+ }
4242+ }
4343+ }
4444+ }
4545+ }
4646+ }
4747+}
···11+{
22+ "lexicon": 1,
33+ "id": "com.atproto.lexicon.schema",
44+ "defs": {
55+ "main": {
66+ "type": "record",
77+ "description": "Representation of Lexicon schemas themselves, when published as atproto records. Note that the schema language is not defined in Lexicon; this meta schema currently only includes a single version field ('lexicon'). See the atproto specifications for description of the other expected top-level fields ('id', 'defs', etc).",
88+ "key": "nsid",
99+ "record": {
1010+ "type": "object",
1111+ "required": ["lexicon"],
1212+ "properties": {
1313+ "lexicon": {
1414+ "type": "integer",
1515+ "description": "Indicates the 'version' of the Lexicon language. Must be '1' for the current atproto/Lexicon schema system."
1616+ }
1717+ }
1818+ }
1919+ }
2020+ }
2121+}
···11+{
22+ "lexicon": 1,
33+ "id": "com.atproto.repo.uploadBlob",
44+ "defs": {
55+ "main": {
66+ "type": "procedure",
77+ "description": "Upload a new blob, to be referenced from a repository record. The blob will be deleted if it is not referenced within a time window (eg, minutes). Blob restrictions (mimetype, size, etc) are enforced when the reference is created. Requires auth, implemented by PDS.",
88+ "input": {
99+ "encoding": "*/*"
1010+ },
1111+ "output": {
1212+ "encoding": "application/json",
1313+ "schema": {
1414+ "type": "object",
1515+ "required": ["blob"],
1616+ "properties": {
1717+ "blob": { "type": "blob" }
1818+ }
1919+ }
2020+ }
2121+ }
2222+ }
2323+}
···11+{
22+ "lexicon": 1,
33+ "id": "com.atproto.server.activateAccount",
44+ "defs": {
55+ "main": {
66+ "type": "procedure",
77+ "description": "Activates a currently deactivated account. Used to finalize account migration after the account's repo is imported and identity is setup."
88+ }
99+ }
1010+}
···11+{
22+ "lexicon": 1,
33+ "id": "com.atproto.server.deactivateAccount",
44+ "defs": {
55+ "main": {
66+ "type": "procedure",
77+ "description": "Deactivates a currently active account. Stops serving of repo, and future writes to repo until reactivated. Used to finalize account migration with the old host after the account has been activated on the new host.",
88+ "input": {
99+ "encoding": "application/json",
1010+ "schema": {
1111+ "type": "object",
1212+ "properties": {
1313+ "deleteAfter": {
1414+ "type": "string",
1515+ "format": "datetime",
1616+ "description": "A recommendation to server as to how long they should hold onto the deactivated account before deleting."
1717+ }
1818+ }
1919+ }
2020+ }
2121+ }
2222+ }
2323+}
···11+{
22+ "lexicon": 1,
33+ "id": "com.atproto.server.getServiceAuth",
44+ "defs": {
55+ "main": {
66+ "type": "query",
77+ "description": "Get a signed token on behalf of the requesting DID for the requested service.",
88+ "parameters": {
99+ "type": "params",
1010+ "required": ["aud"],
1111+ "properties": {
1212+ "aud": {
1313+ "type": "string",
1414+ "format": "did",
1515+ "description": "The DID of the service that the token will be used to authenticate with"
1616+ },
1717+ "exp": {
1818+ "type": "integer",
1919+ "description": "The time in Unix Epoch seconds that the JWT expires. Defaults to 60 seconds in the future. The service may enforce certain time bounds on tokens depending on the requested scope."
2020+ },
2121+ "lxm": {
2222+ "type": "string",
2323+ "format": "nsid",
2424+ "description": "Lexicon (XRPC) method to bind the requested token to"
2525+ }
2626+ }
2727+ },
2828+ "output": {
2929+ "encoding": "application/json",
3030+ "schema": {
3131+ "type": "object",
3232+ "required": ["token"],
3333+ "properties": {
3434+ "token": {
3535+ "type": "string"
3636+ }
3737+ }
3838+ }
3939+ },
4040+ "errors": [
4141+ {
4242+ "name": "BadExpiration",
4343+ "description": "Indicates that the requested expiration date is not a valid. May be in the past or may be reliant on the requested scopes."
4444+ }
4545+ ]
4646+ }
4747+ }
4848+}
+31
share/lexicons/com/atproto/server/getSession.json
···11+{
22+ "lexicon": 1,
33+ "id": "com.atproto.server.getSession",
44+ "defs": {
55+ "main": {
66+ "type": "query",
77+ "description": "Get information about the current auth session. Requires auth.",
88+ "output": {
99+ "encoding": "application/json",
1010+ "schema": {
1111+ "type": "object",
1212+ "required": ["handle", "did"],
1313+ "properties": {
1414+ "handle": { "type": "string", "format": "handle" },
1515+ "did": { "type": "string", "format": "did" },
1616+ "didDoc": { "type": "unknown" },
1717+ "email": { "type": "string" },
1818+ "emailConfirmed": { "type": "boolean" },
1919+ "emailAuthFactor": { "type": "boolean" },
2020+ "active": { "type": "boolean" },
2121+ "status": {
2222+ "type": "string",
2323+ "description": "If active=false, this optional field indicates a possible reason for why the account is not active. If active=false and no status is supplied, then the host makes no claim for why the repository is no longer being hosted.",
2424+ "knownValues": ["takendown", "suspended", "deactivated"]
2525+ }
2626+ }
2727+ }
2828+ }
2929+ }
3030+ }
3131+}
···11+{
22+ "lexicon": 1,
33+ "id": "com.atproto.server.reserveSigningKey",
44+ "defs": {
55+ "main": {
66+ "type": "procedure",
77+ "description": "Reserve a repo signing key, for use with account creation. Necessary so that a DID PLC update operation can be constructed during an account migraiton. Public and does not require auth; implemented by PDS. NOTE: this endpoint may change when full account migration is implemented.",
88+ "input": {
99+ "encoding": "application/json",
1010+ "schema": {
1111+ "type": "object",
1212+ "properties": {
1313+ "did": {
1414+ "type": "string",
1515+ "format": "did",
1616+ "description": "The DID to reserve a key for."
1717+ }
1818+ }
1919+ }
2020+ },
2121+ "output": {
2222+ "encoding": "application/json",
2323+ "schema": {
2424+ "type": "object",
2525+ "required": ["signingKey"],
2626+ "properties": {
2727+ "signingKey": {
2828+ "type": "string",
2929+ "description": "The public key for the reserved signing key, in did:key serialization."
3030+ }
3131+ }
3232+ }
3333+ }
3434+ }
3535+ }
3636+}
···11+{
22+ "lexicon": 1,
33+ "id": "com.atproto.sync.notifyOfUpdate",
44+ "defs": {
55+ "main": {
66+ "type": "procedure",
77+ "description": "Notify a crawling service of a recent update, and that crawling should resume. Intended use is after a gap between repo stream events caused the crawling service to disconnect. Does not require auth; implemented by Relay. DEPRECATED: just use com.atproto.sync.requestCrawl",
88+ "input": {
99+ "encoding": "application/json",
1010+ "schema": {
1111+ "type": "object",
1212+ "required": ["hostname"],
1313+ "properties": {
1414+ "hostname": {
1515+ "type": "string",
1616+ "description": "Hostname of the current service (usually a PDS) that is notifying of update."
1717+ }
1818+ }
1919+ }
2020+ }
2121+ }
2222+ }
2323+}
+24
share/lexicons/com/atproto/sync/requestCrawl.json
···11+{
22+ "lexicon": 1,
33+ "id": "com.atproto.sync.requestCrawl",
44+ "defs": {
55+ "main": {
66+ "type": "procedure",
77+ "description": "Request a service to persistently crawl hosted repos. Expected use is new PDS instances declaring their existence to Relays. Does not require auth.",
88+ "input": {
99+ "encoding": "application/json",
1010+ "schema": {
1111+ "type": "object",
1212+ "required": ["hostname"],
1313+ "properties": {
1414+ "hostname": {
1515+ "type": "string",
1616+ "description": "Hostname of the current service (eg, PDS) that is requesting to be crawled."
1717+ }
1818+ }
1919+ }
2020+ },
2121+ "errors": [{ "name": "HostBanned" }]
2222+ }
2323+ }
2424+}
···11+{
22+ "lexicon": 1,
33+ "id": "com.atproto.sync.subscribeRepos",
44+ "defs": {
55+ "main": {
66+ "type": "subscription",
77+ "description": "Repository event stream, aka Firehose endpoint. Outputs repo commits with diff data, and identity update events, for all repositories on the current server. See the atproto specifications for details around stream sequencing, repo versioning, CAR diff format, and more. Public and does not require auth; implemented by PDS and Relay.",
88+ "parameters": {
99+ "type": "params",
1010+ "properties": {
1111+ "cursor": {
1212+ "type": "integer",
1313+ "description": "The last known event seq number to backfill from."
1414+ }
1515+ }
1616+ },
1717+ "message": {
1818+ "schema": {
1919+ "type": "union",
2020+ "refs": ["#commit", "#sync", "#identity", "#account", "#info"]
2121+ }
2222+ },
2323+ "errors": [
2424+ { "name": "FutureCursor" },
2525+ {
2626+ "name": "ConsumerTooSlow",
2727+ "description": "If the consumer of the stream can not keep up with events, and a backlog gets too large, the server will drop the connection."
2828+ }
2929+ ]
3030+ },
3131+ "commit": {
3232+ "type": "object",
3333+ "description": "Represents an update of repository state. Note that empty commits are allowed, which include no repo data changes, but an update to rev and signature.",
3434+ "required": [
3535+ "seq",
3636+ "rebase",
3737+ "tooBig",
3838+ "repo",
3939+ "commit",
4040+ "rev",
4141+ "since",
4242+ "blocks",
4343+ "ops",
4444+ "blobs",
4545+ "time"
4646+ ],
4747+ "nullable": ["since"],
4848+ "properties": {
4949+ "seq": {
5050+ "type": "integer",
5151+ "description": "The stream sequence number of this message."
5252+ },
5353+ "rebase": { "type": "boolean", "description": "DEPRECATED -- unused" },
5454+ "tooBig": {
5555+ "type": "boolean",
5656+ "description": "DEPRECATED -- replaced by #sync event and data limits. Indicates that this commit contained too many ops, or data size was too large. Consumers will need to make a separate request to get missing data."
5757+ },
5858+ "repo": {
5959+ "type": "string",
6060+ "format": "did",
6161+ "description": "The repo this event comes from. Note that all other message types name this field 'did'."
6262+ },
6363+ "commit": {
6464+ "type": "cid-link",
6565+ "description": "Repo commit object CID."
6666+ },
6767+ "rev": {
6868+ "type": "string",
6969+ "format": "tid",
7070+ "description": "The rev of the emitted commit. Note that this information is also in the commit object included in blocks, unless this is a tooBig event."
7171+ },
7272+ "since": {
7373+ "type": "string",
7474+ "format": "tid",
7575+ "description": "The rev of the last emitted commit from this repo (if any)."
7676+ },
7777+ "blocks": {
7878+ "type": "bytes",
7979+ "description": "CAR file containing relevant blocks, as a diff since the previous repo state. The commit must be included as a block, and the commit block CID must be the first entry in the CAR header 'roots' list.",
8080+ "maxLength": 2000000
8181+ },
8282+ "ops": {
8383+ "type": "array",
8484+ "items": {
8585+ "type": "ref",
8686+ "ref": "#repoOp",
8787+ "description": "List of repo mutation operations in this commit (eg, records created, updated, or deleted)."
8888+ },
8989+ "maxLength": 200
9090+ },
9191+ "blobs": {
9292+ "type": "array",
9393+ "items": {
9494+ "type": "cid-link",
9595+ "description": "DEPRECATED -- will soon always be empty. List of new blobs (by CID) referenced by records in this commit."
9696+ }
9797+ },
9898+ "prevData": {
9999+ "type": "cid-link",
100100+ "description": "The root CID of the MST tree for the previous commit from this repo (indicated by the 'since' revision field in this message). Corresponds to the 'data' field in the repo commit object. NOTE: this field is effectively required for the 'inductive' version of firehose."
101101+ },
102102+ "time": {
103103+ "type": "string",
104104+ "format": "datetime",
105105+ "description": "Timestamp of when this message was originally broadcast."
106106+ }
107107+ }
108108+ },
109109+ "sync": {
110110+ "type": "object",
111111+ "description": "Updates the repo to a new state, without necessarily including that state on the firehose. Used to recover from broken commit streams, data loss incidents, or in situations where upstream host does not know recent state of the repository.",
112112+ "required": ["seq", "did", "blocks", "rev", "time"],
113113+ "properties": {
114114+ "seq": {
115115+ "type": "integer",
116116+ "description": "The stream sequence number of this message."
117117+ },
118118+ "did": {
119119+ "type": "string",
120120+ "format": "did",
121121+ "description": "The account this repo event corresponds to. Must match that in the commit object."
122122+ },
123123+ "blocks": {
124124+ "type": "bytes",
125125+ "description": "CAR file containing the commit, as a block. The CAR header must include the commit block CID as the first 'root'.",
126126+ "maxLength": 10000
127127+ },
128128+ "rev": {
129129+ "type": "string",
130130+ "description": "The rev of the commit. This value must match that in the commit object."
131131+ },
132132+ "time": {
133133+ "type": "string",
134134+ "format": "datetime",
135135+ "description": "Timestamp of when this message was originally broadcast."
136136+ }
137137+ }
138138+ },
139139+ "identity": {
140140+ "type": "object",
141141+ "description": "Represents a change to an account's identity. Could be an updated handle, signing key, or pds hosting endpoint. Serves as a prod to all downstream services to refresh their identity cache.",
142142+ "required": ["seq", "did", "time"],
143143+ "properties": {
144144+ "seq": { "type": "integer" },
145145+ "did": { "type": "string", "format": "did" },
146146+ "time": { "type": "string", "format": "datetime" },
147147+ "handle": {
148148+ "type": "string",
149149+ "format": "handle",
150150+ "description": "The current handle for the account, or 'handle.invalid' if validation fails. This field is optional, might have been validated or passed-through from an upstream source. Semantics and behaviors for PDS vs Relay may evolve in the future; see atproto specs for more details."
151151+ }
152152+ }
153153+ },
154154+ "account": {
155155+ "type": "object",
156156+ "description": "Represents a change to an account's status on a host (eg, PDS or Relay). The semantics of this event are that the status is at the host which emitted the event, not necessarily that at the currently active PDS. Eg, a Relay takedown would emit a takedown with active=false, even if the PDS is still active.",
157157+ "required": ["seq", "did", "time", "active"],
158158+ "properties": {
159159+ "seq": { "type": "integer" },
160160+ "did": { "type": "string", "format": "did" },
161161+ "time": { "type": "string", "format": "datetime" },
162162+ "active": {
163163+ "type": "boolean",
164164+ "description": "Indicates that the account has a repository which can be fetched from the host that emitted this event."
165165+ },
166166+ "status": {
167167+ "type": "string",
168168+ "description": "If active=false, this optional field indicates a reason for why the account is not active.",
169169+ "knownValues": [
170170+ "takendown",
171171+ "suspended",
172172+ "deleted",
173173+ "deactivated",
174174+ "desynchronized",
175175+ "throttled"
176176+ ]
177177+ }
178178+ }
179179+ },
180180+ "info": {
181181+ "type": "object",
182182+ "required": ["name"],
183183+ "properties": {
184184+ "name": {
185185+ "type": "string",
186186+ "knownValues": ["OutdatedCursor"]
187187+ },
188188+ "message": {
189189+ "type": "string"
190190+ }
191191+ }
192192+ },
193193+ "repoOp": {
194194+ "type": "object",
195195+ "description": "A repo operation, ie a mutation of a single record.",
196196+ "required": ["action", "path", "cid"],
197197+ "nullable": ["cid"],
198198+ "properties": {
199199+ "action": {
200200+ "type": "string",
201201+ "knownValues": ["create", "update", "delete"]
202202+ },
203203+ "path": { "type": "string" },
204204+ "cid": {
205205+ "type": "cid-link",
206206+ "description": "For creates and updates, the new record CID. For deletions, null."
207207+ },
208208+ "prev": {
209209+ "type": "cid-link",
210210+ "description": "For updates and deletes, the previous record CID (required for inductive firehose). For creations, field should not be defined."
211211+ }
212212+ }
213213+ }
214214+ }
215215+}