@urun-sh/core 0.1.37 → 0.1.38

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.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { a as AppOptions, A as App$1, k as SessionDocument, p as SessionText, j as Session$1, C as ChannelEndpoint, T as TransportSession, b as AttachOptions, l as SessionPhase, o as SessionStream$1, R as RequestOptions, h as RequestStreamOptions, r as StoreOptions, q as Store, d as ChannelMultiplexer } from './internal-B7GoThNN.mjs';
2
- export { L as Layer, f as LayoutConfig, g as LayoutContext, S as SceneContext, i as SceneGraph, m as SessionPhaseName, t as TransportState } from './internal-B7GoThNN.mjs';
1
+ import { a as AppOptions, A as App$1, k as SessionDocument, p as SessionText, j as Session$1, C as ChannelEndpoint, T as TransportSession, b as AttachOptions, l as SessionPhase, o as SessionStream$1, R as RequestOptions, h as RequestStreamOptions, r as StoreOptions, q as Store, d as ChannelMultiplexer } from './internal-CrXsIQMr.mjs';
2
+ export { L as Layer, f as LayoutConfig, g as LayoutContext, S as SceneContext, i as SceneGraph, m as SessionPhaseName, t as TransportState } from './internal-CrXsIQMr.mjs';
3
3
  import * as Y from 'yjs';
4
4
 
5
5
  declare function App(appId: string, options: AppOptions): App$1;
@@ -65,10 +65,29 @@ declare class SessionTextImpl implements SessionText {
65
65
  declare class SessionStream implements SessionStream$1 {
66
66
  private _name;
67
67
  private _transport;
68
+
69
+ private _laneDoc?;
68
70
  private _track;
69
71
  private _handlers;
70
72
  private _unsubscribeTransport;
71
- constructor(_name: string, _transport: TransportSession);
73
+
74
+ private _subscribed;
75
+
76
+ private _messageConsumers;
77
+
78
+ private _laneUnsubs;
79
+
80
+ private _laneSeen;
81
+ private _disposed;
82
+ constructor(_name: string, _transport: TransportSession,
83
+
84
+ _laneDoc?: ((key: string) => SessionDocumentImpl) | undefined);
85
+
86
+ messages(): AsyncIterable<unknown>;
87
+
88
+ private _ensureSubscribed;
89
+
90
+ private _drainLane;
72
91
  get track(): MediaStreamTrack | null;
73
92
  attach(track: MediaStreamTrack): Promise<void>;
74
93
  detach(): Promise<void>;
@@ -102,7 +121,11 @@ declare class Session implements Session$1 {
102
121
 
103
122
  request(payload: unknown, options?: RequestOptions): Promise<unknown>;
104
123
 
124
+ private _consumeResponse;
125
+
105
126
  requestStream(payload: unknown, options?: RequestStreamOptions): AsyncIterable<string>;
127
+
128
+ complete(payload: unknown, options?: RequestStreamOptions): Promise<unknown>;
106
129
  disconnect(): void;
107
130
  }
108
131
 
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { a as AppOptions, A as App$1, k as SessionDocument, p as SessionText, j as Session$1, C as ChannelEndpoint, T as TransportSession, b as AttachOptions, l as SessionPhase, o as SessionStream$1, R as RequestOptions, h as RequestStreamOptions, r as StoreOptions, q as Store, d as ChannelMultiplexer } from './internal-B7GoThNN.js';
2
- export { L as Layer, f as LayoutConfig, g as LayoutContext, S as SceneContext, i as SceneGraph, m as SessionPhaseName, t as TransportState } from './internal-B7GoThNN.js';
1
+ import { a as AppOptions, A as App$1, k as SessionDocument, p as SessionText, j as Session$1, C as ChannelEndpoint, T as TransportSession, b as AttachOptions, l as SessionPhase, o as SessionStream$1, R as RequestOptions, h as RequestStreamOptions, r as StoreOptions, q as Store, d as ChannelMultiplexer } from './internal-CrXsIQMr.js';
2
+ export { L as Layer, f as LayoutConfig, g as LayoutContext, S as SceneContext, i as SceneGraph, m as SessionPhaseName, t as TransportState } from './internal-CrXsIQMr.js';
3
3
  import * as Y from 'yjs';
4
4
 
5
5
  declare function App(appId: string, options: AppOptions): App$1;
@@ -65,10 +65,29 @@ declare class SessionTextImpl implements SessionText {
65
65
  declare class SessionStream implements SessionStream$1 {
66
66
  private _name;
67
67
  private _transport;
68
+
69
+ private _laneDoc?;
68
70
  private _track;
69
71
  private _handlers;
70
72
  private _unsubscribeTransport;
71
- constructor(_name: string, _transport: TransportSession);
73
+
74
+ private _subscribed;
75
+
76
+ private _messageConsumers;
77
+
78
+ private _laneUnsubs;
79
+
80
+ private _laneSeen;
81
+ private _disposed;
82
+ constructor(_name: string, _transport: TransportSession,
83
+
84
+ _laneDoc?: ((key: string) => SessionDocumentImpl) | undefined);
85
+
86
+ messages(): AsyncIterable<unknown>;
87
+
88
+ private _ensureSubscribed;
89
+
90
+ private _drainLane;
72
91
  get track(): MediaStreamTrack | null;
73
92
  attach(track: MediaStreamTrack): Promise<void>;
74
93
  detach(): Promise<void>;
@@ -102,7 +121,11 @@ declare class Session implements Session$1 {
102
121
 
103
122
  request(payload: unknown, options?: RequestOptions): Promise<unknown>;
104
123
 
124
+ private _consumeResponse;
125
+
105
126
  requestStream(payload: unknown, options?: RequestStreamOptions): AsyncIterable<string>;
127
+
128
+ complete(payload: unknown, options?: RequestStreamOptions): Promise<unknown>;
106
129
  disconnect(): void;
107
130
  }
108
131