stream-chat 5.6.0 → 6.2.0
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/README.md +59 -114
- package/dist/browser.es.js +464 -366
- package/dist/browser.es.js.map +1 -1
- package/dist/browser.full-bundle.min.js +1 -1
- package/dist/browser.full-bundle.min.js.map +1 -1
- package/dist/browser.js +464 -366
- package/dist/browser.js.map +1 -1
- package/dist/index.es.js +464 -366
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +464 -366
- package/dist/index.js.map +1 -1
- package/dist/types/channel.d.ts +124 -124
- package/dist/types/channel.d.ts.map +1 -1
- package/dist/types/channel_state.d.ts +41 -41
- package/dist/types/channel_state.d.ts.map +1 -1
- package/dist/types/client.d.ts +190 -163
- package/dist/types/client.d.ts.map +1 -1
- package/dist/types/client_state.d.ts +6 -6
- package/dist/types/client_state.d.ts.map +1 -1
- package/dist/types/connection.d.ts +10 -10
- package/dist/types/connection.d.ts.map +1 -1
- package/dist/types/connection_fallback.d.ts +7 -7
- package/dist/types/connection_fallback.d.ts.map +1 -1
- package/dist/types/insights.d.ts +2 -2
- package/dist/types/token_manager.d.ts +6 -6
- package/dist/types/token_manager.d.ts.map +1 -1
- package/dist/types/types.d.ts +404 -236
- package/dist/types/types.d.ts.map +1 -1
- package/dist/types/utils.d.ts +2 -2
- package/dist/types/utils.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/channel.ts +196 -290
- package/src/channel_state.ts +54 -219
- package/src/client.ts +297 -524
- package/src/client_state.ts +6 -6
- package/src/connection.ts +7 -22
- package/src/connection_fallback.ts +7 -21
- package/src/token_manager.ts +6 -6
- package/src/types.ts +540 -487
- package/src/utils.ts +7 -11
package/dist/types/channel.d.ts
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { ChannelState } from './channel_state';
|
|
3
3
|
import { StreamChat } from './client';
|
|
4
|
-
import { APIResponse, BanUserOptions, ChannelAPIResponse, ChannelData, ChannelUpdateOptions, ChannelMemberAPIResponse, ChannelQueryOptions, ChannelResponse, DeleteChannelAPIResponse, Event, EventAPIResponse, EventHandler, EventTypes, FormatMessageResponse, GetMultipleMessagesAPIResponse, GetReactionsAPIResponse, GetRepliesAPIResponse, InviteOptions,
|
|
4
|
+
import { APIResponse, BanUserOptions, ChannelAPIResponse, ChannelData, ChannelUpdateOptions, ChannelMemberAPIResponse, ChannelQueryOptions, ChannelResponse, DeleteChannelAPIResponse, Event, EventAPIResponse, EventHandler, EventTypes, FormatMessageResponse, GetMultipleMessagesAPIResponse, GetReactionsAPIResponse, GetRepliesAPIResponse, InviteOptions, MarkReadOptions, MemberSort, Message, MessageFilters, MessageResponse, MuteChannelAPIResponse, PartialUpdateChannel, PartialUpdateChannelAPIResponse, QueryMembersOptions, Reaction, ReactionAPIResponse, SearchAPIResponse, SearchOptions, SendMessageAPIResponse, TruncateChannelAPIResponse, TruncateOptions, UpdateChannelAPIResponse, UserFilters, UserResponse, ExtendableGenerics, DefaultGenerics, PinnedMessagePaginationOptions, PinnedMessagesSort, MessagePaginationOptions } from './types';
|
|
5
5
|
import { Role } from './permissions';
|
|
6
6
|
/**
|
|
7
7
|
* Channel - The Channel class manages it's own state.
|
|
8
8
|
*/
|
|
9
|
-
export declare class Channel<
|
|
10
|
-
_client: StreamChat<
|
|
9
|
+
export declare class Channel<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> {
|
|
10
|
+
_client: StreamChat<StreamChatGenerics>;
|
|
11
11
|
type: string;
|
|
12
12
|
id: string | undefined;
|
|
13
|
-
data: ChannelData<
|
|
14
|
-
_data: ChannelData<
|
|
13
|
+
data: ChannelData<StreamChatGenerics> | ChannelResponse<StreamChatGenerics> | undefined;
|
|
14
|
+
_data: ChannelData<StreamChatGenerics> | ChannelResponse<StreamChatGenerics>;
|
|
15
15
|
cid: string;
|
|
16
16
|
listeners: {
|
|
17
|
-
[key: string]: (string | EventHandler<
|
|
17
|
+
[key: string]: (string | EventHandler<StreamChatGenerics>)[];
|
|
18
18
|
};
|
|
19
|
-
state: ChannelState<
|
|
19
|
+
state: ChannelState<StreamChatGenerics>;
|
|
20
20
|
initialized: boolean;
|
|
21
21
|
lastKeyStroke?: Date;
|
|
22
22
|
lastTypingEvent: Date | null;
|
|
@@ -25,89 +25,89 @@ export declare class Channel<AttachmentType extends UR = UR, ChannelType extends
|
|
|
25
25
|
/**
|
|
26
26
|
* constructor - Create a channel
|
|
27
27
|
*
|
|
28
|
-
* @param {StreamChat<
|
|
28
|
+
* @param {StreamChat<StreamChatGenerics>} client the chat client
|
|
29
29
|
* @param {string} type the type of channel
|
|
30
30
|
* @param {string} [id] the id of the chat
|
|
31
|
-
* @param {ChannelData<
|
|
31
|
+
* @param {ChannelData<StreamChatGenerics>} data any additional custom params
|
|
32
32
|
*
|
|
33
|
-
* @return {Channel<
|
|
33
|
+
* @return {Channel<StreamChatGenerics>} Returns a new uninitialized channel
|
|
34
34
|
*/
|
|
35
|
-
constructor(client: StreamChat<
|
|
35
|
+
constructor(client: StreamChat<StreamChatGenerics>, type: string, id: string | undefined, data: ChannelData<StreamChatGenerics>);
|
|
36
36
|
/**
|
|
37
37
|
* getClient - Get the chat client for this channel. If client.disconnect() was called, this function will error
|
|
38
38
|
*
|
|
39
|
-
* @return {StreamChat<
|
|
39
|
+
* @return {StreamChat<StreamChatGenerics>}
|
|
40
40
|
*/
|
|
41
|
-
getClient(): StreamChat<
|
|
41
|
+
getClient(): StreamChat<StreamChatGenerics>;
|
|
42
42
|
/**
|
|
43
43
|
* getConfig - Get the configs for this channel type
|
|
44
44
|
*
|
|
45
45
|
* @return {Record<string, unknown>}
|
|
46
46
|
*/
|
|
47
|
-
getConfig(): import("./types").ChannelConfigWithInfo<
|
|
47
|
+
getConfig(): import("./types").ChannelConfigWithInfo<StreamChatGenerics> | undefined;
|
|
48
48
|
/**
|
|
49
49
|
* sendMessage - Send a message to this channel
|
|
50
50
|
*
|
|
51
|
-
* @param {Message<
|
|
51
|
+
* @param {Message<StreamChatGenerics>} message The Message object
|
|
52
52
|
* @param {boolean} [options.skip_enrich_url] Do not try to enrich the URLs within message
|
|
53
53
|
* @param {boolean} [options.skip_push] Skip sending push notifications
|
|
54
54
|
*
|
|
55
|
-
* @return {Promise<SendMessageAPIResponse<
|
|
55
|
+
* @return {Promise<SendMessageAPIResponse<StreamChatGenerics>>} The Server Response
|
|
56
56
|
*/
|
|
57
|
-
sendMessage(message: Message<
|
|
57
|
+
sendMessage(message: Message<StreamChatGenerics>, options?: {
|
|
58
58
|
skip_enrich_url?: boolean;
|
|
59
59
|
skip_push?: boolean;
|
|
60
|
-
}): Promise<SendMessageAPIResponse<
|
|
61
|
-
sendFile(uri: string | NodeJS.ReadableStream | Buffer | File, name?: string, contentType?: string, user?: UserResponse<
|
|
62
|
-
sendImage(uri: string | NodeJS.ReadableStream | File, name?: string, contentType?: string, user?: UserResponse<
|
|
60
|
+
}): Promise<SendMessageAPIResponse<StreamChatGenerics>>;
|
|
61
|
+
sendFile(uri: string | NodeJS.ReadableStream | Buffer | File, name?: string, contentType?: string, user?: UserResponse<StreamChatGenerics>): Promise<import("./types").SendFileAPIResponse>;
|
|
62
|
+
sendImage(uri: string | NodeJS.ReadableStream | File, name?: string, contentType?: string, user?: UserResponse<StreamChatGenerics>): Promise<import("./types").SendFileAPIResponse>;
|
|
63
63
|
deleteFile(url: string): Promise<APIResponse>;
|
|
64
64
|
deleteImage(url: string): Promise<APIResponse>;
|
|
65
65
|
/**
|
|
66
66
|
* sendEvent - Send an event on this channel
|
|
67
67
|
*
|
|
68
|
-
* @param {Event<
|
|
68
|
+
* @param {Event<StreamChatGenerics>} event for example {type: 'message.read'}
|
|
69
69
|
*
|
|
70
|
-
* @return {Promise<EventAPIResponse<
|
|
70
|
+
* @return {Promise<EventAPIResponse<StreamChatGenerics>>} The Server Response
|
|
71
71
|
*/
|
|
72
|
-
sendEvent(event: Event<
|
|
72
|
+
sendEvent(event: Event<StreamChatGenerics>): Promise<EventAPIResponse<StreamChatGenerics>>;
|
|
73
73
|
/**
|
|
74
74
|
* search - Query messages
|
|
75
75
|
*
|
|
76
|
-
* @param {MessageFilters<
|
|
77
|
-
* @param {{client_id?: string; connection_id?: string; query?: string; message_filter_conditions?: MessageFilters<
|
|
76
|
+
* @param {MessageFilters<StreamChatGenerics> | string} query search query or object MongoDB style filters
|
|
77
|
+
* @param {{client_id?: string; connection_id?: string; query?: string; message_filter_conditions?: MessageFilters<StreamChatGenerics>}} options Option object, {user_id: 'tommaso'}
|
|
78
78
|
*
|
|
79
|
-
* @return {Promise<SearchAPIResponse<
|
|
79
|
+
* @return {Promise<SearchAPIResponse<StreamChatGenerics>>} search messages response
|
|
80
80
|
*/
|
|
81
|
-
search(query: MessageFilters<
|
|
81
|
+
search(query: MessageFilters<StreamChatGenerics> | string, options?: SearchOptions<StreamChatGenerics> & {
|
|
82
82
|
client_id?: string;
|
|
83
83
|
connection_id?: string;
|
|
84
|
-
message_filter_conditions?: MessageFilters<
|
|
84
|
+
message_filter_conditions?: MessageFilters<StreamChatGenerics>;
|
|
85
85
|
query?: string;
|
|
86
|
-
}): Promise<SearchAPIResponse<
|
|
86
|
+
}): Promise<SearchAPIResponse<StreamChatGenerics>>;
|
|
87
87
|
/**
|
|
88
88
|
* queryMembers - Query Members
|
|
89
89
|
*
|
|
90
|
-
* @param {UserFilters<
|
|
91
|
-
* @param {MemberSort<
|
|
90
|
+
* @param {UserFilters<StreamChatGenerics>} filterConditions object MongoDB style filters
|
|
91
|
+
* @param {MemberSort<StreamChatGenerics>} [sort] Sort options, for instance [{created_at: -1}].
|
|
92
92
|
* When using multiple fields, make sure you use array of objects to guarantee field order, for instance [{name: -1}, {created_at: 1}]
|
|
93
93
|
* @param {{ limit?: number; offset?: number }} [options] Option object, {limit: 10, offset:10}
|
|
94
94
|
*
|
|
95
|
-
* @return {Promise<ChannelMemberAPIResponse<
|
|
95
|
+
* @return {Promise<ChannelMemberAPIResponse<StreamChatGenerics>>} Query Members response
|
|
96
96
|
*/
|
|
97
|
-
queryMembers(filterConditions: UserFilters<
|
|
97
|
+
queryMembers(filterConditions: UserFilters<StreamChatGenerics>, sort?: MemberSort<StreamChatGenerics>, options?: QueryMembersOptions): Promise<ChannelMemberAPIResponse<StreamChatGenerics>>;
|
|
98
98
|
/**
|
|
99
99
|
* sendReaction - Send a reaction about a message
|
|
100
100
|
*
|
|
101
101
|
* @param {string} messageID the message id
|
|
102
|
-
* @param {Reaction<
|
|
102
|
+
* @param {Reaction<StreamChatGenerics>} reaction the reaction object for instance {type: 'love'}
|
|
103
103
|
* @param {{ enforce_unique?: boolean, skip_push?: boolean }} [options] Option object, {enforce_unique: true, skip_push: true} to override any existing reaction or skip sending push notifications
|
|
104
104
|
*
|
|
105
|
-
* @return {Promise<ReactionAPIResponse<
|
|
105
|
+
* @return {Promise<ReactionAPIResponse<StreamChatGenerics>>} The Server Response
|
|
106
106
|
*/
|
|
107
|
-
sendReaction(messageID: string, reaction: Reaction<
|
|
107
|
+
sendReaction(messageID: string, reaction: Reaction<StreamChatGenerics>, options?: {
|
|
108
108
|
enforce_unique?: boolean;
|
|
109
109
|
skip_push?: boolean;
|
|
110
|
-
}): Promise<ReactionAPIResponse<
|
|
110
|
+
}): Promise<ReactionAPIResponse<StreamChatGenerics>>;
|
|
111
111
|
/**
|
|
112
112
|
* deleteReaction - Delete a reaction by user and type
|
|
113
113
|
*
|
|
@@ -115,145 +115,145 @@ export declare class Channel<AttachmentType extends UR = UR, ChannelType extends
|
|
|
115
115
|
* @param {string} reactionType the type of reaction that should be removed
|
|
116
116
|
* @param {string} [user_id] the id of the user (used only for server side request) default null
|
|
117
117
|
*
|
|
118
|
-
* @return {Promise<ReactionAPIResponse<
|
|
118
|
+
* @return {Promise<ReactionAPIResponse<StreamChatGenerics>>} The Server Response
|
|
119
119
|
*/
|
|
120
|
-
deleteReaction(messageID: string, reactionType: string, user_id?: string): Promise<ReactionAPIResponse<
|
|
120
|
+
deleteReaction(messageID: string, reactionType: string, user_id?: string): Promise<ReactionAPIResponse<StreamChatGenerics>>;
|
|
121
121
|
/**
|
|
122
122
|
* update - Edit the channel's custom properties
|
|
123
123
|
*
|
|
124
|
-
* @param {ChannelData<
|
|
125
|
-
* @param {Message<
|
|
124
|
+
* @param {ChannelData<StreamChatGenerics>} channelData The object to update the custom properties of this channel with
|
|
125
|
+
* @param {Message<StreamChatGenerics>} [updateMessage] Optional message object for channel members notification
|
|
126
126
|
* @param {ChannelUpdateOptions} [options] Option object, configuration to control the behavior while updating
|
|
127
|
-
* @return {Promise<UpdateChannelAPIResponse<
|
|
127
|
+
* @return {Promise<UpdateChannelAPIResponse<StreamChatGenerics>>} The server response
|
|
128
128
|
*/
|
|
129
|
-
update(channelData?: Partial<ChannelData<
|
|
129
|
+
update(channelData?: Partial<ChannelData<StreamChatGenerics>> | Partial<ChannelResponse<StreamChatGenerics>>, updateMessage?: Message<StreamChatGenerics>, options?: ChannelUpdateOptions): Promise<UpdateChannelAPIResponse<StreamChatGenerics>>;
|
|
130
130
|
/**
|
|
131
131
|
* updatePartial - partial update channel properties
|
|
132
132
|
*
|
|
133
|
-
* @param {PartialUpdateChannel<
|
|
133
|
+
* @param {PartialUpdateChannel<StreamChatGenerics>} partial update request
|
|
134
134
|
*
|
|
135
|
-
* @return {Promise<PartialUpdateChannelAPIResponse<
|
|
135
|
+
* @return {Promise<PartialUpdateChannelAPIResponse<StreamChatGenerics>>}
|
|
136
136
|
*/
|
|
137
|
-
updatePartial(update: PartialUpdateChannel<
|
|
137
|
+
updatePartial(update: PartialUpdateChannel<StreamChatGenerics>): Promise<PartialUpdateChannelAPIResponse<StreamChatGenerics>>;
|
|
138
138
|
/**
|
|
139
139
|
* enableSlowMode - enable slow mode
|
|
140
140
|
*
|
|
141
141
|
* @param {number} coolDownInterval the cooldown interval in seconds
|
|
142
|
-
* @return {Promise<UpdateChannelAPIResponse<
|
|
142
|
+
* @return {Promise<UpdateChannelAPIResponse<StreamChatGenerics>>} The server response
|
|
143
143
|
*/
|
|
144
|
-
enableSlowMode(coolDownInterval: number): Promise<UpdateChannelAPIResponse<
|
|
144
|
+
enableSlowMode(coolDownInterval: number): Promise<UpdateChannelAPIResponse<StreamChatGenerics>>;
|
|
145
145
|
/**
|
|
146
146
|
* disableSlowMode - disable slow mode
|
|
147
147
|
*
|
|
148
|
-
* @return {Promise<UpdateChannelAPIResponse<
|
|
148
|
+
* @return {Promise<UpdateChannelAPIResponse<StreamChatGenerics>>} The server response
|
|
149
149
|
*/
|
|
150
|
-
disableSlowMode(): Promise<UpdateChannelAPIResponse<
|
|
150
|
+
disableSlowMode(): Promise<UpdateChannelAPIResponse<StreamChatGenerics>>;
|
|
151
151
|
/**
|
|
152
152
|
* delete - Delete the channel. Messages are permanently removed.
|
|
153
153
|
*
|
|
154
154
|
* @param {boolean} [options.hard_delete] Defines if the channel is hard deleted or not
|
|
155
155
|
*
|
|
156
|
-
* @return {Promise<DeleteChannelAPIResponse<
|
|
156
|
+
* @return {Promise<DeleteChannelAPIResponse<StreamChatGenerics>>} The server response
|
|
157
157
|
*/
|
|
158
158
|
delete(options?: {
|
|
159
159
|
hard_delete?: boolean;
|
|
160
|
-
}): Promise<DeleteChannelAPIResponse<
|
|
160
|
+
}): Promise<DeleteChannelAPIResponse<StreamChatGenerics>>;
|
|
161
161
|
/**
|
|
162
162
|
* truncate - Removes all messages from the channel
|
|
163
|
-
* @param {TruncateOptions<
|
|
164
|
-
* @return {Promise<TruncateChannelAPIResponse<
|
|
163
|
+
* @param {TruncateOptions<StreamChatGenerics>} [options] Defines truncation options
|
|
164
|
+
* @return {Promise<TruncateChannelAPIResponse<StreamChatGenerics>>} The server response
|
|
165
165
|
*/
|
|
166
|
-
truncate(options?: TruncateOptions<
|
|
166
|
+
truncate(options?: TruncateOptions<StreamChatGenerics>): Promise<TruncateChannelAPIResponse<StreamChatGenerics>>;
|
|
167
167
|
/**
|
|
168
168
|
* acceptInvite - accept invitation to the channel
|
|
169
169
|
*
|
|
170
|
-
* @param {InviteOptions<
|
|
170
|
+
* @param {InviteOptions<StreamChatGenerics>} [options] The object to update the custom properties of this channel with
|
|
171
171
|
*
|
|
172
|
-
* @return {Promise<UpdateChannelAPIResponse<
|
|
172
|
+
* @return {Promise<UpdateChannelAPIResponse<StreamChatGenerics>>} The server response
|
|
173
173
|
*/
|
|
174
|
-
acceptInvite(options?: InviteOptions<
|
|
174
|
+
acceptInvite(options?: InviteOptions<StreamChatGenerics>): Promise<UpdateChannelAPIResponse<StreamChatGenerics>>;
|
|
175
175
|
/**
|
|
176
176
|
* rejectInvite - reject invitation to the channel
|
|
177
177
|
*
|
|
178
|
-
* @param {InviteOptions<
|
|
178
|
+
* @param {InviteOptions<StreamChatGenerics>} [options] The object to update the custom properties of this channel with
|
|
179
179
|
*
|
|
180
|
-
* @return {Promise<UpdateChannelAPIResponse<
|
|
180
|
+
* @return {Promise<UpdateChannelAPIResponse<StreamChatGenerics>>} The server response
|
|
181
181
|
*/
|
|
182
|
-
rejectInvite(options?: InviteOptions<
|
|
182
|
+
rejectInvite(options?: InviteOptions<StreamChatGenerics>): Promise<UpdateChannelAPIResponse<StreamChatGenerics>>;
|
|
183
183
|
/**
|
|
184
184
|
* addMembers - add members to the channel
|
|
185
185
|
*
|
|
186
186
|
* @param {{user_id: string, channel_role?: Role}[]} members An array of members to add to the channel
|
|
187
|
-
* @param {Message<
|
|
187
|
+
* @param {Message<StreamChatGenerics>} [message] Optional message object for channel members notification
|
|
188
188
|
* @param {ChannelUpdateOptions} [options] Option object, configuration to control the behavior while updating
|
|
189
|
-
* @return {Promise<UpdateChannelAPIResponse<
|
|
189
|
+
* @return {Promise<UpdateChannelAPIResponse<StreamChatGenerics>>} The server response
|
|
190
190
|
*/
|
|
191
191
|
addMembers(members: string[] | {
|
|
192
192
|
user_id: string;
|
|
193
193
|
channel_role?: Role;
|
|
194
|
-
}[], message?: Message<
|
|
194
|
+
}[], message?: Message<StreamChatGenerics>, options?: ChannelUpdateOptions): Promise<UpdateChannelAPIResponse<StreamChatGenerics>>;
|
|
195
195
|
/**
|
|
196
196
|
* addModerators - add moderators to the channel
|
|
197
197
|
*
|
|
198
198
|
* @param {string[]} members An array of member identifiers
|
|
199
|
-
* @param {Message<
|
|
199
|
+
* @param {Message<StreamChatGenerics>} [message] Optional message object for channel members notification
|
|
200
200
|
* @param {ChannelUpdateOptions} [options] Option object, configuration to control the behavior while updating
|
|
201
|
-
* @return {Promise<UpdateChannelAPIResponse<
|
|
201
|
+
* @return {Promise<UpdateChannelAPIResponse<StreamChatGenerics>>} The server response
|
|
202
202
|
*/
|
|
203
|
-
addModerators(members: string[], message?: Message<
|
|
203
|
+
addModerators(members: string[], message?: Message<StreamChatGenerics>, options?: ChannelUpdateOptions): Promise<UpdateChannelAPIResponse<StreamChatGenerics>>;
|
|
204
204
|
/**
|
|
205
205
|
* assignRoles - sets member roles in a channel
|
|
206
206
|
*
|
|
207
207
|
* @param {{channel_role: Role, user_id: string}[]} roles List of role assignments
|
|
208
|
-
* @param {Message<
|
|
208
|
+
* @param {Message<StreamChatGenerics>} [message] Optional message object for channel members notification
|
|
209
209
|
* @param {ChannelUpdateOptions} [options] Option object, configuration to control the behavior while updating
|
|
210
|
-
* @return {Promise<UpdateChannelAPIResponse<
|
|
210
|
+
* @return {Promise<UpdateChannelAPIResponse<StreamChatGenerics>>} The server response
|
|
211
211
|
*/
|
|
212
212
|
assignRoles(roles: {
|
|
213
213
|
channel_role: Role;
|
|
214
214
|
user_id: string;
|
|
215
|
-
}[], message?: Message<
|
|
215
|
+
}[], message?: Message<StreamChatGenerics>, options?: ChannelUpdateOptions): Promise<UpdateChannelAPIResponse<StreamChatGenerics>>;
|
|
216
216
|
/**
|
|
217
217
|
* inviteMembers - invite members to the channel
|
|
218
218
|
*
|
|
219
219
|
* @param {{user_id: string, channel_role?: Role}[]} members An array of members to invite to the channel
|
|
220
|
-
* @param {Message<
|
|
220
|
+
* @param {Message<StreamChatGenerics>} [message] Optional message object for channel members notification
|
|
221
221
|
* @param {ChannelUpdateOptions} [options] Option object, configuration to control the behavior while updating
|
|
222
|
-
* @return {Promise<UpdateChannelAPIResponse<
|
|
222
|
+
* @return {Promise<UpdateChannelAPIResponse<StreamChatGenerics>>} The server response
|
|
223
223
|
*/
|
|
224
224
|
inviteMembers(members: {
|
|
225
225
|
user_id: string;
|
|
226
226
|
channel_role?: Role;
|
|
227
|
-
}[] | string[], message?: Message<
|
|
227
|
+
}[] | string[], message?: Message<StreamChatGenerics>, options?: ChannelUpdateOptions): Promise<UpdateChannelAPIResponse<StreamChatGenerics>>;
|
|
228
228
|
/**
|
|
229
229
|
* removeMembers - remove members from channel
|
|
230
230
|
*
|
|
231
231
|
* @param {string[]} members An array of member identifiers
|
|
232
|
-
* @param {Message<
|
|
232
|
+
* @param {Message<StreamChatGenerics>} [message] Optional message object for channel members notification
|
|
233
233
|
* @param {ChannelUpdateOptions} [options] Option object, configuration to control the behavior while updating
|
|
234
|
-
* @return {Promise<UpdateChannelAPIResponse<
|
|
234
|
+
* @return {Promise<UpdateChannelAPIResponse<StreamChatGenerics>>} The server response
|
|
235
235
|
*/
|
|
236
|
-
removeMembers(members: string[], message?: Message<
|
|
236
|
+
removeMembers(members: string[], message?: Message<StreamChatGenerics>, options?: ChannelUpdateOptions): Promise<UpdateChannelAPIResponse<StreamChatGenerics>>;
|
|
237
237
|
/**
|
|
238
238
|
* demoteModerators - remove moderator role from channel members
|
|
239
239
|
*
|
|
240
240
|
* @param {string[]} members An array of member identifiers
|
|
241
|
-
* @param {Message<
|
|
241
|
+
* @param {Message<StreamChatGenerics>} [message] Optional message object for channel members notification
|
|
242
242
|
* @param {ChannelUpdateOptions} [options] Option object, configuration to control the behavior while updating
|
|
243
|
-
* @return {Promise<UpdateChannelAPIResponse<
|
|
243
|
+
* @return {Promise<UpdateChannelAPIResponse<StreamChatGenerics>>} The server response
|
|
244
244
|
*/
|
|
245
|
-
demoteModerators(members: string[], message?: Message<
|
|
245
|
+
demoteModerators(members: string[], message?: Message<StreamChatGenerics>, options?: ChannelUpdateOptions): Promise<UpdateChannelAPIResponse<StreamChatGenerics>>;
|
|
246
246
|
/**
|
|
247
247
|
* _update - executes channel update request
|
|
248
248
|
* @param payload Object Update Channel payload
|
|
249
|
-
* @return {Promise<UpdateChannelAPIResponse<
|
|
249
|
+
* @return {Promise<UpdateChannelAPIResponse<StreamChatGenerics>>} The server response
|
|
250
250
|
* TODO: introduce new type instead of Object in the next major update
|
|
251
251
|
*/
|
|
252
|
-
_update(payload: Object): Promise<UpdateChannelAPIResponse<
|
|
252
|
+
_update(payload: Object): Promise<UpdateChannelAPIResponse<StreamChatGenerics>>;
|
|
253
253
|
/**
|
|
254
254
|
* mute - mutes the current channel
|
|
255
255
|
* @param {{ user_id?: string, expiration?: string }} opts expiration in minutes or user_id
|
|
256
|
-
* @return {Promise<MuteChannelAPIResponse<
|
|
256
|
+
* @return {Promise<MuteChannelAPIResponse<StreamChatGenerics>>} The server response
|
|
257
257
|
*
|
|
258
258
|
* example with expiration:
|
|
259
259
|
* await channel.mute({expiration: moment.duration(2, 'weeks')});
|
|
@@ -265,7 +265,7 @@ export declare class Channel<AttachmentType extends UR = UR, ChannelType extends
|
|
|
265
265
|
mute(opts?: {
|
|
266
266
|
expiration?: number;
|
|
267
267
|
user_id?: string;
|
|
268
|
-
}): Promise<MuteChannelAPIResponse<
|
|
268
|
+
}): Promise<MuteChannelAPIResponse<StreamChatGenerics>>;
|
|
269
269
|
/**
|
|
270
270
|
* unmute - mutes the current channel
|
|
271
271
|
* @param {{ user_id?: string}} opts user_id
|
|
@@ -286,7 +286,7 @@ export declare class Channel<AttachmentType extends UR = UR, ChannelType extends
|
|
|
286
286
|
expiresAt: Date | null;
|
|
287
287
|
muted: boolean;
|
|
288
288
|
};
|
|
289
|
-
sendAction(messageID: string, formData: Record<string, string>): Promise<SendMessageAPIResponse<
|
|
289
|
+
sendAction(messageID: string, formData: Record<string, string>): Promise<SendMessageAPIResponse<StreamChatGenerics>>;
|
|
290
290
|
/**
|
|
291
291
|
* keystroke - First of the typing.start and typing.stop events based on the users keystrokes.
|
|
292
292
|
* Call this on every keystroke
|
|
@@ -303,16 +303,16 @@ export declare class Channel<AttachmentType extends UR = UR, ChannelType extends
|
|
|
303
303
|
/**
|
|
304
304
|
* lastMessage - return the last message, takes into account that last few messages might not be perfectly sorted
|
|
305
305
|
*
|
|
306
|
-
* @return {ReturnType<ChannelState<
|
|
306
|
+
* @return {ReturnType<ChannelState<StreamChatGenerics>['formatMessage']> | undefined} Description
|
|
307
307
|
*/
|
|
308
|
-
lastMessage(): FormatMessageResponse<
|
|
308
|
+
lastMessage(): FormatMessageResponse<StreamChatGenerics>;
|
|
309
309
|
/**
|
|
310
310
|
* markRead - Send the mark read event for this user, only works if the `read_events` setting is enabled
|
|
311
311
|
*
|
|
312
|
-
* @param {MarkReadOptions<
|
|
313
|
-
* @return {Promise<EventAPIResponse<
|
|
312
|
+
* @param {MarkReadOptions<StreamChatGenerics>} data
|
|
313
|
+
* @return {Promise<EventAPIResponse<StreamChatGenerics> | null>} Description
|
|
314
314
|
*/
|
|
315
|
-
markRead(data?: MarkReadOptions<
|
|
315
|
+
markRead(data?: MarkReadOptions<StreamChatGenerics>): Promise<EventAPIResponse<StreamChatGenerics> | null>;
|
|
316
316
|
/**
|
|
317
317
|
* clean - Cleans the channel state and fires stop typing if needed
|
|
318
318
|
*/
|
|
@@ -320,11 +320,11 @@ export declare class Channel<AttachmentType extends UR = UR, ChannelType extends
|
|
|
320
320
|
/**
|
|
321
321
|
* watch - Loads the initial channel state and watches for changes
|
|
322
322
|
*
|
|
323
|
-
* @param {ChannelQueryOptions<
|
|
323
|
+
* @param {ChannelQueryOptions<StreamChatGenerics>} options additional options for the query endpoint
|
|
324
324
|
*
|
|
325
|
-
* @return {Promise<ChannelAPIResponse<
|
|
325
|
+
* @return {Promise<ChannelAPIResponse<StreamChatGenerics>>} The server response
|
|
326
326
|
*/
|
|
327
|
-
watch(options?: ChannelQueryOptions<
|
|
327
|
+
watch(options?: ChannelQueryOptions<StreamChatGenerics>): Promise<ChannelAPIResponse<StreamChatGenerics>>;
|
|
328
328
|
/**
|
|
329
329
|
* stopWatching - Stops watching the channel
|
|
330
330
|
*
|
|
@@ -335,52 +335,52 @@ export declare class Channel<AttachmentType extends UR = UR, ChannelType extends
|
|
|
335
335
|
* getReplies - List the message replies for a parent message
|
|
336
336
|
*
|
|
337
337
|
* @param {string} parent_id The message parent id, ie the top of the thread
|
|
338
|
-
* @param {PaginationOptions & { user?: UserResponse<
|
|
338
|
+
* @param {PaginationOptions & { user?: UserResponse<StreamChatGenerics>; user_id?: string }} options Pagination params, ie {limit:10, id_lte: 10}
|
|
339
339
|
*
|
|
340
|
-
* @return {Promise<GetRepliesAPIResponse<
|
|
340
|
+
* @return {Promise<GetRepliesAPIResponse<StreamChatGenerics>>} A response with a list of messages
|
|
341
341
|
*/
|
|
342
|
-
getReplies(parent_id: string, options:
|
|
343
|
-
user?: UserResponse<
|
|
342
|
+
getReplies(parent_id: string, options: MessagePaginationOptions & {
|
|
343
|
+
user?: UserResponse<StreamChatGenerics>;
|
|
344
344
|
user_id?: string;
|
|
345
|
-
}): Promise<GetRepliesAPIResponse<
|
|
345
|
+
}): Promise<GetRepliesAPIResponse<StreamChatGenerics>>;
|
|
346
346
|
/**
|
|
347
347
|
* getPinnedMessages - List list pinned messages of the channel
|
|
348
348
|
*
|
|
349
|
-
* @param {PinnedMessagePaginationOptions & { user?: UserResponse<
|
|
349
|
+
* @param {PinnedMessagePaginationOptions & { user?: UserResponse<StreamChatGenerics>; user_id?: string }} options Pagination params, ie {limit:10, id_lte: 10}
|
|
350
350
|
* @param {PinnedMessagesSort} sort defines sorting direction of pinned messages
|
|
351
351
|
*
|
|
352
|
-
* @return {Promise<GetRepliesAPIResponse<
|
|
352
|
+
* @return {Promise<GetRepliesAPIResponse<StreamChatGenerics>>} A response with a list of messages
|
|
353
353
|
*/
|
|
354
354
|
getPinnedMessages(options: PinnedMessagePaginationOptions & {
|
|
355
|
-
user?: UserResponse<
|
|
355
|
+
user?: UserResponse<StreamChatGenerics>;
|
|
356
356
|
user_id?: string;
|
|
357
|
-
}, sort?: PinnedMessagesSort): Promise<GetRepliesAPIResponse<
|
|
357
|
+
}, sort?: PinnedMessagesSort): Promise<GetRepliesAPIResponse<StreamChatGenerics>>;
|
|
358
358
|
/**
|
|
359
359
|
* getReactions - List the reactions, supports pagination
|
|
360
360
|
*
|
|
361
361
|
* @param {string} message_id The message id
|
|
362
362
|
* @param {{ limit?: number; offset?: number }} options The pagination options
|
|
363
363
|
*
|
|
364
|
-
* @return {Promise<GetReactionsAPIResponse<
|
|
364
|
+
* @return {Promise<GetReactionsAPIResponse<StreamChatGenerics>>} Server response
|
|
365
365
|
*/
|
|
366
366
|
getReactions(message_id: string, options: {
|
|
367
367
|
limit?: number;
|
|
368
368
|
offset?: number;
|
|
369
|
-
}): Promise<GetReactionsAPIResponse<
|
|
369
|
+
}): Promise<GetReactionsAPIResponse<StreamChatGenerics>>;
|
|
370
370
|
/**
|
|
371
371
|
* getMessagesById - Retrieves a list of messages by ID
|
|
372
372
|
*
|
|
373
373
|
* @param {string[]} messageIds The ids of the messages to retrieve from this channel
|
|
374
374
|
*
|
|
375
|
-
* @return {Promise<GetMultipleMessagesAPIResponse<
|
|
375
|
+
* @return {Promise<GetMultipleMessagesAPIResponse<StreamChatGenerics>>} Server response
|
|
376
376
|
*/
|
|
377
|
-
getMessagesById(messageIds: string[]): Promise<GetMultipleMessagesAPIResponse<
|
|
377
|
+
getMessagesById(messageIds: string[]): Promise<GetMultipleMessagesAPIResponse<StreamChatGenerics>>;
|
|
378
378
|
/**
|
|
379
379
|
* lastRead - returns the last time the user marked the channel as read if the user never marked the channel as read, this will return null
|
|
380
380
|
* @return {Date | null | undefined}
|
|
381
381
|
*/
|
|
382
382
|
lastRead(): Date | null | undefined;
|
|
383
|
-
_countMessageAsUnread(message: FormatMessageResponse<
|
|
383
|
+
_countMessageAsUnread(message: FormatMessageResponse<StreamChatGenerics> | MessageResponse<StreamChatGenerics>): boolean;
|
|
384
384
|
/**
|
|
385
385
|
* countUnread - Count of unread messages
|
|
386
386
|
*
|
|
@@ -398,25 +398,25 @@ export declare class Channel<AttachmentType extends UR = UR, ChannelType extends
|
|
|
398
398
|
/**
|
|
399
399
|
* create - Creates a new channel
|
|
400
400
|
*
|
|
401
|
-
* @return {Promise<ChannelAPIResponse<
|
|
401
|
+
* @return {Promise<ChannelAPIResponse<StreamChatGenerics>>} The Server Response
|
|
402
402
|
*/
|
|
403
|
-
create: () => Promise<ChannelAPIResponse<
|
|
403
|
+
create: () => Promise<ChannelAPIResponse<StreamChatGenerics>>;
|
|
404
404
|
/**
|
|
405
405
|
* query - Query the API, get messages, members or other channel fields
|
|
406
406
|
*
|
|
407
|
-
* @param {ChannelQueryOptions<
|
|
407
|
+
* @param {ChannelQueryOptions<StreamChatGenerics>} options The query options
|
|
408
408
|
*
|
|
409
|
-
* @return {Promise<ChannelAPIResponse<
|
|
409
|
+
* @return {Promise<ChannelAPIResponse<StreamChatGenerics>>} Returns a query response
|
|
410
410
|
*/
|
|
411
|
-
query(options: ChannelQueryOptions<
|
|
411
|
+
query(options: ChannelQueryOptions<StreamChatGenerics>): Promise<ChannelAPIResponse<StreamChatGenerics>>;
|
|
412
412
|
/**
|
|
413
413
|
* banUser - Bans a user from a channel
|
|
414
414
|
*
|
|
415
415
|
* @param {string} targetUserID
|
|
416
|
-
* @param {BanUserOptions<
|
|
416
|
+
* @param {BanUserOptions<StreamChatGenerics>} options
|
|
417
417
|
* @returns {Promise<APIResponse>}
|
|
418
418
|
*/
|
|
419
|
-
banUser(targetUserID: string, options: BanUserOptions<
|
|
419
|
+
banUser(targetUserID: string, options: BanUserOptions<StreamChatGenerics>): Promise<APIResponse>;
|
|
420
420
|
/**
|
|
421
421
|
* hides the channel from queryChannels for the user until a message is added
|
|
422
422
|
* If clearHistory is set to true - all messages will be removed for the user
|
|
@@ -444,10 +444,10 @@ export declare class Channel<AttachmentType extends UR = UR, ChannelType extends
|
|
|
444
444
|
* shadowBan - Shadow bans a user from a channel
|
|
445
445
|
*
|
|
446
446
|
* @param {string} targetUserID
|
|
447
|
-
* @param {BanUserOptions<
|
|
447
|
+
* @param {BanUserOptions<StreamChatGenerics>} options
|
|
448
448
|
* @returns {Promise<APIResponse>}
|
|
449
449
|
*/
|
|
450
|
-
shadowBan(targetUserID: string, options: BanUserOptions<
|
|
450
|
+
shadowBan(targetUserID: string, options: BanUserOptions<StreamChatGenerics>): Promise<APIResponse>;
|
|
451
451
|
/**
|
|
452
452
|
* removeShadowBan - Removes the shadow ban for a user on a channel
|
|
453
453
|
*
|
|
@@ -462,23 +462,23 @@ export declare class Channel<AttachmentType extends UR = UR, ChannelType extends
|
|
|
462
462
|
* or
|
|
463
463
|
* channel.on(event => {console.log(event.type)})
|
|
464
464
|
*
|
|
465
|
-
* @param {EventHandler<
|
|
466
|
-
* @param {EventHandler<
|
|
465
|
+
* @param {EventHandler<StreamChatGenerics> | EventTypes} callbackOrString The event type to listen for (optional)
|
|
466
|
+
* @param {EventHandler<StreamChatGenerics>} [callbackOrNothing] The callback to call
|
|
467
467
|
*/
|
|
468
|
-
on(eventType: EventTypes, callback: EventHandler<
|
|
468
|
+
on(eventType: EventTypes, callback: EventHandler<StreamChatGenerics>): {
|
|
469
469
|
unsubscribe: () => void;
|
|
470
470
|
};
|
|
471
|
-
on(callback: EventHandler<
|
|
471
|
+
on(callback: EventHandler<StreamChatGenerics>): {
|
|
472
472
|
unsubscribe: () => void;
|
|
473
473
|
};
|
|
474
474
|
/**
|
|
475
475
|
* off - Remove the event handler
|
|
476
476
|
*
|
|
477
477
|
*/
|
|
478
|
-
off(eventType: EventTypes, callback: EventHandler<
|
|
479
|
-
off(callback: EventHandler<
|
|
480
|
-
_handleChannelEvent(event: Event<
|
|
481
|
-
_callChannelListeners: (event: Event<
|
|
478
|
+
off(eventType: EventTypes, callback: EventHandler<StreamChatGenerics>): void;
|
|
479
|
+
off(callback: EventHandler<StreamChatGenerics>): void;
|
|
480
|
+
_handleChannelEvent(event: Event<StreamChatGenerics>): void;
|
|
481
|
+
_callChannelListeners: (event: Event<StreamChatGenerics>) => void;
|
|
482
482
|
/**
|
|
483
483
|
* _channelURL - Returns the channel url
|
|
484
484
|
*
|
|
@@ -486,7 +486,7 @@ export declare class Channel<AttachmentType extends UR = UR, ChannelType extends
|
|
|
486
486
|
*/
|
|
487
487
|
_channelURL: () => string;
|
|
488
488
|
_checkInitialized(): void;
|
|
489
|
-
_initializeState(state: ChannelAPIResponse<
|
|
489
|
+
_initializeState(state: ChannelAPIResponse<StreamChatGenerics>): void;
|
|
490
490
|
_disconnect(): void;
|
|
491
491
|
}
|
|
492
492
|
//# sourceMappingURL=channel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"channel.d.ts","sourceRoot":"","sources":["../../src/channel.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAG/C,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,EACL,WAAW,EACX,cAAc,EACd,kBAAkB,EAClB,WAAW,EAEX,oBAAoB,EACpB,wBAAwB,EAExB,mBAAmB,EACnB,eAAe,EACf,wBAAwB,EACxB,KAAK,EACL,gBAAgB,EAChB,YAAY,EACZ,UAAU,EACV,qBAAqB,EACrB,8BAA8B,EAC9B,uBAAuB,EACvB,qBAAqB,EACrB,aAAa,EACb,
|
|
1
|
+
{"version":3,"file":"channel.d.ts","sourceRoot":"","sources":["../../src/channel.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAG/C,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,EACL,WAAW,EACX,cAAc,EACd,kBAAkB,EAClB,WAAW,EAEX,oBAAoB,EACpB,wBAAwB,EAExB,mBAAmB,EACnB,eAAe,EACf,wBAAwB,EACxB,K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