@pkcprotocol/pkc-js 0.0.100 → 0.0.101

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (109) hide show
  1. package/dist/browser/clients/rpc-client/rpc-schema-util.d.ts +3 -2
  2. package/dist/browser/clients/rpc-client/schema.d.ts +3 -2
  3. package/dist/browser/community/schema.d.ts +110 -51
  4. package/dist/browser/community/schema.js +21 -5
  5. package/dist/browser/community/schema.js.map +1 -1
  6. package/dist/browser/domain-util.d.ts +3 -0
  7. package/dist/browser/domain-util.js +16 -0
  8. package/dist/browser/domain-util.js.map +1 -0
  9. package/dist/browser/errors.d.ts +4 -0
  10. package/dist/browser/errors.js +4 -0
  11. package/dist/browser/errors.js.map +1 -1
  12. package/dist/browser/generated-version.d.ts +1 -1
  13. package/dist/browser/generated-version.js +1 -1
  14. package/dist/browser/index-with-compile-cache.d.ts +18 -12
  15. package/dist/browser/index.d.ts +18 -12
  16. package/dist/browser/pkc-error.d.ts +1 -1
  17. package/dist/browser/publications/community-edit/schema.d.ts +12 -8
  18. package/dist/browser/pubsub-messages/schema.d.ts +6 -4
  19. package/dist/browser/rpc/src/lib/pkc-js/index.d.ts +9 -6
  20. package/dist/browser/rpc/src/schema.d.ts +54 -36
  21. package/dist/browser/runtime/node/community/challenges/exclude/exclude.d.ts +1 -1
  22. package/dist/browser/runtime/node/community/challenges/exclude/exclude.js +41 -16
  23. package/dist/browser/runtime/node/community/challenges/exclude/exclude.js.map +1 -1
  24. package/dist/browser/runtime/node/community/challenges/exclude/utils.d.ts +2 -3
  25. package/dist/browser/runtime/node/community/challenges/exclude/utils.js +1 -15
  26. package/dist/browser/runtime/node/community/challenges/exclude/utils.js.map +1 -1
  27. package/dist/browser/runtime/node/community/challenges/index.js +1 -1
  28. package/dist/browser/runtime/node/community/challenges/index.js.map +1 -1
  29. package/dist/browser/runtime/node/community/challenges/pkc-js-challenges/blacklist.js +18 -13
  30. package/dist/browser/runtime/node/community/challenges/pkc-js-challenges/blacklist.js.map +1 -1
  31. package/dist/browser/runtime/node/community/challenges/pkc-js-challenges/whitelist.js +18 -13
  32. package/dist/browser/runtime/node/community/challenges/pkc-js-challenges/whitelist.js.map +1 -1
  33. package/dist/browser/runtime/node/community/db-handler.d.ts +3 -2
  34. package/dist/browser/runtime/node/community/db-handler.js +20 -2
  35. package/dist/browser/runtime/node/community/db-handler.js.map +1 -1
  36. package/dist/browser/runtime/node/community/local-community/author-identity.d.ts +19 -0
  37. package/dist/browser/runtime/node/community/local-community/author-identity.js +50 -0
  38. package/dist/browser/runtime/node/community/local-community/author-identity.js.map +1 -0
  39. package/dist/browser/runtime/node/community/local-community/publication-validation.js +8 -22
  40. package/dist/browser/runtime/node/community/local-community/publication-validation.js.map +1 -1
  41. package/dist/browser/schema/schema-util.d.ts +27 -18
  42. package/dist/browser/schema.d.ts +72 -48
  43. package/dist/browser/test/test-util.d.ts +13 -10
  44. package/dist/browser/test/test-util.js +1 -1
  45. package/dist/browser/test/test-util.js.map +1 -1
  46. package/dist/browser/util.d.ts +1 -4
  47. package/dist/browser/util.js +4 -10
  48. package/dist/browser/util.js.map +1 -1
  49. package/dist/browser/version.js +1 -1
  50. package/dist/bundled/bundle-manifest.json +27 -25
  51. package/dist/bundled/chunks/{helia-for-pkc-Cq6VWePV.js → helia-for-pkc-DSF3IY_M.js} +33 -33
  52. package/dist/bundled/chunks/{local-community-CcHbWkoT.js → local-community-CTd_1kw_.js} +1 -1
  53. package/dist/bundled/chunks/{local-community-ph-pl_pg.js → local-community-DtlDCcc2.js} +53 -48
  54. package/dist/bundled/chunks/{node-2PkhAerB.js → node-pGNrsJuH.js} +5 -5
  55. package/dist/bundled/chunks/{rpc-local-community-BK1FjUk2.js → rpc-local-community-pLvHO4g9.js} +94 -35
  56. package/dist/bundled/chunks/{schema-CYR820MD.js → schema-DdD_6tTd.js} +29 -19
  57. package/dist/bundled/chunks/{util-gAVw5PrE.js → util-N0_wIz2O.js} +1 -1
  58. package/dist/bundled/index.js +1 -1
  59. package/dist/bundled/rpc/src/index.js +4 -4
  60. package/dist/node/clients/rpc-client/rpc-schema-util.d.ts +3 -2
  61. package/dist/node/clients/rpc-client/schema.d.ts +3 -2
  62. package/dist/node/community/schema.d.ts +110 -51
  63. package/dist/node/community/schema.js +21 -5
  64. package/dist/node/community/schema.js.map +1 -1
  65. package/dist/node/domain-util.d.ts +3 -0
  66. package/dist/node/domain-util.js +16 -0
  67. package/dist/node/domain-util.js.map +1 -0
  68. package/dist/node/errors.d.ts +4 -0
  69. package/dist/node/errors.js +4 -0
  70. package/dist/node/errors.js.map +1 -1
  71. package/dist/node/generated-version.d.ts +1 -1
  72. package/dist/node/generated-version.js +1 -1
  73. package/dist/node/index-with-compile-cache.d.ts +18 -12
  74. package/dist/node/index.d.ts +18 -12
  75. package/dist/node/pkc-error.d.ts +1 -1
  76. package/dist/node/publications/community-edit/schema.d.ts +12 -8
  77. package/dist/node/pubsub-messages/schema.d.ts +6 -4
  78. package/dist/node/rpc/src/lib/pkc-js/index.d.ts +9 -6
  79. package/dist/node/rpc/src/schema.d.ts +54 -36
  80. package/dist/node/runtime/node/community/challenges/exclude/exclude.d.ts +1 -1
  81. package/dist/node/runtime/node/community/challenges/exclude/exclude.js +41 -16
  82. package/dist/node/runtime/node/community/challenges/exclude/exclude.js.map +1 -1
  83. package/dist/node/runtime/node/community/challenges/exclude/utils.d.ts +2 -3
  84. package/dist/node/runtime/node/community/challenges/exclude/utils.js +1 -15
  85. package/dist/node/runtime/node/community/challenges/exclude/utils.js.map +1 -1
  86. package/dist/node/runtime/node/community/challenges/index.js +1 -1
  87. package/dist/node/runtime/node/community/challenges/index.js.map +1 -1
  88. package/dist/node/runtime/node/community/challenges/pkc-js-challenges/blacklist.js +18 -13
  89. package/dist/node/runtime/node/community/challenges/pkc-js-challenges/blacklist.js.map +1 -1
  90. package/dist/node/runtime/node/community/challenges/pkc-js-challenges/whitelist.js +18 -13
  91. package/dist/node/runtime/node/community/challenges/pkc-js-challenges/whitelist.js.map +1 -1
  92. package/dist/node/runtime/node/community/db-handler.d.ts +3 -2
  93. package/dist/node/runtime/node/community/db-handler.js +20 -2
  94. package/dist/node/runtime/node/community/db-handler.js.map +1 -1
  95. package/dist/node/runtime/node/community/local-community/author-identity.d.ts +19 -0
  96. package/dist/node/runtime/node/community/local-community/author-identity.js +50 -0
  97. package/dist/node/runtime/node/community/local-community/author-identity.js.map +1 -0
  98. package/dist/node/runtime/node/community/local-community/publication-validation.js +8 -22
  99. package/dist/node/runtime/node/community/local-community/publication-validation.js.map +1 -1
  100. package/dist/node/schema/schema-util.d.ts +27 -18
  101. package/dist/node/schema.d.ts +72 -48
  102. package/dist/node/test/test-util.d.ts +13 -10
  103. package/dist/node/test/test-util.js +1 -1
  104. package/dist/node/test/test-util.js.map +1 -1
  105. package/dist/node/util.d.ts +1 -4
  106. package/dist/node/util.js +4 -10
  107. package/dist/node/util.js.map +1 -1
  108. package/dist/node/version.js +1 -1
  109. package/package.json +3 -2
