@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
@@ -205,6 +205,565 @@ export declare const CreatePKCWsServerOptionsSchema: z.ZodObject<{
205
205
  }, z.core.$strict>;
206
206
  }, z.core.$strip>], null>, z.ZodVoid>>;
207
207
  }, z.core.$loose>>> | undefined;
208
+ pageSorts?: Record<string, z.core.$InferInnerFunctionType<z.ZodTuple<readonly [z.ZodObject<{
209
+ pageSortSettings: z.ZodObject<{
210
+ path: z.ZodOptional<z.ZodString>;
211
+ name: z.ZodOptional<z.ZodString>;
212
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
213
+ preloaded: z.ZodOptional<z.ZodBoolean>;
214
+ privateOptions: z.ZodOptional<z.ZodArray<z.ZodString>>;
215
+ }, z.core.$strict>;
216
+ }, z.core.$strip>], null>, z.ZodObject<{
217
+ sortName: z.ZodString;
218
+ description: z.ZodOptional<z.ZodString>;
219
+ optionInputs: z.ZodOptional<z.ZodArray<z.ZodObject<{
220
+ option: z.ZodString;
221
+ label: z.ZodString;
222
+ default: z.ZodOptional<z.ZodString>;
223
+ description: z.ZodOptional<z.ZodString>;
224
+ placeholder: z.ZodOptional<z.ZodString>;
225
+ required: z.ZodOptional<z.ZodBoolean>;
226
+ }, z.core.$loose>>>;
227
+ scope: z.ZodOptional<z.ZodEnum<{
228
+ posts: "posts";
229
+ replies: "replies";
230
+ }>>;
231
+ flat: z.ZodOptional<z.ZodBoolean>;
232
+ defaultOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
233
+ requireReplies: z.ZodOptional<z.ZodBoolean>;
234
+ score: z.ZodFunction<z.ZodTuple<readonly [z.ZodObject<{
235
+ comment: z.ZodCustom<{
236
+ [x: string]: unknown;
237
+ timestamp: number;
238
+ signature: {
239
+ type: string;
240
+ signature: string;
241
+ publicKey: string;
242
+ signedPropertyNames: string[];
243
+ };
244
+ protocolVersion: string;
245
+ depth: number;
246
+ flairs?: {
247
+ [x: string]: unknown;
248
+ text: string;
249
+ backgroundColor?: string | undefined;
250
+ textColor?: string | undefined;
251
+ expiresAt?: number | undefined;
252
+ }[] | undefined;
253
+ communityPublicKey?: string | undefined;
254
+ communityName?: string | undefined;
255
+ link?: string | undefined;
256
+ spoiler?: boolean | undefined;
257
+ nsfw?: boolean | undefined;
258
+ content?: string | undefined;
259
+ title?: string | undefined;
260
+ linkWidth?: number | undefined;
261
+ linkHeight?: number | undefined;
262
+ linkHtmlTagName?: string | undefined;
263
+ parentCid?: string | undefined;
264
+ postCid?: string | undefined;
265
+ quotedCids?: string[] | undefined;
266
+ crosspost?: import("../../publications/comment/schema.js").Crosspost | undefined;
267
+ author?: {
268
+ [x: string]: unknown;
269
+ name?: string | undefined;
270
+ previousCommentCid?: string | undefined;
271
+ displayName?: string | undefined;
272
+ wallets?: Record<string, {
273
+ address: string;
274
+ timestamp: number;
275
+ signature: {
276
+ signature: string;
277
+ type: string;
278
+ };
279
+ }> | undefined;
280
+ avatar?: {
281
+ [x: string]: unknown;
282
+ chainTicker: string;
283
+ address: string;
284
+ id: string;
285
+ timestamp: number;
286
+ signature: {
287
+ signature: string;
288
+ type: string;
289
+ };
290
+ } | undefined;
291
+ flairs?: {
292
+ [x: string]: unknown;
293
+ text: string;
294
+ backgroundColor?: string | undefined;
295
+ textColor?: string | undefined;
296
+ expiresAt?: number | undefined;
297
+ }[] | undefined;
298
+ } | undefined;
299
+ thumbnailUrl?: string | undefined;
300
+ thumbnailUrlWidth?: number | undefined;
301
+ thumbnailUrlHeight?: number | undefined;
302
+ previousCid?: string | undefined;
303
+ pseudonymityMode?: "per-post" | "per-reply" | "per-author" | undefined;
304
+ }, {
305
+ [x: string]: unknown;
306
+ timestamp: number;
307
+ signature: {
308
+ type: string;
309
+ signature: string;
310
+ publicKey: string;
311
+ signedPropertyNames: string[];
312
+ };
313
+ protocolVersion: string;
314
+ depth: number;
315
+ flairs?: {
316
+ [x: string]: unknown;
317
+ text: string;
318
+ backgroundColor?: string | undefined;
319
+ textColor?: string | undefined;
320
+ expiresAt?: number | undefined;
321
+ }[] | undefined;
322
+ communityPublicKey?: string | undefined;
323
+ communityName?: string | undefined;
324
+ link?: string | undefined;
325
+ spoiler?: boolean | undefined;
326
+ nsfw?: boolean | undefined;
327
+ content?: string | undefined;
328
+ title?: string | undefined;
329
+ linkWidth?: number | undefined;
330
+ linkHeight?: number | undefined;
331
+ linkHtmlTagName?: string | undefined;
332
+ parentCid?: string | undefined;
333
+ postCid?: string | undefined;
334
+ quotedCids?: string[] | undefined;
335
+ crosspost?: import("../../publications/comment/schema.js").Crosspost | undefined;
336
+ author?: {
337
+ [x: string]: unknown;
338
+ name?: string | undefined;
339
+ previousCommentCid?: string | undefined;
340
+ displayName?: string | undefined;
341
+ wallets?: Record<string, {
342
+ address: string;
343
+ timestamp: number;
344
+ signature: {
345
+ signature: string;
346
+ type: string;
347
+ };
348
+ }> | undefined;
349
+ avatar?: {
350
+ [x: string]: unknown;
351
+ chainTicker: string;
352
+ address: string;
353
+ id: string;
354
+ timestamp: number;
355
+ signature: {
356
+ signature: string;
357
+ type: string;
358
+ };
359
+ } | undefined;
360
+ flairs?: {
361
+ [x: string]: unknown;
362
+ text: string;
363
+ backgroundColor?: string | undefined;
364
+ textColor?: string | undefined;
365
+ expiresAt?: number | undefined;
366
+ }[] | undefined;
367
+ } | undefined;
368
+ thumbnailUrl?: string | undefined;
369
+ thumbnailUrlWidth?: number | undefined;
370
+ thumbnailUrlHeight?: number | undefined;
371
+ previousCid?: string | undefined;
372
+ pseudonymityMode?: "per-post" | "per-reply" | "per-author" | undefined;
373
+ }>;
374
+ commentUpdate: z.ZodCustom<{
375
+ [x: string]: unknown;
376
+ cid: string;
377
+ upvoteCount: number;
378
+ downvoteCount: number;
379
+ replyCount: number;
380
+ updatedAt: number;
381
+ signature: {
382
+ type: string;
383
+ signature: string;
384
+ publicKey: string;
385
+ signedPropertyNames: string[];
386
+ };
387
+ protocolVersion: string;
388
+ childCount?: number | undefined;
389
+ number?: number | undefined;
390
+ postNumber?: number | undefined;
391
+ edit?: {
392
+ [x: string]: unknown;
393
+ timestamp: number;
394
+ signature: {
395
+ type: string;
396
+ signature: string;
397
+ publicKey: string;
398
+ signedPropertyNames: string[];
399
+ };
400
+ protocolVersion: string;
401
+ commentCid: string;
402
+ flairs?: {
403
+ [x: string]: unknown;
404
+ text: string;
405
+ backgroundColor?: string | undefined;
406
+ textColor?: string | undefined;
407
+ expiresAt?: number | undefined;
408
+ }[] | undefined;
409
+ communityPublicKey?: string | undefined;
410
+ communityName?: string | undefined;
411
+ spoiler?: boolean | undefined;
412
+ nsfw?: boolean | undefined;
413
+ reason?: string | undefined;
414
+ content?: string | undefined;
415
+ deleted?: boolean | undefined;
416
+ author?: {
417
+ [x: string]: unknown;
418
+ name?: string | undefined;
419
+ previousCommentCid?: string | undefined;
420
+ displayName?: string | undefined;
421
+ wallets?: Record<string, {
422
+ address: string;
423
+ timestamp: number;
424
+ signature: {
425
+ signature: string;
426
+ type: string;
427
+ };
428
+ }> | undefined;
429
+ avatar?: {
430
+ [x: string]: unknown;
431
+ chainTicker: string;
432
+ address: string;
433
+ id: string;
434
+ timestamp: number;
435
+ signature: {
436
+ signature: string;
437
+ type: string;
438
+ };
439
+ } | undefined;
440
+ flairs?: {
441
+ [x: string]: unknown;
442
+ text: string;
443
+ backgroundColor?: string | undefined;
444
+ textColor?: string | undefined;
445
+ expiresAt?: number | undefined;
446
+ }[] | undefined;
447
+ } | undefined;
448
+ } | undefined;
449
+ flairs?: {
450
+ [x: string]: unknown;
451
+ text: string;
452
+ backgroundColor?: string | undefined;
453
+ textColor?: string | undefined;
454
+ expiresAt?: number | undefined;
455
+ }[] | undefined;
456
+ spoiler?: boolean | undefined;
457
+ nsfw?: boolean | undefined;
458
+ pinned?: boolean | undefined;
459
+ locked?: boolean | undefined;
460
+ archived?: boolean | undefined;
461
+ removed?: boolean | undefined;
462
+ reason?: string | undefined;
463
+ approved?: boolean | undefined;
464
+ author?: {
465
+ [x: string]: unknown;
466
+ community?: {
467
+ [x: string]: unknown;
468
+ postScore: number;
469
+ replyScore: number;
470
+ firstCommentTimestamp: number;
471
+ lastCommentCid: string;
472
+ banExpiresAt?: number | undefined;
473
+ flairs?: {
474
+ [x: string]: unknown;
475
+ text: string;
476
+ backgroundColor?: string | undefined;
477
+ textColor?: string | undefined;
478
+ expiresAt?: number | undefined;
479
+ }[] | undefined;
480
+ } | undefined;
481
+ } | undefined;
482
+ lastChildCid?: string | undefined;
483
+ lastReplyTimestamp?: number | undefined;
484
+ replies?: {
485
+ pages: Record<string, {
486
+ comments: {
487
+ comment: {
488
+ [x: string]: unknown;
489
+ timestamp: number;
490
+ signature: {
491
+ type: string;
492
+ signature: string;
493
+ publicKey: string;
494
+ signedPropertyNames: string[];
495
+ };
496
+ protocolVersion: string;
497
+ depth: number;
498
+ flairs?: {
499
+ [x: string]: unknown;
500
+ text: string;
501
+ backgroundColor?: string | undefined;
502
+ textColor?: string | undefined;
503
+ expiresAt?: number | undefined;
504
+ }[] | undefined;
505
+ communityPublicKey?: string | undefined;
506
+ communityName?: string | undefined;
507
+ link?: string | undefined;
508
+ spoiler?: boolean | undefined;
509
+ nsfw?: boolean | undefined;
510
+ content?: string | undefined;
511
+ title?: string | undefined;
512
+ linkWidth?: number | undefined;
513
+ linkHeight?: number | undefined;
514
+ linkHtmlTagName?: string | undefined;
515
+ parentCid?: string | undefined;
516
+ postCid?: string | undefined;
517
+ quotedCids?: string[] | undefined;
518
+ crosspost?: import("../../publications/comment/schema.js").Crosspost | undefined;
519
+ author?: {
520
+ [x: string]: unknown;
521
+ name?: string | undefined;
522
+ previousCommentCid?: string | undefined;
523
+ displayName?: string | undefined;
524
+ wallets?: Record<string, {
525
+ address: string;
526
+ timestamp: number;
527
+ signature: {
528
+ signature: string;
529
+ type: string;
530
+ };
531
+ }> | undefined;
532
+ avatar?: {
533
+ [x: string]: unknown;
534
+ chainTicker: string;
535
+ address: string;
536
+ id: string;
537
+ timestamp: number;
538
+ signature: {
539
+ signature: string;
540
+ type: string;
541
+ };
542
+ } | undefined;
543
+ flairs?: {
544
+ [x: string]: unknown;
545
+ text: string;
546
+ backgroundColor?: string | undefined;
547
+ textColor?: string | undefined;
548
+ expiresAt?: number | undefined;
549
+ }[] | undefined;
550
+ } | undefined;
551
+ thumbnailUrl?: string | undefined;
552
+ thumbnailUrlWidth?: number | undefined;
553
+ thumbnailUrlHeight?: number | undefined;
554
+ previousCid?: string | undefined;
555
+ pseudonymityMode?: "per-post" | "per-reply" | "per-author" | undefined;
556
+ };
557
+ commentUpdate: /*elided*/ any;
558
+ }[];
559
+ nextCid?: string | undefined;
560
+ }>;
561
+ pageCids?: Record<string, string> | undefined;
562
+ } | undefined;
563
+ }, {
564
+ [x: string]: unknown;
565
+ cid: string;
566
+ upvoteCount: number;
567
+ downvoteCount: number;
568
+ replyCount: number;
569
+ updatedAt: number;
570
+ signature: {
571
+ type: string;
572
+ signature: string;
573
+ publicKey: string;
574
+ signedPropertyNames: string[];
575
+ };
576
+ protocolVersion: string;
577
+ childCount?: number | undefined;
578
+ number?: number | undefined;
579
+ postNumber?: number | undefined;
580
+ edit?: {
581
+ [x: string]: unknown;
582
+ timestamp: number;
583
+ signature: {
584
+ type: string;
585
+ signature: string;
586
+ publicKey: string;
587
+ signedPropertyNames: string[];
588
+ };
589
+ protocolVersion: string;
590
+ commentCid: string;
591
+ flairs?: {
592
+ [x: string]: unknown;
593
+ text: string;
594
+ backgroundColor?: string | undefined;
595
+ textColor?: string | undefined;
596
+ expiresAt?: number | undefined;
597
+ }[] | undefined;
598
+ communityPublicKey?: string | undefined;
599
+ communityName?: string | undefined;
600
+ spoiler?: boolean | undefined;
601
+ nsfw?: boolean | undefined;
602
+ reason?: string | undefined;
603
+ content?: string | undefined;
604
+ deleted?: boolean | undefined;
605
+ author?: {
606
+ [x: string]: unknown;
607
+ name?: string | undefined;
608
+ previousCommentCid?: string | undefined;
609
+ displayName?: string | undefined;
610
+ wallets?: Record<string, {
611
+ address: string;
612
+ timestamp: number;
613
+ signature: {
614
+ signature: string;
615
+ type: string;
616
+ };
617
+ }> | undefined;
618
+ avatar?: {
619
+ [x: string]: unknown;
620
+ chainTicker: string;
621
+ address: string;
622
+ id: string;
623
+ timestamp: number;
624
+ signature: {
625
+ signature: string;
626
+ type: string;
627
+ };
628
+ } | undefined;
629
+ flairs?: {
630
+ [x: string]: unknown;
631
+ text: string;
632
+ backgroundColor?: string | undefined;
633
+ textColor?: string | undefined;
634
+ expiresAt?: number | undefined;
635
+ }[] | undefined;
636
+ } | undefined;
637
+ } | undefined;
638
+ flairs?: {
639
+ [x: string]: unknown;
640
+ text: string;
641
+ backgroundColor?: string | undefined;
642
+ textColor?: string | undefined;
643
+ expiresAt?: number | undefined;
644
+ }[] | undefined;
645
+ spoiler?: boolean | undefined;
646
+ nsfw?: boolean | undefined;
647
+ pinned?: boolean | undefined;
648
+ locked?: boolean | undefined;
649
+ archived?: boolean | undefined;
650
+ removed?: boolean | undefined;
651
+ reason?: string | undefined;
652
+ approved?: boolean | undefined;
653
+ author?: {
654
+ [x: string]: unknown;
655
+ community?: {
656
+ [x: string]: unknown;
657
+ postScore: number;
658
+ replyScore: number;
659
+ firstCommentTimestamp: number;
660
+ lastCommentCid: string;
661
+ banExpiresAt?: number | undefined;
662
+ flairs?: {
663
+ [x: string]: unknown;
664
+ text: string;
665
+ backgroundColor?: string | undefined;
666
+ textColor?: string | undefined;
667
+ expiresAt?: number | undefined;
668
+ }[] | undefined;
669
+ } | undefined;
670
+ } | undefined;
671
+ lastChildCid?: string | undefined;
672
+ lastReplyTimestamp?: number | undefined;
673
+ replies?: {
674
+ pages: Record<string, {
675
+ comments: {
676
+ comment: {
677
+ [x: string]: unknown;
678
+ timestamp: number;
679
+ signature: {
680
+ type: string;
681
+ signature: string;
682
+ publicKey: string;
683
+ signedPropertyNames: string[];
684
+ };
685
+ protocolVersion: string;
686
+ depth: number;
687
+ flairs?: {
688
+ [x: string]: unknown;
689
+ text: string;
690
+ backgroundColor?: string | undefined;
691
+ textColor?: string | undefined;
692
+ expiresAt?: number | undefined;
693
+ }[] | undefined;
694
+ communityPublicKey?: string | undefined;
695
+ communityName?: string | undefined;
696
+ link?: string | undefined;
697
+ spoiler?: boolean | undefined;
698
+ nsfw?: boolean | undefined;
699
+ content?: string | undefined;
700
+ title?: string | undefined;
701
+ linkWidth?: number | undefined;
702
+ linkHeight?: number | undefined;
703
+ linkHtmlTagName?: string | undefined;
704
+ parentCid?: string | undefined;
705
+ postCid?: string | undefined;
706
+ quotedCids?: string[] | undefined;
707
+ crosspost?: import("../../publications/comment/schema.js").Crosspost | undefined;
708
+ author?: {
709
+ [x: string]: unknown;
710
+ name?: string | undefined;
711
+ previousCommentCid?: string | undefined;
712
+ displayName?: string | undefined;
713
+ wallets?: Record<string, {
714
+ address: string;
715
+ timestamp: number;
716
+ signature: {
717
+ signature: string;
718
+ type: string;
719
+ };
720
+ }> | undefined;
721
+ avatar?: {
722
+ [x: string]: unknown;
723
+ chainTicker: string;
724
+ address: string;
725
+ id: string;
726
+ timestamp: number;
727
+ signature: {
728
+ signature: string;
729
+ type: string;
730
+ };
731
+ } | undefined;
732
+ flairs?: {
733
+ [x: string]: unknown;
734
+ text: string;
735
+ backgroundColor?: string | undefined;
736
+ textColor?: string | undefined;
737
+ expiresAt?: number | undefined;
738
+ }[] | undefined;
739
+ } | undefined;
740
+ thumbnailUrl?: string | undefined;
741
+ thumbnailUrlWidth?: number | undefined;
742
+ thumbnailUrlHeight?: number | undefined;
743
+ previousCid?: string | undefined;
744
+ pseudonymityMode?: "per-post" | "per-reply" | "per-author" | undefined;
745
+ };
746
+ commentUpdate: /*elided*/ any;
747
+ }[];
748
+ nextCid?: string | undefined;
749
+ }>;
750
+ pageCids?: Record<string, string> | undefined;
751
+ } | undefined;
752
+ }>;
753
+ options: z.ZodRecord<z.ZodString, z.ZodString>;
754
+ baseTimestamp: z.ZodNumber;
755
+ replies: z.ZodOptional<z.ZodArray<z.ZodCustom<import("../../index.js").PageSortReplyEntry, import("../../index.js").PageSortReplyEntry>>>;
756
+ }, z.core.$strip>], null>, z.ZodNullable<z.ZodNumber>>;
757
+ validatePageSortSettings: z.ZodOptional<z.ZodFunction<z.ZodTuple<readonly [z.ZodObject<{
758
+ pageSortSettings: z.ZodObject<{
759
+ path: z.ZodOptional<z.ZodString>;
760
+ name: z.ZodOptional<z.ZodString>;
761
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
762
+ preloaded: z.ZodOptional<z.ZodBoolean>;
763
+ privateOptions: z.ZodOptional<z.ZodArray<z.ZodString>>;
764
+ }, z.core.$strict>;
765
+ }, z.core.$strip>], null>, z.ZodVoid>>;
766
+ }, z.core.$loose>>> | undefined;
208
767
  ipfsGatewayUrls?: string[] | undefined;
