@pkcprotocol/pkc-js 0.0.130 → 0.0.132

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.
Files changed (100) hide show
  1. package/README.md +17 -7
  2. package/dist/browser/clients/rpc-client/rpc-schema-util.d.ts +2 -0
  3. package/dist/browser/clients/rpc-client/schema.d.ts +24 -0
  4. package/dist/browser/community/schema.d.ts +193 -0
  5. package/dist/browser/community/schema.js +4 -0
  6. package/dist/browser/community/schema.js.map +1 -1
  7. package/dist/browser/errors.d.ts +7 -1
  8. package/dist/browser/errors.js +7 -1
  9. package/dist/browser/errors.js.map +1 -1
  10. package/dist/browser/generated-version.d.ts +1 -1
  11. package/dist/browser/generated-version.js +1 -1
  12. package/dist/browser/index-with-compile-cache.d.ts +32 -0
  13. package/dist/browser/index.d.ts +64 -0
  14. package/dist/browser/pages/schema.d.ts +44 -0
  15. package/dist/browser/pkc/pkc-with-rpc-client.d.ts +3 -0
  16. package/dist/browser/pkc/pkc-with-rpc-client.js +26 -3
  17. package/dist/browser/pkc/pkc-with-rpc-client.js.map +1 -1
  18. package/dist/browser/pkc-error.d.ts +1 -1
  19. package/dist/browser/publications/comment/comment.d.ts +1 -0
  20. package/dist/browser/publications/comment/comment.js +2 -0
  21. package/dist/browser/publications/comment/comment.js.map +1 -1
  22. package/dist/browser/publications/comment/schema.d.ts +133 -1
  23. package/dist/browser/publications/comment/schema.js +21 -6
  24. package/dist/browser/publications/comment/schema.js.map +1 -1
  25. package/dist/browser/publications/comment/types.d.ts +2 -1
  26. package/dist/browser/publications/community-edit/schema.d.ts +8 -0
  27. package/dist/browser/pubsub-messages/schema.d.ts +37 -0
  28. package/dist/browser/rpc/src/lib/pkc-js/index.d.ts +32 -0
  29. package/dist/browser/rpc/src/schema.d.ts +192 -0
  30. package/dist/browser/runtime/node/community/db-handler.js +3 -2
  31. package/dist/browser/runtime/node/community/db-handler.js.map +1 -1
  32. package/dist/browser/runtime/node/community/local-community/publication-validation.js +41 -17
  33. package/dist/browser/runtime/node/community/local-community/publication-validation.js.map +1 -1
  34. package/dist/browser/runtime/node/polyfill.js +3 -1
  35. package/dist/browser/runtime/node/polyfill.js.map +1 -1
  36. package/dist/browser/runtime/node/util.js +12 -3
  37. package/dist/browser/runtime/node/util.js.map +1 -1
  38. package/dist/browser/schema/schema-util.d.ts +82 -0
  39. package/dist/browser/schema.d.ts +256 -0
  40. package/dist/browser/test/test-util.d.ts +40 -0
  41. package/dist/browser/version.js +1 -1
  42. package/dist/bundled/bundle-manifest.json +446 -223
  43. package/dist/bundled/challenges.js +1 -1
  44. package/dist/bundled/chunks/{helia-for-pkc-CVGt82_T.js → helia-for-pkc-Be5IsnZy.js} +2 -2
  45. package/dist/bundled/chunks/{local-community-fdVlmCGN.js → local-community-BU2-PWv4.js} +1 -1
  46. package/dist/bundled/chunks/{local-community-wNpPFFZe.js → local-community-BjDsNdnK.js} +42 -26
  47. package/dist/bundled/chunks/node-Cpazwn3v.js +36843 -0
  48. package/dist/bundled/chunks/{page-sort-scoring-DerjGUL1.js → page-sort-scoring-BqPwUozm.js} +1 -1
  49. package/dist/bundled/chunks/{rpc-local-community-CJbuAfCd.js → rpc-local-community-C5xdrdFG.js} +56834 -33748
  50. package/dist/bundled/chunks/{src-B07ldGHS.js → src-BggJ_InF.js} +435 -149
  51. package/dist/bundled/chunks/{src-629pKfxo.js → src-BsiPSkhv.js} +2 -2
  52. package/dist/bundled/chunks/{src-BOzgM7Fp.js → src-evzEHW9W.js} +26 -9
  53. package/dist/bundled/chunks/{util-kemFUDC0.js → util-BLpE5ch7.js} +1 -1
  54. package/dist/bundled/chunks/{util-B_sAleCo.js → util-DaZGW5bK.js} +30 -9
  55. package/dist/bundled/chunks/{validate-package-factories-DLuTOpn4.js → validate-package-factories-DBOjkq17.js} +2 -2
  56. package/dist/bundled/index.js +1 -1
  57. package/dist/bundled/page-sorts.js +1 -1
  58. package/dist/bundled/rpc/src/index.js +4 -4
  59. package/dist/node/clients/rpc-client/rpc-schema-util.d.ts +2 -0
  60. package/dist/node/clients/rpc-client/schema.d.ts +24 -0
  61. package/dist/node/community/schema.d.ts +193 -0
  62. package/dist/node/community/schema.js +4 -0
  63. package/dist/node/community/schema.js.map +1 -1
  64. package/dist/node/errors.d.ts +7 -1
  65. package/dist/node/errors.js +7 -1
  66. package/dist/node/errors.js.map +1 -1
  67. package/dist/node/generated-version.d.ts +1 -1
  68. package/dist/node/generated-version.js +1 -1
  69. package/dist/node/index-with-compile-cache.d.ts +32 -0
  70. package/dist/node/index.d.ts +64 -0
  71. package/dist/node/pages/schema.d.ts +44 -0
  72. package/dist/node/pkc/pkc-with-rpc-client.d.ts +3 -0
  73. package/dist/node/pkc/pkc-with-rpc-client.js +26 -3
  74. package/dist/node/pkc/pkc-with-rpc-client.js.map +1 -1
  75. package/dist/node/pkc-error.d.ts +1 -1
  76. package/dist/node/publications/comment/comment.d.ts +1 -0
  77. package/dist/node/publications/comment/comment.js +2 -0
  78. package/dist/node/publications/comment/comment.js.map +1 -1
  79. package/dist/node/publications/comment/schema.d.ts +133 -1
  80. package/dist/node/publications/comment/schema.js +21 -6
  81. package/dist/node/publications/comment/schema.js.map +1 -1
  82. package/dist/node/publications/comment/types.d.ts +2 -1
  83. package/dist/node/publications/community-edit/schema.d.ts +8 -0
  84. package/dist/node/pubsub-messages/schema.d.ts +37 -0
  85. package/dist/node/rpc/src/lib/pkc-js/index.d.ts +32 -0
  86. package/dist/node/rpc/src/schema.d.ts +192 -0
  87. package/dist/node/runtime/node/community/db-handler.js +3 -2
  88. package/dist/node/runtime/node/community/db-handler.js.map +1 -1
  89. package/dist/node/runtime/node/community/local-community/publication-validation.js +41 -17
  90. package/dist/node/runtime/node/community/local-community/publication-validation.js.map +1 -1
  91. package/dist/node/runtime/node/polyfill.js +3 -1
  92. package/dist/node/runtime/node/polyfill.js.map +1 -1
  93. package/dist/node/runtime/node/util.js +12 -3
  94. package/dist/node/runtime/node/util.js.map +1 -1
  95. package/dist/node/schema/schema-util.d.ts +82 -0
  96. package/dist/node/schema.d.ts +256 -0
  97. package/dist/node/test/test-util.d.ts +40 -0
  98. package/dist/node/version.js +1 -1
  99. package/package.json +18 -18
  100. package/dist/bundled/chunks/node-Z0wgsXeR.js +0 -9757
