stream-chat 8.56.0 → 8.57.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/dist/cjs/index.browser.cjs +11101 -0
- package/dist/cjs/index.browser.cjs.map +7 -0
- package/dist/cjs/index.node.cjs +22510 -0
- package/dist/cjs/index.node.cjs.map +7 -0
- package/dist/esm/index.js +11097 -0
- package/dist/esm/index.js.map +7 -0
- package/dist/types/base64.d.ts +0 -1
- package/dist/types/campaign.d.ts +18 -3
- package/dist/types/channel.d.ts +3 -5
- package/dist/types/channel_manager.d.ts +11 -12
- package/dist/types/channel_state.d.ts +6 -7
- package/dist/types/client.d.ts +110 -141
- package/dist/types/client_state.d.ts +0 -1
- package/dist/types/connection.d.ts +3 -6
- package/dist/types/connection_fallback.d.ts +0 -1
- package/dist/types/constants.d.ts +0 -1
- package/dist/types/errors.d.ts +1 -2
- package/dist/types/events.d.ts +0 -1
- package/dist/types/index.d.ts +0 -1
- package/dist/types/insights.d.ts +3 -5
- package/dist/types/moderation.d.ts +0 -1
- package/dist/types/permissions.d.ts +2 -3
- package/dist/types/poll.d.ts +9 -10
- package/dist/types/poll_manager.d.ts +1 -2
- package/dist/types/search_controller.d.ts +17 -18
- package/dist/types/segment.d.ts +3 -4
- package/dist/types/signing.d.ts +3 -5
- package/dist/types/store.d.ts +5 -6
- package/dist/types/thread.d.ts +9 -10
- package/dist/types/thread_manager.d.ts +3 -4
- package/dist/types/token_manager.d.ts +4 -5
- package/dist/types/types.d.ts +400 -387
- package/dist/types/utils.d.ts +14 -15
- package/package.json +53 -58
- package/src/campaign.ts +3 -3
- package/src/channel_manager.ts +21 -10
- package/src/client.ts +69 -19
- package/src/connection.ts +14 -7
- package/src/connection_fallback.ts +9 -7
- package/src/signing.ts +10 -5
- package/src/token_manager.ts +5 -4
- package/src/types.ts +9 -0
- package/src/utils.ts +21 -0
- package/dist/browser.es.js +0 -19194
- package/dist/browser.es.js.map +0 -1
- package/dist/browser.full-bundle.min.js +0 -2
- package/dist/browser.full-bundle.min.js.map +0 -1
- package/dist/browser.js +0 -19275
- package/dist/browser.js.map +0 -1
- package/dist/index.es.js +0 -19197
- package/dist/index.es.js.map +0 -1
- package/dist/index.js +0 -19281
- package/dist/index.js.map +0 -1
- package/dist/types/base64.d.ts.map +0 -1
- package/dist/types/campaign.d.ts.map +0 -1
- package/dist/types/channel.d.ts.map +0 -1
- package/dist/types/channel_manager.d.ts.map +0 -1
- package/dist/types/channel_state.d.ts.map +0 -1
- package/dist/types/client.d.ts.map +0 -1
- package/dist/types/client_state.d.ts.map +0 -1
- package/dist/types/connection.d.ts.map +0 -1
- package/dist/types/connection_fallback.d.ts.map +0 -1
- package/dist/types/constants.d.ts.map +0 -1
- package/dist/types/errors.d.ts.map +0 -1
- package/dist/types/events.d.ts.map +0 -1
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/insights.d.ts.map +0 -1
- package/dist/types/moderation.d.ts.map +0 -1
- package/dist/types/permissions.d.ts.map +0 -1
- package/dist/types/poll.d.ts.map +0 -1
- package/dist/types/poll_manager.d.ts.map +0 -1
- package/dist/types/search_controller.d.ts.map +0 -1
- package/dist/types/segment.d.ts.map +0 -1
- package/dist/types/signing.d.ts.map +0 -1
- package/dist/types/store.d.ts.map +0 -1
- package/dist/types/thread.d.ts.map +0 -1
- package/dist/types/thread_manager.d.ts.map +0 -1
- package/dist/types/token_manager.d.ts.map +0 -1
- package/dist/types/types.d.ts.map +0 -1
- package/dist/types/utils.d.ts.map +0 -1
package/dist/types/types.d.ts
CHANGED
|
@@ -6,27 +6,27 @@ import type { Channel } from './channel';
|
|
|
6
6
|
/**
|
|
7
7
|
* Utility Types
|
|
8
8
|
*/
|
|
9
|
-
export
|
|
9
|
+
export type ArrayOneOrMore<T> = {
|
|
10
10
|
0: T;
|
|
11
11
|
} & Array<T>;
|
|
12
|
-
export
|
|
12
|
+
export type ArrayTwoOrMore<T> = {
|
|
13
13
|
0: T;
|
|
14
14
|
1: T;
|
|
15
15
|
} & Array<T>;
|
|
16
|
-
export
|
|
16
|
+
export type KnownKeys<T> = {
|
|
17
17
|
[K in keyof T]: string extends K ? never : number extends K ? never : K;
|
|
18
18
|
} extends {
|
|
19
19
|
[_ in keyof T]: infer U;
|
|
20
20
|
} ? U : never;
|
|
21
|
-
export
|
|
21
|
+
export type RequireAtLeastOne<T> = {
|
|
22
22
|
[K in keyof T]-?: Required<Pick<T, K>> & Partial<Pick<T, Exclude<keyof T, K>>>;
|
|
23
23
|
}[keyof T];
|
|
24
|
-
export
|
|
24
|
+
export type RequireOnlyOne<T, Keys extends keyof T = keyof T> = Pick<T, Exclude<keyof T, Keys>> & {
|
|
25
25
|
[K in Keys]-?: Required<Pick<T, K>> & Partial<Record<Exclude<Keys, K>, undefined>>;
|
|
26
26
|
}[Keys];
|
|
27
|
-
export
|
|
28
|
-
export
|
|
29
|
-
export
|
|
27
|
+
export type UR = Record<string, unknown>;
|
|
28
|
+
export type UnknownType = UR;
|
|
29
|
+
export type DefaultGenerics = {
|
|
30
30
|
attachmentType: UR;
|
|
31
31
|
channelType: UR;
|
|
32
32
|
commandType: LiteralStringForUnion;
|
|
@@ -38,7 +38,7 @@ export declare type DefaultGenerics = {
|
|
|
38
38
|
reactionType: UR;
|
|
39
39
|
userType: UR;
|
|
40
40
|
};
|
|
41
|
-
export
|
|
41
|
+
export type ExtendableGenerics = {
|
|
42
42
|
attachmentType: UR;
|
|
43
43
|
channelType: UR;
|
|
44
44
|
commandType: string;
|
|
@@ -50,18 +50,18 @@ export declare type ExtendableGenerics = {
|
|
|
50
50
|
reactionType: UR;
|
|
51
51
|
userType: UR;
|
|
52
52
|
};
|
|
53
|
-
export
|
|
53
|
+
export type Unpacked<T> = T extends (infer U)[] ? U : T extends (...args: any[]) => infer U ? U : T extends Promise<infer U> ? U : T;
|
|
54
54
|
/**
|
|
55
55
|
* Response Types
|
|
56
56
|
*/
|
|
57
|
-
export
|
|
57
|
+
export type APIResponse = {
|
|
58
58
|
duration: string;
|
|
59
59
|
};
|
|
60
|
-
export
|
|
60
|
+
export type TranslateResponse = {
|
|
61
61
|
language: string;
|
|
62
62
|
translated_text: string;
|
|
63
63
|
};
|
|
64
|
-
export
|
|
64
|
+
export type AppSettingsAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
65
65
|
app?: {
|
|
66
66
|
call_types: any;
|
|
67
67
|
channel_configs: Record<string, {
|
|
@@ -150,7 +150,7 @@ export declare type AppSettingsAPIResponse<StreamChatGenerics extends Extendable
|
|
|
150
150
|
webhook_url?: string;
|
|
151
151
|
};
|
|
152
152
|
};
|
|
153
|
-
export
|
|
153
|
+
export type ModerationResult = {
|
|
154
154
|
action: string;
|
|
155
155
|
created_at: string;
|
|
156
156
|
message_id: string;
|
|
@@ -161,16 +161,16 @@ export declare type ModerationResult = {
|
|
|
161
161
|
blocklist_name?: string;
|
|
162
162
|
moderated_by?: string;
|
|
163
163
|
};
|
|
164
|
-
export
|
|
164
|
+
export type AutomodDetails = {
|
|
165
165
|
action?: string;
|
|
166
166
|
image_labels?: Array<string>;
|
|
167
167
|
original_message_type?: string;
|
|
168
168
|
result?: ModerationResult;
|
|
169
169
|
};
|
|
170
|
-
export
|
|
170
|
+
export type FlagDetails = {
|
|
171
171
|
automod?: AutomodDetails;
|
|
172
172
|
};
|
|
173
|
-
export
|
|
173
|
+
export type Flag<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
174
174
|
created_at: string;
|
|
175
175
|
created_by_automod: boolean;
|
|
176
176
|
updated_at: string;
|
|
@@ -179,10 +179,10 @@ export declare type Flag<StreamChatGenerics extends ExtendableGenerics = Default
|
|
|
179
179
|
target_user?: UserResponse<StreamChatGenerics>;
|
|
180
180
|
user?: UserResponse<StreamChatGenerics>;
|
|
181
181
|
};
|
|
182
|
-
export
|
|
182
|
+
export type FlagsResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
183
183
|
flags?: Array<Flag<StreamChatGenerics>>;
|
|
184
184
|
};
|
|
185
|
-
export
|
|
185
|
+
export type MessageFlagsResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
186
186
|
flags?: Array<{
|
|
187
187
|
message: MessageResponse<StreamChatGenerics>;
|
|
188
188
|
user: UserResponse<StreamChatGenerics>;
|
|
@@ -196,7 +196,7 @@ export declare type MessageFlagsResponse<StreamChatGenerics extends ExtendableGe
|
|
|
196
196
|
updated_at?: string;
|
|
197
197
|
}>;
|
|
198
198
|
};
|
|
199
|
-
export
|
|
199
|
+
export type FlagReport<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
200
200
|
flags_count: number;
|
|
201
201
|
id: string;
|
|
202
202
|
message: MessageResponse<StreamChatGenerics>;
|
|
@@ -209,13 +209,13 @@ export declare type FlagReport<StreamChatGenerics extends ExtendableGenerics = D
|
|
|
209
209
|
reviewed_by?: UserResponse<StreamChatGenerics>;
|
|
210
210
|
updated_at?: string;
|
|
211
211
|
};
|
|
212
|
-
export
|
|
212
|
+
export type FlagReportsResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
213
213
|
flag_reports: Array<FlagReport<StreamChatGenerics>>;
|
|
214
214
|
};
|
|
215
|
-
export
|
|
215
|
+
export type ReviewFlagReportResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
216
216
|
flag_report: FlagReport<StreamChatGenerics>;
|
|
217
217
|
};
|
|
218
|
-
export
|
|
218
|
+
export type BannedUsersResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
219
219
|
bans?: Array<{
|
|
220
220
|
user: UserResponse<StreamChatGenerics>;
|
|
221
221
|
banned_by?: UserResponse<StreamChatGenerics>;
|
|
@@ -226,12 +226,12 @@ export declare type BannedUsersResponse<StreamChatGenerics extends ExtendableGen
|
|
|
226
226
|
timeout?: number;
|
|
227
227
|
}>;
|
|
228
228
|
};
|
|
229
|
-
export
|
|
229
|
+
export type BlockListResponse = BlockList & {
|
|
230
230
|
created_at?: string;
|
|
231
231
|
type?: string;
|
|
232
232
|
updated_at?: string;
|
|
233
233
|
};
|
|
234
|
-
export
|
|
234
|
+
export type ChannelResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = StreamChatGenerics['channelType'] & {
|
|
235
235
|
cid: string;
|
|
236
236
|
disabled: boolean;
|
|
237
237
|
frozen: boolean;
|
|
@@ -260,16 +260,16 @@ export declare type ChannelResponse<StreamChatGenerics extends ExtendableGeneric
|
|
|
260
260
|
truncated_by_id?: string;
|
|
261
261
|
updated_at?: string;
|
|
262
262
|
};
|
|
263
|
-
export
|
|
264
|
-
export
|
|
263
|
+
export type QueryReactionsOptions = Pager;
|
|
264
|
+
export type QueryReactionsAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
265
265
|
reactions: ReactionResponse<StreamChatGenerics>[];
|
|
266
266
|
next?: string;
|
|
267
267
|
};
|
|
268
|
-
export
|
|
268
|
+
export type QueryChannelsAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
269
269
|
channels: Omit<ChannelAPIResponse<StreamChatGenerics>, keyof APIResponse>[];
|
|
270
270
|
};
|
|
271
|
-
export
|
|
272
|
-
export
|
|
271
|
+
export type QueryChannelAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & ChannelAPIResponse<StreamChatGenerics>;
|
|
272
|
+
export type ChannelAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
273
273
|
channel: ChannelResponse<StreamChatGenerics>;
|
|
274
274
|
members: ChannelMemberResponse<StreamChatGenerics>[];
|
|
275
275
|
messages: MessageResponse<StreamChatGenerics>[];
|
|
@@ -283,19 +283,19 @@ export declare type ChannelAPIResponse<StreamChatGenerics extends ExtendableGene
|
|
|
283
283
|
watcher_count?: number;
|
|
284
284
|
watchers?: UserResponse<StreamChatGenerics>[];
|
|
285
285
|
};
|
|
286
|
-
export
|
|
286
|
+
export type ChannelUpdateOptions = {
|
|
287
287
|
hide_history?: boolean;
|
|
288
288
|
skip_push?: boolean;
|
|
289
289
|
};
|
|
290
|
-
export
|
|
290
|
+
export type ChannelMemberAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
291
291
|
members: ChannelMemberResponse<StreamChatGenerics>[];
|
|
292
292
|
};
|
|
293
|
-
export
|
|
293
|
+
export type ChannelMemberUpdates<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = StreamChatGenerics['memberType'] & {
|
|
294
294
|
archived?: boolean;
|
|
295
295
|
channel_role?: Role;
|
|
296
296
|
pinned?: boolean;
|
|
297
297
|
};
|
|
298
|
-
export
|
|
298
|
+
export type ChannelMemberResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = StreamChatGenerics['memberType'] & {
|
|
299
299
|
archived_at?: string;
|
|
300
300
|
ban_expires?: string;
|
|
301
301
|
banned?: boolean;
|
|
@@ -314,10 +314,10 @@ export declare type ChannelMemberResponse<StreamChatGenerics extends ExtendableG
|
|
|
314
314
|
user?: UserResponse<StreamChatGenerics>;
|
|
315
315
|
user_id?: string;
|
|
316
316
|
};
|
|
317
|
-
export
|
|
317
|
+
export type PartialUpdateMemberAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
318
318
|
channel_member: ChannelMemberResponse<StreamChatGenerics>;
|
|
319
319
|
};
|
|
320
|
-
export
|
|
320
|
+
export type CheckPushResponse = APIResponse & {
|
|
321
321
|
device_errors?: {
|
|
322
322
|
[deviceID: string]: {
|
|
323
323
|
error_message?: string;
|
|
@@ -331,53 +331,53 @@ export declare type CheckPushResponse = APIResponse & {
|
|
|
331
331
|
rendered_message?: {};
|
|
332
332
|
skip_devices?: boolean;
|
|
333
333
|
};
|
|
334
|
-
export
|
|
334
|
+
export type CheckSQSResponse = APIResponse & {
|
|
335
335
|
status: string;
|
|
336
336
|
data?: {};
|
|
337
337
|
error?: string;
|
|
338
338
|
};
|
|
339
|
-
export
|
|
339
|
+
export type CheckSNSResponse = APIResponse & {
|
|
340
340
|
status: string;
|
|
341
341
|
data?: {};
|
|
342
342
|
error?: string;
|
|
343
343
|
};
|
|
344
|
-
export
|
|
344
|
+
export type CommandResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = Partial<CreatedAtUpdatedAt> & {
|
|
345
345
|
args?: string;
|
|
346
346
|
description?: string;
|
|
347
347
|
name?: CommandVariants<StreamChatGenerics>;
|
|
348
348
|
set?: CommandVariants<StreamChatGenerics>;
|
|
349
349
|
};
|
|
350
|
-
export
|
|
351
|
-
export
|
|
350
|
+
export type ConnectAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = Promise<void | ConnectionOpen<StreamChatGenerics>>;
|
|
351
|
+
export type CreateChannelResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & Omit<CreateChannelOptions<StreamChatGenerics>, 'client_id' | 'connection_id'> & {
|
|
352
352
|
created_at: string;
|
|
353
353
|
updated_at: string;
|
|
354
354
|
grants?: Record<string, string[]>;
|
|
355
355
|
};
|
|
356
|
-
export
|
|
356
|
+
export type CreateCommandResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
357
357
|
command: CreateCommandOptions<StreamChatGenerics> & CreatedAtUpdatedAt;
|
|
358
358
|
};
|
|
359
|
-
export
|
|
359
|
+
export type DeleteChannelAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
360
360
|
channel: ChannelResponse<StreamChatGenerics>;
|
|
361
361
|
};
|
|
362
|
-
export
|
|
362
|
+
export type DeleteCommandResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
363
363
|
name?: CommandVariants<StreamChatGenerics>;
|
|
364
364
|
};
|
|
365
|
-
export
|
|
365
|
+
export type EventAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
366
366
|
event: Event<StreamChatGenerics>;
|
|
367
367
|
};
|
|
368
|
-
export
|
|
368
|
+
export type ExportChannelResponse = {
|
|
369
369
|
task_id: string;
|
|
370
370
|
};
|
|
371
|
-
export
|
|
371
|
+
export type ExportUsersResponse = {
|
|
372
372
|
task_id: string;
|
|
373
373
|
};
|
|
374
|
-
export
|
|
374
|
+
export type ExportChannelStatusResponse = {
|
|
375
375
|
created_at?: string;
|
|
376
376
|
error?: {};
|
|
377
377
|
result?: {};
|
|
378
378
|
updated_at?: string;
|
|
379
379
|
};
|
|
380
|
-
export
|
|
380
|
+
export type FlagMessageResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
381
381
|
flag: {
|
|
382
382
|
created_at: string;
|
|
383
383
|
created_by_automod: boolean;
|
|
@@ -394,7 +394,7 @@ export declare type FlagMessageResponse<StreamChatGenerics extends ExtendableGen
|
|
|
394
394
|
};
|
|
395
395
|
review_queue_item_id?: string;
|
|
396
396
|
};
|
|
397
|
-
export
|
|
397
|
+
export type FlagUserResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
398
398
|
flag: {
|
|
399
399
|
created_at: string;
|
|
400
400
|
created_by_automod: boolean;
|
|
@@ -409,7 +409,7 @@ export declare type FlagUserResponse<StreamChatGenerics extends ExtendableGeneri
|
|
|
409
409
|
};
|
|
410
410
|
review_queue_item_id?: string;
|
|
411
411
|
};
|
|
412
|
-
export
|
|
412
|
+
export type FormatMessageResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = Omit<MessageResponse<{
|
|
413
413
|
attachmentType: StreamChatGenerics['attachmentType'];
|
|
414
414
|
channelType: StreamChatGenerics['channelType'];
|
|
415
415
|
commandType: StreamChatGenerics['commandType'];
|
|
@@ -427,14 +427,14 @@ export declare type FormatMessageResponse<StreamChatGenerics extends ExtendableG
|
|
|
427
427
|
status: string;
|
|
428
428
|
updated_at: Date;
|
|
429
429
|
};
|
|
430
|
-
export
|
|
430
|
+
export type GetChannelTypeResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & Omit<CreateChannelOptions<StreamChatGenerics>, 'client_id' | 'connection_id' | 'commands'> & {
|
|
431
431
|
created_at: string;
|
|
432
432
|
updated_at: string;
|
|
433
433
|
commands?: CommandResponse<StreamChatGenerics>[];
|
|
434
434
|
grants?: Record<string, string[]>;
|
|
435
435
|
};
|
|
436
|
-
export
|
|
437
|
-
export
|
|
436
|
+
export type GetCommandResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & CreateCommandOptions<StreamChatGenerics> & CreatedAtUpdatedAt;
|
|
437
|
+
export type GetMessageAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = SendMessageAPIResponse<StreamChatGenerics>;
|
|
438
438
|
export interface ThreadResponseCustomData {
|
|
439
439
|
}
|
|
440
440
|
export interface ThreadResponse<SCG extends ExtendableGenerics = DefaultGenerics> extends ThreadResponseCustomData {
|
|
@@ -465,11 +465,11 @@ export interface ThreadResponse<SCG extends ExtendableGenerics = DefaultGenerics
|
|
|
465
465
|
user_id?: string;
|
|
466
466
|
}>;
|
|
467
467
|
}
|
|
468
|
-
export
|
|
468
|
+
export type PartialThreadUpdate = {
|
|
469
469
|
set?: Partial<Record<string, unknown>>;
|
|
470
470
|
unset?: Array<string>;
|
|
471
471
|
};
|
|
472
|
-
export
|
|
472
|
+
export type QueryThreadsOptions = {
|
|
473
473
|
limit?: number;
|
|
474
474
|
member_limit?: number;
|
|
475
475
|
next?: string;
|
|
@@ -477,35 +477,35 @@ export declare type QueryThreadsOptions = {
|
|
|
477
477
|
reply_limit?: number;
|
|
478
478
|
watch?: boolean;
|
|
479
479
|
};
|
|
480
|
-
export
|
|
480
|
+
export type QueryThreadsAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
481
481
|
threads: ThreadResponse<StreamChatGenerics>[];
|
|
482
482
|
next?: string;
|
|
483
483
|
};
|
|
484
|
-
export
|
|
484
|
+
export type GetThreadOptions = {
|
|
485
485
|
member_limit?: number;
|
|
486
486
|
participant_limit?: number;
|
|
487
487
|
reply_limit?: number;
|
|
488
488
|
watch?: boolean;
|
|
489
489
|
};
|
|
490
|
-
export
|
|
490
|
+
export type GetThreadAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
491
491
|
thread: ThreadResponse<StreamChatGenerics>;
|
|
492
492
|
};
|
|
493
|
-
export
|
|
493
|
+
export type GetMultipleMessagesAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
494
494
|
messages: MessageResponse<StreamChatGenerics>[];
|
|
495
495
|
};
|
|
496
|
-
export
|
|
496
|
+
export type GetRateLimitsResponse = APIResponse & {
|
|
497
497
|
android?: RateLimitsMap;
|
|
498
498
|
ios?: RateLimitsMap;
|
|
499
499
|
server_side?: RateLimitsMap;
|
|
500
500
|
web?: RateLimitsMap;
|
|
501
501
|
};
|
|
502
|
-
export
|
|
502
|
+
export type GetReactionsAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
503
503
|
reactions: ReactionResponse<StreamChatGenerics>[];
|
|
504
504
|
};
|
|
505
|
-
export
|
|
505
|
+
export type GetRepliesAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
506
506
|
messages: MessageResponse<StreamChatGenerics>[];
|
|
507
507
|
};
|
|
508
|
-
export
|
|
508
|
+
export type GetUnreadCountAPIResponse = APIResponse & {
|
|
509
509
|
channel_type: {
|
|
510
510
|
channel_count: number;
|
|
511
511
|
channel_type: string;
|
|
@@ -525,28 +525,28 @@ export declare type GetUnreadCountAPIResponse = APIResponse & {
|
|
|
525
525
|
total_unread_count: number;
|
|
526
526
|
total_unread_threads_count: number;
|
|
527
527
|
};
|
|
528
|
-
export
|
|
529
|
-
export
|
|
528
|
+
export type ChatLevelPushPreference = 'all' | 'none' | 'mentions' | (string & {});
|
|
529
|
+
export type PushPreference = {
|
|
530
530
|
callLevel?: 'all' | 'none' | (string & {});
|
|
531
531
|
chatLevel?: ChatLevelPushPreference;
|
|
532
532
|
disabledUntil?: string;
|
|
533
533
|
removeDisable?: boolean;
|
|
534
534
|
};
|
|
535
|
-
export
|
|
535
|
+
export type ChannelPushPreference = {
|
|
536
536
|
chatLevel?: ChatLevelPushPreference;
|
|
537
537
|
disabledUntil?: string;
|
|
538
538
|
removeDisable?: boolean;
|
|
539
539
|
};
|
|
540
|
-
export
|
|
540
|
+
export type UpsertPushPreferencesResponse = APIResponse & {
|
|
541
541
|
userChannelPreferences: Record<string, Record<string, ChannelPushPreference>>;
|
|
542
542
|
userPreferences: Record<string, PushPreference>;
|
|
543
543
|
};
|
|
544
|
-
export
|
|
544
|
+
export type GetUnreadCountBatchAPIResponse = APIResponse & {
|
|
545
545
|
counts_by_user: {
|
|
546
546
|
[userId: string]: GetUnreadCountAPIResponse;
|
|
547
547
|
};
|
|
548
548
|
};
|
|
549
|
-
export
|
|
549
|
+
export type ListChannelResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
550
550
|
channel_types: Record<string, Omit<CreateChannelOptions<StreamChatGenerics>, 'client_id' | 'connection_id' | 'commands'> & {
|
|
551
551
|
commands: CommandResponse<StreamChatGenerics>[];
|
|
552
552
|
created_at: string;
|
|
@@ -554,20 +554,20 @@ export declare type ListChannelResponse<StreamChatGenerics extends ExtendableGen
|
|
|
554
554
|
grants?: Record<string, string[]>;
|
|
555
555
|
}>;
|
|
556
556
|
};
|
|
557
|
-
export
|
|
558
|
-
export
|
|
557
|
+
export type ListChannelTypesAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = ListChannelResponse<StreamChatGenerics>;
|
|
558
|
+
export type ListCommandsResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
559
559
|
commands: Array<CreateCommandOptions<StreamChatGenerics> & Partial<CreatedAtUpdatedAt>>;
|
|
560
560
|
};
|
|
561
|
-
export
|
|
561
|
+
export type MuteChannelAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
562
562
|
channel_mute: ChannelMute<StreamChatGenerics>;
|
|
563
563
|
own_user: OwnUserResponse<StreamChatGenerics>;
|
|
564
564
|
channel_mutes?: ChannelMute<StreamChatGenerics>[];
|
|
565
565
|
mute?: MuteResponse<StreamChatGenerics>;
|
|
566
566
|
};
|
|
567
|
-
export
|
|
567
|
+
export type MessageResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = MessageResponseBase<StreamChatGenerics> & {
|
|
568
568
|
quoted_message?: MessageResponseBase<StreamChatGenerics>;
|
|
569
569
|
};
|
|
570
|
-
export
|
|
570
|
+
export type MessageResponseBase<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = MessageBase<StreamChatGenerics> & {
|
|
571
571
|
type: MessageLabel;
|
|
572
572
|
args?: string;
|
|
573
573
|
before_message_send_failed?: boolean;
|
|
@@ -608,55 +608,55 @@ export declare type MessageResponseBase<StreamChatGenerics extends ExtendableGen
|
|
|
608
608
|
thread_participants?: UserResponse<StreamChatGenerics>[];
|
|
609
609
|
updated_at?: string;
|
|
610
610
|
};
|
|
611
|
-
export
|
|
611
|
+
export type ReactionGroupResponse = {
|
|
612
612
|
count: number;
|
|
613
613
|
sum_scores: number;
|
|
614
614
|
first_reaction_at?: string;
|
|
615
615
|
last_reaction_at?: string;
|
|
616
616
|
};
|
|
617
|
-
export
|
|
617
|
+
export type ModerationDetailsResponse = {
|
|
618
618
|
action: 'MESSAGE_RESPONSE_ACTION_BOUNCE' | (string & {});
|
|
619
619
|
error_msg: string;
|
|
620
620
|
harms: ModerationHarmResponse[];
|
|
621
621
|
original_text: string;
|
|
622
622
|
};
|
|
623
|
-
export
|
|
623
|
+
export type ModerationHarmResponse = {
|
|
624
624
|
name: string;
|
|
625
625
|
phrase_list_ids: number[];
|
|
626
626
|
};
|
|
627
|
-
export
|
|
628
|
-
export
|
|
627
|
+
export type ModerationAction = 'bounce' | 'flag' | 'remove' | 'shadow';
|
|
628
|
+
export type ModerationResponse = {
|
|
629
629
|
action: ModerationAction;
|
|
630
630
|
original_text: string;
|
|
631
631
|
};
|
|
632
|
-
export
|
|
632
|
+
export type MuteResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
633
633
|
user: UserResponse<StreamChatGenerics>;
|
|
634
634
|
created_at?: string;
|
|
635
635
|
expires?: string;
|
|
636
636
|
target?: UserResponse<StreamChatGenerics>;
|
|
637
637
|
updated_at?: string;
|
|
638
638
|
};
|
|
639
|
-
export
|
|
639
|
+
export type MuteUserResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
640
640
|
mute?: MuteResponse<StreamChatGenerics>;
|
|
641
641
|
mutes?: Array<Mute<StreamChatGenerics>>;
|
|
642
642
|
own_user?: OwnUserResponse<StreamChatGenerics>;
|
|
643
643
|
};
|
|
644
|
-
export
|
|
644
|
+
export type BlockUserAPIResponse = APIResponse & {
|
|
645
645
|
blocked_at: string;
|
|
646
646
|
blocked_by_user_id: string;
|
|
647
647
|
blocked_user_id: string;
|
|
648
648
|
};
|
|
649
|
-
export
|
|
649
|
+
export type GetBlockedUsersAPIResponse = APIResponse & {
|
|
650
650
|
blocks: BlockedUserDetails[];
|
|
651
651
|
};
|
|
652
|
-
export
|
|
652
|
+
export type BlockedUserDetails = APIResponse & {
|
|
653
653
|
blocked_user: UserResponse;
|
|
654
654
|
blocked_user_id: string;
|
|
655
655
|
created_at: string;
|
|
656
656
|
user: UserResponse;
|
|
657
657
|
user_id: string;
|
|
658
658
|
};
|
|
659
|
-
export
|
|
659
|
+
export type OwnUserBase<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
660
660
|
channel_mutes: ChannelMute<StreamChatGenerics>[];
|
|
661
661
|
devices: Device<StreamChatGenerics>[];
|
|
662
662
|
mutes: Mute<StreamChatGenerics>[];
|
|
@@ -669,33 +669,33 @@ export declare type OwnUserBase<StreamChatGenerics extends ExtendableGenerics =
|
|
|
669
669
|
push_preferences?: PushPreference;
|
|
670
670
|
roles?: string[];
|
|
671
671
|
};
|
|
672
|
-
export
|
|
673
|
-
export
|
|
672
|
+
export type OwnUserResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = UserResponse<StreamChatGenerics> & OwnUserBase<StreamChatGenerics>;
|
|
673
|
+
export type PartialUpdateChannelAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
674
674
|
channel: ChannelResponse<StreamChatGenerics>;
|
|
675
675
|
members: ChannelMemberResponse<StreamChatGenerics>[];
|
|
676
676
|
};
|
|
677
|
-
export
|
|
677
|
+
export type PermissionAPIResponse = APIResponse & {
|
|
678
678
|
permission?: PermissionAPIObject;
|
|
679
679
|
};
|
|
680
|
-
export
|
|
680
|
+
export type PermissionsAPIResponse = APIResponse & {
|
|
681
681
|
permissions?: PermissionAPIObject[];
|
|
682
682
|
};
|
|
683
|
-
export
|
|
683
|
+
export type ReactionAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
684
684
|
message: MessageResponse<StreamChatGenerics>;
|
|
685
685
|
reaction: ReactionResponse<StreamChatGenerics>;
|
|
686
686
|
};
|
|
687
|
-
export
|
|
687
|
+
export type ReactionResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = Reaction<StreamChatGenerics> & {
|
|
688
688
|
created_at: string;
|
|
689
689
|
message_id: string;
|
|
690
690
|
updated_at: string;
|
|
691
691
|
};
|
|
692
|
-
export
|
|
692
|
+
export type ReadResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
693
693
|
last_read: string;
|
|
694
694
|
user: UserResponse<StreamChatGenerics>;
|
|
695
695
|
last_read_message_id?: string;
|
|
696
696
|
unread_messages?: number;
|
|
697
697
|
};
|
|
698
|
-
export
|
|
698
|
+
export type SearchAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
699
699
|
results: {
|
|
700
700
|
message: MessageResponse<StreamChatGenerics>;
|
|
701
701
|
}[];
|
|
@@ -703,54 +703,54 @@ export declare type SearchAPIResponse<StreamChatGenerics extends ExtendableGener
|
|
|
703
703
|
previous?: string;
|
|
704
704
|
results_warning?: SearchWarning | null;
|
|
705
705
|
};
|
|
706
|
-
export
|
|
706
|
+
export type SearchWarning = {
|
|
707
707
|
channel_search_cids: string[];
|
|
708
708
|
channel_search_count: number;
|
|
709
709
|
warning_code: number;
|
|
710
710
|
warning_description: string;
|
|
711
711
|
};
|
|
712
|
-
export
|
|
712
|
+
export type SendFileAPIResponse = APIResponse & {
|
|
713
713
|
file: string;
|
|
714
714
|
thumb_url?: string;
|
|
715
715
|
};
|
|
716
|
-
export
|
|
716
|
+
export type SendMessageAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
717
717
|
message: MessageResponse<StreamChatGenerics>;
|
|
718
718
|
pending_message_metadata?: Record<string, string> | null;
|
|
719
719
|
};
|
|
720
|
-
export
|
|
720
|
+
export type SyncResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
721
721
|
events: Event<StreamChatGenerics>[];
|
|
722
722
|
inaccessible_cids?: string[];
|
|
723
723
|
};
|
|
724
|
-
export
|
|
724
|
+
export type TruncateChannelAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
725
725
|
channel: ChannelResponse<StreamChatGenerics>;
|
|
726
726
|
message?: MessageResponse<StreamChatGenerics>;
|
|
727
727
|
};
|
|
728
|
-
export
|
|
728
|
+
export type UpdateChannelAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
729
729
|
channel: ChannelResponse<StreamChatGenerics>;
|
|
730
730
|
members: ChannelMemberResponse<StreamChatGenerics>[];
|
|
731
731
|
message?: MessageResponse<StreamChatGenerics>;
|
|
732
732
|
};
|
|
733
|
-
export
|
|
733
|
+
export type UpdateChannelResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & Omit<CreateChannelOptions<StreamChatGenerics>, 'client_id' | 'connection_id'> & {
|
|
734
734
|
created_at: string;
|
|
735
735
|
updated_at: string;
|
|
736
736
|
};
|
|
737
|
-
export
|
|
737
|
+
export type UpdateCommandResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
738
738
|
command: UpdateCommandOptions<StreamChatGenerics> & CreatedAtUpdatedAt & {
|
|
739
739
|
name: CommandVariants<StreamChatGenerics>;
|
|
740
740
|
};
|
|
741
741
|
};
|
|
742
|
-
export
|
|
742
|
+
export type UpdateMessageAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
743
743
|
message: MessageResponse<StreamChatGenerics>;
|
|
744
744
|
};
|
|
745
|
-
export
|
|
745
|
+
export type UsersAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
746
746
|
users: Array<UserResponse<StreamChatGenerics>>;
|
|
747
747
|
};
|
|
748
|
-
export
|
|
748
|
+
export type UpdateUsersAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
749
749
|
users: {
|
|
750
750
|
[key: string]: UserResponse<StreamChatGenerics>;
|
|
751
751
|
};
|
|
752
752
|
};
|
|
753
|
-
export
|
|
753
|
+
export type UserResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = User<StreamChatGenerics> & {
|
|
754
754
|
banned?: boolean;
|
|
755
755
|
blocked_user_ids?: string[];
|
|
756
756
|
created_at?: string;
|
|
@@ -765,7 +765,7 @@ export declare type UserResponse<StreamChatGenerics extends ExtendableGenerics =
|
|
|
765
765
|
shadow_banned?: boolean;
|
|
766
766
|
updated_at?: string;
|
|
767
767
|
};
|
|
768
|
-
export
|
|
768
|
+
export type PrivacySettings = {
|
|
769
769
|
read_receipts?: {
|
|
770
770
|
enabled?: boolean;
|
|
771
771
|
};
|
|
@@ -773,40 +773,40 @@ export declare type PrivacySettings = {
|
|
|
773
773
|
enabled?: boolean;
|
|
774
774
|
};
|
|
775
775
|
};
|
|
776
|
-
export
|
|
776
|
+
export type PushNotificationSettings = {
|
|
777
777
|
disabled?: boolean;
|
|
778
778
|
disabled_until?: string | null;
|
|
779
779
|
};
|
|
780
780
|
/**
|
|
781
781
|
* Option Types
|
|
782
782
|
*/
|
|
783
|
-
export
|
|
783
|
+
export type MessageFlagsPaginationOptions = {
|
|
784
784
|
limit?: number;
|
|
785
785
|
offset?: number;
|
|
786
786
|
};
|
|
787
|
-
export
|
|
787
|
+
export type FlagsPaginationOptions = {
|
|
788
788
|
limit?: number;
|
|
789
789
|
offset?: number;
|
|
790
790
|
};
|
|
791
|
-
export
|
|
791
|
+
export type FlagReportsPaginationOptions = {
|
|
792
792
|
limit?: number;
|
|
793
793
|
offset?: number;
|
|
794
794
|
};
|
|
795
|
-
export
|
|
795
|
+
export type ReviewFlagReportOptions = {
|
|
796
796
|
review_details?: Object;
|
|
797
797
|
user_id?: string;
|
|
798
798
|
};
|
|
799
|
-
export
|
|
799
|
+
export type BannedUsersPaginationOptions = Omit<PaginationOptions, 'id_gt' | 'id_gte' | 'id_lt' | 'id_lte'> & {
|
|
800
800
|
exclude_expired_bans?: boolean;
|
|
801
801
|
};
|
|
802
|
-
export
|
|
802
|
+
export type BanUserOptions<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = UnBanUserOptions & {
|
|
803
803
|
banned_by?: UserResponse<StreamChatGenerics>;
|
|
804
804
|
banned_by_id?: string;
|
|
805
805
|
ip_ban?: boolean;
|
|
806
806
|
reason?: string;
|
|
807
807
|
timeout?: number;
|
|
808
808
|
};
|
|
809
|
-
export
|
|
809
|
+
export type ChannelOptions = {
|
|
810
810
|
limit?: number;
|
|
811
811
|
member_limit?: number;
|
|
812
812
|
message_limit?: number;
|
|
@@ -816,7 +816,7 @@ export declare type ChannelOptions = {
|
|
|
816
816
|
user_id?: string;
|
|
817
817
|
watch?: boolean;
|
|
818
818
|
};
|
|
819
|
-
export
|
|
819
|
+
export type ChannelQueryOptions<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
820
820
|
client_id?: string;
|
|
821
821
|
connection_id?: string;
|
|
822
822
|
data?: ChannelResponse<StreamChatGenerics>;
|
|
@@ -828,11 +828,11 @@ export declare type ChannelQueryOptions<StreamChatGenerics extends ExtendableGen
|
|
|
828
828
|
watch?: boolean;
|
|
829
829
|
watchers?: PaginationOptions;
|
|
830
830
|
};
|
|
831
|
-
export
|
|
831
|
+
export type ChannelStateOptions = {
|
|
832
832
|
offlineMode?: boolean;
|
|
833
833
|
skipInitialization?: string[];
|
|
834
834
|
};
|
|
835
|
-
export
|
|
835
|
+
export type CreateChannelOptions<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
836
836
|
automod?: ChannelConfigAutomod;
|
|
837
837
|
automod_behavior?: ChannelConfigAutomodBehavior;
|
|
838
838
|
automod_thresholds?: ChannelConfigAutomodThresholds;
|
|
@@ -863,13 +863,13 @@ export declare type CreateChannelOptions<StreamChatGenerics extends ExtendableGe
|
|
|
863
863
|
uploads?: boolean;
|
|
864
864
|
url_enrichment?: boolean;
|
|
865
865
|
};
|
|
866
|
-
export
|
|
866
|
+
export type CreateCommandOptions<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
867
867
|
description: string;
|
|
868
868
|
name: CommandVariants<StreamChatGenerics>;
|
|
869
869
|
args?: string;
|
|
870
870
|
set?: CommandVariants<StreamChatGenerics>;
|
|
871
871
|
};
|
|
872
|
-
export
|
|
872
|
+
export type CustomPermissionOptions = {
|
|
873
873
|
action: string;
|
|
874
874
|
condition: object;
|
|
875
875
|
id: string;
|
|
@@ -878,12 +878,12 @@ export declare type CustomPermissionOptions = {
|
|
|
878
878
|
owner?: boolean;
|
|
879
879
|
same_team?: boolean;
|
|
880
880
|
};
|
|
881
|
-
export
|
|
881
|
+
export type DeactivateUsersOptions = {
|
|
882
882
|
created_by_id?: string;
|
|
883
883
|
mark_messages_deleted?: boolean;
|
|
884
884
|
};
|
|
885
|
-
export
|
|
886
|
-
export
|
|
885
|
+
export type NewMemberPayload<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = StreamChatGenerics['memberType'] & Pick<ChannelMemberResponse<StreamChatGenerics>, 'user_id' | 'channel_role'>;
|
|
886
|
+
export type InviteOptions<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
887
887
|
accept_invite?: boolean;
|
|
888
888
|
add_members?: string[];
|
|
889
889
|
add_moderators?: string[];
|
|
@@ -899,22 +899,22 @@ export declare type InviteOptions<StreamChatGenerics extends ExtendableGenerics
|
|
|
899
899
|
user_id?: string;
|
|
900
900
|
};
|
|
901
901
|
/** @deprecated use MarkChannelsReadOptions instead */
|
|
902
|
-
export
|
|
903
|
-
export
|
|
902
|
+
export type MarkAllReadOptions<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = MarkChannelsReadOptions<StreamChatGenerics>;
|
|
903
|
+
export type MarkChannelsReadOptions<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
904
904
|
client_id?: string;
|
|
905
905
|
connection_id?: string;
|
|
906
906
|
read_by_channel?: Record<string, string>;
|
|
907
907
|
user?: UserResponse<StreamChatGenerics>;
|
|
908
908
|
user_id?: string;
|
|
909
909
|
};
|
|
910
|
-
export
|
|
910
|
+
export type MarkReadOptions<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
911
911
|
client_id?: string;
|
|
912
912
|
connection_id?: string;
|
|
913
913
|
thread_id?: string;
|
|
914
914
|
user?: UserResponse<StreamChatGenerics>;
|
|
915
915
|
user_id?: string;
|
|
916
916
|
};
|
|
917
|
-
export
|
|
917
|
+
export type MarkUnreadOptions<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
918
918
|
client_id?: string;
|
|
919
919
|
connection_id?: string;
|
|
920
920
|
message_id?: string;
|
|
@@ -922,7 +922,7 @@ export declare type MarkUnreadOptions<StreamChatGenerics extends ExtendableGener
|
|
|
922
922
|
user?: UserResponse<StreamChatGenerics>;
|
|
923
923
|
user_id?: string;
|
|
924
924
|
};
|
|
925
|
-
export
|
|
925
|
+
export type MuteUserOptions<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
926
926
|
client_id?: string;
|
|
927
927
|
connection_id?: string;
|
|
928
928
|
id?: string;
|
|
@@ -933,7 +933,7 @@ export declare type MuteUserOptions<StreamChatGenerics extends ExtendableGeneric
|
|
|
933
933
|
user?: UserResponse<StreamChatGenerics>;
|
|
934
934
|
user_id?: string;
|
|
935
935
|
};
|
|
936
|
-
export
|
|
936
|
+
export type PaginationOptions = {
|
|
937
937
|
created_at_after?: string | Date;
|
|
938
938
|
created_at_after_or_equal?: string | Date;
|
|
939
939
|
created_at_before?: string | Date;
|
|
@@ -945,11 +945,11 @@ export declare type PaginationOptions = {
|
|
|
945
945
|
limit?: number;
|
|
946
946
|
offset?: number;
|
|
947
947
|
};
|
|
948
|
-
export
|
|
948
|
+
export type MessagePaginationOptions = PaginationOptions & {
|
|
949
949
|
created_at_around?: string | Date;
|
|
950
950
|
id_around?: string;
|
|
951
951
|
};
|
|
952
|
-
export
|
|
952
|
+
export type PinnedMessagePaginationOptions = {
|
|
953
953
|
id_around?: string;
|
|
954
954
|
id_gt?: string;
|
|
955
955
|
id_gte?: string;
|
|
@@ -963,7 +963,7 @@ export declare type PinnedMessagePaginationOptions = {
|
|
|
963
963
|
pinned_at_before?: string | Date;
|
|
964
964
|
pinned_at_before_or_equal?: string | Date;
|
|
965
965
|
};
|
|
966
|
-
export
|
|
966
|
+
export type QueryMembersOptions = {
|
|
967
967
|
created_at_after?: string;
|
|
968
968
|
created_at_after_or_equal?: string;
|
|
969
969
|
created_at_before?: string;
|
|
@@ -975,22 +975,22 @@ export declare type QueryMembersOptions = {
|
|
|
975
975
|
user_id_lt?: string;
|
|
976
976
|
user_id_lte?: string;
|
|
977
977
|
};
|
|
978
|
-
export
|
|
978
|
+
export type ReactivateUserOptions = {
|
|
979
979
|
created_by_id?: string;
|
|
980
980
|
name?: string;
|
|
981
981
|
restore_messages?: boolean;
|
|
982
982
|
};
|
|
983
|
-
export
|
|
983
|
+
export type ReactivateUsersOptions = {
|
|
984
984
|
created_by_id?: string;
|
|
985
985
|
restore_messages?: boolean;
|
|
986
986
|
};
|
|
987
|
-
export
|
|
987
|
+
export type SearchOptions<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
988
988
|
limit?: number;
|
|
989
989
|
next?: string;
|
|
990
990
|
offset?: number;
|
|
991
991
|
sort?: SearchMessageSort<StreamChatGenerics>;
|
|
992
992
|
};
|
|
993
|
-
export
|
|
993
|
+
export type StreamChatOptions = AxiosRequestConfig & {
|
|
994
994
|
/**
|
|
995
995
|
* Used to disable warnings that are triggered by using connectUser or connectAnonymousUser server-side.
|
|
996
996
|
*/
|
|
@@ -1040,7 +1040,7 @@ export declare type StreamChatOptions = AxiosRequestConfig & {
|
|
|
1040
1040
|
*/
|
|
1041
1041
|
wsConnection?: StableWSConnection;
|
|
1042
1042
|
};
|
|
1043
|
-
export
|
|
1043
|
+
export type SyncOptions = {
|
|
1044
1044
|
/**
|
|
1045
1045
|
* This will behave as queryChannels option.
|
|
1046
1046
|
*/
|
|
@@ -1052,7 +1052,7 @@ export declare type SyncOptions = {
|
|
|
1052
1052
|
*/
|
|
1053
1053
|
with_inaccessible_cids?: boolean;
|
|
1054
1054
|
};
|
|
1055
|
-
export
|
|
1055
|
+
export type UnBanUserOptions = {
|
|
1056
1056
|
client_id?: string;
|
|
1057
1057
|
connection_id?: string;
|
|
1058
1058
|
id?: string;
|
|
@@ -1060,16 +1060,16 @@ export declare type UnBanUserOptions = {
|
|
|
1060
1060
|
target_user_id?: string;
|
|
1061
1061
|
type?: string;
|
|
1062
1062
|
};
|
|
1063
|
-
export
|
|
1063
|
+
export type UpdateChannelOptions<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = Omit<CreateChannelOptions<StreamChatGenerics>, 'name'> & {
|
|
1064
1064
|
created_at?: string;
|
|
1065
1065
|
updated_at?: string;
|
|
1066
1066
|
};
|
|
1067
|
-
export
|
|
1067
|
+
export type UpdateCommandOptions<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
1068
1068
|
description: string;
|
|
1069
1069
|
args?: string;
|
|
1070
1070
|
set?: CommandVariants<StreamChatGenerics>;
|
|
1071
1071
|
};
|
|
1072
|
-
export
|
|
1072
|
+
export type UserOptions = {
|
|
1073
1073
|
include_deactivated_users?: boolean;
|
|
1074
1074
|
limit?: number;
|
|
1075
1075
|
offset?: number;
|
|
@@ -1078,11 +1078,11 @@ export declare type UserOptions = {
|
|
|
1078
1078
|
/**
|
|
1079
1079
|
* Event Types
|
|
1080
1080
|
*/
|
|
1081
|
-
export
|
|
1081
|
+
export type ConnectionChangeEvent = {
|
|
1082
1082
|
type: EventTypes;
|
|
1083
1083
|
online?: boolean;
|
|
1084
1084
|
};
|
|
1085
|
-
export
|
|
1085
|
+
export type Event<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = StreamChatGenerics['eventType'] & {
|
|
1086
1086
|
type: EventTypes;
|
|
1087
1087
|
ai_message?: string;
|
|
1088
1088
|
ai_state?: AIState;
|
|
@@ -1125,22 +1125,22 @@ export declare type Event<StreamChatGenerics extends ExtendableGenerics = Defaul
|
|
|
1125
1125
|
user_id?: string;
|
|
1126
1126
|
watcher_count?: number;
|
|
1127
1127
|
};
|
|
1128
|
-
export
|
|
1128
|
+
export type UserCustomEvent<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = StreamChatGenerics['eventType'] & {
|
|
1129
1129
|
type: string;
|
|
1130
1130
|
};
|
|
1131
|
-
export
|
|
1132
|
-
export
|
|
1131
|
+
export type EventHandler<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = (event: Event<StreamChatGenerics>) => void;
|
|
1132
|
+
export type EventTypes = 'all' | keyof typeof EVENT_MAP;
|
|
1133
1133
|
/**
|
|
1134
1134
|
* Filter Types
|
|
1135
1135
|
*/
|
|
1136
|
-
export
|
|
1137
|
-
export
|
|
1136
|
+
export type AscDesc = 1 | -1;
|
|
1137
|
+
export type MessageFlagsFiltersOptions = {
|
|
1138
1138
|
channel_cid?: string;
|
|
1139
1139
|
is_reviewed?: boolean;
|
|
1140
1140
|
team?: string;
|
|
1141
1141
|
user_id?: string;
|
|
1142
1142
|
};
|
|
1143
|
-
export
|
|
1143
|
+
export type MessageFlagsFilters = QueryFilters<{
|
|
1144
1144
|
channel_cid?: RequireOnlyOne<Pick<QueryFilter<MessageFlagsFiltersOptions['channel_cid']>, '$eq' | '$in'>> | PrimitiveFilter<MessageFlagsFiltersOptions['channel_cid']>;
|
|
1145
1145
|
} & {
|
|
1146
1146
|
team?: RequireOnlyOne<Pick<QueryFilter<MessageFlagsFiltersOptions['team']>, '$eq' | '$in'>> | PrimitiveFilter<MessageFlagsFiltersOptions['team']>;
|
|
@@ -1149,7 +1149,7 @@ export declare type MessageFlagsFilters = QueryFilters<{
|
|
|
1149
1149
|
} & {
|
|
1150
1150
|
[Key in keyof Omit<MessageFlagsFiltersOptions, 'channel_cid' | 'user_id' | 'is_reviewed'>]: RequireOnlyOne<QueryFilter<MessageFlagsFiltersOptions[Key]>> | PrimitiveFilter<MessageFlagsFiltersOptions[Key]>;
|
|
1151
1151
|
}>;
|
|
1152
|
-
export
|
|
1152
|
+
export type FlagsFiltersOptions = {
|
|
1153
1153
|
channel_cid?: string;
|
|
1154
1154
|
message_id?: string;
|
|
1155
1155
|
message_user_id?: string;
|
|
@@ -1157,7 +1157,7 @@ export declare type FlagsFiltersOptions = {
|
|
|
1157
1157
|
team?: string;
|
|
1158
1158
|
user_id?: string;
|
|
1159
1159
|
};
|
|
1160
|
-
export
|
|
1160
|
+
export type FlagsFilters = QueryFilters<{
|
|
1161
1161
|
user_id?: RequireOnlyOne<Pick<QueryFilter<FlagsFiltersOptions['user_id']>, '$eq' | '$in'>> | PrimitiveFilter<FlagsFiltersOptions['user_id']>;
|
|
1162
1162
|
} & {
|
|
1163
1163
|
message_id?: RequireOnlyOne<Pick<QueryFilter<FlagsFiltersOptions['message_id']>, '$eq' | '$in'>> | PrimitiveFilter<FlagsFiltersOptions['message_id']>;
|
|
@@ -1170,7 +1170,7 @@ export declare type FlagsFilters = QueryFilters<{
|
|
|
1170
1170
|
} & {
|
|
1171
1171
|
team?: RequireOnlyOne<Pick<QueryFilter<FlagsFiltersOptions['team']>, '$eq' | '$in'>> | PrimitiveFilter<FlagsFiltersOptions['team']>;
|
|
1172
1172
|
}>;
|
|
1173
|
-
export
|
|
1173
|
+
export type FlagReportsFiltersOptions = {
|
|
1174
1174
|
channel_cid?: string;
|
|
1175
1175
|
is_reviewed?: boolean;
|
|
1176
1176
|
message_id?: string;
|
|
@@ -1181,7 +1181,7 @@ export declare type FlagReportsFiltersOptions = {
|
|
|
1181
1181
|
team?: string;
|
|
1182
1182
|
user_id?: string;
|
|
1183
1183
|
};
|
|
1184
|
-
export
|
|
1184
|
+
export type FlagReportsFilters = QueryFilters<{
|
|
1185
1185
|
report_id?: RequireOnlyOne<Pick<QueryFilter<FlagReportsFiltersOptions['report_id']>, '$eq' | '$in'>> | PrimitiveFilter<FlagReportsFiltersOptions['report_id']>;
|
|
1186
1186
|
} & {
|
|
1187
1187
|
review_result?: RequireOnlyOne<Pick<QueryFilter<FlagReportsFiltersOptions['review_result']>, '$eq' | '$in'>> | PrimitiveFilter<FlagReportsFiltersOptions['review_result']>;
|
|
@@ -1200,14 +1200,14 @@ export declare type FlagReportsFilters = QueryFilters<{
|
|
|
1200
1200
|
} & {
|
|
1201
1201
|
[Key in keyof Omit<FlagReportsFiltersOptions, 'report_id' | 'user_id' | 'message_id' | 'review_result' | 'reviewed_by'>]: RequireOnlyOne<QueryFilter<FlagReportsFiltersOptions[Key]>> | PrimitiveFilter<FlagReportsFiltersOptions[Key]>;
|
|
1202
1202
|
}>;
|
|
1203
|
-
export
|
|
1203
|
+
export type BannedUsersFilterOptions = {
|
|
1204
1204
|
banned_by_id?: string;
|
|
1205
1205
|
channel_cid?: string;
|
|
1206
1206
|
created_at?: string;
|
|
1207
1207
|
reason?: string;
|
|
1208
1208
|
user_id?: string;
|
|
1209
1209
|
};
|
|
1210
|
-
export
|
|
1210
|
+
export type BannedUsersFilters = QueryFilters<{
|
|
1211
1211
|
channel_cid?: RequireOnlyOne<Pick<QueryFilter<BannedUsersFilterOptions['channel_cid']>, '$eq' | '$in'>> | PrimitiveFilter<BannedUsersFilterOptions['channel_cid']>;
|
|
1212
1212
|
} & {
|
|
1213
1213
|
reason?: RequireOnlyOne<{
|
|
@@ -1216,14 +1216,14 @@ export declare type BannedUsersFilters = QueryFilters<{
|
|
|
1216
1216
|
} & {
|
|
1217
1217
|
[Key in keyof Omit<BannedUsersFilterOptions, 'channel_cid' | 'reason'>]: RequireOnlyOne<QueryFilter<BannedUsersFilterOptions[Key]>> | PrimitiveFilter<BannedUsersFilterOptions[Key]>;
|
|
1218
1218
|
}>;
|
|
1219
|
-
export
|
|
1219
|
+
export type ReactionFilters<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = QueryFilters<{
|
|
1220
1220
|
user_id?: RequireOnlyOne<Pick<QueryFilter<ReactionResponse<StreamChatGenerics>['user_id']>, '$eq' | '$in'>> | PrimitiveFilter<ReactionResponse<StreamChatGenerics>['user_id']>;
|
|
1221
1221
|
} & {
|
|
1222
1222
|
type?: RequireOnlyOne<Pick<QueryFilter<ReactionResponse<StreamChatGenerics>['type']>, '$eq'>> | PrimitiveFilter<ReactionResponse<StreamChatGenerics>['type']>;
|
|
1223
1223
|
} & {
|
|
1224
1224
|
created_at?: RequireOnlyOne<Pick<QueryFilter<PollResponse['created_at']>, '$eq' | '$gt' | '$lt' | '$gte' | '$lte'>> | PrimitiveFilter<PollResponse['created_at']>;
|
|
1225
1225
|
}>;
|
|
1226
|
-
export
|
|
1226
|
+
export type ChannelFilters<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = QueryFilters<ContainsOperator<StreamChatGenerics['channelType']> & {
|
|
1227
1227
|
members?: RequireOnlyOne<Pick<QueryFilter<string>, '$in' | '$nin'>> | RequireOnlyOne<Pick<QueryFilter<string[]>, '$eq'>> | PrimitiveFilter<string[]>;
|
|
1228
1228
|
} & {
|
|
1229
1229
|
name?: RequireOnlyOne<{
|
|
@@ -1268,19 +1268,19 @@ export declare type ChannelFilters<StreamChatGenerics extends ExtendableGenerics
|
|
|
1268
1268
|
archived?: boolean;
|
|
1269
1269
|
pinned?: boolean;
|
|
1270
1270
|
}>;
|
|
1271
|
-
export
|
|
1271
|
+
export type QueryPollsParams = {
|
|
1272
1272
|
filter?: QueryPollsFilters;
|
|
1273
1273
|
options?: QueryPollsOptions;
|
|
1274
1274
|
sort?: PollSort;
|
|
1275
1275
|
};
|
|
1276
|
-
export
|
|
1277
|
-
export
|
|
1276
|
+
export type QueryPollsOptions = Pager;
|
|
1277
|
+
export type VotesFiltersOptions = {
|
|
1278
1278
|
is_answer?: boolean;
|
|
1279
1279
|
option_id?: string;
|
|
1280
1280
|
user_id?: string;
|
|
1281
1281
|
};
|
|
1282
|
-
export
|
|
1283
|
-
export
|
|
1282
|
+
export type QueryVotesOptions = Pager;
|
|
1283
|
+
export type QueryPollsFilters = QueryFilters<{
|
|
1284
1284
|
id?: RequireOnlyOne<Pick<QueryFilter<PollResponse['id']>, '$eq' | '$in'>> | PrimitiveFilter<PollResponse['id']>;
|
|
1285
1285
|
} & {
|
|
1286
1286
|
user_id?: RequireOnlyOne<Pick<QueryFilter<VotesFiltersOptions['user_id']>, '$eq' | '$in'>> | PrimitiveFilter<VotesFiltersOptions['user_id']>;
|
|
@@ -1303,7 +1303,7 @@ export declare type QueryPollsFilters = QueryFilters<{
|
|
|
1303
1303
|
} & {
|
|
1304
1304
|
name?: RequireOnlyOne<Pick<QueryFilter<PollResponse['name']>, '$eq' | '$in'>> | PrimitiveFilter<PollResponse['name']>;
|
|
1305
1305
|
}>;
|
|
1306
|
-
export
|
|
1306
|
+
export type QueryVotesFilters = QueryFilters<{
|
|
1307
1307
|
id?: RequireOnlyOne<Pick<QueryFilter<PollResponse['id']>, '$eq' | '$in'>> | PrimitiveFilter<PollResponse['id']>;
|
|
1308
1308
|
} & {
|
|
1309
1309
|
option_id?: RequireOnlyOne<Pick<QueryFilter<VotesFiltersOptions['option_id']>, '$eq' | '$in'>> | PrimitiveFilter<VotesFiltersOptions['option_id']>;
|
|
@@ -1318,12 +1318,12 @@ export declare type QueryVotesFilters = QueryFilters<{
|
|
|
1318
1318
|
} & {
|
|
1319
1319
|
updated_at?: RequireOnlyOne<Pick<QueryFilter<PollResponse['updated_at']>, '$eq' | '$gt' | '$lt' | '$gte' | '$lte'>> | PrimitiveFilter<PollResponse['updated_at']>;
|
|
1320
1320
|
}>;
|
|
1321
|
-
export
|
|
1321
|
+
export type ContainsOperator<CustomType = {}> = {
|
|
1322
1322
|
[Key in keyof CustomType]?: CustomType[Key] extends (infer ContainType)[] ? RequireOnlyOne<{
|
|
1323
1323
|
$contains?: ContainType extends object ? PrimitiveFilter<RequireAtLeastOne<ContainType>> : PrimitiveFilter<ContainType>;
|
|
1324
1324
|
} & QueryFilter<PrimitiveFilter<ContainType>[]>> | PrimitiveFilter<PrimitiveFilter<ContainType>[]> : RequireOnlyOne<QueryFilter<CustomType[Key]>> | PrimitiveFilter<CustomType[Key]>;
|
|
1325
1325
|
};
|
|
1326
|
-
export
|
|
1326
|
+
export type MessageFilters<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = QueryFilters<ContainsOperator<StreamChatGenerics['messageType']> & {
|
|
1327
1327
|
text?: RequireOnlyOne<{
|
|
1328
1328
|
$autocomplete?: MessageResponse<StreamChatGenerics>['text'];
|
|
1329
1329
|
$q?: MessageResponse<StreamChatGenerics>['text'];
|
|
@@ -1364,11 +1364,11 @@ export declare type MessageFilters<StreamChatGenerics extends ExtendableGenerics
|
|
|
1364
1364
|
userType: StreamChatGenerics['userType'];
|
|
1365
1365
|
}>[Key]>;
|
|
1366
1366
|
}>;
|
|
1367
|
-
export
|
|
1367
|
+
export type MessageOptions = {
|
|
1368
1368
|
include_thread_participants?: boolean;
|
|
1369
1369
|
};
|
|
1370
|
-
export
|
|
1371
|
-
export
|
|
1370
|
+
export type PrimitiveFilter<ObjectType> = ObjectType | null;
|
|
1371
|
+
export type QueryFilter<ObjectType = string> = NonNullable<ObjectType> extends string | number | boolean ? {
|
|
1372
1372
|
$eq?: PrimitiveFilter<ObjectType>;
|
|
1373
1373
|
$exists?: boolean;
|
|
1374
1374
|
$gt?: PrimitiveFilter<ObjectType>;
|
|
@@ -1397,15 +1397,15 @@ export declare type QueryFilter<ObjectType = string> = NonNullable<ObjectType> e
|
|
|
1397
1397
|
*/
|
|
1398
1398
|
$nin?: PrimitiveFilter<ObjectType>[];
|
|
1399
1399
|
};
|
|
1400
|
-
export
|
|
1400
|
+
export type QueryFilters<Operators = {}> = {
|
|
1401
1401
|
[Key in keyof Operators]?: Operators[Key];
|
|
1402
1402
|
} & QueryLogicalOperators<Operators>;
|
|
1403
|
-
export
|
|
1403
|
+
export type QueryLogicalOperators<Operators> = {
|
|
1404
1404
|
$and?: ArrayOneOrMore<QueryFilters<Operators>>;
|
|
1405
1405
|
$nor?: ArrayOneOrMore<QueryFilters<Operators>>;
|
|
1406
1406
|
$or?: ArrayTwoOrMore<QueryFilters<Operators>>;
|
|
1407
1407
|
};
|
|
1408
|
-
export
|
|
1408
|
+
export type UserFilters<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = QueryFilters<ContainsOperator<StreamChatGenerics['userType']> & {
|
|
1409
1409
|
id?: RequireOnlyOne<{
|
|
1410
1410
|
$autocomplete?: UserResponse<StreamChatGenerics>['id'];
|
|
1411
1411
|
} & QueryFilter<UserResponse<StreamChatGenerics>['id']>> | PrimitiveFilter<UserResponse<StreamChatGenerics>['id']>;
|
|
@@ -1459,8 +1459,8 @@ export declare type UserFilters<StreamChatGenerics extends ExtendableGenerics =
|
|
|
1459
1459
|
userType: {};
|
|
1460
1460
|
}>[Key]>;
|
|
1461
1461
|
}>;
|
|
1462
|
-
export
|
|
1463
|
-
export
|
|
1462
|
+
export type InviteStatus = 'pending' | 'accepted' | 'rejected';
|
|
1463
|
+
export type MemberFilters<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = QueryFilters<{
|
|
1464
1464
|
banned?: {
|
|
1465
1465
|
$eq?: ChannelMemberResponse<StreamChatGenerics>['banned'];
|
|
1466
1466
|
} | ChannelMemberResponse<StreamChatGenerics>['banned'];
|
|
@@ -1522,16 +1522,16 @@ export declare type MemberFilters<StreamChatGenerics extends ExtendableGenerics
|
|
|
1522
1522
|
/**
|
|
1523
1523
|
* Sort Types
|
|
1524
1524
|
*/
|
|
1525
|
-
export
|
|
1526
|
-
export
|
|
1525
|
+
export type BannedUsersSort = BannedUsersSortBase | Array<BannedUsersSortBase>;
|
|
1526
|
+
export type BannedUsersSortBase = {
|
|
1527
1527
|
created_at?: AscDesc;
|
|
1528
1528
|
};
|
|
1529
|
-
export
|
|
1530
|
-
export
|
|
1529
|
+
export type ReactionSort<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = ReactionSortBase<StreamChatGenerics> | Array<ReactionSortBase<StreamChatGenerics>>;
|
|
1530
|
+
export type ReactionSortBase<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = Sort<StreamChatGenerics['reactionType']> & {
|
|
1531
1531
|
created_at?: AscDesc;
|
|
1532
1532
|
};
|
|
1533
|
-
export
|
|
1534
|
-
export
|
|
1533
|
+
export type ChannelSort<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = ChannelSortBase<StreamChatGenerics> | Array<ChannelSortBase<StreamChatGenerics>>;
|
|
1534
|
+
export type ChannelSortBase<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = Sort<StreamChatGenerics['channelType']> & {
|
|
1535
1535
|
created_at?: AscDesc;
|
|
1536
1536
|
has_unread?: AscDesc;
|
|
1537
1537
|
last_message_at?: AscDesc;
|
|
@@ -1541,16 +1541,16 @@ export declare type ChannelSortBase<StreamChatGenerics extends ExtendableGeneric
|
|
|
1541
1541
|
unread_count?: AscDesc;
|
|
1542
1542
|
updated_at?: AscDesc;
|
|
1543
1543
|
};
|
|
1544
|
-
export
|
|
1545
|
-
export
|
|
1544
|
+
export type PinnedMessagesSort = PinnedMessagesSortBase | Array<PinnedMessagesSortBase>;
|
|
1545
|
+
export type PinnedMessagesSortBase = {
|
|
1546
1546
|
pinned_at?: AscDesc;
|
|
1547
1547
|
};
|
|
1548
|
-
export
|
|
1548
|
+
export type Sort<T> = {
|
|
1549
1549
|
[P in keyof T]?: AscDesc;
|
|
1550
1550
|
};
|
|
1551
|
-
export
|
|
1552
|
-
export
|
|
1553
|
-
export
|
|
1551
|
+
export type UserSort<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = Sort<UserResponse<StreamChatGenerics>> | Array<Sort<UserResponse<StreamChatGenerics>>>;
|
|
1552
|
+
export type MemberSort<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = Sort<Pick<UserResponse<StreamChatGenerics>, 'id' | 'created_at' | 'last_active' | 'name' | 'updated_at'>> | Array<Sort<Pick<UserResponse<StreamChatGenerics>, 'id' | 'created_at' | 'last_active' | 'name' | 'updated_at'>>>;
|
|
1553
|
+
export type SearchMessageSortBase<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = Sort<StreamChatGenerics['messageType']> & {
|
|
1554
1554
|
attachments?: AscDesc;
|
|
1555
1555
|
'attachments.type'?: AscDesc;
|
|
1556
1556
|
created_at?: AscDesc;
|
|
@@ -1565,18 +1565,18 @@ export declare type SearchMessageSortBase<StreamChatGenerics extends ExtendableG
|
|
|
1565
1565
|
updated_at?: AscDesc;
|
|
1566
1566
|
'user.id'?: AscDesc;
|
|
1567
1567
|
};
|
|
1568
|
-
export
|
|
1569
|
-
export
|
|
1570
|
-
export
|
|
1571
|
-
export
|
|
1568
|
+
export type SearchMessageSort<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = SearchMessageSortBase<StreamChatGenerics> | Array<SearchMessageSortBase<StreamChatGenerics>>;
|
|
1569
|
+
export type QuerySort<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = BannedUsersSort | ChannelSort<StreamChatGenerics> | SearchMessageSort<StreamChatGenerics> | UserSort<StreamChatGenerics>;
|
|
1570
|
+
export type PollSort = PollSortBase | Array<PollSortBase>;
|
|
1571
|
+
export type PollSortBase = {
|
|
1572
1572
|
created_at?: AscDesc;
|
|
1573
1573
|
id?: AscDesc;
|
|
1574
1574
|
is_closed?: AscDesc;
|
|
1575
1575
|
name?: AscDesc;
|
|
1576
1576
|
updated_at?: AscDesc;
|
|
1577
1577
|
};
|
|
1578
|
-
export
|
|
1579
|
-
export
|
|
1578
|
+
export type VoteSort = VoteSortBase | Array<VoteSortBase>;
|
|
1579
|
+
export type VoteSortBase = {
|
|
1580
1580
|
created_at?: AscDesc;
|
|
1581
1581
|
id?: AscDesc;
|
|
1582
1582
|
is_closed?: AscDesc;
|
|
@@ -1586,15 +1586,15 @@ export declare type VoteSortBase = {
|
|
|
1586
1586
|
/**
|
|
1587
1587
|
* Base Types
|
|
1588
1588
|
*/
|
|
1589
|
-
export
|
|
1589
|
+
export type Action = {
|
|
1590
1590
|
name?: string;
|
|
1591
1591
|
style?: string;
|
|
1592
1592
|
text?: string;
|
|
1593
1593
|
type?: string;
|
|
1594
1594
|
value?: string;
|
|
1595
1595
|
};
|
|
1596
|
-
export
|
|
1597
|
-
export
|
|
1596
|
+
export type AnonUserType = {};
|
|
1597
|
+
export type APNConfig = {
|
|
1598
1598
|
auth_key?: string;
|
|
1599
1599
|
auth_type?: string;
|
|
1600
1600
|
bundle_id?: string;
|
|
@@ -1606,12 +1606,12 @@ export declare type APNConfig = {
|
|
|
1606
1606
|
p12_cert?: string;
|
|
1607
1607
|
team_id?: string;
|
|
1608
1608
|
};
|
|
1609
|
-
export
|
|
1609
|
+
export type AgoraOptions = {
|
|
1610
1610
|
app_certificate: string;
|
|
1611
1611
|
app_id: string;
|
|
1612
1612
|
role_map?: Record<string, string>;
|
|
1613
1613
|
};
|
|
1614
|
-
export
|
|
1614
|
+
export type HMSOptions = {
|
|
1615
1615
|
app_access_key: string;
|
|
1616
1616
|
app_secret: string;
|
|
1617
1617
|
default_role: string;
|
|
@@ -1619,14 +1619,14 @@ export declare type HMSOptions = {
|
|
|
1619
1619
|
default_region?: string;
|
|
1620
1620
|
role_map?: Record<string, string>;
|
|
1621
1621
|
};
|
|
1622
|
-
export
|
|
1622
|
+
export type AsyncModerationOptions = {
|
|
1623
1623
|
callback?: {
|
|
1624
1624
|
mode?: 'CALLBACK_MODE_NONE' | 'CALLBACK_MODE_REST' | 'CALLBACK_MODE_TWIRP';
|
|
1625
1625
|
server_url?: string;
|
|
1626
1626
|
};
|
|
1627
1627
|
timeout_ms?: number;
|
|
1628
1628
|
};
|
|
1629
|
-
export
|
|
1629
|
+
export type AppSettings = {
|
|
1630
1630
|
agora_options?: AgoraOptions | null;
|
|
1631
1631
|
allowed_flag_reasons?: string[];
|
|
1632
1632
|
apn_config?: {
|
|
@@ -1688,7 +1688,7 @@ export declare type AppSettings = {
|
|
|
1688
1688
|
secret: string;
|
|
1689
1689
|
};
|
|
1690
1690
|
};
|
|
1691
|
-
export
|
|
1691
|
+
export type Attachment<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = StreamChatGenerics['attachmentType'] & {
|
|
1692
1692
|
actions?: Action[];
|
|
1693
1693
|
asset_url?: string;
|
|
1694
1694
|
author_icon?: string;
|
|
@@ -1717,7 +1717,7 @@ export declare type Attachment<StreamChatGenerics extends ExtendableGenerics = D
|
|
|
1717
1717
|
type?: string;
|
|
1718
1718
|
waveform_data?: Array<number>;
|
|
1719
1719
|
};
|
|
1720
|
-
export
|
|
1720
|
+
export type OGAttachment = {
|
|
1721
1721
|
og_scrape_url: string;
|
|
1722
1722
|
asset_url?: string;
|
|
1723
1723
|
author_link?: string;
|
|
@@ -1729,19 +1729,19 @@ export declare type OGAttachment = {
|
|
|
1729
1729
|
title_link?: string;
|
|
1730
1730
|
type?: string | 'video' | 'audio' | 'image';
|
|
1731
1731
|
};
|
|
1732
|
-
export
|
|
1732
|
+
export type BlockList = {
|
|
1733
1733
|
name: string;
|
|
1734
1734
|
words: string[];
|
|
1735
1735
|
team?: string;
|
|
1736
1736
|
type?: string;
|
|
1737
1737
|
validate?: boolean;
|
|
1738
1738
|
};
|
|
1739
|
-
export
|
|
1739
|
+
export type ChannelConfig<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = ChannelConfigFields & CreatedAtUpdatedAt & {
|
|
1740
1740
|
commands?: CommandVariants<StreamChatGenerics>[];
|
|
1741
1741
|
};
|
|
1742
|
-
export
|
|
1743
|
-
export
|
|
1744
|
-
export
|
|
1742
|
+
export type ChannelConfigAutomod = '' | 'AI' | 'disabled' | 'simple';
|
|
1743
|
+
export type ChannelConfigAutomodBehavior = '' | 'block' | 'flag';
|
|
1744
|
+
export type ChannelConfigAutomodThresholds = null | {
|
|
1745
1745
|
explicit?: {
|
|
1746
1746
|
block?: number;
|
|
1747
1747
|
flag?: number;
|
|
@@ -1755,7 +1755,7 @@ export declare type ChannelConfigAutomodThresholds = null | {
|
|
|
1755
1755
|
flag?: number;
|
|
1756
1756
|
};
|
|
1757
1757
|
};
|
|
1758
|
-
export
|
|
1758
|
+
export type ChannelConfigFields = {
|
|
1759
1759
|
reminders: boolean;
|
|
1760
1760
|
automod?: ChannelConfigAutomod;
|
|
1761
1761
|
automod_behavior?: ChannelConfigAutomodBehavior;
|
|
@@ -1779,10 +1779,10 @@ export declare type ChannelConfigFields = {
|
|
|
1779
1779
|
uploads?: boolean;
|
|
1780
1780
|
url_enrichment?: boolean;
|
|
1781
1781
|
};
|
|
1782
|
-
export
|
|
1782
|
+
export type ChannelConfigWithInfo<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = ChannelConfigFields & CreatedAtUpdatedAt & {
|
|
1783
1783
|
commands?: CommandResponse<StreamChatGenerics>[];
|
|
1784
1784
|
};
|
|
1785
|
-
export
|
|
1785
|
+
export type ChannelData<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = StreamChatGenerics['channelType'] & {
|
|
1786
1786
|
blocked?: boolean;
|
|
1787
1787
|
members?: string[] | Array<NewMemberPayload<StreamChatGenerics>>;
|
|
1788
1788
|
name?: string;
|
|
@@ -1790,22 +1790,22 @@ export declare type ChannelData<StreamChatGenerics extends ExtendableGenerics =
|
|
|
1790
1790
|
/**
|
|
1791
1791
|
* @deprecated Use ChannelMemberResponse instead
|
|
1792
1792
|
*/
|
|
1793
|
-
export
|
|
1794
|
-
export
|
|
1793
|
+
export type ChannelMembership<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = ChannelMemberResponse<StreamChatGenerics>;
|
|
1794
|
+
export type ChannelMute<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
1795
1795
|
user: UserResponse<StreamChatGenerics>;
|
|
1796
1796
|
channel?: ChannelResponse<StreamChatGenerics>;
|
|
1797
1797
|
created_at?: string;
|
|
1798
1798
|
expires?: string;
|
|
1799
1799
|
updated_at?: string;
|
|
1800
1800
|
};
|
|
1801
|
-
export
|
|
1801
|
+
export type ChannelRole = {
|
|
1802
1802
|
custom?: boolean;
|
|
1803
1803
|
name?: string;
|
|
1804
1804
|
owner?: boolean;
|
|
1805
1805
|
resource?: string;
|
|
1806
1806
|
same_team?: boolean;
|
|
1807
1807
|
};
|
|
1808
|
-
export
|
|
1808
|
+
export type CheckPushInput<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
1809
1809
|
apn_template?: string;
|
|
1810
1810
|
client_id?: string;
|
|
1811
1811
|
connection_id?: string;
|
|
@@ -1815,20 +1815,20 @@ export declare type CheckPushInput<StreamChatGenerics extends ExtendableGenerics
|
|
|
1815
1815
|
user?: UserResponse<StreamChatGenerics>;
|
|
1816
1816
|
user_id?: string;
|
|
1817
1817
|
};
|
|
1818
|
-
export
|
|
1819
|
-
export
|
|
1820
|
-
export
|
|
1818
|
+
export type PushProvider = 'apn' | 'firebase' | 'huawei' | 'xiaomi';
|
|
1819
|
+
export type PushProviderConfig = PushProviderCommon & PushProviderID & PushProviderAPN & PushProviderFirebase & PushProviderHuawei & PushProviderXiaomi;
|
|
1820
|
+
export type PushProviderID = {
|
|
1821
1821
|
name: string;
|
|
1822
1822
|
type: PushProvider;
|
|
1823
1823
|
};
|
|
1824
|
-
export
|
|
1824
|
+
export type PushProviderCommon = {
|
|
1825
1825
|
created_at: string;
|
|
1826
1826
|
updated_at: string;
|
|
1827
1827
|
description?: string;
|
|
1828
1828
|
disabled_at?: string;
|
|
1829
1829
|
disabled_reason?: string;
|
|
1830
1830
|
};
|
|
1831
|
-
export
|
|
1831
|
+
export type PushProviderAPN = {
|
|
1832
1832
|
apn_auth_key?: string;
|
|
1833
1833
|
apn_auth_type?: 'token' | 'certificate';
|
|
1834
1834
|
apn_development?: boolean;
|
|
@@ -1839,80 +1839,80 @@ export declare type PushProviderAPN = {
|
|
|
1839
1839
|
apn_team_id?: string;
|
|
1840
1840
|
apn_topic?: string;
|
|
1841
1841
|
};
|
|
1842
|
-
export
|
|
1842
|
+
export type PushProviderFirebase = {
|
|
1843
1843
|
firebase_apn_template?: string;
|
|
1844
1844
|
firebase_credentials?: string;
|
|
1845
1845
|
firebase_data_template?: string;
|
|
1846
1846
|
firebase_notification_template?: string;
|
|
1847
1847
|
firebase_server_key?: string;
|
|
1848
1848
|
};
|
|
1849
|
-
export
|
|
1849
|
+
export type PushProviderHuawei = {
|
|
1850
1850
|
huawei_app_id?: string;
|
|
1851
1851
|
huawei_app_secret?: string;
|
|
1852
1852
|
};
|
|
1853
|
-
export
|
|
1853
|
+
export type PushProviderXiaomi = {
|
|
1854
1854
|
xiaomi_package_name?: string;
|
|
1855
1855
|
xiaomi_secret?: string;
|
|
1856
1856
|
};
|
|
1857
|
-
export
|
|
1858
|
-
export
|
|
1859
|
-
export
|
|
1857
|
+
export type CommandVariants<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = 'all' | 'ban' | 'fun_set' | 'giphy' | 'moderation_set' | 'mute' | 'unban' | 'unmute' | StreamChatGenerics['commandType'];
|
|
1858
|
+
export type Configs<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = Record<string, ChannelConfigWithInfo<StreamChatGenerics> | undefined>;
|
|
1859
|
+
export type ConnectionOpen<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
1860
1860
|
connection_id: string;
|
|
1861
1861
|
cid?: string;
|
|
1862
1862
|
created_at?: string;
|
|
1863
1863
|
me?: OwnUserResponse<StreamChatGenerics>;
|
|
1864
1864
|
type?: string;
|
|
1865
1865
|
};
|
|
1866
|
-
export
|
|
1866
|
+
export type CreatedAtUpdatedAt = {
|
|
1867
1867
|
created_at: string;
|
|
1868
1868
|
updated_at: string;
|
|
1869
1869
|
};
|
|
1870
|
-
export
|
|
1870
|
+
export type Device<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = DeviceFields & {
|
|
1871
1871
|
provider?: string;
|
|
1872
1872
|
user?: UserResponse<StreamChatGenerics>;
|
|
1873
1873
|
user_id?: string;
|
|
1874
1874
|
};
|
|
1875
|
-
export
|
|
1875
|
+
export type BaseDeviceFields = {
|
|
1876
1876
|
id: string;
|
|
1877
1877
|
push_provider: PushProvider;
|
|
1878
1878
|
push_provider_name?: string;
|
|
1879
1879
|
};
|
|
1880
|
-
export
|
|
1880
|
+
export type DeviceFields = BaseDeviceFields & {
|
|
1881
1881
|
created_at: string;
|
|
1882
1882
|
disabled?: boolean;
|
|
1883
1883
|
disabled_reason?: string;
|
|
1884
1884
|
};
|
|
1885
|
-
export
|
|
1886
|
-
export
|
|
1885
|
+
export type EndpointName = 'Connect' | 'LongPoll' | 'DeleteFile' | 'DeleteImage' | 'DeleteMessage' | 'DeleteUser' | 'DeleteUsers' | 'DeactivateUser' | 'ExportUser' | 'DeleteReaction' | 'UpdateChannel' | 'UpdateChannelPartial' | 'UpdateMessage' | 'UpdateMessagePartial' | 'GetMessage' | 'GetManyMessages' | 'UpdateUsers' | 'UpdateUsersPartial' | 'CreateGuest' | 'GetOrCreateChannel' | 'StopWatchingChannel' | 'QueryChannels' | 'Search' | 'QueryUsers' | 'QueryMembers' | 'QueryBannedUsers' | 'QueryFlags' | 'QueryMessageFlags' | 'GetReactions' | 'GetReplies' | 'GetPinnedMessages' | 'Ban' | 'Unban' | 'MuteUser' | 'MuteChannel' | 'UnmuteChannel' | 'UnmuteUser' | 'RunMessageAction' | 'SendEvent' | 'SendUserCustomEvent' | 'MarkRead' | 'MarkChannelsRead' | 'SendMessage' | 'ImportChannelMessages' | 'UploadFile' | 'UploadImage' | 'UpdateApp' | 'GetApp' | 'CreateDevice' | 'DeleteDevice' | 'SendReaction' | 'Flag' | 'Unflag' | 'Unblock' | 'QueryFlagReports' | 'FlagReportReview' | 'CreateChannelType' | 'DeleteChannel' | 'DeleteChannels' | 'DeleteChannelType' | 'GetChannelType' | 'ListChannelTypes' | 'ListDevices' | 'TruncateChannel' | 'UpdateChannelType' | 'CheckPush' | 'PrivateSubmitModeration' | 'ReactivateUser' | 'HideChannel' | 'ShowChannel' | 'CreatePermission' | 'UpdatePermission' | 'GetPermission' | 'DeletePermission' | 'ListPermissions' | 'CreateRole' | 'DeleteRole' | 'ListRoles' | 'ListCustomRoles' | 'Sync' | 'TranslateMessage' | 'CreateCommand' | 'GetCommand' | 'UpdateCommand' | 'DeleteCommand' | 'ListCommands' | 'CreateBlockList' | 'UpdateBlockList' | 'GetBlockList' | 'ListBlockLists' | 'DeleteBlockList' | 'ExportChannels' | 'GetExportChannelsStatus' | 'CheckSQS' | 'GetRateLimits' | 'CreateSegment' | 'GetSegment' | 'QuerySegments' | 'UpdateSegment' | 'DeleteSegment' | 'CreateCampaign' | 'GetCampaign' | 'ListCampaigns' | 'UpdateCampaign' | 'DeleteCampaign' | 'ScheduleCampaign' | 'StopCampaign' | 'ResumeCampaign' | 'TestCampaign' | 'GetOG' | 'GetTask' | 'ExportUsers' | 'CreateImport' | 'CreateImportURL' | 'GetImport' | 'ListImports' | 'UpsertPushProvider' | 'DeletePushProvider' | 'ListPushProviders' | 'CreatePoll';
|
|
1886
|
+
export type ExportChannelRequest = {
|
|
1887
1887
|
id: string;
|
|
1888
1888
|
type: string;
|
|
1889
1889
|
cid?: string;
|
|
1890
1890
|
messages_since?: Date;
|
|
1891
1891
|
messages_until?: Date;
|
|
1892
1892
|
};
|
|
1893
|
-
export
|
|
1893
|
+
export type ExportChannelOptions = {
|
|
1894
1894
|
clear_deleted_message_text?: boolean;
|
|
1895
1895
|
export_users?: boolean;
|
|
1896
1896
|
include_soft_deleted_channels?: boolean;
|
|
1897
1897
|
include_truncated_messages?: boolean;
|
|
1898
1898
|
version?: string;
|
|
1899
1899
|
};
|
|
1900
|
-
export
|
|
1900
|
+
export type ExportUsersRequest = {
|
|
1901
1901
|
user_ids: string[];
|
|
1902
1902
|
};
|
|
1903
|
-
export
|
|
1903
|
+
export type Field = {
|
|
1904
1904
|
short?: boolean;
|
|
1905
1905
|
title?: string;
|
|
1906
1906
|
value?: string;
|
|
1907
1907
|
};
|
|
1908
|
-
export
|
|
1908
|
+
export type FileUploadConfig = {
|
|
1909
1909
|
allowed_file_extensions?: string[] | null;
|
|
1910
1910
|
allowed_mime_types?: string[] | null;
|
|
1911
1911
|
blocked_file_extensions?: string[] | null;
|
|
1912
1912
|
blocked_mime_types?: string[] | null;
|
|
1913
1913
|
size_limit?: number | null;
|
|
1914
1914
|
};
|
|
1915
|
-
export
|
|
1915
|
+
export type FirebaseConfig = {
|
|
1916
1916
|
apn_template?: string;
|
|
1917
1917
|
credentials_json?: string;
|
|
1918
1918
|
data_template?: string;
|
|
@@ -1920,34 +1920,34 @@ export declare type FirebaseConfig = {
|
|
|
1920
1920
|
notification_template?: string;
|
|
1921
1921
|
server_key?: string;
|
|
1922
1922
|
};
|
|
1923
|
-
|
|
1923
|
+
type GiphyVersionInfo = {
|
|
1924
1924
|
height: string;
|
|
1925
1925
|
url: string;
|
|
1926
1926
|
width: string;
|
|
1927
1927
|
frames?: string;
|
|
1928
1928
|
size?: string;
|
|
1929
1929
|
};
|
|
1930
|
-
|
|
1931
|
-
|
|
1930
|
+
type GiphyVersions = 'original' | 'fixed_height' | 'fixed_height_still' | 'fixed_height_downsampled' | 'fixed_width' | 'fixed_width_still' | 'fixed_width_downsampled';
|
|
1931
|
+
type GiphyData = {
|
|
1932
1932
|
[key in GiphyVersions]: GiphyVersionInfo;
|
|
1933
1933
|
};
|
|
1934
|
-
export
|
|
1934
|
+
export type HuaweiConfig = {
|
|
1935
1935
|
enabled?: boolean;
|
|
1936
1936
|
id?: string;
|
|
1937
1937
|
secret?: string;
|
|
1938
1938
|
};
|
|
1939
|
-
export
|
|
1939
|
+
export type XiaomiConfig = {
|
|
1940
1940
|
enabled?: boolean;
|
|
1941
1941
|
package_name?: string;
|
|
1942
1942
|
secret?: string;
|
|
1943
1943
|
};
|
|
1944
|
-
export
|
|
1945
|
-
export
|
|
1946
|
-
export
|
|
1947
|
-
export
|
|
1944
|
+
export type LiteralStringForUnion = string & {};
|
|
1945
|
+
export type LogLevel = 'info' | 'error' | 'warn';
|
|
1946
|
+
export type Logger = (logLevel: LogLevel, message: string, extraData?: Record<string, unknown>) => void;
|
|
1947
|
+
export type Message<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = Partial<MessageBase<StreamChatGenerics>> & {
|
|
1948
1948
|
mentioned_users?: string[];
|
|
1949
1949
|
};
|
|
1950
|
-
export
|
|
1950
|
+
export type MessageBase<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = StreamChatGenerics['messageType'] & {
|
|
1951
1951
|
id: string;
|
|
1952
1952
|
attachments?: Attachment<StreamChatGenerics>[];
|
|
1953
1953
|
html?: string;
|
|
@@ -1965,8 +1965,8 @@ export declare type MessageBase<StreamChatGenerics extends ExtendableGenerics =
|
|
|
1965
1965
|
user?: UserResponse<StreamChatGenerics> | null;
|
|
1966
1966
|
user_id?: string;
|
|
1967
1967
|
};
|
|
1968
|
-
export
|
|
1969
|
-
export
|
|
1968
|
+
export type MessageLabel = 'deleted' | 'ephemeral' | 'error' | 'regular' | 'reply' | 'system';
|
|
1969
|
+
export type SendMessageOptions = {
|
|
1970
1970
|
force_moderation?: boolean;
|
|
1971
1971
|
is_pending_message?: boolean;
|
|
1972
1972
|
keep_channel_hidden?: boolean;
|
|
@@ -1975,41 +1975,41 @@ export declare type SendMessageOptions = {
|
|
|
1975
1975
|
skip_enrich_url?: boolean;
|
|
1976
1976
|
skip_push?: boolean;
|
|
1977
1977
|
};
|
|
1978
|
-
export
|
|
1978
|
+
export type UpdateMessageOptions = {
|
|
1979
1979
|
skip_enrich_url?: boolean;
|
|
1980
1980
|
};
|
|
1981
|
-
export
|
|
1981
|
+
export type GetMessageOptions = {
|
|
1982
1982
|
show_deleted_message?: boolean;
|
|
1983
1983
|
};
|
|
1984
|
-
export
|
|
1984
|
+
export type Mute<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
1985
1985
|
created_at: string;
|
|
1986
1986
|
target: UserResponse<StreamChatGenerics>;
|
|
1987
1987
|
updated_at: string;
|
|
1988
1988
|
user: UserResponse<StreamChatGenerics>;
|
|
1989
1989
|
};
|
|
1990
|
-
export
|
|
1990
|
+
export type PartialUpdateChannel<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
1991
1991
|
set?: Partial<ChannelResponse<StreamChatGenerics>>;
|
|
1992
1992
|
unset?: Array<keyof ChannelResponse<StreamChatGenerics>>;
|
|
1993
1993
|
};
|
|
1994
|
-
export
|
|
1994
|
+
export type PartialUpdateMember<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
1995
1995
|
set?: ChannelMemberUpdates<StreamChatGenerics>;
|
|
1996
1996
|
unset?: Array<keyof ChannelMemberUpdates<StreamChatGenerics>>;
|
|
1997
1997
|
};
|
|
1998
|
-
export
|
|
1998
|
+
export type PartialUserUpdate<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
1999
1999
|
id: string;
|
|
2000
2000
|
set?: Partial<UserResponse<StreamChatGenerics>>;
|
|
2001
2001
|
unset?: Array<keyof UserResponse<StreamChatGenerics>>;
|
|
2002
2002
|
};
|
|
2003
|
-
export
|
|
2004
|
-
export
|
|
2003
|
+
export type MessageUpdatableFields<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = Omit<MessageResponse<StreamChatGenerics>, 'cid' | 'created_at' | 'updated_at' | 'deleted_at' | 'user' | 'user_id'>;
|
|
2004
|
+
export type PartialMessageUpdate<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
2005
2005
|
set?: Partial<MessageUpdatableFields<StreamChatGenerics>>;
|
|
2006
2006
|
unset?: Array<keyof MessageUpdatableFields<StreamChatGenerics>>;
|
|
2007
2007
|
};
|
|
2008
|
-
export
|
|
2008
|
+
export type PendingMessageResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
2009
2009
|
message: MessageResponse<StreamChatGenerics>;
|
|
2010
2010
|
pending_message_metadata?: Record<string, string>;
|
|
2011
2011
|
};
|
|
2012
|
-
export
|
|
2012
|
+
export type PermissionAPIObject = {
|
|
2013
2013
|
action?: string;
|
|
2014
2014
|
condition?: object;
|
|
2015
2015
|
custom?: boolean;
|
|
@@ -2021,7 +2021,7 @@ export declare type PermissionAPIObject = {
|
|
|
2021
2021
|
same_team?: boolean;
|
|
2022
2022
|
tags?: string[];
|
|
2023
2023
|
};
|
|
2024
|
-
export
|
|
2024
|
+
export type PermissionObject = {
|
|
2025
2025
|
action?: 'Deny' | 'Allow';
|
|
2026
2026
|
name?: string;
|
|
2027
2027
|
owner?: boolean;
|
|
@@ -2029,7 +2029,7 @@ export declare type PermissionObject = {
|
|
|
2029
2029
|
resources?: string[];
|
|
2030
2030
|
roles?: string[];
|
|
2031
2031
|
};
|
|
2032
|
-
export
|
|
2032
|
+
export type Policy = {
|
|
2033
2033
|
action?: 0 | 1;
|
|
2034
2034
|
created_at?: string;
|
|
2035
2035
|
name?: string;
|
|
@@ -2039,21 +2039,21 @@ export declare type Policy = {
|
|
|
2039
2039
|
roles?: string[] | null;
|
|
2040
2040
|
updated_at?: string;
|
|
2041
2041
|
};
|
|
2042
|
-
export
|
|
2042
|
+
export type RateLimitsInfo = {
|
|
2043
2043
|
limit: number;
|
|
2044
2044
|
remaining: number;
|
|
2045
2045
|
reset: number;
|
|
2046
2046
|
};
|
|
2047
|
-
export
|
|
2048
|
-
export
|
|
2047
|
+
export type RateLimitsMap = Record<EndpointName, RateLimitsInfo>;
|
|
2048
|
+
export type Reaction<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = StreamChatGenerics['reactionType'] & {
|
|
2049
2049
|
type: string;
|
|
2050
2050
|
message_id?: string;
|
|
2051
2051
|
score?: number;
|
|
2052
2052
|
user?: UserResponse<StreamChatGenerics> | null;
|
|
2053
2053
|
user_id?: string;
|
|
2054
2054
|
};
|
|
2055
|
-
export
|
|
2056
|
-
export
|
|
2055
|
+
export type Resource = 'AddLinks' | 'BanUser' | 'CreateChannel' | 'CreateMessage' | 'CreateReaction' | 'DeleteAttachment' | 'DeleteChannel' | 'DeleteMessage' | 'DeleteReaction' | 'EditUser' | 'MuteUser' | 'ReadChannel' | 'RunMessageAction' | 'UpdateChannel' | 'UpdateChannelMembers' | 'UpdateMessage' | 'UpdateUser' | 'UploadAttachment';
|
|
2056
|
+
export type SearchPayload<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = Omit<SearchOptions<StreamChatGenerics>, 'sort'> & {
|
|
2057
2057
|
client_id?: string;
|
|
2058
2058
|
connection_id?: string;
|
|
2059
2059
|
filter_conditions?: ChannelFilters<StreamChatGenerics>;
|
|
@@ -2065,7 +2065,7 @@ export declare type SearchPayload<StreamChatGenerics extends ExtendableGenerics
|
|
|
2065
2065
|
field: keyof SearchMessageSortBase<StreamChatGenerics>;
|
|
2066
2066
|
}>;
|
|
2067
2067
|
};
|
|
2068
|
-
export
|
|
2068
|
+
export type TestPushDataInput = {
|
|
2069
2069
|
apnTemplate?: string;
|
|
2070
2070
|
firebaseDataTemplate?: string;
|
|
2071
2071
|
firebaseTemplate?: string;
|
|
@@ -2074,25 +2074,25 @@ export declare type TestPushDataInput = {
|
|
|
2074
2074
|
pushProviderType?: PushProvider;
|
|
2075
2075
|
skipDevices?: boolean;
|
|
2076
2076
|
};
|
|
2077
|
-
export
|
|
2077
|
+
export type TestSQSDataInput = {
|
|
2078
2078
|
sqs_key?: string;
|
|
2079
2079
|
sqs_secret?: string;
|
|
2080
2080
|
sqs_url?: string;
|
|
2081
2081
|
};
|
|
2082
|
-
export
|
|
2082
|
+
export type TestSNSDataInput = {
|
|
2083
2083
|
sns_key?: string;
|
|
2084
2084
|
sns_secret?: string;
|
|
2085
2085
|
sns_topic_arn?: string;
|
|
2086
2086
|
};
|
|
2087
|
-
export
|
|
2088
|
-
export
|
|
2089
|
-
export
|
|
2090
|
-
export
|
|
2091
|
-
export
|
|
2092
|
-
export
|
|
2087
|
+
export type TokenOrProvider = null | string | TokenProvider | undefined;
|
|
2088
|
+
export type TokenProvider = () => Promise<string>;
|
|
2089
|
+
export type TranslationLanguages = '' | 'af' | 'am' | 'ar' | 'az' | 'bg' | 'bn' | 'bs' | 'cs' | 'da' | 'de' | 'el' | 'en' | 'es' | 'es-MX' | 'et' | 'fa' | 'fa-AF' | 'fi' | 'fr' | 'fr-CA' | 'ha' | 'he' | 'hi' | 'hr' | 'hu' | 'id' | 'it' | 'ja' | 'ka' | 'ko' | 'lt' | 'lv' | 'ms' | 'nl' | 'no' | 'pl' | 'ps' | 'pt' | 'ro' | 'ru' | 'sk' | 'sl' | 'so' | 'sq' | 'sr' | 'sv' | 'sw' | 'ta' | 'th' | 'tl' | 'tr' | 'uk' | 'ur' | 'vi' | 'zh' | 'zh-TW';
|
|
2090
|
+
export type TypingStartEvent = Event;
|
|
2091
|
+
export type ReservedMessageFields = 'command' | 'created_at' | 'html' | 'latest_reactions' | 'own_reactions' | 'quoted_message' | 'reaction_counts' | 'reply_count' | 'type' | 'updated_at' | 'user' | '__html';
|
|
2092
|
+
export type UpdatedMessage<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = Omit<MessageResponse<StreamChatGenerics>, 'mentioned_users'> & {
|
|
2093
2093
|
mentioned_users?: string[];
|
|
2094
2094
|
};
|
|
2095
|
-
export
|
|
2095
|
+
export type User<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = StreamChatGenerics['userType'] & {
|
|
2096
2096
|
id: string;
|
|
2097
2097
|
anon?: boolean;
|
|
2098
2098
|
name?: string;
|
|
@@ -2100,28 +2100,28 @@ export declare type User<StreamChatGenerics extends ExtendableGenerics = Default
|
|
|
2100
2100
|
teams?: string[];
|
|
2101
2101
|
username?: string;
|
|
2102
2102
|
};
|
|
2103
|
-
export
|
|
2103
|
+
export type TaskResponse = {
|
|
2104
2104
|
task_id: string;
|
|
2105
2105
|
};
|
|
2106
|
-
export
|
|
2106
|
+
export type DeleteChannelsResponse = {
|
|
2107
2107
|
result: Record<string, string>;
|
|
2108
2108
|
} & Partial<TaskResponse>;
|
|
2109
|
-
export
|
|
2110
|
-
export
|
|
2109
|
+
export type DeleteType = 'soft' | 'hard' | 'pruning';
|
|
2110
|
+
export type DeleteUserOptions = {
|
|
2111
2111
|
conversations?: Exclude<DeleteType, 'pruning'>;
|
|
2112
2112
|
messages?: DeleteType;
|
|
2113
2113
|
new_channel_owner_id?: string;
|
|
2114
2114
|
user?: DeleteType;
|
|
2115
2115
|
};
|
|
2116
|
-
export
|
|
2117
|
-
export
|
|
2116
|
+
export type SegmentType = 'channel' | 'user';
|
|
2117
|
+
export type SegmentData = {
|
|
2118
2118
|
all_sender_channels?: boolean;
|
|
2119
2119
|
all_users?: boolean;
|
|
2120
2120
|
description?: string;
|
|
2121
2121
|
filter?: {};
|
|
2122
2122
|
name?: string;
|
|
2123
2123
|
};
|
|
2124
|
-
export
|
|
2124
|
+
export type SegmentResponse = {
|
|
2125
2125
|
created_at: string;
|
|
2126
2126
|
deleted_at: string;
|
|
2127
2127
|
id: string;
|
|
@@ -2131,25 +2131,25 @@ export declare type SegmentResponse = {
|
|
|
2131
2131
|
type: SegmentType;
|
|
2132
2132
|
updated_at: string;
|
|
2133
2133
|
} & SegmentData;
|
|
2134
|
-
export
|
|
2134
|
+
export type UpdateSegmentData = {
|
|
2135
2135
|
name: string;
|
|
2136
2136
|
} & SegmentData;
|
|
2137
|
-
export
|
|
2137
|
+
export type SegmentTargetsResponse = {
|
|
2138
2138
|
created_at: string;
|
|
2139
2139
|
segment_id: string;
|
|
2140
2140
|
target_id: string;
|
|
2141
2141
|
};
|
|
2142
|
-
export
|
|
2142
|
+
export type SortParam = {
|
|
2143
2143
|
field: string;
|
|
2144
2144
|
direction?: AscDesc;
|
|
2145
2145
|
};
|
|
2146
|
-
export
|
|
2146
|
+
export type Pager = {
|
|
2147
2147
|
limit?: number;
|
|
2148
2148
|
next?: string;
|
|
2149
2149
|
prev?: string;
|
|
2150
2150
|
};
|
|
2151
|
-
export
|
|
2152
|
-
export
|
|
2151
|
+
export type QuerySegmentsOptions = Pager;
|
|
2152
|
+
export type QuerySegmentTargetsFilter = {
|
|
2153
2153
|
target_id?: {
|
|
2154
2154
|
$eq?: string;
|
|
2155
2155
|
$gte?: string;
|
|
@@ -2157,20 +2157,28 @@ export declare type QuerySegmentTargetsFilter = {
|
|
|
2157
2157
|
$lte?: string;
|
|
2158
2158
|
};
|
|
2159
2159
|
};
|
|
2160
|
-
export
|
|
2161
|
-
export
|
|
2160
|
+
export type QuerySegmentTargetsOptions = Pick<Pager, 'next' | 'limit'>;
|
|
2161
|
+
export type GetCampaignOptions = {
|
|
2162
|
+
users?: {
|
|
2163
|
+
limit?: number;
|
|
2164
|
+
next?: string;
|
|
2165
|
+
prev?: string;
|
|
2166
|
+
};
|
|
2167
|
+
};
|
|
2168
|
+
export type CampaignSort = {
|
|
2162
2169
|
field: string;
|
|
2163
2170
|
direction?: number;
|
|
2164
2171
|
}[];
|
|
2165
|
-
export
|
|
2172
|
+
export type CampaignQueryOptions = {
|
|
2166
2173
|
limit?: number;
|
|
2167
2174
|
next?: string;
|
|
2168
2175
|
prev?: string;
|
|
2169
2176
|
sort?: CampaignSort;
|
|
2177
|
+
user_limit?: number;
|
|
2170
2178
|
};
|
|
2171
|
-
export
|
|
2172
|
-
export
|
|
2173
|
-
export
|
|
2179
|
+
export type SegmentQueryOptions = CampaignQueryOptions;
|
|
2180
|
+
export type CampaignFilters = {};
|
|
2181
|
+
export type CampaignData = {
|
|
2174
2182
|
channel_template?: {
|
|
2175
2183
|
type: string;
|
|
2176
2184
|
custom?: {};
|
|
@@ -2196,14 +2204,16 @@ export declare type CampaignData = {
|
|
|
2196
2204
|
skip_webhook?: boolean;
|
|
2197
2205
|
user_ids?: string[];
|
|
2198
2206
|
};
|
|
2199
|
-
export
|
|
2207
|
+
export type CampaignStats = {
|
|
2200
2208
|
progress?: number;
|
|
2201
2209
|
stats_channels_created?: number;
|
|
2202
2210
|
stats_completed_at?: string;
|
|
2203
2211
|
stats_messages_sent?: number;
|
|
2204
2212
|
stats_started_at?: string;
|
|
2213
|
+
stats_users_read?: number;
|
|
2214
|
+
stats_users_sent?: number;
|
|
2205
2215
|
};
|
|
2206
|
-
export
|
|
2216
|
+
export type CampaignResponse = {
|
|
2207
2217
|
created_at: string;
|
|
2208
2218
|
id: string;
|
|
2209
2219
|
segments: SegmentResponse[];
|
|
@@ -2214,8 +2224,8 @@ export declare type CampaignResponse = {
|
|
|
2214
2224
|
users: UserResponse[];
|
|
2215
2225
|
scheduled_for?: string;
|
|
2216
2226
|
} & CampaignData;
|
|
2217
|
-
export
|
|
2218
|
-
export
|
|
2227
|
+
export type DeleteCampaignOptions = {};
|
|
2228
|
+
export type TaskStatus = {
|
|
2219
2229
|
created_at: string;
|
|
2220
2230
|
status: string;
|
|
2221
2231
|
task_id: string;
|
|
@@ -2226,7 +2236,7 @@ export declare type TaskStatus = {
|
|
|
2226
2236
|
};
|
|
2227
2237
|
result?: UR;
|
|
2228
2238
|
};
|
|
2229
|
-
export
|
|
2239
|
+
export type TruncateOptions<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
2230
2240
|
hard_delete?: boolean;
|
|
2231
2241
|
message?: Message<StreamChatGenerics>;
|
|
2232
2242
|
skip_push?: boolean;
|
|
@@ -2234,32 +2244,32 @@ export declare type TruncateOptions<StreamChatGenerics extends ExtendableGeneric
|
|
|
2234
2244
|
user?: UserResponse<StreamChatGenerics>;
|
|
2235
2245
|
user_id?: string;
|
|
2236
2246
|
};
|
|
2237
|
-
export
|
|
2247
|
+
export type CreateImportURLResponse = {
|
|
2238
2248
|
path: string;
|
|
2239
2249
|
upload_url: string;
|
|
2240
2250
|
};
|
|
2241
|
-
export
|
|
2251
|
+
export type CreateImportResponse = {
|
|
2242
2252
|
import_task: ImportTask;
|
|
2243
2253
|
};
|
|
2244
|
-
export
|
|
2254
|
+
export type GetImportResponse = {
|
|
2245
2255
|
import_task: ImportTask;
|
|
2246
2256
|
};
|
|
2247
|
-
export
|
|
2257
|
+
export type CreateImportOptions = {
|
|
2248
2258
|
mode: 'insert' | 'upsert';
|
|
2249
2259
|
};
|
|
2250
|
-
export
|
|
2260
|
+
export type ListImportsPaginationOptions = {
|
|
2251
2261
|
limit?: number;
|
|
2252
2262
|
offset?: number;
|
|
2253
2263
|
};
|
|
2254
|
-
export
|
|
2264
|
+
export type ListImportsResponse = {
|
|
2255
2265
|
import_tasks: ImportTask[];
|
|
2256
2266
|
};
|
|
2257
|
-
export
|
|
2267
|
+
export type ImportTaskHistory = {
|
|
2258
2268
|
created_at: string;
|
|
2259
2269
|
next_state: string;
|
|
2260
2270
|
prev_state: string;
|
|
2261
2271
|
};
|
|
2262
|
-
export
|
|
2272
|
+
export type ImportTask = {
|
|
2263
2273
|
created_at: string;
|
|
2264
2274
|
history: ImportTaskHistory[];
|
|
2265
2275
|
id: string;
|
|
@@ -2269,8 +2279,8 @@ export declare type ImportTask = {
|
|
|
2269
2279
|
result?: UR;
|
|
2270
2280
|
size?: number;
|
|
2271
2281
|
};
|
|
2272
|
-
export
|
|
2273
|
-
export
|
|
2282
|
+
export type MessageSetType = 'latest' | 'current' | 'new';
|
|
2283
|
+
export type MessageSet<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
2274
2284
|
isCurrent: boolean;
|
|
2275
2285
|
isLatest: boolean;
|
|
2276
2286
|
messages: FormatMessageResponse<StreamChatGenerics>[];
|
|
@@ -2279,47 +2289,47 @@ export declare type MessageSet<StreamChatGenerics extends ExtendableGenerics = D
|
|
|
2279
2289
|
hasPrev: boolean;
|
|
2280
2290
|
};
|
|
2281
2291
|
};
|
|
2282
|
-
export
|
|
2292
|
+
export type PushProviderUpsertResponse = {
|
|
2283
2293
|
push_provider: PushProvider;
|
|
2284
2294
|
};
|
|
2285
|
-
export
|
|
2295
|
+
export type PushProviderListResponse = {
|
|
2286
2296
|
push_providers: PushProvider[];
|
|
2287
2297
|
};
|
|
2288
|
-
export
|
|
2298
|
+
export type CreateCallOptions<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
2289
2299
|
id: string;
|
|
2290
2300
|
type: string;
|
|
2291
2301
|
options?: UR;
|
|
2292
2302
|
user?: UserResponse<StreamChatGenerics> | null;
|
|
2293
2303
|
user_id?: string;
|
|
2294
2304
|
};
|
|
2295
|
-
export
|
|
2305
|
+
export type HMSCall = {
|
|
2296
2306
|
room: string;
|
|
2297
2307
|
};
|
|
2298
|
-
export
|
|
2308
|
+
export type AgoraCall = {
|
|
2299
2309
|
channel: string;
|
|
2300
2310
|
};
|
|
2301
|
-
export
|
|
2311
|
+
export type Call = {
|
|
2302
2312
|
id: string;
|
|
2303
2313
|
provider: string;
|
|
2304
2314
|
agora?: AgoraCall;
|
|
2305
2315
|
hms?: HMSCall;
|
|
2306
2316
|
};
|
|
2307
|
-
export
|
|
2317
|
+
export type CreateCallResponse = APIResponse & {
|
|
2308
2318
|
call: Call;
|
|
2309
2319
|
token: string;
|
|
2310
2320
|
agora_app_id?: string;
|
|
2311
2321
|
agora_uid?: number;
|
|
2312
2322
|
};
|
|
2313
|
-
export
|
|
2323
|
+
export type GetCallTokenResponse = APIResponse & {
|
|
2314
2324
|
token: string;
|
|
2315
2325
|
agora_app_id?: string;
|
|
2316
2326
|
agora_uid?: number;
|
|
2317
2327
|
};
|
|
2318
|
-
|
|
2328
|
+
type ErrorResponseDetails = {
|
|
2319
2329
|
code: number;
|
|
2320
2330
|
messages: string[];
|
|
2321
2331
|
};
|
|
2322
|
-
export
|
|
2332
|
+
export type APIErrorResponse = {
|
|
2323
2333
|
code: number;
|
|
2324
2334
|
duration: string;
|
|
2325
2335
|
message: string;
|
|
@@ -2332,20 +2342,20 @@ export declare class ErrorFromResponse<T> extends Error {
|
|
|
2332
2342
|
response?: AxiosResponse<T>;
|
|
2333
2343
|
status?: number;
|
|
2334
2344
|
}
|
|
2335
|
-
export
|
|
2345
|
+
export type QueryPollsResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
2336
2346
|
polls: PollResponse<StreamChatGenerics>[];
|
|
2337
2347
|
next?: string;
|
|
2338
2348
|
};
|
|
2339
|
-
export
|
|
2349
|
+
export type CreatePollAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
2340
2350
|
poll: PollResponse<StreamChatGenerics>;
|
|
2341
2351
|
};
|
|
2342
|
-
export
|
|
2352
|
+
export type GetPollAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
2343
2353
|
poll: PollResponse<StreamChatGenerics>;
|
|
2344
2354
|
};
|
|
2345
|
-
export
|
|
2355
|
+
export type UpdatePollAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
2346
2356
|
poll: PollResponse<StreamChatGenerics>;
|
|
2347
2357
|
};
|
|
2348
|
-
export
|
|
2358
|
+
export type PollResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = StreamChatGenerics['pollType'] & PollEnrichData<StreamChatGenerics> & {
|
|
2349
2359
|
created_at: string;
|
|
2350
2360
|
created_by: UserResponse<StreamChatGenerics> | null;
|
|
2351
2361
|
created_by_id: string;
|
|
@@ -2361,7 +2371,7 @@ export declare type PollResponse<StreamChatGenerics extends ExtendableGenerics =
|
|
|
2361
2371
|
is_closed?: boolean;
|
|
2362
2372
|
voting_visibility?: VotingVisibility;
|
|
2363
2373
|
};
|
|
2364
|
-
export
|
|
2374
|
+
export type PollOption<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
2365
2375
|
created_at: string;
|
|
2366
2376
|
id: string;
|
|
2367
2377
|
poll_id: string;
|
|
@@ -2374,7 +2384,7 @@ export declare enum VotingVisibility {
|
|
|
2374
2384
|
anonymous = "anonymous",
|
|
2375
2385
|
public = "public"
|
|
2376
2386
|
}
|
|
2377
|
-
export
|
|
2387
|
+
export type PollEnrichData<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
2378
2388
|
answers_count: number;
|
|
2379
2389
|
latest_answers: PollAnswer<StreamChatGenerics>[];
|
|
2380
2390
|
latest_votes_by_option: Record<string, PollVote<StreamChatGenerics>[]>;
|
|
@@ -2382,7 +2392,7 @@ export declare type PollEnrichData<StreamChatGenerics extends ExtendableGenerics
|
|
|
2382
2392
|
vote_counts_by_option: Record<string, number>;
|
|
2383
2393
|
own_votes?: (PollVote<StreamChatGenerics> | PollAnswer<StreamChatGenerics>)[];
|
|
2384
2394
|
};
|
|
2385
|
-
export
|
|
2395
|
+
export type PollData<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = StreamChatGenerics['pollType'] & {
|
|
2386
2396
|
id: string;
|
|
2387
2397
|
name: string;
|
|
2388
2398
|
allow_answers?: boolean;
|
|
@@ -2395,35 +2405,35 @@ export declare type PollData<StreamChatGenerics extends ExtendableGenerics = Def
|
|
|
2395
2405
|
user_id?: string;
|
|
2396
2406
|
voting_visibility?: VotingVisibility;
|
|
2397
2407
|
};
|
|
2398
|
-
export
|
|
2399
|
-
export
|
|
2408
|
+
export type CreatePollData<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = Partial<PollData<StreamChatGenerics>> & Pick<PollData<StreamChatGenerics>, 'name'>;
|
|
2409
|
+
export type PartialPollUpdate<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
2400
2410
|
set?: Partial<PollData<StreamChatGenerics>>;
|
|
2401
2411
|
unset?: Array<keyof PollData<StreamChatGenerics>>;
|
|
2402
2412
|
};
|
|
2403
|
-
export
|
|
2413
|
+
export type PollOptionData<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = StreamChatGenerics['pollOptionType'] & {
|
|
2404
2414
|
text: string;
|
|
2405
2415
|
id?: string;
|
|
2406
2416
|
position?: number;
|
|
2407
2417
|
};
|
|
2408
|
-
export
|
|
2418
|
+
export type PartialPollOptionUpdate<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
2409
2419
|
set?: Partial<PollOptionResponse<StreamChatGenerics>>;
|
|
2410
2420
|
unset?: Array<keyof PollOptionResponse<StreamChatGenerics>>;
|
|
2411
2421
|
};
|
|
2412
|
-
export
|
|
2422
|
+
export type PollVoteData = {
|
|
2413
2423
|
answer_text?: string;
|
|
2414
2424
|
is_answer?: boolean;
|
|
2415
2425
|
option_id?: string;
|
|
2416
2426
|
};
|
|
2417
|
-
export
|
|
2427
|
+
export type PollPaginationOptions = {
|
|
2418
2428
|
limit?: number;
|
|
2419
2429
|
next?: string;
|
|
2420
2430
|
};
|
|
2421
|
-
export
|
|
2431
|
+
export type CreatePollOptionAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
2422
2432
|
poll_option: PollOptionResponse<StreamChatGenerics>;
|
|
2423
2433
|
};
|
|
2424
|
-
export
|
|
2425
|
-
export
|
|
2426
|
-
export
|
|
2434
|
+
export type GetPollOptionAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = CreatePollOptionAPIResponse<StreamChatGenerics>;
|
|
2435
|
+
export type UpdatePollOptionAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = CreatePollOptionAPIResponse<StreamChatGenerics>;
|
|
2436
|
+
export type PollOptionResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = StreamChatGenerics['pollType'] & {
|
|
2427
2437
|
created_at: string;
|
|
2428
2438
|
id: string;
|
|
2429
2439
|
poll_id: string;
|
|
@@ -2433,7 +2443,7 @@ export declare type PollOptionResponse<StreamChatGenerics extends ExtendableGene
|
|
|
2433
2443
|
vote_count: number;
|
|
2434
2444
|
votes?: PollVote<StreamChatGenerics>[];
|
|
2435
2445
|
};
|
|
2436
|
-
export
|
|
2446
|
+
export type PollVote<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
2437
2447
|
created_at: string;
|
|
2438
2448
|
id: string;
|
|
2439
2449
|
poll_id: string;
|
|
@@ -2442,55 +2452,55 @@ export declare type PollVote<StreamChatGenerics extends ExtendableGenerics = Def
|
|
|
2442
2452
|
user?: UserResponse<StreamChatGenerics>;
|
|
2443
2453
|
user_id?: string;
|
|
2444
2454
|
};
|
|
2445
|
-
export
|
|
2455
|
+
export type PollAnswer<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = Exclude<PollVote<StreamChatGenerics>, 'option_id'> & {
|
|
2446
2456
|
answer_text: string;
|
|
2447
2457
|
is_answer: boolean;
|
|
2448
2458
|
};
|
|
2449
|
-
export
|
|
2459
|
+
export type PollVotesAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
2450
2460
|
votes: (PollVote<StreamChatGenerics> | PollAnswer<StreamChatGenerics>)[];
|
|
2451
2461
|
next?: string;
|
|
2452
2462
|
};
|
|
2453
|
-
export
|
|
2463
|
+
export type PollAnswersAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
2454
2464
|
votes: PollAnswer<StreamChatGenerics>[];
|
|
2455
2465
|
next?: string;
|
|
2456
2466
|
};
|
|
2457
|
-
export
|
|
2467
|
+
export type CastVoteAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
2458
2468
|
vote: PollVote<StreamChatGenerics> | PollAnswer<StreamChatGenerics>;
|
|
2459
2469
|
};
|
|
2460
|
-
export
|
|
2470
|
+
export type QueryMessageHistoryFilters = QueryFilters<{
|
|
2461
2471
|
message_id?: RequireOnlyOne<Pick<QueryFilter<MessageHistoryEntry['message_id']>, '$eq' | '$in'>> | PrimitiveFilter<MessageHistoryEntry['message_id']>;
|
|
2462
2472
|
} & {
|
|
2463
2473
|
user_id?: RequireOnlyOne<Pick<QueryFilter<MessageHistoryEntry['message_updated_by_id']>, '$eq' | '$in'>> | PrimitiveFilter<MessageHistoryEntry['message_updated_by_id']>;
|
|
2464
2474
|
} & {
|
|
2465
2475
|
created_at?: RequireOnlyOne<Pick<QueryFilter<MessageHistoryEntry['message_updated_at']>, '$eq' | '$gt' | '$lt' | '$gte' | '$lte'>> | PrimitiveFilter<MessageHistoryEntry['message_updated_at']>;
|
|
2466
2476
|
}>;
|
|
2467
|
-
export
|
|
2468
|
-
export
|
|
2477
|
+
export type QueryMessageHistorySort = QueryMessageHistorySortBase | Array<QueryMessageHistorySortBase>;
|
|
2478
|
+
export type QueryMessageHistorySortBase = {
|
|
2469
2479
|
message_updated_at?: AscDesc;
|
|
2470
2480
|
message_updated_by_id?: AscDesc;
|
|
2471
2481
|
};
|
|
2472
|
-
export
|
|
2473
|
-
export
|
|
2482
|
+
export type QueryMessageHistoryOptions = Pager;
|
|
2483
|
+
export type MessageHistoryEntry<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
2474
2484
|
message_id: string;
|
|
2475
2485
|
message_updated_at: string;
|
|
2476
2486
|
attachments?: Attachment<StreamChatGenerics>[];
|
|
2477
2487
|
message_updated_by_id?: string;
|
|
2478
2488
|
text?: string;
|
|
2479
2489
|
};
|
|
2480
|
-
export
|
|
2490
|
+
export type QueryMessageHistoryResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
2481
2491
|
message_history: MessageHistoryEntry<StreamChatGenerics>[];
|
|
2482
2492
|
next?: string;
|
|
2483
2493
|
prev?: string;
|
|
2484
2494
|
};
|
|
2485
|
-
export
|
|
2495
|
+
export type ModerationPayload = {
|
|
2486
2496
|
created_at: string;
|
|
2487
2497
|
custom?: Record<string, any>;
|
|
2488
2498
|
images?: string[];
|
|
2489
2499
|
texts?: string[];
|
|
2490
2500
|
videos?: string[];
|
|
2491
2501
|
};
|
|
2492
|
-
export
|
|
2493
|
-
export
|
|
2502
|
+
export type ModV2ReviewStatus = 'complete' | 'flagged' | 'partial';
|
|
2503
|
+
export type ModerationFlag = {
|
|
2494
2504
|
created_at: string;
|
|
2495
2505
|
custom: Record<string, any>;
|
|
2496
2506
|
entity_creator_id: string;
|
|
@@ -2505,7 +2515,7 @@ export declare type ModerationFlag = {
|
|
|
2505
2515
|
moderation_payload?: ModerationPayload;
|
|
2506
2516
|
moderation_payload_hash?: string;
|
|
2507
2517
|
};
|
|
2508
|
-
export
|
|
2518
|
+
export type ReviewQueueItem = {
|
|
2509
2519
|
actions_taken: any[];
|
|
2510
2520
|
appealed_by: string;
|
|
2511
2521
|
assigned_to: string;
|
|
@@ -2530,13 +2540,13 @@ export declare type ReviewQueueItem = {
|
|
|
2530
2540
|
status: string;
|
|
2531
2541
|
updated_at: string;
|
|
2532
2542
|
};
|
|
2533
|
-
export
|
|
2543
|
+
export type CustomCheckFlag = {
|
|
2534
2544
|
type: string;
|
|
2535
2545
|
custom?: Record<string, any>[];
|
|
2536
2546
|
labels?: string[];
|
|
2537
2547
|
reason?: string;
|
|
2538
2548
|
};
|
|
2539
|
-
export
|
|
2549
|
+
export type SubmitActionOptions = {
|
|
2540
2550
|
ban?: {
|
|
2541
2551
|
channel_ban_only?: boolean;
|
|
2542
2552
|
reason?: string;
|
|
@@ -2556,7 +2566,7 @@ export declare type SubmitActionOptions = {
|
|
|
2556
2566
|
};
|
|
2557
2567
|
user_id?: string;
|
|
2558
2568
|
};
|
|
2559
|
-
export
|
|
2569
|
+
export type GetUserModerationReportResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
2560
2570
|
user: UserResponse<StreamChatGenerics>;
|
|
2561
2571
|
user_blocks?: Array<{
|
|
2562
2572
|
blocked_at: string;
|
|
@@ -2565,7 +2575,7 @@ export declare type GetUserModerationReportResponse<StreamChatGenerics extends E
|
|
|
2565
2575
|
}>;
|
|
2566
2576
|
user_mutes?: Mute<StreamChatGenerics>[];
|
|
2567
2577
|
};
|
|
2568
|
-
export
|
|
2578
|
+
export type QueryModerationConfigsFilters = QueryFilters<{
|
|
2569
2579
|
key?: string;
|
|
2570
2580
|
} & {
|
|
2571
2581
|
created_at?: PrimitiveFilter<string>;
|
|
@@ -2574,7 +2584,7 @@ export declare type QueryModerationConfigsFilters = QueryFilters<{
|
|
|
2574
2584
|
} & {
|
|
2575
2585
|
team?: string;
|
|
2576
2586
|
}>;
|
|
2577
|
-
export
|
|
2587
|
+
export type ReviewQueueFilters = QueryFilters<{
|
|
2578
2588
|
assigned_to?: RequireOnlyOne<Pick<QueryFilter<ReviewQueueItem['assigned_to']>, '$eq' | '$in'>> | PrimitiveFilter<ReviewQueueItem['assigned_to']>;
|
|
2579
2589
|
} & {
|
|
2580
2590
|
completed_at?: RequireOnlyOne<Pick<QueryFilter<ReviewQueueItem['completed_at']>, '$eq' | '$gt' | '$lt' | '$gte' | '$lte'>> | PrimitiveFilter<ReviewQueueItem['completed_at']>;
|
|
@@ -2650,15 +2660,15 @@ export declare type ReviewQueueFilters = QueryFilters<{
|
|
|
2650
2660
|
$eq?: string;
|
|
2651
2661
|
}>;
|
|
2652
2662
|
}>;
|
|
2653
|
-
export
|
|
2654
|
-
export
|
|
2655
|
-
export
|
|
2656
|
-
export
|
|
2663
|
+
export type ReviewQueueSort = Sort<Pick<ReviewQueueItem, 'id' | 'created_at' | 'updated_at'>> | Array<Sort<Pick<ReviewQueueItem, 'id' | 'created_at' | 'updated_at'>>>;
|
|
2664
|
+
export type QueryModerationConfigsSort = Array<Sort<'key' | 'created_at' | 'updated_at'>>;
|
|
2665
|
+
export type ReviewQueuePaginationOptions = Pager;
|
|
2666
|
+
export type ReviewQueueResponse = {
|
|
2657
2667
|
items: ReviewQueueItem[];
|
|
2658
2668
|
next?: string;
|
|
2659
2669
|
prev?: string;
|
|
2660
2670
|
};
|
|
2661
|
-
export
|
|
2671
|
+
export type ModerationConfig = {
|
|
2662
2672
|
key: string;
|
|
2663
2673
|
ai_image_config?: AIImageConfig;
|
|
2664
2674
|
ai_text_config?: AITextConfig;
|
|
@@ -2669,108 +2679,108 @@ export declare type ModerationConfig = {
|
|
|
2669
2679
|
block_list_config?: BlockListConfig;
|
|
2670
2680
|
team?: string;
|
|
2671
2681
|
};
|
|
2672
|
-
export
|
|
2682
|
+
export type ModerationConfigResponse = ModerationConfig & {
|
|
2673
2683
|
created_at: string;
|
|
2674
2684
|
updated_at: string;
|
|
2675
2685
|
};
|
|
2676
|
-
export
|
|
2686
|
+
export type GetConfigResponse = {
|
|
2677
2687
|
config: ModerationConfigResponse;
|
|
2678
2688
|
};
|
|
2679
|
-
export
|
|
2689
|
+
export type QueryConfigsResponse = {
|
|
2680
2690
|
configs: ModerationConfigResponse[];
|
|
2681
2691
|
next?: string;
|
|
2682
2692
|
prev?: string;
|
|
2683
2693
|
};
|
|
2684
|
-
export
|
|
2694
|
+
export type UpsertConfigResponse = {
|
|
2685
2695
|
config: ModerationConfigResponse;
|
|
2686
2696
|
};
|
|
2687
|
-
export
|
|
2697
|
+
export type ModerationFlagOptions = {
|
|
2688
2698
|
custom?: Record<string, unknown>;
|
|
2689
2699
|
moderation_payload?: ModerationPayload;
|
|
2690
2700
|
user_id?: string;
|
|
2691
2701
|
};
|
|
2692
|
-
export
|
|
2702
|
+
export type ModerationMuteOptions = {
|
|
2693
2703
|
timeout?: number;
|
|
2694
2704
|
user_id?: string;
|
|
2695
2705
|
};
|
|
2696
|
-
export
|
|
2706
|
+
export type GetUserModerationReportOptions = {
|
|
2697
2707
|
create_user_if_not_exists?: boolean;
|
|
2698
2708
|
include_user_blocks?: boolean;
|
|
2699
2709
|
include_user_mutes?: boolean;
|
|
2700
2710
|
};
|
|
2701
|
-
export
|
|
2702
|
-
export
|
|
2703
|
-
export
|
|
2711
|
+
export type AIState = 'AI_STATE_ERROR' | 'AI_STATE_CHECKING_SOURCES' | 'AI_STATE_THINKING' | 'AI_STATE_GENERATING' | (string & {});
|
|
2712
|
+
export type ModerationActionType = 'flag' | 'shadow' | 'remove' | 'bounce' | 'bounce_flag' | 'bounce_remove';
|
|
2713
|
+
export type AutomodRule = {
|
|
2704
2714
|
action: ModerationActionType;
|
|
2705
2715
|
label: string;
|
|
2706
2716
|
threshold: number;
|
|
2707
2717
|
};
|
|
2708
|
-
export
|
|
2718
|
+
export type BlockListRule = {
|
|
2709
2719
|
action: ModerationActionType;
|
|
2710
2720
|
name?: string;
|
|
2711
2721
|
};
|
|
2712
|
-
export
|
|
2722
|
+
export type BlockListConfig = {
|
|
2713
2723
|
enabled: boolean;
|
|
2714
2724
|
rules: BlockListRule[];
|
|
2715
2725
|
async?: boolean;
|
|
2716
2726
|
};
|
|
2717
|
-
export
|
|
2727
|
+
export type AutomodToxicityConfig = {
|
|
2718
2728
|
enabled: boolean;
|
|
2719
2729
|
rules: AutomodRule[];
|
|
2720
2730
|
async?: boolean;
|
|
2721
2731
|
};
|
|
2722
|
-
export
|
|
2732
|
+
export type AutomodPlatformCircumventionConfig = {
|
|
2723
2733
|
enabled: boolean;
|
|
2724
2734
|
rules: AutomodRule[];
|
|
2725
2735
|
async?: boolean;
|
|
2726
2736
|
};
|
|
2727
|
-
export
|
|
2737
|
+
export type AutomodSemanticFiltersRule = {
|
|
2728
2738
|
action: ModerationActionType;
|
|
2729
2739
|
name: string;
|
|
2730
2740
|
threshold: number;
|
|
2731
2741
|
};
|
|
2732
|
-
export
|
|
2742
|
+
export type AutomodSemanticFiltersConfig = {
|
|
2733
2743
|
enabled: boolean;
|
|
2734
2744
|
rules: AutomodSemanticFiltersRule[];
|
|
2735
2745
|
async?: boolean;
|
|
2736
2746
|
};
|
|
2737
|
-
export
|
|
2747
|
+
export type AITextSeverityRule = {
|
|
2738
2748
|
action: ModerationActionType;
|
|
2739
2749
|
severity: 'low' | 'medium' | 'high' | 'critical';
|
|
2740
2750
|
};
|
|
2741
|
-
export
|
|
2751
|
+
export type AITextRule = {
|
|
2742
2752
|
label: string;
|
|
2743
2753
|
action?: ModerationActionType;
|
|
2744
2754
|
severity_rules?: AITextSeverityRule[];
|
|
2745
2755
|
};
|
|
2746
|
-
export
|
|
2756
|
+
export type AITextConfig = {
|
|
2747
2757
|
enabled: boolean;
|
|
2748
2758
|
rules: AITextRule[];
|
|
2749
2759
|
async?: boolean;
|
|
2750
2760
|
profile?: string;
|
|
2751
2761
|
severity_rules?: AITextSeverityRule[];
|
|
2752
2762
|
};
|
|
2753
|
-
export
|
|
2763
|
+
export type AIImageRule = {
|
|
2754
2764
|
action: ModerationActionType;
|
|
2755
2765
|
label: string;
|
|
2756
2766
|
min_confidence?: number;
|
|
2757
2767
|
};
|
|
2758
|
-
export
|
|
2768
|
+
export type AIImageConfig = {
|
|
2759
2769
|
enabled: boolean;
|
|
2760
2770
|
rules: AIImageRule[];
|
|
2761
2771
|
async?: boolean;
|
|
2762
2772
|
};
|
|
2763
|
-
export
|
|
2773
|
+
export type AIVideoRule = {
|
|
2764
2774
|
action: ModerationActionType;
|
|
2765
2775
|
label: string;
|
|
2766
2776
|
min_confidence?: number;
|
|
2767
2777
|
};
|
|
2768
|
-
export
|
|
2778
|
+
export type AIVideoConfig = {
|
|
2769
2779
|
enabled: boolean;
|
|
2770
2780
|
rules: AIVideoRule[];
|
|
2771
2781
|
async?: boolean;
|
|
2772
2782
|
};
|
|
2773
|
-
export
|
|
2783
|
+
export type VelocityFilterConfigRule = {
|
|
2774
2784
|
action: 'flag' | 'shadow' | 'remove' | 'ban';
|
|
2775
2785
|
ban_duration?: number;
|
|
2776
2786
|
cascading_action?: 'flag' | 'shadow' | 'remove' | 'ban';
|
|
@@ -2784,14 +2794,14 @@ export declare type VelocityFilterConfigRule = {
|
|
|
2784
2794
|
slow_spam_threshold?: number;
|
|
2785
2795
|
slow_spam_ttl?: number;
|
|
2786
2796
|
};
|
|
2787
|
-
export
|
|
2797
|
+
export type VelocityFilterConfig = {
|
|
2788
2798
|
cascading_actions: boolean;
|
|
2789
2799
|
enabled: boolean;
|
|
2790
2800
|
first_message_only: boolean;
|
|
2791
2801
|
rules: VelocityFilterConfigRule[];
|
|
2792
2802
|
async?: boolean;
|
|
2793
2803
|
};
|
|
2794
|
-
export
|
|
2804
|
+
export type PromoteChannelParams<SCG extends ExtendableGenerics = DefaultGenerics> = {
|
|
2795
2805
|
channels: Array<Channel<SCG>>;
|
|
2796
2806
|
channelToMove: Channel<SCG>;
|
|
2797
2807
|
sort: ChannelSort<SCG>;
|
|
@@ -2801,5 +2811,8 @@ export declare type PromoteChannelParams<SCG extends ExtendableGenerics = Defaul
|
|
|
2801
2811
|
*/
|
|
2802
2812
|
channelToMoveIndexWithinChannels?: number;
|
|
2803
2813
|
};
|
|
2814
|
+
export type SdkIdentifier = {
|
|
2815
|
+
name: 'react' | 'react-native' | 'angular';
|
|
2816
|
+
version: string;
|
|
2817
|
+
};
|
|
2804
2818
|
export {};
|
|
2805
|
-
//# sourceMappingURL=types.d.ts.map
|