@stream-io/node-sdk 0.7.3 → 0.7.5

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;
@@ -3602,6 +3605,7 @@ export interface GetOrCreateFeedGroupRequest {
3602
3605
  notification?: NotificationConfig;
3603
3606
  push_notification?: PushNotificationConfig;
3604
3607
  ranking?: RankingConfig;
3608
+ stories?: StoriesConfig;
3605
3609
  }
3606
3610
  export interface GetOrCreateFeedGroupResponse {
3607
3611
  duration: string;
@@ -6077,6 +6081,16 @@ export interface SFUIDLastSeen {
6077
6081
  export interface SRTIngress {
6078
6082
  address: string;
6079
6083
  }
6084
+ export interface StoriesFeedUpdatedEvent {
6085
+ created_at: Date;
6086
+ fid: string;
6087
+ custom: Record<string, any>;
6088
+ type: string;
6089
+ feed_visibility?: string;
6090
+ received_at?: Date;
6091
+ aggregated_activities?: AggregatedActivityResponse[];
6092
+ user?: UserResponseCommonFields;
6093
+ }
6080
6094
  export interface STTEgressConfig {
6081
6095
  closed_captions_enabled?: boolean;
6082
6096
  language?: string;
@@ -6440,8 +6454,8 @@ export interface StopTranscriptionResponse {
6440
6454
  duration: string;
6441
6455
  }
6442
6456
  export interface StoriesConfig {
6443
- expiration_behaviour?: string;
6444
6457
  skip_watched?: boolean;
6458
+ track_watched?: boolean;
6445
6459
  }
6446
6460
  export interface SubmitActionRequest {
6447
6461
  action_type: 'mark_reviewed' | 'delete_message' | 'delete_activity' | 'delete_reaction' | 'ban' | 'custom' | 'unban' | 'restore' | 'delete_user' | 'unblock' | 'shadow_block' | 'unmask' | 'kick_user' | 'end_call';
@@ -7054,6 +7068,7 @@ export interface UpdateFeedGroupRequest {
7054
7068
  notification?: NotificationConfig;
7055
7069
  push_notification?: PushNotificationConfig;
7056
7070
  ranking?: RankingConfig;
7071
+ stories?: StoriesConfig;
7057
7072
  }
7058
7073
  export interface UpdateFeedGroupResponse {
7059
7074
  duration: string;
@@ -7882,6 +7897,8 @@ export type WebhookEvent = ({
7882
7897
  } & FollowUpdatedEvent) | ({
7883
7898
  type: 'feeds.notification_feed.updated';
7884
7899
  } & NotificationFeedUpdatedEvent) | ({
7900
+ type: 'feeds.stories_feed.updated';
7901
+ } & StoriesFeedUpdatedEvent) | ({
7885
7902
  type: 'flag.updated';
7886
7903
  } & FlagUpdatedEvent) | ({
7887
7904
  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.5",
4
4
  "description": "",
5
5
  "exports": {
6
6
  ".": {
@@ -1031,6 +1031,7 @@ export class FeedsApi {
1031
1031
  notification: request?.notification,
1032
1032
  push_notification: request?.push_notification,
1033
1033
  ranking: request?.ranking,
1034
+ stories: request?.stories,
1034
1035
  };
1035
1036
 
1036
1037
  const response = await this.apiClient.sendRequest<
@@ -1449,6 +1450,7 @@ export class FeedsApi {
1449
1450
  notification: request?.notification,
1450
1451
  push_notification: request?.push_notification,
1451
1452
  ranking: request?.ranking,
1453
+ stories: request?.stories,
1452
1454
  };
1453
1455
 
1454
1456
  const response = await this.apiClient.sendRequest<
@@ -1481,6 +1483,7 @@ export class FeedsApi {
1481
1483
  notification: request?.notification,
1482
1484
  push_notification: request?.push_notification,
1483
1485
  ranking: request?.ranking,
1486
+ stories: request?.stories,
1484
1487
  };
1485
1488
 
1486
1489
  const response = await this.apiClient.sendRequest<
@@ -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 {
@@ -6303,6 +6309,8 @@ export interface GetOrCreateFeedGroupRequest {
6303
6309
  push_notification?: PushNotificationConfig;
6304
6310
 
6305
6311
  ranking?: RankingConfig;
6312
+
6313
+ stories?: StoriesConfig;
6306
6314
  }
6307
6315
 
6308
6316
  export interface GetOrCreateFeedGroupResponse {
@@ -10624,6 +10632,24 @@ export interface SRTIngress {
10624
10632
  address: string;
10625
10633
  }
10626
10634
 
10635
+ export interface StoriesFeedUpdatedEvent {
10636
+ created_at: Date;
10637
+
10638
+ fid: string;
10639
+
10640
+ custom: Record<string, any>;
10641
+
10642
+ type: string;
10643
+
10644
+ feed_visibility?: string;
10645
+
10646
+ received_at?: Date;
10647
+
10648
+ aggregated_activities?: AggregatedActivityResponse[];
10649
+
10650
+ user?: UserResponseCommonFields;
10651
+ }
10652
+
10627
10653
  export interface STTEgressConfig {
10628
10654
  closed_captions_enabled?: boolean;
10629
10655
 
@@ -11289,9 +11315,9 @@ export interface StopTranscriptionResponse {
11289
11315
  }
11290
11316
 
11291
11317
  export interface StoriesConfig {
11292
- expiration_behaviour?: string;
11293
-
11294
11318
  skip_watched?: boolean;
11319
+
11320
+ track_watched?: boolean;
11295
11321
  }
11296
11322
 
11297
11323
  export interface SubmitActionRequest {
@@ -12528,6 +12554,8 @@ export interface UpdateFeedGroupRequest {
12528
12554
  push_notification?: PushNotificationConfig;
12529
12555
 
12530
12556
  ranking?: RankingConfig;
12557
+
12558
+ stories?: StoriesConfig;
12531
12559
  }
12532
12560
 
12533
12561
  export interface UpdateFeedGroupResponse {
@@ -13714,6 +13742,7 @@ export type WebhookEvent =
13714
13742
  | ({ type: 'feeds.follow.deleted' } & FollowDeletedEvent)
13715
13743
  | ({ type: 'feeds.follow.updated' } & FollowUpdatedEvent)
13716
13744
  | ({ type: 'feeds.notification_feed.updated' } & NotificationFeedUpdatedEvent)
13745
+ | ({ type: 'feeds.stories_feed.updated' } & StoriesFeedUpdatedEvent)
13717
13746
  | ({ type: 'flag.updated' } & FlagUpdatedEvent)
13718
13747
  | ({ type: 'member.added' } & MemberAddedEvent)
13719
13748
  | ({ type: 'member.removed' } & MemberRemovedEvent)