Skip to content
Merged
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
26 changes: 26 additions & 0 deletions src/gen/model-decoders/decoders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1204,6 +1204,32 @@ decoders.Channel = (input?: Record<string, any>) => {
return decode(typeMappings, input);
};

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

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

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

received_at: { type: 'DatetimeType', isSingle: true },
};
return decode(typeMappings, input);
};

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

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

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

received_at: { type: 'DatetimeType', isSingle: true },
};
return decode(typeMappings, input);
};

decoders.ChannelConfig = (input?: Record<string, any>) => {
const typeMappings: TypeMapping = {
created_at: { type: 'DatetimeType', isSingle: true },
Expand Down
86 changes: 86 additions & 0 deletions src/gen/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1980,6 +1980,8 @@ export interface CallRecording {

filename: string;

recording_type: string;

session_id: string;

start_time: Date;
Expand Down Expand Up @@ -2801,6 +2803,54 @@ export interface Channel {
truncated_by?: User;
}

export interface ChannelBatchUpdatedCompletedEvent {
batch_created_at: Date;

created_at: Date;

finished_at: Date;

operation: string;

status: string;

success_channels_count: number;

task_id: string;

failed_channels: FailedChannelUpdates[];

custom: Record<string, any>;

type: string;

received_at?: Date;
}

export interface ChannelBatchUpdatedStartedEvent {
batch_created_at: Date;

created_at: Date;

finished_at: Date;

operation: string;

status: string;

success_channels_count: number;

task_id: string;

failed_channels: FailedChannelUpdates[];

custom: Record<string, any>;

type: string;

received_at?: Date;
}

export interface ChannelConfig {
automod: 'disabled' | 'simple' | 'AI';

Expand Down Expand Up @@ -5162,6 +5212,8 @@ export interface EventHook {

product?: string;

should_send_custom_events?: boolean;

sns_auth_type?: string;

sns_key?: string;
Expand Down Expand Up @@ -5285,6 +5337,12 @@ export interface FCM {
data?: Record<string, any>;
}

export interface FailedChannelUpdates {
reason: string;

cids: string[];
}

export interface FeedCreatedEvent {
created_at: Date;

Expand Down Expand Up @@ -5708,6 +5766,8 @@ export interface FeedsPreferences {

comment_reaction?: 'all' | 'none';

comment_reply?: 'all' | 'none';

follow?: 'all' | 'none';

mention?: 'all' | 'none';
Expand Down Expand Up @@ -5845,6 +5905,10 @@ export interface Flag {
user?: User;
}

export interface FlagCountRuleParameters {
threshold?: number;
}

export interface FlagDetails {
original_text: string;

Expand Down Expand Up @@ -8359,6 +8423,16 @@ export interface NoiseCancellationSettings {
mode: 'available' | 'disabled' | 'auto-on';
}

export interface NotificationComment {
comment: string;

id: string;

user_id: string;

attachments?: Attachment[];
}

export interface NotificationConfig {
deduplication_window?: string;

Expand Down Expand Up @@ -8471,12 +8545,16 @@ export interface NotificationTarget {
user_id?: string;

attachments?: Attachment[];

comment?: NotificationComment;
}

export interface NotificationTrigger {
text: string;

type: string;

comment?: NotificationComment;
}

export interface OCRRule {
Expand Down Expand Up @@ -10998,6 +11076,8 @@ export interface RuleBuilderCondition {

content_count_rule_params?: ContentCountRuleParameters;

content_flag_count_rule_params?: FlagCountRuleParameters;

image_content_params?: ImageContentParameters;

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

user_custom_property_params?: UserCustomPropertyParameters;

user_flag_count_rule_params?: FlagCountRuleParameters;

user_rule_params?: UserRuleParameters;

video_content_params?: VideoContentParameters;
Expand Down Expand Up @@ -14424,6 +14506,10 @@ export type WebhookEvent =
| ({ type: 'channel.unmuted' } & ChannelUnmutedEvent)
| ({ type: 'channel.updated' } & ChannelUpdatedEvent)
| ({ type: 'channel.visible' } & ChannelVisibleEvent)
| ({
type: 'channel_batch_update.completed';
} & ChannelBatchUpdatedCompletedEvent)
| ({ type: 'channel_batch_update.started' } & ChannelBatchUpdatedStartedEvent)
| ({ type: 'custom' } & CustomVideoEvent)
| ({ type: 'export.bulk_image_moderation.error' } & AsyncExportErrorEvent)
| ({
Expand Down