@nexpress/core 0.2.0 → 0.2.2

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/{audit-54XLVCWD.js → audit-43OLHR3U.js} +4 -4
  2. package/dist/auth.d.ts +2 -2
  3. package/dist/auth.js +6 -6
  4. package/dist/{can-YLUHRJAB.js → can-FKIEV54H.js} +5 -5
  5. package/dist/{chunk-TFJ4MKPH.js → chunk-26RYBFTF.js} +2 -2
  6. package/dist/{chunk-PPAS4SZR.js → chunk-2KNG5KMM.js} +2 -2
  7. package/dist/{chunk-5L2FVFUX.js → chunk-5LCLS6VE.js} +18 -18
  8. package/dist/{chunk-PPBWRKO2.js → chunk-74CGJJDY.js} +3 -3
  9. package/dist/{chunk-HKAYX4B4.js → chunk-7GNVXRLG.js} +6 -6
  10. package/dist/{chunk-2YDGE7YX.js → chunk-B7DTNT4O.js} +2 -2
  11. package/dist/{chunk-CTSQ7BRI.js → chunk-CAS4Z6IN.js} +2 -2
  12. package/dist/{chunk-BHK3AD3Q.js → chunk-CHQJG4BB.js} +3 -3
  13. package/dist/{chunk-NUCGHWCF.js → chunk-CKT4QZDC.js} +7 -7
  14. package/dist/{chunk-4IEBNUYU.js → chunk-CTUHJHLH.js} +4 -4
  15. package/dist/{chunk-473S4TER.js → chunk-DWG3RZH2.js} +4 -4
  16. package/dist/{chunk-QVJ2HCAX.js → chunk-ELK6AVW5.js} +4 -4
  17. package/dist/{chunk-UGQSQO5B.js → chunk-HM46WM45.js} +9 -9
  18. package/dist/{chunk-YFJK2YEJ.js → chunk-KSUS4UNN.js} +3 -3
  19. package/dist/{chunk-FNLBIPKV.js → chunk-L4F5RAQ5.js} +11 -11
  20. package/dist/{chunk-THX3SHYA.js → chunk-L6VG7IK6.js} +3 -3
  21. package/dist/{chunk-VNIHXQ7W.js → chunk-LN6NTH6E.js} +5 -5
  22. package/dist/{chunk-RIPHIRPP.js → chunk-ML2E3P3X.js} +3 -3
  23. package/dist/{chunk-JJL74ZPK.js → chunk-NFHS7CFV.js} +2 -2
  24. package/dist/{chunk-55FU6WED.js → chunk-PQBJWZ7D.js} +6 -6
  25. package/dist/{chunk-DK2JBJH7.js → chunk-QBIJZZ5V.js} +3 -3
  26. package/dist/{chunk-OK5HOCQI.js → chunk-QYP6E5FP.js} +4 -4
  27. package/dist/{chunk-GFXXRMH4.js → chunk-S37WWNBB.js} +29 -29
  28. package/dist/{chunk-S27S42QY.js → chunk-TETTWT56.js} +2 -2
  29. package/dist/{chunk-FZ7O6DWI.js → chunk-U4QCCLAW.js} +2 -2
  30. package/dist/{chunk-M43PGOQY.js → chunk-X7K5F2UI.js} +474 -474
  31. package/dist/chunk-X7K5F2UI.js.map +1 -0
  32. package/dist/community.d.ts +1 -1
  33. package/dist/community.js +17 -17
  34. package/dist/{config-XIWZFOFI.js → config-65OBL4YH.js} +10 -10
  35. package/dist/db-schema.d.ts +2 -2
  36. package/dist/db-schema.js +2 -2
  37. package/dist/db.d.ts +3 -3
  38. package/dist/db.js +3 -3
  39. package/dist/{digest-SY42GQSU.js → digest-ZODDTXA2.js} +6 -6
  40. package/dist/{host-SOCAJIUE.js → host-55D6RX3U.js} +7 -7
  41. package/dist/i18n.d.ts +1 -1
  42. package/dist/i18n.js +5 -5
  43. package/dist/{index-XwP1ET8b.d.ts → index-BWsQUGRZ.d.ts} +2 -2
  44. package/dist/{index-B6-_vr_m.d.ts → index-BpW3PGhP.d.ts} +1 -1
  45. package/dist/{index-CY55LC0u.d.ts → index-Ccw0AkXh.d.ts} +3 -3
  46. package/dist/{index-CeiTvwbp.d.ts → index-D6Q7DOl7.d.ts} +1 -1
  47. package/dist/index.d.ts +34 -8
  48. package/dist/index.js +225 -33
  49. package/dist/index.js.map +1 -1
  50. package/dist/{job-log-VZXWQUDK.js → job-log-N3IGI4NA.js} +4 -4
  51. package/dist/jobs.d.ts +2 -2
  52. package/dist/jobs.js +4 -4
  53. package/dist/{logger-S7REWDNE.js → logger-2WUTTELV.js} +2 -2
  54. package/dist/media.d.ts +2 -2
  55. package/dist/media.js +5 -5
  56. package/dist/{mentions-2IHFVSHW.js → mentions-NCQR4B72.js} +5 -5
  57. package/dist/{mutes-EWAE5FZR.js → mutes-FJSSU2JP.js} +5 -5
  58. package/dist/{notification-prefs-VPJDU7I6.js → notification-prefs-H4HFVCL7.js} +3 -3
  59. package/dist/observability.js +2 -2
  60. package/dist/{registry-XIXDEPVI.js → registry-WZVL5HH6.js} +3 -3
  61. package/dist/reputation-ICIXDGPM.js +11 -0
  62. package/dist/{scheduled-W5PR7C6H.js → scheduled-UC7O2HBQ.js} +8 -8
  63. package/dist/seo.js +7 -7
  64. package/dist/{settings-FOBIESPB.js → settings-JODDWMDB.js} +3 -3
  65. package/dist/{strings-VAE47B2C.js → strings-4EWJYDOG.js} +6 -6
  66. package/dist/{types-TlsbXS0T.d.ts → types-C-r01wmU.d.ts} +25 -16
  67. package/package.json +1 -1
  68. package/dist/chunk-M43PGOQY.js.map +0 -1
  69. package/dist/reputation-JRL2YQHM.js +0 -11
  70. /package/dist/{audit-54XLVCWD.js.map → audit-43OLHR3U.js.map} +0 -0
  71. /package/dist/{can-YLUHRJAB.js.map → can-FKIEV54H.js.map} +0 -0
  72. /package/dist/{chunk-TFJ4MKPH.js.map → chunk-26RYBFTF.js.map} +0 -0
  73. /package/dist/{chunk-PPAS4SZR.js.map → chunk-2KNG5KMM.js.map} +0 -0
  74. /package/dist/{chunk-5L2FVFUX.js.map → chunk-5LCLS6VE.js.map} +0 -0
  75. /package/dist/{chunk-PPBWRKO2.js.map → chunk-74CGJJDY.js.map} +0 -0
  76. /package/dist/{chunk-HKAYX4B4.js.map → chunk-7GNVXRLG.js.map} +0 -0
  77. /package/dist/{chunk-2YDGE7YX.js.map → chunk-B7DTNT4O.js.map} +0 -0
  78. /package/dist/{chunk-CTSQ7BRI.js.map → chunk-CAS4Z6IN.js.map} +0 -0
  79. /package/dist/{chunk-BHK3AD3Q.js.map → chunk-CHQJG4BB.js.map} +0 -0
  80. /package/dist/{chunk-NUCGHWCF.js.map → chunk-CKT4QZDC.js.map} +0 -0
  81. /package/dist/{chunk-4IEBNUYU.js.map → chunk-CTUHJHLH.js.map} +0 -0
  82. /package/dist/{chunk-473S4TER.js.map → chunk-DWG3RZH2.js.map} +0 -0
  83. /package/dist/{chunk-QVJ2HCAX.js.map → chunk-ELK6AVW5.js.map} +0 -0
  84. /package/dist/{chunk-UGQSQO5B.js.map → chunk-HM46WM45.js.map} +0 -0
  85. /package/dist/{chunk-YFJK2YEJ.js.map → chunk-KSUS4UNN.js.map} +0 -0
  86. /package/dist/{chunk-FNLBIPKV.js.map → chunk-L4F5RAQ5.js.map} +0 -0
  87. /package/dist/{chunk-THX3SHYA.js.map → chunk-L6VG7IK6.js.map} +0 -0
  88. /package/dist/{chunk-VNIHXQ7W.js.map → chunk-LN6NTH6E.js.map} +0 -0
  89. /package/dist/{chunk-RIPHIRPP.js.map → chunk-ML2E3P3X.js.map} +0 -0
  90. /package/dist/{chunk-JJL74ZPK.js.map → chunk-NFHS7CFV.js.map} +0 -0
  91. /package/dist/{chunk-55FU6WED.js.map → chunk-PQBJWZ7D.js.map} +0 -0
  92. /package/dist/{chunk-DK2JBJH7.js.map → chunk-QBIJZZ5V.js.map} +0 -0
  93. /package/dist/{chunk-OK5HOCQI.js.map → chunk-QYP6E5FP.js.map} +0 -0
  94. /package/dist/{chunk-GFXXRMH4.js.map → chunk-S37WWNBB.js.map} +0 -0
  95. /package/dist/{chunk-S27S42QY.js.map → chunk-TETTWT56.js.map} +0 -0
  96. /package/dist/{chunk-FZ7O6DWI.js.map → chunk-U4QCCLAW.js.map} +0 -0
  97. /package/dist/{config-XIWZFOFI.js.map → config-65OBL4YH.js.map} +0 -0
  98. /package/dist/{digest-SY42GQSU.js.map → digest-ZODDTXA2.js.map} +0 -0
  99. /package/dist/{host-SOCAJIUE.js.map → host-55D6RX3U.js.map} +0 -0
  100. /package/dist/{job-log-VZXWQUDK.js.map → job-log-N3IGI4NA.js.map} +0 -0
  101. /package/dist/{logger-S7REWDNE.js.map → logger-2WUTTELV.js.map} +0 -0
  102. /package/dist/{mentions-2IHFVSHW.js.map → mentions-NCQR4B72.js.map} +0 -0
  103. /package/dist/{mutes-EWAE5FZR.js.map → mutes-FJSSU2JP.js.map} +0 -0
  104. /package/dist/{notification-prefs-VPJDU7I6.js.map → notification-prefs-H4HFVCL7.js.map} +0 -0
  105. /package/dist/{registry-XIXDEPVI.js.map → registry-WZVL5HH6.js.map} +0 -0
  106. /package/dist/{reputation-JRL2YQHM.js.map → reputation-ICIXDGPM.js.map} +0 -0
  107. /package/dist/{scheduled-W5PR7C6H.js.map → scheduled-UC7O2HBQ.js.map} +0 -0
  108. /package/dist/{settings-FOBIESPB.js.map → settings-JODDWMDB.js.map} +0 -0
  109. /package/dist/{strings-VAE47B2C.js.map → strings-4EWJYDOG.js.map} +0 -0
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  listAuditEvents,
3
3
  recordAuditEvent
