@stream-io/feeds-client 0.3.48 → 0.3.49
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/CHANGELOG.md +13 -0
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/react-bindings.js +1 -1
- package/dist/es/index.mjs +2 -2
- package/dist/es/index.mjs.map +1 -1
- package/dist/es/react-bindings.mjs +1 -1
- package/dist/{feeds-client-D-EFo20w.mjs → feeds-client-B9b7zUcW.mjs} +102 -189
- package/dist/feeds-client-B9b7zUcW.mjs.map +1 -0
- package/dist/{feeds-client-DuJuJuEJ.js → feeds-client-BDvUG9yF.js} +102 -189
- package/dist/feeds-client-BDvUG9yF.js.map +1 -0
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/dist/types/common/Poll.d.ts +7 -3
- package/dist/types/common/Poll.d.ts.map +1 -1
- package/dist/types/common/real-time/StableWSConnection.d.ts +3 -3
- package/dist/types/common/real-time/StableWSConnection.d.ts.map +1 -1
- package/dist/types/feed/event-handlers/activity-updater.d.ts +1 -1
- package/dist/types/feed/event-handlers/comment/handle-comment-added.d.ts.map +1 -1
- package/dist/types/feed/feed.d.ts +2 -2
- package/dist/types/feed/feed.d.ts.map +1 -1
- package/dist/types/feeds-client/feeds-client.d.ts +7 -3
- package/dist/types/feeds-client/feeds-client.d.ts.map +1 -1
- package/dist/types/gen/feeds/FeedsApi.d.ts.map +1 -1
- package/dist/types/gen/model-decoders/event-decoder-mapping.d.ts.map +1 -1
- package/dist/types/gen/models/index.d.ts +196 -422
- package/dist/types/gen/models/index.d.ts.map +1 -1
- package/dist/types/gen/moderation/ModerationApi.d.ts.map +1 -1
- package/dist/types/types.d.ts +2 -2
- package/dist/types/types.d.ts.map +1 -1
- package/dist/types/utils/constants.d.ts +1 -1
- package/package.json +1 -1
- package/src/common/Poll.ts +16 -15
- package/src/feed/event-handlers/comment/handle-comment-added.ts +14 -2
- package/src/feed/feed.ts +24 -9
- package/src/feeds-client/feeds-client.ts +28 -1
- package/src/gen/feeds/FeedsApi.ts +1 -0
- package/src/gen/model-decoders/decoders.ts +40 -251
- package/src/gen/model-decoders/event-decoder-mapping.ts +3 -2
- package/src/gen/models/index.ts +310 -741
- package/src/gen/moderation/ModerationApi.ts +1 -0
- package/src/test-utils/response-generators.ts +3 -2
- package/src/types.ts +2 -2
- package/src/utils/constants.ts +1 -1
- package/dist/feeds-client-D-EFo20w.mjs.map +0 -1
- package/dist/feeds-client-DuJuJuEJ.js.map +0 -1
|
@@ -30,6 +30,7 @@ export interface AWSRekognitionRule {
|
|
|
30
30
|
action: 'flag' | 'shadow' | 'remove' | 'bounce' | 'bounce_flag' | 'bounce_remove';
|
|
31
31
|
label: string;
|
|
32
32
|
min_confidence: number;
|
|
33
|
+
subclassifications?: Record<string, boolean>;
|
|
33
34
|
}
|
|
34
35
|
export interface AcceptFeedMemberInviteRequest {
|
|
35
36
|
}
|
|
@@ -253,25 +254,25 @@ export interface ActivityResponse {
|
|
|
253
254
|
own_reactions: FeedsReactionResponse[];
|
|
254
255
|
collections: Record<string, EnrichedCollectionResponse>;
|
|
255
256
|
custom: Record<string, any>;
|
|
256
|
-
reaction_groups: Record<string,
|
|
257
|
+
reaction_groups: Record<string, FeedsReactionGroupResponse>;
|
|
257
258
|
search_data: Record<string, any>;
|
|
258
259
|
user: UserResponse;
|
|
259
260
|
deleted_at?: Date;
|
|
260
261
|
edited_at?: Date;
|
|
261
262
|
expires_at?: Date;
|
|
263
|
+
friend_reaction_count?: number;
|
|
262
264
|
is_watched?: boolean;
|
|
263
265
|
moderation_action?: string;
|
|
264
266
|
selector_source?: string;
|
|
265
267
|
text?: string;
|
|
266
268
|
visibility_tag?: string;
|
|
269
|
+
friend_reactions?: FeedsReactionResponse[];
|
|
267
270
|
current_feed?: FeedResponse;
|
|
268
271
|
location?: ActivityLocation;
|
|
269
272
|
moderation?: ModerationV2Response;
|
|
270
273
|
notification_context?: NotificationContext;
|
|
271
274
|
parent?: ActivityResponse;
|
|
272
275
|
poll?: PollResponseData;
|
|
273
|
-
friend_reactions?: FeedsReactionResponse[];
|
|
274
|
-
friend_reaction_count?: number;
|
|
275
276
|
}
|
|
276
277
|
export interface ActivityRestoredEvent {
|
|
277
278
|
created_at: Date;
|
|
@@ -533,23 +534,23 @@ export interface BackstageSettingsResponse {
|
|
|
533
534
|
enabled: boolean;
|
|
534
535
|
join_ahead_time_seconds?: number;
|
|
535
536
|
}
|
|
536
|
-
export interface
|
|
537
|
-
created_at: Date;
|
|
538
|
-
shadow: boolean;
|
|
539
|
-
expires?: Date;
|
|
540
|
-
reason?: string;
|
|
541
|
-
channel?: Channel;
|
|
542
|
-
created_by?: User;
|
|
543
|
-
target?: User;
|
|
544
|
-
}
|
|
545
|
-
export interface BanActionRequest {
|
|
537
|
+
export interface BanActionRequestPayload {
|
|
546
538
|
channel_ban_only?: boolean;
|
|
547
539
|
delete_messages?: 'soft' | 'pruning' | 'hard';
|
|
548
540
|
ip_ban?: boolean;
|
|
549
541
|
reason?: string;
|
|
550
542
|
shadow?: boolean;
|
|
543
|
+
target_user_id?: string;
|
|
551
544
|
timeout?: number;
|
|
552
545
|
}
|
|
546
|
+
export interface BanInfoResponse {
|
|
547
|
+
created_at: Date;
|
|
548
|
+
expires?: Date;
|
|
549
|
+
reason?: string;
|
|
550
|
+
shadow?: boolean;
|
|
551
|
+
created_by?: UserResponse;
|
|
552
|
+
user?: UserResponse;
|
|
553
|
+
}
|
|
553
554
|
export interface BanOptions {
|
|
554
555
|
delete_messages?: 'soft' | 'pruning' | 'hard';
|
|
555
556
|
duration?: number;
|
|
@@ -571,7 +572,7 @@ export interface BanRequest {
|
|
|
571
572
|
export interface BanResponse {
|
|
572
573
|
duration: string;
|
|
573
574
|
}
|
|
574
|
-
export interface
|
|
575
|
+
export interface BlockActionRequestPayload {
|
|
575
576
|
reason?: string;
|
|
576
577
|
}
|
|
577
578
|
export interface BlockListConfig {
|
|
@@ -685,6 +686,19 @@ export interface BroadcastSettingsResponse {
|
|
|
685
686
|
hls: HLSSettingsResponse;
|
|
686
687
|
rtmp: RTMPSettingsResponse;
|
|
687
688
|
}
|
|
689
|
+
export interface CallActionOptions {
|
|
690
|
+
duration?: number;
|
|
691
|
+
flag_reason?: string;
|
|
692
|
+
kick_reason?: string;
|
|
693
|
+
mute_audio?: boolean;
|
|
694
|
+
mute_video?: boolean;
|
|
695
|
+
reason?: string;
|
|
696
|
+
warning_text?: string;
|
|
697
|
+
}
|
|
698
|
+
export interface CallCustomPropertyParameters {
|
|
699
|
+
operator?: string;
|
|
700
|
+
property_key?: string;
|
|
701
|
+
}
|
|
688
702
|
export interface CallIngressResponse {
|
|
689
703
|
rtmp: RTMPIngress;
|
|
690
704
|
srt: SRTIngress;
|
|
@@ -723,6 +737,11 @@ export interface CallResponse {
|
|
|
723
737
|
session?: CallSessionResponse;
|
|
724
738
|
thumbnails?: ThumbnailResponse;
|
|
725
739
|
}
|
|
740
|
+
export interface CallRuleActionSequence {
|
|
741
|
+
violation_number?: number;
|
|
742
|
+
actions?: string[];
|
|
743
|
+
call_options?: CallActionOptions;
|
|
744
|
+
}
|
|
726
745
|
export interface CallSessionResponse {
|
|
727
746
|
anonymous_participant_count: number;
|
|
728
747
|
id: string;
|
|
@@ -755,75 +774,16 @@ export interface CallSettingsResponse {
|
|
|
755
774
|
video: VideoSettingsResponse;
|
|
756
775
|
ingress?: IngressSettingsResponse;
|
|
757
776
|
}
|
|
777
|
+
export interface CallTypeRuleParameters {
|
|
778
|
+
call_type?: string;
|
|
779
|
+
}
|
|
780
|
+
export interface CallViolationCountParameters {
|
|
781
|
+
threshold?: number;
|
|
782
|
+
time_window?: string;
|
|
783
|
+
}
|
|
758
784
|
export interface CastPollVoteRequest {
|
|
759
785
|
vote?: VoteData;
|
|
760
786
|
}
|
|
761
|
-
export interface Channel {
|
|
762
|
-
auto_translation_language: string;
|
|
763
|
-
cid: string;
|
|
764
|
-
created_at: Date;
|
|
765
|
-
disabled: boolean;
|
|
766
|
-
frozen: boolean;
|
|
767
|
-
id: string;
|
|
768
|
-
type: string;
|
|
769
|
-
updated_at: Date;
|
|
770
|
-
custom: Record<string, any>;
|
|
771
|
-
auto_translation_enabled?: boolean;
|
|
772
|
-
cooldown?: number;
|
|
773
|
-
deleted_at?: Date;
|
|
774
|
-
last_campaigns?: string;
|
|
775
|
-
last_message_at?: Date;
|
|
776
|
-
member_count?: number;
|
|
777
|
-
message_count?: number;
|
|
778
|
-
message_count_updated_at?: Date;
|
|
779
|
-
team?: string;
|
|
780
|
-
active_live_locations?: SharedLocation[];
|
|
781
|
-
filter_tags?: string[];
|
|
782
|
-
invites?: ChannelMember[];
|
|
783
|
-
members?: ChannelMember[];
|
|
784
|
-
config?: ChannelConfig;
|
|
785
|
-
config_overrides?: ConfigOverrides;
|
|
786
|
-
created_by?: User;
|
|
787
|
-
members_lookup?: Record<string, ChannelMemberLookup>;
|
|
788
|
-
truncated_by?: User;
|
|
789
|
-
}
|
|
790
|
-
export interface ChannelConfig {
|
|
791
|
-
automod: 'disabled' | 'simple' | 'AI';
|
|
792
|
-
automod_behavior: 'flag' | 'block' | 'shadow_block';
|
|
793
|
-
connect_events: boolean;
|
|
794
|
-
count_messages: boolean;
|
|
795
|
-
created_at: Date;
|
|
796
|
-
custom_events: boolean;
|
|
797
|
-
delivery_events: boolean;
|
|
798
|
-
mark_messages_pending: boolean;
|
|
799
|
-
max_message_length: number;
|
|
800
|
-
mutes: boolean;
|
|
801
|
-
name: string;
|
|
802
|
-
polls: boolean;
|
|
803
|
-
push_level: string;
|
|
804
|
-
push_notifications: boolean;
|
|
805
|
-
quotes: boolean;
|
|
806
|
-
reactions: boolean;
|
|
807
|
-
read_events: boolean;
|
|
808
|
-
reminders: boolean;
|
|
809
|
-
replies: boolean;
|
|
810
|
-
search: boolean;
|
|
811
|
-
shared_locations: boolean;
|
|
812
|
-
skip_last_msg_update_for_system_msgs: boolean;
|
|
813
|
-
typing_events: boolean;
|
|
814
|
-
updated_at: Date;
|
|
815
|
-
uploads: boolean;
|
|
816
|
-
url_enrichment: boolean;
|
|
817
|
-
user_message_reminders: boolean;
|
|
818
|
-
commands: string[];
|
|
819
|
-
blocklist?: string;
|
|
820
|
-
blocklist_behavior?: 'flag' | 'block' | 'shadow_block';
|
|
821
|
-
partition_size?: number;
|
|
822
|
-
partition_ttl?: number;
|
|
823
|
-
allowed_flag_reasons?: string[];
|
|
824
|
-
blocklists?: BlockListOptions[];
|
|
825
|
-
automod_thresholds?: Thresholds;
|
|
826
|
-
}
|
|
827
787
|
export interface ChannelConfigWithInfo {
|
|
828
788
|
automod: 'disabled' | 'simple' | 'AI';
|
|
829
789
|
automod_behavior: 'flag' | 'block' | 'shadow_block';
|
|
@@ -862,41 +822,6 @@ export interface ChannelConfigWithInfo {
|
|
|
862
822
|
automod_thresholds?: Thresholds;
|
|
863
823
|
grants?: Record<string, string[]>;
|
|
864
824
|
}
|
|
865
|
-
export interface ChannelMember {
|
|
866
|
-
banned: boolean;
|
|
867
|
-
channel_role: string;
|
|
868
|
-
created_at: Date;
|
|
869
|
-
is_global_banned: boolean;
|
|
870
|
-
notifications_muted: boolean;
|
|
871
|
-
shadow_banned: boolean;
|
|
872
|
-
updated_at: Date;
|
|
873
|
-
custom: Record<string, any>;
|
|
874
|
-
archived_at?: Date;
|
|
875
|
-
ban_expires?: Date;
|
|
876
|
-
blocked?: boolean;
|
|
877
|
-
deleted_at?: Date;
|
|
878
|
-
hidden?: boolean;
|
|
879
|
-
invite_accepted_at?: Date;
|
|
880
|
-
invite_rejected_at?: Date;
|
|
881
|
-
invited?: boolean;
|
|
882
|
-
is_moderator?: boolean;
|
|
883
|
-
pinned_at?: Date;
|
|
884
|
-
status?: string;
|
|
885
|
-
user_id?: string;
|
|
886
|
-
deleted_messages?: string[];
|
|
887
|
-
channel?: DenormalizedChannelFields;
|
|
888
|
-
user?: User;
|
|
889
|
-
}
|
|
890
|
-
export interface ChannelMemberLookup {
|
|
891
|
-
archived: boolean;
|
|
892
|
-
banned: boolean;
|
|
893
|
-
blocked: boolean;
|
|
894
|
-
hidden: boolean;
|
|
895
|
-
pinned: boolean;
|
|
896
|
-
archived_at?: Date;
|
|
897
|
-
ban_expires?: Date;
|
|
898
|
-
pinned_at?: Date;
|
|
899
|
-
}
|
|
900
825
|
export interface ChannelMemberResponse {
|
|
901
826
|
banned: boolean;
|
|
902
827
|
channel_role: string;
|
|
@@ -913,7 +838,7 @@ export interface ChannelMemberResponse {
|
|
|
913
838
|
invited?: boolean;
|
|
914
839
|
is_moderator?: boolean;
|
|
915
840
|
pinned_at?: Date;
|
|
916
|
-
role?:
|
|
841
|
+
role?: string;
|
|
917
842
|
status?: string;
|
|
918
843
|
user_id?: string;
|
|
919
844
|
deleted_messages?: string[];
|
|
@@ -966,7 +891,7 @@ export declare const ChannelOwnCapability: {
|
|
|
966
891
|
readonly UPLOAD_FILE: "upload-file";
|
|
967
892
|
};
|
|
968
893
|
export type ChannelOwnCapability = (typeof ChannelOwnCapability)[keyof typeof ChannelOwnCapability];
|
|
969
|
-
export interface
|
|
894
|
+
export interface ChannelPushPreferencesResponse {
|
|
970
895
|
chat_level?: string;
|
|
971
896
|
disabled_until?: Date;
|
|
972
897
|
}
|
|
@@ -1000,6 +925,11 @@ export interface ChannelResponse {
|
|
|
1000
925
|
created_by?: UserResponse;
|
|
1001
926
|
truncated_by?: UserResponse;
|
|
1002
927
|
}
|
|
928
|
+
export interface ClosedCaptionRuleParameters {
|
|
929
|
+
threshold?: number;
|
|
930
|
+
harm_labels?: string[];
|
|
931
|
+
llm_harm_labels?: Record<string, string>;
|
|
932
|
+
}
|
|
1003
933
|
export interface CollectionRequest {
|
|
1004
934
|
name: string;
|
|
1005
935
|
custom: Record<string, any>;
|
|
@@ -1086,7 +1016,7 @@ export interface CommentResponse {
|
|
|
1086
1016
|
reaction_count: number;
|
|
1087
1017
|
reply_count: number;
|
|
1088
1018
|
score: number;
|
|
1089
|
-
status:
|
|
1019
|
+
status: 'active' | 'deleted' | 'removed' | 'hidden' | 'shadow_blocked';
|
|
1090
1020
|
updated_at: Date;
|
|
1091
1021
|
upvote_count: number;
|
|
1092
1022
|
mentioned_users: UserResponse[];
|
|
@@ -1101,7 +1031,7 @@ export interface CommentResponse {
|
|
|
1101
1031
|
latest_reactions?: FeedsReactionResponse[];
|
|
1102
1032
|
custom?: Record<string, any>;
|
|
1103
1033
|
moderation?: ModerationV2Response;
|
|
1104
|
-
reaction_groups?: Record<string,
|
|
1034
|
+
reaction_groups?: Record<string, FeedsReactionGroupResponse>;
|
|
1105
1035
|
}
|
|
1106
1036
|
export interface CommentUpdatedEvent {
|
|
1107
1037
|
created_at: Date;
|
|
@@ -1116,23 +1046,6 @@ export interface CommentUpdatedEvent {
|
|
|
1116
1046
|
export interface CompositeRecordingResponse {
|
|
1117
1047
|
status: string;
|
|
1118
1048
|
}
|
|
1119
|
-
export interface ConfigOverrides {
|
|
1120
|
-
commands: string[];
|
|
1121
|
-
grants: Record<string, string[]>;
|
|
1122
|
-
blocklist?: string;
|
|
1123
|
-
blocklist_behavior?: 'flag' | 'block';
|
|
1124
|
-
count_messages?: boolean;
|
|
1125
|
-
max_message_length?: number;
|
|
1126
|
-
push_level?: 'all' | 'all_mentions' | 'mentions' | 'direct_mentions' | 'none';
|
|
1127
|
-
quotes?: boolean;
|
|
1128
|
-
reactions?: boolean;
|
|
1129
|
-
replies?: boolean;
|
|
1130
|
-
shared_locations?: boolean;
|
|
1131
|
-
typing_events?: boolean;
|
|
1132
|
-
uploads?: boolean;
|
|
1133
|
-
url_enrichment?: boolean;
|
|
1134
|
-
user_message_reminders?: boolean;
|
|
1135
|
-
}
|
|
1136
1049
|
export interface ConfigResponse {
|
|
1137
1050
|
async: boolean;
|
|
1138
1051
|
created_at: Date;
|
|
@@ -1141,6 +1054,7 @@ export interface ConfigResponse {
|
|
|
1141
1054
|
updated_at: Date;
|
|
1142
1055
|
supported_video_call_harm_types: string[];
|
|
1143
1056
|
ai_image_config?: AIImageConfig;
|
|
1057
|
+
ai_image_subclassifications?: Record<string, string[]>;
|
|
1144
1058
|
ai_text_config?: AITextConfig;
|
|
1145
1059
|
ai_video_config?: AIVideoConfig;
|
|
1146
1060
|
automod_platform_circumvention_config?: AutomodPlatformCircumventionConfig;
|
|
@@ -1221,7 +1135,7 @@ export interface CreatePollRequest {
|
|
|
1221
1135
|
options?: PollOptionInput[];
|
|
1222
1136
|
custom?: Record<string, any>;
|
|
1223
1137
|
}
|
|
1224
|
-
export interface
|
|
1138
|
+
export interface CustomActionRequestPayload {
|
|
1225
1139
|
id?: string;
|
|
1226
1140
|
options?: Record<string, any>;
|
|
1227
1141
|
}
|
|
@@ -1250,7 +1164,9 @@ export interface DeleteActivityReactionResponse {
|
|
|
1250
1164
|
activity: ActivityResponse;
|
|
1251
1165
|
reaction: FeedsReactionResponse;
|
|
1252
1166
|
}
|
|
1253
|
-
export interface
|
|
1167
|
+
export interface DeleteActivityRequestPayload {
|
|
1168
|
+
entity_id?: string;
|
|
1169
|
+
entity_type?: string;
|
|
1254
1170
|
hard_delete?: boolean;
|
|
1255
1171
|
reason?: string;
|
|
1256
1172
|
}
|
|
@@ -1272,7 +1188,9 @@ export interface DeleteCommentReactionResponse {
|
|
|
1272
1188
|
comment: CommentResponse;
|
|
1273
1189
|
reaction: FeedsReactionResponse;
|
|
1274
1190
|
}
|
|
1275
|
-
export interface
|
|
1191
|
+
export interface DeleteCommentRequestPayload {
|
|
1192
|
+
entity_id?: string;
|
|
1193
|
+
entity_type?: string;
|
|
1276
1194
|
hard_delete?: boolean;
|
|
1277
1195
|
reason?: string;
|
|
1278
1196
|
}
|
|
@@ -1285,53 +1203,33 @@ export interface DeleteFeedResponse {
|
|
|
1285
1203
|
duration: string;
|
|
1286
1204
|
task_id: string;
|
|
1287
1205
|
}
|
|
1288
|
-
export interface
|
|
1206
|
+
export interface DeleteMessageRequestPayload {
|
|
1207
|
+
entity_id?: string;
|
|
1208
|
+
entity_type?: string;
|
|
1289
1209
|
hard_delete?: boolean;
|
|
1290
1210
|
reason?: string;
|
|
1291
1211
|
}
|
|
1292
1212
|
export interface DeleteModerationConfigResponse {
|
|
1293
1213
|
duration: string;
|
|
1294
1214
|
}
|
|
1295
|
-
export interface
|
|
1215
|
+
export interface DeleteReactionRequestPayload {
|
|
1216
|
+
entity_id?: string;
|
|
1217
|
+
entity_type?: string;
|
|
1296
1218
|
hard_delete?: boolean;
|
|
1297
1219
|
reason?: string;
|
|
1298
1220
|
}
|
|
1299
|
-
export interface
|
|
1221
|
+
export interface DeleteUserRequestPayload {
|
|
1300
1222
|
delete_conversation_channels?: boolean;
|
|
1301
1223
|
delete_feeds_content?: boolean;
|
|
1224
|
+
entity_id?: string;
|
|
1225
|
+
entity_type?: string;
|
|
1302
1226
|
hard_delete?: boolean;
|
|
1303
1227
|
mark_messages_deleted?: boolean;
|
|
1304
1228
|
reason?: string;
|
|
1305
1229
|
}
|
|
1306
|
-
export interface DeliveryReceipts {
|
|
1307
|
-
enabled: boolean;
|
|
1308
|
-
}
|
|
1309
1230
|
export interface DeliveryReceiptsResponse {
|
|
1310
1231
|
enabled: boolean;
|
|
1311
1232
|
}
|
|
1312
|
-
export interface DenormalizedChannelFields {
|
|
1313
|
-
created_at?: string;
|
|
1314
|
-
created_by_id?: string;
|
|
1315
|
-
disabled?: boolean;
|
|
1316
|
-
frozen?: boolean;
|
|
1317
|
-
id?: string;
|
|
1318
|
-
last_message_at?: string;
|
|
1319
|
-
member_count?: number;
|
|
1320
|
-
team?: string;
|
|
1321
|
-
type?: string;
|
|
1322
|
-
updated_at?: string;
|
|
1323
|
-
custom?: Record<string, any>;
|
|
1324
|
-
}
|
|
1325
|
-
export interface Device {
|
|
1326
|
-
created_at: Date;
|
|
1327
|
-
id: string;
|
|
1328
|
-
push_provider: 'firebase' | 'apn' | 'huawei' | 'xiaomi';
|
|
1329
|
-
user_id: string;
|
|
1330
|
-
disabled?: boolean;
|
|
1331
|
-
disabled_reason?: string;
|
|
1332
|
-
push_provider_name?: string;
|
|
1333
|
-
voip?: boolean;
|
|
1334
|
-
}
|
|
1335
1233
|
export interface DeviceResponse {
|
|
1336
1234
|
created_at: Date;
|
|
1337
1235
|
id: string;
|
|
@@ -1643,7 +1541,7 @@ export interface FeedResponse {
|
|
|
1643
1541
|
updated_at: Date;
|
|
1644
1542
|
created_by: UserResponse;
|
|
1645
1543
|
deleted_at?: Date;
|
|
1646
|
-
visibility?:
|
|
1544
|
+
visibility?: 'public' | 'visible' | 'followers' | 'members' | 'private';
|
|
1647
1545
|
filter_tags?: string[];
|
|
1648
1546
|
own_capabilities?: FeedOwnCapability[];
|
|
1649
1547
|
own_followings?: FollowResponse[];
|
|
@@ -1668,7 +1566,7 @@ export interface FeedSuggestionResponse {
|
|
|
1668
1566
|
deleted_at?: Date;
|
|
1669
1567
|
reason?: string;
|
|
1670
1568
|
recommendation_score?: number;
|
|
1671
|
-
visibility?:
|
|
1569
|
+
visibility?: 'public' | 'visible' | 'followers' | 'members' | 'private';
|
|
1672
1570
|
filter_tags?: string[];
|
|
1673
1571
|
own_capabilities?: FeedOwnCapability[];
|
|
1674
1572
|
own_followings?: FollowResponse[];
|
|
@@ -1699,11 +1597,17 @@ export interface FeedsPreferences {
|
|
|
1699
1597
|
export interface FeedsPreferencesResponse {
|
|
1700
1598
|
comment?: string;
|
|
1701
1599
|
comment_reaction?: string;
|
|
1600
|
+
comment_reply?: string;
|
|
1702
1601
|
follow?: string;
|
|
1703
1602
|
mention?: string;
|
|
1704
1603
|
reaction?: string;
|
|
1705
1604
|
custom_activity_types?: Record<string, string>;
|
|
1706
1605
|
}
|
|
1606
|
+
export interface FeedsReactionGroupResponse {
|
|
1607
|
+
count: number;
|
|
1608
|
+
first_reaction_at: Date;
|
|
1609
|
+
last_reaction_at: Date;
|
|
1610
|
+
}
|
|
1707
1611
|
export interface FeedsReactionResponse {
|
|
1708
1612
|
activity_id: string;
|
|
1709
1613
|
created_at: Date;
|
|
@@ -1882,6 +1786,7 @@ export interface GetBlockedUsersResponse {
|
|
|
1882
1786
|
}
|
|
1883
1787
|
export interface GetCommentRepliesResponse {
|
|
1884
1788
|
duration: string;
|
|
1789
|
+
sort: string;
|
|
1885
1790
|
comments: ThreadedCommentResponse[];
|
|
1886
1791
|
next?: string;
|
|
1887
1792
|
prev?: string;
|
|
@@ -1892,6 +1797,7 @@ export interface GetCommentResponse {
|
|
|
1892
1797
|
}
|
|
1893
1798
|
export interface GetCommentsResponse {
|
|
1894
1799
|
duration: string;
|
|
1800
|
+
sort: string;
|
|
1895
1801
|
comments: ThreadedCommentResponse[];
|
|
1896
1802
|
next?: string;
|
|
1897
1803
|
prev?: string;
|
|
@@ -1943,14 +1849,9 @@ export interface GetOrCreateFeedRequest {
|
|
|
1943
1849
|
filter?: Record<string, any>;
|
|
1944
1850
|
followers_pagination?: PagerRequest;
|
|
1945
1851
|
following_pagination?: PagerRequest;
|
|
1852
|
+
friend_reactions_options?: FriendReactionsOptions;
|
|
1946
1853
|
interest_weights?: Record<string, number>;
|
|
1947
1854
|
member_pagination?: PagerRequest;
|
|
1948
|
-
friend_reactions_options?: FriendReactionsOptions;
|
|
1949
|
-
}
|
|
1950
|
-
export interface FriendReactionsOptions {
|
|
1951
|
-
enabled?: boolean;
|
|
1952
|
-
type?: 'following' | 'mutual';
|
|
1953
|
-
limit?: number;
|
|
1954
1855
|
}
|
|
1955
1856
|
export interface GetOrCreateFeedResponse {
|
|
1956
1857
|
created: boolean;
|
|
@@ -2009,9 +1910,9 @@ export interface ImageRuleParameters {
|
|
|
2009
1910
|
harm_labels?: string[];
|
|
2010
1911
|
}
|
|
2011
1912
|
export interface ImageSize {
|
|
2012
|
-
crop?:
|
|
1913
|
+
crop?: string;
|
|
2013
1914
|
height?: number;
|
|
2014
|
-
resize?:
|
|
1915
|
+
resize?: string;
|
|
2015
1916
|
width?: number;
|
|
2016
1917
|
}
|
|
2017
1918
|
export interface ImageUploadRequest {
|
|
@@ -2039,6 +1940,7 @@ export interface IndividualRecordingResponse {
|
|
|
2039
1940
|
}
|
|
2040
1941
|
export interface IndividualRecordingSettingsResponse {
|
|
2041
1942
|
mode: 'available' | 'disabled' | 'auto-on';
|
|
1943
|
+
output_types?: string[];
|
|
2042
1944
|
}
|
|
2043
1945
|
export interface IngressAudioEncodingResponse {
|
|
2044
1946
|
bitrate: number;
|
|
@@ -2066,6 +1968,11 @@ export interface IngressVideoLayerResponse {
|
|
|
2066
1968
|
max_dimension: number;
|
|
2067
1969
|
min_dimension: number;
|
|
2068
1970
|
}
|
|
1971
|
+
export interface KeyframeRuleParameters {
|
|
1972
|
+
min_confidence?: number;
|
|
1973
|
+
threshold?: number;
|
|
1974
|
+
harm_labels?: string[];
|
|
1975
|
+
}
|
|
2069
1976
|
export interface LLMConfig {
|
|
2070
1977
|
enabled: boolean;
|
|
2071
1978
|
rules: LLMRule[];
|
|
@@ -2104,7 +2011,7 @@ export interface MarkActivityRequest {
|
|
|
2104
2011
|
mark_seen?: string[];
|
|
2105
2012
|
mark_watched?: string[];
|
|
2106
2013
|
}
|
|
2107
|
-
export interface
|
|
2014
|
+
export interface MarkReviewedRequestPayload {
|
|
2108
2015
|
content_to_mark_as_reviewed_limit?: number;
|
|
2109
2016
|
decision_reason?: string;
|
|
2110
2017
|
disable_marking_content_as_reviewed?: boolean;
|
|
@@ -2119,65 +2026,6 @@ export interface MembershipLevelResponse {
|
|
|
2119
2026
|
description?: string;
|
|
2120
2027
|
custom?: Record<string, any>;
|
|
2121
2028
|
}
|
|
2122
|
-
export interface Message {
|
|
2123
|
-
cid: string;
|
|
2124
|
-
created_at: Date;
|
|
2125
|
-
deleted_reply_count: number;
|
|
2126
|
-
html: string;
|
|
2127
|
-
id: string;
|
|
2128
|
-
mentioned_channel: boolean;
|
|
2129
|
-
pinned: boolean;
|
|
2130
|
-
reply_count: number;
|
|
2131
|
-
shadowed: boolean;
|
|
2132
|
-
silent: boolean;
|
|
2133
|
-
text: string;
|
|
2134
|
-
type: string;
|
|
2135
|
-
updated_at: Date;
|
|
2136
|
-
attachments: Attachment[];
|
|
2137
|
-
latest_reactions: Reaction[];
|
|
2138
|
-
mentioned_users: User[];
|
|
2139
|
-
own_reactions: Reaction[];
|
|
2140
|
-
restricted_visibility: string[];
|
|
2141
|
-
custom: Record<string, any>;
|
|
2142
|
-
reaction_counts: Record<string, number>;
|
|
2143
|
-
reaction_groups: Record<string, ReactionGroupResponse>;
|
|
2144
|
-
reaction_scores: Record<string, number>;
|
|
2145
|
-
before_message_send_failed?: boolean;
|
|
2146
|
-
command?: string;
|
|
2147
|
-
deleted_at?: Date;
|
|
2148
|
-
deleted_for_me?: boolean;
|
|
2149
|
-
message_text_updated_at?: Date;
|
|
2150
|
-
mml?: string;
|
|
2151
|
-
parent_id?: string;
|
|
2152
|
-
pin_expires?: Date;
|
|
2153
|
-
pinned_at?: Date;
|
|
2154
|
-
poll_id?: string;
|
|
2155
|
-
quoted_message_id?: string;
|
|
2156
|
-
show_in_channel?: boolean;
|
|
2157
|
-
thread_participants?: User[];
|
|
2158
|
-
i18n?: Record<string, string>;
|
|
2159
|
-
image_labels?: Record<string, string[]>;
|
|
2160
|
-
member?: ChannelMember;
|
|
2161
|
-
moderation?: ModerationV2Response;
|
|
2162
|
-
pinned_by?: User;
|
|
2163
|
-
poll?: Poll;
|
|
2164
|
-
quoted_message?: Message;
|
|
2165
|
-
reminder?: MessageReminder;
|
|
2166
|
-
shared_location?: SharedLocation;
|
|
2167
|
-
user?: User;
|
|
2168
|
-
}
|
|
2169
|
-
export interface MessageReminder {
|
|
2170
|
-
channel_cid: string;
|
|
2171
|
-
created_at: Date;
|
|
2172
|
-
message_id: string;
|
|
2173
|
-
task_id: string;
|
|
2174
|
-
updated_at: Date;
|
|
2175
|
-
user_id: string;
|
|
2176
|
-
remind_at?: Date;
|
|
2177
|
-
channel?: Channel;
|
|
2178
|
-
message?: Message;
|
|
2179
|
-
user?: User;
|
|
2180
|
-
}
|
|
2181
2029
|
export interface MessageResponse {
|
|
2182
2030
|
cid: string;
|
|
2183
2031
|
created_at: Date;
|
|
@@ -2185,12 +2033,13 @@ export interface MessageResponse {
|
|
|
2185
2033
|
html: string;
|
|
2186
2034
|
id: string;
|
|
2187
2035
|
mentioned_channel: boolean;
|
|
2036
|
+
mentioned_here: boolean;
|
|
2188
2037
|
pinned: boolean;
|
|
2189
2038
|
reply_count: number;
|
|
2190
2039
|
shadowed: boolean;
|
|
2191
2040
|
silent: boolean;
|
|
2192
2041
|
text: string;
|
|
2193
|
-
type:
|
|
2042
|
+
type: string;
|
|
2194
2043
|
updated_at: Date;
|
|
2195
2044
|
attachments: Attachment[];
|
|
2196
2045
|
latest_reactions: ReactionResponse[];
|
|
@@ -2212,6 +2061,7 @@ export interface MessageResponse {
|
|
|
2212
2061
|
poll_id?: string;
|
|
2213
2062
|
quoted_message_id?: string;
|
|
2214
2063
|
show_in_channel?: boolean;
|
|
2064
|
+
mentioned_roles?: string[];
|
|
2215
2065
|
thread_participants?: UserResponse[];
|
|
2216
2066
|
draft?: DraftResponse;
|
|
2217
2067
|
i18n?: Record<string, string>;
|
|
@@ -2225,13 +2075,13 @@ export interface MessageResponse {
|
|
|
2225
2075
|
reminder?: ReminderResponseData;
|
|
2226
2076
|
shared_location?: SharedLocationResponseData;
|
|
2227
2077
|
}
|
|
2228
|
-
export interface
|
|
2078
|
+
export interface ModerationActionConfigResponse {
|
|
2229
2079
|
action: string;
|
|
2230
2080
|
description: string;
|
|
2231
2081
|
entity_type: string;
|
|
2232
2082
|
icon: string;
|
|
2233
2083
|
order: number;
|
|
2234
|
-
custom
|
|
2084
|
+
custom?: Record<string, any>;
|
|
2235
2085
|
}
|
|
2236
2086
|
export interface ModerationCustomActionEvent {
|
|
2237
2087
|
action_id: string;
|
|
@@ -2256,16 +2106,17 @@ export interface ModerationFlagResponse {
|
|
|
2256
2106
|
review_queue_item_id?: string;
|
|
2257
2107
|
labels?: string[];
|
|
2258
2108
|
custom?: Record<string, any>;
|
|
2259
|
-
moderation_payload?:
|
|
2109
|
+
moderation_payload?: ModerationPayloadResponse;
|
|
2260
2110
|
review_queue_item?: ReviewQueueItemResponse;
|
|
2261
2111
|
user?: UserResponse;
|
|
2262
2112
|
}
|
|
2263
2113
|
export interface ModerationFlaggedEvent {
|
|
2114
|
+
content_type: string;
|
|
2264
2115
|
created_at: Date;
|
|
2116
|
+
object_id: string;
|
|
2117
|
+
custom: Record<string, any>;
|
|
2265
2118
|
type: string;
|
|
2266
|
-
|
|
2267
|
-
object_id?: string;
|
|
2268
|
-
user?: User;
|
|
2119
|
+
received_at?: Date;
|
|
2269
2120
|
}
|
|
2270
2121
|
export interface ModerationMarkReviewedEvent {
|
|
2271
2122
|
created_at: Date;
|
|
@@ -2281,12 +2132,19 @@ export interface ModerationPayload {
|
|
|
2281
2132
|
videos?: string[];
|
|
2282
2133
|
custom?: Record<string, any>;
|
|
2283
2134
|
}
|
|
2135
|
+
export interface ModerationPayloadResponse {
|
|
2136
|
+
images?: string[];
|
|
2137
|
+
texts?: string[];
|
|
2138
|
+
videos?: string[];
|
|
2139
|
+
custom?: Record<string, any>;
|
|
2140
|
+
}
|
|
2284
2141
|
export interface ModerationV2Response {
|
|
2285
2142
|
action: string;
|
|
2286
2143
|
original_text: string;
|
|
2287
2144
|
blocklist_matched?: string;
|
|
2288
2145
|
platform_circumvented?: boolean;
|
|
2289
2146
|
semantic_filter_matched?: string;
|
|
2147
|
+
blocklists_matched?: string[];
|
|
2290
2148
|
image_harms?: string[];
|
|
2291
2149
|
text_harms?: string[];
|
|
2292
2150
|
}
|
|
@@ -2296,9 +2154,9 @@ export interface MuteRequest {
|
|
|
2296
2154
|
}
|
|
2297
2155
|
export interface MuteResponse {
|
|
2298
2156
|
duration: string;
|
|
2299
|
-
mutes?:
|
|
2157
|
+
mutes?: UserMuteResponse[];
|
|
2300
2158
|
non_existing_users?: string[];
|
|
2301
|
-
own_user?:
|
|
2159
|
+
own_user?: OwnUserResponse;
|
|
2302
2160
|
}
|
|
2303
2161
|
export interface NoiseCancellationSettings {
|
|
2304
2162
|
mode: 'available' | 'disabled' | 'auto-on';
|
|
@@ -2374,36 +2232,6 @@ export interface OwnBatchResponse {
|
|
|
2374
2232
|
duration: string;
|
|
2375
2233
|
data: Record<string, FeedOwnData>;
|
|
2376
2234
|
}
|
|
2377
|
-
export interface OwnUser {
|
|
2378
|
-
banned: boolean;
|
|
2379
|
-
created_at: Date;
|
|
2380
|
-
id: string;
|
|
2381
|
-
language: string;
|
|
2382
|
-
online: boolean;
|
|
2383
|
-
role: string;
|
|
2384
|
-
total_unread_count: number;
|
|
2385
|
-
unread_channels: number;
|
|
2386
|
-
unread_count: number;
|
|
2387
|
-
unread_threads: number;
|
|
2388
|
-
updated_at: Date;
|
|
2389
|
-
channel_mutes: ChannelMute[];
|
|
2390
|
-
devices: Device[];
|
|
2391
|
-
mutes: UserMute[];
|
|
2392
|
-
custom: Record<string, any>;
|
|
2393
|
-
total_unread_count_by_team: Record<string, number>;
|
|
2394
|
-
avg_response_time?: number;
|
|
2395
|
-
deactivated_at?: Date;
|
|
2396
|
-
deleted_at?: Date;
|
|
2397
|
-
invisible?: boolean;
|
|
2398
|
-
last_active?: Date;
|
|
2399
|
-
last_engaged_at?: Date;
|
|
2400
|
-
blocked_user_ids?: string[];
|
|
2401
|
-
latest_hidden_channels?: string[];
|
|
2402
|
-
teams?: string[];
|
|
2403
|
-
privacy_settings?: PrivacySettings;
|
|
2404
|
-
push_preferences?: PushPreferences;
|
|
2405
|
-
teams_role?: Record<string, string>;
|
|
2406
|
-
}
|
|
2407
2235
|
export interface OwnUserResponse {
|
|
2408
2236
|
banned: boolean;
|
|
2409
2237
|
created_at: Date;
|
|
@@ -2454,29 +2282,6 @@ export interface PinActivityResponse {
|
|
|
2454
2282
|
user_id: string;
|
|
2455
2283
|
activity: ActivityResponse;
|
|
2456
2284
|
}
|
|
2457
|
-
export interface Poll {
|
|
2458
|
-
allow_answers: boolean;
|
|
2459
|
-
allow_user_suggested_options: boolean;
|
|
2460
|
-
answers_count: number;
|
|
2461
|
-
created_at: Date;
|
|
2462
|
-
created_by_id: string;
|
|
2463
|
-
description: string;
|
|
2464
|
-
enforce_unique_vote: boolean;
|
|
2465
|
-
id: string;
|
|
2466
|
-
name: string;
|
|
2467
|
-
updated_at: Date;
|
|
2468
|
-
vote_count: number;
|
|
2469
|
-
latest_answers: PollVote[];
|
|
2470
|
-
options: PollOption[];
|
|
2471
|
-
own_votes: PollVote[];
|
|
2472
|
-
custom: Record<string, any>;
|
|
2473
|
-
latest_votes_by_option: Record<string, PollVote[]>;
|
|
2474
|
-
vote_counts_by_option: Record<string, number>;
|
|
2475
|
-
is_closed?: boolean;
|
|
2476
|
-
max_votes_allowed?: number;
|
|
2477
|
-
voting_visibility?: string;
|
|
2478
|
-
created_by?: User;
|
|
2479
|
-
}
|
|
2480
2285
|
export interface PollClosedFeedEvent {
|
|
2481
2286
|
created_at: Date;
|
|
2482
2287
|
fid: string;
|
|
@@ -2495,11 +2300,6 @@ export interface PollDeletedFeedEvent {
|
|
|
2495
2300
|
feed_visibility?: string;
|
|
2496
2301
|
received_at?: Date;
|
|
2497
2302
|
}
|
|
2498
|
-
export interface PollOption {
|
|
2499
|
-
id: string;
|
|
2500
|
-
text: string;
|
|
2501
|
-
custom: Record<string, any>;
|
|
2502
|
-
}
|
|
2503
2303
|
export interface PollOptionInput {
|
|
2504
2304
|
text?: string;
|
|
2505
2305
|
custom?: Record<string, any>;
|
|
@@ -2554,17 +2354,6 @@ export interface PollUpdatedFeedEvent {
|
|
|
2554
2354
|
feed_visibility?: string;
|
|
2555
2355
|
received_at?: Date;
|
|
2556
2356
|
}
|
|
2557
|
-
export interface PollVote {
|
|
2558
|
-
created_at: Date;
|
|
2559
|
-
id: string;
|
|
2560
|
-
option_id: string;
|
|
2561
|
-
poll_id: string;
|
|
2562
|
-
updated_at: Date;
|
|
2563
|
-
answer_text?: string;
|
|
2564
|
-
is_answer?: boolean;
|
|
2565
|
-
user_id?: string;
|
|
2566
|
-
user?: User;
|
|
2567
|
-
}
|
|
2568
2357
|
export interface PollVoteCastedFeedEvent {
|
|
2569
2358
|
created_at: Date;
|
|
2570
2359
|
fid: string;
|
|
@@ -2617,11 +2406,6 @@ export interface PollVotesResponse {
|
|
|
2617
2406
|
next?: string;
|
|
2618
2407
|
prev?: string;
|
|
2619
2408
|
}
|
|
2620
|
-
export interface PrivacySettings {
|
|
2621
|
-
delivery_receipts?: DeliveryReceipts;
|
|
2622
|
-
read_receipts?: ReadReceipts;
|
|
2623
|
-
typing_indicators?: TypingIndicators;
|
|
2624
|
-
}
|
|
2625
2409
|
export interface PrivacySettingsResponse {
|
|
2626
2410
|
delivery_receipts?: DeliveryReceiptsResponse;
|
|
2627
2411
|
read_receipts?: ReadReceiptsResponse;
|
|
@@ -2641,13 +2425,6 @@ export interface PushPreferenceInput {
|
|
|
2641
2425
|
user_id?: string;
|
|
2642
2426
|
feeds_preferences?: FeedsPreferences;
|
|
2643
2427
|
}
|
|
2644
|
-
export interface PushPreferences {
|
|
2645
|
-
call_level?: string;
|
|
2646
|
-
chat_level?: string;
|
|
2647
|
-
disabled_until?: Date;
|
|
2648
|
-
feeds_level?: string;
|
|
2649
|
-
feeds_preferences?: FeedsPreferences;
|
|
2650
|
-
}
|
|
2651
2428
|
export interface PushPreferencesResponse {
|
|
2652
2429
|
call_level?: string;
|
|
2653
2430
|
chat_level?: string;
|
|
@@ -2846,7 +2623,7 @@ export interface QueryReviewQueueRequest {
|
|
|
2846
2623
|
export interface QueryReviewQueueResponse {
|
|
2847
2624
|
duration: string;
|
|
2848
2625
|
items: ReviewQueueItemResponse[];
|
|
2849
|
-
action_config: Record<string,
|
|
2626
|
+
action_config: Record<string, ModerationActionConfigResponse[]>;
|
|
2850
2627
|
stats: Record<string, any>;
|
|
2851
2628
|
next?: string;
|
|
2852
2629
|
prev?: string;
|
|
@@ -2922,9 +2699,6 @@ export interface ReadCollectionsResponse {
|
|
|
2922
2699
|
duration: string;
|
|
2923
2700
|
collections: CollectionResponse[];
|
|
2924
2701
|
}
|
|
2925
|
-
export interface ReadReceipts {
|
|
2926
|
-
enabled: boolean;
|
|
2927
|
-
}
|
|
2928
2702
|
export interface ReadReceiptsResponse {
|
|
2929
2703
|
enabled: boolean;
|
|
2930
2704
|
}
|
|
@@ -2933,7 +2707,7 @@ export interface RecordSettingsResponse {
|
|
|
2933
2707
|
mode: string;
|
|
2934
2708
|
quality: string;
|
|
2935
2709
|
}
|
|
2936
|
-
export interface
|
|
2710
|
+
export interface RejectAppealRequestPayload {
|
|
2937
2711
|
decision_reason: string;
|
|
2938
2712
|
}
|
|
2939
2713
|
export interface RejectFeedMemberInviteRequest {
|
|
@@ -2970,7 +2744,7 @@ export interface RepliesMeta {
|
|
|
2970
2744
|
export interface Response {
|
|
2971
2745
|
duration: string;
|
|
2972
2746
|
}
|
|
2973
|
-
export interface
|
|
2747
|
+
export interface RestoreActionRequestPayload {
|
|
2974
2748
|
decision_reason?: string;
|
|
2975
2749
|
}
|
|
2976
2750
|
export interface RestoreActivityRequest {
|
|
@@ -2993,7 +2767,7 @@ export interface ReviewQueueItemResponse {
|
|
|
2993
2767
|
status: string;
|
|
2994
2768
|
updated_at: Date;
|
|
2995
2769
|
actions: ActionLogResponse[];
|
|
2996
|
-
bans:
|
|
2770
|
+
bans: BanInfoResponse[];
|
|
2997
2771
|
flags: ModerationFlagResponse[];
|
|
2998
2772
|
languages: string[];
|
|
2999
2773
|
completed_at?: Date;
|
|
@@ -3011,7 +2785,7 @@ export interface ReviewQueueItemResponse {
|
|
|
3011
2785
|
feeds_v3_activity?: ActivityResponse;
|
|
3012
2786
|
feeds_v3_comment?: CommentResponse;
|
|
3013
2787
|
message?: MessageResponse;
|
|
3014
|
-
moderation_payload?:
|
|
2788
|
+
moderation_payload?: ModerationPayloadResponse;
|
|
3015
2789
|
reaction?: Reaction;
|
|
3016
2790
|
}
|
|
3017
2791
|
export interface RingSettingsResponse {
|
|
@@ -3020,17 +2794,23 @@ export interface RingSettingsResponse {
|
|
|
3020
2794
|
missed_call_timeout_ms: number;
|
|
3021
2795
|
}
|
|
3022
2796
|
export interface RuleBuilderAction {
|
|
3023
|
-
type
|
|
2797
|
+
type?: 'ban_user' | 'flag_user' | 'flag_content' | 'block_content' | 'shadow_content' | 'bounce_flag_content' | 'bounce_content' | 'bounce_remove_content' | 'mute_video' | 'mute_audio' | 'blur' | 'call_blur' | 'end_call' | 'kick_user' | 'warning' | 'call_warning' | 'webhook_only';
|
|
3024
2798
|
ban_options?: BanOptions;
|
|
2799
|
+
call_options?: CallActionOptions;
|
|
3025
2800
|
flag_user_options?: FlagUserOptions;
|
|
3026
2801
|
}
|
|
3027
2802
|
export interface RuleBuilderCondition {
|
|
3028
2803
|
confidence?: number;
|
|
3029
2804
|
type?: string;
|
|
2805
|
+
call_custom_property_params?: CallCustomPropertyParameters;
|
|
2806
|
+
call_type_rule_params?: CallTypeRuleParameters;
|
|
2807
|
+
call_violation_count_params?: CallViolationCountParameters;
|
|
2808
|
+
closed_caption_rule_params?: ClosedCaptionRuleParameters;
|
|
3030
2809
|
content_count_rule_params?: ContentCountRuleParameters;
|
|
3031
2810
|
content_flag_count_rule_params?: FlagCountRuleParameters;
|
|
3032
2811
|
image_content_params?: ImageContentParameters;
|
|
3033
2812
|
image_rule_params?: ImageRuleParameters;
|
|
2813
|
+
keyframe_rule_params?: KeyframeRuleParameters;
|
|
3034
2814
|
text_content_params?: TextContentParameters;
|
|
3035
2815
|
text_rule_params?: TextRuleParameters;
|
|
3036
2816
|
user_created_within_params?: UserCreatedWithinParameters;
|
|
@@ -3052,12 +2832,13 @@ export interface RuleBuilderConfig {
|
|
|
3052
2832
|
}
|
|
3053
2833
|
export interface RuleBuilderRule {
|
|
3054
2834
|
rule_type: string;
|
|
3055
|
-
action: RuleBuilderAction;
|
|
3056
2835
|
cooldown_period?: string;
|
|
3057
2836
|
id?: string;
|
|
3058
2837
|
logic?: string;
|
|
2838
|
+
action_sequences?: CallRuleActionSequence[];
|
|
3059
2839
|
conditions?: RuleBuilderCondition[];
|
|
3060
2840
|
groups?: RuleBuilderConditionGroup[];
|
|
2841
|
+
action?: RuleBuilderAction;
|
|
3061
2842
|
}
|
|
3062
2843
|
export interface SRTIngress {
|
|
3063
2844
|
address: string;
|
|
@@ -3070,22 +2851,9 @@ export interface ScreensharingSettingsResponse {
|
|
|
3070
2851
|
export interface SessionSettingsResponse {
|
|
3071
2852
|
inactivity_timeout_seconds: number;
|
|
3072
2853
|
}
|
|
3073
|
-
export interface
|
|
2854
|
+
export interface ShadowBlockActionRequestPayload {
|
|
3074
2855
|
reason?: string;
|
|
3075
2856
|
}
|
|
3076
|
-
export interface SharedLocation {
|
|
3077
|
-
channel_cid: string;
|
|
3078
|
-
created_at: Date;
|
|
3079
|
-
created_by_device_id: string;
|
|
3080
|
-
message_id: string;
|
|
3081
|
-
updated_at: Date;
|
|
3082
|
-
user_id: string;
|
|
3083
|
-
end_at?: Date;
|
|
3084
|
-
latitude?: number;
|
|
3085
|
-
longitude?: number;
|
|
3086
|
-
channel?: Channel;
|
|
3087
|
-
message?: Message;
|
|
3088
|
-
}
|
|
3089
2857
|
export interface SharedLocationResponse {
|
|
3090
2858
|
channel_cid: string;
|
|
3091
2859
|
created_at: Date;
|
|
@@ -3130,7 +2898,7 @@ export interface SortParam {
|
|
|
3130
2898
|
export interface SortParamRequest {
|
|
3131
2899
|
direction?: number;
|
|
3132
2900
|
field?: string;
|
|
3133
|
-
type?:
|
|
2901
|
+
type?: string;
|
|
3134
2902
|
}
|
|
3135
2903
|
export interface SpeechSegmentConfig {
|
|
3136
2904
|
max_speech_caption_ms?: number;
|
|
@@ -3152,23 +2920,24 @@ export interface StoriesFeedUpdatedEvent {
|
|
|
3152
2920
|
user?: UserResponseCommonFields;
|
|
3153
2921
|
}
|
|
3154
2922
|
export interface SubmitActionRequest {
|
|
3155
|
-
action_type: 'mark_reviewed' | 'delete_message' | 'delete_activity' | 'delete_comment' | 'delete_reaction' | 'ban' | 'custom' | 'unban' | 'restore' | 'delete_user' | 'unblock' | 'block' | 'shadow_block' | 'unmask' | 'kick_user' | 'end_call' | 'reject_appeal';
|
|
2923
|
+
action_type: 'flag' | 'mark_reviewed' | 'delete_message' | 'delete_activity' | 'delete_comment' | 'delete_reaction' | 'ban' | 'custom' | 'unban' | 'restore' | 'delete_user' | 'unblock' | 'block' | 'shadow_block' | 'unmask' | 'kick_user' | 'end_call' | 'reject_appeal';
|
|
3156
2924
|
appeal_id?: string;
|
|
3157
2925
|
item_id?: string;
|
|
3158
|
-
ban?:
|
|
3159
|
-
block?:
|
|
3160
|
-
custom?:
|
|
3161
|
-
delete_activity?:
|
|
3162
|
-
delete_comment?:
|
|
3163
|
-
delete_message?:
|
|
3164
|
-
delete_reaction?:
|
|
3165
|
-
delete_user?:
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
|
|
2926
|
+
ban?: BanActionRequestPayload;
|
|
2927
|
+
block?: BlockActionRequestPayload;
|
|
2928
|
+
custom?: CustomActionRequestPayload;
|
|
2929
|
+
delete_activity?: DeleteActivityRequestPayload;
|
|
2930
|
+
delete_comment?: DeleteCommentRequestPayload;
|
|
2931
|
+
delete_message?: DeleteMessageRequestPayload;
|
|
2932
|
+
delete_reaction?: DeleteReactionRequestPayload;
|
|
2933
|
+
delete_user?: DeleteUserRequestPayload;
|
|
2934
|
+
flag?: FlagRequest;
|
|
2935
|
+
mark_reviewed?: MarkReviewedRequestPayload;
|
|
2936
|
+
reject_appeal?: RejectAppealRequestPayload;
|
|
2937
|
+
restore?: RestoreActionRequestPayload;
|
|
2938
|
+
shadow_block?: ShadowBlockActionRequestPayload;
|
|
2939
|
+
unban?: UnbanActionRequestPayload;
|
|
2940
|
+
unblock?: UnblockActionRequestPayload;
|
|
3172
2941
|
}
|
|
3173
2942
|
export interface SubmitActionResponse {
|
|
3174
2943
|
duration: string;
|
|
@@ -3208,7 +2977,7 @@ export interface ThreadedCommentResponse {
|
|
|
3208
2977
|
reaction_count: number;
|
|
3209
2978
|
reply_count: number;
|
|
3210
2979
|
score: number;
|
|
3211
|
-
status:
|
|
2980
|
+
status: 'active' | 'deleted' | 'removed' | 'hidden' | 'shadow_blocked';
|
|
3212
2981
|
updated_at: Date;
|
|
3213
2982
|
upvote_count: number;
|
|
3214
2983
|
mentioned_users: UserResponse[];
|
|
@@ -3225,7 +2994,7 @@ export interface ThreadedCommentResponse {
|
|
|
3225
2994
|
custom?: Record<string, any>;
|
|
3226
2995
|
meta?: RepliesMeta;
|
|
3227
2996
|
moderation?: ModerationV2Response;
|
|
3228
|
-
reaction_groups?: Record<string,
|
|
2997
|
+
reaction_groups?: Record<string, FeedsReactionGroupResponse>;
|
|
3229
2998
|
}
|
|
3230
2999
|
export interface Thresholds {
|
|
3231
3000
|
explicit?: LabelThresholds;
|
|
@@ -3251,16 +3020,14 @@ export interface TranslationSettings {
|
|
|
3251
3020
|
enabled: boolean;
|
|
3252
3021
|
languages: string[];
|
|
3253
3022
|
}
|
|
3254
|
-
export interface TypingIndicators {
|
|
3255
|
-
enabled: boolean;
|
|
3256
|
-
}
|
|
3257
3023
|
export interface TypingIndicatorsResponse {
|
|
3258
3024
|
enabled: boolean;
|
|
3259
3025
|
}
|
|
3260
|
-
export interface
|
|
3026
|
+
export interface UnbanActionRequestPayload {
|
|
3027
|
+
channel_cid?: string;
|
|
3261
3028
|
decision_reason?: string;
|
|
3262
3029
|
}
|
|
3263
|
-
export interface
|
|
3030
|
+
export interface UnblockActionRequestPayload {
|
|
3264
3031
|
decision_reason?: string;
|
|
3265
3032
|
}
|
|
3266
3033
|
export interface UnblockUsersRequest {
|
|
@@ -3317,6 +3084,7 @@ export interface UpdateActivityRequest {
|
|
|
3317
3084
|
mentioned_user_ids?: string[];
|
|
3318
3085
|
custom?: Record<string, any>;
|
|
3319
3086
|
location?: ActivityLocation;
|
|
3087
|
+
search_data?: Record<string, any>;
|
|
3320
3088
|
}
|
|
3321
3089
|
export interface UpdateActivityResponse {
|
|
3322
3090
|
duration: string;
|
|
@@ -3493,42 +3261,31 @@ export interface UpsertPushPreferencesRequest {
|
|
|
3493
3261
|
}
|
|
3494
3262
|
export interface UpsertPushPreferencesResponse {
|
|
3495
3263
|
duration: string;
|
|
3496
|
-
user_channel_preferences: Record<string, Record<string,
|
|
3497
|
-
user_preferences: Record<string,
|
|
3264
|
+
user_channel_preferences: Record<string, Record<string, ChannelPushPreferencesResponse | null>>;
|
|
3265
|
+
user_preferences: Record<string, PushPreferencesResponse>;
|
|
3498
3266
|
}
|
|
3499
3267
|
export interface User {
|
|
3500
|
-
banned: boolean;
|
|
3501
3268
|
id: string;
|
|
3502
|
-
|
|
3503
|
-
role: string;
|
|
3504
|
-
custom: Record<string, any>;
|
|
3505
|
-
teams_role: Record<string, string>;
|
|
3506
|
-
avg_response_time?: number;
|
|
3507
|
-
ban_expires?: Date;
|
|
3508
|
-
created_at?: Date;
|
|
3509
|
-
deactivated_at?: Date;
|
|
3510
|
-
deleted_at?: Date;
|
|
3511
|
-
invisible?: boolean;
|
|
3512
|
-
language?: string;
|
|
3513
|
-
last_active?: Date;
|
|
3514
|
-
last_engaged_at?: Date;
|
|
3515
|
-
revoke_tokens_issued_before?: Date;
|
|
3516
|
-
updated_at?: Date;
|
|
3517
|
-
teams?: string[];
|
|
3518
|
-
privacy_settings?: PrivacySettings;
|
|
3269
|
+
data?: Record<string, any>;
|
|
3519
3270
|
}
|
|
3520
3271
|
export interface UserBannedEvent {
|
|
3521
|
-
channel_id: string;
|
|
3522
|
-
channel_type: string;
|
|
3523
|
-
cid: string;
|
|
3524
3272
|
created_at: Date;
|
|
3525
|
-
|
|
3526
|
-
|
|
3273
|
+
custom: Record<string, any>;
|
|
3274
|
+
user: UserResponseCommonFields;
|
|
3527
3275
|
type: string;
|
|
3276
|
+
channel_id?: string;
|
|
3277
|
+
channel_member_count?: number;
|
|
3278
|
+
channel_message_count?: number;
|
|
3279
|
+
channel_type?: string;
|
|
3280
|
+
cid?: string;
|
|
3528
3281
|
expiration?: Date;
|
|
3529
3282
|
reason?: string;
|
|
3283
|
+
received_at?: Date;
|
|
3284
|
+
shadow?: boolean;
|
|
3530
3285
|
team?: string;
|
|
3531
|
-
|
|
3286
|
+
total_bans?: number;
|
|
3287
|
+
channel_custom?: Record<string, any>;
|
|
3288
|
+
created_by?: UserResponseCommonFields;
|
|
3532
3289
|
}
|
|
3533
3290
|
export interface UserCreatedWithinParameters {
|
|
3534
3291
|
max_age?: string;
|
|
@@ -3539,21 +3296,16 @@ export interface UserCustomPropertyParameters {
|
|
|
3539
3296
|
}
|
|
3540
3297
|
export interface UserDeactivatedEvent {
|
|
3541
3298
|
created_at: Date;
|
|
3542
|
-
|
|
3299
|
+
custom: Record<string, any>;
|
|
3300
|
+
user: UserResponseCommonFields;
|
|
3543
3301
|
type: string;
|
|
3544
|
-
|
|
3302
|
+
received_at?: Date;
|
|
3303
|
+
created_by?: UserResponseCommonFields;
|
|
3545
3304
|
}
|
|
3546
3305
|
export interface UserIdenticalContentCountParameters {
|
|
3547
3306
|
threshold?: number;
|
|
3548
3307
|
time_window?: string;
|
|
3549
3308
|
}
|
|
3550
|
-
export interface UserMute {
|
|
3551
|
-
created_at: Date;
|
|
3552
|
-
updated_at: Date;
|
|
3553
|
-
expires?: Date;
|
|
3554
|
-
target?: User;
|
|
3555
|
-
user?: User;
|
|
3556
|
-
}
|
|
3557
3309
|
export interface UserMuteResponse {
|
|
3558
3310
|
created_at: Date;
|
|
3559
3311
|
updated_at: Date;
|
|
@@ -3561,17 +3313,13 @@ export interface UserMuteResponse {
|
|
|
3561
3313
|
target?: UserResponse;
|
|
3562
3314
|
user?: UserResponse;
|
|
3563
3315
|
}
|
|
3564
|
-
export interface UserMutedEvent {
|
|
3565
|
-
created_at: Date;
|
|
3566
|
-
type: string;
|
|
3567
|
-
target_user?: string;
|
|
3568
|
-
target_users?: string[];
|
|
3569
|
-
user?: User;
|
|
3570
|
-
}
|
|
3571
3316
|
export interface UserReactivatedEvent {
|
|
3572
3317
|
created_at: Date;
|
|
3318
|
+
custom: Record<string, any>;
|
|
3319
|
+
user: UserResponseCommonFields;
|
|
3573
3320
|
type: string;
|
|
3574
|
-
|
|
3321
|
+
received_at?: Date;
|
|
3322
|
+
created_by?: UserResponseCommonFields;
|
|
3575
3323
|
}
|
|
3576
3324
|
export interface UserRequest {
|
|
3577
3325
|
id: string;
|
|
@@ -3651,6 +3399,22 @@ export interface UserRoleParameters {
|
|
|
3651
3399
|
export interface UserRuleParameters {
|
|
3652
3400
|
max_age?: string;
|
|
3653
3401
|
}
|
|
3402
|
+
export interface UserUnbannedEvent {
|
|
3403
|
+
created_at: Date;
|
|
3404
|
+
custom: Record<string, any>;
|
|
3405
|
+
user: UserResponseCommonFields;
|
|
3406
|
+
type: string;
|
|
3407
|
+
channel_id?: string;
|
|
3408
|
+
channel_member_count?: number;
|
|
3409
|
+
channel_message_count?: number;
|
|
3410
|
+
channel_type?: string;
|
|
3411
|
+
cid?: string;
|
|
3412
|
+
received_at?: Date;
|
|
3413
|
+
shadow?: boolean;
|
|
3414
|
+
team?: string;
|
|
3415
|
+
channel_custom?: Record<string, any>;
|
|
3416
|
+
created_by?: UserResponseCommonFields;
|
|
3417
|
+
}
|
|
3654
3418
|
export interface UserUpdatedEvent {
|
|
3655
3419
|
created_at: Date;
|
|
3656
3420
|
custom: Record<string, any>;
|
|
@@ -3691,9 +3455,9 @@ export interface VideoCallRuleConfig {
|
|
|
3691
3455
|
export interface VideoContentParameters {
|
|
3692
3456
|
harm_labels?: string[];
|
|
3693
3457
|
}
|
|
3694
|
-
export interface
|
|
3458
|
+
export interface VideoEndCallRequestPayload {
|
|
3695
3459
|
}
|
|
3696
|
-
export interface
|
|
3460
|
+
export interface VideoKickUserRequestPayload {
|
|
3697
3461
|
}
|
|
3698
3462
|
export interface VideoRuleParameters {
|
|
3699
3463
|
threshold?: number;
|
|
@@ -3810,8 +3574,18 @@ export type WSClientEvent = ({
|
|
|
3810
3574
|
} & HealthCheckEvent) | ({
|
|
3811
3575
|
type: 'moderation.custom_action';
|
|
3812
3576
|
} & ModerationCustomActionEvent) | ({
|
|
3577
|
+
type: 'moderation.flagged';
|
|
3578
|
+
} & ModerationFlaggedEvent) | ({
|
|
3813
3579
|
type: 'moderation.mark_reviewed';
|
|
3814
3580
|
} & ModerationMarkReviewedEvent) | ({
|
|
3581
|
+
type: 'user.banned';
|
|
3582
|
+
} & UserBannedEvent) | ({
|
|
3583
|
+
type: 'user.deactivated';
|
|
3584
|
+
} & UserDeactivatedEvent) | ({
|
|
3585
|
+
type: 'user.reactivated';
|
|
3586
|
+
} & UserReactivatedEvent) | ({
|
|
3587
|
+
type: 'user.unbanned';
|
|
3588
|
+
} & UserUnbannedEvent) | ({
|
|
3815
3589
|
type: 'user.updated';
|
|
3816
3590
|
} & UserUpdatedEvent);
|
|
3817
3591
|
export type WSEvent = ({
|
|
@@ -3913,10 +3687,10 @@ export type WSEvent = ({
|
|
|
3913
3687
|
} & UserBannedEvent) | ({
|
|
3914
3688
|
type: 'user.deactivated';
|
|
3915
3689
|
} & UserDeactivatedEvent) | ({
|
|
3916
|
-
type: 'user.muted';
|
|
3917
|
-
} & UserMutedEvent) | ({
|
|
3918
3690
|
type: 'user.reactivated';
|
|
3919
3691
|
} & UserReactivatedEvent) | ({
|
|
3692
|
+
type: 'user.unbanned';
|
|
3693
|
+
} & UserUnbannedEvent) | ({
|
|
3920
3694
|
type: 'user.updated';
|
|
3921
3695
|
} & UserUpdatedEvent);
|
|
3922
3696
|
//# sourceMappingURL=index.d.ts.map
|