The best way to control Claude Code, Codex and more from any computer or phone

main
ts 18 lines 627 Bytes
Raw
1 import type { MediaReference } from "@t3tools/client-runtime/media-reference";
2 import type { AssetResource, EnvironmentId, ThreadId } from "@t3tools/contracts";
3 import type { FileBackedComposerAttachment } from "./composerImages";
4
5 export type MediaActionsSource = {
6 readonly reference?: MediaReference;
7 readonly name: string;
8 readonly mimeType: string;
9 readonly sourceIdentifier?: string;
10 } & (
11 | { readonly uri: string }
12 | { readonly attachment: FileBackedComposerAttachment }
13 | {
14 readonly environmentId: EnvironmentId;
15 readonly threadId?: ThreadId;
16 readonly resource: AssetResource;
17 }
18 );