@pkcprotocol/pkc-js 0.0.107 → 0.0.108

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 (351) hide show
  1. package/README.md +15 -0
  2. package/dist/browser/clients/base-client-manager.d.ts +1 -1
  3. package/dist/browser/clients/rpc-client/rpc-schema-util.d.ts +16 -0
  4. package/dist/browser/clients/rpc-client/schema.d.ts +16 -0
  5. package/dist/browser/community/remote-community.d.ts +1 -0
  6. package/dist/browser/community/remote-community.js +1 -0
  7. package/dist/browser/community/remote-community.js.map +1 -1
  8. package/dist/browser/community/rpc-local-community.js +13 -0
  9. package/dist/browser/community/rpc-local-community.js.map +1 -1
  10. package/dist/browser/community/schema.d.ts +1369 -1
  11. package/dist/browser/community/schema.js +90 -4
  12. package/dist/browser/community/schema.js.map +1 -1
  13. package/dist/browser/community/types.d.ts +13 -2
  14. package/dist/browser/constants.d.ts +1 -0
  15. package/dist/browser/constants.js +6 -0
  16. package/dist/browser/constants.js.map +1 -1
  17. package/dist/browser/errors.d.ts +15 -1
  18. package/dist/browser/errors.js +15 -0
  19. package/dist/browser/errors.js.map +1 -1
  20. package/dist/browser/generated-version.d.ts +1 -1
  21. package/dist/browser/generated-version.js +1 -1
  22. package/dist/browser/helia/helia-for-pkc.js +41 -4
  23. package/dist/browser/helia/helia-for-pkc.js.map +1 -1
  24. package/dist/browser/helia/util.js +4 -1
  25. package/dist/browser/helia/util.js.map +1 -1
  26. package/dist/browser/index-with-compile-cache.d.ts +559 -0
  27. package/dist/browser/index.d.ts +1120 -0
  28. package/dist/browser/index.js +5 -0
  29. package/dist/browser/index.js.map +1 -1
  30. package/dist/browser/logger.js +10 -1
  31. package/dist/browser/logger.js.map +1 -1
  32. package/dist/browser/object-key-util.d.ts +2 -0
  33. package/dist/browser/object-key-util.js +12 -0
  34. package/dist/browser/object-key-util.js.map +1 -0
  35. package/dist/browser/pages/page-sort-options.d.ts +14 -0
  36. package/dist/browser/pages/page-sort-options.js +92 -0
  37. package/dist/browser/pages/page-sort-options.js.map +1 -0
  38. package/dist/browser/pages/page-sort-scoring.d.ts +35 -0
  39. package/dist/browser/pages/page-sort-scoring.js +124 -0
  40. package/dist/browser/pages/page-sort-scoring.js.map +1 -0
  41. package/dist/browser/pages/pages-client-manager.d.ts +1 -0
  42. package/dist/browser/pages/pages-client-manager.js +16 -4
  43. package/dist/browser/pages/pages-client-manager.js.map +1 -1
  44. package/dist/browser/pages/pkc-js-page-sorts/active.d.ts +3 -0
  45. package/dist/browser/pages/pkc-js-page-sorts/active.js +15 -0
  46. package/dist/browser/pages/pkc-js-page-sorts/active.js.map +1 -0
  47. package/dist/browser/pages/pkc-js-page-sorts/best.d.ts +3 -0
  48. package/dist/browser/pages/pkc-js-page-sorts/best.js +10 -0
  49. package/dist/browser/pages/pkc-js-page-sorts/best.js.map +1 -0
  50. package/dist/browser/pages/pkc-js-page-sorts/controversial.d.ts +3 -0
  51. package/dist/browser/pages/pkc-js-page-sorts/controversial.js +10 -0
  52. package/dist/browser/pages/pkc-js-page-sorts/controversial.js.map +1 -0
  53. package/dist/browser/pages/pkc-js-page-sorts/hot.d.ts +3 -0
  54. package/dist/browser/pages/pkc-js-page-sorts/hot.js +10 -0
  55. package/dist/browser/pages/pkc-js-page-sorts/hot.js.map +1 -0
  56. package/dist/browser/pages/pkc-js-page-sorts/index.d.ts +2 -0
  57. package/dist/browser/pages/pkc-js-page-sorts/index.js +37 -0
  58. package/dist/browser/pages/pkc-js-page-sorts/index.js.map +1 -0
  59. package/dist/browser/pages/pkc-js-page-sorts/new-flat.d.ts +3 -0
  60. package/dist/browser/pages/pkc-js-page-sorts/new-flat.js +12 -0
  61. package/dist/browser/pages/pkc-js-page-sorts/new-flat.js.map +1 -0
  62. package/dist/browser/pages/pkc-js-page-sorts/new.d.ts +3 -0
  63. package/dist/browser/pages/pkc-js-page-sorts/new.js +10 -0
  64. package/dist/browser/pages/pkc-js-page-sorts/new.js.map +1 -0
  65. package/dist/browser/pages/pkc-js-page-sorts/old-flat.d.ts +3 -0
  66. package/dist/browser/pages/pkc-js-page-sorts/old-flat.js +12 -0
  67. package/dist/browser/pages/pkc-js-page-sorts/old-flat.js.map +1 -0
  68. package/dist/browser/pages/pkc-js-page-sorts/old.d.ts +3 -0
  69. package/dist/browser/pages/pkc-js-page-sorts/old.js +10 -0
  70. package/dist/browser/pages/pkc-js-page-sorts/old.js.map +1 -0
  71. package/dist/browser/pages/pkc-js-page-sorts/top-all.d.ts +3 -0
  72. package/dist/browser/pages/pkc-js-page-sorts/top-all.js +10 -0
  73. package/dist/browser/pages/pkc-js-page-sorts/top-all.js.map +1 -0
  74. package/dist/browser/pages/pkc-js-page-sorts/top-day.d.ts +3 -0
  75. package/dist/browser/pages/pkc-js-page-sorts/top-day.js +11 -0
  76. package/dist/browser/pages/pkc-js-page-sorts/top-day.js.map +1 -0
  77. package/dist/browser/pages/pkc-js-page-sorts/top-hour.d.ts +3 -0
  78. package/dist/browser/pages/pkc-js-page-sorts/top-hour.js +11 -0
  79. package/dist/browser/pages/pkc-js-page-sorts/top-hour.js.map +1 -0
  80. package/dist/browser/pages/pkc-js-page-sorts/top-month.d.ts +3 -0
  81. package/dist/browser/pages/pkc-js-page-sorts/top-month.js +11 -0
  82. package/dist/browser/pages/pkc-js-page-sorts/top-month.js.map +1 -0
  83. package/dist/browser/pages/pkc-js-page-sorts/top-week.d.ts +3 -0
  84. package/dist/browser/pages/pkc-js-page-sorts/top-week.js +11 -0
  85. package/dist/browser/pages/pkc-js-page-sorts/top-week.js.map +1 -0
  86. package/dist/browser/pages/pkc-js-page-sorts/top-year.d.ts +3 -0
  87. package/dist/browser/pages/pkc-js-page-sorts/top-year.js +11 -0
  88. package/dist/browser/pages/pkc-js-page-sorts/top-year.js.map +1 -0
  89. package/dist/browser/pages/pkc-js-page-sorts/top.d.ts +3 -0
  90. package/dist/browser/pages/pkc-js-page-sorts/top.js +12 -0
  91. package/dist/browser/pages/pkc-js-page-sorts/top.js.map +1 -0
  92. package/dist/browser/pages/pkc-js-page-sorts/util.d.ts +3 -0
  93. package/dist/browser/pages/pkc-js-page-sorts/util.js +7 -0
  94. package/dist/browser/pages/pkc-js-page-sorts/util.js.map +1 -0
  95. package/dist/browser/pages/schema.d.ts +1 -0
  96. package/dist/browser/pages/schema.js +10 -3
  97. package/dist/browser/pages/schema.js.map +1 -1
  98. package/dist/browser/pages/types.d.ts +8 -0
  99. package/dist/browser/pages/util.d.ts +2 -1
  100. package/dist/browser/pages/util.js +11 -10
  101. package/dist/browser/pages/util.js.map +1 -1
  102. package/dist/browser/pkc/pkc.d.ts +2 -1
  103. package/dist/browser/pkc/pkc.js +2 -1
  104. package/dist/browser/pkc/pkc.js.map +1 -1
  105. package/dist/browser/pkc-error.d.ts +1 -1
  106. package/dist/browser/publications/comment/comment-client-manager.d.ts +2 -2
  107. package/dist/browser/publications/comment/comment-client-manager.js +3 -1
  108. package/dist/browser/publications/comment/comment-client-manager.js.map +1 -1
  109. package/dist/browser/publications/community-edit/schema.d.ts +64 -0
  110. package/dist/browser/pubsub-messages/schema.d.ts +32 -0
  111. package/dist/browser/rpc/src/index.js +14 -1
  112. package/dist/browser/rpc/src/index.js.map +1 -1
  113. package/dist/browser/rpc/src/lib/pkc-js/index.d.ts +559 -0
  114. package/dist/browser/rpc/src/schema.d.ts +3371 -0
  115. package/dist/browser/rpc/src/schema.js +6 -2
  116. package/dist/browser/rpc/src/schema.js.map +1 -1
  117. package/dist/browser/runtime/browser/community/page-sorts/index.d.ts +1 -0
  118. package/dist/browser/runtime/browser/community/page-sorts/index.js +6 -0
  119. package/dist/browser/runtime/browser/community/page-sorts/index.js.map +1 -0
  120. package/dist/browser/runtime/node/community/db-handler.d.ts +78 -20
  121. package/dist/browser/runtime/node/community/db-handler.js +1151 -734
  122. package/dist/browser/runtime/node/community/db-handler.js.map +1 -1
  123. package/dist/browser/runtime/node/community/db-row-parser.d.ts +13 -0
  124. package/dist/browser/runtime/node/community/db-row-parser.js +58 -1
  125. package/dist/browser/runtime/node/community/db-row-parser.js.map +1 -1
  126. package/dist/browser/runtime/node/community/local-community/cleanup.js +23 -10
  127. package/dist/browser/runtime/node/community/local-community/cleanup.js.map +1 -1
  128. package/dist/browser/runtime/node/community/local-community/comment-updates.d.ts +12 -2
  129. package/dist/browser/runtime/node/community/local-community/comment-updates.js +101 -70
  130. package/dist/browser/runtime/node/community/local-community/comment-updates.js.map +1 -1
  131. package/dist/browser/runtime/node/community/local-community/db-state.js +8 -0
  132. package/dist/browser/runtime/node/community/local-community/db-state.js.map +1 -1
  133. package/dist/browser/runtime/node/community/local-community/editing.d.ts +9 -2
  134. package/dist/browser/runtime/node/community/local-community/editing.js +32 -5
  135. package/dist/browser/runtime/node/community/local-community/editing.js.map +1 -1
  136. package/dist/browser/runtime/node/community/local-community/ipns-publishing.d.ts +2 -2
  137. package/dist/browser/runtime/node/community/local-community/ipns-publishing.js +49 -27
  138. package/dist/browser/runtime/node/community/local-community/ipns-publishing.js.map +1 -1
  139. package/dist/browser/runtime/node/community/local-community/lifecycle.d.ts +1 -0
  140. package/dist/browser/runtime/node/community/local-community/lifecycle.js +49 -18
  141. package/dist/browser/runtime/node/community/local-community/lifecycle.js.map +1 -1
  142. package/dist/browser/runtime/node/community/local-community.d.ts +5 -1
  143. package/dist/browser/runtime/node/community/local-community.js +13 -1
  144. package/dist/browser/runtime/node/community/local-community.js.map +1 -1
  145. package/dist/browser/runtime/node/community/page-generator.d.ts +44 -413
  146. package/dist/browser/runtime/node/community/page-generator.js +531 -308
  147. package/dist/browser/runtime/node/community/page-generator.js.map +1 -1
  148. package/dist/browser/runtime/node/community/page-sorts/index.d.ts +64 -0
  149. package/dist/browser/runtime/node/community/page-sorts/index.js +264 -0
  150. package/dist/browser/runtime/node/community/page-sorts/index.js.map +1 -0
  151. package/dist/browser/runtime/node/util.js +1 -1
  152. package/dist/browser/runtime/node/util.js.map +1 -1
  153. package/dist/browser/schema/schema-util.d.ts +142 -1
  154. package/dist/browser/schema/schema-util.js +11 -0
  155. package/dist/browser/schema/schema-util.js.map +1 -1
  156. package/dist/browser/schema/schema.js +1 -1
  157. package/dist/browser/schema/schema.js.map +1 -1
  158. package/dist/browser/schema.d.ts +4469 -0
  159. package/dist/browser/schema.js +2 -1
  160. package/dist/browser/schema.js.map +1 -1
  161. package/dist/browser/signer/signatures.d.ts +1 -1
  162. package/dist/browser/signer/signatures.js +45 -1
  163. package/dist/browser/signer/signatures.js.map +1 -1
  164. package/dist/browser/test/test-util.d.ts +63 -0
  165. package/dist/browser/test/test-util.js +66 -11
  166. package/dist/browser/test/test-util.js.map +1 -1
  167. package/dist/browser/util.d.ts +4 -0
  168. package/dist/browser/util.js +87 -0
  169. package/dist/browser/util.js.map +1 -1
  170. package/dist/browser/version.js +1 -1
  171. package/dist/bundled/bundle-manifest.json +235 -211
  172. package/dist/bundled/chunks/{helia-for-pkc-BCVI3rjp.js → helia-for-pkc-BY1wF9W8.js} +58 -34
  173. package/dist/bundled/chunks/{local-community-t5S6o-0o.js → local-community-B6i3MUzw.js} +1 -1
  174. package/dist/bundled/chunks/{local-community-CK7TUwwd.js → local-community-Dm02mfn3.js} +6719 -6055
  175. package/dist/bundled/chunks/{node-BpoCiJjL.js → node-B8rEQ_rA.js} +1201 -15
  176. package/dist/bundled/chunks/{rpc-local-community-CR1TnLfm.js → rpc-local-community-DHS2R2Vk.js} +13631 -14131
  177. package/dist/bundled/chunks/{util-bxE0EcD4.js → util-B-wz3mKY.js} +1 -1
  178. package/dist/bundled/chunks/{schema-DWRg9_bS.js → util-C6zDjhpr.js} +751 -601
  179. package/dist/bundled/index.js +2 -2
  180. package/dist/bundled/rpc/src/index.js +22 -9
  181. package/dist/node/clients/base-client-manager.d.ts +1 -1
  182. package/dist/node/clients/rpc-client/rpc-schema-util.d.ts +16 -0
  183. package/dist/node/clients/rpc-client/schema.d.ts +16 -0
  184. package/dist/node/community/remote-community.d.ts +1 -0
  185. package/dist/node/community/remote-community.js +1 -0
  186. package/dist/node/community/remote-community.js.map +1 -1
  187. package/dist/node/community/rpc-local-community.js +13 -0
  188. package/dist/node/community/rpc-local-community.js.map +1 -1
  189. package/dist/node/community/schema.d.ts +1369 -1
  190. package/dist/node/community/schema.js +90 -4
  191. package/dist/node/community/schema.js.map +1 -1
  192. package/dist/node/community/types.d.ts +13 -2
  193. package/dist/node/constants.d.ts +1 -0
  194. package/dist/node/constants.js +6 -0
  195. package/dist/node/constants.js.map +1 -1
  196. package/dist/node/errors.d.ts +15 -1
  197. package/dist/node/errors.js +15 -0
  198. package/dist/node/errors.js.map +1 -1
  199. package/dist/node/generated-version.d.ts +1 -1
  200. package/dist/node/generated-version.js +1 -1
  201. package/dist/node/helia/helia-for-pkc.js +41 -4
  202. package/dist/node/helia/helia-for-pkc.js.map +1 -1
  203. package/dist/node/helia/util.js +4 -1
  204. package/dist/node/helia/util.js.map +1 -1
  205. package/dist/node/index-with-compile-cache.d.ts +559 -0
  206. package/dist/node/index.d.ts +1120 -0
  207. package/dist/node/index.js +5 -0
  208. package/dist/node/index.js.map +1 -1
  209. package/dist/node/logger.js +10 -1
  210. package/dist/node/logger.js.map +1 -1
  211. package/dist/node/object-key-util.d.ts +2 -0
  212. package/dist/node/object-key-util.js +12 -0
  213. package/dist/node/object-key-util.js.map +1 -0
  214. package/dist/node/pages/page-sort-options.d.ts +14 -0
  215. package/dist/node/pages/page-sort-options.js +92 -0
  216. package/dist/node/pages/page-sort-options.js.map +1 -0
  217. package/dist/node/pages/page-sort-scoring.d.ts +35 -0
  218. package/dist/node/pages/page-sort-scoring.js +124 -0
  219. package/dist/node/pages/page-sort-scoring.js.map +1 -0
  220. package/dist/node/pages/pages-client-manager.d.ts +1 -0
  221. package/dist/node/pages/pages-client-manager.js +16 -4
  222. package/dist/node/pages/pages-client-manager.js.map +1 -1
  223. package/dist/node/pages/pkc-js-page-sorts/active.d.ts +3 -0
  224. package/dist/node/pages/pkc-js-page-sorts/active.js +15 -0
  225. package/dist/node/pages/pkc-js-page-sorts/active.js.map +1 -0
  226. package/dist/node/pages/pkc-js-page-sorts/best.d.ts +3 -0
  227. package/dist/node/pages/pkc-js-page-sorts/best.js +10 -0
  228. package/dist/node/pages/pkc-js-page-sorts/best.js.map +1 -0
  229. package/dist/node/pages/pkc-js-page-sorts/controversial.d.ts +3 -0
  230. package/dist/node/pages/pkc-js-page-sorts/controversial.js +10 -0
  231. package/dist/node/pages/pkc-js-page-sorts/controversial.js.map +1 -0
  232. package/dist/node/pages/pkc-js-page-sorts/hot.d.ts +3 -0
  233. package/dist/node/pages/pkc-js-page-sorts/hot.js +10 -0
  234. package/dist/node/pages/pkc-js-page-sorts/hot.js.map +1 -0
  235. package/dist/node/pages/pkc-js-page-sorts/index.d.ts +2 -0
  236. package/dist/node/pages/pkc-js-page-sorts/index.js +37 -0
  237. package/dist/node/pages/pkc-js-page-sorts/index.js.map +1 -0
  238. package/dist/node/pages/pkc-js-page-sorts/new-flat.d.ts +3 -0
  239. package/dist/node/pages/pkc-js-page-sorts/new-flat.js +12 -0
  240. package/dist/node/pages/pkc-js-page-sorts/new-flat.js.map +1 -0
  241. package/dist/node/pages/pkc-js-page-sorts/new.d.ts +3 -0
  242. package/dist/node/pages/pkc-js-page-sorts/new.js +10 -0
  243. package/dist/node/pages/pkc-js-page-sorts/new.js.map +1 -0
  244. package/dist/node/pages/pkc-js-page-sorts/old-flat.d.ts +3 -0
  245. package/dist/node/pages/pkc-js-page-sorts/old-flat.js +12 -0
  246. package/dist/node/pages/pkc-js-page-sorts/old-flat.js.map +1 -0
  247. package/dist/node/pages/pkc-js-page-sorts/old.d.ts +3 -0
  248. package/dist/node/pages/pkc-js-page-sorts/old.js +10 -0
  249. package/dist/node/pages/pkc-js-page-sorts/old.js.map +1 -0
  250. package/dist/node/pages/pkc-js-page-sorts/top-all.d.ts +3 -0
  251. package/dist/node/pages/pkc-js-page-sorts/top-all.js +10 -0
  252. package/dist/node/pages/pkc-js-page-sorts/top-all.js.map +1 -0
  253. package/dist/node/pages/pkc-js-page-sorts/top-day.d.ts +3 -0
  254. package/dist/node/pages/pkc-js-page-sorts/top-day.js +11 -0
  255. package/dist/node/pages/pkc-js-page-sorts/top-day.js.map +1 -0
  256. package/dist/node/pages/pkc-js-page-sorts/top-hour.d.ts +3 -0
  257. package/dist/node/pages/pkc-js-page-sorts/top-hour.js +11 -0
  258. package/dist/node/pages/pkc-js-page-sorts/top-hour.js.map +1 -0
  259. package/dist/node/pages/pkc-js-page-sorts/top-month.d.ts +3 -0
  260. package/dist/node/pages/pkc-js-page-sorts/top-month.js +11 -0
  261. package/dist/node/pages/pkc-js-page-sorts/top-month.js.map +1 -0
  262. package/dist/node/pages/pkc-js-page-sorts/top-week.d.ts +3 -0
  263. package/dist/node/pages/pkc-js-page-sorts/top-week.js +11 -0
  264. package/dist/node/pages/pkc-js-page-sorts/top-week.js.map +1 -0
  265. package/dist/node/pages/pkc-js-page-sorts/top-year.d.ts +3 -0
  266. package/dist/node/pages/pkc-js-page-sorts/top-year.js +11 -0
  267. package/dist/node/pages/pkc-js-page-sorts/top-year.js.map +1 -0
  268. package/dist/node/pages/pkc-js-page-sorts/top.d.ts +3 -0
  269. package/dist/node/pages/pkc-js-page-sorts/top.js +12 -0
  270. package/dist/node/pages/pkc-js-page-sorts/top.js.map +1 -0
  271. package/dist/node/pages/pkc-js-page-sorts/util.d.ts +3 -0
  272. package/dist/node/pages/pkc-js-page-sorts/util.js +7 -0
  273. package/dist/node/pages/pkc-js-page-sorts/util.js.map +1 -0
  274. package/dist/node/pages/schema.d.ts +1 -0
  275. package/dist/node/pages/schema.js +10 -3
  276. package/dist/node/pages/schema.js.map +1 -1
  277. package/dist/node/pages/types.d.ts +8 -0
  278. package/dist/node/pages/util.d.ts +2 -1
  279. package/dist/node/pages/util.js +11 -10
  280. package/dist/node/pages/util.js.map +1 -1
  281. package/dist/node/pkc/pkc.d.ts +2 -1
  282. package/dist/node/pkc/pkc.js +2 -1
  283. package/dist/node/pkc/pkc.js.map +1 -1
  284. package/dist/node/pkc-error.d.ts +1 -1
  285. package/dist/node/publications/comment/comment-client-manager.d.ts +2 -2
  286. package/dist/node/publications/comment/comment-client-manager.js +3 -1
  287. package/dist/node/publications/comment/comment-client-manager.js.map +1 -1
  288. package/dist/node/publications/community-edit/schema.d.ts +64 -0
  289. package/dist/node/pubsub-messages/schema.d.ts +32 -0
  290. package/dist/node/rpc/src/index.js +14 -1
  291. package/dist/node/rpc/src/index.js.map +1 -1
  292. package/dist/node/rpc/src/lib/pkc-js/index.d.ts +559 -0
  293. package/dist/node/rpc/src/schema.d.ts +3371 -0
  294. package/dist/node/rpc/src/schema.js +6 -2
  295. package/dist/node/rpc/src/schema.js.map +1 -1
  296. package/dist/node/runtime/browser/community/page-sorts/index.d.ts +1 -0
  297. package/dist/node/runtime/browser/community/page-sorts/index.js +6 -0
  298. package/dist/node/runtime/browser/community/page-sorts/index.js.map +1 -0
  299. package/dist/node/runtime/node/community/db-handler.d.ts +78 -20
  300. package/dist/node/runtime/node/community/db-handler.js +1151 -734
  301. package/dist/node/runtime/node/community/db-handler.js.map +1 -1
  302. package/dist/node/runtime/node/community/db-row-parser.d.ts +13 -0
  303. package/dist/node/runtime/node/community/db-row-parser.js +58 -1
  304. package/dist/node/runtime/node/community/db-row-parser.js.map +1 -1
  305. package/dist/node/runtime/node/community/local-community/cleanup.js +23 -10
  306. package/dist/node/runtime/node/community/local-community/cleanup.js.map +1 -1
  307. package/dist/node/runtime/node/community/local-community/comment-updates.d.ts +12 -2
  308. package/dist/node/runtime/node/community/local-community/comment-updates.js +101 -70
  309. package/dist/node/runtime/node/community/local-community/comment-updates.js.map +1 -1
  310. package/dist/node/runtime/node/community/local-community/db-state.js +8 -0
  311. package/dist/node/runtime/node/community/local-community/db-state.js.map +1 -1
  312. package/dist/node/runtime/node/community/local-community/editing.d.ts +9 -2
  313. package/dist/node/runtime/node/community/local-community/editing.js +32 -5
  314. package/dist/node/runtime/node/community/local-community/editing.js.map +1 -1
  315. package/dist/node/runtime/node/community/local-community/ipns-publishing.d.ts +2 -2
  316. package/dist/node/runtime/node/community/local-community/ipns-publishing.js +49 -27
  317. package/dist/node/runtime/node/community/local-community/ipns-publishing.js.map +1 -1
  318. package/dist/node/runtime/node/community/local-community/lifecycle.d.ts +1 -0
  319. package/dist/node/runtime/node/community/local-community/lifecycle.js +49 -18
  320. package/dist/node/runtime/node/community/local-community/lifecycle.js.map +1 -1
  321. package/dist/node/runtime/node/community/local-community.d.ts +5 -1
  322. package/dist/node/runtime/node/community/local-community.js +13 -1
  323. package/dist/node/runtime/node/community/local-community.js.map +1 -1
  324. package/dist/node/runtime/node/community/page-generator.d.ts +44 -413
  325. package/dist/node/runtime/node/community/page-generator.js +531 -308
  326. package/dist/node/runtime/node/community/page-generator.js.map +1 -1
  327. package/dist/node/runtime/node/community/page-sorts/index.d.ts +64 -0
  328. package/dist/node/runtime/node/community/page-sorts/index.js +264 -0
  329. package/dist/node/runtime/node/community/page-sorts/index.js.map +1 -0
  330. package/dist/node/runtime/node/util.js +1 -1
  331. package/dist/node/runtime/node/util.js.map +1 -1
  332. package/dist/node/schema/schema-util.d.ts +142 -1
  333. package/dist/node/schema/schema-util.js +11 -0
  334. package/dist/node/schema/schema-util.js.map +1 -1
  335. package/dist/node/schema/schema.js +1 -1
  336. package/dist/node/schema/schema.js.map +1 -1
  337. package/dist/node/schema.d.ts +4469 -0
  338. package/dist/node/schema.js +2 -1
  339. package/dist/node/schema.js.map +1 -1
  340. package/dist/node/signer/signatures.d.ts +1 -1
  341. package/dist/node/signer/signatures.js +45 -1
  342. package/dist/node/signer/signatures.js.map +1 -1
  343. package/dist/node/test/test-util.d.ts +63 -0
  344. package/dist/node/test/test-util.js +66 -11
  345. package/dist/node/test/test-util.js.map +1 -1
  346. package/dist/node/util.d.ts +4 -0
  347. package/dist/node/util.js +87 -0
  348. package/dist/node/util.js.map +1 -1
  349. package/dist/node/version.js +1 -1
  350. package/package.json +2 -2
  351. package/dist/bundled/chunks/{src-Dz9wtvrK.js → src-B07ldGHS.js} +1 -1
