@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
|
@@ -261,6 +261,8 @@ export interface ActivityResponse {
|
|
|
261
261
|
edited_at?: Date;
|
|
262
262
|
expires_at?: Date;
|
|
263
263
|
friend_reaction_count?: number;
|
|
264
|
+
is_read?: boolean;
|
|
265
|
+
is_seen?: boolean;
|
|
264
266
|
is_watched?: boolean;
|
|
265
267
|
moderation_action?: string;
|
|
266
268
|
selector_source?: string;
|
|
@@ -318,6 +320,7 @@ export interface AddActivityRequest {
|
|
|
318
320
|
feeds: string[];
|
|
319
321
|
copy_custom_to_notification?: boolean;
|
|
320
322
|
create_notification_activity?: boolean;
|
|
323
|
+
enrich_own_fields?: boolean;
|
|
321
324
|
expires_at?: string;
|
|
322
325
|
id?: string;
|
|
323
326
|
parent_id?: string;
|
|
@@ -410,6 +413,14 @@ export interface AddReactionResponse {
|
|
|
410
413
|
reaction: FeedsReactionResponse;
|
|
411
414
|
notification_created?: boolean;
|
|
412
415
|
}
|
|
416
|
+
export interface AddUserGroupMembersRequest {
|
|
417
|
+
member_ids: string[];
|
|
418
|
+
team_id?: string;
|
|
419
|
+
}
|
|
420
|
+
export interface AddUserGroupMembersResponse {
|
|
421
|
+
duration: string;
|
|
422
|
+
user_group?: UserGroupResponse;
|
|
423
|
+
}
|
|
413
424
|
export interface AggregatedActivityResponse {
|
|
414
425
|
activity_count: number;
|
|
415
426
|
created_at: Date;
|
|
@@ -419,6 +430,8 @@ export interface AggregatedActivityResponse {
|
|
|
419
430
|
user_count: number;
|
|
420
431
|
user_count_truncated: boolean;
|
|
421
432
|
activities: ActivityResponse[];
|
|
433
|
+
is_read?: boolean;
|
|
434
|
+
is_seen?: boolean;
|
|
422
435
|
is_watched?: boolean;
|
|
423
436
|
}
|
|
424
437
|
export interface AggregationConfig {
|
|
@@ -1105,6 +1118,7 @@ export interface CreateDeviceRequest {
|
|
|
1105
1118
|
}
|
|
1106
1119
|
export interface CreateFeedsBatchRequest {
|
|
1107
1120
|
feeds: FeedRequest[];
|
|
1121
|
+
enrich_own_fields?: boolean;
|
|
1108
1122
|
}
|
|
1109
1123
|
export interface CreateFeedsBatchResponse {
|
|
1110
1124
|
duration: string;
|
|
@@ -1135,6 +1149,17 @@ export interface CreatePollRequest {
|
|
|
1135
1149
|
options?: PollOptionInput[];
|
|
1136
1150
|
custom?: Record<string, any>;
|
|
1137
1151
|
}
|
|
1152
|
+
export interface CreateUserGroupRequest {
|
|
1153
|
+
name: string;
|
|
1154
|
+
description?: string;
|
|
1155
|
+
id?: string;
|
|
1156
|
+
team_id?: string;
|
|
1157
|
+
member_ids?: string[];
|
|
1158
|
+
}
|
|
1159
|
+
export interface CreateUserGroupResponse {
|
|
1160
|
+
duration: string;
|
|
1161
|
+
user_group?: UserGroupResponse;
|
|
1162
|
+
}
|
|
1138
1163
|
export interface CustomActionRequestPayload {
|
|
1139
1164
|
id?: string;
|
|
1140
1165
|
options?: Record<string, any>;
|
|
@@ -1421,6 +1446,15 @@ export interface FeedGroupDeletedEvent {
|
|
|
1421
1446
|
feed_visibility?: string;
|
|
1422
1447
|
received_at?: Date;
|
|
1423
1448
|
}
|
|
1449
|
+
export interface FeedGroupRestoredEvent {
|
|
1450
|
+
created_at: Date;
|
|
1451
|
+
fid: string;
|
|
1452
|
+
group_id: string;
|
|
1453
|
+
custom: Record<string, any>;
|
|
1454
|
+
type: string;
|
|
1455
|
+
feed_visibility?: string;
|
|
1456
|
+
received_at?: Date;
|
|
1457
|
+
}
|
|
1424
1458
|
export interface FeedInput {
|
|
1425
1459
|
description?: string;
|
|
1426
1460
|
name?: string;
|
|
@@ -1662,6 +1696,7 @@ export interface FlagUserOptions {
|
|
|
1662
1696
|
}
|
|
1663
1697
|
export interface FollowBatchRequest {
|
|
1664
1698
|
follows: FollowRequest[];
|
|
1699
|
+
enrich_own_fields?: boolean;
|
|
1665
1700
|
}
|
|
1666
1701
|
export interface FollowBatchResponse {
|
|
1667
1702
|
duration: string;
|
|
@@ -1695,6 +1730,7 @@ export interface FollowRequest {
|
|
|
1695
1730
|
target: string;
|
|
1696
1731
|
copy_custom_to_notification?: boolean;
|
|
1697
1732
|
create_notification_activity?: boolean;
|
|
1733
|
+
enrich_own_fields?: boolean;
|
|
1698
1734
|
push_preference?: 'all' | 'none';
|
|
1699
1735
|
skip_push?: boolean;
|
|
1700
1736
|
custom?: Record<string, any>;
|
|
@@ -1870,6 +1906,10 @@ export interface GetOrCreateFeedResponse {
|
|
|
1870
1906
|
member_pagination?: PagerResponse;
|
|
1871
1907
|
notification_status?: NotificationStatusResponse;
|
|
1872
1908
|
}
|
|
1909
|
+
export interface GetUserGroupResponse {
|
|
1910
|
+
duration: string;
|
|
1911
|
+
user_group?: UserGroupResponse;
|
|
1912
|
+
}
|
|
1873
1913
|
export interface GoogleVisionConfig {
|
|
1874
1914
|
enabled?: boolean;
|
|
1875
1915
|
}
|
|
@@ -2004,6 +2044,10 @@ export interface ListDevicesResponse {
|
|
|
2004
2044
|
duration: string;
|
|
2005
2045
|
devices: DeviceResponse[];
|
|
2006
2046
|
}
|
|
2047
|
+
export interface ListUserGroupsResponse {
|
|
2048
|
+
duration: string;
|
|
2049
|
+
user_groups: UserGroupResponse[];
|
|
2050
|
+
}
|
|
2007
2051
|
export interface MarkActivityRequest {
|
|
2008
2052
|
mark_all_read?: boolean;
|
|
2009
2053
|
mark_all_seen?: boolean;
|
|
@@ -2274,6 +2318,7 @@ export interface PagerResponse {
|
|
|
2274
2318
|
prev?: string;
|
|
2275
2319
|
}
|
|
2276
2320
|
export interface PinActivityRequest {
|
|
2321
|
+
enrich_own_fields?: boolean;
|
|
2277
2322
|
}
|
|
2278
2323
|
export interface PinActivityResponse {
|
|
2279
2324
|
created_at: Date;
|
|
@@ -2433,6 +2478,7 @@ export interface PushPreferencesResponse {
|
|
|
2433
2478
|
feeds_preferences?: FeedsPreferencesResponse;
|
|
2434
2479
|
}
|
|
2435
2480
|
export interface QueryActivitiesRequest {
|
|
2481
|
+
enrich_own_fields?: boolean;
|
|
2436
2482
|
limit?: number;
|
|
2437
2483
|
next?: string;
|
|
2438
2484
|
prev?: string;
|
|
@@ -2485,6 +2531,7 @@ export interface QueryBookmarkFoldersResponse {
|
|
|
2485
2531
|
prev?: string;
|
|
2486
2532
|
}
|
|
2487
2533
|
export interface QueryBookmarksRequest {
|
|
2534
|
+
enrich_own_fields?: boolean;
|
|
2488
2535
|
limit?: number;
|
|
2489
2536
|
next?: string;
|
|
2490
2537
|
prev?: string;
|
|
@@ -2537,6 +2584,7 @@ export interface QueryFeedMembersResponse {
|
|
|
2537
2584
|
prev?: string;
|
|
2538
2585
|
}
|
|
2539
2586
|
export interface QueryFeedsRequest {
|
|
2587
|
+
enrich_own_fields?: boolean;
|
|
2540
2588
|
limit?: number;
|
|
2541
2589
|
next?: string;
|
|
2542
2590
|
prev?: string;
|
|
@@ -2577,6 +2625,7 @@ export interface QueryModerationConfigsResponse {
|
|
|
2577
2625
|
prev?: string;
|
|
2578
2626
|
}
|
|
2579
2627
|
export interface QueryPinnedActivitiesRequest {
|
|
2628
|
+
enrich_own_fields?: boolean;
|
|
2580
2629
|
limit?: number;
|
|
2581
2630
|
next?: string;
|
|
2582
2631
|
prev?: string;
|
|
@@ -2698,6 +2747,8 @@ export interface ReactionResponse {
|
|
|
2698
2747
|
export interface ReadCollectionsResponse {
|
|
2699
2748
|
duration: string;
|
|
2700
2749
|
collections: CollectionResponse[];
|
|
2750
|
+
next?: string;
|
|
2751
|
+
prev?: string;
|
|
2701
2752
|
}
|
|
2702
2753
|
export interface ReadReceiptsResponse {
|
|
2703
2754
|
enabled: boolean;
|
|
@@ -2735,6 +2786,10 @@ export interface ReminderResponseData {
|
|
|
2735
2786
|
message?: MessageResponse;
|
|
2736
2787
|
user?: UserResponse;
|
|
2737
2788
|
}
|
|
2789
|
+
export interface RemoveUserGroupMembersResponse {
|
|
2790
|
+
duration: string;
|
|
2791
|
+
user_group?: UserGroupResponse;
|
|
2792
|
+
}
|
|
2738
2793
|
export interface RepliesMeta {
|
|
2739
2794
|
depth_truncated: boolean;
|
|
2740
2795
|
has_more: boolean;
|
|
@@ -2848,6 +2903,10 @@ export interface ScreensharingSettingsResponse {
|
|
|
2848
2903
|
enabled: boolean;
|
|
2849
2904
|
target_resolution?: TargetResolution;
|
|
2850
2905
|
}
|
|
2906
|
+
export interface SearchUserGroupsResponse {
|
|
2907
|
+
duration: string;
|
|
2908
|
+
user_groups: UserGroupResponse[];
|
|
2909
|
+
}
|
|
2851
2910
|
export interface SessionSettingsResponse {
|
|
2852
2911
|
inactivity_timeout_seconds: number;
|
|
2853
2912
|
}
|
|
@@ -3039,6 +3098,7 @@ export interface UnblockUsersResponse {
|
|
|
3039
3098
|
export interface UnfollowBatchRequest {
|
|
3040
3099
|
follows: FollowPair[];
|
|
3041
3100
|
delete_notification_activity?: boolean;
|
|
3101
|
+
enrich_own_fields?: boolean;
|
|
3042
3102
|
}
|
|
3043
3103
|
export interface UnfollowBatchResponse {
|
|
3044
3104
|
duration: string;
|
|
@@ -3056,6 +3116,7 @@ export interface UnpinActivityResponse {
|
|
|
3056
3116
|
}
|
|
3057
3117
|
export interface UpdateActivityPartialRequest {
|
|
3058
3118
|
copy_custom_to_notification?: boolean;
|
|
3119
|
+
enrich_own_fields?: boolean;
|
|
3059
3120
|
handle_mention_notifications?: boolean;
|
|
3060
3121
|
run_activity_processors?: boolean;
|
|
3061
3122
|
unset?: string[];
|
|
@@ -3067,6 +3128,7 @@ export interface UpdateActivityPartialResponse {
|
|
|
3067
3128
|
}
|
|
3068
3129
|
export interface UpdateActivityRequest {
|
|
3069
3130
|
copy_custom_to_notification?: boolean;
|
|
3131
|
+
enrich_own_fields?: boolean;
|
|
3070
3132
|
expires_at?: Date;
|
|
3071
3133
|
handle_mention_notifications?: boolean;
|
|
3072
3134
|
poll_id?: string;
|
|
@@ -3159,6 +3221,7 @@ export interface UpdateFeedMembersResponse {
|
|
|
3159
3221
|
}
|
|
3160
3222
|
export interface UpdateFeedRequest {
|
|
3161
3223
|
description?: string;
|
|
3224
|
+
enrich_own_fields?: boolean;
|
|
3162
3225
|
name?: string;
|
|
3163
3226
|
filter_tags?: string[];
|
|
3164
3227
|
custom?: Record<string, any>;
|
|
@@ -3172,6 +3235,7 @@ export interface UpdateFollowRequest {
|
|
|
3172
3235
|
target: string;
|
|
3173
3236
|
copy_custom_to_notification?: boolean;
|
|
3174
3237
|
create_notification_activity?: boolean;
|
|
3238
|
+
enrich_own_fields?: boolean;
|
|
3175
3239
|
follower_role?: string;
|
|
3176
3240
|
push_preference?: 'all' | 'none';
|
|
3177
3241
|
skip_push?: boolean;
|
|
@@ -3209,6 +3273,15 @@ export interface UpdatePollRequest {
|
|
|
3209
3273
|
options?: PollOptionRequest[];
|
|
3210
3274
|
custom?: Record<string, any>;
|
|
3211
3275
|
}
|
|
3276
|
+
export interface UpdateUserGroupRequest {
|
|
3277
|
+
description?: string;
|
|
3278
|
+
name?: string;
|
|
3279
|
+
team_id?: string;
|
|
3280
|
+
}
|
|
3281
|
+
export interface UpdateUserGroupResponse {
|
|
3282
|
+
duration: string;
|
|
3283
|
+
user_group?: UserGroupResponse;
|
|
3284
|
+
}
|
|
3212
3285
|
export interface UpdateUserPartialRequest {
|
|
3213
3286
|
id: string;
|
|
3214
3287
|
unset?: string[];
|
|
@@ -3227,6 +3300,7 @@ export interface UpdateUsersResponse {
|
|
|
3227
3300
|
}
|
|
3228
3301
|
export interface UpsertActivitiesRequest {
|
|
3229
3302
|
activities: ActivityRequest[];
|
|
3303
|
+
enrich_own_fields?: boolean;
|
|
3230
3304
|
}
|
|
3231
3305
|
export interface UpsertActivitiesResponse {
|
|
3232
3306
|
duration: string;
|
|
@@ -3302,6 +3376,23 @@ export interface UserDeactivatedEvent {
|
|
|
3302
3376
|
received_at?: Date;
|
|
3303
3377
|
created_by?: UserResponseCommonFields;
|
|
3304
3378
|
}
|
|
3379
|
+
export interface UserGroupMember {
|
|
3380
|
+
app_pk: number;
|
|
3381
|
+
created_at: Date;
|
|
3382
|
+
group_id: string;
|
|
3383
|
+
is_admin: boolean;
|
|
3384
|
+
user_id: string;
|
|
3385
|
+
}
|
|
3386
|
+
export interface UserGroupResponse {
|
|
3387
|
+
created_at: Date;
|
|
3388
|
+
id: string;
|
|
3389
|
+
name: string;
|
|
3390
|
+
updated_at: Date;
|
|
3391
|
+
created_by?: string;
|
|
3392
|
+
description?: string;
|
|
3393
|
+
team_id?: string;
|
|
3394
|
+
members?: UserGroupMember[];
|
|
3395
|
+
}
|
|
3305
3396
|
export interface UserIdenticalContentCountParameters {
|
|
3306
3397
|
threshold?: number;
|
|
3307
3398
|
time_window?: string;
|
|
@@ -3542,6 +3633,8 @@ export type WSClientEvent = ({
|
|
|
3542
3633
|
} & FeedGroupChangedEvent) | ({
|
|
3543
3634
|
type: 'feeds.feed_group.deleted';
|
|
3544
3635
|
} & FeedGroupDeletedEvent) | ({
|
|
3636
|
+
type: 'feeds.feed_group.restored';
|
|
3637
|
+
} & FeedGroupRestoredEvent) | ({
|
|
3545
3638
|
type: 'feeds.feed_member.added';
|
|
3546
3639
|
} & FeedMemberAddedEvent) | ({
|
|
3547
3640
|
type: 'feeds.feed_member.removed';
|
|
@@ -3647,6 +3740,8 @@ export type WSEvent = ({
|
|
|
3647
3740
|
} & FeedGroupChangedEvent) | ({
|
|
3648
3741
|
type: 'feeds.feed_group.deleted';
|
|
3649
3742
|
} & FeedGroupDeletedEvent) | ({
|
|
3743
|
+
type: 'feeds.feed_group.restored';
|
|
3744
|
+
} & FeedGroupRestoredEvent) | ({
|
|
3650
3745
|
type: 'feeds.feed_member.added';
|
|
3651
3746
|
} & FeedMemberAddedEvent) | ({
|
|
3652
3747
|
type: 'feeds.feed_member.removed';
|