mirror of
https://github.com/yusufipk/OpenFrame.git
synced 2026-09-11 09:36:08 +00:00
feat(video-assets): add full video asset system (uploads, downloads, @mentions, and cleanup/billing integration)
This commit is contained in:
@@ -18,6 +18,23 @@ export interface CommentTag {
|
||||
color: string;
|
||||
}
|
||||
|
||||
export interface VideoAsset {
|
||||
id: string;
|
||||
videoId: string;
|
||||
kind: 'IMAGE' | 'VIDEO';
|
||||
provider: 'R2_IMAGE' | 'YOUTUBE' | 'BUNNY';
|
||||
displayName: string;
|
||||
sourceUrl: string | null;
|
||||
providerVideoId: string | null;
|
||||
thumbnailUrl: string | null;
|
||||
uploadedByUserId: string | null;
|
||||
uploadedByGuestName: string | null;
|
||||
createdAt: string;
|
||||
updatedAt: string;
|
||||
uploadedByUser: { id: string; name: string | null; image: string | null } | null;
|
||||
canDelete: boolean;
|
||||
}
|
||||
|
||||
export interface ApprovalDecision {
|
||||
id: string;
|
||||
approverId: string;
|
||||
@@ -111,6 +128,9 @@ export interface VideoData {
|
||||
canManageTags?: boolean;
|
||||
canResolveComments?: boolean;
|
||||
canRequestApproval?: boolean;
|
||||
canShareVideo?: boolean;
|
||||
canUploadAssets?: boolean;
|
||||
canDownloadAssets?: boolean;
|
||||
}
|
||||
|
||||
export interface BunnyQualityOption {
|
||||
|
||||
Reference in New Issue
Block a user