epicenter-libs 3.12.0-alpha.2 → 3.12.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/{AckExtension-27837f84.js → AckExtension-214620c9.js} +3 -3
- package/dist/{module/AckExtension-c8eb637f.js.map → browser/AckExtension-214620c9.js.map} +1 -1
- package/dist/{module/ReloadExtension-153dd608.js → browser/ReloadExtension-44b6943a.js} +3 -3
- package/dist/{module/ReloadExtension-153dd608.js.map → browser/ReloadExtension-44b6943a.js.map} +1 -1
- package/dist/browser/{cometd-99ccd31a.js → cometd-d0c0b299.js} +2 -2
- package/dist/browser/{cometd-99ccd31a.js.map → cometd-d0c0b299.js.map} +1 -1
- package/dist/browser/{epicenter-dd8e5ae6.js → epicenter-096c3a66.js} +15 -15
- package/dist/browser/{epicenter-dd8e5ae6.js.map → epicenter-096c3a66.js.map} +1 -1
- package/dist/browser/epicenter.js +1 -1
- package/dist/cjs/{AckExtension-e1ce45a6.js → AckExtension-379cc7df.js} +3 -3
- package/dist/cjs/{AckExtension-e1ce45a6.js.map → AckExtension-379cc7df.js.map} +1 -1
- package/dist/cjs/{ReloadExtension-2979639f.js → ReloadExtension-6a2e4c9f.js} +3 -3
- package/dist/cjs/{ReloadExtension-2979639f.js.map → ReloadExtension-6a2e4c9f.js.map} +1 -1
- package/dist/cjs/{cometd-360407c8.js → cometd-cfb3e483.js} +2 -2
- package/dist/cjs/{cometd-360407c8.js.map → cometd-cfb3e483.js.map} +1 -1
- package/dist/cjs/{epicenter-708918e5.js → epicenter-708c87bb.js} +15 -15
- package/dist/cjs/{epicenter-708918e5.js.map → epicenter-708c87bb.js.map} +1 -1
- package/dist/cjs/epicenter.js +1 -1
- package/dist/epicenter.js +11 -11
- package/dist/epicenter.js.map +1 -1
- package/dist/epicenter.min.js +1 -1
- package/dist/epicenter.min.js.map +1 -1
- package/dist/module/{AckExtension-c8eb637f.js → AckExtension-6850a921.js} +3 -3
- package/dist/{browser/AckExtension-27837f84.js.map → module/AckExtension-6850a921.js.map} +1 -1
- package/dist/{browser/ReloadExtension-7a5a2a89.js → module/ReloadExtension-6609fd2a.js} +3 -3
- package/dist/{browser/ReloadExtension-7a5a2a89.js.map → module/ReloadExtension-6609fd2a.js.map} +1 -1
- package/dist/module/{cometd-de9e9e29.js → cometd-acb0cb7b.js} +2 -2
- package/dist/module/{cometd-de9e9e29.js.map → cometd-acb0cb7b.js.map} +1 -1
- package/dist/module/{epicenter-51a8ffa9.js → epicenter-2b514c42.js} +15 -15
- package/dist/module/{epicenter-51a8ffa9.js.map → epicenter-2b514c42.js.map} +1 -1
- package/dist/module/epicenter.js +1 -1
- package/dist/types/adapters/vonage.d.ts +7 -7
- package/dist/types/apis/vonage.d.ts +18 -6
- package/package.json +1 -1
- package/src/adapters/vonage.ts +9 -9
- package/src/apis/vonage.ts +14 -8
|
@@ -2786,9 +2786,9 @@ class CometdAdapter {
|
|
|
2786
2786
|
if (!enabled) throw new EpicenterError('Push Channels are not enabled on this project');
|
|
2787
2787
|
const {
|
|
2788
2788
|
CometD
|
|
2789
|
-
} = await import('./cometd-
|
|
2790
|
-
const AckExtension = (await import('./AckExtension-
|
|
2791
|
-
const ReloadExtension = (await import('./ReloadExtension-
|
|
2789
|
+
} = await import('./cometd-d0c0b299.js').then(function (n) { return n.c; });
|
|
2790
|
+
const AckExtension = (await import('./AckExtension-214620c9.js').then(function (n) { return n.A; })).default;
|
|
2791
|
+
const ReloadExtension = (await import('./ReloadExtension-44b6943a.js').then(function (n) { return n.R; })).default;
|
|
2792
2792
|
this.cometd = new CometD();
|
|
2793
2793
|
const {
|
|
2794
2794
|
apiProtocol,
|
|
@@ -5206,8 +5206,8 @@ async function postArchive(body, optionals = {}) {
|
|
|
5206
5206
|
body
|
|
5207
5207
|
}) => body);
|
|
5208
5208
|
}
|
|
5209
|
-
async function
|
|
5210
|
-
return await new Router().get('/vonage/
|
|
5209
|
+
async function getInfo(optionals = {}) {
|
|
5210
|
+
return await new Router().get('/vonage/info', optionals).then(({
|
|
5211
5211
|
body
|
|
5212
5212
|
}) => body);
|
|
5213
5213
|
}
|
|
@@ -5222,7 +5222,7 @@ var vonage$1 = /*#__PURE__*/Object.freeze({
|
|
|
5222
5222
|
getSession: getSession,
|
|
5223
5223
|
postToken: postToken,
|
|
5224
5224
|
postArchive: postArchive,
|
|
5225
|
-
|
|
5225
|
+
getInfo: getInfo,
|
|
5226
5226
|
deleteArchiveByID: deleteArchiveByID
|
|
5227
5227
|
});
|
|
5228
5228
|
|
|
@@ -5243,7 +5243,7 @@ var vonage$1 = /*#__PURE__*/Object.freeze({
|
|
|
5243
5243
|
*/
|
|
5244
5244
|
|
|
5245
5245
|
async function getProjectID(optionals = {}) {
|
|
5246
|
-
return
|
|
5246
|
+
return (await getInfo(optionals)).apiKey;
|
|
5247
5247
|
}
|
|
5248
5248
|
/**
|
|
5249
5249
|
* Calls the server SDK call for creating a session. Used to create a session object on the client side.
|
|
@@ -5258,7 +5258,7 @@ async function getProjectID(optionals = {}) {
|
|
|
5258
5258
|
*
|
|
5259
5259
|
* const vonageSession = OT.initSession(projectID, sessionID);
|
|
5260
5260
|
* @param [optionals] Optional arguments; pass network call options overrides here.
|
|
5261
|
-
* @returns promise that resolves to
|
|
5261
|
+
* @returns promise that resolves to an object containing the Vonage session ID
|
|
5262
5262
|
*/
|
|
5263
5263
|
|
|
5264
5264
|
async function createSession(optionals = {}) {
|
|
@@ -5276,9 +5276,9 @@ async function createSession(optionals = {}) {
|
|
|
5276
5276
|
*/
|
|
5277
5277
|
|
|
5278
5278
|
async function generateToken(sessionID, optionals = {}) {
|
|
5279
|
-
return postToken({
|
|
5279
|
+
return (await postToken({
|
|
5280
5280
|
sessionId: sessionID
|
|
5281
|
-
}, optionals);
|
|
5281
|
+
}, optionals)).token;
|
|
5282
5282
|
}
|
|
5283
5283
|
/**
|
|
5284
5284
|
* Starts a Vonage archive -- a user recording of a Vonage session
|
|
@@ -5299,7 +5299,7 @@ async function generateToken(sessionID, optionals = {}) {
|
|
|
5299
5299
|
* @param [optionals.readLock] Read permission role; one of the strings defined in epicenter.ROLE
|
|
5300
5300
|
* @param [optionals.writeLock] Write permission role; one of the strings defined in epicenter.ROLE
|
|
5301
5301
|
* @param [optionals.ttlSeconds] Life span of the archive (how long before it is deleted); defaults to 604,800 (1 week), max of 31,536,000 (1 year)
|
|
5302
|
-
* @returns promise that resolves to
|
|
5302
|
+
* @returns promise that resolves to an object containing the archive ID and status
|
|
5303
5303
|
*/
|
|
5304
5304
|
|
|
5305
5305
|
async function startArchive(name, sessionID, scope, optionals = {}) {
|
|
@@ -5332,7 +5332,7 @@ async function startArchive(name, sessionID, scope, optionals = {}) {
|
|
|
5332
5332
|
* vonageAdapter.stopArchive('004355...ede770e39');
|
|
5333
5333
|
* @param archiveID ID of the archive to stop
|
|
5334
5334
|
* @param optionals Optional arguments; pass network call options overrides here.
|
|
5335
|
-
* @returns promise that resolves to
|
|
5335
|
+
* @returns promise that resolves to an object containing the archive ID and status (which should be "stopped")
|
|
5336
5336
|
*/
|
|
5337
5337
|
|
|
5338
5338
|
async function stopArchive(archiveID, optionals = {}) {
|
|
@@ -6217,9 +6217,9 @@ var utilities = /*#__PURE__*/Object.freeze({
|
|
|
6217
6217
|
});
|
|
6218
6218
|
|
|
6219
6219
|
/* yes, this string template literal is weird;
|
|
6220
|
-
* it's cause rollup does not recogize 3.12.0-alpha.
|
|
6220
|
+
* it's cause rollup does not recogize 3.12.0-alpha.3 as an individual token otherwise */
|
|
6221
6221
|
|
|
6222
|
-
const version = "Epicenter (v".concat('3.12.0-alpha.
|
|
6222
|
+
const version = "Epicenter (v".concat('3.12.0-alpha.3', ") for Browsers | Build Date: 2022-01-13T18:55:21.534Z");
|
|
6223
6223
|
const UNAUTHORIZED = 401;
|
|
6224
6224
|
errorManager.registerHandler(error => error.status === UNAUTHORIZED && error.code === 'AUTHENTICATION_EXPIRED', async error => {
|
|
6225
6225
|
await logout();
|
|
@@ -6262,4 +6262,4 @@ errorManager.registerHandler(error => error.status === UNAUTHORIZED && error.cod
|
|
|
6262
6262
|
});
|
|
6263
6263
|
|
|
6264
6264
|
export { world as A, vonage$1 as B, Channel as C, Fault as F, 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, email as j, authentication as k, chat as l, episode as m, group as n, leaderboard as o, presence as p, project as q, recaptcha as r, run as s, task as t, utilities as u, version as v, time as w, user as x, vault as y, vonage as z };
|
|
6265
|
-
//# sourceMappingURL=epicenter-
|
|
6265
|
+
//# sourceMappingURL=epicenter-096c3a66.js.map
|