···88 "content": {
99 "type": "array",
1010 "items": {
1111- "refs": ["blog.pckt.block.paragraph"],
1111+ "refs": ["blog.pckt.block.text"],
1212 "type": "union",
1313 "closed": false
1414 },
1515- "description": "Array of paragraph content"
1515+ "description": "Array of text blocks"
1616 }
1717 }
1818 }
1919 },
2020 "$type": "com.atproto.lexicon.schema",
2121 "lexicon": 1,
2222- "description": "Blockquote for quoted text or citations. Typically rendered with distinct visual styling to set quoted content apart from the main text."
2222+ "description": "Blockquote for quoted text or citations. Contains text blocks."
2323}
···33 "defs": {
44 "main": {
55 "type": "object",
66- "required": ["did"],
66+ "required": ["did", "handle"],
77 "properties": {
88 "did": {
99 "type": "string",
1010 "format": "did",
1111 "description": "The DID of the mentioned user (e.g., did:plc:abc123xyz). This is the canonical reference that persists even if the user changes their handle, following app.bsky.richtext.facet#mention"
1212+ },
1313+ "handle": {
1414+ "type": "string",
1515+ "format": "handle",
1616+ "maxLength": 253,
1717+ "description": "The handle of the mentioned user at the time of mention (e.g., alice.bsky.social). Used for display text and byte offset calculation in facets."
1218 }
1319 }
1420 }
···11+{
22+ "id": "blog.pckt.richtext.facet",
33+ "defs": {
44+ "id": {
55+ "type": "object",
66+ "properties": {
77+ "id": {
88+ "type": "string"
99+ }
1010+ },
1111+ "description": "Facet feature for an identifier. Used for linking to a segment"
1212+ },
1313+ "bold": {
1414+ "type": "object",
1515+ "description": "Facet feature for bold text"
1616+ },
1717+ "code": {
1818+ "type": "object",
1919+ "description": "Facet feature for inline code"
2020+ },
2121+ "link": {
2222+ "type": "object",
2323+ "required": ["uri"],
2424+ "properties": {
2525+ "uri": {
2626+ "type": "string"
2727+ }
2828+ },
2929+ "description": "Facet feature for a URL. The text URL may have been simplified or truncated, but the facet reference should be a complete URL."
3030+ },
3131+ "main": {
3232+ "type": "object",
3333+ "required": ["index", "features"],
3434+ "properties": {
3535+ "index": {
3636+ "ref": "#byteSlice",
3737+ "type": "ref"
3838+ },
3939+ "features": {
4040+ "type": "array",
4141+ "items": {
4242+ "refs": [
4343+ "#link",
4444+ "#didMention",
4545+ "#atMention",
4646+ "#code",
4747+ "#highlight",
4848+ "#underline",
4949+ "#strikethrough",
5050+ "#id",
5151+ "#bold",
5252+ "#italic"
5353+ ],
5454+ "type": "union"
5555+ }
5656+ }
5757+ }
5858+ },
5959+ "italic": {
6060+ "type": "object",
6161+ "description": "Facet feature for italic text"
6262+ },
6363+ "atMention": {
6464+ "type": "object",
6565+ "required": ["atURI"],
6666+ "properties": {
6767+ "atURI": {
6868+ "type": "string",
6969+ "format": "uri"
7070+ }
7171+ },
7272+ "description": "Facet feature for mentioning an AT URI"
7373+ },
7474+ "byteSlice": {
7575+ "type": "object",
7676+ "required": ["byteStart", "byteEnd"],
7777+ "properties": {
7878+ "byteEnd": {
7979+ "type": "integer",
8080+ "minimum": 0
8181+ },
8282+ "byteStart": {
8383+ "type": "integer",
8484+ "minimum": 0
8585+ }
8686+ },
8787+ "description": "Specifies the sub-string range a facet feature applies to. Start index is inclusive, end index is exclusive. Indices are zero-indexed, counting bytes of the UTF-8 encoded text."
8888+ },
8989+ "highlight": {
9090+ "type": "object",
9191+ "description": "Facet feature for highlighted text"
9292+ },
9393+ "underline": {
9494+ "type": "object",
9595+ "description": "Facet feature for underline markup"
9696+ },
9797+ "didMention": {
9898+ "type": "object",
9999+ "required": ["did"],
100100+ "properties": {
101101+ "did": {
102102+ "type": "string",
103103+ "format": "did"
104104+ }
105105+ },
106106+ "description": "Facet feature for mentioning a DID"
107107+ },
108108+ "strikethrough": {
109109+ "type": "object",
110110+ "description": "Facet feature for strikethrough markup"
111111+ }
112112+ },
113113+ "$type": "com.atproto.lexicon.schema",
114114+ "lexicon": 1,
115115+ "description": "Annotation of a sub-string within rich text."
116116+}
+1-6
packages/definitions/pckt/lib/lexicons/index.ts
···1616export * as BlogPcktBlockText from './types/blog/pckt/block/text.js';
1717export * as BlogPcktBlockWebsite from './types/blog/pckt/block/website.js';
1818export * as BlogPcktDocument from './types/blog/pckt/document.js';
1919-export * as BlogPcktMarkBold from './types/blog/pckt/mark/bold.js';
2020-export * as BlogPcktMarkCode from './types/blog/pckt/mark/code.js';
2121-export * as BlogPcktMarkItalic from './types/blog/pckt/mark/italic.js';
2222-export * as BlogPcktMarkLink from './types/blog/pckt/mark/link.js';
2323-export * as BlogPcktMarkStrike from './types/blog/pckt/mark/strike.js';
2424-export * as BlogPcktMarkUnderline from './types/blog/pckt/mark/underline.js';
2519export * as BlogPcktPublication from './types/blog/pckt/publication.js';
2020+export * as BlogPcktRichtextFacet from './types/blog/pckt/richtext/facet.js';
2621export * as BlogPcktTheme from './types/blog/pckt/theme.js';
···77 * The DID of the mentioned user (e.g., did:plc:abc123xyz). This is the canonical reference that persists even if the user changes their handle, following app.bsky.richtext.facet#mention
88 */
99 did: /*#__PURE__*/ v.didString(),
1010+ /**
1111+ * The handle of the mentioned user at the time of mention (e.g., alice.bsky.social). Used for display text and byte offset calculation in facets.
1212+ * @maxLength 253
1313+ */
1414+ handle: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.handleString(), [/*#__PURE__*/ v.stringLength(0, 253)]),
1015});
11161217type main$schematype = typeof _mainSchema;
···33import * as BlogPcktBlockHardBreak from './hardBreak.js';
44import * as BlogPcktBlockMention from './mention.js';
55import * as BlogPcktBlockText from './text.js';
66+import * as BlogPcktRichtextFacet from '../richtext/facet.js';
6778const _mainSchema = /*#__PURE__*/ v.object({
89 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('blog.pckt.block.paragraph')),
···1920 ]),
2021 ),
2122 );
2323+ },
2424+ /**
2525+ * Facets for text formatting and features within this paragraph
2626+ */
2727+ get facets() {
2828+ return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(BlogPcktRichtextFacet.mainSchema));
2229 },
2330});
2431