Skip to content
Niu DocsNiu 牛元文档
Dashboard控制台

MediaAssetOperationInput

Generated from the checked-in source. Do not edit this reference by hand.

SDK source. All SDK types.

TypeScript
/** Full original typed request is required for dispatch; source URLs are not persisted. */
export type MediaAssetOperationInput = {
action: 'create_group';
model: string;
name: string;
description?: string;
} | {
action: 'update_group';
model: string;
group_id: string;
name?: string;
description?: string;
expected_revision?: string;
} | {
action: 'delete_group';
model: string;
group_id: string;
expected_revision?: string;
} | {
action: 'create_asset';
model: string;
group_id: string;
url: string;
name?: string;
kind: 'image' | 'video' | 'audio';
} | {
action: 'rename_asset';
model: string;
asset_id: string;
name: string;
expected_revision?: string;
} | {
action: 'delete_asset';
model: string;
asset_id: string;
expected_revision?: string;
};