4
- } from "./chunk-RIPHIRPP.js";
4
+ } from "./chunk-ML2E3P3X.js";
5
5
  import "./chunk-SBCVAC2Z.js";
6
- import "./chunk-JJL74ZPK.js";
6
+ import "./chunk-NFHS7CFV.js";
7
7
  import "./chunk-XANPEOJC.js";
8
- import "./chunk-M43PGOQY.js";
8
+ import "./chunk-X7K5F2UI.js";
9
9
  import "./chunk-PZ5AY32C.js";
10
10
  export {
11
11
  listAuditEvents,
12
12
  recordAuditEvent
13
13
  };
14
- //# sourceMappingURL=audit-54XLVCWD.js.map
14
+ //# sourceMappingURL=audit-43OLHR3U.js.map
package/dist/auth.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { p as NpAccessFunction, n as NpUserRole, e as NpAuthUser } from './types-TlsbXS0T.js';
2
- export { F as NpPrincipal } from './types-TlsbXS0T.js';
1
+ import { p as NpAccessFunction, n as NpUserRole, e as NpAuthUser } from './types-C-r01wmU.js';
2
+ export { F as NpPrincipal } from './types-C-r01wmU.js';
3
3
  import { NodePgDatabase } from 'drizzle-orm/node-postgres';