@@ -384,6 +384,1123 @@ export declare const PKCUserOptionBaseSchema: z.ZodObject<{
384
384
  }, z.core.$strict>;
385
385
  }, z.core.$strip>], null>, z.ZodVoid>>;
386
386
  }, z.core.$loose>>>>>;
387
+ pageSorts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodCustom<z.core.$InferInnerFunctionType<z.ZodTuple<readonly [z.ZodObject<{
388
+ pageSortSettings: z.ZodObject<{
389
+ path: z.ZodOptional<z.ZodString>;
390
+ name: z.ZodOptional<z.ZodString>;
391
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
392
+ preloaded: z.ZodOptional<z.ZodBoolean>;
393
+ privateOptions: z.ZodOptional<z.ZodArray<z.ZodString>>;
394
+ }, z.core.$strict>;
395
+ }, z.core.$strip>], null>, z.ZodObject<{
396
+ sortName: z.ZodString;
397
+ description: z.ZodOptional<z.ZodString>;
398
+ optionInputs: z.ZodOptional<z.ZodArray<z.ZodObject<{
399
+ option: z.ZodString;
400
+ label: z.ZodString;
401
+ default: z.ZodOptional<z.ZodString>;
402
+ description: z.ZodOptional<z.ZodString>;
403
+ placeholder: z.ZodOptional<z.ZodString>;
404
+ required: z.ZodOptional<z.ZodBoolean>;
405
+ }, z.core.$loose>>>;
406
+ scope: z.ZodOptional<z.ZodEnum<{
407
+ posts: "posts";
408
+ replies: "replies";
409
+ }>>;
410
+ flat: z.ZodOptional<z.ZodBoolean>;
411
+ defaultOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
412
+ requireReplies: z.ZodOptional<z.ZodBoolean>;
413
+ score: z.ZodFunction<z.ZodTuple<readonly [z.ZodObject<{
414
+ comment: z.ZodCustom<{
415
+ [x: string]: unknown;
416
+ timestamp: number;
417
+ signature: {
418
+ type: string;
419
+ signature: string;
420
+ publicKey: string;
421
+ signedPropertyNames: string[];
422
+ };
423
+ protocolVersion: string;
424
+ depth: number;
425
+ flairs?: {
426
+ [x: string]: unknown;
427
+ text: string;
428
+ backgroundColor?: string | undefined;
429
+ textColor?: string | undefined;
430
+ expiresAt?: number | undefined;
431
+ }[] | undefined;
432
+ communityPublicKey?: string | undefined;
433
+ communityName?: string | undefined;
434
+ link?: string | undefined;
435
+ spoiler?: boolean | undefined;
436
+ nsfw?: boolean | undefined;
437
+ content?: string | undefined;
438
+ title?: string | undefined;
439
+ linkWidth?: number | undefined;
440
+ linkHeight?: number | undefined;
441
+ linkHtmlTagName?: string | undefined;
442
+ parentCid?: string | undefined;
443
+ postCid?: string | undefined;
444
+ quotedCids?: string[] | undefined;
445
+ crosspost?: import("./publications/comment/schema.js").Crosspost | undefined;
446
+ author?: {
447
+ [x: string]: unknown;
448
+ name?: string | undefined;
449
+ previousCommentCid?: string | undefined;
450
+ displayName?: string | undefined;
451
+ wallets?: Record<string, {
452
+ address: string;
453
+ timestamp: number;
454
+ signature: {
455
+ signature: string;
456
+ type: string;
457
+ };
458
+ }> | undefined;
459
+ avatar?: {
460
+ [x: string]: unknown;
461
+ chainTicker: string;
462
+ address: string;
463
+ id: string;
464
+ timestamp: number;
465
+ signature: {
466
+ signature: string;
467
+ type: string;
468
+ };
469
+ } | undefined;
470
+ flairs?: {
471
+ [x: string]: unknown;
472
+ text: string;
473
+ backgroundColor?: string | undefined;
474
+ textColor?: string | undefined;
475
+ expiresAt?: number | undefined;
476
+ }[] | undefined;
477
+ } | undefined;
478
+ thumbnailUrl?: string | undefined;
479
+ thumbnailUrlWidth?: number | undefined;
480
+ thumbnailUrlHeight?: number | undefined;
481
+ previousCid?: string | undefined;
482
+ pseudonymityMode?: "per-post" | "per-reply" | "per-author" | undefined;
483
+ }, {
484
+ [x: string]: unknown;
485
+ timestamp: number;
486
+ signature: {
487
+ type: string;
488
+ signature: string;
489
+ publicKey: string;
490
+ signedPropertyNames: string[];
491
+ };
492
+ protocolVersion: string;
493
+ depth: number;
494
+ flairs?: {
495
+ [x: string]: unknown;
496
+ text: string;
497
+ backgroundColor?: string | undefined;
498
+ textColor?: string | undefined;
499
+ expiresAt?: number | undefined;
500
+ }[] | undefined;
501
+ communityPublicKey?: string | undefined;
502
+ communityName?: string | undefined;
503
+ link?: string | undefined;
504
+ spoiler?: boolean | undefined;
505
+ nsfw?: boolean | undefined;
506
+ content?: string | undefined;
507
+ title?: string | undefined;
508
+ linkWidth?: number | undefined;
509
+ linkHeight?: number | undefined;
510
+ linkHtmlTagName?: string | undefined;
511
+ parentCid?: string | undefined;
512
+ postCid?: string | undefined;
513
+ quotedCids?: string[] | undefined;
514
+ crosspost?: import("./publications/comment/schema.js").Crosspost | undefined;
515
+ author?: {
516
+ [x: string]: unknown;
517
+ name?: string | undefined;
518
+ previousCommentCid?: string | undefined;
519
+ displayName?: string | undefined;
520
+ wallets?: Record<string, {
521
+ address: string;
522
+ timestamp: number;
523
+ signature: {
524
+ signature: string;
525
+ type: string;
526
+ };
527
+ }> | undefined;
528
+ avatar?: {
529
+ [x: string]: unknown;
530
+ chainTicker: string;
531
+ address: string;
532
+ id: string;
533
+ timestamp: number;
534
+ signature: {
535
+ signature: string;
536
+ type: string;
537
+ };
538
+ } | undefined;
539
+ flairs?: {
540
+ [x: string]: unknown;
541
+ text: string;
542
+ backgroundColor?: string | undefined;
543
+ textColor?: string | undefined;
544
+ expiresAt?: number | undefined;
545
+ }[] | undefined;
546
+ } | undefined;
547
+ thumbnailUrl?: string | undefined;
548
+ thumbnailUrlWidth?: number | undefined;
549
+ thumbnailUrlHeight?: number | undefined;
550
+ previousCid?: string | undefined;
551
+ pseudonymityMode?: "per-post" | "per-reply" | "per-author" | undefined;
552
+ }>;
553
+ commentUpdate: z.ZodCustom<{
554
+ [x: string]: unknown;
555
+ cid: string;
556
+ upvoteCount: number;
557
+ downvoteCount: number;
558
+ replyCount: number;
559
+ updatedAt: number;
560
+ signature: {
561
+ type: string;
562
+ signature: string;
563
+ publicKey: string;
564
+ signedPropertyNames: string[];
565
+ };
566
+ protocolVersion: string;
567
+ childCount?: number | undefined;
568
+ number?: number | undefined;
569
+ postNumber?: number | undefined;
570
+ edit?: {
571
+ [x: string]: unknown;
572
+ timestamp: number;
573
+ signature: {
574
+ type: string;
575
+ signature: string;
576
+ publicKey: string;
577
+ signedPropertyNames: string[];
578
+ };
579
+ protocolVersion: string;
580
+ commentCid: string;
581
+ flairs?: {
582
+ [x: string]: unknown;
583
+ text: string;
584
+ backgroundColor?: string | undefined;
585
+ textColor?: string | undefined;
586
+ expiresAt?: number | undefined;
587
+ }[] | undefined;
588
+ communityPublicKey?: string | undefined;
589
+ communityName?: string | undefined;
590
+ spoiler?: boolean | undefined;
591
+ nsfw?: boolean | undefined;
592
+ reason?: string | undefined;
593
+ content?: string | undefined;
594
+ deleted?: boolean | undefined;
595
+ author?: {
596
+ [x: string]: unknown;
597
+ name?: string | undefined;
598
+ previousCommentCid?: string | undefined;
599
+ displayName?: string | undefined;
600
+ wallets?: Record<string, {
601
+ address: string;
602
+ timestamp: number;
603
+ signature: {
604
+ signature: string;
605
+ type: string;
606
+ };
607
+ }> | undefined;
608
+ avatar?: {
609
+ [x: string]: unknown;
610
+ chainTicker: string;
611
+ address: string;
612
+ id: string;
613
+ timestamp: number;
614
+ signature: {
615
+ signature: string;
616
+ type: string;
617
+ };
618
+ } | undefined;
619
+ flairs?: {
620
+ [x: string]: unknown;
621
+ text: string;
622
+ backgroundColor?: string | undefined;
623
+ textColor?: string | undefined;
624
+ expiresAt?: number | undefined;
625
+ }[] | undefined;
626
+ } | undefined;
627
+ } | undefined;
628
+ flairs?: {
629
+ [x: string]: unknown;
630
+ text: string;
631
+ backgroundColor?: string | undefined;
632
+ textColor?: string | undefined;
633
+ expiresAt?: number | undefined;
634
+ }[] | undefined;
635
+ spoiler?: boolean | undefined;
636
+ nsfw?: boolean | undefined;
637
+ pinned?: boolean | undefined;
638
+ locked?: boolean | undefined;
639
+ archived?: boolean | undefined;
640
+ removed?: boolean | undefined;
641
+ reason?: string | undefined;
642
+ approved?: boolean | undefined;
643
+ author?: {
644
+ [x: string]: unknown;
645
+ community?: {
646
+ [x: string]: unknown;
647
+ postScore: number;
648
+ replyScore: number;
649
+ firstCommentTimestamp: number;
650
+ lastCommentCid: string;
651
+ banExpiresAt?: number | undefined;
652
+ flairs?: {
653
+ [x: string]: unknown;
654
+ text: string;
655
+ backgroundColor?: string | undefined;
656
+ textColor?: string | undefined;
657
+ expiresAt?: number | undefined;
658
+ }[] | undefined;
659
+ } | undefined;
660
+ } | undefined;
661
+ lastChildCid?: string | undefined;
662
+ lastReplyTimestamp?: number | undefined;
663
+ replies?: {
664
+ pages: Record<string, {
665
+ comments: {
666
+ comment: {
667
+ [x: string]: unknown;
668
+ timestamp: number;
669
+ signature: {
670
+ type: string;
671
+ signature: string;
672
+ publicKey: string;
673
+ signedPropertyNames: string[];
674
+ };
675
+ protocolVersion: string;
676
+ depth: number;
677
+ flairs?: {
678
+ [x: string]: unknown;
679
+ text: string;
680
+ backgroundColor?: string | undefined;
681
+ textColor?: string | undefined;
682
+ expiresAt?: number | undefined;
683
+ }[] | undefined;
684
+ communityPublicKey?: string | undefined;
685
+ communityName?: string | undefined;
686
+ link?: string | undefined;
687
+ spoiler?: boolean | undefined;
688
+ nsfw?: boolean | undefined;
689
+ content?: string | undefined;
690
+ title?: string | undefined;
691
+ linkWidth?: number | undefined;
692
+ linkHeight?: number | undefined;
693
+ linkHtmlTagName?: string | undefined;
694
+ parentCid?: string | undefined;
695
+ postCid?: string | undefined;
696
+ quotedCids?: string[] | undefined;
697
+ crosspost?: import("./publications/comment/schema.js").Crosspost | undefined;
698
+ author?: {
699
+ [x: string]: unknown;
700
+ name?: string | undefined;
701
+ previousCommentCid?: string | undefined;
702
+ displayName?: string | undefined;
703
+ wallets?: Record<string, {
704
+ address: string;
705
+ timestamp: number;
706
+ signature: {
707
+ signature: string;
708
+ type: string;
709
+ };
710
+ }> | undefined;
711
+ avatar?: {
712
+ [x: string]: unknown;
713
+ chainTicker: string;
714
+ address: string;
715
+ id: string;
716
+ timestamp: number;
717
+ signature: {
718
+ signature: string;
719
+ type: string;
720
+ };
721
+ } | undefined;
722
+ flairs?: {
723
+ [x: string]: unknown;
724
+ text: string;
725
+ backgroundColor?: string | undefined;
726
+ textColor?: string | undefined;
727
+ expiresAt?: number | undefined;
728
+ }[] | undefined;
729
+ } | undefined;
730
+ thumbnailUrl?: string | undefined;
731
+ thumbnailUrlWidth?: number | undefined;
732
+ thumbnailUrlHeight?: number | undefined;
733
+ previousCid?: string | undefined;
734
+ pseudonymityMode?: "per-post" | "per-reply" | "per-author" | undefined;
735
+ };
736
+ commentUpdate: /*elided*/ any;
737
+ }[];
738
+ nextCid?: string | undefined;
739
+ }>;
740
+ pageCids?: Record<string, string> | undefined;
741
+ } | undefined;
742
+ }, {
743
+ [x: string]: unknown;
744
+ cid: string;
745
+ upvoteCount: number;
746
+ downvoteCount: number;
747
+ replyCount: number;
748
+ updatedAt: number;
749
+ signature: {
750
+ type: string;
751
+ signature: string;
752
+ publicKey: string;
753
+ signedPropertyNames: string[];
754
+ };
755
+ protocolVersion: string;
756
+ childCount?: number | undefined;
757
+ number?: number | undefined;
758
+ postNumber?: number | undefined;
759
+ edit?: {
760
+ [x: string]: unknown;
761
+ timestamp: number;
762
+ signature: {
763
+ type: string;
764
+ signature: string;
765
+ publicKey: string;
766
+ signedPropertyNames: string[];
767
+ };
768
+ protocolVersion: string;
769
+ commentCid: string;
770
+ flairs?: {
771
+ [x: string]: unknown;
772
+ text: string;
773
+ backgroundColor?: string | undefined;
774
+ textColor?: string | undefined;
775
+ expiresAt?: number | undefined;
776
+ }[] | undefined;
777
+ communityPublicKey?: string | undefined;
778
+ communityName?: string | undefined;
779
+ spoiler?: boolean | undefined;
780
+ nsfw?: boolean | undefined;
781
+ reason?: string | undefined;
782
+ content?: string | undefined;
783
+ deleted?: boolean | undefined;
784
+ author?: {
785
+ [x: string]: unknown;
786
+ name?: string | undefined;
787
+ previousCommentCid?: string | undefined;
788
+ displayName?: string | undefined;
789
+ wallets?: Record<string, {
790
+ address: string;
791
+ timestamp: number;
792
+ signature: {
793
+ signature: string;
794
+ type: string;
795
+ };
796
+ }> | undefined;
797
+ avatar?: {
798
+ [x: string]: unknown;
799
+ chainTicker: string;
800
+ address: string;
801
+ id: string;
802
+ timestamp: number;
803
+ signature: {
804
+ signature: string;
805
+ type: string;
806
+ };
807
+ } | undefined;
808
+ flairs?: {
809
+ [x: string]: unknown;
810
+ text: string;
811
+ backgroundColor?: string | undefined;
812
+ textColor?: string | undefined;
813
+ expiresAt?: number | undefined;
814
+ }[] | undefined;
815
+ } | undefined;
816
+ } | undefined;
817
+ flairs?: {
818
+ [x: string]: unknown;
819
+ text: string;
820
+ backgroundColor?: string | undefined;
821
+ textColor?: string | undefined;
822
+ expiresAt?: number | undefined;
823
+ }[] | undefined;
824
+ spoiler?: boolean | undefined;
825
+ nsfw?: boolean | undefined;
826
+ pinned?: boolean | undefined;
827
+ locked?: boolean | undefined;
828
+ archived?: boolean | undefined;
829
+ removed?: boolean | undefined;
830
+ reason?: string | undefined;
831
+ approved?: boolean | undefined;
832
+ author?: {
833
+ [x: string]: unknown;
834
+ community?: {
835
+ [x: string]: unknown;
836
+ postScore: number;
837
+ replyScore: number;
838
+ firstCommentTimestamp: number;
839
+ lastCommentCid: string;
840
+ banExpiresAt?: number | undefined;
841
+ flairs?: {
842
+ [x: string]: unknown;
843
+ text: string;
844
+ backgroundColor?: string | undefined;
845
+ textColor?: string | undefined;
846
+ expiresAt?: number | undefined;
847
+ }[] | undefined;
848
+ } | undefined;
849
+ } | undefined;
850
+ lastChildCid?: string | undefined;
851
+ lastReplyTimestamp?: number | undefined;
852
+ replies?: {
853
+ pages: Record<string, {
854
+ comments: {
855
+ comment: {
856
+ [x: string]: unknown;
857
+ timestamp: number;
858
+ signature: {
859
+ type: string;
860
+ signature: string;
861
+ publicKey: string;
862
+ signedPropertyNames: string[];
863
+ };
864
+ protocolVersion: string;
865
+ depth: number;
866
+ flairs?: {
867
+ [x: string]: unknown;
868
+ text: string;
869
+ backgroundColor?: string | undefined;
870
+ textColor?: string | undefined;
871
+ expiresAt?: number | undefined;
872
+ }[] | undefined;
873
+ communityPublicKey?: string | undefined;
874
+ communityName?: string | undefined;
875
+ link?: string | undefined;
876
+ spoiler?: boolean | undefined;
877
+ nsfw?: boolean | undefined;
878
+ content?: string | undefined;
879
+ title?: string | undefined;
880
+ linkWidth?: number | undefined;
881
+ linkHeight?: number | undefined;
882
+ linkHtmlTagName?: string | undefined;
883
+ parentCid?: string | undefined;
884
+ postCid?: string | undefined;
885
+ quotedCids?: string[] | undefined;
886
+ crosspost?: import("./publications/comment/schema.js").Crosspost | undefined;
887
+ author?: {
888
+ [x: string]: unknown;
889
+ name?: string | undefined;
890
+ previousCommentCid?: string | undefined;
891
+ displayName?: string | undefined;
892
+ wallets?: Record<string, {
893
+ address: string;
894
+ timestamp: number;
895
+ signature: {
896
+ signature: string;
897
+ type: string;
898
+ };
899
+ }> | undefined;
900
+ avatar?: {
901
+ [x: string]: unknown;
902
+ chainTicker: string;
903
+ address: string;
904
+ id: string;
905
+ timestamp: number;
906
+ signature: {
907
+ signature: string;
908
+ type: string;
909
+ };
910
+ } | undefined;
911
+ flairs?: {
912
+ [x: string]: unknown;
913
+ text: string;
914
+ backgroundColor?: string | undefined;
915
+ textColor?: string | undefined;
916
+ expiresAt?: number | undefined;
917
+ }[] | undefined;
918
+ } | undefined;
919
+ thumbnailUrl?: string | undefined;
920
+ thumbnailUrlWidth?: number | undefined;
921
+ thumbnailUrlHeight?: number | undefined;
922
+ previousCid?: string | undefined;
923
+ pseudonymityMode?: "per-post" | "per-reply" | "per-author" | undefined;
924
+ };
925
+ commentUpdate: /*elided*/ any;
926
+ }[];
927
+ nextCid?: string | undefined;
928
+ }>;
929
+ pageCids?: Record<string, string> | undefined;
930
+ } | undefined;
931
+ }>;
932
+ options: z.ZodRecord<z.ZodString, z.ZodString>;
933
+ baseTimestamp: z.ZodNumber;
934
+ replies: z.ZodOptional<z.ZodArray<z.ZodCustom<import("./index.js").PageSortReplyEntry, import("./index.js").PageSortReplyEntry>>>;
935
+ }, z.core.$strip>], null>, z.ZodNullable<z.ZodNumber>>;
936
+ validatePageSortSettings: z.ZodOptional<z.ZodFunction<z.ZodTuple<readonly [z.ZodObject<{
937
+ pageSortSettings: z.ZodObject<{
938
+ path: z.ZodOptional<z.ZodString>;
939
+ name: z.ZodOptional<z.ZodString>;
940
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
941
+ preloaded: z.ZodOptional<z.ZodBoolean>;
942
+ privateOptions: z.ZodOptional<z.ZodArray<z.ZodString>>;
943
+ }, z.core.$strict>;
944
+ }, z.core.$strip>], null>, z.ZodVoid>>;
945
+ }, z.core.$loose>>, z.core.$InferInnerFunctionType<z.ZodTuple<readonly [z.ZodObject<{
946
+ pageSortSettings: z.ZodObject<{
947
+ path: z.ZodOptional<z.ZodString>;
948
+ name: z.ZodOptional<z.ZodString>;
949
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
950
+ preloaded: z.ZodOptional<z.ZodBoolean>;
951
+ privateOptions: z.ZodOptional<z.ZodArray<z.ZodString>>;
952
+ }, z.core.$strict>;
953
+ }, z.core.$strip>], null>, z.ZodObject<{
954
+ sortName: z.ZodString;
955
+ description: z.ZodOptional<z.ZodString>;
956
+ optionInputs: z.ZodOptional<z.ZodArray<z.ZodObject<{
957
+ option: z.ZodString;
958
+ label: z.ZodString;
959
+ default: z.ZodOptional<z.ZodString>;
960
+ description: z.ZodOptional<z.ZodString>;
961
+ placeholder: z.ZodOptional<z.ZodString>;
962
+ required: z.ZodOptional<z.ZodBoolean>;
963
+ }, z.core.$loose>>>;
964
+ scope: z.ZodOptional<z.ZodEnum<{
965
+ posts: "posts";
966
+ replies: "replies";
967
+ }>>;
968
+ flat: z.ZodOptional<z.ZodBoolean>;
969
+ defaultOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
970
+ requireReplies: z.ZodOptional<z.ZodBoolean>;
971
+ score: z.ZodFunction<z.ZodTuple<readonly [z.ZodObject<{
972
+ comment: z.ZodCustom<{
973
+ [x: string]: unknown;
974
+ timestamp: number;
975
+ signature: {
976
+ type: string;
977
+ signature: string;
978
+ publicKey: string;
979
+ signedPropertyNames: string[];
980
+ };
981
+ protocolVersion: string;
982
+ depth: number;
983
+ flairs?: {
984
+ [x: string]: unknown;
985
+ text: string;
986
+ backgroundColor?: string | undefined;
987
+ textColor?: string | undefined;
988
+ expiresAt?: number | undefined;
989
+ }[] | undefined;
990
+ communityPublicKey?: string | undefined;
991
+ communityName?: string | undefined;
992
+ link?: string | undefined;
993
+ spoiler?: boolean | undefined;
994
+ nsfw?: boolean | undefined;
995
+ content?: string | undefined;
996
+ title?: string | undefined;
997
+ linkWidth?: number | undefined;
998
+ linkHeight?: number | undefined;
999
+ linkHtmlTagName?: string | undefined;
1000
+ parentCid?: string | undefined;
1001
+ postCid?: string | undefined;
1002
+ quotedCids?: string[] | undefined;
1003
+ crosspost?: import("./publications/comment/schema.js").Crosspost | undefined;
1004
+ author?: {
1005
+ [x: string]: unknown;
1006
+ name?: string | undefined;
1007
+ previousCommentCid?: string | undefined;
1008
+ displayName?: string | undefined;
1009
+ wallets?: Record<string, {
1010
+ address: string;
1011
+ timestamp: number;
1012
+ signature: {
1013
+ signature: string;
1014
+ type: string;
1015
+ };
1016
+ }> | undefined;
1017
+ avatar?: {
1018
+ [x: string]: unknown;
1019
+ chainTicker: string;
1020
+ address: string;
1021
+ id: string;
1022
+ timestamp: number;
1023
+ signature: {
1024
+ signature: string;
1025
+ type: string;
1026
+ };
1027
+ } | undefined;
1028
+ flairs?: {
1029
+ [x: string]: unknown;
1030
+ text: string;
1031
+ backgroundColor?: string | undefined;
1032
+ textColor?: string | undefined;
1033
+ expiresAt?: number | undefined;
1034
+ }[] | undefined;
1035
+ } | undefined;
1036
+ thumbnailUrl?: string | undefined;
1037
+ thumbnailUrlWidth?: number | undefined;
1038
+ thumbnailUrlHeight?: number | undefined;
1039
+ previousCid?: string | undefined;
1040
+ pseudonymityMode?: "per-post" | "per-reply" | "per-author" | undefined;
1041
+ }, {
1042
+ [x: string]: unknown;
1043
+ timestamp: number;
1044
+ signature: {
1045
+ type: string;
1046
+ signature: string;
1047
+ publicKey: string;
1048
+ signedPropertyNames: string[];
1049
+ };
1050
+ protocolVersion: string;
1051
+ depth: number;
1052
+ flairs?: {
1053
+ [x: string]: unknown;
1054
+ text: string;
1055
+ backgroundColor?: string | undefined;
1056
+ textColor?: string | undefined;
1057
+ expiresAt?: number | undefined;
1058
+ }[] | undefined;
1059
+ communityPublicKey?: string | undefined;
1060
+ communityName?: string | undefined;
1061
+ link?: string | undefined;
1062
+ spoiler?: boolean | undefined;
1063
+ nsfw?: boolean | undefined;
1064
+ content?: string | undefined;
1065
+ title?: string | undefined;
1066
+ linkWidth?: number | undefined;
1067
+ linkHeight?: number | undefined;
1068
+ linkHtmlTagName?: string | undefined;
1069
+ parentCid?: string | undefined;
1070
+ postCid?: string | undefined;
1071
+ quotedCids?: string[] | undefined;
1072
+ crosspost?: import("./publications/comment/schema.js").Crosspost | undefined;
1073
+ author?: {
1074
+ [x: string]: unknown;
1075
+ name?: string | undefined;
1076
+ previousCommentCid?: string | undefined;
1077
+ displayName?: string | undefined;
1078
+ wallets?: Record<string, {
1079
+ address: string;
1080
+ timestamp: number;
1081
+ signature: {
1082
+ signature: string;
1083
+ type: string;
1084
+ };
1085
+ }> | undefined;
1086
+ avatar?: {
1087
+ [x: string]: unknown;
1088
+ chainTicker: string;
1089
+ address: string;
1090
+ id: string;
1091
+ timestamp: number;
1092
+ signature: {
1093
+ signature: string;
1094
+ type: string;
1095
+ };
1096
+ } | undefined;
1097
+ flairs?: {
1098
+ [x: string]: unknown;
1099
+ text: string;
1100
+ backgroundColor?: string | undefined;
1101
+ textColor?: string | undefined;
1102
+ expiresAt?: number | undefined;
1103
+ }[] | undefined;
1104
+ } | undefined;
1105
+ thumbnailUrl?: string | undefined;
1106
+ thumbnailUrlWidth?: number | undefined;
1107
+ thumbnailUrlHeight?: number | undefined;
1108
+ previousCid?: string | undefined;
1109
+ pseudonymityMode?: "per-post" | "per-reply" | "per-author" | undefined;
1110
+ }>;
1111
+ commentUpdate: z.ZodCustom<{
1112
+ [x: string]: unknown;
1113
+ cid: string;
1114
+ upvoteCount: number;
1115
+ downvoteCount: number;
1116
+ replyCount: number;
1117
+ updatedAt: number;
1118
+ signature: {
1119
+ type: string;
1120
+ signature: string;
1121
+ publicKey: string;
1122
+ signedPropertyNames: string[];
1123
+ };
1124
+ protocolVersion: string;
1125
+ childCount?: number | undefined;
1126
+ number?: number | undefined;
1127
+ postNumber?: number | undefined;
1128
+ edit?: {
1129
+ [x: string]: unknown;
1130
+ timestamp: number;
1131
+ signature: {
1132
+ type: string;
1133
+ signature: string;
1134
+ publicKey: string;
1135
+ signedPropertyNames: string[];
1136
+ };
1137
+ protocolVersion: string;
1138
+ commentCid: string;
1139
+ flairs?: {
1140
+ [x: string]: unknown;
1141
+ text: string;
1142
+ backgroundColor?: string | undefined;
1143
+ textColor?: string | undefined;
1144
+ expiresAt?: number | undefined;
1145
+ }[] | undefined;
1146
+ communityPublicKey?: string | undefined;
1147
+ communityName?: string | undefined;
1148
+ spoiler?: boolean | undefined;
1149
+ nsfw?: boolean | undefined;
1150
+ reason?: string | undefined;
1151
+ content?: string | undefined;
1152
+ deleted?: boolean | undefined;
1153
+ author?: {
1154
+ [x: string]: unknown;
1155
+ name?: string | undefined;
1156
+ previousCommentCid?: string | undefined;
1157
+ displayName?: string | undefined;
1158
+ wallets?: Record<string, {
1159
+ address: string;
1160
+ timestamp: number;
1161
+ signature: {
1162
+ signature: string;
1163
+ type: string;
1164
+ };
1165
+ }> | undefined;
1166
+ avatar?: {
1167
+ [x: string]: unknown;
1168
+ chainTicker: string;
1169
+ address: string;
1170
+ id: string;
1171
+ timestamp: number;
1172
+ signature: {
1173
+ signature: string;
1174
+ type: string;
1175
+ };
1176
+ } | undefined;
1177
+ flairs?: {
1178
+ [x: string]: unknown;
1179
+ text: string;
1180
+ backgroundColor?: string | undefined;
1181
+ textColor?: string | undefined;
1182
+ expiresAt?: number | undefined;
1183
+ }[] | undefined;
1184
+ } | undefined;
1185
+ } | undefined;
1186
+ flairs?: {
1187
+ [x: string]: unknown;
1188
+ text: string;
1189
+ backgroundColor?: string | undefined;
1190
+ textColor?: string | undefined;
1191
+ expiresAt?: number | undefined;
1192
+ }[] | undefined;
1193
+ spoiler?: boolean | undefined;
1194
+ nsfw?: boolean | undefined;
1195
+ pinned?: boolean | undefined;
1196
+ locked?: boolean | undefined;
1197
+ archived?: boolean | undefined;
1198
+ removed?: boolean | undefined;
1199
+ reason?: string | undefined;
1200
+ approved?: boolean | undefined;
1201
+ author?: {
1202
+ [x: string]: unknown;
1203
+ community?: {
1204
+ [x: string]: unknown;
1205
+ postScore: number;
1206
+ replyScore: number;
1207
+ firstCommentTimestamp: number;
1208
+ lastCommentCid: string;
1209
+ banExpiresAt?: number | undefined;
1210
+ flairs?: {
1211
+ [x: string]: unknown;
1212
+ text: string;
1213
+ backgroundColor?: string | undefined;
1214
+ textColor?: string | undefined;
1215
+ expiresAt?: number | undefined;
1216
+ }[] | undefined;
1217
+ } | undefined;
1218
+ } | undefined;
1219
+ lastChildCid?: string | undefined;
1220
+ lastReplyTimestamp?: number | undefined;
1221
+ replies?: {
1222
+ pages: Record<string, {
1223
+ comments: {
1224
+ comment: {
1225
+ [x: string]: unknown;
1226
+ timestamp: number;
1227
+ signature: {
1228
+ type: string;
1229
+ signature: string;
1230
+ publicKey: string;
1231
+ signedPropertyNames: string[];
1232
+ };
1233
+ protocolVersion: string;
1234
+ depth: number;
1235
+ flairs?: {
1236
+ [x: string]: unknown;
1237
+ text: string;
1238
+ backgroundColor?: string | undefined;
1239
+ textColor?: string | undefined;
1240
+ expiresAt?: number | undefined;
1241
+ }[] | undefined;
1242
+ communityPublicKey?: string | undefined;
1243
+ communityName?: string | undefined;
1244
+ link?: string | undefined;
1245
+ spoiler?: boolean | undefined;
1246
+ nsfw?: boolean | undefined;
1247
+ content?: string | undefined;
1248
+ title?: string | undefined;
1249
+ linkWidth?: number | undefined;
1250
+ linkHeight?: number | undefined;
1251
+ linkHtmlTagName?: string | undefined;
1252
+ parentCid?: string | undefined;
1253
+ postCid?: string | undefined;
1254
+ quotedCids?: string[] | undefined;
1255
+ crosspost?: import("./publications/comment/schema.js").Crosspost | undefined;
1256
+ author?: {
1257
+ [x: string]: unknown;
1258
+ name?: string | undefined;
1259
+ previousCommentCid?: string | undefined;
1260
+ displayName?: string | undefined;
1261
+ wallets?: Record<string, {
1262
+ address: string;
1263
+ timestamp: number;
1264
+ signature: {
1265
+ signature: string;
1266
+ type: string;
1267
+ };
1268
+ }> | undefined;
1269
+ avatar?: {
1270
+ [x: string]: unknown;
1271
+ chainTicker: string;
1272
+ address: string;
1273
+ id: string;
1274
+ timestamp: number;
1275
+ signature: {
1276
+ signature: string;
1277
+ type: string;
1278
+ };
1279
+ } | undefined;
1280
+ flairs?: {
1281
+ [x: string]: unknown;
1282
+ text: string;
1283
+ backgroundColor?: string | undefined;
1284
+ textColor?: string | undefined;
1285
+ expiresAt?: number | undefined;
1286
+ }[] | undefined;
1287
+ } | undefined;
1288
+ thumbnailUrl?: string | undefined;
1289
+ thumbnailUrlWidth?: number | undefined;
1290
+ thumbnailUrlHeight?: number | undefined;
1291
+ previousCid?: string | undefined;
1292
+ pseudonymityMode?: "per-post" | "per-reply" | "per-author" | undefined;
1293
+ };
1294
+ commentUpdate: /*elided*/ any;
1295
+ }[];
1296
+ nextCid?: string | undefined;
1297
+ }>;
1298
+ pageCids?: Record<string, string> | undefined;
1299
+ } | undefined;
1300
+ }, {
1301
+ [x: string]: unknown;
1302
+ cid: string;
1303
+ upvoteCount: number;
1304
+ downvoteCount: number;
1305
+ replyCount: number;
1306
+ updatedAt: number;
1307
+ signature: {
1308
+ type: string;
1309
+ signature: string;
1310
+ publicKey: string;
1311
+ signedPropertyNames: string[];
1312
+ };
1313
+ protocolVersion: string;
1314
+ childCount?: number | undefined;
1315
+ number?: number | undefined;
1316
+ postNumber?: number | undefined;
1317
+ edit?: {
1318
+ [x: string]: unknown;
1319
+ timestamp: number;
1320
+ signature: {
1321
+ type: string;
1322
+ signature: string;
1323
+ publicKey: string;
1324
+ signedPropertyNames: string[];
1325
+ };
1326
+ protocolVersion: string;
1327
+ commentCid: string;
1328
+ flairs?: {
1329
+ [x: string]: unknown;
1330
+ text: string;
1331
+ backgroundColor?: string | undefined;
1332
+ textColor?: string | undefined;
1333
+ expiresAt?: number | undefined;
1334
+ }[] | undefined;
1335
+ communityPublicKey?: string | undefined;
1336
+ communityName?: string | undefined;
1337
+ spoiler?: boolean | undefined;
1338
+ nsfw?: boolean | undefined;
1339
+ reason?: string | undefined;
1340
+ content?: string | undefined;
1341
+ deleted?: boolean | undefined;
1342
+ author?: {
1343
+ [x: string]: unknown;
1344
+ name?: string | undefined;
1345
+ previousCommentCid?: string | undefined;
1346
+ displayName?: string | undefined;
1347
+ wallets?: Record<string, {
1348
+ address: string;
1349
+ timestamp: number;
1350
+ signature: {
1351
+ signature: string;
1352
+ type: string;
1353
+ };
1354
+ }> | undefined;
1355
+ avatar?: {
1356
+ [x: string]: unknown;
1357
+ chainTicker: string;
1358
+ address: string;
1359
+ id: string;
1360
+ timestamp: number;
1361
+ signature: {
1362
+ signature: string;
1363
+ type: string;
1364
+ };
1365
+ } | undefined;
1366
+ flairs?: {
1367
+ [x: string]: unknown;
1368
+ text: string;
1369
+ backgroundColor?: string | undefined;
1370
+ textColor?: string | undefined;
1371
+ expiresAt?: number | undefined;
1372
+ }[] | undefined;
1373
+ } | undefined;
1374
+ } | undefined;
1375
+ flairs?: {
1376
+ [x: string]: unknown;
1377
+ text: string;
1378
+ backgroundColor?: string | undefined;
1379
+ textColor?: string | undefined;
1380
+ expiresAt?: number | undefined;
1381
+ }[] | undefined;
1382
+ spoiler?: boolean | undefined;
1383
+ nsfw?: boolean | undefined;
1384
+ pinned?: boolean | undefined;
1385
+ locked?: boolean | undefined;
1386
+ archived?: boolean | undefined;
1387
+ removed?: boolean | undefined;
1388
+ reason?: string | undefined;
1389
+ approved?: boolean | undefined;
1390
+ author?: {
1391
+ [x: string]: unknown;
1392
+ community?: {
1393
+ [x: string]: unknown;
1394
+ postScore: number;
1395
+ replyScore: number;
1396
+ firstCommentTimestamp: number;
1397
+ lastCommentCid: string;
1398
+ banExpiresAt?: number | undefined;
1399
+ flairs?: {
1400
+ [x: string]: unknown;
1401
+ text: string;
1402
+ backgroundColor?: string | undefined;
1403
+ textColor?: string | undefined;
1404
+ expiresAt?: number | undefined;
1405
+ }[] | undefined;
1406
+ } | undefined;
1407
+ } | undefined;
1408
+ lastChildCid?: string | undefined;
1409
+ lastReplyTimestamp?: number | undefined;
1410
+ replies?: {
1411
+ pages: Record<string, {
1412
+ comments: {
1413
+ comment: {
1414
+ [x: string]: unknown;
1415
+ timestamp: number;
1416
+ signature: {
1417
+ type: string;
1418
+ signature: string;
1419
+ publicKey: string;
1420
+ signedPropertyNames: string[];
1421
+ };
1422
+ protocolVersion: string;
1423
+ depth: number;
1424
+ flairs?: {
1425
+ [x: string]: unknown;
1426
+ text: string;
1427
+ backgroundColor?: string | undefined;
1428
+ textColor?: string | undefined;
1429
+ expiresAt?: number | undefined;
1430
+ }[] | undefined;
1431
+ communityPublicKey?: string | undefined;
1432
+ communityName?: string | undefined;
1433
+ link?: string | undefined;
1434
+ spoiler?: boolean | undefined;
1435
+ nsfw?: boolean | undefined;
1436
+ content?: string | undefined;
1437
+ title?: string | undefined;
1438
+ linkWidth?: number | undefined;
1439
+ linkHeight?: number | undefined;
1440
+ linkHtmlTagName?: string | undefined;
1441
+ parentCid?: string | undefined;
1442
+ postCid?: string | undefined;
1443
+ quotedCids?: string[] | undefined;
1444
+ crosspost?: import("./publications/comment/schema.js").Crosspost | undefined;
1445
+ author?: {
1446
+ [x: string]: unknown;
1447
+ name?: string | undefined;
1448
+ previousCommentCid?: string | undefined;
1449
+ displayName?: string | undefined;
1450
+ wallets?: Record<string, {
1451
+ address: string;
1452
+ timestamp: number;
1453
+ signature: {
1454
+ signature: string;
1455
+ type: string;
1456
+ };
1457
+ }> | undefined;
1458
+ avatar?: {
1459
+ [x: string]: unknown;
1460
+ chainTicker: string;
1461
+ address: string;
1462
+ id: string;
1463
+ timestamp: number;
1464
+ signature: {
1465
+ signature: string;
1466
+ type: string;
1467
+ };
1468
+ } | undefined;
1469
+ flairs?: {
1470
+ [x: string]: unknown;
1471
+ text: string;
1472
+ backgroundColor?: string | undefined;
1473
+ textColor?: string | undefined;
1474
+ expiresAt?: number | undefined;
1475
+ }[] | undefined;
1476
+ } | undefined;
1477
+ thumbnailUrl?: string | undefined;
1478
+ thumbnailUrlWidth?: number | undefined;
1479
+ thumbnailUrlHeight?: number | undefined;
1480
+ previousCid?: string | undefined;
1481
+ pseudonymityMode?: "per-post" | "per-reply" | "per-author" | undefined;
1482
+ };
1483
+ commentUpdate: /*elided*/ any;
1484
+ }[];
1485
+ nextCid?: string | undefined;
1486
+ }>;
1487
+ pageCids?: Record<string, string> | undefined;
1488
+ } | undefined;
1489
+ }>;
1490
+ options: z.ZodRecord<z.ZodString, z.ZodString>;
1491
+ baseTimestamp: z.ZodNumber;
1492
+ replies: z.ZodOptional<z.ZodArray<z.ZodCustom<import("./index.js").PageSortReplyEntry, import("./index.js").PageSortReplyEntry>>>;
1493
+ }, z.core.$strip>], null>, z.ZodNullable<z.ZodNumber>>;
1494
+ validatePageSortSettings: z.ZodOptional<z.ZodFunction<z.ZodTuple<readonly [z.ZodObject<{
1495
+ pageSortSettings: z.ZodObject<{
1496
+ path: z.ZodOptional<z.ZodString>;
1497
+ name: z.ZodOptional<z.ZodString>;
1498
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1499
+ preloaded: z.ZodOptional<z.ZodBoolean>;
1500
+ privateOptions: z.ZodOptional<z.ZodArray<z.ZodString>>;
1501
+ }, z.core.$strict>;
1502
+ }, z.core.$strip>], null>, z.ZodVoid>>;
1503
+ }, z.core.$loose>>>>>;
387
1504
  }, z.core.$strip>;
