@stream-io/node-sdk 0.7.3 → 0.7.4

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.
@@ -322,6 +322,7 @@ export interface ActivityResponse {
322
322
  edited_at?: Date;
323
323
  expires_at?: Date;
324
324
  hidden?: boolean;
325
+ is_watched?: boolean;
325
326
  text?: string;
326
327
  visibility_tag?: string;
327
328
  current_feed?: FeedResponse;
@@ -456,6 +457,7 @@ export interface AggregatedActivityResponse {
456
457
  updated_at: Date;
457
458
  user_count: number;
458
459
  user_count_truncated: boolean;
460
+ is_watched?: boolean;
459
461
  activities: ActivityResponse[];
460
462
  }
461
463
  export interface AggregationConfig {
@@ -2328,6 +2330,7 @@ export interface CreateFeedGroupRequest {
2328
2330
  notification?: NotificationConfig;
2329
2331
  push_notification?: PushNotificationConfig;
2330
2332
  ranking?: RankingConfig;
2333
+ stories?: StoriesConfig;
2331
2334
  }
2332
2335
  export interface CreateFeedGroupResponse {
2333
2336
  duration: string;
@@ -6077,6 +6080,16 @@ export interface SFUIDLastSeen {
6077
6080
  export interface SRTIngress {
6078
6081
  address: string;
6079
6082
  }
6083
+ export interface StoriesFeedUpdatedEvent {
6084
+ created_at: Date;
6085
+ fid: string;
6086
+ custom: Record<string, any>;
6087
+ type: string;
6088
+ feed_visibility?: string;
6089
+ received_at?: Date;
6090
+ aggregated_activities?: AggregatedActivityResponse[];
6091
+ user?: UserResponseCommonFields;
6092
+ }
6080
6093
  export interface STTEgressConfig {
6081
6094
  closed_captions_enabled?: boolean;
6082
6095
  language?: string;
@@ -6440,8 +6453,8 @@ export interface StopTranscriptionResponse {
6440
6453
  duration: string;
6441
6454
  }
6442
6455
  export interface StoriesConfig {
6443
- expiration_behaviour?: string;
6444
6456
  skip_watched?: boolean;
6457
+ track_watched?: boolean;
6445
6458
  }
6446
6459
  export interface SubmitActionRequest {
6447
6460
  action_type: 'mark_reviewed' | 'delete_message' | 'delete_activity' | 'delete_reaction' | 'ban' | 'custom' | 'unban' | 'restore' | 'delete_user' | 'unblock' | 'shadow_block' | 'unmask' | 'kick_user' | 'end_call';
@@ -7882,6 +7895,8 @@ export type WebhookEvent = ({
7882
7895
  } & FollowUpdatedEvent) | ({
7883
7896
  type: 'feeds.notification_feed.updated';
7884
7897
  } & NotificationFeedUpdatedEvent) | ({
7898
+ type: 'feeds.stories_feed.updated';
7899
+ } & StoriesFeedUpdatedEvent) | ({
7885
7900
  type: 'flag.updated';
7886
7901
  } & FlagUpdatedEvent) | ({
7887
7902
  type: 'member.added';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stream-io/node-sdk",
3
- "version": "0.7.3",
3
+ "version": "0.7.4",
4
4
  "description": "",
5
5
  "exports": {
6
6
  ".": {
@@ -3867,6 +3867,22 @@ decoders.StopLiveResponse = (input?: Record<string, any>) => {
3867
3867
  return decode(typeMappings, input);
3868
3868
  };
3869
3869
 
3870
+ decoders.StoriesFeedUpdatedEvent = (input?: Record<string, any>) => {
3871
+ const typeMappings: TypeMapping = {
3872
+ created_at: { type: 'DatetimeType', isSingle: true },
3873
+
3874
+ received_at: { type: 'DatetimeType', isSingle: true },
3875
+
3876
+ aggregated_activities: {
3877
+ type: 'AggregatedActivityResponse',
3878
+ isSingle: false,
3879
+ },
3880
+
3881
+ user: { type: 'UserResponseCommonFields', isSingle: true },
3882
+ };
3883
+ return decode(typeMappings, input);
3884
+ };
3885
+
3870
3886
  decoders.SubmitActionResponse = (input?: Record<string, any>) => {
3871
3887
  const typeMappings: TypeMapping = {
3872
3888
  item: { type: 'ReviewQueueItemResponse', isSingle: true },
@@ -577,6 +577,8 @@ export interface ActivityResponse {
577
577
 
578
578
  hidden?: boolean;
579
579
 
580
+ is_watched?: boolean;
581
+
580
582
  text?: string;
581
583
 
582
584
  visibility_tag?: string;
@@ -811,6 +813,8 @@ export interface AggregatedActivityResponse {
811
813
 
812
814
  user_count_truncated: boolean;
813
815
 
816
+ is_watched?: boolean;
817
+
814
818
  activities: ActivityResponse[];
815
819
  }
816
820
 
@@ -4150,6 +4154,8 @@ export interface CreateFeedGroupRequest {
4150
4154
  push_notification?: PushNotificationConfig;
4151
4155
 
4152
4156
  ranking?: RankingConfig;
4157
+
4158
+ stories?: StoriesConfig;
4153
4159
  }
4154
4160
 
4155
4161
  export interface CreateFeedGroupResponse {
@@ -10624,6 +10630,24 @@ export interface SRTIngress {
10624
10630
  address: string;
10625
10631
  }
10626
10632
 
10633
+ export interface StoriesFeedUpdatedEvent {
10634
+ created_at: Date;
10635
+
10636
+ fid: string;
10637
+
10638
+ custom: Record<string, any>;
10639
+
10640
+ type: string;
10641
+
10642
+ feed_visibility?: string;
10643
+
10644
+ received_at?: Date;
10645
+
10646
+ aggregated_activities?: AggregatedActivityResponse[];
10647
+
10648
+ user?: UserResponseCommonFields;
10649
+ }
10650
+
10627
10651
  export interface STTEgressConfig {
10628
10652
  closed_captions_enabled?: boolean;
10629
10653
 
@@ -11289,9 +11313,9 @@ export interface StopTranscriptionResponse {
11289
11313
  }
11290
11314
 
11291
11315
  export interface StoriesConfig {
11292
- expiration_behaviour?: string;
11293
-
11294
11316
  skip_watched?: boolean;
11317
+
11318
+ track_watched?: boolean;
11295
11319
  }
11296
11320
 
11297
11321
  export interface SubmitActionRequest {
@@ -13714,6 +13738,7 @@ export type WebhookEvent =
13714
13738
  | ({ type: 'feeds.follow.deleted' } & FollowDeletedEvent)
13715
13739
  | ({ type: 'feeds.follow.updated' } & FollowUpdatedEvent)
13716
13740
  | ({ type: 'feeds.notification_feed.updated' } & NotificationFeedUpdatedEvent)
13741
+ | ({ type: 'feeds.stories_feed.updated' } & StoriesFeedUpdatedEvent)
13717
13742
  | ({ type: 'flag.updated' } & FlagUpdatedEvent)
13718
13743
  | ({ type: 'member.added' } & MemberAddedEvent)
13719
13744
  | ({ type: 'member.removed' } & MemberRemovedEvent)