Open History to see the last commit
type GeneratedMediaSource =
| {
b64Json?: never;
url: string;
}
| {
b64Json: string;
url?: never;
};
Defined in: packages/ai/src/types.ts:2385
Source of a generated media asset. Exactly one of url or b64Json is
present; the other is absent. Modeled as a mutually-exclusive union so the
type rejects {} and { url, b64Json } together at compile time while
preserving the flat .url / .b64Json access patterns.
Union Members#
Type Literal#
{
b64Json?: never;
url: string;
}
b64Json?#
optional b64Json?: never;
url#
url: string;
URL to the generated asset (may be temporary)
Type Literal#
{
b64Json: string;
url?: never;
}
b64Json#
b64Json: string;
Base64-encoded asset data
url?#
optional url?: never;