@stream-io/feeds-client 0.3.16 → 0.3.17

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.
@@ -496,6 +496,8 @@ export interface ActivitySelectorConfig {
496
496
  sort?: SortParam[];
497
497
 
498
498
  filter?: Record<string, any>;
499
+
500
+ params?: Record<string, any>;
499
501
  }
500
502
 
501
503
  export interface ActivityUnpinnedEvent {
@@ -615,16 +617,16 @@ export interface AddCommentReactionResponse {
615
617
  }
616
618
 
617
619
  export interface AddCommentRequest {
618
- object_id: string;
619
-
620
- object_type: string;
621
-
622
620
  comment?: string;
623
621
 
624
622
  create_notification_activity?: boolean;
625
623
 
626
624
  id?: string;
627
625
 
626
+ object_id?: string;
627
+
628
+ object_type?: string;
629
+
628
630
  parent_id?: string;
629
631
 
630
632
  skip_enrich_url?: boolean;
@@ -1084,7 +1086,7 @@ export interface BookmarkFolderResponse {
1084
1086
 
1085
1087
  updated_at: Date;
1086
1088
 
1087
- user: UserResponseCommonFields;
1089
+ user: UserResponse;
1088
1090
 
1089
1091
  custom?: Record<string, any>;
1090
1092
  }
@@ -1110,7 +1112,7 @@ export interface BookmarkResponse {
1110
1112
 
1111
1113
  activity: ActivityResponse;
1112
1114
 
1113
- user: UserResponseCommonFields;
1115
+ user: UserResponse;
1114
1116
 
1115
1117
  custom?: Record<string, any>;
1116
1118
 
@@ -2731,6 +2733,14 @@ export const FeedOwnCapability = {
2731
2733
  export type FeedOwnCapability =
2732
2734
  (typeof FeedOwnCapability)[keyof typeof FeedOwnCapability];
2733
2735
 
2736
+ export interface FeedOwnData {
2737
+ own_capabilities?: FeedOwnCapability[];
2738
+
2739
+ own_follows?: FollowResponse[];
2740
+
2741
+ own_membership?: FeedMemberResponse;
2742
+ }
2743
+
2734
2744
  export interface FeedRequest {
2735
2745
  feed_group_id: string;
2736
2746
 
@@ -2980,6 +2990,8 @@ export interface FollowBatchRequest {
2980
2990
  export interface FollowBatchResponse {
2981
2991
  duration: string;
2982
2992
 
2993
+ created: FollowResponse[];
2994
+
2983
2995
  follows: FollowResponse[];
2984
2996
  }
2985
2997
 
@@ -3015,6 +3027,12 @@ export interface FollowDeletedEvent {
3015
3027
  received_at?: Date;
3016
3028
  }
3017
3029
 
3030
+ export interface FollowPair {
3031
+ source: string;
3032
+
3033
+ target: string;
3034
+ }
3035
+
3018
3036
  export interface FollowRequest {
3019
3037
  source: string;
3020
3038
 
@@ -3992,14 +4010,16 @@ export interface OnlyUserID {
3992
4010
  id: string;
3993
4011
  }
3994
4012
 
3995
- export interface OwnCapabilitiesBatchRequest {
4013
+ export interface OwnBatchRequest {
3996
4014
  feeds: string[];
4015
+
4016
+ fields?: string[];
3997
4017
  }
3998
4018
 
3999
- export interface OwnCapabilitiesBatchResponse {
4019
+ export interface OwnBatchResponse {
4000
4020
  duration: string;
4001
4021
 
4002
- capabilities: Record<string, FeedOwnCapability[]>;
4022
+ data: Record<string, FeedOwnData>;
4003
4023
  }
4004
4024
 
4005
4025
  export interface OwnUser {
@@ -5507,6 +5527,16 @@ export interface UnblockUsersResponse {
5507
5527
  duration: string;
5508
5528
  }
5509
5529
 
5530
+ export interface UnfollowBatchRequest {
5531
+ follows: FollowPair[];
5532
+ }
5533
+
5534
+ export interface UnfollowBatchResponse {
5535
+ duration: string;
5536
+
5537
+ follows: FollowResponse[];
5538
+ }
5539
+
5510
5540
  export interface UnfollowResponse {
5511
5541
  duration: string;
5512
5542