beam: integrate model attachments with Beam viewer

This commit is contained in:
DCCONSTRUCTIONS
2026-06-04 19:39:36 +03:00
parent 6e74964853
commit 3e41c451c1
9 changed files with 583 additions and 7 deletions
@@ -6,11 +6,32 @@
import type { TFileSignedURLResponse } from "../file";
export type TBeamViewerAttachment = {
backend: "beam-viewer-local" | "beam-viewer";
conversion?: {
componentTreeRequired: boolean;
message?: string;
sourceFormat: string;
status: "conversion_required" | "processing" | "ready" | "failed";
targetFormat: "glb" | "xkt";
};
downloadUrl: string;
originalFilename: string;
previewAvailable: boolean;
src: string;
type: string;
uploadedAt: string;
viewerUrl?: string;
};
export type TIssueAttachment = {
id: string;
attributes: {
beamViewer?: TBeamViewerAttachment;
name: string;
size: number;
type?: string;
[key: string]: unknown;
};
asset_url: string;
issue_id: string;