Defined in: packages/ai/src/types.ts:1998
artifactId: string;Defined in: packages/ai/src/types.ts:2000
createdAt: string;Defined in: packages/ai/src/types.ts:2006
mimeType: string;Defined in: packages/ai/src/types.ts:2004
name: string;Defined in: packages/ai/src/types.ts:2003
role: PersistedArtifactRole;Defined in: packages/ai/src/types.ts:1999
runId: string;Defined in: packages/ai/src/types.ts:2002
size: number;Defined in: packages/ai/src/types.ts:2005
source: object;Defined in: packages/ai/src/types.ts:2022
activity: PersistedArtifactActivity;optional expiresAt?: string;optional jobId?: string;optional mediaType?: "json" | "image" | "audio" | "video" | "document";model: string;path: string;provider: string;optional sourceUrl?: string;Defined in: packages/ai/src/types.ts:2013
Where these bytes were fetched FROM — the provider's original result URL, or a caller-supplied prompt URL when allowInputUrl opted that in. Usually expiring, and provenance only: serve from PersistedArtifactRef.url instead.
threadId: string;Defined in: packages/ai/src/types.ts:2001
optional url?: string;Defined in: packages/ai/src/types.ts:2021
Durable app-origin URL that serves this artifact's persisted bytes (your GET route around retrieveArtifact / retrieveBlob). Stamped by withGenerationPersistence's artifactUrl option, so clients render and restore durable media from your own origin rather than the provider's expiring link.