new post
This commit is contained in:
79
lexicons/site.standard.document.json
Normal file
79
lexicons/site.standard.document.json
Normal file
@@ -0,0 +1,79 @@
|
||||
{
|
||||
"lexicon": 1,
|
||||
"id": "site.standard.document",
|
||||
"$type": "com.atproto.lexicon.schema",
|
||||
"defs": {
|
||||
"main": {
|
||||
"type": "record",
|
||||
"key": "tid",
|
||||
"description": "A document record representing a published article, blog post, or other content. Documents can belong to a publication or exist independently.",
|
||||
"record": {
|
||||
"type": "object",
|
||||
"required": ["site", "title", "publishedAt"],
|
||||
"properties": {
|
||||
"site": {
|
||||
"type": "string",
|
||||
"format": "uri",
|
||||
"description": "Points to a publication record (at://) or a publication url (https://) for loose documents."
|
||||
},
|
||||
"title": {
|
||||
"type": "string",
|
||||
"maxLength": 5000,
|
||||
"maxGraphemes": 500,
|
||||
"description": "Title of the document."
|
||||
},
|
||||
"publishedAt": {
|
||||
"type": "string",
|
||||
"format": "datetime",
|
||||
"description": "Timestamp of the document's publish time."
|
||||
},
|
||||
"content": {
|
||||
"type": "union",
|
||||
"closed": false,
|
||||
"refs": [],
|
||||
"description": "Open union used to define the record's content. Each entry must specify a $type."
|
||||
},
|
||||
"description": {
|
||||
"type": "string",
|
||||
"maxLength": 30000,
|
||||
"maxGraphemes": 3000,
|
||||
"description": "A brief description or excerpt from the document."
|
||||
},
|
||||
"textContent": {
|
||||
"type": "string",
|
||||
"description": "Plaintext representation of the document's contents. Should not contain markdown or other formatting."
|
||||
},
|
||||
"updatedAt": {
|
||||
"type": "string",
|
||||
"format": "datetime",
|
||||
"description": "Timestamp of the document's last edit."
|
||||
},
|
||||
"tags": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"maxLength": 1280,
|
||||
"maxGraphemes": 128
|
||||
},
|
||||
"description": "Array of strings used to tag or categorize the document."
|
||||
},
|
||||
"path": {
|
||||
"type": "string",
|
||||
"description": "Combine with site URL to construct a canonical URL to the document."
|
||||
},
|
||||
"coverImage": {
|
||||
"type": "blob",
|
||||
"accept": ["image/*"],
|
||||
"maxSize": 1000000,
|
||||
"description": "Cover image. Less than 1MB."
|
||||
},
|
||||
"bskyPostRef": {
|
||||
"type": "ref",
|
||||
"ref": "com.atproto.repo.strongRef",
|
||||
"description": "Strong reference to a Bluesky post."
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
62
lexicons/site.standard.publication.json
Normal file
62
lexicons/site.standard.publication.json
Normal file
@@ -0,0 +1,62 @@
|
||||
{
|
||||
"lexicon": 1,
|
||||
"id": "site.standard.publication",
|
||||
"$type": "com.atproto.lexicon.schema",
|
||||
"defs": {
|
||||
"main": {
|
||||
"type": "record",
|
||||
"key": "tid",
|
||||
"description": "A publication record representing a blog, website, or content platform. Publications serve as containers for documents and define the overall branding and settings.",
|
||||
"record": {
|
||||
"type": "object",
|
||||
"required": ["url", "name"],
|
||||
"properties": {
|
||||
"url": {
|
||||
"type": "string",
|
||||
"format": "uri",
|
||||
"description": "Base publication url (ex: https://syui.ai). The canonical document URL is formed by combining this value with the document path."
|
||||
},
|
||||
"name": {
|
||||
"type": "string",
|
||||
"maxLength": 5000,
|
||||
"maxGraphemes": 500,
|
||||
"description": "Name of the publication."
|
||||
},
|
||||
"icon": {
|
||||
"type": "blob",
|
||||
"accept": ["image/*"],
|
||||
"maxSize": 1000000,
|
||||
"description": "Square image to identify the publication. Should be at least 256x256."
|
||||
},
|
||||
"description": {
|
||||
"type": "string",
|
||||
"maxLength": 30000,
|
||||
"maxGraphemes": 3000,
|
||||
"description": "Brief description of the publication."
|
||||
},
|
||||
"basicTheme": {
|
||||
"type": "ref",
|
||||
"ref": "site.standard.theme.basic",
|
||||
"description": "Simplified publication theme for tools and apps to utilize when displaying content."
|
||||
},
|
||||
"preferences": {
|
||||
"type": "ref",
|
||||
"ref": "#preferences",
|
||||
"description": "Object containing platform specific preferences."
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"preferences": {
|
||||
"type": "object",
|
||||
"description": "Platform-specific preferences for the publication, including discovery and visibility settings.",
|
||||
"properties": {
|
||||
"showInDiscover": {
|
||||
"type": "boolean",
|
||||
"default": true,
|
||||
"description": "Boolean which decides whether the publication should appear in discovery feeds."
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user