epicenter-libs 3.28.0 → 3.28.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 (39) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/dist/browser/{AckExtension-1fe508aa.js → AckExtension-4ccb1b3b.js} +3 -3
  3. package/dist/{module/AckExtension-755114ce.js.map → browser/AckExtension-4ccb1b3b.js.map} +1 -1
  4. package/dist/{module/ReloadExtension-22370c97.js → browser/ReloadExtension-26e320cf.js} +3 -3
  5. package/dist/{module/ReloadExtension-22370c97.js.map → browser/ReloadExtension-26e320cf.js.map} +1 -1
  6. package/dist/browser/{cometd-95666f77.js → cometd-009d1cc7.js} +2 -2
  7. package/dist/browser/{cometd-95666f77.js.map → cometd-009d1cc7.js.map} +1 -1
  8. package/dist/browser/{epicenter-53acd5e1.js → epicenter-ffc2b7a7.js} +15 -8
  9. package/dist/browser/epicenter-ffc2b7a7.js.map +1 -0
  10. package/dist/browser/epicenter.js +1 -1
  11. package/dist/cjs/{AckExtension-da9f05ef.js → AckExtension-f8c57030.js} +3 -3
  12. package/dist/cjs/{AckExtension-da9f05ef.js.map → AckExtension-f8c57030.js.map} +1 -1
  13. package/dist/cjs/{ReloadExtension-72077f71.js → ReloadExtension-0d52f073.js} +3 -3
  14. package/dist/cjs/{ReloadExtension-72077f71.js.map → ReloadExtension-0d52f073.js.map} +1 -1
  15. package/dist/cjs/{cometd-bb7d98a6.js → cometd-369eb10e.js} +2 -2
  16. package/dist/cjs/{cometd-bb7d98a6.js.map → cometd-369eb10e.js.map} +1 -1
  17. package/dist/cjs/{epicenter-52f23ee7.js → epicenter-54f0befe.js} +15 -8
  18. package/dist/cjs/epicenter-54f0befe.js.map +1 -0
  19. package/dist/cjs/epicenter.js +1 -1
  20. package/dist/epicenter.js +12 -5
  21. package/dist/epicenter.js.map +1 -1
  22. package/dist/epicenter.min.js +1 -1
  23. package/dist/epicenter.min.js.map +1 -1
  24. package/dist/module/{AckExtension-755114ce.js → AckExtension-cd7b3bcb.js} +3 -3
  25. package/dist/{browser/AckExtension-1fe508aa.js.map → module/AckExtension-cd7b3bcb.js.map} +1 -1
  26. package/dist/{browser/ReloadExtension-51e9dfea.js → module/ReloadExtension-da4ee10c.js} +3 -3
  27. package/dist/{browser/ReloadExtension-51e9dfea.js.map → module/ReloadExtension-da4ee10c.js.map} +1 -1
  28. package/dist/module/{cometd-8498d64f.js → cometd-c640d287.js} +2 -2
  29. package/dist/module/{cometd-8498d64f.js.map → cometd-c640d287.js.map} +1 -1
  30. package/dist/module/{epicenter-46d3b19d.js → epicenter-e4a6d235.js} +15 -8
  31. package/dist/module/epicenter-e4a6d235.js.map +1 -0
  32. package/dist/module/epicenter.js +1 -1
  33. package/dist/types/adapters/world.d.ts +4 -0
  34. package/package.json +1 -1
  35. package/src/adapters/cometd.ts +2 -2
  36. package/src/adapters/world.ts +34 -9
  37. package/dist/browser/epicenter-53acd5e1.js.map +0 -1
  38. package/dist/cjs/epicenter-52f23ee7.js.map +0 -1
  39. package/dist/module/epicenter-46d3b19d.js.map +0 -1
@@ -2929,11 +2929,12 @@ class CometdAdapter {
2929
2929
  const project = await get$d();
2930
2930
  if (!project.channelEnabled) throw new EpicenterError('Push Channels are not enabled on this project');
2931
2931
  const channelProtocol = ((_project$channelProto = project.channelProtocol) === null || _project$channelProto === void 0 ? void 0 : _project$channelProto.toLowerCase()) || DEFAULT_CHANNEL_PROTOCOL;
2932
+ const CometDImports = await import('./cometd-009d1cc7.js').then(function (n) { return n.c; });
2932
2933
  const {
2933
2934
  CometD
2934
- } = await import('./cometd-95666f77.js').then(function (n) { return n.c; });
2935
- const AckExtension = (await import('./AckExtension-1fe508aa.js').then(function (n) { return n.A; })).default;
2936
- const ReloadExtension = (await import('./ReloadExtension-51e9dfea.js').then(function (n) { return n.R; })).default;
2935
+ } = CometDImports;
2936
+ const AckExtension = (await import('./AckExtension-4ccb1b3b.js').then(function (n) { return n.A; })).default;
2937
+ const ReloadExtension = (await import('./ReloadExtension-26e320cf.js').then(function (n) { return n.R; })).default;
2937
2938
  this.cometd = new CometD();
