Unique identifier for this rendered piece within the variant
Discriminator indicating preview_html is provided
Untrusted HTML. Consumers MUST NOT inject it into the host DOM. Render only as iframe srcdoc with an empty sandbox token set and a caller-enforced restrictive CSP; provider embedding metadata is advisory and MUST NOT loosen that policy.
Semantic role of this rendered piece. Use 'primary' for main content, 'companion' for associated banners, descriptive strings for device variants or custom roles.
Optionaldimensions?: { width: number; height: number }Dimensions for this rendered piece
Optionalembedding?: {Optional security and embedding metadata
Optionalrecommended_sandbox?: ""Empty iframe sandbox token set. Provider metadata MUST NOT grant scripts, same-origin, navigation, popups, forms, downloads, or other capabilities.
Optionalrequires_https?: booleanWhether this output requires HTTPS for secure embedding
Optionalsupports_fullscreen?: booleanWhether this output supports fullscreen mode
Optionalcsp_policy?: stringContent Security Policy requirements for embedding
Optionalrenderer?: PreviewRendererMetadata
Build an html-variant
PreviewRenderwithoutput_format: 'html'injected.