209
768
  pubsubKuboRpcClientsOptions?: import("../../util.js").KuboRpcClientCreateOption[] | undefined;
210
769
  httpRoutersOptions?: string[] | undefined;
@@ -417,6 +976,565 @@ export declare const CreatePKCWsServerOptionsSchema: z.ZodObject<{
417
976
  }, z.core.$strict>;
418
977
  }, z.core.$strip>], null>, z.ZodVoid>>;
419
978
  }, z.core.$loose>>> | undefined;
979
+ pageSorts?: Record<string, z.core.$InferInnerFunctionType<z.ZodTuple<readonly [z.ZodObject<{
980
+ pageSortSettings: z.ZodObject<{
981
+ path: z.ZodOptional<z.ZodString>;
982
+ name: z.ZodOptional<z.ZodString>;
983
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
984
+ preloaded: z.ZodOptional<z.ZodBoolean>;
985
+ privateOptions: z.ZodOptional<z.ZodArray<z.ZodString>>;
986
+ }, z.core.$strict>;
987
+ }, z.core.$strip>], null>, z.ZodObject<{
988
+ sortName: z.ZodString;
989
+ description: z.ZodOptional<z.ZodString>;
990
+ optionInputs: z.ZodOptional<z.ZodArray<z.ZodObject<{
991
+ option: z.ZodString;
992
+ label: z.ZodString;
993
+ default: z.ZodOptional<z.ZodString>;
994
+ description: z.ZodOptional<z.ZodString>;
995
+ placeholder: z.ZodOptional<z.ZodString>;
996
+ required: z.ZodOptional<z.ZodBoolean>;
997
+ }, z.core.$loose>>>;
998
+ scope: z.ZodOptional<z.ZodEnum<{
999
+ posts: "posts";
1000
+ replies: "replies";
1001
+ }>>;
1002
+ flat: z.ZodOptional<z.ZodBoolean>;
1003
+ defaultOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1004
+ requireReplies: z.ZodOptional<z.ZodBoolean>;
1005
+ score: z.ZodFunction<z.ZodTuple<readonly [z.ZodObject<{
1006
+ comment: z.ZodCustom<{
1007
+ [x: string]: unknown;
1008
+ timestamp: number;
1009
+ signature: {
1010
+ type: string;
1011
+ signature: string;
1012
+ publicKey: string;
1013
+ signedPropertyNames: string[];
1014
+ };
1015
+ protocolVersion: string;
1016
+ depth: number;
1017
+ flairs?: {
1018
+ [x: string]: unknown;
1019
+ text: string;
1020
+ backgroundColor?: string | undefined;
1021
+ textColor?: string | undefined;
1022
+ expiresAt?: number | undefined;
1023
+ }[] | undefined;
1024
+ communityPublicKey?: string | undefined;
1025
+ communityName?: string | undefined;
1026
+ link?: string | undefined;
1027
+ spoiler?: boolean | undefined;
1028
+ nsfw?: boolean | undefined;
1029
+ content?: string | undefined;
1030
+ title?: string | undefined;
1031
+ linkWidth?: number | undefined;
1032
+ linkHeight?: number | undefined;
1033
+ linkHtmlTagName?: string | undefined;
1034
+ parentCid?: string | undefined;
1035
+ postCid?: string | undefined;
1036
+ quotedCids?: string[] | undefined;
1037
+ crosspost?: import("../../publications/comment/schema.js").Crosspost | undefined;
1038
+ author?: {
1039
+ [x: string]: unknown;
1040
+ name?: string | undefined;
1041
+ previousCommentCid?: string | undefined;
1042
+ displayName?: string | undefined;
1043
+ wallets?: Record<string, {
1044
+ address: string;
1045
+ timestamp: number;
1046
+ signature: {
1047
+ signature: string;
1048
+ type: string;
1049
+ };
1050
+ }> | undefined;
1051
+ avatar?: {
1052
+ [x: string]: unknown;
1053
+ chainTicker: string;
1054
+ address: string;
1055
+ id: string;
1056
+ timestamp: number;
1057
+ signature: {
1058
+ signature: string;
1059
+ type: string;
1060
+ };
1061
+ } | undefined;
1062
+ flairs?: {
1063
+ [x: string]: unknown;
1064
+ text: string;
1065
+ backgroundColor?: string | undefined;
1066
+ textColor?: string | undefined;
1067
+ expiresAt?: number | undefined;
1068
+ }[] | undefined;
1069
+ } | undefined;
1070
+ thumbnailUrl?: string | undefined;
1071
+ thumbnailUrlWidth?: number | undefined;
1072
+ thumbnailUrlHeight?: number | undefined;
1073
+ previousCid?: string | undefined;
1074
+ pseudonymityMode?: "per-post" | "per-reply" | "per-author" | undefined;
1075
+ }, {
1076
+ [x: string]: unknown;
1077
+ timestamp: number;
1078
+ signature: {
1079
+ type: string;
1080
+ signature: string;
1081
+ publicKey: string;
1082
+ signedPropertyNames: string[];
1083
+ };
1084
+ protocolVersion: string;
1085
+ depth: number;
1086
+ flairs?: {
1087
+ [x: string]: unknown;
1088
+ text: string;
1089
+ backgroundColor?: string | undefined;
1090
+ textColor?: string | undefined;
1091
+ expiresAt?: number | undefined;
1092
+ }[] | undefined;
1093
+ communityPublicKey?: string | undefined;
1094
+ communityName?: string | undefined;
1095
+ link?: string | undefined;
1096
+ spoiler?: boolean | undefined;
1097
+ nsfw?: boolean | undefined;
1098
+ content?: string | undefined;
1099
+ title?: string | undefined;
1100
+ linkWidth?: number | undefined;
1101
+ linkHeight?: number | undefined;
1102
+ linkHtmlTagName?: string | undefined;
1103
+ parentCid?: string | undefined;
1104
+ postCid?: string | undefined;
1105
+ quotedCids?: string[] | undefined;
1106
+ crosspost?: import("../../publications/comment/schema.js").Crosspost | undefined;
1107
+ author?: {
1108
+ [x: string]: unknown;
1109
+ name?: string | undefined;
1110
+ previousCommentCid?: string | undefined;
1111
+ displayName?: string | undefined;
1112
+ wallets?: Record<string, {
1113
+ address: string;
1114
+ timestamp: number;
1115
+ signature: {
1116
+ signature: string;
1117
+ type: string;
1118
+ };
1119
+ }> | undefined;
1120
+ avatar?: {
1121
+ [x: string]: unknown;
1122
+ chainTicker: string;
1123
+ address: string;
1124
+ id: string;
1125
+ timestamp: number;
1126
+ signature: {
1127
+ signature: string;
1128
+ type: string;
1129
+ };
1130
+ } | undefined;
1131
+ flairs?: {
1132
+ [x: string]: unknown;
1133
+ text: string;
1134
+ backgroundColor?: string | undefined;
1135
+ textColor?: string | undefined;
1136
+ expiresAt?: number | undefined;
1137
+ }[] | undefined;
1138
+ } | undefined;
1139
+ thumbnailUrl?: string | undefined;
1140
+ thumbnailUrlWidth?: number | undefined;
1141
+ thumbnailUrlHeight?: number | undefined;
1142
+ previousCid?: string | undefined;
1143
+ pseudonymityMode?: "per-post" | "per-reply" | "per-author" | undefined;
1144
+ }>;
1145
+ commentUpdate: z.ZodCustom<{
1146
+ [x: string]: unknown;
1147
+ cid: string;
1148
+ upvoteCount: number;
1149
+ downvoteCount: number;
1150
+ replyCount: number;
1151
+ updatedAt: number;
1152
+ signature: {
1153
+ type: string;
1154
+ signature: string;
1155
+ publicKey: string;
1156
+ signedPropertyNames: string[];
1157
+ };
1158
+ protocolVersion: string;
1159
+ childCount?: number | undefined;
1160
+ number?: number | undefined;
1161
+ postNumber?: number | undefined;
1162
+ edit?: {
1163
+ [x: string]: unknown;
1164
+ timestamp: number;
1165
+ signature: {
1166
+ type: string;
1167
+ signature: string;
1168
+ publicKey: string;
1169
+ signedPropertyNames: string[];
1170
+ };
1171
+ protocolVersion: string;
1172
+ commentCid: string;
1173
+ flairs?: {
1174
+ [x: string]: unknown;
1175
+ text: string;
1176
+ backgroundColor?: string | undefined;
1177
+ textColor?: string | undefined;
1178
+ expiresAt?: number | undefined;
1179
+ }[] | undefined;
1180
+ communityPublicKey?: string | undefined;
1181
+ communityName?: string | undefined;
1182
+ spoiler?: boolean | undefined;
1183
+ nsfw?: boolean | undefined;
1184
+ reason?: string | undefined;
1185
+ content?: string | undefined;
1186
+ deleted?: boolean | undefined;
1187
+ author?: {
1188
+ [x: string]: unknown;
1189
+ name?: string | undefined;
1190
+ previousCommentCid?: string | undefined;
1191
+ displayName?: string | undefined;
1192
+ wallets?: Record<string, {
1193
+ address: string;
1194
+ timestamp: number;
1195
+ signature: {
1196
+ signature: string;
1197
+ type: string;
1198
+ };
1199
+ }> | undefined;
1200
+ avatar?: {
1201
+ [x: string]: unknown;
1202
+ chainTicker: string;
1203
+ address: string;
1204
+ id: string;
1205
+ timestamp: number;
1206
+ signature: {
1207
+ signature: string;
1208
+ type: string;
1209
+ };
1210
+ } | undefined;
1211
+ flairs?: {
1212
+ [x: string]: unknown;
1213
+ text: string;
1214
+ backgroundColor?: string | undefined;
1215
+ textColor?: string | undefined;
1216
+ expiresAt?: number | undefined;
1217
+ }[] | undefined;
1218
+ } | undefined;
1219
+ } | undefined;
1220
+ flairs?: {
1221
+ [x: string]: unknown;
1222
+ text: string;
1223
+ backgroundColor?: string | undefined;
1224
+ textColor?: string | undefined;
1225
+ expiresAt?: number | undefined;
1226
+ }[] | undefined;
1227
+ spoiler?: boolean | undefined;
1228
+ nsfw?: boolean | undefined;
1229
+ pinned?: boolean | undefined;
1230
+ locked?: boolean | undefined;
1231
+ archived?: boolean | undefined;
1232
+ removed?: boolean | undefined;
1233
+ reason?: string | undefined;
1234
+ approved?: boolean | undefined;
1235
+ author?: {
1236
+ [x: string]: unknown;
1237
+ community?: {
1238
+ [x: string]: unknown;
1239
+ postScore: number;
1240
+ replyScore: number;
1241
+ firstCommentTimestamp: number;
1242
+ lastCommentCid: string;
1243
+ banExpiresAt?: number | undefined;
1244
+ flairs?: {
1245
+ [x: string]: unknown;
1246
+ text: string;
1247
+ backgroundColor?: string | undefined;
1248
+ textColor?: string | undefined;
1249
+ expiresAt?: number | undefined;
1250
+ }[] | undefined;
1251
+ } | undefined;
1252
+ } | undefined;
1253
+ lastChildCid?: string | undefined;
1254
+ lastReplyTimestamp?: number | undefined;
1255
+ replies?: {
1256
+ pages: Record<string, {
1257
+ comments: {
1258
+ comment: {
1259
+ [x: string]: unknown;
1260
+ timestamp: number;
1261
+ signature: {
1262
+ type: string;
1263
+ signature: string;
1264
+ publicKey: string;
1265
+ signedPropertyNames: string[];
1266
+ };
1267
+ protocolVersion: string;
1268
+ depth: number;
1269
+ flairs?: {
1270
+ [x: string]: unknown;
1271
+ text: string;
1272
+ backgroundColor?: string | undefined;
1273
+ textColor?: string | undefined;
1274
+ expiresAt?: number | undefined;
1275
+ }[] | undefined;
1276
+ communityPublicKey?: string | undefined;
1277
+ communityName?: string | undefined;
1278
+ link?: string | undefined;
1279
+ spoiler?: boolean | undefined;
1280
+ nsfw?: boolean | undefined;
1281
+ content?: string | undefined;
1282
+ title?: string | undefined;
1283
+ linkWidth?: number | undefined;
1284
+ linkHeight?: number | undefined;
1285
+ linkHtmlTagName?: string | undefined;
1286
+ parentCid?: string | undefined;
1287
+ postCid?: string | undefined;
1288
+ quotedCids?: string[] | undefined;
1289
+ crosspost?: import("../../publications/comment/schema.js").Crosspost | undefined;
1290
+ author?: {
1291
+ [x: string]: unknown;
1292
+ name?: string | undefined;
1293
+ previousCommentCid?: string | undefined;
1294
+ displayName?: string | undefined;
1295
+ wallets?: Record<string, {
1296
+ address: string;
1297
+ timestamp: number;
1298
+ signature: {
1299
+ signature: string;
1300
+ type: string;
1301
+ };
1302
+ }> | undefined;
1303
+ avatar?: {
1304
+ [x: string]: unknown;
1305
+ chainTicker: string;
1306
+ address: string;
1307
+ id: string;
1308
+ timestamp: number;
1309
+ signature: {
1310
+ signature: string;
1311
+ type: string;
1312
+ };
1313
+ } | undefined;
1314
+ flairs?: {
1315
+ [x: string]: unknown;
1316
+ text: string;
1317
+ backgroundColor?: string | undefined;
1318
+ textColor?: string | undefined;
1319
+ expiresAt?: number | undefined;
1320
+ }[] | undefined;
1321
+ } | undefined;
1322
+ thumbnailUrl?: string | undefined;
1323
+ thumbnailUrlWidth?: number | undefined;
1324
+ thumbnailUrlHeight?: number | undefined;
1325
+ previousCid?: string | undefined;
1326
+ pseudonymityMode?: "per-post" | "per-reply" | "per-author" | undefined;
1327
+ };
1328
+ commentUpdate: /*elided*/ any;
1329
+ }[];
1330
+ nextCid?: string | undefined;
1331
+ }>;
1332
+ pageCids?: Record<string, string> | undefined;
1333
+ } | undefined;
1334
+ }, {
1335
+ [x: string]: unknown;
1336
+ cid: string;
1337
+ upvoteCount: number;
1338
+ downvoteCount: number;
1339
+ replyCount: number;
1340
+ updatedAt: number;
1341
+ signature: {
1342
+ type: string;
1343
+ signature: string;
1344
+ publicKey: string;
1345
+ signedPropertyNames: string[];
1346
+ };
1347
+ protocolVersion: string;
1348
+ childCount?: number | undefined;
1349
+ number?: number | undefined;
1350
+ postNumber?: number | undefined;
1351
+ edit?: {
1352
+ [x: string]: unknown;
1353
+ timestamp: number;
1354
+ signature: {
1355
+ type: string;
1356
+ signature: string;
1357
+ publicKey: string;
1358
+ signedPropertyNames: string[];
1359
+ };
1360
+ protocolVersion: string;
1361
+ commentCid: string;
1362
+ flairs?: {
1363
+ [x: string]: unknown;
1364
+ text: string;
1365
+ backgroundColor?: string | undefined;
1366
+ textColor?: string | undefined;
1367
+ expiresAt?: number | undefined;
1368
+ }[] | undefined;
1369
+ communityPublicKey?: string | undefined;
1370
+ communityName?: string | undefined;
1371
+ spoiler?: boolean | undefined;
1372
+ nsfw?: boolean | undefined;
1373
+ reason?: string | undefined;
1374
+ content?: string | undefined;
1375
+ deleted?: boolean | undefined;
1376
+ author?: {
1377
+ [x: string]: unknown;
1378
+ name?: string | undefined;
1379
+ previousCommentCid?: string | undefined;
1380
+ displayName?: string | undefined;
1381
+ wallets?: Record<string, {
1382
+ address: string;
1383
+ timestamp: number;
1384
+ signature: {
1385
+ signature: string;
1386
+ type: string;
1387
+ };
1388
+ }> | undefined;
1389
+ avatar?: {
1390
+ [x: string]: unknown;
1391
+ chainTicker: string;
1392
+ address: string;
1393
+ id: string;
1394
+ timestamp: number;
1395
+ signature: {
1396
+ signature: string;
1397
+ type: string;
1398
+ };
1399
+ } | undefined;
1400
+ flairs?: {
1401
+ [x: string]: unknown;
1402
+ text: string;
1403
+ backgroundColor?: string | undefined;
1404
+ textColor?: string | undefined;
1405
+ expiresAt?: number | undefined;
1406
+ }[] | undefined;
1407
+ } | undefined;
1408
+ } | undefined;
1409
+ flairs?: {
1410
+ [x: string]: unknown;
1411
+ text: string;
1412
+ backgroundColor?: string | undefined;
1413
+ textColor?: string | undefined;
1414
+ expiresAt?: number | undefined;
1415
+ }[] | undefined;
1416
+ spoiler?: boolean | undefined;
1417
+ nsfw?: boolean | undefined;
1418
+ pinned?: boolean | undefined;
1419
+ locked?: boolean | undefined;
1420
+ archived?: boolean | undefined;
1421
+ removed?: boolean | undefined;
1422
+ reason?: string | undefined;
1423
+ approved?: boolean | undefined;
1424
+ author?: {
1425
+ [x: string]: unknown;
1426
+ community?: {
1427
+ [x: string]: unknown;
1428
+ postScore: number;
1429
+ replyScore: number;
1430
+ firstCommentTimestamp: number;
1431
+ lastCommentCid: string;
1432
+ banExpiresAt?: number | undefined;
1433
+ flairs?: {
1434
+ [x: string]: unknown;
1435
+ text: string;
1436
+ backgroundColor?: string | undefined;
1437
+ textColor?: string | undefined;
1438
+ expiresAt?: number | undefined;
1439
+ }[] | undefined;
1440
+ } | undefined;
1441
+ } | undefined;
1442
+ lastChildCid?: string | undefined;
1443
+ lastReplyTimestamp?: number | undefined;
1444
+ replies?: {
1445
+ pages: Record<string, {
1446
+ comments: {
1447
+ comment: {
1448
+ [x: string]: unknown;
1449
+ timestamp: number;
1450
+ signature: {
1451
+ type: string;
1452
+ signature: string;
1453
+ publicKey: string;
1454
+ signedPropertyNames: string[];
1455
+ };
1456
+ protocolVersion: string;
1457
+ depth: number;
1458
+ flairs?: {
1459
+ [x: string]: unknown;
1460
+ text: string;
1461
+ backgroundColor?: string | undefined;
1462
+ textColor?: string | undefined;
1463
+ expiresAt?: number | undefined;
1464
+ }[] | undefined;
1465
+ communityPublicKey?: string | undefined;
1466
+ communityName?: string | undefined;
1467
+ link?: string | undefined;
1468
+ spoiler?: boolean | undefined;
1469
+ nsfw?: boolean | undefined;
1470
+ content?: string | undefined;
1471
+ title?: string | undefined;
1472
+ linkWidth?: number | undefined;
1473
+ linkHeight?: number | undefined;
1474
+ linkHtmlTagName?: string | undefined;
1475
+ parentCid?: string | undefined;
1476
+ postCid?: string | undefined;
1477
+ quotedCids?: string[] | undefined;
1478
+ crosspost?: import("../../publications/comment/schema.js").Crosspost | undefined;
1479
+ author?: {
1480
+ [x: string]: unknown;
1481
+ name?: string | undefined;
1482
+ previousCommentCid?: string | undefined;
1483
+ displayName?: string | undefined;
1484
+ wallets?: Record<string, {
1485
+ address: string;
1486
+ timestamp: number;
1487
+ signature: {
1488
+ signature: string;
1489
+ type: string;
1490
+ };
1491
+ }> | undefined;
1492
+ avatar?: {
1493
+ [x: string]: unknown;
1494
+ chainTicker: string;
1495
+ address: string;
1496
+ id: string;
1497
+ timestamp: number;
1498
+ signature: {
1499
+ signature: string;
1500
+ type: string;
1501
+ };
1502
+ } | undefined;
1503
+ flairs?: {
1504
+ [x: string]: unknown;
1505
+ text: string;
1506
+ backgroundColor?: string | undefined;
1507
+ textColor?: string | undefined;
1508
+ expiresAt?: number | undefined;
1509
+ }[] | undefined;
1510
+ } | undefined;
1511
+ thumbnailUrl?: string | undefined;
1512
+ thumbnailUrlWidth?: number | undefined;
1513
+ thumbnailUrlHeight?: number | undefined;
1514
+ previousCid?: string | undefined;
1515
+ pseudonymityMode?: "per-post" | "per-reply" | "per-author" | undefined;
1516
+ };
1517
+ commentUpdate: /*elided*/ any;
1518
+ }[];
1519
+ nextCid?: string | undefined;
1520
+ }>;
1521
+ pageCids?: Record<string, string> | undefined;
1522
+ } | undefined;
1523
+ }>;
1524
+ options: z.ZodRecord<z.ZodString, z.ZodString>;
1525
+ baseTimestamp: z.ZodNumber;
1526
+ replies: z.ZodOptional<z.ZodArray<z.ZodCustom<import("../../index.js").PageSortReplyEntry, import("../../index.js").PageSortReplyEntry>>>;
1527
+ }, z.core.$strip>], null>, z.ZodNullable<z.ZodNumber>>;
1528
+ validatePageSortSettings: z.ZodOptional<z.ZodFunction<z.ZodTuple<readonly [z.ZodObject<{
1529
+ pageSortSettings: z.ZodObject<{
1530
+ path: z.ZodOptional<z.ZodString>;
1531
+ name: z.ZodOptional<z.ZodString>;
1532
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1533
+ preloaded: z.ZodOptional<z.ZodBoolean>;
1534
+ privateOptions: z.ZodOptional<z.ZodArray<z.ZodString>>;
1535
+ }, z.core.$strict>;
1536
+ }, z.core.$strip>], null>, z.ZodVoid>>;
1537
+ }, z.core.$loose>>> | undefined;
420
1538
  ipfsGatewayUrls?: string[] | undefined;
