@sonicjs-cms/core 2.1.0 → 2.2.0

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 (39) hide show
  1. package/dist/{chunk-LPM3NPAX.cjs → chunk-2DIWLDCA.cjs} +121 -121
  2. package/dist/{chunk-LPM3NPAX.cjs.map → chunk-2DIWLDCA.cjs.map} +1 -1
  3. package/dist/{chunk-YP52USGX.cjs → chunk-AINTFRTC.cjs} +2 -249
  4. package/dist/chunk-AINTFRTC.cjs.map +1 -0
  5. package/dist/{chunk-22EFGHAX.cjs → chunk-HV2I6API.cjs} +250 -2
  6. package/dist/chunk-HV2I6API.cjs.map +1 -0
  7. package/dist/{chunk-LWMMMW43.js → chunk-K4Z3IHOK.js} +247 -3
  8. package/dist/chunk-K4Z3IHOK.js.map +1 -0
  9. package/dist/{chunk-F4K5QAN6.js → chunk-L232U757.js} +3 -246
  10. package/dist/chunk-L232U757.js.map +1 -0
  11. package/dist/{chunk-UJ4K4B23.js → chunk-OORGXYDA.js} +31 -4
  12. package/dist/chunk-OORGXYDA.js.map +1 -0
  13. package/dist/{chunk-KZ5XDGE6.js → chunk-R57VFNP3.js} +6 -6
  14. package/dist/{chunk-KZ5XDGE6.js.map → chunk-R57VFNP3.js.map} +1 -1
  15. package/dist/{chunk-7EGKU7OO.cjs → chunk-UEYMFNBN.cjs} +34 -5
  16. package/dist/chunk-UEYMFNBN.cjs.map +1 -0
  17. package/dist/{chunk-2MBNRFS5.cjs → chunk-YTMFJLJZ.cjs} +3 -3
  18. package/dist/{chunk-2MBNRFS5.cjs.map → chunk-YTMFJLJZ.cjs.map} +1 -1
  19. package/dist/{chunk-K5JZ4JI3.js → chunk-ZUK55KZB.js} +3 -3
  20. package/dist/{chunk-K5JZ4JI3.js.map → chunk-ZUK55KZB.js.map} +1 -1
  21. package/dist/index.cjs +154 -130
  22. package/dist/index.cjs.map +1 -1
  23. package/dist/index.js +10 -10
  24. package/dist/index.js.map +1 -1
  25. package/dist/middleware.cjs +32 -23
  26. package/dist/middleware.js +3 -2
  27. package/dist/routes.cjs +26 -26
  28. package/dist/routes.js +6 -6
  29. package/dist/services.cjs +38 -38
  30. package/dist/services.js +2 -2
  31. package/dist/utils.cjs +16 -16
  32. package/dist/utils.js +2 -2
  33. package/package.json +1 -1
  34. package/dist/chunk-22EFGHAX.cjs.map +0 -1
  35. package/dist/chunk-7EGKU7OO.cjs.map +0 -1
  36. package/dist/chunk-F4K5QAN6.js.map +0 -1
  37. package/dist/chunk-LWMMMW43.js.map +0 -1
  38. package/dist/chunk-UJ4K4B23.js.map +0 -1
  39. package/dist/chunk-YP52USGX.cjs.map +0 -1
package/dist/index.cjs CHANGED
@@ -1,16 +1,16 @@
1
1
  'use strict';
2
2
 
3
- var chunkLPM3NPAX_cjs = require('./chunk-LPM3NPAX.cjs');
4
- var chunkYP52USGX_cjs = require('./chunk-YP52USGX.cjs');
5
- var chunk7EGKU7OO_cjs = require('./chunk-7EGKU7OO.cjs');
6
- var chunk22EFGHAX_cjs = require('./chunk-22EFGHAX.cjs');
3
+ var chunk2DIWLDCA_cjs = require('./chunk-2DIWLDCA.cjs');
4
+ var chunkAINTFRTC_cjs = require('./chunk-AINTFRTC.cjs');
5
+ var chunkUEYMFNBN_cjs = require('./chunk-UEYMFNBN.cjs');
6
+ var chunkHV2I6API_cjs = require('./chunk-HV2I6API.cjs');
7
7
  var chunkT7IYBGGO_cjs = require('./chunk-T7IYBGGO.cjs');
8
8
  var chunkZMSYKV62_cjs = require('./chunk-ZMSYKV62.cjs');
9
9
  var chunkYU6QFFI4_cjs = require('./chunk-YU6QFFI4.cjs');
10
10
  var chunkF5ESJXI2_cjs = require('./chunk-F5ESJXI2.cjs');
11
- var chunk2MBNRFS5_cjs = require('./chunk-2MBNRFS5.cjs');
12
- require('./chunk-WBX5YMTB.cjs');
11
+ var chunkYTMFJLJZ_cjs = require('./chunk-YTMFJLJZ.cjs');
13
12
  var chunkRCQ2HIQD_cjs = require('./chunk-RCQ2HIQD.cjs');
13
+ require('./chunk-WBX5YMTB.cjs');
14
14
  var chunkKYGRJCZM_cjs = require('./chunk-KYGRJCZM.cjs');
15
15
  require('./chunk-IGJUBJBW.cjs');
16
16
  var hono = require('hono');
