@adcp/sdk API Reference - v7.9.0
    Preparing search index...

    Function urlRender

    • Build a url-variant PreviewRender with output_format: 'url' injected.

      Requires preview_url — you can't call this without the field the url discriminator makes required, which is the whole point of the helper.

      Parameters

      • fields: Omit<UrlRender, "output_format">

      Returns Tagged<
          {
              render_id: string;
              output_format: "url";
              preview_url: string;
              role: string;
              dimensions?: { width: number; height: number };
              embedding?: {
                  recommended_sandbox?: string;
                  requires_https?: boolean;
                  supports_fullscreen?: boolean;
                  csp_policy?: string;
              };
          },
          "url",
      >