388
1505
  export declare const PKCUserOptionsSchema: z.ZodPipe<z.ZodObject<{
389
1506
  kuboRpcClientsOptions: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodCustom<KuboRpcClientCreateOption, KuboRpcClientCreateOption>>, z.ZodTransform<import("kubo-rpc-client").Options[], KuboRpcClientCreateOption[]>>>;
@@ -726,6 +1843,1123 @@ export declare const PKCUserOptionsSchema: z.ZodPipe<z.ZodObject<{
726
1843
  }, z.core.$strict>;
727
1844
  }, z.core.$strip>], null>, z.ZodVoid>>;
728
1845
  }, z.core.$loose>>>>>;
1846
+ pageSorts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodCustom<z.core.$InferInnerFunctionType<z.ZodTuple<readonly [z.ZodObject<{
1847
+ pageSortSettings: z.ZodObject<{
1848
+ path: z.ZodOptional<z.ZodString>;
1849
+ name: z.ZodOptional<z.ZodString>;
1850
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1851
+ preloaded: z.ZodOptional<z.ZodBoolean>;
1852
+ privateOptions: z.ZodOptional<z.ZodArray<z.ZodString>>;
1853
+ }, z.core.$strict>;
1854
+ }, z.core.$strip>], null>, z.ZodObject<{
1855
+ sortName: z.ZodString;
1856
+ description: z.ZodOptional<z.ZodString>;
1857
+ optionInputs: z.ZodOptional<z.ZodArray<z.ZodObject<{
1858
+ option: z.ZodString;
1859
+ label: z.ZodString;
1860
+ default: z.ZodOptional<z.ZodString>;
1861
+ description: z.ZodOptional<z.ZodString>;
1862
+ placeholder: z.ZodOptional<z.ZodString>;
1863
+ required: z.ZodOptional<z.ZodBoolean>;
1864
+ }, z.core.$loose>>>;
1865
+ scope: z.ZodOptional<z.ZodEnum<{
1866
+ posts: "posts";
1867
+ replies: "replies";
1868
+ }>>;
1869
+ flat: z.ZodOptional<z.ZodBoolean>;
1870
+ defaultOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1871
+ requireReplies: z.ZodOptional<z.ZodBoolean>;
1872
+ score: z.ZodFunction<z.ZodTuple<readonly [z.ZodObject<{
1873
+ comment: z.ZodCustom<{
1874
+ [x: string]: unknown;
1875
+ timestamp: number;
1876
+ signature: {
1877
+ type: string;
1878
+ signature: string;
1879
+ publicKey: string;
1880
+ signedPropertyNames: string[];
1881
+ };
1882
+ protocolVersion: string;
1883
+ depth: number;
1884
+ flairs?: {
1885
+ [x: string]: unknown;
1886
+ text: string;
1887
+ backgroundColor?: string | undefined;
1888
+ textColor?: string | undefined;
1889
+ expiresAt?: number | undefined;
1890
+ }[] | undefined;
1891
+ communityPublicKey?: string | undefined;
1892
+ communityName?: string | undefined;
1893
+ link?: string | undefined;
1894
+ spoiler?: boolean | undefined;
1895
+ nsfw?: boolean | undefined;
1896
+ content?: string | undefined;
1897
+ title?: string | undefined;
1898
+ linkWidth?: number | undefined;
1899
+ linkHeight?: number | undefined;
1900
+ linkHtmlTagName?: string | undefined;
1901
+ parentCid?: string | undefined;
1902
+ postCid?: string | undefined;
1903
+ quotedCids?: string[] | undefined;
1904
+ crosspost?: import("./publications/comment/schema.js").Crosspost | undefined;
1905
+ author?: {
1906
+ [x: string]: unknown;
1907
+ name?: string | undefined;
1908
+ previousCommentCid?: string | undefined;
1909
+ displayName?: string | undefined;
1910
+ wallets?: Record<string, {
1911
+ address: string;
1912
+ timestamp: number;
1913
+ signature: {
1914
+ signature: string;
1915
+ type: string;
1916
+ };
1917
+ }> | undefined;
1918
+ avatar?: {
1919
+ [x: string]: unknown;
1920
+ chainTicker: string;
1921
+ address: string;
1922
+ id: string;
1923
+ timestamp: number;
1924
+ signature: {
1925
+ signature: string;
1926
+ type: string;
1927
+ };
1928
+ } | undefined;
1929
+ flairs?: {
1930
+ [x: string]: unknown;
1931
+ text: string;
1932
+ backgroundColor?: string | undefined;
1933
+ textColor?: string | undefined;
1934
+ expiresAt?: number | undefined;
1935
+ }[] | undefined;
1936
+ } | undefined;
1937
+ thumbnailUrl?: string | undefined;
1938
+ thumbnailUrlWidth?: number | undefined;
1939
+ thumbnailUrlHeight?: number | undefined;
1940
+ previousCid?: string | undefined;
1941
+ pseudonymityMode?: "per-post" | "per-reply" | "per-author" | undefined;
1942
+ }, {
1943
+ [x: string]: unknown;
1944
+ timestamp: number;
1945
+ signature: {
1946
+ type: string;
1947
+ signature: string;
1948
+ publicKey: string;
1949
+ signedPropertyNames: string[];
1950
+ };
1951
+ protocolVersion: string;
1952
+ depth: number;
1953
+ flairs?: {
1954
+ [x: string]: unknown;
1955
+ text: string;
1956
+ backgroundColor?: string | undefined;
1957
+ textColor?: string | undefined;
1958
+ expiresAt?: number | undefined;
1959
+ }[] | undefined;
1960
+ communityPublicKey?: string | undefined;
1961
+ communityName?: string | undefined;
1962
+ link?: string | undefined;
1963
+ spoiler?: boolean | undefined;
1964
+ nsfw?: boolean | undefined;
1965
+ content?: string | undefined;
1966
+ title?: string | undefined;
1967
+ linkWidth?: number | undefined;
1968
+ linkHeight?: number | undefined;
1969
+ linkHtmlTagName?: string | undefined;
1970
+ parentCid?: string | undefined;
1971
+ postCid?: string | undefined;
1972
+ quotedCids?: string[] | undefined;
1973
+ crosspost?: import("./publications/comment/schema.js").Crosspost | undefined;
1974
+ author?: {
1975
+ [x: string]: unknown;
1976
+ name?: string | undefined;
1977
+ previousCommentCid?: string | undefined;
1978
+ displayName?: string | undefined;
1979
+ wallets?: Record<string, {
1980
+ address: string;
1981
+ timestamp: number;
1982
+ signature: {
1983
+ signature: string;
1984
+ type: string;
1985
+ };
1986
+ }> | undefined;
1987
+ avatar?: {
1988
+ [x: string]: unknown;
1989
+ chainTicker: string;
1990
+ address: string;
1991
+ id: string;
1992
+ timestamp: number;
1993
+ signature: {
1994
+ signature: string;
1995
+ type: string;
1996
+ };
1997
+ } | undefined;
1998
+ flairs?: {
1999
+ [x: string]: unknown;
2000
+ text: string;
2001
+ backgroundColor?: string | undefined;
2002
+ textColor?: string | undefined;
2003
+ expiresAt?: number | undefined;
2004
+ }[] | undefined;
2005
+ } | undefined;
2006
+ thumbnailUrl?: string | undefined;
2007
+ thumbnailUrlWidth?: number | undefined;
2008
+ thumbnailUrlHeight?: number | undefined;
2009
+ previousCid?: string | undefined;
2010
+ pseudonymityMode?: "per-post" | "per-reply" | "per-author" | undefined;
2011
+ }>;
2012
+ commentUpdate: z.ZodCustom<{
2013
+ [x: string]: unknown;
2014
+ cid: string;
2015
+ upvoteCount: number;
2016
+ downvoteCount: number;
2017
+ replyCount: number;
2018
+ updatedAt: number;
2019
+ signature: {
2020
+ type: string;
2021
+ signature: string;
2022
+ publicKey: string;
2023
+ signedPropertyNames: string[];
2024
+ };
2025
+ protocolVersion: string;
2026
+ childCount?: number | undefined;
2027
+ number?: number | undefined;
2028
+ postNumber?: number | undefined;
2029
+ edit?: {
2030
+ [x: string]: unknown;
2031
+ timestamp: number;
2032
+ signature: {
2033
+ type: string;
2034
+ signature: string;
2035
+ publicKey: string;
2036
+ signedPropertyNames: string[];
2037
+ };
2038
+ protocolVersion: string;
2039
+ commentCid: string;
2040
+ flairs?: {
2041
+ [x: string]: unknown;
2042
+ text: string;
2043
+ backgroundColor?: string | undefined;
2044
+ textColor?: string | undefined;
2045
+ expiresAt?: number | undefined;
2046
+ }[] | undefined;
2047
+ communityPublicKey?: string | undefined;
2048
+ communityName?: string | undefined;
2049
+ spoiler?: boolean | undefined;
2050
+ nsfw?: boolean | undefined;
2051
+ reason?: string | undefined;
2052
+ content?: string | undefined;
2053
+ deleted?: boolean | undefined;
2054
+ author?: {
2055
+ [x: string]: unknown;
2056
+ name?: string | undefined;
2057
+ previousCommentCid?: string | undefined;
2058
+ displayName?: string | undefined;
2059
+ wallets?: Record<string, {
2060
+ address: string;
2061
+ timestamp: number;
2062
+ signature: {
2063
+ signature: string;
2064
+ type: string;
2065
+ };
2066
+ }> | undefined;
2067
+ avatar?: {
2068
+ [x: string]: unknown;
2069
+ chainTicker: string;
2070
+ address: string;
2071
+ id: string;
2072
+ timestamp: number;
2073
+ signature: {
2074
+ signature: string;
2075
+ type: string;
2076
+ };
2077
+ } | undefined;
2078
+ flairs?: {
2079
+ [x: string]: unknown;
2080
+ text: string;
2081
+ backgroundColor?: string | undefined;
2082
+ textColor?: string | undefined;
2083
+ expiresAt?: number | undefined;
2084
+ }[] | undefined;
2085
+ } | undefined;
2086
+ } | undefined;
2087
+ flairs?: {
2088
+ [x: string]: unknown;
2089
+ text: string;
2090
+ backgroundColor?: string | undefined;
2091
+ textColor?: string | undefined;
2092
+ expiresAt?: number | undefined;
2093
+ }[] | undefined;
2094
+ spoiler?: boolean | undefined;
2095
+ nsfw?: boolean | undefined;
2096
+ pinned?: boolean | undefined;
2097
+ locked?: boolean | undefined;
2098
+ archived?: boolean | undefined;
2099
+ removed?: boolean | undefined;
2100
+ reason?: string | undefined;
2101
+ approved?: boolean | undefined;
2102
+ author?: {
2103
+ [x: string]: unknown;
2104
+ community?: {
2105
+ [x: string]: unknown;
2106
+ postScore: number;
2107
+ replyScore: number;
2108
+ firstCommentTimestamp: number;
2109
+ lastCommentCid: string;
2110
+ banExpiresAt?: number | undefined;
2111
+ flairs?: {
2112
+ [x: string]: unknown;
2113
+ text: string;
2114
+ backgroundColor?: string | undefined;
2115
+ textColor?: string | undefined;
2116
+ expiresAt?: number | undefined;
2117
+ }[] | undefined;
2118
+ } | undefined;
2119
+ } | undefined;
2120
+ lastChildCid?: string | undefined;
2121
+ lastReplyTimestamp?: number | undefined;
2122
+ replies?: {
2123
+ pages: Record<string, {
2124
+ comments: {
2125
+ comment: {
2126
+ [x: string]: unknown;
2127
+ timestamp: number;
2128
+ signature: {
2129
+ type: string;
2130
+ signature: string;
2131
+ publicKey: string;
2132
+ signedPropertyNames: string[];
2133
+ };
2134
+ protocolVersion: string;
2135
+ depth: number;
2136
+ flairs?: {
2137
+ [x: string]: unknown;
2138
+ text: string;
2139
+ backgroundColor?: string | undefined;
2140
+ textColor?: string | undefined;
2141
+ expiresAt?: number | undefined;
2142
+ }[] | undefined;
2143
+ communityPublicKey?: string | undefined;
2144
+ communityName?: string | undefined;
2145
+ link?: string | undefined;
2146
+ spoiler?: boolean | undefined;
2147
+ nsfw?: boolean | undefined;
2148
+ content?: string | undefined;
2149
+ title?: string | undefined;
2150
+ linkWidth?: number | undefined;
2151
+ linkHeight?: number | undefined;
2152
+ linkHtmlTagName?: string | undefined;
2153
+ parentCid?: string | undefined;
2154
+ postCid?: string | undefined;
2155
+ quotedCids?: string[] | undefined;
2156
+ crosspost?: import("./publications/comment/schema.js").Crosspost | undefined;
2157
+ author?: {
2158
+ [x: string]: unknown;
2159
+ name?: string | undefined;
2160
+ previousCommentCid?: string | undefined;
2161
+ displayName?: string | undefined;
2162
+ wallets?: Record<string, {
2163
+ address: string;
2164
+ timestamp: number;
2165
+ signature: {
2166
+ signature: string;
2167
+ type: string;
2168
+ };
2169
+ }> | undefined;
2170
+ avatar?: {
2171
+ [x: string]: unknown;
2172
+ chainTicker: string;
2173
+ address: string;
2174
+ id: string;
2175
+ timestamp: number;
2176
+ signature: {
2177
+ signature: string;
2178
+ type: string;
2179
+ };
2180
+ } | undefined;
2181
+ flairs?: {
2182
+ [x: string]: unknown;
2183
+ text: string;
2184
+ backgroundColor?: string | undefined;
2185
+ textColor?: string | undefined;
2186
+ expiresAt?: number | undefined;
2187
+ }[] | undefined;
2188
+ } | undefined;
2189
+ thumbnailUrl?: string | undefined;
2190
+ thumbnailUrlWidth?: number | undefined;
2191
+ thumbnailUrlHeight?: number | undefined;
2192
+ previousCid?: string | undefined;
2193
+ pseudonymityMode?: "per-post" | "per-reply" | "per-author" | undefined;
2194
+ };
2195
+ commentUpdate: /*elided*/ any;
2196
+ }[];
2197
+ nextCid?: string | undefined;
2198
+ }>;
2199
+ pageCids?: Record<string, string> | undefined;
2200
+ } | undefined;
2201
+ }, {
2202
+ [x: string]: unknown;
2203
+ cid: string;
2204
+ upvoteCount: number;
2205
+ downvoteCount: number;
2206
+ replyCount: number;
2207
+ updatedAt: number;
2208
+ signature: {
2209
+ type: string;
2210
+ signature: string;
2211
+ publicKey: string;
2212
+ signedPropertyNames: string[];
2213
+ };
2214
+ protocolVersion: string;
2215
+ childCount?: number | undefined;
2216
+ number?: number | undefined;
2217
+ postNumber?: number | undefined;
2218
+ edit?: {
2219
+ [x: string]: unknown;
2220
+ timestamp: number;
2221
+ signature: {
2222
+ type: string;
2223
+ signature: string;
2224
+ publicKey: string;
2225
+ signedPropertyNames: string[];
2226
+ };
2227
+ protocolVersion: string;
2228
+ commentCid: string;
2229
+ flairs?: {
2230
+ [x: string]: unknown;
2231
+ text: string;
2232
+ backgroundColor?: string | undefined;
2233
+ textColor?: string | undefined;
2234
+ expiresAt?: number | undefined;
2235
+ }[] | undefined;
2236
+ communityPublicKey?: string | undefined;
2237
+ communityName?: string | undefined;
2238
+ spoiler?: boolean | undefined;
2239
+ nsfw?: boolean | undefined;
2240
+ reason?: string | undefined;
2241
+ content?: string | undefined;
2242
+ deleted?: boolean | undefined;
2243
+ author?: {
2244
+ [x: string]: unknown;
2245
+ name?: string | undefined;
2246
+ previousCommentCid?: string | undefined;
2247
+ displayName?: string | undefined;
2248
+ wallets?: Record<string, {
2249
+ address: string;
2250
+ timestamp: number;
2251
+ signature: {
2252
+ signature: string;
2253
+ type: string;
2254
+ };
2255
+ }> | undefined;
2256
+ avatar?: {
2257
+ [x: string]: unknown;
2258
+ chainTicker: string;
2259
+ address: string;
2260
+ id: string;
2261
+ timestamp: number;
2262
+ signature: {
2263
+ signature: string;
2264
+ type: string;
2265
+ };
2266
+ } | undefined;
2267
+ flairs?: {
2268
+ [x: string]: unknown;
2269
+ text: string;
2270
+ backgroundColor?: string | undefined;
2271
+ textColor?: string | undefined;
2272
+ expiresAt?: number | undefined;
2273
+ }[] | undefined;
2274
+ } | undefined;
2275
+ } | undefined;
2276
+ flairs?: {
2277
+ [x: string]: unknown;
2278
+ text: string;
2279
+ backgroundColor?: string | undefined;
2280
+ textColor?: string | undefined;
2281
+ expiresAt?: number | undefined;
2282
+ }[] | undefined;
2283
+ spoiler?: boolean | undefined;
2284
+ nsfw?: boolean | undefined;
2285
+ pinned?: boolean | undefined;
2286
+ locked?: boolean | undefined;
2287
+ archived?: boolean | undefined;
2288
+ removed?: boolean | undefined;
2289
+ reason?: string | undefined;
2290
+ approved?: boolean | undefined;
2291
+ author?: {
2292
+ [x: string]: unknown;
2293
+ community?: {
2294
+ [x: string]: unknown;
2295
+ postScore: number;
2296
+ replyScore: number;
2297
+ firstCommentTimestamp: number;
2298
+ lastCommentCid: string;
2299
+ banExpiresAt?: number | undefined;
2300
+ flairs?: {
2301
+ [x: string]: unknown;
2302
+ text: string;
2303
+ backgroundColor?: string | undefined;
2304
+ textColor?: string | undefined;
2305
+ expiresAt?: number | undefined;
2306
+ }[] | undefined;
2307
+ } | undefined;
2308
+ } | undefined;
2309
+ lastChildCid?: string | undefined;
2310
+ lastReplyTimestamp?: number | undefined;
2311
+ replies?: {
2312
+ pages: Record<string, {
2313
+ comments: {
2314
+ comment: {
2315
+ [x: string]: unknown;
2316
+ timestamp: number;
2317
+ signature: {
2318
+ type: string;
2319
+ signature: string;
2320
+ publicKey: string;
2321
+ signedPropertyNames: string[];
2322
+ };
2323
+ protocolVersion: string;
2324
+ depth: number;
2325
+ flairs?: {
2326
+ [x: string]: unknown;
2327
+ text: string;
2328
+ backgroundColor?: string | undefined;
2329
+ textColor?: string | undefined;
2330
+ expiresAt?: number | undefined;
2331
+ }[] | undefined;
2332
+ communityPublicKey?: string | undefined;
2333
+ communityName?: string | undefined;
2334
+ link?: string | undefined;
2335
+ spoiler?: boolean | undefined;
2336
+ nsfw?: boolean | undefined;
2337
+ content?: string | undefined;
2338
+ title?: string | undefined;
2339
+ linkWidth?: number | undefined;
2340
+ linkHeight?: number | undefined;
2341
+ linkHtmlTagName?: string | undefined;
2342
+ parentCid?: string | undefined;
2343
+ postCid?: string | undefined;
2344
+ quotedCids?: string[] | undefined;
2345
+ crosspost?: import("./publications/comment/schema.js").Crosspost | undefined;
2346
+ author?: {
2347
+ [x: string]: unknown;
2348
+ name?: string | undefined;
2349
+ previousCommentCid?: string | undefined;
2350
+ displayName?: string | undefined;
2351
+ wallets?: Record<string, {
2352
+ address: string;
2353
+ timestamp: number;
2354
+ signature: {
2355
+ signature: string;
2356
+ type: string;
2357
+ };
2358
+ }> | undefined;
2359
+ avatar?: {
2360
+ [x: string]: unknown;
2361
+ chainTicker: string;
2362
+ address: string;
2363
+ id: string;
2364
+ timestamp: number;
2365
+ signature: {
2366
+ signature: string;
2367
+ type: string;
2368
+ };
2369
+ } | undefined;
2370
+ flairs?: {
2371
+ [x: string]: unknown;
2372
+ text: string;
2373
+ backgroundColor?: string | undefined;
2374
+ textColor?: string | undefined;
2375
+ expiresAt?: number | undefined;
2376
+ }[] | undefined;
2377
+ } | undefined;
2378
+ thumbnailUrl?: string | undefined;
2379
+ thumbnailUrlWidth?: number | undefined;
2380
+ thumbnailUrlHeight?: number | undefined;
2381
+ previousCid?: string | undefined;
2382
+ pseudonymityMode?: "per-post" | "per-reply" | "per-author" | undefined;
2383
+ };
2384
+ commentUpdate: /*elided*/ any;
2385
+ }[];
2386
+ nextCid?: string | undefined;
2387
+ }>;
2388
+ pageCids?: Record<string, string> | undefined;
2389
+ } | undefined;
2390
+ }>;
2391
+ options: z.ZodRecord<z.ZodString, z.ZodString>;
2392
+ baseTimestamp: z.ZodNumber;
2393
+ replies: z.ZodOptional<z.ZodArray<z.ZodCustom<import("./index.js").PageSortReplyEntry, import("./index.js").PageSortReplyEntry>>>;
2394
+ }, z.core.$strip>], null>, z.ZodNullable<z.ZodNumber>>;
2395
+ validatePageSortSettings: z.ZodOptional<z.ZodFunction<z.ZodTuple<readonly [z.ZodObject<{
2396
+ pageSortSettings: z.ZodObject<{
2397
+ path: z.ZodOptional<z.ZodString>;
2398
+ name: z.ZodOptional<z.ZodString>;
2399
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2400
+ preloaded: z.ZodOptional<z.ZodBoolean>;
2401
+ privateOptions: z.ZodOptional<z.ZodArray<z.ZodString>>;
2402
+ }, z.core.$strict>;
2403
+ }, z.core.$strip>], null>, z.ZodVoid>>;
2404
+ }, z.core.$loose>>, z.core.$InferInnerFunctionType<z.ZodTuple<readonly [z.ZodObject<{
2405
+ pageSortSettings: z.ZodObject<{
2406
+ path: z.ZodOptional<z.ZodString>;
2407
+ name: z.ZodOptional<z.ZodString>;
2408
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2409
+ preloaded: z.ZodOptional<z.ZodBoolean>;
2410
+ privateOptions: z.ZodOptional<z.ZodArray<z.ZodString>>;
2411
+ }, z.core.$strict>;
2412
+ }, z.core.$strip>], null>, z.ZodObject<{
2413
+ sortName: z.ZodString;
2414
+ description: z.ZodOptional<z.ZodString>;
2415
+ optionInputs: z.ZodOptional<z.ZodArray<z.ZodObject<{
2416
+ option: z.ZodString;
2417
+ label: z.ZodString;
2418
+ default: z.ZodOptional<z.ZodString>;
2419
+ description: z.ZodOptional<z.ZodString>;
2420
+ placeholder: z.ZodOptional<z.ZodString>;
2421
+ required: z.ZodOptional<z.ZodBoolean>;
2422
+ }, z.core.$loose>>>;
2423
+ scope: z.ZodOptional<z.ZodEnum<{
2424
+ posts: "posts";
2425
+ replies: "replies";
2426
+ }>>;
2427
+ flat: z.ZodOptional<z.ZodBoolean>;
2428
+ defaultOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2429
+ requireReplies: z.ZodOptional<z.ZodBoolean>;
2430
+ score: z.ZodFunction<z.ZodTuple<readonly [z.ZodObject<{
2431
+ comment: z.ZodCustom<{
2432
+ [x: string]: unknown;
2433
+ timestamp: number;
2434
+ signature: {
2435
+ type: string;
2436
+ signature: string;
2437
+ publicKey: string;
2438
+ signedPropertyNames: string[];
2439
+ };
2440
+ protocolVersion: string;
2441
+ depth: number;
2442
+ flairs?: {
2443
+ [x: string]: unknown;
2444
+ text: string;
2445
+ backgroundColor?: string | undefined;
2446
+ textColor?: string | undefined;
2447
+ expiresAt?: number | undefined;
2448
+ }[] | undefined;
2449
+ communityPublicKey?: string | undefined;
2450
+ communityName?: string | undefined;
2451
+ link?: string | undefined;
2452
+ spoiler?: boolean | undefined;
2453
+ nsfw?: boolean | undefined;
2454
+ content?: string | undefined;
2455
+ title?: string | undefined;
2456
+ linkWidth?: number | undefined;
2457
+ linkHeight?: number | undefined;
2458
+ linkHtmlTagName?: string | undefined;
2459
+ parentCid?: string | undefined;
2460
+ postCid?: string | undefined;
2461
+ quotedCids?: string[] | undefined;
2462
+ crosspost?: import("./publications/comment/schema.js").Crosspost | undefined;
2463
+ author?: {
2464
+ [x: string]: unknown;
2465
+ name?: string | undefined;
2466
+ previousCommentCid?: string | undefined;
2467
+ displayName?: string | undefined;
2468
+ wallets?: Record<string, {
2469
+ address: string;
2470
+ timestamp: number;
2471
+ signature: {
2472
+ signature: string;
2473
+ type: string;
2474
+ };
2475
+ }> | undefined;
2476
+ avatar?: {
2477
+ [x: string]: unknown;
2478
+ chainTicker: string;
2479
+ address: string;
2480
+ id: string;
2481
+ timestamp: number;
2482
+ signature: {
2483
+ signature: string;
2484
+ type: string;
2485
+ };
2486
+ } | undefined;
2487
+ flairs?: {
2488
+ [x: string]: unknown;
2489
+ text: string;
2490
+ backgroundColor?: string | undefined;
2491
+ textColor?: string | undefined;
2492
+ expiresAt?: number | undefined;
2493
+ }[] | undefined;
2494
+ } | undefined;
2495
+ thumbnailUrl?: string | undefined;
2496
+ thumbnailUrlWidth?: number | undefined;
2497
+ thumbnailUrlHeight?: number | undefined;
2498
+ previousCid?: string | undefined;
2499
+ pseudonymityMode?: "per-post" | "per-reply" | "per-author" | undefined;
2500
+ }, {
2501
+ [x: string]: unknown;
2502
+ timestamp: number;
2503
+ signature: {
2504
+ type: string;
2505
+ signature: string;
2506
+ publicKey: string;
2507
+ signedPropertyNames: string[];
2508
+ };
2509
+ protocolVersion: string;
2510
+ depth: number;
2511
+ flairs?: {
2512
+ [x: string]: unknown;
2513
+ text: string;
2514
+ backgroundColor?: string | undefined;
2515
+ textColor?: string | undefined;
2516
+ expiresAt?: number | undefined;
2517
+ }[] | undefined;
2518
+ communityPublicKey?: string | undefined;
2519
+ communityName?: string | undefined;
2520
+ link?: string | undefined;
2521
+ spoiler?: boolean | undefined;
2522
+ nsfw?: boolean | undefined;
2523
+ content?: string | undefined;
2524
+ title?: string | undefined;
2525
+ linkWidth?: number | undefined;
2526
+ linkHeight?: number | undefined;
2527
+ linkHtmlTagName?: string | undefined;
2528
+ parentCid?: string | undefined;
2529
+ postCid?: string | undefined;
2530
+ quotedCids?: string[] | undefined;
2531
+ crosspost?: import("./publications/comment/schema.js").Crosspost | undefined;
2532
+ author?: {
2533
+ [x: string]: unknown;
2534
+ name?: string | undefined;
2535
+ previousCommentCid?: string | undefined;
2536
+ displayName?: string | undefined;
2537
+ wallets?: Record<string, {
2538
+ address: string;
2539
+ timestamp: number;
2540
+ signature: {
2541
+ signature: string;
2542
+ type: string;
2543
+ };
2544
+ }> | undefined;
2545
+ avatar?: {
2546
+ [x: string]: unknown;
2547
+ chainTicker: string;
2548
+ address: string;
2549
+ id: string;
2550
+ timestamp: number;
2551
+ signature: {
2552
+ signature: string;
2553
+ type: string;
2554
+ };
2555
+ } | undefined;
2556
+ flairs?: {
2557
+ [x: string]: unknown;
2558
+ text: string;
2559
+ backgroundColor?: string | undefined;
2560
+ textColor?: string | undefined;
2561
+ expiresAt?: number | undefined;
2562
+ }[] | undefined;
2563
+ } | undefined;
2564
+ thumbnailUrl?: string | undefined;
2565
+ thumbnailUrlWidth?: number | undefined;
2566
+ thumbnailUrlHeight?: number | undefined;
2567
+ previousCid?: string | undefined;
2568
+ pseudonymityMode?: "per-post" | "per-reply" | "per-author" | undefined;
2569
+ }>;
2570
+ commentUpdate: z.ZodCustom<{
2571
+ [x: string]: unknown;
2572
+ cid: string;
2573
+ upvoteCount: number;
2574
+ downvoteCount: number;
2575
+ replyCount: number;
2576
+ updatedAt: number;
2577
+ signature: {
2578
+ type: string;
2579
+ signature: string;
2580
+ publicKey: string;
2581
+ signedPropertyNames: string[];
2582
+ };
2583
+ protocolVersion: string;
2584
+ childCount?: number | undefined;
2585
+ number?: number | undefined;
2586
+ postNumber?: number | undefined;
2587
+ edit?: {
2588
+ [x: string]: unknown;
2589
+ timestamp: number;
2590
+ signature: {
2591
+ type: string;
2592
+ signature: string;
2593
+ publicKey: string;
2594
+ signedPropertyNames: string[];
2595
+ };
2596
+ protocolVersion: string;
2597
+ commentCid: string;
2598
+ flairs?: {
2599
+ [x: string]: unknown;
2600
+ text: string;
2601
+ backgroundColor?: string | undefined;
2602
+ textColor?: string | undefined;
2603
+ expiresAt?: number | undefined;
2604
+ }[] | undefined;
2605
+ communityPublicKey?: string | undefined;
2606
+ communityName?: string | undefined;
2607
+ spoiler?: boolean | undefined;
2608
+ nsfw?: boolean | undefined;
2609
+ reason?: string | undefined;
2610
+ content?: string | undefined;
2611
+ deleted?: boolean | undefined;
2612
+ author?: {
2613
+ [x: string]: unknown;
2614
+ name?: string | undefined;
2615
+ previousCommentCid?: string | undefined;
2616
+ displayName?: string | undefined;
2617
+ wallets?: Record<string, {
2618
+ address: string;
2619
+ timestamp: number;
2620
+ signature: {
2621
+ signature: string;
2622
+ type: string;
2623
+ };
2624
+ }> | undefined;
2625
+ avatar?: {
2626
+ [x: string]: unknown;
2627
+ chainTicker: string;
2628
+ address: string;
2629
+ id: string;
2630
+ timestamp: number;
2631
+ signature: {
2632
+ signature: string;
2633
+ type: string;
2634
+ };
2635
+ } | undefined;
2636
+ flairs?: {
2637
+ [x: string]: unknown;
2638
+ text: string;
2639
+ backgroundColor?: string | undefined;
2640
+ textColor?: string | undefined;
2641
+ expiresAt?: number | undefined;
2642
+ }[] | undefined;
2643
+ } | undefined;
2644
+ } | undefined;
2645
+ flairs?: {
2646
+ [x: string]: unknown;
2647
+ text: string;
2648
+ backgroundColor?: string | undefined;
2649
+ textColor?: string | undefined;
2650
+ expiresAt?: number | undefined;
2651
+ }[] | undefined;
2652
+ spoiler?: boolean | undefined;
2653
+ nsfw?: boolean | undefined;
2654
+ pinned?: boolean | undefined;
2655
+ locked?: boolean | undefined;
2656
+ archived?: boolean | undefined;
2657
+ removed?: boolean | undefined;
2658
+ reason?: string | undefined;
2659
+ approved?: boolean | undefined;
2660
+ author?: {
2661
+ [x: string]: unknown;
2662
+ community?: {
2663
+ [x: string]: unknown;
2664
+ postScore: number;
2665
+ replyScore: number;
2666
+ firstCommentTimestamp: number;
2667
+ lastCommentCid: string;
2668
+ banExpiresAt?: number | undefined;
2669
+ flairs?: {
2670
+ [x: string]: unknown;
2671
+ text: string;
2672
+ backgroundColor?: string | undefined;
2673
+ textColor?: string | undefined;
2674
+ expiresAt?: number | undefined;
2675
+ }[] | undefined;
2676
+ } | undefined;
2677
+ } | undefined;
2678
+ lastChildCid?: string | undefined;
2679
+ lastReplyTimestamp?: number | undefined;
2680
+ replies?: {
2681
+ pages: Record<string, {
2682
+ comments: {
2683
+ comment: {
2684
+ [x: string]: unknown;
2685
+ timestamp: number;
2686
+ signature: {
2687
+ type: string;
2688
+ signature: string;
2689
+ publicKey: string;
2690
+ signedPropertyNames: string[];
2691
+ };
2692
+ protocolVersion: string;
2693
+ depth: number;
2694
+ flairs?: {
2695
+ [x: string]: unknown;
2696
+ text: string;
2697
+ backgroundColor?: string | undefined;
2698
+ textColor?: string | undefined;
2699
+ expiresAt?: number | undefined;
2700
+ }[] | undefined;
2701
+ communityPublicKey?: string | undefined;
2702
+ communityName?: string | undefined;
2703
+ link?: string | undefined;
2704
+ spoiler?: boolean | undefined;
2705
+ nsfw?: boolean | undefined;
2706
+ content?: string | undefined;
2707
+ title?: string | undefined;
2708
+ linkWidth?: number | undefined;
2709
+ linkHeight?: number | undefined;
2710
+ linkHtmlTagName?: string | undefined;
2711
+ parentCid?: string | undefined;
2712
+ postCid?: string | undefined;
2713
+ quotedCids?: string[] | undefined;
2714
+ crosspost?: import("./publications/comment/schema.js").Crosspost | undefined;
2715
+ author?: {
2716
+ [x: string]: unknown;
2717
+ name?: string | undefined;
2718
+ previousCommentCid?: string | undefined;
2719
+ displayName?: string | undefined;
2720
+ wallets?: Record<string, {
2721
+ address: string;
2722
+ timestamp: number;
2723
+ signature: {
2724
+ signature: string;
2725
+ type: string;
2726
+ };
2727
+ }> | undefined;
2728
+ avatar?: {
2729
+ [x: string]: unknown;
2730
+ chainTicker: string;
2731
+ address: string;
2732
+ id: string;
2733
+ timestamp: number;
2734
+ signature: {
2735
+ signature: string;
2736
+ type: string;
2737
+ };
2738
+ } | undefined;
2739
+ flairs?: {
2740
+ [x: string]: unknown;
2741
+ text: string;
2742
+ backgroundColor?: string | undefined;
2743
+ textColor?: string | undefined;
2744
+ expiresAt?: number | undefined;
2745
+ }[] | undefined;
2746
+ } | undefined;
2747
+ thumbnailUrl?: string | undefined;
2748
+ thumbnailUrlWidth?: number | undefined;
2749
+ thumbnailUrlHeight?: number | undefined;
2750
+ previousCid?: string | undefined;
2751
+ pseudonymityMode?: "per-post" | "per-reply" | "per-author" | undefined;
2752
+ };
2753
+ commentUpdate: /*elided*/ any;
2754
+ }[];
2755
+ nextCid?: string | undefined;
2756
+ }>;
2757
+ pageCids?: Record<string, string> | undefined;
2758
+ } | undefined;
2759
+ }, {
2760
+ [x: string]: unknown;
2761
+ cid: string;
2762
+ upvoteCount: number;
2763
+ downvoteCount: number;
2764
+ replyCount: number;
2765
+ updatedAt: number;
2766
+ signature: {
2767
+ type: string;
2768
+ signature: string;
2769
+ publicKey: string;
2770
+ signedPropertyNames: string[];
2771
+ };
2772
+ protocolVersion: string;
2773
+ childCount?: number | undefined;
2774
+ number?: number | undefined;
2775
+ postNumber?: number | undefined;
2776
+ edit?: {
2777
+ [x: string]: unknown;
2778
+ timestamp: number;
2779
+ signature: {
2780
+ type: string;
2781
+ signature: string;
2782
+ publicKey: string;
2783
+ signedPropertyNames: string[];
2784
+ };
2785
+ protocolVersion: string;
2786
+ commentCid: string;
2787
+ flairs?: {
2788
+ [x: string]: unknown;
2789
+ text: string;
2790
+ backgroundColor?: string | undefined;
2791
+ textColor?: string | undefined;
2792
+ expiresAt?: number | undefined;
2793
+ }[] | undefined;
2794
+ communityPublicKey?: string | undefined;
2795
+ communityName?: string | undefined;
2796
+ spoiler?: boolean | undefined;
2797
+ nsfw?: boolean | undefined;
2798
+ reason?: string | undefined;
2799
+ content?: string | undefined;
2800
+ deleted?: boolean | undefined;
2801
+ author?: {
2802
+ [x: string]: unknown;
2803
+ name?: string | undefined;
2804
+ previousCommentCid?: string | undefined;
2805
+ displayName?: string | undefined;
2806
+ wallets?: Record<string, {
2807
+ address: string;
2808
+ timestamp: number;
2809
+ signature: {
2810
+ signature: string;
2811
+ type: string;
2812
+ };
2813
+ }> | undefined;
2814
+ avatar?: {
2815
+ [x: string]: unknown;
2816
+ chainTicker: string;
2817
+ address: string;
2818
+ id: string;
2819
+ timestamp: number;
2820
+ signature: {
2821
+ signature: string;
2822
+ type: string;
2823
+ };
2824
+ } | undefined;
2825
+ flairs?: {
2826
+ [x: string]: unknown;
2827
+ text: string;
2828
+ backgroundColor?: string | undefined;
2829
+ textColor?: string | undefined;
2830
+ expiresAt?: number | undefined;
2831
+ }[] | undefined;
2832
+ } | undefined;
2833
+ } | undefined;
2834
+ flairs?: {
2835
+ [x: string]: unknown;
2836
+ text: string;
2837
+ backgroundColor?: string | undefined;
2838
+ textColor?: string | undefined;
2839
+ expiresAt?: number | undefined;
2840
+ }[] | undefined;
2841
+ spoiler?: boolean | undefined;
2842
+ nsfw?: boolean | undefined;
2843
+ pinned?: boolean | undefined;
2844
+ locked?: boolean | undefined;
2845
+ archived?: boolean | undefined;
2846
+ removed?: boolean | undefined;
2847
+ reason?: string | undefined;
2848
+ approved?: boolean | undefined;
2849
+ author?: {
2850
+ [x: string]: unknown;
2851
+ community?: {
2852
+ [x: string]: unknown;
2853
+ postScore: number;
2854
+ replyScore: number;
2855
+ firstCommentTimestamp: number;
2856
+ lastCommentCid: string;
2857
+ banExpiresAt?: number | undefined;
2858
+ flairs?: {
2859
+ [x: string]: unknown;
2860
+ text: string;
2861
+ backgroundColor?: string | undefined;
2862
+ textColor?: string | undefined;
2863
+ expiresAt?: number | undefined;
2864
+ }[] | undefined;
2865
+ } | undefined;
2866
+ } | undefined;
2867
+ lastChildCid?: string | undefined;
2868
+ lastReplyTimestamp?: number | undefined;
2869
+ replies?: {
2870
+ pages: Record<string, {
2871
+ comments: {
2872
+ comment: {
2873
+ [x: string]: unknown;
2874
+ timestamp: number;
2875
+ signature: {
2876
+ type: string;
2877
+ signature: string;
2878
+ publicKey: string;
2879
+ signedPropertyNames: string[];
2880
+ };
2881
+ protocolVersion: string;
2882
+ depth: number;
2883
+ flairs?: {
2884
+ [x: string]: unknown;
2885
+ text: string;
2886
+ backgroundColor?: string | undefined;
2887
+ textColor?: string | undefined;
2888
+ expiresAt?: number | undefined;
2889
+ }[] | undefined;
2890
+ communityPublicKey?: string | undefined;
2891
+ communityName?: string | undefined;
2892
+ link?: string | undefined;
2893
+ spoiler?: boolean | undefined;
2894
+ nsfw?: boolean | undefined;
2895
+ content?: string | undefined;
2896
+ title?: string | undefined;
2897
+ linkWidth?: number | undefined;
2898
+ linkHeight?: number | undefined;
2899
+ linkHtmlTagName?: string | undefined;
2900
+ parentCid?: string | undefined;
2901
+ postCid?: string | undefined;
2902
+ quotedCids?: string[] | undefined;
2903
+ crosspost?: import("./publications/comment/schema.js").Crosspost | undefined;
2904
+ author?: {
2905
+ [x: string]: unknown;
2906
+ name?: string | undefined;
2907
+ previousCommentCid?: string | undefined;
2908
+ displayName?: string | undefined;
2909
+ wallets?: Record<string, {
2910
+ address: string;
2911
+ timestamp: number;
2912
+ signature: {
2913
+ signature: string;
2914
+ type: string;
2915
+ };
2916
+ }> | undefined;
2917
+ avatar?: {
2918
+ [x: string]: unknown;
2919
+ chainTicker: string;
2920
+ address: string;
2921
+ id: string;
2922
+ timestamp: number;
2923
+ signature: {
2924
+ signature: string;
2925
+ type: string;
2926
+ };
2927
+ } | undefined;
2928
+ flairs?: {
2929
+ [x: string]: unknown;
2930
+ text: string;
2931
+ backgroundColor?: string | undefined;
2932
+ textColor?: string | undefined;
2933
+ expiresAt?: number | undefined;
2934
+ }[] | undefined;
2935
+ } | undefined;
2936
+ thumbnailUrl?: string | undefined;
2937
+ thumbnailUrlWidth?: number | undefined;
2938
+ thumbnailUrlHeight?: number | undefined;
2939
+ previousCid?: string | undefined;
2940
+ pseudonymityMode?: "per-post" | "per-reply" | "per-author" | undefined;
2941
+ };
2942
+ commentUpdate: /*elided*/ any;
2943
+ }[];
2944
+ nextCid?: string | undefined;
2945
+ }>;
2946
+ pageCids?: Record<string, string> | undefined;
2947
+ } | undefined;
2948
+ }>;
2949
+ options: z.ZodRecord<z.ZodString, z.ZodString>;
2950
+ baseTimestamp: z.ZodNumber;
2951
+ replies: z.ZodOptional<z.ZodArray<z.ZodCustom<import("./index.js").PageSortReplyEntry, import("./index.js").PageSortReplyEntry>>>;
2952
+ }, z.core.$strip>], null>, z.ZodNullable<z.ZodNumber>>;
2953
+ validatePageSortSettings: z.ZodOptional<z.ZodFunction<z.ZodTuple<readonly [z.ZodObject<{
2954
+ pageSortSettings: z.ZodObject<{
2955
+ path: z.ZodOptional<z.ZodString>;
2956
+ name: z.ZodOptional<z.ZodString>;
2957
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2958
+ preloaded: z.ZodOptional<z.ZodBoolean>;
2959
+ privateOptions: z.ZodOptional<z.ZodArray<z.ZodString>>;
2960
+ }, z.core.$strict>;
2961
+ }, z.core.$strip>], null>, z.ZodVoid>>;
2962
+ }, z.core.$loose>>>>>;
729
2963
  ipfsGatewayUrls: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodURL>>>, z.ZodTransform<string[], string[]>>;
