@stream-io/feeds-client 0.3.49 → 0.3.50
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 +7 -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-B9b7zUcW.mjs → feeds-client-BHpmg4_E.mjs} +183 -2
- package/dist/feeds-client-BHpmg4_E.mjs.map +1 -0
- package/dist/{feeds-client-BDvUG9yF.js → feeds-client-CKxvuiKz.js} +183 -2
- package/dist/feeds-client-CKxvuiKz.js.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 +2 -2
- package/dist/types/feed/feed.d.ts.map +1 -1
- package/dist/types/feeds-client/feeds-client.d.ts +2 -2
- package/dist/types/gen/feeds/FeedsApi.d.ts +34 -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 +80 -0
- package/dist/types/gen/models/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/feed/feed.ts +1 -0
- package/src/gen/feeds/FeedsApi.ts +199 -2
- 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 +128 -0
- package/dist/feeds-client-B9b7zUcW.mjs.map +0 -1
- package/dist/feeds-client-BDvUG9yF.js.map +0 -1
|
@@ -18,6 +18,8 @@ import type {
|
|
|
18
18
|
AddCommentsBatchResponse,
|
|
19
19
|
AddReactionRequest,
|
|
20
20
|
AddReactionResponse,
|
|
21
|
+
AddUserGroupMembersRequest,
|
|
22
|
+
AddUserGroupMembersResponse,
|
|
21
23
|
BlockUsersRequest,
|
|
22
24
|
BlockUsersResponse,
|
|
23
25
|
CastPollVoteRequest,
|
|
@@ -32,6 +34,8 @@ import type {
|
|
|
32
34
|
CreateGuestResponse,
|
|
33
35
|
CreatePollOptionRequest,
|
|
34
36
|
CreatePollRequest,
|
|
37
|
+
CreateUserGroupRequest,
|
|
38
|
+
CreateUserGroupResponse,
|
|
35
39
|
DeleteActivitiesRequest,
|
|
36
40
|
DeleteActivitiesResponse,
|
|
37
41
|
DeleteActivityReactionResponse,
|
|
@@ -57,10 +61,12 @@ import type {
|
|
|
57
61
|
GetOGResponse,
|
|
58
62
|
GetOrCreateFeedRequest,
|
|
59
63
|
GetOrCreateFeedResponse,
|
|
64
|
+
GetUserGroupResponse,
|
|
60
65
|
ImageUploadRequest,
|
|
61
66
|
ImageUploadResponse,
|
|
62
67
|
ListBlockListResponse,
|
|
63
68
|
ListDevicesResponse,
|
|
69
|
+
ListUserGroupsResponse,
|
|
64
70
|
MarkActivityRequest,
|
|
65
71
|
OwnBatchRequest,
|
|
66
72
|
OwnBatchResponse,
|
|
@@ -100,9 +106,11 @@ import type {
|
|
|
100
106
|
RejectFeedMemberInviteResponse,
|
|
101
107
|
RejectFollowRequest,
|
|
102
108
|
RejectFollowResponse,
|
|
109
|
+
RemoveUserGroupMembersResponse,
|
|
103
110
|
Response,
|
|
104
111
|
RestoreActivityRequest,
|
|
105
112
|
RestoreActivityResponse,
|
|
113
|
+
SearchUserGroupsResponse,
|
|
106
114
|
SharedLocationResponse,
|
|
107
115
|
SharedLocationsResponse,
|
|
108
116
|
SingleFollowResponse,
|
|
@@ -136,6 +144,8 @@ import type {
|
|
|
136
144
|
UpdatePollOptionRequest,
|
|
137
145
|
UpdatePollPartialRequest,
|
|
138
146
|
UpdatePollRequest,
|
|
147
|
+
UpdateUserGroupRequest,
|
|
148
|
+
UpdateUserGroupResponse,
|
|
139
149
|
UpdateUsersPartialRequest,
|
|
140
150
|
UpdateUsersRequest,
|
|
141
151
|
UpdateUsersResponse,
|
|
@@ -936,8 +946,8 @@ export class FeedsApi {
|
|
|
936
946
|
return { ...response.body, metadata: response.metadata };
|
|
937
947
|
}
|
|
938
948
|
|
|
939
|
-
async readCollections(request
|
|
940
|
-
collection_refs
|
|
949
|
+
async readCollections(request?: {
|
|
950
|
+
collection_refs?: string[];
|
|
941
951
|
}): Promise<StreamResponse<ReadCollectionsResponse>> {
|
|
942
952
|
const queryParams = {
|
|
943
953
|
collection_refs: request?.collection_refs,
|
|
@@ -2466,6 +2476,193 @@ export class FeedsApi {
|
|
|
2466
2476
|
return { ...response.body, metadata: response.metadata };
|
|
2467
2477
|
}
|
|
2468
2478
|
|
|
2479
|
+
async listUserGroups(request?: {
|
|
2480
|
+
limit?: number;
|
|
2481
|
+
id_gt?: string;
|
|
2482
|
+
created_at_gt?: string;
|
|
2483
|
+
team_id?: string;
|
|
2484
|
+
}): Promise<StreamResponse<ListUserGroupsResponse>> {
|
|
2485
|
+
const queryParams = {
|
|
2486
|
+
limit: request?.limit,
|
|
2487
|
+
id_gt: request?.id_gt,
|
|
2488
|
+
created_at_gt: request?.created_at_gt,
|
|
2489
|
+
team_id: request?.team_id,
|
|
2490
|
+
};
|
|
2491
|
+
|
|
2492
|
+
const response = await this.apiClient.sendRequest<
|
|
2493
|
+
StreamResponse<ListUserGroupsResponse>
|
|
2494
|
+
>('GET', '/api/v2/usergroups', undefined, queryParams);
|
|
2495
|
+
|
|
2496
|
+
decoders.ListUserGroupsResponse?.(response.body);
|
|
2497
|
+
|
|
2498
|
+
return { ...response.body, metadata: response.metadata };
|
|
2499
|
+
}
|
|
2500
|
+
|
|
2501
|
+
async createUserGroup(
|
|
2502
|
+
request: CreateUserGroupRequest,
|
|
2503
|
+
): Promise<StreamResponse<CreateUserGroupResponse>> {
|
|
2504
|
+
const body = {
|
|
2505
|
+
name: request?.name,
|
|
2506
|
+
description: request?.description,
|
|
2507
|
+
id: request?.id,
|
|
2508
|
+
team_id: request?.team_id,
|
|
2509
|
+
member_ids: request?.member_ids,
|
|
2510
|
+
};
|
|
2511
|
+
|
|
2512
|
+
const response = await this.apiClient.sendRequest<
|
|
2513
|
+
StreamResponse<CreateUserGroupResponse>
|
|
2514
|
+
>(
|
|
2515
|
+
'POST',
|
|
2516
|
+
'/api/v2/usergroups',
|
|
2517
|
+
undefined,
|
|
2518
|
+
undefined,
|
|
2519
|
+
body,
|
|
2520
|
+
'application/json',
|
|
2521
|
+
);
|
|
2522
|
+
|
|
2523
|
+
decoders.CreateUserGroupResponse?.(response.body);
|
|
2524
|
+
|
|
2525
|
+
return { ...response.body, metadata: response.metadata };
|
|
2526
|
+
}
|
|
2527
|
+
|
|
2528
|
+
async searchUserGroups(request: {
|
|
2529
|
+
query: string;
|
|
2530
|
+
limit?: number;
|
|
2531
|
+
name_gt?: string;
|
|
2532
|
+
id_gt?: string;
|
|
2533
|
+
team_id?: string;
|
|
2534
|
+
}): Promise<StreamResponse<SearchUserGroupsResponse>> {
|
|
2535
|
+
const queryParams = {
|
|
2536
|
+
query: request?.query,
|
|
2537
|
+
limit: request?.limit,
|
|
2538
|
+
name_gt: request?.name_gt,
|
|
2539
|
+
id_gt: request?.id_gt,
|
|
2540
|
+
team_id: request?.team_id,
|
|
2541
|
+
};
|
|
2542
|
+
|
|
2543
|
+
const response = await this.apiClient.sendRequest<
|
|
2544
|
+
StreamResponse<SearchUserGroupsResponse>
|
|
2545
|
+
>('GET', '/api/v2/usergroups/search', undefined, queryParams);
|
|
2546
|
+
|
|
2547
|
+
decoders.SearchUserGroupsResponse?.(response.body);
|
|
2548
|
+
|
|
2549
|
+
return { ...response.body, metadata: response.metadata };
|
|
2550
|
+
}
|
|
2551
|
+
|
|
2552
|
+
async deleteUserGroup(request: {
|
|
2553
|
+
id: string;
|
|
2554
|
+
team_id?: string;
|
|
2555
|
+
}): Promise<StreamResponse<Response>> {
|
|
2556
|
+
const queryParams = {
|
|
2557
|
+
team_id: request?.team_id,
|
|
2558
|
+
};
|
|
2559
|
+
const pathParams = {
|
|
2560
|
+
id: request?.id,
|
|
2561
|
+
};
|
|
2562
|
+
|
|
2563
|
+
const response = await this.apiClient.sendRequest<StreamResponse<Response>>(
|
|
2564
|
+
'DELETE',
|
|
2565
|
+
'/api/v2/usergroups/{id}',
|
|
2566
|
+
pathParams,
|
|
2567
|
+
queryParams,
|
|
2568
|
+
);
|
|
2569
|
+
|
|
2570
|
+
decoders.Response?.(response.body);
|
|
2571
|
+
|
|
2572
|
+
return { ...response.body, metadata: response.metadata };
|
|
2573
|
+
}
|
|
2574
|
+
|
|
2575
|
+
async getUserGroup(request: {
|
|
2576
|
+
id: string;
|
|
2577
|
+
team_id?: string;
|
|
2578
|
+
}): Promise<StreamResponse<GetUserGroupResponse>> {
|
|
2579
|
+
const queryParams = {
|
|
2580
|
+
team_id: request?.team_id,
|
|
2581
|
+
};
|
|
2582
|
+
const pathParams = {
|
|
2583
|
+
id: request?.id,
|
|
2584
|
+
};
|
|
2585
|
+
|
|
2586
|
+
const response = await this.apiClient.sendRequest<
|
|
2587
|
+
StreamResponse<GetUserGroupResponse>
|
|
2588
|
+
>('GET', '/api/v2/usergroups/{id}', pathParams, queryParams);
|
|
2589
|
+
|
|
2590
|
+
decoders.GetUserGroupResponse?.(response.body);
|
|
2591
|
+
|
|
2592
|
+
return { ...response.body, metadata: response.metadata };
|
|
2593
|
+
}
|
|
2594
|
+
|
|
2595
|
+
async updateUserGroup(
|
|
2596
|
+
request: UpdateUserGroupRequest & { id: string },
|
|
2597
|
+
): Promise<StreamResponse<UpdateUserGroupResponse>> {
|
|
2598
|
+
const pathParams = {
|
|
2599
|
+
id: request?.id,
|
|
2600
|
+
};
|
|
2601
|
+
const body = {
|
|
2602
|
+
description: request?.description,
|
|
2603
|
+
name: request?.name,
|
|
2604
|
+
team_id: request?.team_id,
|
|
2605
|
+
};
|
|
2606
|
+
|
|
2607
|
+
const response = await this.apiClient.sendRequest<
|
|
2608
|
+
StreamResponse<UpdateUserGroupResponse>
|
|
2609
|
+
>(
|
|
2610
|
+
'PUT',
|
|
2611
|
+
'/api/v2/usergroups/{id}',
|
|
2612
|
+
pathParams,
|
|
2613
|
+
undefined,
|
|
2614
|
+
body,
|
|
2615
|
+
'application/json',
|
|
2616
|
+
);
|
|
2617
|
+
|
|
2618
|
+
decoders.UpdateUserGroupResponse?.(response.body);
|
|
2619
|
+
|
|
2620
|
+
return { ...response.body, metadata: response.metadata };
|
|
2621
|
+
}
|
|
2622
|
+
|
|
2623
|
+
async removeUserGroupMembers(request: {
|
|
2624
|
+
id: string;
|
|
2625
|
+
}): Promise<StreamResponse<RemoveUserGroupMembersResponse>> {
|
|
2626
|
+
const pathParams = {
|
|
2627
|
+
id: request?.id,
|
|
2628
|
+
};
|
|
2629
|
+
|
|
2630
|
+
const response = await this.apiClient.sendRequest<
|
|
2631
|
+
StreamResponse<RemoveUserGroupMembersResponse>
|
|
2632
|
+
>('DELETE', '/api/v2/usergroups/{id}/members', pathParams, undefined);
|
|
2633
|
+
|
|
2634
|
+
decoders.RemoveUserGroupMembersResponse?.(response.body);
|
|
2635
|
+
|
|
2636
|
+
return { ...response.body, metadata: response.metadata };
|
|
2637
|
+
}
|
|
2638
|
+
|
|
2639
|
+
async addUserGroupMembers(
|
|
2640
|
+
request: AddUserGroupMembersRequest & { id: string },
|
|
2641
|
+
): Promise<StreamResponse<AddUserGroupMembersResponse>> {
|
|
2642
|
+
const pathParams = {
|
|
2643
|
+
id: request?.id,
|
|
2644
|
+
};
|
|
2645
|
+
const body = {
|
|
2646
|
+
member_ids: request?.member_ids,
|
|
2647
|
+
team_id: request?.team_id,
|
|
2648
|
+
};
|
|
2649
|
+
|
|
2650
|
+
const response = await this.apiClient.sendRequest<
|
|
2651
|
+
StreamResponse<AddUserGroupMembersResponse>
|
|
2652
|
+
>(
|
|
2653
|
+
'POST',
|
|
2654
|
+
'/api/v2/usergroups/{id}/members',
|
|
2655
|
+
pathParams,
|
|
2656
|
+
undefined,
|
|
2657
|
+
body,
|
|
2658
|
+
'application/json',
|
|
2659
|
+
);
|
|
2660
|
+
|
|
2661
|
+
decoders.AddUserGroupMembersResponse?.(response.body);
|
|
2662
|
+
|
|
2663
|
+
return { ...response.body, metadata: response.metadata };
|
|
2664
|
+
}
|
|
2665
|
+
|
|
2469
2666
|
async queryUsers(request?: {
|
|
2470
2667
|
payload?: QueryUsersPayload;
|
|
2471
2668
|
}): Promise<StreamResponse<QueryUsersResponse>> {
|
|
@@ -293,6 +293,13 @@ decoders.AddReactionResponse = (input?: Record<string, any>) => {
|
|
|
293
293
|
return decode(typeMappings, input);
|
|
294
294
|
};
|
|
295
295
|
|
|
296
|
+
decoders.AddUserGroupMembersResponse = (input?: Record<string, any>) => {
|
|
297
|
+
const typeMappings: TypeMapping = {
|
|
298
|
+
user_group: { type: 'UserGroupResponse', isSingle: true },
|
|
299
|
+
};
|
|
300
|
+
return decode(typeMappings, input);
|
|
301
|
+
};
|
|
302
|
+
|
|
296
303
|
decoders.AggregatedActivityResponse = (input?: Record<string, any>) => {
|
|
297
304
|
const typeMappings: TypeMapping = {
|
|
298
305
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -726,6 +733,13 @@ decoders.CreateGuestResponse = (input?: Record<string, any>) => {
|
|
|
726
733
|
return decode(typeMappings, input);
|
|
727
734
|
};
|
|
728
735
|
|
|
736
|
+
decoders.CreateUserGroupResponse = (input?: Record<string, any>) => {
|
|
737
|
+
const typeMappings: TypeMapping = {
|
|
738
|
+
user_group: { type: 'UserGroupResponse', isSingle: true },
|
|
739
|
+
};
|
|
740
|
+
return decode(typeMappings, input);
|
|
741
|
+
};
|
|
742
|
+
|
|
729
743
|
decoders.DeleteActivityReactionResponse = (input?: Record<string, any>) => {
|
|
730
744
|
const typeMappings: TypeMapping = {
|
|
731
745
|
activity: { type: 'ActivityResponse', isSingle: true },
|
|
@@ -862,6 +876,15 @@ decoders.FeedGroupDeletedEvent = (input?: Record<string, any>) => {
|
|
|
862
876
|
return decode(typeMappings, input);
|
|
863
877
|
};
|
|
864
878
|
|
|
879
|
+
decoders.FeedGroupRestoredEvent = (input?: Record<string, any>) => {
|
|
880
|
+
const typeMappings: TypeMapping = {
|
|
881
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
882
|
+
|
|
883
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
884
|
+
};
|
|
885
|
+
return decode(typeMappings, input);
|
|
886
|
+
};
|
|
887
|
+
|
|
865
888
|
decoders.FeedMemberAddedEvent = (input?: Record<string, any>) => {
|
|
866
889
|
const typeMappings: TypeMapping = {
|
|
867
890
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -1154,6 +1177,13 @@ decoders.GetOrCreateFeedResponse = (input?: Record<string, any>) => {
|
|
|
1154
1177
|
return decode(typeMappings, input);
|
|
1155
1178
|
};
|
|
1156
1179
|
|
|
1180
|
+
decoders.GetUserGroupResponse = (input?: Record<string, any>) => {
|
|
1181
|
+
const typeMappings: TypeMapping = {
|
|
1182
|
+
user_group: { type: 'UserGroupResponse', isSingle: true },
|
|
1183
|
+
};
|
|
1184
|
+
return decode(typeMappings, input);
|
|
1185
|
+
};
|
|
1186
|
+
|
|
1157
1187
|
decoders.HealthCheckEvent = (input?: Record<string, any>) => {
|
|
1158
1188
|
const typeMappings: TypeMapping = {
|
|
1159
1189
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -1179,6 +1209,13 @@ decoders.ListDevicesResponse = (input?: Record<string, any>) => {
|
|
|
1179
1209
|
return decode(typeMappings, input);
|
|
1180
1210
|
};
|
|
1181
1211
|
|
|
1212
|
+
decoders.ListUserGroupsResponse = (input?: Record<string, any>) => {
|
|
1213
|
+
const typeMappings: TypeMapping = {
|
|
1214
|
+
user_groups: { type: 'UserGroupResponse', isSingle: false },
|
|
1215
|
+
};
|
|
1216
|
+
return decode(typeMappings, input);
|
|
1217
|
+
};
|
|
1218
|
+
|
|
1182
1219
|
decoders.MembershipLevelResponse = (input?: Record<string, any>) => {
|
|
1183
1220
|
const typeMappings: TypeMapping = {
|
|
1184
1221
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -1649,6 +1686,13 @@ decoders.ReminderResponseData = (input?: Record<string, any>) => {
|
|
|
1649
1686
|
return decode(typeMappings, input);
|
|
1650
1687
|
};
|
|
1651
1688
|
|
|
1689
|
+
decoders.RemoveUserGroupMembersResponse = (input?: Record<string, any>) => {
|
|
1690
|
+
const typeMappings: TypeMapping = {
|
|
1691
|
+
user_group: { type: 'UserGroupResponse', isSingle: true },
|
|
1692
|
+
};
|
|
1693
|
+
return decode(typeMappings, input);
|
|
1694
|
+
};
|
|
1695
|
+
|
|
1652
1696
|
decoders.RestoreActivityResponse = (input?: Record<string, any>) => {
|
|
1653
1697
|
const typeMappings: TypeMapping = {
|
|
1654
1698
|
activity: { type: 'ActivityResponse', isSingle: true },
|
|
@@ -1693,6 +1737,13 @@ decoders.ReviewQueueItemResponse = (input?: Record<string, any>) => {
|
|
|
1693
1737
|
return decode(typeMappings, input);
|
|
1694
1738
|
};
|
|
1695
1739
|
|
|
1740
|
+
decoders.SearchUserGroupsResponse = (input?: Record<string, any>) => {
|
|
1741
|
+
const typeMappings: TypeMapping = {
|
|
1742
|
+
user_groups: { type: 'UserGroupResponse', isSingle: false },
|
|
1743
|
+
};
|
|
1744
|
+
return decode(typeMappings, input);
|
|
1745
|
+
};
|
|
1746
|
+
|
|
1696
1747
|
decoders.SharedLocationResponse = (input?: Record<string, any>) => {
|
|
1697
1748
|
const typeMappings: TypeMapping = {
|
|
1698
1749
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -1883,6 +1934,13 @@ decoders.UpdateFollowResponse = (input?: Record<string, any>) => {
|
|
|
1883
1934
|
return decode(typeMappings, input);
|
|
1884
1935
|
};
|
|
1885
1936
|
|
|
1937
|
+
decoders.UpdateUserGroupResponse = (input?: Record<string, any>) => {
|
|
1938
|
+
const typeMappings: TypeMapping = {
|
|
1939
|
+
user_group: { type: 'UserGroupResponse', isSingle: true },
|
|
1940
|
+
};
|
|
1941
|
+
return decode(typeMappings, input);
|
|
1942
|
+
};
|
|
1943
|
+
|
|
1886
1944
|
decoders.UpdateUsersResponse = (input?: Record<string, any>) => {
|
|
1887
1945
|
const typeMappings: TypeMapping = {
|
|
1888
1946
|
users: { type: 'FullUserResponse', isSingle: false },
|
|
@@ -1931,6 +1989,24 @@ decoders.UserDeactivatedEvent = (input?: Record<string, any>) => {
|
|
|
1931
1989
|
return decode(typeMappings, input);
|
|
1932
1990
|
};
|
|
1933
1991
|
|
|
1992
|
+
decoders.UserGroupMember = (input?: Record<string, any>) => {
|
|
1993
|
+
const typeMappings: TypeMapping = {
|
|
1994
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1995
|
+
};
|
|
1996
|
+
return decode(typeMappings, input);
|
|
1997
|
+
};
|
|
1998
|
+
|
|
1999
|
+
decoders.UserGroupResponse = (input?: Record<string, any>) => {
|
|
2000
|
+
const typeMappings: TypeMapping = {
|
|
2001
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
2002
|
+
|
|
2003
|
+
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
2004
|
+
|
|
2005
|
+
members: { type: 'UserGroupMember', isSingle: false },
|
|
2006
|
+
};
|
|
2007
|
+
return decode(typeMappings, input);
|
|
2008
|
+
};
|
|
2009
|
+
|
|
1934
2010
|
decoders.UserMuteResponse = (input?: Record<string, any>) => {
|
|
1935
2011
|
const typeMappings: TypeMapping = {
|
|
1936
2012
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -91,6 +91,9 @@ const eventDecoderMapping: Record<
|
|
|
91
91
|
'feeds.feed_group.deleted': (data: Record<string, any>) =>
|
|
92
92
|
decoders.FeedGroupDeletedEvent(data),
|
|
93
93
|
|
|
94
|
+
'feeds.feed_group.restored': (data: Record<string, any>) =>
|
|
95
|
+
decoders.FeedGroupRestoredEvent(data),
|
|
96
|
+
|
|
94
97
|
'feeds.feed_member.added': (data: Record<string, any>) =>
|
|
95
98
|
decoders.FeedMemberAddedEvent(data),
|
|
96
99
|
|
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;
|
|
@@ -736,6 +740,18 @@ export interface AddReactionResponse {
|
|
|
736
740
|
notification_created?: boolean;
|
|
737
741
|
}
|
|
738
742
|
|
|
743
|
+
export interface AddUserGroupMembersRequest {
|
|
744
|
+
member_ids: string[];
|
|
745
|
+
|
|
746
|
+
team_id?: string;
|
|
747
|
+
}
|
|
748
|
+
|
|
749
|
+
export interface AddUserGroupMembersResponse {
|
|
750
|
+
duration: string;
|
|
751
|
+
|
|
752
|
+
user_group?: UserGroupResponse;
|
|
753
|
+
}
|
|
754
|
+
|
|
739
755
|
export interface AggregatedActivityResponse {
|
|
740
756
|
activity_count: number;
|
|
741
757
|
|
|
@@ -753,6 +769,10 @@ export interface AggregatedActivityResponse {
|
|
|
753
769
|
|
|
754
770
|
activities: ActivityResponse[];
|
|
755
771
|
|
|
772
|
+
is_read?: boolean;
|
|
773
|
+
|
|
774
|
+
is_seen?: boolean;
|
|
775
|
+
|
|
756
776
|
is_watched?: boolean;
|
|
757
777
|
}
|
|
758
778
|
|
|
@@ -2018,6 +2038,24 @@ export interface CreatePollRequest {
|
|
|
2018
2038
|
custom?: Record<string, any>;
|
|
2019
2039
|
}
|
|
2020
2040
|
|
|
2041
|
+
export interface CreateUserGroupRequest {
|
|
2042
|
+
name: string;
|
|
2043
|
+
|
|
2044
|
+
description?: string;
|
|
2045
|
+
|
|
2046
|
+
id?: string;
|
|
2047
|
+
|
|
2048
|
+
team_id?: string;
|
|
2049
|
+
|
|
2050
|
+
member_ids?: string[];
|
|
2051
|
+
}
|
|
2052
|
+
|
|
2053
|
+
export interface CreateUserGroupResponse {
|
|
2054
|
+
duration: string;
|
|
2055
|
+
|
|
2056
|
+
user_group?: UserGroupResponse;
|
|
2057
|
+
}
|
|
2058
|
+
|
|
2021
2059
|
export interface CustomActionRequestPayload {
|
|
2022
2060
|
id?: string;
|
|
2023
2061
|
|
|
@@ -2518,6 +2556,22 @@ export interface FeedGroupDeletedEvent {
|
|
|
2518
2556
|
received_at?: Date;
|
|
2519
2557
|
}
|
|
2520
2558
|
|
|
2559
|
+
export interface FeedGroupRestoredEvent {
|
|
2560
|
+
created_at: Date;
|
|
2561
|
+
|
|
2562
|
+
fid: string;
|
|
2563
|
+
|
|
2564
|
+
group_id: string;
|
|
2565
|
+
|
|
2566
|
+
custom: Record<string, any>;
|
|
2567
|
+
|
|
2568
|
+
type: string;
|
|
2569
|
+
|
|
2570
|
+
feed_visibility?: string;
|
|
2571
|
+
|
|
2572
|
+
received_at?: Date;
|
|
2573
|
+
}
|
|
2574
|
+
|
|
2521
2575
|
export interface FeedInput {
|
|
2522
2576
|
description?: string;
|
|
2523
2577
|
|
|
@@ -3289,6 +3343,12 @@ export interface GetOrCreateFeedResponse {
|
|
|
3289
3343
|
notification_status?: NotificationStatusResponse;
|
|
3290
3344
|
}
|
|
3291
3345
|
|
|
3346
|
+
export interface GetUserGroupResponse {
|
|
3347
|
+
duration: string;
|
|
3348
|
+
|
|
3349
|
+
user_group?: UserGroupResponse;
|
|
3350
|
+
}
|
|
3351
|
+
|
|
3292
3352
|
export interface GoogleVisionConfig {
|
|
3293
3353
|
enabled?: boolean;
|
|
3294
3354
|
}
|
|
@@ -3514,6 +3574,12 @@ export interface ListDevicesResponse {
|
|
|
3514
3574
|
devices: DeviceResponse[];
|
|
3515
3575
|
}
|
|
3516
3576
|
|
|
3577
|
+
export interface ListUserGroupsResponse {
|
|
3578
|
+
duration: string;
|
|
3579
|
+
|
|
3580
|
+
user_groups: UserGroupResponse[];
|
|
3581
|
+
}
|
|
3582
|
+
|
|
3517
3583
|
export interface MarkActivityRequest {
|
|
3518
3584
|
mark_all_read?: boolean;
|
|
3519
3585
|
|
|
@@ -4732,6 +4798,10 @@ export interface ReadCollectionsResponse {
|
|
|
4732
4798
|
duration: string;
|
|
4733
4799
|
|
|
4734
4800
|
collections: CollectionResponse[];
|
|
4801
|
+
|
|
4802
|
+
next?: string;
|
|
4803
|
+
|
|
4804
|
+
prev?: string;
|
|
4735
4805
|
}
|
|
4736
4806
|
|
|
4737
4807
|
export interface ReadReceiptsResponse {
|
|
@@ -4790,6 +4860,12 @@ export interface ReminderResponseData {
|
|
|
4790
4860
|
user?: UserResponse;
|
|
4791
4861
|
}
|
|
4792
4862
|
|
|
4863
|
+
export interface RemoveUserGroupMembersResponse {
|
|
4864
|
+
duration: string;
|
|
4865
|
+
|
|
4866
|
+
user_group?: UserGroupResponse;
|
|
4867
|
+
}
|
|
4868
|
+
|
|
4793
4869
|
export interface RepliesMeta {
|
|
4794
4870
|
depth_truncated: boolean;
|
|
4795
4871
|
|
|
@@ -5005,6 +5081,12 @@ export interface ScreensharingSettingsResponse {
|
|
|
5005
5081
|
target_resolution?: TargetResolution;
|
|
5006
5082
|
}
|
|
5007
5083
|
|
|
5084
|
+
export interface SearchUserGroupsResponse {
|
|
5085
|
+
duration: string;
|
|
5086
|
+
|
|
5087
|
+
user_groups: UserGroupResponse[];
|
|
5088
|
+
}
|
|
5089
|
+
|
|
5008
5090
|
export interface SessionSettingsResponse {
|
|
5009
5091
|
inactivity_timeout_seconds: number;
|
|
5010
5092
|
}
|
|
@@ -5668,6 +5750,20 @@ export interface UpdatePollRequest {
|
|
|
5668
5750
|
custom?: Record<string, any>;
|
|
5669
5751
|
}
|
|
5670
5752
|
|
|
5753
|
+
export interface UpdateUserGroupRequest {
|
|
5754
|
+
description?: string;
|
|
5755
|
+
|
|
5756
|
+
name?: string;
|
|
5757
|
+
|
|
5758
|
+
team_id?: string;
|
|
5759
|
+
}
|
|
5760
|
+
|
|
5761
|
+
export interface UpdateUserGroupResponse {
|
|
5762
|
+
duration: string;
|
|
5763
|
+
|
|
5764
|
+
user_group?: UserGroupResponse;
|
|
5765
|
+
}
|
|
5766
|
+
|
|
5671
5767
|
export interface UpdateUserPartialRequest {
|
|
5672
5768
|
id: string;
|
|
5673
5769
|
|
|
@@ -5827,6 +5923,36 @@ export interface UserDeactivatedEvent {
|
|
|
5827
5923
|
created_by?: UserResponseCommonFields;
|
|
5828
5924
|
}
|
|
5829
5925
|
|
|
5926
|
+
export interface UserGroupMember {
|
|
5927
|
+
app_pk: number;
|
|
5928
|
+
|
|
5929
|
+
created_at: Date;
|
|
5930
|
+
|
|
5931
|
+
group_id: string;
|
|
5932
|
+
|
|
5933
|
+
is_admin: boolean;
|
|
5934
|
+
|
|
5935
|
+
user_id: string;
|
|
5936
|
+
}
|
|
5937
|
+
|
|
5938
|
+
export interface UserGroupResponse {
|
|
5939
|
+
created_at: Date;
|
|
5940
|
+
|
|
5941
|
+
id: string;
|
|
5942
|
+
|
|
5943
|
+
name: string;
|
|
5944
|
+
|
|
5945
|
+
updated_at: Date;
|
|
5946
|
+
|
|
5947
|
+
created_by?: string;
|
|
5948
|
+
|
|
5949
|
+
description?: string;
|
|
5950
|
+
|
|
5951
|
+
team_id?: string;
|
|
5952
|
+
|
|
5953
|
+
members?: UserGroupMember[];
|
|
5954
|
+
}
|
|
5955
|
+
|
|
5830
5956
|
export interface UserIdenticalContentCountParameters {
|
|
5831
5957
|
threshold?: number;
|
|
5832
5958
|
|
|
@@ -6177,6 +6303,7 @@ export type WSClientEvent =
|
|
|
6177
6303
|
| ({ type: 'feeds.feed.updated' } & FeedUpdatedEvent)
|
|
6178
6304
|
| ({ type: 'feeds.feed_group.changed' } & FeedGroupChangedEvent)
|
|
6179
6305
|
| ({ type: 'feeds.feed_group.deleted' } & FeedGroupDeletedEvent)
|
|
6306
|
+
| ({ type: 'feeds.feed_group.restored' } & FeedGroupRestoredEvent)
|
|
6180
6307
|
| ({ type: 'feeds.feed_member.added' } & FeedMemberAddedEvent)
|
|
6181
6308
|
| ({ type: 'feeds.feed_member.removed' } & FeedMemberRemovedEvent)
|
|
6182
6309
|
| ({ type: 'feeds.feed_member.updated' } & FeedMemberUpdatedEvent)
|
|
@@ -6233,6 +6360,7 @@ export type WSEvent =
|
|
|
6233
6360
|
| ({ type: 'feeds.feed.updated' } & FeedUpdatedEvent)
|
|
6234
6361
|
| ({ type: 'feeds.feed_group.changed' } & FeedGroupChangedEvent)
|
|
6235
6362
|
| ({ type: 'feeds.feed_group.deleted' } & FeedGroupDeletedEvent)
|
|
6363
|
+
| ({ type: 'feeds.feed_group.restored' } & FeedGroupRestoredEvent)
|
|
6236
6364
|
| ({ type: 'feeds.feed_member.added' } & FeedMemberAddedEvent)
|
|
6237
6365
|
| ({ type: 'feeds.feed_member.removed' } & FeedMemberRemovedEvent)
|
|
6238
6366
|
| ({ type: 'feeds.feed_member.updated' } & FeedMemberUpdatedEvent)
|