@borealise/pipeline 1.0.0-alpha.3 → 1.0.0-alpha.4

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
@@ -48,11 +48,59 @@ interface ReadyPayload {
48
48
  id: number;
49
49
  username: string;
50
50
  display_name: string | null;
51
+ avatar_id: string | null;
51
52
  role: RoleCode;
52
53
  flags: number;
54
+ xp: number;
55
+ level: number;
56
+ subscription_type: string | null;
57
+ subscription_months: number;
53
58
  };
54
59
  resume_url?: string;
55
60
  }
61
+ interface RoomChatMessageEvent {
62
+ room_id: number;
63
+ room_slug: string;
64
+ message_id: string;
65
+ user_id?: number;
66
+ username?: string;
67
+ display_name?: string | null;
68
+ avatar_id?: string | null;
69
+ role?: string;
70
+ global_role?: string | null;
71
+ subscription_type?: string | null;
72
+ subscription_months?: number;
73
+ content: string;
74
+ timestamp: number;
75
+ type?: 'user' | 'system';
76
+ edited_at?: number;
77
+ edited_by?: number;
78
+ }
79
+ interface RoomChatUpdateEvent {
80
+ room_id: number;
81
+ room_slug: string;
82
+ message_id: string;
83
+ user_id?: number;
84
+ username?: string;
85
+ display_name?: string | null;
86
+ avatar_id?: string | null;
87
+ role?: string;
88
+ global_role?: string | null;
89
+ subscription_type?: string | null;
90
+ subscription_months?: number;
91
+ content: string;
92
+ timestamp: number;
93
+ type?: 'user' | 'system';
94
+ edited_at?: number;
95
+ edited_by?: number;
96
+ }
97
+ interface RoomChatDeleteEvent {
98
+ room_id: number;
99
+ room_slug: string;
100
+ message_id: string;
101
+ deleted_by: number;
102
+ deleted_at?: number;
103
+ }
56
104
  interface InvalidSessionPayload {
57
105
  resumable: boolean;
58
106
  code: number;
@@ -139,4 +187,4 @@ declare class PipelineClient {
139
187
  }
140
188
  declare function createPipeline(options: PipelineClientOptions): PipelineClient;
141
189
 
142
- 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 SubscribePayload, type UnsubscribePayload, createPipeline };
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 };
package/dist/index.d.ts CHANGED
@@ -48,11 +48,59 @@ interface ReadyPayload {
48
48
  id: number;
49
49
  username: string;
50
50
  display_name: string | null;
51
+ avatar_id: string | null;
51
52
  role: RoleCode;
52
53
  flags: number;
54
+ xp: number;
55
+ level: number;
56
+ subscription_type: string | null;
57
+ subscription_months: number;
53
58
  };
54
59
  resume_url?: string;
55
60
  }
61
+ interface RoomChatMessageEvent {
62
+ room_id: number;
63
+ room_slug: string;
64
+ message_id: string;
65
+ user_id?: number;
66
+ username?: string;
67
+ display_name?: string | null;
68
+ avatar_id?: string | null;
69
+ role?: string;
70
+ global_role?: string | null;
71
+ subscription_type?: string | null;
72
+ subscription_months?: number;
73
+ content: string;
74
+ timestamp: number;
75
+ type?: 'user' | 'system';
76
+ edited_at?: number;
77
+ edited_by?: number;
78
+ }
79
+ interface RoomChatUpdateEvent {
80
+ room_id: number;
81
+ room_slug: string;
82
+ message_id: string;
83
+ user_id?: number;
84
+ username?: string;
85
+ display_name?: string | null;
86
+ avatar_id?: string | null;
87
+ role?: string;
88
+ global_role?: string | null;
89
+ subscription_type?: string | null;
90
+ subscription_months?: number;
91
+ content: string;
92
+ timestamp: number;
93
+ type?: 'user' | 'system';
94
+ edited_at?: number;
95
+ edited_by?: number;
96
+ }
97
+ interface RoomChatDeleteEvent {
98
+ room_id: number;
99
+ room_slug: string;
100
+ message_id: string;
101
+ deleted_by: number;
102
+ deleted_at?: number;
103
+ }
56
104
  interface InvalidSessionPayload {
57
105
  resumable: boolean;
58
106
  code: number;
@@ -139,4 +187,4 @@ declare class PipelineClient {
139
187
  }
140
188
  declare function createPipeline(options: PipelineClientOptions): PipelineClient;
141
189
 
142
- 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 SubscribePayload, type UnsubscribePayload, createPipeline };
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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@borealise/pipeline",
3
- "version": "1.0.0-alpha.3",
3
+ "version": "1.0.0-alpha.4",
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.3"
47
+ "@borealise/shared": "^1.0.4"
48
48
  }
49
49
  }