@stream-io/node-sdk 0.7.39 → 0.7.41

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.
@@ -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, ReactionGroupResponse>;
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 AutomodDetails {
727
+ export interface AutomodDetailsResponse {
728
728
  action?: string;
729
729
  original_message_type?: string;
730
730
  image_labels?: string[];
731
- message_details?: FlagMessageDetails;
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 Ban {
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 BlockActionRequest {
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: ReactionResponse;
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: NotificationSettings;
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
- channel?: ChannelResponse;
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
- channel?: ChannelResponse;
1837
- user?: User;
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?: ChannelMember[];
1861
- members?: ChannelMember[];
1862
- config_overrides?: ConfigOverrides;
1863
- created_by?: User;
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?: 'member' | 'moderator' | 'admin' | 'owner';
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 ChannelMessages {
1930
- messages: Message[];
1931
- channel?: ChannelResponse;
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
- channel?: ChannelResponse;
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
- channel?: ChannelResponse;
2124
- message?: Message;
2125
- user?: 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
- user?: User;
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?: 'firebase' | 'apn' | 'huawei' | 'xiaomi';
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: 'ok' | 'error';
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: 'ok' | 'error';
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, ReactionGroupResponse>;
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 ConfigOverrides {
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 Coordinates {
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?: NotificationSettings;
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: NotificationSettings;
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?: 'infinite' | 'numeric';
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 CustomActionRequest {
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?: ModerationPayload;
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 DeleteActivityRequest {
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 DeleteCommentRequest {
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 DeleteMessageRequest {
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 DeleteReactionRequest {
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 DeleteUserRequest {
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 FeedsModerationTemplateConfig {
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 FlagDetails {
3542
+ export interface FlagDetailsResponse {
3558
3543
  original_text: string;
3559
- extra: Record<string, any>;
3560
- automod?: AutomodDetails;
3544
+ automod?: AutomodDetailsResponse;
3545
+ extra?: Record<string, any>;
3561
3546
  }
3562
- export interface FlagFeedback {
3547
+ export interface FlagFeedbackResponse {
3563
3548
  created_at: Date;
3564
3549
  message_id: string;
3565
- labels: Label[];
3550
+ labels: LabelResponse[];
3566
3551
  }
3567
- export interface FlagMessageDetails {
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 GetCallReportResponse {
3750
+ export interface GetCallParticipantSessionMetricsResponse {
3760
3751
  duration: string;
3761
- session_id: string;
3762
- report: ReportResponse;
3763
- video_reactions?: VideoReactionsResponse[];
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: NotificationSettings;
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, LimitInfo>;
3895
- ios?: Record<string, LimitInfo>;
3896
- server_side?: Record<string, LimitInfo>;
3897
- web?: Record<string, LimitInfo>;
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: PushTemplate[];
4037
+ templates: PushTemplateResponse[];
4034
4038
  }
4035
4039
  export interface GetRateLimitsResponse {
4036
4040
  duration: string;
4037
- android?: Record<string, LimitInfo>;
4038
- ios?: Record<string, LimitInfo>;
4039
- server_side?: Record<string, LimitInfo>;
4040
- web?: Record<string, LimitInfo>;
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?: 'top' | 'bottom' | 'left' | 'right' | 'center';
4156
+ crop?: string;
4153
4157
  height?: number;
4154
- resize?: 'clip' | 'crop' | 'scale' | 'fill';
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 Label {
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 LimitInfo {
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 Location {
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 MarkReviewedRequest {
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
- member?: ChannelMember;
4543
- user?: 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
- member?: ChannelMember;
4552
- user?: User;
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
- member?: ChannelMember;
4576
- user?: 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
- thread_participants?: User[];
4664
- message?: Message;
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?: FlagDetails;
4677
- message?: Message;
4678
- moderation_feedback?: FlagFeedback;
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
- thread_participants?: User[];
4688
- flag?: Flag;
4689
- message?: Message;
4690
- user?: User;
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
- thread_participants?: User[];
4723
- message?: Message;
4724
- user?: User;
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: 'regular' | 'ephemeral' | 'error' | 'reply' | 'system' | 'deleted';
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
- thread_participants?: User[];
4843
- message?: Message;
4844
- user?: 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
- thread_participants?: User[];
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
- thread_participants?: User[];
4869
- message?: Message;
4870
- user?: 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: 'regular' | 'ephemeral' | 'error' | 'reply' | 'system' | 'deleted';
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 ModerationActionConfig {
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: Record<string, any>;
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?: ModerationPayload;
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
- item?: string;
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?: OwnUser;
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?: UserMute[];
5112
+ mutes?: UserMuteResponse[];
5076
5113
  non_existing_users?: string[];
5077
- own_user?: OwnUser;
5114
+ own_user?: OwnUserResponse;
5078
5115
  }
5079
5116
  export interface MuteUsersRequest {
5080
5117
  audio?: boolean;
@@ -5125,24 +5162,36 @@ 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
- first_unread_message_id: string;
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
- user?: User;
5186
+ channel_custom?: Record<string, any>;
5187
+ user?: UserResponseCommonFields;
5188
+ }
5189
+ export interface NotificationParentActivity {
5190
+ id: string;
5191
+ text?: string;
5192
+ type?: string;
5193
+ user_id?: string;
5194
+ attachments?: Attachment[];
5146
5195
  }
5147
5196
  export interface NotificationSettings {
5148
5197
  enabled: boolean;
@@ -5152,6 +5201,22 @@ export interface NotificationSettings {
5152
5201
  call_ring: EventNotificationSettings;
5153
5202
  session_started: EventNotificationSettings;
5154
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
+ }
5155
5220
  export interface NotificationStatusResponse {
5156
5221
  unread: number;
5157
5222
  unseen: number;
@@ -5168,6 +5233,29 @@ export interface NotificationTarget {
5168
5233
  user_id?: string;
5169
5234
  attachments?: Attachment[];
5170
5235
  comment?: NotificationComment;
5236
+ parent_activity?: NotificationParentActivity;
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>;
5171
5259
  }
5172
5260
  export interface NotificationTrigger {
5173
5261
  text: string;
@@ -5234,36 +5322,6 @@ export declare const OwnCapability: {
5234
5322
  readonly UPDATE_CALL_SETTINGS: "update-call-settings";
5235
5323
  };
5236
5324
  export type OwnCapability = (typeof OwnCapability)[keyof typeof OwnCapability];
5237
- export interface OwnUser {
5238
- banned: boolean;
5239
- created_at: Date;
5240
- id: string;
5241
- language: string;
5242
- online: boolean;
5243
- role: string;
5244
- total_unread_count: number;
5245
- unread_channels: number;
5246
- unread_count: number;
5247
- unread_threads: number;
5248
- updated_at: Date;
5249
- channel_mutes: ChannelMute[];
5250
- devices: Device[];
5251
- mutes: UserMute[];
5252
- custom: Record<string, any>;
5253
- total_unread_count_by_team: Record<string, number>;
5254
- avg_response_time?: number;
5255
- deactivated_at?: Date;
5256
- deleted_at?: Date;
5257
- invisible?: boolean;
5258
- last_active?: Date;
5259
- last_engaged_at?: Date;
5260
- blocked_user_ids?: string[];
5261
- latest_hidden_channels?: string[];
5262
- teams?: string[];
5263
- privacy_settings?: PrivacySettings;
5264
- push_preferences?: PushPreferences;
5265
- teams_role?: Record<string, string>;
5266
- }
5267
5325
  export interface OwnUserResponse {
5268
5326
  banned: boolean;
5269
5327
  created_at: Date;
@@ -5309,6 +5367,11 @@ export interface PaginationParams {
5309
5367
  limit?: number;
5310
5368
  offset?: number;
5311
5369
  }
5370
+ export interface ParsedPredefinedFilterResponse {
5371
+ name: string;
5372
+ filter: Record<string, any>;
5373
+ sort?: SortParamRequest[];
5374
+ }
5312
5375
  export interface ParticipantCountByMinuteResponse {
5313
5376
  first: number;
5314
5377
  last: number;
@@ -5389,10 +5452,10 @@ export interface PendingMessageEvent {
5389
5452
  custom: Record<string, any>;
5390
5453
  type: string;
5391
5454
  received_at?: Date;
5392
- channel?: Channel;
5393
- message?: Message;
5455
+ channel?: ChannelResponse;
5456
+ message?: MessageResponse;
5394
5457
  metadata?: Record<string, string>;
5395
- user?: User;
5458
+ user?: UserResponse;
5396
5459
  }
5397
5460
  export interface PendingMessageResponse {
5398
5461
  channel?: ChannelResponse;
@@ -5409,7 +5472,7 @@ export interface Permission {
5409
5472
  custom: boolean;
5410
5473
  description: string;
5411
5474
  id: string;
5412
- level: 'app' | 'channel';
5475
+ level: string;
5413
5476
  name: string;
5414
5477
  owner: boolean;
5415
5478
  same_team: boolean;
@@ -5464,34 +5527,6 @@ export interface PolicyRequest {
5464
5527
  resources: string[];
5465
5528
  roles: string[];
5466
5529
  }
5467
- export interface Poll {
5468
- allow_answers: boolean;
5469
- allow_user_suggested_options: boolean;
5470
- answers_count: number;
5471
- created_at: Date;
5472
- created_by_id: string;
5473
- description: string;
5474
- enforce_unique_vote: boolean;
5475
- id: string;
5476
- name: string;
5477
- updated_at: Date;
5478
- vote_count: number;
5479
- latest_answers: PollVote[];
5480
- options: PollOption[];
5481
- own_votes: PollVote[];
5482
- custom: Record<string, any>;
5483
- latest_votes_by_option: Record<string, PollVote[]>;
5484
- vote_counts_by_option: Record<string, number>;
5485
- is_closed?: boolean;
5486
- max_votes_allowed?: number;
5487
- voting_visibility?: string;
5488
- created_by?: User;
5489
- }
5490
- export interface PollOption {
5491
- id: string;
5492
- text: string;
5493
- custom: Record<string, any>;
5494
- }
5495
5530
  export interface PollOptionInput {
5496
5531
  text?: string;
5497
5532
  custom?: Record<string, any>;
@@ -5537,17 +5572,6 @@ export interface PollResponseData {
5537
5572
  max_votes_allowed?: number;
5538
5573
  created_by?: UserResponse;
5539
5574
  }
5540
- export interface PollVote {
5541
- created_at: Date;
5542
- id: string;
5543
- option_id: string;
5544
- poll_id: string;
5545
- updated_at: Date;
5546
- answer_text?: string;
5547
- is_answer?: boolean;
5548
- user_id?: string;
5549
- user?: User;
5550
- }
5551
5575
  export interface PollVoteResponse {
5552
5576
  duration: string;
5553
5577
  poll?: PollResponseData;
@@ -5570,11 +5594,6 @@ export interface PollVotesResponse {
5570
5594
  next?: string;
5571
5595
  prev?: string;
5572
5596
  }
5573
- export interface PrivacySettings {
5574
- delivery_receipts?: DeliveryReceipts;
5575
- read_receipts?: ReadReceipts;
5576
- typing_indicators?: TypingIndicators;
5577
- }
5578
5597
  export interface PrivacySettingsResponse {
5579
5598
  delivery_receipts?: DeliveryReceiptsResponse;
5580
5599
  read_receipts?: ReadReceiptsResponse;
@@ -5586,6 +5605,15 @@ export interface PublishedTrackFlags {
5586
5605
  screenshare_audio: boolean;
5587
5606
  video: boolean;
5588
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
+ }
5589
5617
  export interface PublisherAllMetrics {
5590
5618
  audio?: PublisherAudioMetrics;
5591
5619
  rtt_ms?: ActiveCallsLatencyStats;
@@ -5633,20 +5661,13 @@ export interface PushNotificationSettingsResponse {
5633
5661
  export interface PushPreferenceInput {
5634
5662
  call_level?: 'all' | 'none' | 'default';
5635
5663
  channel_cid?: string;
5636
- chat_level?: 'all' | 'mentions' | 'none' | 'default';
5664
+ chat_level?: 'all' | 'mentions' | 'direct_mentions' | 'all_mentions' | 'none' | 'default';
5637
5665
  disabled_until?: Date;
5638
5666
  feeds_level?: 'all' | 'none' | 'default';
5639
5667
  remove_disable?: boolean;
5640
5668
  user_id?: string;
5641
5669
  feeds_preferences?: FeedsPreferences;
5642
5670
  }
5643
- export interface PushPreferences {
5644
- call_level?: string;
5645
- chat_level?: string;
5646
- disabled_until?: Date;
5647
- feeds_level?: string;
5648
- feeds_preferences?: FeedsPreferences;
5649
- }
5650
5671
  export interface PushPreferencesResponse {
5651
5672
  call_level?: string;
5652
5673
  chat_level?: string;
@@ -5684,6 +5705,32 @@ export interface PushProvider {
5684
5705
  xiaomi_package_name?: string;
5685
5706
  push_templates?: PushTemplate[];
5686
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
+ }
5687
5734
  export interface PushProviderResponse {
5688
5735
  created_at: Date;
5689
5736
  name: string;
@@ -5721,6 +5768,14 @@ export interface PushTemplate {
5721
5768
  updated_at: Date;
5722
5769
  template?: string;
5723
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
+ }
5724
5779
  export interface QualityScoreReport {
5725
5780
  histogram: ReportByHistogramBucket[];
5726
5781
  }
@@ -5958,6 +6013,7 @@ export interface QueryChannelsRequest {
5958
6013
  export interface QueryChannelsResponse {
5959
6014
  duration: string;
5960
6015
  channels: ChannelStateResponseFields[];
6016
+ predefined_filter?: ParsedPredefinedFilterResponse;
5961
6017
  }
5962
6018
  export interface QueryCommentReactionsRequest {
5963
6019
  limit?: number;
@@ -6017,7 +6073,7 @@ export interface QueryFeedModerationTemplate {
6017
6073
  created_at: Date;
6018
6074
  name: string;
6019
6075
  updated_at: Date;
6020
- config?: FeedsModerationTemplateConfig;
6076
+ config?: FeedsModerationTemplateConfigPayload;
6021
6077
  }
6022
6078
  export interface QueryFeedModerationTemplatesResponse {
6023
6079
  duration: string;
@@ -6142,7 +6198,7 @@ export interface QueryModerationFlagsRequest {
6142
6198
  limit?: number;
6143
6199
  next?: string;
6144
6200
  prev?: string;
6145
- sort?: SortParam[];
6201
+ sort?: SortParamRequest[];
6146
6202
  filter?: Record<string, any>;
6147
6203
  }
6148
6204
  export interface QueryModerationFlagsResponse {
@@ -6248,7 +6304,7 @@ export interface QueryReviewQueueRequest {
6248
6304
  export interface QueryReviewQueueResponse {
6249
6305
  duration: string;
6250
6306
  items: ReviewQueueItemResponse[];
6251
- action_config: Record<string, ModerationActionConfig[]>;
6307
+ action_config: Record<string, ModerationActionConfigResponse[]>;
6252
6308
  stats: Record<string, any>;
6253
6309
  next?: string;
6254
6310
  prev?: string;
@@ -6375,26 +6431,42 @@ export interface RawRecordingSettingsResponse {
6375
6431
  mode: 'available' | 'disabled' | 'auto-on';
6376
6432
  }
6377
6433
  export interface Reaction {
6434
+ activity_id: string;
6378
6435
  created_at: Date;
6379
- message_id: string;
6380
- score: number;
6381
- type: string;
6436
+ kind: string;
6382
6437
  updated_at: Date;
6383
- custom: Record<string, any>;
6384
- user_id?: string;
6438
+ user_id: string;
6439
+ deleted_at?: Date;
6440
+ id?: string;
6441
+ parent?: string;
6442
+ score?: number;
6443
+ target_feeds?: string[];
6444
+ children_counts?: Record<string, any>;
6445
+ data?: Record<string, any>;
6446
+ latest_children?: Record<string, Reaction[]>;
6447
+ moderation?: Record<string, any>;
6448
+ own_children?: Record<string, Reaction[]>;
6449
+ target_feeds_extra_data?: Record<string, any>;
6385
6450
  user?: User;
6386
6451
  }
6387
6452
  export interface ReactionDeletedEvent {
6388
- channel_id: string;
6389
- channel_type: string;
6390
- cid: string;
6391
6453
  created_at: Date;
6454
+ channel: ChannelResponse;
6455
+ custom: Record<string, any>;
6392
6456
  type: string;
6457
+ channel_id?: string;
6458
+ channel_member_count?: number;
6459
+ channel_message_count?: number;
6460
+ channel_type?: string;
6461
+ cid?: string;
6462
+ message_id?: string;
6463
+ received_at?: Date;
6393
6464
  team?: string;
6394
- thread_participants?: User[];
6395
- message?: Message;
6396
- reaction?: Reaction;
6397
- user?: User;
6465
+ thread_participants?: UserResponseCommonFields[];
6466
+ channel_custom?: Record<string, any>;
6467
+ message?: MessageResponse;
6468
+ reaction?: ReactionResponse;
6469
+ user?: UserResponseCommonFields;
6398
6470
  }
6399
6471
  export interface ReactionGroupResponse {
6400
6472
  count: number;
@@ -6403,16 +6475,23 @@ export interface ReactionGroupResponse {
6403
6475
  sum_scores: number;
6404
6476
  }
6405
6477
  export interface ReactionNewEvent {
6406
- channel_id: string;
6407
- channel_type: string;
6408
- cid: string;
6409
6478
  created_at: Date;
6479
+ channel: ChannelResponse;
6480
+ custom: Record<string, any>;
6410
6481
  type: string;
6482
+ channel_id?: string;
6483
+ channel_member_count?: number;
6484
+ channel_message_count?: number;
6485
+ channel_type?: string;
6486
+ cid?: string;
6487
+ message_id?: string;
6488
+ received_at?: Date;
6411
6489
  team?: string;
6412
- thread_participants?: User[];
6413
- message?: Message;
6414
- reaction?: Reaction;
6415
- user?: User;
6490
+ thread_participants?: UserResponseCommonFields[];
6491
+ channel_custom?: Record<string, any>;
6492
+ message?: MessageResponse;
6493
+ reaction?: ReactionResponse;
6494
+ user?: UserResponseCommonFields;
6416
6495
  }
6417
6496
  export interface ReactionRequest {
6418
6497
  type: string;
@@ -6434,15 +6513,22 @@ export interface ReactionResponse {
6434
6513
  user: UserResponse;
6435
6514
  }
6436
6515
  export interface ReactionUpdatedEvent {
6437
- channel_id: string;
6438
- channel_type: string;
6439
- cid: string;
6440
6516
  created_at: Date;
6441
- message: Message;
6442
- reaction: Reaction;
6517
+ message_id: string;
6518
+ channel: ChannelResponse;
6519
+ custom: Record<string, any>;
6520
+ message: MessageResponse;
6443
6521
  type: string;
6522
+ channel_id?: string;
6523
+ channel_member_count?: number;
6524
+ channel_message_count?: number;
6525
+ channel_type?: string;
6526
+ cid?: string;
6527
+ received_at?: Date;
6444
6528
  team?: string;
6445
- user?: User;
6529
+ channel_custom?: Record<string, any>;
6530
+ reaction?: ReactionResponse;
6531
+ user?: UserResponseCommonFields;
6446
6532
  }
6447
6533
  export interface ReactivateUserRequest {
6448
6534
  created_by_id?: string;
@@ -6467,9 +6553,6 @@ export interface ReadCollectionsResponse {
6467
6553
  duration: string;
6468
6554
  collections: CollectionResponse[];
6469
6555
  }
6470
- export interface ReadReceipts {
6471
- enabled?: boolean;
6472
- }
6473
6556
  export interface ReadReceiptsResponse {
6474
6557
  enabled?: boolean;
6475
6558
  }
@@ -6499,7 +6582,7 @@ export interface RecordSettingsResponse {
6499
6582
  quality: string;
6500
6583
  layout: LayoutSettingsResponse;
6501
6584
  }
6502
- export interface RejectAppealRequest {
6585
+ export interface RejectAppealRequestPayload {
6503
6586
  decision_reason: string;
6504
6587
  }
6505
6588
  export interface RejectFeedMemberInviteRequest {
@@ -6591,10 +6674,14 @@ export interface ReportResponse {
6591
6674
  participants: ParticipantReportResponse;
6592
6675
  user_ratings: UserRatingReportResponse;
6593
6676
  }
6677
+ export interface ResolutionMetricsTimeSeries {
6678
+ height?: MetricTimeSeries;
6679
+ width?: MetricTimeSeries;
6680
+ }
6594
6681
  export interface ResolveSipInboundRequest {
6595
6682
  sip_caller_number: string;
6596
6683
  sip_trunk_number: string;
6597
- challenge: SIPChallenge;
6684
+ challenge: SIPChallengeRequest;
6598
6685
  routing_number?: string;
6599
6686
  sip_headers?: Record<string, string>;
6600
6687
  }
@@ -6607,7 +6694,7 @@ export interface ResolveSipInboundResponse {
6607
6694
  export interface Response {
6608
6695
  duration: string;
6609
6696
  }
6610
- export interface RestoreActionRequest {
6697
+ export interface RestoreActionRequestPayload {
6611
6698
  decision_reason?: string;
6612
6699
  }
6613
6700
  export interface RestoreActivityRequest {
@@ -6644,7 +6731,7 @@ export interface ReviewQueueItemResponse {
6644
6731
  status: string;
6645
6732
  updated_at: Date;
6646
6733
  actions: ActionLogResponse[];
6647
- bans: Ban[];
6734
+ bans: BanInfoResponse[];
6648
6735
  flags: ModerationFlagResponse[];
6649
6736
  languages: string[];
6650
6737
  completed_at?: Date;
@@ -6662,7 +6749,7 @@ export interface ReviewQueueItemResponse {
6662
6749
  feeds_v3_activity?: ActivityResponse;
6663
6750
  feeds_v3_comment?: CommentResponse;
6664
6751
  message?: MessageResponse;
6665
- moderation_payload?: ModerationPayload;
6752
+ moderation_payload?: ModerationPayloadResponse;
6666
6753
  reaction?: Reaction;
6667
6754
  }
6668
6755
  export interface ReviewQueueItemUpdatedEvent {
@@ -6759,8 +6846,8 @@ export interface SDKUsageReportResponse {
6759
6846
  export interface SFULocationResponse {
6760
6847
  datacenter: string;
6761
6848
  id: string;
6762
- coordinates: Coordinates;
6763
- location: Location;
6849
+ coordinates: CoordinatesResponse;
6850
+ location: LocationResponse;
6764
6851
  count?: number;
6765
6852
  }
6766
6853
  export interface SIPCallConfigsRequest {
@@ -6777,7 +6864,7 @@ export interface SIPCallerConfigsResponse {
6777
6864
  id: string;
6778
6865
  custom_data: Record<string, any>;
6779
6866
  }
6780
- export interface SIPChallenge {
6867
+ export interface SIPChallengeRequest {
6781
6868
  a1?: string;
6782
6869
  algorithm?: string;
6783
6870
  charset?: string;
@@ -6911,6 +6998,7 @@ export interface SearchResultMessage {
6911
6998
  deleted_reply_count: number;
6912
6999
  html: string;
6913
7000
  id: string;
7001
+ mentioned_channel: boolean;
6914
7002
  pinned: boolean;
6915
7003
  reply_count: number;
6916
7004
  shadowed: boolean;
@@ -7043,6 +7131,13 @@ export interface SendReactionResponse {
7043
7131
  export interface SendUserCustomEventRequest {
7044
7132
  event: UserCustomEventRequest;
7045
7133
  }
7134
+ export interface SessionClient {
7135
+ ip?: string;
7136
+ name?: string;
7137
+ network_type?: string;
7138
+ version?: string;
7139
+ location?: CallStatsLocation;
7140
+ }
7046
7141
  export interface SessionSettings {
7047
7142
  inactivity_timeout_seconds: number;
7048
7143
  }
@@ -7052,7 +7147,12 @@ export interface SessionSettingsRequest {
7052
7147
  export interface SessionSettingsResponse {
7053
7148
  inactivity_timeout_seconds: number;
7054
7149
  }
7055
- export interface ShadowBlockActionRequest {
7150
+ export interface SessionWarningResponse {
7151
+ code: string;
7152
+ warning: string;
7153
+ time?: Date;
7154
+ }
7155
+ export interface ShadowBlockActionRequestPayload {
7056
7156
  reason?: string;
7057
7157
  }
7058
7158
  export interface SharedLocation {
@@ -7105,6 +7205,7 @@ export interface SingleFollowResponse {
7105
7205
  notification_created?: boolean;
7106
7206
  }
7107
7207
  export interface SipInboundCredentials {
7208
+ api_key: string;
7108
7209
  call_id: string;
7109
7210
  call_type: string;
7110
7211
  token: string;
@@ -7112,15 +7213,10 @@ export interface SipInboundCredentials {
7112
7213
  call_custom_data: Record<string, any>;
7113
7214
  user_custom_data: Record<string, any>;
7114
7215
  }
7115
- export interface SortParam {
7116
- direction?: number;
7117
- field?: string;
7118
- type?: string;
7119
- }
7120
7216
  export interface SortParamRequest {
7121
7217
  direction?: number;
7122
7218
  field?: string;
7123
- type?: '' | 'number' | 'boolean';
7219
+ type?: string;
7124
7220
  }
7125
7221
  export interface SpeechSegmentConfig {
7126
7222
  max_speech_caption_ms?: number;
@@ -7245,24 +7341,25 @@ export interface StoriesFeedUpdatedEvent {
7245
7341
  user?: UserResponseCommonFields;
7246
7342
  }
7247
7343
  export interface SubmitActionRequest {
7248
- 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';
7344
+ 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';
7249
7345
  appeal_id?: string;
7250
7346
  item_id?: string;
7251
7347
  user_id?: string;
7252
- ban?: BanActionRequest;
7253
- block?: BlockActionRequest;
7254
- custom?: CustomActionRequest;
7255
- delete_activity?: DeleteActivityRequest;
7256
- delete_comment?: DeleteCommentRequest;
7257
- delete_message?: DeleteMessageRequest;
7258
- delete_reaction?: DeleteReactionRequest;
7259
- delete_user?: DeleteUserRequest;
7260
- mark_reviewed?: MarkReviewedRequest;
7261
- reject_appeal?: RejectAppealRequest;
7262
- restore?: RestoreActionRequest;
7263
- shadow_block?: ShadowBlockActionRequest;
7264
- unban?: UnbanActionRequest;
7265
- unblock?: UnblockActionRequest;
7348
+ ban?: BanActionRequestPayload;
7349
+ block?: BlockActionRequestPayload;
7350
+ custom?: CustomActionRequestPayload;
7351
+ delete_activity?: DeleteActivityRequestPayload;
7352
+ delete_comment?: DeleteCommentRequestPayload;
7353
+ delete_message?: DeleteMessageRequestPayload;
7354
+ delete_reaction?: DeleteReactionRequestPayload;
7355
+ delete_user?: DeleteUserRequestPayload;
7356
+ flag?: FlagRequest;
7357
+ mark_reviewed?: MarkReviewedRequestPayload;
7358
+ reject_appeal?: RejectAppealRequestPayload;
7359
+ restore?: RestoreActionRequestPayload;
7360
+ shadow_block?: ShadowBlockActionRequestPayload;
7361
+ unban?: UnbanActionRequestPayload;
7362
+ unblock?: UnblockActionRequestPayload;
7266
7363
  user?: UserRequest;
7267
7364
  }
7268
7365
  export interface SubmitActionResponse {
@@ -7368,13 +7465,14 @@ export interface ThreadStateResponse {
7368
7465
  parent_message?: MessageResponse;
7369
7466
  }
7370
7467
  export interface ThreadUpdatedEvent {
7371
- channel_id: string;
7372
- channel_type: string;
7373
- cid: string;
7374
7468
  created_at: Date;
7469
+ custom: Record<string, any>;
7375
7470
  type: string;
7471
+ channel_id?: string;
7472
+ channel_type?: string;
7473
+ cid?: string;
7474
+ received_at?: Date;
7376
7475
  thread?: ThreadResponse;
7377
- user?: User;
7378
7476
  }
7379
7477
  export interface ThreadedCommentResponse {
7380
7478
  confidence_score: number;
@@ -7403,7 +7501,7 @@ export interface ThreadedCommentResponse {
7403
7501
  custom?: Record<string, any>;
7404
7502
  meta?: RepliesMeta;
7405
7503
  moderation?: ModerationV2Response;
7406
- reaction_groups?: Record<string, ReactionGroupResponse>;
7504
+ reaction_groups?: Record<string, FeedsReactionGroupResponse>;
7407
7505
  }
7408
7506
  export interface Thresholds {
7409
7507
  explicit?: LabelThresholds;
@@ -7470,13 +7568,11 @@ export interface TruncateChannelResponse {
7470
7568
  channel?: ChannelResponse;
7471
7569
  message?: MessageResponse;
7472
7570
  }
7473
- export interface TypingIndicators {
7474
- enabled?: boolean;
7475
- }
7476
7571
  export interface TypingIndicatorsResponse {
7477
7572
  enabled?: boolean;
7478
7573
  }
7479
- export interface UnbanActionRequest {
7574
+ export interface UnbanActionRequestPayload {
7575
+ channel_cid?: string;
7480
7576
  decision_reason?: string;
7481
7577
  }
7482
7578
  export interface UnbanRequest {
@@ -7486,7 +7582,7 @@ export interface UnbanRequest {
7486
7582
  export interface UnbanResponse {
7487
7583
  duration: string;
7488
7584
  }
7489
- export interface UnblockActionRequest {
7585
+ export interface UnblockActionRequestPayload {
7490
7586
  decision_reason?: string;
7491
7587
  }
7492
7588
  export interface UnblockUserRequest {
@@ -7580,7 +7676,22 @@ export interface UnreadCountsThread {
7580
7676
  parent_message_id: string;
7581
7677
  unread_count: number;
7582
7678
  }
7679
+ export interface UpdateActivitiesPartialBatchRequest {
7680
+ changes: UpdateActivityPartialChangeRequest[];
7681
+ }
7682
+ export interface UpdateActivitiesPartialBatchResponse {
7683
+ duration: string;
7684
+ activities: ActivityResponse[];
7685
+ }
7686
+ export interface UpdateActivityPartialChangeRequest {
7687
+ activity_id: string;
7688
+ copy_custom_to_notification?: boolean;
7689
+ handle_mention_notifications?: boolean;
7690
+ unset?: string[];
7691
+ set?: Record<string, any>;
7692
+ }
7583
7693
  export interface UpdateActivityPartialRequest {
7694
+ copy_custom_to_notification?: boolean;
7584
7695
  handle_mention_notifications?: boolean;
7585
7696
  run_activity_processors?: boolean;
7586
7697
  user_id?: string;
@@ -7593,6 +7704,7 @@ export interface UpdateActivityPartialResponse {
7593
7704
  activity: ActivityResponse;
7594
7705
  }
7595
7706
  export interface UpdateActivityRequest {
7707
+ copy_custom_to_notification?: boolean;
7596
7708
  expires_at?: Date;
7597
7709
  handle_mention_notifications?: boolean;
7598
7710
  poll_id?: string;
@@ -7611,6 +7723,7 @@ export interface UpdateActivityRequest {
7611
7723
  mentioned_user_ids?: string[];
7612
7724
  custom?: Record<string, any>;
7613
7725
  location?: ActivityLocation;
7726
+ search_data?: Record<string, any>;
7614
7727
  user?: UserRequest;
7615
7728
  }
7616
7729
  export interface UpdateActivityResponse {
@@ -7720,7 +7833,7 @@ export interface UpdateCallResponse {
7720
7833
  export interface UpdateCallTypeRequest {
7721
7834
  external_storage?: string;
7722
7835
  grants?: Record<string, string[]>;
7723
- notification_settings?: NotificationSettings;
7836
+ notification_settings?: NotificationSettingsRequest;
7724
7837
  settings?: CallSettingsRequest;
7725
7838
  }
7726
7839
  export interface UpdateCallTypeResponse {
@@ -7729,7 +7842,7 @@ export interface UpdateCallTypeResponse {
7729
7842
  name: string;
7730
7843
  updated_at: Date;
7731
7844
  grants: Record<string, string[]>;
7732
- notification_settings: NotificationSettings;
7845
+ notification_settings: NotificationSettingsResponse;
7733
7846
  settings: CallSettingsResponse;
7734
7847
  external_storage?: string;
7735
7848
  }
@@ -7785,6 +7898,7 @@ export interface UpdateChannelTypeRequest {
7785
7898
  partition_size?: number;
7786
7899
  partition_ttl?: string;
7787
7900
  polls?: boolean;
7901
+ push_level?: 'all' | 'all_mentions' | 'mentions' | 'direct_mentions' | 'none';
7788
7902
  push_notifications?: boolean;
7789
7903
  quotes?: boolean;
7790
7904
  reactions?: boolean;
@@ -7840,6 +7954,7 @@ export interface UpdateChannelTypeResponse {
7840
7954
  blocklist_behavior?: 'flag' | 'block' | 'shadow_block';
7841
7955
  partition_size?: number;
7842
7956
  partition_ttl?: string;
7957
+ push_level?: 'all' | 'all_mentions' | 'mentions' | 'direct_mentions' | 'none';
7843
7958
  allowed_flag_reasons?: string[];
7844
7959
  blocklists?: BlockListOptions[];
7845
7960
  automod_thresholds?: Thresholds;
@@ -7869,6 +7984,7 @@ export interface UpdateCommandResponse {
7869
7984
  }
7870
7985
  export interface UpdateCommentRequest {
7871
7986
  comment?: string;
7987
+ copy_custom_to_notification?: boolean;
7872
7988
  handle_mention_notifications?: boolean;
7873
7989
  skip_enrich_url?: boolean;
7874
7990
  skip_push?: boolean;
@@ -7955,6 +8071,7 @@ export interface UpdateFeedVisibilityResponse {
7955
8071
  export interface UpdateFollowRequest {
7956
8072
  source: string;
7957
8073
  target: string;
8074
+ copy_custom_to_notification?: boolean;
7958
8075
  create_notification_activity?: boolean;
7959
8076
  follower_role?: string;
7960
8077
  push_preference?: 'all' | 'none';
@@ -7993,6 +8110,7 @@ export interface UpdateMembershipLevelResponse {
7993
8110
  }
7994
8111
  export interface UpdateMessagePartialRequest {
7995
8112
  skip_enrich_url?: boolean;
8113
+ skip_push?: boolean;
7996
8114
  user_id?: string;
7997
8115
  unset?: string[];
7998
8116
  set?: Record<string, any>;
@@ -8195,25 +8313,25 @@ export interface UpsertModerationRuleResponse {
8195
8313
  }
8196
8314
  export interface UpsertModerationTemplateRequest {
8197
8315
  name: string;
8198
- config: FeedsModerationTemplateConfig;
8316
+ config: FeedsModerationTemplateConfigPayload;
8199
8317
  }
8200
8318
  export interface UpsertModerationTemplateResponse {
8201
8319
  created_at: Date;
8202
8320
  duration: string;
8203
8321
  name: string;
8204
8322
  updated_at: Date;
8205
- config?: FeedsModerationTemplateConfig;
8323
+ config?: FeedsModerationTemplateConfigPayload;
8206
8324
  }
8207
8325
  export interface UpsertPushPreferencesRequest {
8208
8326
  preferences: PushPreferenceInput[];
8209
8327
  }
8210
8328
  export interface UpsertPushPreferencesResponse {
8211
8329
  duration: string;
8212
- user_channel_preferences: Record<string, Record<string, ChannelPushPreferences | null>>;
8213
- user_preferences: Record<string, PushPreferences>;
8330
+ user_channel_preferences: Record<string, Record<string, ChannelPushPreferencesResponse | null>>;
8331
+ user_preferences: Record<string, PushPreferencesResponse>;
8214
8332
  }
8215
8333
  export interface UpsertPushProviderRequest {
8216
- push_provider?: PushProvider;
8334
+ push_provider?: PushProviderRequest;
8217
8335
  }
8218
8336
  export interface UpsertPushProviderResponse {
8219
8337
  duration: string;
@@ -8228,33 +8346,30 @@ export interface UpsertPushTemplateRequest {
8228
8346
  }
8229
8347
  export interface UpsertPushTemplateResponse {
8230
8348
  duration: string;
8231
- template?: PushTemplate;
8349
+ template?: PushTemplateResponse;
8232
8350
  }
8233
8351
  export interface User {
8234
8352
  id: string;
8235
- ban_expires?: Date;
8236
- banned?: boolean;
8237
- invisible?: boolean;
8238
- language?: string;
8239
- revoke_tokens_issued_before?: Date;
8240
- role?: string;
8241
- teams?: string[];
8242
- custom?: Record<string, any>;
8243
- privacy_settings?: PrivacySettings;
8244
- teams_role?: Record<string, string>;
8353
+ data?: Record<string, any>;
8245
8354
  }
8246
8355
  export interface UserBannedEvent {
8247
- channel_id: string;
8248
- channel_type: string;
8249
- cid: string;
8250
8356
  created_at: Date;
8251
- shadow: boolean;
8252
- created_by: User;
8357
+ custom: Record<string, any>;
8358
+ user: UserResponseCommonFields;
8253
8359
  type: string;
8360
+ channel_id?: string;
8361
+ channel_member_count?: number;
8362
+ channel_message_count?: number;
8363
+ channel_type?: string;
8364
+ cid?: string;
8254
8365
  expiration?: Date;
8255
8366
  reason?: string;
8367
+ received_at?: Date;
8368
+ shadow?: boolean;
8256
8369
  team?: string;
8257
- user?: User;
8370
+ total_bans?: number;
8371
+ channel_custom?: Record<string, any>;
8372
+ created_by?: UserResponseCommonFields;
8258
8373
  }
8259
8374
  export interface UserCreatedWithinParameters {
8260
8375
  max_age?: string;
@@ -8269,17 +8384,24 @@ export interface UserCustomPropertyParameters {
8269
8384
  }
8270
8385
  export interface UserDeactivatedEvent {
8271
8386
  created_at: Date;
8272
- created_by: User;
8387
+ custom: Record<string, any>;
8388
+ user: UserResponseCommonFields;
8273
8389
  type: string;
8274
- user?: User;
8390
+ received_at?: Date;
8391
+ created_by?: UserResponseCommonFields;
8275
8392
  }
8276
8393
  export interface UserDeletedEvent {
8277
8394
  created_at: Date;
8395
+ delete_conversation: string;
8278
8396
  delete_conversation_channels: boolean;
8397
+ delete_messages: string;
8398
+ delete_user: string;
8279
8399
  hard_delete: boolean;
8280
8400
  mark_messages_deleted: boolean;
8401
+ custom: Record<string, any>;
8402
+ user: UserResponseCommonFields;
8281
8403
  type: string;
8282
- user?: User;
8404
+ received_at?: Date;
8283
8405
  }
8284
8406
  export interface UserFeedbackReport {
8285
8407
  unreported_count: number;
@@ -8301,10 +8423,13 @@ export interface UserFeedbackResponse {
8301
8423
  }
8302
8424
  export interface UserFlaggedEvent {
8303
8425
  created_at: Date;
8426
+ reason: string;
8427
+ total_flags: number;
8428
+ user: UserResponseCommonFields;
8304
8429
  type: string;
8305
- target_user?: string;
8306
- target_users?: string[];
8307
- user?: User;
8430
+ received_at?: Date;
8431
+ custom?: Record<string, any>;
8432
+ target_user?: UserResponseCommonFields;
8308
8433
  }
8309
8434
  export interface UserIdenticalContentCountParameters {
8310
8435
  threshold?: number;
@@ -8325,13 +8450,6 @@ export interface UserMessagesDeletedEvent {
8325
8450
  team?: string;
8326
8451
  channel_custom?: Record<string, any>;
8327
8452
  }
8328
- export interface UserMute {
8329
- created_at: Date;
8330
- updated_at: Date;
8331
- expires?: Date;
8332
- target?: User;
8333
- user?: User;
8334
- }
8335
8453
  export interface UserMuteResponse {
8336
8454
  created_at: Date;
8337
8455
  updated_at: Date;
@@ -8341,10 +8459,12 @@ export interface UserMuteResponse {
8341
8459
  }
8342
8460
  export interface UserMutedEvent {
8343
8461
  created_at: Date;
8462
+ custom: Record<string, any>;
8463
+ user: UserResponseCommonFields;
8344
8464
  type: string;
8345
- target_user?: string;
8346
- target_users?: string[];
8347
- user?: User;
8465
+ received_at?: Date;
8466
+ target_users?: UserResponseCommonFields[];
8467
+ target_user?: UserResponseCommonFields;
8348
8468
  }
8349
8469
  export interface UserRatingReportResponse {
8350
8470
  average: number;
@@ -8352,8 +8472,11 @@ export interface UserRatingReportResponse {
8352
8472
  }
8353
8473
  export interface UserReactivatedEvent {
8354
8474
  created_at: Date;
8475
+ custom: Record<string, any>;
8476
+ user: UserResponseCommonFields;
8355
8477
  type: string;
8356
- user?: User;
8478
+ received_at?: Date;
8479
+ created_by?: UserResponseCommonFields;
8357
8480
  }
8358
8481
  export interface UserRequest {
8359
8482
  id: string;
@@ -8443,27 +8566,37 @@ export interface UserRuleParameters {
8443
8566
  max_age?: string;
8444
8567
  }
8445
8568
  export interface UserUnbannedEvent {
8446
- channel_id: string;
8447
- channel_type: string;
8448
- cid: string;
8449
8569
  created_at: Date;
8450
- shadow: boolean;
8570
+ custom: Record<string, any>;
8571
+ user: UserResponseCommonFields;
8451
8572
  type: string;
8573
+ channel_id?: string;
8574
+ channel_member_count?: number;
8575
+ channel_message_count?: number;
8576
+ channel_type?: string;
8577
+ cid?: string;
8578
+ received_at?: Date;
8579
+ shadow?: boolean;
8452
8580
  team?: string;
8453
- user?: User;
8581
+ channel_custom?: Record<string, any>;
8582
+ created_by?: UserResponseCommonFields;
8454
8583
  }
8455
8584
  export interface UserUnmutedEvent {
8456
8585
  created_at: Date;
8586
+ custom: Record<string, any>;
8587
+ user: UserResponseCommonFields;
8457
8588
  type: string;
8458
- target_user?: string;
8459
- target_users?: string[];
8460
- user?: User;
8589
+ received_at?: Date;
8590
+ target_users?: UserResponseCommonFields[];
8591
+ target_user?: UserResponseCommonFields;
8461
8592
  }
8462
8593
  export interface UserUnreadReminderEvent {
8463
8594
  created_at: Date;
8464
- channels: Record<string, ChannelMessages>;
8595
+ channels: Record<string, ChannelMessagesResponse>;
8596
+ custom: Record<string, any>;
8597
+ user: UserResponseCommonFields;
8465
8598
  type: string;
8466
- user?: User;
8599
+ received_at?: Date;
8467
8600
  }
8468
8601
  export interface UserUpdatedEvent {
8469
8602
  created_at: Date;
@@ -8505,13 +8638,19 @@ export interface VideoCallRuleConfig {
8505
8638
  export interface VideoContentParameters {
8506
8639
  harm_labels?: string[];
8507
8640
  }
8508
- export interface VideoEndCallRequest {
8641
+ export interface VideoEndCallRequestPayload {
8509
8642
  }
8510
- export interface VideoKickUserRequest {
8643
+ export interface VideoKickUserRequestPayload {
8511
8644
  }
8512
8645
  export interface VideoReactionOverTimeResponse {
8513
8646
  by_minute?: CountByMinuteResponse[];
8514
8647
  }
8648
+ export interface VideoReactionResponse {
8649
+ type: string;
8650
+ user: UserResponse;
8651
+ emoji_code?: string;
8652
+ custom?: Record<string, any>;
8653
+ }
8515
8654
  export interface VideoReactionsResponse {
8516
8655
  reaction: string;
8517
8656
  count_over_time?: VideoReactionOverTimeResponse;
@@ -8580,9 +8719,7 @@ export interface WSEvent {
8580
8719
  }
8581
8720
  export type WebhookEvent = ({
8582
8721
  type: '*';
8583
- } & AnyEvent) | ({
8584
- type: 'activity.marked';
8585
- } & ActivityMarkedEvent) | ({
8722
+ } & CustomEvent) | ({
8586
8723
  type: 'appeal.accepted';
8587
8724
  } & AppealAcceptedEvent) | ({
8588
8725
  type: 'appeal.created';
@@ -8605,6 +8742,8 @@ export type WebhookEvent = ({
8605
8742
  } & CallCreatedEvent) | ({
8606
8743
  type: 'call.deleted';
8607
8744
  } & CallDeletedEvent) | ({
8745
+ type: 'call.dtmf';
8746
+ } & CallDTMFEvent) | ({
8608
8747
  type: 'call.ended';
8609
8748
  } & CallEndedEvent) | ({
8610
8749
  type: 'call.frame_recording_failed';
@@ -8705,6 +8844,8 @@ export type WebhookEvent = ({
8705
8844
  } & ChannelFrozenEvent) | ({
8706
8845
  type: 'channel.hidden';
8707
8846
  } & ChannelHiddenEvent) | ({
8847
+ type: 'channel.max_streak_changed';
8848
+ } & MaxStreakChangedEvent) | ({
8708
8849
  type: 'channel.muted';
8709
8850
  } & ChannelMutedEvent) | ({
8710
8851
  type: 'channel.truncated';
@@ -8854,7 +8995,7 @@ export type WebhookEvent = ({
8854
8995
  type: 'notification.reminder_due';
8855
8996
  } & ReminderNotificationEvent) | ({
8856
8997
  type: 'notification.thread_message_new';
8857
- } & MessageNewEvent) | ({
8998
+ } & NotificationThreadMessageNewEvent) | ({
8858
8999
  type: 'reaction.deleted';
8859
9000
  } & ReactionDeletedEvent) | ({
8860
9001
  type: 'reaction.new';