@@ -443,6 +443,14 @@ export declare const PKCUserOptionBaseSchema: z.ZodObject<{
443
443
  postCid?: string | undefined;
444
444
  quotedCids?: string[] | undefined;
445
445
  crosspost?: import("./publications/comment/schema.js").Crosspost | undefined;
446
+ gallery?: {
447
+ [x: string]: unknown;
448
+ url: string;
449
+ htmlTagName: "img" | "video" | "audio";
450
+ width?: number | undefined;
451
+ height?: number | undefined;
452
+ alt?: string | undefined;
453
+ }[] | undefined;
446
454
  author?: {
447
455
  [x: string]: unknown;
448
456
  name?: string | undefined;
@@ -512,6 +520,14 @@ export declare const PKCUserOptionBaseSchema: z.ZodObject<{
512
520
  postCid?: string | undefined;
513
521
  quotedCids?: string[] | undefined;
514
522
  crosspost?: import("./publications/comment/schema.js").Crosspost | undefined;
523
+ gallery?: {
524
+ [x: string]: unknown;
525
+ url: string;
526
+ htmlTagName: "img" | "video" | "audio";
527
+ width?: number | undefined;
528
+ height?: number | undefined;
529
+ alt?: string | undefined;
530
+ }[] | undefined;
515
531
  author?: {
516
532
  [x: string]: unknown;
517
533
  name?: string | undefined;
@@ -695,6 +711,14 @@ export declare const PKCUserOptionBaseSchema: z.ZodObject<{
695
711
  postCid?: string | undefined;
696
712
  quotedCids?: string[] | undefined;
697
713
  crosspost?: import("./publications/comment/schema.js").Crosspost | undefined;
714
+ gallery?: {
715
+ [x: string]: unknown;
716
+ url: string;
717
+ htmlTagName: "img" | "video" | "audio";
718
+ width?: number | undefined;
719
+ height?: number | undefined;
720
+ alt?: string | undefined;
721
+ }[] | undefined;
698
722
  author?: {
699
723
  [x: string]: unknown;
700
724
  name?: string | undefined;
@@ -884,6 +908,14 @@ export declare const PKCUserOptionBaseSchema: z.ZodObject<{
884
908
  postCid?: string | undefined;
885
909
  quotedCids?: string[] | undefined;
886
910
  crosspost?: import("./publications/comment/schema.js").Crosspost | undefined;
911
+ gallery?: {
912
+ [x: string]: unknown;
913
+ url: string;
914
+ htmlTagName: "img" | "video" | "audio";
915
+ width?: number | undefined;
916
+ height?: number | undefined;
917
+ alt?: string | undefined;
918
+ }[] | undefined;
887
919
  author?: {
888
920
  [x: string]: unknown;
889
921
  name?: string | undefined;
@@ -1001,6 +1033,14 @@ export declare const PKCUserOptionBaseSchema: z.ZodObject<{
1001
1033
  postCid?: string | undefined;
1002
1034
  quotedCids?: string[] | undefined;
1003
1035
  crosspost?: import("./publications/comment/schema.js").Crosspost | undefined;
1036
+ gallery?: {
1037
+ [x: string]: unknown;
1038
+ url: string;
1039
+ htmlTagName: "img" | "video" | "audio";
1040
+ width?: number | undefined;
1041
+ height?: number | undefined;
1042
+ alt?: string | undefined;
1043
+ }[] | undefined;
1004
1044
  author?: {
1005
1045
  [x: string]: unknown;
1006
1046
  name?: string | undefined;
@@ -1070,6 +1110,14 @@ export declare const PKCUserOptionBaseSchema: z.ZodObject<{
1070
1110
  postCid?: string | undefined;
1071
1111
  quotedCids?: string[] | undefined;
1072
1112
  crosspost?: import("./publications/comment/schema.js").Crosspost | undefined;
1113
+ gallery?: {
1114
+ [x: string]: unknown;
1115
+ url: string;
1116
+ htmlTagName: "img" | "video" | "audio";
1117
+ width?: number | undefined;
1118
+ height?: number | undefined;
1119
+ alt?: string | undefined;
1120
+ }[] | undefined;
1073
1121
  author?: {
1074
1122
  [x: string]: unknown;
1075
1123
  name?: string | undefined;
@@ -1253,6 +1301,14 @@ export declare const PKCUserOptionBaseSchema: z.ZodObject<{
1253
1301
  postCid?: string | undefined;
1254
1302
  quotedCids?: string[] | undefined;
1255
1303
  crosspost?: import("./publications/comment/schema.js").Crosspost | undefined;
1304
+ gallery?: {
1305
+ [x: string]: unknown;
1306
+ url: string;
1307
+ htmlTagName: "img" | "video" | "audio";
1308
+ width?: number | undefined;
1309
+ height?: number | undefined;
1310
+ alt?: string | undefined;
1311
+ }[] | undefined;
1256
1312
  author?: {
1257
1313
  [x: string]: unknown;
1258
1314
  name?: string | undefined;
@@ -1442,6 +1498,14 @@ export declare const PKCUserOptionBaseSchema: z.ZodObject<{
1442
1498
  postCid?: string | undefined;
1443
1499
  quotedCids?: string[] | undefined;
1444
1500
  crosspost?: import("./publications/comment/schema.js").Crosspost | undefined;
1501
+ gallery?: {
1502
+ [x: string]: unknown;
1503
+ url: string;
1504
+ htmlTagName: "img" | "video" | "audio";
1505
+ width?: number | undefined;
1506
+ height?: number | undefined;
1507
+ alt?: string | undefined;
1508
+ }[] | undefined;
1445
1509
  author?: {
1446
1510
  [x: string]: unknown;
1447
1511
  name?: string | undefined;
@@ -1902,6 +1966,14 @@ export declare const PKCUserOptionsSchema: z.ZodPipe<z.ZodObject<{
1902
1966
  postCid?: string | undefined;
1903
1967
  quotedCids?: string[] | undefined;
1904
1968
  crosspost?: import("./publications/comment/schema.js").Crosspost | undefined;
1969
+ gallery?: {
1970
+ [x: string]: unknown;
1971
+ url: string;
1972
+ htmlTagName: "img" | "video" | "audio";
1973
+ width?: number | undefined;
1974
+ height?: number | undefined;
1975
+ alt?: string | undefined;
1976
+ }[] | undefined;
1905
1977
  author?: {
1906
1978
  [x: string]: unknown;
1907
1979
  name?: string | undefined;
@@ -1971,6 +2043,14 @@ export declare const PKCUserOptionsSchema: z.ZodPipe<z.ZodObject<{
1971
2043
  postCid?: string | undefined;
1972
2044
  quotedCids?: string[] | undefined;
1973
2045
  crosspost?: import("./publications/comment/schema.js").Crosspost | undefined;
2046
+ gallery?: {
2047
+ [x: string]: unknown;
2048
+ url: string;
2049
+ htmlTagName: "img" | "video" | "audio";
2050
+ width?: number | undefined;
2051
+ height?: number | undefined;
2052
+ alt?: string | undefined;
2053
+ }[] | undefined;
1974
2054
  author?: {
1975
2055
  [x: string]: unknown;
1976
2056
  name?: string | undefined;
@@ -2154,6 +2234,14 @@ export declare const PKCUserOptionsSchema: z.ZodPipe<z.ZodObject<{
2154
2234
  postCid?: string | undefined;
2155
2235
  quotedCids?: string[] | undefined;
2156
2236
  crosspost?: import("./publications/comment/schema.js").Crosspost | undefined;
2237
+ gallery?: {
2238
+ [x: string]: unknown;
2239
+ url: string;
2240
+ htmlTagName: "img" | "video" | "audio";
2241
+ width?: number | undefined;
2242
+ height?: number | undefined;
2243
+ alt?: string | undefined;
2244
+ }[] | undefined;
2157
2245
  author?: {
2158
2246
  [x: string]: unknown;
2159
2247
  name?: string | undefined;
@@ -2343,6 +2431,14 @@ export declare const PKCUserOptionsSchema: z.ZodPipe<z.ZodObject<{
2343
2431
  postCid?: string | undefined;
2344
2432
  quotedCids?: string[] | undefined;
2345
2433
  crosspost?: import("./publications/comment/schema.js").Crosspost | undefined;
2434
+ gallery?: {
2435
+ [x: string]: unknown;
2436
+ url: string;
2437
+ htmlTagName: "img" | "video" | "audio";
2438
+ width?: number | undefined;
2439
+ height?: number | undefined;
2440
+ alt?: string | undefined;
2441
+ }[] | undefined;
2346
2442
  author?: {
2347
2443
  [x: string]: unknown;
2348
2444
  name?: string | undefined;
@@ -2460,6 +2556,14 @@ export declare const PKCUserOptionsSchema: z.ZodPipe<z.ZodObject<{
2460
2556
  postCid?: string | undefined;
2461
2557
  quotedCids?: string[] | undefined;
2462
2558
  crosspost?: import("./publications/comment/schema.js").Crosspost | undefined;
2559
+ gallery?: {
2560
+ [x: string]: unknown;
2561
+ url: string;
2562
+ htmlTagName: "img" | "video" | "audio";
2563
+ width?: number | undefined;
2564
+ height?: number | undefined;
2565
+ alt?: string | undefined;
2566
+ }[] | undefined;
2463
2567
  author?: {
2464
2568
  [x: string]: unknown;
2465
2569
  name?: string | undefined;
@@ -2529,6 +2633,14 @@ export declare const PKCUserOptionsSchema: z.ZodPipe<z.ZodObject<{
2529
2633
  postCid?: string | undefined;
2530
2634
  quotedCids?: string[] | undefined;
2531
2635
  crosspost?: import("./publications/comment/schema.js").Crosspost | undefined;
2636
+ gallery?: {
2637
+ [x: string]: unknown;
2638
+ url: string;
2639
+ htmlTagName: "img" | "video" | "audio";
2640
+ width?: number | undefined;
2641
+ height?: number | undefined;
2642
+ alt?: string | undefined;
2643
+ }[] | undefined;
2532
2644
  author?: {
2533
2645
  [x: string]: unknown;
2534
2646
  name?: string | undefined;
@@ -2712,6 +2824,14 @@ export declare const PKCUserOptionsSchema: z.ZodPipe<z.ZodObject<{
2712
2824
  postCid?: string | undefined;
2713
2825
  quotedCids?: string[] | undefined;
2714
2826
  crosspost?: import("./publications/comment/schema.js").Crosspost | undefined;
2827
+ gallery?: {
2828
+ [x: string]: unknown;
2829
+ url: string;
2830
+ htmlTagName: "img" | "video" | "audio";
2831
+ width?: number | undefined;
2832
+ height?: number | undefined;
2833
+ alt?: string | undefined;
2834
+ }[] | undefined;
2715
2835
  author?: {
2716
2836
  [x: string]: unknown;
2717
2837
  name?: string | undefined;
@@ -2901,6 +3021,14 @@ export declare const PKCUserOptionsSchema: z.ZodPipe<z.ZodObject<{
2901
3021
  postCid?: string | undefined;
2902
3022
  quotedCids?: string[] | undefined;
2903
3023
  crosspost?: import("./publications/comment/schema.js").Crosspost | undefined;
3024
+ gallery?: {
3025
+ [x: string]: unknown;
3026
+ url: string;
3027
+ htmlTagName: "img" | "video" | "audio";
3028
+ width?: number | undefined;
3029
+ height?: number | undefined;
3030
+ alt?: string | undefined;
3031
+ }[] | undefined;
2904
3032
  author?: {
2905
3033
  [x: string]: unknown;
2906
3034
  name?: string | undefined;
@@ -3215,6 +3343,14 @@ export declare const PKCUserOptionsSchema: z.ZodPipe<z.ZodObject<{
3215
3343
  postCid?: string | undefined;
3216
3344
  quotedCids?: string[] | undefined;
3217
3345
  crosspost?: import("./publications/comment/schema.js").Crosspost | undefined;
3346
+ gallery?: {
3347
+ [x: string]: unknown;
3348
+ url: string;
3349
+ htmlTagName: "img" | "video" | "audio";
3350
+ width?: number | undefined;
3351
+ height?: number | undefined;
3352
+ alt?: string | undefined;
3353
+ }[] | undefined;
3218
3354
  author?: {
3219
3355
  [x: string]: unknown;
3220
3356
  name?: string | undefined;
@@ -3284,6 +3420,14 @@ export declare const PKCUserOptionsSchema: z.ZodPipe<z.ZodObject<{
3284
3420
  postCid?: string | undefined;
3285
3421
  quotedCids?: string[] | undefined;
3286
3422
  crosspost?: import("./publications/comment/schema.js").Crosspost | undefined;
3423
+ gallery?: {
3424
+ [x: string]: unknown;
3425
+ url: string;
3426
+ htmlTagName: "img" | "video" | "audio";
3427
+ width?: number | undefined;
3428
+ height?: number | undefined;
3429
+ alt?: string | undefined;
3430
+ }[] | undefined;
3287
3431
  author?: {
3288
3432
  [x: string]: unknown;
3289
3433
  name?: string | undefined;
@@ -3467,6 +3611,14 @@ export declare const PKCUserOptionsSchema: z.ZodPipe<z.ZodObject<{
3467
3611
  postCid?: string | undefined;
3468
3612
  quotedCids?: string[] | undefined;
3469
3613
  crosspost?: import("./publications/comment/schema.js").Crosspost | undefined;
3614
+ gallery?: {
3615
+ [x: string]: unknown;
3616
+ url: string;
3617
+ htmlTagName: "img" | "video" | "audio";
3618
+ width?: number | undefined;
3619
+ height?: number | undefined;
3620
+ alt?: string | undefined;
3621
+ }[] | undefined;
3470
3622
  author?: {
3471
3623
  [x: string]: unknown;
3472
3624
  name?: string | undefined;
@@ -3656,6 +3808,14 @@ export declare const PKCUserOptionsSchema: z.ZodPipe<z.ZodObject<{
3656
3808
  postCid?: string | undefined;
3657
3809
  quotedCids?: string[] | undefined;
3658
3810
  crosspost?: import("./publications/comment/schema.js").Crosspost | undefined;
3811
+ gallery?: {
3812
+ [x: string]: unknown;
3813
+ url: string;
3814
+ htmlTagName: "img" | "video" | "audio";
3815
+ width?: number | undefined;
3816
+ height?: number | undefined;
3817
+ alt?: string | undefined;
3818
+ }[] | undefined;
3659
3819
  author?: {
3660
3820
  [x: string]: unknown;
3661
3821
  name?: string | undefined;
@@ -3961,6 +4121,14 @@ export declare const PKCUserOptionsSchema: z.ZodPipe<z.ZodObject<{
3961
4121
  postCid?: string | undefined;
3962
4122
  quotedCids?: string[] | undefined;
3963
4123
  crosspost?: import("./publications/comment/schema.js").Crosspost | undefined;
4124
+ gallery?: {
4125
+ [x: string]: unknown;
4126
+ url: string;
4127
+ htmlTagName: "img" | "video" | "audio";
4128
+ width?: number | undefined;
4129
+ height?: number | undefined;
4130
+ alt?: string | undefined;
4131
+ }[] | undefined;
3964
4132
  author?: {
3965
4133
  [x: string]: unknown;
3966
4134
  name?: string | undefined;
@@ -4030,6 +4198,14 @@ export declare const PKCUserOptionsSchema: z.ZodPipe<z.ZodObject<{
4030
4198
  postCid?: string | undefined;
4031
4199
  quotedCids?: string[] | undefined;
4032
4200
  crosspost?: import("./publications/comment/schema.js").Crosspost | undefined;
4201
+ gallery?: {
4202
+ [x: string]: unknown;
4203
+ url: string;
4204
+ htmlTagName: "img" | "video" | "audio";
4205
+ width?: number | undefined;
4206
+ height?: number | undefined;
4207
+ alt?: string | undefined;
4208
+ }[] | undefined;
4033
4209
  author?: {
4034
4210
  [x: string]: unknown;
4035
4211
  name?: string | undefined;
@@ -4213,6 +4389,14 @@ export declare const PKCUserOptionsSchema: z.ZodPipe<z.ZodObject<{
4213
4389
  postCid?: string | undefined;
4214
4390
  quotedCids?: string[] | undefined;
4215
4391
  crosspost?: import("./publications/comment/schema.js").Crosspost | undefined;
4392
+ gallery?: {
4393
+ [x: string]: unknown;
4394
+ url: string;
4395
+ htmlTagName: "img" | "video" | "audio";
4396
+ width?: number | undefined;
4397
+ height?: number | undefined;
4398
+ alt?: string | undefined;
4399
+ }[] | undefined;
4216
4400
  author?: {
4217
4401
  [x: string]: unknown;
4218
4402
  name?: string | undefined;
@@ -4402,6 +4586,14 @@ export declare const PKCUserOptionsSchema: z.ZodPipe<z.ZodObject<{
4402
4586
  postCid?: string | undefined;
4403
4587
  quotedCids?: string[] | undefined;
4404
4588
  crosspost?: import("./publications/comment/schema.js").Crosspost | undefined;
4589
+ gallery?: {
4590
+ [x: string]: unknown;
4591
+ url: string;
4592
+ htmlTagName: "img" | "video" | "audio";
4593
+ width?: number | undefined;
4594
+ height?: number | undefined;
4595
+ alt?: string | undefined;
4596
+ }[] | undefined;
4405
4597
  author?: {
4406
4598
  [x: string]: unknown;
4407
4599
  name?: string | undefined;
@@ -4868,6 +5060,14 @@ export declare const PKCParsedOptionsSchema: z.ZodObject<{
4868
5060
  postCid?: string | undefined;
4869
5061
  quotedCids?: string[] | undefined;
4870
5062
  crosspost?: import("./publications/comment/schema.js").Crosspost | undefined;
5063
+ gallery?: {
5064
+ [x: string]: unknown;
5065
+ url: string;
5066
+ htmlTagName: "img" | "video" | "audio";
5067
+ width?: number | undefined;
5068
+ height?: number | undefined;
5069
+ alt?: string | undefined;
5070
+ }[] | undefined;
4871
5071
  author?: {
4872
5072
  [x: string]: unknown;
4873
5073
  name?: string | undefined;
@@ -4937,6 +5137,14 @@ export declare const PKCParsedOptionsSchema: z.ZodObject<{
4937
5137
  postCid?: string | undefined;
4938
5138
  quotedCids?: string[] | undefined;
4939
5139
  crosspost?: import("./publications/comment/schema.js").Crosspost | undefined;
5140
+ gallery?: {
5141
+ [x: string]: unknown;
5142
+ url: string;
5143
+ htmlTagName: "img" | "video" | "audio";
5144
+ width?: number | undefined;
5145
+ height?: number | undefined;
5146
+ alt?: string | undefined;
5147
+ }[] | undefined;
4940
5148
  author?: {
4941
5149
  [x: string]: unknown;
4942
5150
  name?: string | undefined;
@@ -5120,6 +5328,14 @@ export declare const PKCParsedOptionsSchema: z.ZodObject<{
5120
5328
  postCid?: string | undefined;
5121
5329
  quotedCids?: string[] | undefined;
5122
5330
  crosspost?: import("./publications/comment/schema.js").Crosspost | undefined;
5331
+ gallery?: {
5332
+ [x: string]: unknown;
5333
+ url: string;
5334
+ htmlTagName: "img" | "video" | "audio";
5335
+ width?: number | undefined;
5336
+ height?: number | undefined;
5337
+ alt?: string | undefined;
5338
+ }[] | undefined;
5123
5339
  author?: {
5124
5340
  [x: string]: unknown;
5125
5341
  name?: string | undefined;
@@ -5309,6 +5525,14 @@ export declare const PKCParsedOptionsSchema: z.ZodObject<{
5309
5525
  postCid?: string | undefined;
5310
5526
  quotedCids?: string[] | undefined;
5311
5527
  crosspost?: import("./publications/comment/schema.js").Crosspost | undefined;
5528
+ gallery?: {
5529
+ [x: string]: unknown;
5530
+ url: string;
5531
+ htmlTagName: "img" | "video" | "audio";
5532
+ width?: number | undefined;
5533
+ height?: number | undefined;
5534
+ alt?: string | undefined;
5535
+ }[] | undefined;
5312
5536
  author?: {
5313
5537
  [x: string]: unknown;
5314
5538
  name?: string | undefined;
@@ -5426,6 +5650,14 @@ export declare const PKCParsedOptionsSchema: z.ZodObject<{
5426
5650
  postCid?: string | undefined;
5427
5651
  quotedCids?: string[] | undefined;
5428
5652
  crosspost?: import("./publications/comment/schema.js").Crosspost | undefined;
5653
+ gallery?: {
5654
+ [x: string]: unknown;
5655
+ url: string;
5656
+ htmlTagName: "img" | "video" | "audio";
5657
+ width?: number | undefined;
5658
+ height?: number | undefined;
5659
+ alt?: string | undefined;
5660
+ }[] | undefined;
5429
5661
  author?: {
5430
5662
  [x: string]: unknown;
5431
5663
  name?: string | undefined;
@@ -5495,6 +5727,14 @@ export declare const PKCParsedOptionsSchema: z.ZodObject<{
5495
5727
  postCid?: string | undefined;
5496
5728
  quotedCids?: string[] | undefined;
5497
5729
  crosspost?: import("./publications/comment/schema.js").Crosspost | undefined;
5730
+ gallery?: {
5731
+ [x: string]: unknown;
5732
+ url: string;
5733
+ htmlTagName: "img" | "video" | "audio";
5734
+ width?: number | undefined;
5735
+ height?: number | undefined;
5736
+ alt?: string | undefined;
5737
+ }[] | undefined;
5498
5738
  author?: {
5499
5739
  [x: string]: unknown;
5500
5740
  name?: string | undefined;
@@ -5678,6 +5918,14 @@ export declare const PKCParsedOptionsSchema: z.ZodObject<{
5678
5918
  postCid?: string | undefined;
5679
5919
  quotedCids?: string[] | undefined;
5680
5920
  crosspost?: import("./publications/comment/schema.js").Crosspost | undefined;
5921
+ gallery?: {
5922
+ [x: string]: unknown;
5923
+ url: string;
5924
+ htmlTagName: "img" | "video" | "audio";
5925
+ width?: number | undefined;
5926
+ height?: number | undefined;
5927
+ alt?: string | undefined;
5928
+ }[] | undefined;
5681
5929
  author?: {
5682
5930
  [x: string]: unknown;
5683
5931
  name?: string | undefined;
@@ -5867,6 +6115,14 @@ export declare const PKCParsedOptionsSchema: z.ZodObject<{
5867
6115
  postCid?: string | undefined;
5868
6116
  quotedCids?: string[] | undefined;
5869
6117
  crosspost?: import("./publications/comment/schema.js").Crosspost | undefined;
6118
+ gallery?: {
6119
+ [x: string]: unknown;
6120
+ url: string;
6121
+ htmlTagName: "img" | "video" | "audio";
6122
+ width?: number | undefined;
6123
+ height?: number | undefined;
6124
+ alt?: string | undefined;
6125
+ }[] | undefined;
5870
6126
  author?: {
5871
6127
  [x: string]: unknown;
5872
6128
  name?: string | undefined;
@@ -318,6 +318,14 @@ export declare function createDelegatedCommunityIpns(communityOpts?: Partial<Com
318
318
  postCid?: string | undefined;
319
319
  quotedCids?: string[] | undefined;
320
320
  crosspost?: import("../publications/comment/schema.js").Crosspost | undefined;
321
+ gallery?: {
322
+ [x: string]: unknown;
323
+ url: string;
324
+ htmlTagName: "img" | "video" | "audio";
325
+ width?: number | undefined;
326
+ height?: number | undefined;
327
+ alt?: string | undefined;
328
+ }[] | undefined;
321
329
  author?: {
322
330
  [x: string]: unknown;
323
331
  name?: string | undefined;
@@ -531,6 +539,8 @@ export declare function createDelegatedCommunityIpns(communityOpts?: Partial<Com
531
539
  requirePostLinkIsMedia?: boolean | undefined;
532
540
  requireReplyLink?: boolean | undefined;
533
541
  requireReplyLinkIsMedia?: boolean | undefined;
542
+ maxPostGalleryItems?: number | undefined;
543
+ maxReplyGalleryItems?: number | undefined;
534
544
  pseudonymityMode?: "per-post" | "per-reply" | "per-author" | undefined;
535
545
  } | undefined;
536
546
  suggested?: {
@@ -679,6 +689,14 @@ export declare function createMockedCommunityIpns(communityOpts: CreateNewLocalC
679
689
  postCid?: string | undefined;
680
690
  quotedCids?: string[] | undefined;
681
691
  crosspost?: import("../publications/comment/schema.js").Crosspost | undefined;
692
+ gallery?: {
693
+ [x: string]: unknown;
694
+ url: string;
695
+ htmlTagName: "img" | "video" | "audio";
696
+ width?: number | undefined;
697
+ height?: number | undefined;
698
+ alt?: string | undefined;
699
+ }[] | undefined;
682
700
  author?: {
683
701
  [x: string]: unknown;
684
702
  name?: string | undefined;
@@ -892,6 +910,8 @@ export declare function createMockedCommunityIpns(communityOpts: CreateNewLocalC
892
910
  requirePostLinkIsMedia?: boolean | undefined;
893
911
  requireReplyLink?: boolean | undefined;
894
912
  requireReplyLinkIsMedia?: boolean | undefined;
913
+ maxPostGalleryItems?: number | undefined;
914
+ maxReplyGalleryItems?: number | undefined;
895
915
  pseudonymityMode?: "per-post" | "per-reply" | "per-author" | undefined;
896
916
  } | undefined;
897
917
  suggested?: {
@@ -1049,6 +1069,14 @@ export declare function publishStaticCommunityWithPostInPages(opts?: {
1049
1069
  postCid?: string | undefined;
1050
1070
  quotedCids?: string[] | undefined;
1051
1071
  crosspost?: import("../publications/comment/schema.js").Crosspost | undefined;
1072
+ gallery?: {
1073
+ [x: string]: unknown;
1074
+ url: string;
1075
+ htmlTagName: "img" | "video" | "audio";
1076
+ width?: number | undefined;
1077
+ height?: number | undefined;
1078
+ alt?: string | undefined;
1079
+ }[] | undefined;
1052
1080
  author?: {
1053
1081
  [x: string]: unknown;
1054
1082
  name?: string | undefined;
@@ -1262,6 +1290,8 @@ export declare function publishStaticCommunityWithPostInPages(opts?: {
1262
1290
  requirePostLinkIsMedia?: boolean | undefined;
1263
1291
  requireReplyLink?: boolean | undefined;
1264
1292
  requireReplyLinkIsMedia?: boolean | undefined;
1293
+ maxPostGalleryItems?: number | undefined;
1294
+ maxReplyGalleryItems?: number | undefined;
1265
1295
  pseudonymityMode?: "per-post" | "per-reply" | "per-author" | undefined;
1266
1296
  } | undefined;
1267
1297
  suggested?: {
@@ -1399,6 +1429,8 @@ export declare function jsonifyLocalCommunityWithNoInternalProps(community: Loca
1399
1429
  requirePostLinkIsMedia?: boolean | undefined;
1400
1430
  requireReplyLink?: boolean | undefined;
1401
1431
  requireReplyLinkIsMedia?: boolean | undefined;
1432
+ maxPostGalleryItems?: number | undefined;
1433
+ maxReplyGalleryItems?: number | undefined;
1402
1434
  pseudonymityMode?: "per-post" | "per-reply" | "per-author" | undefined;
1403
1435
  } | undefined;
1404
1436
  suggested?: {
@@ -1581,6 +1613,14 @@ export declare function createCommentUpdateWithInvalidSignature(commentCid: stri
1581
1613
  postCid?: string | undefined;
1582
1614
  quotedCids?: string[] | undefined;
1583
1615
  crosspost?: import("../publications/comment/schema.js").Crosspost | undefined;
1616
+ gallery?: {
1617
+ [x: string]: unknown;
1618
+ url: string;
1619
+ htmlTagName: "img" | "video" | "audio";
1620
+ width?: number | undefined;
1621
+ height?: number | undefined;
1622
+ alt?: string | undefined;
1623
+ }[] | undefined;
1584
1624
  author?: {
1585
1625
  [x: string]: unknown;
1586
1626
  name?: string | undefined;
@@ -5,7 +5,7 @@ const pkcJsVersion = version;
5
5
  const userAgent = UserAgentSchema.parse(`/pkc-js:${pkcJsVersion}/`);
6
6
  export default {
7
7
  PKC_JS_VERSION: pkcJsVersion,
8
- DB_VERSION: 44,
8
+ DB_VERSION: 45,
9
9
  PROTOCOL_VERSION: protocolVersion,
10
10
  USER_AGENT: userAgent
11
11
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pkcprotocol/pkc-js",
3
- "version": "0.0.130",
3
+ "version": "0.0.132",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "prebuild": "node config/generate-version.js",
@@ -75,17 +75,17 @@
75
75
  },
76
76
  "dependencies": {
77
77
  "@enhances/with-resolvers": "0.0.5",
78
- "@helia/bitswap": "4.0.14",
78
+ "@helia/bitswap": "4.0.20",
79
79
  "@helia/delegated-routing-v1-http-api-client": "9.0.2",
80
- "@helia/ipns": "10.1.0",
81
- "@helia/libp2p": "2.1.3",
82
- "@helia/unixfs": "8.0.5",
83
- "@libp2p/crypto": "5.1.23",
84
- "@libp2p/fetch": "4.1.12",
85
- "@libp2p/gossipsub": "17.0.1",
86
- "@libp2p/identify": "4.1.13",
87
- "@libp2p/interface": "3.3.0",
88
- "@libp2p/peer-id": "6.0.15",
80
+ "@helia/ipns": "10.2.2",
81
+ "@helia/libp2p": "2.1.5",
82
+ "@helia/unixfs": "8.0.9",
83
+ "@libp2p/crypto": "5.2.0",
84
+ "@libp2p/fetch": "4.1.17",
85
+ "@libp2p/gossipsub": "17.2.1",
86
+ "@libp2p/identify": "4.1.18",
87
+ "@libp2p/interface": "3.4.0",
88
+ "@libp2p/peer-id": "6.0.18",
89
89
  "@multiformats/multiaddr": "13.0.3",
90
90
  "@noble/curves": "2.2.0",
91
91
  "@pkcprotocol/pkc-logger": "0.1.0",
@@ -101,7 +101,7 @@
101
101
  "cborg": "4.5.8",
102
102
  "debounce": "1.2.1",
103
103
  "ext-name": "5.0.0",
104
- "helia": "7.1.10",
104
+ "helia": "7.1.16",
105
105
  "hpagent": "1.2.0",
106
106
  "ipfs-unixfs-importer": "17.0.1",
107
107
  "ipns": "11.0.1",
@@ -110,13 +110,13 @@
110
110
  "js-sha256": "0.11.1",
111
111
  "js-sha512": "0.9.0",
112
112
  "kubo-rpc-client": "7.1.0",
113
- "libp2p": "3.3.9",
113
+ "libp2p": "3.5.1",
114
114
  "limiter-es6-compat": "2.1.2",
115
115
  "localforage": "1.10.0",
116
116
  "lodash.merge": "4.6.2",
117
117
  "lru-cache": "10.1.0",
118
118
  "multiformats": "14.0.5",
119
- "node-forge": "1.4.0",
119
+ "node-forge": "1.4.2",
120
120
  "open-graph-scraper": "6.11.0",
121
121
  "p-limit": "7.3.0",
122
122
  "p-retry": "8.0.0",
@@ -132,15 +132,15 @@
132
132
  "ts-custom-error": "3.3.1",
133
133
  "typestub-ipfs-only-hash": "4.0.0",
134
134
  "uint8arrays": "6.1.1",
135
- "undici": "7.30.1",
136
- "uuid": "13.0.1",
135
+ "undici": "8.12.3",
136
+ "uuid": "14.0.3",
137
137
  "ws": "8.22.0",
138
138
  "zod": "4.6.7"
139
139
  },
140
140
  "devDependencies": {
141
141
  "@commitlint/cli": "20.4.1",
142
142
  "@commitlint/config-conventional": "20.5.0",
143
- "@libp2p/circuit-relay-v2": "4.2.12",
143
+ "@libp2p/circuit-relay-v2": "4.2.17",
144
144
  "@release-it/conventional-changelog": "10.0.6",
145
145
  "@types/debounce": "1.2.1",
146
146
  "@types/lodash.merge": "4.6.9",
@@ -215,7 +215,7 @@
215
215
  },
216
216
  "homepage": "https://github.com/pkcprotocol/pkc-js#readme",
217
217
  "engines": {
218
- "node": ">=22"
218
+ "node": ">=22.19.0"
219
219
  },
220
220
  "config": {
221
221
  "commitizen": {