@urun-sh/core 0.6.48 → 0.6.50
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/adapter/index.js +10 -7
- package/dist/adapter/index.mjs +1 -1
- package/dist/{app-HXEQWX7X.mjs → app-43NLUS2C.mjs} +1 -1
- package/dist/{backoff-BBUUsVzs.d.mts → backoff-B6Y9M7p2.d.mts} +7 -0
- package/dist/{backoff-BBUUsVzs.d.ts → backoff-B6Y9M7p2.d.ts} +7 -0
- package/dist/{backoff-DAmLhwaa.d.ts → backoff-CeVr3Xea.d.mts} +7 -0
- package/dist/{backoff-DAmLhwaa.d.mts → backoff-CeVr3Xea.d.ts} +7 -0
- package/dist/{chunk-C76RGBCP.mjs → chunk-IYP7BSX7.mjs} +1 -1
- package/dist/{chunk-HDAMOQQE.mjs → chunk-SGDFXF7H.mjs} +2 -2
- package/dist/chunk-W6TWWUZW.mjs +33 -0
- package/dist/index.browser.d.mts +20 -2
- package/dist/index.browser.d.ts +20 -2
- package/dist/index.browser.js +7 -4
- package/dist/index.browser.mjs +6 -3
- package/dist/index.d.mts +20 -2
- package/dist/index.d.ts +20 -2
- package/dist/index.js +10 -7
- package/dist/index.mjs +1 -1
- package/dist/internal.browser.d.mts +2 -2
- package/dist/internal.browser.d.ts +2 -2
- package/dist/internal.browser.js +1 -1
- package/dist/internal.browser.mjs +1 -1
- package/dist/internal.d.mts +2 -2
- package/dist/internal.d.ts +2 -2
- package/dist/internal.js +1 -1
- package/dist/internal.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-Y2WDJKMF.mjs +0 -30
package/dist/adapter/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire as __urunCreateRequire } from 'node:module'; const require = globalThis.require ?? __urunCreateRequire(import.meta.url);
|
|
2
|
-
import"../chunk-NLAOQUYQ.mjs";var p="serve";function d(n,o){let e=`[urun/${o.adapter}]`,r=n.baseUrl!==void 0||n.orgId!==void 0||n.app!==void 0||n.functionName!==void 0;if(n.session&&r)throw new Error(`${e} pass EITHER a \`session\` (BYO) OR connection settings (\`baseUrl\`/\`orgId\`/\`app\`) \u2014 not both.`);let u,c=()=>{if(n.session){let s=n.session;return Promise.resolve(typeof s=="function"?s():s)}let{baseUrl:i,orgId:t,app:a}=n;if(!i||!t||!a)throw new Error(`${e} missing connection settings: \`baseUrl\`, \`orgId\` and \`app\` are required (or pass a \`session\`).`);return l({...n,baseUrl:i,orgId:t,app:a})};return()=>u??=c()}async function l(n){let{App:o}=await import("../app-
|
|
2
|
+
import"../chunk-NLAOQUYQ.mjs";var p="serve";function d(n,o){let e=`[urun/${o.adapter}]`,r=n.baseUrl!==void 0||n.orgId!==void 0||n.app!==void 0||n.functionName!==void 0;if(n.session&&r)throw new Error(`${e} pass EITHER a \`session\` (BYO) OR connection settings (\`baseUrl\`/\`orgId\`/\`app\`) \u2014 not both.`);let u,c=()=>{if(n.session){let s=n.session;return Promise.resolve(typeof s=="function"?s():s)}let{baseUrl:i,orgId:t,app:a}=n;if(!i||!t||!a)throw new Error(`${e} missing connection settings: \`baseUrl\`, \`orgId\` and \`app\` are required (or pass a \`session\`).`);return l({...n,baseUrl:i,orgId:t,app:a})};return()=>u??=c()}async function l(n){let{App:o}=await import("../app-43NLUS2C.mjs"),e=o(n.app,{baseUrl:n.baseUrl,orgId:n.orgId,jwt:n.jwt,getAccessToken:n.getAccessToken,authProvider:n.authProvider}),r=n.functionName??p;return e[r]()}export{d as createSessionResolver};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire as __urunCreateRequire } from 'node:module'; const require = globalThis.require ?? __urunCreateRequire(import.meta.url);
|
|
2
|
-
import{fa as a,ga as b}from"./chunk-
|
|
2
|
+
import{fa as a,ga as b}from"./chunk-W6TWWUZW.mjs";import"./chunk-IYP7BSX7.mjs";import"./chunk-NLAOQUYQ.mjs";export{b as App,a as sessionDirectory};
|
|
@@ -912,6 +912,8 @@ interface StartSessionOptions {
|
|
|
912
912
|
concurrencyKey?: string;
|
|
913
913
|
|
|
914
914
|
activity?: ActivitySignalMode;
|
|
915
|
+
|
|
916
|
+
presenceIdleMs?: number;
|
|
915
917
|
}
|
|
916
918
|
|
|
917
919
|
interface App {
|
|
@@ -1356,6 +1358,8 @@ declare class TransportNegotiator {
|
|
|
1356
1358
|
private wtOnlyLeg;
|
|
1357
1359
|
|
|
1358
1360
|
private webRtcDialProceeded;
|
|
1361
|
+
|
|
1362
|
+
private wtLegEstablished;
|
|
1359
1363
|
static readonly WT_REDIAL_BASE_MS = 2000;
|
|
1360
1364
|
static readonly WT_REDIAL_MAX = 3;
|
|
1361
1365
|
static readonly WT_REDIAL_CAP_MS = 30000;
|
|
@@ -1490,6 +1494,9 @@ declare class TransportSession {
|
|
|
1490
1494
|
private _publishedAudio;
|
|
1491
1495
|
private _publishedVideo;
|
|
1492
1496
|
|
|
1497
|
+
private _micUplinkWired;
|
|
1498
|
+
private _camUplinkWired;
|
|
1499
|
+
|
|
1493
1500
|
private _publishesInFlight;
|
|
1494
1501
|
private _wtMicUplink;
|
|
1495
1502
|
private _wtCamUplink;
|
|
@@ -912,6 +912,8 @@ interface StartSessionOptions {
|
|
|
912
912
|
concurrencyKey?: string;
|
|
913
913
|
|
|
914
914
|
activity?: ActivitySignalMode;
|
|
915
|
+
|
|
916
|
+
presenceIdleMs?: number;
|
|
915
917
|
}
|
|
916
918
|
|
|
917
919
|
interface App {
|
|
@@ -1356,6 +1358,8 @@ declare class TransportNegotiator {
|
|
|
1356
1358
|
private wtOnlyLeg;
|
|
1357
1359
|
|
|
1358
1360
|
private webRtcDialProceeded;
|
|
1361
|
+
|
|
1362
|
+
private wtLegEstablished;
|
|
1359
1363
|
static readonly WT_REDIAL_BASE_MS = 2000;
|
|
1360
1364
|
static readonly WT_REDIAL_MAX = 3;
|
|
1361
1365
|
static readonly WT_REDIAL_CAP_MS = 30000;
|
|
@@ -1490,6 +1494,9 @@ declare class TransportSession {
|
|
|
1490
1494
|
private _publishedAudio;
|
|
1491
1495
|
private _publishedVideo;
|
|
1492
1496
|
|
|
1497
|
+
private _micUplinkWired;
|
|
1498
|
+
private _camUplinkWired;
|
|
1499
|
+
|
|
1493
1500
|
private _publishesInFlight;
|
|
1494
1501
|
private _wtMicUplink;
|
|
1495
1502
|
private _wtCamUplink;
|
|
@@ -912,6 +912,8 @@ interface StartSessionOptions {
|
|
|
912
912
|
concurrencyKey?: string;
|
|
913
913
|
|
|
914
914
|
activity?: ActivitySignalMode;
|
|
915
|
+
|
|
916
|
+
presenceIdleMs?: number;
|
|
915
917
|
}
|
|
916
918
|
|
|
917
919
|
interface App {
|
|
@@ -1356,6 +1358,8 @@ declare class TransportNegotiator {
|
|
|
1356
1358
|
private wtOnlyLeg;
|
|
1357
1359
|
|
|
1358
1360
|
private webRtcDialProceeded;
|
|
1361
|
+
|
|
1362
|
+
private wtLegEstablished;
|
|
1359
1363
|
static readonly WT_REDIAL_BASE_MS = 2000;
|
|
1360
1364
|
static readonly WT_REDIAL_MAX = 3;
|
|
1361
1365
|
static readonly WT_REDIAL_CAP_MS = 30000;
|
|
@@ -1490,6 +1494,9 @@ declare class TransportSession {
|
|
|
1490
1494
|
private _publishedAudio;
|
|
1491
1495
|
private _publishedVideo;
|
|
1492
1496
|
|
|
1497
|
+
private _micUplinkWired;
|
|
1498
|
+
private _camUplinkWired;
|
|
1499
|
+
|
|
1493
1500
|
private _publishesInFlight;
|
|
1494
1501
|
private _wtMicUplink;
|
|
1495
1502
|
private _wtCamUplink;
|
|
@@ -912,6 +912,8 @@ interface StartSessionOptions {
|
|
|
912
912
|
concurrencyKey?: string;
|
|
913
913
|
|
|
914
914
|
activity?: ActivitySignalMode;
|
|
915
|
+
|
|
916
|
+
presenceIdleMs?: number;
|
|
915
917
|
}
|
|
916
918
|
|
|
917
919
|
interface App {
|
|
@@ -1356,6 +1358,8 @@ declare class TransportNegotiator {
|
|
|
1356
1358
|
private wtOnlyLeg;
|
|
1357
1359
|
|
|
1358
1360
|
private webRtcDialProceeded;
|
|
1361
|
+
|
|
1362
|
+
private wtLegEstablished;
|
|
1359
1363
|
static readonly WT_REDIAL_BASE_MS = 2000;
|
|
1360
1364
|
static readonly WT_REDIAL_MAX = 3;
|
|
1361
1365
|
static readonly WT_REDIAL_CAP_MS = 30000;
|
|
@@ -1490,6 +1494,9 @@ declare class TransportSession {
|
|
|
1490
1494
|
private _publishedAudio;
|
|
1491
1495
|
private _publishedVideo;
|
|
1492
1496
|
|
|
1497
|
+
private _micUplinkWired;
|
|
1498
|
+
private _camUplinkWired;
|
|
1499
|
+
|
|
1493
1500
|
private _publishesInFlight;
|
|
1494
1501
|
private _wtMicUplink;
|
|
1495
1502
|
private _wtCamUplink;
|