Skip to content

Commit dffd386

Browse files
committed
Update open api spec
1 parent 59dc397 commit dffd386

File tree

1 file changed

+21
-26
lines changed

1 file changed

+21
-26
lines changed

src/gen/feeds/FeedsApi.ts

Lines changed: 21 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -819,42 +819,42 @@ export class FeedsApi {
819819
}
820820

821821
async deleteComment(request: {
822-
comment_id: string;
822+
id: string;
823823
}): Promise<StreamResponse<DeleteCommentResponse>> {
824824
const pathParams = {
825-
comment_id: request?.comment_id,
825+
id: request?.id,
826826
};
827827

828828
const response = await this.apiClient.sendRequest<
829829
StreamResponse<DeleteCommentResponse>
830-
>('DELETE', '/api/v2/feeds/comments/{comment_id}', pathParams, undefined);
830+
>('DELETE', '/api/v2/feeds/comments/{id}', pathParams, undefined);
831831

832832
decoders.DeleteCommentResponse?.(response.body);
833833

834834
return { ...response.body, metadata: response.metadata };
835835
}
836836

837837
async getComment(request: {
838-
comment_id: string;
838+
id: string;
839839
}): Promise<StreamResponse<GetCommentResponse>> {
840840
const pathParams = {
841-
comment_id: request?.comment_id,
841+
id: request?.id,
842842
};
843843

844844
const response = await this.apiClient.sendRequest<
845845
StreamResponse<GetCommentResponse>
846-
>('GET', '/api/v2/feeds/comments/{comment_id}', pathParams, undefined);
846+
>('GET', '/api/v2/feeds/comments/{id}', pathParams, undefined);
847847

848848
decoders.GetCommentResponse?.(response.body);
849849

850850
return { ...response.body, metadata: response.metadata };
851851
}
852852

853853
async updateComment(
854-
request: UpdateCommentRequest & { comment_id: string },
854+
request: UpdateCommentRequest & { id: string },
855855
): Promise<StreamResponse<UpdateCommentResponse>> {
856856
const pathParams = {
857-
comment_id: request?.comment_id,
857+
id: request?.id,
858858
};
859859
const body = {
860860
comment: request?.comment,
@@ -865,7 +865,7 @@ export class FeedsApi {
865865
StreamResponse<UpdateCommentResponse>
866866
>(
867867
'PATCH',
868-
'/api/v2/feeds/comments/{comment_id}',
868+
'/api/v2/feeds/comments/{id}',
869869
pathParams,
870870
undefined,
871871
body,
@@ -878,10 +878,10 @@ export class FeedsApi {
878878
}
879879

880880
async addCommentReaction(
881-
request: AddCommentReactionRequest & { comment_id: string },
881+
request: AddCommentReactionRequest & { id: string },
882882
): Promise<StreamResponse<AddCommentReactionResponse>> {
883883
const pathParams = {
884-
comment_id: request?.comment_id,
884+
id: request?.id,
885885
};
886886
const body = {
887887
type: request?.type,
@@ -895,7 +895,7 @@ export class FeedsApi {
895895
StreamResponse<AddCommentReactionResponse>
896896
>(
897897
'POST',
898-
'/api/v2/feeds/comments/{comment_id}/reactions',
898+
'/api/v2/feeds/comments/{id}/reactions',
899899
pathParams,
900900
undefined,
901901
body,
@@ -908,10 +908,10 @@ export class FeedsApi {
908908
}
909909

910910
async queryCommentReactions(
911-
request: QueryCommentReactionsRequest & { comment_id: string },
911+
request: QueryCommentReactionsRequest & { id: string },
912912
): Promise<StreamResponse<QueryCommentReactionsResponse>> {
913913
const pathParams = {
914-
comment_id: request?.comment_id,
914+
id: request?.id,
915915
};
916916
const body = {
917917
limit: request?.limit,
@@ -925,7 +925,7 @@ export class FeedsApi {
925925
StreamResponse<QueryCommentReactionsResponse>
926926
>(
927927
'POST',
928-
'/api/v2/feeds/comments/{comment_id}/reactions/query',
928+
'/api/v2/feeds/comments/{id}/reactions/query',
929929
pathParams,
930930
undefined,
931931
body,
@@ -938,23 +938,23 @@ export class FeedsApi {
938938
}
939939

940940
async deleteCommentReaction(request: {
941-
comment_id: string;
941+
id: string;
942942
type: string;
943943
user_id?: string;
944944
}): Promise<StreamResponse<DeleteCommentReactionResponse>> {
945945
const queryParams = {
946946
user_id: request?.user_id,
947947
};
948948
const pathParams = {
949-
comment_id: request?.comment_id,
949+
id: request?.id,
950950
type: request?.type,
951951
};
952952

953953
const response = await this.apiClient.sendRequest<
954954
StreamResponse<DeleteCommentReactionResponse>
955955
>(
956956
'DELETE',
957-
'/api/v2/feeds/comments/{comment_id}/reactions/{type}',
957+
'/api/v2/feeds/comments/{id}/reactions/{type}',
958958
pathParams,
959959
queryParams,
960960
);
@@ -965,7 +965,7 @@ export class FeedsApi {
965965
}
966966

967967
async getCommentReplies(request: {
968-
comment_id: string;
968+
id: string;
969969
depth?: number;
970970
sort?: string;
971971
replies_limit?: number;
@@ -982,17 +982,12 @@ export class FeedsApi {
982982
next: request?.next,
983983
};
984984
const pathParams = {
985-
comment_id: request?.comment_id,
985+
id: request?.id,
986986
};
987987

988988
const response = await this.apiClient.sendRequest<
989989
StreamResponse<GetCommentRepliesResponse>
990-
>(
991-
'GET',
992-
'/api/v2/feeds/comments/{comment_id}/replies',
993-
pathParams,
994-
queryParams,
995-
);
990+
>('GET', '/api/v2/feeds/comments/{id}/replies', pathParams, queryParams);
996991

997992
decoders.GetCommentRepliesResponse?.(response.body);
998993

0 commit comments

Comments
 (0)