@@ -556,7 +556,7 @@ function formatCellValue(value) {
556
556
  // src/plugins/core-plugins/database-tools-plugin/admin-routes.ts
557
557
  function createDatabaseToolsAdminRoutes() {
558
558
  const router2 = new hono.Hono();
559
- router2.use("*", chunk7EGKU7OO_cjs.requireAuth());
559
+ router2.use("*", chunkUEYMFNBN_cjs.requireAuth());
560
560
  router2.get("/api/stats", async (c) => {
561
561
  try {
562
562
  const user = c.get("user");
@@ -737,7 +737,7 @@ function createDatabaseToolsAdminRoutes() {
737
737
  return router2;
738
738
  }
739
739
  function createEmailPlugin() {
740
- const builder = chunkLPM3NPAX_cjs.PluginBuilder.create({
740
+ const builder = chunk2DIWLDCA_cjs.PluginBuilder.create({
741
741
  name: "email",
742
742
  version: "1.0.0-beta.1",
743
743
  description: "Send transactional emails using Resend"
@@ -1108,14 +1108,14 @@ var emailPlugin = createEmailPlugin();
1108
1108
  // src/app.ts
1109
1109
  function createSonicJSApp(config = {}) {
1110
1110
  const app = new hono.Hono();
1111
- const appVersion = config.version || chunk2MBNRFS5_cjs.getCoreVersion();
1111
+ const appVersion = config.version || chunkYTMFJLJZ_cjs.getCoreVersion();
1112
1112
  const appName = config.name || "SonicJS AI";
1113
1113
  app.use("*", async (c, next) => {
1114
1114
  c.set("appVersion", appVersion);
1115
1115
  await next();
1116
1116
  });
1117
- app.use("*", chunk7EGKU7OO_cjs.metricsMiddleware());
1118
- app.use("*", chunk7EGKU7OO_cjs.bootstrapMiddleware(config));
1117
+ app.use("*", chunkUEYMFNBN_cjs.metricsMiddleware());
1118
+ app.use("*", chunkUEYMFNBN_cjs.bootstrapMiddleware(config));
1119
1119
  if (config.middleware?.beforeAuth) {
1120
1120
  for (const middleware of config.middleware.beforeAuth) {
1121
1121
  app.use("*", middleware);
@@ -1132,21 +1132,21 @@ function createSonicJSApp(config = {}) {
1132
1132
  app.use("*", middleware);
1133
1133
  }
1134
1134
  }
1135
- app.route("/api", chunkLPM3NPAX_cjs.api_default);
1136
- app.route("/api/media", chunkLPM3NPAX_cjs.api_media_default);
1137
- app.route("/api/system", chunkLPM3NPAX_cjs.api_system_default);
1138
- app.route("/admin/api", chunkLPM3NPAX_cjs.admin_api_default);
1139
- app.route("/admin/dashboard", chunkLPM3NPAX_cjs.router);
1140
- app.route("/admin/collections", chunkLPM3NPAX_cjs.adminCollectionsRoutes);
1141
- app.route("/admin/settings", chunkLPM3NPAX_cjs.adminSettingsRoutes);
1135
+ app.route("/api", chunk2DIWLDCA_cjs.api_default);
1136
+ app.route("/api/media", chunk2DIWLDCA_cjs.api_media_default);
1137
+ app.route("/api/system", chunk2DIWLDCA_cjs.api_system_default);
1138
+ app.route("/admin/api", chunk2DIWLDCA_cjs.admin_api_default);
1139
+ app.route("/admin/dashboard", chunk2DIWLDCA_cjs.router);
1140
+ app.route("/admin/collections", chunk2DIWLDCA_cjs.adminCollectionsRoutes);
1141
+ app.route("/admin/settings", chunk2DIWLDCA_cjs.adminSettingsRoutes);
1142
1142
  app.route("/admin/database-tools", createDatabaseToolsAdminRoutes());
1143
- app.route("/admin/content", chunkLPM3NPAX_cjs.admin_content_default);
1144
- app.route("/admin/media", chunkLPM3NPAX_cjs.adminMediaRoutes);
1145
- app.route("/admin/plugins", chunkLPM3NPAX_cjs.adminPluginRoutes);
1146
- app.route("/admin/logs", chunkLPM3NPAX_cjs.adminLogsRoutes);
1147
- app.route("/admin", chunkLPM3NPAX_cjs.userRoutes);
1148
- app.route("/auth", chunkLPM3NPAX_cjs.auth_default);
1149
- app.route("/", chunkLPM3NPAX_cjs.test_cleanup_default);
1143
+ app.route("/admin/content", chunk2DIWLDCA_cjs.admin_content_default);
1144
+ app.route("/admin/media", chunk2DIWLDCA_cjs.adminMediaRoutes);
1145
+ app.route("/admin/plugins", chunk2DIWLDCA_cjs.adminPluginRoutes);
1146
+ app.route("/admin/logs", chunk2DIWLDCA_cjs.adminLogsRoutes);
1147
+ app.route("/admin", chunk2DIWLDCA_cjs.userRoutes);
1148
+ app.route("/auth", chunk2DIWLDCA_cjs.auth_default);
1149
+ app.route("/", chunk2DIWLDCA_cjs.test_cleanup_default);
1150
1150
  if (emailPlugin.routes && emailPlugin.routes.length > 0) {
1151
1151
  for (const route of emailPlugin.routes) {
1152
1152
  app.route(route.path, route.handler);
@@ -1211,383 +1211,407 @@ function setupCoreRoutes(_app) {
1211
1211
  console.warn("setupCoreRoutes is deprecated. Use createSonicJSApp() instead.");
1212
1212
  }
1213
1213
  function createDb(d1$1) {
1214
- return d1.drizzle(d1$1, { schema: chunkYP52USGX_cjs.schema_exports });
1214
+ return d1.drizzle(d1$1, { schema: chunkAINTFRTC_cjs.schema_exports });
1215
1215
  }
1216
1216
 
1217
1217
  // src/index.ts
1218
- var VERSION = chunk2MBNRFS5_cjs.package_default.version;
1218
+ var VERSION = chunkYTMFJLJZ_cjs.package_default.version;
1219
1219
 
1220
1220
  Object.defineProperty(exports, "ROUTES_INFO", {
1221
1221
  enumerable: true,
1222
- get: function () { return chunkLPM3NPAX_cjs.ROUTES_INFO; }
1222
+ get: function () { return chunk2DIWLDCA_cjs.ROUTES_INFO; }
1223
1223
  });
1224
1224
  Object.defineProperty(exports, "adminApiRoutes", {
1225
1225
  enumerable: true,
1226
- get: function () { return chunkLPM3NPAX_cjs.admin_api_default; }
1226
+ get: function () { return chunk2DIWLDCA_cjs.admin_api_default; }
1227
1227
  });
1228
1228
  Object.defineProperty(exports, "adminCheckboxRoutes", {
1229
1229
  enumerable: true,
1230
- get: function () { return chunkLPM3NPAX_cjs.adminCheckboxRoutes; }
1230
+ get: function () { return chunk2DIWLDCA_cjs.adminCheckboxRoutes; }
1231
1231
  });
1232
1232
  Object.defineProperty(exports, "adminCodeExamplesRoutes", {
1233
1233
  enumerable: true,
1234
- get: function () { return chunkLPM3NPAX_cjs.admin_code_examples_default; }
1234
+ get: function () { return chunk2DIWLDCA_cjs.admin_code_examples_default; }
1235
1235
  });
1236
1236
  Object.defineProperty(exports, "adminCollectionsRoutes", {
1237
1237
  enumerable: true,
1238
- get: function () { return chunkLPM3NPAX_cjs.adminCollectionsRoutes; }
1238
+ get: function () { return chunk2DIWLDCA_cjs.adminCollectionsRoutes; }
1239
1239
  });
1240
1240
  Object.defineProperty(exports, "adminContentRoutes", {
1241
1241
  enumerable: true,
1242
- get: function () { return chunkLPM3NPAX_cjs.admin_content_default; }
1242
+ get: function () { return chunk2DIWLDCA_cjs.admin_content_default; }
1243
1243
  });
1244
1244
  Object.defineProperty(exports, "adminDashboardRoutes", {
1245
1245
  enumerable: true,
1246
- get: function () { return chunkLPM3NPAX_cjs.router; }
1246
+ get: function () { return chunk2DIWLDCA_cjs.router; }
1247
1247
  });
1248
1248
  Object.defineProperty(exports, "adminDesignRoutes", {
1249
1249
  enumerable: true,
1250
- get: function () { return chunkLPM3NPAX_cjs.adminDesignRoutes; }
1250
+ get: function () { return chunk2DIWLDCA_cjs.adminDesignRoutes; }
1251
1251
  });
1252
1252
  Object.defineProperty(exports, "adminLogsRoutes", {
1253
1253
  enumerable: true,
1254
- get: function () { return chunkLPM3NPAX_cjs.adminLogsRoutes; }
1254
+ get: function () { return chunk2DIWLDCA_cjs.adminLogsRoutes; }
1255
1255
  });
1256
1256
  Object.defineProperty(exports, "adminMediaRoutes", {
1257
1257
  enumerable: true,
1258
- get: function () { return chunkLPM3NPAX_cjs.adminMediaRoutes; }
1258
+ get: function () { return chunk2DIWLDCA_cjs.adminMediaRoutes; }
1259
1259
  });
1260
1260
  Object.defineProperty(exports, "adminPluginRoutes", {
1261
1261
  enumerable: true,
1262
- get: function () { return chunkLPM3NPAX_cjs.adminPluginRoutes; }
1262
+ get: function () { return chunk2DIWLDCA_cjs.adminPluginRoutes; }
1263
1263
  });
1264
1264
  Object.defineProperty(exports, "adminSettingsRoutes", {
1265
1265
  enumerable: true,
1266
- get: function () { return chunkLPM3NPAX_cjs.adminSettingsRoutes; }
1266
+ get: function () { return chunk2DIWLDCA_cjs.adminSettingsRoutes; }
1267
1267
  });
1268
1268
  Object.defineProperty(exports, "adminTestimonialsRoutes", {
1269
1269
  enumerable: true,
1270
- get: function () { return chunkLPM3NPAX_cjs.admin_testimonials_default; }
1270
+ get: function () { return chunk2DIWLDCA_cjs.admin_testimonials_default; }
1271
1271
  });
1272
1272
  Object.defineProperty(exports, "adminUsersRoutes", {
1273
1273
  enumerable: true,
1274
- get: function () { return chunkLPM3NPAX_cjs.userRoutes; }
1274
+ get: function () { return chunk2DIWLDCA_cjs.userRoutes; }
1275
1275
  });
1276
1276
  Object.defineProperty(exports, "apiContentCrudRoutes", {
1277
1277
  enumerable: true,
1278
- get: function () { return chunkLPM3NPAX_cjs.api_content_crud_default; }
1278
+ get: function () { return chunk2DIWLDCA_cjs.api_content_crud_default; }
1279
1279
  });
1280
1280
  Object.defineProperty(exports, "apiMediaRoutes", {
1281
1281
  enumerable: true,
1282
- get: function () { return chunkLPM3NPAX_cjs.api_media_default; }
1282
+ get: function () { return chunk2DIWLDCA_cjs.api_media_default; }
1283
1283
  });
1284
1284
  Object.defineProperty(exports, "apiRoutes", {
1285
1285
  enumerable: true,
1286
- get: function () { return chunkLPM3NPAX_cjs.api_default; }
1286
+ get: function () { return chunk2DIWLDCA_cjs.api_default; }
1287
1287
  });
1288
1288
  Object.defineProperty(exports, "apiSystemRoutes", {
1289
1289
  enumerable: true,
1290
- get: function () { return chunkLPM3NPAX_cjs.api_system_default; }
1290
+ get: function () { return chunk2DIWLDCA_cjs.api_system_default; }
1291
1291
  });
1292
1292
  Object.defineProperty(exports, "authRoutes", {
1293
1293
  enumerable: true,
1294
- get: function () { return chunkLPM3NPAX_cjs.auth_default; }
1294
+ get: function () { return chunk2DIWLDCA_cjs.auth_default; }
1295
1295
  });
1296
1296
  Object.defineProperty(exports, "Logger", {
1297
1297
  enumerable: true,
1298
- get: function () { return chunkYP52USGX_cjs.Logger; }
1298
+ get: function () { return chunkAINTFRTC_cjs.Logger; }
1299
1299
  });
1300
1300
  Object.defineProperty(exports, "apiTokens", {
1301
1301
  enumerable: true,
1302
- get: function () { return chunkYP52USGX_cjs.apiTokens; }
1302
+ get: function () { return chunkAINTFRTC_cjs.apiTokens; }
1303
1303
  });
1304
1304
  Object.defineProperty(exports, "collections", {
1305
1305
  enumerable: true,
1306
- get: function () { return chunkYP52USGX_cjs.collections; }
1306
+ get: function () { return chunkAINTFRTC_cjs.collections; }
1307
1307
  });
1308
1308
  Object.defineProperty(exports, "content", {
1309
1309
  enumerable: true,
1310
- get: function () { return chunkYP52USGX_cjs.content; }
1310
+ get: function () { return chunkAINTFRTC_cjs.content; }
1311
1311
  });
1312
1312
  Object.defineProperty(exports, "contentVersions", {
1313
1313
  enumerable: true,
1314
- get: function () { return chunkYP52USGX_cjs.contentVersions; }
1314
+ get: function () { return chunkAINTFRTC_cjs.contentVersions; }
1315
1315
  });
1316
1316
  Object.defineProperty(exports, "getLogger", {
1317
1317
  enumerable: true,
1318
- get: function () { return chunkYP52USGX_cjs.getLogger; }
1318
+ get: function () { return chunkAINTFRTC_cjs.getLogger; }
1319
1319
  });
1320
1320
  Object.defineProperty(exports, "initLogger", {
1321
1321
  enumerable: true,
1322
- get: function () { return chunkYP52USGX_cjs.initLogger; }
1322
+ get: function () { return chunkAINTFRTC_cjs.initLogger; }
1323
1323
  });
1324
1324
  Object.defineProperty(exports, "insertCollectionSchema", {
1325
1325
  enumerable: true,
1326
- get: function () { return chunkYP52USGX_cjs.insertCollectionSchema; }
1326
+ get: function () { return chunkAINTFRTC_cjs.insertCollectionSchema; }
1327
1327
  });
1328
1328
  Object.defineProperty(exports, "insertContentSchema", {
1329
1329
  enumerable: true,
1330
- get: function () { return chunkYP52USGX_cjs.insertContentSchema; }
1330
+ get: function () { return chunkAINTFRTC_cjs.insertContentSchema; }
1331
1331
  });
1332
1332
  Object.defineProperty(exports, "insertLogConfigSchema", {
1333
1333
  enumerable: true,
1334
- get: function () { return chunkYP52USGX_cjs.insertLogConfigSchema; }
1334
+ get: function () { return chunkAINTFRTC_cjs.insertLogConfigSchema; }
1335
1335
  });
1336
1336
  Object.defineProperty(exports, "insertMediaSchema", {
1337
1337
  enumerable: true,
1338
- get: function () { return chunkYP52USGX_cjs.insertMediaSchema; }
1338
+ get: function () { return chunkAINTFRTC_cjs.insertMediaSchema; }
1339
1339
  });
1340
1340
  Object.defineProperty(exports, "insertPluginActivityLogSchema", {
1341
1341
  enumerable: true,
1342
- get: function () { return chunkYP52USGX_cjs.insertPluginActivityLogSchema; }
1342
+ get: function () { return chunkAINTFRTC_cjs.insertPluginActivityLogSchema; }
1343
1343
  });
1344
1344
  Object.defineProperty(exports, "insertPluginAssetSchema", {
1345
1345
  enumerable: true,
1346
- get: function () { return chunkYP52USGX_cjs.insertPluginAssetSchema; }
1346
+ get: function () { return chunkAINTFRTC_cjs.insertPluginAssetSchema; }
1347
1347
  });
1348
1348
  Object.defineProperty(exports, "insertPluginHookSchema", {
1349
1349
  enumerable: true,
1350
- get: function () { return chunkYP52USGX_cjs.insertPluginHookSchema; }
1350
+ get: function () { return chunkAINTFRTC_cjs.insertPluginHookSchema; }
1351
1351
  });
1352
1352
  Object.defineProperty(exports, "insertPluginRouteSchema", {
1353
1353
  enumerable: true,
1354
- get: function () { return chunkYP52USGX_cjs.insertPluginRouteSchema; }
1354
+ get: function () { return chunkAINTFRTC_cjs.insertPluginRouteSchema; }
1355
1355
  });
1356
1356
  Object.defineProperty(exports, "insertPluginSchema", {
1357
1357
  enumerable: true,
1358
- get: function () { return chunkYP52USGX_cjs.insertPluginSchema; }
1358
+ get: function () { return chunkAINTFRTC_cjs.insertPluginSchema; }
1359
1359
  });
1360
1360
  Object.defineProperty(exports, "insertSystemLogSchema", {
1361
1361
  enumerable: true,
1362
- get: function () { return chunkYP52USGX_cjs.insertSystemLogSchema; }
1362
+ get: function () { return chunkAINTFRTC_cjs.insertSystemLogSchema; }
1363
1363
  });
1364
1364
  Object.defineProperty(exports, "insertUserSchema", {
1365
1365
  enumerable: true,
1366
- get: function () { return chunkYP52USGX_cjs.insertUserSchema; }
1366
+ get: function () { return chunkAINTFRTC_cjs.insertUserSchema; }
1367
1367
  });
1368
1368
  Object.defineProperty(exports, "insertWorkflowHistorySchema", {
1369
1369
  enumerable: true,
1370
- get: function () { return chunkYP52USGX_cjs.insertWorkflowHistorySchema; }
1370
+ get: function () { return chunkAINTFRTC_cjs.insertWorkflowHistorySchema; }
1371
1371
  });
1372
1372
  Object.defineProperty(exports, "logConfig", {
1373
1373
  enumerable: true,
1374
- get: function () { return chunkYP52USGX_cjs.logConfig; }
1374
+ get: function () { return chunkAINTFRTC_cjs.logConfig; }
1375
1375
  });
1376
1376
  Object.defineProperty(exports, "media", {
1377
1377
  enumerable: true,
1378
- get: function () { return chunkYP52USGX_cjs.media; }
1378
+ get: function () { return chunkAINTFRTC_cjs.media; }
1379
1379
  });
1380
1380
  Object.defineProperty(exports, "pluginActivityLog", {
1381
1381
  enumerable: true,
1382
- get: function () { return chunkYP52USGX_cjs.pluginActivityLog; }
1382
+ get: function () { return chunkAINTFRTC_cjs.pluginActivityLog; }
1383
1383
  });
1384
1384
  Object.defineProperty(exports, "pluginAssets", {
1385
1385
  enumerable: true,
1386
- get: function () { return chunkYP52USGX_cjs.pluginAssets; }
1386
+ get: function () { return chunkAINTFRTC_cjs.pluginAssets; }
1387
1387
  });
1388
1388
  Object.defineProperty(exports, "pluginHooks", {
1389
1389
  enumerable: true,
1390
- get: function () { return chunkYP52USGX_cjs.pluginHooks; }
1390
+ get: function () { return chunkAINTFRTC_cjs.pluginHooks; }
1391
1391
  });
1392
1392
  Object.defineProperty(exports, "pluginRoutes", {
1393
1393
  enumerable: true,
1394
- get: function () { return chunkYP52USGX_cjs.pluginRoutes; }
1394
+ get: function () { return chunkAINTFRTC_cjs.pluginRoutes; }
1395
1395
  });
1396
1396
  Object.defineProperty(exports, "plugins", {
1397
1397
  enumerable: true,
1398
- get: function () { return chunkYP52USGX_cjs.plugins; }
1398
+ get: function () { return chunkAINTFRTC_cjs.plugins; }
1399
1399
  });
1400
1400
  Object.defineProperty(exports, "selectCollectionSchema", {
1401
1401
  enumerable: true,
1402
- get: function () { return chunkYP52USGX_cjs.selectCollectionSchema; }
1402
+ get: function () { return chunkAINTFRTC_cjs.selectCollectionSchema; }
1403
1403
  });
1404
1404
  Object.defineProperty(exports, "selectContentSchema", {
1405
1405
  enumerable: true,
1406
- get: function () { return chunkYP52USGX_cjs.selectContentSchema; }
1406
+ get: function () { return chunkAINTFRTC_cjs.selectContentSchema; }
1407
1407
  });
1408
1408
  Object.defineProperty(exports, "selectLogConfigSchema", {
1409
1409
  enumerable: true,
1410
- get: function () { return chunkYP52USGX_cjs.selectLogConfigSchema; }
1410
+ get: function () { return chunkAINTFRTC_cjs.selectLogConfigSchema; }
1411
1411
  });
1412
1412
  Object.defineProperty(exports, "selectMediaSchema", {
1413
1413
  enumerable: true,
1414
- get: function () { return chunkYP52USGX_cjs.selectMediaSchema; }
1414
+ get: function () { return chunkAINTFRTC_cjs.selectMediaSchema; }
1415
1415
  });
1416
1416
  Object.defineProperty(exports, "selectPluginActivityLogSchema", {
1417
1417
  enumerable: true,
1418
- get: function () { return chunkYP52USGX_cjs.selectPluginActivityLogSchema; }
1418
+ get: function () { return chunkAINTFRTC_cjs.selectPluginActivityLogSchema; }
1419
1419
  });
1420
1420
  Object.defineProperty(exports, "selectPluginAssetSchema", {
1421
1421
  enumerable: true,
1422
- get: function () { return chunkYP52USGX_cjs.selectPluginAssetSchema; }
1422
+ get: function () { return chunkAINTFRTC_cjs.selectPluginAssetSchema; }
1423
1423
  });
1424
1424
  Object.defineProperty(exports, "selectPluginHookSchema", {
1425
1425
  enumerable: true,
1426
- get: function () { return chunkYP52USGX_cjs.selectPluginHookSchema; }
1426
+ get: function () { return chunkAINTFRTC_cjs.selectPluginHookSchema; }
1427
1427
  });
1428
1428
  Object.defineProperty(exports, "selectPluginRouteSchema", {
1429
1429
  enumerable: true,
1430
- get: function () { return chunkYP52USGX_cjs.selectPluginRouteSchema; }
1430
+ get: function () { return chunkAINTFRTC_cjs.selectPluginRouteSchema; }
1431
1431
  });
1432
1432
  Object.defineProperty(exports, "selectPluginSchema", {
1433
1433
  enumerable: true,
1434
- get: function () { return chunkYP52USGX_cjs.selectPluginSchema; }
1434
+ get: function () { return chunkAINTFRTC_cjs.selectPluginSchema; }
1435
1435
  });
1436
1436
  Object.defineProperty(exports, "selectSystemLogSchema", {
1437
1437
  enumerable: true,
1438
- get: function () { return chunkYP52USGX_cjs.selectSystemLogSchema; }
1438
+ get: function () { return chunkAINTFRTC_cjs.selectSystemLogSchema; }
1439
1439
  });
1440
1440
  Object.defineProperty(exports, "selectUserSchema", {
1441
1441
  enumerable: true,
1442
- get: function () { return chunkYP52USGX_cjs.selectUserSchema; }
1442
+ get: function () { return chunkAINTFRTC_cjs.selectUserSchema; }
1443
1443
  });
1444
1444
  Object.defineProperty(exports, "selectWorkflowHistorySchema", {
1445
1445
  enumerable: true,
1446
- get: function () { return chunkYP52USGX_cjs.selectWorkflowHistorySchema; }
1446
+ get: function () { return chunkAINTFRTC_cjs.selectWorkflowHistorySchema; }
1447
1447
  });
1448
1448
  Object.defineProperty(exports, "systemLogs", {
1449
1449
  enumerable: true,
1450
- get: function () { return chunkYP52USGX_cjs.systemLogs; }
1450
+ get: function () { return chunkAINTFRTC_cjs.systemLogs; }
1451
1451
  });
1452
1452
  Object.defineProperty(exports, "users", {
1453
1453
  enumerable: true,
1454
- get: function () { return chunkYP52USGX_cjs.users; }
1454
+ get: function () { return chunkAINTFRTC_cjs.users; }
1455
1455
  });
1456
1456
  Object.defineProperty(exports, "workflowHistory", {
1457
1457
  enumerable: true,
1458
- get: function () { return chunkYP52USGX_cjs.workflowHistory; }
1458
+ get: function () { return chunkAINTFRTC_cjs.workflowHistory; }
1459
1459
  });
1460
1460
  Object.defineProperty(exports, "AuthManager", {
1461
1461
  enumerable: true,
1462
- get: function () { return chunk7EGKU7OO_cjs.AuthManager; }
1462
+ get: function () { return chunkUEYMFNBN_cjs.AuthManager; }
1463
1463
  });
1464
1464
  Object.defineProperty(exports, "PermissionManager", {
1465
1465
  enumerable: true,
1466
- get: function () { return chunk7EGKU7OO_cjs.PermissionManager; }
1466
+ get: function () { return chunkUEYMFNBN_cjs.PermissionManager; }
1467
1467
  });
1468
1468
  Object.defineProperty(exports, "bootstrapMiddleware", {
1469
1469
  enumerable: true,
1470
- get: function () { return chunk7EGKU7OO_cjs.bootstrapMiddleware; }
1470
+ get: function () { return chunkUEYMFNBN_cjs.bootstrapMiddleware; }
1471
1471
  });
1472
1472
  Object.defineProperty(exports, "cacheHeaders", {
1473
1473
  enumerable: true,
1474
- get: function () { return chunk7EGKU7OO_cjs.cacheHeaders; }
1474
+ get: function () { return chunkUEYMFNBN_cjs.cacheHeaders; }
1475
1475
  });
1476
1476
  Object.defineProperty(exports, "compressionMiddleware", {
1477
1477
  enumerable: true,
1478
- get: function () { return chunk7EGKU7OO_cjs.compressionMiddleware; }
1478
+ get: function () { return chunkUEYMFNBN_cjs.compressionMiddleware; }
1479
1479
  });
1480
1480
  Object.defineProperty(exports, "detailedLoggingMiddleware", {
1481
1481
  enumerable: true,
1482
- get: function () { return chunk7EGKU7OO_cjs.detailedLoggingMiddleware; }
1482
+ get: function () { return chunkUEYMFNBN_cjs.detailedLoggingMiddleware; }
1483
1483
  });
1484
1484
  Object.defineProperty(exports, "getActivePlugins", {
1485
1485
  enumerable: true,
1486
- get: function () { return chunk7EGKU7OO_cjs.getActivePlugins; }
1486
+ get: function () { return chunkUEYMFNBN_cjs.getActivePlugins; }
1487
+ });
1488
+ Object.defineProperty(exports, "getTelemetry", {
1489
+ enumerable: true,
1490
+ get: function () { return chunkUEYMFNBN_cjs.getTelemetry; }
1487
1491
  });
1488
1492
  Object.defineProperty(exports, "isPluginActive", {
1489
1493
  enumerable: true,
1490
- get: function () { return chunk7EGKU7OO_cjs.isPluginActive; }
1494
+ get: function () { return chunkUEYMFNBN_cjs.isPluginActive; }
1491
1495
  });
1492
1496
  Object.defineProperty(exports, "logActivity", {
1493
1497
  enumerable: true,
1494
- get: function () { return chunk7EGKU7OO_cjs.logActivity; }
1498
+ get: function () { return chunkUEYMFNBN_cjs.logActivity; }
1495
1499
  });
1496
1500
  Object.defineProperty(exports, "loggingMiddleware", {
1497
1501
  enumerable: true,
1498
- get: function () { return chunk7EGKU7OO_cjs.loggingMiddleware; }
1502
+ get: function () { return chunkUEYMFNBN_cjs.loggingMiddleware; }
1499
1503
  });
1500
1504
  Object.defineProperty(exports, "optionalAuth", {
1501
1505
  enumerable: true,
1502
- get: function () { return chunk7EGKU7OO_cjs.optionalAuth; }
1506
+ get: function () { return chunkUEYMFNBN_cjs.optionalAuth; }
1503
1507
  });
1504
1508
  Object.defineProperty(exports, "performanceLoggingMiddleware", {
1505
1509
  enumerable: true,
1506
- get: function () { return chunk7EGKU7OO_cjs.performanceLoggingMiddleware; }
1510
+ get: function () { return chunkUEYMFNBN_cjs.performanceLoggingMiddleware; }
1507
1511
  });
1508
1512
  Object.defineProperty(exports, "requireActivePlugin", {
1509
1513
  enumerable: true,
1510
- get: function () { return chunk7EGKU7OO_cjs.requireActivePlugin; }
1514
+ get: function () { return chunkUEYMFNBN_cjs.requireActivePlugin; }
1511
1515
  });
1512
1516
  Object.defineProperty(exports, "requireActivePlugins", {
1513
1517
  enumerable: true,
1514
- get: function () { return chunk7EGKU7OO_cjs.requireActivePlugins; }
1518
+ get: function () { return chunkUEYMFNBN_cjs.requireActivePlugins; }
1515
1519
  });
1516
1520
  Object.defineProperty(exports, "requireAnyPermission", {
1517
1521
  enumerable: true,
1518
- get: function () { return chunk7EGKU7OO_cjs.requireAnyPermission; }
1522
+ get: function () { return chunkUEYMFNBN_cjs.requireAnyPermission; }
1519
1523
  });
1520
1524
  Object.defineProperty(exports, "requireAuth", {
1521
1525
  enumerable: true,
1522
- get: function () { return chunk7EGKU7OO_cjs.requireAuth; }
1526
+ get: function () { return chunkUEYMFNBN_cjs.requireAuth; }
1523
1527
  });
1524
1528
  Object.defineProperty(exports, "requirePermission", {
1525
1529
  enumerable: true,
1526
- get: function () { return chunk7EGKU7OO_cjs.requirePermission; }
1530
+ get: function () { return chunkUEYMFNBN_cjs.requirePermission; }
1527
1531
  });
1528
1532
  Object.defineProperty(exports, "requireRole", {
1529
1533
  enumerable: true,
1530
- get: function () { return chunk7EGKU7OO_cjs.requireRole; }
1534
+ get: function () { return chunkUEYMFNBN_cjs.requireRole; }
1531
1535
  });
1532
1536
  Object.defineProperty(exports, "securityHeaders", {
1533
1537
  enumerable: true,
1534
- get: function () { return chunk7EGKU7OO_cjs.securityHeaders; }
1538
+ get: function () { return chunkUEYMFNBN_cjs.securityHeaders; }
1535
1539
  });
1536
1540
  Object.defineProperty(exports, "securityLoggingMiddleware", {
1537
1541
  enumerable: true,
1538
- get: function () { return chunk7EGKU7OO_cjs.securityLoggingMiddleware; }
1542
+ get: function () { return chunkUEYMFNBN_cjs.securityLoggingMiddleware; }
1543
+ });
1544
+ Object.defineProperty(exports, "telemetryMiddleware", {
1545
+ enumerable: true,
1546
+ get: function () { return chunkUEYMFNBN_cjs.telemetryMiddleware; }
1539
1547
  });
1540
1548
  Object.defineProperty(exports, "PluginBootstrapService", {
1541
1549
  enumerable: true,
1542
- get: function () { return chunk22EFGHAX_cjs.PluginBootstrapService; }
1550
+ get: function () { return chunkHV2I6API_cjs.PluginBootstrapService; }
1543
1551
  });
1544
1552
  Object.defineProperty(exports, "PluginServiceClass", {
1545
1553
  enumerable: true,
1546
- get: function () { return chunk22EFGHAX_cjs.PluginService; }
1554
+ get: function () { return chunkHV2I6API_cjs.PluginService; }
1555
+ });
1556
+ Object.defineProperty(exports, "TelemetryService", {
1557
+ enumerable: true,
1558
+ get: function () { return chunkHV2I6API_cjs.TelemetryService; }
1547
1559
  });
1548
1560
  Object.defineProperty(exports, "cleanupRemovedCollections", {
1549
1561
  enumerable: true,
1550
- get: function () { return chunk22EFGHAX_cjs.cleanupRemovedCollections; }
1562
+ get: function () { return chunkHV2I6API_cjs.cleanupRemovedCollections; }
1563
+ });
1564
+ Object.defineProperty(exports, "createInstallationIdentity", {
1565
+ enumerable: true,
1566
+ get: function () { return chunkHV2I6API_cjs.createInstallationIdentity; }
1551
1567
  });
1552
1568
  Object.defineProperty(exports, "fullCollectionSync", {
1553
1569
  enumerable: true,
1554
- get: function () { return chunk22EFGHAX_cjs.fullCollectionSync; }
1570
+ get: function () { return chunkHV2I6API_cjs.fullCollectionSync; }
1555
1571
  });
1556
1572
  Object.defineProperty(exports, "getAvailableCollectionNames", {
1557
1573
  enumerable: true,
1558
- get: function () { return chunk22EFGHAX_cjs.getAvailableCollectionNames; }
1574
+ get: function () { return chunkHV2I6API_cjs.getAvailableCollectionNames; }
1559
1575
  });
1560
1576
  Object.defineProperty(exports, "getManagedCollections", {
1561
1577
  enumerable: true,
1562
- get: function () { return chunk22EFGHAX_cjs.getManagedCollections; }
1578
+ get: function () { return chunkHV2I6API_cjs.getManagedCollections; }
1579
+ });
1580
+ Object.defineProperty(exports, "getTelemetryService", {
1581
+ enumerable: true,
1582
+ get: function () { return chunkHV2I6API_cjs.getTelemetryService; }
1583
+ });
1584
+ Object.defineProperty(exports, "initTelemetry", {
1585
+ enumerable: true,
1586
+ get: function () { return chunkHV2I6API_cjs.initTelemetry; }
1563
1587
  });
1564
1588
  Object.defineProperty(exports, "isCollectionManaged", {
1565
1589
  enumerable: true,
1566
- get: function () { return chunk22EFGHAX_cjs.isCollectionManaged; }
1590
+ get: function () { return chunkHV2I6API_cjs.isCollectionManaged; }
1567
1591
  });
1568
1592
  Object.defineProperty(exports, "loadCollectionConfig", {
1569
1593
  enumerable: true,
1570
- get: function () { return chunk22EFGHAX_cjs.loadCollectionConfig; }
1594
+ get: function () { return chunkHV2I6API_cjs.loadCollectionConfig; }
1571
1595
  });
1572
1596
  Object.defineProperty(exports, "loadCollectionConfigs", {
1573
1597
  enumerable: true,
1574
- get: function () { return chunk22EFGHAX_cjs.loadCollectionConfigs; }
1598
+ get: function () { return chunkHV2I6API_cjs.loadCollectionConfigs; }
1575
1599
  });
1576
1600
  Object.defineProperty(exports, "registerCollections", {
1577
1601
  enumerable: true,
1578
- get: function () { return chunk22EFGHAX_cjs.registerCollections; }
1602
+ get: function () { return chunkHV2I6API_cjs.registerCollections; }
1579
1603
  });
1580
1604
  Object.defineProperty(exports, "syncCollection", {
1581
1605
  enumerable: true,
1582
- get: function () { return chunk22EFGHAX_cjs.syncCollection; }
1606
+ get: function () { return chunkHV2I6API_cjs.syncCollection; }
1583
1607
  });
1584
1608
  Object.defineProperty(exports, "syncCollections", {
1585
1609
  enumerable: true,
1586
- get: function () { return chunk22EFGHAX_cjs.syncCollections; }
1610
+ get: function () { return chunkHV2I6API_cjs.syncCollections; }
1587
1611
  });
1588
1612
  Object.defineProperty(exports, "validateCollectionConfig", {
1589
1613
  enumerable: true,
1590
- get: function () { return chunk22EFGHAX_cjs.validateCollectionConfig; }
1614
+ get: function () { return chunkHV2I6API_cjs.validateCollectionConfig; }
1591
1615
  });
1592
1616
  Object.defineProperty(exports, "MigrationService", {
1593
1617
  enumerable: true,
@@ -1651,43 +1675,43 @@ Object.defineProperty(exports, "ScopedHookSystemClass", {
1651
1675
  });
1652
1676
  Object.defineProperty(exports, "QueryFilterBuilder", {
1653
1677
  enumerable: true,
1654
- get: function () { return chunk2MBNRFS5_cjs.QueryFilterBuilder; }
1678
+ get: function () { return chunkYTMFJLJZ_cjs.QueryFilterBuilder; }
1655
1679
  });
1656
1680
  Object.defineProperty(exports, "SONICJS_VERSION", {
1657
1681
  enumerable: true,
1658
- get: function () { return chunk2MBNRFS5_cjs.SONICJS_VERSION; }
1682
+ get: function () { return chunkYTMFJLJZ_cjs.SONICJS_VERSION; }
1659
1683
  });
1660
1684
  Object.defineProperty(exports, "TemplateRenderer", {
1661
1685
  enumerable: true,
1662
- get: function () { return chunk2MBNRFS5_cjs.TemplateRenderer; }
1686
+ get: function () { return chunkYTMFJLJZ_cjs.TemplateRenderer; }
1663
1687
  });
1664
1688
  Object.defineProperty(exports, "buildQuery", {
1665
1689
  enumerable: true,
1666
- get: function () { return chunk2MBNRFS5_cjs.buildQuery; }
1690
+ get: function () { return chunkYTMFJLJZ_cjs.buildQuery; }
1667
1691
  });
1668
1692
  Object.defineProperty(exports, "escapeHtml", {
1669
1693
  enumerable: true,
1670
- get: function () { return chunk2MBNRFS5_cjs.escapeHtml; }
1694
+ get: function () { return chunkYTMFJLJZ_cjs.escapeHtml; }
1671
1695
  });
1672
1696
  Object.defineProperty(exports, "getCoreVersion", {
1673
1697
  enumerable: true,
1674
- get: function () { return chunk2MBNRFS5_cjs.getCoreVersion; }
1698
+ get: function () { return chunkYTMFJLJZ_cjs.getCoreVersion; }
1675
1699
  });
1676
1700
  Object.defineProperty(exports, "renderTemplate", {
1677
1701
  enumerable: true,
1678
- get: function () { return chunk2MBNRFS5_cjs.renderTemplate; }
1702
+ get: function () { return chunkYTMFJLJZ_cjs.renderTemplate; }
1679
1703
  });
1680
1704
  Object.defineProperty(exports, "sanitizeInput", {
1681
1705
  enumerable: true,
1682
- get: function () { return chunk2MBNRFS5_cjs.sanitizeInput; }
1706
+ get: function () { return chunkYTMFJLJZ_cjs.sanitizeInput; }
1683
1707
  });
1684
1708
  Object.defineProperty(exports, "sanitizeObject", {
1685
1709
  enumerable: true,
1686
- get: function () { return chunk2MBNRFS5_cjs.sanitizeObject; }
1710
+ get: function () { return chunkYTMFJLJZ_cjs.sanitizeObject; }
1687
1711
  });
1688
1712
  Object.defineProperty(exports, "templateRenderer", {
1689
1713
  enumerable: true,
1690
- get: function () { return chunk2MBNRFS5_cjs.templateRenderer; }
1714
+ get: function () { return chunkYTMFJLJZ_cjs.templateRenderer; }
1691
1715
  });
1692
1716
  Object.defineProperty(exports, "metricsTracker", {
1693
1717
  enumerable: true,