4
4
  import { Options } from '@node-rs/argon2';
5
5
 
package/dist/auth.js CHANGED
@@ -37,18 +37,18 @@ import {
37
37
  verifyPassword,
38
38
  verifyToken,
39
39
  verifyTokenFull
40
- } from "./chunk-OK5HOCQI.js";
40
+ } from "./chunk-QYP6E5FP.js";
41
41
  import {
42
42
  can
43
43
  } from "./chunk-EQ2Z3KMD.js";
44
- import "./chunk-RIPHIRPP.js";
45
- import "./chunk-PPBWRKO2.js";
46
- import "./chunk-SBCVAC2Z.js";
44
+ import "./chunk-ML2E3P3X.js";
45
+ import "./chunk-74CGJJDY.js";
47
46
  import "./chunk-ZCINJSS4.js";
47
+ import "./chunk-SBCVAC2Z.js";
48
48
  import "./chunk-OROPGO65.js";
49
- import "./chunk-JJL74ZPK.js";
49
+ import "./chunk-NFHS7CFV.js";
50
50
  import "./chunk-XANPEOJC.js";
51
- import "./chunk-M43PGOQY.js";
51
+ import "./chunk-X7K5F2UI.js";
52
52
  import "./chunk-PZ5AY32C.js";
53
53
  export {
54
54
  ARGON2_OPTIONS,
@@ -3,12 +3,12 @@ import {
3
3
  isMemberBanned,
4
4
  memberCan,
5
5
  withMemberWrite
6
- } from "./chunk-55FU6WED.js";
7
- import "./chunk-FZ7O6DWI.js";
8
- import "./chunk-SBCVAC2Z.js";
6
+ } from "./chunk-PQBJWZ7D.js";
7
+ import "./chunk-U4QCCLAW.js";
9
8
  import "./chunk-ZCINJSS4.js";
9
+ import "./chunk-SBCVAC2Z.js";
10
10
  import "./chunk-XANPEOJC.js";
11
- import "./chunk-M43PGOQY.js";
11
+ import "./chunk-X7K5F2UI.js";
12
12
  import "./chunk-PZ5AY32C.js";
13
13
  export {
14
14
  assertNotBanned,
@@ -16,4 +16,4 @@ export {
16
16
  memberCan,
17
17
  withMemberWrite
18
18
  };
19
- //# sourceMappingURL=can-YLUHRJAB.js.map
19
+ //# sourceMappingURL=can-FKIEV54H.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  schema_exports
3
- } from "./chunk-PPAS4SZR.js";
3
+ } from "./chunk-2KNG5KMM.js";
4
4
  import {
5
5
  readEnvPositiveInt
6
6
  } from "./chunk-OROPGO65.js";
@@ -691,4 +691,4 @@ export {
691
691
  generateTypeScript,
692
692
  generateDocumentsModule
693
693
  };
694
- //# sourceMappingURL=chunk-TFJ4MKPH.js.map
694
+ //# sourceMappingURL=chunk-26RYBFTF.js.map
@@ -38,7 +38,7 @@ import {
38
38
  npUserRoleEnum,
39
39
  npUsers,
40
40
  npWorkerHeartbeats
41
- } from "./chunk-M43PGOQY.js";
41
+ } from "./chunk-X7K5F2UI.js";
42
42
  import {
43
43
  __export
44
44
  } from "./chunk-PZ5AY32C.js";