421
1539
  pubsubKuboRpcClientsOptions?: import("../../util.js").KuboRpcClientCreateOption[] | undefined;
422
1540
  httpRoutersOptions?: string[] | undefined;
@@ -835,6 +1953,1123 @@ export declare const SetNewSettingsPKCWsServerSchema: z.ZodObject<{
835
1953
  }, z.core.$strict>;
836
1954
  }, z.core.$strip>], null>, z.ZodVoid>>;
837
1955
  }, z.core.$loose>>>>>;
1956
+ pageSorts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodCustom<z.core.$InferInnerFunctionType<z.ZodTuple<readonly [z.ZodObject<{
1957
+ pageSortSettings: z.ZodObject<{
1958
+ path: z.ZodOptional<z.ZodString>;
1959
+ name: z.ZodOptional<z.ZodString>;
1960
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1961
+ preloaded: z.ZodOptional<z.ZodBoolean>;
1962
+ privateOptions: z.ZodOptional<z.ZodArray<z.ZodString>>;
1963
+ }, z.core.$strict>;
1964
+ }, z.core.$strip>], null>, z.ZodObject<{
1965
+ sortName: z.ZodString;
1966
+ description: z.ZodOptional<z.ZodString>;
1967
+ optionInputs: z.ZodOptional<z.ZodArray<z.ZodObject<{
1968
+ option: z.ZodString;
1969
+ label: z.ZodString;
1970
+ default: z.ZodOptional<z.ZodString>;
1971
+ description: z.ZodOptional<z.ZodString>;
1972
+ placeholder: z.ZodOptional<z.ZodString>;
1973
+ required: z.ZodOptional<z.ZodBoolean>;
1974
+ }, z.core.$loose>>>;
1975
+ scope: z.ZodOptional<z.ZodEnum<{
1976
+ posts: "posts";
1977
+ replies: "replies";
1978
+ }>>;
1979
+ flat: z.ZodOptional<z.ZodBoolean>;
1980
+ defaultOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1981
+ requireReplies: z.ZodOptional<z.ZodBoolean>;
1982
+ score: z.ZodFunction<z.ZodTuple<readonly [z.ZodObject<{
1983
+ comment: z.ZodCustom<{
1984
+ [x: string]: unknown;
1985
+ timestamp: number;
1986
+ signature: {
1987
+ type: string;
1988
+ signature: string;
1989
+ publicKey: string;
1990
+ signedPropertyNames: string[];
1991
+ };
1992
+ protocolVersion: string;
1993
+ depth: number;
1994
+ flairs?: {
1995
+ [x: string]: unknown;
1996
+ text: string;
1997
+ backgroundColor?: string | undefined;
1998
+ textColor?: string | undefined;
1999
+ expiresAt?: number | undefined;
2000
+ }[] | undefined;
2001
+ communityPublicKey?: string | undefined;
2002
+ communityName?: string | undefined;
2003
+ link?: string | undefined;
2004
+ spoiler?: boolean | undefined;
2005
+ nsfw?: boolean | undefined;
2006
+ content?: string | undefined;
2007
+ title?: string | undefined;
2008
+ linkWidth?: number | undefined;
2009
+ linkHeight?: number | undefined;
2010
+ linkHtmlTagName?: string | undefined;
2011
+ parentCid?: string | undefined;
2012
+ postCid?: string | undefined;
2013
+ quotedCids?: string[] | undefined;
2014
+ crosspost?: import("../../publications/comment/schema.js").Crosspost | undefined;
2015
+ author?: {
2016
+ [x: string]: unknown;
2017
+ name?: string | undefined;
2018
+ previousCommentCid?: string | undefined;
2019
+ displayName?: string | undefined;
2020
+ wallets?: Record<string, {
2021
+ address: string;
2022
+ timestamp: number;
2023
+ signature: {
2024
+ signature: string;
2025
+ type: string;
2026
+ };
2027
+ }> | undefined;
2028
+ avatar?: {
2029
+ [x: string]: unknown;
2030
+ chainTicker: string;
2031
+ address: string;
2032
+ id: string;
2033
+ timestamp: number;
2034
+ signature: {
2035
+ signature: string;
2036
+ type: string;
2037
+ };
2038
+ } | undefined;
2039
+ flairs?: {
2040
+ [x: string]: unknown;
2041
+ text: string;
2042
+ backgroundColor?: string | undefined;
2043
+ textColor?: string | undefined;
2044
+ expiresAt?: number | undefined;
2045
+ }[] | undefined;
2046
+ } | undefined;
2047
+ thumbnailUrl?: string | undefined;
2048
+ thumbnailUrlWidth?: number | undefined;
2049
+ thumbnailUrlHeight?: number | undefined;
2050
+ previousCid?: string | undefined;
2051
+ pseudonymityMode?: "per-post" | "per-reply" | "per-author" | undefined;
2052
+ }, {
2053
+ [x: string]: unknown;
2054
+ timestamp: number;
2055
+ signature: {
2056
+ type: string;
2057
+ signature: string;
2058
+ publicKey: string;
2059
+ signedPropertyNames: string[];
2060
+ };
2061
+ protocolVersion: string;
2062
+ depth: number;
2063
+ flairs?: {
2064
+ [x: string]: unknown;
2065
+ text: string;
2066
+ backgroundColor?: string | undefined;
2067
+ textColor?: string | undefined;
2068
+ expiresAt?: number | undefined;
2069
+ }[] | undefined;
2070
+ communityPublicKey?: string | undefined;
2071
+ communityName?: string | undefined;
2072
+ link?: string | undefined;
2073
+ spoiler?: boolean | undefined;
2074
+ nsfw?: boolean | undefined;
2075
+ content?: string | undefined;
2076
+ title?: string | undefined;
2077
+ linkWidth?: number | undefined;
2078
+ linkHeight?: number | undefined;
2079
+ linkHtmlTagName?: string | undefined;
2080
+ parentCid?: string | undefined;
2081
+ postCid?: string | undefined;
2082
+ quotedCids?: string[] | undefined;
2083
+ crosspost?: import("../../publications/comment/schema.js").Crosspost | undefined;
2084
+ author?: {
2085
+ [x: string]: unknown;
2086
+ name?: string | undefined;
2087
+ previousCommentCid?: string | undefined;
2088
+ displayName?: string | undefined;
2089
+ wallets?: Record<string, {
2090
+ address: string;
2091
+ timestamp: number;
2092
+ signature: {
2093
+ signature: string;
2094
+ type: string;
2095
+ };
2096
+ }> | undefined;
2097
+ avatar?: {
2098
+ [x: string]: unknown;
2099
+ chainTicker: string;
2100
+ address: string;
2101
+ id: string;
2102
+ timestamp: number;
2103
+ signature: {
2104
+ signature: string;
2105
+ type: string;
2106
+ };
2107
+ } | undefined;
2108
+ flairs?: {
2109
+ [x: string]: unknown;
2110
+ text: string;
2111
+ backgroundColor?: string | undefined;
2112
+ textColor?: string | undefined;
2113
+ expiresAt?: number | undefined;
2114
+ }[] | undefined;
2115
+ } | undefined;
2116
+ thumbnailUrl?: string | undefined;
2117
+ thumbnailUrlWidth?: number | undefined;
2118
+ thumbnailUrlHeight?: number | undefined;
2119
+ previousCid?: string | undefined;
2120
+ pseudonymityMode?: "per-post" | "per-reply" | "per-author" | undefined;
2121
+ }>;
2122
+ commentUpdate: z.ZodCustom<{
2123
+ [x: string]: unknown;
2124
+ cid: string;
2125
+ upvoteCount: number;
2126
+ downvoteCount: number;
2127
+ replyCount: number;
2128
+ updatedAt: number;
2129
+ signature: {
2130
+ type: string;
2131
+ signature: string;
2132
+ publicKey: string;
2133
+ signedPropertyNames: string[];
2134
+ };
2135
+ protocolVersion: string;
2136
+ childCount?: number | undefined;
2137
+ number?: number | undefined;
2138
+ postNumber?: number | undefined;
2139
+ edit?: {
2140
+ [x: string]: unknown;
2141
+ timestamp: number;
2142
+ signature: {
2143
+ type: string;
2144
+ signature: string;
2145
+ publicKey: string;
2146
+ signedPropertyNames: string[];
2147
+ };
2148
+ protocolVersion: string;
2149
+ commentCid: string;
2150
+ flairs?: {
2151
+ [x: string]: unknown;
2152
+ text: string;
2153
+ backgroundColor?: string | undefined;
2154
+ textColor?: string | undefined;
2155
+ expiresAt?: number | undefined;
2156
+ }[] | undefined;
2157
+ communityPublicKey?: string | undefined;
2158
+ communityName?: string | undefined;
2159
+ spoiler?: boolean | undefined;
2160
+ nsfw?: boolean | undefined;
2161
+ reason?: string | undefined;
2162
+ content?: string | undefined;
2163
+ deleted?: boolean | undefined;
2164
+ author?: {
2165
+ [x: string]: unknown;
2166
+ name?: string | undefined;
2167
+ previousCommentCid?: string | undefined;
2168
+ displayName?: string | undefined;
2169
+ wallets?: Record<string, {
2170
+ address: string;
2171
+ timestamp: number;
2172
+ signature: {
2173
+ signature: string;
2174
+ type: string;
2175
+ };
2176
+ }> | undefined;
2177
+ avatar?: {
2178
+ [x: string]: unknown;
2179
+ chainTicker: string;
2180
+ address: string;
2181
+ id: string;
2182
+ timestamp: number;
2183
+ signature: {
2184
+ signature: string;
2185
+ type: string;
2186
+ };
2187
+ } | undefined;
2188
+ flairs?: {
2189
+ [x: string]: unknown;
2190
+ text: string;
2191
+ backgroundColor?: string | undefined;
2192
+ textColor?: string | undefined;
2193
+ expiresAt?: number | undefined;
2194
+ }[] | undefined;
2195
+ } | undefined;
2196
+ } | undefined;
2197
+ flairs?: {
2198
+ [x: string]: unknown;
2199
+ text: string;
2200
+ backgroundColor?: string | undefined;
2201
+ textColor?: string | undefined;
2202
+ expiresAt?: number | undefined;
2203
+ }[] | undefined;
2204
+ spoiler?: boolean | undefined;
2205
+ nsfw?: boolean | undefined;
2206
+ pinned?: boolean | undefined;
2207
+ locked?: boolean | undefined;
2208
+ archived?: boolean | undefined;
2209
+ removed?: boolean | undefined;
2210
+ reason?: string | undefined;
2211
+ approved?: boolean | undefined;
2212
+ author?: {
2213
+ [x: string]: unknown;
2214
+ community?: {
2215
+ [x: string]: unknown;
2216
+ postScore: number;
2217
+ replyScore: number;
2218
+ firstCommentTimestamp: number;
2219
+ lastCommentCid: string;
2220
+ banExpiresAt?: number | undefined;
2221
+ flairs?: {
2222
+ [x: string]: unknown;
2223
+ text: string;
2224
+ backgroundColor?: string | undefined;
2225
+ textColor?: string | undefined;
2226
+ expiresAt?: number | undefined;
2227
+ }[] | undefined;
2228
+ } | undefined;
2229
+ } | undefined;
2230
+ lastChildCid?: string | undefined;
2231
+ lastReplyTimestamp?: number | undefined;
2232
+ replies?: {
2233
+ pages: Record<string, {
2234
+ comments: {
2235
+ comment: {
2236
+ [x: string]: unknown;
2237
+ timestamp: number;
2238
+ signature: {
2239
+ type: string;
2240
+ signature: string;
2241
+ publicKey: string;
2242
+ signedPropertyNames: string[];
2243
+ };
2244
+ protocolVersion: string;
2245
+ depth: number;
2246
+ flairs?: {
2247
+ [x: string]: unknown;
2248
+ text: string;
2249
+ backgroundColor?: string | undefined;
2250
+ textColor?: string | undefined;
2251
+ expiresAt?: number | undefined;
2252
+ }[] | undefined;
2253
+ communityPublicKey?: string | undefined;
2254
+ communityName?: string | undefined;
2255
+ link?: string | undefined;
2256
+ spoiler?: boolean | undefined;
2257
+ nsfw?: boolean | undefined;
2258
+ content?: string | undefined;
2259
+ title?: string | undefined;
2260
+ linkWidth?: number | undefined;
2261
+ linkHeight?: number | undefined;
2262
+ linkHtmlTagName?: string | undefined;
2263
+ parentCid?: string | undefined;
2264
+ postCid?: string | undefined;
2265
+ quotedCids?: string[] | undefined;
2266
+ crosspost?: import("../../publications/comment/schema.js").Crosspost | undefined;
2267
+ author?: {
2268
+ [x: string]: unknown;
2269
+ name?: string | undefined;
2270
+ previousCommentCid?: string | undefined;
2271
+ displayName?: string | undefined;
2272
+ wallets?: Record<string, {
2273
+ address: string;
2274
+ timestamp: number;
2275
+ signature: {
2276
+ signature: string;
2277
+ type: string;
2278
+ };
2279
+ }> | undefined;
2280
+ avatar?: {
2281
+ [x: string]: unknown;
2282
+ chainTicker: string;
2283
+ address: string;
2284
+ id: string;
2285
+ timestamp: number;
2286
+ signature: {
2287
+ signature: string;
2288
+ type: string;
2289
+ };
2290
+ } | undefined;
2291
+ flairs?: {
2292
+ [x: string]: unknown;
2293
+ text: string;
2294
+ backgroundColor?: string | undefined;
2295
+ textColor?: string | undefined;
2296
+ expiresAt?: number | undefined;
2297
+ }[] | undefined;
2298
+ } | undefined;
2299
+ thumbnailUrl?: string | undefined;
2300
+ thumbnailUrlWidth?: number | undefined;
2301
+ thumbnailUrlHeight?: number | undefined;
2302
+ previousCid?: string | undefined;
2303
+ pseudonymityMode?: "per-post" | "per-reply" | "per-author" | undefined;
2304
+ };
2305
+ commentUpdate: /*elided*/ any;
2306
+ }[];
2307
+ nextCid?: string | undefined;
2308
+ }>;
2309
+ pageCids?: Record<string, string> | undefined;
2310
+ } | undefined;
2311
+ }, {
2312
+ [x: string]: unknown;
2313
+ cid: string;
2314
+ upvoteCount: number;
2315
+ downvoteCount: number;
2316
+ replyCount: number;
2317
+ updatedAt: number;
2318
+ signature: {
2319
+ type: string;
2320
+ signature: string;
2321
+ publicKey: string;
2322
+ signedPropertyNames: string[];
2323
+ };
2324
+ protocolVersion: string;
2325
+ childCount?: number | undefined;
2326
+ number?: number | undefined;
2327
+ postNumber?: number | undefined;
2328
+ edit?: {
2329
+ [x: string]: unknown;
2330
+ timestamp: number;
2331
+ signature: {
2332
+ type: string;
2333
+ signature: string;
2334
+ publicKey: string;
2335
+ signedPropertyNames: string[];
2336
+ };
2337
+ protocolVersion: string;
2338
+ commentCid: string;
2339
+ flairs?: {
2340
+ [x: string]: unknown;
2341
+ text: string;
2342
+ backgroundColor?: string | undefined;
2343
+ textColor?: string | undefined;
2344
+ expiresAt?: number | undefined;
2345
+ }[] | undefined;
2346
+ communityPublicKey?: string | undefined;
2347
+ communityName?: string | undefined;
2348
+ spoiler?: boolean | undefined;
2349
+ nsfw?: boolean | undefined;
2350
+ reason?: string | undefined;
2351
+ content?: string | undefined;
2352
+ deleted?: boolean | undefined;
2353
+ author?: {
2354
+ [x: string]: unknown;
2355
+ name?: string | undefined;
2356
+ previousCommentCid?: string | undefined;
2357
+ displayName?: string | undefined;
2358
+ wallets?: Record<string, {
2359
+ address: string;
2360
+ timestamp: number;
2361
+ signature: {
2362
+ signature: string;
2363
+ type: string;
2364
+ };
2365
+ }> | undefined;
2366
+ avatar?: {
2367
+ [x: string]: unknown;
2368
+ chainTicker: string;
2369
+ address: string;
2370
+ id: string;
2371
+ timestamp: number;
2372
+ signature: {
2373
+ signature: string;
2374
+ type: string;
2375
+ };
2376
+ } | undefined;
2377
+ flairs?: {
2378
+ [x: string]: unknown;
2379
+ text: string;
2380
+ backgroundColor?: string | undefined;
2381
+ textColor?: string | undefined;
2382
+ expiresAt?: number | undefined;
2383
+ }[] | undefined;
2384
+ } | undefined;
2385
+ } | undefined;
2386
+ flairs?: {
2387
+ [x: string]: unknown;
2388
+ text: string;
2389
+ backgroundColor?: string | undefined;
2390
+ textColor?: string | undefined;
2391
+ expiresAt?: number | undefined;
2392
+ }[] | undefined;
2393
+ spoiler?: boolean | undefined;
2394
+ nsfw?: boolean | undefined;
2395
+ pinned?: boolean | undefined;
2396
+ locked?: boolean | undefined;
2397
+ archived?: boolean | undefined;
2398
+ removed?: boolean | undefined;
2399
+ reason?: string | undefined;
2400
+ approved?: boolean | undefined;
2401
+ author?: {
2402
+ [x: string]: unknown;
2403
+ community?: {
2404
+ [x: string]: unknown;
2405
+ postScore: number;
2406
+ replyScore: number;
2407
+ firstCommentTimestamp: number;
2408
+ lastCommentCid: string;
2409
+ banExpiresAt?: number | undefined;
2410
+ flairs?: {
2411
+ [x: string]: unknown;
2412
+ text: string;
2413
+ backgroundColor?: string | undefined;
2414
+ textColor?: string | undefined;
2415
+ expiresAt?: number | undefined;
2416
+ }[] | undefined;
2417
+ } | undefined;
2418
+ } | undefined;
2419
+ lastChildCid?: string | undefined;
2420
+ lastReplyTimestamp?: number | undefined;
2421
+ replies?: {
2422
+ pages: Record<string, {
2423
+ comments: {
2424
+ comment: {
2425
+ [x: string]: unknown;
2426
+ timestamp: number;
2427
+ signature: {
2428
+ type: string;
2429
+ signature: string;
2430
+ publicKey: string;
2431
+ signedPropertyNames: string[];
2432
+ };
2433
+ protocolVersion: string;
2434
+ depth: number;
2435
+ flairs?: {
2436
+ [x: string]: unknown;
2437
+ text: string;
2438
+ backgroundColor?: string | undefined;
2439
+ textColor?: string | undefined;
2440
+ expiresAt?: number | undefined;
2441
+ }[] | undefined;
2442
+ communityPublicKey?: string | undefined;
2443
+ communityName?: string | undefined;
2444
+ link?: string | undefined;
2445
+ spoiler?: boolean | undefined;
2446
+ nsfw?: boolean | undefined;
2447
+ content?: string | undefined;
2448
+ title?: string | undefined;
2449
+ linkWidth?: number | undefined;
2450
+ linkHeight?: number | undefined;
2451
+ linkHtmlTagName?: string | undefined;
2452
+ parentCid?: string | undefined;
2453
+ postCid?: string | undefined;
2454
+ quotedCids?: string[] | undefined;
2455
+ crosspost?: import("../../publications/comment/schema.js").Crosspost | undefined;
2456
+ author?: {
2457
+ [x: string]: unknown;
2458
+ name?: string | undefined;
2459
+ previousCommentCid?: string | undefined;
2460
+ displayName?: string | undefined;
2461
+ wallets?: Record<string, {
2462
+ address: string;
2463
+ timestamp: number;
2464
+ signature: {
2465
+ signature: string;
2466
+ type: string;
2467
+ };
2468
+ }> | undefined;
2469
+ avatar?: {
2470
+ [x: string]: unknown;
2471
+ chainTicker: string;
2472
+ address: string;
2473
+ id: string;
2474
+ timestamp: number;
2475
+ signature: {
2476
+ signature: string;
2477
+ type: string;
2478
+ };
2479
+ } | undefined;
2480
+ flairs?: {
2481
+ [x: string]: unknown;
2482
+ text: string;
2483
+ backgroundColor?: string | undefined;
2484
+ textColor?: string | undefined;
2485
+ expiresAt?: number | undefined;
2486
+ }[] | undefined;
2487
+ } | undefined;
2488
+ thumbnailUrl?: string | undefined;
2489
+ thumbnailUrlWidth?: number | undefined;
2490
+ thumbnailUrlHeight?: number | undefined;
2491
+ previousCid?: string | undefined;
2492
+ pseudonymityMode?: "per-post" | "per-reply" | "per-author" | undefined;
2493
+ };
2494
+ commentUpdate: /*elided*/ any;
2495
+ }[];
2496
+ nextCid?: string | undefined;
2497
+ }>;
2498
+ pageCids?: Record<string, string> | undefined;
2499
+ } | undefined;
2500
+ }>;
2501
+ options: z.ZodRecord<z.ZodString, z.ZodString>;
2502
+ baseTimestamp: z.ZodNumber;
2503
+ replies: z.ZodOptional<z.ZodArray<z.ZodCustom<import("../../index.js").PageSortReplyEntry, import("../../index.js").PageSortReplyEntry>>>;
2504
+ }, z.core.$strip>], null>, z.ZodNullable<z.ZodNumber>>;
2505
+ validatePageSortSettings: z.ZodOptional<z.ZodFunction<z.ZodTuple<readonly [z.ZodObject<{
2506
+ pageSortSettings: z.ZodObject<{
2507
+ path: z.ZodOptional<z.ZodString>;
2508
+ name: z.ZodOptional<z.ZodString>;
2509
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2510
+ preloaded: z.ZodOptional<z.ZodBoolean>;
2511
+ privateOptions: z.ZodOptional<z.ZodArray<z.ZodString>>;
2512
+ }, z.core.$strict>;
2513
+ }, z.core.$strip>], null>, z.ZodVoid>>;
2514
+ }, z.core.$loose>>, z.core.$InferInnerFunctionType<z.ZodTuple<readonly [z.ZodObject<{
2515
+ pageSortSettings: z.ZodObject<{
2516
+ path: z.ZodOptional<z.ZodString>;
2517
+ name: z.ZodOptional<z.ZodString>;
2518
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2519
+ preloaded: z.ZodOptional<z.ZodBoolean>;
2520
+ privateOptions: z.ZodOptional<z.ZodArray<z.ZodString>>;
2521
+ }, z.core.$strict>;
2522
+ }, z.core.$strip>], null>, z.ZodObject<{
2523
+ sortName: z.ZodString;
2524
+ description: z.ZodOptional<z.ZodString>;
2525
+ optionInputs: z.ZodOptional<z.ZodArray<z.ZodObject<{
2526
+ option: z.ZodString;
2527
+ label: z.ZodString;
2528
+ default: z.ZodOptional<z.ZodString>;
2529
+ description: z.ZodOptional<z.ZodString>;
2530
+ placeholder: z.ZodOptional<z.ZodString>;
2531
+ required: z.ZodOptional<z.ZodBoolean>;
2532
+ }, z.core.$loose>>>;
2533
+ scope: z.ZodOptional<z.ZodEnum<{
2534
+ posts: "posts";
2535
+ replies: "replies";
2536
+ }>>;
2537
+ flat: z.ZodOptional<z.ZodBoolean>;
2538
+ defaultOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2539
+ requireReplies: z.ZodOptional<z.ZodBoolean>;
2540
+ score: z.ZodFunction<z.ZodTuple<readonly [z.ZodObject<{
2541
+ comment: z.ZodCustom<{
2542
+ [x: string]: unknown;
2543
+ timestamp: number;
2544
+ signature: {
2545
+ type: string;
2546
+ signature: string;
2547
+ publicKey: string;
2548
+ signedPropertyNames: string[];
2549
+ };
2550
+ protocolVersion: string;
2551
+ depth: number;
2552
+ flairs?: {
2553
+ [x: string]: unknown;
2554
+ text: string;
2555
+ backgroundColor?: string | undefined;
2556
+ textColor?: string | undefined;
2557
+ expiresAt?: number | undefined;
2558
+ }[] | undefined;
2559
+ communityPublicKey?: string | undefined;
2560
+ communityName?: string | undefined;
2561
+ link?: string | undefined;
2562
+ spoiler?: boolean | undefined;
2563
+ nsfw?: boolean | undefined;
2564
+ content?: string | undefined;
2565
+ title?: string | undefined;
2566
+ linkWidth?: number | undefined;
2567
+ linkHeight?: number | undefined;
2568
+ linkHtmlTagName?: string | undefined;
2569
+ parentCid?: string | undefined;
2570
+ postCid?: string | undefined;
2571
+ quotedCids?: string[] | undefined;
2572
+ crosspost?: import("../../publications/comment/schema.js").Crosspost | undefined;
2573
+ author?: {
2574
+ [x: string]: unknown;
2575
+ name?: string | undefined;
2576
+ previousCommentCid?: string | undefined;
2577
+ displayName?: string | undefined;
2578
+ wallets?: Record<string, {
2579
+ address: string;
2580
+ timestamp: number;
2581
+ signature: {
2582
+ signature: string;
2583
+ type: string;
2584
+ };
2585
+ }> | undefined;
2586
+ avatar?: {
2587
+ [x: string]: unknown;
2588
+ chainTicker: string;
2589
+ address: string;
2590
+ id: string;
2591
+ timestamp: number;
2592
+ signature: {
2593
+ signature: string;
2594
+ type: string;
2595
+ };
2596
+ } | undefined;
2597
+ flairs?: {
2598
+ [x: string]: unknown;
2599
+ text: string;
2600
+ backgroundColor?: string | undefined;
2601
+ textColor?: string | undefined;
2602
+ expiresAt?: number | undefined;
2603
+ }[] | undefined;
2604
+ } | undefined;
2605
+ thumbnailUrl?: string | undefined;
2606
+ thumbnailUrlWidth?: number | undefined;
2607
+ thumbnailUrlHeight?: number | undefined;
2608
+ previousCid?: string | undefined;
2609
+ pseudonymityMode?: "per-post" | "per-reply" | "per-author" | undefined;
2610
+ }, {
2611
+ [x: string]: unknown;
2612
+ timestamp: number;
2613
+ signature: {
2614
+ type: string;
2615
+ signature: string;
2616
+ publicKey: string;
2617
+ signedPropertyNames: string[];
2618
+ };
2619
+ protocolVersion: string;
2620
+ depth: number;
2621
+ flairs?: {
2622
+ [x: string]: unknown;
2623
+ text: string;
2624
+ backgroundColor?: string | undefined;
2625
+ textColor?: string | undefined;
2626
+ expiresAt?: number | undefined;
2627
+ }[] | undefined;
2628
+ communityPublicKey?: string | undefined;
2629
+ communityName?: string | undefined;
2630
+ link?: string | undefined;
2631
+ spoiler?: boolean | undefined;
2632
+ nsfw?: boolean | undefined;
2633
+ content?: string | undefined;
2634
+ title?: string | undefined;
2635
+ linkWidth?: number | undefined;
2636
+ linkHeight?: number | undefined;
2637
+ linkHtmlTagName?: string | undefined;
2638
+ parentCid?: string | undefined;
2639
+ postCid?: string | undefined;
2640
+ quotedCids?: string[] | undefined;
2641
+ crosspost?: import("../../publications/comment/schema.js").Crosspost | undefined;
2642
+ author?: {
2643
+ [x: string]: unknown;
2644
+ name?: string | undefined;
2645
+ previousCommentCid?: string | undefined;
2646
+ displayName?: string | undefined;
2647
+ wallets?: Record<string, {
2648
+ address: string;
2649
+ timestamp: number;
2650
+ signature: {
2651
+ signature: string;
2652
+ type: string;
2653
+ };
2654
+ }> | undefined;
2655
+ avatar?: {
2656
+ [x: string]: unknown;
2657
+ chainTicker: string;
2658
+ address: string;
2659
+ id: string;
2660
+ timestamp: number;
2661
+ signature: {
2662
+ signature: string;
2663
+ type: string;
2664
+ };
2665
+ } | undefined;
2666
+ flairs?: {
2667
+ [x: string]: unknown;
2668
+ text: string;
2669
+ backgroundColor?: string | undefined;
2670
+ textColor?: string | undefined;
2671
+ expiresAt?: number | undefined;
2672
+ }[] | undefined;
2673
+ } | undefined;
2674
+ thumbnailUrl?: string | undefined;
2675
+ thumbnailUrlWidth?: number | undefined;
2676
+ thumbnailUrlHeight?: number | undefined;
2677
+ previousCid?: string | undefined;
2678
+ pseudonymityMode?: "per-post" | "per-reply" | "per-author" | undefined;
2679
+ }>;
2680
+ commentUpdate: z.ZodCustom<{
2681
+ [x: string]: unknown;
2682
+ cid: string;
2683
+ upvoteCount: number;
2684
+ downvoteCount: number;
2685
+ replyCount: number;
2686
+ updatedAt: number;
2687
+ signature: {
2688
+ type: string;
2689
+ signature: string;
2690
+ publicKey: string;
2691
+ signedPropertyNames: string[];
2692
+ };
2693
+ protocolVersion: string;
2694
+ childCount?: number | undefined;
2695
+ number?: number | undefined;
2696
+ postNumber?: number | undefined;
2697
+ edit?: {
2698
+ [x: string]: unknown;
2699
+ timestamp: number;
2700
+ signature: {
2701
+ type: string;
2702
+ signature: string;
2703
+ publicKey: string;
2704
+ signedPropertyNames: string[];
2705
+ };
2706
+ protocolVersion: string;
2707
+ commentCid: string;
2708
+ flairs?: {
2709
+ [x: string]: unknown;
2710
+ text: string;
2711
+ backgroundColor?: string | undefined;
2712
+ textColor?: string | undefined;
2713
+ expiresAt?: number | undefined;
2714
+ }[] | undefined;
2715
+ communityPublicKey?: string | undefined;
2716
+ communityName?: string | undefined;
2717
+ spoiler?: boolean | undefined;
2718
+ nsfw?: boolean | undefined;
2719
+ reason?: string | undefined;
2720
+ content?: string | undefined;
2721
+ deleted?: boolean | undefined;
2722
+ author?: {
2723
+ [x: string]: unknown;
2724
+ name?: string | undefined;
2725
+ previousCommentCid?: string | undefined;
2726
+ displayName?: string | undefined;
2727
+ wallets?: Record<string, {
2728
+ address: string;
2729
+ timestamp: number;
2730
+ signature: {
2731
+ signature: string;
2732
+ type: string;
2733
+ };
2734
+ }> | undefined;
2735
+ avatar?: {
2736
+ [x: string]: unknown;
2737
+ chainTicker: string;
2738
+ address: string;
2739
+ id: string;
2740
+ timestamp: number;
2741
+ signature: {
2742
+ signature: string;
2743
+ type: string;
2744
+ };
2745
+ } | undefined;
2746
+ flairs?: {
2747
+ [x: string]: unknown;
2748
+ text: string;
2749
+ backgroundColor?: string | undefined;
2750
+ textColor?: string | undefined;
2751
+ expiresAt?: number | undefined;
2752
+ }[] | undefined;
2753
+ } | undefined;
2754
+ } | undefined;
2755
+ flairs?: {
2756
+ [x: string]: unknown;
2757
+ text: string;
2758
+ backgroundColor?: string | undefined;
2759
+ textColor?: string | undefined;
2760
+ expiresAt?: number | undefined;
2761
+ }[] | undefined;
2762
+ spoiler?: boolean | undefined;
2763
+ nsfw?: boolean | undefined;
2764
+ pinned?: boolean | undefined;
2765
+ locked?: boolean | undefined;
2766
+ archived?: boolean | undefined;
2767
+ removed?: boolean | undefined;
2768
+ reason?: string | undefined;
2769
+ approved?: boolean | undefined;
2770
+ author?: {
2771
+ [x: string]: unknown;
2772
+ community?: {
2773
+ [x: string]: unknown;
2774
+ postScore: number;
2775
+ replyScore: number;
2776
+ firstCommentTimestamp: number;
2777
+ lastCommentCid: string;
2778
+ banExpiresAt?: number | undefined;
2779
+ flairs?: {
2780
+ [x: string]: unknown;
2781
+ text: string;
2782
+ backgroundColor?: string | undefined;
2783
+ textColor?: string | undefined;
2784
+ expiresAt?: number | undefined;
2785
+ }[] | undefined;
2786
+ } | undefined;
2787
+ } | undefined;
2788
+ lastChildCid?: string | undefined;
2789
+ lastReplyTimestamp?: number | undefined;
2790
+ replies?: {
2791
+ pages: Record<string, {
2792
+ comments: {
2793
+ comment: {
2794
+ [x: string]: unknown;
2795
+ timestamp: number;
2796
+ signature: {
2797
+ type: string;
2798
+ signature: string;
2799
+ publicKey: string;
2800
+ signedPropertyNames: string[];
2801
+ };
2802
+ protocolVersion: string;
2803
+ depth: number;
2804
+ flairs?: {
2805
+ [x: string]: unknown;
2806
+ text: string;
2807
+ backgroundColor?: string | undefined;
2808
+ textColor?: string | undefined;
2809
+ expiresAt?: number | undefined;
2810
+ }[] | undefined;
2811
+ communityPublicKey?: string | undefined;
2812
+ communityName?: string | undefined;
2813
+ link?: string | undefined;
2814
+ spoiler?: boolean | undefined;
2815
+ nsfw?: boolean | undefined;
2816
+ content?: string | undefined;
2817
+ title?: string | undefined;
2818
+ linkWidth?: number | undefined;
2819
+ linkHeight?: number | undefined;
2820
+ linkHtmlTagName?: string | undefined;
2821
+ parentCid?: string | undefined;
2822
+ postCid?: string | undefined;
2823
+ quotedCids?: string[] | undefined;
2824
+ crosspost?: import("../../publications/comment/schema.js").Crosspost | undefined;
2825
+ author?: {
2826
+ [x: string]: unknown;
2827
+ name?: string | undefined;
2828
+ previousCommentCid?: string | undefined;
2829
+ displayName?: string | undefined;
2830
+ wallets?: Record<string, {
2831
+ address: string;
2832
+ timestamp: number;
2833
+ signature: {
2834
+ signature: string;
2835
+ type: string;
2836
+ };
2837
+ }> | undefined;
2838
+ avatar?: {
2839
+ [x: string]: unknown;
2840
+ chainTicker: string;
2841
+ address: string;
2842
+ id: string;
2843
+ timestamp: number;
2844
+ signature: {
2845
+ signature: string;
2846
+ type: string;
2847
+ };
2848
+ } | undefined;
2849
+ flairs?: {
2850
+ [x: string]: unknown;
2851
+ text: string;
2852
+ backgroundColor?: string | undefined;
2853
+ textColor?: string | undefined;
2854
+ expiresAt?: number | undefined;
2855
+ }[] | undefined;
2856
+ } | undefined;
2857
+ thumbnailUrl?: string | undefined;
2858
+ thumbnailUrlWidth?: number | undefined;
2859
+ thumbnailUrlHeight?: number | undefined;
2860
+ previousCid?: string | undefined;
2861
+ pseudonymityMode?: "per-post" | "per-reply" | "per-author" | undefined;
2862
+ };
2863
+ commentUpdate: /*elided*/ any;
2864
+ }[];
2865
+ nextCid?: string | undefined;
2866
+ }>;
2867
+ pageCids?: Record<string, string> | undefined;
2868
+ } | undefined;
2869
+ }, {
2870
+ [x: string]: unknown;
2871
+ cid: string;
2872
+ upvoteCount: number;
2873
+ downvoteCount: number;
2874
+ replyCount: number;
2875
+ updatedAt: number;
2876
+ signature: {
2877
+ type: string;
2878
+ signature: string;
2879
+ publicKey: string;
2880
+ signedPropertyNames: string[];
2881
+ };
2882
+ protocolVersion: string;
2883
+ childCount?: number | undefined;
2884
+ number?: number | undefined;
2885
+ postNumber?: number | undefined;
2886
+ edit?: {
2887
+ [x: string]: unknown;
2888
+ timestamp: number;
2889
+ signature: {
2890
+ type: string;
2891
+ signature: string;
2892
+ publicKey: string;
2893
+ signedPropertyNames: string[];
2894
+ };
2895
+ protocolVersion: string;
2896
+ commentCid: string;
2897
+ flairs?: {
2898
+ [x: string]: unknown;
2899
+ text: string;
2900
+ backgroundColor?: string | undefined;
2901
+ textColor?: string | undefined;
2902
+ expiresAt?: number | undefined;
2903
+ }[] | undefined;
2904
+ communityPublicKey?: string | undefined;
2905
+ communityName?: string | undefined;
2906
+ spoiler?: boolean | undefined;
2907
+ nsfw?: boolean | undefined;
2908
+ reason?: string | undefined;
2909
+ content?: string | undefined;
2910
+ deleted?: boolean | undefined;
2911
+ author?: {
2912
+ [x: string]: unknown;
2913
+ name?: string | undefined;
2914
+ previousCommentCid?: string | undefined;
2915
+ displayName?: string | undefined;
2916
+ wallets?: Record<string, {
2917
+ address: string;
2918
+ timestamp: number;
2919
+ signature: {
2920
+ signature: string;
2921
+ type: string;
2922
+ };
2923
+ }> | undefined;
2924
+ avatar?: {
2925
+ [x: string]: unknown;
2926
+ chainTicker: string;
2927
+ address: string;
2928
+ id: string;
2929
+ timestamp: number;
2930
+ signature: {
2931
+ signature: string;
2932
+ type: string;
2933
+ };
2934
+ } | undefined;
2935
+ flairs?: {
2936
+ [x: string]: unknown;
2937
+ text: string;
2938
+ backgroundColor?: string | undefined;
2939
+ textColor?: string | undefined;
2940
+ expiresAt?: number | undefined;
2941
+ }[] | undefined;
2942
+ } | undefined;
2943
+ } | undefined;
2944
+ flairs?: {
2945
+ [x: string]: unknown;
2946
+ text: string;
2947
+ backgroundColor?: string | undefined;
2948
+ textColor?: string | undefined;
2949
+ expiresAt?: number | undefined;
2950
+ }[] | undefined;
2951
+ spoiler?: boolean | undefined;
2952
+ nsfw?: boolean | undefined;
2953
+ pinned?: boolean | undefined;
2954
+ locked?: boolean | undefined;
2955
+ archived?: boolean | undefined;
2956
+ removed?: boolean | undefined;
2957
+ reason?: string | undefined;
2958
+ approved?: boolean | undefined;
2959
+ author?: {
2960
+ [x: string]: unknown;
2961
+ community?: {
2962
+ [x: string]: unknown;
2963
+ postScore: number;
2964
+ replyScore: number;
2965
+ firstCommentTimestamp: number;
2966
+ lastCommentCid: string;
2967
+ banExpiresAt?: number | undefined;
2968
+ flairs?: {
2969
+ [x: string]: unknown;
2970
+ text: string;
2971
+ backgroundColor?: string | undefined;
2972
+ textColor?: string | undefined;
2973
+ expiresAt?: number | undefined;
2974
+ }[] | undefined;
2975
+ } | undefined;
2976
+ } | undefined;
2977
+ lastChildCid?: string | undefined;
2978
+ lastReplyTimestamp?: number | undefined;
2979
+ replies?: {
2980
+ pages: Record<string, {
2981
+ comments: {
2982
+ comment: {
2983
+ [x: string]: unknown;
2984
+ timestamp: number;
2985
+ signature: {
2986
+ type: string;
2987
+ signature: string;
2988
+ publicKey: string;
2989
+ signedPropertyNames: string[];
2990
+ };
2991
+ protocolVersion: string;
2992
+ depth: number;
2993
+ flairs?: {
2994
+ [x: string]: unknown;
2995
+ text: string;
2996
+ backgroundColor?: string | undefined;
2997
+ textColor?: string | undefined;
2998
+ expiresAt?: number | undefined;
2999
+ }[] | undefined;
3000
+ communityPublicKey?: string | undefined;
3001
+ communityName?: string | undefined;
3002
+ link?: string | undefined;
3003
+ spoiler?: boolean | undefined;
3004
+ nsfw?: boolean | undefined;
3005
+ content?: string | undefined;
3006
+ title?: string | undefined;
3007
+ linkWidth?: number | undefined;
3008
+ linkHeight?: number | undefined;
3009
+ linkHtmlTagName?: string | undefined;
3010
+ parentCid?: string | undefined;
3011
+ postCid?: string | undefined;
3012
+ quotedCids?: string[] | undefined;
3013
+ crosspost?: import("../../publications/comment/schema.js").Crosspost | undefined;
3014
+ author?: {
3015
+ [x: string]: unknown;
3016
+ name?: string | undefined;
3017
+ previousCommentCid?: string | undefined;
3018
+ displayName?: string | undefined;
3019
+ wallets?: Record<string, {
3020
+ address: string;
3021
+ timestamp: number;
3022
+ signature: {
3023
+ signature: string;
3024
+ type: string;
3025
+ };
3026
+ }> | undefined;
3027
+ avatar?: {
3028
+ [x: string]: unknown;
3029
+ chainTicker: string;
3030
+ address: string;
3031
+ id: string;
3032
+ timestamp: number;
3033
+ signature: {
3034
+ signature: string;
3035
+ type: string;
3036
+ };
3037
+ } | undefined;
3038
+ flairs?: {
3039
+ [x: string]: unknown;
3040
+ text: string;
3041
+ backgroundColor?: string | undefined;
3042
+ textColor?: string | undefined;
3043
+ expiresAt?: number | undefined;
3044
+ }[] | undefined;
3045
+ } | undefined;
3046
+ thumbnailUrl?: string | undefined;
3047
+ thumbnailUrlWidth?: number | undefined;
3048
+ thumbnailUrlHeight?: number | undefined;
3049
+ previousCid?: string | undefined;
3050
+ pseudonymityMode?: "per-post" | "per-reply" | "per-author" | undefined;
3051
+ };
3052
+ commentUpdate: /*elided*/ any;
3053
+ }[];
3054
+ nextCid?: string | undefined;
3055
+ }>;
3056
+ pageCids?: Record<string, string> | undefined;
3057
+ } | undefined;
3058
+ }>;
3059
+ options: z.ZodRecord<z.ZodString, z.ZodString>;
3060
+ baseTimestamp: z.ZodNumber;
3061
+ replies: z.ZodOptional<z.ZodArray<z.ZodCustom<import("../../index.js").PageSortReplyEntry, import("../../index.js").PageSortReplyEntry>>>;
3062
+ }, z.core.$strip>], null>, z.ZodNullable<z.ZodNumber>>;
3063
+ validatePageSortSettings: z.ZodOptional<z.ZodFunction<z.ZodTuple<readonly [z.ZodObject<{
3064
+ pageSortSettings: z.ZodObject<{
3065
+ path: z.ZodOptional<z.ZodString>;
3066
+ name: z.ZodOptional<z.ZodString>;
3067
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3068
+ preloaded: z.ZodOptional<z.ZodBoolean>;
3069
+ privateOptions: z.ZodOptional<z.ZodArray<z.ZodString>>;
3070
+ }, z.core.$strict>;
3071
+ }, z.core.$strip>], null>, z.ZodVoid>>;
3072
+ }, z.core.$loose>>>>>;
838
3073
  nameResolvers: z.ZodOptional<z.ZodArray<z.ZodObject<{
839
3074
  key: z.ZodString;
840
3075
  provider: z.ZodString;
@@ -1239,6 +3474,1123 @@ export declare const PKCWsServerSettingsSerializedSchema: z.ZodObject<{
1239
3474
  }, z.core.$strict>;
1240
3475
  }, z.core.$strip>], null>, z.ZodVoid>>;
