Fetch a paginated list of the host's registered image assets, most recently registered first. Each entry is a complete asset record, so a listed image can be referenced by its `id` when composing content with no further lookup needed. Use this to discover existing images to reuse instead of uploading new ones.
export interface Response { /** * If true, there are more pages of results available. */ hasMore: boolean; data: { id: string; /** * The host that owns this asset. */ hostId: string; /** * Public download URL used by renderers to display the image. Distinct from * storagePath: this is the URL a client fetches. */ url: string; /** * Intrinsic pixel width of the stored derivative. */ width: number; /** * Intrinsic pixel height of the stored derivative. */ height: number; /** * MIME type of the stored derivative. */ contentType: "image/jpeg" | "image/png"; /** * Size of the stored derivative in bytes. */ sizeBytes: number; /** * Original filename, displayed in the UI when selecting an existing image to reuse. */ filename: string; /** * The intended use case for the asset. Used as a hint for which images to * surface in different UIs. * - 'content': for use in user-generated email and website content. */ purpose: "content"; /** * When the asset was registered, in epoch milliseconds. */ createdAt: number; /** * When the asset was most recently published to external consumers who rely on * its public URL to render the image (e.g. sent in an email). The value is * stored in epoch milliseconds, or null if it has never been published. * Users should be warned before deleting an asset with this field set, and the * value should be presented to them. The user can then decide if the date is * old enough that it's acceptable for image rendering to break for consumers. */ lastPublishedAt: number | null; }[];}