@stream-io/node-sdk 0.4.25 → 0.4.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +95 -125
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.mjs +95 -125
- package/dist/index.es.mjs.map +1 -1
- package/dist/src/gen/common/CommonApi.d.ts +7 -1
- package/dist/src/gen/models/index.d.ts +258 -36
- package/dist/src/gen/video/VideoApi.d.ts +2 -1
- package/package.json +1 -1
- package/src/gen/chat/ChatApi.ts +2 -0
- package/src/gen/common/CommonApi.ts +42 -0
- package/src/gen/model-decoders/index.ts +88 -194
- package/src/gen/models/index.ts +423 -48
- package/src/gen/video/VideoApi.ts +13 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BaseApi } from '../../BaseApi';
|
|
2
2
|
import { StreamResponse } from '../../types';
|
|
3
|
-
import { BlockUsersRequest, BlockUsersResponse, CheckExternalStorageResponse, CheckPushRequest, CheckPushResponse, CheckSNSRequest, CheckSNSResponse, CheckSQSRequest, CheckSQSResponse, CreateBlockListRequest, CreateBlockListResponse, CreateDeviceRequest, CreateExternalStorageRequest, CreateExternalStorageResponse, CreateGuestRequest, CreateGuestResponse, CreateImportRequest, CreateImportResponse, CreateImportURLRequest, CreateImportURLResponse, CreateRoleRequest, CreateRoleResponse, DeactivateUserRequest, DeactivateUserResponse, DeactivateUsersRequest, DeactivateUsersResponse, DeleteExternalStorageResponse, DeleteUsersRequest, DeleteUsersResponse, ExportUserResponse, ExportUsersRequest, ExportUsersResponse, FileUploadRequest, FileUploadResponse, GetApplicationResponse, GetBlockListResponse, GetBlockedUsersResponse, GetCustomPermissionResponse, GetImportResponse, GetOGResponse, GetRateLimitsResponse, GetTaskResponse, ImageUploadRequest, ImageUploadResponse, ListBlockListResponse, ListDevicesResponse, ListExternalStorageResponse, ListImportsResponse, ListPermissionsResponse, ListPushProvidersResponse, ListRolesResponse, QueryUsersPayload, QueryUsersResponse, ReactivateUserRequest, ReactivateUserResponse, ReactivateUsersRequest, ReactivateUsersResponse, Response, RestoreUsersRequest, UnblockUsersRequest, UnblockUsersResponse, UpdateAppRequest, UpdateBlockListRequest, UpdateBlockListResponse, UpdateExternalStorageRequest, UpdateExternalStorageResponse, UpdateUsersPartialRequest, UpdateUsersRequest, UpdateUsersResponse, UpsertPushProviderRequest, UpsertPushProviderResponse } from '../models';
|
|
3
|
+
import { BlockUsersRequest, BlockUsersResponse, CheckExternalStorageResponse, CheckPushRequest, CheckPushResponse, CheckSNSRequest, CheckSNSResponse, CheckSQSRequest, CheckSQSResponse, CreateBlockListRequest, CreateBlockListResponse, CreateDeviceRequest, CreateExternalStorageRequest, CreateExternalStorageResponse, CreateGuestRequest, CreateGuestResponse, CreateImportRequest, CreateImportResponse, CreateImportURLRequest, CreateImportURLResponse, CreateRoleRequest, CreateRoleResponse, DeactivateUserRequest, DeactivateUserResponse, DeactivateUsersRequest, DeactivateUsersResponse, DeleteExternalStorageResponse, DeleteUsersRequest, DeleteUsersResponse, ExportUserResponse, ExportUsersRequest, ExportUsersResponse, FileUploadRequest, FileUploadResponse, GetApplicationResponse, GetBlockListResponse, GetBlockedUsersResponse, GetCustomPermissionResponse, GetImportResponse, GetOGResponse, GetRateLimitsResponse, GetTaskResponse, ImageUploadRequest, ImageUploadResponse, ListBlockListResponse, ListDevicesResponse, ListExternalStorageResponse, ListImportsResponse, ListPermissionsResponse, ListPushProvidersResponse, ListRolesResponse, QueryUsersPayload, QueryUsersResponse, ReactivateUserRequest, ReactivateUserResponse, ReactivateUsersRequest, ReactivateUsersResponse, Response, RestoreUsersRequest, SharedLocationResponse, SharedLocationsResponse, UnblockUsersRequest, UnblockUsersResponse, UpdateAppRequest, UpdateBlockListRequest, UpdateBlockListResponse, UpdateExternalStorageRequest, UpdateExternalStorageResponse, UpdateLiveLocationRequest, UpdateUsersPartialRequest, UpdateUsersRequest, UpdateUsersResponse, UpsertPushProviderRequest, UpsertPushProviderResponse } from '../models';
|
|
4
4
|
export declare class CommonApi extends BaseApi {
|
|
5
5
|
getApp: () => Promise<StreamResponse<GetApplicationResponse>>;
|
|
6
6
|
updateApp: (request?: UpdateAppRequest) => Promise<StreamResponse<Response>>;
|
|
@@ -96,6 +96,12 @@ export declare class CommonApi extends BaseApi {
|
|
|
96
96
|
blockUsers: (request: BlockUsersRequest) => Promise<StreamResponse<BlockUsersResponse>>;
|
|
97
97
|
deactivateUsers: (request: DeactivateUsersRequest) => Promise<StreamResponse<DeactivateUsersResponse>>;
|
|
98
98
|
deleteUsers: (request: DeleteUsersRequest) => Promise<StreamResponse<DeleteUsersResponse>>;
|
|
99
|
+
getUserLiveLocations: (request?: {
|
|
100
|
+
user_id?: string;
|
|
101
|
+
}) => Promise<StreamResponse<SharedLocationsResponse>>;
|
|
102
|
+
updateLiveLocation: (request: UpdateLiveLocationRequest & {
|
|
103
|
+
user_id?: string;
|
|
104
|
+
}) => Promise<StreamResponse<SharedLocationResponse>>;
|
|
99
105
|
reactivateUsers: (request: ReactivateUsersRequest) => Promise<StreamResponse<ReactivateUsersResponse>>;
|
|
100
106
|
restoreUsers: (request: RestoreUsersRequest) => Promise<StreamResponse<Response>>;
|
|
101
107
|
unblockUsers: (request: UnblockUsersRequest) => Promise<StreamResponse<UnblockUsersResponse>>;
|
|
@@ -91,7 +91,7 @@ export interface ActionLogResponse {
|
|
|
91
91
|
type: string;
|
|
92
92
|
user_id: string;
|
|
93
93
|
custom: Record<string, any>;
|
|
94
|
-
review_queue_item?:
|
|
94
|
+
review_queue_item?: ReviewQueueItemResponse;
|
|
95
95
|
target_user?: UserResponse;
|
|
96
96
|
user?: UserResponse;
|
|
97
97
|
}
|
|
@@ -104,6 +104,27 @@ export interface ActionSequence {
|
|
|
104
104
|
warning: boolean;
|
|
105
105
|
warning_text: string;
|
|
106
106
|
}
|
|
107
|
+
export interface ActiveCallsFPSStats {
|
|
108
|
+
p05: number;
|
|
109
|
+
p10: number;
|
|
110
|
+
p50: number;
|
|
111
|
+
p90: number;
|
|
112
|
+
}
|
|
113
|
+
export interface ActiveCallsLatencyStats {
|
|
114
|
+
p50: number;
|
|
115
|
+
p90: number;
|
|
116
|
+
}
|
|
117
|
+
export interface ActiveCallsMetrics {
|
|
118
|
+
join_call_api?: JoinCallAPIMetrics;
|
|
119
|
+
publishers?: PublishersMetrics;
|
|
120
|
+
subscribers?: SubscribersMetrics;
|
|
121
|
+
}
|
|
122
|
+
export interface ActiveCallsSummary {
|
|
123
|
+
active_calls: number;
|
|
124
|
+
active_publishers: number;
|
|
125
|
+
active_subscribers: number;
|
|
126
|
+
participants: number;
|
|
127
|
+
}
|
|
107
128
|
export interface AnyEvent {
|
|
108
129
|
created_at: Date;
|
|
109
130
|
type: string;
|
|
@@ -224,13 +245,10 @@ export interface Attachment {
|
|
|
224
245
|
footer?: string;
|
|
225
246
|
footer_icon?: string;
|
|
226
247
|
image_url?: string;
|
|
227
|
-
latitude?: number;
|
|
228
|
-
longitude?: number;
|
|
229
248
|
og_scrape_url?: string;
|
|
230
249
|
original_height?: number;
|
|
231
250
|
original_width?: number;
|
|
232
251
|
pretext?: string;
|
|
233
|
-
stopped_sharing?: boolean;
|
|
234
252
|
text?: string;
|
|
235
253
|
thumb_url?: string;
|
|
236
254
|
title?: string;
|
|
@@ -334,6 +352,12 @@ export interface BanActionRequest {
|
|
|
334
352
|
shadow?: boolean;
|
|
335
353
|
timeout?: number;
|
|
336
354
|
}
|
|
355
|
+
export interface BanOptions {
|
|
356
|
+
duration: number;
|
|
357
|
+
ip_ban: boolean;
|
|
358
|
+
reason: string;
|
|
359
|
+
shadow_ban: boolean;
|
|
360
|
+
}
|
|
337
361
|
export interface BanRequest {
|
|
338
362
|
target_user_id: string;
|
|
339
363
|
banned_by_id?: string;
|
|
@@ -354,6 +378,9 @@ export interface BanResponse {
|
|
|
354
378
|
channel?: ChannelResponse;
|
|
355
379
|
user?: UserResponse;
|
|
356
380
|
}
|
|
381
|
+
export interface BlockContentOptions {
|
|
382
|
+
reason: string;
|
|
383
|
+
}
|
|
357
384
|
export interface BlockListConfig {
|
|
358
385
|
enabled: boolean;
|
|
359
386
|
rules: BlockListRule[];
|
|
@@ -1126,6 +1153,7 @@ export interface Channel {
|
|
|
1126
1153
|
last_message_at?: Date;
|
|
1127
1154
|
member_count?: number;
|
|
1128
1155
|
team?: string;
|
|
1156
|
+
active_live_locations?: SharedLocation[];
|
|
1129
1157
|
invites?: ChannelMember[];
|
|
1130
1158
|
members?: ChannelMember[];
|
|
1131
1159
|
config?: ChannelConfig;
|
|
@@ -1151,6 +1179,7 @@ export interface ChannelConfig {
|
|
|
1151
1179
|
reminders: boolean;
|
|
1152
1180
|
replies: boolean;
|
|
1153
1181
|
search: boolean;
|
|
1182
|
+
shared_locations: boolean;
|
|
1154
1183
|
skip_last_msg_update_for_system_msgs: boolean;
|
|
1155
1184
|
typing_events: boolean;
|
|
1156
1185
|
updated_at: Date;
|
|
@@ -1184,6 +1213,7 @@ export interface ChannelConfigWithInfo {
|
|
|
1184
1213
|
reminders: boolean;
|
|
1185
1214
|
replies: boolean;
|
|
1186
1215
|
search: boolean;
|
|
1216
|
+
shared_locations: boolean;
|
|
1187
1217
|
skip_last_msg_update_for_system_msgs: boolean;
|
|
1188
1218
|
typing_events: boolean;
|
|
1189
1219
|
updated_at: Date;
|
|
@@ -1346,6 +1376,7 @@ export declare const ChannelOwnCapability: {
|
|
|
1346
1376
|
readonly SEND_RESTRICTED_VISIBILITY_MESSAGE: "send-restricted-visibility-message";
|
|
1347
1377
|
readonly SEND_TYPING_EVENTS: "send-typing-events";
|
|
1348
1378
|
readonly SET_CHANNEL_COOLDOWN: "set-channel-cooldown";
|
|
1379
|
+
readonly SHARE_LOCATION: "share-location";
|
|
1349
1380
|
readonly SKIP_SLOW_MODE: "skip-slow-mode";
|
|
1350
1381
|
readonly SLOW_MODE: "slow-mode";
|
|
1351
1382
|
readonly TYPING_EVENTS: "typing-events";
|
|
@@ -1398,6 +1429,7 @@ export interface ChannelStateResponse {
|
|
|
1398
1429
|
hidden?: boolean;
|
|
1399
1430
|
hide_messages_before?: Date;
|
|
1400
1431
|
watcher_count?: number;
|
|
1432
|
+
active_live_locations?: SharedLocationResponseData[];
|
|
1401
1433
|
pending_messages?: PendingMessageResponse[];
|
|
1402
1434
|
read?: ReadStateResponse[];
|
|
1403
1435
|
watchers?: UserResponse[];
|
|
@@ -1414,6 +1446,7 @@ export interface ChannelStateResponseFields {
|
|
|
1414
1446
|
hidden?: boolean;
|
|
1415
1447
|
hide_messages_before?: Date;
|
|
1416
1448
|
watcher_count?: number;
|
|
1449
|
+
active_live_locations?: SharedLocationResponseData[];
|
|
1417
1450
|
pending_messages?: PendingMessageResponse[];
|
|
1418
1451
|
read?: ReadStateResponse[];
|
|
1419
1452
|
watchers?: UserResponse[];
|
|
@@ -1449,6 +1482,7 @@ export interface ChannelTypeConfig {
|
|
|
1449
1482
|
reminders: boolean;
|
|
1450
1483
|
replies: boolean;
|
|
1451
1484
|
search: boolean;
|
|
1485
|
+
shared_locations: boolean;
|
|
1452
1486
|
skip_last_msg_update_for_system_msgs: boolean;
|
|
1453
1487
|
typing_events: boolean;
|
|
1454
1488
|
updated_at: Date;
|
|
@@ -1543,7 +1577,7 @@ export interface CheckResponse {
|
|
|
1543
1577
|
recommended_action: string;
|
|
1544
1578
|
status: string;
|
|
1545
1579
|
task_id?: string;
|
|
1546
|
-
item?:
|
|
1580
|
+
item?: ReviewQueueItemResponse;
|
|
1547
1581
|
}
|
|
1548
1582
|
export interface CheckSNSRequest {
|
|
1549
1583
|
sns_key?: string;
|
|
@@ -1612,6 +1646,7 @@ export interface ConfigOverrides {
|
|
|
1612
1646
|
quotes?: boolean;
|
|
1613
1647
|
reactions?: boolean;
|
|
1614
1648
|
replies?: boolean;
|
|
1649
|
+
shared_locations?: boolean;
|
|
1615
1650
|
typing_events?: boolean;
|
|
1616
1651
|
uploads?: boolean;
|
|
1617
1652
|
url_enrichment?: boolean;
|
|
@@ -1630,9 +1665,14 @@ export interface ConfigResponse {
|
|
|
1630
1665
|
automod_semantic_filters_config?: AutomodSemanticFiltersConfig;
|
|
1631
1666
|
automod_toxicity_config?: AutomodToxicityConfig;
|
|
1632
1667
|
block_list_config?: BlockListConfig;
|
|
1668
|
+
rule_builder_config?: RuleBuilderConfig;
|
|
1633
1669
|
velocity_filter_config?: VelocityFilterConfig;
|
|
1634
1670
|
video_call_rule_config?: VideoCallRuleConfig;
|
|
1635
1671
|
}
|
|
1672
|
+
export interface ContentCountRuleParameters {
|
|
1673
|
+
threshold: number;
|
|
1674
|
+
time_window: string;
|
|
1675
|
+
}
|
|
1636
1676
|
export interface CountByMinuteResponse {
|
|
1637
1677
|
count: number;
|
|
1638
1678
|
start_ts: Date;
|
|
@@ -1684,6 +1724,7 @@ export interface CreateChannelTypeRequest {
|
|
|
1684
1724
|
read_events?: boolean;
|
|
1685
1725
|
replies?: boolean;
|
|
1686
1726
|
search?: boolean;
|
|
1727
|
+
shared_locations?: boolean;
|
|
1687
1728
|
skip_last_msg_update_for_system_msgs?: boolean;
|
|
1688
1729
|
typing_events?: boolean;
|
|
1689
1730
|
uploads?: boolean;
|
|
@@ -1713,6 +1754,7 @@ export interface CreateChannelTypeResponse {
|
|
|
1713
1754
|
reminders: boolean;
|
|
1714
1755
|
replies: boolean;
|
|
1715
1756
|
search: boolean;
|
|
1757
|
+
shared_locations: boolean;
|
|
1716
1758
|
skip_last_msg_update_for_system_msgs: boolean;
|
|
1717
1759
|
typing_events: boolean;
|
|
1718
1760
|
updated_at: Date;
|
|
@@ -2299,22 +2341,23 @@ export interface FirebaseConfigFields {
|
|
|
2299
2341
|
}
|
|
2300
2342
|
export interface Flag {
|
|
2301
2343
|
created_at: Date;
|
|
2302
|
-
|
|
2303
|
-
entity_type: string;
|
|
2344
|
+
created_by_automod: boolean;
|
|
2304
2345
|
updated_at: Date;
|
|
2305
|
-
|
|
2306
|
-
entity_creator_id?: string;
|
|
2307
|
-
is_streamed_content?: boolean;
|
|
2308
|
-
moderation_payload_hash?: string;
|
|
2346
|
+
approved_at?: Date;
|
|
2309
2347
|
reason?: string;
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2348
|
+
rejected_at?: Date;
|
|
2349
|
+
reviewed_at?: Date;
|
|
2350
|
+
reviewed_by?: string;
|
|
2351
|
+
target_message_id?: string;
|
|
2313
2352
|
custom?: Record<string, any>;
|
|
2314
|
-
|
|
2315
|
-
|
|
2353
|
+
details?: FlagDetails;
|
|
2354
|
+
target_message?: Message;
|
|
2355
|
+
target_user?: User;
|
|
2316
2356
|
user?: User;
|
|
2317
2357
|
}
|
|
2358
|
+
export interface FlagContentOptions {
|
|
2359
|
+
reason: string;
|
|
2360
|
+
}
|
|
2318
2361
|
export interface FlagDetails {
|
|
2319
2362
|
original_text: string;
|
|
2320
2363
|
extra: Record<string, any>;
|
|
@@ -2354,6 +2397,9 @@ export interface FlagUpdatedEvent {
|
|
|
2354
2397
|
message?: MessageResponse;
|
|
2355
2398
|
user?: UserResponse;
|
|
2356
2399
|
}
|
|
2400
|
+
export interface FlagUserOptions {
|
|
2401
|
+
reason: string;
|
|
2402
|
+
}
|
|
2357
2403
|
export interface FrameRecordSettings {
|
|
2358
2404
|
capture_interval_in_seconds: number;
|
|
2359
2405
|
mode: 'available' | 'disabled' | 'auto-on';
|
|
@@ -2424,6 +2470,13 @@ export interface GeofenceSettingsRequest {
|
|
|
2424
2470
|
export interface GeofenceSettingsResponse {
|
|
2425
2471
|
names: string[];
|
|
2426
2472
|
}
|
|
2473
|
+
export interface GetActiveCallsStatusResponse {
|
|
2474
|
+
duration: string;
|
|
2475
|
+
end_time: Date;
|
|
2476
|
+
start_time: Date;
|
|
2477
|
+
metrics?: ActiveCallsMetrics;
|
|
2478
|
+
summary?: ActiveCallsSummary;
|
|
2479
|
+
}
|
|
2427
2480
|
export interface GetApplicationResponse {
|
|
2428
2481
|
duration: string;
|
|
2429
2482
|
app: AppResponseFields;
|
|
@@ -2483,6 +2536,7 @@ export interface GetChannelTypeResponse {
|
|
|
2483
2536
|
reminders: boolean;
|
|
2484
2537
|
replies: boolean;
|
|
2485
2538
|
search: boolean;
|
|
2539
|
+
shared_locations: boolean;
|
|
2486
2540
|
skip_last_msg_update_for_system_msgs: boolean;
|
|
2487
2541
|
typing_events: boolean;
|
|
2488
2542
|
updated_at: Date;
|
|
@@ -2550,13 +2604,10 @@ export interface GetOGResponse {
|
|
|
2550
2604
|
footer?: string;
|
|
2551
2605
|
footer_icon?: string;
|
|
2552
2606
|
image_url?: string;
|
|
2553
|
-
latitude?: number;
|
|
2554
|
-
longitude?: number;
|
|
2555
2607
|
og_scrape_url?: string;
|
|
2556
2608
|
original_height?: number;
|
|
2557
2609
|
original_width?: number;
|
|
2558
2610
|
pretext?: string;
|
|
2559
|
-
stopped_sharing?: boolean;
|
|
2560
2611
|
text?: string;
|
|
2561
2612
|
thumb_url?: string;
|
|
2562
2613
|
title?: string;
|
|
@@ -2685,6 +2736,9 @@ export interface HuaweiConfigFields {
|
|
|
2685
2736
|
id?: string;
|
|
2686
2737
|
secret?: string;
|
|
2687
2738
|
}
|
|
2739
|
+
export interface ImageContentParameters {
|
|
2740
|
+
harm_labels?: string[];
|
|
2741
|
+
}
|
|
2688
2742
|
export interface ImageData {
|
|
2689
2743
|
frames: string;
|
|
2690
2744
|
height: string;
|
|
@@ -2692,6 +2746,11 @@ export interface ImageData {
|
|
|
2692
2746
|
url: string;
|
|
2693
2747
|
width: string;
|
|
2694
2748
|
}
|
|
2749
|
+
export interface ImageRuleParameters {
|
|
2750
|
+
threshold: number;
|
|
2751
|
+
time_window: string;
|
|
2752
|
+
harm_labels?: string[];
|
|
2753
|
+
}
|
|
2695
2754
|
export interface ImageSize {
|
|
2696
2755
|
crop?: 'top' | 'bottom' | 'left' | 'right' | 'center';
|
|
2697
2756
|
height?: number;
|
|
@@ -2733,6 +2792,11 @@ export interface ImportTaskHistory {
|
|
|
2733
2792
|
next_state: string;
|
|
2734
2793
|
prev_state: string;
|
|
2735
2794
|
}
|
|
2795
|
+
export interface JoinCallAPIMetrics {
|
|
2796
|
+
failures: number;
|
|
2797
|
+
total: number;
|
|
2798
|
+
latency?: ActiveCallsLatencyStats;
|
|
2799
|
+
}
|
|
2736
2800
|
export interface Label {
|
|
2737
2801
|
name: string;
|
|
2738
2802
|
harm_labels?: string[];
|
|
@@ -2769,16 +2833,22 @@ export interface LimitInfo {
|
|
|
2769
2833
|
reset: number;
|
|
2770
2834
|
}
|
|
2771
2835
|
export interface LimitsSettings {
|
|
2836
|
+
max_participants_exclude_roles: string[];
|
|
2772
2837
|
max_duration_seconds?: number;
|
|
2773
2838
|
max_participants?: number;
|
|
2839
|
+
max_participants_exclude_owner?: boolean;
|
|
2774
2840
|
}
|
|
2775
2841
|
export interface LimitsSettingsRequest {
|
|
2776
2842
|
max_duration_seconds?: number;
|
|
2777
2843
|
max_participants?: number;
|
|
2844
|
+
max_participants_exclude_owner?: boolean;
|
|
2845
|
+
max_participants_exclude_roles?: string[];
|
|
2778
2846
|
}
|
|
2779
2847
|
export interface LimitsSettingsResponse {
|
|
2848
|
+
max_participants_exclude_roles: string[];
|
|
2780
2849
|
max_duration_seconds?: number;
|
|
2781
2850
|
max_participants?: number;
|
|
2851
|
+
max_participants_exclude_owner?: boolean;
|
|
2782
2852
|
}
|
|
2783
2853
|
export interface ListBlockListResponse {
|
|
2784
2854
|
duration: string;
|
|
@@ -2944,6 +3014,7 @@ export interface Message {
|
|
|
2944
3014
|
poll?: Poll;
|
|
2945
3015
|
quoted_message?: Message;
|
|
2946
3016
|
reminder?: MessageReminder;
|
|
3017
|
+
shared_location?: SharedLocation;
|
|
2947
3018
|
user?: User;
|
|
2948
3019
|
}
|
|
2949
3020
|
export interface MessageActionRequest {
|
|
@@ -3081,6 +3152,7 @@ export interface MessageRequest {
|
|
|
3081
3152
|
mentioned_users?: string[];
|
|
3082
3153
|
restricted_visibility?: string[];
|
|
3083
3154
|
custom?: Record<string, any>;
|
|
3155
|
+
shared_location?: SharedLocation;
|
|
3084
3156
|
user?: UserRequest;
|
|
3085
3157
|
}
|
|
3086
3158
|
export interface MessageResponse {
|
|
@@ -3125,6 +3197,7 @@ export interface MessageResponse {
|
|
|
3125
3197
|
quoted_message?: MessageResponse;
|
|
3126
3198
|
reaction_groups?: Record<string, ReactionGroupResponse>;
|
|
3127
3199
|
reminder?: ReminderResponseData;
|
|
3200
|
+
shared_location?: SharedLocationResponseData;
|
|
3128
3201
|
}
|
|
3129
3202
|
export interface MessageStatsResponse {
|
|
3130
3203
|
count_over_time?: CountByMinuteResponse[];
|
|
@@ -3206,6 +3279,7 @@ export interface MessageWithChannelResponse {
|
|
|
3206
3279
|
quoted_message?: MessageResponse;
|
|
3207
3280
|
reaction_groups?: Record<string, ReactionGroupResponse>;
|
|
3208
3281
|
reminder?: ReminderResponseData;
|
|
3282
|
+
shared_location?: SharedLocationResponseData;
|
|
3209
3283
|
}
|
|
3210
3284
|
export interface ModerationActionConfig {
|
|
3211
3285
|
action: string;
|
|
@@ -3233,6 +3307,7 @@ export interface ModerationCustomActionEvent {
|
|
|
3233
3307
|
user?: User;
|
|
3234
3308
|
}
|
|
3235
3309
|
export interface ModerationDashboardPreferences {
|
|
3310
|
+
flag_user_on_flagged_content?: boolean;
|
|
3236
3311
|
media_queue_blur_enabled?: boolean;
|
|
3237
3312
|
}
|
|
3238
3313
|
export interface ModerationFlagResponse {
|
|
@@ -3249,7 +3324,7 @@ export interface ModerationFlagResponse {
|
|
|
3249
3324
|
result?: Array<Record<string, any>>;
|
|
3250
3325
|
custom?: Record<string, any>;
|
|
3251
3326
|
moderation_payload?: ModerationPayload;
|
|
3252
|
-
review_queue_item?:
|
|
3327
|
+
review_queue_item?: ReviewQueueItemResponse;
|
|
3253
3328
|
user?: UserResponse;
|
|
3254
3329
|
}
|
|
3255
3330
|
export interface ModerationFlaggedEvent {
|
|
@@ -3419,6 +3494,7 @@ export interface OwnUser {
|
|
|
3419
3494
|
devices: Device[];
|
|
3420
3495
|
mutes: UserMute[];
|
|
3421
3496
|
custom: Record<string, any>;
|
|
3497
|
+
total_unread_count_by_team: Record<string, number>;
|
|
3422
3498
|
deactivated_at?: Date;
|
|
3423
3499
|
deleted_at?: Date;
|
|
3424
3500
|
invisible?: boolean;
|
|
@@ -3460,6 +3536,7 @@ export interface OwnUserResponse {
|
|
|
3460
3536
|
privacy_settings?: PrivacySettingsResponse;
|
|
3461
3537
|
push_preferences?: PushPreferences;
|
|
3462
3538
|
teams_role?: Record<string, string>;
|
|
3539
|
+
total_unread_count_by_team?: Record<string, number>;
|
|
3463
3540
|
}
|
|
3464
3541
|
export interface PagerResponse {
|
|
3465
3542
|
next?: string;
|
|
@@ -3491,6 +3568,17 @@ export interface ParticipantReportResponse {
|
|
|
3491
3568
|
publishers?: PublisherStatsResponse;
|
|
3492
3569
|
subscribers?: SubscriberStatsResponse;
|
|
3493
3570
|
}
|
|
3571
|
+
export interface PendingMessageEvent {
|
|
3572
|
+
created_at: Date;
|
|
3573
|
+
method: string;
|
|
3574
|
+
custom: Record<string, any>;
|
|
3575
|
+
type: string;
|
|
3576
|
+
received_at?: Date;
|
|
3577
|
+
channel?: Channel;
|
|
3578
|
+
message?: Message;
|
|
3579
|
+
metadata?: Record<string, string>;
|
|
3580
|
+
user?: User;
|
|
3581
|
+
}
|
|
3494
3582
|
export interface PendingMessageResponse {
|
|
3495
3583
|
channel?: ChannelResponse;
|
|
3496
3584
|
message?: MessageResponse;
|
|
@@ -3663,11 +3751,27 @@ export interface PrivacySettingsResponse {
|
|
|
3663
3751
|
read_receipts?: ReadReceiptsResponse;
|
|
3664
3752
|
typing_indicators?: TypingIndicatorsResponse;
|
|
3665
3753
|
}
|
|
3754
|
+
export interface PublisherAllMetrics {
|
|
3755
|
+
audio?: PublisherAudioMetrics;
|
|
3756
|
+
rtt_ms?: ActiveCallsLatencyStats;
|
|
3757
|
+
video?: PublisherVideoMetrics;
|
|
3758
|
+
}
|
|
3759
|
+
export interface PublisherAudioMetrics {
|
|
3760
|
+
jitter_ms?: ActiveCallsLatencyStats;
|
|
3761
|
+
}
|
|
3666
3762
|
export interface PublisherStatsResponse {
|
|
3667
3763
|
total: number;
|
|
3668
3764
|
unique: number;
|
|
3669
3765
|
by_track?: TrackStatsResponse[];
|
|
3670
3766
|
}
|
|
3767
|
+
export interface PublisherVideoMetrics {
|
|
3768
|
+
fps_30?: ActiveCallsFPSStats;
|
|
3769
|
+
frame_encoding_time_ms?: ActiveCallsLatencyStats;
|
|
3770
|
+
jitter_ms?: ActiveCallsLatencyStats;
|
|
3771
|
+
}
|
|
3772
|
+
export interface PublishersMetrics {
|
|
3773
|
+
all?: PublisherAllMetrics;
|
|
3774
|
+
}
|
|
3671
3775
|
export interface PushConfig {
|
|
3672
3776
|
version: 'v1' | 'v2' | 'v3';
|
|
3673
3777
|
offline_only?: boolean;
|
|
@@ -3686,6 +3790,7 @@ export interface PushNotificationSettingsResponse {
|
|
|
3686
3790
|
disabled_until?: Date;
|
|
3687
3791
|
}
|
|
3688
3792
|
export interface PushPreferenceInput {
|
|
3793
|
+
call_level?: 'all' | 'none' | 'default';
|
|
3689
3794
|
channel_cid?: string;
|
|
3690
3795
|
chat_level?: 'all' | 'mentions' | 'none' | 'default';
|
|
3691
3796
|
disabled_until?: Date;
|
|
@@ -4351,6 +4456,7 @@ export interface ReviewQueueItem {
|
|
|
4351
4456
|
flags: Flag[];
|
|
4352
4457
|
languages: string[];
|
|
4353
4458
|
teams: string[];
|
|
4459
|
+
completed_at: NullTime;
|
|
4354
4460
|
reviewed_at: NullTime;
|
|
4355
4461
|
activity?: EnrichedActivity;
|
|
4356
4462
|
assigned_to?: User;
|
|
@@ -4434,29 +4540,43 @@ export interface Role {
|
|
|
4434
4540
|
scopes: string[];
|
|
4435
4541
|
}
|
|
4436
4542
|
export interface RuleBuilderAction {
|
|
4437
|
-
|
|
4438
|
-
|
|
4439
|
-
|
|
4440
|
-
|
|
4441
|
-
|
|
4543
|
+
type: string;
|
|
4544
|
+
ban_options?: BanOptions;
|
|
4545
|
+
flag_content_options?: FlagContentOptions;
|
|
4546
|
+
flag_user_options?: FlagUserOptions;
|
|
4547
|
+
remove_content_options?: BlockContentOptions;
|
|
4442
4548
|
}
|
|
4443
4549
|
export interface RuleBuilderCondition {
|
|
4444
|
-
|
|
4445
|
-
|
|
4446
|
-
|
|
4447
|
-
|
|
4550
|
+
type: string;
|
|
4551
|
+
confidence?: number;
|
|
4552
|
+
content_count_rule_params?: ContentCountRuleParameters;
|
|
4553
|
+
image_content_params?: ImageContentParameters;
|
|
4554
|
+
image_rule_params?: ImageRuleParameters;
|
|
4555
|
+
text_content_params?: TextContentParameters;
|
|
4556
|
+
text_rule_params?: TextRuleParameters;
|
|
4557
|
+
user_created_within_params?: UserCreatedWithinParameters;
|
|
4558
|
+
user_rule_params?: UserRuleParameters;
|
|
4559
|
+
video_content_params?: VideoContentParameters;
|
|
4560
|
+
video_rule_params?: VideoRuleParameters;
|
|
4561
|
+
}
|
|
4562
|
+
export interface RuleBuilderConditionGroup {
|
|
4563
|
+
logic: string;
|
|
4564
|
+
conditions: RuleBuilderCondition[];
|
|
4448
4565
|
}
|
|
4449
4566
|
export interface RuleBuilderConfig {
|
|
4567
|
+
rules: RuleBuilderRule[];
|
|
4450
4568
|
async?: boolean;
|
|
4451
|
-
enabled?: boolean;
|
|
4452
|
-
rules?: RuleBuilderRule[];
|
|
4453
4569
|
}
|
|
4454
4570
|
export interface RuleBuilderRule {
|
|
4455
|
-
enabled
|
|
4456
|
-
id
|
|
4457
|
-
name
|
|
4571
|
+
enabled: boolean;
|
|
4572
|
+
id: string;
|
|
4573
|
+
name: string;
|
|
4574
|
+
rule_type: string;
|
|
4575
|
+
action: RuleBuilderAction;
|
|
4576
|
+
cooldown_period?: string;
|
|
4577
|
+
logic?: string;
|
|
4458
4578
|
conditions?: RuleBuilderCondition[];
|
|
4459
|
-
|
|
4579
|
+
groups?: RuleBuilderConditionGroup[];
|
|
4460
4580
|
}
|
|
4461
4581
|
export interface S3Request {
|
|
4462
4582
|
s3_region: string;
|
|
@@ -4563,6 +4683,7 @@ export interface SearchResultMessage {
|
|
|
4563
4683
|
quoted_message?: MessageResponse;
|
|
4564
4684
|
reaction_groups?: Record<string, ReactionGroupResponse>;
|
|
4565
4685
|
reminder?: ReminderResponseData;
|
|
4686
|
+
shared_location?: SharedLocationResponseData;
|
|
4566
4687
|
}
|
|
4567
4688
|
export interface SearchWarning {
|
|
4568
4689
|
warning_code: number;
|
|
@@ -4652,6 +4773,50 @@ export interface SessionSettingsResponse {
|
|
|
4652
4773
|
}
|
|
4653
4774
|
export interface ShadowBlockActionRequest {
|
|
4654
4775
|
}
|
|
4776
|
+
export interface SharedLocation {
|
|
4777
|
+
channel_cid: string;
|
|
4778
|
+
created_at: Date;
|
|
4779
|
+
created_by_device_id: string;
|
|
4780
|
+
message_id: string;
|
|
4781
|
+
updated_at: Date;
|
|
4782
|
+
user_id: string;
|
|
4783
|
+
end_at?: Date;
|
|
4784
|
+
latitude?: number;
|
|
4785
|
+
longitude?: number;
|
|
4786
|
+
channel?: Channel;
|
|
4787
|
+
message?: Message;
|
|
4788
|
+
}
|
|
4789
|
+
export interface SharedLocationResponse {
|
|
4790
|
+
channel_cid: string;
|
|
4791
|
+
created_at: Date;
|
|
4792
|
+
created_by_device_id: string;
|
|
4793
|
+
duration: string;
|
|
4794
|
+
latitude: number;
|
|
4795
|
+
longitude: number;
|
|
4796
|
+
message_id: string;
|
|
4797
|
+
updated_at: Date;
|
|
4798
|
+
user_id: string;
|
|
4799
|
+
end_at?: Date;
|
|
4800
|
+
channel?: ChannelResponse;
|
|
4801
|
+
message?: MessageResponse;
|
|
4802
|
+
}
|
|
4803
|
+
export interface SharedLocationResponseData {
|
|
4804
|
+
channel_cid: string;
|
|
4805
|
+
created_at: Date;
|
|
4806
|
+
created_by_device_id: string;
|
|
4807
|
+
latitude: number;
|
|
4808
|
+
longitude: number;
|
|
4809
|
+
message_id: string;
|
|
4810
|
+
updated_at: Date;
|
|
4811
|
+
user_id: string;
|
|
4812
|
+
end_at?: Date;
|
|
4813
|
+
channel?: ChannelResponse;
|
|
4814
|
+
message?: MessageResponse;
|
|
4815
|
+
}
|
|
4816
|
+
export interface SharedLocationsResponse {
|
|
4817
|
+
duration: string;
|
|
4818
|
+
active_live_locations: SharedLocationResponseData[];
|
|
4819
|
+
}
|
|
4655
4820
|
export interface ShowChannelRequest {
|
|
4656
4821
|
user_id?: string;
|
|
4657
4822
|
user?: UserRequest;
|
|
@@ -4782,18 +4947,50 @@ export interface SubmitActionRequest {
|
|
|
4782
4947
|
}
|
|
4783
4948
|
export interface SubmitActionResponse {
|
|
4784
4949
|
duration: string;
|
|
4785
|
-
item?:
|
|
4950
|
+
item?: ReviewQueueItemResponse;
|
|
4951
|
+
}
|
|
4952
|
+
export interface SubscriberAllMetrics {
|
|
4953
|
+
audio?: SubscriberAudioMetrics;
|
|
4954
|
+
rtt_ms?: ActiveCallsLatencyStats;
|
|
4955
|
+
video?: SubscriberVideoMetrics;
|
|
4956
|
+
}
|
|
4957
|
+
export interface SubscriberAudioMetrics {
|
|
4958
|
+
concealment_pct?: ActiveCallsLatencyStats;
|
|
4959
|
+
jitter_ms?: ActiveCallsLatencyStats;
|
|
4960
|
+
packets_lost_pct?: ActiveCallsLatencyStats;
|
|
4786
4961
|
}
|
|
4787
4962
|
export interface SubscriberStatsResponse {
|
|
4788
4963
|
total: number;
|
|
4789
4964
|
total_subscribed_duration_seconds: number;
|
|
4790
4965
|
unique: number;
|
|
4791
4966
|
}
|
|
4967
|
+
export interface SubscriberVideoMetrics {
|
|
4968
|
+
fps_30?: ActiveCallsFPSStats;
|
|
4969
|
+
jitter_ms?: ActiveCallsLatencyStats;
|
|
4970
|
+
packets_lost_pct?: ActiveCallsLatencyStats;
|
|
4971
|
+
}
|
|
4972
|
+
export interface SubscribersMetrics {
|
|
4973
|
+
all?: SubscriberAllMetrics;
|
|
4974
|
+
}
|
|
4792
4975
|
export interface TargetResolution {
|
|
4793
4976
|
bitrate: number;
|
|
4794
4977
|
height: number;
|
|
4795
4978
|
width: number;
|
|
4796
4979
|
}
|
|
4980
|
+
export interface TextContentParameters {
|
|
4981
|
+
contains_url?: boolean;
|
|
4982
|
+
severity?: string;
|
|
4983
|
+
blocklist_match?: string[];
|
|
4984
|
+
harm_labels?: string[];
|
|
4985
|
+
}
|
|
4986
|
+
export interface TextRuleParameters {
|
|
4987
|
+
threshold: number;
|
|
4988
|
+
time_window: string;
|
|
4989
|
+
contains_url?: boolean;
|
|
4990
|
+
severity?: string;
|
|
4991
|
+
blocklist_match?: string[];
|
|
4992
|
+
harm_labels?: string[];
|
|
4993
|
+
}
|
|
4797
4994
|
export interface ThreadParticipant {
|
|
4798
4995
|
app_pk: number;
|
|
4799
4996
|
channel_cid: string;
|
|
@@ -4991,6 +5188,7 @@ export interface UnreadCountsResponse {
|
|
|
4991
5188
|
channel_type: UnreadCountsChannelType[];
|
|
4992
5189
|
channels: UnreadCountsChannel[];
|
|
4993
5190
|
threads: UnreadCountsThread[];
|
|
5191
|
+
total_unread_count_by_team: Record<string, number>;
|
|
4994
5192
|
}
|
|
4995
5193
|
export interface UnreadCountsThread {
|
|
4996
5194
|
last_read: Date;
|
|
@@ -5142,6 +5340,7 @@ export interface UpdateChannelTypeRequest {
|
|
|
5142
5340
|
reminders?: boolean;
|
|
5143
5341
|
replies?: boolean;
|
|
5144
5342
|
search?: boolean;
|
|
5343
|
+
shared_locations?: boolean;
|
|
5145
5344
|
skip_last_msg_update_for_system_msgs?: boolean;
|
|
5146
5345
|
typing_events?: boolean;
|
|
5147
5346
|
uploads?: boolean;
|
|
@@ -5173,6 +5372,7 @@ export interface UpdateChannelTypeResponse {
|
|
|
5173
5372
|
reminders: boolean;
|
|
5174
5373
|
replies: boolean;
|
|
5175
5374
|
search: boolean;
|
|
5375
|
+
shared_locations: boolean;
|
|
5176
5376
|
skip_last_msg_update_for_system_msgs: boolean;
|
|
5177
5377
|
typing_events: boolean;
|
|
5178
5378
|
updated_at: Date;
|
|
@@ -5214,6 +5414,13 @@ export interface UpdateExternalStorageResponse {
|
|
|
5214
5414
|
path: string;
|
|
5215
5415
|
type: 's3' | 'gcs' | 'abs';
|
|
5216
5416
|
}
|
|
5417
|
+
export interface UpdateLiveLocationRequest {
|
|
5418
|
+
created_by_device_id: string;
|
|
5419
|
+
message_id: string;
|
|
5420
|
+
end_at?: Date;
|
|
5421
|
+
latitude?: number;
|
|
5422
|
+
longitude?: number;
|
|
5423
|
+
}
|
|
5217
5424
|
export interface UpdateMemberPartialRequest {
|
|
5218
5425
|
unset?: string[];
|
|
5219
5426
|
set?: Record<string, any>;
|
|
@@ -5416,6 +5623,9 @@ export interface UserBannedEvent {
|
|
|
5416
5623
|
team?: string;
|
|
5417
5624
|
user?: User;
|
|
5418
5625
|
}
|
|
5626
|
+
export interface UserCreatedWithinParameters {
|
|
5627
|
+
max_age?: string;
|
|
5628
|
+
}
|
|
5419
5629
|
export interface UserCustomEventRequest {
|
|
5420
5630
|
type: string;
|
|
5421
5631
|
custom?: Record<string, any>;
|
|
@@ -5566,6 +5776,9 @@ export interface UserResponsePrivacyFields {
|
|
|
5566
5776
|
privacy_settings?: PrivacySettingsResponse;
|
|
5567
5777
|
teams_role?: Record<string, string>;
|
|
5568
5778
|
}
|
|
5779
|
+
export interface UserRuleParameters {
|
|
5780
|
+
max_age?: string;
|
|
5781
|
+
}
|
|
5569
5782
|
export interface UserUnbannedEvent {
|
|
5570
5783
|
channel_id: string;
|
|
5571
5784
|
channel_type: string;
|
|
@@ -5624,6 +5837,9 @@ export interface VelocityFilterConfigRule {
|
|
|
5624
5837
|
export interface VideoCallRuleConfig {
|
|
5625
5838
|
rules: Record<string, HarmConfig>;
|
|
5626
5839
|
}
|
|
5840
|
+
export interface VideoContentParameters {
|
|
5841
|
+
harm_labels?: string[];
|
|
5842
|
+
}
|
|
5627
5843
|
export interface VideoEndCallRequest {
|
|
5628
5844
|
}
|
|
5629
5845
|
export interface VideoKickUserRequest {
|
|
@@ -5638,6 +5854,11 @@ export interface VideoReactionsResponse {
|
|
|
5638
5854
|
reaction: string;
|
|
5639
5855
|
count_over_time?: VideoReactionOverTimeResponse;
|
|
5640
5856
|
}
|
|
5857
|
+
export interface VideoRuleParameters {
|
|
5858
|
+
threshold: number;
|
|
5859
|
+
time_window: string;
|
|
5860
|
+
harm_labels?: string[];
|
|
5861
|
+
}
|
|
5641
5862
|
export interface VideoSettings {
|
|
5642
5863
|
access_request_enabled: boolean;
|
|
5643
5864
|
camera_default_on: boolean;
|
|
@@ -5703,6 +5924,7 @@ export interface WrappedUnreadCountsResponse {
|
|
|
5703
5924
|
channel_type: UnreadCountsChannelType[];
|
|
5704
5925
|
channels: UnreadCountsChannel[];
|
|
5705
5926
|
threads: UnreadCountsThread[];
|
|
5927
|
+
total_unread_count_by_team: Record<string, number>;
|
|
5706
5928
|
}
|
|
5707
5929
|
export interface XiaomiConfig {
|
|
5708
5930
|
disabled?: boolean;
|