@borealise/pipeline 1.0.0-alpha.6 → 2026.6.16-beta.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/dist/index.d.mts CHANGED
@@ -38,6 +38,27 @@ interface ChatSendPayload {
38
38
  room_slug: string;
39
39
  content: string;
40
40
  }
41
+ interface WtSeekPayload {
42
+ room_slug: string;
43
+ position: number;
44
+ }
45
+ interface WtPausePayload {
46
+ room_slug: string;
47
+ position: number;
48
+ }
49
+ interface WtResumePayload {
50
+ room_slug: string;
51
+ position: number;
52
+ }
53
+ interface WtStateRequestPayload {
54
+ room_slug: string;
55
+ }
56
+ interface WtStateResponsePayload {
57
+ room_slug: string;
58
+ target_session_id: string;
59
+ paused: boolean;
60
+ position: number;
61
+ }
41
62
  interface HelloPayload {
42
63
  heartbeat_interval: number;
43
64
  session_id: string;
@@ -161,6 +182,11 @@ declare class PipelineClient {
161
182
  subscribe(events: EventCode[]): void;
162
183
  unsubscribe(events: EventCode[]): void;
163
184
  sendChatMessage(roomSlug: string, content: string): boolean;
185
+ sendWtSeek(roomSlug: string, position: number): void;
186
+ sendWtPause(roomSlug: string, position: number): void;
187
+ sendWtResume(roomSlug: string, position: number): void;
188
+ sendWtStateRequest(roomSlug: string): void;
189
+ sendWtStateResponse(roomSlug: string, targetSessionId: string, paused: boolean, position: number): void;
164
190
  on<T = unknown>(event: EventCode, listener: EventListener<T>): () => void;
165
191
  off<T = unknown>(event: EventCode, listener: EventListener<T>): void;
166
192
  onConnection<K extends keyof PipelineEvents>(event: K, listener: PipelineEvents[K]): () => void;
@@ -187,4 +213,4 @@ declare class PipelineClient {
187
213
  }
188
214
  declare function createPipeline(options: PipelineClientOptions): PipelineClient;
189
215
 
190
- 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, createPipeline };
216
+ 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 };
package/dist/index.d.ts CHANGED
@@ -38,6 +38,27 @@ interface ChatSendPayload {
38
38
  room_slug: string;
39
39
  content: string;
40
40
  }
41
+ interface WtSeekPayload {
42
+ room_slug: string;
43
+ position: number;
44
+ }
45
+ interface WtPausePayload {
46
+ room_slug: string;
47
+ position: number;
48
+ }
49
+ interface WtResumePayload {
50
+ room_slug: string;
51
+ position: number;
52
+ }
53
+ interface WtStateRequestPayload {
54
+ room_slug: string;
55
+ }
56
+ interface WtStateResponsePayload {
57
+ room_slug: string;
58
+ target_session_id: string;
59
+ paused: boolean;
60
+ position: number;
61
+ }
41
62
  interface HelloPayload {
42
63
  heartbeat_interval: number;
43
64
  session_id: string;
@@ -161,6 +182,11 @@ declare class PipelineClient {
161
182
  subscribe(events: EventCode[]): void;
162
183
  unsubscribe(events: EventCode[]): void;
163
184
  sendChatMessage(roomSlug: string, content: string): boolean;
185
+ sendWtSeek(roomSlug: string, position: number): void;
186
+ sendWtPause(roomSlug: string, position: number): void;
187
+ sendWtResume(roomSlug: string, position: number): void;
188
+ sendWtStateRequest(roomSlug: string): void;
189
+ sendWtStateResponse(roomSlug: string, targetSessionId: string, paused: boolean, position: number): void;
164
190
  on<T = unknown>(event: EventCode, listener: EventListener<T>): () => void;
165
191
  off<T = unknown>(event: EventCode, listener: EventListener<T>): void;
166
192
  onConnection<K extends keyof PipelineEvents>(event: K, listener: PipelineEvents[K]): () => void;
@@ -187,4 +213,4 @@ declare class PipelineClient {
187
213
  }
188
214
  declare function createPipeline(options: PipelineClientOptions): PipelineClient;
189
215
 
190
- 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, createPipeline };
216
+ 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 };
package/dist/index.js CHANGED
@@ -168,6 +168,31 @@ var _PipelineClient = class _PipelineClient {
168
168
  });
