@stream-io/node-sdk 0.7.40 → 0.7.42
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 +310 -268
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.mjs +310 -268
- package/dist/index.es.mjs.map +1 -1
- package/dist/src/gen/chat/ChatApi.d.ts +4 -4
- package/dist/src/gen/feeds/FeedApi.d.ts +2 -1
- package/dist/src/gen/feeds/FeedsApi.d.ts +6 -1
- package/dist/src/gen/models/index.d.ts +728 -581
- package/dist/src/gen/video/CallApi.d.ts +14 -3
- package/dist/src/gen/video/VideoApi.d.ts +20 -9
- package/package.json +1 -1
- package/src/gen/chat/ChatApi.ts +14 -10
- package/src/gen/feeds/FeedApi.ts +12 -0
- package/src/gen/feeds/FeedsApi.ts +73 -0
- package/src/gen/model-decoders/decoders.ts +273 -306
- package/src/gen/models/index.ts +1181 -897
- package/src/gen/moderation/ModerationApi.ts +1 -0
- package/src/gen/video/CallApi.ts +35 -20
- package/src/gen/video/VideoApi.ts +98 -52
|
@@ -58,6 +58,14 @@ export interface APNS {
|
|
|
58
58
|
sound?: string;
|
|
59
59
|
data?: Record<string, any>;
|
|
60
60
|
}
|
|
61
|
+
export interface APNSPayload {
|
|
62
|
+
body?: string;
|
|
63
|
+
content_available?: number;
|
|
64
|
+
mutable_content?: number;
|
|
65
|
+
sound?: string;
|
|
66
|
+
title?: string;
|
|
67
|
+
data?: Record<string, any>;
|
|
68
|
+
}
|
|
61
69
|
export interface AWSRekognitionRule {
|
|
62
70
|
action: 'flag' | 'shadow' | 'remove' | 'bounce' | 'bounce_flag' | 'bounce_remove';
|
|
63
71
|
label: string;
|
|
@@ -203,16 +211,6 @@ export interface ActivityMarkEvent {
|
|
|
203
211
|
mark_watched?: string[];
|
|
204
212
|
user?: UserResponseCommonFields;
|
|
205
213
|
}
|
|
206
|
-
export interface ActivityMarkedEvent {
|
|
207
|
-
all_read: boolean;
|
|
208
|
-
all_seen: boolean;
|
|
209
|
-
created_at: Date;
|
|
210
|
-
feed_id: string;
|
|
211
|
-
user_id: string;
|
|
212
|
-
type: string;
|
|
213
|
-
marked_read?: string[];
|
|
214
|
-
marked_watched?: string[];
|
|
215
|
-
}
|
|
216
214
|
export interface ActivityPinResponse {
|
|
217
215
|
created_at: Date;
|
|
218
216
|
feed: string;
|
|
@@ -279,6 +277,7 @@ export interface ActivityRemovedFromFeedEvent {
|
|
|
279
277
|
export interface ActivityRequest {
|
|
280
278
|
type: string;
|
|
281
279
|
feeds: string[];
|
|
280
|
+
copy_custom_to_notification?: boolean;
|
|
282
281
|
create_notification_activity?: boolean;
|
|
283
282
|
expires_at?: string;
|
|
284
283
|
id?: string;
|
|
@@ -326,17 +325,19 @@ export interface ActivityResponse {
|
|
|
326
325
|
own_reactions: FeedsReactionResponse[];
|
|
327
326
|
collections: Record<string, EnrichedCollectionResponse>;
|
|
328
327
|
custom: Record<string, any>;
|
|
329
|
-
reaction_groups: Record<string,
|
|
328
|
+
reaction_groups: Record<string, FeedsReactionGroupResponse>;
|
|
330
329
|
search_data: Record<string, any>;
|
|
331
330
|
user: UserResponse;
|
|
332
331
|
deleted_at?: Date;
|
|
333
332
|
edited_at?: Date;
|
|
334
333
|
expires_at?: Date;
|
|
334
|
+
friend_reaction_count?: number;
|
|
335
335
|
is_watched?: boolean;
|
|
336
336
|
moderation_action?: string;
|
|
337
337
|
selector_source?: string;
|
|
338
338
|
text?: string;
|
|
339
339
|
visibility_tag?: string;
|
|
340
|
+
friend_reactions?: FeedsReactionResponse[];
|
|
340
341
|
current_feed?: FeedResponse;
|
|
341
342
|
location?: ActivityLocation;
|
|
342
343
|
moderation?: ModerationV2Response;
|
|
@@ -395,6 +396,7 @@ export interface ActivityUpdatedEvent {
|
|
|
395
396
|
export interface AddActivityRequest {
|
|
396
397
|
type: string;
|
|
397
398
|
feeds: string[];
|
|
399
|
+
copy_custom_to_notification?: boolean;
|
|
398
400
|
create_notification_activity?: boolean;
|
|
399
401
|
expires_at?: string;
|
|
400
402
|
id?: string;
|
|
@@ -434,6 +436,7 @@ export interface AddBookmarkResponse {
|
|
|
434
436
|
}
|
|
435
437
|
export interface AddCommentReactionRequest {
|
|
436
438
|
type: string;
|
|
439
|
+
copy_custom_to_notification?: boolean;
|
|
437
440
|
create_notification_activity?: boolean;
|
|
438
441
|
enforce_unique?: boolean;
|
|
439
442
|
skip_push?: boolean;
|
|
@@ -449,6 +452,7 @@ export interface AddCommentReactionResponse {
|
|
|
449
452
|
}
|
|
450
453
|
export interface AddCommentRequest {
|
|
451
454
|
comment?: string;
|
|
455
|
+
copy_custom_to_notification?: boolean;
|
|
452
456
|
create_notification_activity?: boolean;
|
|
453
457
|
id?: string;
|
|
454
458
|
object_id?: string;
|
|
@@ -481,6 +485,7 @@ export interface AddFolderRequest {
|
|
|
481
485
|
}
|
|
482
486
|
export interface AddReactionRequest {
|
|
483
487
|
type: string;
|
|
488
|
+
copy_custom_to_notification?: boolean;
|
|
484
489
|
create_notification_activity?: boolean;
|
|
485
490
|
enforce_unique?: boolean;
|
|
486
491
|
skip_push?: boolean;
|
|
@@ -508,10 +513,6 @@ export interface AggregatedActivityResponse {
|
|
|
508
513
|
export interface AggregationConfig {
|
|
509
514
|
format?: string;
|
|
510
515
|
}
|
|
511
|
-
export interface AnyEvent {
|
|
512
|
-
created_at: Date;
|
|
513
|
-
type: string;
|
|
514
|
-
}
|
|
515
516
|
export interface AppResponseFields {
|
|
516
517
|
allow_multi_user_devices: boolean;
|
|
517
518
|
async_url_enrich_enabled: boolean;
|
|
@@ -526,7 +527,6 @@ export interface AppResponseFields {
|
|
|
526
527
|
id: number;
|
|
527
528
|
image_moderation_enabled: boolean;
|
|
528
529
|
max_aggregated_activities_length: number;
|
|
529
|
-
moderation_bulk_submit_action_enabled: boolean;
|
|
530
530
|
moderation_enabled: boolean;
|
|
531
531
|
moderation_llm_configurability_enabled: boolean;
|
|
532
532
|
moderation_multitenant_blocklist_enabled: boolean;
|
|
@@ -724,11 +724,11 @@ export interface AudioSettingsResponse {
|
|
|
724
724
|
speaker_default_on: boolean;
|
|
725
725
|
noise_cancellation?: NoiseCancellationSettings;
|
|
726
726
|
}
|
|
727
|
-
export interface
|
|
727
|
+
export interface AutomodDetailsResponse {
|
|
728
728
|
action?: string;
|
|
729
729
|
original_message_type?: string;
|
|
730
730
|
image_labels?: string[];
|
|
731
|
-
message_details?:
|
|
731
|
+
message_details?: FlagMessageDetailsResponse;
|
|
732
732
|
result?: MessageModerationResult;
|
|
733
733
|
}
|
|
734
734
|
export interface AutomodPlatformCircumventionConfig {
|
|
@@ -774,23 +774,23 @@ export interface BackstageSettingsResponse {
|
|
|
774
774
|
enabled: boolean;
|
|
775
775
|
join_ahead_time_seconds?: number;
|
|
776
776
|
}
|
|
777
|
-
export interface
|
|
778
|
-
created_at: Date;
|
|
779
|
-
shadow: boolean;
|
|
780
|
-
expires?: Date;
|
|
781
|
-
reason?: string;
|
|
782
|
-
channel?: Channel;
|
|
783
|
-
created_by?: User;
|
|
784
|
-
target?: User;
|
|
785
|
-
}
|
|
786
|
-
export interface BanActionRequest {
|
|
777
|
+
export interface BanActionRequestPayload {
|
|
787
778
|
channel_ban_only?: boolean;
|
|
788
779
|
delete_messages?: 'soft' | 'pruning' | 'hard';
|
|
789
780
|
ip_ban?: boolean;
|
|
790
781
|
reason?: string;
|
|
791
782
|
shadow?: boolean;
|
|
783
|
+
target_user_id?: string;
|
|
792
784
|
timeout?: number;
|
|
793
785
|
}
|
|
786
|
+
export interface BanInfoResponse {
|
|
787
|
+
created_at: Date;
|
|
788
|
+
expires?: Date;
|
|
789
|
+
reason?: string;
|
|
790
|
+
shadow?: boolean;
|
|
791
|
+
created_by?: UserResponse;
|
|
792
|
+
user?: UserResponse;
|
|
793
|
+
}
|
|
794
794
|
export interface BanOptions {
|
|
795
795
|
delete_messages?: 'soft' | 'pruning' | 'hard';
|
|
796
796
|
duration?: number;
|
|
@@ -818,7 +818,7 @@ export interface BanResponse {
|
|
|
818
818
|
channel?: ChannelResponse;
|
|
819
819
|
user?: UserResponse;
|
|
820
820
|
}
|
|
821
|
-
export interface
|
|
821
|
+
export interface BlockActionRequestPayload {
|
|
822
822
|
reason?: string;
|
|
823
823
|
}
|
|
824
824
|
export interface BlockListConfig {
|
|
@@ -1015,6 +1015,16 @@ export interface CallCreatedEvent {
|
|
|
1015
1015
|
call: CallResponse;
|
|
1016
1016
|
type: string;
|
|
1017
1017
|
}
|
|
1018
|
+
export interface CallDTMFEvent {
|
|
1019
|
+
call_cid: string;
|
|
1020
|
+
created_at: Date;
|
|
1021
|
+
digit: string;
|
|
1022
|
+
duration_ms: number;
|
|
1023
|
+
seq_number: number;
|
|
1024
|
+
timestamp: Date;
|
|
1025
|
+
user: UserResponse;
|
|
1026
|
+
type: string;
|
|
1027
|
+
}
|
|
1018
1028
|
export interface CallDeletedEvent {
|
|
1019
1029
|
call_cid: string;
|
|
1020
1030
|
created_at: Date;
|
|
@@ -1179,7 +1189,7 @@ export interface CallParticipantTimeline {
|
|
|
1179
1189
|
export interface CallReactionEvent {
|
|
1180
1190
|
call_cid: string;
|
|
1181
1191
|
created_at: Date;
|
|
1182
|
-
reaction:
|
|
1192
|
+
reaction: VideoReactionResponse;
|
|
1183
1193
|
type: string;
|
|
1184
1194
|
}
|
|
1185
1195
|
export interface CallRecording {
|
|
@@ -1550,7 +1560,7 @@ export interface CallTypeResponse {
|
|
|
1550
1560
|
name: string;
|
|
1551
1561
|
updated_at: Date;
|
|
1552
1562
|
grants: Record<string, string[]>;
|
|
1553
|
-
notification_settings:
|
|
1563
|
+
notification_settings: NotificationSettingsResponse;
|
|
1554
1564
|
settings: CallSettingsResponse;
|
|
1555
1565
|
external_storage?: string;
|
|
1556
1566
|
}
|
|
@@ -1660,35 +1670,6 @@ export interface CastPollVoteRequest {
|
|
|
1660
1670
|
user?: UserRequest;
|
|
1661
1671
|
vote?: VoteData;
|
|
1662
1672
|
}
|
|
1663
|
-
export interface Channel {
|
|
1664
|
-
auto_translation_language: string;
|
|
1665
|
-
cid: string;
|
|
1666
|
-
created_at: Date;
|
|
1667
|
-
disabled: boolean;
|
|
1668
|
-
frozen: boolean;
|
|
1669
|
-
id: string;
|
|
1670
|
-
type: string;
|
|
1671
|
-
updated_at: Date;
|
|
1672
|
-
custom: Record<string, any>;
|
|
1673
|
-
auto_translation_enabled?: boolean;
|
|
1674
|
-
cooldown?: number;
|
|
1675
|
-
deleted_at?: Date;
|
|
1676
|
-
last_campaigns?: string;
|
|
1677
|
-
last_message_at?: Date;
|
|
1678
|
-
member_count?: number;
|
|
1679
|
-
message_count?: number;
|
|
1680
|
-
message_count_updated_at?: Date;
|
|
1681
|
-
team?: string;
|
|
1682
|
-
active_live_locations?: SharedLocation[];
|
|
1683
|
-
filter_tags?: string[];
|
|
1684
|
-
invites?: ChannelMember[];
|
|
1685
|
-
members?: ChannelMember[];
|
|
1686
|
-
config?: ChannelConfig;
|
|
1687
|
-
config_overrides?: ConfigOverrides;
|
|
1688
|
-
created_by?: User;
|
|
1689
|
-
members_lookup?: Record<string, ChannelMemberLookup>;
|
|
1690
|
-
truncated_by?: User;
|
|
1691
|
-
}
|
|
1692
1673
|
export interface ChannelBatchCompletedEvent {
|
|
1693
1674
|
batch_created_at: Date;
|
|
1694
1675
|
created_at: Date;
|
|
@@ -1747,6 +1728,7 @@ export interface ChannelConfig {
|
|
|
1747
1728
|
blocklist_behavior?: 'flag' | 'block' | 'shadow_block';
|
|
1748
1729
|
partition_size?: number;
|
|
1749
1730
|
partition_ttl?: string;
|
|
1731
|
+
push_level?: 'all' | 'all_mentions' | 'mentions' | 'direct_mentions' | 'none';
|
|
1750
1732
|
allowed_flag_reasons?: string[];
|
|
1751
1733
|
blocklists?: BlockListOptions[];
|
|
1752
1734
|
automod_thresholds?: Thresholds;
|
|
@@ -1783,6 +1765,7 @@ export interface ChannelConfigWithInfo {
|
|
|
1783
1765
|
blocklist_behavior?: 'flag' | 'block' | 'shadow_block';
|
|
1784
1766
|
partition_size?: number;
|
|
1785
1767
|
partition_ttl?: string;
|
|
1768
|
+
push_level?: 'all' | 'all_mentions' | 'mentions' | 'direct_mentions' | 'none';
|
|
1786
1769
|
allowed_flag_reasons?: string[];
|
|
1787
1770
|
blocklists?: BlockListOptions[];
|
|
1788
1771
|
automod_thresholds?: Thresholds;
|
|
@@ -1790,17 +1773,33 @@ export interface ChannelConfigWithInfo {
|
|
|
1790
1773
|
}
|
|
1791
1774
|
export interface ChannelCreatedEvent {
|
|
1792
1775
|
created_at: Date;
|
|
1776
|
+
channel: ChannelResponse;
|
|
1777
|
+
custom: Record<string, any>;
|
|
1793
1778
|
type: string;
|
|
1779
|
+
channel_id?: string;
|
|
1780
|
+
channel_member_count?: number;
|
|
1781
|
+
channel_message_count?: number;
|
|
1782
|
+
channel_type?: string;
|
|
1783
|
+
cid?: string;
|
|
1784
|
+
received_at?: Date;
|
|
1785
|
+
team?: string;
|
|
1786
|
+
channel_custom?: Record<string, any>;
|
|
1787
|
+
user?: UserResponseCommonFields;
|
|
1794
1788
|
}
|
|
1795
1789
|
export interface ChannelDeletedEvent {
|
|
1796
|
-
channel_id: string;
|
|
1797
|
-
channel_member_count: number;
|
|
1798
|
-
channel_type: string;
|
|
1799
|
-
cid: string;
|
|
1800
1790
|
created_at: Date;
|
|
1791
|
+
channel: ChannelResponse;
|
|
1792
|
+
custom: Record<string, any>;
|
|
1801
1793
|
type: string;
|
|
1794
|
+
channel_id?: string;
|
|
1795
|
+
channel_member_count?: number;
|
|
1796
|
+
channel_message_count?: number;
|
|
1797
|
+
channel_type?: string;
|
|
1798
|
+
cid?: string;
|
|
1799
|
+
received_at?: Date;
|
|
1802
1800
|
team?: string;
|
|
1803
|
-
|
|
1801
|
+
channel_custom?: Record<string, any>;
|
|
1802
|
+
user?: UserResponseCommonFields;
|
|
1804
1803
|
}
|
|
1805
1804
|
export interface ChannelExport {
|
|
1806
1805
|
cid?: string;
|
|
@@ -1810,11 +1809,13 @@ export interface ChannelExport {
|
|
|
1810
1809
|
type?: string;
|
|
1811
1810
|
}
|
|
1812
1811
|
export interface ChannelFrozenEvent {
|
|
1813
|
-
channel_id: string;
|
|
1814
|
-
channel_type: string;
|
|
1815
|
-
cid: string;
|
|
1816
1812
|
created_at: Date;
|
|
1813
|
+
custom: Record<string, any>;
|
|
1817
1814
|
type: string;
|
|
1815
|
+
channel_id?: string;
|
|
1816
|
+
channel_type?: string;
|
|
1817
|
+
cid?: string;
|
|
1818
|
+
received_at?: Date;
|
|
1818
1819
|
}
|
|
1819
1820
|
export interface ChannelGetOrCreateRequest {
|
|
1820
1821
|
hide_for_creator?: boolean;
|
|
@@ -1826,15 +1827,20 @@ export interface ChannelGetOrCreateRequest {
|
|
|
1826
1827
|
watchers?: PaginationParams;
|
|
1827
1828
|
}
|
|
1828
1829
|
export interface ChannelHiddenEvent {
|
|
1829
|
-
channel_id: string;
|
|
1830
|
-
channel_member_count: number;
|
|
1831
|
-
channel_type: string;
|
|
1832
|
-
cid: string;
|
|
1833
1830
|
clear_history: boolean;
|
|
1834
1831
|
created_at: Date;
|
|
1832
|
+
channel: ChannelResponse;
|
|
1833
|
+
custom: Record<string, any>;
|
|
1835
1834
|
type: string;
|
|
1836
|
-
|
|
1837
|
-
|
|
1835
|
+
channel_id?: string;
|
|
1836
|
+
channel_member_count?: number;
|
|
1837
|
+
channel_message_count?: number;
|
|
1838
|
+
channel_type?: string;
|
|
1839
|
+
cid?: string;
|
|
1840
|
+
received_at?: Date;
|
|
1841
|
+
team?: string;
|
|
1842
|
+
channel_custom?: Record<string, any>;
|
|
1843
|
+
user?: UserResponseCommonFields;
|
|
1838
1844
|
}
|
|
1839
1845
|
export interface ChannelInput {
|
|
1840
1846
|
auto_translation_enabled?: boolean;
|
|
@@ -1857,46 +1863,11 @@ export interface ChannelInputRequest {
|
|
|
1857
1863
|
disabled?: boolean;
|
|
1858
1864
|
frozen?: boolean;
|
|
1859
1865
|
team?: string;
|
|
1860
|
-
invites?:
|
|
1861
|
-
members?:
|
|
1862
|
-
config_overrides?:
|
|
1863
|
-
created_by?:
|
|
1864
|
-
custom?: Record<string, any>;
|
|
1865
|
-
}
|
|
1866
|
-
export interface ChannelMember {
|
|
1867
|
-
archived_at?: Date;
|
|
1868
|
-
ban_expires?: Date;
|
|
1869
|
-
banned?: boolean;
|
|
1870
|
-
blocked?: boolean;
|
|
1871
|
-
channel_role?: string;
|
|
1872
|
-
created_at?: Date;
|
|
1873
|
-
deleted_at?: Date;
|
|
1874
|
-
hidden?: boolean;
|
|
1875
|
-
invite_accepted_at?: Date;
|
|
1876
|
-
invite_rejected_at?: Date;
|
|
1877
|
-
invited?: boolean;
|
|
1878
|
-
is_global_banned?: boolean;
|
|
1879
|
-
is_moderator?: boolean;
|
|
1880
|
-
notifications_muted?: boolean;
|
|
1881
|
-
pinned_at?: Date;
|
|
1882
|
-
shadow_banned?: boolean;
|
|
1883
|
-
status?: string;
|
|
1884
|
-
updated_at?: Date;
|
|
1885
|
-
user_id?: string;
|
|
1886
|
-
deleted_messages?: string[];
|
|
1887
|
-
channel?: DenormalizedChannelFields;
|
|
1866
|
+
invites?: ChannelMemberRequest[];
|
|
1867
|
+
members?: ChannelMemberRequest[];
|
|
1868
|
+
config_overrides?: ConfigOverridesRequest;
|
|
1869
|
+
created_by?: UserRequest;
|
|
1888
1870
|
custom?: Record<string, any>;
|
|
1889
|
-
user?: User;
|
|
1890
|
-
}
|
|
1891
|
-
export interface ChannelMemberLookup {
|
|
1892
|
-
archived: boolean;
|
|
1893
|
-
banned: boolean;
|
|
1894
|
-
blocked: boolean;
|
|
1895
|
-
hidden: boolean;
|
|
1896
|
-
pinned: boolean;
|
|
1897
|
-
archived_at?: Date;
|
|
1898
|
-
ban_expires?: Date;
|
|
1899
|
-
pinned_at?: Date;
|
|
1900
1871
|
}
|
|
1901
1872
|
export interface ChannelMemberRequest {
|
|
1902
1873
|
user_id: string;
|
|
@@ -1920,15 +1891,15 @@ export interface ChannelMemberResponse {
|
|
|
1920
1891
|
invited?: boolean;
|
|
1921
1892
|
is_moderator?: boolean;
|
|
1922
1893
|
pinned_at?: Date;
|
|
1923
|
-
role?:
|
|
1894
|
+
role?: string;
|
|
1924
1895
|
status?: string;
|
|
1925
1896
|
user_id?: string;
|
|
1926
1897
|
deleted_messages?: string[];
|
|
1927
1898
|
user?: UserResponse;
|
|
1928
1899
|
}
|
|
1929
|
-
export interface
|
|
1930
|
-
messages:
|
|
1931
|
-
channel
|
|
1900
|
+
export interface ChannelMessagesResponse {
|
|
1901
|
+
messages: MessageResponse[];
|
|
1902
|
+
channel: ChannelResponse;
|
|
1932
1903
|
}
|
|
1933
1904
|
export interface ChannelMute {
|
|
1934
1905
|
created_at: Date;
|
|
@@ -1939,7 +1910,12 @@ export interface ChannelMute {
|
|
|
1939
1910
|
}
|
|
1940
1911
|
export interface ChannelMutedEvent {
|
|
1941
1912
|
created_at: Date;
|
|
1913
|
+
custom: Record<string, any>;
|
|
1942
1914
|
type: string;
|
|
1915
|
+
received_at?: Date;
|
|
1916
|
+
mutes?: ChannelMute[];
|
|
1917
|
+
mute?: ChannelMute;
|
|
1918
|
+
user?: UserResponseCommonFields;
|
|
1943
1919
|
}
|
|
1944
1920
|
export declare const ChannelOwnCapability: {
|
|
1945
1921
|
readonly BAN_CHANNEL_MEMBERS: "ban-channel-members";
|
|
@@ -1981,10 +1957,6 @@ export declare const ChannelOwnCapability: {
|
|
|
1981
1957
|
readonly UPLOAD_FILE: "upload-file";
|
|
1982
1958
|
};
|
|
1983
1959
|
export type ChannelOwnCapability = (typeof ChannelOwnCapability)[keyof typeof ChannelOwnCapability];
|
|
1984
|
-
export interface ChannelPushPreferences {
|
|
1985
|
-
chat_level?: string;
|
|
1986
|
-
disabled_until?: Date;
|
|
1987
|
-
}
|
|
1988
1960
|
export interface ChannelPushPreferencesResponse {
|
|
1989
1961
|
chat_level?: string;
|
|
1990
1962
|
disabled_until?: Date;
|
|
@@ -2055,13 +2027,21 @@ export interface ChannelStateResponseFields {
|
|
|
2055
2027
|
push_preferences?: ChannelPushPreferencesResponse;
|
|
2056
2028
|
}
|
|
2057
2029
|
export interface ChannelTruncatedEvent {
|
|
2058
|
-
channel_id: string;
|
|
2059
|
-
channel_member_count: number;
|
|
2060
|
-
channel_type: string;
|
|
2061
|
-
cid: string;
|
|
2062
2030
|
created_at: Date;
|
|
2031
|
+
channel: ChannelResponse;
|
|
2032
|
+
custom: Record<string, any>;
|
|
2063
2033
|
type: string;
|
|
2064
|
-
|
|
2034
|
+
channel_id?: string;
|
|
2035
|
+
channel_member_count?: number;
|
|
2036
|
+
channel_message_count?: number;
|
|
2037
|
+
channel_type?: string;
|
|
2038
|
+
cid?: string;
|
|
2039
|
+
message_id?: string;
|
|
2040
|
+
received_at?: Date;
|
|
2041
|
+
team?: string;
|
|
2042
|
+
channel_custom?: Record<string, any>;
|
|
2043
|
+
message?: MessageResponse;
|
|
2044
|
+
user?: UserResponseCommonFields;
|
|
2065
2045
|
}
|
|
2066
2046
|
export interface ChannelTypeConfig {
|
|
2067
2047
|
automod: 'disabled' | 'simple' | 'AI';
|
|
@@ -2097,40 +2077,60 @@ export interface ChannelTypeConfig {
|
|
|
2097
2077
|
blocklist_behavior?: 'flag' | 'block' | 'shadow_block';
|
|
2098
2078
|
partition_size?: number;
|
|
2099
2079
|
partition_ttl?: string;
|
|
2080
|
+
push_level?: 'all' | 'all_mentions' | 'mentions' | 'direct_mentions' | 'none';
|
|
2100
2081
|
allowed_flag_reasons?: string[];
|
|
2101
2082
|
blocklists?: BlockListOptions[];
|
|
2102
2083
|
automod_thresholds?: Thresholds;
|
|
2103
2084
|
}
|
|
2104
2085
|
export interface ChannelUnFrozenEvent {
|
|
2105
|
-
channel_id: string;
|
|
2106
|
-
channel_type: string;
|
|
2107
|
-
cid: string;
|
|
2108
2086
|
created_at: Date;
|
|
2087
|
+
custom: Record<string, any>;
|
|
2109
2088
|
type: string;
|
|
2089
|
+
channel_id?: string;
|
|
2090
|
+
channel_type?: string;
|
|
2091
|
+
cid?: string;
|
|
2092
|
+
received_at?: Date;
|
|
2110
2093
|
}
|
|
2111
2094
|
export interface ChannelUnmutedEvent {
|
|
2112
2095
|
created_at: Date;
|
|
2096
|
+
custom: Record<string, any>;
|
|
2113
2097
|
type: string;
|
|
2098
|
+
received_at?: Date;
|
|
2099
|
+
mutes?: ChannelMute[];
|
|
2100
|
+
mute?: ChannelMute;
|
|
2101
|
+
user?: UserResponseCommonFields;
|
|
2114
2102
|
}
|
|
2115
2103
|
export interface ChannelUpdatedEvent {
|
|
2116
|
-
channel_id: string;
|
|
2117
|
-
channel_member_count: number;
|
|
2118
|
-
channel_type: string;
|
|
2119
|
-
cid: string;
|
|
2120
2104
|
created_at: Date;
|
|
2105
|
+
channel: ChannelResponse;
|
|
2106
|
+
custom: Record<string, any>;
|
|
2121
2107
|
type: string;
|
|
2108
|
+
channel_id?: string;
|
|
2109
|
+
channel_member_count?: number;
|
|
2110
|
+
channel_message_count?: number;
|
|
2111
|
+
channel_type?: string;
|
|
2112
|
+
cid?: string;
|
|
2113
|
+
message_id?: string;
|
|
2114
|
+
received_at?: Date;
|
|
2122
2115
|
team?: string;
|
|
2123
|
-
|
|
2124
|
-
message?:
|
|
2125
|
-
user?:
|
|
2116
|
+
channel_custom?: Record<string, any>;
|
|
2117
|
+
message?: MessageResponse;
|
|
2118
|
+
user?: UserResponseCommonFields;
|
|
2126
2119
|
}
|
|
2127
2120
|
export interface ChannelVisibleEvent {
|
|
2128
|
-
channel_id: string;
|
|
2129
|
-
channel_type: string;
|
|
2130
|
-
cid: string;
|
|
2131
2121
|
created_at: Date;
|
|
2122
|
+
channel: ChannelResponse;
|
|
2123
|
+
custom: Record<string, any>;
|
|
2132
2124
|
type: string;
|
|
2133
|
-
|
|
2125
|
+
channel_id?: string;
|
|
2126
|
+
channel_member_count?: number;
|
|
2127
|
+
channel_message_count?: number;
|
|
2128
|
+
channel_type?: string;
|
|
2129
|
+
cid?: string;
|
|
2130
|
+
received_at?: Date;
|
|
2131
|
+
team?: string;
|
|
2132
|
+
channel_custom?: Record<string, any>;
|
|
2133
|
+
user?: UserResponseCommonFields;
|
|
2134
2134
|
}
|
|
2135
2135
|
export interface ChatActivityStatsResponse {
|
|
2136
2136
|
messages?: MessageStatsResponse;
|
|
@@ -2146,7 +2146,7 @@ export interface CheckPushRequest {
|
|
|
2146
2146
|
firebase_template?: string;
|
|
2147
2147
|
message_id?: string;
|
|
2148
2148
|
push_provider_name?: string;
|
|
2149
|
-
push_provider_type?:
|
|
2149
|
+
push_provider_type?: string;
|
|
2150
2150
|
skip_devices?: boolean;
|
|
2151
2151
|
user_id?: string;
|
|
2152
2152
|
user?: UserRequest;
|
|
@@ -2188,7 +2188,7 @@ export interface CheckSNSRequest {
|
|
|
2188
2188
|
}
|
|
2189
2189
|
export interface CheckSNSResponse {
|
|
2190
2190
|
duration: string;
|
|
2191
|
-
status:
|
|
2191
|
+
status: string;
|
|
2192
2192
|
error?: string;
|
|
2193
2193
|
data?: Record<string, any>;
|
|
2194
2194
|
}
|
|
@@ -2199,7 +2199,7 @@ export interface CheckSQSRequest {
|
|
|
2199
2199
|
}
|
|
2200
2200
|
export interface CheckSQSResponse {
|
|
2201
2201
|
duration: string;
|
|
2202
|
-
status:
|
|
2202
|
+
status: string;
|
|
2203
2203
|
error?: string;
|
|
2204
2204
|
data?: Record<string, any>;
|
|
2205
2205
|
}
|
|
@@ -2327,7 +2327,7 @@ export interface CommentResponse {
|
|
|
2327
2327
|
latest_reactions?: FeedsReactionResponse[];
|
|
2328
2328
|
custom?: Record<string, any>;
|
|
2329
2329
|
moderation?: ModerationV2Response;
|
|
2330
|
-
reaction_groups?: Record<string,
|
|
2330
|
+
reaction_groups?: Record<string, FeedsReactionGroupResponse>;
|
|
2331
2331
|
}
|
|
2332
2332
|
export interface CommentUpdatedEvent {
|
|
2333
2333
|
created_at: Date;
|
|
@@ -2344,7 +2344,7 @@ export interface CommitMessageRequest {
|
|
|
2344
2344
|
export interface CompositeRecordingResponse {
|
|
2345
2345
|
status: string;
|
|
2346
2346
|
}
|
|
2347
|
-
export interface
|
|
2347
|
+
export interface ConfigOverridesRequest {
|
|
2348
2348
|
blocklist?: string;
|
|
2349
2349
|
blocklist_behavior?: 'flag' | 'block';
|
|
2350
2350
|
count_messages?: boolean;
|
|
@@ -2382,7 +2382,7 @@ export interface ContentCountRuleParameters {
|
|
|
2382
2382
|
threshold?: number;
|
|
2383
2383
|
time_window?: string;
|
|
2384
2384
|
}
|
|
2385
|
-
export interface
|
|
2385
|
+
export interface CoordinatesResponse {
|
|
2386
2386
|
latitude: number;
|
|
2387
2387
|
longitude: number;
|
|
2388
2388
|
}
|
|
@@ -2406,7 +2406,7 @@ export interface CreateCallTypeRequest {
|
|
|
2406
2406
|
name: string;
|
|
2407
2407
|
external_storage?: string;
|
|
2408
2408
|
grants?: Record<string, string[]>;
|
|
2409
|
-
notification_settings?:
|
|
2409
|
+
notification_settings?: NotificationSettingsRequest;
|
|
2410
2410
|
settings?: CallSettingsRequest;
|
|
2411
2411
|
}
|
|
2412
2412
|
export interface CreateCallTypeResponse {
|
|
@@ -2415,7 +2415,7 @@ export interface CreateCallTypeResponse {
|
|
|
2415
2415
|
name: string;
|
|
2416
2416
|
updated_at: Date;
|
|
2417
2417
|
grants: Record<string, string[]>;
|
|
2418
|
-
notification_settings:
|
|
2418
|
+
notification_settings: NotificationSettingsResponse;
|
|
2419
2419
|
settings: CallSettingsResponse;
|
|
2420
2420
|
external_storage?: string;
|
|
2421
2421
|
}
|
|
@@ -2431,11 +2431,12 @@ export interface CreateChannelTypeRequest {
|
|
|
2431
2431
|
custom_events?: boolean;
|
|
2432
2432
|
delivery_events?: boolean;
|
|
2433
2433
|
mark_messages_pending?: boolean;
|
|
2434
|
-
message_retention?:
|
|
2434
|
+
message_retention?: string;
|
|
2435
2435
|
mutes?: boolean;
|
|
2436
2436
|
partition_size?: number;
|
|
2437
2437
|
partition_ttl?: string;
|
|
2438
2438
|
polls?: boolean;
|
|
2439
|
+
push_level?: 'all' | 'all_mentions' | 'mentions' | 'direct_mentions' | 'none';
|
|
2439
2440
|
push_notifications?: boolean;
|
|
2440
2441
|
reactions?: boolean;
|
|
2441
2442
|
read_events?: boolean;
|
|
@@ -2487,6 +2488,7 @@ export interface CreateChannelTypeResponse {
|
|
|
2487
2488
|
blocklist_behavior?: 'flag' | 'block' | 'shadow_block';
|
|
2488
2489
|
partition_size?: number;
|
|
2489
2490
|
partition_ttl?: string;
|
|
2491
|
+
push_level?: 'all' | 'all_mentions' | 'mentions' | 'direct_mentions' | 'none';
|
|
2490
2492
|
allowed_flag_reasons?: string[];
|
|
2491
2493
|
blocklists?: BlockListOptions[];
|
|
2492
2494
|
automod_thresholds?: Thresholds;
|
|
@@ -2656,7 +2658,7 @@ export interface CreateSIPTrunkResponse {
|
|
|
2656
2658
|
duration: string;
|
|
2657
2659
|
sip_trunk?: SIPTrunkResponse;
|
|
2658
2660
|
}
|
|
2659
|
-
export interface
|
|
2661
|
+
export interface CustomActionRequestPayload {
|
|
2660
2662
|
id?: string;
|
|
2661
2663
|
options?: Record<string, any>;
|
|
2662
2664
|
}
|
|
@@ -2672,7 +2674,7 @@ export interface CustomCheckRequest {
|
|
|
2672
2674
|
flags: CustomCheckFlag[];
|
|
2673
2675
|
entity_creator_id?: string;
|
|
2674
2676
|
user_id?: string;
|
|
2675
|
-
moderation_payload?:
|
|
2677
|
+
moderation_payload?: ModerationPayloadRequest;
|
|
2676
2678
|
user?: UserRequest;
|
|
2677
2679
|
}
|
|
2678
2680
|
export interface CustomCheckResponse {
|
|
@@ -2681,6 +2683,12 @@ export interface CustomCheckResponse {
|
|
|
2681
2683
|
status: string;
|
|
2682
2684
|
item?: ReviewQueueItemResponse;
|
|
2683
2685
|
}
|
|
2686
|
+
export interface CustomEvent {
|
|
2687
|
+
created_at: Date;
|
|
2688
|
+
custom: Record<string, any>;
|
|
2689
|
+
type: string;
|
|
2690
|
+
received_at?: Date;
|
|
2691
|
+
}
|
|
2684
2692
|
export interface CustomVideoEvent {
|
|
2685
2693
|
call_cid: string;
|
|
2686
2694
|
created_at: Date;
|
|
@@ -2770,7 +2778,7 @@ export interface DeleteActivityReactionResponse {
|
|
|
2770
2778
|
activity: ActivityResponse;
|
|
2771
2779
|
reaction: FeedsReactionResponse;
|
|
2772
2780
|
}
|
|
2773
|
-
export interface
|
|
2781
|
+
export interface DeleteActivityRequestPayload {
|
|
2774
2782
|
hard_delete?: boolean;
|
|
2775
2783
|
reason?: string;
|
|
2776
2784
|
}
|
|
@@ -2821,7 +2829,7 @@ export interface DeleteCommentReactionResponse {
|
|
|
2821
2829
|
comment: CommentResponse;
|
|
2822
2830
|
reaction: FeedsReactionResponse;
|
|
2823
2831
|
}
|
|
2824
|
-
export interface
|
|
2832
|
+
export interface DeleteCommentRequestPayload {
|
|
2825
2833
|
hard_delete?: boolean;
|
|
2826
2834
|
reason?: string;
|
|
2827
2835
|
}
|
|
@@ -2861,7 +2869,7 @@ export interface DeleteFeedsBatchResponse {
|
|
|
2861
2869
|
export interface DeleteImportV2TaskResponse {
|
|
2862
2870
|
duration: string;
|
|
2863
2871
|
}
|
|
2864
|
-
export interface
|
|
2872
|
+
export interface DeleteMessageRequestPayload {
|
|
2865
2873
|
hard_delete?: boolean;
|
|
2866
2874
|
reason?: string;
|
|
2867
2875
|
}
|
|
@@ -2878,7 +2886,7 @@ export interface DeleteModerationRuleResponse {
|
|
|
2878
2886
|
export interface DeleteModerationTemplateResponse {
|
|
2879
2887
|
duration: string;
|
|
2880
2888
|
}
|
|
2881
|
-
export interface
|
|
2889
|
+
export interface DeleteReactionRequestPayload {
|
|
2882
2890
|
hard_delete?: boolean;
|
|
2883
2891
|
reason?: string;
|
|
2884
2892
|
}
|
|
@@ -2905,7 +2913,7 @@ export interface DeleteSegmentTargetsRequest {
|
|
|
2905
2913
|
export interface DeleteTranscriptionResponse {
|
|
2906
2914
|
duration: string;
|
|
2907
2915
|
}
|
|
2908
|
-
export interface
|
|
2916
|
+
export interface DeleteUserRequestPayload {
|
|
2909
2917
|
delete_conversation_channels?: boolean;
|
|
2910
2918
|
delete_feeds_content?: boolean;
|
|
2911
2919
|
hard_delete?: boolean;
|
|
@@ -2930,35 +2938,9 @@ export interface DeliveredMessagePayload {
|
|
|
2930
2938
|
cid?: string;
|
|
2931
2939
|
id?: string;
|
|
2932
2940
|
}
|
|
2933
|
-
export interface DeliveryReceipts {
|
|
2934
|
-
enabled?: boolean;
|
|
2935
|
-
}
|
|
2936
2941
|
export interface DeliveryReceiptsResponse {
|
|
2937
2942
|
enabled?: boolean;
|
|
2938
2943
|
}
|
|
2939
|
-
export interface DenormalizedChannelFields {
|
|
2940
|
-
created_at?: string;
|
|
2941
|
-
created_by_id?: string;
|
|
2942
|
-
disabled?: boolean;
|
|
2943
|
-
frozen?: boolean;
|
|
2944
|
-
id?: string;
|
|
2945
|
-
last_message_at?: string;
|
|
2946
|
-
member_count?: number;
|
|
2947
|
-
team?: string;
|
|
2948
|
-
type?: string;
|
|
2949
|
-
updated_at?: string;
|
|
2950
|
-
custom?: Record<string, any>;
|
|
2951
|
-
}
|
|
2952
|
-
export interface Device {
|
|
2953
|
-
created_at: Date;
|
|
2954
|
-
id: string;
|
|
2955
|
-
push_provider: 'firebase' | 'apn' | 'huawei' | 'xiaomi';
|
|
2956
|
-
user_id: string;
|
|
2957
|
-
disabled?: boolean;
|
|
2958
|
-
disabled_reason?: string;
|
|
2959
|
-
push_provider_name?: string;
|
|
2960
|
-
voip?: boolean;
|
|
2961
|
-
}
|
|
2962
2944
|
export interface DeviceDataResponse {
|
|
2963
2945
|
name?: string;
|
|
2964
2946
|
version?: string;
|
|
@@ -3161,6 +3143,16 @@ export interface EventNotificationSettings {
|
|
|
3161
3143
|
apns: APNS;
|
|
3162
3144
|
fcm: FCM;
|
|
3163
3145
|
}
|
|
3146
|
+
export interface EventNotificationSettingsRequest {
|
|
3147
|
+
enabled?: boolean;
|
|
3148
|
+
apns?: APNSPayload;
|
|
3149
|
+
fcm?: FCMPayload;
|
|
3150
|
+
}
|
|
3151
|
+
export interface EventNotificationSettingsResponse {
|
|
3152
|
+
enabled: boolean;
|
|
3153
|
+
apns: APNSPayload;
|
|
3154
|
+
fcm: FCMPayload;
|
|
3155
|
+
}
|
|
3164
3156
|
export interface EventRequest {
|
|
3165
3157
|
type: string;
|
|
3166
3158
|
parent_id?: string;
|
|
@@ -3212,6 +3204,9 @@ export interface ExternalStorageResponse {
|
|
|
3212
3204
|
export interface FCM {
|
|
3213
3205
|
data?: Record<string, any>;
|
|
3214
3206
|
}
|
|
3207
|
+
export interface FCMPayload {
|
|
3208
|
+
data?: Record<string, any>;
|
|
3209
|
+
}
|
|
3215
3210
|
export interface FailedChannelUpdates {
|
|
3216
3211
|
reason: string;
|
|
3217
3212
|
cids: string[];
|
|
@@ -3464,9 +3459,9 @@ export interface FeedVisibilityResponse {
|
|
|
3464
3459
|
permissions: Permission[];
|
|
3465
3460
|
grants: Record<string, string[]>;
|
|
3466
3461
|
}
|
|
3467
|
-
export interface
|
|
3468
|
-
config_key: string;
|
|
3462
|
+
export interface FeedsModerationTemplateConfigPayload {
|
|
3469
3463
|
data_types: Record<string, string>;
|
|
3464
|
+
config_key?: string;
|
|
3470
3465
|
}
|
|
3471
3466
|
export interface FeedsPreferences {
|
|
3472
3467
|
comment?: 'all' | 'none';
|
|
@@ -3480,11 +3475,17 @@ export interface FeedsPreferences {
|
|
|
3480
3475
|
export interface FeedsPreferencesResponse {
|
|
3481
3476
|
comment?: string;
|
|
3482
3477
|
comment_reaction?: string;
|
|
3478
|
+
comment_reply?: string;
|
|
3483
3479
|
follow?: string;
|
|
3484
3480
|
mention?: string;
|
|
3485
3481
|
reaction?: string;
|
|
3486
3482
|
custom_activity_types?: Record<string, string>;
|
|
3487
3483
|
}
|
|
3484
|
+
export interface FeedsReactionGroupResponse {
|
|
3485
|
+
count: number;
|
|
3486
|
+
first_reaction_at: Date;
|
|
3487
|
+
last_reaction_at: Date;
|
|
3488
|
+
}
|
|
3488
3489
|
export interface FeedsReactionResponse {
|
|
3489
3490
|
activity_id: string;
|
|
3490
3491
|
created_at: Date;
|
|
@@ -3535,36 +3536,20 @@ export interface FirebaseConfigFields {
|
|
|
3535
3536
|
notification_template?: string;
|
|
3536
3537
|
server_key?: string;
|
|
3537
3538
|
}
|
|
3538
|
-
export interface Flag {
|
|
3539
|
-
created_at: Date;
|
|
3540
|
-
created_by_automod: boolean;
|
|
3541
|
-
updated_at: Date;
|
|
3542
|
-
approved_at?: Date;
|
|
3543
|
-
reason?: string;
|
|
3544
|
-
rejected_at?: Date;
|
|
3545
|
-
reviewed_at?: Date;
|
|
3546
|
-
reviewed_by?: string;
|
|
3547
|
-
target_message_id?: string;
|
|
3548
|
-
custom?: Record<string, any>;
|
|
3549
|
-
details?: FlagDetails;
|
|
3550
|
-
target_message?: Message;
|
|
3551
|
-
target_user?: User;
|
|
3552
|
-
user?: User;
|
|
3553
|
-
}
|
|
3554
3539
|
export interface FlagCountRuleParameters {
|
|
3555
3540
|
threshold?: number;
|
|
3556
3541
|
}
|
|
3557
|
-
export interface
|
|
3542
|
+
export interface FlagDetailsResponse {
|
|
3558
3543
|
original_text: string;
|
|
3559
|
-
|
|
3560
|
-
|
|
3544
|
+
automod?: AutomodDetailsResponse;
|
|
3545
|
+
extra?: Record<string, any>;
|
|
3561
3546
|
}
|
|
3562
|
-
export interface
|
|
3547
|
+
export interface FlagFeedbackResponse {
|
|
3563
3548
|
created_at: Date;
|
|
3564
3549
|
message_id: string;
|
|
3565
|
-
labels:
|
|
3550
|
+
labels: LabelResponse[];
|
|
3566
3551
|
}
|
|
3567
|
-
export interface
|
|
3552
|
+
export interface FlagMessageDetailsResponse {
|
|
3568
3553
|
pin_changed?: boolean;
|
|
3569
3554
|
should_enrich?: boolean;
|
|
3570
3555
|
skip_push?: boolean;
|
|
@@ -3629,6 +3614,7 @@ export interface FollowPair {
|
|
|
3629
3614
|
export interface FollowRequest {
|
|
3630
3615
|
source: string;
|
|
3631
3616
|
target: string;
|
|
3617
|
+
copy_custom_to_notification?: boolean;
|
|
3632
3618
|
create_notification_activity?: boolean;
|
|
3633
3619
|
push_preference?: 'all' | 'none';
|
|
3634
3620
|
skip_push?: boolean;
|
|
@@ -3674,6 +3660,11 @@ export interface FrameRecordingSettingsResponse {
|
|
|
3674
3660
|
mode: 'available' | 'disabled' | 'auto-on';
|
|
3675
3661
|
quality?: string;
|
|
3676
3662
|
}
|
|
3663
|
+
export interface FriendReactionsOptions {
|
|
3664
|
+
enabled?: boolean;
|
|
3665
|
+
limit?: number;
|
|
3666
|
+
type?: 'following' | 'mutual';
|
|
3667
|
+
}
|
|
3677
3668
|
export interface FullUserResponse {
|
|
3678
3669
|
banned: boolean;
|
|
3679
3670
|
created_at: Date;
|
|
@@ -3756,11 +3747,22 @@ export interface GetBlockedUsersResponse {
|
|
|
3756
3747
|
duration: string;
|
|
3757
3748
|
blocks: BlockedUserResponse[];
|
|
3758
3749
|
}
|
|
3759
|
-
export interface
|
|
3750
|
+
export interface GetCallParticipantSessionMetricsResponse {
|
|
3760
3751
|
duration: string;
|
|
3761
|
-
|
|
3762
|
-
|
|
3763
|
-
|
|
3752
|
+
is_publisher?: boolean;
|
|
3753
|
+
is_subscriber?: boolean;
|
|
3754
|
+
joined_at?: Date;
|
|
3755
|
+
publisher_type?: string;
|
|
3756
|
+
user_id?: string;
|
|
3757
|
+
user_session_id?: string;
|
|
3758
|
+
published_tracks?: PublishedTrackMetrics[];
|
|
3759
|
+
client?: SessionClient;
|
|
3760
|
+
}
|
|
3761
|
+
export interface GetCallReportResponse {
|
|
3762
|
+
duration: string;
|
|
3763
|
+
session_id: string;
|
|
3764
|
+
report: ReportResponse;
|
|
3765
|
+
video_reactions?: VideoReactionsResponse[];
|
|
3764
3766
|
chat_activity?: ChatActivityStatsResponse;
|
|
3765
3767
|
session?: CallSessionResponse;
|
|
3766
3768
|
}
|
|
@@ -3788,7 +3790,7 @@ export interface GetCallTypeResponse {
|
|
|
3788
3790
|
name: string;
|
|
3789
3791
|
updated_at: Date;
|
|
3790
3792
|
grants: Record<string, string[]>;
|
|
3791
|
-
notification_settings:
|
|
3793
|
+
notification_settings: NotificationSettingsResponse;
|
|
3792
3794
|
settings: CallSettingsResponse;
|
|
3793
3795
|
external_storage?: string;
|
|
3794
3796
|
}
|
|
@@ -3832,6 +3834,7 @@ export interface GetChannelTypeResponse {
|
|
|
3832
3834
|
blocklist_behavior?: 'flag' | 'block' | 'shadow_block';
|
|
3833
3835
|
partition_size?: number;
|
|
3834
3836
|
partition_ttl?: string;
|
|
3837
|
+
push_level?: 'all' | 'all_mentions' | 'mentions' | 'direct_mentions' | 'none';
|
|
3835
3838
|
allowed_flag_reasons?: string[];
|
|
3836
3839
|
blocklists?: BlockListOptions[];
|
|
3837
3840
|
automod_thresholds?: Thresholds;
|
|
@@ -3891,10 +3894,10 @@ export interface GetFeedVisibilityResponse {
|
|
|
3891
3894
|
}
|
|
3892
3895
|
export interface GetFeedsRateLimitsResponse {
|
|
3893
3896
|
duration: string;
|
|
3894
|
-
android?: Record<string,
|
|
3895
|
-
ios?: Record<string,
|
|
3896
|
-
server_side?: Record<string,
|
|
3897
|
-
web?: Record<string,
|
|
3897
|
+
android?: Record<string, LimitInfoResponse>;
|
|
3898
|
+
ios?: Record<string, LimitInfoResponse>;
|
|
3899
|
+
server_side?: Record<string, LimitInfoResponse>;
|
|
3900
|
+
web?: Record<string, LimitInfoResponse>;
|
|
3898
3901
|
}
|
|
3899
3902
|
export interface GetFollowSuggestionsResponse {
|
|
3900
3903
|
duration: string;
|
|
@@ -3997,6 +4000,7 @@ export interface GetOrCreateFeedRequest {
|
|
|
3997
4000
|
filter?: Record<string, any>;
|
|
3998
4001
|
followers_pagination?: PagerRequest;
|
|
3999
4002
|
following_pagination?: PagerRequest;
|
|
4003
|
+
friend_reactions_options?: FriendReactionsOptions;
|
|
4000
4004
|
interest_weights?: Record<string, number>;
|
|
4001
4005
|
member_pagination?: PagerRequest;
|
|
4002
4006
|
user?: UserRequest;
|
|
@@ -4030,14 +4034,14 @@ export interface GetOrCreateFeedViewResponse {
|
|
|
4030
4034
|
}
|
|
4031
4035
|
export interface GetPushTemplatesResponse {
|
|
4032
4036
|
duration: string;
|
|
4033
|
-
templates:
|
|
4037
|
+
templates: PushTemplateResponse[];
|
|
4034
4038
|
}
|
|
4035
4039
|
export interface GetRateLimitsResponse {
|
|
4036
4040
|
duration: string;
|
|
4037
|
-
android?: Record<string,
|
|
4038
|
-
ios?: Record<string,
|
|
4039
|
-
server_side?: Record<string,
|
|
4040
|
-
web?: Record<string,
|
|
4041
|
+
android?: Record<string, LimitInfoResponse>;
|
|
4042
|
+
ios?: Record<string, LimitInfoResponse>;
|
|
4043
|
+
server_side?: Record<string, LimitInfoResponse>;
|
|
4044
|
+
web?: Record<string, LimitInfoResponse>;
|
|
4041
4045
|
}
|
|
4042
4046
|
export interface GetReactionsResponse {
|
|
4043
4047
|
duration: string;
|
|
@@ -4149,9 +4153,9 @@ export interface ImageRuleParameters {
|
|
|
4149
4153
|
harm_labels?: string[];
|
|
4150
4154
|
}
|
|
4151
4155
|
export interface ImageSize {
|
|
4152
|
-
crop?:
|
|
4156
|
+
crop?: string;
|
|
4153
4157
|
height?: number;
|
|
4154
|
-
resize?:
|
|
4158
|
+
resize?: string;
|
|
4155
4159
|
width?: number;
|
|
4156
4160
|
}
|
|
4157
4161
|
export interface ImageUploadRequest {
|
|
@@ -4199,6 +4203,8 @@ export interface ImportV2TaskItem {
|
|
|
4199
4203
|
settings: ImportV2TaskSettings;
|
|
4200
4204
|
}
|
|
4201
4205
|
export interface ImportV2TaskSettings {
|
|
4206
|
+
mode?: string;
|
|
4207
|
+
path?: string;
|
|
4202
4208
|
skip_references_check?: boolean;
|
|
4203
4209
|
s3?: ImportV2TaskSettingsS3;
|
|
4204
4210
|
}
|
|
@@ -4358,7 +4364,7 @@ export interface LLMRule {
|
|
|
4358
4364
|
action?: 'flag' | 'shadow' | 'remove' | 'bounce' | 'bounce_flag' | 'bounce_remove' | 'keep';
|
|
4359
4365
|
severity_rules?: BodyguardSeverityRule[];
|
|
4360
4366
|
}
|
|
4361
|
-
export interface
|
|
4367
|
+
export interface LabelResponse {
|
|
4362
4368
|
name: string;
|
|
4363
4369
|
harm_labels?: string[];
|
|
4364
4370
|
phrase_list_ids?: number[];
|
|
@@ -4388,7 +4394,7 @@ export interface LayoutSettingsResponse {
|
|
|
4388
4394
|
detect_orientation?: boolean;
|
|
4389
4395
|
options?: Record<string, any>;
|
|
4390
4396
|
}
|
|
4391
|
-
export interface
|
|
4397
|
+
export interface LimitInfoResponse {
|
|
4392
4398
|
limit: number;
|
|
4393
4399
|
remaining: number;
|
|
4394
4400
|
reset: number;
|
|
@@ -4485,7 +4491,7 @@ export interface ListTranscriptionsResponse {
|
|
|
4485
4491
|
duration: string;
|
|
4486
4492
|
transcriptions: CallTranscription[];
|
|
4487
4493
|
}
|
|
4488
|
-
export interface
|
|
4494
|
+
export interface LocationResponse {
|
|
4489
4495
|
continent_code: string;
|
|
4490
4496
|
country_iso_code: string;
|
|
4491
4497
|
subdivision_iso_code: string;
|
|
@@ -4520,7 +4526,7 @@ export interface MarkReadResponse {
|
|
|
4520
4526
|
duration: string;
|
|
4521
4527
|
event?: MessageReadEvent;
|
|
4522
4528
|
}
|
|
4523
|
-
export interface
|
|
4529
|
+
export interface MarkReviewedRequestPayload {
|
|
4524
4530
|
content_to_mark_as_reviewed_limit?: number;
|
|
4525
4531
|
decision_reason?: string;
|
|
4526
4532
|
disable_marking_content_as_reviewed?: boolean;
|
|
@@ -4532,24 +4538,43 @@ export interface MarkUnreadRequest {
|
|
|
4532
4538
|
user_id?: string;
|
|
4533
4539
|
user?: UserRequest;
|
|
4534
4540
|
}
|
|
4541
|
+
export interface MaxStreakChangedEvent {
|
|
4542
|
+
created_at: Date;
|
|
4543
|
+
custom: Record<string, any>;
|
|
4544
|
+
type: string;
|
|
4545
|
+
received_at?: Date;
|
|
4546
|
+
}
|
|
4535
4547
|
export interface MemberAddedEvent {
|
|
4536
|
-
channel_id: string;
|
|
4537
|
-
channel_type: string;
|
|
4538
|
-
cid: string;
|
|
4539
4548
|
created_at: Date;
|
|
4549
|
+
channel: ChannelResponse;
|
|
4550
|
+
custom: Record<string, any>;
|
|
4551
|
+
member: ChannelMemberResponse;
|
|
4540
4552
|
type: string;
|
|
4553
|
+
channel_id?: string;
|
|
4554
|
+
channel_member_count?: number;
|
|
4555
|
+
channel_message_count?: number;
|
|
4556
|
+
channel_type?: string;
|
|
4557
|
+
cid?: string;
|
|
4558
|
+
received_at?: Date;
|
|
4541
4559
|
team?: string;
|
|
4542
|
-
|
|
4543
|
-
user?:
|
|
4560
|
+
channel_custom?: Record<string, any>;
|
|
4561
|
+
user?: UserResponseCommonFields;
|
|
4544
4562
|
}
|
|
4545
4563
|
export interface MemberRemovedEvent {
|
|
4546
|
-
channel_id: string;
|
|
4547
|
-
channel_type: string;
|
|
4548
|
-
cid: string;
|
|
4549
4564
|
created_at: Date;
|
|
4565
|
+
channel: ChannelResponse;
|
|
4566
|
+
custom: Record<string, any>;
|
|
4567
|
+
member: ChannelMemberResponse;
|
|
4550
4568
|
type: string;
|
|
4551
|
-
|
|
4552
|
-
|
|
4569
|
+
channel_id?: string;
|
|
4570
|
+
channel_member_count?: number;
|
|
4571
|
+
channel_message_count?: number;
|
|
4572
|
+
channel_type?: string;
|
|
4573
|
+
cid?: string;
|
|
4574
|
+
received_at?: Date;
|
|
4575
|
+
team?: string;
|
|
4576
|
+
channel_custom?: Record<string, any>;
|
|
4577
|
+
user?: UserResponseCommonFields;
|
|
4553
4578
|
}
|
|
4554
4579
|
export interface MemberRequest {
|
|
4555
4580
|
user_id: string;
|
|
@@ -4566,14 +4591,20 @@ export interface MemberResponse {
|
|
|
4566
4591
|
role?: string;
|
|
4567
4592
|
}
|
|
4568
4593
|
export interface MemberUpdatedEvent {
|
|
4569
|
-
channel_id: string;
|
|
4570
|
-
channel_type: string;
|
|
4571
|
-
cid: string;
|
|
4572
4594
|
created_at: Date;
|
|
4595
|
+
channel: ChannelResponse;
|
|
4596
|
+
custom: Record<string, any>;
|
|
4597
|
+
member: ChannelMemberResponse;
|
|
4573
4598
|
type: string;
|
|
4599
|
+
channel_id?: string;
|
|
4600
|
+
channel_member_count?: number;
|
|
4601
|
+
channel_message_count?: number;
|
|
4602
|
+
channel_type?: string;
|
|
4603
|
+
cid?: string;
|
|
4604
|
+
received_at?: Date;
|
|
4574
4605
|
team?: string;
|
|
4575
|
-
|
|
4576
|
-
user?:
|
|
4606
|
+
channel_custom?: Record<string, any>;
|
|
4607
|
+
user?: UserResponseCommonFields;
|
|
4577
4608
|
}
|
|
4578
4609
|
export interface MembersResponse {
|
|
4579
4610
|
duration: string;
|
|
@@ -4589,57 +4620,15 @@ export interface MembershipLevelResponse {
|
|
|
4589
4620
|
description?: string;
|
|
4590
4621
|
custom?: Record<string, any>;
|
|
4591
4622
|
}
|
|
4592
|
-
export interface Message {
|
|
4593
|
-
cid: string;
|
|
4594
|
-
created_at: Date;
|
|
4595
|
-
deleted_reply_count: number;
|
|
4596
|
-
html: string;
|
|
4597
|
-
id: string;
|
|
4598
|
-
pinned: boolean;
|
|
4599
|
-
reply_count: number;
|
|
4600
|
-
shadowed: boolean;
|
|
4601
|
-
silent: boolean;
|
|
4602
|
-
text: string;
|
|
4603
|
-
type: string;
|
|
4604
|
-
updated_at: Date;
|
|
4605
|
-
attachments: Attachment[];
|
|
4606
|
-
latest_reactions: Reaction[];
|
|
4607
|
-
mentioned_users: User[];
|
|
4608
|
-
own_reactions: Reaction[];
|
|
4609
|
-
restricted_visibility: string[];
|
|
4610
|
-
custom: Record<string, any>;
|
|
4611
|
-
reaction_counts: Record<string, number>;
|
|
4612
|
-
reaction_groups: Record<string, ReactionGroupResponse>;
|
|
4613
|
-
reaction_scores: Record<string, number>;
|
|
4614
|
-
before_message_send_failed?: boolean;
|
|
4615
|
-
command?: string;
|
|
4616
|
-
deleted_at?: Date;
|
|
4617
|
-
deleted_for_me?: boolean;
|
|
4618
|
-
message_text_updated_at?: Date;
|
|
4619
|
-
mml?: string;
|
|
4620
|
-
parent_id?: string;
|
|
4621
|
-
pin_expires?: Date;
|
|
4622
|
-
pinned_at?: Date;
|
|
4623
|
-
poll_id?: string;
|
|
4624
|
-
quoted_message_id?: string;
|
|
4625
|
-
show_in_channel?: boolean;
|
|
4626
|
-
thread_participants?: User[];
|
|
4627
|
-
i18n?: Record<string, string>;
|
|
4628
|
-
image_labels?: Record<string, string[]>;
|
|
4629
|
-
member?: ChannelMember;
|
|
4630
|
-
moderation?: ModerationV2Response;
|
|
4631
|
-
pinned_by?: User;
|
|
4632
|
-
poll?: Poll;
|
|
4633
|
-
quoted_message?: Message;
|
|
4634
|
-
reminder?: MessageReminder;
|
|
4635
|
-
shared_location?: SharedLocation;
|
|
4636
|
-
user?: User;
|
|
4637
|
-
}
|
|
4638
4623
|
export interface MessageActionRequest {
|
|
4639
4624
|
form_data: Record<string, string>;
|
|
4640
4625
|
user_id?: string;
|
|
4641
4626
|
user?: UserRequest;
|
|
4642
4627
|
}
|
|
4628
|
+
export interface MessageActionResponse {
|
|
4629
|
+
duration: string;
|
|
4630
|
+
message?: MessageResponse;
|
|
4631
|
+
}
|
|
4643
4632
|
export interface MessageChangeSet {
|
|
4644
4633
|
attachments: boolean;
|
|
4645
4634
|
custom: boolean;
|
|
@@ -4652,17 +4641,22 @@ export interface MessageChangeSet {
|
|
|
4652
4641
|
text: boolean;
|
|
4653
4642
|
}
|
|
4654
4643
|
export interface MessageDeletedEvent {
|
|
4655
|
-
channel_id: string;
|
|
4656
|
-
channel_type: string;
|
|
4657
|
-
cid: string;
|
|
4658
4644
|
created_at: Date;
|
|
4659
4645
|
hard_delete: boolean;
|
|
4646
|
+
message_id: string;
|
|
4647
|
+
custom: Record<string, any>;
|
|
4648
|
+
message: MessageResponse;
|
|
4660
4649
|
type: string;
|
|
4650
|
+
channel_id?: string;
|
|
4651
|
+
channel_member_count?: number;
|
|
4652
|
+
channel_message_count?: number;
|
|
4653
|
+
channel_type?: string;
|
|
4654
|
+
cid?: string;
|
|
4661
4655
|
deleted_for_me?: boolean;
|
|
4656
|
+
received_at?: Date;
|
|
4662
4657
|
team?: string;
|
|
4663
|
-
|
|
4664
|
-
|
|
4665
|
-
user?: User;
|
|
4658
|
+
channel_custom?: Record<string, any>;
|
|
4659
|
+
user?: UserResponseCommonFields;
|
|
4666
4660
|
}
|
|
4667
4661
|
export interface MessageFlagResponse {
|
|
4668
4662
|
created_at: Date;
|
|
@@ -4673,21 +4667,32 @@ export interface MessageFlagResponse {
|
|
|
4673
4667
|
rejected_at?: Date;
|
|
4674
4668
|
reviewed_at?: Date;
|
|
4675
4669
|
custom?: Record<string, any>;
|
|
4676
|
-
details?:
|
|
4677
|
-
message?:
|
|
4678
|
-
moderation_feedback?:
|
|
4670
|
+
details?: FlagDetailsResponse;
|
|
4671
|
+
message?: MessageResponse;
|
|
4672
|
+
moderation_feedback?: FlagFeedbackResponse;
|
|
4679
4673
|
moderation_result?: MessageModerationResult;
|
|
4680
4674
|
reviewed_by?: UserResponse;
|
|
4681
4675
|
user?: UserResponse;
|
|
4682
4676
|
}
|
|
4683
4677
|
export interface MessageFlaggedEvent {
|
|
4684
|
-
cid: string;
|
|
4685
4678
|
created_at: Date;
|
|
4679
|
+
message_id: string;
|
|
4680
|
+
message: MessageResponse;
|
|
4686
4681
|
type: string;
|
|
4687
|
-
|
|
4688
|
-
|
|
4689
|
-
|
|
4690
|
-
|
|
4682
|
+
channel_id?: string;
|
|
4683
|
+
channel_member_count?: number;
|
|
4684
|
+
channel_message_count?: number;
|
|
4685
|
+
channel_type?: string;
|
|
4686
|
+
cid?: string;
|
|
4687
|
+
reason?: string;
|
|
4688
|
+
received_at?: Date;
|
|
4689
|
+
team?: string;
|
|
4690
|
+
total_flags?: number;
|
|
4691
|
+
channel_custom?: Record<string, any>;
|
|
4692
|
+
custom?: Record<string, any>;
|
|
4693
|
+
details?: MessageModerationResult;
|
|
4694
|
+
flag?: FlagResponse;
|
|
4695
|
+
user?: UserResponseCommonFields;
|
|
4691
4696
|
}
|
|
4692
4697
|
export interface MessageHistoryEntryResponse {
|
|
4693
4698
|
is_deleted: boolean;
|
|
@@ -4712,16 +4717,27 @@ export interface MessageModerationResult {
|
|
|
4712
4717
|
moderation_thresholds?: Thresholds;
|
|
4713
4718
|
}
|
|
4714
4719
|
export interface MessageNewEvent {
|
|
4715
|
-
channel_id: string;
|
|
4716
|
-
channel_type: string;
|
|
4717
|
-
cid: string;
|
|
4718
4720
|
created_at: Date;
|
|
4721
|
+
message_id: string;
|
|
4719
4722
|
watcher_count: number;
|
|
4723
|
+
custom: Record<string, any>;
|
|
4724
|
+
message: MessageResponse;
|
|
4720
4725
|
type: string;
|
|
4726
|
+
channel_id?: string;
|
|
4727
|
+
channel_member_count?: number;
|
|
4728
|
+
channel_message_count?: number;
|
|
4729
|
+
channel_type?: string;
|
|
4730
|
+
cid?: string;
|
|
4731
|
+
parent_author?: string;
|
|
4732
|
+
received_at?: Date;
|
|
4721
4733
|
team?: string;
|
|
4722
|
-
|
|
4723
|
-
|
|
4724
|
-
|
|
4734
|
+
total_unread_count?: number;
|
|
4735
|
+
unread_channels?: number;
|
|
4736
|
+
unread_count?: number;
|
|
4737
|
+
thread_participants?: UserResponseCommonFields[];
|
|
4738
|
+
channel?: ChannelResponse;
|
|
4739
|
+
channel_custom?: Record<string, any>;
|
|
4740
|
+
user?: UserResponseCommonFields;
|
|
4725
4741
|
}
|
|
4726
4742
|
export interface MessageOptions {
|
|
4727
4743
|
include_thread_participants?: boolean;
|
|
@@ -4752,21 +4768,10 @@ export interface MessageReadEvent {
|
|
|
4752
4768
|
thread?: ThreadResponse;
|
|
4753
4769
|
user?: UserResponseCommonFields;
|
|
4754
4770
|
}
|
|
4755
|
-
export interface MessageReminder {
|
|
4756
|
-
channel_cid: string;
|
|
4757
|
-
created_at: Date;
|
|
4758
|
-
message_id: string;
|
|
4759
|
-
task_id: string;
|
|
4760
|
-
updated_at: Date;
|
|
4761
|
-
user_id: string;
|
|
4762
|
-
remind_at?: Date;
|
|
4763
|
-
channel?: Channel;
|
|
4764
|
-
message?: Message;
|
|
4765
|
-
user?: User;
|
|
4766
|
-
}
|
|
4767
4771
|
export interface MessageRequest {
|
|
4768
4772
|
html?: string;
|
|
4769
4773
|
id?: string;
|
|
4774
|
+
mentioned_channel?: boolean;
|
|
4770
4775
|
mml?: string;
|
|
4771
4776
|
parent_id?: string;
|
|
4772
4777
|
pin_expires?: Date;
|
|
@@ -4792,12 +4797,13 @@ export interface MessageResponse {
|
|
|
4792
4797
|
deleted_reply_count: number;
|
|
4793
4798
|
html: string;
|
|
4794
4799
|
id: string;
|
|
4800
|
+
mentioned_channel: boolean;
|
|
4795
4801
|
pinned: boolean;
|
|
4796
4802
|
reply_count: number;
|
|
4797
4803
|
shadowed: boolean;
|
|
4798
4804
|
silent: boolean;
|
|
4799
4805
|
text: string;
|
|
4800
|
-
type:
|
|
4806
|
+
type: string;
|
|
4801
4807
|
updated_at: Date;
|
|
4802
4808
|
attachments: Attachment[];
|
|
4803
4809
|
latest_reactions: ReactionResponse[];
|
|
@@ -4836,38 +4842,50 @@ export interface MessageStatsResponse {
|
|
|
4836
4842
|
count_over_time?: CountByMinuteResponse[];
|
|
4837
4843
|
}
|
|
4838
4844
|
export interface MessageUnblockedEvent {
|
|
4839
|
-
cid: string;
|
|
4840
4845
|
created_at: Date;
|
|
4846
|
+
message_id: string;
|
|
4847
|
+
custom: Record<string, any>;
|
|
4848
|
+
message: MessageResponse;
|
|
4841
4849
|
type: string;
|
|
4842
|
-
|
|
4843
|
-
|
|
4844
|
-
user?:
|
|
4850
|
+
cid?: string;
|
|
4851
|
+
received_at?: Date;
|
|
4852
|
+
user?: UserResponseCommonFields;
|
|
4845
4853
|
}
|
|
4846
4854
|
export interface MessageUndeletedEvent {
|
|
4847
|
-
channel_id: string;
|
|
4848
|
-
channel_type: string;
|
|
4849
|
-
cid: string;
|
|
4850
4855
|
created_at: Date;
|
|
4856
|
+
message_id: string;
|
|
4857
|
+
custom: Record<string, any>;
|
|
4858
|
+
message: MessageResponse;
|
|
4851
4859
|
type: string;
|
|
4860
|
+
channel_id?: string;
|
|
4861
|
+
channel_member_count?: number;
|
|
4862
|
+
channel_message_count?: number;
|
|
4863
|
+
channel_type?: string;
|
|
4864
|
+
cid?: string;
|
|
4865
|
+
received_at?: Date;
|
|
4852
4866
|
team?: string;
|
|
4853
|
-
|
|
4854
|
-
message?: Message;
|
|
4855
|
-
user?: User;
|
|
4867
|
+
channel_custom?: Record<string, any>;
|
|
4856
4868
|
}
|
|
4857
4869
|
export interface MessageUpdate {
|
|
4858
4870
|
old_text?: string;
|
|
4859
4871
|
change_set?: MessageChangeSet;
|
|
4860
4872
|
}
|
|
4861
4873
|
export interface MessageUpdatedEvent {
|
|
4862
|
-
channel_id: string;
|
|
4863
|
-
channel_type: string;
|
|
4864
|
-
cid: string;
|
|
4865
4874
|
created_at: Date;
|
|
4875
|
+
message_id: string;
|
|
4876
|
+
custom: Record<string, any>;
|
|
4877
|
+
message: MessageResponse;
|
|
4866
4878
|
type: string;
|
|
4879
|
+
channel_id?: string;
|
|
4880
|
+
channel_member_count?: number;
|
|
4881
|
+
channel_message_count?: number;
|
|
4882
|
+
channel_type?: string;
|
|
4883
|
+
cid?: string;
|
|
4884
|
+
received_at?: Date;
|
|
4867
4885
|
team?: string;
|
|
4868
|
-
|
|
4869
|
-
|
|
4870
|
-
user?:
|
|
4886
|
+
channel_custom?: Record<string, any>;
|
|
4887
|
+
message_update?: MessageUpdate;
|
|
4888
|
+
user?: UserResponseCommonFields;
|
|
4871
4889
|
}
|
|
4872
4890
|
export interface MessageWithChannelResponse {
|
|
4873
4891
|
cid: string;
|
|
@@ -4875,12 +4893,13 @@ export interface MessageWithChannelResponse {
|
|
|
4875
4893
|
deleted_reply_count: number;
|
|
4876
4894
|
html: string;
|
|
4877
4895
|
id: string;
|
|
4896
|
+
mentioned_channel: boolean;
|
|
4878
4897
|
pinned: boolean;
|
|
4879
4898
|
reply_count: number;
|
|
4880
4899
|
shadowed: boolean;
|
|
4881
4900
|
silent: boolean;
|
|
4882
4901
|
text: string;
|
|
4883
|
-
type:
|
|
4902
|
+
type: string;
|
|
4884
4903
|
updated_at: Date;
|
|
4885
4904
|
attachments: Attachment[];
|
|
4886
4905
|
latest_reactions: ReactionResponse[];
|
|
@@ -4928,13 +4947,16 @@ export interface MetricThreshold {
|
|
|
4928
4947
|
value_unit?: string;
|
|
4929
4948
|
window_seconds?: number;
|
|
4930
4949
|
}
|
|
4931
|
-
export interface
|
|
4950
|
+
export interface MetricTimeSeries {
|
|
4951
|
+
data_points?: number[][];
|
|
4952
|
+
}
|
|
4953
|
+
export interface ModerationActionConfigResponse {
|
|
4932
4954
|
action: string;
|
|
4933
4955
|
description: string;
|
|
4934
4956
|
entity_type: string;
|
|
4935
4957
|
icon: string;
|
|
4936
4958
|
order: number;
|
|
4937
|
-
custom
|
|
4959
|
+
custom?: Record<string, any>;
|
|
4938
4960
|
}
|
|
4939
4961
|
export interface ModerationCheckCompletedEvent {
|
|
4940
4962
|
created_at: Date;
|
|
@@ -4977,6 +4999,8 @@ export interface ModerationCustomActionEvent {
|
|
|
4977
4999
|
message?: MessageResponse;
|
|
4978
5000
|
}
|
|
4979
5001
|
export interface ModerationDashboardPreferences {
|
|
5002
|
+
async_review_queue_upsert?: boolean;
|
|
5003
|
+
disable_audit_logs?: boolean;
|
|
4980
5004
|
disable_flagging_reviewed_entity?: boolean;
|
|
4981
5005
|
flag_user_on_flagged_content?: boolean;
|
|
4982
5006
|
media_queue_blur_enabled?: boolean;
|
|
@@ -4996,16 +5020,17 @@ export interface ModerationFlagResponse {
|
|
|
4996
5020
|
review_queue_item_id?: string;
|
|
4997
5021
|
labels?: string[];
|
|
4998
5022
|
custom?: Record<string, any>;
|
|
4999
|
-
moderation_payload?:
|
|
5023
|
+
moderation_payload?: ModerationPayloadResponse;
|
|
5000
5024
|
review_queue_item?: ReviewQueueItemResponse;
|
|
5001
5025
|
user?: UserResponse;
|
|
5002
5026
|
}
|
|
5003
5027
|
export interface ModerationFlaggedEvent {
|
|
5028
|
+
content_type: string;
|
|
5004
5029
|
created_at: Date;
|
|
5030
|
+
object_id: string;
|
|
5031
|
+
custom: Record<string, any>;
|
|
5005
5032
|
type: string;
|
|
5006
|
-
|
|
5007
|
-
object_id?: string;
|
|
5008
|
-
user?: User;
|
|
5033
|
+
received_at?: Date;
|
|
5009
5034
|
}
|
|
5010
5035
|
export interface ModerationMarkReviewedEvent {
|
|
5011
5036
|
created_at: Date;
|
|
@@ -5021,6 +5046,18 @@ export interface ModerationPayload {
|
|
|
5021
5046
|
videos?: string[];
|
|
5022
5047
|
custom?: Record<string, any>;
|
|
5023
5048
|
}
|
|
5049
|
+
export interface ModerationPayloadRequest {
|
|
5050
|
+
images?: string[];
|
|
5051
|
+
texts?: string[];
|
|
5052
|
+
videos?: string[];
|
|
5053
|
+
custom?: Record<string, any>;
|
|
5054
|
+
}
|
|
5055
|
+
export interface ModerationPayloadResponse {
|
|
5056
|
+
images?: string[];
|
|
5057
|
+
texts?: string[];
|
|
5058
|
+
videos?: string[];
|
|
5059
|
+
custom?: Record<string, any>;
|
|
5060
|
+
}
|
|
5024
5061
|
export interface ModerationResponse {
|
|
5025
5062
|
action: string;
|
|
5026
5063
|
explicit: number;
|
|
@@ -5062,7 +5099,7 @@ export interface MuteChannelResponse {
|
|
|
5062
5099
|
duration: string;
|
|
5063
5100
|
channel_mutes?: ChannelMute[];
|
|
5064
5101
|
channel_mute?: ChannelMute;
|
|
5065
|
-
own_user?:
|
|
5102
|
+
own_user?: OwnUserResponse;
|
|
5066
5103
|
}
|
|
5067
5104
|
export interface MuteRequest {
|
|
5068
5105
|
target_ids: string[];
|
|
@@ -5072,9 +5109,9 @@ export interface MuteRequest {
|
|
|
5072
5109
|
}
|
|
5073
5110
|
export interface MuteResponse {
|
|
5074
5111
|
duration: string;
|
|
5075
|
-
mutes?:
|
|
5112
|
+
mutes?: UserMuteResponse[];
|
|
5076
5113
|
non_existing_users?: string[];
|
|
5077
|
-
own_user?:
|
|
5114
|
+
own_user?: OwnUserResponse;
|
|
5078
5115
|
}
|
|
5079
5116
|
export interface MuteUsersRequest {
|
|
5080
5117
|
audio?: boolean;
|
|
@@ -5125,24 +5162,29 @@ export interface NotificationFeedUpdatedEvent {
|
|
|
5125
5162
|
user?: UserResponseCommonFields;
|
|
5126
5163
|
}
|
|
5127
5164
|
export interface NotificationMarkUnreadEvent {
|
|
5128
|
-
channel_id: string;
|
|
5129
|
-
channel_member_count: number;
|
|
5130
|
-
channel_type: string;
|
|
5131
|
-
cid: string;
|
|
5132
5165
|
created_at: Date;
|
|
5133
|
-
|
|
5134
|
-
last_read_at: Date;
|
|
5135
|
-
total_unread_count: number;
|
|
5136
|
-
unread_channels: number;
|
|
5137
|
-
unread_count: number;
|
|
5138
|
-
unread_messages: number;
|
|
5139
|
-
unread_threads: number;
|
|
5166
|
+
custom: Record<string, any>;
|
|
5140
5167
|
type: string;
|
|
5168
|
+
channel_id?: string;
|
|
5169
|
+
channel_member_count?: number;
|
|
5170
|
+
channel_message_count?: number;
|
|
5171
|
+
channel_type?: string;
|
|
5172
|
+
cid?: string;
|
|
5173
|
+
first_unread_message_id?: string;
|
|
5174
|
+
last_read_at?: Date;
|
|
5141
5175
|
last_read_message_id?: string;
|
|
5176
|
+
received_at?: Date;
|
|
5142
5177
|
team?: string;
|
|
5143
5178
|
thread_id?: string;
|
|
5179
|
+
total_unread_count?: number;
|
|
5180
|
+
unread_channels?: number;
|
|
5181
|
+
unread_count?: number;
|
|
5182
|
+
unread_messages?: number;
|
|
5183
|
+
unread_thread_messages?: number;
|
|
5184
|
+
unread_threads?: number;
|
|
5144
5185
|
channel?: ChannelResponse;
|
|
5145
|
-
|
|
5186
|
+
channel_custom?: Record<string, any>;
|
|
5187
|
+
user?: UserResponseCommonFields;
|
|
5146
5188
|
}
|
|
5147
5189
|
export interface NotificationParentActivity {
|
|
5148
5190
|
id: string;
|
|
@@ -5159,6 +5201,22 @@ export interface NotificationSettings {
|
|
|
5159
5201
|
call_ring: EventNotificationSettings;
|
|
5160
5202
|
session_started: EventNotificationSettings;
|
|
5161
5203
|
}
|
|
5204
|
+
export interface NotificationSettingsRequest {
|
|
5205
|
+
enabled?: boolean;
|
|
5206
|
+
call_live_started?: EventNotificationSettingsRequest;
|
|
5207
|
+
call_missed?: EventNotificationSettingsRequest;
|
|
5208
|
+
call_notification?: EventNotificationSettingsRequest;
|
|
5209
|
+
call_ring?: EventNotificationSettingsRequest;
|
|
5210
|
+
session_started?: EventNotificationSettingsRequest;
|
|
5211
|
+
}
|
|
5212
|
+
export interface NotificationSettingsResponse {
|
|
5213
|
+
enabled: boolean;
|
|
5214
|
+
call_live_started: EventNotificationSettingsResponse;
|
|
5215
|
+
call_missed: EventNotificationSettingsResponse;
|
|
5216
|
+
call_notification: EventNotificationSettingsResponse;
|
|
5217
|
+
call_ring: EventNotificationSettingsResponse;
|
|
5218
|
+
session_started: EventNotificationSettingsResponse;
|
|
5219
|
+
}
|
|
5162
5220
|
export interface NotificationStatusResponse {
|
|
5163
5221
|
unread: number;
|
|
5164
5222
|
unseen: number;
|
|
@@ -5177,6 +5235,28 @@ export interface NotificationTarget {
|
|
|
5177
5235
|
comment?: NotificationComment;
|
|
5178
5236
|
parent_activity?: NotificationParentActivity;
|
|
5179
5237
|
}
|
|
5238
|
+
export interface NotificationThreadMessageNewEvent {
|
|
5239
|
+
created_at: Date;
|
|
5240
|
+
message_id: string;
|
|
5241
|
+
thread_id: string;
|
|
5242
|
+
watcher_count: number;
|
|
5243
|
+
channel: ChannelResponse;
|
|
5244
|
+
custom: Record<string, any>;
|
|
5245
|
+
message: MessageResponse;
|
|
5246
|
+
type: string;
|
|
5247
|
+
channel_id?: string;
|
|
5248
|
+
channel_member_count?: number;
|
|
5249
|
+
channel_message_count?: number;
|
|
5250
|
+
channel_type?: string;
|
|
5251
|
+
cid?: string;
|
|
5252
|
+
parent_author?: string;
|
|
5253
|
+
received_at?: Date;
|
|
5254
|
+
team?: string;
|
|
5255
|
+
unread_thread_messages?: number;
|
|
5256
|
+
unread_threads?: number;
|
|
5257
|
+
thread_participants?: UserResponseCommonFields[];
|
|
5258
|
+
channel_custom?: Record<string, any>;
|
|
5259
|
+
}
|
|
5180
5260
|
export interface NotificationTrigger {
|
|
5181
5261
|
text: string;
|
|
5182
5262
|
type: string;
|
|
@@ -5242,36 +5322,6 @@ export declare const OwnCapability: {
|
|
|
5242
5322
|
readonly UPDATE_CALL_SETTINGS: "update-call-settings";
|
|
5243
5323
|
};
|
|
5244
5324
|
export type OwnCapability = (typeof OwnCapability)[keyof typeof OwnCapability];
|
|
5245
|
-
export interface OwnUser {
|
|
5246
|
-
banned: boolean;
|
|
5247
|
-
created_at: Date;
|
|
5248
|
-
id: string;
|
|
5249
|
-
language: string;
|
|
5250
|
-
online: boolean;
|
|
5251
|
-
role: string;
|
|
5252
|
-
total_unread_count: number;
|
|
5253
|
-
unread_channels: number;
|
|
5254
|
-
unread_count: number;
|
|
5255
|
-
unread_threads: number;
|
|
5256
|
-
updated_at: Date;
|
|
5257
|
-
channel_mutes: ChannelMute[];
|
|
5258
|
-
devices: Device[];
|
|
5259
|
-
mutes: UserMute[];
|
|
5260
|
-
custom: Record<string, any>;
|
|
5261
|
-
total_unread_count_by_team: Record<string, number>;
|
|
5262
|
-
avg_response_time?: number;
|
|
5263
|
-
deactivated_at?: Date;
|
|
5264
|
-
deleted_at?: Date;
|
|
5265
|
-
invisible?: boolean;
|
|
5266
|
-
last_active?: Date;
|
|
5267
|
-
last_engaged_at?: Date;
|
|
5268
|
-
blocked_user_ids?: string[];
|
|
5269
|
-
latest_hidden_channels?: string[];
|
|
5270
|
-
teams?: string[];
|
|
5271
|
-
privacy_settings?: PrivacySettings;
|
|
5272
|
-
push_preferences?: PushPreferences;
|
|
5273
|
-
teams_role?: Record<string, string>;
|
|
5274
|
-
}
|
|
5275
5325
|
export interface OwnUserResponse {
|
|
5276
5326
|
banned: boolean;
|
|
5277
5327
|
created_at: Date;
|
|
@@ -5317,6 +5367,11 @@ export interface PaginationParams {
|
|
|
5317
5367
|
limit?: number;
|
|
5318
5368
|
offset?: number;
|
|
5319
5369
|
}
|
|
5370
|
+
export interface ParsedPredefinedFilterResponse {
|
|
5371
|
+
name: string;
|
|
5372
|
+
filter: Record<string, any>;
|
|
5373
|
+
sort?: SortParamRequest[];
|
|
5374
|
+
}
|
|
5320
5375
|
export interface ParticipantCountByMinuteResponse {
|
|
5321
5376
|
first: number;
|
|
5322
5377
|
last: number;
|
|
@@ -5397,10 +5452,10 @@ export interface PendingMessageEvent {
|
|
|
5397
5452
|
custom: Record<string, any>;
|
|
5398
5453
|
type: string;
|
|
5399
5454
|
received_at?: Date;
|
|
5400
|
-
channel?:
|
|
5401
|
-
message?:
|
|
5455
|
+
channel?: ChannelResponse;
|
|
5456
|
+
message?: MessageResponse;
|
|
5402
5457
|
metadata?: Record<string, string>;
|
|
5403
|
-
user?:
|
|
5458
|
+
user?: UserResponse;
|
|
5404
5459
|
}
|
|
5405
5460
|
export interface PendingMessageResponse {
|
|
5406
5461
|
channel?: ChannelResponse;
|
|
@@ -5417,7 +5472,7 @@ export interface Permission {
|
|
|
5417
5472
|
custom: boolean;
|
|
5418
5473
|
description: string;
|
|
5419
5474
|
id: string;
|
|
5420
|
-
level:
|
|
5475
|
+
level: string;
|
|
5421
5476
|
name: string;
|
|
5422
5477
|
owner: boolean;
|
|
5423
5478
|
same_team: boolean;
|
|
@@ -5461,44 +5516,16 @@ export interface Policy {
|
|
|
5461
5516
|
owner: boolean;
|
|
5462
5517
|
priority: number;
|
|
5463
5518
|
updated_at: Date;
|
|
5464
|
-
resources: string[];
|
|
5465
|
-
roles: string[];
|
|
5466
|
-
}
|
|
5467
|
-
export interface PolicyRequest {
|
|
5468
|
-
action: 'Deny' | 'Allow';
|
|
5469
|
-
name: string;
|
|
5470
|
-
owner: boolean;
|
|
5471
|
-
priority: number;
|
|
5472
|
-
resources: string[];
|
|
5473
|
-
roles: string[];
|
|
5474
|
-
}
|
|
5475
|
-
export interface Poll {
|
|
5476
|
-
allow_answers: boolean;
|
|
5477
|
-
allow_user_suggested_options: boolean;
|
|
5478
|
-
answers_count: number;
|
|
5479
|
-
created_at: Date;
|
|
5480
|
-
created_by_id: string;
|
|
5481
|
-
description: string;
|
|
5482
|
-
enforce_unique_vote: boolean;
|
|
5483
|
-
id: string;
|
|
5484
|
-
name: string;
|
|
5485
|
-
updated_at: Date;
|
|
5486
|
-
vote_count: number;
|
|
5487
|
-
latest_answers: PollVote[];
|
|
5488
|
-
options: PollOption[];
|
|
5489
|
-
own_votes: PollVote[];
|
|
5490
|
-
custom: Record<string, any>;
|
|
5491
|
-
latest_votes_by_option: Record<string, PollVote[]>;
|
|
5492
|
-
vote_counts_by_option: Record<string, number>;
|
|
5493
|
-
is_closed?: boolean;
|
|
5494
|
-
max_votes_allowed?: number;
|
|
5495
|
-
voting_visibility?: string;
|
|
5496
|
-
created_by?: User;
|
|
5519
|
+
resources: string[];
|
|
5520
|
+
roles: string[];
|
|
5497
5521
|
}
|
|
5498
|
-
export interface
|
|
5499
|
-
|
|
5500
|
-
|
|
5501
|
-
|
|
5522
|
+
export interface PolicyRequest {
|
|
5523
|
+
action: 'Deny' | 'Allow';
|
|
5524
|
+
name: string;
|
|
5525
|
+
owner: boolean;
|
|
5526
|
+
priority: number;
|
|
5527
|
+
resources: string[];
|
|
5528
|
+
roles: string[];
|
|
5502
5529
|
}
|
|
5503
5530
|
export interface PollOptionInput {
|
|
5504
5531
|
text?: string;
|
|
@@ -5545,17 +5572,6 @@ export interface PollResponseData {
|
|
|
5545
5572
|
max_votes_allowed?: number;
|
|
5546
5573
|
created_by?: UserResponse;
|
|
5547
5574
|
}
|
|
5548
|
-
export interface PollVote {
|
|
5549
|
-
created_at: Date;
|
|
5550
|
-
id: string;
|
|
5551
|
-
option_id: string;
|
|
5552
|
-
poll_id: string;
|
|
5553
|
-
updated_at: Date;
|
|
5554
|
-
answer_text?: string;
|
|
5555
|
-
is_answer?: boolean;
|
|
5556
|
-
user_id?: string;
|
|
5557
|
-
user?: User;
|
|
5558
|
-
}
|
|
5559
5575
|
export interface PollVoteResponse {
|
|
5560
5576
|
duration: string;
|
|
5561
5577
|
poll?: PollResponseData;
|
|
@@ -5578,11 +5594,6 @@ export interface PollVotesResponse {
|
|
|
5578
5594
|
next?: string;
|
|
5579
5595
|
prev?: string;
|
|
5580
5596
|
}
|
|
5581
|
-
export interface PrivacySettings {
|
|
5582
|
-
delivery_receipts?: DeliveryReceipts;
|
|
5583
|
-
read_receipts?: ReadReceipts;
|
|
5584
|
-
typing_indicators?: TypingIndicators;
|
|
5585
|
-
}
|
|
5586
5597
|
export interface PrivacySettingsResponse {
|
|
5587
5598
|
delivery_receipts?: DeliveryReceiptsResponse;
|
|
5588
5599
|
read_receipts?: ReadReceiptsResponse;
|
|
@@ -5594,6 +5605,15 @@ export interface PublishedTrackFlags {
|
|
|
5594
5605
|
screenshare_audio: boolean;
|
|
5595
5606
|
video: boolean;
|
|
5596
5607
|
}
|
|
5608
|
+
export interface PublishedTrackMetrics {
|
|
5609
|
+
codec?: string;
|
|
5610
|
+
track_id?: string;
|
|
5611
|
+
track_type?: string;
|
|
5612
|
+
warnings?: SessionWarningResponse[];
|
|
5613
|
+
bitrate?: MetricTimeSeries;
|
|
5614
|
+
framerate?: MetricTimeSeries;
|
|
5615
|
+
resolution?: ResolutionMetricsTimeSeries;
|
|
5616
|
+
}
|
|
5597
5617
|
export interface PublisherAllMetrics {
|
|
5598
5618
|
audio?: PublisherAudioMetrics;
|
|
5599
5619
|
rtt_ms?: ActiveCallsLatencyStats;
|
|
@@ -5641,20 +5661,13 @@ export interface PushNotificationSettingsResponse {
|
|
|
5641
5661
|
export interface PushPreferenceInput {
|
|
5642
5662
|
call_level?: 'all' | 'none' | 'default';
|
|
5643
5663
|
channel_cid?: string;
|
|
5644
|
-
chat_level?: 'all' | 'mentions' | 'none' | 'default';
|
|
5664
|
+
chat_level?: 'all' | 'mentions' | 'direct_mentions' | 'all_mentions' | 'none' | 'default';
|
|
5645
5665
|
disabled_until?: Date;
|
|
5646
5666
|
feeds_level?: 'all' | 'none' | 'default';
|
|
5647
5667
|
remove_disable?: boolean;
|
|
5648
5668
|
user_id?: string;
|
|
5649
5669
|
feeds_preferences?: FeedsPreferences;
|
|
5650
5670
|
}
|
|
5651
|
-
export interface PushPreferences {
|
|
5652
|
-
call_level?: string;
|
|
5653
|
-
chat_level?: string;
|
|
5654
|
-
disabled_until?: Date;
|
|
5655
|
-
feeds_level?: string;
|
|
5656
|
-
feeds_preferences?: FeedsPreferences;
|
|
5657
|
-
}
|
|
5658
5671
|
export interface PushPreferencesResponse {
|
|
5659
5672
|
call_level?: string;
|
|
5660
5673
|
chat_level?: string;
|
|
@@ -5692,6 +5705,32 @@ export interface PushProvider {
|
|
|
5692
5705
|
xiaomi_package_name?: string;
|
|
5693
5706
|
push_templates?: PushTemplate[];
|
|
5694
5707
|
}
|
|
5708
|
+
export interface PushProviderRequest {
|
|
5709
|
+
name: string;
|
|
5710
|
+
apn_auth_key?: string;
|
|
5711
|
+
apn_auth_type?: string;
|
|
5712
|
+
apn_development?: boolean;
|
|
5713
|
+
apn_host?: string;
|
|
5714
|
+
apn_key_id?: string;
|
|
5715
|
+
apn_notification_template?: string;
|
|
5716
|
+
apn_p12_cert?: string;
|
|
5717
|
+
apn_team_id?: string;
|
|
5718
|
+
apn_topic?: string;
|
|
5719
|
+
description?: string;
|
|
5720
|
+
disabled_at?: Date;
|
|
5721
|
+
disabled_reason?: string;
|
|
5722
|
+
firebase_apn_template?: string;
|
|
5723
|
+
firebase_credentials?: string;
|
|
5724
|
+
firebase_data_template?: string;
|
|
5725
|
+
firebase_host?: string;
|
|
5726
|
+
firebase_notification_template?: string;
|
|
5727
|
+
firebase_server_key?: string;
|
|
5728
|
+
huawei_app_id?: string;
|
|
5729
|
+
huawei_app_secret?: string;
|
|
5730
|
+
type?: string;
|
|
5731
|
+
xiaomi_app_secret?: string;
|
|
5732
|
+
xiaomi_package_name?: string;
|
|
5733
|
+
}
|
|
5695
5734
|
export interface PushProviderResponse {
|
|
5696
5735
|
created_at: Date;
|
|
5697
5736
|
name: string;
|
|
@@ -5729,6 +5768,14 @@ export interface PushTemplate {
|
|
|
5729
5768
|
updated_at: Date;
|
|
5730
5769
|
template?: string;
|
|
5731
5770
|
}
|
|
5771
|
+
export interface PushTemplateResponse {
|
|
5772
|
+
created_at: Date;
|
|
5773
|
+
enable_push: boolean;
|
|
5774
|
+
event_type: string;
|
|
5775
|
+
push_provider_internal_id: string;
|
|
5776
|
+
updated_at: Date;
|
|
5777
|
+
template?: string;
|
|
5778
|
+
}
|
|
5732
5779
|
export interface QualityScoreReport {
|
|
5733
5780
|
histogram: ReportByHistogramBucket[];
|
|
5734
5781
|
}
|
|
@@ -5736,6 +5783,7 @@ export interface QualityScoreReportResponse {
|
|
|
5736
5783
|
daily: DailyAggregateQualityScoreReportResponse[];
|
|
5737
5784
|
}
|
|
5738
5785
|
export interface QueryActivitiesRequest {
|
|
5786
|
+
include_expired_activities?: boolean;
|
|
5739
5787
|
include_private_activities?: boolean;
|
|
5740
5788
|
limit?: number;
|
|
5741
5789
|
next?: string;
|
|
@@ -5966,6 +6014,7 @@ export interface QueryChannelsRequest {
|
|
|
5966
6014
|
export interface QueryChannelsResponse {
|
|
5967
6015
|
duration: string;
|
|
5968
6016
|
channels: ChannelStateResponseFields[];
|
|
6017
|
+
predefined_filter?: ParsedPredefinedFilterResponse;
|
|
5969
6018
|
}
|
|
5970
6019
|
export interface QueryCommentReactionsRequest {
|
|
5971
6020
|
limit?: number;
|
|
@@ -6025,7 +6074,7 @@ export interface QueryFeedModerationTemplate {
|
|
|
6025
6074
|
created_at: Date;
|
|
6026
6075
|
name: string;
|
|
6027
6076
|
updated_at: Date;
|
|
6028
|
-
config?:
|
|
6077
|
+
config?: FeedsModerationTemplateConfigPayload;
|
|
6029
6078
|
}
|
|
6030
6079
|
export interface QueryFeedModerationTemplatesResponse {
|
|
6031
6080
|
duration: string;
|
|
@@ -6150,7 +6199,7 @@ export interface QueryModerationFlagsRequest {
|
|
|
6150
6199
|
limit?: number;
|
|
6151
6200
|
next?: string;
|
|
6152
6201
|
prev?: string;
|
|
6153
|
-
sort?:
|
|
6202
|
+
sort?: SortParamRequest[];
|
|
6154
6203
|
filter?: Record<string, any>;
|
|
6155
6204
|
}
|
|
6156
6205
|
export interface QueryModerationFlagsResponse {
|
|
@@ -6190,6 +6239,19 @@ export interface QueryModerationRulesResponse {
|
|
|
6190
6239
|
next?: string;
|
|
6191
6240
|
prev?: string;
|
|
6192
6241
|
}
|
|
6242
|
+
export interface QueryPinnedActivitiesRequest {
|
|
6243
|
+
limit?: number;
|
|
6244
|
+
next?: string;
|
|
6245
|
+
prev?: string;
|
|
6246
|
+
sort?: SortParamRequest[];
|
|
6247
|
+
filter?: Record<string, any>;
|
|
6248
|
+
}
|
|
6249
|
+
export interface QueryPinnedActivitiesResponse {
|
|
6250
|
+
duration: string;
|
|
6251
|
+
pinned_activities: ActivityPinResponse[];
|
|
6252
|
+
next?: string;
|
|
6253
|
+
prev?: string;
|
|
6254
|
+
}
|
|
6193
6255
|
export interface QueryPollVotesRequest {
|
|
6194
6256
|
limit?: number;
|
|
6195
6257
|
next?: string;
|
|
@@ -6256,7 +6318,7 @@ export interface QueryReviewQueueRequest {
|
|
|
6256
6318
|
export interface QueryReviewQueueResponse {
|
|
6257
6319
|
duration: string;
|
|
6258
6320
|
items: ReviewQueueItemResponse[];
|
|
6259
|
-
action_config: Record<string,
|
|
6321
|
+
action_config: Record<string, ModerationActionConfigResponse[]>;
|
|
6260
6322
|
stats: Record<string, any>;
|
|
6261
6323
|
next?: string;
|
|
6262
6324
|
prev?: string;
|
|
@@ -6383,26 +6445,42 @@ export interface RawRecordingSettingsResponse {
|
|
|
6383
6445
|
mode: 'available' | 'disabled' | 'auto-on';
|
|
6384
6446
|
}
|
|
6385
6447
|
export interface Reaction {
|
|
6448
|
+
activity_id: string;
|
|
6386
6449
|
created_at: Date;
|
|
6387
|
-
|
|
6388
|
-
score: number;
|
|
6389
|
-
type: string;
|
|
6450
|
+
kind: string;
|
|
6390
6451
|
updated_at: Date;
|
|
6391
|
-
|
|
6392
|
-
|
|
6452
|
+
user_id: string;
|
|
6453
|
+
deleted_at?: Date;
|
|
6454
|
+
id?: string;
|
|
6455
|
+
parent?: string;
|
|
6456
|
+
score?: number;
|
|
6457
|
+
target_feeds?: string[];
|
|
6458
|
+
children_counts?: Record<string, any>;
|
|
6459
|
+
data?: Record<string, any>;
|
|
6460
|
+
latest_children?: Record<string, Reaction[]>;
|
|
6461
|
+
moderation?: Record<string, any>;
|
|
6462
|
+
own_children?: Record<string, Reaction[]>;
|
|
6463
|
+
target_feeds_extra_data?: Record<string, any>;
|
|
6393
6464
|
user?: User;
|
|
6394
6465
|
}
|
|
6395
6466
|
export interface ReactionDeletedEvent {
|
|
6396
|
-
channel_id: string;
|
|
6397
|
-
channel_type: string;
|
|
6398
|
-
cid: string;
|
|
6399
6467
|
created_at: Date;
|
|
6468
|
+
channel: ChannelResponse;
|
|
6469
|
+
custom: Record<string, any>;
|
|
6400
6470
|
type: string;
|
|
6471
|
+
channel_id?: string;
|
|
6472
|
+
channel_member_count?: number;
|
|
6473
|
+
channel_message_count?: number;
|
|
6474
|
+
channel_type?: string;
|
|
6475
|
+
cid?: string;
|
|
6476
|
+
message_id?: string;
|
|
6477
|
+
received_at?: Date;
|
|
6401
6478
|
team?: string;
|
|
6402
|
-
thread_participants?:
|
|
6403
|
-
|
|
6404
|
-
|
|
6405
|
-
|
|
6479
|
+
thread_participants?: UserResponseCommonFields[];
|
|
6480
|
+
channel_custom?: Record<string, any>;
|
|
6481
|
+
message?: MessageResponse;
|
|
6482
|
+
reaction?: ReactionResponse;
|
|
6483
|
+
user?: UserResponseCommonFields;
|
|
6406
6484
|
}
|
|
6407
6485
|
export interface ReactionGroupResponse {
|
|
6408
6486
|
count: number;
|
|
@@ -6411,16 +6489,23 @@ export interface ReactionGroupResponse {
|
|
|
6411
6489
|
sum_scores: number;
|
|
6412
6490
|
}
|
|
6413
6491
|
export interface ReactionNewEvent {
|
|
6414
|
-
channel_id: string;
|
|
6415
|
-
channel_type: string;
|
|
6416
|
-
cid: string;
|
|
6417
6492
|
created_at: Date;
|
|
6493
|
+
channel: ChannelResponse;
|
|
6494
|
+
custom: Record<string, any>;
|
|
6418
6495
|
type: string;
|
|
6496
|
+
channel_id?: string;
|
|
6497
|
+
channel_member_count?: number;
|
|
6498
|
+
channel_message_count?: number;
|
|
6499
|
+
channel_type?: string;
|
|
6500
|
+
cid?: string;
|
|
6501
|
+
message_id?: string;
|
|
6502
|
+
received_at?: Date;
|
|
6419
6503
|
team?: string;
|
|
6420
|
-
thread_participants?:
|
|
6421
|
-
|
|
6422
|
-
|
|
6423
|
-
|
|
6504
|
+
thread_participants?: UserResponseCommonFields[];
|
|
6505
|
+
channel_custom?: Record<string, any>;
|
|
6506
|
+
message?: MessageResponse;
|
|
6507
|
+
reaction?: ReactionResponse;
|
|
6508
|
+
user?: UserResponseCommonFields;
|
|
6424
6509
|
}
|
|
6425
6510
|
export interface ReactionRequest {
|
|
6426
6511
|
type: string;
|
|
@@ -6442,15 +6527,22 @@ export interface ReactionResponse {
|
|
|
6442
6527
|
user: UserResponse;
|
|
6443
6528
|
}
|
|
6444
6529
|
export interface ReactionUpdatedEvent {
|
|
6445
|
-
channel_id: string;
|
|
6446
|
-
channel_type: string;
|
|
6447
|
-
cid: string;
|
|
6448
6530
|
created_at: Date;
|
|
6449
|
-
|
|
6450
|
-
|
|
6531
|
+
message_id: string;
|
|
6532
|
+
channel: ChannelResponse;
|
|
6533
|
+
custom: Record<string, any>;
|
|
6534
|
+
message: MessageResponse;
|
|
6451
6535
|
type: string;
|
|
6536
|
+
channel_id?: string;
|
|
6537
|
+
channel_member_count?: number;
|
|
6538
|
+
channel_message_count?: number;
|
|
6539
|
+
channel_type?: string;
|
|
6540
|
+
cid?: string;
|
|
6541
|
+
received_at?: Date;
|
|
6452
6542
|
team?: string;
|
|
6453
|
-
|
|
6543
|
+
channel_custom?: Record<string, any>;
|
|
6544
|
+
reaction?: ReactionResponse;
|
|
6545
|
+
user?: UserResponseCommonFields;
|
|
6454
6546
|
}
|
|
6455
6547
|
export interface ReactivateUserRequest {
|
|
6456
6548
|
created_by_id?: string;
|
|
@@ -6475,9 +6567,6 @@ export interface ReadCollectionsResponse {
|
|
|
6475
6567
|
duration: string;
|
|
6476
6568
|
collections: CollectionResponse[];
|
|
6477
6569
|
}
|
|
6478
|
-
export interface ReadReceipts {
|
|
6479
|
-
enabled?: boolean;
|
|
6480
|
-
}
|
|
6481
6570
|
export interface ReadReceiptsResponse {
|
|
6482
6571
|
enabled?: boolean;
|
|
6483
6572
|
}
|
|
@@ -6507,7 +6596,7 @@ export interface RecordSettingsResponse {
|
|
|
6507
6596
|
quality: string;
|
|
6508
6597
|
layout: LayoutSettingsResponse;
|
|
6509
6598
|
}
|
|
6510
|
-
export interface
|
|
6599
|
+
export interface RejectAppealRequestPayload {
|
|
6511
6600
|
decision_reason: string;
|
|
6512
6601
|
}
|
|
6513
6602
|
export interface RejectFeedMemberInviteRequest {
|
|
@@ -6599,10 +6688,14 @@ export interface ReportResponse {
|
|
|
6599
6688
|
participants: ParticipantReportResponse;
|
|
6600
6689
|
user_ratings: UserRatingReportResponse;
|
|
6601
6690
|
}
|
|
6691
|
+
export interface ResolutionMetricsTimeSeries {
|
|
6692
|
+
height?: MetricTimeSeries;
|
|
6693
|
+
width?: MetricTimeSeries;
|
|
6694
|
+
}
|
|
6602
6695
|
export interface ResolveSipInboundRequest {
|
|
6603
6696
|
sip_caller_number: string;
|
|
6604
6697
|
sip_trunk_number: string;
|
|
6605
|
-
challenge:
|
|
6698
|
+
challenge: SIPChallengeRequest;
|
|
6606
6699
|
routing_number?: string;
|
|
6607
6700
|
sip_headers?: Record<string, string>;
|
|
6608
6701
|
}
|
|
@@ -6615,7 +6708,7 @@ export interface ResolveSipInboundResponse {
|
|
|
6615
6708
|
export interface Response {
|
|
6616
6709
|
duration: string;
|
|
6617
6710
|
}
|
|
6618
|
-
export interface
|
|
6711
|
+
export interface RestoreActionRequestPayload {
|
|
6619
6712
|
decision_reason?: string;
|
|
6620
6713
|
}
|
|
6621
6714
|
export interface RestoreActivityRequest {
|
|
@@ -6652,7 +6745,7 @@ export interface ReviewQueueItemResponse {
|
|
|
6652
6745
|
status: string;
|
|
6653
6746
|
updated_at: Date;
|
|
6654
6747
|
actions: ActionLogResponse[];
|
|
6655
|
-
bans:
|
|
6748
|
+
bans: BanInfoResponse[];
|
|
6656
6749
|
flags: ModerationFlagResponse[];
|
|
6657
6750
|
languages: string[];
|
|
6658
6751
|
completed_at?: Date;
|
|
@@ -6670,7 +6763,7 @@ export interface ReviewQueueItemResponse {
|
|
|
6670
6763
|
feeds_v3_activity?: ActivityResponse;
|
|
6671
6764
|
feeds_v3_comment?: CommentResponse;
|
|
6672
6765
|
message?: MessageResponse;
|
|
6673
|
-
moderation_payload?:
|
|
6766
|
+
moderation_payload?: ModerationPayloadResponse;
|
|
6674
6767
|
reaction?: Reaction;
|
|
6675
6768
|
}
|
|
6676
6769
|
export interface ReviewQueueItemUpdatedEvent {
|
|
@@ -6767,8 +6860,8 @@ export interface SDKUsageReportResponse {
|
|
|
6767
6860
|
export interface SFULocationResponse {
|
|
6768
6861
|
datacenter: string;
|
|
6769
6862
|
id: string;
|
|
6770
|
-
coordinates:
|
|
6771
|
-
location:
|
|
6863
|
+
coordinates: CoordinatesResponse;
|
|
6864
|
+
location: LocationResponse;
|
|
6772
6865
|
count?: number;
|
|
6773
6866
|
}
|
|
6774
6867
|
export interface SIPCallConfigsRequest {
|
|
@@ -6785,7 +6878,7 @@ export interface SIPCallerConfigsResponse {
|
|
|
6785
6878
|
id: string;
|
|
6786
6879
|
custom_data: Record<string, any>;
|
|
6787
6880
|
}
|
|
6788
|
-
export interface
|
|
6881
|
+
export interface SIPChallengeRequest {
|
|
6789
6882
|
a1?: string;
|
|
6790
6883
|
algorithm?: string;
|
|
6791
6884
|
charset?: string;
|
|
@@ -6919,6 +7012,7 @@ export interface SearchResultMessage {
|
|
|
6919
7012
|
deleted_reply_count: number;
|
|
6920
7013
|
html: string;
|
|
6921
7014
|
id: string;
|
|
7015
|
+
mentioned_channel: boolean;
|
|
6922
7016
|
pinned: boolean;
|
|
6923
7017
|
reply_count: number;
|
|
6924
7018
|
shadowed: boolean;
|
|
@@ -7051,6 +7145,13 @@ export interface SendReactionResponse {
|
|
|
7051
7145
|
export interface SendUserCustomEventRequest {
|
|
7052
7146
|
event: UserCustomEventRequest;
|
|
7053
7147
|
}
|
|
7148
|
+
export interface SessionClient {
|
|
7149
|
+
ip?: string;
|
|
7150
|
+
name?: string;
|
|
7151
|
+
network_type?: string;
|
|
7152
|
+
version?: string;
|
|
7153
|
+
location?: CallStatsLocation;
|
|
7154
|
+
}
|
|
7054
7155
|
export interface SessionSettings {
|
|
7055
7156
|
inactivity_timeout_seconds: number;
|
|
7056
7157
|
}
|
|
@@ -7060,7 +7161,12 @@ export interface SessionSettingsRequest {
|
|
|
7060
7161
|
export interface SessionSettingsResponse {
|
|
7061
7162
|
inactivity_timeout_seconds: number;
|
|
7062
7163
|
}
|
|
7063
|
-
export interface
|
|
7164
|
+
export interface SessionWarningResponse {
|
|
7165
|
+
code: string;
|
|
7166
|
+
warning: string;
|
|
7167
|
+
time?: Date;
|
|
7168
|
+
}
|
|
7169
|
+
export interface ShadowBlockActionRequestPayload {
|
|
7064
7170
|
reason?: string;
|
|
7065
7171
|
}
|
|
7066
7172
|
export interface SharedLocation {
|
|
@@ -7113,6 +7219,7 @@ export interface SingleFollowResponse {
|
|
|
7113
7219
|
notification_created?: boolean;
|
|
7114
7220
|
}
|
|
7115
7221
|
export interface SipInboundCredentials {
|
|
7222
|
+
api_key: string;
|
|
7116
7223
|
call_id: string;
|
|
7117
7224
|
call_type: string;
|
|
7118
7225
|
token: string;
|
|
@@ -7120,15 +7227,10 @@ export interface SipInboundCredentials {
|
|
|
7120
7227
|
call_custom_data: Record<string, any>;
|
|
7121
7228
|
user_custom_data: Record<string, any>;
|
|
7122
7229
|
}
|
|
7123
|
-
export interface SortParam {
|
|
7124
|
-
direction?: number;
|
|
7125
|
-
field?: string;
|
|
7126
|
-
type?: string;
|
|
7127
|
-
}
|
|
7128
7230
|
export interface SortParamRequest {
|
|
7129
7231
|
direction?: number;
|
|
7130
7232
|
field?: string;
|
|
7131
|
-
type?:
|
|
7233
|
+
type?: string;
|
|
7132
7234
|
}
|
|
7133
7235
|
export interface SpeechSegmentConfig {
|
|
7134
7236
|
max_speech_caption_ms?: number;
|
|
@@ -7253,24 +7355,25 @@ export interface StoriesFeedUpdatedEvent {
|
|
|
7253
7355
|
user?: UserResponseCommonFields;
|
|
7254
7356
|
}
|
|
7255
7357
|
export interface SubmitActionRequest {
|
|
7256
|
-
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';
|
|
7358
|
+
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';
|
|
7257
7359
|
appeal_id?: string;
|
|
7258
7360
|
item_id?: string;
|
|
7259
7361
|
user_id?: string;
|
|
7260
|
-
ban?:
|
|
7261
|
-
block?:
|
|
7262
|
-
custom?:
|
|
7263
|
-
delete_activity?:
|
|
7264
|
-
delete_comment?:
|
|
7265
|
-
delete_message?:
|
|
7266
|
-
delete_reaction?:
|
|
7267
|
-
delete_user?:
|
|
7268
|
-
|
|
7269
|
-
|
|
7270
|
-
|
|
7271
|
-
|
|
7272
|
-
|
|
7273
|
-
|
|
7362
|
+
ban?: BanActionRequestPayload;
|
|
7363
|
+
block?: BlockActionRequestPayload;
|
|
7364
|
+
custom?: CustomActionRequestPayload;
|
|
7365
|
+
delete_activity?: DeleteActivityRequestPayload;
|
|
7366
|
+
delete_comment?: DeleteCommentRequestPayload;
|
|
7367
|
+
delete_message?: DeleteMessageRequestPayload;
|
|
7368
|
+
delete_reaction?: DeleteReactionRequestPayload;
|
|
7369
|
+
delete_user?: DeleteUserRequestPayload;
|
|
7370
|
+
flag?: FlagRequest;
|
|
7371
|
+
mark_reviewed?: MarkReviewedRequestPayload;
|
|
7372
|
+
reject_appeal?: RejectAppealRequestPayload;
|
|
7373
|
+
restore?: RestoreActionRequestPayload;
|
|
7374
|
+
shadow_block?: ShadowBlockActionRequestPayload;
|
|
7375
|
+
unban?: UnbanActionRequestPayload;
|
|
7376
|
+
unblock?: UnblockActionRequestPayload;
|
|
7274
7377
|
user?: UserRequest;
|
|
7275
7378
|
}
|
|
7276
7379
|
export interface SubmitActionResponse {
|
|
@@ -7376,13 +7479,14 @@ export interface ThreadStateResponse {
|
|
|
7376
7479
|
parent_message?: MessageResponse;
|
|
7377
7480
|
}
|
|
7378
7481
|
export interface ThreadUpdatedEvent {
|
|
7379
|
-
channel_id: string;
|
|
7380
|
-
channel_type: string;
|
|
7381
|
-
cid: string;
|
|
7382
7482
|
created_at: Date;
|
|
7483
|
+
custom: Record<string, any>;
|
|
7383
7484
|
type: string;
|
|
7485
|
+
channel_id?: string;
|
|
7486
|
+
channel_type?: string;
|
|
7487
|
+
cid?: string;
|
|
7488
|
+
received_at?: Date;
|
|
7384
7489
|
thread?: ThreadResponse;
|
|
7385
|
-
user?: User;
|
|
7386
7490
|
}
|
|
7387
7491
|
export interface ThreadedCommentResponse {
|
|
7388
7492
|
confidence_score: number;
|
|
@@ -7411,7 +7515,7 @@ export interface ThreadedCommentResponse {
|
|
|
7411
7515
|
custom?: Record<string, any>;
|
|
7412
7516
|
meta?: RepliesMeta;
|
|
7413
7517
|
moderation?: ModerationV2Response;
|
|
7414
|
-
reaction_groups?: Record<string,
|
|
7518
|
+
reaction_groups?: Record<string, FeedsReactionGroupResponse>;
|
|
7415
7519
|
}
|
|
7416
7520
|
export interface Thresholds {
|
|
7417
7521
|
explicit?: LabelThresholds;
|
|
@@ -7478,13 +7582,11 @@ export interface TruncateChannelResponse {
|
|
|
7478
7582
|
channel?: ChannelResponse;
|
|
7479
7583
|
message?: MessageResponse;
|
|
7480
7584
|
}
|
|
7481
|
-
export interface TypingIndicators {
|
|
7482
|
-
enabled?: boolean;
|
|
7483
|
-
}
|
|
7484
7585
|
export interface TypingIndicatorsResponse {
|
|
7485
7586
|
enabled?: boolean;
|
|
7486
7587
|
}
|
|
7487
|
-
export interface
|
|
7588
|
+
export interface UnbanActionRequestPayload {
|
|
7589
|
+
channel_cid?: string;
|
|
7488
7590
|
decision_reason?: string;
|
|
7489
7591
|
}
|
|
7490
7592
|
export interface UnbanRequest {
|
|
@@ -7494,7 +7596,7 @@ export interface UnbanRequest {
|
|
|
7494
7596
|
export interface UnbanResponse {
|
|
7495
7597
|
duration: string;
|
|
7496
7598
|
}
|
|
7497
|
-
export interface
|
|
7599
|
+
export interface UnblockActionRequestPayload {
|
|
7498
7600
|
decision_reason?: string;
|
|
7499
7601
|
}
|
|
7500
7602
|
export interface UnblockUserRequest {
|
|
@@ -7588,7 +7690,22 @@ export interface UnreadCountsThread {
|
|
|
7588
7690
|
parent_message_id: string;
|
|
7589
7691
|
unread_count: number;
|
|
7590
7692
|
}
|
|
7693
|
+
export interface UpdateActivitiesPartialBatchRequest {
|
|
7694
|
+
changes: UpdateActivityPartialChangeRequest[];
|
|
7695
|
+
}
|
|
7696
|
+
export interface UpdateActivitiesPartialBatchResponse {
|
|
7697
|
+
duration: string;
|
|
7698
|
+
activities: ActivityResponse[];
|
|
7699
|
+
}
|
|
7700
|
+
export interface UpdateActivityPartialChangeRequest {
|
|
7701
|
+
activity_id: string;
|
|
7702
|
+
copy_custom_to_notification?: boolean;
|
|
7703
|
+
handle_mention_notifications?: boolean;
|
|
7704
|
+
unset?: string[];
|
|
7705
|
+
set?: Record<string, any>;
|
|
7706
|
+
}
|
|
7591
7707
|
export interface UpdateActivityPartialRequest {
|
|
7708
|
+
copy_custom_to_notification?: boolean;
|
|
7592
7709
|
handle_mention_notifications?: boolean;
|
|
7593
7710
|
run_activity_processors?: boolean;
|
|
7594
7711
|
user_id?: string;
|
|
@@ -7601,6 +7718,7 @@ export interface UpdateActivityPartialResponse {
|
|
|
7601
7718
|
activity: ActivityResponse;
|
|
7602
7719
|
}
|
|
7603
7720
|
export interface UpdateActivityRequest {
|
|
7721
|
+
copy_custom_to_notification?: boolean;
|
|
7604
7722
|
expires_at?: Date;
|
|
7605
7723
|
handle_mention_notifications?: boolean;
|
|
7606
7724
|
poll_id?: string;
|
|
@@ -7619,6 +7737,7 @@ export interface UpdateActivityRequest {
|
|
|
7619
7737
|
mentioned_user_ids?: string[];
|
|
7620
7738
|
custom?: Record<string, any>;
|
|
7621
7739
|
location?: ActivityLocation;
|
|
7740
|
+
search_data?: Record<string, any>;
|
|
7622
7741
|
user?: UserRequest;
|
|
7623
7742
|
}
|
|
7624
7743
|
export interface UpdateActivityResponse {
|
|
@@ -7728,7 +7847,7 @@ export interface UpdateCallResponse {
|
|
|
7728
7847
|
export interface UpdateCallTypeRequest {
|
|
7729
7848
|
external_storage?: string;
|
|
7730
7849
|
grants?: Record<string, string[]>;
|
|
7731
|
-
notification_settings?:
|
|
7850
|
+
notification_settings?: NotificationSettingsRequest;
|
|
7732
7851
|
settings?: CallSettingsRequest;
|
|
7733
7852
|
}
|
|
7734
7853
|
export interface UpdateCallTypeResponse {
|
|
@@ -7737,7 +7856,7 @@ export interface UpdateCallTypeResponse {
|
|
|
7737
7856
|
name: string;
|
|
7738
7857
|
updated_at: Date;
|
|
7739
7858
|
grants: Record<string, string[]>;
|
|
7740
|
-
notification_settings:
|
|
7859
|
+
notification_settings: NotificationSettingsResponse;
|
|
7741
7860
|
settings: CallSettingsResponse;
|
|
7742
7861
|
external_storage?: string;
|
|
7743
7862
|
}
|
|
@@ -7793,6 +7912,7 @@ export interface UpdateChannelTypeRequest {
|
|
|
7793
7912
|
partition_size?: number;
|
|
7794
7913
|
partition_ttl?: string;
|
|
7795
7914
|
polls?: boolean;
|
|
7915
|
+
push_level?: 'all' | 'all_mentions' | 'mentions' | 'direct_mentions' | 'none';
|
|
7796
7916
|
push_notifications?: boolean;
|
|
7797
7917
|
quotes?: boolean;
|
|
7798
7918
|
reactions?: boolean;
|
|
@@ -7848,6 +7968,7 @@ export interface UpdateChannelTypeResponse {
|
|
|
7848
7968
|
blocklist_behavior?: 'flag' | 'block' | 'shadow_block';
|
|
7849
7969
|
partition_size?: number;
|
|
7850
7970
|
partition_ttl?: string;
|
|
7971
|
+
push_level?: 'all' | 'all_mentions' | 'mentions' | 'direct_mentions' | 'none';
|
|
7851
7972
|
allowed_flag_reasons?: string[];
|
|
7852
7973
|
blocklists?: BlockListOptions[];
|
|
7853
7974
|
automod_thresholds?: Thresholds;
|
|
@@ -7877,6 +7998,7 @@ export interface UpdateCommandResponse {
|
|
|
7877
7998
|
}
|
|
7878
7999
|
export interface UpdateCommentRequest {
|
|
7879
8000
|
comment?: string;
|
|
8001
|
+
copy_custom_to_notification?: boolean;
|
|
7880
8002
|
handle_mention_notifications?: boolean;
|
|
7881
8003
|
skip_enrich_url?: boolean;
|
|
7882
8004
|
skip_push?: boolean;
|
|
@@ -7963,6 +8085,7 @@ export interface UpdateFeedVisibilityResponse {
|
|
|
7963
8085
|
export interface UpdateFollowRequest {
|
|
7964
8086
|
source: string;
|
|
7965
8087
|
target: string;
|
|
8088
|
+
copy_custom_to_notification?: boolean;
|
|
7966
8089
|
create_notification_activity?: boolean;
|
|
7967
8090
|
follower_role?: string;
|
|
7968
8091
|
push_preference?: 'all' | 'none';
|
|
@@ -8001,6 +8124,7 @@ export interface UpdateMembershipLevelResponse {
|
|
|
8001
8124
|
}
|
|
8002
8125
|
export interface UpdateMessagePartialRequest {
|
|
8003
8126
|
skip_enrich_url?: boolean;
|
|
8127
|
+
skip_push?: boolean;
|
|
8004
8128
|
user_id?: string;
|
|
8005
8129
|
unset?: string[];
|
|
8006
8130
|
set?: Record<string, any>;
|
|
@@ -8203,25 +8327,25 @@ export interface UpsertModerationRuleResponse {
|
|
|
8203
8327
|
}
|
|
8204
8328
|
export interface UpsertModerationTemplateRequest {
|
|
8205
8329
|
name: string;
|
|
8206
|
-
config:
|
|
8330
|
+
config: FeedsModerationTemplateConfigPayload;
|
|
8207
8331
|
}
|
|
8208
8332
|
export interface UpsertModerationTemplateResponse {
|
|
8209
8333
|
created_at: Date;
|
|
8210
8334
|
duration: string;
|
|
8211
8335
|
name: string;
|
|
8212
8336
|
updated_at: Date;
|
|
8213
|
-
config?:
|
|
8337
|
+
config?: FeedsModerationTemplateConfigPayload;
|
|
8214
8338
|
}
|
|
8215
8339
|
export interface UpsertPushPreferencesRequest {
|
|
8216
8340
|
preferences: PushPreferenceInput[];
|
|
8217
8341
|
}
|
|
8218
8342
|
export interface UpsertPushPreferencesResponse {
|
|
8219
8343
|
duration: string;
|
|
8220
|
-
user_channel_preferences: Record<string, Record<string,
|
|
8221
|
-
user_preferences: Record<string,
|
|
8344
|
+
user_channel_preferences: Record<string, Record<string, ChannelPushPreferencesResponse | null>>;
|
|
8345
|
+
user_preferences: Record<string, PushPreferencesResponse>;
|
|
8222
8346
|
}
|
|
8223
8347
|
export interface UpsertPushProviderRequest {
|
|
8224
|
-
push_provider?:
|
|
8348
|
+
push_provider?: PushProviderRequest;
|
|
8225
8349
|
}
|
|
8226
8350
|
export interface UpsertPushProviderResponse {
|
|
8227
8351
|
duration: string;
|
|
@@ -8236,33 +8360,30 @@ export interface UpsertPushTemplateRequest {
|
|
|
8236
8360
|
}
|
|
8237
8361
|
export interface UpsertPushTemplateResponse {
|
|
8238
8362
|
duration: string;
|
|
8239
|
-
template?:
|
|
8363
|
+
template?: PushTemplateResponse;
|
|
8240
8364
|
}
|
|
8241
8365
|
export interface User {
|
|
8242
8366
|
id: string;
|
|
8243
|
-
|
|
8244
|
-
banned?: boolean;
|
|
8245
|
-
invisible?: boolean;
|
|
8246
|
-
language?: string;
|
|
8247
|
-
revoke_tokens_issued_before?: Date;
|
|
8248
|
-
role?: string;
|
|
8249
|
-
teams?: string[];
|
|
8250
|
-
custom?: Record<string, any>;
|
|
8251
|
-
privacy_settings?: PrivacySettings;
|
|
8252
|
-
teams_role?: Record<string, string>;
|
|
8367
|
+
data?: Record<string, any>;
|
|
8253
8368
|
}
|
|
8254
8369
|
export interface UserBannedEvent {
|
|
8255
|
-
channel_id: string;
|
|
8256
|
-
channel_type: string;
|
|
8257
|
-
cid: string;
|
|
8258
8370
|
created_at: Date;
|
|
8259
|
-
|
|
8260
|
-
|
|
8371
|
+
custom: Record<string, any>;
|
|
8372
|
+
user: UserResponseCommonFields;
|
|
8261
8373
|
type: string;
|
|
8374
|
+
channel_id?: string;
|
|
8375
|
+
channel_member_count?: number;
|
|
8376
|
+
channel_message_count?: number;
|
|
8377
|
+
channel_type?: string;
|
|
8378
|
+
cid?: string;
|
|
8262
8379
|
expiration?: Date;
|
|
8263
8380
|
reason?: string;
|
|
8381
|
+
received_at?: Date;
|
|
8382
|
+
shadow?: boolean;
|
|
8264
8383
|
team?: string;
|
|
8265
|
-
|
|
8384
|
+
total_bans?: number;
|
|
8385
|
+
channel_custom?: Record<string, any>;
|
|
8386
|
+
created_by?: UserResponseCommonFields;
|
|
8266
8387
|
}
|
|
8267
8388
|
export interface UserCreatedWithinParameters {
|
|
8268
8389
|
max_age?: string;
|
|
@@ -8277,17 +8398,24 @@ export interface UserCustomPropertyParameters {
|
|
|
8277
8398
|
}
|
|
8278
8399
|
export interface UserDeactivatedEvent {
|
|
8279
8400
|
created_at: Date;
|
|
8280
|
-
|
|
8401
|
+
custom: Record<string, any>;
|
|
8402
|
+
user: UserResponseCommonFields;
|
|
8281
8403
|
type: string;
|
|
8282
|
-
|
|
8404
|
+
received_at?: Date;
|
|
8405
|
+
created_by?: UserResponseCommonFields;
|
|
8283
8406
|
}
|
|
8284
8407
|
export interface UserDeletedEvent {
|
|
8285
8408
|
created_at: Date;
|
|
8409
|
+
delete_conversation: string;
|
|
8286
8410
|
delete_conversation_channels: boolean;
|
|
8411
|
+
delete_messages: string;
|
|
8412
|
+
delete_user: string;
|
|
8287
8413
|
hard_delete: boolean;
|
|
8288
8414
|
mark_messages_deleted: boolean;
|
|
8415
|
+
custom: Record<string, any>;
|
|
8416
|
+
user: UserResponseCommonFields;
|
|
8289
8417
|
type: string;
|
|
8290
|
-
|
|
8418
|
+
received_at?: Date;
|
|
8291
8419
|
}
|
|
8292
8420
|
export interface UserFeedbackReport {
|
|
8293
8421
|
unreported_count: number;
|
|
@@ -8309,10 +8437,13 @@ export interface UserFeedbackResponse {
|
|
|
8309
8437
|
}
|
|
8310
8438
|
export interface UserFlaggedEvent {
|
|
8311
8439
|
created_at: Date;
|
|
8440
|
+
reason: string;
|
|
8441
|
+
total_flags: number;
|
|
8442
|
+
user: UserResponseCommonFields;
|
|
8312
8443
|
type: string;
|
|
8313
|
-
|
|
8314
|
-
|
|
8315
|
-
|
|
8444
|
+
received_at?: Date;
|
|
8445
|
+
custom?: Record<string, any>;
|
|
8446
|
+
target_user?: UserResponseCommonFields;
|
|
8316
8447
|
}
|
|
8317
8448
|
export interface UserIdenticalContentCountParameters {
|
|
8318
8449
|
threshold?: number;
|
|
@@ -8333,13 +8464,6 @@ export interface UserMessagesDeletedEvent {
|
|
|
8333
8464
|
team?: string;
|
|
8334
8465
|
channel_custom?: Record<string, any>;
|
|
8335
8466
|
}
|
|
8336
|
-
export interface UserMute {
|
|
8337
|
-
created_at: Date;
|
|
8338
|
-
updated_at: Date;
|
|
8339
|
-
expires?: Date;
|
|
8340
|
-
target?: User;
|
|
8341
|
-
user?: User;
|
|
8342
|
-
}
|
|
8343
8467
|
export interface UserMuteResponse {
|
|
8344
8468
|
created_at: Date;
|
|
8345
8469
|
updated_at: Date;
|
|
@@ -8349,10 +8473,12 @@ export interface UserMuteResponse {
|
|
|
8349
8473
|
}
|
|
8350
8474
|
export interface UserMutedEvent {
|
|
8351
8475
|
created_at: Date;
|
|
8476
|
+
custom: Record<string, any>;
|
|
8477
|
+
user: UserResponseCommonFields;
|
|
8352
8478
|
type: string;
|
|
8353
|
-
|
|
8354
|
-
target_users?:
|
|
8355
|
-
|
|
8479
|
+
received_at?: Date;
|
|
8480
|
+
target_users?: UserResponseCommonFields[];
|
|
8481
|
+
target_user?: UserResponseCommonFields;
|
|
8356
8482
|
}
|
|
8357
8483
|
export interface UserRatingReportResponse {
|
|
8358
8484
|
average: number;
|
|
@@ -8360,8 +8486,11 @@ export interface UserRatingReportResponse {
|
|
|
8360
8486
|
}
|
|
8361
8487
|
export interface UserReactivatedEvent {
|
|
8362
8488
|
created_at: Date;
|
|
8489
|
+
custom: Record<string, any>;
|
|
8490
|
+
user: UserResponseCommonFields;
|
|
8363
8491
|
type: string;
|
|
8364
|
-
|
|
8492
|
+
received_at?: Date;
|
|
8493
|
+
created_by?: UserResponseCommonFields;
|
|
8365
8494
|
}
|
|
8366
8495
|
export interface UserRequest {
|
|
8367
8496
|
id: string;
|
|
@@ -8451,27 +8580,37 @@ export interface UserRuleParameters {
|
|
|
8451
8580
|
max_age?: string;
|
|
8452
8581
|
}
|
|
8453
8582
|
export interface UserUnbannedEvent {
|
|
8454
|
-
channel_id: string;
|
|
8455
|
-
channel_type: string;
|
|
8456
|
-
cid: string;
|
|
8457
8583
|
created_at: Date;
|
|
8458
|
-
|
|
8584
|
+
custom: Record<string, any>;
|
|
8585
|
+
user: UserResponseCommonFields;
|
|
8459
8586
|
type: string;
|
|
8587
|
+
channel_id?: string;
|
|
8588
|
+
channel_member_count?: number;
|
|
8589
|
+
channel_message_count?: number;
|
|
8590
|
+
channel_type?: string;
|
|
8591
|
+
cid?: string;
|
|
8592
|
+
received_at?: Date;
|
|
8593
|
+
shadow?: boolean;
|
|
8460
8594
|
team?: string;
|
|
8461
|
-
|
|
8595
|
+
channel_custom?: Record<string, any>;
|
|
8596
|
+
created_by?: UserResponseCommonFields;
|
|
8462
8597
|
}
|
|
8463
8598
|
export interface UserUnmutedEvent {
|
|
8464
8599
|
created_at: Date;
|
|
8600
|
+
custom: Record<string, any>;
|
|
8601
|
+
user: UserResponseCommonFields;
|
|
8465
8602
|
type: string;
|
|
8466
|
-
|
|
8467
|
-
target_users?:
|
|
8468
|
-
|
|
8603
|
+
received_at?: Date;
|
|
8604
|
+
target_users?: UserResponseCommonFields[];
|
|
8605
|
+
target_user?: UserResponseCommonFields;
|
|
8469
8606
|
}
|
|
8470
8607
|
export interface UserUnreadReminderEvent {
|
|
8471
8608
|
created_at: Date;
|
|
8472
|
-
channels: Record<string,
|
|
8609
|
+
channels: Record<string, ChannelMessagesResponse>;
|
|
8610
|
+
custom: Record<string, any>;
|
|
8611
|
+
user: UserResponseCommonFields;
|
|
8473
8612
|
type: string;
|
|
8474
|
-
|
|
8613
|
+
received_at?: Date;
|
|
8475
8614
|
}
|
|
8476
8615
|
export interface UserUpdatedEvent {
|
|
8477
8616
|
created_at: Date;
|
|
@@ -8513,13 +8652,19 @@ export interface VideoCallRuleConfig {
|
|
|
8513
8652
|
export interface VideoContentParameters {
|
|
8514
8653
|
harm_labels?: string[];
|
|
8515
8654
|
}
|
|
8516
|
-
export interface
|
|
8655
|
+
export interface VideoEndCallRequestPayload {
|
|
8517
8656
|
}
|
|
8518
|
-
export interface
|
|
8657
|
+
export interface VideoKickUserRequestPayload {
|
|
8519
8658
|
}
|
|
8520
8659
|
export interface VideoReactionOverTimeResponse {
|
|
8521
8660
|
by_minute?: CountByMinuteResponse[];
|
|
8522
8661
|
}
|
|
8662
|
+
export interface VideoReactionResponse {
|
|
8663
|
+
type: string;
|
|
8664
|
+
user: UserResponse;
|
|
8665
|
+
emoji_code?: string;
|
|
8666
|
+
custom?: Record<string, any>;
|
|
8667
|
+
}
|
|
8523
8668
|
export interface VideoReactionsResponse {
|
|
8524
8669
|
reaction: string;
|
|
8525
8670
|
count_over_time?: VideoReactionOverTimeResponse;
|
|
@@ -8588,9 +8733,7 @@ export interface WSEvent {
|
|
|
8588
8733
|
}
|
|
8589
8734
|
export type WebhookEvent = ({
|
|
8590
8735
|
type: '*';
|
|
8591
|
-
} &
|
|
8592
|
-
type: 'activity.marked';
|
|
8593
|
-
} & ActivityMarkedEvent) | ({
|
|
8736
|
+
} & CustomEvent) | ({
|
|
8594
8737
|
type: 'appeal.accepted';
|
|
8595
8738
|
} & AppealAcceptedEvent) | ({
|
|
8596
8739
|
type: 'appeal.created';
|
|
@@ -8613,6 +8756,8 @@ export type WebhookEvent = ({
|
|
|
8613
8756
|
} & CallCreatedEvent) | ({
|
|
8614
8757
|
type: 'call.deleted';
|
|
8615
8758
|
} & CallDeletedEvent) | ({
|
|
8759
|
+
type: 'call.dtmf';
|
|
8760
|
+
} & CallDTMFEvent) | ({
|
|
8616
8761
|
type: 'call.ended';
|
|
8617
8762
|
} & CallEndedEvent) | ({
|
|
8618
8763
|
type: 'call.frame_recording_failed';
|
|
@@ -8713,6 +8858,8 @@ export type WebhookEvent = ({
|
|
|
8713
8858
|
} & ChannelFrozenEvent) | ({
|
|
8714
8859
|
type: 'channel.hidden';
|
|
8715
8860
|
} & ChannelHiddenEvent) | ({
|
|
8861
|
+
type: 'channel.max_streak_changed';
|
|
8862
|
+
} & MaxStreakChangedEvent) | ({
|
|
8716
8863
|
type: 'channel.muted';
|
|
8717
8864
|
} & ChannelMutedEvent) | ({
|
|
8718
8865
|
type: 'channel.truncated';
|
|
@@ -8862,7 +9009,7 @@ export type WebhookEvent = ({
|
|
|
8862
9009
|
type: 'notification.reminder_due';
|
|
8863
9010
|
} & ReminderNotificationEvent) | ({
|
|
8864
9011
|
type: 'notification.thread_message_new';
|
|
8865
|
-
} &
|
|
9012
|
+
} & NotificationThreadMessageNewEvent) | ({
|
|
8866
9013
|
type: 'reaction.deleted';
|
|
8867
9014
|
} & ReactionDeletedEvent) | ({
|
|
8868
9015
|
type: 'reaction.new';
|