stream-chat 8.57.0 → 8.57.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser.es.js +19235 -0
- package/dist/browser.es.js.map +1 -0
- package/dist/browser.full-bundle.min.js +2 -0
- package/dist/browser.full-bundle.min.js.map +1 -0
- package/dist/browser.js +19316 -0
- package/dist/browser.js.map +1 -0
- package/dist/index.es.js +19238 -0
- package/dist/index.es.js.map +1 -0
- package/dist/index.js +19322 -0
- package/dist/index.js.map +1 -0
- package/dist/types/base64.d.ts +1 -0
- package/dist/types/base64.d.ts.map +1 -0
- package/dist/types/campaign.d.ts +9 -8
- package/dist/types/campaign.d.ts.map +1 -0
- package/dist/types/channel.d.ts +5 -3
- package/dist/types/channel.d.ts.map +1 -0
- package/dist/types/channel_manager.d.ts +12 -11
- package/dist/types/channel_manager.d.ts.map +1 -0
- package/dist/types/channel_state.d.ts +7 -6
- package/dist/types/channel_state.d.ts.map +1 -0
- package/dist/types/client.d.ts +141 -87
- package/dist/types/client.d.ts.map +1 -0
- package/dist/types/client_state.d.ts +1 -0
- package/dist/types/client_state.d.ts.map +1 -0
- package/dist/types/connection.d.ts +6 -3
- package/dist/types/connection.d.ts.map +1 -0
- package/dist/types/connection_fallback.d.ts +1 -0
- package/dist/types/connection_fallback.d.ts.map +1 -0
- package/dist/types/constants.d.ts +1 -0
- package/dist/types/constants.d.ts.map +1 -0
- package/dist/types/errors.d.ts +2 -1
- package/dist/types/errors.d.ts.map +1 -0
- package/dist/types/events.d.ts +1 -0
- package/dist/types/events.d.ts.map +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/insights.d.ts +5 -3
- package/dist/types/insights.d.ts.map +1 -0
- package/dist/types/moderation.d.ts +1 -0
- package/dist/types/moderation.d.ts.map +1 -0
- package/dist/types/permissions.d.ts +3 -2
- package/dist/types/permissions.d.ts.map +1 -0
- package/dist/types/poll.d.ts +10 -9
- package/dist/types/poll.d.ts.map +1 -0
- package/dist/types/poll_manager.d.ts +2 -1
- package/dist/types/poll_manager.d.ts.map +1 -0
- package/dist/types/search_controller.d.ts +18 -17
- package/dist/types/search_controller.d.ts.map +1 -0
- package/dist/types/segment.d.ts +4 -3
- package/dist/types/segment.d.ts.map +1 -0
- package/dist/types/signing.d.ts +5 -3
- package/dist/types/signing.d.ts.map +1 -0
- package/dist/types/store.d.ts +6 -5
- package/dist/types/store.d.ts.map +1 -0
- package/dist/types/thread.d.ts +10 -9
- package/dist/types/thread.d.ts.map +1 -0
- package/dist/types/thread_manager.d.ts +4 -3
- package/dist/types/thread_manager.d.ts.map +1 -0
- package/dist/types/token_manager.d.ts +5 -4
- package/dist/types/token_manager.d.ts.map +1 -0
- package/dist/types/types.d.ts +389 -388
- package/dist/types/types.d.ts.map +1 -0
- package/dist/types/utils.d.ts +16 -14
- package/dist/types/utils.d.ts.map +1 -0
- package/package.json +58 -53
- package/src/client.ts +6 -18
- package/src/connection.ts +7 -14
- package/src/connection_fallback.ts +7 -9
- package/src/signing.ts +5 -10
- package/src/token_manager.ts +4 -5
- package/dist/cjs/index.browser.cjs +0 -11101
- package/dist/cjs/index.browser.cjs.map +0 -7
- package/dist/cjs/index.node.cjs +0 -22510
- package/dist/cjs/index.node.cjs.map +0 -7
- package/dist/esm/index.js +0 -11097
- package/dist/esm/index.js.map +0 -7
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 type ArrayOneOrMore<T> = {
|
|
9
|
+
export declare type ArrayOneOrMore<T> = {
|
|
10
10
|
0: T;
|
|
11
11
|
} & Array<T>;
|
|
12
|
-
export type ArrayTwoOrMore<T> = {
|
|
12
|
+
export declare type ArrayTwoOrMore<T> = {
|
|
13
13
|
0: T;
|
|
14
14
|
1: T;
|
|
15
15
|
} & Array<T>;
|
|
16
|
-
export type KnownKeys<T> = {
|
|
16
|
+
export declare 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 type RequireAtLeastOne<T> = {
|
|
21
|
+
export declare 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 type RequireOnlyOne<T, Keys extends keyof T = keyof T> = Pick<T, Exclude<keyof T, Keys>> & {
|
|
24
|
+
export declare 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 type UR = Record<string, unknown>;
|
|
28
|
-
export type UnknownType = UR;
|
|
29
|
-
export type DefaultGenerics = {
|
|
27
|
+
export declare type UR = Record<string, unknown>;
|
|
28
|
+
export declare type UnknownType = UR;
|
|
29
|
+
export declare type DefaultGenerics = {
|
|
30
30
|
attachmentType: UR;
|
|
31
31
|
channelType: UR;
|
|
32
32
|
commandType: LiteralStringForUnion;
|
|
@@ -38,7 +38,7 @@ export type DefaultGenerics = {
|
|
|
38
38
|
reactionType: UR;
|
|
39
39
|
userType: UR;
|
|
40
40
|
};
|
|
41
|
-
export type ExtendableGenerics = {
|
|
41
|
+
export declare type ExtendableGenerics = {
|
|
42
42
|
attachmentType: UR;
|
|
43
43
|
channelType: UR;
|
|
44
44
|
commandType: string;
|
|
@@ -50,18 +50,18 @@ export type ExtendableGenerics = {
|
|
|
50
50
|
reactionType: UR;
|
|
51
51
|
userType: UR;
|
|
52
52
|
};
|
|
53
|
-
export type Unpacked<T> = T extends (infer U)[] ? U : T extends (...args: any[]) => infer U ? U : T extends Promise<infer U> ? U : T;
|
|
53
|
+
export declare 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 type APIResponse = {
|
|
57
|
+
export declare type APIResponse = {
|
|
58
58
|
duration: string;
|
|
59
59
|
};
|
|
60
|
-
export type TranslateResponse = {
|
|
60
|
+
export declare type TranslateResponse = {
|
|
61
61
|
language: string;
|
|
62
62
|
translated_text: string;
|
|
63
63
|
};
|
|
64
|
-
export type AppSettingsAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
64
|
+
export declare 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 type AppSettingsAPIResponse<StreamChatGenerics extends ExtendableGenerics
|
|
|
150
150
|
webhook_url?: string;
|
|
151
151
|
};
|
|
152
152
|
};
|
|
153
|
-
export type ModerationResult = {
|
|
153
|
+
export declare type ModerationResult = {
|
|
154
154
|
action: string;
|
|
155
155
|
created_at: string;
|
|
156
156
|
message_id: string;
|
|
@@ -161,16 +161,16 @@ export type ModerationResult = {
|
|
|
161
161
|
blocklist_name?: string;
|
|
162
162
|
moderated_by?: string;
|
|
163
163
|
};
|
|
164
|
-
export type AutomodDetails = {
|
|
164
|
+
export declare 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 type FlagDetails = {
|
|
170
|
+
export declare type FlagDetails = {
|
|
171
171
|
automod?: AutomodDetails;
|
|
172
172
|
};
|
|
173
|
-
export type Flag<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
173
|
+
export declare 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 type Flag<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics
|
|
|
179
179
|
target_user?: UserResponse<StreamChatGenerics>;
|
|
180
180
|
user?: UserResponse<StreamChatGenerics>;
|
|
181
181
|
};
|
|
182
|
-
export type FlagsResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
182
|
+
export declare type FlagsResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
183
183
|
flags?: Array<Flag<StreamChatGenerics>>;
|
|
184
184
|
};
|
|
185
|
-
export type MessageFlagsResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
185
|
+
export declare 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 type MessageFlagsResponse<StreamChatGenerics extends ExtendableGenerics =
|
|
|
196
196
|
updated_at?: string;
|
|
197
197
|
}>;
|
|
198
198
|
};
|
|
199
|
-
export type FlagReport<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
199
|
+
export declare 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 type FlagReport<StreamChatGenerics extends ExtendableGenerics = DefaultGe
|
|
|
209
209
|
reviewed_by?: UserResponse<StreamChatGenerics>;
|
|
210
210
|
updated_at?: string;
|
|
211
211
|
};
|
|
212
|
-
export type FlagReportsResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
212
|
+
export declare type FlagReportsResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
213
213
|
flag_reports: Array<FlagReport<StreamChatGenerics>>;
|
|
214
214
|
};
|
|
215
|
-
export type ReviewFlagReportResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
215
|
+
export declare type ReviewFlagReportResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
216
216
|
flag_report: FlagReport<StreamChatGenerics>;
|
|
217
217
|
};
|
|
218
|
-
export type BannedUsersResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
218
|
+
export declare 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 type BannedUsersResponse<StreamChatGenerics extends ExtendableGenerics =
|
|
|
226
226
|
timeout?: number;
|
|
227
227
|
}>;
|
|
228
228
|
};
|
|
229
|
-
export type BlockListResponse = BlockList & {
|
|
229
|
+
export declare type BlockListResponse = BlockList & {
|
|
230
230
|
created_at?: string;
|
|
231
231
|
type?: string;
|
|
232
232
|
updated_at?: string;
|
|
233
233
|
};
|
|
234
|
-
export type ChannelResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = StreamChatGenerics['channelType'] & {
|
|
234
|
+
export declare 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 type ChannelResponse<StreamChatGenerics extends ExtendableGenerics = Defa
|
|
|
260
260
|
truncated_by_id?: string;
|
|
261
261
|
updated_at?: string;
|
|
262
262
|
};
|
|
263
|
-
export type QueryReactionsOptions = Pager;
|
|
264
|
-
export type QueryReactionsAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
263
|
+
export declare type QueryReactionsOptions = Pager;
|
|
264
|
+
export declare type QueryReactionsAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
265
265
|
reactions: ReactionResponse<StreamChatGenerics>[];
|
|
266
266
|
next?: string;
|
|
267
267
|
};
|
|
268
|
-
export type QueryChannelsAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
268
|
+
export declare type QueryChannelsAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
269
269
|
channels: Omit<ChannelAPIResponse<StreamChatGenerics>, keyof APIResponse>[];
|
|
270
270
|
};
|
|
271
|
-
export type QueryChannelAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & ChannelAPIResponse<StreamChatGenerics>;
|
|
272
|
-
export type ChannelAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
271
|
+
export declare type QueryChannelAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & ChannelAPIResponse<StreamChatGenerics>;
|
|
272
|
+
export declare 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 type ChannelAPIResponse<StreamChatGenerics extends ExtendableGenerics = D
|
|
|
283
283
|
watcher_count?: number;
|
|
284
284
|
watchers?: UserResponse<StreamChatGenerics>[];
|
|
285
285
|
};
|
|
286
|
-
export type ChannelUpdateOptions = {
|
|
286
|
+
export declare type ChannelUpdateOptions = {
|
|
287
287
|
hide_history?: boolean;
|
|
288
288
|
skip_push?: boolean;
|
|
289
289
|
};
|
|
290
|
-
export type ChannelMemberAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
290
|
+
export declare type ChannelMemberAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
291
291
|
members: ChannelMemberResponse<StreamChatGenerics>[];
|
|
292
292
|
};
|
|
293
|
-
export type ChannelMemberUpdates<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = StreamChatGenerics['memberType'] & {
|
|
293
|
+
export declare 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 type ChannelMemberResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = StreamChatGenerics['memberType'] & {
|
|
298
|
+
export declare 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 type ChannelMemberResponse<StreamChatGenerics extends ExtendableGenerics
|
|
|
314
314
|
user?: UserResponse<StreamChatGenerics>;
|
|
315
315
|
user_id?: string;
|
|
316
316
|
};
|
|
317
|
-
export type PartialUpdateMemberAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
317
|
+
export declare type PartialUpdateMemberAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
318
318
|
channel_member: ChannelMemberResponse<StreamChatGenerics>;
|
|
319
319
|
};
|
|
320
|
-
export type CheckPushResponse = APIResponse & {
|
|
320
|
+
export declare type CheckPushResponse = APIResponse & {
|
|
321
321
|
device_errors?: {
|
|
322
322
|
[deviceID: string]: {
|
|
323
323
|
error_message?: string;
|
|
@@ -331,53 +331,53 @@ export type CheckPushResponse = APIResponse & {
|
|
|
331
331
|
rendered_message?: {};
|
|
332
332
|
skip_devices?: boolean;
|
|
333
333
|
};
|
|
334
|
-
export type CheckSQSResponse = APIResponse & {
|
|
334
|
+
export declare type CheckSQSResponse = APIResponse & {
|
|
335
335
|
status: string;
|
|
336
336
|
data?: {};
|
|
337
337
|
error?: string;
|
|
338
338
|
};
|
|
339
|
-
export type CheckSNSResponse = APIResponse & {
|
|
339
|
+
export declare type CheckSNSResponse = APIResponse & {
|
|
340
340
|
status: string;
|
|
341
341
|
data?: {};
|
|
342
342
|
error?: string;
|
|
343
343
|
};
|
|
344
|
-
export type CommandResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = Partial<CreatedAtUpdatedAt> & {
|
|
344
|
+
export declare 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 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'> & {
|
|
350
|
+
export declare type ConnectAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = Promise<void | ConnectionOpen<StreamChatGenerics>>;
|
|
351
|
+
export declare 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 type CreateCommandResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
356
|
+
export declare type CreateCommandResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
357
357
|
command: CreateCommandOptions<StreamChatGenerics> & CreatedAtUpdatedAt;
|
|
358
358
|
};
|
|
359
|
-
export type DeleteChannelAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
359
|
+
export declare type DeleteChannelAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
360
360
|
channel: ChannelResponse<StreamChatGenerics>;
|
|
361
361
|
};
|
|
362
|
-
export type DeleteCommandResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
362
|
+
export declare type DeleteCommandResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
363
363
|
name?: CommandVariants<StreamChatGenerics>;
|
|
364
364
|
};
|
|
365
|
-
export type EventAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
365
|
+
export declare type EventAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
366
366
|
event: Event<StreamChatGenerics>;
|
|
367
367
|
};
|
|
368
|
-
export type ExportChannelResponse = {
|
|
368
|
+
export declare type ExportChannelResponse = {
|
|
369
369
|
task_id: string;
|
|
370
370
|
};
|
|
371
|
-
export type ExportUsersResponse = {
|
|
371
|
+
export declare type ExportUsersResponse = {
|
|
372
372
|
task_id: string;
|
|
373
373
|
};
|
|
374
|
-
export type ExportChannelStatusResponse = {
|
|
374
|
+
export declare type ExportChannelStatusResponse = {
|
|
375
375
|
created_at?: string;
|
|
376
376
|
error?: {};
|
|
377
377
|
result?: {};
|
|
378
378
|
updated_at?: string;
|
|
379
379
|
};
|
|
380
|
-
export type FlagMessageResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
380
|
+
export declare 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 type FlagMessageResponse<StreamChatGenerics extends ExtendableGenerics =
|
|
|
394
394
|
};
|
|
395
395
|
review_queue_item_id?: string;
|
|
396
396
|
};
|
|
397
|
-
export type FlagUserResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
397
|
+
export declare 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 type FlagUserResponse<StreamChatGenerics extends ExtendableGenerics = Def
|
|
|
409
409
|
};
|
|
410
410
|
review_queue_item_id?: string;
|
|
411
411
|
};
|
|
412
|
-
export type FormatMessageResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = Omit<MessageResponse<{
|
|
412
|
+
export declare 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 type FormatMessageResponse<StreamChatGenerics extends ExtendableGenerics
|
|
|
427
427
|
status: string;
|
|
428
428
|
updated_at: Date;
|
|
429
429
|
};
|
|
430
|
-
export type GetChannelTypeResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & Omit<CreateChannelOptions<StreamChatGenerics>, 'client_id' | 'connection_id' | 'commands'> & {
|
|
430
|
+
export declare 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 type GetCommandResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & CreateCommandOptions<StreamChatGenerics> & CreatedAtUpdatedAt;
|
|
437
|
-
export type GetMessageAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = SendMessageAPIResponse<StreamChatGenerics>;
|
|
436
|
+
export declare type GetCommandResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & CreateCommandOptions<StreamChatGenerics> & CreatedAtUpdatedAt;
|
|
437
|
+
export declare 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 type PartialThreadUpdate = {
|
|
468
|
+
export declare type PartialThreadUpdate = {
|
|
469
469
|
set?: Partial<Record<string, unknown>>;
|
|
470
470
|
unset?: Array<string>;
|
|
471
471
|
};
|
|
472
|
-
export type QueryThreadsOptions = {
|
|
472
|
+
export declare type QueryThreadsOptions = {
|
|
473
473
|
limit?: number;
|
|
474
474
|
member_limit?: number;
|
|
475
475
|
next?: string;
|
|
@@ -477,35 +477,35 @@ export type QueryThreadsOptions = {
|
|
|
477
477
|
reply_limit?: number;
|
|
478
478
|
watch?: boolean;
|
|
479
479
|
};
|
|
480
|
-
export type QueryThreadsAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
480
|
+
export declare type QueryThreadsAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
481
481
|
threads: ThreadResponse<StreamChatGenerics>[];
|
|
482
482
|
next?: string;
|
|
483
483
|
};
|
|
484
|
-
export type GetThreadOptions = {
|
|
484
|
+
export declare 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 type GetThreadAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
490
|
+
export declare type GetThreadAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
491
491
|
thread: ThreadResponse<StreamChatGenerics>;
|
|
492
492
|
};
|
|
493
|
-
export type GetMultipleMessagesAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
493
|
+
export declare type GetMultipleMessagesAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
494
494
|
messages: MessageResponse<StreamChatGenerics>[];
|
|
495
495
|
};
|
|
496
|
-
export type GetRateLimitsResponse = APIResponse & {
|
|
496
|
+
export declare type GetRateLimitsResponse = APIResponse & {
|
|
497
497
|
android?: RateLimitsMap;
|
|
498
498
|
ios?: RateLimitsMap;
|
|
499
499
|
server_side?: RateLimitsMap;
|
|
500
500
|
web?: RateLimitsMap;
|
|
501
501
|
};
|
|
502
|
-
export type GetReactionsAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
502
|
+
export declare type GetReactionsAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
503
503
|
reactions: ReactionResponse<StreamChatGenerics>[];
|
|
504
504
|
};
|
|
505
|
-
export type GetRepliesAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
505
|
+
export declare type GetRepliesAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
506
506
|
messages: MessageResponse<StreamChatGenerics>[];
|
|
507
507
|
};
|
|
508
|
-
export type GetUnreadCountAPIResponse = APIResponse & {
|
|
508
|
+
export declare type GetUnreadCountAPIResponse = APIResponse & {
|
|
509
509
|
channel_type: {
|
|
510
510
|
channel_count: number;
|
|
511
511
|
channel_type: string;
|
|
@@ -525,28 +525,28 @@ export type GetUnreadCountAPIResponse = APIResponse & {
|
|
|
525
525
|
total_unread_count: number;
|
|
526
526
|
total_unread_threads_count: number;
|
|
527
527
|
};
|
|
528
|
-
export type ChatLevelPushPreference = 'all' | 'none' | 'mentions' | (string & {});
|
|
529
|
-
export type PushPreference = {
|
|
528
|
+
export declare type ChatLevelPushPreference = 'all' | 'none' | 'mentions' | (string & {});
|
|
529
|
+
export declare type PushPreference = {
|
|
530
530
|
callLevel?: 'all' | 'none' | (string & {});
|
|
531
531
|
chatLevel?: ChatLevelPushPreference;
|
|
532
532
|
disabledUntil?: string;
|
|
533
533
|
removeDisable?: boolean;
|
|
534
534
|
};
|
|
535
|
-
export type ChannelPushPreference = {
|
|
535
|
+
export declare type ChannelPushPreference = {
|
|
536
536
|
chatLevel?: ChatLevelPushPreference;
|
|
537
537
|
disabledUntil?: string;
|
|
538
538
|
removeDisable?: boolean;
|
|
539
539
|
};
|
|
540
|
-
export type UpsertPushPreferencesResponse = APIResponse & {
|
|
540
|
+
export declare type UpsertPushPreferencesResponse = APIResponse & {
|
|
541
541
|
userChannelPreferences: Record<string, Record<string, ChannelPushPreference>>;
|
|
542
542
|
userPreferences: Record<string, PushPreference>;
|
|
543
543
|
};
|
|
544
|
-
export type GetUnreadCountBatchAPIResponse = APIResponse & {
|
|
544
|
+
export declare type GetUnreadCountBatchAPIResponse = APIResponse & {
|
|
545
545
|
counts_by_user: {
|
|
546
546
|
[userId: string]: GetUnreadCountAPIResponse;
|
|
547
547
|
};
|
|
548
548
|
};
|
|
549
|
-
export type ListChannelResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
549
|
+
export declare 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 type ListChannelResponse<StreamChatGenerics extends ExtendableGenerics =
|
|
|
554
554
|
grants?: Record<string, string[]>;
|
|
555
555
|
}>;
|
|
556
556
|
};
|
|
557
|
-
export type ListChannelTypesAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = ListChannelResponse<StreamChatGenerics>;
|
|
558
|
-
export type ListCommandsResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
557
|
+
export declare type ListChannelTypesAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = ListChannelResponse<StreamChatGenerics>;
|
|
558
|
+
export declare type ListCommandsResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
559
559
|
commands: Array<CreateCommandOptions<StreamChatGenerics> & Partial<CreatedAtUpdatedAt>>;
|
|
560
560
|
};
|
|
561
|
-
export type MuteChannelAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
561
|
+
export declare 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 type MessageResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = MessageResponseBase<StreamChatGenerics> & {
|
|
567
|
+
export declare type MessageResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = MessageResponseBase<StreamChatGenerics> & {
|
|
568
568
|
quoted_message?: MessageResponseBase<StreamChatGenerics>;
|
|
569
569
|
};
|
|
570
|
-
export type MessageResponseBase<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = MessageBase<StreamChatGenerics> & {
|
|
570
|
+
export declare 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 type MessageResponseBase<StreamChatGenerics extends ExtendableGenerics =
|
|
|
608
608
|
thread_participants?: UserResponse<StreamChatGenerics>[];
|
|
609
609
|
updated_at?: string;
|
|
610
610
|
};
|
|
611
|
-
export type ReactionGroupResponse = {
|
|
611
|
+
export declare 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 type ModerationDetailsResponse = {
|
|
617
|
+
export declare 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 type ModerationHarmResponse = {
|
|
623
|
+
export declare type ModerationHarmResponse = {
|
|
624
624
|
name: string;
|
|
625
625
|
phrase_list_ids: number[];
|
|
626
626
|
};
|
|
627
|
-
export type ModerationAction = 'bounce' | 'flag' | 'remove' | 'shadow';
|
|
628
|
-
export type ModerationResponse = {
|
|
627
|
+
export declare type ModerationAction = 'bounce' | 'flag' | 'remove' | 'shadow';
|
|
628
|
+
export declare type ModerationResponse = {
|
|
629
629
|
action: ModerationAction;
|
|
630
630
|
original_text: string;
|
|
631
631
|
};
|
|
632
|
-
export type MuteResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
632
|
+
export declare 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 type MuteUserResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
639
|
+
export declare 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 type BlockUserAPIResponse = APIResponse & {
|
|
644
|
+
export declare 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 type GetBlockedUsersAPIResponse = APIResponse & {
|
|
649
|
+
export declare type GetBlockedUsersAPIResponse = APIResponse & {
|
|
650
650
|
blocks: BlockedUserDetails[];
|
|
651
651
|
};
|
|
652
|
-
export type BlockedUserDetails = APIResponse & {
|
|
652
|
+
export declare 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 type OwnUserBase<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
659
|
+
export declare 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 type OwnUserBase<StreamChatGenerics extends ExtendableGenerics = DefaultG
|
|
|
669
669
|
push_preferences?: PushPreference;
|
|
670
670
|
roles?: string[];
|
|
671
671
|
};
|
|
672
|
-
export type OwnUserResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = UserResponse<StreamChatGenerics> & OwnUserBase<StreamChatGenerics>;
|
|
673
|
-
export type PartialUpdateChannelAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
672
|
+
export declare type OwnUserResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = UserResponse<StreamChatGenerics> & OwnUserBase<StreamChatGenerics>;
|
|
673
|
+
export declare type PartialUpdateChannelAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
674
674
|
channel: ChannelResponse<StreamChatGenerics>;
|
|
675
675
|
members: ChannelMemberResponse<StreamChatGenerics>[];
|
|
676
676
|
};
|
|
677
|
-
export type PermissionAPIResponse = APIResponse & {
|
|
677
|
+
export declare type PermissionAPIResponse = APIResponse & {
|
|
678
678
|
permission?: PermissionAPIObject;
|
|
679
679
|
};
|
|
680
|
-
export type PermissionsAPIResponse = APIResponse & {
|
|
680
|
+
export declare type PermissionsAPIResponse = APIResponse & {
|
|
681
681
|
permissions?: PermissionAPIObject[];
|
|
682
682
|
};
|
|
683
|
-
export type ReactionAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
683
|
+
export declare type ReactionAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
684
684
|
message: MessageResponse<StreamChatGenerics>;
|
|
685
685
|
reaction: ReactionResponse<StreamChatGenerics>;
|
|
686
686
|
};
|
|
687
|
-
export type ReactionResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = Reaction<StreamChatGenerics> & {
|
|
687
|
+
export declare 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 type ReadResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
692
|
+
export declare 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 type SearchAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
698
|
+
export declare type SearchAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
699
699
|
results: {
|
|
700
700
|
message: MessageResponse<StreamChatGenerics>;
|
|
701
701
|
}[];
|
|
@@ -703,54 +703,54 @@ export type SearchAPIResponse<StreamChatGenerics extends ExtendableGenerics = De
|
|
|
703
703
|
previous?: string;
|
|
704
704
|
results_warning?: SearchWarning | null;
|
|
705
705
|
};
|
|
706
|
-
export type SearchWarning = {
|
|
706
|
+
export declare 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 type SendFileAPIResponse = APIResponse & {
|
|
712
|
+
export declare type SendFileAPIResponse = APIResponse & {
|
|
713
713
|
file: string;
|
|
714
714
|
thumb_url?: string;
|
|
715
715
|
};
|
|
716
|
-
export type SendMessageAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
716
|
+
export declare 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 type SyncResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
720
|
+
export declare type SyncResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
721
721
|
events: Event<StreamChatGenerics>[];
|
|
722
722
|
inaccessible_cids?: string[];
|
|
723
723
|
};
|
|
724
|
-
export type TruncateChannelAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
724
|
+
export declare type TruncateChannelAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
725
725
|
channel: ChannelResponse<StreamChatGenerics>;
|
|
726
726
|
message?: MessageResponse<StreamChatGenerics>;
|
|
727
727
|
};
|
|
728
|
-
export type UpdateChannelAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
728
|
+
export declare 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 type UpdateChannelResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & Omit<CreateChannelOptions<StreamChatGenerics>, 'client_id' | 'connection_id'> & {
|
|
733
|
+
export declare 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 type UpdateCommandResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
737
|
+
export declare type UpdateCommandResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
738
738
|
command: UpdateCommandOptions<StreamChatGenerics> & CreatedAtUpdatedAt & {
|
|
739
739
|
name: CommandVariants<StreamChatGenerics>;
|
|
740
740
|
};
|
|
741
741
|
};
|
|
742
|
-
export type UpdateMessageAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
742
|
+
export declare type UpdateMessageAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
743
743
|
message: MessageResponse<StreamChatGenerics>;
|
|
744
744
|
};
|
|
745
|
-
export type UsersAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
745
|
+
export declare type UsersAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
746
746
|
users: Array<UserResponse<StreamChatGenerics>>;
|
|
747
747
|
};
|
|
748
|
-
export type UpdateUsersAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
748
|
+
export declare type UpdateUsersAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = APIResponse & {
|
|
749
749
|
users: {
|
|
750
750
|
[key: string]: UserResponse<StreamChatGenerics>;
|
|
751
751
|
};
|
|
752
752
|
};
|
|
753
|
-
export type UserResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = User<StreamChatGenerics> & {
|
|
753
|
+
export declare 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 type UserResponse<StreamChatGenerics extends ExtendableGenerics = Default
|
|
|
765
765
|
shadow_banned?: boolean;
|
|
766
766
|
updated_at?: string;
|
|
767
767
|
};
|
|
768
|
-
export type PrivacySettings = {
|
|
768
|
+
export declare type PrivacySettings = {
|
|
769
769
|
read_receipts?: {
|
|
770
770
|
enabled?: boolean;
|
|
771
771
|
};
|
|
@@ -773,40 +773,40 @@ export type PrivacySettings = {
|
|
|
773
773
|
enabled?: boolean;
|
|
774
774
|
};
|
|
775
775
|
};
|
|
776
|
-
export type PushNotificationSettings = {
|
|
776
|
+
export declare type PushNotificationSettings = {
|
|
777
777
|
disabled?: boolean;
|
|
778
778
|
disabled_until?: string | null;
|
|
779
779
|
};
|
|
780
780
|
/**
|
|
781
781
|
* Option Types
|
|
782
782
|
*/
|
|
783
|
-
export type MessageFlagsPaginationOptions = {
|
|
783
|
+
export declare type MessageFlagsPaginationOptions = {
|
|
784
784
|
limit?: number;
|
|
785
785
|
offset?: number;
|
|
786
786
|
};
|
|
787
|
-
export type FlagsPaginationOptions = {
|
|
787
|
+
export declare type FlagsPaginationOptions = {
|
|
788
788
|
limit?: number;
|
|
789
789
|
offset?: number;
|
|
790
790
|
};
|
|
791
|
-
export type FlagReportsPaginationOptions = {
|
|
791
|
+
export declare type FlagReportsPaginationOptions = {
|
|
792
792
|
limit?: number;
|
|
793
793
|
offset?: number;
|
|
794
794
|
};
|
|
795
|
-
export type ReviewFlagReportOptions = {
|
|
795
|
+
export declare type ReviewFlagReportOptions = {
|
|
796
796
|
review_details?: Object;
|
|
797
797
|
user_id?: string;
|
|
798
798
|
};
|
|
799
|
-
export type BannedUsersPaginationOptions = Omit<PaginationOptions, 'id_gt' | 'id_gte' | 'id_lt' | 'id_lte'> & {
|
|
799
|
+
export declare type BannedUsersPaginationOptions = Omit<PaginationOptions, 'id_gt' | 'id_gte' | 'id_lt' | 'id_lte'> & {
|
|
800
800
|
exclude_expired_bans?: boolean;
|
|
801
801
|
};
|
|
802
|
-
export type BanUserOptions<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = UnBanUserOptions & {
|
|
802
|
+
export declare 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 type ChannelOptions = {
|
|
809
|
+
export declare type ChannelOptions = {
|
|
810
810
|
limit?: number;
|
|
811
811
|
member_limit?: number;
|
|
812
812
|
message_limit?: number;
|
|
@@ -816,7 +816,7 @@ export type ChannelOptions = {
|
|
|
816
816
|
user_id?: string;
|
|
817
817
|
watch?: boolean;
|
|
818
818
|
};
|
|
819
|
-
export type ChannelQueryOptions<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
819
|
+
export declare 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 type ChannelQueryOptions<StreamChatGenerics extends ExtendableGenerics =
|
|
|
828
828
|
watch?: boolean;
|
|
829
829
|
watchers?: PaginationOptions;
|
|
830
830
|
};
|
|
831
|
-
export type ChannelStateOptions = {
|
|
831
|
+
export declare type ChannelStateOptions = {
|
|
832
832
|
offlineMode?: boolean;
|
|
833
833
|
skipInitialization?: string[];
|
|
834
834
|
};
|
|
835
|
-
export type CreateChannelOptions<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
835
|
+
export declare 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 type CreateChannelOptions<StreamChatGenerics extends ExtendableGenerics =
|
|
|
863
863
|
uploads?: boolean;
|
|
864
864
|
url_enrichment?: boolean;
|
|
865
865
|
};
|
|
866
|
-
export type CreateCommandOptions<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
866
|
+
export declare 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 type CustomPermissionOptions = {
|
|
872
|
+
export declare type CustomPermissionOptions = {
|
|
873
873
|
action: string;
|
|
874
874
|
condition: object;
|
|
875
875
|
id: string;
|
|
@@ -878,12 +878,12 @@ export type CustomPermissionOptions = {
|
|
|
878
878
|
owner?: boolean;
|
|
879
879
|
same_team?: boolean;
|
|
880
880
|
};
|
|
881
|
-
export type DeactivateUsersOptions = {
|
|
881
|
+
export declare type DeactivateUsersOptions = {
|
|
882
882
|
created_by_id?: string;
|
|
883
883
|
mark_messages_deleted?: boolean;
|
|
884
884
|
};
|
|
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> = {
|
|
885
|
+
export declare type NewMemberPayload<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = StreamChatGenerics['memberType'] & Pick<ChannelMemberResponse<StreamChatGenerics>, 'user_id' | 'channel_role'>;
|
|
886
|
+
export declare 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 type InviteOptions<StreamChatGenerics extends ExtendableGenerics = Defaul
|
|
|
899
899
|
user_id?: string;
|
|
900
900
|
};
|
|
901
901
|
/** @deprecated use MarkChannelsReadOptions instead */
|
|
902
|
-
export type MarkAllReadOptions<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = MarkChannelsReadOptions<StreamChatGenerics>;
|
|
903
|
-
export type MarkChannelsReadOptions<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
902
|
+
export declare type MarkAllReadOptions<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = MarkChannelsReadOptions<StreamChatGenerics>;
|
|
903
|
+
export declare 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 type MarkReadOptions<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
910
|
+
export declare 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 type MarkUnreadOptions<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
917
|
+
export declare 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 type MarkUnreadOptions<StreamChatGenerics extends ExtendableGenerics = De
|
|
|
922
922
|
user?: UserResponse<StreamChatGenerics>;
|
|
923
923
|
user_id?: string;
|
|
924
924
|
};
|
|
925
|
-
export type MuteUserOptions<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
925
|
+
export declare 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 type MuteUserOptions<StreamChatGenerics extends ExtendableGenerics = Defa
|
|
|
933
933
|
user?: UserResponse<StreamChatGenerics>;
|
|
934
934
|
user_id?: string;
|
|
935
935
|
};
|
|
936
|
-
export type PaginationOptions = {
|
|
936
|
+
export declare 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 type PaginationOptions = {
|
|
|
945
945
|
limit?: number;
|
|
946
946
|
offset?: number;
|
|
947
947
|
};
|
|
948
|
-
export type MessagePaginationOptions = PaginationOptions & {
|
|
948
|
+
export declare type MessagePaginationOptions = PaginationOptions & {
|
|
949
949
|
created_at_around?: string | Date;
|
|
950
950
|
id_around?: string;
|
|
951
951
|
};
|
|
952
|
-
export type PinnedMessagePaginationOptions = {
|
|
952
|
+
export declare type PinnedMessagePaginationOptions = {
|
|
953
953
|
id_around?: string;
|
|
954
954
|
id_gt?: string;
|
|
955
955
|
id_gte?: string;
|
|
@@ -963,7 +963,7 @@ export type PinnedMessagePaginationOptions = {
|
|
|
963
963
|
pinned_at_before?: string | Date;
|
|
964
964
|
pinned_at_before_or_equal?: string | Date;
|
|
965
965
|
};
|
|
966
|
-
export type QueryMembersOptions = {
|
|
966
|
+
export declare 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 type QueryMembersOptions = {
|
|
|
975
975
|
user_id_lt?: string;
|
|
976
976
|
user_id_lte?: string;
|
|
977
977
|
};
|
|
978
|
-
export type ReactivateUserOptions = {
|
|
978
|
+
export declare type ReactivateUserOptions = {
|
|
979
979
|
created_by_id?: string;
|
|
980
980
|
name?: string;
|
|
981
981
|
restore_messages?: boolean;
|
|
982
982
|
};
|
|
983
|
-
export type ReactivateUsersOptions = {
|
|
983
|
+
export declare type ReactivateUsersOptions = {
|
|
984
984
|
created_by_id?: string;
|
|
985
985
|
restore_messages?: boolean;
|
|
986
986
|
};
|
|
987
|
-
export type SearchOptions<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
987
|
+
export declare 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 type StreamChatOptions = AxiosRequestConfig & {
|
|
993
|
+
export declare 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 type StreamChatOptions = AxiosRequestConfig & {
|
|
|
1040
1040
|
*/
|
|
1041
1041
|
wsConnection?: StableWSConnection;
|
|
1042
1042
|
};
|
|
1043
|
-
export type SyncOptions = {
|
|
1043
|
+
export declare type SyncOptions = {
|
|
1044
1044
|
/**
|
|
1045
1045
|
* This will behave as queryChannels option.
|
|
1046
1046
|
*/
|
|
@@ -1052,7 +1052,7 @@ export type SyncOptions = {
|
|
|
1052
1052
|
*/
|
|
1053
1053
|
with_inaccessible_cids?: boolean;
|
|
1054
1054
|
};
|
|
1055
|
-
export type UnBanUserOptions = {
|
|
1055
|
+
export declare type UnBanUserOptions = {
|
|
1056
1056
|
client_id?: string;
|
|
1057
1057
|
connection_id?: string;
|
|
1058
1058
|
id?: string;
|
|
@@ -1060,16 +1060,16 @@ export type UnBanUserOptions = {
|
|
|
1060
1060
|
target_user_id?: string;
|
|
1061
1061
|
type?: string;
|
|
1062
1062
|
};
|
|
1063
|
-
export type UpdateChannelOptions<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = Omit<CreateChannelOptions<StreamChatGenerics>, 'name'> & {
|
|
1063
|
+
export declare type UpdateChannelOptions<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = Omit<CreateChannelOptions<StreamChatGenerics>, 'name'> & {
|
|
1064
1064
|
created_at?: string;
|
|
1065
1065
|
updated_at?: string;
|
|
1066
1066
|
};
|
|
1067
|
-
export type UpdateCommandOptions<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
1067
|
+
export declare type UpdateCommandOptions<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
1068
1068
|
description: string;
|
|
1069
1069
|
args?: string;
|
|
1070
1070
|
set?: CommandVariants<StreamChatGenerics>;
|
|
1071
1071
|
};
|
|
1072
|
-
export type UserOptions = {
|
|
1072
|
+
export declare type UserOptions = {
|
|
1073
1073
|
include_deactivated_users?: boolean;
|
|
1074
1074
|
limit?: number;
|
|
1075
1075
|
offset?: number;
|
|
@@ -1078,11 +1078,11 @@ export type UserOptions = {
|
|
|
1078
1078
|
/**
|
|
1079
1079
|
* Event Types
|
|
1080
1080
|
*/
|
|
1081
|
-
export type ConnectionChangeEvent = {
|
|
1081
|
+
export declare type ConnectionChangeEvent = {
|
|
1082
1082
|
type: EventTypes;
|
|
1083
1083
|
online?: boolean;
|
|
1084
1084
|
};
|
|
1085
|
-
export type Event<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = StreamChatGenerics['eventType'] & {
|
|
1085
|
+
export declare 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 type Event<StreamChatGenerics extends ExtendableGenerics = DefaultGeneric
|
|
|
1125
1125
|
user_id?: string;
|
|
1126
1126
|
watcher_count?: number;
|
|
1127
1127
|
};
|
|
1128
|
-
export type UserCustomEvent<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = StreamChatGenerics['eventType'] & {
|
|
1128
|
+
export declare type UserCustomEvent<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = StreamChatGenerics['eventType'] & {
|
|
1129
1129
|
type: string;
|
|
1130
1130
|
};
|
|
1131
|
-
export type EventHandler<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = (event: Event<StreamChatGenerics>) => void;
|
|
1132
|
-
export type EventTypes = 'all' | keyof typeof EVENT_MAP;
|
|
1131
|
+
export declare type EventHandler<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = (event: Event<StreamChatGenerics>) => void;
|
|
1132
|
+
export declare type EventTypes = 'all' | keyof typeof EVENT_MAP;
|
|
1133
1133
|
/**
|
|
1134
1134
|
* Filter Types
|
|
1135
1135
|
*/
|
|
1136
|
-
export type AscDesc = 1 | -1;
|
|
1137
|
-
export type MessageFlagsFiltersOptions = {
|
|
1136
|
+
export declare type AscDesc = 1 | -1;
|
|
1137
|
+
export declare 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 type MessageFlagsFilters = QueryFilters<{
|
|
1143
|
+
export declare 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 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 type FlagsFiltersOptions = {
|
|
1152
|
+
export declare type FlagsFiltersOptions = {
|
|
1153
1153
|
channel_cid?: string;
|
|
1154
1154
|
message_id?: string;
|
|
1155
1155
|
message_user_id?: string;
|
|
@@ -1157,7 +1157,7 @@ export type FlagsFiltersOptions = {
|
|
|
1157
1157
|
team?: string;
|
|
1158
1158
|
user_id?: string;
|
|
1159
1159
|
};
|
|
1160
|
-
export type FlagsFilters = QueryFilters<{
|
|
1160
|
+
export declare 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 type FlagsFilters = QueryFilters<{
|
|
|
1170
1170
|
} & {
|
|
1171
1171
|
team?: RequireOnlyOne<Pick<QueryFilter<FlagsFiltersOptions['team']>, '$eq' | '$in'>> | PrimitiveFilter<FlagsFiltersOptions['team']>;
|
|
1172
1172
|
}>;
|
|
1173
|
-
export type FlagReportsFiltersOptions = {
|
|
1173
|
+
export declare type FlagReportsFiltersOptions = {
|
|
1174
1174
|
channel_cid?: string;
|
|
1175
1175
|
is_reviewed?: boolean;
|
|
1176
1176
|
message_id?: string;
|
|
@@ -1181,7 +1181,7 @@ export type FlagReportsFiltersOptions = {
|
|
|
1181
1181
|
team?: string;
|
|
1182
1182
|
user_id?: string;
|
|
1183
1183
|
};
|
|
1184
|
-
export type FlagReportsFilters = QueryFilters<{
|
|
1184
|
+
export declare 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 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 type BannedUsersFilterOptions = {
|
|
1203
|
+
export declare 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 type BannedUsersFilters = QueryFilters<{
|
|
1210
|
+
export declare 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 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 type ReactionFilters<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = QueryFilters<{
|
|
1219
|
+
export declare 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 type ChannelFilters<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = QueryFilters<ContainsOperator<StreamChatGenerics['channelType']> & {
|
|
1226
|
+
export declare 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 type ChannelFilters<StreamChatGenerics extends ExtendableGenerics = Defau
|
|
|
1268
1268
|
archived?: boolean;
|
|
1269
1269
|
pinned?: boolean;
|
|
1270
1270
|
}>;
|
|
1271
|
-
export type QueryPollsParams = {
|
|
1271
|
+
export declare type QueryPollsParams = {
|
|
1272
1272
|
filter?: QueryPollsFilters;
|
|
1273
1273
|
options?: QueryPollsOptions;
|
|
1274
1274
|
sort?: PollSort;
|
|
1275
1275
|
};
|
|
1276
|
-
export type QueryPollsOptions = Pager;
|
|
1277
|
-
export type VotesFiltersOptions = {
|
|
1276
|
+
export declare type QueryPollsOptions = Pager;
|
|
1277
|
+
export declare type VotesFiltersOptions = {
|
|
1278
1278
|
is_answer?: boolean;
|
|
1279
1279
|
option_id?: string;
|
|
1280
1280
|
user_id?: string;
|
|
1281
1281
|
};
|
|
1282
|
-
export type QueryVotesOptions = Pager;
|
|
1283
|
-
export type QueryPollsFilters = QueryFilters<{
|
|
1282
|
+
export declare type QueryVotesOptions = Pager;
|
|
1283
|
+
export declare 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 type QueryPollsFilters = QueryFilters<{
|
|
|
1303
1303
|
} & {
|
|
1304
1304
|
name?: RequireOnlyOne<Pick<QueryFilter<PollResponse['name']>, '$eq' | '$in'>> | PrimitiveFilter<PollResponse['name']>;
|
|
1305
1305
|
}>;
|
|
1306
|
-
export type QueryVotesFilters = QueryFilters<{
|
|
1306
|
+
export declare 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 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 type ContainsOperator<CustomType = {}> = {
|
|
1321
|
+
export declare 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 type MessageFilters<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = QueryFilters<ContainsOperator<StreamChatGenerics['messageType']> & {
|
|
1326
|
+
export declare 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 type MessageFilters<StreamChatGenerics extends ExtendableGenerics = Defau
|
|
|
1364
1364
|
userType: StreamChatGenerics['userType'];
|
|
1365
1365
|
}>[Key]>;
|
|
1366
1366
|
}>;
|
|
1367
|
-
export type MessageOptions = {
|
|
1367
|
+
export declare type MessageOptions = {
|
|
1368
1368
|
include_thread_participants?: boolean;
|
|
1369
1369
|
};
|
|
1370
|
-
export type PrimitiveFilter<ObjectType> = ObjectType | null;
|
|
1371
|
-
export type QueryFilter<ObjectType = string> = NonNullable<ObjectType> extends string | number | boolean ? {
|
|
1370
|
+
export declare type PrimitiveFilter<ObjectType> = ObjectType | null;
|
|
1371
|
+
export declare 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 type QueryFilter<ObjectType = string> = NonNullable<ObjectType> extends s
|
|
|
1397
1397
|
*/
|
|
1398
1398
|
$nin?: PrimitiveFilter<ObjectType>[];
|
|
1399
1399
|
};
|
|
1400
|
-
export type QueryFilters<Operators = {}> = {
|
|
1400
|
+
export declare type QueryFilters<Operators = {}> = {
|
|
1401
1401
|
[Key in keyof Operators]?: Operators[Key];
|
|
1402
1402
|
} & QueryLogicalOperators<Operators>;
|
|
1403
|
-
export type QueryLogicalOperators<Operators> = {
|
|
1403
|
+
export declare 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 type UserFilters<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = QueryFilters<ContainsOperator<StreamChatGenerics['userType']> & {
|
|
1408
|
+
export declare 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 type UserFilters<StreamChatGenerics extends ExtendableGenerics = DefaultG
|
|
|
1459
1459
|
userType: {};
|
|
1460
1460
|
}>[Key]>;
|
|
1461
1461
|
}>;
|
|
1462
|
-
export type InviteStatus = 'pending' | 'accepted' | 'rejected';
|
|
1463
|
-
export type MemberFilters<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = QueryFilters<{
|
|
1462
|
+
export declare type InviteStatus = 'pending' | 'accepted' | 'rejected';
|
|
1463
|
+
export declare 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 type MemberFilters<StreamChatGenerics extends ExtendableGenerics = Defaul
|
|
|
1522
1522
|
/**
|
|
1523
1523
|
* Sort Types
|
|
1524
1524
|
*/
|
|
1525
|
-
export type BannedUsersSort = BannedUsersSortBase | Array<BannedUsersSortBase>;
|
|
1526
|
-
export type BannedUsersSortBase = {
|
|
1525
|
+
export declare type BannedUsersSort = BannedUsersSortBase | Array<BannedUsersSortBase>;
|
|
1526
|
+
export declare type BannedUsersSortBase = {
|
|
1527
1527
|
created_at?: AscDesc;
|
|
1528
1528
|
};
|
|
1529
|
-
export type ReactionSort<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = ReactionSortBase<StreamChatGenerics> | Array<ReactionSortBase<StreamChatGenerics>>;
|
|
1530
|
-
export type ReactionSortBase<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = Sort<StreamChatGenerics['reactionType']> & {
|
|
1529
|
+
export declare type ReactionSort<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = ReactionSortBase<StreamChatGenerics> | Array<ReactionSortBase<StreamChatGenerics>>;
|
|
1530
|
+
export declare type ReactionSortBase<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = Sort<StreamChatGenerics['reactionType']> & {
|
|
1531
1531
|
created_at?: AscDesc;
|
|
1532
1532
|
};
|
|
1533
|
-
export type ChannelSort<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = ChannelSortBase<StreamChatGenerics> | Array<ChannelSortBase<StreamChatGenerics>>;
|
|
1534
|
-
export type ChannelSortBase<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = Sort<StreamChatGenerics['channelType']> & {
|
|
1533
|
+
export declare type ChannelSort<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = ChannelSortBase<StreamChatGenerics> | Array<ChannelSortBase<StreamChatGenerics>>;
|
|
1534
|
+
export declare 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 type ChannelSortBase<StreamChatGenerics extends ExtendableGenerics = Defa
|
|
|
1541
1541
|
unread_count?: AscDesc;
|
|
1542
1542
|
updated_at?: AscDesc;
|
|
1543
1543
|
};
|
|
1544
|
-
export type PinnedMessagesSort = PinnedMessagesSortBase | Array<PinnedMessagesSortBase>;
|
|
1545
|
-
export type PinnedMessagesSortBase = {
|
|
1544
|
+
export declare type PinnedMessagesSort = PinnedMessagesSortBase | Array<PinnedMessagesSortBase>;
|
|
1545
|
+
export declare type PinnedMessagesSortBase = {
|
|
1546
1546
|
pinned_at?: AscDesc;
|
|
1547
1547
|
};
|
|
1548
|
-
export type Sort<T> = {
|
|
1548
|
+
export declare type Sort<T> = {
|
|
1549
1549
|
[P in keyof T]?: AscDesc;
|
|
1550
1550
|
};
|
|
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']> & {
|
|
1551
|
+
export declare type UserSort<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = Sort<UserResponse<StreamChatGenerics>> | Array<Sort<UserResponse<StreamChatGenerics>>>;
|
|
1552
|
+
export declare 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 declare 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 type SearchMessageSortBase<StreamChatGenerics extends ExtendableGenerics
|
|
|
1565
1565
|
updated_at?: AscDesc;
|
|
1566
1566
|
'user.id'?: AscDesc;
|
|
1567
1567
|
};
|
|
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 = {
|
|
1568
|
+
export declare type SearchMessageSort<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = SearchMessageSortBase<StreamChatGenerics> | Array<SearchMessageSortBase<StreamChatGenerics>>;
|
|
1569
|
+
export declare type QuerySort<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = BannedUsersSort | ChannelSort<StreamChatGenerics> | SearchMessageSort<StreamChatGenerics> | UserSort<StreamChatGenerics>;
|
|
1570
|
+
export declare type PollSort = PollSortBase | Array<PollSortBase>;
|
|
1571
|
+
export declare 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 type VoteSort = VoteSortBase | Array<VoteSortBase>;
|
|
1579
|
-
export type VoteSortBase = {
|
|
1578
|
+
export declare type VoteSort = VoteSortBase | Array<VoteSortBase>;
|
|
1579
|
+
export declare type VoteSortBase = {
|
|
1580
1580
|
created_at?: AscDesc;
|
|
1581
1581
|
id?: AscDesc;
|
|
1582
1582
|
is_closed?: AscDesc;
|
|
@@ -1586,15 +1586,15 @@ export type VoteSortBase = {
|
|
|
1586
1586
|
/**
|
|
1587
1587
|
* Base Types
|
|
1588
1588
|
*/
|
|
1589
|
-
export type Action = {
|
|
1589
|
+
export declare 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 type AnonUserType = {};
|
|
1597
|
-
export type APNConfig = {
|
|
1596
|
+
export declare type AnonUserType = {};
|
|
1597
|
+
export declare type APNConfig = {
|
|
1598
1598
|
auth_key?: string;
|
|
1599
1599
|
auth_type?: string;
|
|
1600
1600
|
bundle_id?: string;
|
|
@@ -1606,12 +1606,12 @@ export type APNConfig = {
|
|
|
1606
1606
|
p12_cert?: string;
|
|
1607
1607
|
team_id?: string;
|
|
1608
1608
|
};
|
|
1609
|
-
export type AgoraOptions = {
|
|
1609
|
+
export declare type AgoraOptions = {
|
|
1610
1610
|
app_certificate: string;
|
|
1611
1611
|
app_id: string;
|
|
1612
1612
|
role_map?: Record<string, string>;
|
|
1613
1613
|
};
|
|
1614
|
-
export type HMSOptions = {
|
|
1614
|
+
export declare type HMSOptions = {
|
|
1615
1615
|
app_access_key: string;
|
|
1616
1616
|
app_secret: string;
|
|
1617
1617
|
default_role: string;
|
|
@@ -1619,14 +1619,14 @@ export type HMSOptions = {
|
|
|
1619
1619
|
default_region?: string;
|
|
1620
1620
|
role_map?: Record<string, string>;
|
|
1621
1621
|
};
|
|
1622
|
-
export type AsyncModerationOptions = {
|
|
1622
|
+
export declare 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 type AppSettings = {
|
|
1629
|
+
export declare type AppSettings = {
|
|
1630
1630
|
agora_options?: AgoraOptions | null;
|
|
1631
1631
|
allowed_flag_reasons?: string[];
|
|
1632
1632
|
apn_config?: {
|
|
@@ -1688,7 +1688,7 @@ export type AppSettings = {
|
|
|
1688
1688
|
secret: string;
|
|
1689
1689
|
};
|
|
1690
1690
|
};
|
|
1691
|
-
export type Attachment<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = StreamChatGenerics['attachmentType'] & {
|
|
1691
|
+
export declare 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 type Attachment<StreamChatGenerics extends ExtendableGenerics = DefaultGe
|
|
|
1717
1717
|
type?: string;
|
|
1718
1718
|
waveform_data?: Array<number>;
|
|
1719
1719
|
};
|
|
1720
|
-
export type OGAttachment = {
|
|
1720
|
+
export declare type OGAttachment = {
|
|
1721
1721
|
og_scrape_url: string;
|
|
1722
1722
|
asset_url?: string;
|
|
1723
1723
|
author_link?: string;
|
|
@@ -1729,19 +1729,19 @@ export type OGAttachment = {
|
|
|
1729
1729
|
title_link?: string;
|
|
1730
1730
|
type?: string | 'video' | 'audio' | 'image';
|
|
1731
1731
|
};
|
|
1732
|
-
export type BlockList = {
|
|
1732
|
+
export declare 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 type ChannelConfig<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = ChannelConfigFields & CreatedAtUpdatedAt & {
|
|
1739
|
+
export declare type ChannelConfig<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = ChannelConfigFields & CreatedAtUpdatedAt & {
|
|
1740
1740
|
commands?: CommandVariants<StreamChatGenerics>[];
|
|
1741
1741
|
};
|
|
1742
|
-
export type ChannelConfigAutomod = '' | 'AI' | 'disabled' | 'simple';
|
|
1743
|
-
export type ChannelConfigAutomodBehavior = '' | 'block' | 'flag';
|
|
1744
|
-
export type ChannelConfigAutomodThresholds = null | {
|
|
1742
|
+
export declare type ChannelConfigAutomod = '' | 'AI' | 'disabled' | 'simple';
|
|
1743
|
+
export declare type ChannelConfigAutomodBehavior = '' | 'block' | 'flag';
|
|
1744
|
+
export declare type ChannelConfigAutomodThresholds = null | {
|
|
1745
1745
|
explicit?: {
|
|
1746
1746
|
block?: number;
|
|
1747
1747
|
flag?: number;
|
|
@@ -1755,7 +1755,7 @@ export type ChannelConfigAutomodThresholds = null | {
|
|
|
1755
1755
|
flag?: number;
|
|
1756
1756
|
};
|
|
1757
1757
|
};
|
|
1758
|
-
export type ChannelConfigFields = {
|
|
1758
|
+
export declare type ChannelConfigFields = {
|
|
1759
1759
|
reminders: boolean;
|
|
1760
1760
|
automod?: ChannelConfigAutomod;
|
|
1761
1761
|
automod_behavior?: ChannelConfigAutomodBehavior;
|
|
@@ -1779,10 +1779,10 @@ export type ChannelConfigFields = {
|
|
|
1779
1779
|
uploads?: boolean;
|
|
1780
1780
|
url_enrichment?: boolean;
|
|
1781
1781
|
};
|
|
1782
|
-
export type ChannelConfigWithInfo<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = ChannelConfigFields & CreatedAtUpdatedAt & {
|
|
1782
|
+
export declare type ChannelConfigWithInfo<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = ChannelConfigFields & CreatedAtUpdatedAt & {
|
|
1783
1783
|
commands?: CommandResponse<StreamChatGenerics>[];
|
|
1784
1784
|
};
|
|
1785
|
-
export type ChannelData<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = StreamChatGenerics['channelType'] & {
|
|
1785
|
+
export declare 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 type ChannelData<StreamChatGenerics extends ExtendableGenerics = DefaultG
|
|
|
1790
1790
|
/**
|
|
1791
1791
|
* @deprecated Use ChannelMemberResponse instead
|
|
1792
1792
|
*/
|
|
1793
|
-
export type ChannelMembership<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = ChannelMemberResponse<StreamChatGenerics>;
|
|
1794
|
-
export type ChannelMute<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
1793
|
+
export declare type ChannelMembership<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = ChannelMemberResponse<StreamChatGenerics>;
|
|
1794
|
+
export declare 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 type ChannelRole = {
|
|
1801
|
+
export declare 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 type CheckPushInput<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
1808
|
+
export declare 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 type CheckPushInput<StreamChatGenerics extends ExtendableGenerics = Defau
|
|
|
1815
1815
|
user?: UserResponse<StreamChatGenerics>;
|
|
1816
1816
|
user_id?: string;
|
|
1817
1817
|
};
|
|
1818
|
-
export type PushProvider = 'apn' | 'firebase' | 'huawei' | 'xiaomi';
|
|
1819
|
-
export type PushProviderConfig = PushProviderCommon & PushProviderID & PushProviderAPN & PushProviderFirebase & PushProviderHuawei & PushProviderXiaomi;
|
|
1820
|
-
export type PushProviderID = {
|
|
1818
|
+
export declare type PushProvider = 'apn' | 'firebase' | 'huawei' | 'xiaomi';
|
|
1819
|
+
export declare type PushProviderConfig = PushProviderCommon & PushProviderID & PushProviderAPN & PushProviderFirebase & PushProviderHuawei & PushProviderXiaomi;
|
|
1820
|
+
export declare type PushProviderID = {
|
|
1821
1821
|
name: string;
|
|
1822
1822
|
type: PushProvider;
|
|
1823
1823
|
};
|
|
1824
|
-
export type PushProviderCommon = {
|
|
1824
|
+
export declare 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 type PushProviderAPN = {
|
|
1831
|
+
export declare 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 type PushProviderAPN = {
|
|
|
1839
1839
|
apn_team_id?: string;
|
|
1840
1840
|
apn_topic?: string;
|
|
1841
1841
|
};
|
|
1842
|
-
export type PushProviderFirebase = {
|
|
1842
|
+
export declare 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 type PushProviderHuawei = {
|
|
1849
|
+
export declare type PushProviderHuawei = {
|
|
1850
1850
|
huawei_app_id?: string;
|
|
1851
1851
|
huawei_app_secret?: string;
|
|
1852
1852
|
};
|
|
1853
|
-
export type PushProviderXiaomi = {
|
|
1853
|
+
export declare type PushProviderXiaomi = {
|
|
1854
1854
|
xiaomi_package_name?: string;
|
|
1855
1855
|
xiaomi_secret?: string;
|
|
1856
1856
|
};
|
|
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> = {
|
|
1857
|
+
export declare type CommandVariants<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = 'all' | 'ban' | 'fun_set' | 'giphy' | 'moderation_set' | 'mute' | 'unban' | 'unmute' | StreamChatGenerics['commandType'];
|
|
1858
|
+
export declare type Configs<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = Record<string, ChannelConfigWithInfo<StreamChatGenerics> | undefined>;
|
|
1859
|
+
export declare 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 type CreatedAtUpdatedAt = {
|
|
1866
|
+
export declare type CreatedAtUpdatedAt = {
|
|
1867
1867
|
created_at: string;
|
|
1868
1868
|
updated_at: string;
|
|
1869
1869
|
};
|
|
1870
|
-
export type Device<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = DeviceFields & {
|
|
1870
|
+
export declare 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 type BaseDeviceFields = {
|
|
1875
|
+
export declare type BaseDeviceFields = {
|
|
1876
1876
|
id: string;
|
|
1877
1877
|
push_provider: PushProvider;
|
|
1878
1878
|
push_provider_name?: string;
|
|
1879
1879
|
};
|
|
1880
|
-
export type DeviceFields = BaseDeviceFields & {
|
|
1880
|
+
export declare type DeviceFields = BaseDeviceFields & {
|
|
1881
1881
|
created_at: string;
|
|
1882
1882
|
disabled?: boolean;
|
|
1883
1883
|
disabled_reason?: string;
|
|
1884
1884
|
};
|
|
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 = {
|
|
1885
|
+
export declare 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 declare 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 type ExportChannelOptions = {
|
|
1893
|
+
export declare 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 type ExportUsersRequest = {
|
|
1900
|
+
export declare type ExportUsersRequest = {
|
|
1901
1901
|
user_ids: string[];
|
|
1902
1902
|
};
|
|
1903
|
-
export type Field = {
|
|
1903
|
+
export declare type Field = {
|
|
1904
1904
|
short?: boolean;
|
|
1905
1905
|
title?: string;
|
|
1906
1906
|
value?: string;
|
|
1907
1907
|
};
|
|
1908
|
-
export type FileUploadConfig = {
|
|
1908
|
+
export declare 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 type FirebaseConfig = {
|
|
1915
|
+
export declare type FirebaseConfig = {
|
|
1916
1916
|
apn_template?: string;
|
|
1917
1917
|
credentials_json?: string;
|
|
1918
1918
|
data_template?: string;
|
|
@@ -1920,34 +1920,34 @@ export type FirebaseConfig = {
|
|
|
1920
1920
|
notification_template?: string;
|
|
1921
1921
|
server_key?: string;
|
|
1922
1922
|
};
|
|
1923
|
-
type GiphyVersionInfo = {
|
|
1923
|
+
declare 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
|
-
type GiphyVersions = 'original' | 'fixed_height' | 'fixed_height_still' | 'fixed_height_downsampled' | 'fixed_width' | 'fixed_width_still' | 'fixed_width_downsampled';
|
|
1931
|
-
type GiphyData = {
|
|
1930
|
+
declare type GiphyVersions = 'original' | 'fixed_height' | 'fixed_height_still' | 'fixed_height_downsampled' | 'fixed_width' | 'fixed_width_still' | 'fixed_width_downsampled';
|
|
1931
|
+
declare type GiphyData = {
|
|
1932
1932
|
[key in GiphyVersions]: GiphyVersionInfo;
|
|
1933
1933
|
};
|
|
1934
|
-
export type HuaweiConfig = {
|
|
1934
|
+
export declare type HuaweiConfig = {
|
|
1935
1935
|
enabled?: boolean;
|
|
1936
1936
|
id?: string;
|
|
1937
1937
|
secret?: string;
|
|
1938
1938
|
};
|
|
1939
|
-
export type XiaomiConfig = {
|
|
1939
|
+
export declare type XiaomiConfig = {
|
|
1940
1940
|
enabled?: boolean;
|
|
1941
1941
|
package_name?: string;
|
|
1942
1942
|
secret?: string;
|
|
1943
1943
|
};
|
|
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>> & {
|
|
1944
|
+
export declare type LiteralStringForUnion = string & {};
|
|
1945
|
+
export declare type LogLevel = 'info' | 'error' | 'warn';
|
|
1946
|
+
export declare type Logger = (logLevel: LogLevel, message: string, extraData?: Record<string, unknown>) => void;
|
|
1947
|
+
export declare type Message<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = Partial<MessageBase<StreamChatGenerics>> & {
|
|
1948
1948
|
mentioned_users?: string[];
|
|
1949
1949
|
};
|
|
1950
|
-
export type MessageBase<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = StreamChatGenerics['messageType'] & {
|
|
1950
|
+
export declare 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 type MessageBase<StreamChatGenerics extends ExtendableGenerics = DefaultG
|
|
|
1965
1965
|
user?: UserResponse<StreamChatGenerics> | null;
|
|
1966
1966
|
user_id?: string;
|
|
1967
1967
|
};
|
|
1968
|
-
export type MessageLabel = 'deleted' | 'ephemeral' | 'error' | 'regular' | 'reply' | 'system';
|
|
1969
|
-
export type SendMessageOptions = {
|
|
1968
|
+
export declare type MessageLabel = 'deleted' | 'ephemeral' | 'error' | 'regular' | 'reply' | 'system';
|
|
1969
|
+
export declare type SendMessageOptions = {
|
|
1970
1970
|
force_moderation?: boolean;
|
|
1971
1971
|
is_pending_message?: boolean;
|
|
1972
1972
|
keep_channel_hidden?: boolean;
|
|
@@ -1975,41 +1975,41 @@ export type SendMessageOptions = {
|
|
|
1975
1975
|
skip_enrich_url?: boolean;
|
|
1976
1976
|
skip_push?: boolean;
|
|
1977
1977
|
};
|
|
1978
|
-
export type UpdateMessageOptions = {
|
|
1978
|
+
export declare type UpdateMessageOptions = {
|
|
1979
1979
|
skip_enrich_url?: boolean;
|
|
1980
1980
|
};
|
|
1981
|
-
export type GetMessageOptions = {
|
|
1981
|
+
export declare type GetMessageOptions = {
|
|
1982
1982
|
show_deleted_message?: boolean;
|
|
1983
1983
|
};
|
|
1984
|
-
export type Mute<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
1984
|
+
export declare 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 type PartialUpdateChannel<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
1990
|
+
export declare type PartialUpdateChannel<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
1991
1991
|
set?: Partial<ChannelResponse<StreamChatGenerics>>;
|
|
1992
1992
|
unset?: Array<keyof ChannelResponse<StreamChatGenerics>>;
|
|
1993
1993
|
};
|
|
1994
|
-
export type PartialUpdateMember<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
1994
|
+
export declare type PartialUpdateMember<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
1995
1995
|
set?: ChannelMemberUpdates<StreamChatGenerics>;
|
|
1996
1996
|
unset?: Array<keyof ChannelMemberUpdates<StreamChatGenerics>>;
|
|
1997
1997
|
};
|
|
1998
|
-
export type PartialUserUpdate<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
1998
|
+
export declare 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 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> = {
|
|
2003
|
+
export declare type MessageUpdatableFields<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = Omit<MessageResponse<StreamChatGenerics>, 'cid' | 'created_at' | 'updated_at' | 'deleted_at' | 'user' | 'user_id'>;
|
|
2004
|
+
export declare type PartialMessageUpdate<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
2005
2005
|
set?: Partial<MessageUpdatableFields<StreamChatGenerics>>;
|
|
2006
2006
|
unset?: Array<keyof MessageUpdatableFields<StreamChatGenerics>>;
|
|
2007
2007
|
};
|
|
2008
|
-
export type PendingMessageResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
2008
|
+
export declare type PendingMessageResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
2009
2009
|
message: MessageResponse<StreamChatGenerics>;
|
|
2010
2010
|
pending_message_metadata?: Record<string, string>;
|
|
2011
2011
|
};
|
|
2012
|
-
export type PermissionAPIObject = {
|
|
2012
|
+
export declare type PermissionAPIObject = {
|
|
2013
2013
|
action?: string;
|
|
2014
2014
|
condition?: object;
|
|
2015
2015
|
custom?: boolean;
|
|
@@ -2021,7 +2021,7 @@ export type PermissionAPIObject = {
|
|
|
2021
2021
|
same_team?: boolean;
|
|
2022
2022
|
tags?: string[];
|
|
2023
2023
|
};
|
|
2024
|
-
export type PermissionObject = {
|
|
2024
|
+
export declare type PermissionObject = {
|
|
2025
2025
|
action?: 'Deny' | 'Allow';
|
|
2026
2026
|
name?: string;
|
|
2027
2027
|
owner?: boolean;
|
|
@@ -2029,7 +2029,7 @@ export type PermissionObject = {
|
|
|
2029
2029
|
resources?: string[];
|
|
2030
2030
|
roles?: string[];
|
|
2031
2031
|
};
|
|
2032
|
-
export type Policy = {
|
|
2032
|
+
export declare type Policy = {
|
|
2033
2033
|
action?: 0 | 1;
|
|
2034
2034
|
created_at?: string;
|
|
2035
2035
|
name?: string;
|
|
@@ -2039,21 +2039,21 @@ export type Policy = {
|
|
|
2039
2039
|
roles?: string[] | null;
|
|
2040
2040
|
updated_at?: string;
|
|
2041
2041
|
};
|
|
2042
|
-
export type RateLimitsInfo = {
|
|
2042
|
+
export declare type RateLimitsInfo = {
|
|
2043
2043
|
limit: number;
|
|
2044
2044
|
remaining: number;
|
|
2045
2045
|
reset: number;
|
|
2046
2046
|
};
|
|
2047
|
-
export type RateLimitsMap = Record<EndpointName, RateLimitsInfo>;
|
|
2048
|
-
export type Reaction<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = StreamChatGenerics['reactionType'] & {
|
|
2047
|
+
export declare type RateLimitsMap = Record<EndpointName, RateLimitsInfo>;
|
|
2048
|
+
export declare 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 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'> & {
|
|
2055
|
+
export declare type Resource = 'AddLinks' | 'BanUser' | 'CreateChannel' | 'CreateMessage' | 'CreateReaction' | 'DeleteAttachment' | 'DeleteChannel' | 'DeleteMessage' | 'DeleteReaction' | 'EditUser' | 'MuteUser' | 'ReadChannel' | 'RunMessageAction' | 'UpdateChannel' | 'UpdateChannelMembers' | 'UpdateMessage' | 'UpdateUser' | 'UploadAttachment';
|
|
2056
|
+
export declare 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 type SearchPayload<StreamChatGenerics extends ExtendableGenerics = Defaul
|
|
|
2065
2065
|
field: keyof SearchMessageSortBase<StreamChatGenerics>;
|
|
2066
2066
|
}>;
|
|
2067
2067
|
};
|
|
2068
|
-
export type TestPushDataInput = {
|
|
2068
|
+
export declare type TestPushDataInput = {
|
|
2069
2069
|
apnTemplate?: string;
|
|
2070
2070
|
firebaseDataTemplate?: string;
|
|
2071
2071
|
firebaseTemplate?: string;
|
|
@@ -2074,25 +2074,25 @@ export type TestPushDataInput = {
|
|
|
2074
2074
|
pushProviderType?: PushProvider;
|
|
2075
2075
|
skipDevices?: boolean;
|
|
2076
2076
|
};
|
|
2077
|
-
export type TestSQSDataInput = {
|
|
2077
|
+
export declare type TestSQSDataInput = {
|
|
2078
2078
|
sqs_key?: string;
|
|
2079
2079
|
sqs_secret?: string;
|
|
2080
2080
|
sqs_url?: string;
|
|
2081
2081
|
};
|
|
2082
|
-
export type TestSNSDataInput = {
|
|
2082
|
+
export declare type TestSNSDataInput = {
|
|
2083
2083
|
sns_key?: string;
|
|
2084
2084
|
sns_secret?: string;
|
|
2085
2085
|
sns_topic_arn?: string;
|
|
2086
2086
|
};
|
|
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'> & {
|
|
2087
|
+
export declare type TokenOrProvider = null | string | TokenProvider | undefined;
|
|
2088
|
+
export declare type TokenProvider = () => Promise<string>;
|
|
2089
|
+
export declare 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 declare type TypingStartEvent = Event;
|
|
2091
|
+
export declare type ReservedMessageFields = 'command' | 'created_at' | 'html' | 'latest_reactions' | 'own_reactions' | 'quoted_message' | 'reaction_counts' | 'reply_count' | 'type' | 'updated_at' | 'user' | '__html';
|
|
2092
|
+
export declare type UpdatedMessage<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = Omit<MessageResponse<StreamChatGenerics>, 'mentioned_users'> & {
|
|
2093
2093
|
mentioned_users?: string[];
|
|
2094
2094
|
};
|
|
2095
|
-
export type User<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = StreamChatGenerics['userType'] & {
|
|
2095
|
+
export declare 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 type User<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics
|
|
|
2100
2100
|
teams?: string[];
|
|
2101
2101
|
username?: string;
|
|
2102
2102
|
};
|
|
2103
|
-
export type TaskResponse = {
|
|
2103
|
+
export declare type TaskResponse = {
|
|
2104
2104
|
task_id: string;
|
|
2105
2105
|
};
|
|
2106
|
-
export type DeleteChannelsResponse = {
|
|
2106
|
+
export declare type DeleteChannelsResponse = {
|
|
2107
2107
|
result: Record<string, string>;
|
|
2108
2108
|
} & Partial<TaskResponse>;
|
|
2109
|
-
export type DeleteType = 'soft' | 'hard' | 'pruning';
|
|
2110
|
-
export type DeleteUserOptions = {
|
|
2109
|
+
export declare type DeleteType = 'soft' | 'hard' | 'pruning';
|
|
2110
|
+
export declare 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 type SegmentType = 'channel' | 'user';
|
|
2117
|
-
export type SegmentData = {
|
|
2116
|
+
export declare type SegmentType = 'channel' | 'user';
|
|
2117
|
+
export declare 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 type SegmentResponse = {
|
|
2124
|
+
export declare type SegmentResponse = {
|
|
2125
2125
|
created_at: string;
|
|
2126
2126
|
deleted_at: string;
|
|
2127
2127
|
id: string;
|
|
@@ -2131,25 +2131,25 @@ export type SegmentResponse = {
|
|
|
2131
2131
|
type: SegmentType;
|
|
2132
2132
|
updated_at: string;
|
|
2133
2133
|
} & SegmentData;
|
|
2134
|
-
export type UpdateSegmentData = {
|
|
2134
|
+
export declare type UpdateSegmentData = {
|
|
2135
2135
|
name: string;
|
|
2136
2136
|
} & SegmentData;
|
|
2137
|
-
export type SegmentTargetsResponse = {
|
|
2137
|
+
export declare type SegmentTargetsResponse = {
|
|
2138
2138
|
created_at: string;
|
|
2139
2139
|
segment_id: string;
|
|
2140
2140
|
target_id: string;
|
|
2141
2141
|
};
|
|
2142
|
-
export type SortParam = {
|
|
2142
|
+
export declare type SortParam = {
|
|
2143
2143
|
field: string;
|
|
2144
2144
|
direction?: AscDesc;
|
|
2145
2145
|
};
|
|
2146
|
-
export type Pager = {
|
|
2146
|
+
export declare type Pager = {
|
|
2147
2147
|
limit?: number;
|
|
2148
2148
|
next?: string;
|
|
2149
2149
|
prev?: string;
|
|
2150
2150
|
};
|
|
2151
|
-
export type QuerySegmentsOptions = Pager;
|
|
2152
|
-
export type QuerySegmentTargetsFilter = {
|
|
2151
|
+
export declare type QuerySegmentsOptions = Pager;
|
|
2152
|
+
export declare type QuerySegmentTargetsFilter = {
|
|
2153
2153
|
target_id?: {
|
|
2154
2154
|
$eq?: string;
|
|
2155
2155
|
$gte?: string;
|
|
@@ -2157,28 +2157,28 @@ export type QuerySegmentTargetsFilter = {
|
|
|
2157
2157
|
$lte?: string;
|
|
2158
2158
|
};
|
|
2159
2159
|
};
|
|
2160
|
-
export type QuerySegmentTargetsOptions = Pick<Pager, 'next' | 'limit'>;
|
|
2161
|
-
export type GetCampaignOptions = {
|
|
2160
|
+
export declare type QuerySegmentTargetsOptions = Pick<Pager, 'next' | 'limit'>;
|
|
2161
|
+
export declare type GetCampaignOptions = {
|
|
2162
2162
|
users?: {
|
|
2163
2163
|
limit?: number;
|
|
2164
2164
|
next?: string;
|
|
2165
2165
|
prev?: string;
|
|
2166
2166
|
};
|
|
2167
2167
|
};
|
|
2168
|
-
export type CampaignSort = {
|
|
2168
|
+
export declare type CampaignSort = {
|
|
2169
2169
|
field: string;
|
|
2170
2170
|
direction?: number;
|
|
2171
2171
|
}[];
|
|
2172
|
-
export type CampaignQueryOptions = {
|
|
2172
|
+
export declare type CampaignQueryOptions = {
|
|
2173
2173
|
limit?: number;
|
|
2174
2174
|
next?: string;
|
|
2175
2175
|
prev?: string;
|
|
2176
2176
|
sort?: CampaignSort;
|
|
2177
2177
|
user_limit?: number;
|
|
2178
2178
|
};
|
|
2179
|
-
export type SegmentQueryOptions = CampaignQueryOptions;
|
|
2180
|
-
export type CampaignFilters = {};
|
|
2181
|
-
export type CampaignData = {
|
|
2179
|
+
export declare type SegmentQueryOptions = CampaignQueryOptions;
|
|
2180
|
+
export declare type CampaignFilters = {};
|
|
2181
|
+
export declare type CampaignData = {
|
|
2182
2182
|
channel_template?: {
|
|
2183
2183
|
type: string;
|
|
2184
2184
|
custom?: {};
|
|
@@ -2204,7 +2204,7 @@ export type CampaignData = {
|
|
|
2204
2204
|
skip_webhook?: boolean;
|
|
2205
2205
|
user_ids?: string[];
|
|
2206
2206
|
};
|
|
2207
|
-
export type CampaignStats = {
|
|
2207
|
+
export declare type CampaignStats = {
|
|
2208
2208
|
progress?: number;
|
|
2209
2209
|
stats_channels_created?: number;
|
|
2210
2210
|
stats_completed_at?: string;
|
|
@@ -2213,7 +2213,7 @@ export type CampaignStats = {
|
|
|
2213
2213
|
stats_users_read?: number;
|
|
2214
2214
|
stats_users_sent?: number;
|
|
2215
2215
|
};
|
|
2216
|
-
export type CampaignResponse = {
|
|
2216
|
+
export declare type CampaignResponse = {
|
|
2217
2217
|
created_at: string;
|
|
2218
2218
|
id: string;
|
|
2219
2219
|
segments: SegmentResponse[];
|
|
@@ -2224,8 +2224,8 @@ export type CampaignResponse = {
|
|
|
2224
2224
|
users: UserResponse[];
|
|
2225
2225
|
scheduled_for?: string;
|
|
2226
2226
|
} & CampaignData;
|
|
2227
|
-
export type DeleteCampaignOptions = {};
|
|
2228
|
-
export type TaskStatus = {
|
|
2227
|
+
export declare type DeleteCampaignOptions = {};
|
|
2228
|
+
export declare type TaskStatus = {
|
|
2229
2229
|
created_at: string;
|
|
2230
2230
|
status: string;
|
|
2231
2231
|
task_id: string;
|
|
@@ -2236,7 +2236,7 @@ export type TaskStatus = {
|
|
|
2236
2236
|
};
|
|
2237
2237
|
result?: UR;
|
|
2238
2238
|
};
|
|
2239
|
-
export type TruncateOptions<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
2239
|
+
export declare type TruncateOptions<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
2240
2240
|
hard_delete?: boolean;
|
|
2241
2241
|
message?: Message<StreamChatGenerics>;
|
|
2242
2242
|
skip_push?: boolean;
|
|
@@ -2244,32 +2244,32 @@ export type TruncateOptions<StreamChatGenerics extends ExtendableGenerics = Defa
|
|
|
2244
2244
|
user?: UserResponse<StreamChatGenerics>;
|
|
2245
2245
|
user_id?: string;
|
|
2246
2246
|
};
|
|
2247
|
-
export type CreateImportURLResponse = {
|
|
2247
|
+
export declare type CreateImportURLResponse = {
|
|
2248
2248
|
path: string;
|
|
2249
2249
|
upload_url: string;
|
|
2250
2250
|
};
|
|
2251
|
-
export type CreateImportResponse = {
|
|
2251
|
+
export declare type CreateImportResponse = {
|
|
2252
2252
|
import_task: ImportTask;
|
|
2253
2253
|
};
|
|
2254
|
-
export type GetImportResponse = {
|
|
2254
|
+
export declare type GetImportResponse = {
|
|
2255
2255
|
import_task: ImportTask;
|
|
2256
2256
|
};
|
|
2257
|
-
export type CreateImportOptions = {
|
|
2257
|
+
export declare type CreateImportOptions = {
|
|
2258
2258
|
mode: 'insert' | 'upsert';
|
|
2259
2259
|
};
|
|
2260
|
-
export type ListImportsPaginationOptions = {
|
|
2260
|
+
export declare type ListImportsPaginationOptions = {
|
|
2261
2261
|
limit?: number;
|
|
2262
2262
|
offset?: number;
|
|
2263
2263
|
};
|
|
2264
|
-
export type ListImportsResponse = {
|
|
2264
|
+
export declare type ListImportsResponse = {
|
|
2265
2265
|
import_tasks: ImportTask[];
|
|
2266
2266
|
};
|
|
2267
|
-
export type ImportTaskHistory = {
|
|
2267
|
+
export declare type ImportTaskHistory = {
|
|
2268
2268
|
created_at: string;
|
|
2269
2269
|
next_state: string;
|
|
2270
2270
|
prev_state: string;
|
|
2271
2271
|
};
|
|
2272
|
-
export type ImportTask = {
|
|
2272
|
+
export declare type ImportTask = {
|
|
2273
2273
|
created_at: string;
|
|
2274
2274
|
history: ImportTaskHistory[];
|
|
2275
2275
|
id: string;
|
|
@@ -2279,8 +2279,8 @@ export type ImportTask = {
|
|
|
2279
2279
|
result?: UR;
|
|
2280
2280
|
size?: number;
|
|
2281
2281
|
};
|
|
2282
|
-
export type MessageSetType = 'latest' | 'current' | 'new';
|
|
2283
|
-
export type MessageSet<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
2282
|
+
export declare type MessageSetType = 'latest' | 'current' | 'new';
|
|
2283
|
+
export declare type MessageSet<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
2284
2284
|
isCurrent: boolean;
|
|
2285
2285
|
isLatest: boolean;
|
|
2286
2286
|
messages: FormatMessageResponse<StreamChatGenerics>[];
|
|
@@ -2289,47 +2289,47 @@ export type MessageSet<StreamChatGenerics extends ExtendableGenerics = DefaultGe
|
|
|
2289
2289
|
hasPrev: boolean;
|
|
2290
2290
|
};
|
|
2291
2291
|
};
|
|
2292
|
-
export type PushProviderUpsertResponse = {
|
|
2292
|
+
export declare type PushProviderUpsertResponse = {
|
|
2293
2293
|
push_provider: PushProvider;
|
|
2294
2294
|
};
|
|
2295
|
-
export type PushProviderListResponse = {
|
|
2295
|
+
export declare type PushProviderListResponse = {
|
|
2296
2296
|
push_providers: PushProvider[];
|
|
2297
2297
|
};
|
|
2298
|
-
export type CreateCallOptions<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
2298
|
+
export declare type CreateCallOptions<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
2299
2299
|
id: string;
|
|
2300
2300
|
type: string;
|
|
2301
2301
|
options?: UR;
|
|
2302
2302
|
user?: UserResponse<StreamChatGenerics> | null;
|
|
2303
2303
|
user_id?: string;
|
|
2304
2304
|
};
|
|
2305
|
-
export type HMSCall = {
|
|
2305
|
+
export declare type HMSCall = {
|
|
2306
2306
|
room: string;
|
|
2307
2307
|
};
|
|
2308
|
-
export type AgoraCall = {
|
|
2308
|
+
export declare type AgoraCall = {
|
|
2309
2309
|
channel: string;
|
|
2310
2310
|
};
|
|
2311
|
-
export type Call = {
|
|
2311
|
+
export declare type Call = {
|
|
2312
2312
|
id: string;
|
|
2313
2313
|
provider: string;
|
|
2314
2314
|
agora?: AgoraCall;
|
|
2315
2315
|
hms?: HMSCall;
|
|
2316
2316
|
};
|
|
2317
|
-
export type CreateCallResponse = APIResponse & {
|
|
2317
|
+
export declare type CreateCallResponse = APIResponse & {
|
|
2318
2318
|
call: Call;
|
|
2319
2319
|
token: string;
|
|
2320
2320
|
agora_app_id?: string;
|
|
2321
2321
|
agora_uid?: number;
|
|
2322
2322
|
};
|
|
2323
|
-
export type GetCallTokenResponse = APIResponse & {
|
|
2323
|
+
export declare type GetCallTokenResponse = APIResponse & {
|
|
2324
2324
|
token: string;
|
|
2325
2325
|
agora_app_id?: string;
|
|
2326
2326
|
agora_uid?: number;
|
|
2327
2327
|
};
|
|
2328
|
-
type ErrorResponseDetails = {
|
|
2328
|
+
declare type ErrorResponseDetails = {
|
|
2329
2329
|
code: number;
|
|
2330
2330
|
messages: string[];
|
|
2331
2331
|
};
|
|
2332
|
-
export type APIErrorResponse = {
|
|
2332
|
+
export declare type APIErrorResponse = {
|
|
2333
2333
|
code: number;
|
|
2334
2334
|
duration: string;
|
|
2335
2335
|
message: string;
|
|
@@ -2342,20 +2342,20 @@ export declare class ErrorFromResponse<T> extends Error {
|
|
|
2342
2342
|
response?: AxiosResponse<T>;
|
|
2343
2343
|
status?: number;
|
|
2344
2344
|
}
|
|
2345
|
-
export type QueryPollsResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
2345
|
+
export declare type QueryPollsResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
2346
2346
|
polls: PollResponse<StreamChatGenerics>[];
|
|
2347
2347
|
next?: string;
|
|
2348
2348
|
};
|
|
2349
|
-
export type CreatePollAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
2349
|
+
export declare type CreatePollAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
2350
2350
|
poll: PollResponse<StreamChatGenerics>;
|
|
2351
2351
|
};
|
|
2352
|
-
export type GetPollAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
2352
|
+
export declare type GetPollAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
2353
2353
|
poll: PollResponse<StreamChatGenerics>;
|
|
2354
2354
|
};
|
|
2355
|
-
export type UpdatePollAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
2355
|
+
export declare type UpdatePollAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
2356
2356
|
poll: PollResponse<StreamChatGenerics>;
|
|
2357
2357
|
};
|
|
2358
|
-
export type PollResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = StreamChatGenerics['pollType'] & PollEnrichData<StreamChatGenerics> & {
|
|
2358
|
+
export declare type PollResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = StreamChatGenerics['pollType'] & PollEnrichData<StreamChatGenerics> & {
|
|
2359
2359
|
created_at: string;
|
|
2360
2360
|
created_by: UserResponse<StreamChatGenerics> | null;
|
|
2361
2361
|
created_by_id: string;
|
|
@@ -2371,7 +2371,7 @@ export type PollResponse<StreamChatGenerics extends ExtendableGenerics = Default
|
|
|
2371
2371
|
is_closed?: boolean;
|
|
2372
2372
|
voting_visibility?: VotingVisibility;
|
|
2373
2373
|
};
|
|
2374
|
-
export type PollOption<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
2374
|
+
export declare type PollOption<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
2375
2375
|
created_at: string;
|
|
2376
2376
|
id: string;
|
|
2377
2377
|
poll_id: string;
|
|
@@ -2384,7 +2384,7 @@ export declare enum VotingVisibility {
|
|
|
2384
2384
|
anonymous = "anonymous",
|
|
2385
2385
|
public = "public"
|
|
2386
2386
|
}
|
|
2387
|
-
export type PollEnrichData<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
2387
|
+
export declare type PollEnrichData<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
2388
2388
|
answers_count: number;
|
|
2389
2389
|
latest_answers: PollAnswer<StreamChatGenerics>[];
|
|
2390
2390
|
latest_votes_by_option: Record<string, PollVote<StreamChatGenerics>[]>;
|
|
@@ -2392,7 +2392,7 @@ export type PollEnrichData<StreamChatGenerics extends ExtendableGenerics = Defau
|
|
|
2392
2392
|
vote_counts_by_option: Record<string, number>;
|
|
2393
2393
|
own_votes?: (PollVote<StreamChatGenerics> | PollAnswer<StreamChatGenerics>)[];
|
|
2394
2394
|
};
|
|
2395
|
-
export type PollData<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = StreamChatGenerics['pollType'] & {
|
|
2395
|
+
export declare type PollData<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = StreamChatGenerics['pollType'] & {
|
|
2396
2396
|
id: string;
|
|
2397
2397
|
name: string;
|
|
2398
2398
|
allow_answers?: boolean;
|
|
@@ -2405,35 +2405,35 @@ export type PollData<StreamChatGenerics extends ExtendableGenerics = DefaultGene
|
|
|
2405
2405
|
user_id?: string;
|
|
2406
2406
|
voting_visibility?: VotingVisibility;
|
|
2407
2407
|
};
|
|
2408
|
-
export type CreatePollData<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = Partial<PollData<StreamChatGenerics>> & Pick<PollData<StreamChatGenerics>, 'name'>;
|
|
2409
|
-
export type PartialPollUpdate<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
2408
|
+
export declare type CreatePollData<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = Partial<PollData<StreamChatGenerics>> & Pick<PollData<StreamChatGenerics>, 'name'>;
|
|
2409
|
+
export declare type PartialPollUpdate<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
2410
2410
|
set?: Partial<PollData<StreamChatGenerics>>;
|
|
2411
2411
|
unset?: Array<keyof PollData<StreamChatGenerics>>;
|
|
2412
2412
|
};
|
|
2413
|
-
export type PollOptionData<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = StreamChatGenerics['pollOptionType'] & {
|
|
2413
|
+
export declare type PollOptionData<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = StreamChatGenerics['pollOptionType'] & {
|
|
2414
2414
|
text: string;
|
|
2415
2415
|
id?: string;
|
|
2416
2416
|
position?: number;
|
|
2417
2417
|
};
|
|
2418
|
-
export type PartialPollOptionUpdate<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
2418
|
+
export declare type PartialPollOptionUpdate<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
2419
2419
|
set?: Partial<PollOptionResponse<StreamChatGenerics>>;
|
|
2420
2420
|
unset?: Array<keyof PollOptionResponse<StreamChatGenerics>>;
|
|
2421
2421
|
};
|
|
2422
|
-
export type PollVoteData = {
|
|
2422
|
+
export declare type PollVoteData = {
|
|
2423
2423
|
answer_text?: string;
|
|
2424
2424
|
is_answer?: boolean;
|
|
2425
2425
|
option_id?: string;
|
|
2426
2426
|
};
|
|
2427
|
-
export type PollPaginationOptions = {
|
|
2427
|
+
export declare type PollPaginationOptions = {
|
|
2428
2428
|
limit?: number;
|
|
2429
2429
|
next?: string;
|
|
2430
2430
|
};
|
|
2431
|
-
export type CreatePollOptionAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
2431
|
+
export declare type CreatePollOptionAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
2432
2432
|
poll_option: PollOptionResponse<StreamChatGenerics>;
|
|
2433
2433
|
};
|
|
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'] & {
|
|
2434
|
+
export declare type GetPollOptionAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = CreatePollOptionAPIResponse<StreamChatGenerics>;
|
|
2435
|
+
export declare type UpdatePollOptionAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = CreatePollOptionAPIResponse<StreamChatGenerics>;
|
|
2436
|
+
export declare type PollOptionResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = StreamChatGenerics['pollType'] & {
|
|
2437
2437
|
created_at: string;
|
|
2438
2438
|
id: string;
|
|
2439
2439
|
poll_id: string;
|
|
@@ -2443,7 +2443,7 @@ export type PollOptionResponse<StreamChatGenerics extends ExtendableGenerics = D
|
|
|
2443
2443
|
vote_count: number;
|
|
2444
2444
|
votes?: PollVote<StreamChatGenerics>[];
|
|
2445
2445
|
};
|
|
2446
|
-
export type PollVote<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
2446
|
+
export declare type PollVote<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
2447
2447
|
created_at: string;
|
|
2448
2448
|
id: string;
|
|
2449
2449
|
poll_id: string;
|
|
@@ -2452,55 +2452,55 @@ export type PollVote<StreamChatGenerics extends ExtendableGenerics = DefaultGene
|
|
|
2452
2452
|
user?: UserResponse<StreamChatGenerics>;
|
|
2453
2453
|
user_id?: string;
|
|
2454
2454
|
};
|
|
2455
|
-
export type PollAnswer<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = Exclude<PollVote<StreamChatGenerics>, 'option_id'> & {
|
|
2455
|
+
export declare type PollAnswer<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = Exclude<PollVote<StreamChatGenerics>, 'option_id'> & {
|
|
2456
2456
|
answer_text: string;
|
|
2457
2457
|
is_answer: boolean;
|
|
2458
2458
|
};
|
|
2459
|
-
export type PollVotesAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
2459
|
+
export declare type PollVotesAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
2460
2460
|
votes: (PollVote<StreamChatGenerics> | PollAnswer<StreamChatGenerics>)[];
|
|
2461
2461
|
next?: string;
|
|
2462
2462
|
};
|
|
2463
|
-
export type PollAnswersAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
2463
|
+
export declare type PollAnswersAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
2464
2464
|
votes: PollAnswer<StreamChatGenerics>[];
|
|
2465
2465
|
next?: string;
|
|
2466
2466
|
};
|
|
2467
|
-
export type CastVoteAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
2467
|
+
export declare type CastVoteAPIResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
2468
2468
|
vote: PollVote<StreamChatGenerics> | PollAnswer<StreamChatGenerics>;
|
|
2469
2469
|
};
|
|
2470
|
-
export type QueryMessageHistoryFilters = QueryFilters<{
|
|
2470
|
+
export declare type QueryMessageHistoryFilters = QueryFilters<{
|
|
2471
2471
|
message_id?: RequireOnlyOne<Pick<QueryFilter<MessageHistoryEntry['message_id']>, '$eq' | '$in'>> | PrimitiveFilter<MessageHistoryEntry['message_id']>;
|
|
2472
2472
|
} & {
|
|
2473
2473
|
user_id?: RequireOnlyOne<Pick<QueryFilter<MessageHistoryEntry['message_updated_by_id']>, '$eq' | '$in'>> | PrimitiveFilter<MessageHistoryEntry['message_updated_by_id']>;
|
|
2474
2474
|
} & {
|
|
2475
2475
|
created_at?: RequireOnlyOne<Pick<QueryFilter<MessageHistoryEntry['message_updated_at']>, '$eq' | '$gt' | '$lt' | '$gte' | '$lte'>> | PrimitiveFilter<MessageHistoryEntry['message_updated_at']>;
|
|
2476
2476
|
}>;
|
|
2477
|
-
export type QueryMessageHistorySort = QueryMessageHistorySortBase | Array<QueryMessageHistorySortBase>;
|
|
2478
|
-
export type QueryMessageHistorySortBase = {
|
|
2477
|
+
export declare type QueryMessageHistorySort = QueryMessageHistorySortBase | Array<QueryMessageHistorySortBase>;
|
|
2478
|
+
export declare type QueryMessageHistorySortBase = {
|
|
2479
2479
|
message_updated_at?: AscDesc;
|
|
2480
2480
|
message_updated_by_id?: AscDesc;
|
|
2481
2481
|
};
|
|
2482
|
-
export type QueryMessageHistoryOptions = Pager;
|
|
2483
|
-
export type MessageHistoryEntry<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
2482
|
+
export declare type QueryMessageHistoryOptions = Pager;
|
|
2483
|
+
export declare type MessageHistoryEntry<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
2484
2484
|
message_id: string;
|
|
2485
2485
|
message_updated_at: string;
|
|
2486
2486
|
attachments?: Attachment<StreamChatGenerics>[];
|
|
2487
2487
|
message_updated_by_id?: string;
|
|
2488
2488
|
text?: string;
|
|
2489
2489
|
};
|
|
2490
|
-
export type QueryMessageHistoryResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
2490
|
+
export declare type QueryMessageHistoryResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
2491
2491
|
message_history: MessageHistoryEntry<StreamChatGenerics>[];
|
|
2492
2492
|
next?: string;
|
|
2493
2493
|
prev?: string;
|
|
2494
2494
|
};
|
|
2495
|
-
export type ModerationPayload = {
|
|
2495
|
+
export declare type ModerationPayload = {
|
|
2496
2496
|
created_at: string;
|
|
2497
2497
|
custom?: Record<string, any>;
|
|
2498
2498
|
images?: string[];
|
|
2499
2499
|
texts?: string[];
|
|
2500
2500
|
videos?: string[];
|
|
2501
2501
|
};
|
|
2502
|
-
export type ModV2ReviewStatus = 'complete' | 'flagged' | 'partial';
|
|
2503
|
-
export type ModerationFlag = {
|
|
2502
|
+
export declare type ModV2ReviewStatus = 'complete' | 'flagged' | 'partial';
|
|
2503
|
+
export declare type ModerationFlag = {
|
|
2504
2504
|
created_at: string;
|
|
2505
2505
|
custom: Record<string, any>;
|
|
2506
2506
|
entity_creator_id: string;
|
|
@@ -2515,7 +2515,7 @@ export type ModerationFlag = {
|
|
|
2515
2515
|
moderation_payload?: ModerationPayload;
|
|
2516
2516
|
moderation_payload_hash?: string;
|
|
2517
2517
|
};
|
|
2518
|
-
export type ReviewQueueItem = {
|
|
2518
|
+
export declare type ReviewQueueItem = {
|
|
2519
2519
|
actions_taken: any[];
|
|
2520
2520
|
appealed_by: string;
|
|
2521
2521
|
assigned_to: string;
|
|
@@ -2540,13 +2540,13 @@ export type ReviewQueueItem = {
|
|
|
2540
2540
|
status: string;
|
|
2541
2541
|
updated_at: string;
|
|
2542
2542
|
};
|
|
2543
|
-
export type CustomCheckFlag = {
|
|
2543
|
+
export declare type CustomCheckFlag = {
|
|
2544
2544
|
type: string;
|
|
2545
2545
|
custom?: Record<string, any>[];
|
|
2546
2546
|
labels?: string[];
|
|
2547
2547
|
reason?: string;
|
|
2548
2548
|
};
|
|
2549
|
-
export type SubmitActionOptions = {
|
|
2549
|
+
export declare type SubmitActionOptions = {
|
|
2550
2550
|
ban?: {
|
|
2551
2551
|
channel_ban_only?: boolean;
|
|
2552
2552
|
reason?: string;
|
|
@@ -2566,7 +2566,7 @@ export type SubmitActionOptions = {
|
|
|
2566
2566
|
};
|
|
2567
2567
|
user_id?: string;
|
|
2568
2568
|
};
|
|
2569
|
-
export type GetUserModerationReportResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
2569
|
+
export declare type GetUserModerationReportResponse<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
2570
2570
|
user: UserResponse<StreamChatGenerics>;
|
|
2571
2571
|
user_blocks?: Array<{
|
|
2572
2572
|
blocked_at: string;
|
|
@@ -2575,7 +2575,7 @@ export type GetUserModerationReportResponse<StreamChatGenerics extends Extendabl
|
|
|
2575
2575
|
}>;
|
|
2576
2576
|
user_mutes?: Mute<StreamChatGenerics>[];
|
|
2577
2577
|
};
|
|
2578
|
-
export type QueryModerationConfigsFilters = QueryFilters<{
|
|
2578
|
+
export declare type QueryModerationConfigsFilters = QueryFilters<{
|
|
2579
2579
|
key?: string;
|
|
2580
2580
|
} & {
|
|
2581
2581
|
created_at?: PrimitiveFilter<string>;
|
|
@@ -2584,7 +2584,7 @@ export type QueryModerationConfigsFilters = QueryFilters<{
|
|
|
2584
2584
|
} & {
|
|
2585
2585
|
team?: string;
|
|
2586
2586
|
}>;
|
|
2587
|
-
export type ReviewQueueFilters = QueryFilters<{
|
|
2587
|
+
export declare type ReviewQueueFilters = QueryFilters<{
|
|
2588
2588
|
assigned_to?: RequireOnlyOne<Pick<QueryFilter<ReviewQueueItem['assigned_to']>, '$eq' | '$in'>> | PrimitiveFilter<ReviewQueueItem['assigned_to']>;
|
|
2589
2589
|
} & {
|
|
2590
2590
|
completed_at?: RequireOnlyOne<Pick<QueryFilter<ReviewQueueItem['completed_at']>, '$eq' | '$gt' | '$lt' | '$gte' | '$lte'>> | PrimitiveFilter<ReviewQueueItem['completed_at']>;
|
|
@@ -2660,15 +2660,15 @@ export type ReviewQueueFilters = QueryFilters<{
|
|
|
2660
2660
|
$eq?: string;
|
|
2661
2661
|
}>;
|
|
2662
2662
|
}>;
|
|
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 = {
|
|
2663
|
+
export declare type ReviewQueueSort = Sort<Pick<ReviewQueueItem, 'id' | 'created_at' | 'updated_at'>> | Array<Sort<Pick<ReviewQueueItem, 'id' | 'created_at' | 'updated_at'>>>;
|
|
2664
|
+
export declare type QueryModerationConfigsSort = Array<Sort<'key' | 'created_at' | 'updated_at'>>;
|
|
2665
|
+
export declare type ReviewQueuePaginationOptions = Pager;
|
|
2666
|
+
export declare type ReviewQueueResponse = {
|
|
2667
2667
|
items: ReviewQueueItem[];
|
|
2668
2668
|
next?: string;
|
|
2669
2669
|
prev?: string;
|
|
2670
2670
|
};
|
|
2671
|
-
export type ModerationConfig = {
|
|
2671
|
+
export declare type ModerationConfig = {
|
|
2672
2672
|
key: string;
|
|
2673
2673
|
ai_image_config?: AIImageConfig;
|
|
2674
2674
|
ai_text_config?: AITextConfig;
|
|
@@ -2679,108 +2679,108 @@ export type ModerationConfig = {
|
|
|
2679
2679
|
block_list_config?: BlockListConfig;
|
|
2680
2680
|
team?: string;
|
|
2681
2681
|
};
|
|
2682
|
-
export type ModerationConfigResponse = ModerationConfig & {
|
|
2682
|
+
export declare type ModerationConfigResponse = ModerationConfig & {
|
|
2683
2683
|
created_at: string;
|
|
2684
2684
|
updated_at: string;
|
|
2685
2685
|
};
|
|
2686
|
-
export type GetConfigResponse = {
|
|
2686
|
+
export declare type GetConfigResponse = {
|
|
2687
2687
|
config: ModerationConfigResponse;
|
|
2688
2688
|
};
|
|
2689
|
-
export type QueryConfigsResponse = {
|
|
2689
|
+
export declare type QueryConfigsResponse = {
|
|
2690
2690
|
configs: ModerationConfigResponse[];
|
|
2691
2691
|
next?: string;
|
|
2692
2692
|
prev?: string;
|
|
2693
2693
|
};
|
|
2694
|
-
export type UpsertConfigResponse = {
|
|
2694
|
+
export declare type UpsertConfigResponse = {
|
|
2695
2695
|
config: ModerationConfigResponse;
|
|
2696
2696
|
};
|
|
2697
|
-
export type ModerationFlagOptions = {
|
|
2697
|
+
export declare type ModerationFlagOptions = {
|
|
2698
2698
|
custom?: Record<string, unknown>;
|
|
2699
2699
|
moderation_payload?: ModerationPayload;
|
|
2700
2700
|
user_id?: string;
|
|
2701
2701
|
};
|
|
2702
|
-
export type ModerationMuteOptions = {
|
|
2702
|
+
export declare type ModerationMuteOptions = {
|
|
2703
2703
|
timeout?: number;
|
|
2704
2704
|
user_id?: string;
|
|
2705
2705
|
};
|
|
2706
|
-
export type GetUserModerationReportOptions = {
|
|
2706
|
+
export declare type GetUserModerationReportOptions = {
|
|
2707
2707
|
create_user_if_not_exists?: boolean;
|
|
2708
2708
|
include_user_blocks?: boolean;
|
|
2709
2709
|
include_user_mutes?: boolean;
|
|
2710
2710
|
};
|
|
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 = {
|
|
2711
|
+
export declare type AIState = 'AI_STATE_ERROR' | 'AI_STATE_CHECKING_SOURCES' | 'AI_STATE_THINKING' | 'AI_STATE_GENERATING' | (string & {});
|
|
2712
|
+
export declare type ModerationActionType = 'flag' | 'shadow' | 'remove' | 'bounce' | 'bounce_flag' | 'bounce_remove';
|
|
2713
|
+
export declare type AutomodRule = {
|
|
2714
2714
|
action: ModerationActionType;
|
|
2715
2715
|
label: string;
|
|
2716
2716
|
threshold: number;
|
|
2717
2717
|
};
|
|
2718
|
-
export type BlockListRule = {
|
|
2718
|
+
export declare type BlockListRule = {
|
|
2719
2719
|
action: ModerationActionType;
|
|
2720
2720
|
name?: string;
|
|
2721
2721
|
};
|
|
2722
|
-
export type BlockListConfig = {
|
|
2722
|
+
export declare type BlockListConfig = {
|
|
2723
2723
|
enabled: boolean;
|
|
2724
2724
|
rules: BlockListRule[];
|
|
2725
2725
|
async?: boolean;
|
|
2726
2726
|
};
|
|
2727
|
-
export type AutomodToxicityConfig = {
|
|
2727
|
+
export declare type AutomodToxicityConfig = {
|
|
2728
2728
|
enabled: boolean;
|
|
2729
2729
|
rules: AutomodRule[];
|
|
2730
2730
|
async?: boolean;
|
|
2731
2731
|
};
|
|
2732
|
-
export type AutomodPlatformCircumventionConfig = {
|
|
2732
|
+
export declare type AutomodPlatformCircumventionConfig = {
|
|
2733
2733
|
enabled: boolean;
|
|
2734
2734
|
rules: AutomodRule[];
|
|
2735
2735
|
async?: boolean;
|
|
2736
2736
|
};
|
|
2737
|
-
export type AutomodSemanticFiltersRule = {
|
|
2737
|
+
export declare type AutomodSemanticFiltersRule = {
|
|
2738
2738
|
action: ModerationActionType;
|
|
2739
2739
|
name: string;
|
|
2740
2740
|
threshold: number;
|
|
2741
2741
|
};
|
|
2742
|
-
export type AutomodSemanticFiltersConfig = {
|
|
2742
|
+
export declare type AutomodSemanticFiltersConfig = {
|
|
2743
2743
|
enabled: boolean;
|
|
2744
2744
|
rules: AutomodSemanticFiltersRule[];
|
|
2745
2745
|
async?: boolean;
|
|
2746
2746
|
};
|
|
2747
|
-
export type AITextSeverityRule = {
|
|
2747
|
+
export declare type AITextSeverityRule = {
|
|
2748
2748
|
action: ModerationActionType;
|
|
2749
2749
|
severity: 'low' | 'medium' | 'high' | 'critical';
|
|
2750
2750
|
};
|
|
2751
|
-
export type AITextRule = {
|
|
2751
|
+
export declare type AITextRule = {
|
|
2752
2752
|
label: string;
|
|
2753
2753
|
action?: ModerationActionType;
|
|
2754
2754
|
severity_rules?: AITextSeverityRule[];
|
|
2755
2755
|
};
|
|
2756
|
-
export type AITextConfig = {
|
|
2756
|
+
export declare type AITextConfig = {
|
|
2757
2757
|
enabled: boolean;
|
|
2758
2758
|
rules: AITextRule[];
|
|
2759
2759
|
async?: boolean;
|
|
2760
2760
|
profile?: string;
|
|
2761
2761
|
severity_rules?: AITextSeverityRule[];
|
|
2762
2762
|
};
|
|
2763
|
-
export type AIImageRule = {
|
|
2763
|
+
export declare type AIImageRule = {
|
|
2764
2764
|
action: ModerationActionType;
|
|
2765
2765
|
label: string;
|
|
2766
2766
|
min_confidence?: number;
|
|
2767
2767
|
};
|
|
2768
|
-
export type AIImageConfig = {
|
|
2768
|
+
export declare type AIImageConfig = {
|
|
2769
2769
|
enabled: boolean;
|
|
2770
2770
|
rules: AIImageRule[];
|
|
2771
2771
|
async?: boolean;
|
|
2772
2772
|
};
|
|
2773
|
-
export type AIVideoRule = {
|
|
2773
|
+
export declare type AIVideoRule = {
|
|
2774
2774
|
action: ModerationActionType;
|
|
2775
2775
|
label: string;
|
|
2776
2776
|
min_confidence?: number;
|
|
2777
2777
|
};
|
|
2778
|
-
export type AIVideoConfig = {
|
|
2778
|
+
export declare type AIVideoConfig = {
|
|
2779
2779
|
enabled: boolean;
|
|
2780
2780
|
rules: AIVideoRule[];
|
|
2781
2781
|
async?: boolean;
|
|
2782
2782
|
};
|
|
2783
|
-
export type VelocityFilterConfigRule = {
|
|
2783
|
+
export declare type VelocityFilterConfigRule = {
|
|
2784
2784
|
action: 'flag' | 'shadow' | 'remove' | 'ban';
|
|
2785
2785
|
ban_duration?: number;
|
|
2786
2786
|
cascading_action?: 'flag' | 'shadow' | 'remove' | 'ban';
|
|
@@ -2794,14 +2794,14 @@ export type VelocityFilterConfigRule = {
|
|
|
2794
2794
|
slow_spam_threshold?: number;
|
|
2795
2795
|
slow_spam_ttl?: number;
|
|
2796
2796
|
};
|
|
2797
|
-
export type VelocityFilterConfig = {
|
|
2797
|
+
export declare type VelocityFilterConfig = {
|
|
2798
2798
|
cascading_actions: boolean;
|
|
2799
2799
|
enabled: boolean;
|
|
2800
2800
|
first_message_only: boolean;
|
|
2801
2801
|
rules: VelocityFilterConfigRule[];
|
|
2802
2802
|
async?: boolean;
|
|
2803
2803
|
};
|
|
2804
|
-
export type PromoteChannelParams<SCG extends ExtendableGenerics = DefaultGenerics> = {
|
|
2804
|
+
export declare type PromoteChannelParams<SCG extends ExtendableGenerics = DefaultGenerics> = {
|
|
2805
2805
|
channels: Array<Channel<SCG>>;
|
|
2806
2806
|
channelToMove: Channel<SCG>;
|
|
2807
2807
|
sort: ChannelSort<SCG>;
|
|
@@ -2811,8 +2811,9 @@ export type PromoteChannelParams<SCG extends ExtendableGenerics = DefaultGeneric
|
|
|
2811
2811
|
*/
|
|
2812
2812
|
channelToMoveIndexWithinChannels?: number;
|
|
2813
2813
|
};
|
|
2814
|
-
export type SdkIdentifier = {
|
|
2814
|
+
export declare type SdkIdentifier = {
|
|
2815
2815
|
name: 'react' | 'react-native' | 'angular';
|
|
2816
2816
|
version: string;
|
|
2817
2817
|
};
|
|
2818
2818
|
export {};
|
|
2819
|
+
//# sourceMappingURL=types.d.ts.map
|