730
2964
  pubsubKuboRpcClientsOptions: z.ZodDefault<z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodCustom<KuboRpcClientCreateOption, KuboRpcClientCreateOption>>, z.ZodTransform<import("kubo-rpc-client").Options[], KuboRpcClientCreateOption[]>>>>;
731
2965
  httpRoutersOptions: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
@@ -922,6 +3156,565 @@ export declare const PKCUserOptionsSchema: z.ZodPipe<z.ZodObject<{
922
3156
  }, z.core.$strict>;
923
3157
  }, z.core.$strip>], null>, z.ZodVoid>>;
924
3158
  }, z.core.$loose>>> | undefined;
3159
+ pageSorts?: Record<string, z.core.$InferInnerFunctionType<z.ZodTuple<readonly [z.ZodObject<{
3160
+ pageSortSettings: z.ZodObject<{
3161
+ path: z.ZodOptional<z.ZodString>;
3162
+ name: z.ZodOptional<z.ZodString>;
3163
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3164
+ preloaded: z.ZodOptional<z.ZodBoolean>;
3165
+ privateOptions: z.ZodOptional<z.ZodArray<z.ZodString>>;
3166
+ }, z.core.$strict>;
3167
+ }, z.core.$strip>], null>, z.ZodObject<{
3168
+ sortName: z.ZodString;
3169
+ description: z.ZodOptional<z.ZodString>;
3170
+ optionInputs: z.ZodOptional<z.ZodArray<z.ZodObject<{
3171
+ option: z.ZodString;
3172
+ label: z.ZodString;
3173
+ default: z.ZodOptional<z.ZodString>;
3174
+ description: z.ZodOptional<z.ZodString>;
3175
+ placeholder: z.ZodOptional<z.ZodString>;
3176
+ required: z.ZodOptional<z.ZodBoolean>;
3177
+ }, z.core.$loose>>>;
3178
+ scope: z.ZodOptional<z.ZodEnum<{
3179
+ posts: "posts";
3180
+ replies: "replies";
3181
+ }>>;
3182
+ flat: z.ZodOptional<z.ZodBoolean>;
3183
+ defaultOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3184
+ requireReplies: z.ZodOptional<z.ZodBoolean>;
3185
+ score: z.ZodFunction<z.ZodTuple<readonly [z.ZodObject<{
3186
+ comment: z.ZodCustom<{
3187
+ [x: string]: unknown;
3188
+ timestamp: number;
3189
+ signature: {
3190
+ type: string;
3191
+ signature: string;
3192
+ publicKey: string;
3193
+ signedPropertyNames: string[];
3194
+ };
3195
+ protocolVersion: string;
3196
+ depth: number;
3197
+ flairs?: {
3198
+ [x: string]: unknown;
3199
+ text: string;
3200
+ backgroundColor?: string | undefined;
3201
+ textColor?: string | undefined;
3202
+ expiresAt?: number | undefined;
3203
+ }[] | undefined;
3204
+ communityPublicKey?: string | undefined;
3205
+ communityName?: string | undefined;
3206
+ link?: string | undefined;
3207
+ spoiler?: boolean | undefined;
3208
+ nsfw?: boolean | undefined;
3209
+ content?: string | undefined;
3210
+ title?: string | undefined;
3211
+ linkWidth?: number | undefined;
3212
+ linkHeight?: number | undefined;
3213
+ linkHtmlTagName?: string | undefined;
3214
+ parentCid?: string | undefined;
3215
+ postCid?: string | undefined;
3216
+ quotedCids?: string[] | undefined;
3217
+ crosspost?: import("./publications/comment/schema.js").Crosspost | undefined;
3218
+ author?: {
3219
+ [x: string]: unknown;
3220
+ name?: string | undefined;
3221
+ previousCommentCid?: string | undefined;
3222
+ displayName?: string | undefined;
3223
+ wallets?: Record<string, {
3224
+ address: string;
3225
+ timestamp: number;
3226
+ signature: {
3227
+ signature: string;
3228
+ type: string;
3229
+ };
3230
+ }> | undefined;
3231
+ avatar?: {
3232
+ [x: string]: unknown;
3233
+ chainTicker: string;
3234
+ address: string;
3235
+ id: string;
3236
+ timestamp: number;
3237
+ signature: {
3238
+ signature: string;
3239
+ type: string;
3240
+ };
3241
+ } | undefined;
3242
+ flairs?: {
3243
+ [x: string]: unknown;
3244
+ text: string;
3245
+ backgroundColor?: string | undefined;
3246
+ textColor?: string | undefined;
3247
+ expiresAt?: number | undefined;
3248
+ }[] | undefined;
3249
+ } | undefined;
3250
+ thumbnailUrl?: string | undefined;
3251
+ thumbnailUrlWidth?: number | undefined;
3252
+ thumbnailUrlHeight?: number | undefined;
3253
+ previousCid?: string | undefined;
3254
+ pseudonymityMode?: "per-post" | "per-reply" | "per-author" | undefined;
3255
+ }, {
3256
+ [x: string]: unknown;
3257
+ timestamp: number;
3258
+ signature: {
3259
+ type: string;
3260
+ signature: string;
3261
+ publicKey: string;
3262
+ signedPropertyNames: string[];
3263
+ };
3264
+ protocolVersion: string;
3265
+ depth: number;
3266
+ flairs?: {
3267
+ [x: string]: unknown;
3268
+ text: string;
3269
+ backgroundColor?: string | undefined;
3270
+ textColor?: string | undefined;
3271
+ expiresAt?: number | undefined;
3272
+ }[] | undefined;
3273
+ communityPublicKey?: string | undefined;
3274
+ communityName?: string | undefined;
3275
+ link?: string | undefined;
3276
+ spoiler?: boolean | undefined;
3277
+ nsfw?: boolean | undefined;
3278
+ content?: string | undefined;
3279
+ title?: string | undefined;
3280
+ linkWidth?: number | undefined;
3281
+ linkHeight?: number | undefined;
3282
+ linkHtmlTagName?: string | undefined;
3283
+ parentCid?: string | undefined;
3284
+ postCid?: string | undefined;
3285
+ quotedCids?: string[] | undefined;
3286
+ crosspost?: import("./publications/comment/schema.js").Crosspost | undefined;
3287
+ author?: {
3288
+ [x: string]: unknown;
3289
+ name?: string | undefined;
3290
+ previousCommentCid?: string | undefined;
3291
+ displayName?: string | undefined;
3292
+ wallets?: Record<string, {
3293
+ address: string;
3294
+ timestamp: number;
3295
+ signature: {
3296
+ signature: string;
3297
+ type: string;
3298
+ };
3299
+ }> | undefined;
3300
+ avatar?: {
3301
+ [x: string]: unknown;
3302
+ chainTicker: string;
3303
+ address: string;
3304
+ id: string;
3305
+ timestamp: number;
3306
+ signature: {
3307
+ signature: string;
3308
+ type: string;
3309
+ };
3310
+ } | undefined;
3311
+ flairs?: {
3312
+ [x: string]: unknown;
3313
+ text: string;
3314
+ backgroundColor?: string | undefined;
3315
+ textColor?: string | undefined;
3316
+ expiresAt?: number | undefined;
3317
+ }[] | undefined;
3318
+ } | undefined;
3319
+ thumbnailUrl?: string | undefined;
3320
+ thumbnailUrlWidth?: number | undefined;
3321
+ thumbnailUrlHeight?: number | undefined;
3322
+ previousCid?: string | undefined;
3323
+ pseudonymityMode?: "per-post" | "per-reply" | "per-author" | undefined;
3324
+ }>;
3325
+ commentUpdate: z.ZodCustom<{
3326
+ [x: string]: unknown;
3327
+ cid: string;
3328
+ upvoteCount: number;
3329
+ downvoteCount: number;
3330
+ replyCount: number;
3331
+ updatedAt: number;
3332
+ signature: {
3333
+ type: string;
3334
+ signature: string;
3335
+ publicKey: string;
3336
+ signedPropertyNames: string[];
3337
+ };
3338
+ protocolVersion: string;
3339
+ childCount?: number | undefined;
3340
+ number?: number | undefined;
3341
+ postNumber?: number | undefined;
3342
+ edit?: {
3343
+ [x: string]: unknown;
3344
+ timestamp: number;
3345
+ signature: {
3346
+ type: string;
3347
+ signature: string;
3348
+ publicKey: string;
3349
+ signedPropertyNames: string[];
3350
+ };
3351
+ protocolVersion: string;
3352
+ commentCid: string;
3353
+ flairs?: {
3354
+ [x: string]: unknown;
3355
+ text: string;
3356
+ backgroundColor?: string | undefined;
3357
+ textColor?: string | undefined;
3358
+ expiresAt?: number | undefined;
3359
+ }[] | undefined;
3360
+ communityPublicKey?: string | undefined;
3361
+ communityName?: string | undefined;
3362
+ spoiler?: boolean | undefined;
3363
+ nsfw?: boolean | undefined;
3364
+ reason?: string | undefined;
3365
+ content?: string | undefined;
3366
+ deleted?: boolean | undefined;
3367
+ author?: {
3368
+ [x: string]: unknown;
3369
+ name?: string | undefined;
3370
+ previousCommentCid?: string | undefined;
3371
+ displayName?: string | undefined;
3372
+ wallets?: Record<string, {
3373
+ address: string;
3374
+ timestamp: number;
3375
+ signature: {
3376
+ signature: string;
3377
+ type: string;
3378
+ };
3379
+ }> | undefined;
3380
+ avatar?: {
3381
+ [x: string]: unknown;
3382
+ chainTicker: string;
3383
+ address: string;
3384
+ id: string;
3385
+ timestamp: number;
3386
+ signature: {
3387
+ signature: string;
3388
+ type: string;
3389
+ };
3390
+ } | undefined;
3391
+ flairs?: {
3392
+ [x: string]: unknown;
3393
+ text: string;
3394
+ backgroundColor?: string | undefined;
3395
+ textColor?: string | undefined;
3396
+ expiresAt?: number | undefined;
3397
+ }[] | undefined;
3398
+ } | undefined;
3399
+ } | undefined;
3400
+ flairs?: {
3401
+ [x: string]: unknown;
3402
+ text: string;
3403
+ backgroundColor?: string | undefined;
3404
+ textColor?: string | undefined;
3405
+ expiresAt?: number | undefined;
3406
+ }[] | undefined;
3407
+ spoiler?: boolean | undefined;
3408
+ nsfw?: boolean | undefined;
3409
+ pinned?: boolean | undefined;
3410
+ locked?: boolean | undefined;
3411
+ archived?: boolean | undefined;
3412
+ removed?: boolean | undefined;
3413
+ reason?: string | undefined;
3414
+ approved?: boolean | undefined;
3415
+ author?: {
3416
+ [x: string]: unknown;
3417
+ community?: {
3418
+ [x: string]: unknown;
3419
+ postScore: number;
3420
+ replyScore: number;
3421
+ firstCommentTimestamp: number;
3422
+ lastCommentCid: string;
3423
+ banExpiresAt?: number | undefined;
3424
+ flairs?: {
3425
+ [x: string]: unknown;
3426
+ text: string;
3427
+ backgroundColor?: string | undefined;
3428
+ textColor?: string | undefined;
3429
+ expiresAt?: number | undefined;
3430
+ }[] | undefined;
3431
+ } | undefined;
3432
+ } | undefined;
3433
+ lastChildCid?: string | undefined;
3434
+ lastReplyTimestamp?: number | undefined;
3435
+ replies?: {
3436
+ pages: Record<string, {
3437
+ comments: {
3438
+ comment: {
3439
+ [x: string]: unknown;
3440
+ timestamp: number;
3441
+ signature: {
3442
+ type: string;
3443
+ signature: string;
3444
+ publicKey: string;
3445
+ signedPropertyNames: string[];
3446
+ };
3447
+ protocolVersion: string;
3448
+ depth: number;
3449
+ flairs?: {
3450
+ [x: string]: unknown;
3451
+ text: string;
3452
+ backgroundColor?: string | undefined;
3453
+ textColor?: string | undefined;
3454
+ expiresAt?: number | undefined;
3455
+ }[] | undefined;
3456
+ communityPublicKey?: string | undefined;
3457
+ communityName?: string | undefined;
3458
+ link?: string | undefined;
3459
+ spoiler?: boolean | undefined;
3460
+ nsfw?: boolean | undefined;
3461
+ content?: string | undefined;
3462
+ title?: string | undefined;
3463
+ linkWidth?: number | undefined;
3464
+ linkHeight?: number | undefined;
3465
+ linkHtmlTagName?: string | undefined;
3466
+ parentCid?: string | undefined;
3467
+ postCid?: string | undefined;
3468
+ quotedCids?: string[] | undefined;
3469
+ crosspost?: import("./publications/comment/schema.js").Crosspost | undefined;
3470
+ author?: {
3471
+ [x: string]: unknown;
3472
+ name?: string | undefined;
3473
+ previousCommentCid?: string | undefined;
3474
+ displayName?: string | undefined;
3475
+ wallets?: Record<string, {
3476
+ address: string;
3477
+ timestamp: number;
3478
+ signature: {
3479
+ signature: string;
3480
+ type: string;
3481
+ };
3482
+ }> | undefined;
3483
+ avatar?: {
3484
+ [x: string]: unknown;
3485
+ chainTicker: string;
3486
+ address: string;
3487
+ id: string;
3488
+ timestamp: number;
3489
+ signature: {
3490
+ signature: string;
3491
+ type: string;
3492
+ };
3493
+ } | undefined;
3494
+ flairs?: {
3495
+ [x: string]: unknown;
3496
+ text: string;
3497
+ backgroundColor?: string | undefined;
3498
+ textColor?: string | undefined;
3499
+ expiresAt?: number | undefined;
3500
+ }[] | undefined;
3501
+ } | undefined;
3502
+ thumbnailUrl?: string | undefined;
3503
+ thumbnailUrlWidth?: number | undefined;
3504
+ thumbnailUrlHeight?: number | undefined;
3505
+ previousCid?: string | undefined;
3506
+ pseudonymityMode?: "per-post" | "per-reply" | "per-author" | undefined;
3507
+ };
3508
+ commentUpdate: /*elided*/ any;
3509
+ }[];
3510
+ nextCid?: string | undefined;
3511
+ }>;
3512
+ pageCids?: Record<string, string> | undefined;
3513
+ } | undefined;
3514
+ }, {
3515
+ [x: string]: unknown;
3516
+ cid: string;
3517
+ upvoteCount: number;
3518
+ downvoteCount: number;
3519
+ replyCount: number;
3520
+ updatedAt: number;
3521
+ signature: {
3522
+ type: string;
3523
+ signature: string;
3524
+ publicKey: string;
3525
+ signedPropertyNames: string[];
3526
+ };
3527
+ protocolVersion: string;
3528
+ childCount?: number | undefined;
3529
+ number?: number | undefined;
3530
+ postNumber?: number | undefined;
3531
+ edit?: {
3532
+ [x: string]: unknown;
3533
+ timestamp: number;
3534
+ signature: {
3535
+ type: string;
3536
+ signature: string;
3537
+ publicKey: string;
3538
+ signedPropertyNames: string[];
3539
+ };
3540
+ protocolVersion: string;
3541
+ commentCid: string;
3542
+ flairs?: {
3543
+ [x: string]: unknown;
3544
+ text: string;
3545
+ backgroundColor?: string | undefined;
3546
+ textColor?: string | undefined;
3547
+ expiresAt?: number | undefined;
3548
+ }[] | undefined;
3549
+ communityPublicKey?: string | undefined;
3550
+ communityName?: string | undefined;
3551
+ spoiler?: boolean | undefined;
3552
+ nsfw?: boolean | undefined;
3553
+ reason?: string | undefined;
3554
+ content?: string | undefined;
3555
+ deleted?: boolean | undefined;
3556
+ author?: {
3557
+ [x: string]: unknown;
3558
+ name?: string | undefined;
3559
+ previousCommentCid?: string | undefined;
3560
+ displayName?: string | undefined;
3561
+ wallets?: Record<string, {
3562
+ address: string;
3563
+ timestamp: number;
3564
+ signature: {
3565
+ signature: string;
3566
+ type: string;
3567
+ };
3568
+ }> | undefined;
3569
+ avatar?: {
3570
+ [x: string]: unknown;
3571
+ chainTicker: string;
3572
+ address: string;
3573
+ id: string;
3574
+ timestamp: number;
3575
+ signature: {
3576
+ signature: string;
3577
+ type: string;
3578
+ };
3579
+ } | undefined;
3580
+ flairs?: {
3581
+ [x: string]: unknown;
3582
+ text: string;
3583
+ backgroundColor?: string | undefined;
3584
+ textColor?: string | undefined;
3585
+ expiresAt?: number | undefined;
3586
+ }[] | undefined;
3587
+ } | undefined;
3588
+ } | undefined;
3589
+ flairs?: {
3590
+ [x: string]: unknown;
3591
+ text: string;
3592
+ backgroundColor?: string | undefined;
3593
+ textColor?: string | undefined;
3594
+ expiresAt?: number | undefined;
3595
+ }[] | undefined;
3596
+ spoiler?: boolean | undefined;
3597
+ nsfw?: boolean | undefined;
3598
+ pinned?: boolean | undefined;
3599
+ locked?: boolean | undefined;
3600
+ archived?: boolean | undefined;
3601
+ removed?: boolean | undefined;
3602
+ reason?: string | undefined;
3603
+ approved?: boolean | undefined;
3604
+ author?: {
3605
+ [x: string]: unknown;
3606
+ community?: {
3607
+ [x: string]: unknown;
3608
+ postScore: number;
3609
+ replyScore: number;
3610
+ firstCommentTimestamp: number;
3611
+ lastCommentCid: string;
3612
+ banExpiresAt?: number | undefined;
3613
+ flairs?: {
3614
+ [x: string]: unknown;
3615
+ text: string;
3616
+ backgroundColor?: string | undefined;
3617
+ textColor?: string | undefined;
3618
+ expiresAt?: number | undefined;
3619
+ }[] | undefined;
3620
+ } | undefined;
3621
+ } | undefined;
3622
+ lastChildCid?: string | undefined;
3623
+ lastReplyTimestamp?: number | undefined;
3624
+ replies?: {
3625
+ pages: Record<string, {
3626
+ comments: {
3627
+ comment: {
3628
+ [x: string]: unknown;
3629
+ timestamp: number;
3630
+ signature: {
3631
+ type: string;
3632
+ signature: string;
3633
+ publicKey: string;
3634
+ signedPropertyNames: string[];
3635
+ };
3636
+ protocolVersion: string;
3637
+ depth: number;
3638
+ flairs?: {
3639
+ [x: string]: unknown;
3640
+ text: string;
3641
+ backgroundColor?: string | undefined;
3642
+ textColor?: string | undefined;
3643
+ expiresAt?: number | undefined;
3644
+ }[] | undefined;
3645
+ communityPublicKey?: string | undefined;
3646
+ communityName?: string | undefined;
3647
+ link?: string | undefined;
3648
+ spoiler?: boolean | undefined;
3649
+ nsfw?: boolean | undefined;
3650
+ content?: string | undefined;
3651
+ title?: string | undefined;
3652
+ linkWidth?: number | undefined;
3653
+ linkHeight?: number | undefined;
3654
+ linkHtmlTagName?: string | undefined;
3655
+ parentCid?: string | undefined;
3656
+ postCid?: string | undefined;
3657
+ quotedCids?: string[] | undefined;
3658
+ crosspost?: import("./publications/comment/schema.js").Crosspost | undefined;
3659
+ author?: {
3660
+ [x: string]: unknown;
3661
+ name?: string | undefined;
3662
+ previousCommentCid?: string | undefined;
3663
+ displayName?: string | undefined;
3664
+ wallets?: Record<string, {
3665
+ address: string;
3666
+ timestamp: number;
3667
+ signature: {
3668
+ signature: string;
3669
+ type: string;
3670
+ };
3671
+ }> | undefined;
3672
+ avatar?: {
3673
+ [x: string]: unknown;
3674
+ chainTicker: string;
3675
+ address: string;
3676
+ id: string;
3677
+ timestamp: number;
3678
+ signature: {
3679
+ signature: string;
3680
+ type: string;
3681
+ };
3682
+ } | undefined;
3683
+ flairs?: {
3684
+ [x: string]: unknown;
3685
+ text: string;
3686
+ backgroundColor?: string | undefined;
3687
+ textColor?: string | undefined;
3688
+ expiresAt?: number | undefined;
3689
+ }[] | undefined;
3690
+ } | undefined;
3691
+ thumbnailUrl?: string | undefined;
3692
+ thumbnailUrlWidth?: number | undefined;
3693
+ thumbnailUrlHeight?: number | undefined;
3694
+ previousCid?: string | undefined;
3695
+ pseudonymityMode?: "per-post" | "per-reply" | "per-author" | undefined;
3696
+ };
3697
+ commentUpdate: /*elided*/ any;
3698
+ }[];
3699
+ nextCid?: string | undefined;
3700
+ }>;
3701
+ pageCids?: Record<string, string> | undefined;
3702
+ } | undefined;
3703
+ }>;
3704
+ options: z.ZodRecord<z.ZodString, z.ZodString>;
3705
+ baseTimestamp: z.ZodNumber;
3706
+ replies: z.ZodOptional<z.ZodArray<z.ZodCustom<import("./index.js").PageSortReplyEntry, import("./index.js").PageSortReplyEntry>>>;
3707
+ }, z.core.$strip>], null>, z.ZodNullable<z.ZodNumber>>;
3708
+ validatePageSortSettings: z.ZodOptional<z.ZodFunction<z.ZodTuple<readonly [z.ZodObject<{
3709
+ pageSortSettings: z.ZodObject<{
3710
+ path: z.ZodOptional<z.ZodString>;
3711
+ name: z.ZodOptional<z.ZodString>;
3712
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3713
+ preloaded: z.ZodOptional<z.ZodBoolean>;
3714
+ privateOptions: z.ZodOptional<z.ZodArray<z.ZodString>>;
3715
+ }, z.core.$strict>;
3716
+ }, z.core.$strip>], null>, z.ZodVoid>>;
3717
+ }, z.core.$loose>>> | undefined;
925
3718
  }, {
926
3719
  ipfsGatewayUrls: string[];
927
3720
  pubsubKuboRpcClientsOptions: import("kubo-rpc-client").Options[];
@@ -1109,6 +3902,565 @@ export declare const PKCUserOptionsSchema: z.ZodPipe<z.ZodObject<{
1109
3902
  }, z.core.$strict>;
1110
3903
  }, z.core.$strip>], null>, z.ZodVoid>>;
