@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
package/src/gen/models/index.ts
CHANGED
|
@@ -169,7 +169,7 @@ export interface ActionLogResponse {
|
|
|
169
169
|
|
|
170
170
|
custom: Record<string, any>;
|
|
171
171
|
|
|
172
|
-
review_queue_item?:
|
|
172
|
+
review_queue_item?: ReviewQueueItemResponse;
|
|
173
173
|
|
|
174
174
|
target_user?: UserResponse;
|
|
175
175
|
|
|
@@ -192,6 +192,40 @@ export interface ActionSequence {
|
|
|
192
192
|
warning_text: string;
|
|
193
193
|
}
|
|
194
194
|
|
|
195
|
+
export interface ActiveCallsFPSStats {
|
|
196
|
+
p05: number;
|
|
197
|
+
|
|
198
|
+
p10: number;
|
|
199
|
+
|
|
200
|
+
p50: number;
|
|
201
|
+
|
|
202
|
+
p90: number;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
export interface ActiveCallsLatencyStats {
|
|
206
|
+
p50: number;
|
|
207
|
+
|
|
208
|
+
p90: number;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
export interface ActiveCallsMetrics {
|
|
212
|
+
join_call_api?: JoinCallAPIMetrics;
|
|
213
|
+
|
|
214
|
+
publishers?: PublishersMetrics;
|
|
215
|
+
|
|
216
|
+
subscribers?: SubscribersMetrics;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
export interface ActiveCallsSummary {
|
|
220
|
+
active_calls: number;
|
|
221
|
+
|
|
222
|
+
active_publishers: number;
|
|
223
|
+
|
|
224
|
+
active_subscribers: number;
|
|
225
|
+
|
|
226
|
+
participants: number;
|
|
227
|
+
}
|
|
228
|
+
|
|
195
229
|
export interface AnyEvent {
|
|
196
230
|
created_at: Date;
|
|
197
231
|
|
|
@@ -413,10 +447,6 @@ export interface Attachment {
|
|
|
413
447
|
|
|
414
448
|
image_url?: string;
|
|
415
449
|
|
|
416
|
-
latitude?: number;
|
|
417
|
-
|
|
418
|
-
longitude?: number;
|
|
419
|
-
|
|
420
450
|
og_scrape_url?: string;
|
|
421
451
|
|
|
422
452
|
original_height?: number;
|
|
@@ -425,8 +455,6 @@ export interface Attachment {
|
|
|
425
455
|
|
|
426
456
|
pretext?: string;
|
|
427
457
|
|
|
428
|
-
stopped_sharing?: boolean;
|
|
429
|
-
|
|
430
458
|
text?: string;
|
|
431
459
|
|
|
432
460
|
thumb_url?: string;
|
|
@@ -608,6 +636,16 @@ export interface BanActionRequest {
|
|
|
608
636
|
timeout?: number;
|
|
609
637
|
}
|
|
610
638
|
|
|
639
|
+
export interface BanOptions {
|
|
640
|
+
duration: number;
|
|
641
|
+
|
|
642
|
+
ip_ban: boolean;
|
|
643
|
+
|
|
644
|
+
reason: string;
|
|
645
|
+
|
|
646
|
+
shadow_ban: boolean;
|
|
647
|
+
}
|
|
648
|
+
|
|
611
649
|
export interface BanRequest {
|
|
612
650
|
target_user_id: string;
|
|
613
651
|
|
|
@@ -644,6 +682,10 @@ export interface BanResponse {
|
|
|
644
682
|
user?: UserResponse;
|
|
645
683
|
}
|
|
646
684
|
|
|
685
|
+
export interface BlockContentOptions {
|
|
686
|
+
reason: string;
|
|
687
|
+
}
|
|
688
|
+
|
|
647
689
|
export interface BlockListConfig {
|
|
648
690
|
enabled: boolean;
|
|
649
691
|
|
|
@@ -2010,6 +2052,8 @@ export interface Channel {
|
|
|
2010
2052
|
|
|
2011
2053
|
team?: string;
|
|
2012
2054
|
|
|
2055
|
+
active_live_locations?: SharedLocation[];
|
|
2056
|
+
|
|
2013
2057
|
invites?: ChannelMember[];
|
|
2014
2058
|
|
|
2015
2059
|
members?: ChannelMember[];
|
|
@@ -2058,6 +2102,8 @@ export interface ChannelConfig {
|
|
|
2058
2102
|
|
|
2059
2103
|
search: boolean;
|
|
2060
2104
|
|
|
2105
|
+
shared_locations: boolean;
|
|
2106
|
+
|
|
2061
2107
|
skip_last_msg_update_for_system_msgs: boolean;
|
|
2062
2108
|
|
|
2063
2109
|
typing_events: boolean;
|
|
@@ -2122,6 +2168,8 @@ export interface ChannelConfigWithInfo {
|
|
|
2122
2168
|
|
|
2123
2169
|
search: boolean;
|
|
2124
2170
|
|
|
2171
|
+
shared_locations: boolean;
|
|
2172
|
+
|
|
2125
2173
|
skip_last_msg_update_for_system_msgs: boolean;
|
|
2126
2174
|
|
|
2127
2175
|
typing_events: boolean;
|
|
@@ -2394,6 +2442,7 @@ export const ChannelOwnCapability = {
|
|
|
2394
2442
|
SEND_RESTRICTED_VISIBILITY_MESSAGE: 'send-restricted-visibility-message',
|
|
2395
2443
|
SEND_TYPING_EVENTS: 'send-typing-events',
|
|
2396
2444
|
SET_CHANNEL_COOLDOWN: 'set-channel-cooldown',
|
|
2445
|
+
SHARE_LOCATION: 'share-location',
|
|
2397
2446
|
SKIP_SLOW_MODE: 'skip-slow-mode',
|
|
2398
2447
|
SLOW_MODE: 'slow-mode',
|
|
2399
2448
|
TYPING_EVENTS: 'typing-events',
|
|
@@ -2486,6 +2535,8 @@ export interface ChannelStateResponse {
|
|
|
2486
2535
|
|
|
2487
2536
|
watcher_count?: number;
|
|
2488
2537
|
|
|
2538
|
+
active_live_locations?: SharedLocationResponseData[];
|
|
2539
|
+
|
|
2489
2540
|
pending_messages?: PendingMessageResponse[];
|
|
2490
2541
|
|
|
2491
2542
|
read?: ReadStateResponse[];
|
|
@@ -2516,6 +2567,8 @@ export interface ChannelStateResponseFields {
|
|
|
2516
2567
|
|
|
2517
2568
|
watcher_count?: number;
|
|
2518
2569
|
|
|
2570
|
+
active_live_locations?: SharedLocationResponseData[];
|
|
2571
|
+
|
|
2519
2572
|
pending_messages?: PendingMessageResponse[];
|
|
2520
2573
|
|
|
2521
2574
|
read?: ReadStateResponse[];
|
|
@@ -2582,6 +2635,8 @@ export interface ChannelTypeConfig {
|
|
|
2582
2635
|
|
|
2583
2636
|
search: boolean;
|
|
2584
2637
|
|
|
2638
|
+
shared_locations: boolean;
|
|
2639
|
+
|
|
2585
2640
|
skip_last_msg_update_for_system_msgs: boolean;
|
|
2586
2641
|
|
|
2587
2642
|
typing_events: boolean;
|
|
@@ -2755,7 +2810,7 @@ export interface CheckResponse {
|
|
|
2755
2810
|
|
|
2756
2811
|
task_id?: string;
|
|
2757
2812
|
|
|
2758
|
-
item?:
|
|
2813
|
+
item?: ReviewQueueItemResponse;
|
|
2759
2814
|
}
|
|
2760
2815
|
|
|
2761
2816
|
export interface CheckSNSRequest {
|
|
@@ -2869,6 +2924,8 @@ export interface ConfigOverrides {
|
|
|
2869
2924
|
|
|
2870
2925
|
replies?: boolean;
|
|
2871
2926
|
|
|
2927
|
+
shared_locations?: boolean;
|
|
2928
|
+
|
|
2872
2929
|
typing_events?: boolean;
|
|
2873
2930
|
|
|
2874
2931
|
uploads?: boolean;
|
|
@@ -2903,11 +2960,19 @@ export interface ConfigResponse {
|
|
|
2903
2960
|
|
|
2904
2961
|
block_list_config?: BlockListConfig;
|
|
2905
2962
|
|
|
2963
|
+
rule_builder_config?: RuleBuilderConfig;
|
|
2964
|
+
|
|
2906
2965
|
velocity_filter_config?: VelocityFilterConfig;
|
|
2907
2966
|
|
|
2908
2967
|
video_call_rule_config?: VideoCallRuleConfig;
|
|
2909
2968
|
}
|
|
2910
2969
|
|
|
2970
|
+
export interface ContentCountRuleParameters {
|
|
2971
|
+
threshold: number;
|
|
2972
|
+
|
|
2973
|
+
time_window: string;
|
|
2974
|
+
}
|
|
2975
|
+
|
|
2911
2976
|
export interface CountByMinuteResponse {
|
|
2912
2977
|
count: number;
|
|
2913
2978
|
|
|
@@ -2999,6 +3064,8 @@ export interface CreateChannelTypeRequest {
|
|
|
2999
3064
|
|
|
3000
3065
|
search?: boolean;
|
|
3001
3066
|
|
|
3067
|
+
shared_locations?: boolean;
|
|
3068
|
+
|
|
3002
3069
|
skip_last_msg_update_for_system_msgs?: boolean;
|
|
3003
3070
|
|
|
3004
3071
|
typing_events?: boolean;
|
|
@@ -3055,6 +3122,8 @@ export interface CreateChannelTypeResponse {
|
|
|
3055
3122
|
|
|
3056
3123
|
search: boolean;
|
|
3057
3124
|
|
|
3125
|
+
shared_locations: boolean;
|
|
3126
|
+
|
|
3058
3127
|
skip_last_msg_update_for_system_msgs: boolean;
|
|
3059
3128
|
|
|
3060
3129
|
typing_events: boolean;
|
|
@@ -4039,37 +4108,37 @@ export interface FirebaseConfigFields {
|
|
|
4039
4108
|
export interface Flag {
|
|
4040
4109
|
created_at: Date;
|
|
4041
4110
|
|
|
4042
|
-
|
|
4043
|
-
|
|
4044
|
-
entity_type: string;
|
|
4111
|
+
created_by_automod: boolean;
|
|
4045
4112
|
|
|
4046
4113
|
updated_at: Date;
|
|
4047
4114
|
|
|
4048
|
-
|
|
4049
|
-
|
|
4050
|
-
entity_creator_id?: string;
|
|
4051
|
-
|
|
4052
|
-
is_streamed_content?: boolean;
|
|
4053
|
-
|
|
4054
|
-
moderation_payload_hash?: string;
|
|
4115
|
+
approved_at?: Date;
|
|
4055
4116
|
|
|
4056
4117
|
reason?: string;
|
|
4057
4118
|
|
|
4058
|
-
|
|
4119
|
+
rejected_at?: Date;
|
|
4059
4120
|
|
|
4060
|
-
|
|
4121
|
+
reviewed_at?: Date;
|
|
4061
4122
|
|
|
4062
|
-
|
|
4123
|
+
reviewed_by?: string;
|
|
4124
|
+
|
|
4125
|
+
target_message_id?: string;
|
|
4063
4126
|
|
|
4064
4127
|
custom?: Record<string, any>;
|
|
4065
4128
|
|
|
4066
|
-
|
|
4129
|
+
details?: FlagDetails;
|
|
4067
4130
|
|
|
4068
|
-
|
|
4131
|
+
target_message?: Message;
|
|
4132
|
+
|
|
4133
|
+
target_user?: User;
|
|
4069
4134
|
|
|
4070
4135
|
user?: User;
|
|
4071
4136
|
}
|
|
4072
4137
|
|
|
4138
|
+
export interface FlagContentOptions {
|
|
4139
|
+
reason: string;
|
|
4140
|
+
}
|
|
4141
|
+
|
|
4073
4142
|
export interface FlagDetails {
|
|
4074
4143
|
original_text: string;
|
|
4075
4144
|
|
|
@@ -4136,6 +4205,10 @@ export interface FlagUpdatedEvent {
|
|
|
4136
4205
|
user?: UserResponse;
|
|
4137
4206
|
}
|
|
4138
4207
|
|
|
4208
|
+
export interface FlagUserOptions {
|
|
4209
|
+
reason: string;
|
|
4210
|
+
}
|
|
4211
|
+
|
|
4139
4212
|
export interface FrameRecordSettings {
|
|
4140
4213
|
capture_interval_in_seconds: number;
|
|
4141
4214
|
|
|
@@ -4256,6 +4329,18 @@ export interface GeofenceSettingsResponse {
|
|
|
4256
4329
|
names: string[];
|
|
4257
4330
|
}
|
|
4258
4331
|
|
|
4332
|
+
export interface GetActiveCallsStatusResponse {
|
|
4333
|
+
duration: string;
|
|
4334
|
+
|
|
4335
|
+
end_time: Date;
|
|
4336
|
+
|
|
4337
|
+
start_time: Date;
|
|
4338
|
+
|
|
4339
|
+
metrics?: ActiveCallsMetrics;
|
|
4340
|
+
|
|
4341
|
+
summary?: ActiveCallsSummary;
|
|
4342
|
+
}
|
|
4343
|
+
|
|
4259
4344
|
export interface GetApplicationResponse {
|
|
4260
4345
|
duration: string;
|
|
4261
4346
|
|
|
@@ -4359,6 +4444,8 @@ export interface GetChannelTypeResponse {
|
|
|
4359
4444
|
|
|
4360
4445
|
search: boolean;
|
|
4361
4446
|
|
|
4447
|
+
shared_locations: boolean;
|
|
4448
|
+
|
|
4362
4449
|
skip_last_msg_update_for_system_msgs: boolean;
|
|
4363
4450
|
|
|
4364
4451
|
typing_events: boolean;
|
|
@@ -4475,10 +4562,6 @@ export interface GetOGResponse {
|
|
|
4475
4562
|
|
|
4476
4563
|
image_url?: string;
|
|
4477
4564
|
|
|
4478
|
-
latitude?: number;
|
|
4479
|
-
|
|
4480
|
-
longitude?: number;
|
|
4481
|
-
|
|
4482
4565
|
og_scrape_url?: string;
|
|
4483
4566
|
|
|
4484
4567
|
original_height?: number;
|
|
@@ -4487,8 +4570,6 @@ export interface GetOGResponse {
|
|
|
4487
4570
|
|
|
4488
4571
|
pretext?: string;
|
|
4489
4572
|
|
|
4490
|
-
stopped_sharing?: boolean;
|
|
4491
|
-
|
|
4492
4573
|
text?: string;
|
|
4493
4574
|
|
|
4494
4575
|
thumb_url?: string;
|
|
@@ -4698,6 +4779,10 @@ export interface HuaweiConfigFields {
|
|
|
4698
4779
|
secret?: string;
|
|
4699
4780
|
}
|
|
4700
4781
|
|
|
4782
|
+
export interface ImageContentParameters {
|
|
4783
|
+
harm_labels?: string[];
|
|
4784
|
+
}
|
|
4785
|
+
|
|
4701
4786
|
export interface ImageData {
|
|
4702
4787
|
frames: string;
|
|
4703
4788
|
|
|
@@ -4710,6 +4795,14 @@ export interface ImageData {
|
|
|
4710
4795
|
width: string;
|
|
4711
4796
|
}
|
|
4712
4797
|
|
|
4798
|
+
export interface ImageRuleParameters {
|
|
4799
|
+
threshold: number;
|
|
4800
|
+
|
|
4801
|
+
time_window: string;
|
|
4802
|
+
|
|
4803
|
+
harm_labels?: string[];
|
|
4804
|
+
}
|
|
4805
|
+
|
|
4713
4806
|
export interface ImageSize {
|
|
4714
4807
|
crop?: 'top' | 'bottom' | 'left' | 'right' | 'center';
|
|
4715
4808
|
|
|
@@ -4780,6 +4873,14 @@ export interface ImportTaskHistory {
|
|
|
4780
4873
|
prev_state: string;
|
|
4781
4874
|
}
|
|
4782
4875
|
|
|
4876
|
+
export interface JoinCallAPIMetrics {
|
|
4877
|
+
failures: number;
|
|
4878
|
+
|
|
4879
|
+
total: number;
|
|
4880
|
+
|
|
4881
|
+
latency?: ActiveCallsLatencyStats;
|
|
4882
|
+
}
|
|
4883
|
+
|
|
4783
4884
|
export interface Label {
|
|
4784
4885
|
name: string;
|
|
4785
4886
|
|
|
@@ -4839,21 +4940,33 @@ export interface LimitInfo {
|
|
|
4839
4940
|
}
|
|
4840
4941
|
|
|
4841
4942
|
export interface LimitsSettings {
|
|
4943
|
+
max_participants_exclude_roles: string[];
|
|
4944
|
+
|
|
4842
4945
|
max_duration_seconds?: number;
|
|
4843
4946
|
|
|
4844
4947
|
max_participants?: number;
|
|
4948
|
+
|
|
4949
|
+
max_participants_exclude_owner?: boolean;
|
|
4845
4950
|
}
|
|
4846
4951
|
|
|
4847
4952
|
export interface LimitsSettingsRequest {
|
|
4848
4953
|
max_duration_seconds?: number;
|
|
4849
4954
|
|
|
4850
4955
|
max_participants?: number;
|
|
4956
|
+
|
|
4957
|
+
max_participants_exclude_owner?: boolean;
|
|
4958
|
+
|
|
4959
|
+
max_participants_exclude_roles?: string[];
|
|
4851
4960
|
}
|
|
4852
4961
|
|
|
4853
4962
|
export interface LimitsSettingsResponse {
|
|
4963
|
+
max_participants_exclude_roles: string[];
|
|
4964
|
+
|
|
4854
4965
|
max_duration_seconds?: number;
|
|
4855
4966
|
|
|
4856
4967
|
max_participants?: number;
|
|
4968
|
+
|
|
4969
|
+
max_participants_exclude_owner?: boolean;
|
|
4857
4970
|
}
|
|
4858
4971
|
|
|
4859
4972
|
export interface ListBlockListResponse {
|
|
@@ -5135,6 +5248,8 @@ export interface Message {
|
|
|
5135
5248
|
|
|
5136
5249
|
reminder?: MessageReminder;
|
|
5137
5250
|
|
|
5251
|
+
shared_location?: SharedLocation;
|
|
5252
|
+
|
|
5138
5253
|
user?: User;
|
|
5139
5254
|
}
|
|
5140
5255
|
|
|
@@ -5383,6 +5498,8 @@ export interface MessageRequest {
|
|
|
5383
5498
|
|
|
5384
5499
|
custom?: Record<string, any>;
|
|
5385
5500
|
|
|
5501
|
+
shared_location?: SharedLocation;
|
|
5502
|
+
|
|
5386
5503
|
user?: UserRequest;
|
|
5387
5504
|
}
|
|
5388
5505
|
|
|
@@ -5468,6 +5585,8 @@ export interface MessageResponse {
|
|
|
5468
5585
|
reaction_groups?: Record<string, ReactionGroupResponse>;
|
|
5469
5586
|
|
|
5470
5587
|
reminder?: ReminderResponseData;
|
|
5588
|
+
|
|
5589
|
+
shared_location?: SharedLocationResponseData;
|
|
5471
5590
|
}
|
|
5472
5591
|
|
|
5473
5592
|
export interface MessageStatsResponse {
|
|
@@ -5618,6 +5737,8 @@ export interface MessageWithChannelResponse {
|
|
|
5618
5737
|
reaction_groups?: Record<string, ReactionGroupResponse>;
|
|
5619
5738
|
|
|
5620
5739
|
reminder?: ReminderResponseData;
|
|
5740
|
+
|
|
5741
|
+
shared_location?: SharedLocationResponseData;
|
|
5621
5742
|
}
|
|
5622
5743
|
|
|
5623
5744
|
export interface ModerationActionConfig {
|
|
@@ -5665,6 +5786,8 @@ export interface ModerationCustomActionEvent {
|
|
|
5665
5786
|
}
|
|
5666
5787
|
|
|
5667
5788
|
export interface ModerationDashboardPreferences {
|
|
5789
|
+
flag_user_on_flagged_content?: boolean;
|
|
5790
|
+
|
|
5668
5791
|
media_queue_blur_enabled?: boolean;
|
|
5669
5792
|
}
|
|
5670
5793
|
|
|
@@ -5695,7 +5818,7 @@ export interface ModerationFlagResponse {
|
|
|
5695
5818
|
|
|
5696
5819
|
moderation_payload?: ModerationPayload;
|
|
5697
5820
|
|
|
5698
|
-
review_queue_item?:
|
|
5821
|
+
review_queue_item?: ReviewQueueItemResponse;
|
|
5699
5822
|
|
|
5700
5823
|
user?: UserResponse;
|
|
5701
5824
|
}
|
|
@@ -5973,6 +6096,8 @@ export interface OwnUser {
|
|
|
5973
6096
|
|
|
5974
6097
|
custom: Record<string, any>;
|
|
5975
6098
|
|
|
6099
|
+
total_unread_count_by_team: Record<string, number>;
|
|
6100
|
+
|
|
5976
6101
|
deactivated_at?: Date;
|
|
5977
6102
|
|
|
5978
6103
|
deleted_at?: Date;
|
|
@@ -6052,6 +6177,8 @@ export interface OwnUserResponse {
|
|
|
6052
6177
|
push_preferences?: PushPreferences;
|
|
6053
6178
|
|
|
6054
6179
|
teams_role?: Record<string, string>;
|
|
6180
|
+
|
|
6181
|
+
total_unread_count_by_team?: Record<string, number>;
|
|
6055
6182
|
}
|
|
6056
6183
|
|
|
6057
6184
|
export interface PagerResponse {
|
|
@@ -6104,6 +6231,26 @@ export interface ParticipantReportResponse {
|
|
|
6104
6231
|
subscribers?: SubscriberStatsResponse;
|
|
6105
6232
|
}
|
|
6106
6233
|
|
|
6234
|
+
export interface PendingMessageEvent {
|
|
6235
|
+
created_at: Date;
|
|
6236
|
+
|
|
6237
|
+
method: string;
|
|
6238
|
+
|
|
6239
|
+
custom: Record<string, any>;
|
|
6240
|
+
|
|
6241
|
+
type: string;
|
|
6242
|
+
|
|
6243
|
+
received_at?: Date;
|
|
6244
|
+
|
|
6245
|
+
channel?: Channel;
|
|
6246
|
+
|
|
6247
|
+
message?: Message;
|
|
6248
|
+
|
|
6249
|
+
metadata?: Record<string, string>;
|
|
6250
|
+
|
|
6251
|
+
user?: User;
|
|
6252
|
+
}
|
|
6253
|
+
|
|
6107
6254
|
export interface PendingMessageResponse {
|
|
6108
6255
|
channel?: ChannelResponse;
|
|
6109
6256
|
|
|
@@ -6402,6 +6549,18 @@ export interface PrivacySettingsResponse {
|
|
|
6402
6549
|
typing_indicators?: TypingIndicatorsResponse;
|
|
6403
6550
|
}
|
|
6404
6551
|
|
|
6552
|
+
export interface PublisherAllMetrics {
|
|
6553
|
+
audio?: PublisherAudioMetrics;
|
|
6554
|
+
|
|
6555
|
+
rtt_ms?: ActiveCallsLatencyStats;
|
|
6556
|
+
|
|
6557
|
+
video?: PublisherVideoMetrics;
|
|
6558
|
+
}
|
|
6559
|
+
|
|
6560
|
+
export interface PublisherAudioMetrics {
|
|
6561
|
+
jitter_ms?: ActiveCallsLatencyStats;
|
|
6562
|
+
}
|
|
6563
|
+
|
|
6405
6564
|
export interface PublisherStatsResponse {
|
|
6406
6565
|
total: number;
|
|
6407
6566
|
|
|
@@ -6410,6 +6569,18 @@ export interface PublisherStatsResponse {
|
|
|
6410
6569
|
by_track?: TrackStatsResponse[];
|
|
6411
6570
|
}
|
|
6412
6571
|
|
|
6572
|
+
export interface PublisherVideoMetrics {
|
|
6573
|
+
fps_30?: ActiveCallsFPSStats;
|
|
6574
|
+
|
|
6575
|
+
frame_encoding_time_ms?: ActiveCallsLatencyStats;
|
|
6576
|
+
|
|
6577
|
+
jitter_ms?: ActiveCallsLatencyStats;
|
|
6578
|
+
}
|
|
6579
|
+
|
|
6580
|
+
export interface PublishersMetrics {
|
|
6581
|
+
all?: PublisherAllMetrics;
|
|
6582
|
+
}
|
|
6583
|
+
|
|
6413
6584
|
export interface PushConfig {
|
|
6414
6585
|
version: 'v1' | 'v2' | 'v3';
|
|
6415
6586
|
|
|
@@ -6439,6 +6610,8 @@ export interface PushNotificationSettingsResponse {
|
|
|
6439
6610
|
}
|
|
6440
6611
|
|
|
6441
6612
|
export interface PushPreferenceInput {
|
|
6613
|
+
call_level?: 'all' | 'none' | 'default';
|
|
6614
|
+
|
|
6442
6615
|
channel_cid?: string;
|
|
6443
6616
|
|
|
6444
6617
|
chat_level?: 'all' | 'mentions' | 'none' | 'default';
|
|
@@ -7625,6 +7798,8 @@ export interface ReviewQueueItem {
|
|
|
7625
7798
|
|
|
7626
7799
|
teams: string[];
|
|
7627
7800
|
|
|
7801
|
+
completed_at: NullTime;
|
|
7802
|
+
|
|
7628
7803
|
reviewed_at: NullTime;
|
|
7629
7804
|
|
|
7630
7805
|
activity?: EnrichedActivity;
|
|
@@ -7775,45 +7950,71 @@ export interface Role {
|
|
|
7775
7950
|
}
|
|
7776
7951
|
|
|
7777
7952
|
export interface RuleBuilderAction {
|
|
7778
|
-
|
|
7953
|
+
type: string;
|
|
7779
7954
|
|
|
7780
|
-
|
|
7955
|
+
ban_options?: BanOptions;
|
|
7781
7956
|
|
|
7782
|
-
|
|
7957
|
+
flag_content_options?: FlagContentOptions;
|
|
7783
7958
|
|
|
7784
|
-
|
|
7959
|
+
flag_user_options?: FlagUserOptions;
|
|
7785
7960
|
|
|
7786
|
-
|
|
7961
|
+
remove_content_options?: BlockContentOptions;
|
|
7787
7962
|
}
|
|
7788
7963
|
|
|
7789
7964
|
export interface RuleBuilderCondition {
|
|
7790
|
-
|
|
7965
|
+
type: string;
|
|
7791
7966
|
|
|
7792
|
-
|
|
7967
|
+
confidence?: number;
|
|
7793
7968
|
|
|
7794
|
-
|
|
7969
|
+
content_count_rule_params?: ContentCountRuleParameters;
|
|
7795
7970
|
|
|
7796
|
-
|
|
7971
|
+
image_content_params?: ImageContentParameters;
|
|
7972
|
+
|
|
7973
|
+
image_rule_params?: ImageRuleParameters;
|
|
7974
|
+
|
|
7975
|
+
text_content_params?: TextContentParameters;
|
|
7976
|
+
|
|
7977
|
+
text_rule_params?: TextRuleParameters;
|
|
7978
|
+
|
|
7979
|
+
user_created_within_params?: UserCreatedWithinParameters;
|
|
7980
|
+
|
|
7981
|
+
user_rule_params?: UserRuleParameters;
|
|
7982
|
+
|
|
7983
|
+
video_content_params?: VideoContentParameters;
|
|
7984
|
+
|
|
7985
|
+
video_rule_params?: VideoRuleParameters;
|
|
7797
7986
|
}
|
|
7798
7987
|
|
|
7799
|
-
export interface
|
|
7800
|
-
|
|
7988
|
+
export interface RuleBuilderConditionGroup {
|
|
7989
|
+
logic: string;
|
|
7801
7990
|
|
|
7802
|
-
|
|
7991
|
+
conditions: RuleBuilderCondition[];
|
|
7992
|
+
}
|
|
7803
7993
|
|
|
7804
|
-
|
|
7994
|
+
export interface RuleBuilderConfig {
|
|
7995
|
+
rules: RuleBuilderRule[];
|
|
7996
|
+
|
|
7997
|
+
async?: boolean;
|
|
7805
7998
|
}
|
|
7806
7999
|
|
|
7807
8000
|
export interface RuleBuilderRule {
|
|
7808
|
-
enabled
|
|
8001
|
+
enabled: boolean;
|
|
7809
8002
|
|
|
7810
|
-
id
|
|
8003
|
+
id: string;
|
|
7811
8004
|
|
|
7812
|
-
name
|
|
8005
|
+
name: string;
|
|
8006
|
+
|
|
8007
|
+
rule_type: string;
|
|
8008
|
+
|
|
8009
|
+
action: RuleBuilderAction;
|
|
8010
|
+
|
|
8011
|
+
cooldown_period?: string;
|
|
8012
|
+
|
|
8013
|
+
logic?: string;
|
|
7813
8014
|
|
|
7814
8015
|
conditions?: RuleBuilderCondition[];
|
|
7815
8016
|
|
|
7816
|
-
|
|
8017
|
+
groups?: RuleBuilderConditionGroup[];
|
|
7817
8018
|
}
|
|
7818
8019
|
|
|
7819
8020
|
export interface S3Request {
|
|
@@ -8002,6 +8203,8 @@ export interface SearchResultMessage {
|
|
|
8002
8203
|
reaction_groups?: Record<string, ReactionGroupResponse>;
|
|
8003
8204
|
|
|
8004
8205
|
reminder?: ReminderResponseData;
|
|
8206
|
+
|
|
8207
|
+
shared_location?: SharedLocationResponseData;
|
|
8005
8208
|
}
|
|
8006
8209
|
|
|
8007
8210
|
export interface SearchWarning {
|
|
@@ -8148,6 +8351,86 @@ export interface SessionSettingsResponse {
|
|
|
8148
8351
|
|
|
8149
8352
|
export interface ShadowBlockActionRequest {}
|
|
8150
8353
|
|
|
8354
|
+
export interface SharedLocation {
|
|
8355
|
+
channel_cid: string;
|
|
8356
|
+
|
|
8357
|
+
created_at: Date;
|
|
8358
|
+
|
|
8359
|
+
created_by_device_id: string;
|
|
8360
|
+
|
|
8361
|
+
message_id: string;
|
|
8362
|
+
|
|
8363
|
+
updated_at: Date;
|
|
8364
|
+
|
|
8365
|
+
user_id: string;
|
|
8366
|
+
|
|
8367
|
+
end_at?: Date;
|
|
8368
|
+
|
|
8369
|
+
latitude?: number;
|
|
8370
|
+
|
|
8371
|
+
longitude?: number;
|
|
8372
|
+
|
|
8373
|
+
channel?: Channel;
|
|
8374
|
+
|
|
8375
|
+
message?: Message;
|
|
8376
|
+
}
|
|
8377
|
+
|
|
8378
|
+
export interface SharedLocationResponse {
|
|
8379
|
+
channel_cid: string;
|
|
8380
|
+
|
|
8381
|
+
created_at: Date;
|
|
8382
|
+
|
|
8383
|
+
created_by_device_id: string;
|
|
8384
|
+
|
|
8385
|
+
duration: string;
|
|
8386
|
+
|
|
8387
|
+
latitude: number;
|
|
8388
|
+
|
|
8389
|
+
longitude: number;
|
|
8390
|
+
|
|
8391
|
+
message_id: string;
|
|
8392
|
+
|
|
8393
|
+
updated_at: Date;
|
|
8394
|
+
|
|
8395
|
+
user_id: string;
|
|
8396
|
+
|
|
8397
|
+
end_at?: Date;
|
|
8398
|
+
|
|
8399
|
+
channel?: ChannelResponse;
|
|
8400
|
+
|
|
8401
|
+
message?: MessageResponse;
|
|
8402
|
+
}
|
|
8403
|
+
|
|
8404
|
+
export interface SharedLocationResponseData {
|
|
8405
|
+
channel_cid: string;
|
|
8406
|
+
|
|
8407
|
+
created_at: Date;
|
|
8408
|
+
|
|
8409
|
+
created_by_device_id: string;
|
|
8410
|
+
|
|
8411
|
+
latitude: number;
|
|
8412
|
+
|
|
8413
|
+
longitude: number;
|
|
8414
|
+
|
|
8415
|
+
message_id: string;
|
|
8416
|
+
|
|
8417
|
+
updated_at: Date;
|
|
8418
|
+
|
|
8419
|
+
user_id: string;
|
|
8420
|
+
|
|
8421
|
+
end_at?: Date;
|
|
8422
|
+
|
|
8423
|
+
channel?: ChannelResponse;
|
|
8424
|
+
|
|
8425
|
+
message?: MessageResponse;
|
|
8426
|
+
}
|
|
8427
|
+
|
|
8428
|
+
export interface SharedLocationsResponse {
|
|
8429
|
+
duration: string;
|
|
8430
|
+
|
|
8431
|
+
active_live_locations: SharedLocationResponseData[];
|
|
8432
|
+
}
|
|
8433
|
+
|
|
8151
8434
|
export interface ShowChannelRequest {
|
|
8152
8435
|
user_id?: string;
|
|
8153
8436
|
|
|
@@ -8422,7 +8705,23 @@ export interface SubmitActionRequest {
|
|
|
8422
8705
|
export interface SubmitActionResponse {
|
|
8423
8706
|
duration: string;
|
|
8424
8707
|
|
|
8425
|
-
item?:
|
|
8708
|
+
item?: ReviewQueueItemResponse;
|
|
8709
|
+
}
|
|
8710
|
+
|
|
8711
|
+
export interface SubscriberAllMetrics {
|
|
8712
|
+
audio?: SubscriberAudioMetrics;
|
|
8713
|
+
|
|
8714
|
+
rtt_ms?: ActiveCallsLatencyStats;
|
|
8715
|
+
|
|
8716
|
+
video?: SubscriberVideoMetrics;
|
|
8717
|
+
}
|
|
8718
|
+
|
|
8719
|
+
export interface SubscriberAudioMetrics {
|
|
8720
|
+
concealment_pct?: ActiveCallsLatencyStats;
|
|
8721
|
+
|
|
8722
|
+
jitter_ms?: ActiveCallsLatencyStats;
|
|
8723
|
+
|
|
8724
|
+
packets_lost_pct?: ActiveCallsLatencyStats;
|
|
8426
8725
|
}
|
|
8427
8726
|
|
|
8428
8727
|
export interface SubscriberStatsResponse {
|
|
@@ -8433,6 +8732,18 @@ export interface SubscriberStatsResponse {
|
|
|
8433
8732
|
unique: number;
|
|
8434
8733
|
}
|
|
8435
8734
|
|
|
8735
|
+
export interface SubscriberVideoMetrics {
|
|
8736
|
+
fps_30?: ActiveCallsFPSStats;
|
|
8737
|
+
|
|
8738
|
+
jitter_ms?: ActiveCallsLatencyStats;
|
|
8739
|
+
|
|
8740
|
+
packets_lost_pct?: ActiveCallsLatencyStats;
|
|
8741
|
+
}
|
|
8742
|
+
|
|
8743
|
+
export interface SubscribersMetrics {
|
|
8744
|
+
all?: SubscriberAllMetrics;
|
|
8745
|
+
}
|
|
8746
|
+
|
|
8436
8747
|
export interface TargetResolution {
|
|
8437
8748
|
bitrate: number;
|
|
8438
8749
|
|
|
@@ -8441,6 +8752,30 @@ export interface TargetResolution {
|
|
|
8441
8752
|
width: number;
|
|
8442
8753
|
}
|
|
8443
8754
|
|
|
8755
|
+
export interface TextContentParameters {
|
|
8756
|
+
contains_url?: boolean;
|
|
8757
|
+
|
|
8758
|
+
severity?: string;
|
|
8759
|
+
|
|
8760
|
+
blocklist_match?: string[];
|
|
8761
|
+
|
|
8762
|
+
harm_labels?: string[];
|
|
8763
|
+
}
|
|
8764
|
+
|
|
8765
|
+
export interface TextRuleParameters {
|
|
8766
|
+
threshold: number;
|
|
8767
|
+
|
|
8768
|
+
time_window: string;
|
|
8769
|
+
|
|
8770
|
+
contains_url?: boolean;
|
|
8771
|
+
|
|
8772
|
+
severity?: string;
|
|
8773
|
+
|
|
8774
|
+
blocklist_match?: string[];
|
|
8775
|
+
|
|
8776
|
+
harm_labels?: string[];
|
|
8777
|
+
}
|
|
8778
|
+
|
|
8444
8779
|
export interface ThreadParticipant {
|
|
8445
8780
|
app_pk: number;
|
|
8446
8781
|
|
|
@@ -8927,6 +9262,8 @@ export interface UnreadCountsResponse {
|
|
|
8927
9262
|
channels: UnreadCountsChannel[];
|
|
8928
9263
|
|
|
8929
9264
|
threads: UnreadCountsThread[];
|
|
9265
|
+
|
|
9266
|
+
total_unread_count_by_team: Record<string, number>;
|
|
8930
9267
|
}
|
|
8931
9268
|
|
|
8932
9269
|
export interface UnreadCountsThread {
|
|
@@ -9200,6 +9537,8 @@ export interface UpdateChannelTypeRequest {
|
|
|
9200
9537
|
|
|
9201
9538
|
search?: boolean;
|
|
9202
9539
|
|
|
9540
|
+
shared_locations?: boolean;
|
|
9541
|
+
|
|
9203
9542
|
skip_last_msg_update_for_system_msgs?: boolean;
|
|
9204
9543
|
|
|
9205
9544
|
typing_events?: boolean;
|
|
@@ -9260,6 +9599,8 @@ export interface UpdateChannelTypeResponse {
|
|
|
9260
9599
|
|
|
9261
9600
|
search: boolean;
|
|
9262
9601
|
|
|
9602
|
+
shared_locations: boolean;
|
|
9603
|
+
|
|
9263
9604
|
skip_last_msg_update_for_system_msgs: boolean;
|
|
9264
9605
|
|
|
9265
9606
|
typing_events: boolean;
|
|
@@ -9333,6 +9674,18 @@ export interface UpdateExternalStorageResponse {
|
|
|
9333
9674
|
type: 's3' | 'gcs' | 'abs';
|
|
9334
9675
|
}
|
|
9335
9676
|
|
|
9677
|
+
export interface UpdateLiveLocationRequest {
|
|
9678
|
+
created_by_device_id: string;
|
|
9679
|
+
|
|
9680
|
+
message_id: string;
|
|
9681
|
+
|
|
9682
|
+
end_at?: Date;
|
|
9683
|
+
|
|
9684
|
+
latitude?: number;
|
|
9685
|
+
|
|
9686
|
+
longitude?: number;
|
|
9687
|
+
}
|
|
9688
|
+
|
|
9336
9689
|
export interface UpdateMemberPartialRequest {
|
|
9337
9690
|
unset?: string[];
|
|
9338
9691
|
|
|
@@ -9680,6 +10033,10 @@ export interface UserBannedEvent {
|
|
|
9680
10033
|
user?: User;
|
|
9681
10034
|
}
|
|
9682
10035
|
|
|
10036
|
+
export interface UserCreatedWithinParameters {
|
|
10037
|
+
max_age?: string;
|
|
10038
|
+
}
|
|
10039
|
+
|
|
9683
10040
|
export interface UserCustomEventRequest {
|
|
9684
10041
|
type: string;
|
|
9685
10042
|
|
|
@@ -9948,6 +10305,10 @@ export interface UserResponsePrivacyFields {
|
|
|
9948
10305
|
teams_role?: Record<string, string>;
|
|
9949
10306
|
}
|
|
9950
10307
|
|
|
10308
|
+
export interface UserRuleParameters {
|
|
10309
|
+
max_age?: string;
|
|
10310
|
+
}
|
|
10311
|
+
|
|
9951
10312
|
export interface UserUnbannedEvent {
|
|
9952
10313
|
channel_id: string;
|
|
9953
10314
|
|
|
@@ -10050,6 +10411,10 @@ export interface VideoCallRuleConfig {
|
|
|
10050
10411
|
rules: Record<string, HarmConfig>;
|
|
10051
10412
|
}
|
|
10052
10413
|
|
|
10414
|
+
export interface VideoContentParameters {
|
|
10415
|
+
harm_labels?: string[];
|
|
10416
|
+
}
|
|
10417
|
+
|
|
10053
10418
|
export interface VideoEndCallRequest {}
|
|
10054
10419
|
|
|
10055
10420
|
export interface VideoKickUserRequest {}
|
|
@@ -10068,6 +10433,14 @@ export interface VideoReactionsResponse {
|
|
|
10068
10433
|
count_over_time?: VideoReactionOverTimeResponse;
|
|
10069
10434
|
}
|
|
10070
10435
|
|
|
10436
|
+
export interface VideoRuleParameters {
|
|
10437
|
+
threshold: number;
|
|
10438
|
+
|
|
10439
|
+
time_window: string;
|
|
10440
|
+
|
|
10441
|
+
harm_labels?: string[];
|
|
10442
|
+
}
|
|
10443
|
+
|
|
10071
10444
|
export interface VideoSettings {
|
|
10072
10445
|
access_request_enabled: boolean;
|
|
10073
10446
|
|
|
@@ -10184,6 +10557,8 @@ export interface WrappedUnreadCountsResponse {
|
|
|
10184
10557
|
channels: UnreadCountsChannel[];
|
|
10185
10558
|
|
|
10186
10559
|
threads: UnreadCountsThread[];
|
|
10560
|
+
|
|
10561
|
+
total_unread_count_by_team: Record<string, number>;
|
|
10187
10562
|
}
|
|
10188
10563
|
|
|
10189
10564
|
export interface XiaomiConfig {
|