{
"id": "link.latr.bookmarks.defs",
"defs": {
"preview": {
"type": "object",
"required": [],
"properties": {
"image": {
"type": "string",
"format": "uri",
"maxLength": 8192,
"maxGraphemes": 2048
},
"title": {
"type": "string",
"maxLength": 2048,
"maxGraphemes": 512
},
"author": {
"type": "string",
"maxLength": 512,
"maxGraphemes": 128
},
"siteName": {
"type": "string",
"maxLength": 512,
"maxGraphemes": 128
},
"description": {
"type": "string",
"maxLength": 8192,
"maxGraphemes": 2048
}
}
},
"simpleOk": {
"type": "object",
"required": [
"ok"
],
"properties": {
"ok": {
"type": "boolean"
}
}
},
"tagCount": {
"type": "object",
"required": [
"tag",
"count"
],
"properties": {
"tag": {
"type": "string",
"maxLength": 640,
"maxGraphemes": 64
},
"count": {
"type": "integer",
"minimum": 1
}
}
},
"bookmarkView": {
"type": "object",
"required": [
"uri",
"cid",
"value"
],
"properties": {
"cid": {
"type": "string",
"format": "cid"
},
"uri": {
"type": "string",
"format": "at-uri"
},
"value": {
"ref": "community.lexicon.bookmarks.bookmark",
"type": "ref"
},
"preview": {
"ref": "#preview",
"type": "ref"
},
"metadataRecord": {
"ref": "#metadataRecord",
"type": "ref"
}
}
},
"bookmarkRecord": {
"type": "object",
"required": [
"uri",
"cid",
"value"
],
"properties": {
"cid": {
"type": "string",
"format": "cid"
},
"uri": {
"type": "string",
"format": "at-uri"
},
"value": {
"ref": "community.lexicon.bookmarks.bookmark",
"type": "ref"
}
}
},
"metadataRecord": {
"type": "object",
"required": [
"uri",
"cid",
"value"
],
"properties": {
"cid": {
"type": "string",
"format": "cid"
},
"uri": {
"type": "string",
"format": "at-uri"
},
"value": {
"ref": "link.latr.bookmarks.metadata",
"type": "ref"
}
}
},
"migrationResult": {
"type": "object",
"required": [
"ok",
"scanned",
"created",
"reused",
"duplicates",
"skippedConflict",
"cached",
"retired"
],
"properties": {
"ok": {
"type": "boolean"
},
"cached": {
"type": "integer",
"minimum": 0
},
"cursor": {
"type": "string",
"maxLength": 2048,
"maxGraphemes": 512
},
"reused": {
"type": "integer",
"minimum": 0
},
"created": {
"type": "integer",
"minimum": 0
},
"retired": {
"type": "integer",
"minimum": 0
},
"scanned": {
"type": "integer",
"minimum": 0
},
"duplicates": {
"type": "integer",
"minimum": 0
},
"skippedConflict": {
"type": "integer",
"minimum": 0
}
}
},
"tagMutationResult": {
"type": "object",
"required": [
"ok",
"scanned",
"matched",
"updated"
],
"properties": {
"ok": {
"type": "boolean"
},
"cursor": {
"type": "string",
"maxLength": 2048,
"maxGraphemes": 512
},
"matched": {
"type": "integer",
"minimum": 0
},
"scanned": {
"type": "integer",
"minimum": 0
},
"updated": {
"type": "integer",
"minimum": 0
}
}
},
"metadataSyncResult": {
"type": "object",
"required": [
"ok",
"scanned",
"created",
"reused",
"skippedConflict"
],
"properties": {
"ok": {
"type": "boolean"
},
"cursor": {
"type": "string",
"maxLength": 2048,
"maxGraphemes": 512
},
"reused": {
"type": "integer",
"minimum": 0
},
"created": {
"type": "integer",
"minimum": 0
},
"scanned": {
"type": "integer",
"minimum": 0
},
"skippedConflict": {
"type": "integer",
"minimum": 0
}
}
},
"communityBookmarkRecord": {
"type": "object",
"required": [
"subject",
"createdAt"
],
"properties": {
"tags": {
"type": "array",
"items": {
"type": "string",
"maxLength": 640,
"maxGraphemes": 64
},
"maxLength": 100
},
"subject": {
"type": "string",
"format": "uri",
"maxLength": 8192,
"maxGraphemes": 2048
},
"createdAt": {
"type": "string",
"format": "datetime"
}
}
}
},
"$type": "com.atproto.lexicon.schema",
"lexicon": 1
}