2938
2939
  const {
2939
2940
  apiProtocol,
@@ -6487,6 +6488,7 @@ async function getSessionWorlds(optionals = {}) {
6487
6488
  * @param [optionals.populace[].minimum] The minimum number of users that required for this role
6488
6489
  * @param [optionals.populace[].maximum] The maximum number of users that can be assigned to this role
6489
6490
  * @param [optionals.populace[].marginal] The maximum number of users that can be assigned to this role when using objective MARGINAL
6491
+ * @param [optionals.allowChannel] Opt into push notifications for this resource. Applicable to projects with phylogeny >= SILENT
6490
6492
  * @returns promise that resolves to the world the user was assigned to
6491
6493
  */
6492
6494
 
@@ -6498,6 +6500,7 @@ async function selfAssign(optionals = {}) {
6498
6500
  objective = OBJECTIVE.MINIMUM,
6499
6501
  worldNameGenerator,
6500
6502
  populace,
6503
+ allowChannel,
6501
6504
  ...routingOptions
6502
6505
  } = optionals;
6503
6506
  const session = identification.session;
@@ -6506,7 +6509,8 @@ async function selfAssign(optionals = {}) {
6506
6509
  role,
6507
6510
  objective,
6508
6511
  worldNameGenerator,
6509
- populace
6512
+ populace,
6513
+ allowChannel
6510
6514
  },
6511
6515
  ...routingOptions
6512
6516
  }).then(({
@@ -6539,6 +6543,7 @@ async function selfAssign(optionals = {}) {
6539
6543
  * @param [optionals.populace[].minimum] The minimum number of users that required for this role
6540
6544
  * @param [optionals.populace[].maximum] The maximum number of users that can be assigned to this role
6541
6545
  * @param [optionals.populace[].marginal] The maximum number of users that can be assigned to this role when using objective MARGINAL
6546
+ * @param [optionals.allowChannel] Opt into push notifications for this resource. Applicable to projects with phylogeny >= SILENT
6542
6547
  * @returns promise that resolves to the list of worlds created by the assignment
6543
6548
  */
6544
6549
 
@@ -6551,6 +6556,7 @@ async function autoAssignUsers(assignments, optionals = {}) {
6551
6556
  worldNameGenerator,
6552
6557
  keepEmptyWorlds,
6553
6558
  populace,
6559
+ allowChannel,
6554
6560
  ...routingOptions
6555
6561
  } = optionals;
6556
6562
  const session = identification.session;
@@ -6561,7 +6567,8 @@ async function autoAssignUsers(assignments, optionals = {}) {
6561
6567
  requireAllAssignments,
6562
6568
  worldNameGenerator,
6563
6569
  keepEmptyWorlds,
6564
- populace
6570
+ populace,
6571
+ allowChannel
6565
6572
  },
6566
6573
  ...routingOptions
6567
6574
  }).then(({
@@ -8147,9 +8154,9 @@ var utilities = /*#__PURE__*/Object.freeze({
8147
8154
  });
8148
8155
 
8149
8156
  /* yes, this string template literal is weird;
8150
- * it's cause rollup does not recogize 3.28.0 as an individual token otherwise */
8157
+ * it's cause rollup does not recogize 3.28.1 as an individual token otherwise */
8151
8158
 
8152
- const version = "Epicenter (v".concat('3.28.0', ") for Browsers | Build Date: 2024-07-24T21:07:38.530Z");
8159
+ const version = "Epicenter (v".concat('3.28.1', ") for Browsers | Build Date: 2024-10-18T18:24:16.347Z");
8153
8160
  const UNAUTHORIZED = 401;
8154
8161
  const FORBIDDEN = 403;
8155
8162
  const DEFAULT_ERROR_HANDLERS = {};
@@ -8205,4 +8212,4 @@ DEFAULT_ERROR_HANDLERS.authInvalidated = errorManager.registerHandler(error => e
8205
8212
  Object.freeze(DEFAULT_ERROR_HANDLERS);
8206
8213
 
8207
8214
  export { video as A, vonage as B, world as C, DEFAULT_ERROR_HANDLERS as D, somebody as E, Fault as F, daily as G, matchmaker as H, wallet as I, Channel as J, video$1 as K, vonage$1 as L, PUSH_CATEGORY as P, RITUAL as R, SCOPE_BOUNDARY as S, commonjsGlobal as a, ROLE as b, createCommonjsModule as c, config as d, errorManager as e, Router as f, account as g, admin as h, asset as i, consensus as j, email as k, authentication as l, chat as m, episode as n, group as o, leaderboard as p, presence as q, project as r, recaptcha as s, run as t, utilities as u, version as v, task as w, time as x, user as y, vault as z };
8208
- //# sourceMappingURL=epicenter-53acd5e1.js.map
8215
+ //# sourceMappingURL=epicenter-ffc2b7a7.js.map