@stream-io/feeds-client 1.2.0 → 1.3.0

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.
@@ -8,6 +8,16 @@ export interface AIImageConfig {
8
8
  async?: boolean;
9
9
  }
10
10
 
11
+ export interface AIImageLabelDefinition {
12
+ description: string;
13
+
14
+ group: string;
15
+
16
+ key: string;
17
+
18
+ label: string;
19
+ }
20
+
11
21
  export interface AITextConfig {
12
22
  enabled: boolean;
13
23
 
@@ -59,7 +69,7 @@ export interface AWSRekognitionRule {
59
69
 
60
70
  min_confidence: number;
61
71
 
62
- subclassifications?: Record<string, boolean>;
72
+ subclassifications?: Record<string, any>;
63
73
  }
64
74
 
65
75
  export interface AcceptFeedMemberInviteRequest {}
@@ -1508,6 +1518,8 @@ export interface ChannelConfigWithInfo {
1508
1518
 
1509
1519
  automod_thresholds?: Thresholds;
1510
1520
 
1521
+ chat_preferences?: ChatPreferences;
1522
+
1511
1523
  grants?: Record<string, string[]>;
1512
1524
  }
1513
1525
 
@@ -1612,6 +1624,8 @@ export interface ChannelPushPreferencesResponse {
1612
1624
  chat_level?: string;
1613
1625
 
1614
1626
  disabled_until?: Date;
1627
+
1628
+ chat_preferences?: ChatPreferencesResponse;
1615
1629
  }
1616
1630
 
1617
1631
  export interface ChannelResponse {
@@ -1672,6 +1686,56 @@ export interface ChannelResponse {
1672
1686
  truncated_by?: UserResponse;
1673
1687
  }
1674
1688
 
1689
+ export interface ChatPreferences {
1690
+ channel_mentions?: string;
1691
+
1692
+ default_preference?: string;
1693
+
1694
+ direct_mentions?: string;
1695
+
1696
+ distinct_channel_messages?: string;
1697
+
1698
+ group_mentions?: string;
1699
+
1700
+ here_mentions?: string;
1701
+
1702
+ role_mentions?: string;
1703
+
1704
+ thread_replies?: string;
1705
+ }
1706
+
1707
+ export interface ChatPreferencesInput {
1708
+ channel_mentions?: 'all' | 'none';
1709
+
1710
+ default_preference?: 'all' | 'none';
1711
+
1712
+ direct_mentions?: 'all' | 'none';
1713
+
1714
+ group_mentions?: 'all' | 'none';
1715
+
1716
+ here_mentions?: 'all' | 'none';
1717
+
1718
+ role_mentions?: 'all' | 'none';
1719
+
1720
+ thread_replies?: 'all' | 'none';
1721
+ }
1722
+
1723
+ export interface ChatPreferencesResponse {
1724
+ channel_mentions?: string;
1725
+
1726
+ default_preference?: string;
1727
+
1728
+ direct_mentions?: string;
1729
+
1730
+ group_mentions?: string;
1731
+
1732
+ here_mentions?: string;
1733
+
1734
+ role_mentions?: string;
1735
+
1736
+ thread_replies?: string;
1737
+ }
1738
+
1675
1739
  export interface ClosedCaptionRuleParameters {
1676
1740
  threshold?: number;
1677
1741
 
@@ -1868,6 +1932,24 @@ export interface CommentResponse {
1868
1932
  reaction_groups?: Record<string, FeedsReactionGroupResponse>;
1869
1933
  }
1870
1934
 
1935
+ export interface CommentRestoredEvent {
1936
+ created_at: Date;
1937
+
1938
+ fid: string;
1939
+
1940
+ comment: CommentResponse;
1941
+
1942
+ custom: Record<string, any>;
1943
+
1944
+ type: string;
1945
+
1946
+ feed_visibility?: string;
1947
+
1948
+ received_at?: Date;
1949
+
1950
+ user?: UserResponseCommonFields;
1951
+ }
1952
+
1871
1953
  export interface CommentUpdatedEvent {
1872
1954
  created_at: Date;
1873
1955
 
@@ -1903,6 +1985,8 @@ export interface ConfigResponse {
1903
1985
 
1904
1986
  supported_video_call_harm_types: string[];
1905
1987
 
1988
+ ai_image_label_definitions?: AIImageLabelDefinition[];
1989
+
1906
1990
  ai_image_config?: AIImageConfig;
1907
1991
 
1908
1992
  ai_image_subclassifications?: Record<string, string[]>;
@@ -2953,6 +3037,8 @@ export interface FilterConfigResponse {
2953
3037
  llm_labels: string[];
2954
3038
 
2955
3039
  ai_text_labels?: string[];
3040
+
3041
+ config_keys?: string[];
2956
3042
  }
2957
3043
 
2958
3044
  export interface FlagCountRuleParameters {
@@ -4349,6 +4435,8 @@ export interface PushPreferenceInput {
4349
4435
 
4350
4436
  user_id?: string;
4351
4437
 
4438
+ chat_preferences?: ChatPreferencesInput;
4439
+
4352
4440
  feeds_preferences?: FeedsPreferences;
4353
4441
  }
4354
4442
 
@@ -4361,6 +4449,8 @@ export interface PushPreferencesResponse {
4361
4449
 
4362
4450
  feeds_level?: string;
4363
4451
 
4452
+ chat_preferences?: ChatPreferencesResponse;
4453
+
4364
4454
  feeds_preferences?: FeedsPreferencesResponse;
4365
4455
  }
4366
4456
 
@@ -4944,6 +5034,16 @@ export interface RestoreActivityResponse {
4944
5034
  activity: ActivityResponse;
4945
5035
  }
4946
5036
 
5037
+ export interface RestoreCommentRequest {}
5038
+
5039
+ export interface RestoreCommentResponse {
5040
+ duration: string;
5041
+
5042
+ activity: ActivityResponse;
5043
+
5044
+ comment: CommentResponse;
5045
+ }
5046
+
4947
5047
  export interface ReviewQueueItemResponse {
4948
5048
  ai_text_severity: string;
4949
5049
 
@@ -5021,6 +5121,8 @@ export interface RingSettingsResponse {
5021
5121
  }
5022
5122
 
5023
5123
  export interface RuleBuilderAction {
5124
+ skip_inbox?: boolean;
5125
+
5024
5126
  type?:
5025
5127
  | 'ban_user'
5026
5128
  | 'flag_user'
@@ -6389,6 +6491,7 @@ export type WSClientEvent =
6389
6491
  | ({ type: 'feeds.comment.reaction.added' } & CommentReactionAddedEvent)
6390
6492
  | ({ type: 'feeds.comment.reaction.deleted' } & CommentReactionDeletedEvent)
6391
6493
  | ({ type: 'feeds.comment.reaction.updated' } & CommentReactionUpdatedEvent)
6494
+ | ({ type: 'feeds.comment.restored' } & CommentRestoredEvent)
6392
6495
  | ({ type: 'feeds.comment.updated' } & CommentUpdatedEvent)
6393
6496
  | ({ type: 'feeds.feed.created' } & FeedCreatedEvent)
6394
6497
  | ({ type: 'feeds.feed.deleted' } & FeedDeletedEvent)
@@ -6446,6 +6549,7 @@ export type WSEvent =
6446
6549
  | ({ type: 'feeds.comment.reaction.added' } & CommentReactionAddedEvent)
6447
6550
  | ({ type: 'feeds.comment.reaction.deleted' } & CommentReactionDeletedEvent)
6448
6551
  | ({ type: 'feeds.comment.reaction.updated' } & CommentReactionUpdatedEvent)
6552
+ | ({ type: 'feeds.comment.restored' } & CommentRestoredEvent)
6449
6553
  | ({ type: 'feeds.comment.updated' } & CommentUpdatedEvent)
6450
6554
  | ({ type: 'feeds.feed.created' } & FeedCreatedEvent)
6451
6555
  | ({ type: 'feeds.feed.deleted' } & FeedDeletedEvent)