1111
3904
  }, z.core.$loose>>> | undefined;
3905
+ pageSorts?: Record<string, z.core.$InferInnerFunctionType<z.ZodTuple<readonly [z.ZodObject<{
3906
+ pageSortSettings: z.ZodObject<{
3907
+ path: z.ZodOptional<z.ZodString>;
3908
+ name: z.ZodOptional<z.ZodString>;
3909
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3910
+ preloaded: z.ZodOptional<z.ZodBoolean>;
3911
+ privateOptions: z.ZodOptional<z.ZodArray<z.ZodString>>;
3912
+ }, z.core.$strict>;
3913
+ }, z.core.$strip>], null>, z.ZodObject<{
3914
+ sortName: z.ZodString;
3915
+ description: z.ZodOptional<z.ZodString>;
3916
+ optionInputs: z.ZodOptional<z.ZodArray<z.ZodObject<{
3917
+ option: z.ZodString;
3918
+ label: z.ZodString;
3919
+ default: z.ZodOptional<z.ZodString>;
3920
+ description: z.ZodOptional<z.ZodString>;
3921
+ placeholder: z.ZodOptional<z.ZodString>;
3922
+ required: z.ZodOptional<z.ZodBoolean>;
3923
+ }, z.core.$loose>>>;
3924
+ scope: z.ZodOptional<z.ZodEnum<{
3925
+ posts: "posts";
3926
+ replies: "replies";
3927
+ }>>;
3928
+ flat: z.ZodOptional<z.ZodBoolean>;
3929
+ defaultOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3930
+ requireReplies: z.ZodOptional<z.ZodBoolean>;
3931
+ score: z.ZodFunction<z.ZodTuple<readonly [z.ZodObject<{
3932
+ comment: z.ZodCustom<{
3933
+ [x: string]: unknown;
3934
+ timestamp: number;
3935
+ signature: {
3936
+ type: string;
3937
+ signature: string;
3938
+ publicKey: string;
3939
+ signedPropertyNames: string[];
3940
+ };
3941
+ protocolVersion: string;
3942
+ depth: number;
3943
+ flairs?: {
3944
+ [x: string]: unknown;
3945
+ text: string;
3946
+ backgroundColor?: string | undefined;
3947
+ textColor?: string | undefined;
3948
+ expiresAt?: number | undefined;
3949
+ }[] | undefined;
3950
+ communityPublicKey?: string | undefined;
3951
+ communityName?: string | undefined;
3952
+ link?: string | undefined;
3953
+ spoiler?: boolean | undefined;
3954
+ nsfw?: boolean | undefined;
3955
+ content?: string | undefined;
3956
+ title?: string | undefined;
3957
+ linkWidth?: number | undefined;
3958
+ linkHeight?: number | undefined;
3959
+ linkHtmlTagName?: string | undefined;
3960
+ parentCid?: string | undefined;
3961
+ postCid?: string | undefined;
3962
+ quotedCids?: string[] | undefined;
3963
+ crosspost?: import("./publications/comment/schema.js").Crosspost | undefined;
3964
+ author?: {
3965
+ [x: string]: unknown;
3966
+ name?: string | undefined;
3967
+ previousCommentCid?: string | undefined;
3968
+ displayName?: string | undefined;
3969
+ wallets?: Record<string, {
3970
+ address: string;
3971
+ timestamp: number;
3972
+ signature: {
3973
+ signature: string;
3974
+ type: string;
3975
+ };
3976
+ }> | undefined;
3977
+ avatar?: {
3978
+ [x: string]: unknown;
3979
+ chainTicker: string;
3980
+ address: string;
3981
+ id: string;
3982
+ timestamp: number;
3983
+ signature: {
3984
+ signature: string;
3985
+ type: string;
3986
+ };
3987
+ } | undefined;
3988
+ flairs?: {
3989
+ [x: string]: unknown;
3990
+ text: string;
3991
+ backgroundColor?: string | undefined;
3992
+ textColor?: string | undefined;
3993
+ expiresAt?: number | undefined;
3994
+ }[] | undefined;
3995
+ } | undefined;
3996
+ thumbnailUrl?: string | undefined;
3997
+ thumbnailUrlWidth?: number | undefined;
3998
+ thumbnailUrlHeight?: number | undefined;
3999
+ previousCid?: string | undefined;
4000
+ pseudonymityMode?: "per-post" | "per-reply" | "per-author" | undefined;
4001
+ }, {
4002
+ [x: string]: unknown;
4003
+ timestamp: number;
4004
+ signature: {
4005
+ type: string;
4006
+ signature: string;
4007
+ publicKey: string;
4008
+ signedPropertyNames: string[];
4009
+ };
4010
+ protocolVersion: string;
4011
+ depth: number;
4012
+ flairs?: {
4013
+ [x: string]: unknown;
4014
+ text: string;
4015
+ backgroundColor?: string | undefined;
4016
+ textColor?: string | undefined;
4017
+ expiresAt?: number | undefined;
4018
+ }[] | undefined;
4019
+ communityPublicKey?: string | undefined;
4020
+ communityName?: string | undefined;
4021
+ link?: string | undefined;
4022
+ spoiler?: boolean | undefined;
4023
+ nsfw?: boolean | undefined;
4024
+ content?: string | undefined;
4025
+ title?: string | undefined;
4026
+ linkWidth?: number | undefined;
4027
+ linkHeight?: number | undefined;
4028
+ linkHtmlTagName?: string | undefined;
4029
+ parentCid?: string | undefined;
4030
+ postCid?: string | undefined;
4031
+ quotedCids?: string[] | undefined;
4032
+ crosspost?: import("./publications/comment/schema.js").Crosspost | undefined;
4033
+ author?: {
4034
+ [x: string]: unknown;
4035
+ name?: string | undefined;
4036
+ previousCommentCid?: string | undefined;
4037
+ displayName?: string | undefined;
4038
+ wallets?: Record<string, {
4039
+ address: string;
4040
+ timestamp: number;
4041
+ signature: {
4042
+ signature: string;
4043
+ type: string;
4044
+ };
4045
+ }> | undefined;
4046
+ avatar?: {
4047
+ [x: string]: unknown;
4048
+ chainTicker: string;
4049
+ address: string;
4050
+ id: string;
4051
+ timestamp: number;
4052
+ signature: {
4053
+ signature: string;
4054
+ type: string;
4055
+ };
4056
+ } | undefined;
4057
+ flairs?: {
4058
+ [x: string]: unknown;
4059
+ text: string;
4060
+ backgroundColor?: string | undefined;
4061
+ textColor?: string | undefined;
4062
+ expiresAt?: number | undefined;
4063
+ }[] | undefined;
4064
+ } | undefined;
4065
+ thumbnailUrl?: string | undefined;
4066
+ thumbnailUrlWidth?: number | undefined;
4067
+ thumbnailUrlHeight?: number | undefined;
4068
+ previousCid?: string | undefined;
4069
+ pseudonymityMode?: "per-post" | "per-reply" | "per-author" | undefined;
4070
+ }>;
4071
+ commentUpdate: z.ZodCustom<{
4072
+ [x: string]: unknown;
4073
+ cid: string;
4074
+ upvoteCount: number;
4075
+ downvoteCount: number;
4076
+ replyCount: number;
4077
+ updatedAt: number;
4078
+ signature: {
4079
+ type: string;
4080
+ signature: string;
4081
+ publicKey: string;
4082
+ signedPropertyNames: string[];
4083
+ };
4084
+ protocolVersion: string;
4085
+ childCount?: number | undefined;
4086
+ number?: number | undefined;
4087
+ postNumber?: number | undefined;
4088
+ edit?: {
4089
+ [x: string]: unknown;
4090
+ timestamp: number;
4091
+ signature: {
4092
+ type: string;
4093
+ signature: string;
4094
+ publicKey: string;
4095
+ signedPropertyNames: string[];
4096
+ };
4097
+ protocolVersion: string;
4098
+ commentCid: string;
4099
+ flairs?: {
4100
+ [x: string]: unknown;
4101
+ text: string;
4102
+ backgroundColor?: string | undefined;
4103
+ textColor?: string | undefined;
4104
+ expiresAt?: number | undefined;
4105
+ }[] | undefined;
4106
+ communityPublicKey?: string | undefined;
4107
+ communityName?: string | undefined;
4108
+ spoiler?: boolean | undefined;
4109
+ nsfw?: boolean | undefined;
4110
+ reason?: string | undefined;
4111
+ content?: string | undefined;
4112
+ deleted?: boolean | undefined;
4113
+ author?: {
4114
+ [x: string]: unknown;
4115
+ name?: string | undefined;
4116
+ previousCommentCid?: string | undefined;
4117
+ displayName?: string | undefined;
4118
+ wallets?: Record<string, {
4119
+ address: string;
4120
+ timestamp: number;
4121
+ signature: {
4122
+ signature: string;
4123
+ type: string;
4124
+ };
4125
+ }> | undefined;
4126
+ avatar?: {
4127
+ [x: string]: unknown;
4128
+ chainTicker: string;
4129
+ address: string;
4130
+ id: string;
4131
+ timestamp: number;
4132
+ signature: {
4133
+ signature: string;
4134
+ type: string;
4135
+ };
4136
+ } | undefined;
4137
+ flairs?: {
4138
+ [x: string]: unknown;
4139
+ text: string;
4140
+ backgroundColor?: string | undefined;
4141
+ textColor?: string | undefined;
4142
+ expiresAt?: number | undefined;
4143
+ }[] | undefined;
4144
+ } | undefined;
4145
+ } | undefined;
4146
+ flairs?: {
4147
+ [x: string]: unknown;
4148
+ text: string;
4149
+ backgroundColor?: string | undefined;
4150
+ textColor?: string | undefined;
4151
+ expiresAt?: number | undefined;
4152
+ }[] | undefined;
4153
+ spoiler?: boolean | undefined;
4154
+ nsfw?: boolean | undefined;
4155
+ pinned?: boolean | undefined;
4156
+ locked?: boolean | undefined;
4157
+ archived?: boolean | undefined;
4158
+ removed?: boolean | undefined;
4159
+ reason?: string | undefined;
4160
+ approved?: boolean | undefined;
4161
+ author?: {
4162
+ [x: string]: unknown;
4163
+ community?: {
4164
+ [x: string]: unknown;
4165
+ postScore: number;
4166
+ replyScore: number;
4167
+ firstCommentTimestamp: number;
4168
+ lastCommentCid: string;
4169
+ banExpiresAt?: number | undefined;
4170
+ flairs?: {
4171
+ [x: string]: unknown;
4172
+ text: string;
4173
+ backgroundColor?: string | undefined;
4174
+ textColor?: string | undefined;
4175
+ expiresAt?: number | undefined;
4176
+ }[] | undefined;
4177
+ } | undefined;
4178
+ } | undefined;
4179
+ lastChildCid?: string | undefined;
4180
+ lastReplyTimestamp?: number | undefined;
4181
+ replies?: {
4182
+ pages: Record<string, {
4183
+ comments: {
4184
+ comment: {
4185
+ [x: string]: unknown;
4186
+ timestamp: number;
4187
+ signature: {
4188
+ type: string;
4189
+ signature: string;
4190
+ publicKey: string;
4191
+ signedPropertyNames: string[];
4192
+ };
4193
+ protocolVersion: string;
4194
+ depth: number;
4195
+ flairs?: {
4196
+ [x: string]: unknown;
4197
+ text: string;
4198
+ backgroundColor?: string | undefined;
4199
+ textColor?: string | undefined;
4200
+ expiresAt?: number | undefined;
4201
+ }[] | undefined;
4202
+ communityPublicKey?: string | undefined;
4203
+ communityName?: string | undefined;
4204
+ link?: string | undefined;
4205
+ spoiler?: boolean | undefined;
4206
+ nsfw?: boolean | undefined;
4207
+ content?: string | undefined;
4208
+ title?: string | undefined;
4209
+ linkWidth?: number | undefined;
4210
+ linkHeight?: number | undefined;
4211
+ linkHtmlTagName?: string | undefined;
4212
+ parentCid?: string | undefined;
4213
+ postCid?: string | undefined;
4214
+ quotedCids?: string[] | undefined;
4215
+ crosspost?: import("./publications/comment/schema.js").Crosspost | undefined;
4216
+ author?: {
4217
+ [x: string]: unknown;
4218
+ name?: string | undefined;
4219
+ previousCommentCid?: string | undefined;
4220
+ displayName?: string | undefined;
4221
+ wallets?: Record<string, {
4222
+ address: string;
4223
+ timestamp: number;
4224
+ signature: {
4225
+ signature: string;
4226
+ type: string;
4227
+ };
4228
+ }> | undefined;
4229
+ avatar?: {
4230
+ [x: string]: unknown;
4231
+ chainTicker: string;
4232
+ address: string;
4233
+ id: string;
4234
+ timestamp: number;
4235
+ signature: {
4236
+ signature: string;
4237
+ type: string;
4238
+ };
4239
+ } | undefined;
4240
+ flairs?: {
4241
+ [x: string]: unknown;
4242
+ text: string;
4243
+ backgroundColor?: string | undefined;
4244
+ textColor?: string | undefined;
4245
+ expiresAt?: number | undefined;
4246
+ }[] | undefined;
4247
+ } | undefined;
4248
+ thumbnailUrl?: string | undefined;
4249
+ thumbnailUrlWidth?: number | undefined;
4250
+ thumbnailUrlHeight?: number | undefined;
4251
+ previousCid?: string | undefined;
4252
+ pseudonymityMode?: "per-post" | "per-reply" | "per-author" | undefined;
4253
+ };
4254
+ commentUpdate: /*elided*/ any;
4255
+ }[];
4256
+ nextCid?: string | undefined;
4257
+ }>;
4258
+ pageCids?: Record<string, string> | undefined;
4259
+ } | undefined;
4260
+ }, {
4261
+ [x: string]: unknown;
4262
+ cid: string;
4263
+ upvoteCount: number;
4264
+ downvoteCount: number;
4265
+ replyCount: number;
4266
+ updatedAt: number;
4267
+ signature: {
4268
+ type: string;
4269
+ signature: string;
4270
+ publicKey: string;
4271
+ signedPropertyNames: string[];
4272
+ };
4273
+ protocolVersion: string;
4274
+ childCount?: number | undefined;
4275
+ number?: number | undefined;
4276
+ postNumber?: number | undefined;
4277
+ edit?: {
4278
+ [x: string]: unknown;
4279
+ timestamp: number;
4280
+ signature: {
4281
+ type: string;
4282
+ signature: string;
4283
+ publicKey: string;
4284
+ signedPropertyNames: string[];
4285
+ };
4286
+ protocolVersion: string;
4287
+ commentCid: string;
4288
+ flairs?: {
4289
+ [x: string]: unknown;
4290
+ text: string;
4291
+ backgroundColor?: string | undefined;
4292
+ textColor?: string | undefined;
4293
+ expiresAt?: number | undefined;
4294
+ }[] | undefined;
4295
+ communityPublicKey?: string | undefined;
4296
+ communityName?: string | undefined;
4297
+ spoiler?: boolean | undefined;
4298
+ nsfw?: boolean | undefined;
4299
+ reason?: string | undefined;
4300
+ content?: string | undefined;
4301
+ deleted?: boolean | undefined;
4302
+ author?: {
4303
+ [x: string]: unknown;
4304
+ name?: string | undefined;
4305
+ previousCommentCid?: string | undefined;
4306
+ displayName?: string | undefined;
4307
+ wallets?: Record<string, {
4308
+ address: string;
4309
+ timestamp: number;
4310
+ signature: {
4311
+ signature: string;
4312
+ type: string;
4313
+ };
4314
+ }> | undefined;
4315
+ avatar?: {
4316
+ [x: string]: unknown;
4317
+ chainTicker: string;
4318
+ address: string;
4319
+ id: string;
4320
+ timestamp: number;
4321
+ signature: {
4322
+ signature: string;
4323
+ type: string;
4324
+ };
4325
+ } | undefined;
4326
+ flairs?: {
4327
+ [x: string]: unknown;
4328
+ text: string;
4329
+ backgroundColor?: string | undefined;
4330
+ textColor?: string | undefined;
4331
+ expiresAt?: number | undefined;
4332
+ }[] | undefined;
4333
+ } | undefined;
4334
+ } | undefined;
4335
+ flairs?: {
4336
+ [x: string]: unknown;
4337
+ text: string;
4338
+ backgroundColor?: string | undefined;
4339
+ textColor?: string | undefined;
4340
+ expiresAt?: number | undefined;
4341
+ }[] | undefined;
4342
+ spoiler?: boolean | undefined;
4343
+ nsfw?: boolean | undefined;
4344
+ pinned?: boolean | undefined;
4345
+ locked?: boolean | undefined;
4346
+ archived?: boolean | undefined;
4347
+ removed?: boolean | undefined;
4348
+ reason?: string | undefined;
4349
+ approved?: boolean | undefined;
4350
+ author?: {
4351
+ [x: string]: unknown;
4352
+ community?: {
4353
+ [x: string]: unknown;
4354
+ postScore: number;
4355
+ replyScore: number;
4356
+ firstCommentTimestamp: number;
4357
+ lastCommentCid: string;
4358
+ banExpiresAt?: number | undefined;
4359
+ flairs?: {
4360
+ [x: string]: unknown;
4361
+ text: string;
4362
+ backgroundColor?: string | undefined;
4363
+ textColor?: string | undefined;
4364
+ expiresAt?: number | undefined;
4365
+ }[] | undefined;
4366
+ } | undefined;
4367
+ } | undefined;
4368
+ lastChildCid?: string | undefined;
4369
+ lastReplyTimestamp?: number | undefined;
4370
+ replies?: {
4371
+ pages: Record<string, {
4372
+ comments: {
4373
+ comment: {
4374
+ [x: string]: unknown;
4375
+ timestamp: number;
4376
+ signature: {
4377
+ type: string;
4378
+ signature: string;
4379
+ publicKey: string;
4380
+ signedPropertyNames: string[];
4381
+ };
4382
+ protocolVersion: string;
4383
+ depth: number;
4384
+ flairs?: {
4385
+ [x: string]: unknown;
4386
+ text: string;
4387
+ backgroundColor?: string | undefined;
4388
+ textColor?: string | undefined;
4389
+ expiresAt?: number | undefined;
4390
+ }[] | undefined;
4391
+ communityPublicKey?: string | undefined;
4392
+ communityName?: string | undefined;
4393
+ link?: string | undefined;
4394
+ spoiler?: boolean | undefined;
4395
+ nsfw?: boolean | undefined;
4396
+ content?: string | undefined;
4397
+ title?: string | undefined;
4398
+ linkWidth?: number | undefined;
4399
+ linkHeight?: number | undefined;
4400
+ linkHtmlTagName?: string | undefined;
4401
+ parentCid?: string | undefined;
4402
+ postCid?: string | undefined;
4403
+ quotedCids?: string[] | undefined;
4404
+ crosspost?: import("./publications/comment/schema.js").Crosspost | undefined;
4405
+ author?: {
4406
+ [x: string]: unknown;
4407
+ name?: string | undefined;
4408
+ previousCommentCid?: string | undefined;
4409
+ displayName?: string | undefined;
4410
+ wallets?: Record<string, {
4411
+ address: string;
4412
+ timestamp: number;
4413
+ signature: {
4414
+ signature: string;
4415
+ type: string;
4416
+ };
4417
+ }> | undefined;
4418
+ avatar?: {
4419
+ [x: string]: unknown;
4420
+ chainTicker: string;
4421
+ address: string;
4422
+ id: string;
4423
+ timestamp: number;
4424
+ signature: {
4425
+ signature: string;
4426
+ type: string;
4427
+ };
4428
+ } | undefined;
4429
+ flairs?: {
4430
+ [x: string]: unknown;
4431
+ text: string;
4432
+ backgroundColor?: string | undefined;
4433
+ textColor?: string | undefined;
4434
+ expiresAt?: number | undefined;
4435
+ }[] | undefined;
4436
+ } | undefined;
4437
+ thumbnailUrl?: string | undefined;
4438
+ thumbnailUrlWidth?: number | undefined;
4439
+ thumbnailUrlHeight?: number | undefined;
4440
+ previousCid?: string | undefined;
4441
+ pseudonymityMode?: "per-post" | "per-reply" | "per-author" | undefined;
4442
+ };
4443
+ commentUpdate: /*elided*/ any;
4444
+ }[];
4445
+ nextCid?: string | undefined;
4446
+ }>;
4447
+ pageCids?: Record<string, string> | undefined;
4448
+ } | undefined;
4449
+ }>;
4450
+ options: z.ZodRecord<z.ZodString, z.ZodString>;
4451
+ baseTimestamp: z.ZodNumber;
4452
+ replies: z.ZodOptional<z.ZodArray<z.ZodCustom<import("./index.js").PageSortReplyEntry, import("./index.js").PageSortReplyEntry>>>;
4453
+ }, z.core.$strip>], null>, z.ZodNullable<z.ZodNumber>>;
4454
+ validatePageSortSettings: z.ZodOptional<z.ZodFunction<z.ZodTuple<readonly [z.ZodObject<{
4455
+ pageSortSettings: z.ZodObject<{
4456
+ path: z.ZodOptional<z.ZodString>;
4457
+ name: z.ZodOptional<z.ZodString>;
4458
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
4459
+ preloaded: z.ZodOptional<z.ZodBoolean>;
4460
+ privateOptions: z.ZodOptional<z.ZodArray<z.ZodString>>;
4461
+ }, z.core.$strict>;
4462
+ }, z.core.$strip>], null>, z.ZodVoid>>;
4463
+ }, z.core.$loose>>> | undefined;
1112
4464
  }>>;
