@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.
- package/README.md +15 -0
- package/dist/browser/clients/base-client-manager.d.ts +1 -1
- package/dist/browser/clients/rpc-client/rpc-schema-util.d.ts +16 -0
- package/dist/browser/clients/rpc-client/schema.d.ts +16 -0
- package/dist/browser/community/remote-community.d.ts +1 -0
- package/dist/browser/community/remote-community.js +1 -0
- package/dist/browser/community/remote-community.js.map +1 -1
- package/dist/browser/community/rpc-local-community.js +13 -0
- package/dist/browser/community/rpc-local-community.js.map +1 -1
- package/dist/browser/community/schema.d.ts +1369 -1
- package/dist/browser/community/schema.js +90 -4
- package/dist/browser/community/schema.js.map +1 -1
- package/dist/browser/community/types.d.ts +13 -2
- package/dist/browser/constants.d.ts +1 -0
- package/dist/browser/constants.js +6 -0
- package/dist/browser/constants.js.map +1 -1
- package/dist/browser/errors.d.ts +15 -1
- package/dist/browser/errors.js +15 -0
- package/dist/browser/errors.js.map +1 -1
- package/dist/browser/generated-version.d.ts +1 -1
- package/dist/browser/generated-version.js +1 -1
- package/dist/browser/helia/helia-for-pkc.js +41 -4
- package/dist/browser/helia/helia-for-pkc.js.map +1 -1
- package/dist/browser/helia/util.js +4 -1
- package/dist/browser/helia/util.js.map +1 -1
- package/dist/browser/index-with-compile-cache.d.ts +559 -0
- package/dist/browser/index.d.ts +1120 -0
- package/dist/browser/index.js +5 -0
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/logger.js +10 -1
- package/dist/browser/logger.js.map +1 -1
- package/dist/browser/object-key-util.d.ts +2 -0
- package/dist/browser/object-key-util.js +12 -0
- package/dist/browser/object-key-util.js.map +1 -0
- package/dist/browser/pages/page-sort-options.d.ts +14 -0
- package/dist/browser/pages/page-sort-options.js +92 -0
- package/dist/browser/pages/page-sort-options.js.map +1 -0
- package/dist/browser/pages/page-sort-scoring.d.ts +35 -0
- package/dist/browser/pages/page-sort-scoring.js +124 -0
- package/dist/browser/pages/page-sort-scoring.js.map +1 -0
- package/dist/browser/pages/pages-client-manager.d.ts +1 -0
- package/dist/browser/pages/pages-client-manager.js +16 -4
- package/dist/browser/pages/pages-client-manager.js.map +1 -1
- package/dist/browser/pages/pkc-js-page-sorts/active.d.ts +3 -0
- package/dist/browser/pages/pkc-js-page-sorts/active.js +15 -0
- package/dist/browser/pages/pkc-js-page-sorts/active.js.map +1 -0
- package/dist/browser/pages/pkc-js-page-sorts/best.d.ts +3 -0
- package/dist/browser/pages/pkc-js-page-sorts/best.js +10 -0
- package/dist/browser/pages/pkc-js-page-sorts/best.js.map +1 -0
- package/dist/browser/pages/pkc-js-page-sorts/controversial.d.ts +3 -0
- package/dist/browser/pages/pkc-js-page-sorts/controversial.js +10 -0
- package/dist/browser/pages/pkc-js-page-sorts/controversial.js.map +1 -0
- package/dist/browser/pages/pkc-js-page-sorts/hot.d.ts +3 -0
- package/dist/browser/pages/pkc-js-page-sorts/hot.js +10 -0
- package/dist/browser/pages/pkc-js-page-sorts/hot.js.map +1 -0
- package/dist/browser/pages/pkc-js-page-sorts/index.d.ts +2 -0
- package/dist/browser/pages/pkc-js-page-sorts/index.js +37 -0
- package/dist/browser/pages/pkc-js-page-sorts/index.js.map +1 -0
- package/dist/browser/pages/pkc-js-page-sorts/new-flat.d.ts +3 -0
- package/dist/browser/pages/pkc-js-page-sorts/new-flat.js +12 -0
- package/dist/browser/pages/pkc-js-page-sorts/new-flat.js.map +1 -0
- package/dist/browser/pages/pkc-js-page-sorts/new.d.ts +3 -0
- package/dist/browser/pages/pkc-js-page-sorts/new.js +10 -0
- package/dist/browser/pages/pkc-js-page-sorts/new.js.map +1 -0
- package/dist/browser/pages/pkc-js-page-sorts/old-flat.d.ts +3 -0
- package/dist/browser/pages/pkc-js-page-sorts/old-flat.js +12 -0
- package/dist/browser/pages/pkc-js-page-sorts/old-flat.js.map +1 -0
- package/dist/browser/pages/pkc-js-page-sorts/old.d.ts +3 -0
- package/dist/browser/pages/pkc-js-page-sorts/old.js +10 -0
- package/dist/browser/pages/pkc-js-page-sorts/old.js.map +1 -0
- package/dist/browser/pages/pkc-js-page-sorts/top-all.d.ts +3 -0
- package/dist/browser/pages/pkc-js-page-sorts/top-all.js +10 -0
- package/dist/browser/pages/pkc-js-page-sorts/top-all.js.map +1 -0
- package/dist/browser/pages/pkc-js-page-sorts/top-day.d.ts +3 -0
- package/dist/browser/pages/pkc-js-page-sorts/top-day.js +11 -0
- package/dist/browser/pages/pkc-js-page-sorts/top-day.js.map +1 -0
- package/dist/browser/pages/pkc-js-page-sorts/top-hour.d.ts +3 -0
- package/dist/browser/pages/pkc-js-page-sorts/top-hour.js +11 -0
- package/dist/browser/pages/pkc-js-page-sorts/top-hour.js.map +1 -0
- package/dist/browser/pages/pkc-js-page-sorts/top-month.d.ts +3 -0
- package/dist/browser/pages/pkc-js-page-sorts/top-month.js +11 -0
- package/dist/browser/pages/pkc-js-page-sorts/top-month.js.map +1 -0
- package/dist/browser/pages/pkc-js-page-sorts/top-week.d.ts +3 -0
- package/dist/browser/pages/pkc-js-page-sorts/top-week.js +11 -0
- package/dist/browser/pages/pkc-js-page-sorts/top-week.js.map +1 -0
- package/dist/browser/pages/pkc-js-page-sorts/top-year.d.ts +3 -0
- package/dist/browser/pages/pkc-js-page-sorts/top-year.js +11 -0
- package/dist/browser/pages/pkc-js-page-sorts/top-year.js.map +1 -0
- package/dist/browser/pages/pkc-js-page-sorts/top.d.ts +3 -0
- package/dist/browser/pages/pkc-js-page-sorts/top.js +12 -0
- package/dist/browser/pages/pkc-js-page-sorts/top.js.map +1 -0
- package/dist/browser/pages/pkc-js-page-sorts/util.d.ts +3 -0
- package/dist/browser/pages/pkc-js-page-sorts/util.js +7 -0
- package/dist/browser/pages/pkc-js-page-sorts/util.js.map +1 -0
- package/dist/browser/pages/schema.d.ts +1 -0
- package/dist/browser/pages/schema.js +10 -3
- package/dist/browser/pages/schema.js.map +1 -1
- package/dist/browser/pages/types.d.ts +8 -0
- package/dist/browser/pages/util.d.ts +2 -1
- package/dist/browser/pages/util.js +11 -10
- package/dist/browser/pages/util.js.map +1 -1
- package/dist/browser/pkc/pkc.d.ts +2 -1
- package/dist/browser/pkc/pkc.js +2 -1
- package/dist/browser/pkc/pkc.js.map +1 -1
- package/dist/browser/pkc-error.d.ts +1 -1
- package/dist/browser/publications/comment/comment-client-manager.d.ts +2 -2
- package/dist/browser/publications/comment/comment-client-manager.js +3 -1
- package/dist/browser/publications/comment/comment-client-manager.js.map +1 -1
- package/dist/browser/publications/community-edit/schema.d.ts +64 -0
- package/dist/browser/pubsub-messages/schema.d.ts +32 -0
- package/dist/browser/rpc/src/index.js +14 -1
- package/dist/browser/rpc/src/index.js.map +1 -1
- package/dist/browser/rpc/src/lib/pkc-js/index.d.ts +559 -0
- package/dist/browser/rpc/src/schema.d.ts +3371 -0
- package/dist/browser/rpc/src/schema.js +6 -2
- package/dist/browser/rpc/src/schema.js.map +1 -1
- package/dist/browser/runtime/browser/community/page-sorts/index.d.ts +1 -0
- package/dist/browser/runtime/browser/community/page-sorts/index.js +6 -0
- package/dist/browser/runtime/browser/community/page-sorts/index.js.map +1 -0
- package/dist/browser/runtime/node/community/db-handler.d.ts +78 -20
- package/dist/browser/runtime/node/community/db-handler.js +1151 -734
- package/dist/browser/runtime/node/community/db-handler.js.map +1 -1
- package/dist/browser/runtime/node/community/db-row-parser.d.ts +13 -0
- package/dist/browser/runtime/node/community/db-row-parser.js +58 -1
- package/dist/browser/runtime/node/community/db-row-parser.js.map +1 -1
- package/dist/browser/runtime/node/community/local-community/cleanup.js +23 -10
- package/dist/browser/runtime/node/community/local-community/cleanup.js.map +1 -1
- package/dist/browser/runtime/node/community/local-community/comment-updates.d.ts +12 -2
- package/dist/browser/runtime/node/community/local-community/comment-updates.js +101 -70
- package/dist/browser/runtime/node/community/local-community/comment-updates.js.map +1 -1
- package/dist/browser/runtime/node/community/local-community/db-state.js +8 -0
- package/dist/browser/runtime/node/community/local-community/db-state.js.map +1 -1
- package/dist/browser/runtime/node/community/local-community/editing.d.ts +9 -2
- package/dist/browser/runtime/node/community/local-community/editing.js +32 -5
- package/dist/browser/runtime/node/community/local-community/editing.js.map +1 -1
- package/dist/browser/runtime/node/community/local-community/ipns-publishing.d.ts +2 -2
- package/dist/browser/runtime/node/community/local-community/ipns-publishing.js +49 -27
- package/dist/browser/runtime/node/community/local-community/ipns-publishing.js.map +1 -1
- package/dist/browser/runtime/node/community/local-community/lifecycle.d.ts +1 -0
- package/dist/browser/runtime/node/community/local-community/lifecycle.js +49 -18
- package/dist/browser/runtime/node/community/local-community/lifecycle.js.map +1 -1
- package/dist/browser/runtime/node/community/local-community.d.ts +5 -1
- package/dist/browser/runtime/node/community/local-community.js +13 -1
- package/dist/browser/runtime/node/community/local-community.js.map +1 -1
- package/dist/browser/runtime/node/community/page-generator.d.ts +44 -413
- package/dist/browser/runtime/node/community/page-generator.js +531 -308
- package/dist/browser/runtime/node/community/page-generator.js.map +1 -1
- package/dist/browser/runtime/node/community/page-sorts/index.d.ts +64 -0
- package/dist/browser/runtime/node/community/page-sorts/index.js +264 -0
- package/dist/browser/runtime/node/community/page-sorts/index.js.map +1 -0
- package/dist/browser/runtime/node/util.js +1 -1
- package/dist/browser/runtime/node/util.js.map +1 -1
- package/dist/browser/schema/schema-util.d.ts +142 -1
- package/dist/browser/schema/schema-util.js +11 -0
- package/dist/browser/schema/schema-util.js.map +1 -1
- package/dist/browser/schema/schema.js +1 -1
- package/dist/browser/schema/schema.js.map +1 -1
- package/dist/browser/schema.d.ts +4469 -0
- package/dist/browser/schema.js +2 -1
- package/dist/browser/schema.js.map +1 -1
- package/dist/browser/signer/signatures.d.ts +1 -1
- package/dist/browser/signer/signatures.js +45 -1
- package/dist/browser/signer/signatures.js.map +1 -1
- package/dist/browser/test/test-util.d.ts +63 -0
- package/dist/browser/test/test-util.js +66 -11
- package/dist/browser/test/test-util.js.map +1 -1
- package/dist/browser/util.d.ts +4 -0
- package/dist/browser/util.js +87 -0
- package/dist/browser/util.js.map +1 -1
- package/dist/browser/version.js +1 -1
- package/dist/bundled/bundle-manifest.json +235 -211
- package/dist/bundled/chunks/{helia-for-pkc-BCVI3rjp.js → helia-for-pkc-BY1wF9W8.js} +58 -34
- package/dist/bundled/chunks/{local-community-t5S6o-0o.js → local-community-B6i3MUzw.js} +1 -1
- package/dist/bundled/chunks/{local-community-CK7TUwwd.js → local-community-Dm02mfn3.js} +6719 -6055
- package/dist/bundled/chunks/{node-BpoCiJjL.js → node-B8rEQ_rA.js} +1201 -15
- package/dist/bundled/chunks/{rpc-local-community-CR1TnLfm.js → rpc-local-community-DHS2R2Vk.js} +13631 -14131
- package/dist/bundled/chunks/{util-bxE0EcD4.js → util-B-wz3mKY.js} +1 -1
- package/dist/bundled/chunks/{schema-DWRg9_bS.js → util-C6zDjhpr.js} +751 -601
- package/dist/bundled/index.js +2 -2
- package/dist/bundled/rpc/src/index.js +22 -9
- package/dist/node/clients/base-client-manager.d.ts +1 -1
- package/dist/node/clients/rpc-client/rpc-schema-util.d.ts +16 -0
- package/dist/node/clients/rpc-client/schema.d.ts +16 -0
- package/dist/node/community/remote-community.d.ts +1 -0
- package/dist/node/community/remote-community.js +1 -0
- package/dist/node/community/remote-community.js.map +1 -1
- package/dist/node/community/rpc-local-community.js +13 -0
- package/dist/node/community/rpc-local-community.js.map +1 -1
- package/dist/node/community/schema.d.ts +1369 -1
- package/dist/node/community/schema.js +90 -4
- package/dist/node/community/schema.js.map +1 -1
- package/dist/node/community/types.d.ts +13 -2
- package/dist/node/constants.d.ts +1 -0
- package/dist/node/constants.js +6 -0
- package/dist/node/constants.js.map +1 -1
- package/dist/node/errors.d.ts +15 -1
- package/dist/node/errors.js +15 -0
- package/dist/node/errors.js.map +1 -1
- package/dist/node/generated-version.d.ts +1 -1
- package/dist/node/generated-version.js +1 -1
- package/dist/node/helia/helia-for-pkc.js +41 -4
- package/dist/node/helia/helia-for-pkc.js.map +1 -1
- package/dist/node/helia/util.js +4 -1
- package/dist/node/helia/util.js.map +1 -1
- package/dist/node/index-with-compile-cache.d.ts +559 -0
- package/dist/node/index.d.ts +1120 -0
- package/dist/node/index.js +5 -0
- package/dist/node/index.js.map +1 -1
- package/dist/node/logger.js +10 -1
- package/dist/node/logger.js.map +1 -1
- package/dist/node/object-key-util.d.ts +2 -0
- package/dist/node/object-key-util.js +12 -0
- package/dist/node/object-key-util.js.map +1 -0
- package/dist/node/pages/page-sort-options.d.ts +14 -0
- package/dist/node/pages/page-sort-options.js +92 -0
- package/dist/node/pages/page-sort-options.js.map +1 -0
- package/dist/node/pages/page-sort-scoring.d.ts +35 -0
- package/dist/node/pages/page-sort-scoring.js +124 -0
- package/dist/node/pages/page-sort-scoring.js.map +1 -0
- package/dist/node/pages/pages-client-manager.d.ts +1 -0
- package/dist/node/pages/pages-client-manager.js +16 -4
- package/dist/node/pages/pages-client-manager.js.map +1 -1
- package/dist/node/pages/pkc-js-page-sorts/active.d.ts +3 -0
- package/dist/node/pages/pkc-js-page-sorts/active.js +15 -0
- package/dist/node/pages/pkc-js-page-sorts/active.js.map +1 -0
- package/dist/node/pages/pkc-js-page-sorts/best.d.ts +3 -0
- package/dist/node/pages/pkc-js-page-sorts/best.js +10 -0
- package/dist/node/pages/pkc-js-page-sorts/best.js.map +1 -0
- package/dist/node/pages/pkc-js-page-sorts/controversial.d.ts +3 -0
- package/dist/node/pages/pkc-js-page-sorts/controversial.js +10 -0
- package/dist/node/pages/pkc-js-page-sorts/controversial.js.map +1 -0
- package/dist/node/pages/pkc-js-page-sorts/hot.d.ts +3 -0
- package/dist/node/pages/pkc-js-page-sorts/hot.js +10 -0
- package/dist/node/pages/pkc-js-page-sorts/hot.js.map +1 -0
- package/dist/node/pages/pkc-js-page-sorts/index.d.ts +2 -0
- package/dist/node/pages/pkc-js-page-sorts/index.js +37 -0
- package/dist/node/pages/pkc-js-page-sorts/index.js.map +1 -0
- package/dist/node/pages/pkc-js-page-sorts/new-flat.d.ts +3 -0
- package/dist/node/pages/pkc-js-page-sorts/new-flat.js +12 -0
- package/dist/node/pages/pkc-js-page-sorts/new-flat.js.map +1 -0
- package/dist/node/pages/pkc-js-page-sorts/new.d.ts +3 -0
- package/dist/node/pages/pkc-js-page-sorts/new.js +10 -0
- package/dist/node/pages/pkc-js-page-sorts/new.js.map +1 -0
- package/dist/node/pages/pkc-js-page-sorts/old-flat.d.ts +3 -0
- package/dist/node/pages/pkc-js-page-sorts/old-flat.js +12 -0
- package/dist/node/pages/pkc-js-page-sorts/old-flat.js.map +1 -0
- package/dist/node/pages/pkc-js-page-sorts/old.d.ts +3 -0
- package/dist/node/pages/pkc-js-page-sorts/old.js +10 -0
- package/dist/node/pages/pkc-js-page-sorts/old.js.map +1 -0
- package/dist/node/pages/pkc-js-page-sorts/top-all.d.ts +3 -0
- package/dist/node/pages/pkc-js-page-sorts/top-all.js +10 -0
- package/dist/node/pages/pkc-js-page-sorts/top-all.js.map +1 -0
- package/dist/node/pages/pkc-js-page-sorts/top-day.d.ts +3 -0
- package/dist/node/pages/pkc-js-page-sorts/top-day.js +11 -0
- package/dist/node/pages/pkc-js-page-sorts/top-day.js.map +1 -0
- package/dist/node/pages/pkc-js-page-sorts/top-hour.d.ts +3 -0
- package/dist/node/pages/pkc-js-page-sorts/top-hour.js +11 -0
- package/dist/node/pages/pkc-js-page-sorts/top-hour.js.map +1 -0
- package/dist/node/pages/pkc-js-page-sorts/top-month.d.ts +3 -0
- package/dist/node/pages/pkc-js-page-sorts/top-month.js +11 -0
- package/dist/node/pages/pkc-js-page-sorts/top-month.js.map +1 -0
- package/dist/node/pages/pkc-js-page-sorts/top-week.d.ts +3 -0
- package/dist/node/pages/pkc-js-page-sorts/top-week.js +11 -0
- package/dist/node/pages/pkc-js-page-sorts/top-week.js.map +1 -0
- package/dist/node/pages/pkc-js-page-sorts/top-year.d.ts +3 -0
- package/dist/node/pages/pkc-js-page-sorts/top-year.js +11 -0
- package/dist/node/pages/pkc-js-page-sorts/top-year.js.map +1 -0
- package/dist/node/pages/pkc-js-page-sorts/top.d.ts +3 -0
- package/dist/node/pages/pkc-js-page-sorts/top.js +12 -0
- package/dist/node/pages/pkc-js-page-sorts/top.js.map +1 -0
- package/dist/node/pages/pkc-js-page-sorts/util.d.ts +3 -0
- package/dist/node/pages/pkc-js-page-sorts/util.js +7 -0
- package/dist/node/pages/pkc-js-page-sorts/util.js.map +1 -0
- package/dist/node/pages/schema.d.ts +1 -0
- package/dist/node/pages/schema.js +10 -3
- package/dist/node/pages/schema.js.map +1 -1
- package/dist/node/pages/types.d.ts +8 -0
- package/dist/node/pages/util.d.ts +2 -1
- package/dist/node/pages/util.js +11 -10
- package/dist/node/pages/util.js.map +1 -1
- package/dist/node/pkc/pkc.d.ts +2 -1
- package/dist/node/pkc/pkc.js +2 -1
- package/dist/node/pkc/pkc.js.map +1 -1
- package/dist/node/pkc-error.d.ts +1 -1
- package/dist/node/publications/comment/comment-client-manager.d.ts +2 -2
- package/dist/node/publications/comment/comment-client-manager.js +3 -1
- package/dist/node/publications/comment/comment-client-manager.js.map +1 -1
- package/dist/node/publications/community-edit/schema.d.ts +64 -0
- package/dist/node/pubsub-messages/schema.d.ts +32 -0
- package/dist/node/rpc/src/index.js +14 -1
- package/dist/node/rpc/src/index.js.map +1 -1
- package/dist/node/rpc/src/lib/pkc-js/index.d.ts +559 -0
- package/dist/node/rpc/src/schema.d.ts +3371 -0
- package/dist/node/rpc/src/schema.js +6 -2
- package/dist/node/rpc/src/schema.js.map +1 -1
- package/dist/node/runtime/browser/community/page-sorts/index.d.ts +1 -0
- package/dist/node/runtime/browser/community/page-sorts/index.js +6 -0
- package/dist/node/runtime/browser/community/page-sorts/index.js.map +1 -0
- package/dist/node/runtime/node/community/db-handler.d.ts +78 -20
- package/dist/node/runtime/node/community/db-handler.js +1151 -734
- package/dist/node/runtime/node/community/db-handler.js.map +1 -1
- package/dist/node/runtime/node/community/db-row-parser.d.ts +13 -0
- package/dist/node/runtime/node/community/db-row-parser.js +58 -1
- package/dist/node/runtime/node/community/db-row-parser.js.map +1 -1
- package/dist/node/runtime/node/community/local-community/cleanup.js +23 -10
- package/dist/node/runtime/node/community/local-community/cleanup.js.map +1 -1
- package/dist/node/runtime/node/community/local-community/comment-updates.d.ts +12 -2
- package/dist/node/runtime/node/community/local-community/comment-updates.js +101 -70
- package/dist/node/runtime/node/community/local-community/comment-updates.js.map +1 -1
- package/dist/node/runtime/node/community/local-community/db-state.js +8 -0
- package/dist/node/runtime/node/community/local-community/db-state.js.map +1 -1
- package/dist/node/runtime/node/community/local-community/editing.d.ts +9 -2
- package/dist/node/runtime/node/community/local-community/editing.js +32 -5
- package/dist/node/runtime/node/community/local-community/editing.js.map +1 -1
- package/dist/node/runtime/node/community/local-community/ipns-publishing.d.ts +2 -2
- package/dist/node/runtime/node/community/local-community/ipns-publishing.js +49 -27
- package/dist/node/runtime/node/community/local-community/ipns-publishing.js.map +1 -1
- package/dist/node/runtime/node/community/local-community/lifecycle.d.ts +1 -0
- package/dist/node/runtime/node/community/local-community/lifecycle.js +49 -18
- package/dist/node/runtime/node/community/local-community/lifecycle.js.map +1 -1
- package/dist/node/runtime/node/community/local-community.d.ts +5 -1
- package/dist/node/runtime/node/community/local-community.js +13 -1
- package/dist/node/runtime/node/community/local-community.js.map +1 -1
- package/dist/node/runtime/node/community/page-generator.d.ts +44 -413
- package/dist/node/runtime/node/community/page-generator.js +531 -308
- package/dist/node/runtime/node/community/page-generator.js.map +1 -1
- package/dist/node/runtime/node/community/page-sorts/index.d.ts +64 -0
- package/dist/node/runtime/node/community/page-sorts/index.js +264 -0
- package/dist/node/runtime/node/community/page-sorts/index.js.map +1 -0
- package/dist/node/runtime/node/util.js +1 -1
- package/dist/node/runtime/node/util.js.map +1 -1
- package/dist/node/schema/schema-util.d.ts +142 -1
- package/dist/node/schema/schema-util.js +11 -0
- package/dist/node/schema/schema-util.js.map +1 -1
- package/dist/node/schema/schema.js +1 -1
- package/dist/node/schema/schema.js.map +1 -1
- package/dist/node/schema.d.ts +4469 -0
- package/dist/node/schema.js +2 -1
- package/dist/node/schema.js.map +1 -1
- package/dist/node/signer/signatures.d.ts +1 -1
- package/dist/node/signer/signatures.js +45 -1
- package/dist/node/signer/signatures.js.map +1 -1
- package/dist/node/test/test-util.d.ts +63 -0
- package/dist/node/test/test-util.js +66 -11
- package/dist/node/test/test-util.js.map +1 -1
- package/dist/node/util.d.ts +4 -0
- package/dist/node/util.js +87 -0
- package/dist/node/util.js.map +1 -1
- package/dist/node/version.js +1 -1
- package/package.json +2 -2
- package/dist/bundled/chunks/{src-Dz9wtvrK.js → src-B07ldGHS.js} +1 -1
|
@@ -5151,8 +5151,14 @@ Logger$1.enabled = (namespaces) => {
|
|
|
5151
5151
|
};
|
|
5152
5152
|
//#endregion
|
|
5153
5153
|
//#region dist/node/logger.js
|
|
5154
|
+
const loggers = /* @__PURE__ */ new Map();
|
|
5154
5155
|
function Logger(namespace) {
|
|
5155
|
-
|
|
5156
|
+
let logger = loggers.get(namespace);
|
|
5157
|
+
if (!logger) {
|
|
5158
|
+
logger = Logger$1(namespace);
|
|
5159
|
+
loggers.set(namespace, logger);
|
|
5160
|
+
}
|
|
5161
|
+
return logger;
|
|
5156
5162
|
}
|
|
5157
5163
|
(function(Logger) {
|
|
5158
5164
|
Logger.disable = () => Logger$1.disable();
|
|
@@ -5573,6 +5579,20 @@ var messages;
|
|
|
5573
5579
|
messages["ERR_CHALLENGE_PUBLIC_OPTION_NOT_DECLARED_IN_OPTION_INPUTS"] = "settings.challenges[i].publicOptions names an option that no optionInputs entry of the challenge declares";
|
|
5574
5580
|
messages["ERR_CHALLENGE_SETTINGS_VALIDATION_FAILED"] = "The challenge's validateChallengeSettings hook rejected settings.challenges[i]";
|
|
5575
5581
|
messages["ERR_CHALLENGE_SETTINGS_VALIDATION_FAILED_FOR_CHALLENGES"] = "One or more challenges in settings.challenges failed validation";
|
|
5582
|
+
messages["ERR_FAILED_TO_IMPORT_PAGE_SORT_FILE_FACTORY"] = "Failed to import page sort file factory";
|
|
5583
|
+
messages["ERR_PAGE_SORT_FILE_INVALID"] = "The page sort file did not return a valid PageSortFile";
|
|
5584
|
+
messages["ERR_PAGE_SORT_DUPLICATE_SORT_NAME"] = "Two entries of settings.pages resolve to the same sortName";
|
|
5585
|
+
messages["ERR_PAGE_SORT_SCOPE_MISMATCH"] = "A page sort declared for one scope was configured under the other (a reply-only sort under posts, or a post-only sort under replies)";
|
|
5586
|
+
messages["ERR_PAGE_SORT_OPTION_NOT_DECLARED_IN_OPTION_INPUTS"] = "settings.pages[].options has a key that neither the reserved options nor any optionInputs entry of the page sort declares, so it is never read";
|
|
5587
|
+
messages["ERR_PAGE_SORT_REQUIRED_OPTION_MISSING"] = "settings.pages[].options is missing an option whose optionInputs entry is required";
|
|
5588
|
+
messages["ERR_PAGE_SORT_INVALID_RESERVED_OPTION"] = "A reserved page sort option (maxAge, pinnedFirst, exclude*) has a value pkc-js cannot parse";
|
|
5589
|
+
messages["ERR_PAGE_SORT_PRIVATE_OPTION_NOT_SET"] = "settings.pages[].privateOptions names an option that is not set in options";
|
|
5590
|
+
messages["ERR_PAGE_SORT_RESERVED_OPTION_CANNOT_BE_PRIVATE"] = "settings.pages[].privateOptions names a reserved option (maxAge, pinnedFirst, exclude*); reserved options describe what the page contains and are always published";
|
|
5591
|
+
messages["ERR_PAGE_SORT_SETTINGS_VALIDATION_FAILED"] = "The page sort's validatePageSortSettings hook rejected settings.pages[]";
|
|
5592
|
+
messages["ERR_PAGE_SORT_SETTINGS_VALIDATION_FAILED_FOR_PAGE_SORTS"] = "One or more entries of settings.pages failed validation";
|
|
5593
|
+
messages["ERR_PAGE_SORT_FAILED_TO_GENERATE"] = "A configured page sort threw while generating its pages; it was skipped for this cycle and the remaining sorts were published";
|
|
5594
|
+
messages["ERR_ALL_PAGE_SORTS_FAILED_TO_GENERATE"] = "Every configured page sort of a scope threw while generating its pages, so the cycle was aborted and the last published record stays up until a sort succeeds";
|
|
5595
|
+
messages["ERR_RPC_CLIENT_PAGE_SORT_NAME_NOT_AVAILABLE_ON_SERVER"] = "settings.pages names a page sort that is not registered on the RPC server";
|
|
5576
5596
|
})(messages || (messages = {}));
|
|
5577
5597
|
//#endregion
|
|
5578
5598
|
//#region dist/node/pkc-error.js
|
|
@@ -6323,6 +6343,16 @@ const CommentEditReservedFields = r$2(n([
|
|
|
6323
6343
|
"nameResolved"
|
|
6324
6344
|
]), t$3(CommentEditPubsubMessagePublicationSchema.shape));
|
|
6325
6345
|
//#endregion
|
|
6346
|
+
//#region dist/node/object-key-util.js
|
|
6347
|
+
const RESERVED_OBJECT_KEYS = new Set([
|
|
6348
|
+
"__proto__",
|
|
6349
|
+
"constructor",
|
|
6350
|
+
"prototype"
|
|
6351
|
+
]);
|
|
6352
|
+
function isReservedObjectKey(key) {
|
|
6353
|
+
return RESERVED_OBJECT_KEYS.has(key);
|
|
6354
|
+
}
|
|
6355
|
+
//#endregion
|
|
6326
6356
|
//#region dist/node/pages/schema.js
|
|
6327
6357
|
const PageIpfsSchema = object({
|
|
6328
6358
|
comments: lazy(() => object({
|
|
@@ -6331,6 +6361,7 @@ const PageIpfsSchema = object({
|
|
|
6331
6361
|
}).array()),
|
|
6332
6362
|
nextCid: CidStringSchema.optional()
|
|
6333
6363
|
});
|
|
6364
|
+
const SortNameStringSchema = string().min(1).refine((name) => !isReservedObjectKey(name), { message: "A sort name cannot be __proto__, constructor or prototype" });
|
|
6334
6365
|
const PostSortNameSchema = _enum([
|
|
6335
6366
|
"hot",
|
|
6336
6367
|
"new",
|
|
@@ -6341,14 +6372,14 @@ const PostSortNameSchema = _enum([
|
|
|
6341
6372
|
"topYear",
|
|
6342
6373
|
"topAll",
|
|
6343
6374
|
"active"
|
|
6344
|
-
]).or(
|
|
6375
|
+
]).or(SortNameStringSchema);
|
|
6345
6376
|
const ReplySortNameSchema = _enum([
|
|
6346
6377
|
"best",
|
|
6347
6378
|
"new",
|
|
6348
6379
|
"old",
|
|
6349
6380
|
"newFlat",
|
|
6350
6381
|
"oldFlat"
|
|
6351
|
-
]).or(
|
|
6382
|
+
]).or(SortNameStringSchema);
|
|
6352
6383
|
const PostsPagesIpfsSchema = object({
|
|
6353
6384
|
pages: record(PostSortNameSchema, PageIpfsSchema),
|
|
6354
6385
|
pageCids: record(PostSortNameSchema, CidStringSchema).optional()
|
|
@@ -6357,7 +6388,7 @@ const RepliesPagesIpfsSchema = object({
|
|
|
6357
6388
|
pages: record(ReplySortNameSchema, PageIpfsSchema),
|
|
6358
6389
|
pageCids: record(ReplySortNameSchema, CidStringSchema).optional()
|
|
6359
6390
|
});
|
|
6360
|
-
const ModQueuePagesIpfsSchema = object({ pageCids: record(
|
|
6391
|
+
const ModQueuePagesIpfsSchema = object({ pageCids: record(SortNameStringSchema, CidStringSchema) });
|
|
6361
6392
|
const ModQueuePageIpfsSchema = object({
|
|
6362
6393
|
comments: lazy(() => object({
|
|
6363
6394
|
comment: CommentIpfsSchema.loose(),
|
|
@@ -6540,445 +6571,6 @@ const CommentUpdateReservedFields = r$2(CommentPubsubMessageReservedFields, [
|
|
|
6540
6571
|
"pendingApproval"
|
|
6541
6572
|
]);
|
|
6542
6573
|
//#endregion
|
|
6543
|
-
//#region dist/node/publications/vote/schema.js
|
|
6544
|
-
const CreateVoteUserOptionsSchema = CreatePublicationUserOptionsSchema.extend({
|
|
6545
|
-
commentCid: CidStringSchema,
|
|
6546
|
-
vote: union([
|
|
6547
|
-
literal(1),
|
|
6548
|
-
literal(0),
|
|
6549
|
-
literal(-1)
|
|
6550
|
-
])
|
|
6551
|
-
}).strict();
|
|
6552
|
-
const CreateVoteUserOptionsWithRefinementSchema = CreateVoteUserOptionsSchema.refine(hasAtLeastOneCommunityIdentifier, atLeastOneCommunityIdentifierMessage);
|
|
6553
|
-
const VoteSignedPropertyNames = t$3(n$3(CreateVoteUserOptionsSchema.shape, keysToOmitFromSignedPropertyNames));
|
|
6554
|
-
const votePickOptions = t$2([...VoteSignedPropertyNames, "signature"], (x) => [x, true]);
|
|
6555
|
-
const VotePubsubMessagePublicationSchema = CreateVoteUserOptionsSchema.merge(PublicationBaseBeforeSigning).extend({
|
|
6556
|
-
signature: JsonSignatureSchema,
|
|
6557
|
-
author: PublicationBaseBeforeSigning.shape.author.unwrap().loose().optional()
|
|
6558
|
-
}).pick(votePickOptions).strict();
|
|
6559
|
-
const VoteTablesRowSchema = VotePubsubMessagePublicationSchema.pick({
|
|
6560
|
-
commentCid: true,
|
|
6561
|
-
protocolVersion: true,
|
|
6562
|
-
timestamp: true,
|
|
6563
|
-
vote: true
|
|
6564
|
-
}).extend({
|
|
6565
|
-
insertedAt: PKCTimestampSchema,
|
|
6566
|
-
authorSignerAddress: SignerWithAddressPublicKeySchema.shape.address,
|
|
6567
|
-
extraProps: looseObject({}).optional()
|
|
6568
|
-
});
|
|
6569
|
-
const VoteChallengeRequestToEncryptSchema = CreateVoteUserOptionsSchema.shape.challengeRequest.unwrap().extend({ vote: VotePubsubMessagePublicationSchema.loose() });
|
|
6570
|
-
const VotePubsubReservedFields = r$2(n([
|
|
6571
|
-
...t$3(VoteTablesRowSchema.shape),
|
|
6572
|
-
...t$3(VoteChallengeRequestToEncryptSchema.shape),
|
|
6573
|
-
"shortCommunityAddress",
|
|
6574
|
-
"shortCommunityAddress",
|
|
6575
|
-
"communityAddress",
|
|
6576
|
-
"communityPublicKey",
|
|
6577
|
-
"communityName",
|
|
6578
|
-
"state",
|
|
6579
|
-
"publishingState",
|
|
6580
|
-
"signer",
|
|
6581
|
-
"clients",
|
|
6582
|
-
"nameResolved"
|
|
6583
|
-
]), t$3(VotePubsubMessagePublicationSchema.shape));
|
|
6584
|
-
//#endregion
|
|
6585
|
-
//#region dist/node/domain-util.js
|
|
6586
|
-
function isStringDomain(x) {
|
|
6587
|
-
return typeof x === "string" && x.includes(".");
|
|
6588
|
-
}
|
|
6589
|
-
function isEthAliasDomain$1(address) {
|
|
6590
|
-
const lower = address.toLowerCase();
|
|
6591
|
-
return lower.endsWith(".eth") || lower.endsWith(".bso");
|
|
6592
|
-
}
|
|
6593
|
-
function normalizeEthAliasDomain(address) {
|
|
6594
|
-
return address.endsWith(".bso") ? address.slice(0, -4) + ".eth" : address;
|
|
6595
|
-
}
|
|
6596
|
-
//#endregion
|
|
6597
|
-
//#region dist/node/community/schema.js
|
|
6598
|
-
const CommunityEncryptionSchema = looseObject({
|
|
6599
|
-
type: string().min(1),
|
|
6600
|
-
publicKey: SignerWithAddressPublicKeySchema.shape.publicKey
|
|
6601
|
-
});
|
|
6602
|
-
const CommunityRoleSchema = looseObject({ role: _enum([
|
|
6603
|
-
"owner",
|
|
6604
|
-
"admin",
|
|
6605
|
-
"moderator"
|
|
6606
|
-
]).or(string().min(1)) });
|
|
6607
|
-
const PubsubTopicSchema = string().min(1);
|
|
6608
|
-
const CommunitySuggestedSchema = looseObject({
|
|
6609
|
-
primaryColor: string().optional(),
|
|
6610
|
-
secondaryColor: string().optional(),
|
|
6611
|
-
avatarUrl: string().min(1).optional(),
|
|
6612
|
-
bannerUrl: string().min(1).optional(),
|
|
6613
|
-
backgroundUrl: string().min(1).optional(),
|
|
6614
|
-
language: string().optional()
|
|
6615
|
-
});
|
|
6616
|
-
const CommunityFeaturesSchema = looseObject({
|
|
6617
|
-
noVideos: boolean().optional(),
|
|
6618
|
-
noSpoilers: boolean().optional(),
|
|
6619
|
-
noImages: boolean().optional(),
|
|
6620
|
-
noVideoReplies: boolean().optional(),
|
|
6621
|
-
noSpoilerReplies: boolean().optional(),
|
|
6622
|
-
noImageReplies: boolean().optional(),
|
|
6623
|
-
noReplyLinks: boolean().optional(),
|
|
6624
|
-
noPolls: boolean().optional(),
|
|
6625
|
-
noCrossposts: boolean().optional(),
|
|
6626
|
-
maxCrosspostDepth: number().int().nonnegative().optional(),
|
|
6627
|
-
noNestedReplies: boolean().optional(),
|
|
6628
|
-
noArchive: boolean().optional(),
|
|
6629
|
-
safeForWork: boolean().optional(),
|
|
6630
|
-
authorFlairs: boolean().optional(),
|
|
6631
|
-
requireAuthorFlairs: boolean().optional(),
|
|
6632
|
-
postFlairs: boolean().optional(),
|
|
6633
|
-
requirePostFlairs: boolean().optional(),
|
|
6634
|
-
noMarkdownImages: boolean().optional(),
|
|
6635
|
-
noMarkdownVideos: boolean().optional(),
|
|
6636
|
-
noMarkdownAudio: boolean().optional(),
|
|
6637
|
-
noAudio: boolean().optional(),
|
|
6638
|
-
noAudioReplies: boolean().optional(),
|
|
6639
|
-
markdownImageReplies: boolean().optional(),
|
|
6640
|
-
markdownVideoReplies: boolean().optional(),
|
|
6641
|
-
noPostUpvotes: boolean().optional(),
|
|
6642
|
-
noReplyUpvotes: boolean().optional(),
|
|
6643
|
-
noPostDownvotes: boolean().optional(),
|
|
6644
|
-
noReplyDownvotes: boolean().optional(),
|
|
6645
|
-
noUpvotes: boolean().optional(),
|
|
6646
|
-
noDownvotes: boolean().optional(),
|
|
6647
|
-
requirePostLink: boolean().optional(),
|
|
6648
|
-
requirePostLinkIsMedia: boolean().optional(),
|
|
6649
|
-
requireReplyLink: boolean().optional(),
|
|
6650
|
-
requireReplyLinkIsMedia: boolean().optional(),
|
|
6651
|
-
pseudonymityMode: _enum([
|
|
6652
|
-
"per-post",
|
|
6653
|
-
"per-reply",
|
|
6654
|
-
"per-author"
|
|
6655
|
-
]).optional()
|
|
6656
|
-
});
|
|
6657
|
-
const ChallengeOptionInputSchema = looseObject({
|
|
6658
|
-
option: string(),
|
|
6659
|
-
label: string(),
|
|
6660
|
-
default: string().optional(),
|
|
6661
|
-
description: string().optional(),
|
|
6662
|
-
placeholder: string().optional(),
|
|
6663
|
-
required: boolean().optional()
|
|
6664
|
-
});
|
|
6665
|
-
const ChallengeResultSchema = object({
|
|
6666
|
-
success: literal(true),
|
|
6667
|
-
comment: looseObject({}).optional(),
|
|
6668
|
-
commentUpdate: looseObject({}).optional()
|
|
6669
|
-
}).or(object({
|
|
6670
|
-
success: literal(false),
|
|
6671
|
-
error: string(),
|
|
6672
|
-
reason: string().optional()
|
|
6673
|
-
}));
|
|
6674
|
-
const ChallengeFromGetChallengeSchema = object({
|
|
6675
|
-
challenge: string(),
|
|
6676
|
-
verify: _function({
|
|
6677
|
-
input: [lazy(() => ChallengeAnswerStringSchema)],
|
|
6678
|
-
output: promise(ChallengeResultSchema)
|
|
6679
|
-
}),
|
|
6680
|
-
type: string().min(1),
|
|
6681
|
-
caseInsensitive: boolean().optional()
|
|
6682
|
-
}).strict();
|
|
6683
|
-
const ResultOfGetChallengeSchema = ChallengeFromGetChallengeSchema.or(ChallengeResultSchema);
|
|
6684
|
-
const ChallengeExcludeCommunitySchema = object({
|
|
6685
|
-
addresses: CommunityAddressSchema.array().nonempty(),
|
|
6686
|
-
maxCommentCids: number().nonnegative().int(),
|
|
6687
|
-
postScore: number().int().optional(),
|
|
6688
|
-
replyScore: number().int().optional(),
|
|
6689
|
-
firstCommentTimestamp: PKCTimestampSchema.optional()
|
|
6690
|
-
}).strict();
|
|
6691
|
-
const excludePublicationFieldSchema = boolean().optional();
|
|
6692
|
-
const ChallengeExcludePublicationTypeSchema = looseObject({
|
|
6693
|
-
post: excludePublicationFieldSchema,
|
|
6694
|
-
reply: excludePublicationFieldSchema,
|
|
6695
|
-
vote: excludePublicationFieldSchema,
|
|
6696
|
-
commentEdit: excludePublicationFieldSchema,
|
|
6697
|
-
commentModeration: excludePublicationFieldSchema,
|
|
6698
|
-
communityEdit: excludePublicationFieldSchema
|
|
6699
|
-
}).refine((args) => !e$2(JSON.parse(JSON.stringify(args))), messages.ERR_CAN_NOT_SET_EXCLUDE_PUBLICATION_TO_EMPTY_OBJECT);
|
|
6700
|
-
const ChallengeExcludePublicKeySchema = AuthorAddressSchema.refine((address) => !isStringDomain(address), messages.ERR_CHALLENGE_EXCLUDE_PUBLIC_KEYS_MUST_NOT_BE_DOMAIN);
|
|
6701
|
-
const ChallengeExcludeNameSchema = AuthorAddressSchema.refine((name) => isStringDomain(name), messages.ERR_CHALLENGE_EXCLUDE_NAMES_MUST_BE_DOMAIN);
|
|
6702
|
-
const ChallengeExcludeSchema = looseObject({
|
|
6703
|
-
community: ChallengeExcludeCommunitySchema.optional(),
|
|
6704
|
-
postScore: number().int().optional(),
|
|
6705
|
-
replyScore: number().int().optional(),
|
|
6706
|
-
postCount: number().nonnegative().int().optional(),
|
|
6707
|
-
replyCount: number().nonnegative().int().optional(),
|
|
6708
|
-
firstCommentTimestamp: PKCTimestampSchema.optional(),
|
|
6709
|
-
challenges: number().nonnegative().int().array().optional(),
|
|
6710
|
-
roles: CommunityRoleSchema.shape.role.array().nonempty().optional(),
|
|
6711
|
-
publicKeys: ChallengeExcludePublicKeySchema.array().nonempty().optional(),
|
|
6712
|
-
names: ChallengeExcludeNameSchema.array().nonempty().optional(),
|
|
6713
|
-
rateLimit: number().nonnegative().int().optional(),
|
|
6714
|
-
rateLimitChallengeSuccess: boolean().optional(),
|
|
6715
|
-
publicationType: ChallengeExcludePublicationTypeSchema.optional()
|
|
6716
|
-
});
|
|
6717
|
-
const ChallengeExcludeSettingSchema = ChallengeExcludeSchema.refine((exclude) => !("address" in exclude), messages.ERR_CHALLENGE_EXCLUDE_ADDRESS_FIELD_REMOVED).refine((exclude) => !("role" in exclude), messages.ERR_CHALLENGE_EXCLUDE_ROLE_FIELD_RENAMED);
|
|
6718
|
-
const CommunityChallengeSettingSchema = object({
|
|
6719
|
-
path: string().optional(),
|
|
6720
|
-
name: string().optional(),
|
|
6721
|
-
options: record(string(), string()).optional(),
|
|
6722
|
-
publicOptions: string().array().optional(),
|
|
6723
|
-
exclude: ChallengeExcludeSettingSchema.array().nonempty().optional(),
|
|
6724
|
-
description: string().optional(),
|
|
6725
|
-
pendingApproval: boolean().optional()
|
|
6726
|
-
}).strict().refine((challengeData) => challengeData.path || challengeData.name, "Path or name of challenge has to be defined");
|
|
6727
|
-
const GetChallengeArgsSchema = object({
|
|
6728
|
-
challengeSettings: CommunityChallengeSettingSchema,
|
|
6729
|
-
challengeRequestMessage: custom(),
|
|
6730
|
-
challengeIndex: number().int().nonnegative(),
|
|
6731
|
-
community: custom(),
|
|
6732
|
-
authorIdentityMatcher: custom().optional()
|
|
6733
|
-
});
|
|
6734
|
-
const ChallengeFileSchema = looseObject({
|
|
6735
|
-
optionInputs: ChallengeOptionInputSchema.array().optional(),
|
|
6736
|
-
type: ChallengeFromGetChallengeSchema.shape.type,
|
|
6737
|
-
challenge: ChallengeFromGetChallengeSchema.shape.challenge.optional(),
|
|
6738
|
-
caseInsensitive: boolean().optional(),
|
|
6739
|
-
description: string().optional(),
|
|
6740
|
-
getChallenge: _function({
|
|
6741
|
-
input: [GetChallengeArgsSchema],
|
|
6742
|
-
output: promise(ResultOfGetChallengeSchema)
|
|
6743
|
-
}),
|
|
6744
|
-
validateChallengeSettings: _function({
|
|
6745
|
-
input: [object({ challengeSettings: CommunityChallengeSettingSchema })],
|
|
6746
|
-
output: _void()
|
|
6747
|
-
}).optional()
|
|
6748
|
-
});
|
|
6749
|
-
const CommunityChallengeSchema = looseObject({
|
|
6750
|
-
exclude: ChallengeExcludeSchema.array().nonempty().optional(),
|
|
6751
|
-
description: ChallengeFileSchema.shape.description,
|
|
6752
|
-
challenge: ChallengeFileSchema.shape.challenge,
|
|
6753
|
-
type: ChallengeFileSchema.shape.type,
|
|
6754
|
-
caseInsensitive: ChallengeFileSchema.shape.caseInsensitive,
|
|
6755
|
-
pendingApproval: boolean().optional(),
|
|
6756
|
-
publicOptions: record(string(), string()).optional()
|
|
6757
|
-
});
|
|
6758
|
-
const ChallengeFileFactorySchema = _function({
|
|
6759
|
-
input: [object({ challengeSettings: CommunityChallengeSettingSchema })],
|
|
6760
|
-
output: ChallengeFileSchema
|
|
6761
|
-
});
|
|
6762
|
-
const CommunityAnchorSchema = object({ publicKey: string().refine((arg) => isIpnsName(arg), messages.ERR_ANCHOR_PUBLIC_KEY_IS_INVALID) }).strict();
|
|
6763
|
-
const CommunityIpfsSchema = object({
|
|
6764
|
-
posts: PostsPagesIpfsSchema.optional(),
|
|
6765
|
-
modQueue: ModQueuePagesIpfsSchema.optional(),
|
|
6766
|
-
challenges: CommunityChallengeSchema.array(),
|
|
6767
|
-
signature: JsonSignatureSchema,
|
|
6768
|
-
encryption: CommunityEncryptionSchema,
|
|
6769
|
-
name: string().min(1).optional(),
|
|
6770
|
-
anchor: CommunityAnchorSchema.optional(),
|
|
6771
|
-
createdAt: PKCTimestampSchema,
|
|
6772
|
-
updatedAt: PKCTimestampSchema,
|
|
6773
|
-
pubsubTopic: PubsubTopicSchema.optional(),
|
|
6774
|
-
statsCid: CidStringSchema.optional(),
|
|
6775
|
-
protocolVersion: ProtocolVersionSchema,
|
|
6776
|
-
postUpdates: record(nonNegativeIntStringSchema, CidStringSchema).optional(),
|
|
6777
|
-
title: string().optional(),
|
|
6778
|
-
description: string().optional(),
|
|
6779
|
-
roles: record(AuthorAddressSchema, CommunityRoleSchema).optional(),
|
|
6780
|
-
rules: string().array().optional(),
|
|
6781
|
-
lastPostCid: CidStringSchema.optional(),
|
|
6782
|
-
lastCommentCid: CidStringSchema.optional(),
|
|
6783
|
-
features: CommunityFeaturesSchema.optional(),
|
|
6784
|
-
suggested: CommunitySuggestedSchema.optional(),
|
|
6785
|
-
flairs: record(string(), FlairSchema.array()).optional()
|
|
6786
|
-
}).strict();
|
|
6787
|
-
const CommunitySignedPropertyNames = t$3(n$3(CommunityIpfsSchema.shape, ["signature"]));
|
|
6788
|
-
const RpcRemoteCommunityUpdateEventResultSchema = object({
|
|
6789
|
-
community: CommunityIpfsSchema.loose().optional(),
|
|
6790
|
-
resetInstance: boolean().optional(),
|
|
6791
|
-
runtimeFields: object({
|
|
6792
|
-
updateCid: CidStringSchema.optional(),
|
|
6793
|
-
updatingState: custom().optional(),
|
|
6794
|
-
newPublicKey: string().optional(),
|
|
6795
|
-
nameResolved: boolean().optional(),
|
|
6796
|
-
ipnsHops: array(string()).optional()
|
|
6797
|
-
}).passthrough()
|
|
6798
|
-
});
|
|
6799
|
-
const CreateRemoteCommunityOptionsSchema = CommunityIpfsSchema.partial().extend({
|
|
6800
|
-
address: CommunityAddressSchema.optional(),
|
|
6801
|
-
publicKey: string().min(1).optional(),
|
|
6802
|
-
posts: CommunityIpfsSchema.shape.posts.or(PostsPagesIpfsSchema.pick({ pageCids: true })),
|
|
6803
|
-
updateCid: CidStringSchema.optional()
|
|
6804
|
-
}).strict().refine((opts) => opts.address || opts.name || opts.publicKey, "At least one of address, name, or publicKey must be provided");
|
|
6805
|
-
const CommunitySettingsSchema = object({
|
|
6806
|
-
fetchThumbnailUrls: boolean().optional(),
|
|
6807
|
-
fetchThumbnailUrlsProxyUrl: string().optional(),
|
|
6808
|
-
challenges: CommunityChallengeSettingSchema.array().optional(),
|
|
6809
|
-
maxPendingApprovalCount: number().int().nonnegative().optional(),
|
|
6810
|
-
purgeDisapprovedCommentsOlderThan: number().int().nonnegative().optional(),
|
|
6811
|
-
disablePubsubChallengeExchange: boolean().optional()
|
|
6812
|
-
}).strict();
|
|
6813
|
-
const CommunityRolesToEditSchema = record(AuthorAddressSchema, CommunityRoleSchema.or(_undefined()));
|
|
6814
|
-
const CommunityEditOptionsSchema = CommunityIpfsSchema.pick({
|
|
6815
|
-
flairs: true,
|
|
6816
|
-
name: true,
|
|
6817
|
-
title: true,
|
|
6818
|
-
description: true,
|
|
6819
|
-
roles: true,
|
|
6820
|
-
rules: true,
|
|
6821
|
-
pubsubTopic: true,
|
|
6822
|
-
features: true,
|
|
6823
|
-
suggested: true
|
|
6824
|
-
}).extend({
|
|
6825
|
-
address: CommunityAddressSchema.optional(),
|
|
6826
|
-
settings: CommunitySettingsSchema.optional(),
|
|
6827
|
-
roles: CommunityRolesToEditSchema.optional()
|
|
6828
|
-
}).partial().strict();
|
|
6829
|
-
const CreateNewLocalCommunityUserOptionsSchema = CommunityEditOptionsSchema.omit({ address: true }).extend({
|
|
6830
|
-
signer: CreateSignerSchema.optional(),
|
|
6831
|
-
anchor: CommunityAnchorSchema.optional(),
|
|
6832
|
-
roles: CommunityIpfsSchema.shape.roles
|
|
6833
|
-
}).strict();
|
|
6834
|
-
CreateNewLocalCommunityUserOptionsSchema.extend({
|
|
6835
|
-
address: SignerWithAddressPublicKeySchema.shape.address,
|
|
6836
|
-
signer: SignerWithAddressPublicKeySchema
|
|
6837
|
-
}).strict();
|
|
6838
|
-
const CreateRemoteCommunityFunctionArgumentSchema = CreateRemoteCommunityOptionsSchema.or(CommunityIpfsSchema.loose());
|
|
6839
|
-
const CreateRpcCommunityFunctionArgumentSchema = CreateRemoteCommunityFunctionArgumentSchema.or(CreateNewLocalCommunityUserOptionsSchema);
|
|
6840
|
-
CreateNewLocalCommunityUserOptionsSchema.or(CreateRemoteCommunityFunctionArgumentSchema);
|
|
6841
|
-
CommunityAddressSchema.array();
|
|
6842
|
-
object({
|
|
6843
|
-
includePrivateKey: boolean().optional(),
|
|
6844
|
-
exportPath: string().min(1).optional(),
|
|
6845
|
-
signal: custom((v) => v === void 0 || typeof v === "object" && v !== null && "aborted" in v).optional()
|
|
6846
|
-
}).strict();
|
|
6847
|
-
const ExportCommunityModLogsOptionsSchema = object({
|
|
6848
|
-
startTimestamp: number().int().optional(),
|
|
6849
|
-
endTimestamp: number().int().optional(),
|
|
6850
|
-
commentCid: string().min(1).optional(),
|
|
6851
|
-
limit: number().int().positive().optional(),
|
|
6852
|
-
order: _enum(["ASC", "DESC"]).optional()
|
|
6853
|
-
});
|
|
6854
|
-
const CommunityExportRecordErrorSchema = object({
|
|
6855
|
-
code: string(),
|
|
6856
|
-
message: string()
|
|
6857
|
-
}).strict();
|
|
6858
|
-
const CommunityExportRecordsSchema = object({
|
|
6859
|
-
exportId: string().uuid(),
|
|
6860
|
-
name: string().optional(),
|
|
6861
|
-
publicKey: string(),
|
|
6862
|
-
includePrivateKey: boolean(),
|
|
6863
|
-
progress: number().min(0).max(1),
|
|
6864
|
-
size: number().int().nonnegative().optional(),
|
|
6865
|
-
sha256: string().regex(/^[0-9a-f]{64}$/).optional(),
|
|
6866
|
-
url: string().optional(),
|
|
6867
|
-
error: CommunityExportRecordErrorSchema.optional()
|
|
6868
|
-
}).strict().superRefine((rec, ctx) => {
|
|
6869
|
-
if (rec.progress !== 1 || rec.error) return;
|
|
6870
|
-
for (const field of [
|
|
6871
|
-
"size",
|
|
6872
|
-
"sha256",
|
|
6873
|
-
"url"
|
|
6874
|
-
]) if (rec[field] === void 0) ctx.addIssue({
|
|
6875
|
-
code: ZodIssueCode.custom,
|
|
6876
|
-
path: [field],
|
|
6877
|
-
message: `${field} must be present when progress === 1 and no error is set`
|
|
6878
|
-
});
|
|
6879
|
-
}).array();
|
|
6880
|
-
const CommunityIpfsReservedFields = r$2([
|
|
6881
|
-
"cid",
|
|
6882
|
-
"shortCid",
|
|
6883
|
-
"updateCid",
|
|
6884
|
-
"shortUpdateCid",
|
|
6885
|
-
"shortAddress",
|
|
6886
|
-
"nameResolved",
|
|
6887
|
-
"ipnsHops",
|
|
6888
|
-
"anchor",
|
|
6889
|
-
"raw",
|
|
6890
|
-
"shortCommunityAddress",
|
|
6891
|
-
"deleted",
|
|
6892
|
-
"signer",
|
|
6893
|
-
"state",
|
|
6894
|
-
"clients",
|
|
6895
|
-
"startedState",
|
|
6896
|
-
"settings",
|
|
6897
|
-
"editable",
|
|
6898
|
-
"publishingState",
|
|
6899
|
-
"updatingState",
|
|
6900
|
-
"started",
|
|
6901
|
-
"exports",
|
|
6902
|
-
"abortSignal",
|
|
6903
|
-
"_pendingWarmStartKeyMigration"
|
|
6904
|
-
], t$3(CommunityIpfsSchema.shape));
|
|
6905
|
-
//#endregion
|
|
6906
|
-
//#region dist/node/publications/comment-moderation/schema.js
|
|
6907
|
-
const ModeratorOptionsSchema = object({
|
|
6908
|
-
flairs: FlairSchema.array().optional(),
|
|
6909
|
-
spoiler: boolean().optional(),
|
|
6910
|
-
nsfw: boolean().optional(),
|
|
6911
|
-
pinned: boolean().optional(),
|
|
6912
|
-
locked: boolean().optional(),
|
|
6913
|
-
archived: boolean().optional(),
|
|
6914
|
-
approved: boolean().optional(),
|
|
6915
|
-
removed: boolean().optional(),
|
|
6916
|
-
purged: boolean().optional(),
|
|
6917
|
-
reason: string().optional(),
|
|
6918
|
-
author: CommunityAuthorSchema.pick({
|
|
6919
|
-
banExpiresAt: true,
|
|
6920
|
-
flairs: true
|
|
6921
|
-
}).loose().optional()
|
|
6922
|
-
}).strict();
|
|
6923
|
-
const CreateCommentModerationOptionsSchema = CreatePublicationUserOptionsSchema.extend({
|
|
6924
|
-
commentModeration: ModeratorOptionsSchema.loose(),
|
|
6925
|
-
commentCid: CidStringSchema
|
|
6926
|
-
}).strict();
|
|
6927
|
-
const CreateCommentModerationOptionsWithRefinementSchema = CreateCommentModerationOptionsSchema.refine(hasAtLeastOneCommunityIdentifier, atLeastOneCommunityIdentifierMessage);
|
|
6928
|
-
const CommentModerationSignedPropertyNames = t$3(n$3(CreateCommentModerationOptionsSchema.shape, keysToOmitFromSignedPropertyNames));
|
|
6929
|
-
const commentModerationPickOptions = t$2([...CommentModerationSignedPropertyNames, "signature"], (x) => [x, true]);
|
|
6930
|
-
const CommentModerationPubsubMessagePublicationSchema = CreateCommentModerationOptionsSchema.merge(PublicationBaseBeforeSigning).extend({
|
|
6931
|
-
signature: JsonSignatureSchema,
|
|
6932
|
-
author: PublicationBaseBeforeSigning.shape.author.unwrap().loose().optional()
|
|
6933
|
-
}).pick(commentModerationPickOptions).strict();
|
|
6934
|
-
const CommentModerationsTableRowSchema = CommentModerationPubsubMessagePublicationSchema.extend({
|
|
6935
|
-
insertedAt: PKCTimestampSchema,
|
|
6936
|
-
modSignerAddress: SignerWithAddressPublicKeySchema.shape.address,
|
|
6937
|
-
extraProps: looseObject({}).optional(),
|
|
6938
|
-
targetAuthorSignerAddress: SignerWithAddressPublicKeySchema.shape.address.optional(),
|
|
6939
|
-
targetAuthorDomain: string().optional()
|
|
6940
|
-
});
|
|
6941
|
-
const CommentModerationChallengeRequestToEncryptSchema = CreateCommentModerationOptionsSchema.shape.challengeRequest.unwrap().extend({ commentModeration: CommentModerationPubsubMessagePublicationSchema.loose() });
|
|
6942
|
-
const CommentModerationReservedFields = r$2(n([
|
|
6943
|
-
...t$3(CommentModerationsTableRowSchema.shape),
|
|
6944
|
-
...t$3(CommentModerationChallengeRequestToEncryptSchema.shape),
|
|
6945
|
-
"shortCommunityAddress",
|
|
6946
|
-
"shortCommunityAddress",
|
|
6947
|
-
"communityAddress",
|
|
6948
|
-
"communityPublicKey",
|
|
6949
|
-
"communityName",
|
|
6950
|
-
"shortCommentCid",
|
|
6951
|
-
"state",
|
|
6952
|
-
"publishingState",
|
|
6953
|
-
"signer",
|
|
6954
|
-
"clients",
|
|
6955
|
-
"nameResolved"
|
|
6956
|
-
]), t$3(CommentModerationPubsubMessagePublicationSchema.shape));
|
|
6957
|
-
//#endregion
|
|
6958
|
-
//#region dist/node/publications/community-edit/schema.js
|
|
6959
|
-
const CreateCommunityEditPublicationOptionsSchema = CreatePublicationUserOptionsSchema.extend({ communityEdit: CommunityEditOptionsSchema.strict() }).strict();
|
|
6960
|
-
const CreateCommunityEditPublicationOptionsWithRefinementSchema = CreateCommunityEditPublicationOptionsSchema.refine(hasAtLeastOneCommunityIdentifier, atLeastOneCommunityIdentifierMessage);
|
|
6961
|
-
const CommunityEditPublicationSignedPropertyNames = t$3(n$3(CreateCommunityEditPublicationOptionsSchema.shape, keysToOmitFromSignedPropertyNames));
|
|
6962
|
-
const communityEditPublicationPickOptions = t$2([...CommunityEditPublicationSignedPropertyNames, "signature"], (x) => [x, true]);
|
|
6963
|
-
const CommunityEditPubsubMessagePublicationSchema = CreateCommunityEditPublicationOptionsSchema.merge(PublicationBaseBeforeSigning).extend({
|
|
6964
|
-
signature: JsonSignatureSchema,
|
|
6965
|
-
author: PublicationBaseBeforeSigning.shape.author.unwrap().loose().optional()
|
|
6966
|
-
}).pick(communityEditPublicationPickOptions).strict();
|
|
6967
|
-
const CommunityEditPublicationChallengeRequestToEncryptSchema = CreateCommunityEditPublicationOptionsSchema.shape.challengeRequest.unwrap().extend({ communityEdit: CommunityEditPubsubMessagePublicationSchema.loose() });
|
|
6968
|
-
const CommunityEditPublicationPubsubReservedFields = r$2([
|
|
6969
|
-
...t$3(CommunityEditPublicationChallengeRequestToEncryptSchema.shape),
|
|
6970
|
-
"shortCommunityAddress",
|
|
6971
|
-
"shortCommunityAddress",
|
|
6972
|
-
"communityAddress",
|
|
6973
|
-
"communityPublicKey",
|
|
6974
|
-
"communityName",
|
|
6975
|
-
"state",
|
|
6976
|
-
"publishingState",
|
|
6977
|
-
"signer",
|
|
6978
|
-
"clients",
|
|
6979
|
-
"nameResolved"
|
|
6980
|
-
], t$3(CommunityEditPubsubMessagePublicationSchema.shape));
|
|
6981
|
-
//#endregion
|
|
6982
6574
|
//#region node_modules/mime-db/db.json
|
|
6983
6575
|
var require_db = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6984
6576
|
module.exports = {
|
|
@@ -14711,7 +14303,653 @@ var require_ext_name = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
14711
14303
|
mime: obj[x]
|
|
14712
14304
|
}));
|
|
14713
14305
|
};
|
|
14714
|
-
}));
|
|
14306
|
+
}));
|
|
14307
|
+
//#endregion
|
|
14308
|
+
//#region dist/node/publications/vote/schema.js
|
|
14309
|
+
const CreateVoteUserOptionsSchema = CreatePublicationUserOptionsSchema.extend({
|
|
14310
|
+
commentCid: CidStringSchema,
|
|
14311
|
+
vote: union([
|
|
14312
|
+
literal(1),
|
|
14313
|
+
literal(0),
|
|
14314
|
+
literal(-1)
|
|
14315
|
+
])
|
|
14316
|
+
}).strict();
|
|
14317
|
+
const CreateVoteUserOptionsWithRefinementSchema = CreateVoteUserOptionsSchema.refine(hasAtLeastOneCommunityIdentifier, atLeastOneCommunityIdentifierMessage);
|
|
14318
|
+
const VoteSignedPropertyNames = t$3(n$3(CreateVoteUserOptionsSchema.shape, keysToOmitFromSignedPropertyNames));
|
|
14319
|
+
const votePickOptions = t$2([...VoteSignedPropertyNames, "signature"], (x) => [x, true]);
|
|
14320
|
+
const VotePubsubMessagePublicationSchema = CreateVoteUserOptionsSchema.merge(PublicationBaseBeforeSigning).extend({
|
|
14321
|
+
signature: JsonSignatureSchema,
|
|
14322
|
+
author: PublicationBaseBeforeSigning.shape.author.unwrap().loose().optional()
|
|
14323
|
+
}).pick(votePickOptions).strict();
|
|
14324
|
+
const VoteTablesRowSchema = VotePubsubMessagePublicationSchema.pick({
|
|
14325
|
+
commentCid: true,
|
|
14326
|
+
protocolVersion: true,
|
|
14327
|
+
timestamp: true,
|
|
14328
|
+
vote: true
|
|
14329
|
+
}).extend({
|
|
14330
|
+
insertedAt: PKCTimestampSchema,
|
|
14331
|
+
authorSignerAddress: SignerWithAddressPublicKeySchema.shape.address,
|
|
14332
|
+
extraProps: looseObject({}).optional()
|
|
14333
|
+
});
|
|
14334
|
+
const VoteChallengeRequestToEncryptSchema = CreateVoteUserOptionsSchema.shape.challengeRequest.unwrap().extend({ vote: VotePubsubMessagePublicationSchema.loose() });
|
|
14335
|
+
const VotePubsubReservedFields = r$2(n([
|
|
14336
|
+
...t$3(VoteTablesRowSchema.shape),
|
|
14337
|
+
...t$3(VoteChallengeRequestToEncryptSchema.shape),
|
|
14338
|
+
"shortCommunityAddress",
|
|
14339
|
+
"shortCommunityAddress",
|
|
14340
|
+
"communityAddress",
|
|
14341
|
+
"communityPublicKey",
|
|
14342
|
+
"communityName",
|
|
14343
|
+
"state",
|
|
14344
|
+
"publishingState",
|
|
14345
|
+
"signer",
|
|
14346
|
+
"clients",
|
|
14347
|
+
"nameResolved"
|
|
14348
|
+
]), t$3(VotePubsubMessagePublicationSchema.shape));
|
|
14349
|
+
//#endregion
|
|
14350
|
+
//#region dist/node/domain-util.js
|
|
14351
|
+
function isStringDomain(x) {
|
|
14352
|
+
return typeof x === "string" && x.includes(".");
|
|
14353
|
+
}
|
|
14354
|
+
function isEthAliasDomain$1(address) {
|
|
14355
|
+
const lower = address.toLowerCase();
|
|
14356
|
+
return lower.endsWith(".eth") || lower.endsWith(".bso");
|
|
14357
|
+
}
|
|
14358
|
+
function normalizeEthAliasDomain(address) {
|
|
14359
|
+
return address.endsWith(".bso") ? address.slice(0, -4) + ".eth" : address;
|
|
14360
|
+
}
|
|
14361
|
+
//#endregion
|
|
14362
|
+
//#region dist/node/community/schema.js
|
|
14363
|
+
const CommunityEncryptionSchema = looseObject({
|
|
14364
|
+
type: string().min(1),
|
|
14365
|
+
publicKey: SignerWithAddressPublicKeySchema.shape.publicKey
|
|
14366
|
+
});
|
|
14367
|
+
const CommunityRoleSchema = looseObject({ role: _enum([
|
|
14368
|
+
"owner",
|
|
14369
|
+
"admin",
|
|
14370
|
+
"moderator"
|
|
14371
|
+
]).or(string().min(1)) });
|
|
14372
|
+
const PubsubTopicSchema = string().min(1);
|
|
14373
|
+
const CommunitySuggestedSchema = looseObject({
|
|
14374
|
+
primaryColor: string().optional(),
|
|
14375
|
+
secondaryColor: string().optional(),
|
|
14376
|
+
avatarUrl: string().min(1).optional(),
|
|
14377
|
+
bannerUrl: string().min(1).optional(),
|
|
14378
|
+
backgroundUrl: string().min(1).optional(),
|
|
14379
|
+
language: string().optional()
|
|
14380
|
+
});
|
|
14381
|
+
const CommunityFeaturesSchema = looseObject({
|
|
14382
|
+
noVideos: boolean().optional(),
|
|
14383
|
+
noSpoilers: boolean().optional(),
|
|
14384
|
+
noImages: boolean().optional(),
|
|
14385
|
+
noVideoReplies: boolean().optional(),
|
|
14386
|
+
noSpoilerReplies: boolean().optional(),
|
|
14387
|
+
noImageReplies: boolean().optional(),
|
|
14388
|
+
noReplyLinks: boolean().optional(),
|
|
14389
|
+
noPolls: boolean().optional(),
|
|
14390
|
+
noCrossposts: boolean().optional(),
|
|
14391
|
+
maxCrosspostDepth: number().int().nonnegative().optional(),
|
|
14392
|
+
noNestedReplies: boolean().optional(),
|
|
14393
|
+
noArchive: boolean().optional(),
|
|
14394
|
+
safeForWork: boolean().optional(),
|
|
14395
|
+
authorFlairs: boolean().optional(),
|
|
14396
|
+
requireAuthorFlairs: boolean().optional(),
|
|
14397
|
+
postFlairs: boolean().optional(),
|
|
14398
|
+
requirePostFlairs: boolean().optional(),
|
|
14399
|
+
noMarkdownImages: boolean().optional(),
|
|
14400
|
+
noMarkdownVideos: boolean().optional(),
|
|
14401
|
+
noMarkdownAudio: boolean().optional(),
|
|
14402
|
+
noAudio: boolean().optional(),
|
|
14403
|
+
noAudioReplies: boolean().optional(),
|
|
14404
|
+
markdownImageReplies: boolean().optional(),
|
|
14405
|
+
markdownVideoReplies: boolean().optional(),
|
|
14406
|
+
noPostUpvotes: boolean().optional(),
|
|
14407
|
+
noReplyUpvotes: boolean().optional(),
|
|
14408
|
+
noPostDownvotes: boolean().optional(),
|
|
14409
|
+
noReplyDownvotes: boolean().optional(),
|
|
14410
|
+
noUpvotes: boolean().optional(),
|
|
14411
|
+
noDownvotes: boolean().optional(),
|
|
14412
|
+
requirePostLink: boolean().optional(),
|
|
14413
|
+
requirePostLinkIsMedia: boolean().optional(),
|
|
14414
|
+
requireReplyLink: boolean().optional(),
|
|
14415
|
+
requireReplyLinkIsMedia: boolean().optional(),
|
|
14416
|
+
pseudonymityMode: _enum([
|
|
14417
|
+
"per-post",
|
|
14418
|
+
"per-reply",
|
|
14419
|
+
"per-author"
|
|
14420
|
+
]).optional()
|
|
14421
|
+
});
|
|
14422
|
+
const ChallengeOptionInputSchema = looseObject({
|
|
14423
|
+
option: string(),
|
|
14424
|
+
label: string(),
|
|
14425
|
+
default: string().optional(),
|
|
14426
|
+
description: string().optional(),
|
|
14427
|
+
placeholder: string().optional(),
|
|
14428
|
+
required: boolean().optional()
|
|
14429
|
+
});
|
|
14430
|
+
const ChallengeResultSchema = object({
|
|
14431
|
+
success: literal(true),
|
|
14432
|
+
comment: looseObject({}).optional(),
|
|
14433
|
+
commentUpdate: looseObject({}).optional()
|
|
14434
|
+
}).or(object({
|
|
14435
|
+
success: literal(false),
|
|
14436
|
+
error: string(),
|
|
14437
|
+
reason: string().optional()
|
|
14438
|
+
}));
|
|
14439
|
+
const ChallengeFromGetChallengeSchema = object({
|
|
14440
|
+
challenge: string(),
|
|
14441
|
+
verify: _function({
|
|
14442
|
+
input: [lazy(() => ChallengeAnswerStringSchema)],
|
|
14443
|
+
output: promise(ChallengeResultSchema)
|
|
14444
|
+
}),
|
|
14445
|
+
type: string().min(1),
|
|
14446
|
+
caseInsensitive: boolean().optional()
|
|
14447
|
+
}).strict();
|
|
14448
|
+
const ResultOfGetChallengeSchema = ChallengeFromGetChallengeSchema.or(ChallengeResultSchema);
|
|
14449
|
+
const ChallengeExcludeCommunitySchema = object({
|
|
14450
|
+
addresses: CommunityAddressSchema.array().nonempty(),
|
|
14451
|
+
maxCommentCids: number().nonnegative().int(),
|
|
14452
|
+
postScore: number().int().optional(),
|
|
14453
|
+
replyScore: number().int().optional(),
|
|
14454
|
+
firstCommentTimestamp: PKCTimestampSchema.optional()
|
|
14455
|
+
}).strict();
|
|
14456
|
+
const excludePublicationFieldSchema = boolean().optional();
|
|
14457
|
+
const ChallengeExcludePublicationTypeSchema = looseObject({
|
|
14458
|
+
post: excludePublicationFieldSchema,
|
|
14459
|
+
reply: excludePublicationFieldSchema,
|
|
14460
|
+
vote: excludePublicationFieldSchema,
|
|
14461
|
+
commentEdit: excludePublicationFieldSchema,
|
|
14462
|
+
commentModeration: excludePublicationFieldSchema,
|
|
14463
|
+
communityEdit: excludePublicationFieldSchema
|
|
14464
|
+
}).refine((args) => !e$2(JSON.parse(JSON.stringify(args))), messages.ERR_CAN_NOT_SET_EXCLUDE_PUBLICATION_TO_EMPTY_OBJECT);
|
|
14465
|
+
const ChallengeExcludePublicKeySchema = AuthorAddressSchema.refine((address) => !isStringDomain(address), messages.ERR_CHALLENGE_EXCLUDE_PUBLIC_KEYS_MUST_NOT_BE_DOMAIN);
|
|
14466
|
+
const ChallengeExcludeNameSchema = AuthorAddressSchema.refine((name) => isStringDomain(name), messages.ERR_CHALLENGE_EXCLUDE_NAMES_MUST_BE_DOMAIN);
|
|
14467
|
+
const ChallengeExcludeSchema = looseObject({
|
|
14468
|
+
community: ChallengeExcludeCommunitySchema.optional(),
|
|
14469
|
+
postScore: number().int().optional(),
|
|
14470
|
+
replyScore: number().int().optional(),
|
|
14471
|
+
postCount: number().nonnegative().int().optional(),
|
|
14472
|
+
replyCount: number().nonnegative().int().optional(),
|
|
14473
|
+
firstCommentTimestamp: PKCTimestampSchema.optional(),
|
|
14474
|
+
challenges: number().nonnegative().int().array().optional(),
|
|
14475
|
+
roles: CommunityRoleSchema.shape.role.array().nonempty().optional(),
|
|
14476
|
+
publicKeys: ChallengeExcludePublicKeySchema.array().nonempty().optional(),
|
|
14477
|
+
names: ChallengeExcludeNameSchema.array().nonempty().optional(),
|
|
14478
|
+
rateLimit: number().nonnegative().int().optional(),
|
|
14479
|
+
rateLimitChallengeSuccess: boolean().optional(),
|
|
14480
|
+
publicationType: ChallengeExcludePublicationTypeSchema.optional()
|
|
14481
|
+
});
|
|
14482
|
+
const ChallengeExcludeSettingSchema = ChallengeExcludeSchema.refine((exclude) => !("address" in exclude), messages.ERR_CHALLENGE_EXCLUDE_ADDRESS_FIELD_REMOVED).refine((exclude) => !("role" in exclude), messages.ERR_CHALLENGE_EXCLUDE_ROLE_FIELD_RENAMED);
|
|
14483
|
+
const CommunityChallengeSettingSchema = object({
|
|
14484
|
+
path: string().optional(),
|
|
14485
|
+
name: string().optional(),
|
|
14486
|
+
options: record(string(), string()).optional(),
|
|
14487
|
+
publicOptions: string().array().optional(),
|
|
14488
|
+
exclude: ChallengeExcludeSettingSchema.array().nonempty().optional(),
|
|
14489
|
+
description: string().optional(),
|
|
14490
|
+
pendingApproval: boolean().optional()
|
|
14491
|
+
}).strict().refine((challengeData) => challengeData.path || challengeData.name, "Path or name of challenge has to be defined");
|
|
14492
|
+
const GetChallengeArgsSchema = object({
|
|
14493
|
+
challengeSettings: CommunityChallengeSettingSchema,
|
|
14494
|
+
challengeRequestMessage: custom(),
|
|
14495
|
+
challengeIndex: number().int().nonnegative(),
|
|
14496
|
+
community: custom(),
|
|
14497
|
+
authorIdentityMatcher: custom().optional()
|
|
14498
|
+
});
|
|
14499
|
+
const ChallengeFileSchema = looseObject({
|
|
14500
|
+
optionInputs: ChallengeOptionInputSchema.array().optional(),
|
|
14501
|
+
type: ChallengeFromGetChallengeSchema.shape.type,
|
|
14502
|
+
challenge: ChallengeFromGetChallengeSchema.shape.challenge.optional(),
|
|
14503
|
+
caseInsensitive: boolean().optional(),
|
|
14504
|
+
description: string().optional(),
|
|
14505
|
+
getChallenge: _function({
|
|
14506
|
+
input: [GetChallengeArgsSchema],
|
|
14507
|
+
output: promise(ResultOfGetChallengeSchema)
|
|
14508
|
+
}),
|
|
14509
|
+
validateChallengeSettings: _function({
|
|
14510
|
+
input: [object({ challengeSettings: CommunityChallengeSettingSchema })],
|
|
14511
|
+
output: _void()
|
|
14512
|
+
}).optional()
|
|
14513
|
+
});
|
|
14514
|
+
const CommunityChallengeSchema = looseObject({
|
|
14515
|
+
exclude: ChallengeExcludeSchema.array().nonempty().optional(),
|
|
14516
|
+
description: ChallengeFileSchema.shape.description,
|
|
14517
|
+
challenge: ChallengeFileSchema.shape.challenge,
|
|
14518
|
+
type: ChallengeFileSchema.shape.type,
|
|
14519
|
+
caseInsensitive: ChallengeFileSchema.shape.caseInsensitive,
|
|
14520
|
+
pendingApproval: boolean().optional(),
|
|
14521
|
+
publicOptions: record(string(), string()).optional()
|
|
14522
|
+
});
|
|
14523
|
+
const ChallengeFileFactorySchema = _function({
|
|
14524
|
+
input: [object({ challengeSettings: CommunityChallengeSettingSchema })],
|
|
14525
|
+
output: ChallengeFileSchema
|
|
14526
|
+
});
|
|
14527
|
+
const CommunityPageSortSettingSchema = object({
|
|
14528
|
+
path: string().optional(),
|
|
14529
|
+
name: string().optional(),
|
|
14530
|
+
options: record(string(), string()).optional(),
|
|
14531
|
+
preloaded: boolean().optional(),
|
|
14532
|
+
privateOptions: string().array().optional()
|
|
14533
|
+
}).strict().refine((pageSortSetting) => pageSortSetting.path || pageSortSetting.name, "Path or name of page sort has to be defined");
|
|
14534
|
+
const CommunityPagesSettingsSchema = object({
|
|
14535
|
+
posts: CommunityPageSortSettingSchema.array().optional(),
|
|
14536
|
+
replies: CommunityPageSortSettingSchema.array().optional()
|
|
14537
|
+
}).strict();
|
|
14538
|
+
const PageSortFileFactoryArgsSchema = object({ pageSortSettings: CommunityPageSortSettingSchema });
|
|
14539
|
+
const PageSortScopeSchema = _enum(["posts", "replies"]);
|
|
14540
|
+
const PageSortFileSchema = looseObject({
|
|
14541
|
+
sortName: SortNameStringSchema,
|
|
14542
|
+
description: string().optional(),
|
|
14543
|
+
optionInputs: ChallengeOptionInputSchema.array().optional(),
|
|
14544
|
+
scope: PageSortScopeSchema.optional(),
|
|
14545
|
+
flat: boolean().optional(),
|
|
14546
|
+
defaultOptions: record(string(), string()).optional(),
|
|
14547
|
+
requireReplies: boolean().optional(),
|
|
14548
|
+
score: _function({
|
|
14549
|
+
input: [object({
|
|
14550
|
+
comment: custom(),
|
|
14551
|
+
commentUpdate: custom(),
|
|
14552
|
+
options: record(string(), string()),
|
|
14553
|
+
baseTimestamp: number(),
|
|
14554
|
+
replies: custom().array().optional()
|
|
14555
|
+
})],
|
|
14556
|
+
output: number().nullable()
|
|
14557
|
+
}),
|
|
14558
|
+
validatePageSortSettings: _function({
|
|
14559
|
+
input: [object({ pageSortSettings: CommunityPageSortSettingSchema })],
|
|
14560
|
+
output: _void()
|
|
14561
|
+
}).optional()
|
|
14562
|
+
});
|
|
14563
|
+
const PageSortFileFactorySchema = _function({
|
|
14564
|
+
input: [PageSortFileFactoryArgsSchema],
|
|
14565
|
+
output: PageSortFileSchema
|
|
14566
|
+
});
|
|
14567
|
+
const CommunityPageSortSchema = looseObject({
|
|
14568
|
+
name: string().optional(),
|
|
14569
|
+
description: PageSortFileSchema.shape.description,
|
|
14570
|
+
publicOptions: record(string(), string()).optional()
|
|
14571
|
+
});
|
|
14572
|
+
const CommunityPageSortsSchema = object({
|
|
14573
|
+
posts: record(SortNameStringSchema, CommunityPageSortSchema).optional(),
|
|
14574
|
+
replies: record(SortNameStringSchema, CommunityPageSortSchema).optional()
|
|
14575
|
+
}).strict();
|
|
14576
|
+
const CommunityAnchorSchema = object({ publicKey: string().refine((arg) => isIpnsName(arg), messages.ERR_ANCHOR_PUBLIC_KEY_IS_INVALID) }).strict();
|
|
14577
|
+
const CommunityIpfsSchema = object({
|
|
14578
|
+
posts: PostsPagesIpfsSchema.optional(),
|
|
14579
|
+
modQueue: ModQueuePagesIpfsSchema.optional(),
|
|
14580
|
+
challenges: CommunityChallengeSchema.array(),
|
|
14581
|
+
signature: JsonSignatureSchema,
|
|
14582
|
+
encryption: CommunityEncryptionSchema,
|
|
14583
|
+
name: string().min(1).optional(),
|
|
14584
|
+
anchor: CommunityAnchorSchema.optional(),
|
|
14585
|
+
createdAt: PKCTimestampSchema,
|
|
14586
|
+
updatedAt: PKCTimestampSchema,
|
|
14587
|
+
pubsubTopic: PubsubTopicSchema.optional(),
|
|
14588
|
+
statsCid: CidStringSchema.optional(),
|
|
14589
|
+
protocolVersion: ProtocolVersionSchema,
|
|
14590
|
+
postUpdates: record(nonNegativeIntStringSchema, CidStringSchema).optional(),
|
|
14591
|
+
title: string().optional(),
|
|
14592
|
+
description: string().optional(),
|
|
14593
|
+
roles: record(AuthorAddressSchema, CommunityRoleSchema).optional(),
|
|
14594
|
+
rules: string().array().optional(),
|
|
14595
|
+
lastPostCid: CidStringSchema.optional(),
|
|
14596
|
+
lastCommentCid: CidStringSchema.optional(),
|
|
14597
|
+
features: CommunityFeaturesSchema.optional(),
|
|
14598
|
+
suggested: CommunitySuggestedSchema.optional(),
|
|
14599
|
+
flairs: record(string(), FlairSchema.array()).optional(),
|
|
14600
|
+
pageSorts: CommunityPageSortsSchema.optional()
|
|
14601
|
+
}).strict();
|
|
14602
|
+
const CommunitySignedPropertyNames = t$3(n$3(CommunityIpfsSchema.shape, ["signature"]));
|
|
14603
|
+
const RpcRemoteCommunityUpdateEventResultSchema = object({
|
|
14604
|
+
community: CommunityIpfsSchema.loose().optional(),
|
|
14605
|
+
resetInstance: boolean().optional(),
|
|
14606
|
+
runtimeFields: object({
|
|
14607
|
+
updateCid: CidStringSchema.optional(),
|
|
14608
|
+
updatingState: custom().optional(),
|
|
14609
|
+
newPublicKey: string().optional(),
|
|
14610
|
+
nameResolved: boolean().optional(),
|
|
14611
|
+
ipnsHops: array(string()).optional()
|
|
14612
|
+
}).passthrough()
|
|
14613
|
+
});
|
|
14614
|
+
const CreateRemoteCommunityOptionsSchema = CommunityIpfsSchema.partial().extend({
|
|
14615
|
+
address: CommunityAddressSchema.optional(),
|
|
14616
|
+
publicKey: string().min(1).optional(),
|
|
14617
|
+
posts: CommunityIpfsSchema.shape.posts.or(PostsPagesIpfsSchema.pick({ pageCids: true })),
|
|
14618
|
+
updateCid: CidStringSchema.optional()
|
|
14619
|
+
}).strict().refine((opts) => opts.address || opts.name || opts.publicKey, "At least one of address, name, or publicKey must be provided");
|
|
14620
|
+
const CommunitySettingsSchema = object({
|
|
14621
|
+
fetchThumbnailUrls: boolean().optional(),
|
|
14622
|
+
fetchThumbnailUrlsProxyUrl: string().optional(),
|
|
14623
|
+
challenges: CommunityChallengeSettingSchema.array().optional(),
|
|
14624
|
+
maxPendingApprovalCount: number().int().nonnegative().optional(),
|
|
14625
|
+
purgeDisapprovedCommentsOlderThan: number().int().nonnegative().optional(),
|
|
14626
|
+
disablePubsubChallengeExchange: boolean().optional(),
|
|
14627
|
+
pages: CommunityPagesSettingsSchema.optional()
|
|
14628
|
+
}).strict();
|
|
14629
|
+
const CommunityRolesToEditSchema = record(AuthorAddressSchema, CommunityRoleSchema.or(_undefined()));
|
|
14630
|
+
const CommunityEditOptionsSchema = CommunityIpfsSchema.pick({
|
|
14631
|
+
flairs: true,
|
|
14632
|
+
name: true,
|
|
14633
|
+
title: true,
|
|
14634
|
+
description: true,
|
|
14635
|
+
roles: true,
|
|
14636
|
+
rules: true,
|
|
14637
|
+
pubsubTopic: true,
|
|
14638
|
+
features: true,
|
|
14639
|
+
suggested: true
|
|
14640
|
+
}).extend({
|
|
14641
|
+
address: CommunityAddressSchema.optional(),
|
|
14642
|
+
settings: CommunitySettingsSchema.optional(),
|
|
14643
|
+
roles: CommunityRolesToEditSchema.optional()
|
|
14644
|
+
}).partial().strict();
|
|
14645
|
+
const CreateNewLocalCommunityUserOptionsSchema = CommunityEditOptionsSchema.omit({ address: true }).extend({
|
|
14646
|
+
signer: CreateSignerSchema.optional(),
|
|
14647
|
+
anchor: CommunityAnchorSchema.optional(),
|
|
14648
|
+
roles: CommunityIpfsSchema.shape.roles
|
|
14649
|
+
}).strict();
|
|
14650
|
+
CreateNewLocalCommunityUserOptionsSchema.extend({
|
|
14651
|
+
address: SignerWithAddressPublicKeySchema.shape.address,
|
|
14652
|
+
signer: SignerWithAddressPublicKeySchema
|
|
14653
|
+
}).strict();
|
|
14654
|
+
const CreateRemoteCommunityFunctionArgumentSchema = CreateRemoteCommunityOptionsSchema.or(CommunityIpfsSchema.loose());
|
|
14655
|
+
const CreateRpcCommunityFunctionArgumentSchema = CreateRemoteCommunityFunctionArgumentSchema.or(CreateNewLocalCommunityUserOptionsSchema);
|
|
14656
|
+
CreateNewLocalCommunityUserOptionsSchema.or(CreateRemoteCommunityFunctionArgumentSchema);
|
|
14657
|
+
CommunityAddressSchema.array();
|
|
14658
|
+
object({
|
|
14659
|
+
includePrivateKey: boolean().optional(),
|
|
14660
|
+
exportPath: string().min(1).optional(),
|
|
14661
|
+
signal: custom((v) => v === void 0 || typeof v === "object" && v !== null && "aborted" in v).optional()
|
|
14662
|
+
}).strict();
|
|
14663
|
+
const ExportCommunityModLogsOptionsSchema = object({
|
|
14664
|
+
startTimestamp: number().int().optional(),
|
|
14665
|
+
endTimestamp: number().int().optional(),
|
|
14666
|
+
commentCid: string().min(1).optional(),
|
|
14667
|
+
limit: number().int().positive().optional(),
|
|
14668
|
+
order: _enum(["ASC", "DESC"]).optional()
|
|
14669
|
+
});
|
|
14670
|
+
const CommunityExportRecordErrorSchema = object({
|
|
14671
|
+
code: string(),
|
|
14672
|
+
message: string()
|
|
14673
|
+
}).strict();
|
|
14674
|
+
const CommunityExportRecordsSchema = object({
|
|
14675
|
+
exportId: string().uuid(),
|
|
14676
|
+
name: string().optional(),
|
|
14677
|
+
publicKey: string(),
|
|
14678
|
+
includePrivateKey: boolean(),
|
|
14679
|
+
progress: number().min(0).max(1),
|
|
14680
|
+
size: number().int().nonnegative().optional(),
|
|
14681
|
+
sha256: string().regex(/^[0-9a-f]{64}$/).optional(),
|
|
14682
|
+
url: string().optional(),
|
|
14683
|
+
error: CommunityExportRecordErrorSchema.optional()
|
|
14684
|
+
}).strict().superRefine((rec, ctx) => {
|
|
14685
|
+
if (rec.progress !== 1 || rec.error) return;
|
|
14686
|
+
for (const field of [
|
|
14687
|
+
"size",
|
|
14688
|
+
"sha256",
|
|
14689
|
+
"url"
|
|
14690
|
+
]) if (rec[field] === void 0) ctx.addIssue({
|
|
14691
|
+
code: ZodIssueCode.custom,
|
|
14692
|
+
path: [field],
|
|
14693
|
+
message: `${field} must be present when progress === 1 and no error is set`
|
|
14694
|
+
});
|
|
14695
|
+
}).array();
|
|
14696
|
+
const CommunityIpfsReservedFields = r$2([
|
|
14697
|
+
"cid",
|
|
14698
|
+
"shortCid",
|
|
14699
|
+
"updateCid",
|
|
14700
|
+
"shortUpdateCid",
|
|
14701
|
+
"shortAddress",
|
|
14702
|
+
"nameResolved",
|
|
14703
|
+
"ipnsHops",
|
|
14704
|
+
"anchor",
|
|
14705
|
+
"raw",
|
|
14706
|
+
"shortCommunityAddress",
|
|
14707
|
+
"deleted",
|
|
14708
|
+
"signer",
|
|
14709
|
+
"state",
|
|
14710
|
+
"clients",
|
|
14711
|
+
"startedState",
|
|
14712
|
+
"settings",
|
|
14713
|
+
"editable",
|
|
14714
|
+
"publishingState",
|
|
14715
|
+
"updatingState",
|
|
14716
|
+
"started",
|
|
14717
|
+
"exports",
|
|
14718
|
+
"abortSignal",
|
|
14719
|
+
"_pendingWarmStartKeyMigration"
|
|
14720
|
+
], t$3(CommunityIpfsSchema.shape));
|
|
14721
|
+
//#endregion
|
|
14722
|
+
//#region dist/node/publications/comment-moderation/schema.js
|
|
14723
|
+
const ModeratorOptionsSchema = object({
|
|
14724
|
+
flairs: FlairSchema.array().optional(),
|
|
14725
|
+
spoiler: boolean().optional(),
|
|
14726
|
+
nsfw: boolean().optional(),
|
|
14727
|
+
pinned: boolean().optional(),
|
|
14728
|
+
locked: boolean().optional(),
|
|
14729
|
+
archived: boolean().optional(),
|
|
14730
|
+
approved: boolean().optional(),
|
|
14731
|
+
removed: boolean().optional(),
|
|
14732
|
+
purged: boolean().optional(),
|
|
14733
|
+
reason: string().optional(),
|
|
14734
|
+
author: CommunityAuthorSchema.pick({
|
|
14735
|
+
banExpiresAt: true,
|
|
14736
|
+
flairs: true
|
|
14737
|
+
}).loose().optional()
|
|
14738
|
+
}).strict();
|
|
14739
|
+
const CreateCommentModerationOptionsSchema = CreatePublicationUserOptionsSchema.extend({
|
|
14740
|
+
commentModeration: ModeratorOptionsSchema.loose(),
|
|
14741
|
+
commentCid: CidStringSchema
|
|
14742
|
+
}).strict();
|
|
14743
|
+
const CreateCommentModerationOptionsWithRefinementSchema = CreateCommentModerationOptionsSchema.refine(hasAtLeastOneCommunityIdentifier, atLeastOneCommunityIdentifierMessage);
|
|
14744
|
+
const CommentModerationSignedPropertyNames = t$3(n$3(CreateCommentModerationOptionsSchema.shape, keysToOmitFromSignedPropertyNames));
|
|
14745
|
+
const commentModerationPickOptions = t$2([...CommentModerationSignedPropertyNames, "signature"], (x) => [x, true]);
|
|
14746
|
+
const CommentModerationPubsubMessagePublicationSchema = CreateCommentModerationOptionsSchema.merge(PublicationBaseBeforeSigning).extend({
|
|
14747
|
+
signature: JsonSignatureSchema,
|
|
14748
|
+
author: PublicationBaseBeforeSigning.shape.author.unwrap().loose().optional()
|
|
14749
|
+
}).pick(commentModerationPickOptions).strict();
|
|
14750
|
+
const CommentModerationsTableRowSchema = CommentModerationPubsubMessagePublicationSchema.extend({
|
|
14751
|
+
insertedAt: PKCTimestampSchema,
|
|
14752
|
+
modSignerAddress: SignerWithAddressPublicKeySchema.shape.address,
|
|
14753
|
+
extraProps: looseObject({}).optional(),
|
|
14754
|
+
targetAuthorSignerAddress: SignerWithAddressPublicKeySchema.shape.address.optional(),
|
|
14755
|
+
targetAuthorDomain: string().optional()
|
|
14756
|
+
});
|
|
14757
|
+
const CommentModerationChallengeRequestToEncryptSchema = CreateCommentModerationOptionsSchema.shape.challengeRequest.unwrap().extend({ commentModeration: CommentModerationPubsubMessagePublicationSchema.loose() });
|
|
14758
|
+
const CommentModerationReservedFields = r$2(n([
|
|
14759
|
+
...t$3(CommentModerationsTableRowSchema.shape),
|
|
14760
|
+
...t$3(CommentModerationChallengeRequestToEncryptSchema.shape),
|
|
14761
|
+
"shortCommunityAddress",
|
|
14762
|
+
"shortCommunityAddress",
|
|
14763
|
+
"communityAddress",
|
|
14764
|
+
"communityPublicKey",
|
|
14765
|
+
"communityName",
|
|
14766
|
+
"shortCommentCid",
|
|
14767
|
+
"state",
|
|
14768
|
+
"publishingState",
|
|
14769
|
+
"signer",
|
|
14770
|
+
"clients",
|
|
14771
|
+
"nameResolved"
|
|
14772
|
+
]), t$3(CommentModerationPubsubMessagePublicationSchema.shape));
|
|
14773
|
+
//#endregion
|
|
14774
|
+
//#region dist/node/publications/community-edit/schema.js
|
|
14775
|
+
const CreateCommunityEditPublicationOptionsSchema = CreatePublicationUserOptionsSchema.extend({ communityEdit: CommunityEditOptionsSchema.strict() }).strict();
|
|
14776
|
+
const CreateCommunityEditPublicationOptionsWithRefinementSchema = CreateCommunityEditPublicationOptionsSchema.refine(hasAtLeastOneCommunityIdentifier, atLeastOneCommunityIdentifierMessage);
|
|
14777
|
+
const CommunityEditPublicationSignedPropertyNames = t$3(n$3(CreateCommunityEditPublicationOptionsSchema.shape, keysToOmitFromSignedPropertyNames));
|
|
14778
|
+
const communityEditPublicationPickOptions = t$2([...CommunityEditPublicationSignedPropertyNames, "signature"], (x) => [x, true]);
|
|
14779
|
+
const CommunityEditPubsubMessagePublicationSchema = CreateCommunityEditPublicationOptionsSchema.merge(PublicationBaseBeforeSigning).extend({
|
|
14780
|
+
signature: JsonSignatureSchema,
|
|
14781
|
+
author: PublicationBaseBeforeSigning.shape.author.unwrap().loose().optional()
|
|
14782
|
+
}).pick(communityEditPublicationPickOptions).strict();
|
|
14783
|
+
const CommunityEditPublicationChallengeRequestToEncryptSchema = CreateCommunityEditPublicationOptionsSchema.shape.challengeRequest.unwrap().extend({ communityEdit: CommunityEditPubsubMessagePublicationSchema.loose() });
|
|
14784
|
+
const CommunityEditPublicationPubsubReservedFields = r$2([
|
|
14785
|
+
...t$3(CommunityEditPublicationChallengeRequestToEncryptSchema.shape),
|
|
14786
|
+
"shortCommunityAddress",
|
|
14787
|
+
"shortCommunityAddress",
|
|
14788
|
+
"communityAddress",
|
|
14789
|
+
"communityPublicKey",
|
|
14790
|
+
"communityName",
|
|
14791
|
+
"state",
|
|
14792
|
+
"publishingState",
|
|
14793
|
+
"signer",
|
|
14794
|
+
"clients",
|
|
14795
|
+
"nameResolved"
|
|
14796
|
+
], t$3(CommunityEditPubsubMessagePublicationSchema.shape));
|
|
14797
|
+
//#endregion
|
|
14798
|
+
//#region dist/node/generated-version.js
|
|
14799
|
+
const version = "0.0.108";
|
|
14800
|
+
//#endregion
|
|
14801
|
+
//#region dist/node/version.js
|
|
14802
|
+
const protocolVersion = ProtocolVersionSchema.parse("1.0.0");
|
|
14803
|
+
const pkcJsVersion = version;
|
|
14804
|
+
var version_default = {
|
|
14805
|
+
PKC_JS_VERSION: pkcJsVersion,
|
|
14806
|
+
DB_VERSION: 43,
|
|
14807
|
+
PROTOCOL_VERSION: protocolVersion,
|
|
14808
|
+
USER_AGENT: UserAgentSchema.parse(`/pkc-js:${pkcJsVersion}/`)
|
|
14809
|
+
};
|
|
14810
|
+
string().min(1);
|
|
14811
|
+
const Uint8ArraySchema = custom((value) => value instanceof Uint8Array, { message: "Expected Uint8Array" });
|
|
14812
|
+
const IpfsGatewayUrlSchema = url().startsWith("http", "IPFS gateway URL must start with http:// or https://");
|
|
14813
|
+
const RpcUrlSchema = url().startsWith("ws", "PKC RPC URL must start with ws:// or wss://");
|
|
14814
|
+
const KuboRpcCreateClientOptionSchema = custom();
|
|
14815
|
+
const DirectoryPathSchema = string();
|
|
14816
|
+
const NameResolveCacheOptionsSchema = object({ maxAge: number().int().nonnegative().optional() });
|
|
14817
|
+
const NameResolverSchema = custom((val) => {
|
|
14818
|
+
if (val == null || typeof val !== "object") return false;
|
|
14819
|
+
const v = val;
|
|
14820
|
+
return typeof v.key === "string" && v.key.length > 0 && typeof v.resolve === "function" && typeof v.canResolve === "function" && typeof v.provider === "string" && v.provider.length > 0 && (v.destroy === void 0 || typeof v.destroy === "function");
|
|
14821
|
+
}, { message: "Invalid name resolver: must have key (string), resolve (function), canResolve (function), provider (string), and optionally destroy (function)" });
|
|
14822
|
+
const NameResolverSerializedSchema = object({
|
|
14823
|
+
key: string().min(1),
|
|
14824
|
+
provider: string().min(1)
|
|
14825
|
+
});
|
|
14826
|
+
const TransformKuboRpcClientOptionsSchema = KuboRpcCreateClientOptionSchema.array().transform((options) => options.map(parseIpfsRawOptionToIpfsOptions));
|
|
14827
|
+
const ParsedKuboRpcClientOptionsSchema = custom();
|
|
14828
|
+
const PKCUserOptionBaseSchema = object({
|
|
14829
|
+
ipfsGatewayUrls: IpfsGatewayUrlSchema.array().optional(),
|
|
14830
|
+
kuboRpcClientsOptions: TransformKuboRpcClientOptionsSchema.optional(),
|
|
14831
|
+
httpRoutersOptions: string().url().startsWith("http", "HTTP router URL must start with http:// or https://").array().optional(),
|
|
14832
|
+
pubsubKuboRpcClientsOptions: TransformKuboRpcClientOptionsSchema.optional(),
|
|
14833
|
+
pkcRpcClientsOptions: RpcUrlSchema.array().nonempty().optional(),
|
|
14834
|
+
dataPath: DirectoryPathSchema.optional(),
|
|
14835
|
+
resolveAuthorNames: boolean(),
|
|
14836
|
+
nameResolvers: NameResolverSchema.array().optional(),
|
|
14837
|
+
libp2pJsClientsOptions: object({
|
|
14838
|
+
key: string().min(1),
|
|
14839
|
+
libp2pOptions: custom().default({}),
|
|
14840
|
+
heliaOptions: custom().refine((options) => !("http" in options), { message: "heliaOptions.http is not supported: the libp2p-js client is composed without Helia's HTTP components" }).default({}),
|
|
14841
|
+
blockstoreOptions: object({
|
|
14842
|
+
maxBytes: number().positive().optional(),
|
|
14843
|
+
lowWaterRatio: number().gt(0).lte(1).optional()
|
|
14844
|
+
}).optional()
|
|
14845
|
+
}).array().max(1, "Only one libp2pJsClientOptions is allowed at the moment").optional(),
|
|
14846
|
+
validatePages: boolean(),
|
|
14847
|
+
userAgent: UserAgentSchema,
|
|
14848
|
+
publishInterval: number().positive(),
|
|
14849
|
+
updateInterval: number().positive(),
|
|
14850
|
+
noData: boolean(),
|
|
14851
|
+
challenges: record(string(), custom()).optional(),
|
|
14852
|
+
pageSorts: record(string(), custom()).optional()
|
|
14853
|
+
});
|
|
14854
|
+
const defaultPubsubKuboRpcClientsOptions = [{ url: "https://pubsubprovider.xyz/api/v0" }, { url: "https://plebpubsub.xyz/api/v0" }];
|
|
14855
|
+
const defaultIpfsGatewayUrls = [
|
|
14856
|
+
"https://ipfsgateway.xyz",
|
|
14857
|
+
"https://gateway.plebpubsub.xyz",
|
|
14858
|
+
"https://gateway.forumindex.com"
|
|
14859
|
+
];
|
|
14860
|
+
const PKCUserOptionsSchema = PKCUserOptionBaseSchema.extend({
|
|
14861
|
+
ipfsGatewayUrls: PKCUserOptionBaseSchema.shape.ipfsGatewayUrls.default([...defaultIpfsGatewayUrls]).transform((val) => val === void 0 ? [...defaultIpfsGatewayUrls] : val),
|
|
14862
|
+
pubsubKuboRpcClientsOptions: PKCUserOptionBaseSchema.shape.pubsubKuboRpcClientsOptions.default([...defaultPubsubKuboRpcClientsOptions]),
|
|
14863
|
+
httpRoutersOptions: PKCUserOptionBaseSchema.shape.httpRoutersOptions.default([
|
|
14864
|
+
"https://peers.pleb.bot",
|
|
14865
|
+
"https://routing.lol",
|
|
14866
|
+
"https://peers.forumindex.com",
|
|
14867
|
+
"https://peers.plebpubsub.xyz",
|
|
14868
|
+
"https://routerofbitsocial.xyz",
|
|
14869
|
+
"https://bsotracker.online"
|
|
14870
|
+
]),
|
|
14871
|
+
resolveAuthorNames: PKCUserOptionBaseSchema.shape.resolveAuthorNames.default(true),
|
|
14872
|
+
publishInterval: PKCUserOptionBaseSchema.shape.publishInterval.default(2e4),
|
|
14873
|
+
updateInterval: PKCUserOptionBaseSchema.shape.updateInterval.default(6e4),
|
|
14874
|
+
noData: PKCUserOptionBaseSchema.shape.noData.default(false),
|
|
14875
|
+
validatePages: PKCUserOptionBaseSchema.shape.validatePages.default(true),
|
|
14876
|
+
userAgent: PKCUserOptionBaseSchema.shape.userAgent.default(version_default.USER_AGENT)
|
|
14877
|
+
}).transform((args) => {
|
|
14878
|
+
if (JSON.stringify(args.pubsubKuboRpcClientsOptions) === JSON.stringify(defaultPubsubKuboRpcClientsOptions) && args.libp2pJsClientsOptions) return {
|
|
14879
|
+
...args,
|
|
14880
|
+
pubsubKuboRpcClientsOptions: []
|
|
14881
|
+
};
|
|
14882
|
+
else return args;
|
|
14883
|
+
});
|
|
14884
|
+
const PKCParsedOptionsSchema = PKCUserOptionBaseSchema.extend({
|
|
14885
|
+
kuboRpcClientsOptions: ParsedKuboRpcClientOptionsSchema.optional(),
|
|
14886
|
+
pubsubKuboRpcClientsOptions: ParsedKuboRpcClientOptionsSchema.optional(),
|
|
14887
|
+
nameResolvers: NameResolverSchema.array().optional()
|
|
14888
|
+
}).strict();
|
|
14889
|
+
//#endregion
|
|
14890
|
+
//#region dist/node/pubsub-messages/schema.js
|
|
14891
|
+
const AcceptedChallengeTypeSchema = string().min(1);
|
|
14892
|
+
const PubsubMessageBaseSchema = object({
|
|
14893
|
+
challengeRequestId: Uint8ArraySchema,
|
|
14894
|
+
signature: object({
|
|
14895
|
+
signature: Uint8ArraySchema,
|
|
14896
|
+
publicKey: Uint8ArraySchema,
|
|
14897
|
+
type: string().min(1),
|
|
14898
|
+
signedPropertyNames: string().array()
|
|
14899
|
+
}).strict(),
|
|
14900
|
+
protocolVersion: ProtocolVersionSchema,
|
|
14901
|
+
userAgent: UserAgentSchema,
|
|
14902
|
+
timestamp: PKCTimestampSchema
|
|
14903
|
+
});
|
|
14904
|
+
const EncryptedSchema = object({
|
|
14905
|
+
ciphertext: Uint8ArraySchema,
|
|
14906
|
+
iv: Uint8ArraySchema,
|
|
14907
|
+
tag: Uint8ArraySchema,
|
|
14908
|
+
type: string().min(1)
|
|
14909
|
+
}).strict();
|
|
14910
|
+
const ChallengeRequestMessageSchema = PubsubMessageBaseSchema.extend({
|
|
14911
|
+
type: literal("CHALLENGEREQUEST"),
|
|
14912
|
+
encrypted: EncryptedSchema,
|
|
14913
|
+
acceptedChallengeTypes: AcceptedChallengeTypeSchema.array().optional()
|
|
14914
|
+
}).strict();
|
|
14915
|
+
const DecryptedChallengeRequestPublicationSchema = object({
|
|
14916
|
+
comment: CommentPubsubMessageWithFlexibleAuthorRefinementSchema.optional(),
|
|
14917
|
+
vote: VotePubsubMessagePublicationSchema.loose().optional(),
|
|
14918
|
+
commentEdit: CommentEditPubsubMessagePublicationWithFlexibleAuthorSchema.loose().optional(),
|
|
14919
|
+
commentModeration: CommentModerationPubsubMessagePublicationSchema.loose().optional(),
|
|
14920
|
+
communityEdit: CommunityEditPubsubMessagePublicationSchema.loose().optional()
|
|
14921
|
+
});
|
|
14922
|
+
const DecryptedChallengeRequestSchema = DecryptedChallengeRequestPublicationSchema.merge(CreatePublicationUserOptionsSchema.shape.challengeRequest.unwrap());
|
|
14923
|
+
const ChallengeRequestMessageSignedPropertyNames = t$3(n$3(ChallengeRequestMessageSchema.shape, ["signature"]));
|
|
14924
|
+
const ChallengeInChallengePubsubMessageSchema = object({
|
|
14925
|
+
challenge: string(),
|
|
14926
|
+
type: lazy(() => ChallengeFromGetChallengeSchema.shape.type),
|
|
14927
|
+
caseInsensitive: lazy(() => ChallengeFileSchema.shape.caseInsensitive)
|
|
14928
|
+
}).strict();
|
|
14929
|
+
const ChallengeMessageSchema = PubsubMessageBaseSchema.extend({
|
|
14930
|
+
type: literal("CHALLENGE"),
|
|
14931
|
+
encrypted: EncryptedSchema
|
|
14932
|
+
}).strict();
|
|
14933
|
+
const DecryptedChallengeSchema = object({ challenges: ChallengeInChallengePubsubMessageSchema.array() }).strict();
|
|
14934
|
+
const ChallengeMessageSignedPropertyNames = t$3(n$3(ChallengeMessageSchema.shape, ["signature"]));
|
|
14935
|
+
const ChallengeAnswerMessageSchema = PubsubMessageBaseSchema.extend({
|
|
14936
|
+
type: literal("CHALLENGEANSWER"),
|
|
14937
|
+
encrypted: EncryptedSchema
|
|
14938
|
+
}).strict();
|
|
14939
|
+
const DecryptedChallengeAnswerSchema = object({ challengeAnswers: ChallengeAnswersSchema }).strict();
|
|
14940
|
+
const ChallengeAnswerMessageSignedPropertyNames = t$3(n$3(ChallengeAnswerMessageSchema.shape, ["signature"]));
|
|
14941
|
+
const ChallengeVerificationMessageSchema = PubsubMessageBaseSchema.extend({
|
|
14942
|
+
type: literal("CHALLENGEVERIFICATION"),
|
|
14943
|
+
challengeSuccess: boolean(),
|
|
14944
|
+
challengeErrors: record(nonNegativeIntStringSchema, string()).optional(),
|
|
14945
|
+
reason: string().optional(),
|
|
14946
|
+
encrypted: EncryptedSchema.optional()
|
|
14947
|
+
}).strict();
|
|
14948
|
+
const DecryptedChallengeVerificationSchema = object({
|
|
14949
|
+
comment: CommentIpfsSchema.loose(),
|
|
14950
|
+
commentUpdate: CommentUpdateForChallengeVerificationSchema.loose()
|
|
14951
|
+
}).strict();
|
|
14952
|
+
const ChallengeVerificationMessageSignedPropertyNames = t$3(n$3(ChallengeVerificationMessageSchema.shape, ["signature"]));
|
|
14715
14953
|
//#endregion
|
|
14716
14954
|
//#region node_modules/p-timeout/index.js
|
|
14717
14955
|
var TimeoutError = class TimeoutError extends Error {
|
|
@@ -15459,6 +15697,19 @@ function replaceXWithY(obj, x, y) {
|
|
|
15459
15697
|
});
|
|
15460
15698
|
return newObj;
|
|
15461
15699
|
}
|
|
15700
|
+
function withSortedKeysDeep(value) {
|
|
15701
|
+
if (Array.isArray(value)) return value.map(withSortedKeysDeep);
|
|
15702
|
+
if (value === null || typeof value !== "object") return value;
|
|
15703
|
+
const source = value;
|
|
15704
|
+
const sorted = {};
|
|
15705
|
+
for (const key of Object.keys(source).sort()) sorted[key] = withSortedKeysDeep(source[key]);
|
|
15706
|
+
return sorted;
|
|
15707
|
+
}
|
|
15708
|
+
function withSortedKeys(value) {
|
|
15709
|
+
const sorted = {};
|
|
15710
|
+
for (const key of Object.keys(value).sort()) sorted[key] = value[key];
|
|
15711
|
+
return sorted;
|
|
15712
|
+
}
|
|
15462
15713
|
function removeNullUndefinedValues(obj) {
|
|
15463
15714
|
return t(obj, e$1);
|
|
15464
15715
|
}
|
|
@@ -16224,9 +16475,63 @@ async function fetchAndValidateIpnsRecordFromGateway(gatewayUrl, ipnsName, opts)
|
|
|
16224
16475
|
}
|
|
16225
16476
|
}
|
|
16226
16477
|
const textEncoder = new TextEncoder();
|
|
16478
|
+
const UNIXFS_CHUNK_BYTES = 262144;
|
|
16479
|
+
const UNIXFS_MAX_LINKS_PER_NODE = 174;
|
|
16480
|
+
const CIDV0_MULTIHASH_BYTES = 34;
|
|
16481
|
+
const UNIXFS_TYPE_FILE_FIELD_BYTES = 2;
|
|
16482
|
+
function protobufVarintBytes(value) {
|
|
16483
|
+
let bytes = 1;
|
|
16484
|
+
while (value >= 128) {
|
|
16485
|
+
value = Math.floor(value / 128);
|
|
16486
|
+
bytes++;
|
|
16487
|
+
}
|
|
16488
|
+
return bytes;
|
|
16489
|
+
}
|
|
16490
|
+
const protobufBytesFieldBytes = (payloadLength) => 1 + protobufVarintBytes(payloadLength) + payloadLength;
|
|
16491
|
+
const protobufVarintFieldBytes = (value) => 1 + protobufVarintBytes(value);
|
|
16492
|
+
function unixFsLeafBytes(chunkLength) {
|
|
16493
|
+
return protobufBytesFieldBytes(UNIXFS_TYPE_FILE_FIELD_BYTES + (chunkLength > 0 ? protobufBytesFieldBytes(chunkLength) : 0) + protobufVarintFieldBytes(chunkLength));
|
|
16494
|
+
}
|
|
16495
|
+
function unixFsParentNode(children) {
|
|
16496
|
+
let links = 0;
|
|
16497
|
+
let unixfs = UNIXFS_TYPE_FILE_FIELD_BYTES;
|
|
16498
|
+
let fileBytes = 0;
|
|
16499
|
+
let childrenDagBytes = 0;
|
|
16500
|
+
for (const child of children) {
|
|
16501
|
+
const link = protobufBytesFieldBytes(CIDV0_MULTIHASH_BYTES) + protobufBytesFieldBytes(0) + protobufVarintFieldBytes(child.dagBytes);
|
|
16502
|
+
links += protobufBytesFieldBytes(link);
|
|
16503
|
+
unixfs += protobufVarintFieldBytes(child.fileBytes);
|
|
16504
|
+
fileBytes += child.fileBytes;
|
|
16505
|
+
childrenDagBytes += child.dagBytes;
|
|
16506
|
+
}
|
|
16507
|
+
unixfs += protobufVarintFieldBytes(fileBytes);
|
|
16508
|
+
return {
|
|
16509
|
+
dagBytes: links + protobufBytesFieldBytes(unixfs) + childrenDagBytes,
|
|
16510
|
+
fileBytes
|
|
16511
|
+
};
|
|
16512
|
+
}
|
|
16513
|
+
function calculateUnixFsDagSizeCidV0(byteLength) {
|
|
16514
|
+
if (!Number.isInteger(byteLength) || byteLength < 0) throw new Error(`Invalid byte length ${byteLength}`);
|
|
16515
|
+
const chunkCount = Math.max(1, Math.ceil(byteLength / UNIXFS_CHUNK_BYTES));
|
|
16516
|
+
if (chunkCount === 1) return unixFsLeafBytes(byteLength);
|
|
16517
|
+
let level = new Array(chunkCount);
|
|
16518
|
+
for (let i = 0; i < chunkCount; i++) {
|
|
16519
|
+
const chunkLength = i < chunkCount - 1 ? UNIXFS_CHUNK_BYTES : byteLength - UNIXFS_CHUNK_BYTES * (chunkCount - 1);
|
|
16520
|
+
level[i] = {
|
|
16521
|
+
dagBytes: unixFsLeafBytes(chunkLength),
|
|
16522
|
+
fileBytes: chunkLength
|
|
16523
|
+
};
|
|
16524
|
+
}
|
|
16525
|
+
while (level.length > 1) {
|
|
16526
|
+
const parents = [];
|
|
16527
|
+
for (let i = 0; i < level.length; i += UNIXFS_MAX_LINKS_PER_NODE) parents.push(unixFsParentNode(level.slice(i, i + UNIXFS_MAX_LINKS_PER_NODE)));
|
|
16528
|
+
level = parents;
|
|
16529
|
+
}
|
|
16530
|
+
return level[0].dagBytes;
|
|
16531
|
+
}
|
|
16227
16532
|
async function calculateStringSizeSameAsIpfsAddCidV0(content) {
|
|
16228
16533
|
const { MemoryBlockstore } = await import("blockstore-core");
|
|
16229
|
-
const { importFile } = await import("./src-
|
|
16534
|
+
const { importFile } = await import("./src-B07ldGHS.js");
|
|
16230
16535
|
const blockstore = new MemoryBlockstore();
|
|
16231
16536
|
const entry = await importFile({
|
|
16232
16537
|
path: "content.json",
|
|
@@ -16280,159 +16585,4 @@ function hasTransientNetworkErrorCode(details) {
|
|
|
16280
16585
|
return details.causes?.some(hasTransientNetworkErrorCode) ?? false;
|
|
16281
16586
|
}
|
|
16282
16587
|
//#endregion
|
|
16283
|
-
|
|
16284
|
-
const version = "0.0.107";
|
|
16285
|
-
//#endregion
|
|
16286
|
-
//#region dist/node/version.js
|
|
16287
|
-
const protocolVersion = ProtocolVersionSchema.parse("1.0.0");
|
|
16288
|
-
const pkcJsVersion = version;
|
|
16289
|
-
var version_default = {
|
|
16290
|
-
PKC_JS_VERSION: pkcJsVersion,
|
|
16291
|
-
DB_VERSION: 42,
|
|
16292
|
-
PROTOCOL_VERSION: protocolVersion,
|
|
16293
|
-
USER_AGENT: UserAgentSchema.parse(`/pkc-js:${pkcJsVersion}/`)
|
|
16294
|
-
};
|
|
16295
|
-
string().min(1);
|
|
16296
|
-
const Uint8ArraySchema = custom((value) => value instanceof Uint8Array, { message: "Expected Uint8Array" });
|
|
16297
|
-
const IpfsGatewayUrlSchema = url().startsWith("http", "IPFS gateway URL must start with http:// or https://");
|
|
16298
|
-
const RpcUrlSchema = url().startsWith("ws", "PKC RPC URL must start with ws:// or wss://");
|
|
16299
|
-
const KuboRpcCreateClientOptionSchema = custom();
|
|
16300
|
-
const DirectoryPathSchema = string();
|
|
16301
|
-
const NameResolveCacheOptionsSchema = object({ maxAge: number().int().nonnegative().optional() });
|
|
16302
|
-
const NameResolverSchema = custom((val) => {
|
|
16303
|
-
if (val == null || typeof val !== "object") return false;
|
|
16304
|
-
const v = val;
|
|
16305
|
-
return typeof v.key === "string" && v.key.length > 0 && typeof v.resolve === "function" && typeof v.canResolve === "function" && typeof v.provider === "string" && v.provider.length > 0 && (v.destroy === void 0 || typeof v.destroy === "function");
|
|
16306
|
-
}, { message: "Invalid name resolver: must have key (string), resolve (function), canResolve (function), provider (string), and optionally destroy (function)" });
|
|
16307
|
-
const NameResolverSerializedSchema = object({
|
|
16308
|
-
key: string().min(1),
|
|
16309
|
-
provider: string().min(1)
|
|
16310
|
-
});
|
|
16311
|
-
const TransformKuboRpcClientOptionsSchema = KuboRpcCreateClientOptionSchema.array().transform((options) => options.map(parseIpfsRawOptionToIpfsOptions));
|
|
16312
|
-
const ParsedKuboRpcClientOptionsSchema = custom();
|
|
16313
|
-
const PKCUserOptionBaseSchema = object({
|
|
16314
|
-
ipfsGatewayUrls: IpfsGatewayUrlSchema.array().optional(),
|
|
16315
|
-
kuboRpcClientsOptions: TransformKuboRpcClientOptionsSchema.optional(),
|
|
16316
|
-
httpRoutersOptions: string().url().startsWith("http", "HTTP router URL must start with http:// or https://").array().optional(),
|
|
16317
|
-
pubsubKuboRpcClientsOptions: TransformKuboRpcClientOptionsSchema.optional(),
|
|
16318
|
-
pkcRpcClientsOptions: RpcUrlSchema.array().nonempty().optional(),
|
|
16319
|
-
dataPath: DirectoryPathSchema.optional(),
|
|
16320
|
-
resolveAuthorNames: boolean(),
|
|
16321
|
-
nameResolvers: NameResolverSchema.array().optional(),
|
|
16322
|
-
libp2pJsClientsOptions: object({
|
|
16323
|
-
key: string().min(1),
|
|
16324
|
-
libp2pOptions: custom().default({}),
|
|
16325
|
-
heliaOptions: custom().refine((options) => !("http" in options), { message: "heliaOptions.http is not supported: the libp2p-js client is composed without Helia's HTTP components" }).default({}),
|
|
16326
|
-
blockstoreOptions: object({
|
|
16327
|
-
maxBytes: number().positive().optional(),
|
|
16328
|
-
lowWaterRatio: number().gt(0).lte(1).optional()
|
|
16329
|
-
}).optional()
|
|
16330
|
-
}).array().max(1, "Only one libp2pJsClientOptions is allowed at the moment").optional(),
|
|
16331
|
-
validatePages: boolean(),
|
|
16332
|
-
userAgent: UserAgentSchema,
|
|
16333
|
-
publishInterval: number().positive(),
|
|
16334
|
-
updateInterval: number().positive(),
|
|
16335
|
-
noData: boolean(),
|
|
16336
|
-
challenges: record(string(), custom()).optional()
|
|
16337
|
-
});
|
|
16338
|
-
const defaultPubsubKuboRpcClientsOptions = [{ url: "https://pubsubprovider.xyz/api/v0" }, { url: "https://plebpubsub.xyz/api/v0" }];
|
|
16339
|
-
const defaultIpfsGatewayUrls = [
|
|
16340
|
-
"https://ipfsgateway.xyz",
|
|
16341
|
-
"https://gateway.plebpubsub.xyz",
|
|
16342
|
-
"https://gateway.forumindex.com"
|
|
16343
|
-
];
|
|
16344
|
-
const PKCUserOptionsSchema = PKCUserOptionBaseSchema.extend({
|
|
16345
|
-
ipfsGatewayUrls: PKCUserOptionBaseSchema.shape.ipfsGatewayUrls.default([...defaultIpfsGatewayUrls]).transform((val) => val === void 0 ? [...defaultIpfsGatewayUrls] : val),
|
|
16346
|
-
pubsubKuboRpcClientsOptions: PKCUserOptionBaseSchema.shape.pubsubKuboRpcClientsOptions.default([...defaultPubsubKuboRpcClientsOptions]),
|
|
16347
|
-
httpRoutersOptions: PKCUserOptionBaseSchema.shape.httpRoutersOptions.default([
|
|
16348
|
-
"https://peers.pleb.bot",
|
|
16349
|
-
"https://routing.lol",
|
|
16350
|
-
"https://peers.forumindex.com",
|
|
16351
|
-
"https://peers.plebpubsub.xyz",
|
|
16352
|
-
"https://routerofbitsocial.xyz",
|
|
16353
|
-
"https://bsotracker.online"
|
|
16354
|
-
]),
|
|
16355
|
-
resolveAuthorNames: PKCUserOptionBaseSchema.shape.resolveAuthorNames.default(true),
|
|
16356
|
-
publishInterval: PKCUserOptionBaseSchema.shape.publishInterval.default(2e4),
|
|
16357
|
-
updateInterval: PKCUserOptionBaseSchema.shape.updateInterval.default(6e4),
|
|
16358
|
-
noData: PKCUserOptionBaseSchema.shape.noData.default(false),
|
|
16359
|
-
validatePages: PKCUserOptionBaseSchema.shape.validatePages.default(true),
|
|
16360
|
-
userAgent: PKCUserOptionBaseSchema.shape.userAgent.default(version_default.USER_AGENT)
|
|
16361
|
-
}).transform((args) => {
|
|
16362
|
-
if (JSON.stringify(args.pubsubKuboRpcClientsOptions) === JSON.stringify(defaultPubsubKuboRpcClientsOptions) && args.libp2pJsClientsOptions) return {
|
|
16363
|
-
...args,
|
|
16364
|
-
pubsubKuboRpcClientsOptions: []
|
|
16365
|
-
};
|
|
16366
|
-
else return args;
|
|
16367
|
-
});
|
|
16368
|
-
const PKCParsedOptionsSchema = PKCUserOptionBaseSchema.extend({
|
|
16369
|
-
kuboRpcClientsOptions: ParsedKuboRpcClientOptionsSchema.optional(),
|
|
16370
|
-
pubsubKuboRpcClientsOptions: ParsedKuboRpcClientOptionsSchema.optional(),
|
|
16371
|
-
nameResolvers: NameResolverSchema.array().optional()
|
|
16372
|
-
}).strict();
|
|
16373
|
-
//#endregion
|
|
16374
|
-
//#region dist/node/pubsub-messages/schema.js
|
|
16375
|
-
const AcceptedChallengeTypeSchema = string().min(1);
|
|
16376
|
-
const PubsubMessageBaseSchema = object({
|
|
16377
|
-
challengeRequestId: Uint8ArraySchema,
|
|
16378
|
-
signature: object({
|
|
16379
|
-
signature: Uint8ArraySchema,
|
|
16380
|
-
publicKey: Uint8ArraySchema,
|
|
16381
|
-
type: string().min(1),
|
|
16382
|
-
signedPropertyNames: string().array()
|
|
16383
|
-
}).strict(),
|
|
16384
|
-
protocolVersion: ProtocolVersionSchema,
|
|
16385
|
-
userAgent: UserAgentSchema,
|
|
16386
|
-
timestamp: PKCTimestampSchema
|
|
16387
|
-
});
|
|
16388
|
-
const EncryptedSchema = object({
|
|
16389
|
-
ciphertext: Uint8ArraySchema,
|
|
16390
|
-
iv: Uint8ArraySchema,
|
|
16391
|
-
tag: Uint8ArraySchema,
|
|
16392
|
-
type: string().min(1)
|
|
16393
|
-
}).strict();
|
|
16394
|
-
const ChallengeRequestMessageSchema = PubsubMessageBaseSchema.extend({
|
|
16395
|
-
type: literal("CHALLENGEREQUEST"),
|
|
16396
|
-
encrypted: EncryptedSchema,
|
|
16397
|
-
acceptedChallengeTypes: AcceptedChallengeTypeSchema.array().optional()
|
|
16398
|
-
}).strict();
|
|
16399
|
-
const DecryptedChallengeRequestPublicationSchema = object({
|
|
16400
|
-
comment: CommentPubsubMessageWithFlexibleAuthorRefinementSchema.optional(),
|
|
16401
|
-
vote: VotePubsubMessagePublicationSchema.loose().optional(),
|
|
16402
|
-
commentEdit: CommentEditPubsubMessagePublicationWithFlexibleAuthorSchema.loose().optional(),
|
|
16403
|
-
commentModeration: CommentModerationPubsubMessagePublicationSchema.loose().optional(),
|
|
16404
|
-
communityEdit: CommunityEditPubsubMessagePublicationSchema.loose().optional()
|
|
16405
|
-
});
|
|
16406
|
-
const DecryptedChallengeRequestSchema = DecryptedChallengeRequestPublicationSchema.merge(CreatePublicationUserOptionsSchema.shape.challengeRequest.unwrap());
|
|
16407
|
-
const ChallengeRequestMessageSignedPropertyNames = t$3(n$3(ChallengeRequestMessageSchema.shape, ["signature"]));
|
|
16408
|
-
const ChallengeInChallengePubsubMessageSchema = object({
|
|
16409
|
-
challenge: string(),
|
|
16410
|
-
type: lazy(() => ChallengeFromGetChallengeSchema.shape.type),
|
|
16411
|
-
caseInsensitive: lazy(() => ChallengeFileSchema.shape.caseInsensitive)
|
|
16412
|
-
}).strict();
|
|
16413
|
-
const ChallengeMessageSchema = PubsubMessageBaseSchema.extend({
|
|
16414
|
-
type: literal("CHALLENGE"),
|
|
16415
|
-
encrypted: EncryptedSchema
|
|
16416
|
-
}).strict();
|
|
16417
|
-
const DecryptedChallengeSchema = object({ challenges: ChallengeInChallengePubsubMessageSchema.array() }).strict();
|
|
16418
|
-
const ChallengeMessageSignedPropertyNames = t$3(n$3(ChallengeMessageSchema.shape, ["signature"]));
|
|
16419
|
-
const ChallengeAnswerMessageSchema = PubsubMessageBaseSchema.extend({
|
|
16420
|
-
type: literal("CHALLENGEANSWER"),
|
|
16421
|
-
encrypted: EncryptedSchema
|
|
16422
|
-
}).strict();
|
|
16423
|
-
const DecryptedChallengeAnswerSchema = object({ challengeAnswers: ChallengeAnswersSchema }).strict();
|
|
16424
|
-
const ChallengeAnswerMessageSignedPropertyNames = t$3(n$3(ChallengeAnswerMessageSchema.shape, ["signature"]));
|
|
16425
|
-
const ChallengeVerificationMessageSchema = PubsubMessageBaseSchema.extend({
|
|
16426
|
-
type: literal("CHALLENGEVERIFICATION"),
|
|
16427
|
-
challengeSuccess: boolean(),
|
|
16428
|
-
challengeErrors: record(nonNegativeIntStringSchema, string()).optional(),
|
|
16429
|
-
reason: string().optional(),
|
|
16430
|
-
encrypted: EncryptedSchema.optional()
|
|
16431
|
-
}).strict();
|
|
16432
|
-
const DecryptedChallengeVerificationSchema = object({
|
|
16433
|
-
comment: CommentIpfsSchema.loose(),
|
|
16434
|
-
commentUpdate: CommentUpdateForChallengeVerificationSchema.loose()
|
|
16435
|
-
}).strict();
|
|
16436
|
-
const ChallengeVerificationMessageSignedPropertyNames = t$3(n$3(ChallengeVerificationMessageSchema.shape, ["signature"]));
|
|
16437
|
-
//#endregion
|
|
16438
|
-
export { isLinkValid as $, CidStringSchema as $n, CommentModerationsTableRowSchema as $t, doesDomainAddressHaveCapitalLetter as A, CommentUpdateForChallengeVerificationSchema as An, _enum as Ar, listUpdatingComments as At, hideClassPrivateProps as B, PageIpfsSchema as Bn, joinValues as Br, untrackUpdatingCommunity as Bt, calculateStringSizeSameAsIpfsAddCidV0 as C, CommentChallengeRequestToEncryptSchema as Cn, FailedToFetchPageIpfsFromGatewaysError as Cr, waitForUpdateInCommunityInstanceWithErrorAndTimeout as Ct, createAbortError as D, CommentPubsubMessageWithFlexibleAuthorRefinementSchema as Dn, require_supports_color as Dr, findUpdatingComment as Dt, contentContainsMarkdownVideos as E, CommentPubsubMessageReservedFields as En, logger_default as Er, findStartedCommunity as Et, getEquivalentCommunityAddresses as F, CommentUpdateTableRowSchema as Fn, number as Fr, trackStartedCommunity as Ft, isIpfsPath as G, CommentEditSignedPropertyNames as Gn, CommunityEditPublicationPubsubReservedFields as Gt, ipnsNameToIpnsOverPubsubTopic as H, CommentEditPubsubMessagePublicationSchema as Hn, stringifyPrimitive as Hr, TimeoutError as Ht, getErrorCodeFromMessage as I, CommentsTableRowSchema as In, object as Ir, trackUpdatingComment as It, isLinkOfAnimatedImage as J, AuthorAddressSchema as Jn, CreateCommunityEditPublicationOptionsWithRefinementSchema as Jt, isIpns as K, CommentEditsTableRowSchema as Kn, CommunityEditPublicationSignedPropertyNames as Kt, getIpnsRecordInLocalKuboNode as L, CreateCommentOptionsWithRefinementSchema as Ln, record as Lr, trackUpdatingCommunity as Lt, fetchAndValidateIpnsRecordFromGateway as M, CommentUpdateReservedFields as Mn, boolean as Mr, refreshTrackedCommentAliases as Mt, findMalformedUnicodeString as N, CommentUpdateSchema as Nn, custom as Nr, refreshTrackedCommunityAliases as Nt, deepMergeRuntimeFields as O, CommentSignedPropertyNames as On, require_ms as Or, findUpdatingCommunity as Ot, genToArray as P, CommentUpdateSignedPropertyNames as Pn, literal as Pr, syncCommunityRegistryEntry as Pt, isLinkOfVideo as Q, CidPathSchema as Qn, CommentModerationSignedPropertyNames as Qt, getPostUpdateTimestampRange as R, GetPageParamSchema as Rn, string as Rr, untrackStartedCommunity as Rt, calculateIpfsCidV0 as S, VoteTablesRowSchema as Sn, FailedToFetchGenericIpfsFromGatewaysError as Sr, timestamp as St, contentContainsMarkdownImages as T, CommentIpfsSchema as Tn, messages as Tr, findCommunityInRegistry as Tt, isAbortError as U, CommentEditPubsubMessagePublicationWithFlexibleAuthorSchema as Un, pTimeout as Ut, interruptibleSleep as V, CommentEditChallengeRequestToEncryptSchema as Vn, parsedType as Vr, require_sha256 as Vt, isIpfsCid as W, CommentEditReservedFields as Wn, CommunityEditPublicationChallengeRequestToEncryptSchema as Wt, isLinkOfImage as X, AuthorReservedFields as Xn, CommentModerationPubsubMessagePublicationSchema as Xt, isLinkOfAudio as Y, AuthorCommentIpfsReservedFields as Yn, CommentModerationChallengeRequestToEncryptSchema as Yt, isLinkOfMedia as Z, ChallengeAnswersSchema as Zn, CommentModerationReservedFields as Zt, PKCUserOptionBaseSchema as _, CreateVoteUserOptionsWithRefinementSchema as _n, e$4 as _r, shortifyAddress as _t, ChallengeRequestMessageSchema as a, CommunityEditOptionsSchema as an, n$3 as ar, rejectWhenAbortSignalFires as at, areEquivalentCommunityAddresses as b, VotePubsubReservedFields as bn, FailedToFetchCommentUpdateFromGatewaysError as br, statMfsPathSafely as bt, ChallengeVerificationMessageSignedPropertyNames as c, CommunityIpfsSchema as cn, e as cr, removeMfsFilesSafely as ct, DecryptedChallengeRequestSchema as d, CreateRemoteCommunityFunctionArgumentSchema as dn, r$2 as dr, removeUndefinedValuesRecursively as dt, CreateCommentModerationOptionsWithRefinementSchema as en, CommunityAddressSchema as er, isRequestPubsubPublicationOfPost as et, DecryptedChallengeSchema as f, CreateRpcCommunityFunctionArgumentSchema as fn, t$5 as fr, replaceXWithY as ft, PKCParsedOptionsSchema as g, isStringDomain as gn, t$8 as gr, retryKuboIpfsAddAndProvide as gt, NameResolverSerializedSchema as h, RpcRemoteCommunityUpdateEventResultSchema as hn, t$7 as hr, retryKuboIpfsAdd as ht, ChallengeMessageSignedPropertyNames as i, CommunityChallengeSettingSchema as in, t$1 as ir, raceAgainstAbort as it, extractNetworkErrorDetails as j, CommentUpdateForChallengeVerificationSignedPropertyNames as jn, array as jr, listUpdatingCommunities as jt, derivePublicationFromChallengeRequest as k, CommentUpdateChallengeReservedFieldNames as kn, setErrorMap as kr, listStartedCommunities as kt, DecryptedChallengeAnswerSchema as l, CommunitySignedPropertyNames as ln, e$2 as lr, removeNullUndefinedEmptyObjectsValuesRecursively as lt, NameResolveCacheOptionsSchema as m, PubsubTopicSchema as mn, r$4 as mr, retryKuboBlockPutPinAndProvidePubsubTopic as mt, ChallengeAnswerMessageSignedPropertyNames as n, ChallengeFileSchema as nn, CreateSignerSchema as nr, pubsubTopicToDhtKey as nt, ChallengeRequestMessageSignedPropertyNames as o, CommunityExportRecordsSchema as on, t$2 as or, rejectWhenCommunityStopsOrAborts as ot, DecryptedChallengeVerificationSchema as p, ExportCommunityModLogsOptionsSchema as pn, n$7 as pr, resolveWhenPredicateIsTrue as pt, isIpnsPath as q, CreateCommentEditOptionsWithRefinementSchema as qn, CommunityEditPubsubMessagePublicationSchema as qt, ChallengeMessageSchema as r, CommunityAnchorSchema as rn, n as rr, pubsubTopicToDhtKeyCid as rt, ChallengeVerificationMessageSchema as s, CommunityIpfsReservedFields as sn, t$3 as sr, removeBlocksFromKuboNode as st, ChallengeAnswerMessageSchema as t, ChallengeFileFactorySchema as tn, CommunityAuthorChallengeReservedFieldNames as tr, isRequestPubsubPublicationOfReply as tt, DecryptedChallengeRequestPublicationSchema as u, CreateNewLocalCommunityUserOptionsSchema as un, t$4 as ur, removeNullUndefinedValues as ut, PKCUserOptionsSchema as v, VoteChallengeRequestToEncryptSchema as vn, require_retry as vr, shortifyCid as vt, contentContainsMarkdownAudio as w, CommentIpfsReservedFields as wn, PKCError as wr, writeKuboFilesWithTimeout as wt, binaryKeyToPubsubTopic as x, VoteSignedPropertyNames as xn, FailedToFetchCommunityFromGatewaysError as xr, throwIfAbortSignalAborted as xt, version_default as y, VotePubsubMessagePublicationSchema as yn, FailedToFetchCommentIpfsFromGatewaysError as yr, sleepUntilTimeoutOrAbort as yt, hasTransientNetworkErrorCode as z, ModQueuePageIpfsSchema as zn, ZodError as zr, untrackUpdatingComment as zt };
|
|
16588
|
+
export { shortifyAddress as $, CreateCommentEditOptionsWithRefinementSchema as $n, CommentModerationPubsubMessagePublicationSchema as $t, isLinkOfAnimatedImage as A, CommentIpfsSchema as An, PKCError as Ar, ChallengeMessageSchema as At, raceAgainstAbort as B, CommentUpdateTableRowSchema as Bn, literal as Br, DecryptedChallengeVerificationSchema as Bt, interruptibleSleep as C, VoteChallengeRequestToEncryptSchema as Cn, e$4 as Cr, untrackUpdatingComment as Ct, isIpfsPath as D, VoteTablesRowSchema as Dn, FailedToFetchCommunityFromGatewaysError as Dr, pTimeout as Dt, isIpfsCid as E, VoteSignedPropertyNames as En, FailedToFetchCommentUpdateFromGatewaysError as Er, TimeoutError as Et, isLinkValid as F, CommentUpdateForChallengeVerificationSchema as Fn, setErrorMap as Fr, ChallengeVerificationMessageSignedPropertyNames as Ft, removeNullUndefinedEmptyObjectsValuesRecursively as G, PageIpfsSchema as Gn, ZodError as Gr, PKCUserOptionsSchema as Gt, rejectWhenCommunityStopsOrAborts as H, CreateCommentOptionsWithRefinementSchema as Hn, object as Hr, NameResolverSerializedSchema as Ht, isRequestPubsubPublicationOfPost as I, CommentUpdateForChallengeVerificationSignedPropertyNames as In, _enum as Ir, DecryptedChallengeAnswerSchema as It, replaceXWithY as J, CommentEditPubsubMessagePublicationSchema as Jn, stringifyPrimitive as Jr, CommunityEditPublicationPubsubReservedFields as Jt, removeNullUndefinedValues as K, isReservedObjectKey as Kn, joinValues as Kr, version_default as Kt, isRequestPubsubPublicationOfReply as L, CommentUpdateReservedFields as Ln, array as Lr, DecryptedChallengeRequestPublicationSchema as Lt, isLinkOfImage as M, CommentPubsubMessageWithFlexibleAuthorRefinementSchema as Mn, logger_default as Mr, ChallengeRequestMessageSchema as Mt, isLinkOfMedia as N, CommentSignedPropertyNames as Nn, require_supports_color as Nr, ChallengeRequestMessageSignedPropertyNames as Nt, isIpns as O, CommentChallengeRequestToEncryptSchema as On, FailedToFetchGenericIpfsFromGatewaysError as Or, ChallengeAnswerMessageSchema as Ot, isLinkOfVideo as P, CommentUpdateChallengeReservedFieldNames as Pn, require_ms as Pr, ChallengeVerificationMessageSchema as Pt, retryKuboIpfsAddAndProvide as Q, CommentEditsTableRowSchema as Qn, CommentModerationChallengeRequestToEncryptSchema as Qt, pubsubTopicToDhtKey as R, CommentUpdateSchema as Rn, boolean as Rr, DecryptedChallengeRequestSchema as Rt, hideClassPrivateProps as S, CreateVoteUserOptionsWithRefinementSchema as Sn, t$8 as Sr, untrackStartedCommunity as St, isAbortError as T, VotePubsubReservedFields as Tn, FailedToFetchCommentIpfsFromGatewaysError as Tr, require_sha256 as Tt, removeBlocksFromKuboNode as U, GetPageParamSchema as Un, record as Ur, PKCParsedOptionsSchema as Ut, rejectWhenAbortSignalFires as V, CommentsTableRowSchema as Vn, number as Vr, NameResolveCacheOptionsSchema as Vt, removeMfsFilesSafely as W, ModQueuePageIpfsSchema as Wn, string as Wr, PKCUserOptionBaseSchema as Wt, retryKuboBlockPutPinAndProvidePubsubTopic as X, CommentEditReservedFields as Xn, CommunityEditPubsubMessagePublicationSchema as Xt, resolveWhenPredicateIsTrue as Y, CommentEditPubsubMessagePublicationWithFlexibleAuthorSchema as Yn, CommunityEditPublicationSignedPropertyNames as Yt, retryKuboIpfsAdd as Z, CommentEditSignedPropertyNames as Zn, CreateCommunityEditPublicationOptionsWithRefinementSchema as Zt, getEquivalentCommunityAddresses as _, PageSortFileFactorySchema as _n, r$2 as _r, refreshTrackedCommunityAliases as _t, calculateUnixFsDagSizeCidV0 as a, ChallengeFileSchema as an, CidStringSchema as ar, waitForUpdateInCommunityInstanceWithErrorAndTimeout as at, getPostUpdateTimestampRange as b, RpcRemoteCommunityUpdateEventResultSchema as bn, r$4 as br, trackUpdatingComment as bt, contentContainsMarkdownVideos as c, CommunityEditOptionsSchema as cn, CreateSignerSchema as cr, writeKuboFilesWithTimeout as ct, derivePublicationFromChallengeRequest as d, CommunityIpfsSchema as dn, n$3 as dr, findUpdatingComment as dt, CommentModerationReservedFields as en, AuthorAddressSchema as er, shortifyCid as et, doesDomainAddressHaveCapitalLetter as f, CommunitySignedPropertyNames as fn, t$2 as fr, findUpdatingCommunity as ft, genToArray as g, ExportCommunityModLogsOptionsSchema as gn, t$4 as gr, refreshTrackedCommentAliases as gt, findMalformedUnicodeString as h, CreateRpcCommunityFunctionArgumentSchema as hn, e$2 as hr, listUpdatingCommunities as ht, calculateStringSizeSameAsIpfsAddCidV0 as i, ChallengeFileFactorySchema as in, CidPathSchema as ir, timestamp as it, isLinkOfAudio as j, CommentPubsubMessageReservedFields as jn, messages as jr, ChallengeMessageSignedPropertyNames as jt, isIpnsPath as k, CommentIpfsReservedFields as kn, FailedToFetchPageIpfsFromGatewaysError as kr, ChallengeAnswerMessageSignedPropertyNames as kt, createAbortError as l, CommunityExportRecordsSchema as ln, n as lr, findCommunityInRegistry as lt, fetchAndValidateIpnsRecordFromGateway as m, CreateRemoteCommunityFunctionArgumentSchema as mn, e as mr, listUpdatingComments as mt, binaryKeyToPubsubTopic as n, CommentModerationsTableRowSchema as nn, AuthorReservedFields as nr, statMfsPathSafely as nt, contentContainsMarkdownAudio as o, CommunityAnchorSchema as on, CommunityAddressSchema as or, withSortedKeys as ot, extractNetworkErrorDetails as p, CreateNewLocalCommunityUserOptionsSchema as pn, t$3 as pr, listStartedCommunities as pt, removeUndefinedValuesRecursively as q, CommentEditChallengeRequestToEncryptSchema as qn, parsedType as qr, CommunityEditPublicationChallengeRequestToEncryptSchema as qt, calculateIpfsCidV0 as r, CreateCommentModerationOptionsWithRefinementSchema as rn, ChallengeAnswersSchema as rr, throwIfAbortSignalAborted as rt, contentContainsMarkdownImages as s, CommunityChallengeSettingSchema as sn, CommunityAuthorChallengeReservedFieldNames as sr, withSortedKeysDeep as st, areEquivalentCommunityAddresses as t, CommentModerationSignedPropertyNames as tn, AuthorCommentIpfsReservedFields as tr, sleepUntilTimeoutOrAbort as tt, deepMergeRuntimeFields as u, CommunityIpfsReservedFields as un, t$1 as ur, findStartedCommunity as ut, getErrorCodeFromMessage as v, PageSortFileSchema as vn, t$5 as vr, syncCommunityRegistryEntry as vt, ipnsNameToIpnsOverPubsubTopic as w, VotePubsubMessagePublicationSchema as wn, require_retry as wr, untrackUpdatingCommunity as wt, hasTransientNetworkErrorCode as x, isStringDomain as xn, t$7 as xr, trackUpdatingCommunity as xt, getIpnsRecordInLocalKuboNode as y, PubsubTopicSchema as yn, n$7 as yr, trackStartedCommunity as yt, pubsubTopicToDhtKeyCid as z, CommentUpdateSignedPropertyNames as zn, custom as zr, DecryptedChallengeSchema as zt };
|