Skip to content

Commit 9d9cf0c

Browse files
feat: [FEEDS-1039] regenerate SDK (#238)
1 parent d448d6b commit 9d9cf0c

File tree

8 files changed

+974
-57
lines changed

8 files changed

+974
-57
lines changed

src/gen/chat/ChatApi.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ import {
5555
QueryChannelsResponse,
5656
QueryDraftsRequest,
5757
QueryDraftsResponse,
58+
QueryFutureChannelBansPayload,
59+
QueryFutureChannelBansResponse,
5860
QueryMembersPayload,
5961
QueryMessageFlagsPayload,
6062
QueryMessageFlagsResponse,
@@ -233,10 +235,13 @@ export class ChatApi {
233235
member_limit: request?.member_limit,
234236
message_limit: request?.message_limit,
235237
offset: request?.offset,
238+
predefined_filter: request?.predefined_filter,
236239
state: request?.state,
237240
user_id: request?.user_id,
238241
sort: request?.sort,
239242
filter_conditions: request?.filter_conditions,
243+
filter_values: request?.filter_values,
244+
sort_values: request?.sort_values,
240245
user: request?.user,
241246
};
242247

@@ -1887,6 +1892,22 @@ export class ChatApi {
18871892
return { ...response.body, metadata: response.metadata };
18881893
}
18891894

1895+
async queryFutureChannelBans(request?: {
1896+
payload?: QueryFutureChannelBansPayload;
1897+
}): Promise<StreamResponse<QueryFutureChannelBansResponse>> {
1898+
const queryParams = {
1899+
payload: request?.payload,
1900+
};
1901+
1902+
const response = await this.apiClient.sendRequest<
1903+
StreamResponse<QueryFutureChannelBansResponse>
1904+
>('GET', '/api/v2/chat/query_future_channel_bans', undefined, queryParams);
1905+
1906+
decoders.QueryFutureChannelBansResponse?.(response.body);
1907+
1908+
return { ...response.body, metadata: response.metadata };
1909+
}
1910+
18901911
async queryReminders(
18911912
request?: QueryRemindersRequest,
18921913
): Promise<StreamResponse<QueryRemindersResponse>> {

src/gen/common/CommonApi.ts

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ import {
2020
CreateImportResponse,
2121
CreateImportURLRequest,
2222
CreateImportURLResponse,
23+
CreateImportV2TaskRequest,
24+
CreateImportV2TaskResponse,
2325
CreatePollOptionRequest,
2426
CreatePollRequest,
2527
CreateRoleRequest,
@@ -29,6 +31,7 @@ import {
2931
DeactivateUsersRequest,
3032
DeactivateUsersResponse,
3133
DeleteExternalStorageResponse,
34+
DeleteImportV2TaskResponse,
3235
DeleteUsersRequest,
3336
DeleteUsersResponse,
3437
ExportUserResponse,
@@ -41,6 +44,7 @@ import {
4144
GetBlockedUsersResponse,
4245
GetCustomPermissionResponse,
4346
GetImportResponse,
47+
GetImportV2TaskResponse,
4448
GetOGResponse,
4549
GetPushTemplatesResponse,
4650
GetRateLimitsResponse,
@@ -50,6 +54,7 @@ import {
5054
ListBlockListResponse,
5155
ListDevicesResponse,
5256
ListExternalStorageResponse,
57+
ListImportV2TasksResponse,
5358
ListImportsResponse,
5459
ListPermissionsResponse,
5560
ListPushProvidersResponse,
@@ -636,6 +641,80 @@ export class CommonApi {
636641
return { ...response.body, metadata: response.metadata };
637642
}
638643

644+
async listImportV2Tasks(request?: {
645+
state?: number;
646+
}): Promise<StreamResponse<ListImportV2TasksResponse>> {
647+
const queryParams = {
648+
state: request?.state,
649+
};
650+
651+
const response = await this.apiClient.sendRequest<
652+
StreamResponse<ListImportV2TasksResponse>
653+
>('GET', '/api/v2/imports/v2', undefined, queryParams);
654+
655+
decoders.ListImportV2TasksResponse?.(response.body);
656+
657+
return { ...response.body, metadata: response.metadata };
658+
}
659+
660+
async createImportV2Task(
661+
request: CreateImportV2TaskRequest,
662+
): Promise<StreamResponse<CreateImportV2TaskResponse>> {
663+
const body = {
664+
product: request?.product,
665+
settings: request?.settings,
666+
user_id: request?.user_id,
667+
user: request?.user,
668+
};
669+
670+
const response = await this.apiClient.sendRequest<
671+
StreamResponse<CreateImportV2TaskResponse>
672+
>(
673+
'POST',
674+
'/api/v2/imports/v2',
675+
undefined,
676+
undefined,
677+
body,
678+
'application/json',
679+
);
680+
681+
decoders.CreateImportV2TaskResponse?.(response.body);
682+
683+
return { ...response.body, metadata: response.metadata };
684+
}
685+
686+
async deleteImportV2Task(request: {
687+
id: string;
688+
}): Promise<StreamResponse<DeleteImportV2TaskResponse>> {
689+
const pathParams = {
690+
id: request?.id,
691+
};
692+
693+
const response = await this.apiClient.sendRequest<
694+
StreamResponse<DeleteImportV2TaskResponse>
695+
>('DELETE', '/api/v2/imports/v2/{id}', pathParams, undefined);
696+
697+
decoders.DeleteImportV2TaskResponse?.(response.body);
698+
699+
return { ...response.body, metadata: response.metadata };
700+
}
701+
702+
async getImportV2Task(request: {
703+
id: string;
704+
}): Promise<StreamResponse<GetImportV2TaskResponse>> {
705+
const pathParams = {
706+
id: request?.id,
707+
};
708+
709+
const response = await this.apiClient.sendRequest<
710+
StreamResponse<GetImportV2TaskResponse>
711+
>('GET', '/api/v2/imports/v2/{id}', pathParams, undefined);
712+
713+
decoders.GetImportV2TaskResponse?.(response.body);
714+
715+
return { ...response.body, metadata: response.metadata };
716+
}
717+
639718
async getImport(request: {
640719
id: string;
641720
}): Promise<StreamResponse<GetImportResponse>> {

src/gen/feeds/FeedsApi.ts

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,12 +148,14 @@ export class FeedsApi {
148148
const body = {
149149
type: request?.type,
150150
feeds: request?.feeds,
151+
create_notification_activity: request?.create_notification_activity,
151152
expires_at: request?.expires_at,
152153
id: request?.id,
153154
parent_id: request?.parent_id,
154155
poll_id: request?.poll_id,
155156
restrict_replies: request?.restrict_replies,
156157
skip_enrich_url: request?.skip_enrich_url,
158+
skip_push: request?.skip_push,
157159
text: request?.text,
158160
user_id: request?.user_id,
159161
visibility: request?.visibility,
@@ -504,9 +506,11 @@ export class FeedsApi {
504506
async deleteActivityReaction(request: {
505507
activity_id: string;
506508
type: string;
509+
delete_notification_activity?: boolean;
507510
user_id?: string;
508511
}): Promise<StreamResponse<DeleteActivityReactionResponse>> {
509512
const queryParams = {
513+
delete_notification_activity: request?.delete_notification_activity,
510514
user_id: request?.user_id,
511515
};
512516
const pathParams = {
@@ -571,6 +575,7 @@ export class FeedsApi {
571575
id: request?.id,
572576
};
573577
const body = {
578+
handle_mention_notifications: request?.handle_mention_notifications,
574579
user_id: request?.user_id,
575580
unset: request?.unset,
576581
set: request?.set,
@@ -601,12 +606,14 @@ export class FeedsApi {
601606
};
602607
const body = {
603608
expires_at: request?.expires_at,
609+
handle_mention_notifications: request?.handle_mention_notifications,
604610
poll_id: request?.poll_id,
605611
restrict_replies: request?.restrict_replies,
606612
skip_enrich_url: request?.skip_enrich_url,
607613
text: request?.text,
608614
user_id: request?.user_id,
609615
visibility: request?.visibility,
616+
visibility_tag: request?.visibility_tag,
610617
attachments: request?.attachments,
611618
collection_refs: request?.collection_refs,
612619
feeds: request?.feeds,
@@ -851,6 +858,7 @@ export class FeedsApi {
851858
depth?: number;
852859
sort?: string;
853860
replies_limit?: number;
861+
user_id?: string;
854862
limit?: number;
855863
prev?: string;
856864
next?: string;
@@ -861,6 +869,7 @@ export class FeedsApi {
861869
depth: request?.depth,
862870
sort: request?.sort,
863871
replies_limit: request?.replies_limit,
872+
user_id: request?.user_id,
864873
limit: request?.limit,
865874
prev: request?.prev,
866875
next: request?.next,
@@ -963,9 +972,11 @@ export class FeedsApi {
963972
async deleteComment(request: {
964973
id: string;
965974
hard_delete?: boolean;
975+
delete_notification_activity?: boolean;
966976
}): Promise<StreamResponse<DeleteCommentResponse>> {
967977
const queryParams = {
968978
hard_delete: request?.hard_delete,
979+
delete_notification_activity: request?.delete_notification_activity,
969980
};
970981
const pathParams = {
971982
id: request?.id,
@@ -1004,10 +1015,12 @@ export class FeedsApi {
10041015
};
10051016
const body = {
10061017
comment: request?.comment,
1018+
handle_mention_notifications: request?.handle_mention_notifications,
10071019
skip_enrich_url: request?.skip_enrich_url,
10081020
skip_push: request?.skip_push,
10091021
user_id: request?.user_id,
10101022
attachments: request?.attachments,
1023+
mentioned_user_ids: request?.mentioned_user_ids,
10111024
custom: request?.custom,
10121025
user: request?.user,
10131026
};
@@ -1093,9 +1106,11 @@ export class FeedsApi {
10931106
async deleteCommentReaction(request: {
10941107
id: string;
10951108
type: string;
1109+
delete_notification_activity?: boolean;
10961110
user_id?: string;
10971111
}): Promise<StreamResponse<DeleteCommentReactionResponse>> {
10981112
const queryParams = {
1113+
delete_notification_activity: request?.delete_notification_activity,
10991114
user_id: request?.user_id,
11001115
};
11011116
const pathParams = {
@@ -1122,6 +1137,7 @@ export class FeedsApi {
11221137
depth?: number;
11231138
sort?: string;
11241139
replies_limit?: number;
1140+
user_id?: string;
11251141
limit?: number;
11261142
prev?: string;
11271143
next?: string;
@@ -1130,6 +1146,7 @@ export class FeedsApi {
11301146
depth: request?.depth,
11311147
sort: request?.sort,
11321148
replies_limit: request?.replies_limit,
1149+
user_id: request?.user_id,
11331150
limit: request?.limit,
11341151
prev: request?.prev,
11351152
next: request?.next,
@@ -2141,7 +2158,11 @@ export class FeedsApi {
21412158
async unfollow(request: {
21422159
source: string;
21432160
target: string;
2161+
delete_notification_activity?: boolean;
21442162
}): Promise<StreamResponse<UnfollowResponse>> {
2163+
const queryParams = {
2164+
delete_notification_activity: request?.delete_notification_activity,
2165+
};
21452166
const pathParams = {
21462167
source: request?.source,
21472168
target: request?.target,
@@ -2153,7 +2174,7 @@ export class FeedsApi {
21532174
'DELETE',
21542175
'/api/v2/feeds/follows/{source}/{target}',
21552176
pathParams,
2156-
undefined,
2177+
queryParams,
21572178
);
21582179

21592180
decoders.UnfollowResponse?.(response.body);
@@ -2294,6 +2315,7 @@ export class FeedsApi {
22942315
): Promise<StreamResponse<UnfollowBatchResponse>> {
22952316
const body = {
22962317
follows: request?.follows,
2318+
delete_notification_activity: request?.delete_notification_activity,
22972319
};
22982320

22992321
const response = await this.apiClient.sendRequest<
@@ -2317,6 +2339,7 @@ export class FeedsApi {
23172339
): Promise<StreamResponse<UnfollowBatchResponse>> {
23182340
const body = {
23192341
follows: request?.follows,
2342+
delete_notification_activity: request?.delete_notification_activity,
23202343
};
23212344

23222345
const response = await this.apiClient.sendRequest<

0 commit comments

Comments
 (0)