@@ -1035,104 +1035,6 @@ export class FeedsApi {
10351035 return { ...response . body , metadata : response . metadata } ;
10361036 }
10371037
1038- async deleteFeedGroup ( request : {
1039- feed_group_id : string ;
1040- } ) : Promise < StreamResponse < DeleteFeedGroupResponse > > {
1041- const pathParams = {
1042- feed_group_id : request ?. feed_group_id ,
1043- } ;
1044-
1045- const response = await this . apiClient . sendRequest <
1046- StreamResponse < DeleteFeedGroupResponse >
1047- > (
1048- 'DELETE' ,
1049- '/api/v2/feeds/feed_groups/{feed_group_id}' ,
1050- pathParams ,
1051- undefined ,
1052- ) ;
1053-
1054- decoders . DeleteFeedGroupResponse ?.( response . body ) ;
1055-
1056- return { ...response . body , metadata : response . metadata } ;
1057- }
1058-
1059- async getFeedGroup ( request : {
1060- feed_group_id : string ;
1061- } ) : Promise < StreamResponse < GetFeedGroupResponse > > {
1062- const pathParams = {
1063- feed_group_id : request ?. feed_group_id ,
1064- } ;
1065-
1066- const response = await this . apiClient . sendRequest <
1067- StreamResponse < GetFeedGroupResponse >
1068- > (
1069- 'GET' ,
1070- '/api/v2/feeds/feed_groups/{feed_group_id}' ,
1071- pathParams ,
1072- undefined ,
1073- ) ;
1074-
1075- decoders . GetFeedGroupResponse ?.( response . body ) ;
1076-
1077- return { ...response . body , metadata : response . metadata } ;
1078- }
1079-
1080- async getOrCreateFeedGroup (
1081- request ?: GetOrCreateFeedGroupRequest ,
1082- ) : Promise < StreamResponse < GetOrCreateFeedGroupResponse > > {
1083- const body = {
1084- default_visibility : request ?. default_visibility ,
1085- custom : request ?. custom ,
1086- notification : request ?. notification ,
1087- } ;
1088-
1089- const response = await this . apiClient . sendRequest <
1090- StreamResponse < GetOrCreateFeedGroupResponse >
1091- > (
1092- 'POST' ,
1093- '/api/v2/feeds/feed_groups/{feed_group_id}' ,
1094- undefined ,
1095- undefined ,
1096- body ,
1097- 'application/json' ,
1098- ) ;
1099-
1100- decoders . GetOrCreateFeedGroupResponse ?.( response . body ) ;
1101-
1102- return { ...response . body , metadata : response . metadata } ;
1103- }
1104-
1105- async updateFeedGroup (
1106- request : UpdateFeedGroupRequest & { feed_group_id : string } ,
1107- ) : Promise < StreamResponse < UpdateFeedGroupResponse > > {
1108- const pathParams = {
1109- feed_group_id : request ?. feed_group_id ,
1110- } ;
1111- const body = {
1112- activity_processors : request ?. activity_processors ,
1113- activity_selectors : request ?. activity_selectors ,
1114- aggregation : request ?. aggregation ,
1115- custom : request ?. custom ,
1116- notification : request ?. notification ,
1117- ranking : request ?. ranking ,
1118- } ;
1119-
1120- const response = await this . apiClient . sendRequest <
1121- StreamResponse < UpdateFeedGroupResponse >
1122- > (
1123- 'PUT' ,
1124- '/api/v2/feeds/feed_groups/{feed_group_id}' ,
1125- pathParams ,
1126- undefined ,
1127- body ,
1128- 'application/json' ,
1129- ) ;
1130-
1131- decoders . UpdateFeedGroupResponse ?.( response . body ) ;
1132-
1133- return { ...response . body , metadata : response . metadata } ;
1134- }
1135-
11361038 async deleteFeed ( request : {
11371039 feed_group_id : string ;
11381040 feed_id : string ;
@@ -1476,6 +1378,82 @@ export class FeedsApi {
14761378 return { ...response . body , metadata : response . metadata } ;
14771379 }
14781380
1381+ async deleteFeedGroup ( ) : Promise < StreamResponse < DeleteFeedGroupResponse > > {
1382+ const response = await this . apiClient . sendRequest <
1383+ StreamResponse < DeleteFeedGroupResponse >
1384+ > ( 'DELETE' , '/api/v2/feeds/feed_groups/{id}' , undefined , undefined ) ;
1385+
1386+ decoders . DeleteFeedGroupResponse ?.( response . body ) ;
1387+
1388+ return { ...response . body , metadata : response . metadata } ;
1389+ }
1390+
1391+ async getFeedGroup ( ) : Promise < StreamResponse < GetFeedGroupResponse > > {
1392+ const response = await this . apiClient . sendRequest <
1393+ StreamResponse < GetFeedGroupResponse >
1394+ > ( 'GET' , '/api/v2/feeds/feed_groups/{id}' , undefined , undefined ) ;
1395+
1396+ decoders . GetFeedGroupResponse ?.( response . body ) ;
1397+
1398+ return { ...response . body , metadata : response . metadata } ;
1399+ }
1400+
1401+ async getOrCreateFeedGroup (
1402+ request : GetOrCreateFeedGroupRequest & { id : string } ,
1403+ ) : Promise < StreamResponse < GetOrCreateFeedGroupResponse > > {
1404+ const pathParams = {
1405+ id : request ?. id ,
1406+ } ;
1407+ const body = {
1408+ default_visibility : request ?. default_visibility ,
1409+ custom : request ?. custom ,
1410+ notification : request ?. notification ,
1411+ } ;
1412+
1413+ const response = await this . apiClient . sendRequest <
1414+ StreamResponse < GetOrCreateFeedGroupResponse >
1415+ > (
1416+ 'POST' ,
1417+ '/api/v2/feeds/feed_groups/{id}' ,
1418+ pathParams ,
1419+ undefined ,
1420+ body ,
1421+ 'application/json' ,
1422+ ) ;
1423+
1424+ decoders . GetOrCreateFeedGroupResponse ?.( response . body ) ;
1425+
1426+ return { ...response . body , metadata : response . metadata } ;
1427+ }
1428+
1429+ async updateFeedGroup (
1430+ request ?: UpdateFeedGroupRequest ,
1431+ ) : Promise < StreamResponse < UpdateFeedGroupResponse > > {
1432+ const body = {
1433+ activity_processors : request ?. activity_processors ,
1434+ activity_selectors : request ?. activity_selectors ,
1435+ aggregation : request ?. aggregation ,
1436+ custom : request ?. custom ,
1437+ notification : request ?. notification ,
1438+ ranking : request ?. ranking ,
1439+ } ;
1440+
1441+ const response = await this . apiClient . sendRequest <
1442+ StreamResponse < UpdateFeedGroupResponse >
1443+ > (
1444+ 'PUT' ,
1445+ '/api/v2/feeds/feed_groups/{id}' ,
1446+ undefined ,
1447+ undefined ,
1448+ body ,
1449+ 'application/json' ,
1450+ ) ;
1451+
1452+ decoders . UpdateFeedGroupResponse ?.( response . body ) ;
1453+
1454+ return { ...response . body , metadata : response . metadata } ;
1455+ }
1456+
14791457 async listFeedViews ( ) : Promise < StreamResponse < ListFeedViewsResponse > > {
14801458 const response = await this . apiClient . sendRequest <
14811459 StreamResponse < ListFeedViewsResponse >
0 commit comments