1241
3476
  }, z.core.$loose>>>>>;
3477
+ pageSorts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodCustom<z.core.$InferInnerFunctionType<z.ZodTuple<readonly [z.ZodObject<{
3478
+ pageSortSettings: z.ZodObject<{
3479
+ path: z.ZodOptional<z.ZodString>;
3480
+ name: z.ZodOptional<z.ZodString>;
3481
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3482
+ preloaded: z.ZodOptional<z.ZodBoolean>;
3483
+ privateOptions: z.ZodOptional<z.ZodArray<z.ZodString>>;
3484
+ }, z.core.$strict>;
3485
+ }, z.core.$strip>], null>, z.ZodObject<{
3486
+ sortName: z.ZodString;
3487
+ description: z.ZodOptional<z.ZodString>;
3488
+ optionInputs: z.ZodOptional<z.ZodArray<z.ZodObject<{
3489
+ option: z.ZodString;
3490
+ label: z.ZodString;
3491
+ default: z.ZodOptional<z.ZodString>;
3492
+ description: z.ZodOptional<z.ZodString>;
3493
+ placeholder: z.ZodOptional<z.ZodString>;
3494
+ required: z.ZodOptional<z.ZodBoolean>;
3495
+ }, z.core.$loose>>>;
3496
+ scope: z.ZodOptional<z.ZodEnum<{
3497
+ posts: "posts";
3498
+ replies: "replies";
3499
+ }>>;
3500
+ flat: z.ZodOptional<z.ZodBoolean>;
3501
+ defaultOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3502
+ requireReplies: z.ZodOptional<z.ZodBoolean>;
3503
+ score: z.ZodFunction<z.ZodTuple<readonly [z.ZodObject<{
3504
+ comment: z.ZodCustom<{
3505
+ [x: string]: unknown;
3506
+ timestamp: number;
3507
+ signature: {
3508
+ type: string;
3509
+ signature: string;
3510
+ publicKey: string;
3511
+ signedPropertyNames: string[];
3512
+ };
3513
+ protocolVersion: string;
3514
+ depth: number;
3515
+ flairs?: {
3516
+ [x: string]: unknown;
3517
+ text: string;
3518
+ backgroundColor?: string | undefined;
3519
+ textColor?: string | undefined;
3520
+ expiresAt?: number | undefined;
3521
+ }[] | undefined;
3522
+ communityPublicKey?: string | undefined;
3523
+ communityName?: string | undefined;
3524
+ link?: string | undefined;
3525
+ spoiler?: boolean | undefined;
3526
+ nsfw?: boolean | undefined;
3527
+ content?: string | undefined;
3528
+ title?: string | undefined;
3529
+ linkWidth?: number | undefined;
3530
+ linkHeight?: number | undefined;
3531
+ linkHtmlTagName?: string | undefined;
3532
+ parentCid?: string | undefined;
3533
+ postCid?: string | undefined;
3534
+ quotedCids?: string[] | undefined;
3535
+ crosspost?: import("../../publications/comment/schema.js").Crosspost | undefined;
3536
+ author?: {
3537
+ [x: string]: unknown;
3538
+ name?: string | undefined;
3539
+ previousCommentCid?: string | undefined;
3540
+ displayName?: string | undefined;
3541
+ wallets?: Record<string, {
3542
+ address: string;
3543
+ timestamp: number;
3544
+ signature: {
3545
+ signature: string;
3546
+ type: string;
3547
+ };
3548
+ }> | undefined;
3549
+ avatar?: {
3550
+ [x: string]: unknown;
3551
+ chainTicker: string;
3552
+ address: string;
3553
+ id: string;
3554
+ timestamp: number;
3555
+ signature: {
3556
+ signature: string;
3557
+ type: string;
3558
+ };
3559
+ } | undefined;
3560
+ flairs?: {
3561
+ [x: string]: unknown;
3562
+ text: string;
3563
+ backgroundColor?: string | undefined;
3564
+ textColor?: string | undefined;
3565
+ expiresAt?: number | undefined;
3566
+ }[] | undefined;
3567
+ } | undefined;
3568
+ thumbnailUrl?: string | undefined;
3569
+ thumbnailUrlWidth?: number | undefined;
3570
+ thumbnailUrlHeight?: number | undefined;
3571
+ previousCid?: string | undefined;
3572
+ pseudonymityMode?: "per-post" | "per-reply" | "per-author" | undefined;
3573
+ }, {
3574
+ [x: string]: unknown;
3575
+ timestamp: number;
3576
+ signature: {
3577
+ type: string;
3578
+ signature: string;
3579
+ publicKey: string;
3580
+ signedPropertyNames: string[];
3581
+ };
3582
+ protocolVersion: string;
3583
+ depth: number;
3584
+ flairs?: {
3585
+ [x: string]: unknown;
3586
+ text: string;
3587
+ backgroundColor?: string | undefined;
3588
+ textColor?: string | undefined;
3589
+ expiresAt?: number | undefined;
3590
+ }[] | undefined;
3591
+ communityPublicKey?: string | undefined;
3592
+ communityName?: string | undefined;
3593
+ link?: string | undefined;
3594
+ spoiler?: boolean | undefined;
3595
+ nsfw?: boolean | undefined;
3596
+ content?: string | undefined;
3597
+ title?: string | undefined;
3598
+ linkWidth?: number | undefined;
3599
+ linkHeight?: number | undefined;
3600
+ linkHtmlTagName?: string | undefined;
3601
+ parentCid?: string | undefined;
3602
+ postCid?: string | undefined;
3603
+ quotedCids?: string[] | undefined;
3604
+ crosspost?: import("../../publications/comment/schema.js").Crosspost | undefined;
3605
+ author?: {
3606
+ [x: string]: unknown;
3607
+ name?: string | undefined;
3608
+ previousCommentCid?: string | undefined;
3609
+ displayName?: string | undefined;
3610
+ wallets?: Record<string, {
3611
+ address: string;
3612
+ timestamp: number;
3613
+ signature: {
3614
+ signature: string;
3615
+ type: string;
3616
+ };
3617
+ }> | undefined;
3618
+ avatar?: {
3619
+ [x: string]: unknown;
3620
+ chainTicker: string;
3621
+ address: string;
3622
+ id: string;
3623
+ timestamp: number;
3624
+ signature: {
3625
+ signature: string;
3626
+ type: string;
3627
+ };
3628
+ } | undefined;
3629
+ flairs?: {
3630
+ [x: string]: unknown;
3631
+ text: string;
3632
+ backgroundColor?: string | undefined;
3633
+ textColor?: string | undefined;
3634
+ expiresAt?: number | undefined;
3635
+ }[] | undefined;
3636
+ } | undefined;
3637
+ thumbnailUrl?: string | undefined;
3638
+ thumbnailUrlWidth?: number | undefined;
3639
+ thumbnailUrlHeight?: number | undefined;
3640
+ previousCid?: string | undefined;
3641
+ pseudonymityMode?: "per-post" | "per-reply" | "per-author" | undefined;
3642
+ }>;
3643
+ commentUpdate: z.ZodCustom<{
3644
+ [x: string]: unknown;
3645
+ cid: string;
3646
+ upvoteCount: number;
3647
+ downvoteCount: number;
3648
+ replyCount: number;
3649
+ updatedAt: number;
3650
+ signature: {
3651
+ type: string;
3652
+ signature: string;
3653
+ publicKey: string;
3654
+ signedPropertyNames: string[];
3655
+ };
3656
+ protocolVersion: string;
3657
+ childCount?: number | undefined;
3658
+ number?: number | undefined;
3659
+ postNumber?: number | undefined;
3660
+ edit?: {
3661
+ [x: string]: unknown;
3662
+ timestamp: number;
3663
+ signature: {
3664
+ type: string;
3665
+ signature: string;
3666
+ publicKey: string;
3667
+ signedPropertyNames: string[];
3668
+ };
3669
+ protocolVersion: string;
3670
+ commentCid: string;
3671
+ flairs?: {
3672
+ [x: string]: unknown;
3673
+ text: string;
3674
+ backgroundColor?: string | undefined;
3675
+ textColor?: string | undefined;
3676
+ expiresAt?: number | undefined;
3677
+ }[] | undefined;
3678
+ communityPublicKey?: string | undefined;
3679
+ communityName?: string | undefined;
3680
+ spoiler?: boolean | undefined;
3681
+ nsfw?: boolean | undefined;
3682
+ reason?: string | undefined;
3683
+ content?: string | undefined;
3684
+ deleted?: boolean | undefined;
3685
+ author?: {
3686
+ [x: string]: unknown;
3687
+ name?: string | undefined;
3688
+ previousCommentCid?: string | undefined;
3689
+ displayName?: string | undefined;
3690
+ wallets?: Record<string, {
3691
+ address: string;
3692
+ timestamp: number;
3693
+ signature: {
3694
+ signature: string;
3695
+ type: string;
3696
+ };
3697
+ }> | undefined;
3698
+ avatar?: {
3699
+ [x: string]: unknown;
3700
+ chainTicker: string;
3701
+ address: string;
3702
+ id: string;
3703
+ timestamp: number;
3704
+ signature: {
3705
+ signature: string;
3706
+ type: string;
3707
+ };
3708
+ } | undefined;
3709
+ flairs?: {
3710
+ [x: string]: unknown;
3711
+ text: string;
3712
+ backgroundColor?: string | undefined;
3713
+ textColor?: string | undefined;
3714
+ expiresAt?: number | undefined;
3715
+ }[] | undefined;
3716
+ } | undefined;
3717
+ } | undefined;
3718
+ flairs?: {
3719
+ [x: string]: unknown;
3720
+ text: string;
3721
+ backgroundColor?: string | undefined;
3722
+ textColor?: string | undefined;
3723
+ expiresAt?: number | undefined;
3724
+ }[] | undefined;
3725
+ spoiler?: boolean | undefined;
3726
+ nsfw?: boolean | undefined;
3727
+ pinned?: boolean | undefined;
3728
+ locked?: boolean | undefined;
3729
+ archived?: boolean | undefined;
3730
+ removed?: boolean | undefined;
3731
+ reason?: string | undefined;
3732
+ approved?: boolean | undefined;
3733
+ author?: {
3734
+ [x: string]: unknown;
3735
+ community?: {
3736
+ [x: string]: unknown;
3737
+ postScore: number;
3738
+ replyScore: number;
3739
+ firstCommentTimestamp: number;
3740
+ lastCommentCid: string;
3741
+ banExpiresAt?: number | undefined;
3742
+ flairs?: {
3743
+ [x: string]: unknown;
3744
+ text: string;
3745
+ backgroundColor?: string | undefined;
3746
+ textColor?: string | undefined;
3747
+ expiresAt?: number | undefined;
3748
+ }[] | undefined;
3749
+ } | undefined;
3750
+ } | undefined;
3751
+ lastChildCid?: string | undefined;
3752
+ lastReplyTimestamp?: number | undefined;
3753
+ replies?: {
3754
+ pages: Record<string, {
3755
+ comments: {
3756
+ comment: {
3757
+ [x: string]: unknown;
3758
+ timestamp: number;
3759
+ signature: {
3760
+ type: string;
3761
+ signature: string;
3762
+ publicKey: string;
3763
+ signedPropertyNames: string[];
3764
+ };
3765
+ protocolVersion: string;
3766
+ depth: number;
3767
+ flairs?: {
3768
+ [x: string]: unknown;
3769
+ text: string;
3770
+ backgroundColor?: string | undefined;
3771
+ textColor?: string | undefined;
3772
+ expiresAt?: number | undefined;
3773
+ }[] | undefined;
3774
+ communityPublicKey?: string | undefined;
3775
+ communityName?: string | undefined;
3776
+ link?: string | undefined;
3777
+ spoiler?: boolean | undefined;
3778
+ nsfw?: boolean | undefined;
3779
+ content?: string | undefined;
3780
+ title?: string | undefined;
3781
+ linkWidth?: number | undefined;
3782
+ linkHeight?: number | undefined;
3783
+ linkHtmlTagName?: string | undefined;
3784
+ parentCid?: string | undefined;
3785
+ postCid?: string | undefined;
3786
+ quotedCids?: string[] | undefined;
3787
+ crosspost?: import("../../publications/comment/schema.js").Crosspost | undefined;
3788
+ author?: {
3789
+ [x: string]: unknown;
3790
+ name?: string | undefined;
3791
+ previousCommentCid?: string | undefined;
3792
+ displayName?: string | undefined;
3793
+ wallets?: Record<string, {
3794
+ address: string;
3795
+ timestamp: number;
3796
+ signature: {
3797
+ signature: string;
3798
+ type: string;
3799
+ };
3800
+ }> | undefined;
3801
+ avatar?: {
3802
+ [x: string]: unknown;
3803
+ chainTicker: string;
3804
+ address: string;
3805
+ id: string;
3806
+ timestamp: number;
3807
+ signature: {
3808
+ signature: string;
3809
+ type: string;
3810
+ };
3811
+ } | undefined;
3812
+ flairs?: {
3813
+ [x: string]: unknown;
3814
+ text: string;
3815
+ backgroundColor?: string | undefined;
3816
+ textColor?: string | undefined;
3817
+ expiresAt?: number | undefined;
3818
+ }[] | undefined;
3819
+ } | undefined;
3820
+ thumbnailUrl?: string | undefined;
3821
+ thumbnailUrlWidth?: number | undefined;
3822
+ thumbnailUrlHeight?: number | undefined;
3823
+ previousCid?: string | undefined;
3824
+ pseudonymityMode?: "per-post" | "per-reply" | "per-author" | undefined;
3825
+ };
3826
+ commentUpdate: /*elided*/ any;
3827
+ }[];
3828
+ nextCid?: string | undefined;
3829
+ }>;
3830
+ pageCids?: Record<string, string> | undefined;
3831
+ } | undefined;
3832
+ }, {
3833
+ [x: string]: unknown;
3834
+ cid: string;
3835
+ upvoteCount: number;
3836
+ downvoteCount: number;
3837
+ replyCount: number;
3838
+ updatedAt: number;
3839
+ signature: {
3840
+ type: string;
3841
+ signature: string;
3842
+ publicKey: string;
3843
+ signedPropertyNames: string[];
3844
+ };
3845
+ protocolVersion: string;
3846
+ childCount?: number | undefined;
3847
+ number?: number | undefined;
3848
+ postNumber?: number | undefined;
3849
+ edit?: {
3850
+ [x: string]: unknown;
3851
+ timestamp: number;
3852
+ signature: {
3853
+ type: string;
3854
+ signature: string;
3855
+ publicKey: string;
3856
+ signedPropertyNames: string[];
3857
+ };
3858
+ protocolVersion: string;
3859
+ commentCid: string;
3860
+ flairs?: {
3861
+ [x: string]: unknown;
3862
+ text: string;
3863
+ backgroundColor?: string | undefined;
3864
+ textColor?: string | undefined;
3865
+ expiresAt?: number | undefined;
3866
+ }[] | undefined;
3867
+ communityPublicKey?: string | undefined;
3868
+ communityName?: string | undefined;
3869
+ spoiler?: boolean | undefined;
3870
+ nsfw?: boolean | undefined;
3871
+ reason?: string | undefined;
3872
+ content?: string | undefined;
3873
+ deleted?: boolean | undefined;
3874
+ author?: {
3875
+ [x: string]: unknown;
3876
+ name?: string | undefined;
3877
+ previousCommentCid?: string | undefined;
3878
+ displayName?: string | undefined;
3879
+ wallets?: Record<string, {
3880
+ address: string;
3881
+ timestamp: number;
3882
+ signature: {
3883
+ signature: string;
3884
+ type: string;
3885
+ };
3886
+ }> | undefined;
3887
+ avatar?: {
3888
+ [x: string]: unknown;
3889
+ chainTicker: string;
3890
+ address: string;
3891
+ id: string;
3892
+ timestamp: number;
3893
+ signature: {
3894
+ signature: string;
3895
+ type: string;
3896
+ };
3897
+ } | undefined;
3898
+ flairs?: {
3899
+ [x: string]: unknown;
3900
+ text: string;
3901
+ backgroundColor?: string | undefined;
3902
+ textColor?: string | undefined;
3903
+ expiresAt?: number | undefined;
3904
+ }[] | undefined;
3905
+ } | undefined;
3906
+ } | undefined;
3907
+ flairs?: {
3908
+ [x: string]: unknown;
3909
+ text: string;
3910
+ backgroundColor?: string | undefined;
3911
+ textColor?: string | undefined;
3912
+ expiresAt?: number | undefined;
3913
+ }[] | undefined;
3914
+ spoiler?: boolean | undefined;
3915
+ nsfw?: boolean | undefined;
3916
+ pinned?: boolean | undefined;
3917
+ locked?: boolean | undefined;
3918
+ archived?: boolean | undefined;
3919
+ removed?: boolean | undefined;
3920
+ reason?: string | undefined;
3921
+ approved?: boolean | undefined;
3922
+ author?: {
3923
+ [x: string]: unknown;
3924
+ community?: {
3925
+ [x: string]: unknown;
3926
+ postScore: number;
3927
+ replyScore: number;
3928
+ firstCommentTimestamp: number;
3929
+ lastCommentCid: string;
3930
+ banExpiresAt?: number | undefined;
3931
+ flairs?: {
3932
+ [x: string]: unknown;
3933
+ text: string;
3934
+ backgroundColor?: string | undefined;
3935
+ textColor?: string | undefined;
3936
+ expiresAt?: number | undefined;
3937
+ }[] | undefined;
3938
+ } | undefined;
3939
+ } | undefined;
3940
+ lastChildCid?: string | undefined;
3941
+ lastReplyTimestamp?: number | undefined;
3942
+ replies?: {
3943
+ pages: Record<string, {
3944
+ comments: {
3945
+ comment: {
3946
+ [x: string]: unknown;
3947
+ timestamp: number;
3948
+ signature: {
3949
+ type: string;
3950
+ signature: string;
3951
+ publicKey: string;
3952
+ signedPropertyNames: string[];
3953
+ };
3954
+ protocolVersion: string;
3955
+ depth: number;
3956
+ flairs?: {
3957
+ [x: string]: unknown;
3958
+ text: string;
3959
+ backgroundColor?: string | undefined;
3960
+ textColor?: string | undefined;
3961
+ expiresAt?: number | undefined;
3962
+ }[] | undefined;
3963
+ communityPublicKey?: string | undefined;
3964
+ communityName?: string | undefined;
3965
+ link?: string | undefined;
3966
+ spoiler?: boolean | undefined;
3967
+ nsfw?: boolean | undefined;
3968
+ content?: string | undefined;
3969
+ title?: string | undefined;
3970
+ linkWidth?: number | undefined;
3971
+ linkHeight?: number | undefined;
3972
+ linkHtmlTagName?: string | undefined;
3973
+ parentCid?: string | undefined;
3974
+ postCid?: string | undefined;
3975
+ quotedCids?: string[] | undefined;
3976
+ crosspost?: import("../../publications/comment/schema.js").Crosspost | undefined;
3977
+ author?: {
3978
+ [x: string]: unknown;
3979
+ name?: string | undefined;
3980
+ previousCommentCid?: string | undefined;
3981
+ displayName?: string | undefined;
3982
+ wallets?: Record<string, {
3983
+ address: string;
3984
+ timestamp: number;
3985
+ signature: {
3986
+ signature: string;
3987
+ type: string;
3988
+ };
3989
+ }> | undefined;
3990
+ avatar?: {
3991
+ [x: string]: unknown;
3992
+ chainTicker: string;
3993
+ address: string;
3994
+ id: string;
3995
+ timestamp: number;
3996
+ signature: {
3997
+ signature: string;
3998
+ type: string;
3999
+ };
4000
+ } | undefined;
4001
+ flairs?: {
4002
+ [x: string]: unknown;
4003
+ text: string;
4004
+ backgroundColor?: string | undefined;
4005
+ textColor?: string | undefined;
4006
+ expiresAt?: number | undefined;
4007
+ }[] | undefined;
4008
+ } | undefined;
4009
+ thumbnailUrl?: string | undefined;
4010
+ thumbnailUrlWidth?: number | undefined;
4011
+ thumbnailUrlHeight?: number | undefined;
4012
+ previousCid?: string | undefined;
4013
+ pseudonymityMode?: "per-post" | "per-reply" | "per-author" | undefined;
4014
+ };
4015
+ commentUpdate: /*elided*/ any;
4016
+ }[];
4017
+ nextCid?: string | undefined;
4018
+ }>;
4019
+ pageCids?: Record<string, string> | undefined;
4020
+ } | undefined;
4021
+ }>;
4022
+ options: z.ZodRecord<z.ZodString, z.ZodString>;
4023
+ baseTimestamp: z.ZodNumber;
4024
+ replies: z.ZodOptional<z.ZodArray<z.ZodCustom<import("../../index.js").PageSortReplyEntry, import("../../index.js").PageSortReplyEntry>>>;
4025
+ }, z.core.$strip>], null>, z.ZodNullable<z.ZodNumber>>;
4026
+ validatePageSortSettings: z.ZodOptional<z.ZodFunction<z.ZodTuple<readonly [z.ZodObject<{
4027
+ pageSortSettings: z.ZodObject<{
4028
+ path: z.ZodOptional<z.ZodString>;
4029
+ name: z.ZodOptional<z.ZodString>;
4030
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
4031
+ preloaded: z.ZodOptional<z.ZodBoolean>;
4032
+ privateOptions: z.ZodOptional<z.ZodArray<z.ZodString>>;
4033
+ }, z.core.$strict>;
4034
+ }, z.core.$strip>], null>, z.ZodVoid>>;
4035
+ }, z.core.$loose>>, z.core.$InferInnerFunctionType<z.ZodTuple<readonly [z.ZodObject<{
4036
+ pageSortSettings: z.ZodObject<{
4037
+ path: z.ZodOptional<z.ZodString>;
4038
+ name: z.ZodOptional<z.ZodString>;
4039
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
4040
+ preloaded: z.ZodOptional<z.ZodBoolean>;
4041
+ privateOptions: z.ZodOptional<z.ZodArray<z.ZodString>>;
4042
+ }, z.core.$strict>;
4043
+ }, z.core.$strip>], null>, z.ZodObject<{
4044
+ sortName: z.ZodString;
4045
+ description: z.ZodOptional<z.ZodString>;
4046
+ optionInputs: z.ZodOptional<z.ZodArray<z.ZodObject<{
4047
+ option: z.ZodString;
4048
+ label: z.ZodString;
4049
+ default: z.ZodOptional<z.ZodString>;
4050
+ description: z.ZodOptional<z.ZodString>;
4051
+ placeholder: z.ZodOptional<z.ZodString>;
4052
+ required: z.ZodOptional<z.ZodBoolean>;
4053
+ }, z.core.$loose>>>;
4054
+ scope: z.ZodOptional<z.ZodEnum<{
4055
+ posts: "posts";
4056
+ replies: "replies";
4057
+ }>>;
4058
+ flat: z.ZodOptional<z.ZodBoolean>;
4059
+ defaultOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
4060
+ requireReplies: z.ZodOptional<z.ZodBoolean>;
4061
+ score: z.ZodFunction<z.ZodTuple<readonly [z.ZodObject<{
4062
+ comment: z.ZodCustom<{
4063
+ [x: string]: unknown;
4064
+ timestamp: number;
4065
+ signature: {
4066
+ type: string;
4067
+ signature: string;
4068
+ publicKey: string;
4069
+ signedPropertyNames: string[];
4070
+ };
4071
+ protocolVersion: string;
4072
+ depth: number;
4073
+ flairs?: {
4074
+ [x: string]: unknown;
4075
+ text: string;
4076
+ backgroundColor?: string | undefined;
4077
+ textColor?: string | undefined;
4078
+ expiresAt?: number | undefined;
4079
+ }[] | undefined;
4080
+ communityPublicKey?: string | undefined;
4081
+ communityName?: string | undefined;
4082
+ link?: string | undefined;
4083
+ spoiler?: boolean | undefined;
4084
+ nsfw?: boolean | undefined;
4085
+ content?: string | undefined;
4086
+ title?: string | undefined;
4087
+ linkWidth?: number | undefined;
4088
+ linkHeight?: number | undefined;
4089
+ linkHtmlTagName?: string | undefined;
4090
+ parentCid?: string | undefined;
4091
+ postCid?: string | undefined;
4092
+ quotedCids?: string[] | undefined;
4093
+ crosspost?: import("../../publications/comment/schema.js").Crosspost | undefined;
4094
+ author?: {
4095
+ [x: string]: unknown;
4096
+ name?: string | undefined;
4097
+ previousCommentCid?: string | undefined;
4098
+ displayName?: string | undefined;
4099
+ wallets?: Record<string, {
4100
+ address: string;
4101
+ timestamp: number;
4102
+ signature: {
4103
+ signature: string;
4104
+ type: string;
4105
+ };
4106
+ }> | undefined;
4107
+ avatar?: {
4108
+ [x: string]: unknown;
4109
+ chainTicker: string;
4110
+ address: string;
4111
+ id: string;
4112
+ timestamp: number;
4113
+ signature: {
4114
+ signature: string;
4115
+ type: string;
4116
+ };
4117
+ } | undefined;
4118
+ flairs?: {
4119
+ [x: string]: unknown;
4120
+ text: string;
4121
+ backgroundColor?: string | undefined;
4122
+ textColor?: string | undefined;
4123
+ expiresAt?: number | undefined;
4124
+ }[] | undefined;
4125
+ } | undefined;
4126
+ thumbnailUrl?: string | undefined;
4127
+ thumbnailUrlWidth?: number | undefined;
4128
+ thumbnailUrlHeight?: number | undefined;
4129
+ previousCid?: string | undefined;
4130
+ pseudonymityMode?: "per-post" | "per-reply" | "per-author" | undefined;
4131
+ }, {
4132
+ [x: string]: unknown;
4133
+ timestamp: number;
4134
+ signature: {
4135
+ type: string;
4136
+ signature: string;
4137
+ publicKey: string;
4138
+ signedPropertyNames: string[];
4139
+ };
4140
+ protocolVersion: string;
4141
+ depth: number;
4142
+ flairs?: {
4143
+ [x: string]: unknown;
4144
+ text: string;
4145
+ backgroundColor?: string | undefined;
4146
+ textColor?: string | undefined;
4147
+ expiresAt?: number | undefined;
4148
+ }[] | undefined;
4149
+ communityPublicKey?: string | undefined;
4150
+ communityName?: string | undefined;
4151
+ link?: string | undefined;
4152
+ spoiler?: boolean | undefined;
4153
+ nsfw?: boolean | undefined;
4154
+ content?: string | undefined;
4155
+ title?: string | undefined;
4156
+ linkWidth?: number | undefined;
4157
+ linkHeight?: number | undefined;
4158
+ linkHtmlTagName?: string | undefined;
4159
+ parentCid?: string | undefined;
4160
+ postCid?: string | undefined;
4161
+ quotedCids?: string[] | undefined;
4162
+ crosspost?: import("../../publications/comment/schema.js").Crosspost | undefined;
4163
+ author?: {
4164
+ [x: string]: unknown;
4165
+ name?: string | undefined;
4166
+ previousCommentCid?: string | undefined;
4167
+ displayName?: string | undefined;
4168
+ wallets?: Record<string, {
4169
+ address: string;
4170
+ timestamp: number;
4171
+ signature: {
4172
+ signature: string;
4173
+ type: string;
4174
+ };
4175
+ }> | undefined;
4176
+ avatar?: {
4177
+ [x: string]: unknown;
4178
+ chainTicker: string;
4179
+ address: string;
4180
+ id: string;
4181
+ timestamp: number;
4182
+ signature: {
4183
+ signature: string;
4184
+ type: string;
4185
+ };
4186
+ } | undefined;
4187
+ flairs?: {
4188
+ [x: string]: unknown;
4189
+ text: string;
4190
+ backgroundColor?: string | undefined;
4191
+ textColor?: string | undefined;
4192
+ expiresAt?: number | undefined;
4193
+ }[] | undefined;
4194
+ } | undefined;
4195
+ thumbnailUrl?: string | undefined;
4196
+ thumbnailUrlWidth?: number | undefined;
4197
+ thumbnailUrlHeight?: number | undefined;
4198
+ previousCid?: string | undefined;
4199
+ pseudonymityMode?: "per-post" | "per-reply" | "per-author" | undefined;
4200
+ }>;
4201
+ commentUpdate: z.ZodCustom<{
4202
+ [x: string]: unknown;
4203
+ cid: string;
4204
+ upvoteCount: number;
4205
+ downvoteCount: number;
4206
+ replyCount: number;
4207
+ updatedAt: number;
4208
+ signature: {
4209
+ type: string;
4210
+ signature: string;
4211
+ publicKey: string;
4212
+ signedPropertyNames: string[];
4213
+ };
4214
+ protocolVersion: string;
4215
+ childCount?: number | undefined;
4216
+ number?: number | undefined;
4217
+ postNumber?: number | undefined;
4218
+ edit?: {
4219
+ [x: string]: unknown;
4220
+ timestamp: number;
4221
+ signature: {
4222
+ type: string;
4223
+ signature: string;
4224
+ publicKey: string;
4225
+ signedPropertyNames: string[];
4226
+ };
4227
+ protocolVersion: string;
4228
+ commentCid: string;
4229
+ flairs?: {
4230
+ [x: string]: unknown;
4231
+ text: string;
4232
+ backgroundColor?: string | undefined;
4233
+ textColor?: string | undefined;
4234
+ expiresAt?: number | undefined;
4235
+ }[] | undefined;
4236
+ communityPublicKey?: string | undefined;
4237
+ communityName?: string | undefined;
4238
+ spoiler?: boolean | undefined;
4239
+ nsfw?: boolean | undefined;
4240
+ reason?: string | undefined;
4241
+ content?: string | undefined;
4242
+ deleted?: boolean | undefined;
4243
+ author?: {
4244
+ [x: string]: unknown;
4245
+ name?: string | undefined;
4246
+ previousCommentCid?: string | undefined;
4247
+ displayName?: string | undefined;
4248
+ wallets?: Record<string, {
4249
+ address: string;
4250
+ timestamp: number;
4251
+ signature: {
4252
+ signature: string;
4253
+ type: string;
4254
+ };
4255
+ }> | undefined;
4256
+ avatar?: {
4257
+ [x: string]: unknown;
4258
+ chainTicker: string;
4259
+ address: string;
4260
+ id: string;
4261
+ timestamp: number;
4262
+ signature: {
4263
+ signature: string;
4264
+ type: string;
4265
+ };
4266
+ } | undefined;
4267
+ flairs?: {
4268
+ [x: string]: unknown;
4269
+ text: string;
4270
+ backgroundColor?: string | undefined;
4271
+ textColor?: string | undefined;
4272
+ expiresAt?: number | undefined;
4273
+ }[] | undefined;
4274
+ } | undefined;
4275
+ } | undefined;
4276
+ flairs?: {
4277
+ [x: string]: unknown;
4278
+ text: string;
4279
+ backgroundColor?: string | undefined;
4280
+ textColor?: string | undefined;
4281
+ expiresAt?: number | undefined;
4282
+ }[] | undefined;
4283
+ spoiler?: boolean | undefined;
4284
+ nsfw?: boolean | undefined;
4285
+ pinned?: boolean | undefined;
4286
+ locked?: boolean | undefined;
4287
+ archived?: boolean | undefined;
4288
+ removed?: boolean | undefined;
4289
+ reason?: string | undefined;
4290
+ approved?: boolean | undefined;
4291
+ author?: {
4292
+ [x: string]: unknown;
4293
+ community?: {
4294
+ [x: string]: unknown;
4295
+ postScore: number;
4296
+ replyScore: number;
4297
+ firstCommentTimestamp: number;
4298
+ lastCommentCid: string;
4299
+ banExpiresAt?: number | undefined;
4300
+ flairs?: {
4301
+ [x: string]: unknown;
4302
+ text: string;
4303
+ backgroundColor?: string | undefined;
4304
+ textColor?: string | undefined;
4305
+ expiresAt?: number | undefined;
4306
+ }[] | undefined;
4307
+ } | undefined;
4308
+ } | undefined;
4309
+ lastChildCid?: string | undefined;
4310
+ lastReplyTimestamp?: number | undefined;
4311
+ replies?: {
4312
+ pages: Record<string, {
4313
+ comments: {
4314
+ comment: {
4315
+ [x: string]: unknown;
4316
+ timestamp: number;
4317
+ signature: {
4318
+ type: string;
4319
+ signature: string;
4320
+ publicKey: string;
4321
+ signedPropertyNames: string[];
4322
+ };
4323
+ protocolVersion: string;
4324
+ depth: number;
4325
+ flairs?: {
4326
+ [x: string]: unknown;
4327
+ text: string;
4328
+ backgroundColor?: string | undefined;
4329
+ textColor?: string | undefined;
4330
+ expiresAt?: number | undefined;
4331
+ }[] | undefined;
4332
+ communityPublicKey?: string | undefined;
4333
+ communityName?: string | undefined;
4334
+ link?: string | undefined;
4335
+ spoiler?: boolean | undefined;
4336
+ nsfw?: boolean | undefined;
4337
+ content?: string | undefined;
4338
+ title?: string | undefined;
4339
+ linkWidth?: number | undefined;
4340
+ linkHeight?: number | undefined;
4341
+ linkHtmlTagName?: string | undefined;
4342
+ parentCid?: string | undefined;
4343
+ postCid?: string | undefined;
4344
+ quotedCids?: string[] | undefined;
4345
+ crosspost?: import("../../publications/comment/schema.js").Crosspost | undefined;
4346
+ author?: {
4347
+ [x: string]: unknown;
4348
+ name?: string | undefined;
4349
+ previousCommentCid?: string | undefined;
4350
+ displayName?: string | undefined;
4351
+ wallets?: Record<string, {
4352
+ address: string;
4353
+ timestamp: number;
4354
+ signature: {
4355
+ signature: string;
4356
+ type: string;
4357
+ };
4358
+ }> | undefined;
4359
+ avatar?: {
4360
+ [x: string]: unknown;
4361
+ chainTicker: string;
4362
+ address: string;
4363
+ id: string;
4364
+ timestamp: number;
4365
+ signature: {
4366
+ signature: string;
4367
+ type: string;
4368
+ };
4369
+ } | undefined;
4370
+ flairs?: {
4371
+ [x: string]: unknown;
4372
+ text: string;
4373
+ backgroundColor?: string | undefined;
4374
+ textColor?: string | undefined;
4375
+ expiresAt?: number | undefined;
4376
+ }[] | undefined;
4377
+ } | undefined;
4378
+ thumbnailUrl?: string | undefined;
4379
+ thumbnailUrlWidth?: number | undefined;
4380
+ thumbnailUrlHeight?: number | undefined;
4381
+ previousCid?: string | undefined;
4382
+ pseudonymityMode?: "per-post" | "per-reply" | "per-author" | undefined;
4383
+ };
4384
+ commentUpdate: /*elided*/ any;
4385
+ }[];
4386
+ nextCid?: string | undefined;
4387
+ }>;
4388
+ pageCids?: Record<string, string> | undefined;
4389
+ } | undefined;
4390
+ }, {
4391
+ [x: string]: unknown;
4392
+ cid: string;
4393
+ upvoteCount: number;
4394
+ downvoteCount: number;
4395
+ replyCount: number;
4396
+ updatedAt: number;
4397
+ signature: {
4398
+ type: string;
4399
+ signature: string;
4400
+ publicKey: string;
4401
+ signedPropertyNames: string[];
4402
+ };
4403
+ protocolVersion: string;
4404
+ childCount?: number | undefined;
4405
+ number?: number | undefined;
4406
+ postNumber?: number | undefined;
4407
+ edit?: {
4408
+ [x: string]: unknown;
4409
+ timestamp: number;
4410
+ signature: {
4411
+ type: string;
4412
+ signature: string;
4413
+ publicKey: string;
4414
+ signedPropertyNames: string[];
4415
+ };
4416
+ protocolVersion: string;
4417
+ commentCid: string;
4418
+ flairs?: {
4419
+ [x: string]: unknown;
4420
+ text: string;
4421
+ backgroundColor?: string | undefined;
4422
+ textColor?: string | undefined;
4423
+ expiresAt?: number | undefined;
4424
+ }[] | undefined;
4425
+ communityPublicKey?: string | undefined;
4426
+ communityName?: string | undefined;
4427
+ spoiler?: boolean | undefined;
4428
+ nsfw?: boolean | undefined;
4429
+ reason?: string | undefined;
4430
+ content?: string | undefined;
4431
+ deleted?: boolean | undefined;
4432
+ author?: {
4433
+ [x: string]: unknown;
4434
+ name?: string | undefined;
4435
+ previousCommentCid?: string | undefined;
4436
+ displayName?: string | undefined;
4437
+ wallets?: Record<string, {
4438
+ address: string;
4439
+ timestamp: number;
4440
+ signature: {
4441
+ signature: string;
4442
+ type: string;
4443
+ };
4444
+ }> | undefined;
4445
+ avatar?: {
4446
+ [x: string]: unknown;
4447
+ chainTicker: string;
4448
+ address: string;
4449
+ id: string;
4450
+ timestamp: number;
4451
+ signature: {
4452
+ signature: string;
4453
+ type: string;
4454
+ };
4455
+ } | undefined;
4456
+ flairs?: {
4457
+ [x: string]: unknown;
4458
+ text: string;
4459
+ backgroundColor?: string | undefined;
4460
+ textColor?: string | undefined;
4461
+ expiresAt?: number | undefined;
4462
+ }[] | undefined;
4463
+ } | undefined;
4464
+ } | undefined;
4465
+ flairs?: {
4466
+ [x: string]: unknown;
4467
+ text: string;
4468
+ backgroundColor?: string | undefined;
4469
+ textColor?: string | undefined;
4470
+ expiresAt?: number | undefined;
4471
+ }[] | undefined;
4472
+ spoiler?: boolean | undefined;
4473
+ nsfw?: boolean | undefined;
4474
+ pinned?: boolean | undefined;
4475
+ locked?: boolean | undefined;
4476
+ archived?: boolean | undefined;
4477
+ removed?: boolean | undefined;
4478
+ reason?: string | undefined;
4479
+ approved?: boolean | undefined;
4480
+ author?: {
4481
+ [x: string]: unknown;
4482
+ community?: {
4483
+ [x: string]: unknown;
4484
+ postScore: number;
4485
+ replyScore: number;
4486
+ firstCommentTimestamp: number;
4487
+ lastCommentCid: string;
4488
+ banExpiresAt?: number | undefined;
4489
+ flairs?: {
4490
+ [x: string]: unknown;
4491
+ text: string;
4492
+ backgroundColor?: string | undefined;
4493
+ textColor?: string | undefined;
4494
+ expiresAt?: number | undefined;
4495
+ }[] | undefined;
4496
+ } | undefined;
4497
+ } | undefined;
4498
+ lastChildCid?: string | undefined;
4499
+ lastReplyTimestamp?: number | undefined;
4500
+ replies?: {
4501
+ pages: Record<string, {
4502
+ comments: {
4503
+ comment: {
4504
+ [x: string]: unknown;
4505
+ timestamp: number;
4506
+ signature: {
4507
+ type: string;
4508
+ signature: string;
4509
+ publicKey: string;
4510
+ signedPropertyNames: string[];
4511
+ };
4512
+ protocolVersion: string;
4513
+ depth: number;
4514
+ flairs?: {
4515
+ [x: string]: unknown;
4516
+ text: string;
4517
+ backgroundColor?: string | undefined;
4518
+ textColor?: string | undefined;
4519
+ expiresAt?: number | undefined;
4520
+ }[] | undefined;
4521
+ communityPublicKey?: string | undefined;
4522
+ communityName?: string | undefined;
4523
+ link?: string | undefined;
4524
+ spoiler?: boolean | undefined;
4525
+ nsfw?: boolean | undefined;
4526
+ content?: string | undefined;
4527
+ title?: string | undefined;
4528
+ linkWidth?: number | undefined;
4529
+ linkHeight?: number | undefined;
4530
+ linkHtmlTagName?: string | undefined;
4531
+ parentCid?: string | undefined;
4532
+ postCid?: string | undefined;
4533
+ quotedCids?: string[] | undefined;
4534
+ crosspost?: import("../../publications/comment/schema.js").Crosspost | undefined;
4535
+ author?: {
4536
+ [x: string]: unknown;
4537
+ name?: string | undefined;
4538
+ previousCommentCid?: string | undefined;
4539
+ displayName?: string | undefined;
4540
+ wallets?: Record<string, {
4541
+ address: string;
4542
+ timestamp: number;
4543
+ signature: {
4544
+ signature: string;
4545
+ type: string;
4546
+ };
4547
+ }> | undefined;
4548
+ avatar?: {
4549
+ [x: string]: unknown;
4550
+ chainTicker: string;
4551
+ address: string;
4552
+ id: string;
4553
+ timestamp: number;
4554
+ signature: {
4555
+ signature: string;
4556
+ type: string;
4557
+ };
4558
+ } | undefined;
4559
+ flairs?: {
4560
+ [x: string]: unknown;
4561
+ text: string;
4562
+ backgroundColor?: string | undefined;
4563
+ textColor?: string | undefined;
4564
+ expiresAt?: number | undefined;
4565
+ }[] | undefined;
4566
+ } | undefined;
4567
+ thumbnailUrl?: string | undefined;
4568
+ thumbnailUrlWidth?: number | undefined;
4569
+ thumbnailUrlHeight?: number | undefined;
4570
+ previousCid?: string | undefined;
4571
+ pseudonymityMode?: "per-post" | "per-reply" | "per-author" | undefined;
4572
+ };
4573
+ commentUpdate: /*elided*/ any;
4574
+ }[];
4575
+ nextCid?: string | undefined;
4576
+ }>;
4577
+ pageCids?: Record<string, string> | undefined;
4578
+ } | undefined;
4579
+ }>;
4580
+ options: z.ZodRecord<z.ZodString, z.ZodString>;
4581
+ baseTimestamp: z.ZodNumber;
4582
+ replies: z.ZodOptional<z.ZodArray<z.ZodCustom<import("../../index.js").PageSortReplyEntry, import("../../index.js").PageSortReplyEntry>>>;
4583
+ }, z.core.$strip>], null>, z.ZodNullable<z.ZodNumber>>;
4584
+ validatePageSortSettings: z.ZodOptional<z.ZodFunction<z.ZodTuple<readonly [z.ZodObject<{
4585
+ pageSortSettings: z.ZodObject<{
4586
+ path: z.ZodOptional<z.ZodString>;
4587
+ name: z.ZodOptional<z.ZodString>;
4588
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
4589
+ preloaded: z.ZodOptional<z.ZodBoolean>;
4590
+ privateOptions: z.ZodOptional<z.ZodArray<z.ZodString>>;
4591
+ }, z.core.$strict>;
4592
+ }, z.core.$strip>], null>, z.ZodVoid>>;
4593
+ }, z.core.$loose>>>>>;
1242
4594
  kuboRpcClientsOptions: z.ZodOptional<z.ZodCustom<import("kubo-rpc-client").Options[], import("kubo-rpc-client").Options[]>>;