@@ -173,4 +173,4 @@ export {
173
173
  npMediaRefsRelations,
174
174
  schema_exports
175
175
  };
176
- //# sourceMappingURL=chunk-PPAS4SZR.js.map
176
+ //# sourceMappingURL=chunk-2KNG5KMM.js.map
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  getMutedTargetIds
3
- } from "./chunk-NUCGHWCF.js";
3
+ } from "./chunk-CKT4QZDC.js";
4
4
  import {
5
5
  createNotification,
6
6
  extractMentionHandles,
7
7
  fanOutMentionNotifications
8
- } from "./chunk-UGQSQO5B.js";
8
+ } from "./chunk-HM46WM45.js";
9
9
  import {
10
10
  applyReputation
11
- } from "./chunk-THX3SHYA.js";
11
+ } from "./chunk-L6VG7IK6.js";
12
12
  import {
13
13
  getSpamAdapter
14
14
  } from "./chunk-JKXAPSU4.js";
@@ -19,23 +19,23 @@ import {
19
19
  getCommunityRole,
20
20
  memberCan,
21
21
  withMemberWrite
22
- } from "./chunk-55FU6WED.js";
22
+ } from "./chunk-PQBJWZ7D.js";
23
23
  import {
24
24
  buildWeightedSearchVectorSql,
25
25
  deleteDocument,
26
26
  findDocuments,
27
27
  getDocumentById,
28
28
  saveDocument
29
- } from "./chunk-GFXXRMH4.js";
29
+ } from "./chunk-S37WWNBB.js";
30
30
  import {
31
31
  can
32
32
  } from "./chunk-EQ2Z3KMD.js";
33
33
  import {
34
34
  recordAuditEvent
35
- } from "./chunk-RIPHIRPP.js";
35
+ } from "./chunk-ML2E3P3X.js";
36
36
  import {
37
37
  getCommunitySettings
38
- } from "./chunk-PPBWRKO2.js";
38
+ } from "./chunk-74CGJJDY.js";
39
39
  import {
40
40
  getI18nConfig
41
41
  } from "./chunk-4ZLMEKFX.js";
@@ -45,26 +45,26 @@ import {
45
45
  getCollectionConfig,
46
46
  getCollectionRegistration,
47
47
  getCollectionTable
48
- } from "./chunk-FZ7O6DWI.js";
49
- import {
50
- getCurrentSiteId,
51
- requireSiteId
52
- } from "./chunk-SBCVAC2Z.js";
48
+ } from "./chunk-U4QCCLAW.js";
53
49
  import {
54
50
  NpConflictError,
55
51
  NpForbiddenError,
56
52
  NpNotFoundError,
57
53
  NpValidationError
58
54
  } from "./chunk-ZCINJSS4.js";
55
+ import {
56
+ getCurrentSiteId,
57
+ requireSiteId
58
+ } from "./chunk-SBCVAC2Z.js";
59
59
  import {
60
60
  getMediaUrl
61
- } from "./chunk-BHK3AD3Q.js";
61
+ } from "./chunk-CHQJG4BB.js";
62
62
  import {
63
63
  deleteMedia
64
- } from "./chunk-473S4TER.js";
64
+ } from "./chunk-DWG3RZH2.js";
65
65
  import {
66
66
  getLogger
67
- } from "./chunk-JJL74ZPK.js";
67
+ } from "./chunk-NFHS7CFV.js";
68
68
  import {
69
69
  getDb
70
70
  } from "./chunk-XANPEOJC.js";
@@ -78,7 +78,7 @@ import {
78
78
  npReactions,
79
79
  npReports,
80
80
  npRevisions
81
- } from "./chunk-M43PGOQY.js";
81
+ } from "./chunk-X7K5F2UI.js";
82
82
 
83
83
  // src/community/profiles.ts
84
84
  import { and, eq, inArray, ne, or } from "drizzle-orm";
@@ -1587,7 +1587,7 @@ async function searchCollections(opts) {
1587
1587
  });
1588
1588
  if (adapterResult) return adapterResult;
1589
1589
  } catch (err) {
1590
- const { getLogger: getLogger2 } = await import("./logger-S7REWDNE.js");
1590
+ const { getLogger: getLogger2 } = await import("./logger-2WUTTELV.js");
1591
1591
  getLogger2().warn("search adapter threw \u2014 falling back to pg tsvector", {
1592
1592
  error: err instanceof Error ? err.message : String(err)
1593
1593
  });
@@ -1956,4 +1956,4 @@ export {
1956
1956
  revokeMemberRole,
1957
1957
  purgeMemberContent
1958
1958
  };
1959
- //# sourceMappingURL=chunk-5L2FVFUX.js.map
1959
+ //# sourceMappingURL=chunk-5LCLS6VE.js.map
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-XANPEOJC.js";
7
7
  import {
8
8
  npSettings
9
- } from "./chunk-M43PGOQY.js";
9
+ } from "./chunk-X7K5F2UI.js";
10
10
 
11
11
  // src/community/settings.ts
12
12
  import { and, eq } from "drizzle-orm";
