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
17 changes: 2 additions & 15 deletions src/gen/model-decoders/decoders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,13 +225,6 @@ decoders.ActivityResponse = (input?: Record<string, any>) => {
};

decoders.ActivitySelectorConfig = (input?: Record<string, any>) => {
const typeMappings: TypeMapping = {
cutoff_time: { type: 'StringType', isSingle: true },
};
return decode(typeMappings, input);
};

decoders.ActivitySelectorConfigResponse = (input?: Record<string, any>) => {
const typeMappings: TypeMapping = {
cutoff_time: { type: 'DatetimeType', isSingle: true },
};
Expand Down Expand Up @@ -1910,10 +1903,7 @@ decoders.FeedGroupResponse = (input?: Record<string, any>) => {

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

activity_selectors: {
type: 'ActivitySelectorConfigResponse',
isSingle: false,
},
activity_selectors: { type: 'ActivitySelectorConfig', isSingle: false },
};
return decode(typeMappings, input);
};
Expand Down Expand Up @@ -2006,10 +1996,7 @@ decoders.FeedViewResponse = (input?: Record<string, any>) => {
const typeMappings: TypeMapping = {
last_used_at: { type: 'DatetimeType', isSingle: true },

activity_selectors: {
type: 'ActivitySelectorConfigResponse',
isSingle: false,
},
activity_selectors: { type: 'ActivitySelectorConfig', isSingle: false },
};
return decode(typeMappings, input);
};
Expand Down
52 changes: 21 additions & 31 deletions src/gen/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -595,18 +595,6 @@ export interface ActivityResponse {
}

export interface ActivitySelectorConfig {
cutoff_time?: string;

min_popularity?: number;

type?: string;

sort?: SortParam[];

filter?: Record<string, any>;
}

export interface ActivitySelectorConfigResponse {
cutoff_time?: Date;

min_popularity?: number;
Expand Down Expand Up @@ -1095,6 +1083,8 @@ export interface AudioSettings {

speaker_default_on: boolean;

hifi_audio_enabled?: boolean;

noise_cancellation?: NoiseCancellationSettings;
}

Expand All @@ -1103,6 +1093,8 @@ export interface AudioSettingsRequest {

access_request_enabled?: boolean;

hifi_audio_enabled?: boolean;

mic_default_on?: boolean;

opus_dtx_enabled?: boolean;
Expand All @@ -1127,6 +1119,8 @@ export interface AudioSettingsResponse {

speaker_default_on: boolean;

hifi_audio_enabled?: boolean;

noise_cancellation?: NoiseCancellationSettings;
}

Expand Down Expand Up @@ -5269,7 +5263,7 @@ export interface FeedGroupResponse {

activity_processors?: ActivityProcessorConfig[];

activity_selectors?: ActivitySelectorConfigResponse[];
activity_selectors?: ActivitySelectorConfig[];

aggregation?: AggregationConfig;

Expand Down Expand Up @@ -5505,7 +5499,7 @@ export interface FeedViewResponse {

activity_processors?: ActivityProcessorConfig[];

activity_selectors?: ActivitySelectorConfigResponse[];
activity_selectors?: ActivitySelectorConfig[];

aggregation?: AggregationConfig;

Expand Down Expand Up @@ -5621,33 +5615,29 @@ export interface FirebaseConfigFields {
export interface Flag {
created_at: Date;

entity_id: string;

entity_type: string;
created_by_automod: boolean;

updated_at: Date;

result: Array<Record<string, any>>;

entity_creator_id?: string;

is_streamed_content?: boolean;

moderation_payload_hash?: string;
approved_at?: Date;

reason?: string;

review_queue_item_id?: string;
rejected_at?: Date;

type?: string;
reviewed_at?: Date;

labels?: string[];
reviewed_by?: string;

target_message_id?: string;

custom?: Record<string, any>;

moderation_payload?: ModerationPayload;
details?: FlagDetails;

review_queue_item?: ReviewQueueItem;
target_message?: Message;

target_user?: User;

user?: User;
}
Expand Down Expand Up @@ -9935,9 +9925,9 @@ export interface RTMPSettingsResponse {
}

export interface RankingConfig {
score?: string;
type: 'recency' | 'expression' | 'interest';

type?: string;
score?: string;

defaults?: Record<string, any>;

Expand Down
Loading