@@ -5325,6 +5325,10 @@ var messages;
5325
5325
  messages["ERR_INVALID_CREATE_PKC_WS_SERVER_OPTIONS_SCHEMA"] = "Invalid create arguments for PKC WS RPC server";
5326
5326
  messages["ERR_INVALID_CREATE_PKC_ARGS_SCHEMA"] = "User sent arguments with invalid schema in an attempt to create a PKC instance";
5327
5327
  messages["ERR_INVALID_CREATE_COMMUNITY_WITH_RPC_ARGS_SCHEMA"] = "User provided invalid schema of arguments for pkc.createCommunity while connected to RPC";
5328
+ messages["ERR_CHALLENGE_EXCLUDE_ADDRESS_FIELD_REMOVED"] = "community.settings.challenges[x].exclude[y].address has been removed. Use exclude.publicKeys for key-derived author addresses (author.publicKey) and exclude.names for author domains";
5329
+ messages["ERR_CHALLENGE_EXCLUDE_ROLE_FIELD_RENAMED"] = "community.settings.challenges[x].exclude[y].role has been renamed to exclude.roles";
5330
+ messages["ERR_CHALLENGE_EXCLUDE_PUBLIC_KEYS_MUST_NOT_BE_DOMAIN"] = "community.settings.challenges[x].exclude[y].publicKeys must contain key-derived author addresses (author.publicKey), not domains. Use exclude.names for domains";
5331
+ messages["ERR_CHALLENGE_EXCLUDE_NAMES_MUST_BE_DOMAIN"] = "community.settings.challenges[x].exclude[y].names must contain author domains, not key-derived addresses. Use exclude.publicKeys for addresses";
5328
5332
  messages["ERR_CAN_NOT_SET_EXCLUDE_PUBLICATION_TO_EMPTY_OBJECT"] = "The community has community.settings.challenges[x].exclude[y].publicationType is set to an empty object. You should either choose which publication to exclude or remove exclude.publicationType";
