Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions src/gen/feeds/FeedsApi.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -342,9 +342,6 @@ export class FeedsApi {
};
const body = {
hide: request?.hide,
mute_user: request?.mute_user,
reason: request?.reason,
report: request?.report,
show_less: request?.show_less,
show_more: request?.show_more,
user_id: request?.user_id,
Expand Down
34 changes: 33 additions & 1 deletion src/gen/model-decoders/decoders.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -87,6 +87,17 @@ decoders.ActivityDeletedEvent = (input?: Record<string, any>) => {
return decode(typeMappings, input);
};

decoders.ActivityFeedbackEvent = (input?: Record<string, any>) => {
const typeMappings: TypeMapping = {
created_at: { type: 'DatetimeType', isSingle: true },

received_at: { type: 'DatetimeType', isSingle: true },

user: { type: 'UserResponseCommonFields', isSingle: true },
};
return decode(typeMappings, input);
};

decoders.ActivityMarkEvent = (input?: Record<string, any>) => {
const typeMappings: TypeMapping = {
created_at: { type: 'DatetimeType', isSingle: true },
Expand DownExpand Up@@ -2009,6 +2020,23 @@ decoders.FeedResponse = (input?: Record<string, any>) => {
return decode(typeMappings, input);
};

decoders.FeedSuggestionResponse = (input?: Record<string, any>) => {
const typeMappings: TypeMapping = {
created_at: { type: 'DatetimeType', isSingle: true },

updated_at: { type: 'DatetimeType', isSingle: true },

created_by: { type: 'UserResponse', isSingle: true },

deleted_at: { type: 'DatetimeType', isSingle: true },

own_follows: { type: 'FollowResponse', isSingle: false },

own_membership: { type: 'FeedMemberResponse', isSingle: true },
};
return decode(typeMappings, input);
};

decoders.FeedUpdatedEvent = (input?: Record<string, any>) => {
const typeMappings: TypeMapping = {
created_at: { type: 'DatetimeType', isSingle: true },
Expand DownExpand Up@@ -2293,7 +2321,7 @@ decoders.GetFeedViewResponse = (input?: Record<string, any>) => {

decoders.GetFollowSuggestionsResponse = (input?: Record<string, any>) => {
const typeMappings: TypeMapping = {
suggestions: { type: 'FeedResponse', isSingle: false },
suggestions: { type: 'FeedSuggestionResponse', isSingle: false },
};
return decode(typeMappings, input);
};
Expand DownExpand Up@@ -3742,6 +3770,10 @@ decoders.ReviewQueueItemResponse = (input?: Record<string, any>) => {

feeds_v2_reaction: { type: 'Reaction', isSingle: true },

feeds_v3_activity: { type: 'ActivityResponse', isSingle: true },

feeds_v3_comment: { type: 'CommentResponse', isSingle: true },

message: { type: 'MessageResponse', isSingle: true },

reaction: { type: 'Reaction', isSingle: true },
Expand Down
121 changes: 110 additions & 11 deletions src/gen/models/index.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -278,14 +278,36 @@ export interface ActivityDeletedEvent {
user?: UserResponseCommonFields;
}

export interface ActivityFeedbackRequest {
hide?: boolean;
export interface ActivityFeedbackEvent {
created_at: Date;

mute_user?: boolean;
activity_feedback: ActivityFeedbackEventPayload;

reason?: string;
custom: Record<string, any>;

type: string;

received_at?: Date;

user?: UserResponseCommonFields;
}

export interface ActivityFeedbackEventPayload {
action: string;

activity_id: string;

created_at: Date;

updated_at: Date;

value: string;

user: UserResponse;
}

report?: boolean;
export interface ActivityFeedbackRequest {
hide?: boolean;

show_less?: boolean;

Expand DownExpand Up@@ -559,6 +581,8 @@ export interface ActivityResponse {

is_watched?: boolean;

moderation_action?: string;

text?: string;

visibility_tag?: string;
Expand DownExpand Up@@ -587,6 +611,8 @@ export interface ActivitySelectorConfig {

cutoff_time?: string;

cutoff_window?: string;

min_popularity?: number;

sort?: SortParamRequest[];
Expand All@@ -599,6 +625,8 @@ export interface ActivitySelectorConfigResponse {

cutoff_time?: Date;

cutoff_window?: string;

min_popularity?: number;

sort?: SortParamRequest[];
Expand DownExpand Up@@ -1298,6 +1326,10 @@ export interface BanResponse {
user?: UserResponse;
}

export interface BlockActionRequest {
reason?: string;
}

export interface BlockListConfig {
async?: boolean;

Expand DownExpand Up@@ -2428,15 +2460,15 @@ export interface CallTranscriptionStoppedEvent {
}

export interface CallType {
app_pk: number;
app: number;

created_at: Date;

external_storage: string;
id: number;

name: string;

pk: number;
recording_external_storage: string;

updated_at: Date;

Expand DownExpand Up@@ -4433,6 +4465,12 @@ export interface DeleteCommentReactionResponse {
reaction: FeedsReactionResponse;
}

export interface DeleteCommentRequest {
hard_delete?: boolean;

reason?: string;
}

export interface DeleteCommentResponse {
duration: string;

Expand DownExpand Up@@ -5014,7 +5052,7 @@ export interface FeedGroup {

default_visibility: string;

id: string;
group_id: string;

updated_at: Date;

Expand DownExpand Up@@ -5297,6 +5335,52 @@ export interface FeedResponse {
own_membership?: FeedMemberResponse;
}

export interface FeedSuggestionResponse {
created_at: Date;

description: string;

feed: string;

follower_count: number;

following_count: number;

group_id: string;

id: string;

member_count: number;

name: string;

pin_count: number;

updated_at: Date;

created_by: UserResponse;

deleted_at?: Date;

reason?: string;

recommendation_score?: number;

visibility?: string;

filter_tags?: string[];

own_capabilities?: FeedOwnCapability[];

own_follows?: FollowResponse[];

algorithm_scores?: Record<string, number>;

custom?: Record<string, any>;

own_membership?: FeedMemberResponse;
}

export interface FeedUpdatedEvent {
created_at: Date;

Expand DownExpand Up@@ -6030,7 +6114,9 @@ export interface GetFeedsRateLimitsResponse {
export interface GetFollowSuggestionsResponse {
duration: string;

suggestions: FeedResponse[];
suggestions: FeedSuggestionResponse[];

algorithm_used?: string;
}

export interface GetImportResponse {
Expand DownExpand Up@@ -8878,6 +8964,8 @@ export interface PushProvider {

huawei_app_secret?: string;

huawei_host?: string;

xiaomi_app_secret?: string;

xiaomi_package_name?: string;
Expand DownExpand Up@@ -10426,6 +10514,10 @@ export interface ReviewQueueItemResponse {

feeds_v2_reaction?: Reaction;

feeds_v3_activity?: ActivityResponse;

feeds_v3_comment?: CommentResponse;

message?: MessageResponse;

moderation_payload?: ModerationPayload;
Expand DownExpand Up@@ -11254,13 +11346,15 @@ export interface SubmitActionRequest {
| 'mark_reviewed'
| 'delete_message'
| 'delete_activity'
| 'delete_comment'
| 'delete_reaction'
| 'ban'
| 'custom'
| 'unban'
| 'restore'
| 'delete_user'
| 'unblock'
| 'block'
| 'shadow_block'
| 'unmask'
| 'kick_user'
Expand All@@ -11272,10 +11366,14 @@ export interface SubmitActionRequest {

ban?: BanActionRequest;

block?: BlockActionRequest;

custom?: CustomActionRequest;

delete_activity?: DeleteActivityRequest;

delete_comment?: DeleteCommentRequest;

delete_message?: DeleteMessageRequest;

delete_reaction?: DeleteReactionRequest;
Expand DownExpand Up@@ -12978,7 +13076,7 @@ export interface UpsertPushTemplateRequest {
| 'feeds.follow.created'
| 'feeds.notification_feed.updated';

push_provider_type: 'firebase' | 'apn';
push_provider_type: 'firebase' | 'apn' | 'huawei' | 'xiaomi';

enable_push?: boolean;

Expand DownExpand Up@@ -13701,6 +13799,7 @@ export type WebhookEvent =
| ({ type: 'export.users.success' } & AsyncExportUsersEvent)
| ({ type: 'feeds.activity.added' } & ActivityAddedEvent)
| ({ type: 'feeds.activity.deleted' } & ActivityDeletedEvent)
| ({ type: 'feeds.activity.feedback' } & ActivityFeedbackEvent)
| ({ type: 'feeds.activity.marked' } & ActivityMarkEvent)
| ({ type: 'feeds.activity.pinned' } & ActivityPinnedEvent)
| ({ type: 'feeds.activity.reaction.added' } & ActivityReactionAddedEvent)
Expand Down
2 changes: 2 additions & 0 deletions src/gen/moderation/ModerationApi.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -584,8 +584,10 @@ export class ModerationApi {
item_id: request?.item_id,
user_id: request?.user_id,
ban: request?.ban,
block: request?.block,
custom: request?.custom,
delete_activity: request?.delete_activity,
delete_comment: request?.delete_comment,
delete_message: request?.delete_message,
delete_reaction: request?.delete_reaction,
delete_user: request?.delete_user,
Expand Down