@@ -41,7 +41,7 @@ function readQuota(raw) {
41
41
  async function getCommunitySettings() {
42
42
  const db = getDb();
43
43
  const { getCurrentSiteId } = await import("./context-MNZ4QXPC.js");
44
- const { NP_DEFAULT_SITE_ID } = await import("./registry-XIXDEPVI.js");
44
+ const { NP_DEFAULT_SITE_ID } = await import("./registry-WZVL5HH6.js");
45
45
  const siteId = await getCurrentSiteId() ?? NP_DEFAULT_SITE_ID;
46
46
  const [row] = await db.select().from(npSettings).where(and(eq(npSettings.siteId, siteId), eq(npSettings.key, SETTINGS_KEY))).limit(1);
47
47
  return mergeWithDefaults(row?.value);
@@ -168,4 +168,4 @@ export {
168
168
  validateCommunitySettingsPatch,
169
169
  updateCommunitySettings
170
170
  };
171
- //# sourceMappingURL=chunk-PPBWRKO2.js.map
171
+ //# sourceMappingURL=chunk-74CGJJDY.js.map
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  getPluginRegistration
3
- } from "./chunk-GFXXRMH4.js";
4
- import {
5
- getCurrentSiteId
6
- } from "./chunk-SBCVAC2Z.js";
3
+ } from "./chunk-S37WWNBB.js";
7
4
  import {
8
5
  NpValidationError
9
6
  } from "./chunk-ZCINJSS4.js";
7
+ import {
8
+ getCurrentSiteId
9
+ } from "./chunk-SBCVAC2Z.js";
10
10
  import {
11
11
  getDb
12
12
  } from "./chunk-XANPEOJC.js";
13
13
  import {
14
14
  npSettings
15
- } from "./chunk-M43PGOQY.js";
15
+ } from "./chunk-X7K5F2UI.js";
16
16
 
17
17
  // src/plugins/config.ts
18
18
  import { and, eq } from "drizzle-orm";
@@ -319,4 +319,4 @@ export {
319
319
  setPluginConfig,
320
320
  pluginConfigCacheTag
321
321
  };
322
- //# sourceMappingURL=chunk-HKAYX4B4.js.map
322
+ //# sourceMappingURL=chunk-7GNVXRLG.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getScopedLogger
3
- } from "./chunk-JJL74ZPK.js";
3
+ } from "./chunk-NFHS7CFV.js";
4
4
 
5
5
  // src/observability/safety-check.ts
6
6
  var MIN_PROD_SECRET_LENGTH = 32;
@@ -89,4 +89,4 @@ function isLoopbackUrl(url) {
89
89
  export {
90
90
  verifyStartupSafety
91
91
  };
92
- //# sourceMappingURL=chunk-2YDGE7YX.js.map
92
+ //# sourceMappingURL=chunk-B7DTNT4O.js.map
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-XANPEOJC.js";
8
8
  import {
9
9
  npMembers
10
- } from "./chunk-M43PGOQY.js";
10
+ } from "./chunk-X7K5F2UI.js";
11
11
 
12
12
  // src/community/notification-prefs.ts
13
13
  import { eq } from "drizzle-orm";
@@ -172,4 +172,4 @@ export {
172
172
  recordDigestSent,
173
173
  isNotificationKindEnabled
174
174
  };
175
- //# sourceMappingURL=chunk-CTSQ7BRI.js.map
175
+ //# sourceMappingURL=chunk-CAS4Z6IN.js.map
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  getStorageAdapter
3
- } from "./chunk-473S4TER.js";
3
+ } from "./chunk-DWG3RZH2.js";
4
4
  import {
5
5
  getDb
6
6
  } from "./chunk-XANPEOJC.js";
7
7
  import {
8
8
  npMedia
9
- } from "./chunk-M43PGOQY.js";
9
+ } from "./chunk-X7K5F2UI.js";
10
10
 
11
11
  // src/media/url.ts
12
12
  import { and, eq, isNull } from "drizzle-orm";
@@ -38,4 +38,4 @@ async function getMediaUrl(id, options = {}) {
38
38
  export {
39
39
  getMediaUrl
40
40
  };
41
- //# sourceMappingURL=chunk-BHK3AD3Q.js.map
41
+ //# sourceMappingURL=chunk-CHQJG4BB.js.map
@@ -1,21 +1,21 @@
1
1
  import {
2
2
  NP_DEFAULT_SITE_ID
3
- } from "./chunk-FZ7O6DWI.js";
4
- import {
5
- getCurrentSiteId,
6
- requireSiteId
7
- } from "./chunk-SBCVAC2Z.js";
3
+ } from "./chunk-U4QCCLAW.js";
8
4
  import {
9
5
  NpNotFoundError,
10
6
  NpValidationError
11
7
  } from "./chunk-ZCINJSS4.js";
8
+ import {
9
+ getCurrentSiteId,
10
+ requireSiteId
11
+ } from "./chunk-SBCVAC2Z.js";
12
12
  import {
13
13
  getDb
14
14
  } from "./chunk-XANPEOJC.js";
15
15
  import {
16
16
  npMemberMutes,
17
17
  npMembers
18
- } from "./chunk-M43PGOQY.js";
18
+ } from "./chunk-X7K5F2UI.js";
19
19
 
20
20
  // src/community/mutes.ts
21
21
  import { and, desc, eq } from "drizzle-orm";
@@ -98,4 +98,4 @@ export {
98
98
  getMutedTargetIds,
99
99
  listMutes
100
100
  };
