Skip to content

Commit 0e0f3c5

Browse files
committed
Update open api spec
1 parent 144295c commit 0e0f3c5

File tree

2 files changed

+23
-8
lines changed

2 files changed

+23
-8
lines changed

src/gen/feeds/FeedsApi.ts

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1009,7 +1009,7 @@ export class FeedsApi {
10091009
request: CreateFeedGroupRequest,
10101010
): Promise<StreamResponse<CreateFeedGroupResponse>> {
10111011
const body = {
1012-
feed_group_id: request?.feed_group_id,
1012+
id: request?.id,
10131013
default_visibility: request?.default_visibility,
10141014
activity_processors: request?.activity_processors,
10151015
activity_selectors: request?.activity_selectors,
@@ -1378,20 +1378,32 @@ export class FeedsApi {
13781378
return { ...response.body, metadata: response.metadata };
13791379
}
13801380

1381-
async deleteFeedGroup(): Promise<StreamResponse<DeleteFeedGroupResponse>> {
1381+
async deleteFeedGroup(request: {
1382+
id: string;
1383+
}): Promise<StreamResponse<DeleteFeedGroupResponse>> {
1384+
const pathParams = {
1385+
id: request?.id,
1386+
};
1387+
13821388
const response = await this.apiClient.sendRequest<
13831389
StreamResponse<DeleteFeedGroupResponse>
1384-
>('DELETE', '/api/v2/feeds/feed_groups/{id}', undefined, undefined);
1390+
>('DELETE', '/api/v2/feeds/feed_groups/{id}', pathParams, undefined);
13851391

13861392
decoders.DeleteFeedGroupResponse?.(response.body);
13871393

13881394
return { ...response.body, metadata: response.metadata };
13891395
}
13901396

1391-
async getFeedGroup(): Promise<StreamResponse<GetFeedGroupResponse>> {
1397+
async getFeedGroup(request: {
1398+
id: string;
1399+
}): Promise<StreamResponse<GetFeedGroupResponse>> {
1400+
const pathParams = {
1401+
id: request?.id,
1402+
};
1403+
13921404
const response = await this.apiClient.sendRequest<
13931405
StreamResponse<GetFeedGroupResponse>
1394-
>('GET', '/api/v2/feeds/feed_groups/{id}', undefined, undefined);
1406+
>('GET', '/api/v2/feeds/feed_groups/{id}', pathParams, undefined);
13951407

13961408
decoders.GetFeedGroupResponse?.(response.body);
13971409

@@ -1427,8 +1439,11 @@ export class FeedsApi {
14271439
}
14281440

14291441
async updateFeedGroup(
1430-
request?: UpdateFeedGroupRequest,
1442+
request: UpdateFeedGroupRequest & { id: string },
14311443
): Promise<StreamResponse<UpdateFeedGroupResponse>> {
1444+
const pathParams = {
1445+
id: request?.id,
1446+
};
14321447
const body = {
14331448
activity_processors: request?.activity_processors,
14341449
activity_selectors: request?.activity_selectors,
@@ -1443,7 +1458,7 @@ export class FeedsApi {
14431458
>(
14441459
'PUT',
14451460
'/api/v2/feeds/feed_groups/{id}',
1446-
undefined,
1461+
pathParams,
14471462
undefined,
14481463
body,
14491464
'application/json',

src/gen/models/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4062,7 +4062,7 @@ export interface CreateExternalStorageResponse {
40624062
}
40634063

40644064
export interface CreateFeedGroupRequest {
4065-
feed_group_id: string;
4065+
id: string;
40664066

40674067
default_visibility?:
40684068
| 'public'

0 commit comments

Comments
 (0)