5329
5333
  messages["ERR_COMMUNITY_HAS_NO_INTERNAL_STATE"] = "The community has no internal state. This should never happen. Please report this bug.";
5330
5334
  messages["ERR_AUTHOR_ADDRESS_NOT_MATCHING_SIGNER"] = "comment.author.address does not match signer.address";
@@ -6569,6 +6573,18 @@ const VotePubsubReservedFields = r$2(n([
6569
6573
  "nameResolved"
6570
6574
  ]), t$3(VotePubsubMessagePublicationSchema.shape));
6571
6575
  //#endregion
6576
+ //#region dist/node/domain-util.js
6577
+ function isStringDomain(x) {
6578
+ return typeof x === "string" && x.includes(".");
6579
+ }
6580
+ function isEthAliasDomain$1(address) {
6581
+ const lower = address.toLowerCase();
6582
+ return lower.endsWith(".eth") || lower.endsWith(".bso");
6583
+ }
6584
+ function normalizeEthAliasDomain(address) {
6585
+ return address.endsWith(".bso") ? address.slice(0, -4) + ".eth" : address;
6586
+ }
6587
+ //#endregion
6572
6588
  //#region dist/node/community/schema.js
6573
6589
  const CommunityEncryptionSchema = looseObject({
6574
6590
  type: string().min(1),
@@ -6671,6 +6687,8 @@ const ChallengeExcludePublicationTypeSchema = looseObject({
6671
6687
  commentModeration: excludePublicationFieldSchema,
6672
6688
  communityEdit: excludePublicationFieldSchema
6673
6689
  }).refine((args) => !e$2(JSON.parse(JSON.stringify(args))), messages.ERR_CAN_NOT_SET_EXCLUDE_PUBLICATION_TO_EMPTY_OBJECT);
6690
+ const ChallengeExcludePublicKeySchema = AuthorAddressSchema.refine((address) => !isStringDomain(address), messages.ERR_CHALLENGE_EXCLUDE_PUBLIC_KEYS_MUST_NOT_BE_DOMAIN);
6691
+ const ChallengeExcludeNameSchema = AuthorAddressSchema.refine((name) => isStringDomain(name), messages.ERR_CHALLENGE_EXCLUDE_NAMES_MUST_BE_DOMAIN);
6674
6692
  const ChallengeExcludeSchema = looseObject({
6675
6693
  community: ChallengeExcludeCommunitySchema.optional(),
6676
6694
  postScore: number().int().optional(),
@@ -6679,18 +6697,20 @@ const ChallengeExcludeSchema = looseObject({
6679
6697
  replyCount: number().nonnegative().int().optional(),
6680
6698
  firstCommentTimestamp: PKCTimestampSchema.optional(),
6681
6699
  challenges: number().nonnegative().int().array().optional(),
6682
- role: CommunityRoleSchema.shape.role.array().optional(),
6683
- address: AuthorAddressSchema.array().optional(),
6700
+ roles: CommunityRoleSchema.shape.role.array().nonempty().optional(),
6701
+ publicKeys: ChallengeExcludePublicKeySchema.array().nonempty().optional(),
6702
+ names: ChallengeExcludeNameSchema.array().nonempty().optional(),
6684
6703
  rateLimit: number().nonnegative().int().optional(),
6685
6704
  rateLimitChallengeSuccess: boolean().optional(),
6686
6705
  publicationType: ChallengeExcludePublicationTypeSchema.optional()
6687
6706
  });
6707
+ 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);
6688
6708
  const CommunityChallengeSettingSchema = object({
6689
6709
  path: string().optional(),
6690
6710
  name: string().optional(),
6691
6711
  options: record(string(), string()).optional(),
6692
6712
  publicOptions: string().array().optional(),
6693
- exclude: ChallengeExcludeSchema.array().nonempty().optional(),
6713
+ exclude: ChallengeExcludeSettingSchema.array().nonempty().optional(),
6694
6714
  description: string().optional(),
6695
6715
  pendingApproval: boolean().optional()
6696
6716
  }).strict().refine((challengeData) => challengeData.path || challengeData.name, "Path or name of challenge has to be defined");
@@ -15235,7 +15255,7 @@ var require_sha256 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
15235
15255
  //#endregion
15236
15256
  //#region dist/node/pkc/tracked-instance-registry-util.js
15237
15257
  const trackedAliasHistorySymbol = Symbol("trackedAliasHistory");
15238
- function isEthAliasDomain$1(address) {
15258
+ function isEthAliasDomain(address) {
15239
15259
  const lower = address.toLowerCase();
15240
15260
  return lower.endsWith(".eth") || lower.endsWith(".bso");
15241
15261
  }
@@ -15282,7 +15302,7 @@ function getCommunityRegistryAliases(community, dataPath) {
15282
15302
  ]);
15283
15303
  if (aliases.length === 0) throw new PKCError("ERR_COMMUNITY_REGISTRY_LOOKUP_HAS_NO_ALIASES", { community });
15284
15304
  return scopeAliasesToDataPath(dedupeAliases(aliases.flatMap((alias) => {
15285
- if (isEthAliasDomain$1(alias)) return getEquivalentCommunityAliases(alias);
15305
+ if (isEthAliasDomain(alias)) return getEquivalentCommunityAliases(alias);
15286
15306
  return [alias];
15287
15307
  })), dataPath);
15288
15308
  }
@@ -15568,21 +15588,11 @@ async function genToArray(gen) {
15568
15588
  for await (const x of gen) out.push(x);
15569
15589
  return out;
15570
15590
  }
15571
- function isStringDomain(x) {
15572
- return typeof x === "string" && x.includes(".");
15573
- }
15574
- function isEthAliasDomain(address) {
15575
- const lower = address.toLowerCase();
15576
- return lower.endsWith(".eth") || lower.endsWith(".bso");
15577
- }
15578
- function normalizeEthAliasDomain(address) {
15579
- return address.endsWith(".bso") ? address.slice(0, -4) + ".eth" : address;
15580
- }
15581
15591
  function areEquivalentCommunityAddresses(addressA, addressB) {
15582
15592
  if (addressA === addressB) return true;
15583
15593
  const lowerA = addressA.toLowerCase();
15584
15594
  const lowerB = addressB.toLowerCase();
15585
- if (!isEthAliasDomain(lowerA) || !isEthAliasDomain(lowerB)) return false;
15595
+ if (!isEthAliasDomain$1(lowerA) || !isEthAliasDomain$1(lowerB)) return false;
15586
15596
  return normalizeEthAliasDomain(lowerA) === normalizeEthAliasDomain(lowerB);
15587
15597
  }
15588
15598
  function getEquivalentCommunityAddresses(address) {
@@ -16225,14 +16235,14 @@ function extractNetworkErrorDetails(err, depth = 0) {
16225
16235
  }
16226
16236
  //#endregion
16227
16237
  //#region dist/node/generated-version.js
16228
- const version = "0.0.100";
16238
+ const version = "0.0.101";
16229
16239
  //#endregion
16230
16240
  //#region dist/node/version.js
16231
16241
  const protocolVersion = ProtocolVersionSchema.parse("1.0.0");
16232
16242
  const pkcJsVersion = version;
16233
16243
  var version_default = {
16234
16244
  PKC_JS_VERSION: pkcJsVersion,
16235
- DB_VERSION: 41,
16245
+ DB_VERSION: 42,
16236
16246
  PROTOCOL_VERSION: protocolVersion,
16237
16247
  USER_AGENT: UserAgentSchema.parse(`/pkc-js:${pkcJsVersion}/`)
16238
16248
  };
@@ -16379,4 +16389,4 @@ const DecryptedChallengeVerificationSchema = object({
16379
16389
  }).strict();
16380
16390
  const ChallengeVerificationMessageSignedPropertyNames = t$3(n$3(ChallengeVerificationMessageSchema.shape, ["signature"]));
16381
16391
  //#endregion
16382
- export { isRequestPubsubPublicationOfReply as $, CommunityAuthorChallengeReservedFieldNames as $n, CreateCommentModerationOptionsWithRefinementSchema as $t, doesDomainAddressHaveCapitalLetter as A, CommentUpdateReservedFields as An, boolean as Ar, listUpdatingCommunities as At, ipnsNameToIpnsOverPubsubTopic as B, CommentEditPubsubMessagePublicationSchema as Bn, stringifyPrimitive as Br, require_sha256 as Bt, calculateStringSizeSameAsIpfsAddCidV0 as C, CommentIpfsSchema as Cn, messages as Cr, writeKuboFilesWithTimeout as Ct, createAbortError as D, CommentUpdateChallengeReservedFieldNames as Dn, setErrorMap as Dr, findUpdatingCommunity as Dt, contentContainsMarkdownVideos as E, CommentSignedPropertyNames as En, require_ms as Er, findUpdatingComment as Et, getErrorCodeFromMessage as F, CreateCommentOptionsWithRefinementSchema as Fn, record as Fr, trackUpdatingComment as Ft, isIpnsPath as G, CreateCommentEditOptionsWithRefinementSchema as Gn, CommunityEditPublicationSignedPropertyNames as Gt, isIpfsCid as H, CommentEditReservedFields as Hn, pTimeout as Ht, getIpnsRecordInLocalKuboNode as I, GetPageParamSchema as In, string as Ir, trackUpdatingCommunity as It, isLinkOfImage as J, AuthorReservedFields as Jn, CommentModerationChallengeRequestToEncryptSchema as Jt, isLinkOfAnimatedImage as K, AuthorAddressSchema as Kn, CommunityEditPubsubMessagePublicationSchema as Kt, getPostUpdateTimestampRange as L, ModQueuePageIpfsSchema as Ln, ZodError as Lr, untrackStartedCommunity as Lt, fetchAndValidateIpnsRecordFromGateway as M, CommentUpdateSignedPropertyNames as Mn, literal as Mr, refreshTrackedCommunityAliases as Mt, genToArray as N, CommentUpdateTableRowSchema as Nn, number as Nr, syncCommunityRegistryEntry as Nt, deepMergeRuntimeFields as O, CommentUpdateForChallengeVerificationSchema as On, _enum as Or, listStartedCommunities as Ot, getEquivalentCommunityAddresses as P, CommentsTableRowSchema as Pn, object as Pr, trackStartedCommunity as Pt, isRequestPubsubPublicationOfPost as Q, CommunityAddressSchema as Qn, CommentModerationsTableRowSchema as Qt, hideClassPrivateProps as R, PageIpfsSchema as Rn, joinValues as Rr, untrackUpdatingComment as Rt, calculateIpfsCidV0 as S, CommentIpfsReservedFields as Sn, PKCError as Sr, waitForUpdateInCommunityInstanceWithErrorAndTimeout as St, contentContainsMarkdownImages as T, CommentPubsubMessageWithFlexibleAuthorRefinementSchema as Tn, require_supports_color as Tr, findStartedCommunity as Tt, isIpfsPath as U, CommentEditSignedPropertyNames as Un, CommunityEditPublicationChallengeRequestToEncryptSchema as Ut, isAbortError as V, CommentEditPubsubMessagePublicationWithFlexibleAuthorSchema as Vn, TimeoutError as Vt, isIpns as W, CommentEditsTableRowSchema as Wn, CommunityEditPublicationPubsubReservedFields as Wt, isLinkOfVideo as X, CidPathSchema as Xn, CommentModerationReservedFields as Xt, isLinkOfMedia as Y, ChallengeAnswersSchema as Yn, CommentModerationPubsubMessagePublicationSchema as Yt, isLinkValid as Z, CidStringSchema as Zn, CommentModerationSignedPropertyNames as Zt, PKCUserOptionBaseSchema as _, VotePubsubMessagePublicationSchema as _n, FailedToFetchCommentIpfsFromGatewaysError as _r, shortifyCid as _t, ChallengeRequestMessageSchema as a, CommunityExportRecordsSchema as an, t$3 as ar, rejectWhenCommunityStopsOrAborts as at, areEquivalentCommunityAddresses as b, VoteTablesRowSchema as bn, FailedToFetchGenericIpfsFromGatewaysError as br, throwIfAbortSignalAborted as bt, ChallengeVerificationMessageSignedPropertyNames as c, CommunitySignedPropertyNames as cn, t$4 as cr, removeNullUndefinedEmptyObjectsValuesRecursively as ct, DecryptedChallengeRequestSchema as d, CreateRpcCommunityFunctionArgumentSchema as dn, n$7 as dr, replaceXWithY as dt, ChallengeFileFactorySchema as en, CreateSignerSchema as er, isStringDomain as et, DecryptedChallengeSchema as f, ExportCommunityModLogsOptionsSchema as fn, r$4 as fr, resolveWhenPredicateIsTrue as ft, PKCParsedOptionsSchema as g, VoteChallengeRequestToEncryptSchema as gn, require_retry as gr, shortifyAddress as gt, NameResolverSerializedSchema as h, CreateVoteUserOptionsWithRefinementSchema as hn, e$4 as hr, retryKuboIpfsAddAndProvide as ht, ChallengeMessageSignedPropertyNames as i, CommunityEditOptionsSchema as in, t$2 as ir, rejectWhenAbortSignalFires as it, extractNetworkErrorDetails as j, CommentUpdateSchema as jn, custom as jr, refreshTrackedCommentAliases as jt, derivePublicationFromChallengeRequest as k, CommentUpdateForChallengeVerificationSignedPropertyNames as kn, array as kr, listUpdatingComments as kt, DecryptedChallengeAnswerSchema as l, CreateNewLocalCommunityUserOptionsSchema as ln, r$2 as lr, removeNullUndefinedValues as lt, NameResolveCacheOptionsSchema as m, RpcRemoteCommunityUpdateEventResultSchema as mn, t$8 as mr, retryKuboIpfsAdd as mt, ChallengeAnswerMessageSignedPropertyNames as n, CommunityAnchorSchema as nn, t$1 as nr, pubsubTopicToDhtKeyCid as nt, ChallengeRequestMessageSignedPropertyNames as o, CommunityIpfsReservedFields as on, e as or, removeBlocksFromKuboNode as ot, DecryptedChallengeVerificationSchema as p, PubsubTopicSchema as pn, t$7 as pr, retryKuboBlockPutPinAndProvidePubsubTopic as pt, isLinkOfAudio as q, AuthorCommentIpfsReservedFields as qn, CreateCommunityEditPublicationOptionsWithRefinementSchema as qt, ChallengeMessageSchema as r, CommunityChallengeSettingSchema as rn, n$3 as rr, raceAgainstAbort as rt, ChallengeVerificationMessageSchema as s, CommunityIpfsSchema as sn, e$2 as sr, removeMfsFilesSafely as st, ChallengeAnswerMessageSchema as t, ChallengeFileSchema as tn, n as tr, pubsubTopicToDhtKey as tt, DecryptedChallengeRequestPublicationSchema as u, CreateRemoteCommunityFunctionArgumentSchema as un, t$5 as ur, removeUndefinedValuesRecursively as ut, PKCUserOptionsSchema as v, VotePubsubReservedFields as vn, FailedToFetchCommentUpdateFromGatewaysError as vr, sleepUntilTimeoutOrAbort as vt, contentContainsMarkdownAudio as w, CommentPubsubMessageReservedFields as wn, logger_default as wr, findCommunityInRegistry as wt, binaryKeyToPubsubTopic as x, CommentChallengeRequestToEncryptSchema as xn, FailedToFetchPageIpfsFromGatewaysError as xr, timestamp as xt, version_default as y, VoteSignedPropertyNames as yn, FailedToFetchCommunityFromGatewaysError as yr, statMfsPathSafely as yt, interruptibleSleep as z, CommentEditChallengeRequestToEncryptSchema as zn, parsedType as zr, untrackUpdatingCommunity as zt };
16392
+ export { isRequestPubsubPublicationOfReply as $, CommunityAuthorChallengeReservedFieldNames as $n, ChallengeFileFactorySchema as $t, doesDomainAddressHaveCapitalLetter as A, CommentUpdateReservedFields as An, boolean as Ar, refreshTrackedCommentAliases as At, ipnsNameToIpnsOverPubsubTopic as B, CommentEditPubsubMessagePublicationSchema as Bn, stringifyPrimitive as Br, TimeoutError as Bt, calculateStringSizeSameAsIpfsAddCidV0 as C, CommentIpfsSchema as Cn, messages as Cr, findCommunityInRegistry as Ct, createAbortError as D, CommentUpdateChallengeReservedFieldNames as Dn, setErrorMap as Dr, listStartedCommunities as Dt, contentContainsMarkdownVideos as E, CommentSignedPropertyNames as En, require_ms as Er, findUpdatingCommunity as Et, getErrorCodeFromMessage as F, CreateCommentOptionsWithRefinementSchema as Fn, record as Fr, trackUpdatingCommunity as Ft, isIpnsPath as G, CreateCommentEditOptionsWithRefinementSchema as Gn, CommunityEditPubsubMessagePublicationSchema as Gt, isIpfsCid as H, CommentEditReservedFields as Hn, CommunityEditPublicationChallengeRequestToEncryptSchema as Ht, getIpnsRecordInLocalKuboNode as I, GetPageParamSchema as In, string as Ir, untrackStartedCommunity as It, isLinkOfImage as J, AuthorReservedFields as Jn, CommentModerationPubsubMessagePublicationSchema as Jt, isLinkOfAnimatedImage as K, AuthorAddressSchema as Kn, CreateCommunityEditPublicationOptionsWithRefinementSchema as Kt, getPostUpdateTimestampRange as L, ModQueuePageIpfsSchema as Ln, ZodError as Lr, untrackUpdatingComment as Lt, fetchAndValidateIpnsRecordFromGateway as M, CommentUpdateSignedPropertyNames as Mn, literal as Mr, syncCommunityRegistryEntry as Mt, genToArray as N, CommentUpdateTableRowSchema as Nn, number as Nr, trackStartedCommunity as Nt, deepMergeRuntimeFields as O, CommentUpdateForChallengeVerificationSchema as On, _enum as Or, listUpdatingComments as Ot, getEquivalentCommunityAddresses as P, CommentsTableRowSchema as Pn, object as Pr, trackUpdatingComment as Pt, isRequestPubsubPublicationOfPost as Q, CommunityAddressSchema as Qn, CreateCommentModerationOptionsWithRefinementSchema as Qt, hideClassPrivateProps as R, PageIpfsSchema as Rn, joinValues as Rr, untrackUpdatingCommunity as Rt, calculateIpfsCidV0 as S, CommentIpfsReservedFields as Sn, PKCError as Sr, writeKuboFilesWithTimeout as St, contentContainsMarkdownImages as T, CommentPubsubMessageWithFlexibleAuthorRefinementSchema as Tn, require_supports_color as Tr, findUpdatingComment as Tt, isIpfsPath as U, CommentEditSignedPropertyNames as Un, CommunityEditPublicationPubsubReservedFields as Ut, isAbortError as V, CommentEditPubsubMessagePublicationWithFlexibleAuthorSchema as Vn, pTimeout as Vt, isIpns as W, CommentEditsTableRowSchema as Wn, CommunityEditPublicationSignedPropertyNames as Wt, isLinkOfVideo as X, CidPathSchema as Xn, CommentModerationSignedPropertyNames as Xt, isLinkOfMedia as Y, ChallengeAnswersSchema as Yn, CommentModerationReservedFields as Yt, isLinkValid as Z, CidStringSchema as Zn, CommentModerationsTableRowSchema as Zt, PKCUserOptionBaseSchema as _, VotePubsubMessagePublicationSchema as _n, FailedToFetchCommentIpfsFromGatewaysError as _r, sleepUntilTimeoutOrAbort as _t, ChallengeRequestMessageSchema as a, CommunityIpfsReservedFields as an, t$3 as ar, removeBlocksFromKuboNode as at, areEquivalentCommunityAddresses as b, VoteTablesRowSchema as bn, FailedToFetchGenericIpfsFromGatewaysError as br, timestamp as bt, ChallengeVerificationMessageSignedPropertyNames as c, CreateNewLocalCommunityUserOptionsSchema as cn, t$4 as cr, removeNullUndefinedValues as ct, DecryptedChallengeRequestSchema as d, ExportCommunityModLogsOptionsSchema as dn, n$7 as dr, resolveWhenPredicateIsTrue as dt, ChallengeFileSchema as en, CreateSignerSchema as er, pubsubTopicToDhtKey as et, DecryptedChallengeSchema as f, PubsubTopicSchema as fn, r$4 as fr, retryKuboBlockPutPinAndProvidePubsubTopic as ft, PKCParsedOptionsSchema as g, VoteChallengeRequestToEncryptSchema as gn, require_retry as gr, shortifyCid as gt, NameResolverSerializedSchema as h, CreateVoteUserOptionsWithRefinementSchema as hn, e$4 as hr, shortifyAddress as ht, ChallengeMessageSignedPropertyNames as i, CommunityExportRecordsSchema as in, t$2 as ir, rejectWhenCommunityStopsOrAborts as it, extractNetworkErrorDetails as j, CommentUpdateSchema as jn, custom as jr, refreshTrackedCommunityAliases as jt, derivePublicationFromChallengeRequest as k, CommentUpdateForChallengeVerificationSignedPropertyNames as kn, array as kr, listUpdatingCommunities as kt, DecryptedChallengeAnswerSchema as l, CreateRemoteCommunityFunctionArgumentSchema as ln, r$2 as lr, removeUndefinedValuesRecursively as lt, NameResolveCacheOptionsSchema as m, isStringDomain as mn, t$8 as mr, retryKuboIpfsAddAndProvide as mt, ChallengeAnswerMessageSignedPropertyNames as n, CommunityChallengeSettingSchema as nn, t$1 as nr, raceAgainstAbort as nt, ChallengeRequestMessageSignedPropertyNames as o, CommunityIpfsSchema as on, e as or, removeMfsFilesSafely as ot, DecryptedChallengeVerificationSchema as p, RpcRemoteCommunityUpdateEventResultSchema as pn, t$7 as pr, retryKuboIpfsAdd as pt, isLinkOfAudio as q, AuthorCommentIpfsReservedFields as qn, CommentModerationChallengeRequestToEncryptSchema as qt, ChallengeMessageSchema as r, CommunityEditOptionsSchema as rn, n$3 as rr, rejectWhenAbortSignalFires as rt, ChallengeVerificationMessageSchema as s, CommunitySignedPropertyNames as sn, e$2 as sr, removeNullUndefinedEmptyObjectsValuesRecursively as st, ChallengeAnswerMessageSchema as t, CommunityAnchorSchema as tn, n as tr, pubsubTopicToDhtKeyCid as tt, DecryptedChallengeRequestPublicationSchema as u, CreateRpcCommunityFunctionArgumentSchema as un, t$5 as ur, replaceXWithY as ut, PKCUserOptionsSchema as v, VotePubsubReservedFields as vn, FailedToFetchCommentUpdateFromGatewaysError as vr, statMfsPathSafely as vt, contentContainsMarkdownAudio as w, CommentPubsubMessageReservedFields as wn, logger_default as wr, findStartedCommunity as wt, binaryKeyToPubsubTopic as x, CommentChallengeRequestToEncryptSchema as xn, FailedToFetchPageIpfsFromGatewaysError as xr, waitForUpdateInCommunityInstanceWithErrorAndTimeout as xt, version_default as y, VoteSignedPropertyNames as yn, FailedToFetchCommunityFromGatewaysError as yr, throwIfAbortSignalAborted as yt, interruptibleSleep as z, CommentEditChallengeRequestToEncryptSchema as zn, parsedType as zr, require_sha256 as zt };
@@ -1,4 +1,4 @@
1
- import { Sr as PKCError, nt as pubsubTopicToDhtKeyCid } from "./schema-CYR820MD.js";
1
+ import { Sr as PKCError, tt as pubsubTopicToDhtKeyCid } from "./schema-DdD_6tTd.js";
2
2
  import { ipnsSelector } from "ipns/selector";
3
3
  import { ipnsValidator } from "ipns/validator";
4
4
  import { unmarshalIPNSRecord } from "ipns";
@@ -1,2 +1,2 @@
1
- import { a as getShortCid, i as getShortAddress, n as challenges, o as nativeFunctions, r as createAnchorIpnsRecord, s as setNativeFunctions, t as PKC } from "./chunks/node-2PkhAerB.js";
1
+ import { a as getShortCid, i as getShortAddress, n as challenges, o as nativeFunctions, r as createAnchorIpnsRecord, s as setNativeFunctions, t as PKC } from "./chunks/node-pGNrsJuH.js";
2
2
  export { challenges, createAnchorIpnsRecord, PKC as default, getShortAddress, getShortCid, nativeFunctions, setNativeFunctions };
@@ -1,7 +1,7 @@
1
- import { Ht as pTimeout, R as hideClassPrivateProps, Sr as PKCError, Tt as findStartedCommunity, ar as t, dt as replaceXWithY, rr as n, wr as logger_default } from "../../chunks/schema-CYR820MD.js";
2
- import { _ as parseRpcPublishAnchorRecordParam, c as parseRpcAuthorNameParam, d as parseRpcCommentRepliesPageParam, f as parseRpcCommunityIdentifierParam, g as parseRpcExportCommunityParam, h as parseRpcExportCommunityModLogsParam, l as parseRpcCancelExportParam, m as parseRpcEditCommunityParam, p as parseRpcCommunityPageParam, t as PKC, u as parseRpcCidParam, v as parseRpcPublishChallengeAnswersParam, y as parseRpcUnsubscribeParam } from "../../chunks/node-2PkhAerB.js";
3
- import { An as parseSetNewSettingsPKCWsServerSchemaWithPKCErrorIfItFails, Cn as parseDecryptedChallengeAnswerWithPKCErrorIfItFails, J as buildPagesRuntimeFields, ct as pRetry, dn as parseCommunityEditOptionsSchemaWithPKCErrorIfItFails, dt as require_lib, jn as parseVoteChallengeRequestToEncryptSchemaWithPKCErrorIfItFails, lt as pLimit, nn as parseCommentChallengeRequestToEncryptSchemaWithPKCErrorIfItFails, on as parseCommentModerationChallengeRequestToEncryptSchemaWithPKCErrorIfItFails, q as buildPageRuntimeFields, rn as parseCommentEditChallengeRequestToEncryptSchemaWithPKCErrorIfItFails, rr as t$1, rt as extractCrosspostRuntimeFields, un as parseCommunityEditChallengeRequestToEncryptSchemaWithPKCErrorIfItFails, ur as stringify, vn as parseCreateNewLocalCommunityUserOptionsSchemaWithPKCErrorIfItFails, yn as parseCreatePKCWsServerOptionsSchemaWithPKCErrorIfItFails } from "../../chunks/rpc-local-community-BK1FjUk2.js";
4
- import { t as LocalCommunity } from "../../chunks/local-community-ph-pl_pg.js";
1
+ import { R as hideClassPrivateProps, Sr as PKCError, Vt as pTimeout, ar as t, rr as n, ut as replaceXWithY, wr as logger_default, wt as findStartedCommunity } from "../../chunks/schema-DdD_6tTd.js";
2
+ import { _ as parseRpcPublishAnchorRecordParam, c as parseRpcAuthorNameParam, d as parseRpcCommentRepliesPageParam, f as parseRpcCommunityIdentifierParam, g as parseRpcExportCommunityParam, h as parseRpcExportCommunityModLogsParam, l as parseRpcCancelExportParam, m as parseRpcEditCommunityParam, p as parseRpcCommunityPageParam, t as PKC, u as parseRpcCidParam, v as parseRpcPublishChallengeAnswersParam, y as parseRpcUnsubscribeParam } from "../../chunks/node-pGNrsJuH.js";
3
+ import { J as buildPageRuntimeFields, Mn as parseVoteChallengeRequestToEncryptSchemaWithPKCErrorIfItFails, Y as buildPagesRuntimeFields, bn as parseCreatePKCWsServerOptionsSchemaWithPKCErrorIfItFails, dn as parseCommunityEditChallengeRequestToEncryptSchemaWithPKCErrorIfItFails, dr as stringify, fn as parseCommunityEditOptionsSchemaWithPKCErrorIfItFails, ft as require_lib, in as parseCommentEditChallengeRequestToEncryptSchemaWithPKCErrorIfItFails, ir as t$1, it as extractCrosspostRuntimeFields, jn as parseSetNewSettingsPKCWsServerSchemaWithPKCErrorIfItFails, lt as pRetry, rn as parseCommentChallengeRequestToEncryptSchemaWithPKCErrorIfItFails, sn as parseCommentModerationChallengeRequestToEncryptSchemaWithPKCErrorIfItFails, ut as pLimit, wn as parseDecryptedChallengeAnswerWithPKCErrorIfItFails, yn as parseCreateNewLocalCommunityUserOptionsSchemaWithPKCErrorIfItFails } from "../../chunks/rpc-local-community-pLvHO4g9.js";
4
+ import { t as LocalCommunity } from "../../chunks/local-community-DtlDCcc2.js";
5
5
  import { fileURLToPath } from "node:url";
6
6
  import path from "path";
7
7
  import assert from "assert";
@@ -121,8 +121,9 @@ export declare const parseRpcEditCommunityParam: (params: unknown) => {
121
121
  replyCount?: number | undefined;
122
122
  firstCommentTimestamp?: number | undefined;
123
123
  challenges?: number[] | undefined;
124
- role?: string[] | undefined;
125
- address?: string[] | undefined;
124
+ roles?: string[] | undefined;
125
+ publicKeys?: string[] | undefined;
126
+ names?: string[] | undefined;
126
127
  rateLimit?: number | undefined;
127
128
  rateLimitChallengeSuccess?: boolean | undefined;
128
129
  publicationType?: {
@@ -392,12 +392,13 @@ export declare const RpcEditCommunityParamSchema: z.ZodObject<{
392
392
  replyCount: z.ZodOptional<z.ZodNumber>;
393
393
  firstCommentTimestamp: z.ZodOptional<z.ZodNumber>;
394
394
  challenges: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
395
- role: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEnum<{
395
+ roles: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEnum<{
396
396
  owner: "owner";
397
397
  admin: "admin";
398
398
  moderator: "moderator";
399
399
  }>, z.ZodString]>>>;
400
- address: z.ZodOptional<z.ZodArray<z.ZodString>>;
400
+ publicKeys: z.ZodOptional<z.ZodArray<z.ZodString>>;
401
+ names: z.ZodOptional<z.ZodArray<z.ZodString>>;
401
402
  rateLimit: z.ZodOptional<z.ZodNumber>;
402
403
  rateLimitChallengeSuccess: z.ZodOptional<z.ZodBoolean>;
403
404
  publicationType: z.ZodOptional<z.ZodObject<{