@urun-sh/core 0.4.3 → 0.5.1
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/CHANGELOG.md +46 -1
- package/dist/{chunk-ZDP4CEYV.mjs → chunk-DEL3BEYT.mjs} +2 -2
- package/dist/{chunk-SBNQYRRW.mjs → chunk-NTMFUGAJ.mjs} +5 -5
- package/dist/index.browser.d.mts +15 -5
- package/dist/index.browser.d.ts +15 -5
- package/dist/index.browser.js +2 -2
- package/dist/index.browser.mjs +1 -1
- package/dist/index.d.mts +15 -5
- package/dist/index.d.ts +15 -5
- package/dist/index.js +5 -5
- package/dist/index.mjs +1 -1
- package/dist/internal.browser.d.mts +1 -1
- package/dist/internal.browser.d.ts +1 -1
- package/dist/internal.browser.js +2 -2
- package/dist/internal.browser.mjs +1 -1
- package/dist/internal.d.mts +1 -1
- package/dist/internal.d.ts +1 -1
- package/dist/internal.js +1 -1
- package/dist/internal.mjs +1 -1
- package/dist/{stream-data-LLN1glOn.d.mts → stream-data-DR_uxiuv.d.mts} +15 -4
- package/dist/{stream-data-LLN1glOn.d.ts → stream-data-DR_uxiuv.d.ts} +15 -4
- package/package.json +1 -1
package/dist/internal.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{
|
|
2
|
+
import{H as r,N as t,O as n,P as a,Q as s,V as p,W as c,X as l,a as e,aa as m,b as o,ba as i,ca as S,da as f,ea as x,fa as C,ga as D}from"./chunk-NTMFUGAJ.mjs";export{e as ChannelMultiplexer,i as DOC_SYNC_WIRE_CONTRACT_VERSION,o as DeferredChannelMultiplexer,x as DeferredDocConnector,p as LoopbackStreamData,C as SessionDocumentImpl,m as TransportSession,r as allocateSession,D as createPresence,f as createWebsocketDocConnector,S as deriveYjsServerUrl,s as ensureNodeWebRTC,t as isNodeRuntime,n as nodeMediasoupHandlerName,a as nodeWebRTCUnavailableReason,l as streamDataLabel,c as transportStreamData};
|
|
@@ -463,9 +463,11 @@ interface RequestStreamOptions {
|
|
|
463
463
|
}
|
|
464
464
|
|
|
465
465
|
type SessionEndResult = {
|
|
466
|
-
status: '
|
|
467
|
-
|
|
468
|
-
|
|
466
|
+
status: 'paused';
|
|
467
|
+
|
|
468
|
+
sessionId: string;
|
|
469
|
+
|
|
470
|
+
reason: string;
|
|
469
471
|
} | {
|
|
470
472
|
status: 'canceled';
|
|
471
473
|
requestId: string;
|
|
@@ -523,6 +525,8 @@ interface Session {
|
|
|
523
525
|
|
|
524
526
|
end(): Promise<SessionEndResult>;
|
|
525
527
|
|
|
528
|
+
cancel(): Promise<SessionEndResult>;
|
|
529
|
+
|
|
526
530
|
detach(): void;
|
|
527
531
|
|
|
528
532
|
disconnect(): void;
|
|
@@ -678,6 +682,8 @@ interface App {
|
|
|
678
682
|
|
|
679
683
|
type SessionGatewayStatus = 'allocated' | 'pending' | 'queued' | 'rejected' | 'failed' | 'canceled'
|
|
680
684
|
|
|
685
|
+
| 'paused'
|
|
686
|
+
|
|
681
687
|
| 'redirect'
|
|
682
688
|
|
|
683
689
|
| 'waiting_for_capacity'
|
|
@@ -757,9 +763,11 @@ interface AllocateSessionOptions {
|
|
|
757
763
|
|
|
758
764
|
onAdmission?: (update: AdmissionUpdate) => void;
|
|
759
765
|
|
|
766
|
+
|
|
760
767
|
onRequest?: (handle: {
|
|
761
768
|
requestId: string;
|
|
762
769
|
baseUrl: string;
|
|
770
|
+
sessionId?: string;
|
|
763
771
|
}) => void;
|
|
764
772
|
|
|
765
773
|
sessionKey?: string;
|
|
@@ -783,6 +791,8 @@ interface AllocatedSession {
|
|
|
783
791
|
interface ReleaseSessionBeaconOptions {
|
|
784
792
|
baseUrl: string;
|
|
785
793
|
requestId: string;
|
|
794
|
+
|
|
795
|
+
sessionId?: string;
|
|
786
796
|
orgId: string;
|
|
787
797
|
|
|
788
798
|
jwt?: string;
|
|
@@ -1412,7 +1422,8 @@ declare class TransportSession {
|
|
|
1412
1422
|
connect(startOptions?: SessionStartOptions): Promise<void>;
|
|
1413
1423
|
|
|
1414
1424
|
leaveLeg(): boolean;
|
|
1415
|
-
|
|
1425
|
+
|
|
1426
|
+
disconnect(reason?: string): void;
|
|
1416
1427
|
on<E extends keyof TransportEvents>(event: E, handler: TransportEvents[E]): () => void;
|
|
1417
1428
|
|
|
1418
1429
|
private _emitDiagnostic;
|
|
@@ -463,9 +463,11 @@ interface RequestStreamOptions {
|
|
|
463
463
|
}
|
|
464
464
|
|
|
465
465
|
type SessionEndResult = {
|
|
466
|
-
status: '
|
|
467
|
-
|
|
468
|
-
|
|
466
|
+
status: 'paused';
|
|
467
|
+
|
|
468
|
+
sessionId: string;
|
|
469
|
+
|
|
470
|
+
reason: string;
|
|
469
471
|
} | {
|
|
470
472
|
status: 'canceled';
|
|
471
473
|
requestId: string;
|
|
@@ -523,6 +525,8 @@ interface Session {
|
|
|
523
525
|
|
|
524
526
|
end(): Promise<SessionEndResult>;
|
|
525
527
|
|
|
528
|
+
cancel(): Promise<SessionEndResult>;
|
|
529
|
+
|
|
526
530
|
detach(): void;
|
|
527
531
|
|
|
528
532
|
disconnect(): void;
|
|
@@ -678,6 +682,8 @@ interface App {
|
|
|
678
682
|
|
|
679
683
|
type SessionGatewayStatus = 'allocated' | 'pending' | 'queued' | 'rejected' | 'failed' | 'canceled'
|
|
680
684
|
|
|
685
|
+
| 'paused'
|
|
686
|
+
|
|
681
687
|
| 'redirect'
|
|
682
688
|
|
|
683
689
|
| 'waiting_for_capacity'
|
|
@@ -757,9 +763,11 @@ interface AllocateSessionOptions {
|
|
|
757
763
|
|
|
758
764
|
onAdmission?: (update: AdmissionUpdate) => void;
|
|
759
765
|
|
|
766
|
+
|
|
760
767
|
onRequest?: (handle: {
|
|
761
768
|
requestId: string;
|
|
762
769
|
baseUrl: string;
|
|
770
|
+
sessionId?: string;
|
|
763
771
|
}) => void;
|
|
764
772
|
|
|
765
773
|
sessionKey?: string;
|
|
@@ -783,6 +791,8 @@ interface AllocatedSession {
|
|
|
783
791
|
interface ReleaseSessionBeaconOptions {
|
|
784
792
|
baseUrl: string;
|
|
785
793
|
requestId: string;
|
|
794
|
+
|
|
795
|
+
sessionId?: string;
|
|
786
796
|
orgId: string;
|
|
787
797
|
|
|
788
798
|
jwt?: string;
|
|
@@ -1412,7 +1422,8 @@ declare class TransportSession {
|
|
|
1412
1422
|
connect(startOptions?: SessionStartOptions): Promise<void>;
|
|
1413
1423
|
|
|
1414
1424
|
leaveLeg(): boolean;
|
|
1415
|
-
|
|
1425
|
+
|
|
1426
|
+
disconnect(reason?: string): void;
|
|
1416
1427
|
on<E extends keyof TransportEvents>(event: E, handler: TransportEvents[E]): () => void;
|
|
1417
1428
|
|
|
1418
1429
|
private _emitDiagnostic;
|