Skip to content

Commit dcdfea8

Browse files
authored
feat: update to API spec v163.0.0 (#96)
1 parent 1b9f41b commit dcdfea8

File tree

3 files changed

+31
-3
lines changed

3 files changed

+31
-3
lines changed

src/gen/model-decoders/index.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -736,6 +736,8 @@ decoders.FullUserResponse = (input?: Record<string, any>) => {
736736

737737
mutes: { type: 'UserMuteResponse', isSingle: false },
738738

739+
ban_expires: { type: 'DatetimeType', isSingle: true },
740+
739741
deactivated_at: { type: 'DatetimeType', isSingle: true },
740742

741743
deleted_at: { type: 'DatetimeType', isSingle: true },
@@ -1608,6 +1610,8 @@ decoders.ReviewQueueItem = (input?: Record<string, any>) => {
16081610
feeds_v2_reaction: { type: 'Reaction', isSingle: true },
16091611

16101612
message: { type: 'Message', isSingle: true },
1613+
1614+
reaction: { type: 'Reaction', isSingle: true },
16111615
};
16121616
return decode(typeMappings, input);
16131617
};
@@ -1635,6 +1639,8 @@ decoders.ReviewQueueItemResponse = (input?: Record<string, any>) => {
16351639
feeds_v2_reaction: { type: 'Reaction', isSingle: true },
16361640

16371641
message: { type: 'MessageResponse', isSingle: true },
1642+
1643+
reaction: { type: 'Reaction', isSingle: true },
16381644
};
16391645
return decode(typeMappings, input);
16401646
};

src/gen/models/index.ts

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -672,6 +672,10 @@ export interface BlockedUserResponse {
672672
user: UserResponse;
673673
}
674674

675+
export interface BodyguardImageAnalysisConfig {
676+
rules?: BodyguardRule[];
677+
}
678+
675679
export interface BodyguardRule {
676680
action:
677681
| 'flag'
@@ -3467,8 +3471,6 @@ export interface ExternalStorageResponse {
34673471
export interface FPSStats {
34683472
average_fps: number;
34693473

3470-
harmonic_fps: number;
3471-
34723474
tracked: number;
34733475
}
34743476

@@ -3763,6 +3765,8 @@ export interface FullUserResponse {
37633765

37643766
custom: Record<string, any>;
37653767

3768+
ban_expires?: Date;
3769+
37663770
deactivated_at?: Date;
37673771

37683772
deleted_at?: Date;
@@ -3867,6 +3871,8 @@ export interface GetCallStatsResponse {
38673871

38683872
duration: string;
38693873

3874+
is_truncated_report: boolean;
3875+
38703876
max_freezes_duration_seconds: number;
38713877

38723878
max_participants: number;
@@ -7015,6 +7021,8 @@ export interface ReviewQueueItem {
70157021

70167022
reviewed_at: NullTime;
70177023

7024+
activity?: EnrichedActivity;
7025+
70187026
assigned_to?: User;
70197027

70207028
entity_creator?: EntityCreator;
@@ -7026,6 +7034,8 @@ export interface ReviewQueueItem {
70267034
message?: Message;
70277035

70287036
moderation_payload?: ModerationPayload;
7037+
7038+
reaction?: Reaction;
70297039
}
70307040

70317041
export interface ReviewQueueItemResponse {
@@ -7065,6 +7075,8 @@ export interface ReviewQueueItemResponse {
70657075

70667076
teams?: string[];
70677077

7078+
activity?: EnrichedActivity;
7079+
70687080
assigned_to?: UserResponse;
70697081

70707082
entity_creator?: EntityCreatorResponse;
@@ -7076,6 +7088,8 @@ export interface ReviewQueueItemResponse {
70767088
message?: MessageResponse;
70777089

70787090
moderation_payload?: ModerationPayload;
7091+
7092+
reaction?: Reaction;
70797093
}
70807094

70817095
export interface RingSettings {
@@ -7961,7 +7975,8 @@ export interface TranslateMessageRequest {
79617975
| 'uk'
79627976
| 'ur'
79637977
| 'vi'
7964-
| 'lt';
7978+
| 'lt'
7979+
| 'ht';
79657980
}
79667981

79677982
export interface TruncateChannelRequest {
@@ -8677,6 +8692,8 @@ export interface UpsertConfigRequest {
86778692

86788693
ai_image_config?: AIImageConfig;
86798694

8695+
ai_image_lite_config?: BodyguardImageAnalysisConfig;
8696+
86808697
ai_text_config?: AITextConfig;
86818698

86828699
ai_video_config?: AIVideoConfig;
@@ -9204,6 +9221,8 @@ export interface UserStats {
92049221

92059222
info: UserInfoResponse;
92069223

9224+
feedback?: string;
9225+
92079226
rating?: number;
92089227
}
92099228

@@ -9260,6 +9279,8 @@ export interface UserUpdatedEvent {
92609279
}
92619280

92629281
export interface VelocityFilterConfig {
9282+
advanced_filters: boolean;
9283+
92639284
cascading_actions: boolean;
92649285

92659286
cids_per_user: number;

src/gen/moderation/ModerationApi.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ export class ModerationApi extends BaseApi {
123123
team: request?.team,
124124
user_id: request?.user_id,
125125
ai_image_config: request?.ai_image_config,
126+
ai_image_lite_config: request?.ai_image_lite_config,
126127
ai_text_config: request?.ai_text_config,
127128
ai_video_config: request?.ai_video_config,
128129
automod_platform_circumvention_config:

0 commit comments

Comments
 (0)