169
169
  return true;
170
170
  }
171
+ sendWtSeek(roomSlug, position) {
172
+ if (!this.isIdentified) return;
173
+ this.send(import_shared.Opcodes.WT_SEEK, { room_slug: roomSlug, position });
174
+ }
175
+ sendWtPause(roomSlug, position) {
176
+ if (!this.isIdentified) return;
177
+ this.send(import_shared.Opcodes.WT_PAUSE, { room_slug: roomSlug, position });
178
+ }
179
+ sendWtResume(roomSlug, position) {
180
+ if (!this.isIdentified) return;
181
+ this.send(import_shared.Opcodes.WT_RESUME, { room_slug: roomSlug, position });
182
+ }
183
+ sendWtStateRequest(roomSlug) {
184
+ if (!this.isIdentified) return;
185
+ this.send(import_shared.Opcodes.WT_STATE_REQUEST, { room_slug: roomSlug });
186
+ }
187
+ sendWtStateResponse(roomSlug, targetSessionId, paused, position) {
188
+ if (!this.isIdentified) return;
189
+ this.send(import_shared.Opcodes.WT_STATE_RESPONSE, {
190
+ room_slug: roomSlug,
191
+ target_session_id: targetSessionId,
192
+ paused,
193
+ position
194
+ });
195
+ }
171
196
  on(event, listener) {
172
197
  if (!this.eventListeners.has(event)) {
173
198
  this.eventListeners.set(event, /* @__PURE__ */ new Set());
package/dist/index.mjs CHANGED
@@ -143,6 +143,31 @@ var _PipelineClient = class _PipelineClient {
143
143
  });
144
144
  return true;
145
145
  }
146
+ sendWtSeek(roomSlug, position) {
147
+ if (!this.isIdentified) return;
148
+ this.send(Opcodes.WT_SEEK, { room_slug: roomSlug, position });
149
+ }
150
+ sendWtPause(roomSlug, position) {
151
+ if (!this.isIdentified) return;
152
+ this.send(Opcodes.WT_PAUSE, { room_slug: roomSlug, position });
153
+ }
154
+ sendWtResume(roomSlug, position) {
155
+ if (!this.isIdentified) return;
156
+ this.send(Opcodes.WT_RESUME, { room_slug: roomSlug, position });
157
+ }
158
+ sendWtStateRequest(roomSlug) {
159
+ if (!this.isIdentified) return;
160
+ this.send(Opcodes.WT_STATE_REQUEST, { room_slug: roomSlug });
161
+ }
162
+ sendWtStateResponse(roomSlug, targetSessionId, paused, position) {
163
+ if (!this.isIdentified) return;
164
+ this.send(Opcodes.WT_STATE_RESPONSE, {
165
+ room_slug: roomSlug,
166
+ target_session_id: targetSessionId,
167
+ paused,
168
+ position
169
+ });
170
+ }
146
171
  on(event, listener) {
147
172
  if (!this.eventListeners.has(event)) {
148
173
  this.eventListeners.set(event, /* @__PURE__ */ new Set());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@borealise/pipeline",
3
- "version": "1.0.0-alpha.6",
3
+ "version": "2026.6.16-beta.1",
4
4
  "description": "Official realtime pipeline client for Borealise",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -44,6 +44,6 @@
44
44
  "typescript": "^5.9.2"
45
45
  },
46
46
  "dependencies": {
47
- "@borealise/shared": "^1.0.5"
47
+ "@borealise/shared": "^2026.6.11-beta.1"
48
48
  }
49
- }
49
+ }