@urun-sh/core 0.1.8 → 0.1.10

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/index.mjs CHANGED
@@ -1 +1 @@
1
- import{a as _,b as E}from"./chunk-ADK75OQ6.mjs";function v(s,e){let t={...s};for(let r of Object.keys(e)){let n=e[r],o=t[r];n!==null&&typeof n=="object"&&!Array.isArray(n)&&o!==null&&typeof o=="object"&&!Array.isArray(o)?t[r]=v(o,n):t[r]=n}return t}function A(s,e){let t=e.split("."),r=s;for(let n of t){if(r==null||typeof r!="object")return;r=r[n]}return r}var g=class{_state={};_listeners=new Set;_key;_sessionId;_multiplexer;constructor(e,t,r){this._key=e,this._sessionId=t,this._multiplexer=r,this._multiplexer.on(this._channel,n=>{if(n.type==="doc_update"&&n.patch&&typeof n.patch=="object"){this._state=v(this._state,n.patch);let o={...this._state};for(let p of this._listeners)p(o)}})}get _channel(){return`session:${this._sessionId}:doc:${this._key}`}set(e){this._state=v(this._state,e),this._multiplexer.emit(this._channel,{type:"doc_update",patch:e,snapshot:this._state});let t={...this._state};for(let r of this._listeners)r(t)}get(e,t){return e?A(this._state,e)??t:{...this._state}}on(e,t){return this._listeners.add(t),()=>this._listeners.delete(t)}};var k=class{constructor(e,t){this._name=e;this._transport=t;this._track=this._transport.getTrackByName(this._name)??null,this._unsubscribeTransport=this._transport.on("track",()=>{let r=this._transport.getTrackByName(this._name)??null;r!==this._track&&this._setTrack(r)})}_name;_transport;_track=null;_handlers=new Map;_unsubscribeTransport=null;get track(){let e=this._transport.getTrackByName(this._name)??this._track;return e!==this._track&&this._setTrack(e),this._track}async attach(e){await this._transport.addTrack(e)}async detach(){this._transport.removeTrack()}async seek(e){if(e!=="live"&&(!Number.isFinite(e)||e<0))throw new Error('[urun] stream.seek target must be "live" or a non-negative number of seconds');this._transport.seekStream(this._name,e)}on(e,t){let r=this._handlers.get(e);return r||(r=new Set,this._handlers.set(e,r)),r.add(t),()=>{r?.delete(t),r?.size===0&&this._handlers.delete(e)}}dispose(){this._unsubscribeTransport?.(),this._unsubscribeTransport=null,this._handlers.clear()}_setTrack(e){this._track=e,e&&e.addEventListener("ended",()=>{this._track===e&&this._setTrack(null)},{once:!0});let t=this._handlers.get("track");if(t)for(let r of t)r(e)}},m=class{_sessionId;_multiplexer;_transport;_docs=new Map;_streams=new Map;constructor(e,t,r){this._sessionId=e,this._multiplexer=t,this._transport=r}get id(){return this._sessionId}stream(e){let t=this._streams.get(e);return t||(t=new k(e,this._transport),this._streams.set(e,t)),t}doc(e){let t=this._docs.get(e);return t||(t=new g(e,this._sessionId,this._multiplexer),this._docs.set(e,t)),t}disconnect(){for(let e of this._streams.values())e.dispose();this._streams.clear(),this._transport.disconnect()}};var U="session-api.prod.cloud.urun.sh",L=["https://session-api.use2.prod.cloud.urun.sh","https://session-api.usw2.prod.cloud.urun.sh"];function I(s){return s.trim().replace(/\/+$/,"")}function j(s,e){let t=[],r=n=>{if(!n)return;let o=I(n);o&&!t.includes(o)&&t.push(o)};r(s);for(let n of e??[])r(n);for(let n of $(s))r(n);return t}function y(s){return I(s).replace(/^http/,"ws")+"/ws"}function M(s,e){return j(s,e).map(y)}function $(s){try{return new URL(s).hostname!==U?[]:L}catch{return[]}}var N=new Set(["then","catch","finally","toJSON",Symbol.toPrimitive]);function B(s,e){let t=()=>{s.send(JSON.stringify(e))};if(s.readyState===WebSocket.OPEN){t();return}if(s.readyState===WebSocket.CONNECTING){let r=()=>{s.removeEventListener("open",r),t()};s.addEventListener("open",r)}}function W(s,e){let t=y(e.baseUrl),r=new WebSocket(t),n=new _(r),o=M(e.baseUrl,e.fallbackUrls);return new Proxy({},{get(p,a){if(!(N.has(a)||typeof a!="string"))return h=>{let u=h??{},l=`s_${Date.now()}_${Math.random().toString(36).slice(2)}`,d=new E({url:t,fallbackUrls:o.filter(i=>i!==t),orgId:e.orgId,jwt:e.jwt,authProvider:e.authProvider,sessionId:l});return d.connect({app:s,functionName:a,args:u}).catch(i=>{console.error(`[urun] Failed to connect session for ${a}:`,i)}),B(r,{type:"app.call",app:s,fn:a,args:u,sessionId:l,orgId:e.orgId,jwt:e.jwt,authProvider:e.authProvider}),new m(l,n,d)}}})}var R=3e4,T="stream:",x=class{_ws;_multiplexer;_pendingRpc=new Map;_rpcId=0;constructor(e,t){this._ws=e,this._multiplexer=t,this._ws.addEventListener("message",r=>{let n;try{n=JSON.parse(typeof r.data=="string"?r.data:"")}catch{return}if(n.rpcId&&this._pendingRpc.has(n.rpcId)){let o=this._pendingRpc.get(n.rpcId);this._pendingRpc.delete(n.rpcId),clearTimeout(o.timer),n.error?o.reject(new Error(n.error)):o.resolve(n.result)}})}async get(e){return this._sendRpc("store.get",{key:e})}async has(e){return await this._sendRpc("store.has",{key:e})}on(e,t){let r=`${T}${e}`;return this._multiplexer.on(r,n=>{t(n)})}emit(e,t){let r=`${T}${e}`,n=typeof t=="object"&&t!==null&&!Array.isArray(t)?t:{data:t};this._multiplexer.emit(r,n)}_getInternals(){return{multiplexer:this._multiplexer,ws:this._ws}}_sendRpc(e,t){return new Promise((r,n)=>{if(!this._ws||this._ws.readyState!==WebSocket.OPEN){n(new Error("WebSocket not open"));return}let o=String(++this._rpcId),p=setTimeout(()=>{this._pendingRpc.has(o)&&(this._pendingRpc.delete(o),n(new Error(`RPC request "${e}" timed out after ${R}ms`)))},R);this._pendingRpc.set(o,{resolve:r,reject:n,timer:p}),this._ws.send(JSON.stringify({rpcId:o,type:e,...t}))})}};function D(s){let r=`${s.baseUrl.replace(/\/$/,"").replace(/^http/,"ws")}/store/${encodeURIComponent(s.orgId)}`,n=new WebSocket(r);(s.jwt||s.apiKey)&&n.addEventListener("open",()=>{n.send(JSON.stringify({type:"auth",orgId:s.orgId,jwt:s.jwt,authProvider:s.authProvider,apiKey:s.apiKey}))});let o=new _(n);return new x(n,o)}var F='video/mp4; codecs="avc1.42E01E"';function G(s,e){let t=e?.codec??F,r=document.createElement("video");r.muted=!0,r.playsInline=!0;let n=new MediaSource,o=URL.createObjectURL(n);r.src=o,n.addEventListener("sourceopen",()=>{let i;try{i=n.addSourceBuffer(t)}catch(c){throw c instanceof DOMException&&c.name==="NotSupportedError"?new Error(`Codec not supported: "${t}". Ensure the codec string matches the fMP4 container format. Common values: video/mp4; codecs="avc1.42E01E" (H.264 Baseline), video/mp4; codecs="avc1.4D401F" (H.264 Main).`):c}let O=s.getReader();function S(){return i.updating?new Promise(c=>{i.addEventListener("updateend",()=>c(),{once:!0})}):Promise.resolve()}async function P(){try{for(;;){let{done:c,value:b}=await O.read();if(c){await S(),n.readyState==="open"&&n.endOfStream();return}await S();try{i.appendBuffer(b)}catch(f){if(f instanceof DOMException&&f.name==="QuotaExceededError"){let w=i.buffered;if(w.length>0){let C=w.start(w.length-1);i.remove(0,C),await S(),i.appendBuffer(b)}else throw f}else throw f}}}catch{if(n.readyState==="open")try{n.endOfStream("decode")}catch{}}}P()}),r.play().catch(()=>{});let p=r,a=p.captureStream??p.mozCaptureStream;if(!a)throw new Error("captureStream() is not supported in this browser. videoStream() requires HTMLMediaElement.captureStream() support.");let h=a.call(r),u=h.getTracks(),l=0,d=u.length;if(d===0)r.addEventListener("emptied",()=>{URL.revokeObjectURL(o)},{once:!0});else for(let i of u)i.addEventListener("ended",()=>{l++,l>=d&&URL.revokeObjectURL(o)});return h}export{W as App,m as Session,D as createStore,G as videoStream};
1
+ import{a as b,b as I,c as E}from"./chunk-W2K27XCL.mjs";function w(n,e){let r={...n};for(let t of Object.keys(e)){let s=e[t],o=r[t];s!==null&&typeof s=="object"&&!Array.isArray(s)&&o!==null&&typeof o=="object"&&!Array.isArray(o)?r[t]=w(o,s):r[t]=s}return r}function C(n,e){let r=e.split("."),t=n;for(let s of r){if(t==null||typeof t!="object")return;t=t[s]}return t}var f=class{_state={};_listeners=new Set;_key;_sessionId;_multiplexer;_unsubscribe=null;constructor(e,r,t){this._key=e,this._sessionId=r,this._multiplexer=t,this.subscribe()}setSessionId(e){e!==this._sessionId&&(this._unsubscribe?.(),this._sessionId=e,this.subscribe())}subscribe(){this._unsubscribe=this._multiplexer.on(this._channel,e=>{if(e.type==="doc_update"&&e.patch&&typeof e.patch=="object"){this._state=w(this._state,e.patch);let r={...this._state};for(let t of this._listeners)t(r)}})}get _channel(){return`session:${this._sessionId}:doc:${this._key}`}set(e){this._state=w(this._state,e),this._multiplexer.emit(this._channel,{type:"doc_update",patch:e,snapshot:this._state});let r={...this._state};for(let t of this._listeners)t(r)}get(e,r){return e?C(this._state,e)??r:{...this._state}}on(e,r){return this._listeners.add(r),()=>this._listeners.delete(r)}};var S=class{constructor(e,r){this._name=e;this._transport=r;this._track=this._transport.getTrackByName(this._name)??null,this._unsubscribeTransport=this._transport.on("track",()=>{let t=this._transport.getTrackByName(this._name)??null;t!==this._track&&this._setTrack(t)})}_name;_transport;_track=null;_handlers=new Map;_unsubscribeTransport=null;get track(){let e=this._transport.getTrackByName(this._name)??this._track;return e!==this._track&&this._setTrack(e),this._track}async attach(e){await this._transport.addTrack(e)}async detach(){this._transport.removeTrack()}async seek(e){if(e!=="live"&&(!Number.isFinite(e)||e<0))throw new Error('[urun] stream.seek target must be "live" or a non-negative number of seconds');this._transport.seekStream(this._name,e)}on(e,r){let t=this._handlers.get(e);return t||(t=new Set,this._handlers.set(e,t)),t.add(r),()=>{t?.delete(r),t?.size===0&&this._handlers.delete(e)}}dispose(){this._unsubscribeTransport?.(),this._unsubscribeTransport=null,this._handlers.clear()}_setTrack(e){this._track=e,e&&e.addEventListener("ended",()=>{this._track===e&&this._setTrack(null)},{once:!0});let r=this._handlers.get("track");if(r)for(let t of r)t(e)}},m=class{_sessionId;_multiplexer;_transport;_docs=new Map;_streams=new Map;constructor(e,r,t){this._sessionId=e,this._multiplexer=r,this._transport=t}get id(){return this._sessionId}setSessionId(e){if(e===this._sessionId)return;this._multiplexer.rewriteSessionChannels?.call(this._multiplexer,this._sessionId,e),this._sessionId=e;for(let t of this._docs.values())t.setSessionId(e)}stream(e){let r=this._streams.get(e);return r||(r=new S(e,this._transport),this._streams.set(e,r)),r}doc(e){let r=this._docs.get(e);return r||(r=new f(e,this._sessionId,this._multiplexer),this._docs.set(e,r)),r}disconnect(){for(let e of this._streams.values())e.dispose();this._streams.clear(),this._transport.disconnect()}};var U="session-api.prod.cloud.urun.sh",L=["https://session-api.use2.prod.cloud.urun.sh","https://session-api.usw2.prod.cloud.urun.sh"];function $(n){return n.trim().replace(/\/+$/,"")}function j(n,e){let r=[],t=s=>{if(!s)return;let o=$(s);o&&!r.includes(o)&&r.push(o)};t(n);for(let s of e??[])t(s);for(let s of K(n))t(s);return r}var N=120;async function x(n){let e=j(n.baseUrl,n.fallbackUrls),r=null;for(let t of e)try{return await B(t,n)}catch(s){r=s instanceof Error?s:new Error(String(s))}throw r??new Error("[urun] session allocation failed")}async function B(n,e){let r;for(let t=0;t<N;t++){let s=r?await fetch(`${n}/api/session-requests/${encodeURIComponent(r)}`,{headers:R(e)}):await fetch(`${n}/api/sessions/create`,{method:"POST",headers:{...R(e),"Content-Type":"application/json","Idempotency-Key":e.idempotencyKey},body:JSON.stringify(D(e))}),o=await G(s);if(s.ok&&(o.status==="allocated"||!o.status&&!!o.session_id)&&!!o.session_id){let i=o.session_id;if(!o.ws_url)throw new Error(`[urun] gateway allocated session ${i} without ws_url`);return{baseUrl:n,sessionId:i,wsUrl:o.ws_url,response:o}}if(s.status===202||o.status==="pending"||o.status==="queued"||o.queued){if(r=o.request_id||r,!r)throw new Error("[urun] gateway queued session without request_id");await F(q(s,o));continue}let l=o.error_message||o.error_code||`HTTP ${s.status}`;throw new Error(`[urun] session allocation failed at ${n}: ${l}`)}throw new Error(`[urun] timed out waiting for session allocation at ${n}`)}function R(n){let e={"X-Tenant-Id":n.orgId,"X-Auth-Provider":n.authProvider||"default","X-User-Id":"anonymous"};return n.jwt&&(e.Authorization=`Bearer ${n.jwt}`),e}function D(n){let e=Number(n.args?.gpus??1),r={app:n.app,function:n.functionName,gpus:Number.isFinite(e)&&e>0?e:1,idempotency_key:n.idempotencyKey},t=n.args?.preferred_zone;return typeof t=="string"&&t&&(r.preferred_zone=t),r}async function G(n){try{let e=await n.json();return e&&typeof e=="object"?e:{}}catch{return{}}}function q(n,e){let r=Number(n.headers.get("Retry-After")||""),t=Number(e.retry_after_seconds??r);return Number.isFinite(t)&&t>0?Math.min(t*1e3,1e4):1e3}function F(n){return new Promise(e=>setTimeout(e,n))}function K(n){try{return new URL(n).hostname!==U?[]:L}catch{return[]}}var W=new Set(["then","catch","finally","toJSON",Symbol.toPrimitive]);function z(n,e){return new Proxy({},{get(r,t){if(!(W.has(t)||typeof t!="string"))return s=>{let o=s??{},a=`s_${Date.now()}_${Math.random().toString(36).slice(2)}`,l=new I,i=new E({url:"",orgId:e.orgId,jwt:e.jwt,authProvider:e.authProvider,sessionId:a}),p=new m(a,l,i);return(async()=>{let u=await x({baseUrl:e.baseUrl,fallbackUrls:e.fallbackUrls,app:n,functionName:t,args:o,orgId:e.orgId,jwt:e.jwt,authProvider:e.authProvider,idempotencyKey:a});p.setSessionId(u.sessionId),i.setConnection({url:u.wsUrl,sessionId:u.sessionId}),await i.connect({app:n,functionName:t,args:o}),i.multiplexer&&l.setTarget(i.multiplexer)})().catch(u=>{console.error(`[urun] Failed to connect session for ${t}:`,u)}),p}}})}var T=3e4,M="stream:",y=class{_ws;_multiplexer;_pendingRpc=new Map;_rpcId=0;constructor(e,r){this._ws=e,this._multiplexer=r,this._ws.addEventListener("message",t=>{let s;try{s=JSON.parse(typeof t.data=="string"?t.data:"")}catch{return}if(s.rpcId&&this._pendingRpc.has(s.rpcId)){let o=this._pendingRpc.get(s.rpcId);this._pendingRpc.delete(s.rpcId),clearTimeout(o.timer),s.error?o.reject(new Error(s.error)):o.resolve(s.result)}})}async get(e){return this._sendRpc("store.get",{key:e})}async has(e){return await this._sendRpc("store.has",{key:e})}on(e,r){let t=`${M}${e}`;return this._multiplexer.on(t,s=>{r(s)})}emit(e,r){let t=`${M}${e}`,s=typeof r=="object"&&r!==null&&!Array.isArray(r)?r:{data:r};this._multiplexer.emit(t,s)}_getInternals(){return{multiplexer:this._multiplexer,ws:this._ws}}_sendRpc(e,r){return new Promise((t,s)=>{if(!this._ws||this._ws.readyState!==WebSocket.OPEN){s(new Error("WebSocket not open"));return}let o=String(++this._rpcId),a=setTimeout(()=>{this._pendingRpc.has(o)&&(this._pendingRpc.delete(o),s(new Error(`RPC request "${e}" timed out after ${T}ms`)))},T);this._pendingRpc.set(o,{resolve:t,reject:s,timer:a}),this._ws.send(JSON.stringify({rpcId:o,type:e,...r}))})}};function H(n){let t=`${n.baseUrl.replace(/\/$/,"").replace(/^http/,"ws")}/store/${encodeURIComponent(n.orgId)}`,s=new WebSocket(t);(n.jwt||n.apiKey)&&s.addEventListener("open",()=>{s.send(JSON.stringify({type:"auth",orgId:n.orgId,jwt:n.jwt,authProvider:n.authProvider,apiKey:n.apiKey}))});let o=new b(s);return new y(s,o)}var J='video/mp4; codecs="avc1.42E01E"';function V(n,e){let r=e?.codec??J,t=document.createElement("video");t.muted=!0,t.playsInline=!0;let s=new MediaSource,o=URL.createObjectURL(s);t.src=o,s.addEventListener("sourceopen",()=>{let c;try{c=s.addSourceBuffer(r)}catch(d){throw d instanceof DOMException&&d.name==="NotSupportedError"?new Error(`Codec not supported: "${r}". Ensure the codec string matches the fMP4 container format. Common values: video/mp4; codecs="avc1.42E01E" (H.264 Baseline), video/mp4; codecs="avc1.4D401F" (H.264 Main).`):d}let P=n.getReader();function _(){return c.updating?new Promise(d=>{c.addEventListener("updateend",()=>d(),{once:!0})}):Promise.resolve()}async function A(){try{for(;;){let{done:d,value:k}=await P.read();if(d){await _(),s.readyState==="open"&&s.endOfStream();return}await _();try{c.appendBuffer(k)}catch(h){if(h instanceof DOMException&&h.name==="QuotaExceededError"){let g=c.buffered;if(g.length>0){let O=g.start(g.length-1);c.remove(0,O),await _(),c.appendBuffer(k)}else throw h}else throw h}}}catch{if(s.readyState==="open")try{s.endOfStream("decode")}catch{}}}A()}),t.play().catch(()=>{});let a=t,l=a.captureStream??a.mozCaptureStream;if(!l)throw new Error("captureStream() is not supported in this browser. videoStream() requires HTMLMediaElement.captureStream() support.");let i=l.call(t),p=i.getTracks(),u=0,v=p.length;if(v===0)t.addEventListener("emptied",()=>{URL.revokeObjectURL(o)},{once:!0});else for(let c of p)c.addEventListener("ended",()=>{u++,u>=v&&URL.revokeObjectURL(o)});return i}export{z as App,m as Session,H as createStore,V as videoStream};
@@ -168,7 +168,11 @@ interface App {
168
168
  [fnName: string]: (args?: Record<string, unknown>) => Session;
169
169
  }