101
- //# sourceMappingURL=chunk-NUCGHWCF.js.map
101
+ //# sourceMappingURL=chunk-CKT4QZDC.js.map
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  findDocuments
3
- } from "./chunk-GFXXRMH4.js";
3
+ } from "./chunk-S37WWNBB.js";
4
4
  import {
5
5
  getI18nConfig
6
6
  } from "./chunk-4ZLMEKFX.js";
7
7
  import {
8
8
  getAllCollectionSlugs,
9
9
  getCollectionConfig
10
- } from "./chunk-FZ7O6DWI.js";
10
+ } from "./chunk-U4QCCLAW.js";
11
11
  import {
12
12
  getDb
13
13
  } from "./chunk-XANPEOJC.js";
14
14
  import {
15
15
  npSettings
16
- } from "./chunk-M43PGOQY.js";
16
+ } from "./chunk-X7K5F2UI.js";
17
17
 
18
18
  // src/seo/sitemap.ts
19
19
  var DEFAULT_LIMIT_PER_COLLECTION = 5e3;
@@ -594,4 +594,4 @@ export {
594
594
  buildDiscussionForumPostingJsonLd,
595
595
  buildPersonJsonLd
596
596
  };
597
- //# sourceMappingURL=chunk-4IEBNUYU.js.map
597
+ //# sourceMappingURL=chunk-CTUHJHLH.js.map
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-OROPGO65.js";
7
7
  import {
8
8
  getLogger
9
- } from "./chunk-JJL74ZPK.js";
9
+ } from "./chunk-NFHS7CFV.js";
10
10
  import {
11
11
  getDb
12
12
  } from "./chunk-XANPEOJC.js";
@@ -15,7 +15,7 @@ import {
15
15
  npMediaRefs,
16
16
  npMembers,
17
17
  npUsers
18
- } from "./chunk-M43PGOQY.js";
18
+ } from "./chunk-X7K5F2UI.js";
19
19
 
20
20
  // src/media/processor.ts
21
21
  import sharp from "sharp";
@@ -170,7 +170,7 @@ async function uploadMedia(file, uploader, folderId) {
170
170
  return { id, status: "processing" };
171
171
  }
172
172
  async function assertMemberUploadQuota(memberId, txDb) {
173
- const { getCommunitySettings } = await import("./settings-FOBIESPB.js");
173
+ const { getCommunitySettings } = await import("./settings-JODDWMDB.js");
174
174
  const { NpRateLimitError } = await import("./errors-5OS3S2J3.js");
175
175
  const settings = await getCommunitySettings();
176
176
  const { perDay, total } = settings.memberUploadQuota;
@@ -535,4 +535,4 @@ export {
535
535
  listMedia,
536
536
  cleanupDeletedMedia
537
537
  };
538
- //# sourceMappingURL=chunk-473S4TER.js.map
538
+ //# sourceMappingURL=chunk-DWG3RZH2.js.map
@@ -3,19 +3,19 @@ import {
3
3
  } from "./chunk-4ZLMEKFX.js";
4
4
  import {
5
5
  NP_DEFAULT_SITE_ID
6
- } from "./chunk-FZ7O6DWI.js";
6
+ } from "./chunk-U4QCCLAW.js";
7
7
  import {
8
8
  getCurrentSiteId
9
9
  } from "./chunk-SBCVAC2Z.js";
10
10
  import {
11
11
  getLogger
12
- } from "./chunk-JJL74ZPK.js";
12
+ } from "./chunk-NFHS7CFV.js";
13
13
  import {
14
14
  getDb
15
15
  } from "./chunk-XANPEOJC.js";
16
16
  import {
17
17
  npStringOverrides
18
- } from "./chunk-M43PGOQY.js";
18
+ } from "./chunk-X7K5F2UI.js";
19
19
 
20
20
  // src/i18n/strings.ts
21
21
  import IntlMessageFormat from "intl-messageformat";
@@ -222,4 +222,4 @@ export {
222
222
  tSync,
223
223
  resetTranslationCache
224
224
  };
225
- //# sourceMappingURL=chunk-QVJ2HCAX.js.map
225
+ //# sourceMappingURL=chunk-ELK6AVW5.js.map
@@ -1,21 +1,21 @@
1
1
  import {
2
2
  NP_DEFAULT_SITE_ID
3
- } from "./chunk-FZ7O6DWI.js";
4
- import {
5
- getCurrentSiteId,
6
- requireSiteId
7
- } from "./chunk-SBCVAC2Z.js";
3
+ } from "./chunk-U4QCCLAW.js";
8
4
  import {
9
5
  NpForbiddenError,
10
6
  NpValidationError
11
7
  } from "./chunk-ZCINJSS4.js";
8
+ import {
9
+ getCurrentSiteId,
10
+ requireSiteId
11
+ } from "./chunk-SBCVAC2Z.js";
12
12
  import {
13
13
  getDb
14
14
  } from "./chunk-XANPEOJC.js";
15
15
  import {
16
16
  npMembers,
17
17
  npNotifications
18
- } from "./chunk-M43PGOQY.js";
18
+ } from "./chunk-X7K5F2UI.js";
19
19
 
20
20
  // src/community/mentions.ts
21
21
  import { inArray as inArray2 } from "drizzle-orm";
@@ -24,7 +24,7 @@ import { inArray as inArray2 } from "drizzle-orm";
24
24
  import { and, count, desc, eq, isNull, inArray } from "drizzle-orm";