1113
4465
  export declare const PKCParsedOptionsSchema: z.ZodObject<{
1114
4466
  ipfsGatewayUrls: z.ZodOptional<z.ZodArray<z.ZodURL>>;
@@ -1457,6 +4809,1123 @@ export declare const PKCParsedOptionsSchema: z.ZodObject<{
1457
4809
  }, z.core.$strict>;
1458
4810
  }, z.core.$strip>], null>, z.ZodVoid>>;
1459
4811
  }, z.core.$loose>>>>>;
4812
+ pageSorts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodCustom<z.core.$InferInnerFunctionType<z.ZodTuple<readonly [z.ZodObject<{
4813
+ pageSortSettings: z.ZodObject<{
4814
+ path: z.ZodOptional<z.ZodString>;
4815
+ name: z.ZodOptional<z.ZodString>;
4816
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
4817
+ preloaded: z.ZodOptional<z.ZodBoolean>;
4818
+ privateOptions: z.ZodOptional<z.ZodArray<z.ZodString>>;
4819
+ }, z.core.$strict>;
4820
+ }, z.core.$strip>], null>, z.ZodObject<{
4821
+ sortName: z.ZodString;
4822
+ description: z.ZodOptional<z.ZodString>;
4823
+ optionInputs: z.ZodOptional<z.ZodArray<z.ZodObject<{
4824
+ option: z.ZodString;
4825
+ label: z.ZodString;
4826
+ default: z.ZodOptional<z.ZodString>;
4827
+ description: z.ZodOptional<z.ZodString>;
4828
+ placeholder: z.ZodOptional<z.ZodString>;
4829
+ required: z.ZodOptional<z.ZodBoolean>;
4830
+ }, z.core.$loose>>>;
4831
+ scope: z.ZodOptional<z.ZodEnum<{
4832
+ posts: "posts";
4833
+ replies: "replies";
4834
+ }>>;
4835
+ flat: z.ZodOptional<z.ZodBoolean>;
4836
+ defaultOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
4837
+ requireReplies: z.ZodOptional<z.ZodBoolean>;
4838
+ score: z.ZodFunction<z.ZodTuple<readonly [z.ZodObject<{
4839
+ comment: z.ZodCustom<{
4840
+ [x: string]: unknown;
4841
+ timestamp: number;
4842
+ signature: {
4843
+ type: string;
4844
+ signature: string;
4845
+ publicKey: string;
4846
+ signedPropertyNames: string[];
4847
+ };
4848
+ protocolVersion: string;
4849
+ depth: number;
4850
+ flairs?: {
4851
+ [x: string]: unknown;
4852
+ text: string;
4853
+ backgroundColor?: string | undefined;
4854
+ textColor?: string | undefined;
4855
+ expiresAt?: number | undefined;
4856
+ }[] | undefined;
4857
+ communityPublicKey?: string | undefined;
4858
+ communityName?: string | undefined;
4859
+ link?: string | undefined;
4860
+ spoiler?: boolean | undefined;
4861
+ nsfw?: boolean | undefined;
4862
+ content?: string | undefined;
4863
+ title?: string | undefined;
4864
+ linkWidth?: number | undefined;
4865
+ linkHeight?: number | undefined;
4866
+ linkHtmlTagName?: string | undefined;
4867
+ parentCid?: string | undefined;
4868
+ postCid?: string | undefined;
4869
+ quotedCids?: string[] | undefined;
4870
+ crosspost?: import("./publications/comment/schema.js").Crosspost | undefined;
4871
+ author?: {
4872
+ [x: string]: unknown;
4873
+ name?: string | undefined;
4874
+ previousCommentCid?: string | undefined;
4875
+ displayName?: string | undefined;
4876
+ wallets?: Record<string, {
4877
+ address: string;
4878
+ timestamp: number;
4879
+ signature: {
4880
+ signature: string;
4881
+ type: string;
4882
+ };
4883
+ }> | undefined;
4884
+ avatar?: {
4885
+ [x: string]: unknown;
4886
+ chainTicker: string;
4887
+ address: string;
4888
+ id: string;
4889
+ timestamp: number;
4890
+ signature: {
4891
+ signature: string;
4892
+ type: string;
4893
+ };
4894
+ } | undefined;
4895
+ flairs?: {
4896
+ [x: string]: unknown;
4897
+ text: string;
4898
+ backgroundColor?: string | undefined;
4899
+ textColor?: string | undefined;
4900
+ expiresAt?: number | undefined;
4901
+ }[] | undefined;
4902
+ } | undefined;
4903
+ thumbnailUrl?: string | undefined;
4904
+ thumbnailUrlWidth?: number | undefined;
4905
+ thumbnailUrlHeight?: number | undefined;
4906
+ previousCid?: string | undefined;
4907
+ pseudonymityMode?: "per-post" | "per-reply" | "per-author" | undefined;
4908
+ }, {
4909
+ [x: string]: unknown;
4910
+ timestamp: number;
4911
+ signature: {
4912
+ type: string;
4913
+ signature: string;
4914
+ publicKey: string;
4915
+ signedPropertyNames: string[];
4916
+ };
4917
+ protocolVersion: string;
4918
+ depth: number;
4919
+ flairs?: {
4920
+ [x: string]: unknown;
4921
+ text: string;
4922
+ backgroundColor?: string | undefined;
4923
+ textColor?: string | undefined;
4924
+ expiresAt?: number | undefined;
4925
+ }[] | undefined;
4926
+ communityPublicKey?: string | undefined;
4927
+ communityName?: string | undefined;
4928
+ link?: string | undefined;
4929
+ spoiler?: boolean | undefined;
4930
+ nsfw?: boolean | undefined;
4931
+ content?: string | undefined;
4932
+ title?: string | undefined;
4933
+ linkWidth?: number | undefined;
4934
+ linkHeight?: number | undefined;
4935
+ linkHtmlTagName?: string | undefined;
4936
+ parentCid?: string | undefined;
4937
+ postCid?: string | undefined;
4938
+ quotedCids?: string[] | undefined;
4939
+ crosspost?: import("./publications/comment/schema.js").Crosspost | undefined;
4940
+ author?: {
4941
+ [x: string]: unknown;
4942
+ name?: string | undefined;
4943
+ previousCommentCid?: string | undefined;
4944
+ displayName?: string | undefined;
4945
+ wallets?: Record<string, {
4946
+ address: string;
4947
+ timestamp: number;
4948
+ signature: {
4949
+ signature: string;
4950
+ type: string;
4951
+ };
4952
+ }> | undefined;
4953
+ avatar?: {
4954
+ [x: string]: unknown;
4955
+ chainTicker: string;
4956
+ address: string;
4957
+ id: string;
4958
+ timestamp: number;
4959
+ signature: {
4960
+ signature: string;
4961
+ type: string;
4962
+ };
4963
+ } | undefined;
4964
+ flairs?: {
4965
+ [x: string]: unknown;
4966
+ text: string;
4967
+ backgroundColor?: string | undefined;
4968
+ textColor?: string | undefined;
4969
+ expiresAt?: number | undefined;
4970
+ }[] | undefined;
4971
+ } | undefined;
4972
+ thumbnailUrl?: string | undefined;
4973
+ thumbnailUrlWidth?: number | undefined;
4974
+ thumbnailUrlHeight?: number | undefined;
4975
+ previousCid?: string | undefined;
4976
+ pseudonymityMode?: "per-post" | "per-reply" | "per-author" | undefined;
4977
+ }>;
4978
+ commentUpdate: z.ZodCustom<{
4979
+ [x: string]: unknown;
4980
+ cid: string;
4981
+ upvoteCount: number;
4982
+ downvoteCount: number;
4983
+ replyCount: number;
4984
+ updatedAt: number;
4985
+ signature: {
4986
+ type: string;
4987
+ signature: string;
4988
+ publicKey: string;
4989
+ signedPropertyNames: string[];
4990
+ };
4991
+ protocolVersion: string;
4992
+ childCount?: number | undefined;
4993
+ number?: number | undefined;
4994
+ postNumber?: number | undefined;
4995
+ edit?: {
4996
+ [x: string]: unknown;
4997
+ timestamp: number;
4998
+ signature: {
4999
+ type: string;
5000
+ signature: string;
5001
+ publicKey: string;
5002
+ signedPropertyNames: string[];
5003
+ };
5004
+ protocolVersion: string;
5005
+ commentCid: string;
5006
+ flairs?: {
5007
+ [x: string]: unknown;
5008
+ text: string;
5009
+ backgroundColor?: string | undefined;
5010
+ textColor?: string | undefined;
5011
+ expiresAt?: number | undefined;
5012
+ }[] | undefined;
5013
+ communityPublicKey?: string | undefined;
5014
+ communityName?: string | undefined;
5015
+ spoiler?: boolean | undefined;
5016
+ nsfw?: boolean | undefined;
5017
+ reason?: string | undefined;
5018
+ content?: string | undefined;
5019
+ deleted?: boolean | undefined;
5020
+ author?: {
5021
+ [x: string]: unknown;
5022
+ name?: string | undefined;
5023
+ previousCommentCid?: string | undefined;
5024
+ displayName?: string | undefined;
5025
+ wallets?: Record<string, {
5026
+ address: string;
5027
+ timestamp: number;
5028
+ signature: {
5029
+ signature: string;
5030
+ type: string;
5031
+ };
5032
+ }> | undefined;
5033
+ avatar?: {
5034
+ [x: string]: unknown;
5035
+ chainTicker: string;
5036
+ address: string;
5037
+ id: string;
5038
+ timestamp: number;
5039
+ signature: {
5040
+ signature: string;
5041
+ type: string;
5042
+ };
5043
+ } | undefined;
5044
+ flairs?: {
5045
+ [x: string]: unknown;
5046
+ text: string;
5047
+ backgroundColor?: string | undefined;
5048
+ textColor?: string | undefined;
5049
+ expiresAt?: number | undefined;
5050
+ }[] | undefined;
5051
+ } | undefined;
5052
+ } | undefined;
5053
+ flairs?: {
5054
+ [x: string]: unknown;
5055
+ text: string;
5056
+ backgroundColor?: string | undefined;
5057
+ textColor?: string | undefined;
5058
+ expiresAt?: number | undefined;
5059
+ }[] | undefined;
5060
+ spoiler?: boolean | undefined;
5061
+ nsfw?: boolean | undefined;
5062
+ pinned?: boolean | undefined;
5063
+ locked?: boolean | undefined;
5064
+ archived?: boolean | undefined;
5065
+ removed?: boolean | undefined;
5066
+ reason?: string | undefined;
5067
+ approved?: boolean | undefined;
5068
+ author?: {
5069
+ [x: string]: unknown;
5070
+ community?: {
5071
+ [x: string]: unknown;
5072
+ postScore: number;
5073
+ replyScore: number;
5074
+ firstCommentTimestamp: number;
5075
+ lastCommentCid: string;
5076
+ banExpiresAt?: number | undefined;
5077
+ flairs?: {
5078
+ [x: string]: unknown;
5079
+ text: string;
5080
+ backgroundColor?: string | undefined;
5081
+ textColor?: string | undefined;
5082
+ expiresAt?: number | undefined;
5083
+ }[] | undefined;
5084
+ } | undefined;
5085
+ } | undefined;
5086
+ lastChildCid?: string | undefined;
5087
+ lastReplyTimestamp?: number | undefined;
5088
+ replies?: {
5089
+ pages: Record<string, {
5090
+ comments: {
5091
+ comment: {
5092
+ [x: string]: unknown;
5093
+ timestamp: number;
5094
+ signature: {
5095
+ type: string;
5096
+ signature: string;
5097
+ publicKey: string;
5098
+ signedPropertyNames: string[];
5099
+ };
5100
+ protocolVersion: string;
5101
+ depth: number;
5102
+ flairs?: {
5103
+ [x: string]: unknown;
5104
+ text: string;
5105
+ backgroundColor?: string | undefined;
5106
+ textColor?: string | undefined;
5107
+ expiresAt?: number | undefined;
5108
+ }[] | undefined;
5109
+ communityPublicKey?: string | undefined;
5110
+ communityName?: string | undefined;
5111
+ link?: string | undefined;
5112
+ spoiler?: boolean | undefined;
5113
+ nsfw?: boolean | undefined;
5114
+ content?: string | undefined;
5115
+ title?: string | undefined;
5116
+ linkWidth?: number | undefined;
5117
+ linkHeight?: number | undefined;
5118
+ linkHtmlTagName?: string | undefined;
5119
+ parentCid?: string | undefined;
5120
+ postCid?: string | undefined;
5121
+ quotedCids?: string[] | undefined;
5122
+ crosspost?: import("./publications/comment/schema.js").Crosspost | undefined;
5123
+ author?: {
5124
+ [x: string]: unknown;
5125
+ name?: string | undefined;
5126
+ previousCommentCid?: string | undefined;
5127
+ displayName?: string | undefined;
5128
+ wallets?: Record<string, {
5129
+ address: string;
5130
+ timestamp: number;
5131
+ signature: {
5132
+ signature: string;
5133
+ type: string;
5134
+ };
5135
+ }> | undefined;
5136
+ avatar?: {
5137
+ [x: string]: unknown;
5138
+ chainTicker: string;
5139
+ address: string;
5140
+ id: string;
5141
+ timestamp: number;
5142
+ signature: {
5143
+ signature: string;
5144
+ type: string;
5145
+ };
5146
+ } | undefined;
5147
+ flairs?: {
5148
+ [x: string]: unknown;
5149
+ text: string;
5150
+ backgroundColor?: string | undefined;
5151
+ textColor?: string | undefined;
5152
+ expiresAt?: number | undefined;
5153
+ }[] | undefined;
5154
+ } | undefined;
5155
+ thumbnailUrl?: string | undefined;
5156
+ thumbnailUrlWidth?: number | undefined;
5157
+ thumbnailUrlHeight?: number | undefined;
5158
+ previousCid?: string | undefined;
5159
+ pseudonymityMode?: "per-post" | "per-reply" | "per-author" | undefined;
5160
+ };
5161
+ commentUpdate: /*elided*/ any;
5162
+ }[];
5163
+ nextCid?: string | undefined;
5164
+ }>;
5165
+ pageCids?: Record<string, string> | undefined;
5166
+ } | undefined;
5167
+ }, {
5168
+ [x: string]: unknown;
5169
+ cid: string;
5170
+ upvoteCount: number;
5171
+ downvoteCount: number;
5172
+ replyCount: number;
5173
+ updatedAt: number;
5174
+ signature: {
5175
+ type: string;
5176
+ signature: string;
5177
+ publicKey: string;
5178
+ signedPropertyNames: string[];
5179
+ };
5180
+ protocolVersion: string;
5181
+ childCount?: number | undefined;
5182
+ number?: number | undefined;
5183
+ postNumber?: number | undefined;
5184
+ edit?: {
5185
+ [x: string]: unknown;
5186
+ timestamp: number;
5187
+ signature: {
5188
+ type: string;
5189
+ signature: string;
5190
+ publicKey: string;
5191
+ signedPropertyNames: string[];
5192
+ };
5193
+ protocolVersion: string;
5194
+ commentCid: string;
5195
+ flairs?: {
5196
+ [x: string]: unknown;
5197
+ text: string;
5198
+ backgroundColor?: string | undefined;
5199
+ textColor?: string | undefined;
5200
+ expiresAt?: number | undefined;
5201
+ }[] | undefined;
5202
+ communityPublicKey?: string | undefined;
5203
+ communityName?: string | undefined;
5204
+ spoiler?: boolean | undefined;
5205
+ nsfw?: boolean | undefined;
5206
+ reason?: string | undefined;
5207
+ content?: string | undefined;
5208
+ deleted?: boolean | undefined;
5209
+ author?: {
5210
+ [x: string]: unknown;
5211
+ name?: string | undefined;
5212
+ previousCommentCid?: string | undefined;
5213
+ displayName?: string | undefined;
5214
+ wallets?: Record<string, {
5215
+ address: string;
5216
+ timestamp: number;
5217
+ signature: {
5218
+ signature: string;
5219
+ type: string;
5220
+ };
5221
+ }> | undefined;
5222
+ avatar?: {
5223
+ [x: string]: unknown;
5224
+ chainTicker: string;
5225
+ address: string;
5226
+ id: string;
5227
+ timestamp: number;
5228
+ signature: {
5229
+ signature: string;
5230
+ type: string;
5231
+ };
5232
+ } | undefined;
5233
+ flairs?: {
5234
+ [x: string]: unknown;
5235
+ text: string;
5236
+ backgroundColor?: string | undefined;
5237
+ textColor?: string | undefined;
5238
+ expiresAt?: number | undefined;
5239
+ }[] | undefined;
5240
+ } | undefined;
5241
+ } | undefined;
5242
+ flairs?: {
5243
+ [x: string]: unknown;
5244
+ text: string;
5245
+ backgroundColor?: string | undefined;
5246
+ textColor?: string | undefined;
5247
+ expiresAt?: number | undefined;
5248
+ }[] | undefined;
5249
+ spoiler?: boolean | undefined;
5250
+ nsfw?: boolean | undefined;
5251
+ pinned?: boolean | undefined;
5252
+ locked?: boolean | undefined;
5253
+ archived?: boolean | undefined;
5254
+ removed?: boolean | undefined;
5255
+ reason?: string | undefined;
5256
+ approved?: boolean | undefined;
5257
+ author?: {
5258
+ [x: string]: unknown;
5259
+ community?: {
5260
+ [x: string]: unknown;
5261
+ postScore: number;
5262
+ replyScore: number;
5263
+ firstCommentTimestamp: number;
5264
+ lastCommentCid: string;
5265
+ banExpiresAt?: number | undefined;
5266
+ flairs?: {
5267
+ [x: string]: unknown;
5268
+ text: string;
5269
+ backgroundColor?: string | undefined;
5270
+ textColor?: string | undefined;
5271
+ expiresAt?: number | undefined;
5272
+ }[] | undefined;
5273
+ } | undefined;
5274
+ } | undefined;
5275
+ lastChildCid?: string | undefined;
5276
+ lastReplyTimestamp?: number | undefined;
5277
+ replies?: {
5278
+ pages: Record<string, {
5279
+ comments: {
5280
+ comment: {
5281
+ [x: string]: unknown;
5282
+ timestamp: number;
5283
+ signature: {
5284
+ type: string;
5285
+ signature: string;
5286
+ publicKey: string;
5287
+ signedPropertyNames: string[];
5288
+ };
5289
+ protocolVersion: string;
5290
+ depth: number;
5291
+ flairs?: {
5292
+ [x: string]: unknown;
5293
+ text: string;
5294
+ backgroundColor?: string | undefined;
5295
+ textColor?: string | undefined;
5296
+ expiresAt?: number | undefined;
5297
+ }[] | undefined;
5298
+ communityPublicKey?: string | undefined;
5299
+ communityName?: string | undefined;
5300
+ link?: string | undefined;
5301
+ spoiler?: boolean | undefined;
5302
+ nsfw?: boolean | undefined;
5303
+ content?: string | undefined;
5304
+ title?: string | undefined;
5305
+ linkWidth?: number | undefined;
5306
+ linkHeight?: number | undefined;
5307
+ linkHtmlTagName?: string | undefined;
5308
+ parentCid?: string | undefined;
5309
+ postCid?: string | undefined;
5310
+ quotedCids?: string[] | undefined;
5311
+ crosspost?: import("./publications/comment/schema.js").Crosspost | undefined;
5312
+ author?: {
5313
+ [x: string]: unknown;
5314
+ name?: string | undefined;
5315
+ previousCommentCid?: string | undefined;
5316
+ displayName?: string | undefined;
5317
+ wallets?: Record<string, {
5318
+ address: string;
5319
+ timestamp: number;
5320
+ signature: {
5321
+ signature: string;
5322
+ type: string;
5323
+ };
5324
+ }> | undefined;
5325
+ avatar?: {
5326
+ [x: string]: unknown;
5327
+ chainTicker: string;
5328
+ address: string;
5329
+ id: string;
5330
+ timestamp: number;
5331
+ signature: {
5332
+ signature: string;
5333
+ type: string;
5334
+ };
5335
+ } | undefined;
5336
+ flairs?: {
5337
+ [x: string]: unknown;
5338
+ text: string;
5339
+ backgroundColor?: string | undefined;
5340
+ textColor?: string | undefined;
5341
+ expiresAt?: number | undefined;
5342
+ }[] | undefined;
5343
+ } | undefined;
5344
+ thumbnailUrl?: string | undefined;
5345
+ thumbnailUrlWidth?: number | undefined;
5346
+ thumbnailUrlHeight?: number | undefined;
5347
+ previousCid?: string | undefined;
5348
+ pseudonymityMode?: "per-post" | "per-reply" | "per-author" | undefined;
5349
+ };
5350
+ commentUpdate: /*elided*/ any;
5351
+ }[];
5352
+ nextCid?: string | undefined;
5353
+ }>;
5354
+ pageCids?: Record<string, string> | undefined;
5355
+ } | undefined;
5356
+ }>;
5357
+ options: z.ZodRecord<z.ZodString, z.ZodString>;
5358
+ baseTimestamp: z.ZodNumber;
5359
+ replies: z.ZodOptional<z.ZodArray<z.ZodCustom<import("./index.js").PageSortReplyEntry, import("./index.js").PageSortReplyEntry>>>;
5360
+ }, z.core.$strip>], null>, z.ZodNullable<z.ZodNumber>>;
5361
+ validatePageSortSettings: z.ZodOptional<z.ZodFunction<z.ZodTuple<readonly [z.ZodObject<{
5362
+ pageSortSettings: z.ZodObject<{
5363
+ path: z.ZodOptional<z.ZodString>;
5364
+ name: z.ZodOptional<z.ZodString>;
5365
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
5366
+ preloaded: z.ZodOptional<z.ZodBoolean>;
5367
+ privateOptions: z.ZodOptional<z.ZodArray<z.ZodString>>;
5368
+ }, z.core.$strict>;
5369
+ }, z.core.$strip>], null>, z.ZodVoid>>;
5370
+ }, z.core.$loose>>, z.core.$InferInnerFunctionType<z.ZodTuple<readonly [z.ZodObject<{
5371
+ pageSortSettings: z.ZodObject<{
5372
+ path: z.ZodOptional<z.ZodString>;
5373
+ name: z.ZodOptional<z.ZodString>;
5374
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
5375
+ preloaded: z.ZodOptional<z.ZodBoolean>;
5376
+ privateOptions: z.ZodOptional<z.ZodArray<z.ZodString>>;
5377
+ }, z.core.$strict>;
5378
+ }, z.core.$strip>], null>, z.ZodObject<{
5379
+ sortName: z.ZodString;
5380
+ description: z.ZodOptional<z.ZodString>;
5381
+ optionInputs: z.ZodOptional<z.ZodArray<z.ZodObject<{
5382
+ option: z.ZodString;
5383
+ label: z.ZodString;
5384
+ default: z.ZodOptional<z.ZodString>;
5385
+ description: z.ZodOptional<z.ZodString>;
5386
+ placeholder: z.ZodOptional<z.ZodString>;
5387
+ required: z.ZodOptional<z.ZodBoolean>;
5388
+ }, z.core.$loose>>>;
5389
+ scope: z.ZodOptional<z.ZodEnum<{
5390
+ posts: "posts";
5391
+ replies: "replies";
5392
+ }>>;
5393
+ flat: z.ZodOptional<z.ZodBoolean>;
5394
+ defaultOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
5395
+ requireReplies: z.ZodOptional<z.ZodBoolean>;
5396
+ score: z.ZodFunction<z.ZodTuple<readonly [z.ZodObject<{
5397
+ comment: z.ZodCustom<{
5398
+ [x: string]: unknown;
5399
+ timestamp: number;
5400
+ signature: {
5401
+ type: string;
5402
+ signature: string;
5403
+ publicKey: string;
5404
+ signedPropertyNames: string[];
5405
+ };
5406
+ protocolVersion: string;
5407
+ depth: number;
5408
+ flairs?: {
5409
+ [x: string]: unknown;
5410
+ text: string;
5411
+ backgroundColor?: string | undefined;
5412
+ textColor?: string | undefined;
5413
+ expiresAt?: number | undefined;
5414
+ }[] | undefined;
5415
+ communityPublicKey?: string | undefined;
5416
+ communityName?: string | undefined;
5417
+ link?: string | undefined;
5418
+ spoiler?: boolean | undefined;
5419
+ nsfw?: boolean | undefined;
5420
+ content?: string | undefined;
5421
+ title?: string | undefined;
5422
+ linkWidth?: number | undefined;
5423
+ linkHeight?: number | undefined;
5424
+ linkHtmlTagName?: string | undefined;
5425
+ parentCid?: string | undefined;
5426
+ postCid?: string | undefined;
5427
+ quotedCids?: string[] | undefined;
5428
+ crosspost?: import("./publications/comment/schema.js").Crosspost | undefined;
5429
+ author?: {
5430
+ [x: string]: unknown;
5431
+ name?: string | undefined;
5432
+ previousCommentCid?: string | undefined;
5433
+ displayName?: string | undefined;
5434
+ wallets?: Record<string, {
5435
+ address: string;
5436
+ timestamp: number;
5437
+ signature: {
5438
+ signature: string;
5439
+ type: string;
5440
+ };
5441
+ }> | undefined;
5442
+ avatar?: {
5443
+ [x: string]: unknown;
5444
+ chainTicker: string;
5445
+ address: string;
5446
+ id: string;
5447
+ timestamp: number;
5448
+ signature: {
5449
+ signature: string;
5450
+ type: string;
5451
+ };
5452
+ } | undefined;
5453
+ flairs?: {
5454
+ [x: string]: unknown;
5455
+ text: string;
5456
+ backgroundColor?: string | undefined;
5457
+ textColor?: string | undefined;
5458
+ expiresAt?: number | undefined;
5459
+ }[] | undefined;
5460
+ } | undefined;
5461
+ thumbnailUrl?: string | undefined;
5462
+ thumbnailUrlWidth?: number | undefined;
5463
+ thumbnailUrlHeight?: number | undefined;
5464
+ previousCid?: string | undefined;
5465
+ pseudonymityMode?: "per-post" | "per-reply" | "per-author" | undefined;
5466
+ }, {
5467
+ [x: string]: unknown;
5468
+ timestamp: number;
5469
+ signature: {
5470
+ type: string;
5471
+ signature: string;
5472
+ publicKey: string;
5473
+ signedPropertyNames: string[];
5474
+ };
5475
+ protocolVersion: string;
5476
+ depth: number;
5477
+ flairs?: {
5478
+ [x: string]: unknown;
5479
+ text: string;
5480
+ backgroundColor?: string | undefined;
5481
+ textColor?: string | undefined;
5482
+ expiresAt?: number | undefined;
5483
+ }[] | undefined;
5484
+ communityPublicKey?: string | undefined;
5485
+ communityName?: string | undefined;
5486
+ link?: string | undefined;
5487
+ spoiler?: boolean | undefined;
5488
+ nsfw?: boolean | undefined;
5489
+ content?: string | undefined;
5490
+ title?: string | undefined;
5491
+ linkWidth?: number | undefined;
5492
+ linkHeight?: number | undefined;
5493
+ linkHtmlTagName?: string | undefined;
5494
+ parentCid?: string | undefined;
5495
+ postCid?: string | undefined;
5496
+ quotedCids?: string[] | undefined;
5497
+ crosspost?: import("./publications/comment/schema.js").Crosspost | undefined;
5498
+ author?: {
5499
+ [x: string]: unknown;
5500
+ name?: string | undefined;
5501
+ previousCommentCid?: string | undefined;
5502
+ displayName?: string | undefined;
5503
+ wallets?: Record<string, {
5504
+ address: string;
5505
+ timestamp: number;
5506
+ signature: {
5507
+ signature: string;
5508
+ type: string;
5509
+ };
5510
+ }> | undefined;
5511
+ avatar?: {
5512
+ [x: string]: unknown;
5513
+ chainTicker: string;
5514
+ address: string;
5515
+ id: string;
5516
+ timestamp: number;
5517
+ signature: {
5518
+ signature: string;
5519
+ type: string;
5520
+ };
5521
+ } | undefined;
5522
+ flairs?: {
5523
+ [x: string]: unknown;
5524
+ text: string;
5525
+ backgroundColor?: string | undefined;
5526
+ textColor?: string | undefined;
5527
+ expiresAt?: number | undefined;
5528
+ }[] | undefined;
5529
+ } | undefined;
5530
+ thumbnailUrl?: string | undefined;
5531
+ thumbnailUrlWidth?: number | undefined;
5532
+ thumbnailUrlHeight?: number | undefined;
5533
+ previousCid?: string | undefined;
5534
+ pseudonymityMode?: "per-post" | "per-reply" | "per-author" | undefined;
5535
+ }>;
5536
+ commentUpdate: z.ZodCustom<{
5537
+ [x: string]: unknown;
5538
+ cid: string;
5539
+ upvoteCount: number;
5540
+ downvoteCount: number;
5541
+ replyCount: number;
5542
+ updatedAt: number;
5543
+ signature: {
5544
+ type: string;
5545
+ signature: string;
5546
+ publicKey: string;
5547
+ signedPropertyNames: string[];
5548
+ };
5549
+ protocolVersion: string;
5550
+ childCount?: number | undefined;
5551
+ number?: number | undefined;
5552
+ postNumber?: number | undefined;
5553
+ edit?: {
5554
+ [x: string]: unknown;
5555
+ timestamp: number;
5556
+ signature: {
5557
+ type: string;
5558
+ signature: string;
5559
+ publicKey: string;
5560
+ signedPropertyNames: string[];
5561
+ };
5562
+ protocolVersion: string;
5563
+ commentCid: string;
5564
+ flairs?: {
5565
+ [x: string]: unknown;
5566
+ text: string;
5567
+ backgroundColor?: string | undefined;
5568
+ textColor?: string | undefined;
5569
+ expiresAt?: number | undefined;
5570
+ }[] | undefined;
5571
+ communityPublicKey?: string | undefined;
5572
+ communityName?: string | undefined;
5573
+ spoiler?: boolean | undefined;
5574
+ nsfw?: boolean | undefined;
5575
+ reason?: string | undefined;
5576
+ content?: string | undefined;
5577
+ deleted?: boolean | undefined;
5578
+ author?: {
5579
+ [x: string]: unknown;
5580
+ name?: string | undefined;
5581
+ previousCommentCid?: string | undefined;
5582
+ displayName?: string | undefined;
5583
+ wallets?: Record<string, {
5584
+ address: string;
5585
+ timestamp: number;
5586
+ signature: {
5587
+ signature: string;
5588
+ type: string;
5589
+ };
5590
+ }> | undefined;
5591
+ avatar?: {
5592
+ [x: string]: unknown;
5593
+ chainTicker: string;
5594
+ address: string;
5595
+ id: string;
5596
+ timestamp: number;
5597
+ signature: {
5598
+ signature: string;
5599
+ type: string;
5600
+ };
5601
+ } | undefined;
5602
+ flairs?: {
5603
+ [x: string]: unknown;
5604
+ text: string;
5605
+ backgroundColor?: string | undefined;
5606
+ textColor?: string | undefined;
5607
+ expiresAt?: number | undefined;
5608
+ }[] | undefined;
5609
+ } | undefined;
5610
+ } | undefined;
5611
+ flairs?: {
5612
+ [x: string]: unknown;
5613
+ text: string;
5614
+ backgroundColor?: string | undefined;
5615
+ textColor?: string | undefined;
5616
+ expiresAt?: number | undefined;
5617
+ }[] | undefined;
5618
+ spoiler?: boolean | undefined;
5619
+ nsfw?: boolean | undefined;
5620
+ pinned?: boolean | undefined;
5621
+ locked?: boolean | undefined;
5622
+ archived?: boolean | undefined;
5623
+ removed?: boolean | undefined;
5624
+ reason?: string | undefined;
5625
+ approved?: boolean | undefined;
5626
+ author?: {
5627
+ [x: string]: unknown;
5628
+ community?: {
5629
+ [x: string]: unknown;
5630
+ postScore: number;
5631
+ replyScore: number;
5632
+ firstCommentTimestamp: number;
5633
+ lastCommentCid: string;
5634
+ banExpiresAt?: number | undefined;
5635
+ flairs?: {
5636
+ [x: string]: unknown;
5637
+ text: string;
5638
+ backgroundColor?: string | undefined;
5639
+ textColor?: string | undefined;
5640
+ expiresAt?: number | undefined;
5641
+ }[] | undefined;
5642
+ } | undefined;
5643
+ } | undefined;
5644
+ lastChildCid?: string | undefined;
5645
+ lastReplyTimestamp?: number | undefined;
5646
+ replies?: {
5647
+ pages: Record<string, {
5648
+ comments: {
5649
+ comment: {
5650
+ [x: string]: unknown;
5651
+ timestamp: number;
5652
+ signature: {
5653
+ type: string;
5654
+ signature: string;
5655
+ publicKey: string;
5656
+ signedPropertyNames: string[];
5657
+ };
5658
+ protocolVersion: string;
5659
+ depth: number;
5660
+ flairs?: {
5661
+ [x: string]: unknown;
5662
+ text: string;
5663
+ backgroundColor?: string | undefined;
5664
+ textColor?: string | undefined;
5665
+ expiresAt?: number | undefined;
5666
+ }[] | undefined;
5667
+ communityPublicKey?: string | undefined;
5668
+ communityName?: string | undefined;
5669
+ link?: string | undefined;
5670
+ spoiler?: boolean | undefined;
5671
+ nsfw?: boolean | undefined;
5672
+ content?: string | undefined;
5673
+ title?: string | undefined;
5674
+ linkWidth?: number | undefined;
5675
+ linkHeight?: number | undefined;
5676
+ linkHtmlTagName?: string | undefined;
5677
+ parentCid?: string | undefined;
5678
+ postCid?: string | undefined;
5679
+ quotedCids?: string[] | undefined;
5680
+ crosspost?: import("./publications/comment/schema.js").Crosspost | undefined;
5681
+ author?: {
5682
+ [x: string]: unknown;
5683
+ name?: string | undefined;
5684
+ previousCommentCid?: string | undefined;
5685
+ displayName?: string | undefined;
5686
+ wallets?: Record<string, {
5687
+ address: string;
5688
+ timestamp: number;
5689
+ signature: {
5690
+ signature: string;
5691
+ type: string;
5692
+ };
5693
+ }> | undefined;
5694
+ avatar?: {
5695
+ [x: string]: unknown;
5696
+ chainTicker: string;
5697
+ address: string;
5698
+ id: string;
5699
+ timestamp: number;
5700
+ signature: {
5701
+ signature: string;
5702
+ type: string;
5703
+ };
5704
+ } | undefined;
5705
+ flairs?: {
5706
+ [x: string]: unknown;
5707
+ text: string;
5708
+ backgroundColor?: string | undefined;
5709
+ textColor?: string | undefined;
5710
+ expiresAt?: number | undefined;
5711
+ }[] | undefined;
5712
+ } | undefined;
5713
+ thumbnailUrl?: string | undefined;
5714
+ thumbnailUrlWidth?: number | undefined;
5715
+ thumbnailUrlHeight?: number | undefined;
5716
+ previousCid?: string | undefined;
5717
+ pseudonymityMode?: "per-post" | "per-reply" | "per-author" | undefined;
5718
+ };
5719
+ commentUpdate: /*elided*/ any;
5720
+ }[];
5721
+ nextCid?: string | undefined;
5722
+ }>;
5723
+ pageCids?: Record<string, string> | undefined;
5724
+ } | undefined;
5725
+ }, {
5726
+ [x: string]: unknown;
5727
+ cid: string;
5728
+ upvoteCount: number;
5729
+ downvoteCount: number;
5730
+ replyCount: number;
5731
+ updatedAt: number;
5732
+ signature: {
5733
+ type: string;
5734
+ signature: string;
5735
+ publicKey: string;
5736
+ signedPropertyNames: string[];
5737
+ };
5738
+ protocolVersion: string;
5739
+ childCount?: number | undefined;
5740
+ number?: number | undefined;
5741
+ postNumber?: number | undefined;
5742
+ edit?: {
5743
+ [x: string]: unknown;
5744
+ timestamp: number;
5745
+ signature: {
5746
+ type: string;
5747
+ signature: string;
5748
+ publicKey: string;
5749
+ signedPropertyNames: string[];
5750
+ };
5751
+ protocolVersion: string;
5752
+ commentCid: string;
5753
+ flairs?: {
5754
+ [x: string]: unknown;
5755
+ text: string;
5756
+ backgroundColor?: string | undefined;
5757
+ textColor?: string | undefined;
5758
+ expiresAt?: number | undefined;
5759
+ }[] | undefined;
5760
+ communityPublicKey?: string | undefined;
5761
+ communityName?: string | undefined;
5762
+ spoiler?: boolean | undefined;
5763
+ nsfw?: boolean | undefined;
5764
+ reason?: string | undefined;
5765
+ content?: string | undefined;
5766
+ deleted?: boolean | undefined;
5767
+ author?: {
5768
+ [x: string]: unknown;
5769
+ name?: string | undefined;
5770
+ previousCommentCid?: string | undefined;
5771
+ displayName?: string | undefined;
5772
+ wallets?: Record<string, {
5773
+ address: string;
5774
+ timestamp: number;
5775
+ signature: {
5776
+ signature: string;
5777
+ type: string;
5778
+ };
5779
+ }> | undefined;
5780
+ avatar?: {
5781
+ [x: string]: unknown;
5782
+ chainTicker: string;
5783
+ address: string;
5784
+ id: string;
5785
+ timestamp: number;
5786
+ signature: {
5787
+ signature: string;
5788
+ type: string;
5789
+ };
5790
+ } | undefined;
5791
+ flairs?: {
5792
+ [x: string]: unknown;
5793
+ text: string;
5794
+ backgroundColor?: string | undefined;
5795
+ textColor?: string | undefined;
5796
+ expiresAt?: number | undefined;
5797
+ }[] | undefined;
5798
+ } | undefined;
5799
+ } | undefined;
5800
+ flairs?: {
5801
+ [x: string]: unknown;
5802
+ text: string;
5803
+ backgroundColor?: string | undefined;
5804
+ textColor?: string | undefined;
5805
+ expiresAt?: number | undefined;
5806
+ }[] | undefined;
5807
+ spoiler?: boolean | undefined;
5808
+ nsfw?: boolean | undefined;
5809
+ pinned?: boolean | undefined;
5810
+ locked?: boolean | undefined;
5811
+ archived?: boolean | undefined;
5812
+ removed?: boolean | undefined;
5813
+ reason?: string | undefined;
5814
+ approved?: boolean | undefined;
5815
+ author?: {
5816
+ [x: string]: unknown;
5817
+ community?: {
5818
+ [x: string]: unknown;
5819
+ postScore: number;
5820
+ replyScore: number;
5821
+ firstCommentTimestamp: number;
5822
+ lastCommentCid: string;
5823
+ banExpiresAt?: number | undefined;
5824
+ flairs?: {
5825
+ [x: string]: unknown;
5826
+ text: string;
5827
+ backgroundColor?: string | undefined;
5828
+ textColor?: string | undefined;
5829
+ expiresAt?: number | undefined;
5830
+ }[] | undefined;
5831
+ } | undefined;
5832
+ } | undefined;
5833
+ lastChildCid?: string | undefined;
5834
+ lastReplyTimestamp?: number | undefined;
5835
+ replies?: {
5836
+ pages: Record<string, {
5837
+ comments: {
5838
+ comment: {
5839
+ [x: string]: unknown;
5840
+ timestamp: number;
5841
+ signature: {
5842
+ type: string;
5843
+ signature: string;
5844
+ publicKey: string;
5845
+ signedPropertyNames: string[];
5846
+ };
5847
+ protocolVersion: string;
5848
+ depth: number;
5849
+ flairs?: {
5850
+ [x: string]: unknown;
5851
+ text: string;
5852
+ backgroundColor?: string | undefined;
5853
+ textColor?: string | undefined;
5854
+ expiresAt?: number | undefined;
5855
+ }[] | undefined;
5856
+ communityPublicKey?: string | undefined;
5857
+ communityName?: string | undefined;
5858
+ link?: string | undefined;
5859
+ spoiler?: boolean | undefined;
5860
+ nsfw?: boolean | undefined;
5861
+ content?: string | undefined;
5862
+ title?: string | undefined;
5863
+ linkWidth?: number | undefined;
5864
+ linkHeight?: number | undefined;
5865
+ linkHtmlTagName?: string | undefined;
5866
+ parentCid?: string | undefined;
5867
+ postCid?: string | undefined;
5868
+ quotedCids?: string[] | undefined;
5869
+ crosspost?: import("./publications/comment/schema.js").Crosspost | undefined;
5870
+ author?: {
5871
+ [x: string]: unknown;
5872
+ name?: string | undefined;
5873
+ previousCommentCid?: string | undefined;
5874
+ displayName?: string | undefined;
5875
+ wallets?: Record<string, {
5876
+ address: string;
5877
+ timestamp: number;
5878
+ signature: {
5879
+ signature: string;
5880
+ type: string;
5881
+ };
5882
+ }> | undefined;
5883
+ avatar?: {
5884
+ [x: string]: unknown;
5885
+ chainTicker: string;
5886
+ address: string;
5887
+ id: string;
5888
+ timestamp: number;
5889
+ signature: {
5890
+ signature: string;
5891
+ type: string;
5892
+ };
5893
+ } | undefined;
5894
+ flairs?: {
5895
+ [x: string]: unknown;
5896
+ text: string;
5897
+ backgroundColor?: string | undefined;
5898
+ textColor?: string | undefined;
5899
+ expiresAt?: number | undefined;
5900
+ }[] | undefined;
5901
+ } | undefined;
5902
+ thumbnailUrl?: string | undefined;
5903
+ thumbnailUrlWidth?: number | undefined;
5904
+ thumbnailUrlHeight?: number | undefined;
5905
+ previousCid?: string | undefined;
5906
+ pseudonymityMode?: "per-post" | "per-reply" | "per-author" | undefined;
5907
+ };
5908
+ commentUpdate: /*elided*/ any;
5909
+ }[];
5910
+ nextCid?: string | undefined;
5911
+ }>;
5912
+ pageCids?: Record<string, string> | undefined;
5913
+ } | undefined;
5914
+ }>;
5915
+ options: z.ZodRecord<z.ZodString, z.ZodString>;
5916
+ baseTimestamp: z.ZodNumber;
5917
+ replies: z.ZodOptional<z.ZodArray<z.ZodCustom<import("./index.js").PageSortReplyEntry, import("./index.js").PageSortReplyEntry>>>;
5918
+ }, z.core.$strip>], null>, z.ZodNullable<z.ZodNumber>>;
5919
+ validatePageSortSettings: z.ZodOptional<z.ZodFunction<z.ZodTuple<readonly [z.ZodObject<{
5920
+ pageSortSettings: z.ZodObject<{
5921
+ path: z.ZodOptional<z.ZodString>;
5922
+ name: z.ZodOptional<z.ZodString>;
5923
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
5924
+ preloaded: z.ZodOptional<z.ZodBoolean>;
5925
+ privateOptions: z.ZodOptional<z.ZodArray<z.ZodString>>;
5926
+ }, z.core.$strict>;
5927
+ }, z.core.$strip>], null>, z.ZodVoid>>;
5928
+ }, z.core.$loose>>>>>;
1460
5929
  kuboRpcClientsOptions: z.ZodOptional<z.ZodCustom<import("kubo-rpc-client").Options[], import("kubo-rpc-client").Options[]>>;
1461
5930
  pubsubKuboRpcClientsOptions: z.ZodOptional<z.ZodCustom<import("kubo-rpc-client").Options[], import("kubo-rpc-client").Options[]>>;
1462
5931
  nameResolvers: z.ZodOptional<z.ZodArray<z.ZodCustom<NameResolverInterface, NameResolverInterface>>>;