@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.
@@ -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-HXEQWX7X.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};
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-Y2WDJKMF.mjs";import"./chunk-C76RGBCP.mjs";import"./chunk-NLAOQUYQ.mjs";export{b as App,a as sessionDirectory};
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;