170
170
 
171
- declare class ChannelMultiplexer {
171
+ interface ChannelEndpoint {
172
+ on(channel: string, handler: (data: ChannelMessage) => void): () => void;
173
+ emit(channel: string, data: Record<string, unknown>): void;
174
+ }
175
+ declare class ChannelMultiplexer implements ChannelEndpoint {
172
176
  private _handlers;
173
177
  private _ws;
174
178
  private _onMessage;
@@ -236,6 +240,7 @@ declare class TransportSession {
236
240
  getTrackByName(name: string): MediaStreamTrack | undefined;
237
241
  setAuth(options: Pick<TransportSessionOptions, 'orgId' | 'jwt' | 'authProvider'>): void;
238
242
  constructor(options?: TransportSessionOptions);
243
+ setConnection(options: Pick<TransportSessionOptions, 'url' | 'fallbackUrls' | 'sessionId'>): void;
239
244
  connect(startOptions?: SessionStartOptions): Promise<void>;
240
245
  disconnect(): void;
241
246
  on<E extends keyof TransportEvents>(event: E, handler: TransportEvents[E]): () => void;
@@ -259,4 +264,4 @@ declare class TransportSession {
259
264
  private _setState;
260
265
  }
261
266
 
262
- export { type App as A, type ChannelMessage as C, type Layer as L, type SceneContext as S, TransportSession as T, type AppOptions as a, ChannelMultiplexer as b, type ChannelName as c, type LayoutConfig as d, type LayoutContext as e, type SceneGraph as f, type Session as g, type SessionDocument as h, type SessionStartOptions as i, type SessionStream as j, type Store as k, type StoreOptions as l, type TransportSessionOptions as m, type TransportState as n };
267
+ export { type App as A, type ChannelEndpoint as C, type Layer as L, type SceneContext as S, TransportSession as T, type AppOptions as a, type ChannelMessage as b, ChannelMultiplexer as c, type ChannelName as d, type LayoutConfig as e, type LayoutContext as f, type SceneGraph as g, type Session as h, type SessionDocument as i, type SessionStartOptions as j, type SessionStream as k, type Store as l, type StoreOptions as m, type TransportSessionOptions as n, type TransportState as o };
@@ -168,7 +168,11 @@ interface App {
168
168
  [fnName: string]: (args?: Record<string, unknown>) => Session;
169
169
  }
170
170
 
171
- declare class ChannelMultiplexer {
171
+ interface ChannelEndpoint {
172
+ on(channel: string, handler: (data: ChannelMessage) => void): () => void;
173
+ emit(channel: string, data: Record<string, unknown>): void;
174
+ }
175
+ declare class ChannelMultiplexer implements ChannelEndpoint {
172
176
  private _handlers;
173
177
  private _ws;
174
178
  private _onMessage;
@@ -236,6 +240,7 @@ declare class TransportSession {
236
240
  getTrackByName(name: string): MediaStreamTrack | undefined;
237
241
  setAuth(options: Pick<TransportSessionOptions, 'orgId' | 'jwt' | 'authProvider'>): void;
238
242
  constructor(options?: TransportSessionOptions);
243
+ setConnection(options: Pick<TransportSessionOptions, 'url' | 'fallbackUrls' | 'sessionId'>): void;
239
244
  connect(startOptions?: SessionStartOptions): Promise<void>;
240
245
  disconnect(): void;
241
246
  on<E extends keyof TransportEvents>(event: E, handler: TransportEvents[E]): () => void;
@@ -259,4 +264,4 @@ declare class TransportSession {
259
264
  private _setState;
260
265
  }
261
266
 
262
- export { type App as A, type ChannelMessage as C, type Layer as L, type SceneContext as S, TransportSession as T, type AppOptions as a, ChannelMultiplexer as b, type ChannelName as c, type LayoutConfig as d, type LayoutContext as e, type SceneGraph as f, type Session as g, type SessionDocument as h, type SessionStartOptions as i, type SessionStream as j, type Store as k, type StoreOptions as l, type TransportSessionOptions as m, type TransportState as n };
267
+ export { type App as A, type ChannelEndpoint as C, type Layer as L, type SceneContext as S, TransportSession as T, type AppOptions as a, type ChannelMessage as b, ChannelMultiplexer as c, type ChannelName as d, type LayoutConfig as e, type LayoutContext as f, type SceneGraph as g, type Session as h, type SessionDocument as i, type SessionStartOptions as j, type SessionStream as k, type Store as l, type StoreOptions as m, type TransportSessionOptions as n, type TransportState as o };
@@ -1 +1 @@
1
- export { C as ChannelMessage, b as ChannelMultiplexer, c as ChannelName, i as SessionStartOptions, T as TransportSession, m as TransportSessionOptions } from './internal-BVUaf1Cq.mjs';
1
+ export { b as ChannelMessage, c as ChannelMultiplexer, d as ChannelName, j as SessionStartOptions, T as TransportSession, n as TransportSessionOptions } from './internal-BzuKp0r0.mjs';
@@ -1 +1 @@
1
- export { C as ChannelMessage, b as ChannelMultiplexer, c as ChannelName, i as SessionStartOptions, T as TransportSession, m as TransportSessionOptions } from './internal-BVUaf1Cq.js';
1
+ export { b as ChannelMessage, c as ChannelMultiplexer, d as ChannelName, j as SessionStartOptions, T as TransportSession, n as TransportSessionOptions } from './internal-BzuKp0r0.js';