@pkcprotocol/pkc-js 0.0.131 → 0.0.133
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/README.md +17 -7
- package/dist/browser/clients/rpc-client/rpc-schema-util.d.ts +2 -0
- package/dist/browser/clients/rpc-client/schema.d.ts +24 -0
- package/dist/browser/community/schema.d.ts +193 -0
- package/dist/browser/community/schema.js +4 -0
- package/dist/browser/community/schema.js.map +1 -1
- package/dist/browser/errors.d.ts +9 -1
- package/dist/browser/errors.js +9 -1
- package/dist/browser/errors.js.map +1 -1
- package/dist/browser/generated-version.d.ts +1 -1
- package/dist/browser/generated-version.js +1 -1
- package/dist/browser/index-with-compile-cache.d.ts +32 -0
- package/dist/browser/index.d.ts +64 -0
- package/dist/browser/pages/schema.d.ts +44 -0
- package/dist/browser/pkc-error.d.ts +1 -1
- package/dist/browser/publications/comment/comment.d.ts +1 -0
- package/dist/browser/publications/comment/comment.js +2 -0
- package/dist/browser/publications/comment/comment.js.map +1 -1
- package/dist/browser/publications/comment/schema.d.ts +133 -1
- package/dist/browser/publications/comment/schema.js +21 -6
- package/dist/browser/publications/comment/schema.js.map +1 -1
- package/dist/browser/publications/comment/types.d.ts +2 -1
- package/dist/browser/publications/community-edit/schema.d.ts +8 -0
- package/dist/browser/pubsub-messages/schema.d.ts +37 -0
- package/dist/browser/rpc/src/lib/pkc-js/index.d.ts +32 -0
- package/dist/browser/rpc/src/schema.d.ts +192 -0
- package/dist/browser/runtime/node/community/db-handler.js +3 -2
- package/dist/browser/runtime/node/community/db-handler.js.map +1 -1
- package/dist/browser/runtime/node/community/local-community/editing.js +60 -7
- package/dist/browser/runtime/node/community/local-community/editing.js.map +1 -1
- package/dist/browser/runtime/node/community/local-community/publication-validation.js +41 -17
- package/dist/browser/runtime/node/community/local-community/publication-validation.js.map +1 -1
- package/dist/browser/runtime/node/polyfill.js +3 -1
- package/dist/browser/runtime/node/polyfill.js.map +1 -1
- package/dist/browser/schema/schema-util.d.ts +82 -0
- package/dist/browser/schema.d.ts +256 -0
- package/dist/browser/signer/signatures.js +18 -6
- package/dist/browser/signer/signatures.js.map +1 -1
- package/dist/browser/test/test-util.d.ts +40 -0
- package/dist/browser/version.js +1 -1
- package/dist/bundled/bundle-manifest.json +434 -211
- package/dist/bundled/challenges.js +1 -1
- package/dist/bundled/chunks/{helia-for-pkc-C7_eLx63.js → helia-for-pkc-B6cVl9Fj.js} +2 -2
- package/dist/bundled/chunks/{local-community-CtL1aSwt.js → local-community-CEsw9IC3.js} +1 -1
- package/dist/bundled/chunks/{local-community-RlYLG5QV.js → local-community-JxRohlLp.js} +114 -47
- package/dist/bundled/chunks/node-DsWFSaNV.js +36843 -0
- package/dist/bundled/chunks/{page-sort-scoring-CaoGFyhT.js → page-sort-scoring-iqMGLuRC.js} +1 -1
- package/dist/bundled/chunks/{rpc-local-community-BXt7eK9l.js → rpc-local-community-jndojGZl.js} +56870 -33780
- package/dist/bundled/chunks/{src-B07ldGHS.js → src-BggJ_InF.js} +435 -149
- package/dist/bundled/chunks/{src-629pKfxo.js → src-BsiPSkhv.js} +2 -2
- package/dist/bundled/chunks/{src-BOzgM7Fp.js → src-evzEHW9W.js} +26 -9
- package/dist/bundled/chunks/{util-CaL93qd4.js → util-Bna9pur0.js} +32 -9
- package/dist/bundled/chunks/{util-cD0RAlzC.js → util-CYgZRMVL.js} +1 -1
- package/dist/bundled/chunks/{validate-package-factories-DWI4TSli.js → validate-package-factories-FeyM9Tw1.js} +2 -2
- package/dist/bundled/index.js +1 -1
- package/dist/bundled/page-sorts.js +1 -1
- package/dist/bundled/rpc/src/index.js +4 -4
- package/dist/node/clients/rpc-client/rpc-schema-util.d.ts +2 -0
- package/dist/node/clients/rpc-client/schema.d.ts +24 -0
- package/dist/node/community/schema.d.ts +193 -0
- package/dist/node/community/schema.js +4 -0
- package/dist/node/community/schema.js.map +1 -1
- package/dist/node/errors.d.ts +9 -1
- package/dist/node/errors.js +9 -1
- package/dist/node/errors.js.map +1 -1
- package/dist/node/generated-version.d.ts +1 -1
- package/dist/node/generated-version.js +1 -1
- package/dist/node/index-with-compile-cache.d.ts +32 -0
- package/dist/node/index.d.ts +64 -0
- package/dist/node/pages/schema.d.ts +44 -0
- package/dist/node/pkc-error.d.ts +1 -1
- package/dist/node/publications/comment/comment.d.ts +1 -0
- package/dist/node/publications/comment/comment.js +2 -0
- package/dist/node/publications/comment/comment.js.map +1 -1
- package/dist/node/publications/comment/schema.d.ts +133 -1
- package/dist/node/publications/comment/schema.js +21 -6
- package/dist/node/publications/comment/schema.js.map +1 -1
- package/dist/node/publications/comment/types.d.ts +2 -1
- package/dist/node/publications/community-edit/schema.d.ts +8 -0
- package/dist/node/pubsub-messages/schema.d.ts +37 -0
- package/dist/node/rpc/src/lib/pkc-js/index.d.ts +32 -0
- package/dist/node/rpc/src/schema.d.ts +192 -0
- package/dist/node/runtime/node/community/db-handler.js +3 -2
- package/dist/node/runtime/node/community/db-handler.js.map +1 -1
- package/dist/node/runtime/node/community/local-community/editing.js +60 -7
- package/dist/node/runtime/node/community/local-community/editing.js.map +1 -1
- package/dist/node/runtime/node/community/local-community/publication-validation.js +41 -17
- package/dist/node/runtime/node/community/local-community/publication-validation.js.map +1 -1
- package/dist/node/runtime/node/polyfill.js +3 -1
- package/dist/node/runtime/node/polyfill.js.map +1 -1
- package/dist/node/schema/schema-util.d.ts +82 -0
- package/dist/node/schema.d.ts +256 -0
- package/dist/node/signer/signatures.js +18 -6
- package/dist/node/signer/signatures.js.map +1 -1
- package/dist/node/test/test-util.d.ts +40 -0
- package/dist/node/version.js +1 -1
- package/package.json +18 -18
- package/dist/bundled/chunks/node-DFp6m62Y.js +0 -9770
|
@@ -6,6 +6,17 @@ export interface Crosspost {
|
|
|
6
6
|
crosspost?: Crosspost;
|
|
7
7
|
};
|
|
8
8
|
}
|
|
9
|
+
export declare const CommentGalleryItemSchema: z.ZodObject<{
|
|
10
|
+
url: z.ZodString;
|
|
11
|
+
htmlTagName: z.ZodEnum<{
|
|
12
|
+
img: "img";
|
|
13
|
+
video: "video";
|
|
14
|
+
audio: "audio";
|
|
15
|
+
}>;
|
|
16
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
17
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
18
|
+
alt: z.ZodOptional<z.ZodString>;
|
|
19
|
+
}, z.core.$loose>;
|
|
9
20
|
export declare const CreateCommentOptionsSchema: z.ZodObject<{
|
|
10
21
|
flairs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
11
22
|
text: z.ZodString;
|
|
@@ -25,6 +36,17 @@ export declare const CreateCommentOptionsSchema: z.ZodObject<{
|
|
|
25
36
|
postCid: z.ZodOptional<z.ZodString>;
|
|
26
37
|
quotedCids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
27
38
|
crosspost: z.ZodOptional<z.ZodType<Crosspost, Crosspost, z.core.$ZodTypeInternals<Crosspost, Crosspost>>>;
|
|
39
|
+
gallery: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
40
|
+
url: z.ZodString;
|
|
41
|
+
htmlTagName: z.ZodEnum<{
|
|
42
|
+
img: "img";
|
|
43
|
+
video: "video";
|
|
44
|
+
audio: "audio";
|
|
45
|
+
}>;
|
|
46
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
47
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
48
|
+
alt: z.ZodOptional<z.ZodString>;
|
|
49
|
+
}, z.core.$loose>>>;
|
|
28
50
|
signer: z.ZodObject<{
|
|
29
51
|
type: z.ZodEnum<{
|
|
30
52
|
ed25519: "ed25519";
|
|
@@ -89,6 +111,17 @@ export declare const CreateCommentOptionsWithRefinementSchema: z.ZodObject<{
|
|
|
89
111
|
postCid: z.ZodOptional<z.ZodString>;
|
|
90
112
|
quotedCids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
91
113
|
crosspost: z.ZodOptional<z.ZodType<Crosspost, Crosspost, z.core.$ZodTypeInternals<Crosspost, Crosspost>>>;
|
|
114
|
+
gallery: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
115
|
+
url: z.ZodString;
|
|
116
|
+
htmlTagName: z.ZodEnum<{
|
|
117
|
+
img: "img";
|
|
118
|
+
video: "video";
|
|
119
|
+
audio: "audio";
|
|
120
|
+
}>;
|
|
121
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
122
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
123
|
+
alt: z.ZodOptional<z.ZodString>;
|
|
124
|
+
}, z.core.$loose>>>;
|
|
92
125
|
signer: z.ZodObject<{
|
|
93
126
|
type: z.ZodEnum<{
|
|
94
127
|
ed25519: "ed25519";
|
|
@@ -134,7 +167,7 @@ export declare const CreateCommentOptionsWithRefinementSchema: z.ZodObject<{
|
|
|
134
167
|
challengeCommentCids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
135
168
|
}, z.core.$strip>>;
|
|
136
169
|
}, z.core.$strict>;
|
|
137
|
-
export declare const CommentSignedPropertyNames: ("link" | "timestamp" | "flairs" | "author" | "communityPublicKey" | "communityName" | "protocolVersion" | "spoiler" | "nsfw" | "content" | "title" | "linkWidth" | "linkHeight" | "linkHtmlTagName" | "parentCid" | "postCid" | "quotedCids" | "crosspost")[];
|
|
170
|
+
export declare const CommentSignedPropertyNames: ("link" | "timestamp" | "flairs" | "author" | "communityPublicKey" | "communityName" | "protocolVersion" | "spoiler" | "nsfw" | "content" | "title" | "linkWidth" | "linkHeight" | "linkHtmlTagName" | "parentCid" | "postCid" | "quotedCids" | "crosspost" | "gallery")[];
|
|
138
171
|
export declare const CommentPubsubMessagePublicationSchema: z.ZodObject<{
|
|
139
172
|
link: z.ZodOptional<z.ZodString>;
|
|
140
173
|
timestamp: z.ZodNumber;
|
|
@@ -193,6 +226,17 @@ export declare const CommentPubsubMessagePublicationSchema: z.ZodObject<{
|
|
|
193
226
|
postCid: z.ZodOptional<z.ZodString>;
|
|
194
227
|
quotedCids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
195
228
|
crosspost: z.ZodOptional<z.ZodType<Crosspost, Crosspost, z.core.$ZodTypeInternals<Crosspost, Crosspost>>>;
|
|
229
|
+
gallery: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
230
|
+
url: z.ZodString;
|
|
231
|
+
htmlTagName: z.ZodEnum<{
|
|
232
|
+
img: "img";
|
|
233
|
+
video: "video";
|
|
234
|
+
audio: "audio";
|
|
235
|
+
}>;
|
|
236
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
237
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
238
|
+
alt: z.ZodOptional<z.ZodString>;
|
|
239
|
+
}, z.core.$loose>>>;
|
|
196
240
|
}, z.core.$strict>;
|
|
197
241
|
export declare const CommentPubsubMessageWithFlexibleAuthorSchema: z.ZodObject<{
|
|
198
242
|
link: z.ZodOptional<z.ZodString>;
|
|
@@ -223,6 +267,17 @@ export declare const CommentPubsubMessageWithFlexibleAuthorSchema: z.ZodObject<{
|
|
|
223
267
|
postCid: z.ZodOptional<z.ZodString>;
|
|
224
268
|
quotedCids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
225
269
|
crosspost: z.ZodOptional<z.ZodType<Crosspost, Crosspost, z.core.$ZodTypeInternals<Crosspost, Crosspost>>>;
|
|
270
|
+
gallery: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
271
|
+
url: z.ZodString;
|
|
272
|
+
htmlTagName: z.ZodEnum<{
|
|
273
|
+
img: "img";
|
|
274
|
+
video: "video";
|
|
275
|
+
audio: "audio";
|
|
276
|
+
}>;
|
|
277
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
278
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
279
|
+
alt: z.ZodOptional<z.ZodString>;
|
|
280
|
+
}, z.core.$loose>>>;
|
|
226
281
|
author: z.ZodOptional<z.ZodObject<{
|
|
227
282
|
name: z.ZodOptional<z.ZodString>;
|
|
228
283
|
previousCommentCid: z.ZodOptional<z.ZodString>;
|
|
@@ -282,6 +337,17 @@ export declare const CommentPubsubMessageWithFlexibleAuthorRefinementSchema: z.Z
|
|
|
282
337
|
postCid: z.ZodOptional<z.ZodString>;
|
|
283
338
|
quotedCids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
284
339
|
crosspost: z.ZodOptional<z.ZodType<Crosspost, Crosspost, z.core.$ZodTypeInternals<Crosspost, Crosspost>>>;
|
|
340
|
+
gallery: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
341
|
+
url: z.ZodString;
|
|
342
|
+
htmlTagName: z.ZodEnum<{
|
|
343
|
+
img: "img";
|
|
344
|
+
video: "video";
|
|
345
|
+
audio: "audio";
|
|
346
|
+
}>;
|
|
347
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
348
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
349
|
+
alt: z.ZodOptional<z.ZodString>;
|
|
350
|
+
}, z.core.$loose>>>;
|
|
285
351
|
author: z.ZodOptional<z.ZodObject<{
|
|
286
352
|
name: z.ZodOptional<z.ZodString>;
|
|
287
353
|
previousCommentCid: z.ZodOptional<z.ZodString>;
|
|
@@ -370,6 +436,17 @@ export declare const CommentPubsubMessageWithRefinementSchema: z.ZodObject<{
|
|
|
370
436
|
postCid: z.ZodOptional<z.ZodString>;
|
|
371
437
|
quotedCids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
372
438
|
crosspost: z.ZodOptional<z.ZodType<Crosspost, Crosspost, z.core.$ZodTypeInternals<Crosspost, Crosspost>>>;
|
|
439
|
+
gallery: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
440
|
+
url: z.ZodString;
|
|
441
|
+
htmlTagName: z.ZodEnum<{
|
|
442
|
+
img: "img";
|
|
443
|
+
video: "video";
|
|
444
|
+
audio: "audio";
|
|
445
|
+
}>;
|
|
446
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
447
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
448
|
+
alt: z.ZodOptional<z.ZodString>;
|
|
449
|
+
}, z.core.$loose>>>;
|
|
373
450
|
}, z.core.$strict>;
|
|
374
451
|
export declare const CommentChallengeRequestToEncryptSchema: z.ZodObject<{
|
|
375
452
|
challengeAnswers: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -403,6 +480,17 @@ export declare const CommentChallengeRequestToEncryptSchema: z.ZodObject<{
|
|
|
403
480
|
postCid: z.ZodOptional<z.ZodString>;
|
|
404
481
|
quotedCids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
405
482
|
crosspost: z.ZodOptional<z.ZodType<Crosspost, Crosspost, z.core.$ZodTypeInternals<Crosspost, Crosspost>>>;
|
|
483
|
+
gallery: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
484
|
+
url: z.ZodString;
|
|
485
|
+
htmlTagName: z.ZodEnum<{
|
|
486
|
+
img: "img";
|
|
487
|
+
video: "video";
|
|
488
|
+
audio: "audio";
|
|
489
|
+
}>;
|
|
490
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
491
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
492
|
+
alt: z.ZodOptional<z.ZodString>;
|
|
493
|
+
}, z.core.$loose>>>;
|
|
406
494
|
author: z.ZodOptional<z.ZodObject<{
|
|
407
495
|
name: z.ZodOptional<z.ZodString>;
|
|
408
496
|
previousCommentCid: z.ZodOptional<z.ZodString>;
|
|
@@ -463,6 +551,17 @@ export declare const CommentIpfsSchema: z.ZodObject<{
|
|
|
463
551
|
postCid: z.ZodOptional<z.ZodString>;
|
|
464
552
|
quotedCids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
465
553
|
crosspost: z.ZodOptional<z.ZodType<Crosspost, Crosspost, z.core.$ZodTypeInternals<Crosspost, Crosspost>>>;
|
|
554
|
+
gallery: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
555
|
+
url: z.ZodString;
|
|
556
|
+
htmlTagName: z.ZodEnum<{
|
|
557
|
+
img: "img";
|
|
558
|
+
video: "video";
|
|
559
|
+
audio: "audio";
|
|
560
|
+
}>;
|
|
561
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
562
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
563
|
+
alt: z.ZodOptional<z.ZodString>;
|
|
564
|
+
}, z.core.$loose>>>;
|
|
466
565
|
author: z.ZodOptional<z.ZodObject<{
|
|
467
566
|
name: z.ZodOptional<z.ZodString>;
|
|
468
567
|
previousCommentCid: z.ZodOptional<z.ZodString>;
|
|
@@ -532,6 +631,17 @@ export declare const CommentIpfsWithRefinementSchema: z.ZodObject<{
|
|
|
532
631
|
postCid: z.ZodOptional<z.ZodString>;
|
|
533
632
|
quotedCids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
534
633
|
crosspost: z.ZodOptional<z.ZodType<Crosspost, Crosspost, z.core.$ZodTypeInternals<Crosspost, Crosspost>>>;
|
|
634
|
+
gallery: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
635
|
+
url: z.ZodString;
|
|
636
|
+
htmlTagName: z.ZodEnum<{
|
|
637
|
+
img: "img";
|
|
638
|
+
video: "video";
|
|
639
|
+
audio: "audio";
|
|
640
|
+
}>;
|
|
641
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
642
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
643
|
+
alt: z.ZodOptional<z.ZodString>;
|
|
644
|
+
}, z.core.$loose>>>;
|
|
535
645
|
author: z.ZodOptional<z.ZodObject<{
|
|
536
646
|
name: z.ZodOptional<z.ZodString>;
|
|
537
647
|
previousCommentCid: z.ZodOptional<z.ZodString>;
|
|
@@ -752,6 +862,17 @@ export declare const CommentUpdateSchema: z.ZodObject<{
|
|
|
752
862
|
postCid: z.ZodOptional<z.ZodString>;
|
|
753
863
|
quotedCids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
754
864
|
crosspost: z.ZodOptional<z.ZodType<Crosspost, Crosspost, z.core.$ZodTypeInternals<Crosspost, Crosspost>>>;
|
|
865
|
+
gallery: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
866
|
+
url: z.ZodString;
|
|
867
|
+
htmlTagName: z.ZodEnum<{
|
|
868
|
+
img: "img";
|
|
869
|
+
video: "video";
|
|
870
|
+
audio: "audio";
|
|
871
|
+
}>;
|
|
872
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
873
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
874
|
+
alt: z.ZodOptional<z.ZodString>;
|
|
875
|
+
}, z.core.$loose>>>;
|
|
755
876
|
author: z.ZodOptional<z.ZodObject<{
|
|
756
877
|
name: z.ZodOptional<z.ZodString>;
|
|
757
878
|
previousCommentCid: z.ZodOptional<z.ZodString>;
|
|
@@ -904,6 +1025,17 @@ export declare const CommentsTableRowSchema: z.ZodObject<{
|
|
|
904
1025
|
parentCid: z.ZodOptional<z.ZodString>;
|
|
905
1026
|
quotedCids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
906
1027
|
crosspost: z.ZodOptional<z.ZodType<Crosspost, Crosspost, z.core.$ZodTypeInternals<Crosspost, Crosspost>>>;
|
|
1028
|
+
gallery: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1029
|
+
url: z.ZodString;
|
|
1030
|
+
htmlTagName: z.ZodEnum<{
|
|
1031
|
+
img: "img";
|
|
1032
|
+
video: "video";
|
|
1033
|
+
audio: "audio";
|
|
1034
|
+
}>;
|
|
1035
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
1036
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
1037
|
+
alt: z.ZodOptional<z.ZodString>;
|
|
1038
|
+
}, z.core.$loose>>>;
|
|
907
1039
|
author: z.ZodOptional<z.ZodObject<{
|
|
908
1040
|
name: z.ZodOptional<z.ZodString>;
|
|
909
1041
|
previousCommentCid: z.ZodOptional<z.ZodString>;
|
|
@@ -20,6 +20,18 @@ const CrosspostSchema = z.object({
|
|
|
20
20
|
cid: CidStringSchema,
|
|
21
21
|
comment: z.lazy(() => CommentIpfsSchema.loose())
|
|
22
22
|
});
|
|
23
|
+
// One media item of comment.gallery (issue #436). The client checks structure only, like link; the
|
|
24
|
+
// community checks on publish that url is https and of media and that htmlTagName matches its type, so a
|
|
25
|
+
// later change to the media extension list can't break already-published comments.
|
|
26
|
+
// .loose() for the same reason as CrosspostSchema: items are author-signed, and zod's default strip would
|
|
27
|
+
// delete an item prop a later protocol version adds, changing the CID the community reconstructs.
|
|
28
|
+
export const CommentGalleryItemSchema = z.looseObject({
|
|
29
|
+
url: z.string().min(1).max(2000),
|
|
30
|
+
htmlTagName: z.enum(["img", "video", "audio"]),
|
|
31
|
+
width: z.number().positive().optional(),
|
|
32
|
+
height: z.number().positive().optional(),
|
|
33
|
+
alt: z.string().max(1000).optional() // the author's text description of the media, as in <img alt>. Not content
|
|
34
|
+
});
|
|
23
35
|
export const CreateCommentOptionsSchema = z
|
|
24
36
|
.object({
|
|
25
37
|
flairs: FlairSchema.array().optional(), // Author chosen colored labels for the comment
|
|
@@ -34,14 +46,17 @@ export const CreateCommentOptionsSchema = z
|
|
|
34
46
|
parentCid: CidStringSchema.optional(), // The parent comment CID
|
|
35
47
|
postCid: CidStringSchema.optional(), // the post cid, required if the comment is reply
|
|
36
48
|
quotedCids: z.array(CidStringSchema).optional(), // CIDs of comments being quoted/referenced in this reply
|
|
37
|
-
crosspost: CrosspostSchema.optional() // this comment IS a repost of the embedded comment. Distinct from quotedCids, which only references comments the text refers to
|
|
49
|
+
crosspost: CrosspostSchema.optional(), // this comment IS a repost of the embedded comment. Distinct from quotedCids, which only references comments the text refers to
|
|
50
|
+
gallery: CommentGalleryItemSchema.array().min(1).optional() // media only, shown after the link card if both are set. No gallery means the field is absent
|
|
38
51
|
})
|
|
39
52
|
.merge(CreatePublicationUserOptionsSchema)
|
|
40
53
|
.strict();
|
|
41
|
-
// This one is used for parsing user's input
|
|
42
54
|
// crosspost counts as payload on its own: a comment that only reposts another comment (a
|
|
43
55
|
// "retweet") is valid with no content, link or title. See docs/protocol/crossposts.md.
|
|
44
|
-
|
|
56
|
+
// So does a gallery, so image-only replies work.
|
|
57
|
+
const commentHasPayload = (arg) => Boolean(arg.link || arg.content || arg.title || arg.crosspost || arg.gallery);
|
|
58
|
+
// This one is used for parsing user's input
|
|
59
|
+
export const CreateCommentOptionsWithRefinementSchema = CreateCommentOptionsSchema.refine(commentHasPayload, messages.ERR_COMMENT_HAS_NO_CONTENT_LINK_TITLE)
|
|
45
60
|
.refine((arg) => (arg.parentCid ? arg.postCid : true), messages.ERR_REPLY_HAS_NOT_DEFINED_POST_CID)
|
|
46
61
|
.refine(hasAtLeastOneCommunityIdentifier, atLeastOneCommunityIdentifierMessage);
|
|
47
62
|
// Below is what's used to initialize a local publication to be published
|
|
@@ -53,8 +68,8 @@ export const CommentPubsubMessagePublicationSchema = CreateCommentOptionsSchema.
|
|
|
53
68
|
.strict();
|
|
54
69
|
export const CommentPubsubMessageWithFlexibleAuthorSchema = CommentPubsubMessagePublicationSchema.merge(z.object({ author: AuthorPubsubSchema.loose().optional() })).strict();
|
|
55
70
|
// This is used by the community when parsing request.comment
|
|
56
|
-
export const CommentPubsubMessageWithFlexibleAuthorRefinementSchema = CommentPubsubMessageWithFlexibleAuthorSchema.loose().refine(
|
|
57
|
-
export const CommentPubsubMessageWithRefinementSchema = CommentPubsubMessagePublicationSchema.refine(
|
|
71
|
+
export const CommentPubsubMessageWithFlexibleAuthorRefinementSchema = CommentPubsubMessageWithFlexibleAuthorSchema.loose().refine(commentHasPayload, messages.ERR_COMMENT_HAS_NO_CONTENT_LINK_TITLE);
|
|
72
|
+
export const CommentPubsubMessageWithRefinementSchema = CommentPubsubMessagePublicationSchema.refine(commentHasPayload, messages.ERR_COMMENT_HAS_NO_CONTENT_LINK_TITLE).refine((arg) => (arg.parentCid ? arg.postCid : true), messages.ERR_REPLY_HAS_NOT_DEFINED_POST_CID);
|
|
58
73
|
export const CommentChallengeRequestToEncryptSchema = CreateCommentOptionsSchema.shape.challengeRequest
|
|
59
74
|
.unwrap()
|
|
60
75
|
.extend({
|
|
@@ -72,7 +87,7 @@ export const CommentIpfsSchema = CommentPubsubMessageWithFlexibleAuthorSchema.ex
|
|
|
72
87
|
pseudonymityMode: z.enum(["per-post", "per-reply", "per-author"]).optional()
|
|
73
88
|
}).strict();
|
|
74
89
|
// This one should be used for parsing user's input or from gateway/p2p etc
|
|
75
|
-
export const CommentIpfsWithRefinementSchema = CommentIpfsSchema.refine(
|
|
90
|
+
export const CommentIpfsWithRefinementSchema = CommentIpfsSchema.refine(commentHasPayload, messages.ERR_COMMENT_HAS_NO_CONTENT_LINK_TITLE);
|
|
76
91
|
// Comment update schemas
|
|
77
92
|
export const AuthorWithCommentUpdateSchema = CommentPubsubMessagePublicationSchema.shape.author
|
|
78
93
|
.unwrap()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../src/publications/comment/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACH,WAAW,EACX,kBAAkB,EAClB,eAAe,EACf,kCAAkC,EAClC,mBAAmB,EACnB,kBAAkB,EAClB,qBAAqB,EACrB,4BAA4B,EAC5B,gCAAgC,EAChC,qBAAqB,EACrB,gCAAgC,EAChC,oCAAoC,EACvC,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,2DAA2D,EAAE,MAAM,2BAA2B,CAAC;AACxG,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAClE,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,iCAAiC,EAAE,MAAM,2BAA2B,CAAC;AAC9E,OAAO,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAG/D,uBAAuB;AAEvB,MAAM,oBAAoB,GAAG,CAAC,CA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;IACV,UAAU;IACV,uBAAuB;IACvB,uBAAuB;IACvB,oBAAoB;IACpB,eAAe;IACf,SAAS;IACT,KAAK;IACL,SAAS;IACT,eAAe;IACf,OAAO;IACP,SAAS;IACT,iBAAiB;IACjB,eAAe;IACf,OAAO;IACP,cAAc;IACd,4FAA4F;IAC5F,iGAAiG;IACjG,sDAAsD;IACtD,aAAa;CACP,CAAC;AAeX,MAAM,8BAA8B,GAAG,MAAM,CAAC;IAC1C,GAAG,IAAI,CAAC,iBAAiB,CAAC,KAAK,CAAC;IAChC,GAAG,IAAI,CAAC,sBAAsB,CAAC,KAAK,CAAC;IACrC,GAAG,IAAI,CAAC,2BAA2B,CAAC,KAAK,CAAC;IAC1C,GAAG,IAAI,CAAC,sCAAsC,CAAC,KAAK,CAAC;IACrD,GAAG,IAAI,CAAC,0BAA0B,CAAC,KAAK,CAAC;IACzC,GAAG,wDAAwD;IAC3D,GAAG,gCAAgC;IACnC,GAAG,4DAA4D;IAC/D,GAAG,+BAA+B;CACF,CAAC,CAAC;AAEtC,MAAM,CAAC,MAAM,kCAAkC,GAAG,UAAU,CACxD,8BAA8B,EAC9B,IAAI,CAAC,qCAAqC,CAAC,KAAK,CAAoC,CACvF,CAAC;AAoBF,yHAAyH;AACzH,MAAM,CAAC,MAAM,yBAAyB,GAAG,UAAU,CAC/C,kCAAkC,EAClC,IAAI,CAAC,iBAAiB,CAAC,KAAK,CAA8C,CAC7E,CAAC;AAEF,MAAM,CAAC,MAAM,2BAA2B,GAAG,UAAU,CAAC,kCAAkC,EAAE;IACtF,GAAG,IAAI,CAAC,mBAAmB,CAAC,KAAK,CAAC;IAClC,GAAG,IAAI,CAAC,2BAA2B,CAAC,KAAK,CAAC;IAC1C,iBAAiB;CACpB,CAAC,CAAC;AAEH,gCAAgC"}
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../src/publications/comment/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK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cAAc;IACd,4FAA4F;IAC5F,iGAAiG;IACjG,sDAAsD;IACtD,aAAa;CACP,CAAC;AAeX,MAAM,8BAA8B,GAAG,MAAM,CAAC;IAC1C,GAAG,IAAI,CAAC,iBAAiB,CAAC,KAAK,CAAC;IAChC,GAAG,IAAI,CAAC,sBAAsB,CAAC,KAAK,CAAC;IACrC,GAAG,IAAI,CAAC,2BAA2B,CAAC,KAAK,CAAC;IAC1C,GAAG,IAAI,CAAC,sCAAsC,CAAC,KAAK,CAAC;IACrD,GAAG,IAAI,CAAC,0BAA0B,CAAC,KAAK,CAAC;IACzC,GAAG,wDAAwD;IAC3D,GAAG,gCAAgC;IACnC,GAAG,4DAA4D;IAC/D,GAAG,+BAA+B;CACF,CAAC,CAAC;AAEtC,MAAM,CAAC,MAAM,kCAAkC,GAAG,UAAU,CACxD,8BAA8B,EAC9B,IAAI,CAAC,qCAAqC,CAAC,KAAK,CAAoC,CACvF,CAAC;AAoBF,yHAAyH;AACzH,MAAM,CAAC,MAAM,yBAAyB,GAAG,UAAU,CAC/C,kCAAkC,EAClC,IAAI,CAAC,iBAAiB,CAAC,KAAK,CAA8C,CAC7E,CAAC;AAEF,MAAM,CAAC,MAAM,2BAA2B,GAAG,UAAU,CAAC,kCAAkC,EAAE;IACtF,GAAG,IAAI,CAAC,mBAAmB,CAAC,KAAK,CAAC;IAClC,GAAG,IAAI,CAAC,2BAA2B,CAAC,KAAK,CAAC;IAC1C,iBAAiB;CACpB,CAAC,CAAC;AAEH,gCAAgC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { CommentChallengeRequestToEncryptSchema, CommentIpfsSchema, CommentPubsubMessagePublicationSchema, CommentSignedPropertyNames, CommentsTableRowSchema, CommentUpdateForChallengeVerificationSchema, CommentUpdateForChallengeVerificationSignedPropertyNames, CommentUpdateForDisapprovedPendingComment, CommentUpdateSchema, CommentUpdateSignedPropertyNames, CommentUpdateTableRowSchema, CreateCommentOptionsSchema, DbRepliesSchema, DbRepliesSortEntrySchema, DbPostsSchema } from "./schema.js";
|
|
2
|
+
import { CommentChallengeRequestToEncryptSchema, CommentGalleryItemSchema, CommentIpfsSchema, CommentPubsubMessagePublicationSchema, CommentSignedPropertyNames, CommentsTableRowSchema, CommentUpdateForChallengeVerificationSchema, CommentUpdateForChallengeVerificationSignedPropertyNames, CommentUpdateForDisapprovedPendingComment, CommentUpdateSchema, CommentUpdateSignedPropertyNames, CommentUpdateTableRowSchema, CreateCommentOptionsSchema, DbRepliesSchema, DbRepliesSortEntrySchema, DbPostsSchema } from "./schema.js";
|
|
3
3
|
import type { Crosspost } from "./schema.js";
|
|
4
4
|
import { CommunityAuthorSchema } from "../../schema/schema.js";
|
|
5
5
|
import { RpcCommentEventResultSchema, RpcCommentUpdateResultSchema } from "../../clients/rpc-client/schema.js";
|
|
@@ -11,6 +11,7 @@ import type { JsonSignature, SignerType } from "../../signer/types.js";
|
|
|
11
11
|
import Publication from "../publication.js";
|
|
12
12
|
export type CommunityAuthor = z.infer<typeof CommunityAuthorSchema>;
|
|
13
13
|
export type CreateCommentOptions = z.infer<typeof CreateCommentOptionsSchema>;
|
|
14
|
+
export type CommentGalleryItem = z.infer<typeof CommentGalleryItemSchema>;
|
|
14
15
|
export type CommentPubsubMessagePublication = z.infer<typeof CommentPubsubMessagePublicationSchema>;
|
|
15
16
|
export interface CommentOptionsToSign extends Omit<CommentPubsubMessagePublication, "signature"> {
|
|
16
17
|
signer: SignerType;
|
|
@@ -90,6 +90,8 @@ export declare const CreateCommunityEditPublicationOptionsSchema: import("zod").
|
|
|
90
90
|
requirePostLinkIsMedia: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
91
91
|
requireReplyLink: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
92
92
|
requireReplyLinkIsMedia: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
93
|
+
maxPostGalleryItems: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
94
|
+
maxReplyGalleryItems: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
93
95
|
pseudonymityMode: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
94
96
|
"per-post": "per-post";
|
|
95
97
|
"per-reply": "per-reply";
|
|
@@ -270,6 +272,8 @@ export declare const CreateCommunityEditPublicationOptionsWithRefinementSchema:
|
|
|
270
272
|
requirePostLinkIsMedia: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
271
273
|
requireReplyLink: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
272
274
|
requireReplyLinkIsMedia: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
275
|
+
maxPostGalleryItems: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
276
|
+
maxReplyGalleryItems: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
273
277
|
pseudonymityMode: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
274
278
|
"per-post": "per-post";
|
|
275
279
|
"per-reply": "per-reply";
|
|
@@ -446,6 +450,8 @@ export declare const CommunityEditPubsubMessagePublicationSchema: import("zod").
|
|
|
446
450
|
requirePostLinkIsMedia: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
447
451
|
requireReplyLink: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
448
452
|
requireReplyLinkIsMedia: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
453
|
+
maxPostGalleryItems: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
454
|
+
maxReplyGalleryItems: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
449
455
|
pseudonymityMode: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
450
456
|
"per-post": "per-post";
|
|
451
457
|
"per-reply": "per-reply";
|
|
@@ -624,6 +630,8 @@ export declare const CommunityEditPublicationChallengeRequestToEncryptSchema: im
|
|
|
624
630
|
requirePostLinkIsMedia: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
625
631
|
requireReplyLink: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
626
632
|
requireReplyLinkIsMedia: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
633
|
+
maxPostGalleryItems: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
634
|
+
maxReplyGalleryItems: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
627
635
|
pseudonymityMode: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
628
636
|
"per-post": "per-post";
|
|
629
637
|
"per-reply": "per-reply";
|
|
@@ -61,6 +61,17 @@ export declare const DecryptedChallengeRequestPublicationSchema: z.ZodObject<{
|
|
|
61
61
|
postCid: z.ZodOptional<z.ZodString>;
|
|
62
62
|
quotedCids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
63
63
|
crosspost: z.ZodOptional<z.ZodType<import("../publications/comment/schema.js").Crosspost, import("../publications/comment/schema.js").Crosspost, z.core.$ZodTypeInternals<import("../publications/comment/schema.js").Crosspost, import("../publications/comment/schema.js").Crosspost>>>;
|
|
64
|
+
gallery: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
65
|
+
url: z.ZodString;
|
|
66
|
+
htmlTagName: z.ZodEnum<{
|
|
67
|
+
img: "img";
|
|
68
|
+
video: "video";
|
|
69
|
+
audio: "audio";
|
|
70
|
+
}>;
|
|
71
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
72
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
73
|
+
alt: z.ZodOptional<z.ZodString>;
|
|
74
|
+
}, z.core.$loose>>>;
|
|
64
75
|
author: z.ZodOptional<z.ZodObject<{
|
|
65
76
|
name: z.ZodOptional<z.ZodString>;
|
|
66
77
|
previousCommentCid: z.ZodOptional<z.ZodString>;
|
|
@@ -342,6 +353,8 @@ export declare const DecryptedChallengeRequestPublicationSchema: z.ZodObject<{
|
|
|
342
353
|
requirePostLinkIsMedia: z.ZodOptional<z.ZodBoolean>;
|
|
343
354
|
requireReplyLink: z.ZodOptional<z.ZodBoolean>;
|
|
344
355
|
requireReplyLinkIsMedia: z.ZodOptional<z.ZodBoolean>;
|
|
356
|
+
maxPostGalleryItems: z.ZodOptional<z.ZodNumber>;
|
|
357
|
+
maxReplyGalleryItems: z.ZodOptional<z.ZodNumber>;
|
|
345
358
|
pseudonymityMode: z.ZodOptional<z.ZodEnum<{
|
|
346
359
|
"per-post": "per-post";
|
|
347
360
|
"per-reply": "per-reply";
|
|
@@ -461,6 +474,17 @@ export declare const DecryptedChallengeRequestSchema: z.ZodObject<{
|
|
|
461
474
|
postCid: z.ZodOptional<z.ZodString>;
|
|
462
475
|
quotedCids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
463
476
|
crosspost: z.ZodOptional<z.ZodType<import("../publications/comment/schema.js").Crosspost, import("../publications/comment/schema.js").Crosspost, z.core.$ZodTypeInternals<import("../publications/comment/schema.js").Crosspost, import("../publications/comment/schema.js").Crosspost>>>;
|
|
477
|
+
gallery: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
478
|
+
url: z.ZodString;
|
|
479
|
+
htmlTagName: z.ZodEnum<{
|
|
480
|
+
img: "img";
|
|
481
|
+
video: "video";
|
|
482
|
+
audio: "audio";
|
|
483
|
+
}>;
|
|
484
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
485
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
486
|
+
alt: z.ZodOptional<z.ZodString>;
|
|
487
|
+
}, z.core.$loose>>>;
|
|
464
488
|
author: z.ZodOptional<z.ZodObject<{
|
|
465
489
|
name: z.ZodOptional<z.ZodString>;
|
|
466
490
|
previousCommentCid: z.ZodOptional<z.ZodString>;
|
|
@@ -742,6 +766,8 @@ export declare const DecryptedChallengeRequestSchema: z.ZodObject<{
|
|
|
742
766
|
requirePostLinkIsMedia: z.ZodOptional<z.ZodBoolean>;
|
|
743
767
|
requireReplyLink: z.ZodOptional<z.ZodBoolean>;
|
|
744
768
|
requireReplyLinkIsMedia: z.ZodOptional<z.ZodBoolean>;
|
|
769
|
+
maxPostGalleryItems: z.ZodOptional<z.ZodNumber>;
|
|
770
|
+
maxReplyGalleryItems: z.ZodOptional<z.ZodNumber>;
|
|
745
771
|
pseudonymityMode: z.ZodOptional<z.ZodEnum<{
|
|
746
772
|
"per-post": "per-post";
|
|
747
773
|
"per-reply": "per-reply";
|
|
@@ -941,6 +967,17 @@ export declare const DecryptedChallengeVerificationSchema: z.ZodObject<{
|
|
|
941
967
|
postCid: z.ZodOptional<z.ZodString>;
|
|
942
968
|
quotedCids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
943
969
|
crosspost: z.ZodOptional<z.ZodType<import("../publications/comment/schema.js").Crosspost, import("../publications/comment/schema.js").Crosspost, z.core.$ZodTypeInternals<import("../publications/comment/schema.js").Crosspost, import("../publications/comment/schema.js").Crosspost>>>;
|
|
970
|
+
gallery: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
971
|
+
url: z.ZodString;
|
|
972
|
+
htmlTagName: z.ZodEnum<{
|
|
973
|
+
img: "img";
|
|
974
|
+
video: "video";
|
|
975
|
+
audio: "audio";
|
|
976
|
+
}>;
|
|
977
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
978
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
979
|
+
alt: z.ZodOptional<z.ZodString>;
|
|
980
|
+
}, z.core.$loose>>>;
|
|
944
981
|
author: z.ZodOptional<z.ZodObject<{
|
|
945
982
|
name: z.ZodOptional<z.ZodString>;
|
|
946
983
|
previousCommentCid: z.ZodOptional<z.ZodString>;
|
|
@@ -231,6 +231,14 @@ declare const PKCJs: {
|
|
|
231
231
|
postCid?: string | undefined;
|
|
232
232
|
quotedCids?: string[] | undefined;
|
|
233
233
|
crosspost?: import("../../../../publications/comment/schema.js").Crosspost | undefined;
|
|
234
|
+
gallery?: {
|
|
235
|
+
[x: string]: unknown;
|
|
236
|
+
url: string;
|
|
237
|
+
htmlTagName: "img" | "video" | "audio";
|
|
238
|
+
width?: number | undefined;
|
|
239
|
+
height?: number | undefined;
|
|
240
|
+
alt?: string | undefined;
|
|
241
|
+
}[] | undefined;
|
|
234
242
|
author?: {
|
|
235
243
|
[x: string]: unknown;
|
|
236
244
|
name?: string | undefined;
|
|
@@ -300,6 +308,14 @@ declare const PKCJs: {
|
|
|
300
308
|
postCid?: string | undefined;
|
|
301
309
|
quotedCids?: string[] | undefined;
|
|
302
310
|
crosspost?: import("../../../../publications/comment/schema.js").Crosspost | undefined;
|
|
311
|
+
gallery?: {
|
|
312
|
+
[x: string]: unknown;
|
|
313
|
+
url: string;
|
|
314
|
+
htmlTagName: "img" | "video" | "audio";
|
|
315
|
+
width?: number | undefined;
|
|
316
|
+
height?: number | undefined;
|
|
317
|
+
alt?: string | undefined;
|
|
318
|
+
}[] | undefined;
|
|
303
319
|
author?: {
|
|
304
320
|
[x: string]: unknown;
|
|
305
321
|
name?: string | undefined;
|
|
@@ -483,6 +499,14 @@ declare const PKCJs: {
|
|
|
483
499
|
postCid?: string | undefined;
|
|
484
500
|
quotedCids?: string[] | undefined;
|
|
485
501
|
crosspost?: import("../../../../publications/comment/schema.js").Crosspost | undefined;
|
|
502
|
+
gallery?: {
|
|
503
|
+
[x: string]: unknown;
|
|
504
|
+
url: string;
|
|
505
|
+
htmlTagName: "img" | "video" | "audio";
|
|
506
|
+
width?: number | undefined;
|
|
507
|
+
height?: number | undefined;
|
|
508
|
+
alt?: string | undefined;
|
|
509
|
+
}[] | undefined;
|
|
486
510
|
author?: {
|
|
487
511
|
[x: string]: unknown;
|
|
488
512
|
name?: string | undefined;
|
|
@@ -672,6 +696,14 @@ declare const PKCJs: {
|
|
|
672
696
|
postCid?: string | undefined;
|
|
673
697
|
quotedCids?: string[] | undefined;
|
|
674
698
|
crosspost?: import("../../../../publications/comment/schema.js").Crosspost | undefined;
|
|
699
|
+
gallery?: {
|
|
700
|
+
[x: string]: unknown;
|
|
701
|
+
url: string;
|
|
702
|
+
htmlTagName: "img" | "video" | "audio";
|
|
703
|
+
width?: number | undefined;
|
|
704
|
+
height?: number | undefined;
|
|
705
|
+
alt?: string | undefined;
|
|
706
|
+
}[] | undefined;
|
|
675
707
|
author?: {
|
|
676
708
|
[x: string]: unknown;
|
|
677
709
|
name?: string | undefined;
|