File tree Expand file tree Collapse file tree 2 files changed +38
-0
lines changed
Expand file tree Collapse file tree 2 files changed +38
-0
lines changed Original file line number Diff line number Diff line change @@ -112,6 +112,8 @@ import {
112112 UpdateFeedResponse ,
113113 UpdateFeedViewRequest ,
114114 UpdateFeedViewResponse ,
115+ UpdateFeedVisibilityRequest ,
116+ UpdateFeedVisibilityResponse ,
115117 UpdateFollowRequest ,
116118 UpdateFollowResponse ,
117119 UpdateMembershipLevelRequest ,
@@ -1657,6 +1659,32 @@ export class FeedsApi {
16571659 return { ...response . body , metadata : response . metadata } ;
16581660 }
16591661
1662+ async updateFeedVisibility (
1663+ request : UpdateFeedVisibilityRequest & { name : string } ,
1664+ ) : Promise < StreamResponse < UpdateFeedVisibilityResponse > > {
1665+ const pathParams = {
1666+ name : request ?. name ,
1667+ } ;
1668+ const body = {
1669+ grants : request ?. grants ,
1670+ } ;
1671+
1672+ const response = await this . apiClient . sendRequest <
1673+ StreamResponse < UpdateFeedVisibilityResponse >
1674+ > (
1675+ 'PUT' ,
1676+ '/api/v2/feeds/feed_visibilities/{name}' ,
1677+ pathParams ,
1678+ undefined ,
1679+ body ,
1680+ 'application/json' ,
1681+ ) ;
1682+
1683+ decoders . UpdateFeedVisibilityResponse ?.( response . body ) ;
1684+
1685+ return { ...response . body , metadata : response . metadata } ;
1686+ }
1687+
16601688 async createFeedsBatch (
16611689 request : CreateFeedsBatchRequest ,
16621690 ) : Promise < StreamResponse < CreateFeedsBatchResponse > > {
Original file line number Diff line number Diff line change @@ -12614,6 +12614,16 @@ export interface UpdateFeedViewResponse {
1261412614 feed_view : FeedViewResponse ;
1261512615}
1261612616
12617+ export interface UpdateFeedVisibilityRequest {
12618+ grants ?: Record < string , string [ ] > ;
12619+ }
12620+
12621+ export interface UpdateFeedVisibilityResponse {
12622+ duration : string ;
12623+
12624+ feed_visibility : FeedVisibilityResponse ;
12625+ }
12626+
1261712627export interface UpdateFollowRequest {
1261812628 source : string ;
1261912629
You can’t perform that action at this time.
0 commit comments