Skip to content

Commit 9cc7790

Browse files
chore: [FEEDS-991] regenerate SDK (#212)
1 parent be71407 commit 9cc7790

File tree

2 files changed

+112
-0
lines changed

2 files changed

+112
-0
lines changed

src/gen/model-decoders/decoders.ts

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1204,6 +1204,32 @@ decoders.Channel = (input?: Record<string, any>) => {
12041204
return decode(typeMappings, input);
12051205
};
12061206

1207+
decoders.ChannelBatchUpdatedCompletedEvent = (input?: Record<string, any>) => {
1208+
const typeMappings: TypeMapping = {
1209+
batch_created_at: { type: 'DatetimeType', isSingle: true },
1210+
1211+
created_at: { type: 'DatetimeType', isSingle: true },
1212+
1213+
finished_at: { type: 'DatetimeType', isSingle: true },
1214+
1215+
received_at: { type: 'DatetimeType', isSingle: true },
1216+
};
1217+
return decode(typeMappings, input);
1218+
};
1219+
1220+
decoders.ChannelBatchUpdatedStartedEvent = (input?: Record<string, any>) => {
1221+
const typeMappings: TypeMapping = {
1222+
batch_created_at: { type: 'DatetimeType', isSingle: true },
1223+
1224+
created_at: { type: 'DatetimeType', isSingle: true },
1225+
1226+
finished_at: { type: 'DatetimeType', isSingle: true },
1227+
1228+
received_at: { type: 'DatetimeType', isSingle: true },
1229+
};
1230+
return decode(typeMappings, input);
1231+
};
1232+
12071233
decoders.ChannelConfig = (input?: Record<string, any>) => {
12081234
const typeMappings: TypeMapping = {
12091235
created_at: { type: 'DatetimeType', isSingle: true },

src/gen/models/index.ts

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1980,6 +1980,8 @@ export interface CallRecording {
19801980

19811981
filename: string;
19821982

1983+
recording_type: string;
1984+
19831985
session_id: string;
19841986

19851987
start_time: Date;
@@ -2801,6 +2803,54 @@ export interface Channel {
28012803
truncated_by?: User;
28022804
}
28032805

2806+
export interface ChannelBatchUpdatedCompletedEvent {
2807+
batch_created_at: Date;
2808+
2809+
created_at: Date;
2810+
2811+
finished_at: Date;
2812+
2813+
operation: string;
2814+
2815+
status: string;
2816+
2817+
success_channels_count: number;
2818+
2819+
task_id: string;
2820+
2821+
failed_channels: FailedChannelUpdates[];
2822+
2823+
custom: Record<string, any>;
2824+
2825+
type: string;
2826+
2827+
received_at?: Date;
2828+
}
2829+
2830+
export interface ChannelBatchUpdatedStartedEvent {
2831+
batch_created_at: Date;
2832+
2833+
created_at: Date;
2834+
2835+
finished_at: Date;
2836+
2837+
operation: string;
2838+
2839+
status: string;
2840+
2841+
success_channels_count: number;
2842+
2843+
task_id: string;
2844+
2845+
failed_channels: FailedChannelUpdates[];
2846+
2847+
custom: Record<string, any>;
2848+
2849+
type: string;
2850+
2851+
received_at?: Date;
2852+
}
2853+
28042854
export interface ChannelConfig {
28052855
automod: 'disabled' | 'simple' | 'AI';
28062856

@@ -5162,6 +5212,8 @@ export interface EventHook {
51625212

51635213
product?: string;
51645214

5215+
should_send_custom_events?: boolean;
5216+
51655217
sns_auth_type?: string;
51665218

51675219
sns_key?: string;
@@ -5285,6 +5337,12 @@ export interface FCM {
52855337
data?: Record<string, any>;
52865338
}
52875339

5340+
export interface FailedChannelUpdates {
5341+
reason: string;
5342+
5343+
cids: string[];
5344+
}
5345+
52885346
export interface FeedCreatedEvent {
52895347
created_at: Date;
52905348

@@ -5708,6 +5766,8 @@ export interface FeedsPreferences {
57085766

57095767
comment_reaction?: 'all' | 'none';
57105768

5769+
comment_reply?: 'all' | 'none';
5770+
57115771
follow?: 'all' | 'none';
57125772

57135773
mention?: 'all' | 'none';
@@ -5845,6 +5905,10 @@ export interface Flag {
58455905
user?: User;
58465906
}
58475907

5908+
export interface FlagCountRuleParameters {
5909+
threshold?: number;
5910+
}
5911+
58485912
export interface FlagDetails {
58495913
original_text: string;
58505914

@@ -8359,6 +8423,16 @@ export interface NoiseCancellationSettings {
83598423
mode: 'available' | 'disabled' | 'auto-on';
83608424
}
83618425

8426+
export interface NotificationComment {
8427+
comment: string;
8428+
8429+
id: string;
8430+
8431+
user_id: string;
8432+
8433+
attachments?: Attachment[];
8434+
}
8435+
83628436
export interface NotificationConfig {
83638437
deduplication_window?: string;
83648438

@@ -8471,12 +8545,16 @@ export interface NotificationTarget {
84718545
user_id?: string;
84728546

84738547
attachments?: Attachment[];
8548+
8549+
comment?: NotificationComment;
84748550
}
84758551

84768552
export interface NotificationTrigger {
84778553
text: string;
84788554

84798555
type: string;
8556+
8557+
comment?: NotificationComment;
84808558
}
84818559

84828560
export interface OCRRule {
@@ -10998,6 +11076,8 @@ export interface RuleBuilderCondition {
1099811076

1099911077
content_count_rule_params?: ContentCountRuleParameters;
1100011078

11079+
content_flag_count_rule_params?: FlagCountRuleParameters;
11080+
1100111081
image_content_params?: ImageContentParameters;
1100211082

1100311083
image_rule_params?: ImageRuleParameters;
@@ -11010,6 +11090,8 @@ export interface RuleBuilderCondition {
1101011090

1101111091
user_custom_property_params?: UserCustomPropertyParameters;
1101211092

11093+
user_flag_count_rule_params?: FlagCountRuleParameters;
11094+
1101311095
user_rule_params?: UserRuleParameters;
1101411096

1101511097
video_content_params?: VideoContentParameters;
@@ -14424,6 +14506,10 @@ export type WebhookEvent =
1442414506
| ({ type: 'channel.unmuted' } & ChannelUnmutedEvent)
1442514507
| ({ type: 'channel.updated' } & ChannelUpdatedEvent)
1442614508
| ({ type: 'channel.visible' } & ChannelVisibleEvent)
14509+
| ({
14510+
type: 'channel_batch_update.completed';
14511+
} & ChannelBatchUpdatedCompletedEvent)
14512+
| ({ type: 'channel_batch_update.started' } & ChannelBatchUpdatedStartedEvent)
1442714513
| ({ type: 'custom' } & CustomVideoEvent)
1442814514
| ({ type: 'export.bulk_image_moderation.error' } & AsyncExportErrorEvent)
1442914515
| ({

0 commit comments

Comments
 (0)