1243
4595
  pubsubKuboRpcClientsOptions: z.ZodOptional<z.ZodCustom<import("kubo-rpc-client").Options[], import("kubo-rpc-client").Options[]>>;
1244
4596
  nameResolvers: z.ZodOptional<z.ZodArray<z.ZodCustom<import("../../schema.js").NameResolverInterface, import("../../schema.js").NameResolverInterface>>>;
@@ -1257,4 +4609,23 @@ export declare const PKCWsServerSettingsSerializedSchema: z.ZodObject<{
1257
4609
  challenge: z.ZodOptional<z.ZodString>;
1258
4610
  caseInsensitive: z.ZodOptional<z.ZodBoolean>;
1259
4611
  }, z.core.$loose>>;
4612
+ pageSorts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
4613
+ flat: z.ZodOptional<z.ZodBoolean>;
4614
+ description: z.ZodOptional<z.ZodString>;
4615
+ optionInputs: z.ZodOptional<z.ZodArray<z.ZodObject<{
4616
+ option: z.ZodString;
4617
+ label: z.ZodString;
4618
+ default: z.ZodOptional<z.ZodString>;
4619
+ description: z.ZodOptional<z.ZodString>;
4620
+ placeholder: z.ZodOptional<z.ZodString>;
4621
+ required: z.ZodOptional<z.ZodBoolean>;
4622
+ }, z.core.$loose>>>;
4623
+ sortName: z.ZodString;
4624
+ scope: z.ZodOptional<z.ZodEnum<{
4625
+ posts: "posts";
4626
+ replies: "replies";
4627
+ }>>;
4628
+ defaultOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
4629
+ requireReplies: z.ZodOptional<z.ZodBoolean>;
4630
+ }, z.core.$loose>>>;
1260
4631
  }, z.core.$strip>;