@borealise/pipeline 2026.6.16-beta.0 → 2026.6.16-beta.2

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
@@ -44,9 +44,11 @@ interface WtSeekPayload {
44
44
  }
45
45
  interface WtPausePayload {
46
46
  room_slug: string;
47
+ position: number;
47
48
  }
48
49
  interface WtResumePayload {
49
50
  room_slug: string;
51
+ position: number;
50
52
  }
51
53
  interface WtStateRequestPayload {
52
54
  room_slug: string;
@@ -57,6 +59,10 @@ interface WtStateResponsePayload {
57
59
  paused: boolean;
58
60
  position: number;
59
61
  }
62
+ interface WtHeartbeatPayload {
63
+ room_slug: string;
64
+ position: number;
65
+ }
60
66
  interface HelloPayload {
61
67
  heartbeat_interval: number;
62
68
  session_id: string;
@@ -181,9 +187,10 @@ declare class PipelineClient {
181
187
  unsubscribe(events: EventCode[]): void;
182
188
  sendChatMessage(roomSlug: string, content: string): boolean;
183
189
  sendWtSeek(roomSlug: string, position: number): void;
184
- sendWtPause(roomSlug: string): void;
185
- sendWtResume(roomSlug: string): void;
190
+ sendWtPause(roomSlug: string, position: number): void;
191
+ sendWtResume(roomSlug: string, position: number): void;
186
192
  sendWtStateRequest(roomSlug: string): void;
193
+ sendWtHeartbeat(roomSlug: string, position: number): void;
187
194
  sendWtStateResponse(roomSlug: string, targetSessionId: string, paused: boolean, position: number): void;
188
195
  on<T = unknown>(event: EventCode, listener: EventListener<T>): () => void;
189
196
  off<T = unknown>(event: EventCode, listener: EventListener<T>): void;
@@ -211,4 +218,4 @@ declare class PipelineClient {
211
218
  }
212
219
  declare function createPipeline(options: PipelineClientOptions): PipelineClient;
213
220
 
214
- export { type ChatSendPayload, type ConnectionState, type DispatchHandler, type ErrorPayload, type EventListener, type HeartbeatPayload, type HelloPayload, type IdentifyPayload, type InvalidSessionPayload, PipelineClient, type PipelineClientOptions, type PipelineEvents, type PipelineMessage, type PresenceUpdatePayload, type ReadyPayload, type RoomChatDeleteEvent, type RoomChatMessageEvent, type RoomChatUpdateEvent, type SubscribePayload, type UnsubscribePayload, type WtPausePayload, type WtResumePayload, type WtSeekPayload, type WtStateRequestPayload, type WtStateResponsePayload, createPipeline };
221
+ export { type ChatSendPayload, type ConnectionState, type DispatchHandler, type ErrorPayload, type EventListener, type HeartbeatPayload, type HelloPayload, type IdentifyPayload, type InvalidSessionPayload, PipelineClient, type PipelineClientOptions, type PipelineEvents, type PipelineMessage, type PresenceUpdatePayload, type ReadyPayload, type RoomChatDeleteEvent, type RoomChatMessageEvent, type RoomChatUpdateEvent, type SubscribePayload, type UnsubscribePayload, type WtHeartbeatPayload, type WtPausePayload, type WtResumePayload, type WtSeekPayload, type WtStateRequestPayload, type WtStateResponsePayload, createPipeline };
package/dist/index.d.ts CHANGED
@@ -44,9 +44,11 @@ interface WtSeekPayload {
44
44
  }
45
45
  interface WtPausePayload {
46
46
  room_slug: string;
47
+ position: number;
47
48
  }
48
49
  interface WtResumePayload {
49
50
  room_slug: string;
51
+ position: number;
50
52
  }
51
53
  interface WtStateRequestPayload {
52
54
  room_slug: string;
@@ -57,6 +59,10 @@ interface WtStateResponsePayload {
57
59
  paused: boolean;
58
60
  position: number;
59
61
  }
62
+ interface WtHeartbeatPayload {
63
+ room_slug: string;
64
+ position: number;
65
+ }
60
66
  interface HelloPayload {
61
67
  heartbeat_interval: number;
62
68
  session_id: string;
@@ -181,9 +187,10 @@ declare class PipelineClient {
181
187
  unsubscribe(events: EventCode[]): void;
182
188
  sendChatMessage(roomSlug: string, content: string): boolean;
183
189
  sendWtSeek(roomSlug: string, position: number): void;
184
- sendWtPause(roomSlug: string): void;
185
- sendWtResume(roomSlug: string): void;
190
+ sendWtPause(roomSlug: string, position: number): void;
191
+ sendWtResume(roomSlug: string, position: number): void;
186
192
  sendWtStateRequest(roomSlug: string): void;
193
+ sendWtHeartbeat(roomSlug: string, position: number): void;
187
194
  sendWtStateResponse(roomSlug: string, targetSessionId: string, paused: boolean, position: number): void;
188
195
  on<T = unknown>(event: EventCode, listener: EventListener<T>): () => void;
189
196
  off<T = unknown>(event: EventCode, listener: EventListener<T>): void;
@@ -211,4 +218,4 @@ declare class PipelineClient {
211
218
  }
212
219
  declare function createPipeline(options: PipelineClientOptions): PipelineClient;
213
220
 
214
- export { type ChatSendPayload, type ConnectionState, type DispatchHandler, type ErrorPayload, type EventListener, type HeartbeatPayload, type HelloPayload, type IdentifyPayload, type InvalidSessionPayload, PipelineClient, type PipelineClientOptions, type PipelineEvents, type PipelineMessage, type PresenceUpdatePayload, type ReadyPayload, type RoomChatDeleteEvent, type RoomChatMessageEvent, type RoomChatUpdateEvent, type SubscribePayload, type UnsubscribePayload, type WtPausePayload, type WtResumePayload, type WtSeekPayload, type WtStateRequestPayload, type WtStateResponsePayload, createPipeline };
221
+ export { type ChatSendPayload, type ConnectionState, type DispatchHandler, type ErrorPayload, type EventListener, type HeartbeatPayload, type HelloPayload, type IdentifyPayload, type InvalidSessionPayload, PipelineClient, type PipelineClientOptions, type PipelineEvents, type PipelineMessage, type PresenceUpdatePayload, type ReadyPayload, type RoomChatDeleteEvent, type RoomChatMessageEvent, type RoomChatUpdateEvent, type SubscribePayload, type UnsubscribePayload, type WtHeartbeatPayload, type WtPausePayload, type WtResumePayload, type WtSeekPayload, type WtStateRequestPayload, type WtStateResponsePayload, createPipeline };
package/dist/index.js CHANGED
@@ -172,18 +172,22 @@ var _PipelineClient = class _PipelineClient {
172
172
  if (!this.isIdentified) return;
173
173
  this.send(import_shared.Opcodes.WT_SEEK, { room_slug: roomSlug, position });
174
174
  }
175
- sendWtPause(roomSlug) {
175
+ sendWtPause(roomSlug, position) {
176
176
  if (!this.isIdentified) return;
177
- this.send(import_shared.Opcodes.WT_PAUSE, { room_slug: roomSlug });
177
+ this.send(import_shared.Opcodes.WT_PAUSE, { room_slug: roomSlug, position });
178
178
  }
179
- sendWtResume(roomSlug) {
179
+ sendWtResume(roomSlug, position) {
180
180
  if (!this.isIdentified) return;
181
- this.send(import_shared.Opcodes.WT_RESUME, { room_slug: roomSlug });
181
+ this.send(import_shared.Opcodes.WT_RESUME, { room_slug: roomSlug, position });
182
182
  }
183
183
  sendWtStateRequest(roomSlug) {
184
184
  if (!this.isIdentified) return;
185
185
  this.send(import_shared.Opcodes.WT_STATE_REQUEST, { room_slug: roomSlug });
186
186
  }
187
+ sendWtHeartbeat(roomSlug, position) {
188
+ if (!this.isIdentified) return;
189
+ this.send(import_shared.Opcodes.WT_HEARTBEAT, { room_slug: roomSlug, position });
190
+ }
187
191
  sendWtStateResponse(roomSlug, targetSessionId, paused, position) {
188
192
  if (!this.isIdentified) return;
189
193
  this.send(import_shared.Opcodes.WT_STATE_RESPONSE, {
package/dist/index.mjs CHANGED
@@ -147,18 +147,22 @@ var _PipelineClient = class _PipelineClient {
147
147
  if (!this.isIdentified) return;
148
148
  this.send(Opcodes.WT_SEEK, { room_slug: roomSlug, position });
149
149
  }
150
- sendWtPause(roomSlug) {
150
+ sendWtPause(roomSlug, position) {
151
151
  if (!this.isIdentified) return;
152
- this.send(Opcodes.WT_PAUSE, { room_slug: roomSlug });
152
+ this.send(Opcodes.WT_PAUSE, { room_slug: roomSlug, position });
153
153
  }
154
- sendWtResume(roomSlug) {
154
+ sendWtResume(roomSlug, position) {
155
155
  if (!this.isIdentified) return;
156
- this.send(Opcodes.WT_RESUME, { room_slug: roomSlug });
156
+ this.send(Opcodes.WT_RESUME, { room_slug: roomSlug, position });
157
157
  }
158
158
  sendWtStateRequest(roomSlug) {
159
159
  if (!this.isIdentified) return;
160
160
  this.send(Opcodes.WT_STATE_REQUEST, { room_slug: roomSlug });
161
161
  }
162
+ sendWtHeartbeat(roomSlug, position) {
163
+ if (!this.isIdentified) return;
164
+ this.send(Opcodes.WT_HEARTBEAT, { room_slug: roomSlug, position });
165
+ }
162
166
  sendWtStateResponse(roomSlug, targetSessionId, paused, position) {
163
167
  if (!this.isIdentified) return;
164
168
  this.send(Opcodes.WT_STATE_RESPONSE, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@borealise/pipeline",
3
- "version": "2026.6.16-beta.0",
3
+ "version": "2026.6.16-beta.2",
4
4
  "description": "Official realtime pipeline client for Borealise",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",