25
25
  async function createNotification(input) {
26
26
  if (input.actorMemberId && input.actorMemberId !== input.memberId) {
27
- const { isMuted } = await import("./mutes-EWAE5FZR.js");
27
+ const { isMuted } = await import("./mutes-FJSSU2JP.js");
28
28
  const muted = await isMuted({
29
29
  memberId: input.memberId,
30
30
  targetId: input.actorMemberId
@@ -32,7 +32,7 @@ async function createNotification(input) {
32
32
  if (muted) return null;
33
33
  }
34
34
  {
35
- const { isNotificationKindEnabled } = await import("./notification-prefs-VPJDU7I6.js");
35
+ const { isNotificationKindEnabled } = await import("./notification-prefs-H4HFVCL7.js");
36
36
  const enabled = await isNotificationKindEnabled(input.memberId, input.kind);
37
37
  if (!enabled) return null;
38
38
  }
@@ -219,4 +219,4 @@ export {
219
219
  resolveMentionedMembers,
220
220
  fanOutMentionNotifications
221
221
  };
222
- //# sourceMappingURL=chunk-UGQSQO5B.js.map
222
+ //# sourceMappingURL=chunk-HM46WM45.js.map
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  runHook
3
- } from "./chunk-GFXXRMH4.js";
3
+ } from "./chunk-S37WWNBB.js";
4
4
  import {
5
5
  getAllCollectionSlugs,
6
6
  getCollectionConfig,
7
7
  getCollectionTable
8
- } from "./chunk-FZ7O6DWI.js";
8
+ } from "./chunk-U4QCCLAW.js";
9
9
  import {
10
10
  enqueueJob
11
11
  } from "./chunk-V2UNHGAP.js";
@@ -80,4 +80,4 @@ async function publishScheduledDocuments(atTime = /* @__PURE__ */ new Date()) {
80
80
  export {
81
81
  publishScheduledDocuments
82
82
  };
83
- //# sourceMappingURL=chunk-YFJK2YEJ.js.map
83
+ //# sourceMappingURL=chunk-KSUS4UNN.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  recordJobLog,
3
3
  runInJobContext
4
- } from "./chunk-DK2JBJH7.js";
4
+ } from "./chunk-QBIJZZ5V.js";
5
5
  import {
6
6
  getEmailAdapter
7
7
  } from "./chunk-LSHHRDVR.js";
@@ -16,14 +16,14 @@ import {
16
16
  } from "./chunk-OROPGO65.js";
17
17
  import {
18
18
  getLogger
19
- } from "./chunk-JJL74ZPK.js";
19
+ } from "./chunk-NFHS7CFV.js";
20
20
  import {
21
21
  getDb
22
22
  } from "./chunk-XANPEOJC.js";
23
23
  import {
24
24
  npSettings,
25
25
  npWorkerHeartbeats
26
- } from "./chunk-M43PGOQY.js";
26
+ } from "./chunk-X7K5F2UI.js";
27
27
 
28
28
  // src/jobs/handlers.ts
29
29
  var handlers = /* @__PURE__ */ new Map();
@@ -145,7 +145,7 @@ function registerBuiltinHandlers() {
145
145
  registerJobHandler("notifications:sendDigest", handleNotificationsSendDigest);
146
146
  }
