@atcute/pckt 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lexicons/index.d.ts +0 -1
- package/dist/lexicons/index.d.ts.map +1 -1
- package/dist/lexicons/index.js +0 -1
- package/dist/lexicons/index.js.map +1 -1
- package/dist/lexicons/types/blog/pckt/document.d.ts +2 -60
- package/dist/lexicons/types/blog/pckt/document.d.ts.map +1 -1
- package/dist/lexicons/types/blog/pckt/document.js +2 -90
- package/dist/lexicons/types/blog/pckt/document.js.map +1 -1
- package/dist/lexicons/types/blog/pckt/publication.d.ts +2 -64
- package/dist/lexicons/types/blog/pckt/publication.d.ts.map +1 -1
- package/dist/lexicons/types/blog/pckt/publication.js +3 -76
- package/dist/lexicons/types/blog/pckt/publication.js.map +1 -1
- package/lib/lexicons/index.ts +0 -1
- package/lib/lexicons/types/blog/pckt/document.ts +2 -97
- package/lib/lexicons/types/blog/pckt/publication.ts +3 -81
- package/package.json +7 -4
- package/dist/lexicons/types/blog/pckt/block/paragraph.d.ts +0 -24
- package/dist/lexicons/types/blog/pckt/block/paragraph.d.ts.map +0 -1
- package/dist/lexicons/types/blog/pckt/block/paragraph.js +0 -28
- package/dist/lexicons/types/blog/pckt/block/paragraph.js.map +0 -1
- package/lib/lexicons/types/blog/pckt/block/paragraph.ts +0 -38
package/dist/lexicons/index.d.ts
CHANGED
|
@@ -10,7 +10,6 @@ export * as BlogPcktBlockImage from './types/blog/pckt/block/image.js';
|
|
|
10
10
|
export * as BlogPcktBlockListItem from './types/blog/pckt/block/listItem.js';
|
|
11
11
|
export * as BlogPcktBlockMention from './types/blog/pckt/block/mention.js';
|
|
12
12
|
export * as BlogPcktBlockOrderedList from './types/blog/pckt/block/orderedList.js';
|
|
13
|
-
export * as BlogPcktBlockParagraph from './types/blog/pckt/block/paragraph.js';
|
|
14
13
|
export * as BlogPcktBlockTaskItem from './types/blog/pckt/block/taskItem.js';
|
|
15
14
|
export * as BlogPcktBlockTaskList from './types/blog/pckt/block/taskList.js';
|
|
16
15
|
export * as BlogPcktBlockText from './types/blog/pckt/block/text.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/lexicons/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,uBAAuB,MAAM,uCAAuC,CAAC;AACjF,OAAO,KAAK,yBAAyB,MAAM,yCAAyC,CAAC;AACrF,OAAO,KAAK,uBAAuB,MAAM,uCAAuC,CAAC;AACjF,OAAO,KAAK,sBAAsB,MAAM,sCAAsC,CAAC;AAC/E,OAAO,KAAK,sBAAsB,MAAM,sCAAsC,CAAC;AAC/E,OAAO,KAAK,oBAAoB,MAAM,oCAAoC,CAAC;AAC3E,OAAO,KAAK,2BAA2B,MAAM,2CAA2C,CAAC;AACzF,OAAO,KAAK,mBAAmB,MAAM,mCAAmC,CAAC;AACzE,OAAO,KAAK,kBAAkB,MAAM,kCAAkC,CAAC;AACvE,OAAO,KAAK,qBAAqB,MAAM,qCAAqC,CAAC;AAC7E,OAAO,KAAK,oBAAoB,MAAM,oCAAoC,CAAC;AAC3E,OAAO,KAAK,wBAAwB,MAAM,wCAAwC,CAAC;AACnF,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/lexicons/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,uBAAuB,MAAM,uCAAuC,CAAC;AACjF,OAAO,KAAK,yBAAyB,MAAM,yCAAyC,CAAC;AACrF,OAAO,KAAK,uBAAuB,MAAM,uCAAuC,CAAC;AACjF,OAAO,KAAK,sBAAsB,MAAM,sCAAsC,CAAC;AAC/E,OAAO,KAAK,sBAAsB,MAAM,sCAAsC,CAAC;AAC/E,OAAO,KAAK,oBAAoB,MAAM,oCAAoC,CAAC;AAC3E,OAAO,KAAK,2BAA2B,MAAM,2CAA2C,CAAC;AACzF,OAAO,KAAK,mBAAmB,MAAM,mCAAmC,CAAC;AACzE,OAAO,KAAK,kBAAkB,MAAM,kCAAkC,CAAC;AACvE,OAAO,KAAK,qBAAqB,MAAM,qCAAqC,CAAC;AAC7E,OAAO,KAAK,oBAAoB,MAAM,oCAAoC,CAAC;AAC3E,OAAO,KAAK,wBAAwB,MAAM,wCAAwC,CAAC;AACnF,OAAO,KAAK,qBAAqB,MAAM,qCAAqC,CAAC;AAC7E,OAAO,KAAK,qBAAqB,MAAM,qCAAqC,CAAC;AAC7E,OAAO,KAAK,iBAAiB,MAAM,iCAAiC,CAAC;AACrE,OAAO,KAAK,oBAAoB,MAAM,oCAAoC,CAAC;AAC3E,OAAO,KAAK,gBAAgB,MAAM,+BAA+B,CAAC;AAClE,OAAO,KAAK,mBAAmB,MAAM,kCAAkC,CAAC;AACxE,OAAO,KAAK,qBAAqB,MAAM,qCAAqC,CAAC;AAC7E,OAAO,KAAK,aAAa,MAAM,4BAA4B,CAAC"}
|
package/dist/lexicons/index.js
CHANGED
|
@@ -10,7 +10,6 @@ export * as BlogPcktBlockImage from './types/blog/pckt/block/image.js';
|
|
|
10
10
|
export * as BlogPcktBlockListItem from './types/blog/pckt/block/listItem.js';
|
|
11
11
|
export * as BlogPcktBlockMention from './types/blog/pckt/block/mention.js';
|
|
12
12
|
export * as BlogPcktBlockOrderedList from './types/blog/pckt/block/orderedList.js';
|
|
13
|
-
export * as BlogPcktBlockParagraph from './types/blog/pckt/block/paragraph.js';
|
|
14
13
|
export * as BlogPcktBlockTaskItem from './types/blog/pckt/block/taskItem.js';
|
|
15
14
|
export * as BlogPcktBlockTaskList from './types/blog/pckt/block/taskList.js';
|
|
16
15
|
export * as BlogPcktBlockText from './types/blog/pckt/block/text.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../lib/lexicons/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,uBAAuB,MAAM,uCAAuC,CAAC;AACjF,OAAO,KAAK,yBAAyB,MAAM,yCAAyC,CAAC;AACrF,OAAO,KAAK,uBAAuB,MAAM,uCAAuC,CAAC;AACjF,OAAO,KAAK,sBAAsB,MAAM,sCAAsC,CAAC;AAC/E,OAAO,KAAK,sBAAsB,MAAM,sCAAsC,CAAC;AAC/E,OAAO,KAAK,oBAAoB,MAAM,oCAAoC,CAAC;AAC3E,OAAO,KAAK,2BAA2B,MAAM,2CAA2C,CAAC;AACzF,OAAO,KAAK,mBAAmB,MAAM,mCAAmC,CAAC;AACzE,OAAO,KAAK,kBAAkB,MAAM,kCAAkC,CAAC;AACvE,OAAO,KAAK,qBAAqB,MAAM,qCAAqC,CAAC;AAC7E,OAAO,KAAK,oBAAoB,MAAM,oCAAoC,CAAC;AAC3E,OAAO,KAAK,wBAAwB,MAAM,wCAAwC,CAAC;AACnF,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../lib/lexicons/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,uBAAuB,MAAM,uCAAuC,CAAC;AACjF,OAAO,KAAK,yBAAyB,MAAM,yCAAyC,CAAC;AACrF,OAAO,KAAK,uBAAuB,MAAM,uCAAuC,CAAC;AACjF,OAAO,KAAK,sBAAsB,MAAM,sCAAsC,CAAC;AAC/E,OAAO,KAAK,sBAAsB,MAAM,sCAAsC,CAAC;AAC/E,OAAO,KAAK,oBAAoB,MAAM,oCAAoC,CAAC;AAC3E,OAAO,KAAK,2BAA2B,MAAM,2CAA2C,CAAC;AACzF,OAAO,KAAK,mBAAmB,MAAM,mCAAmC,CAAC;AACzE,OAAO,KAAK,kBAAkB,MAAM,kCAAkC,CAAC;AACvE,OAAO,KAAK,qBAAqB,MAAM,qCAAqC,CAAC;AAC7E,OAAO,KAAK,oBAAoB,MAAM,oCAAoC,CAAC;AAC3E,OAAO,KAAK,wBAAwB,MAAM,wCAAwC,CAAC;AACnF,OAAO,KAAK,qBAAqB,MAAM,qCAAqC,CAAC;AAC7E,OAAO,KAAK,qBAAqB,MAAM,qCAAqC,CAAC;AAC7E,OAAO,KAAK,iBAAiB,MAAM,iCAAiC,CAAC;AACrE,OAAO,KAAK,oBAAoB,MAAM,oCAAoC,CAAC;AAC3E,OAAO,KAAK,gBAAgB,MAAM,+BAA+B,CAAC;AAClE,OAAO,KAAK,mBAAmB,MAAM,kCAAkC,CAAC;AACxE,OAAO,KAAK,qBAAqB,MAAM,qCAAqC,CAAC;AAC7E,OAAO,KAAK,aAAa,MAAM,4BAA4B,CAAC"}
|
|
@@ -1,67 +1,9 @@
|
|
|
1
1
|
import * as v from '@atcute/lexicons/validations';
|
|
2
|
-
import * as BlogPcktBlockBlockquote from './block/blockquote.js';
|
|
3
|
-
import * as BlogPcktBlockBlueskyEmbed from './block/blueskyEmbed.js';
|
|
4
|
-
import * as BlogPcktBlockBulletList from './block/bulletList.js';
|
|
5
|
-
import * as BlogPcktBlockCodeBlock from './block/codeBlock.js';
|
|
6
|
-
import * as BlogPcktBlockHeading from './block/heading.js';
|
|
7
|
-
import * as BlogPcktBlockHorizontalRule from './block/horizontalRule.js';
|
|
8
|
-
import * as BlogPcktBlockImage from './block/image.js';
|
|
9
|
-
import * as BlogPcktBlockListItem from './block/listItem.js';
|
|
10
|
-
import * as BlogPcktBlockOrderedList from './block/orderedList.js';
|
|
11
|
-
import * as BlogPcktBlockParagraph from './block/paragraph.js';
|
|
12
|
-
import * as BlogPcktBlockTaskItem from './block/taskItem.js';
|
|
13
|
-
import * as BlogPcktBlockTaskList from './block/taskList.js';
|
|
14
2
|
import * as ComAtprotoRepoStrongRef from '@atcute/atproto/types/repo/strongRef';
|
|
15
3
|
declare const _mainSchema: v.RecordSchema<v.ObjectSchema<{
|
|
16
4
|
$type: v.LiteralSchema<"blog.pckt.document">;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
*/
|
|
20
|
-
readonly blocks: v.ArraySchema<v.VariantSchema<readonly [BlogPcktBlockBlockquote.mainSchema, BlogPcktBlockBlueskyEmbed.mainSchema, BlogPcktBlockBulletList.mainSchema, BlogPcktBlockCodeBlock.mainSchema, BlogPcktBlockHeading.mainSchema, BlogPcktBlockHorizontalRule.mainSchema, BlogPcktBlockImage.mainSchema, BlogPcktBlockListItem.mainSchema, BlogPcktBlockOrderedList.mainSchema, BlogPcktBlockParagraph.mainSchema, BlogPcktBlockTaskItem.mainSchema, BlogPcktBlockTaskList.mainSchema], boolean>>;
|
|
21
|
-
/**
|
|
22
|
-
* Plain text representation of the document content for search and preview
|
|
23
|
-
* @maxLength 100000
|
|
24
|
-
* @maxGraphemes 50000
|
|
25
|
-
*/
|
|
26
|
-
bodyPlain: v.OptionalSchema<v.SchemaWithConstraint<v.StringSchema<string>, readonly [v.StringLengthConstraint<0, 100000>, v.StringGraphemesConstraint<0, 50000>]>, undefined>;
|
|
27
|
-
/**
|
|
28
|
-
* Optional cover/featured image (10MB max)
|
|
29
|
-
* @accept image/*
|
|
30
|
-
* @maxSize 10000000
|
|
31
|
-
*/
|
|
32
|
-
cover: v.OptionalSchema<v.BlobSchema, undefined>;
|
|
33
|
-
/**
|
|
34
|
-
* Blob references for images used within the document content
|
|
35
|
-
*/
|
|
36
|
-
images: v.OptionalSchema<v.ArraySchema<v.BlobSchema>, undefined>;
|
|
37
|
-
/**
|
|
38
|
-
* Reference to the parent publication this document belongs to
|
|
39
|
-
*/
|
|
40
|
-
readonly publication: ComAtprotoRepoStrongRef.mainSchema;
|
|
41
|
-
/**
|
|
42
|
-
* Timestamp when the document was first published
|
|
43
|
-
*/
|
|
44
|
-
publishedAt: v.OptionalSchema<v.FormattedStringSchema<"datetime">, undefined>;
|
|
45
|
-
/**
|
|
46
|
-
* URL-friendly slug for the document (used to construct canonical URL)
|
|
47
|
-
* @maxLength 500
|
|
48
|
-
*/
|
|
49
|
-
slug: v.OptionalSchema<v.SchemaWithConstraint<v.StringSchema<string>, readonly [v.StringLengthConstraint<0, 500>]>, undefined>;
|
|
50
|
-
/**
|
|
51
|
-
* Optional tags for categorization and discovery
|
|
52
|
-
* @maxLength 20
|
|
53
|
-
*/
|
|
54
|
-
tags: v.OptionalSchema<v.SchemaWithConstraint<v.ArraySchema<v.SchemaWithConstraint<v.StringSchema<string>, readonly [v.StringLengthConstraint<0, 100>, v.StringGraphemesConstraint<0, 50>]>>, readonly [v.ArrayLengthConstraint<0, 20>]>, undefined>;
|
|
55
|
-
/**
|
|
56
|
-
* Document title/headline
|
|
57
|
-
* @maxLength 1280
|
|
58
|
-
* @maxGraphemes 128
|
|
59
|
-
*/
|
|
60
|
-
title: v.SchemaWithConstraint<v.StringSchema<string>, readonly [v.StringLengthConstraint<0, 1280>, v.StringGraphemesConstraint<0, 128>]>;
|
|
61
|
-
/**
|
|
62
|
-
* Timestamp when the document was last modified
|
|
63
|
-
*/
|
|
64
|
-
updatedAt: v.OptionalSchema<v.FormattedStringSchema<"datetime">, undefined>;
|
|
5
|
+
readonly document: ComAtprotoRepoStrongRef.mainSchema;
|
|
6
|
+
site: v.FormattedStringSchema<"uri">;
|
|
65
7
|
}>, v.FormattedStringSchema<"tid">>;
|
|
66
8
|
type main$schematype = typeof _mainSchema;
|
|
67
9
|
export interface mainSchema extends main$schematype {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"document.d.ts","sourceRoot":"","sources":["../../../../../lib/lexicons/types/blog/pckt/document.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAElD,OAAO,KAAK,uBAAuB,MAAM,
|
|
1
|
+
{"version":3,"file":"document.d.ts","sourceRoot":"","sources":["../../../../../lib/lexicons/types/blog/pckt/document.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAElD,OAAO,KAAK,uBAAuB,MAAM,sCAAsC,CAAC;AAEhF,QAAA,MAAM,WAAW;;;;mCAShB,CAAC;AAEF,KAAK,eAAe,GAAG,OAAO,WAAW,CAAC;AAE1C,MAAM,WAAW,UAAW,SAAQ,eAAe;CAAG;AAEtD,eAAO,MAAM,UAAU,YAA4B,CAAC;AAEpD,MAAM,WAAW,IAAK,SAAQ,CAAC,CAAC,UAAU,CAAC,OAAO,UAAU,CAAC;CAAG;AAEhE,OAAO,QAAQ,0BAA0B,CAAC,CAAC;IAC1C,UAAU,OAAO;QAChB,oBAAoB,EAAE,UAAU,CAAC;KACjC;CACD"}
|
|
@@ -1,101 +1,13 @@
|
|
|
1
1
|
import * as v from '@atcute/lexicons/validations';
|
|
2
|
-
import * as BlogPcktBlockBlockquote from './block/blockquote.js';
|
|
3
|
-
import * as BlogPcktBlockBlueskyEmbed from './block/blueskyEmbed.js';
|
|
4
|
-
import * as BlogPcktBlockBulletList from './block/bulletList.js';
|
|
5
|
-
import * as BlogPcktBlockCodeBlock from './block/codeBlock.js';
|
|
6
|
-
import * as BlogPcktBlockHeading from './block/heading.js';
|
|
7
|
-
import * as BlogPcktBlockHorizontalRule from './block/horizontalRule.js';
|
|
8
|
-
import * as BlogPcktBlockImage from './block/image.js';
|
|
9
|
-
import * as BlogPcktBlockListItem from './block/listItem.js';
|
|
10
|
-
import * as BlogPcktBlockOrderedList from './block/orderedList.js';
|
|
11
|
-
import * as BlogPcktBlockParagraph from './block/paragraph.js';
|
|
12
|
-
import * as BlogPcktBlockTaskItem from './block/taskItem.js';
|
|
13
|
-
import * as BlogPcktBlockTaskList from './block/taskList.js';
|
|
14
2
|
import * as ComAtprotoRepoStrongRef from '@atcute/atproto/types/repo/strongRef';
|
|
15
3
|
const _mainSchema = /*#__PURE__*/ v.record(
|
|
16
4
|
/*#__PURE__*/ v.tidString(),
|
|
17
5
|
/*#__PURE__*/ v.object({
|
|
18
6
|
$type: /*#__PURE__*/ v.literal('blog.pckt.document'),
|
|
19
|
-
|
|
20
|
-
* Structured content blocks composing the document body
|
|
21
|
-
*/
|
|
22
|
-
get blocks() {
|
|
23
|
-
return /*#__PURE__*/ v.array(
|
|
24
|
-
/*#__PURE__*/ v.variant([
|
|
25
|
-
BlogPcktBlockBlockquote.mainSchema,
|
|
26
|
-
BlogPcktBlockBlueskyEmbed.mainSchema,
|
|
27
|
-
BlogPcktBlockBulletList.mainSchema,
|
|
28
|
-
BlogPcktBlockCodeBlock.mainSchema,
|
|
29
|
-
BlogPcktBlockHeading.mainSchema,
|
|
30
|
-
BlogPcktBlockHorizontalRule.mainSchema,
|
|
31
|
-
BlogPcktBlockImage.mainSchema,
|
|
32
|
-
BlogPcktBlockListItem.mainSchema,
|
|
33
|
-
BlogPcktBlockOrderedList.mainSchema,
|
|
34
|
-
BlogPcktBlockParagraph.mainSchema,
|
|
35
|
-
BlogPcktBlockTaskItem.mainSchema,
|
|
36
|
-
BlogPcktBlockTaskList.mainSchema,
|
|
37
|
-
]));
|
|
38
|
-
},
|
|
39
|
-
/**
|
|
40
|
-
* Plain text representation of the document content for search and preview
|
|
41
|
-
* @maxLength 100000
|
|
42
|
-
* @maxGraphemes 50000
|
|
43
|
-
*/
|
|
44
|
-
bodyPlain: /*#__PURE__*/ v.optional(
|
|
45
|
-
/*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [
|
|
46
|
-
/*#__PURE__*/ v.stringLength(0, 100000),
|
|
47
|
-
/*#__PURE__*/ v.stringGraphemes(0, 50000),
|
|
48
|
-
])),
|
|
49
|
-
/**
|
|
50
|
-
* Optional cover/featured image (10MB max)
|
|
51
|
-
* @accept image/*
|
|
52
|
-
* @maxSize 10000000
|
|
53
|
-
*/
|
|
54
|
-
cover: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.blob()),
|
|
55
|
-
/**
|
|
56
|
-
* Blob references for images used within the document content
|
|
57
|
-
*/
|
|
58
|
-
images: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(/*#__PURE__*/ v.blob())),
|
|
59
|
-
/**
|
|
60
|
-
* Reference to the parent publication this document belongs to
|
|
61
|
-
*/
|
|
62
|
-
get publication() {
|
|
7
|
+
get document() {
|
|
63
8
|
return ComAtprotoRepoStrongRef.mainSchema;
|
|
64
9
|
},
|
|
65
|
-
|
|
66
|
-
* Timestamp when the document was first published
|
|
67
|
-
*/
|
|
68
|
-
publishedAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()),
|
|
69
|
-
/**
|
|
70
|
-
* URL-friendly slug for the document (used to construct canonical URL)
|
|
71
|
-
* @maxLength 500
|
|
72
|
-
*/
|
|
73
|
-
slug: /*#__PURE__*/ v.optional(
|
|
74
|
-
/*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [/*#__PURE__*/ v.stringLength(0, 500)])),
|
|
75
|
-
/**
|
|
76
|
-
* Optional tags for categorization and discovery
|
|
77
|
-
* @maxLength 20
|
|
78
|
-
*/
|
|
79
|
-
tags: /*#__PURE__*/ v.optional(
|
|
80
|
-
/*#__PURE__*/ v.constrain(
|
|
81
|
-
/*#__PURE__*/ v.array(
|
|
82
|
-
/*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [
|
|
83
|
-
/*#__PURE__*/ v.stringLength(0, 100),
|
|
84
|
-
/*#__PURE__*/ v.stringGraphemes(0, 50),
|
|
85
|
-
])), [/*#__PURE__*/ v.arrayLength(0, 20)])),
|
|
86
|
-
/**
|
|
87
|
-
* Document title/headline
|
|
88
|
-
* @maxLength 1280
|
|
89
|
-
* @maxGraphemes 128
|
|
90
|
-
*/
|
|
91
|
-
title: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [
|
|
92
|
-
/*#__PURE__*/ v.stringLength(0, 1280),
|
|
93
|
-
/*#__PURE__*/ v.stringGraphemes(0, 128),
|
|
94
|
-
]),
|
|
95
|
-
/**
|
|
96
|
-
* Timestamp when the document was last modified
|
|
97
|
-
*/
|
|
98
|
-
updatedAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()),
|
|
10
|
+
site: /*#__PURE__*/ v.genericUriString(),
|
|
99
11
|
}));
|
|
100
12
|
export const mainSchema = _mainSchema;
|
|
101
13
|
//# sourceMappingURL=document.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"document.js","sourceRoot":"","sources":["../../../../../lib/lexicons/types/blog/pckt/document.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAElD,OAAO,KAAK,uBAAuB,MAAM,
|
|
1
|
+
{"version":3,"file":"document.js","sourceRoot":"","sources":["../../../../../lib/lexicons/types/blog/pckt/document.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAElD,OAAO,KAAK,uBAAuB,MAAM,sCAAsC,CAAC;AAEhF,MAAM,WAAW,GAAG,aAAa,CAAC,CAAC,CAAC,MAAM;AACzC,aAAa,CAAC,CAAC,CAAC,SAAS,EAAE;AAC3B,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;IACtB,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,oBAAoB,CAAC;IACpD,IAAI,QAAQ,GAAG;QACd,OAAO,uBAAuB,CAAC,UAAU,CAAC;IAAA,CAC1C;IACD,IAAI,EAAE,aAAa,CAAC,CAAC,CAAC,gBAAgB,EAAE;CACxC,CAAC,CACF,CAAC;AAMF,MAAM,CAAC,MAAM,UAAU,GAAG,WAAyB,CAAC"}
|
|
@@ -1,77 +1,15 @@
|
|
|
1
1
|
import * as v from '@atcute/lexicons/validations';
|
|
2
|
-
import * as
|
|
2
|
+
import * as ComAtprotoRepoStrongRef from '@atcute/atproto/types/repo/strongRef';
|
|
3
3
|
declare const _mainSchema: v.RecordSchema<v.ObjectSchema<{
|
|
4
4
|
$type: v.LiteralSchema<"blog.pckt.publication">;
|
|
5
|
-
|
|
6
|
-
* Base URL path for the publication (e.g., https://blog.pckt.blog)
|
|
7
|
-
* @maxLength 2000
|
|
8
|
-
*/
|
|
9
|
-
basePath: v.SchemaWithConstraint<v.FormattedStringSchema<"uri">, readonly [v.StringLengthConstraint<0, 2000>]>;
|
|
10
|
-
/**
|
|
11
|
-
* Timestamp when the publication was first created
|
|
12
|
-
*/
|
|
13
|
-
createdAt: v.FormattedStringSchema<"datetime">;
|
|
14
|
-
/**
|
|
15
|
-
* Publication description or tagline
|
|
16
|
-
* @maxLength 2000
|
|
17
|
-
* @maxGraphemes 500
|
|
18
|
-
*/
|
|
19
|
-
description: v.OptionalSchema<v.SchemaWithConstraint<v.StringSchema<string>, readonly [v.StringLengthConstraint<0, 2000>, v.StringGraphemesConstraint<0, 500>]>, undefined>;
|
|
20
|
-
/**
|
|
21
|
-
* Extension objects (open union) for additional features
|
|
22
|
-
* @maxLength 10
|
|
23
|
-
*/
|
|
24
|
-
readonly extensions: v.OptionalSchema<v.SchemaWithConstraint<v.ArraySchema<v.VariantSchema<readonly [], boolean>>, readonly [v.ArrayLengthConstraint<0, 10>]>, undefined>;
|
|
25
|
-
/**
|
|
26
|
-
* Publication icon/avatar image
|
|
27
|
-
* @accept image/png, image/jpeg, image/webp, image/gif
|
|
28
|
-
* @maxSize 500000
|
|
29
|
-
*/
|
|
30
|
-
icon: v.OptionalSchema<v.BlobSchema, undefined>;
|
|
31
|
-
/**
|
|
32
|
-
* Publication name/title
|
|
33
|
-
* @maxLength 200
|
|
34
|
-
* @maxGraphemes 100
|
|
35
|
-
*/
|
|
36
|
-
name: v.SchemaWithConstraint<v.StringSchema<string>, readonly [v.StringLengthConstraint<0, 200>, v.StringGraphemesConstraint<0, 100>]>;
|
|
37
|
-
/**
|
|
38
|
-
* Publication preferences and settings
|
|
39
|
-
*/
|
|
40
|
-
readonly preferences: v.OptionalSchema<preferencesSchema, undefined>;
|
|
41
|
-
/**
|
|
42
|
-
* Theme configuration as an open union; accepts blog.pckt.theme and future types.
|
|
43
|
-
*/
|
|
44
|
-
readonly theme: v.OptionalSchema<v.VariantSchema<readonly [BlogPcktTheme.mainSchema], boolean>, undefined>;
|
|
45
|
-
/**
|
|
46
|
-
* Timestamp when the publication was last updated (optional)
|
|
47
|
-
*/
|
|
48
|
-
updatedAt: v.OptionalSchema<v.FormattedStringSchema<"datetime">, undefined>;
|
|
5
|
+
readonly publication: ComAtprotoRepoStrongRef.mainSchema;
|
|
49
6
|
}>, v.FormattedStringSchema<"tid">>;
|
|
50
|
-
declare const _preferencesSchema: v.ObjectSchema<{
|
|
51
|
-
$type: v.OptionalSchema<v.LiteralSchema<"blog.pckt.publication#preferences">, undefined>;
|
|
52
|
-
/**
|
|
53
|
-
* Whether to display credit line on the publication
|
|
54
|
-
* @default true
|
|
55
|
-
*/
|
|
56
|
-
showCredit: v.OptionalSchema<v.BooleanSchema, true>;
|
|
57
|
-
/**
|
|
58
|
-
* Whether documents from this publication should appear in public discover feeds
|
|
59
|
-
* @default true
|
|
60
|
-
*/
|
|
61
|
-
showInDiscover: v.OptionalSchema<v.BooleanSchema, true>;
|
|
62
|
-
}>;
|
|
63
7
|
type main$schematype = typeof _mainSchema;
|
|
64
|
-
type preferences$schematype = typeof _preferencesSchema;
|
|
65
8
|
export interface mainSchema extends main$schematype {
|
|
66
9
|
}
|
|
67
|
-
export interface preferencesSchema extends preferences$schematype {
|
|
68
|
-
}
|
|
69
10
|
export declare const mainSchema: mainSchema;
|
|
70
|
-
export declare const preferencesSchema: preferencesSchema;
|
|
71
11
|
export interface Main extends v.InferInput<typeof mainSchema> {
|
|
72
12
|
}
|
|
73
|
-
export interface Preferences extends v.InferInput<typeof preferencesSchema> {
|
|
74
|
-
}
|
|
75
13
|
declare module '@atcute/lexicons/ambient' {
|
|
76
14
|
interface Records {
|
|
77
15
|
'blog.pckt.publication': mainSchema;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"publication.d.ts","sourceRoot":"","sources":["../../../../../lib/lexicons/types/blog/pckt/publication.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAElD,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"publication.d.ts","sourceRoot":"","sources":["../../../../../lib/lexicons/types/blog/pckt/publication.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAElD,OAAO,KAAK,uBAAuB,MAAM,sCAAsC,CAAC;AAEhF,QAAA,MAAM,WAAW;;;mCAQhB,CAAC;AAEF,KAAK,eAAe,GAAG,OAAO,WAAW,CAAC;AAE1C,MAAM,WAAW,UAAW,SAAQ,eAAe;CAAG;AAEtD,eAAO,MAAM,UAAU,YAA4B,CAAC;AAEpD,MAAM,WAAW,IAAK,SAAQ,CAAC,CAAC,UAAU,CAAC,OAAO,UAAU,CAAC;CAAG;AAEhE,OAAO,QAAQ,0BAA0B,CAAC,CAAC;IAC1C,UAAU,OAAO;QAChB,uBAAuB,EAAE,UAAU,CAAC;KACpC;CACD"}
|
|
@@ -1,85 +1,12 @@
|
|
|
1
1
|
import * as v from '@atcute/lexicons/validations';
|
|
2
|
-
import * as
|
|
2
|
+
import * as ComAtprotoRepoStrongRef from '@atcute/atproto/types/repo/strongRef';
|
|
3
3
|
const _mainSchema = /*#__PURE__*/ v.record(
|
|
4
4
|
/*#__PURE__*/ v.tidString(),
|
|
5
5
|
/*#__PURE__*/ v.object({
|
|
6
6
|
$type: /*#__PURE__*/ v.literal('blog.pckt.publication'),
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
* @maxLength 2000
|
|
10
|
-
*/
|
|
11
|
-
basePath: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.genericUriString(), [
|
|
12
|
-
/*#__PURE__*/ v.stringLength(0, 2000),
|
|
13
|
-
]),
|
|
14
|
-
/**
|
|
15
|
-
* Timestamp when the publication was first created
|
|
16
|
-
*/
|
|
17
|
-
createdAt: /*#__PURE__*/ v.datetimeString(),
|
|
18
|
-
/**
|
|
19
|
-
* Publication description or tagline
|
|
20
|
-
* @maxLength 2000
|
|
21
|
-
* @maxGraphemes 500
|
|
22
|
-
*/
|
|
23
|
-
description: /*#__PURE__*/ v.optional(
|
|
24
|
-
/*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [
|
|
25
|
-
/*#__PURE__*/ v.stringLength(0, 2000),
|
|
26
|
-
/*#__PURE__*/ v.stringGraphemes(0, 500),
|
|
27
|
-
])),
|
|
28
|
-
/**
|
|
29
|
-
* Extension objects (open union) for additional features
|
|
30
|
-
* @maxLength 10
|
|
31
|
-
*/
|
|
32
|
-
get extensions() {
|
|
33
|
-
return /*#__PURE__*/ v.optional(
|
|
34
|
-
/*#__PURE__*/ v.constrain(/*#__PURE__*/ v.array(/*#__PURE__*/ v.variant([])), [
|
|
35
|
-
/*#__PURE__*/ v.arrayLength(0, 10),
|
|
36
|
-
]));
|
|
7
|
+
get publication() {
|
|
8
|
+
return ComAtprotoRepoStrongRef.mainSchema;
|
|
37
9
|
},
|
|
38
|
-
/**
|
|
39
|
-
* Publication icon/avatar image
|
|
40
|
-
* @accept image/png, image/jpeg, image/webp, image/gif
|
|
41
|
-
* @maxSize 500000
|
|
42
|
-
*/
|
|
43
|
-
icon: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.blob()),
|
|
44
|
-
/**
|
|
45
|
-
* Publication name/title
|
|
46
|
-
* @maxLength 200
|
|
47
|
-
* @maxGraphemes 100
|
|
48
|
-
*/
|
|
49
|
-
name: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [
|
|
50
|
-
/*#__PURE__*/ v.stringLength(0, 200),
|
|
51
|
-
/*#__PURE__*/ v.stringGraphemes(0, 100),
|
|
52
|
-
]),
|
|
53
|
-
/**
|
|
54
|
-
* Publication preferences and settings
|
|
55
|
-
*/
|
|
56
|
-
get preferences() {
|
|
57
|
-
return /*#__PURE__*/ v.optional(preferencesSchema);
|
|
58
|
-
},
|
|
59
|
-
/**
|
|
60
|
-
* Theme configuration as an open union; accepts blog.pckt.theme and future types.
|
|
61
|
-
*/
|
|
62
|
-
get theme() {
|
|
63
|
-
return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.variant([BlogPcktTheme.mainSchema]));
|
|
64
|
-
},
|
|
65
|
-
/**
|
|
66
|
-
* Timestamp when the publication was last updated (optional)
|
|
67
|
-
*/
|
|
68
|
-
updatedAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()),
|
|
69
10
|
}));
|
|
70
|
-
const _preferencesSchema = /*#__PURE__*/ v.object({
|
|
71
|
-
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('blog.pckt.publication#preferences')),
|
|
72
|
-
/**
|
|
73
|
-
* Whether to display credit line on the publication
|
|
74
|
-
* @default true
|
|
75
|
-
*/
|
|
76
|
-
showCredit: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean(), true),
|
|
77
|
-
/**
|
|
78
|
-
* Whether documents from this publication should appear in public discover feeds
|
|
79
|
-
* @default true
|
|
80
|
-
*/
|
|
81
|
-
showInDiscover: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean(), true),
|
|
82
|
-
});
|
|
83
11
|
export const mainSchema = _mainSchema;
|
|
84
|
-
export const preferencesSchema = _preferencesSchema;
|
|
85
12
|
//# sourceMappingURL=publication.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"publication.js","sourceRoot":"","sources":["../../../../../lib/lexicons/types/blog/pckt/publication.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAElD,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"publication.js","sourceRoot":"","sources":["../../../../../lib/lexicons/types/blog/pckt/publication.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAElD,OAAO,KAAK,uBAAuB,MAAM,sCAAsC,CAAC;AAEhF,MAAM,WAAW,GAAG,aAAa,CAAC,CAAC,CAAC,MAAM;AACzC,aAAa,CAAC,CAAC,CAAC,SAAS,EAAE;AAC3B,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;IACtB,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,uBAAuB,CAAC;IACvD,IAAI,WAAW,GAAG;QACjB,OAAO,uBAAuB,CAAC,UAAU,CAAC;IAAA,CAC1C;CACD,CAAC,CACF,CAAC;AAMF,MAAM,CAAC,MAAM,UAAU,GAAG,WAAyB,CAAC"}
|
package/lib/lexicons/index.ts
CHANGED
|
@@ -10,7 +10,6 @@ export * as BlogPcktBlockImage from './types/blog/pckt/block/image.js';
|
|
|
10
10
|
export * as BlogPcktBlockListItem from './types/blog/pckt/block/listItem.js';
|
|
11
11
|
export * as BlogPcktBlockMention from './types/blog/pckt/block/mention.js';
|
|
12
12
|
export * as BlogPcktBlockOrderedList from './types/blog/pckt/block/orderedList.js';
|
|
13
|
-
export * as BlogPcktBlockParagraph from './types/blog/pckt/block/paragraph.js';
|
|
14
13
|
export * as BlogPcktBlockTaskItem from './types/blog/pckt/block/taskItem.js';
|
|
15
14
|
export * as BlogPcktBlockTaskList from './types/blog/pckt/block/taskList.js';
|
|
16
15
|
export * as BlogPcktBlockText from './types/blog/pckt/block/text.js';
|
|
@@ -1,111 +1,16 @@
|
|
|
1
1
|
import type {} from '@atcute/lexicons';
|
|
2
2
|
import * as v from '@atcute/lexicons/validations';
|
|
3
3
|
import type {} from '@atcute/lexicons/ambient';
|
|
4
|
-
import * as BlogPcktBlockBlockquote from './block/blockquote.js';
|
|
5
|
-
import * as BlogPcktBlockBlueskyEmbed from './block/blueskyEmbed.js';
|
|
6
|
-
import * as BlogPcktBlockBulletList from './block/bulletList.js';
|
|
7
|
-
import * as BlogPcktBlockCodeBlock from './block/codeBlock.js';
|
|
8
|
-
import * as BlogPcktBlockHeading from './block/heading.js';
|
|
9
|
-
import * as BlogPcktBlockHorizontalRule from './block/horizontalRule.js';
|
|
10
|
-
import * as BlogPcktBlockImage from './block/image.js';
|
|
11
|
-
import * as BlogPcktBlockListItem from './block/listItem.js';
|
|
12
|
-
import * as BlogPcktBlockOrderedList from './block/orderedList.js';
|
|
13
|
-
import * as BlogPcktBlockParagraph from './block/paragraph.js';
|
|
14
|
-
import * as BlogPcktBlockTaskItem from './block/taskItem.js';
|
|
15
|
-
import * as BlogPcktBlockTaskList from './block/taskList.js';
|
|
16
4
|
import * as ComAtprotoRepoStrongRef from '@atcute/atproto/types/repo/strongRef';
|
|
17
5
|
|
|
18
6
|
const _mainSchema = /*#__PURE__*/ v.record(
|
|
19
7
|
/*#__PURE__*/ v.tidString(),
|
|
20
8
|
/*#__PURE__*/ v.object({
|
|
21
9
|
$type: /*#__PURE__*/ v.literal('blog.pckt.document'),
|
|
22
|
-
|
|
23
|
-
* Structured content blocks composing the document body
|
|
24
|
-
*/
|
|
25
|
-
get blocks() {
|
|
26
|
-
return /*#__PURE__*/ v.array(
|
|
27
|
-
/*#__PURE__*/ v.variant([
|
|
28
|
-
BlogPcktBlockBlockquote.mainSchema,
|
|
29
|
-
BlogPcktBlockBlueskyEmbed.mainSchema,
|
|
30
|
-
BlogPcktBlockBulletList.mainSchema,
|
|
31
|
-
BlogPcktBlockCodeBlock.mainSchema,
|
|
32
|
-
BlogPcktBlockHeading.mainSchema,
|
|
33
|
-
BlogPcktBlockHorizontalRule.mainSchema,
|
|
34
|
-
BlogPcktBlockImage.mainSchema,
|
|
35
|
-
BlogPcktBlockListItem.mainSchema,
|
|
36
|
-
BlogPcktBlockOrderedList.mainSchema,
|
|
37
|
-
BlogPcktBlockParagraph.mainSchema,
|
|
38
|
-
BlogPcktBlockTaskItem.mainSchema,
|
|
39
|
-
BlogPcktBlockTaskList.mainSchema,
|
|
40
|
-
]),
|
|
41
|
-
);
|
|
42
|
-
},
|
|
43
|
-
/**
|
|
44
|
-
* Plain text representation of the document content for search and preview
|
|
45
|
-
* @maxLength 100000
|
|
46
|
-
* @maxGraphemes 50000
|
|
47
|
-
*/
|
|
48
|
-
bodyPlain: /*#__PURE__*/ v.optional(
|
|
49
|
-
/*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [
|
|
50
|
-
/*#__PURE__*/ v.stringLength(0, 100000),
|
|
51
|
-
/*#__PURE__*/ v.stringGraphemes(0, 50000),
|
|
52
|
-
]),
|
|
53
|
-
),
|
|
54
|
-
/**
|
|
55
|
-
* Optional cover/featured image (10MB max)
|
|
56
|
-
* @accept image/*
|
|
57
|
-
* @maxSize 10000000
|
|
58
|
-
*/
|
|
59
|
-
cover: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.blob()),
|
|
60
|
-
/**
|
|
61
|
-
* Blob references for images used within the document content
|
|
62
|
-
*/
|
|
63
|
-
images: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(/*#__PURE__*/ v.blob())),
|
|
64
|
-
/**
|
|
65
|
-
* Reference to the parent publication this document belongs to
|
|
66
|
-
*/
|
|
67
|
-
get publication() {
|
|
10
|
+
get document() {
|
|
68
11
|
return ComAtprotoRepoStrongRef.mainSchema;
|
|
69
12
|
},
|
|
70
|
-
|
|
71
|
-
* Timestamp when the document was first published
|
|
72
|
-
*/
|
|
73
|
-
publishedAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()),
|
|
74
|
-
/**
|
|
75
|
-
* URL-friendly slug for the document (used to construct canonical URL)
|
|
76
|
-
* @maxLength 500
|
|
77
|
-
*/
|
|
78
|
-
slug: /*#__PURE__*/ v.optional(
|
|
79
|
-
/*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [/*#__PURE__*/ v.stringLength(0, 500)]),
|
|
80
|
-
),
|
|
81
|
-
/**
|
|
82
|
-
* Optional tags for categorization and discovery
|
|
83
|
-
* @maxLength 20
|
|
84
|
-
*/
|
|
85
|
-
tags: /*#__PURE__*/ v.optional(
|
|
86
|
-
/*#__PURE__*/ v.constrain(
|
|
87
|
-
/*#__PURE__*/ v.array(
|
|
88
|
-
/*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [
|
|
89
|
-
/*#__PURE__*/ v.stringLength(0, 100),
|
|
90
|
-
/*#__PURE__*/ v.stringGraphemes(0, 50),
|
|
91
|
-
]),
|
|
92
|
-
),
|
|
93
|
-
[/*#__PURE__*/ v.arrayLength(0, 20)],
|
|
94
|
-
),
|
|
95
|
-
),
|
|
96
|
-
/**
|
|
97
|
-
* Document title/headline
|
|
98
|
-
* @maxLength 1280
|
|
99
|
-
* @maxGraphemes 128
|
|
100
|
-
*/
|
|
101
|
-
title: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [
|
|
102
|
-
/*#__PURE__*/ v.stringLength(0, 1280),
|
|
103
|
-
/*#__PURE__*/ v.stringGraphemes(0, 128),
|
|
104
|
-
]),
|
|
105
|
-
/**
|
|
106
|
-
* Timestamp when the document was last modified
|
|
107
|
-
*/
|
|
108
|
-
updatedAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()),
|
|
13
|
+
site: /*#__PURE__*/ v.genericUriString(),
|
|
109
14
|
}),
|
|
110
15
|
);
|
|
111
16
|
|
|
@@ -1,103 +1,25 @@
|
|
|
1
1
|
import type {} from '@atcute/lexicons';
|
|
2
2
|
import * as v from '@atcute/lexicons/validations';
|
|
3
3
|
import type {} from '@atcute/lexicons/ambient';
|
|
4
|
-
import * as
|
|
4
|
+
import * as ComAtprotoRepoStrongRef from '@atcute/atproto/types/repo/strongRef';
|
|
5
5
|
|
|
6
6
|
const _mainSchema = /*#__PURE__*/ v.record(
|
|
7
7
|
/*#__PURE__*/ v.tidString(),
|
|
8
8
|
/*#__PURE__*/ v.object({
|
|
9
9
|
$type: /*#__PURE__*/ v.literal('blog.pckt.publication'),
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
* @maxLength 2000
|
|
13
|
-
*/
|
|
14
|
-
basePath: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.genericUriString(), [
|
|
15
|
-
/*#__PURE__*/ v.stringLength(0, 2000),
|
|
16
|
-
]),
|
|
17
|
-
/**
|
|
18
|
-
* Timestamp when the publication was first created
|
|
19
|
-
*/
|
|
20
|
-
createdAt: /*#__PURE__*/ v.datetimeString(),
|
|
21
|
-
/**
|
|
22
|
-
* Publication description or tagline
|
|
23
|
-
* @maxLength 2000
|
|
24
|
-
* @maxGraphemes 500
|
|
25
|
-
*/
|
|
26
|
-
description: /*#__PURE__*/ v.optional(
|
|
27
|
-
/*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [
|
|
28
|
-
/*#__PURE__*/ v.stringLength(0, 2000),
|
|
29
|
-
/*#__PURE__*/ v.stringGraphemes(0, 500),
|
|
30
|
-
]),
|
|
31
|
-
),
|
|
32
|
-
/**
|
|
33
|
-
* Extension objects (open union) for additional features
|
|
34
|
-
* @maxLength 10
|
|
35
|
-
*/
|
|
36
|
-
get extensions() {
|
|
37
|
-
return /*#__PURE__*/ v.optional(
|
|
38
|
-
/*#__PURE__*/ v.constrain(/*#__PURE__*/ v.array(/*#__PURE__*/ v.variant([])), [
|
|
39
|
-
/*#__PURE__*/ v.arrayLength(0, 10),
|
|
40
|
-
]),
|
|
41
|
-
);
|
|
10
|
+
get publication() {
|
|
11
|
+
return ComAtprotoRepoStrongRef.mainSchema;
|
|
42
12
|
},
|
|
43
|
-
/**
|
|
44
|
-
* Publication icon/avatar image
|
|
45
|
-
* @accept image/png, image/jpeg, image/webp, image/gif
|
|
46
|
-
* @maxSize 500000
|
|
47
|
-
*/
|
|
48
|
-
icon: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.blob()),
|
|
49
|
-
/**
|
|
50
|
-
* Publication name/title
|
|
51
|
-
* @maxLength 200
|
|
52
|
-
* @maxGraphemes 100
|
|
53
|
-
*/
|
|
54
|
-
name: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [
|
|
55
|
-
/*#__PURE__*/ v.stringLength(0, 200),
|
|
56
|
-
/*#__PURE__*/ v.stringGraphemes(0, 100),
|
|
57
|
-
]),
|
|
58
|
-
/**
|
|
59
|
-
* Publication preferences and settings
|
|
60
|
-
*/
|
|
61
|
-
get preferences() {
|
|
62
|
-
return /*#__PURE__*/ v.optional(preferencesSchema);
|
|
63
|
-
},
|
|
64
|
-
/**
|
|
65
|
-
* Theme configuration as an open union; accepts blog.pckt.theme and future types.
|
|
66
|
-
*/
|
|
67
|
-
get theme() {
|
|
68
|
-
return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.variant([BlogPcktTheme.mainSchema]));
|
|
69
|
-
},
|
|
70
|
-
/**
|
|
71
|
-
* Timestamp when the publication was last updated (optional)
|
|
72
|
-
*/
|
|
73
|
-
updatedAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()),
|
|
74
13
|
}),
|
|
75
14
|
);
|
|
76
|
-
const _preferencesSchema = /*#__PURE__*/ v.object({
|
|
77
|
-
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('blog.pckt.publication#preferences')),
|
|
78
|
-
/**
|
|
79
|
-
* Whether to display credit line on the publication
|
|
80
|
-
* @default true
|
|
81
|
-
*/
|
|
82
|
-
showCredit: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean(), true),
|
|
83
|
-
/**
|
|
84
|
-
* Whether documents from this publication should appear in public discover feeds
|
|
85
|
-
* @default true
|
|
86
|
-
*/
|
|
87
|
-
showInDiscover: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean(), true),
|
|
88
|
-
});
|
|
89
15
|
|
|
90
16
|
type main$schematype = typeof _mainSchema;
|
|
91
|
-
type preferences$schematype = typeof _preferencesSchema;
|
|
92
17
|
|
|
93
18
|
export interface mainSchema extends main$schematype {}
|
|
94
|
-
export interface preferencesSchema extends preferences$schematype {}
|
|
95
19
|
|
|
96
20
|
export const mainSchema = _mainSchema as mainSchema;
|
|
97
|
-
export const preferencesSchema = _preferencesSchema as preferencesSchema;
|
|
98
21
|
|
|
99
22
|
export interface Main extends v.InferInput<typeof mainSchema> {}
|
|
100
|
-
export interface Preferences extends v.InferInput<typeof preferencesSchema> {}
|
|
101
23
|
|
|
102
24
|
declare module '@atcute/lexicons/ambient' {
|
|
103
25
|
interface Records {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "module",
|
|
3
3
|
"name": "@atcute/pckt",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.3",
|
|
5
5
|
"description": "pckt (blog.pckt.*) schema definitions",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"atcute",
|
|
@@ -13,6 +13,9 @@
|
|
|
13
13
|
"url": "https://github.com/mary-ext/atcute",
|
|
14
14
|
"directory": "packages/definitions/pckt"
|
|
15
15
|
},
|
|
16
|
+
"publishConfig": {
|
|
17
|
+
"access": "public"
|
|
18
|
+
},
|
|
16
19
|
"files": [
|
|
17
20
|
"dist/",
|
|
18
21
|
"lib/",
|
|
@@ -24,11 +27,11 @@
|
|
|
24
27
|
"./types/*": "./dist/lexicons/types/blog/pckt/*.js"
|
|
25
28
|
},
|
|
26
29
|
"dependencies": {
|
|
27
|
-
"@atcute/atproto": "^3.1.
|
|
28
|
-
"@atcute/lexicons": "^1.2.
|
|
30
|
+
"@atcute/atproto": "^3.1.10",
|
|
31
|
+
"@atcute/lexicons": "^1.2.6"
|
|
29
32
|
},
|
|
30
33
|
"devDependencies": {
|
|
31
|
-
"@atcute/lex-cli": "^2.5.
|
|
34
|
+
"@atcute/lex-cli": "^2.5.2"
|
|
32
35
|
},
|
|
33
36
|
"atcute:lexicons": {
|
|
34
37
|
"mappings": {
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import * as v from '@atcute/lexicons/validations';
|
|
2
|
-
import * as BlogPcktBlockHardBreak from './hardBreak.js';
|
|
3
|
-
import * as BlogPcktBlockMention from './mention.js';
|
|
4
|
-
import * as BlogPcktBlockText from './text.js';
|
|
5
|
-
import * as BlogPcktRichtextFacet from '../richtext/facet.js';
|
|
6
|
-
declare const _mainSchema: v.ObjectSchema<{
|
|
7
|
-
$type: v.OptionalSchema<v.LiteralSchema<"blog.pckt.block.paragraph">, undefined>;
|
|
8
|
-
/**
|
|
9
|
-
* Array of inline content nodes (text, hard breaks, and mentions)
|
|
10
|
-
*/
|
|
11
|
-
readonly content: v.OptionalSchema<v.ArraySchema<v.VariantSchema<readonly [BlogPcktBlockHardBreak.mainSchema, BlogPcktBlockMention.mainSchema, BlogPcktBlockText.mainSchema], boolean>>, undefined>;
|
|
12
|
-
/**
|
|
13
|
-
* Facets for text formatting and features within this paragraph
|
|
14
|
-
*/
|
|
15
|
-
readonly facets: v.OptionalSchema<v.ArraySchema<BlogPcktRichtextFacet.mainSchema>, undefined>;
|
|
16
|
-
}>;
|
|
17
|
-
type main$schematype = typeof _mainSchema;
|
|
18
|
-
export interface mainSchema extends main$schematype {
|
|
19
|
-
}
|
|
20
|
-
export declare const mainSchema: mainSchema;
|
|
21
|
-
export interface Main extends v.InferInput<typeof mainSchema> {
|
|
22
|
-
}
|
|
23
|
-
export {};
|
|
24
|
-
//# sourceMappingURL=paragraph.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"paragraph.d.ts","sourceRoot":"","sources":["../../../../../../lib/lexicons/types/blog/pckt/block/paragraph.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAClD,OAAO,KAAK,sBAAsB,MAAM,gBAAgB,CAAC;AACzD,OAAO,KAAK,oBAAoB,MAAM,cAAc,CAAC;AACrD,OAAO,KAAK,iBAAiB,MAAM,WAAW,CAAC;AAC/C,OAAO,KAAK,qBAAqB,MAAM,sBAAsB,CAAC;AAE9D,QAAA,MAAM,WAAW;;IAEhB;;OAEG;;IAYH;;OAEG;;EAIF,CAAC;AAEH,KAAK,eAAe,GAAG,OAAO,WAAW,CAAC;AAE1C,MAAM,WAAW,UAAW,SAAQ,eAAe;CAAG;AAEtD,eAAO,MAAM,UAAU,YAA4B,CAAC;AAEpD,MAAM,WAAW,IAAK,SAAQ,CAAC,CAAC,UAAU,CAAC,OAAO,UAAU,CAAC;CAAG"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import * as v from '@atcute/lexicons/validations';
|
|
2
|
-
import * as BlogPcktBlockHardBreak from './hardBreak.js';
|
|
3
|
-
import * as BlogPcktBlockMention from './mention.js';
|
|
4
|
-
import * as BlogPcktBlockText from './text.js';
|
|
5
|
-
import * as BlogPcktRichtextFacet from '../richtext/facet.js';
|
|
6
|
-
const _mainSchema = /*#__PURE__*/ v.object({
|
|
7
|
-
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('blog.pckt.block.paragraph')),
|
|
8
|
-
/**
|
|
9
|
-
* Array of inline content nodes (text, hard breaks, and mentions)
|
|
10
|
-
*/
|
|
11
|
-
get content() {
|
|
12
|
-
return /*#__PURE__*/ v.optional(
|
|
13
|
-
/*#__PURE__*/ v.array(
|
|
14
|
-
/*#__PURE__*/ v.variant([
|
|
15
|
-
BlogPcktBlockHardBreak.mainSchema,
|
|
16
|
-
BlogPcktBlockMention.mainSchema,
|
|
17
|
-
BlogPcktBlockText.mainSchema,
|
|
18
|
-
])));
|
|
19
|
-
},
|
|
20
|
-
/**
|
|
21
|
-
* Facets for text formatting and features within this paragraph
|
|
22
|
-
*/
|
|
23
|
-
get facets() {
|
|
24
|
-
return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(BlogPcktRichtextFacet.mainSchema));
|
|
25
|
-
},
|
|
26
|
-
});
|
|
27
|
-
export const mainSchema = _mainSchema;
|
|
28
|
-
//# sourceMappingURL=paragraph.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"paragraph.js","sourceRoot":"","sources":["../../../../../../lib/lexicons/types/blog/pckt/block/paragraph.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAClD,OAAO,KAAK,sBAAsB,MAAM,gBAAgB,CAAC;AACzD,OAAO,KAAK,oBAAoB,MAAM,cAAc,CAAC;AACrD,OAAO,KAAK,iBAAiB,MAAM,WAAW,CAAC;AAC/C,OAAO,KAAK,qBAAqB,MAAM,sBAAsB,CAAC;AAE9D,MAAM,WAAW,GAAG,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;IAC1C,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,2BAA2B,CAAC,CAAC;IACrF;;OAEG;IACH,IAAI,OAAO,GAAG;QACb,OAAO,aAAa,CAAC,CAAC,CAAC,QAAQ;QAC9B,aAAa,CAAC,CAAC,CAAC,KAAK;QACpB,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC;YACvB,sBAAsB,CAAC,UAAU;YACjC,oBAAoB,CAAC,UAAU;YAC/B,iBAAiB,CAAC,UAAU;SAC5B,CAAC,CACF,CACD,CAAC;IAAA,CACF;IACD;;OAEG;IACH,IAAI,MAAM,GAAG;QACZ,OAAO,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,qBAAqB,CAAC,UAAU,CAAC,CAAC,CAAC;IAAA,CACzF;CACD,CAAC,CAAC;AAMH,MAAM,CAAC,MAAM,UAAU,GAAG,WAAyB,CAAC"}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import type {} from '@atcute/lexicons';
|
|
2
|
-
import * as v from '@atcute/lexicons/validations';
|
|
3
|
-
import * as BlogPcktBlockHardBreak from './hardBreak.js';
|
|
4
|
-
import * as BlogPcktBlockMention from './mention.js';
|
|
5
|
-
import * as BlogPcktBlockText from './text.js';
|
|
6
|
-
import * as BlogPcktRichtextFacet from '../richtext/facet.js';
|
|
7
|
-
|
|
8
|
-
const _mainSchema = /*#__PURE__*/ v.object({
|
|
9
|
-
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('blog.pckt.block.paragraph')),
|
|
10
|
-
/**
|
|
11
|
-
* Array of inline content nodes (text, hard breaks, and mentions)
|
|
12
|
-
*/
|
|
13
|
-
get content() {
|
|
14
|
-
return /*#__PURE__*/ v.optional(
|
|
15
|
-
/*#__PURE__*/ v.array(
|
|
16
|
-
/*#__PURE__*/ v.variant([
|
|
17
|
-
BlogPcktBlockHardBreak.mainSchema,
|
|
18
|
-
BlogPcktBlockMention.mainSchema,
|
|
19
|
-
BlogPcktBlockText.mainSchema,
|
|
20
|
-
]),
|
|
21
|
-
),
|
|
22
|
-
);
|
|
23
|
-
},
|
|
24
|
-
/**
|
|
25
|
-
* Facets for text formatting and features within this paragraph
|
|
26
|
-
*/
|
|
27
|
-
get facets() {
|
|
28
|
-
return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(BlogPcktRichtextFacet.mainSchema));
|
|
29
|
-
},
|
|
30
|
-
});
|
|
31
|
-
|
|
32
|
-
type main$schematype = typeof _mainSchema;
|
|
33
|
-
|
|
34
|
-
export interface mainSchema extends main$schematype {}
|
|
35
|
-
|
|
36
|
-
export const mainSchema = _mainSchema as mainSchema;
|
|
37
|
-
|
|
38
|
-
export interface Main extends v.InferInput<typeof mainSchema> {}
|