@stream-io/feeds-client 0.3.49 → 0.3.51
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.
- package/CHANGELOG.md +14 -0
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/react-bindings.js +1 -1
- package/dist/es/index.mjs +2 -2
- package/dist/es/index.mjs.map +1 -1
- package/dist/es/react-bindings.mjs +1 -1
- package/dist/{feeds-client-BDvUG9yF.js → feeds-client-B4zeBggL.js} +218 -12
- package/dist/feeds-client-B4zeBggL.js.map +1 -0
- package/dist/{feeds-client-B9b7zUcW.mjs → feeds-client-DeAqnd1a.mjs} +218 -12
- package/dist/feeds-client-DeAqnd1a.mjs.map +1 -0
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/dist/types/common/real-time/StableWSConnection.d.ts +3 -3
- package/dist/types/common/real-time/StableWSConnection.d.ts.map +1 -1
- package/dist/types/feed/event-handlers/activity-updater.d.ts +2 -0
- package/dist/types/feed/event-handlers/activity-updater.d.ts.map +1 -1
- package/dist/types/feed/feed.d.ts +5 -3
- package/dist/types/feed/feed.d.ts.map +1 -1
- package/dist/types/feeds-client/feeds-client.d.ts +3 -2
- package/dist/types/feeds-client/feeds-client.d.ts.map +1 -1
- package/dist/types/gen/feeds/FeedApi.d.ts +1 -0
- package/dist/types/gen/feeds/FeedApi.d.ts.map +1 -1
- package/dist/types/gen/feeds/FeedsApi.d.ts +37 -3
- package/dist/types/gen/feeds/FeedsApi.d.ts.map +1 -1
- package/dist/types/gen/model-decoders/event-decoder-mapping.d.ts.map +1 -1
- package/dist/types/gen/models/index.d.ts +95 -0
- package/dist/types/gen/models/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/feed/feed.ts +6 -1
- package/src/feeds-client/feeds-client.ts +1 -1
- package/src/gen/feeds/FeedApi.ts +1 -0
- package/src/gen/feeds/FeedsApi.ts +232 -6
- package/src/gen/model-decoders/decoders.ts +76 -0
- package/src/gen/model-decoders/event-decoder-mapping.ts +3 -0
- package/src/gen/models/index.ts +159 -1
- package/dist/feeds-client-B9b7zUcW.mjs.map +0 -1
- package/dist/feeds-client-BDvUG9yF.js.map +0 -1
package/src/gen/models/index.ts
CHANGED
|
@@ -473,6 +473,10 @@ export interface ActivityResponse {
|
|
|
473
473
|
|
|
474
474
|
friend_reaction_count?: number;
|
|
475
475
|
|
|
476
|
+
is_read?: boolean;
|
|
477
|
+
|
|
478
|
+
is_seen?: boolean;
|
|
479
|
+
|
|
476
480
|
is_watched?: boolean;
|
|
477
481
|
|
|
478
482
|
moderation_action?: string;
|
|
@@ -577,6 +581,8 @@ export interface AddActivityRequest {
|
|
|
577
581
|
|
|
578
582
|
create_notification_activity?: boolean;
|
|
579
583
|
|
|
584
|
+
enrich_own_fields?: boolean;
|
|
585
|
+
|
|
580
586
|
expires_at?: string;
|
|
581
587
|
|
|
582
588
|
id?: string;
|
|
@@ -736,6 +742,18 @@ export interface AddReactionResponse {
|
|
|
736
742
|
notification_created?: boolean;
|
|
737
743
|
}
|
|
738
744
|
|
|
745
|
+
export interface AddUserGroupMembersRequest {
|
|
746
|
+
member_ids: string[];
|
|
747
|
+
|
|
748
|
+
team_id?: string;
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
export interface AddUserGroupMembersResponse {
|
|
752
|
+
duration: string;
|
|
753
|
+
|
|
754
|
+
user_group?: UserGroupResponse;
|
|
755
|
+
}
|
|
756
|
+
|
|
739
757
|
export interface AggregatedActivityResponse {
|
|
740
758
|
activity_count: number;
|
|
741
759
|
|
|
@@ -753,6 +771,10 @@ export interface AggregatedActivityResponse {
|
|
|
753
771
|
|
|
754
772
|
activities: ActivityResponse[];
|
|
755
773
|
|
|
774
|
+
is_read?: boolean;
|
|
775
|
+
|
|
776
|
+
is_seen?: boolean;
|
|
777
|
+
|
|
756
778
|
is_watched?: boolean;
|
|
757
779
|
}
|
|
758
780
|
|
|
@@ -1968,6 +1990,8 @@ export interface CreateDeviceRequest {
|
|
|
1968
1990
|
|
|
1969
1991
|
export interface CreateFeedsBatchRequest {
|
|
1970
1992
|
feeds: FeedRequest[];
|
|
1993
|
+
|
|
1994
|
+
enrich_own_fields?: boolean;
|
|
1971
1995
|
}
|
|
1972
1996
|
|
|
1973
1997
|
export interface CreateFeedsBatchResponse {
|
|
@@ -2018,6 +2042,24 @@ export interface CreatePollRequest {
|
|
|
2018
2042
|
custom?: Record<string, any>;
|
|
2019
2043
|
}
|
|
2020
2044
|
|
|
2045
|
+
export interface CreateUserGroupRequest {
|
|
2046
|
+
name: string;
|
|
2047
|
+
|
|
2048
|
+
description?: string;
|
|
2049
|
+
|
|
2050
|
+
id?: string;
|
|
2051
|
+
|
|
2052
|
+
team_id?: string;
|
|
2053
|
+
|
|
2054
|
+
member_ids?: string[];
|
|
2055
|
+
}
|
|
2056
|
+
|
|
2057
|
+
export interface CreateUserGroupResponse {
|
|
2058
|
+
duration: string;
|
|
2059
|
+
|
|
2060
|
+
user_group?: UserGroupResponse;
|
|
2061
|
+
}
|
|
2062
|
+
|
|
2021
2063
|
export interface CustomActionRequestPayload {
|
|
2022
2064
|
id?: string;
|
|
2023
2065
|
|
|
@@ -2518,6 +2560,22 @@ export interface FeedGroupDeletedEvent {
|
|
|
2518
2560
|
received_at?: Date;
|
|
2519
2561
|
}
|
|
2520
2562
|
|
|
2563
|
+
export interface FeedGroupRestoredEvent {
|
|
2564
|
+
created_at: Date;
|
|
2565
|
+
|
|
2566
|
+
fid: string;
|
|
2567
|
+
|
|
2568
|
+
group_id: string;
|
|
2569
|
+
|
|
2570
|
+
custom: Record<string, any>;
|
|
2571
|
+
|
|
2572
|
+
type: string;
|
|
2573
|
+
|
|
2574
|
+
feed_visibility?: string;
|
|
2575
|
+
|
|
2576
|
+
received_at?: Date;
|
|
2577
|
+
}
|
|
2578
|
+
|
|
2521
2579
|
export interface FeedInput {
|
|
2522
2580
|
description?: string;
|
|
2523
2581
|
|
|
@@ -2921,6 +2979,8 @@ export interface FlagUserOptions {
|
|
|
2921
2979
|
|
|
2922
2980
|
export interface FollowBatchRequest {
|
|
2923
2981
|
follows: FollowRequest[];
|
|
2982
|
+
|
|
2983
|
+
enrich_own_fields?: boolean;
|
|
2924
2984
|
}
|
|
2925
2985
|
|
|
2926
2986
|
export interface FollowBatchResponse {
|
|
@@ -2978,6 +3038,8 @@ export interface FollowRequest {
|
|
|
2978
3038
|
|
|
2979
3039
|
create_notification_activity?: boolean;
|
|
2980
3040
|
|
|
3041
|
+
enrich_own_fields?: boolean;
|
|
3042
|
+
|
|
2981
3043
|
push_preference?: 'all' | 'none';
|
|
2982
3044
|
|
|
2983
3045
|
skip_push?: boolean;
|
|
@@ -3289,6 +3351,12 @@ export interface GetOrCreateFeedResponse {
|
|
|
3289
3351
|
notification_status?: NotificationStatusResponse;
|
|
3290
3352
|
}
|
|
3291
3353
|
|
|
3354
|
+
export interface GetUserGroupResponse {
|
|
3355
|
+
duration: string;
|
|
3356
|
+
|
|
3357
|
+
user_group?: UserGroupResponse;
|
|
3358
|
+
}
|
|
3359
|
+
|
|
3292
3360
|
export interface GoogleVisionConfig {
|
|
3293
3361
|
enabled?: boolean;
|
|
3294
3362
|
}
|
|
@@ -3514,6 +3582,12 @@ export interface ListDevicesResponse {
|
|
|
3514
3582
|
devices: DeviceResponse[];
|
|
3515
3583
|
}
|
|
3516
3584
|
|
|
3585
|
+
export interface ListUserGroupsResponse {
|
|
3586
|
+
duration: string;
|
|
3587
|
+
|
|
3588
|
+
user_groups: UserGroupResponse[];
|
|
3589
|
+
}
|
|
3590
|
+
|
|
3517
3591
|
export interface MarkActivityRequest {
|
|
3518
3592
|
mark_all_read?: boolean;
|
|
3519
3593
|
|
|
@@ -3998,7 +4072,9 @@ export interface PagerResponse {
|
|
|
3998
4072
|
prev?: string;
|
|
3999
4073
|
}
|
|
4000
4074
|
|
|
4001
|
-
export interface PinActivityRequest {
|
|
4075
|
+
export interface PinActivityRequest {
|
|
4076
|
+
enrich_own_fields?: boolean;
|
|
4077
|
+
}
|
|
4002
4078
|
|
|
4003
4079
|
export interface PinActivityResponse {
|
|
4004
4080
|
created_at: Date;
|
|
@@ -4281,6 +4357,8 @@ export interface PushPreferencesResponse {
|
|
|
4281
4357
|
}
|
|
4282
4358
|
|
|
4283
4359
|
export interface QueryActivitiesRequest {
|
|
4360
|
+
enrich_own_fields?: boolean;
|
|
4361
|
+
|
|
4284
4362
|
limit?: number;
|
|
4285
4363
|
|
|
4286
4364
|
next?: string;
|
|
@@ -4369,6 +4447,8 @@ export interface QueryBookmarkFoldersResponse {
|
|
|
4369
4447
|
}
|
|
4370
4448
|
|
|
4371
4449
|
export interface QueryBookmarksRequest {
|
|
4450
|
+
enrich_own_fields?: boolean;
|
|
4451
|
+
|
|
4372
4452
|
limit?: number;
|
|
4373
4453
|
|
|
4374
4454
|
next?: string;
|
|
@@ -4457,6 +4537,8 @@ export interface QueryFeedMembersResponse {
|
|
|
4457
4537
|
}
|
|
4458
4538
|
|
|
4459
4539
|
export interface QueryFeedsRequest {
|
|
4540
|
+
enrich_own_fields?: boolean;
|
|
4541
|
+
|
|
4460
4542
|
limit?: number;
|
|
4461
4543
|
|
|
4462
4544
|
next?: string;
|
|
@@ -4525,6 +4607,8 @@ export interface QueryModerationConfigsResponse {
|
|
|
4525
4607
|
}
|
|
4526
4608
|
|
|
4527
4609
|
export interface QueryPinnedActivitiesRequest {
|
|
4610
|
+
enrich_own_fields?: boolean;
|
|
4611
|
+
|
|
4528
4612
|
limit?: number;
|
|
4529
4613
|
|
|
4530
4614
|
next?: string;
|
|
@@ -4732,6 +4816,10 @@ export interface ReadCollectionsResponse {
|
|
|
4732
4816
|
duration: string;
|
|
4733
4817
|
|
|
4734
4818
|
collections: CollectionResponse[];
|
|
4819
|
+
|
|
4820
|
+
next?: string;
|
|
4821
|
+
|
|
4822
|
+
prev?: string;
|
|
4735
4823
|
}
|
|
4736
4824
|
|
|
4737
4825
|
export interface ReadReceiptsResponse {
|
|
@@ -4790,6 +4878,12 @@ export interface ReminderResponseData {
|
|
|
4790
4878
|
user?: UserResponse;
|
|
4791
4879
|
}
|
|
4792
4880
|
|
|
4881
|
+
export interface RemoveUserGroupMembersResponse {
|
|
4882
|
+
duration: string;
|
|
4883
|
+
|
|
4884
|
+
user_group?: UserGroupResponse;
|
|
4885
|
+
}
|
|
4886
|
+
|
|
4793
4887
|
export interface RepliesMeta {
|
|
4794
4888
|
depth_truncated: boolean;
|
|
4795
4889
|
|
|
@@ -5005,6 +5099,12 @@ export interface ScreensharingSettingsResponse {
|
|
|
5005
5099
|
target_resolution?: TargetResolution;
|
|
5006
5100
|
}
|
|
5007
5101
|
|
|
5102
|
+
export interface SearchUserGroupsResponse {
|
|
5103
|
+
duration: string;
|
|
5104
|
+
|
|
5105
|
+
user_groups: UserGroupResponse[];
|
|
5106
|
+
}
|
|
5107
|
+
|
|
5008
5108
|
export interface SessionSettingsResponse {
|
|
5009
5109
|
inactivity_timeout_seconds: number;
|
|
5010
5110
|
}
|
|
@@ -5384,6 +5484,8 @@ export interface UnfollowBatchRequest {
|
|
|
5384
5484
|
follows: FollowPair[];
|
|
5385
5485
|
|
|
5386
5486
|
delete_notification_activity?: boolean;
|
|
5487
|
+
|
|
5488
|
+
enrich_own_fields?: boolean;
|
|
5387
5489
|
}
|
|
5388
5490
|
|
|
5389
5491
|
export interface UnfollowBatchResponse {
|
|
@@ -5411,6 +5513,8 @@ export interface UnpinActivityResponse {
|
|
|
5411
5513
|
export interface UpdateActivityPartialRequest {
|
|
5412
5514
|
copy_custom_to_notification?: boolean;
|
|
5413
5515
|
|
|
5516
|
+
enrich_own_fields?: boolean;
|
|
5517
|
+
|
|
5414
5518
|
handle_mention_notifications?: boolean;
|
|
5415
5519
|
|
|
5416
5520
|
run_activity_processors?: boolean;
|
|
@@ -5429,6 +5533,8 @@ export interface UpdateActivityPartialResponse {
|
|
|
5429
5533
|
export interface UpdateActivityRequest {
|
|
5430
5534
|
copy_custom_to_notification?: boolean;
|
|
5431
5535
|
|
|
5536
|
+
enrich_own_fields?: boolean;
|
|
5537
|
+
|
|
5432
5538
|
expires_at?: Date;
|
|
5433
5539
|
|
|
5434
5540
|
handle_mention_notifications?: boolean;
|
|
@@ -5583,6 +5689,8 @@ export interface UpdateFeedMembersResponse {
|
|
|
5583
5689
|
export interface UpdateFeedRequest {
|
|
5584
5690
|
description?: string;
|
|
5585
5691
|
|
|
5692
|
+
enrich_own_fields?: boolean;
|
|
5693
|
+
|
|
5586
5694
|
name?: string;
|
|
5587
5695
|
|
|
5588
5696
|
filter_tags?: string[];
|
|
@@ -5605,6 +5713,8 @@ export interface UpdateFollowRequest {
|
|
|
5605
5713
|
|
|
5606
5714
|
create_notification_activity?: boolean;
|
|
5607
5715
|
|
|
5716
|
+
enrich_own_fields?: boolean;
|
|
5717
|
+
|
|
5608
5718
|
follower_role?: string;
|
|
5609
5719
|
|
|
5610
5720
|
push_preference?: 'all' | 'none';
|
|
@@ -5668,6 +5778,20 @@ export interface UpdatePollRequest {
|
|
|
5668
5778
|
custom?: Record<string, any>;
|
|
5669
5779
|
}
|
|
5670
5780
|
|
|
5781
|
+
export interface UpdateUserGroupRequest {
|
|
5782
|
+
description?: string;
|
|
5783
|
+
|
|
5784
|
+
name?: string;
|
|
5785
|
+
|
|
5786
|
+
team_id?: string;
|
|
5787
|
+
}
|
|
5788
|
+
|
|
5789
|
+
export interface UpdateUserGroupResponse {
|
|
5790
|
+
duration: string;
|
|
5791
|
+
|
|
5792
|
+
user_group?: UserGroupResponse;
|
|
5793
|
+
}
|
|
5794
|
+
|
|
5671
5795
|
export interface UpdateUserPartialRequest {
|
|
5672
5796
|
id: string;
|
|
5673
5797
|
|
|
@@ -5694,6 +5818,8 @@ export interface UpdateUsersResponse {
|
|
|
5694
5818
|
|
|
5695
5819
|
export interface UpsertActivitiesRequest {
|
|
5696
5820
|
activities: ActivityRequest[];
|
|
5821
|
+
|
|
5822
|
+
enrich_own_fields?: boolean;
|
|
5697
5823
|
}
|
|
5698
5824
|
|
|
5699
5825
|
export interface UpsertActivitiesResponse {
|
|
@@ -5827,6 +5953,36 @@ export interface UserDeactivatedEvent {
|
|
|
5827
5953
|
created_by?: UserResponseCommonFields;
|
|
5828
5954
|
}
|
|
5829
5955
|
|
|
5956
|
+
export interface UserGroupMember {
|
|
5957
|
+
app_pk: number;
|
|
5958
|
+
|
|
5959
|
+
created_at: Date;
|
|
5960
|
+
|
|
5961
|
+
group_id: string;
|
|
5962
|
+
|
|
5963
|
+
is_admin: boolean;
|
|
5964
|
+
|
|
5965
|
+
user_id: string;
|
|
5966
|
+
}
|
|
5967
|
+
|
|
5968
|
+
export interface UserGroupResponse {
|
|
5969
|
+
created_at: Date;
|
|
5970
|
+
|
|
5971
|
+
id: string;
|
|
5972
|
+
|
|
5973
|
+
name: string;
|
|
5974
|
+
|
|
5975
|
+
updated_at: Date;
|
|
5976
|
+
|
|
5977
|
+
created_by?: string;
|
|
5978
|
+
|
|
5979
|
+
description?: string;
|
|
5980
|
+
|
|
5981
|
+
team_id?: string;
|
|
5982
|
+
|
|
5983
|
+
members?: UserGroupMember[];
|
|
5984
|
+
}
|
|
5985
|
+
|
|
5830
5986
|
export interface UserIdenticalContentCountParameters {
|
|
5831
5987
|
threshold?: number;
|
|
5832
5988
|
|
|
@@ -6177,6 +6333,7 @@ export type WSClientEvent =
|
|
|
6177
6333
|
| ({ type: 'feeds.feed.updated' } & FeedUpdatedEvent)
|
|
6178
6334
|
| ({ type: 'feeds.feed_group.changed' } & FeedGroupChangedEvent)
|
|
6179
6335
|
| ({ type: 'feeds.feed_group.deleted' } & FeedGroupDeletedEvent)
|
|
6336
|
+
| ({ type: 'feeds.feed_group.restored' } & FeedGroupRestoredEvent)
|
|
6180
6337
|
| ({ type: 'feeds.feed_member.added' } & FeedMemberAddedEvent)
|
|
6181
6338
|
| ({ type: 'feeds.feed_member.removed' } & FeedMemberRemovedEvent)
|
|
6182
6339
|
| ({ type: 'feeds.feed_member.updated' } & FeedMemberUpdatedEvent)
|
|
@@ -6233,6 +6390,7 @@ export type WSEvent =
|
|
|
6233
6390
|
| ({ type: 'feeds.feed.updated' } & FeedUpdatedEvent)
|
|
6234
6391
|
| ({ type: 'feeds.feed_group.changed' } & FeedGroupChangedEvent)
|
|
6235
6392
|
| ({ type: 'feeds.feed_group.deleted' } & FeedGroupDeletedEvent)
|
|
6393
|
+
| ({ type: 'feeds.feed_group.restored' } & FeedGroupRestoredEvent)
|
|
6236
6394
|
| ({ type: 'feeds.feed_member.added' } & FeedMemberAddedEvent)
|
|
6237
6395
|
| ({ type: 'feeds.feed_member.removed' } & FeedMemberRemovedEvent)
|
|
6238
6396
|
| ({ type: 'feeds.feed_member.updated' } & FeedMemberUpdatedEvent)
|