Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

mediaActionsSource.ts

18 lines627 Bytes

1import type { MediaReference } from "@t3tools/client-runtime/media-reference";
2import type { AssetResource, EnvironmentId, ThreadId } from "@t3tools/contracts";
3import type { FileBackedComposerAttachment } from "./composerImages";
4​
5export 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);