147
147
  async function handleContentPublishScheduled(_) {
148
- const { publishScheduledDocuments } = await import("./scheduled-W5PR7C6H.js");
148
+ const { publishScheduledDocuments } = await import("./scheduled-UC7O2HBQ.js");
149
149
  const result = await publishScheduledDocuments();
150
150
  if (result.published > 0) {
151
151
  console.info(
@@ -193,7 +193,7 @@ async function handleMediaCleanup(data) {
193
193
  async function handlePluginScheduledTask(data) {
194
194
  if (isRecord(data) && typeof data.pluginId === "string" && typeof data.taskId === "string") {
195
195
  try {
196
- const { runPluginScheduledTask } = await import("./host-SOCAJIUE.js");
196
+ const { runPluginScheduledTask } = await import("./host-55D6RX3U.js");
197
197
  await runPluginScheduledTask(data.pluginId, data.taskId);
198
198
  return;
199
199
  } catch (err) {
@@ -212,7 +212,7 @@ async function handleSessionCleanup(_) {
212
212
  await builtinJobContext.cleanupSessions?.();
213
213
  }
214
214
  async function handleJobLogPrune(_) {
215
- const { pruneJobLogsOlderThan: pruneJobLogsOlderThan2, DEFAULT_JOB_LOG_RETENTION_MS: DEFAULT_JOB_LOG_RETENTION_MS2 } = await import("./job-log-VZXWQUDK.js");
215
+ const { pruneJobLogsOlderThan: pruneJobLogsOlderThan2, DEFAULT_JOB_LOG_RETENTION_MS: DEFAULT_JOB_LOG_RETENTION_MS2 } = await import("./job-log-N3IGI4NA.js");
216
216
  const cutoff = new Date(Date.now() - DEFAULT_JOB_LOG_RETENTION_MS2);
217
217
  const deleted = await pruneJobLogsOlderThan2(cutoff);
218
218
  if (deleted > 0) {
@@ -387,7 +387,7 @@ async function handleMemberSendPasswordReset(data) {
387
387
  async function handleNotificationsSendDigest(data) {
388
388
  const cadence = isRecord(data) && (data.cadence === "daily" || data.cadence === "weekly") ? data.cadence : "daily";
389
389
  const siteName = isRecord(data) && typeof data.siteName === "string" ? data.siteName : void 0;
390
- const { runDigestSweep } = await import("./digest-SY42GQSU.js");
390
+ const { runDigestSweep } = await import("./digest-ZODDTXA2.js");
391
391
  const result = await runDigestSweep({ cadence, siteName });
392
392
  console.info(
393
393
  `[nexpress] notifications:sendDigest cadence=${cadence} considered=${result.considered} sent=${result.sent} skipped=${result.skipped} failed=${result.failed}`
@@ -673,7 +673,7 @@ var PgBossAdapter = class {
673
673
  this.workRegistrations.push({ queueName, register });
674
674
  await register();
675
675
  }
676
- const { getRegisteredPluginSchedules, runPluginScheduledTask } = await import("./host-SOCAJIUE.js");
676
+ const { getRegisteredPluginSchedules, runPluginScheduledTask } = await import("./host-55D6RX3U.js");
677
677
  for (const schedule of getRegisteredPluginSchedules()) {
678
678
  const queueName = `${toQueueName("plugin:scheduledTask")}.${schedule.pluginId}.${schedule.taskId}`;
679
679
  await this.boss.createQueue(queueName);
@@ -775,7 +775,7 @@ var PgBossAdapter = class {
775
775
  });
776
776
  await this.boss.schedule(digestQueue, "0 8 * * *", { cadence: "daily" }, { key: "daily" });
777
777
  await this.boss.schedule(digestQueue, "0 8 * * 1", { cadence: "weekly" }, { key: "weekly" });
778
- const { getRegisteredPluginSchedules } = await import("./host-SOCAJIUE.js");
778
+ const { getRegisteredPluginSchedules } = await import("./host-55D6RX3U.js");
779
779
  for (const schedule of getRegisteredPluginSchedules()) {
780
780
  const pgBossName = `${toQueueName("plugin:scheduledTask")}.${schedule.pluginId}.${schedule.taskId}`;
781
781
  await this.boss.schedule(pgBossName, schedule.cron, {
@@ -939,7 +939,7 @@ var PgBossAdapter = class {
939
939
  * `workerOwnsRegistrations` so the admin UI can warn the operator.
940
940
  */
941
941
  async reconcilePluginSchedules() {
942
- const { getRegisteredPluginSchedules } = await import("./host-SOCAJIUE.js");
942
+ const { getRegisteredPluginSchedules } = await import("./host-55D6RX3U.js");
943
943
  const wantedList = getRegisteredPluginSchedules();
944
944
  const wantedByName = /* @__PURE__ */ new Map();
945
945
  for (const schedule of wantedList) {
@@ -1267,4 +1267,4 @@ export {
1267
1267
  stopWorker,
1268
1268
  stopProducer
1269
1269
  };
1270
- //# sourceMappingURL=chunk-FNLBIPKV.js.map
1270
+ //# sourceMappingURL=chunk-L4F5RAQ5.js.map
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  getLogger
3
- } from "./chunk-JJL74ZPK.js";
3
+ } from "./chunk-NFHS7CFV.js";
4
4
  import {
5
5
  getDb
6
6
  } from "./chunk-XANPEOJC.js";
7
7
  import {
8
8
  npMembers
9
- } from "./chunk-M43PGOQY.js";
9
+ } from "./chunk-X7K5F2UI.js";
10
10
 
11
11
  // src/community/reputation.ts
12
12
  import { eq, sql } from "drizzle-orm";
@@ -72,4 +72,4 @@ export {
72
72
  resetReputationAdapter,
73
73
  applyReputation
74
74
  };
75
- //# sourceMappingURL=chunk-THX3SHYA.js.map
75
+ //# sourceMappingURL=chunk-L6VG7IK6.js.map
@@ -1,23 +1,23 @@
1
1
  import {
2
2
  recordDigestSent
3
- } from "./chunk-CTSQ7BRI.js";
3
+ } from "./chunk-CAS4Z6IN.js";
4
4
  import {
5
5
  NP_DEFAULT_SITE_ID,
6
6
  listSites
7
- } from "./chunk-FZ7O6DWI.js";
7
+ } from "./chunk-U4QCCLAW.js";
8
8
  import {
9
9
  getEmailAdapter
10
10
  } from "./chunk-LSHHRDVR.js";
11
11
  import {
12
12
  getLogger
13
- } from "./chunk-JJL74ZPK.js";
13
+ } from "./chunk-NFHS7CFV.js";
14
14
  import {
15
15
  getDb
16
16
  } from "./chunk-XANPEOJC.js";
17
17
  import {
18
18
  npMembers,
19
19
  npNotifications
20
- } from "./chunk-M43PGOQY.js";
20
+ } from "./chunk-X7K5F2UI.js";
21
21
 
22
22
  // src/community/digest.ts
23
23
  import { and, desc, eq, gt, isNull, sql } from "drizzle-orm";
@@ -191,4 +191,4 @@ export {
191
191
  buildDigestEmail,
192
192
  runDigestSweep
193
193
  };
194
- //# sourceMappingURL=chunk-VNIHXQ7W.js.map
194
+ //# sourceMappingURL=chunk-LN6NTH6E.js.map