options: ZodObject<{
    directives: ZodObject<{
        base-uri: ZodOptional<ZodEffects<ZodArray<ZodUnion<[ZodString, ZodString, ZodUnion<[(...), (...), (...), (...), (...), (...)]>, ZodUnion<[(...), (...), (...)]>, ZodString]>, "many">, string[], string[]>>;
        child-src: ZodOptional<ZodEffects<ZodArray<ZodUnion<[ZodString, ZodString, ZodUnion<[(...), (...), (...), (...), (...), (...)]>, ZodUnion<[(...), (...), (...)]>, ZodString]>, "many">, string[], string[]>>;
        connect-src: ZodOptional<ZodEffects<ZodArray<ZodUnion<[ZodString, ZodString, ZodUnion<[(...), (...), (...), (...), (...), (...)]>, ZodUnion<[(...), (...), (...)]>, ZodString]>, "many">, string[], string[]>>;
        default-src: ZodOptional<ZodEffects<ZodArray<ZodUnion<[ZodString, ZodString, ZodUnion<[(...), (...), (...), (...), (...), (...)]>, ZodUnion<[(...), (...), (...)]>, ZodString]>, "many">, string[], string[]>>;
        font-src: ZodOptional<ZodEffects<ZodArray<ZodUnion<[ZodString, ZodString, ZodUnion<[(...), (...), (...), (...), (...), (...)]>, ZodUnion<[(...), (...), (...)]>, ZodString]>, "many">, string[], string[]>>;
        form-action: ZodOptional<ZodEffects<ZodArray<ZodUnion<[ZodString, ZodString, ZodUnion<[(...), (...), (...), (...), (...), (...)]>, ZodUnion<[(...), (...), (...)]>, ZodString]>, "many">, string[], string[]>>;
        frame-ancestors: ZodOptional<ZodEffects<ZodArray<ZodUnion<[ZodString, ZodString, ZodUnion<[(...), (...), (...), (...), (...), (...)]>, ZodUnion<[(...), (...), (...)]>, ZodString]>, "many">, string[], string[]>>;
        frame-src: ZodOptional<ZodEffects<ZodArray<ZodUnion<[ZodString, ZodString, ZodUnion<[(...), (...), (...), (...), (...), (...)]>, ZodUnion<[(...), (...), (...)]>, ZodString]>, "many">, string[], string[]>>;
        img-src: ZodOptional<ZodEffects<ZodArray<ZodUnion<[ZodString, ZodString, ZodUnion<[(...), (...), (...), (...), (...), (...)]>, ZodUnion<[(...), (...), (...)]>, ZodString]>, "many">, string[], string[]>>;
        manifest-src: ZodOptional<ZodEffects<ZodArray<ZodUnion<[ZodString, ZodString, ZodUnion<[(...), (...), (...), (...), (...), (...)]>, ZodUnion<[(...), (...), (...)]>, ZodString]>, "many">, string[], string[]>>;
        media-src: ZodOptional<ZodEffects<ZodArray<ZodUnion<[ZodString, ZodString, ZodUnion<[(...), (...), (...), (...), (...), (...)]>, ZodUnion<[(...), (...), (...)]>, ZodString]>, "many">, string[], string[]>>;
        navigate-to: ZodOptional<ZodEffects<ZodArray<ZodUnion<[ZodString, ZodString, ZodUnion<[(...), (...), (...), (...), (...), (...)]>, ZodUnion<[(...), (...), (...)]>, ZodString]>, "many">, string[], string[]>>;
        object-src: ZodOptional<ZodEffects<ZodArray<ZodUnion<[ZodString, ZodString, ZodUnion<[(...), (...), (...), (...), (...), (...)]>, ZodUnion<[(...), (...), (...)]>, ZodString]>, "many">, string[], string[]>>;
        report-to: ZodOptional<ZodArray<ZodString, "many">>;
        sandbox: ZodOptional<ZodArray<ZodUnion<[ZodLiteral<"allow-downloads">, ZodLiteral<"allow-downloads-without-user-activation">, ZodLiteral<"allow-forms">, ZodLiteral<"allow-modals">, ZodLiteral<"allow-orientation-lock">, ZodLiteral<"allow-pointer-lock">]>, "many">>;
        script-src: ZodOptional<ZodEffects<ZodArray<ZodUnion<[ZodString, ZodString, ZodUnion<[(...), (...), (...), (...), (...), (...)]>, ZodUnion<[(...), (...), (...)]>, ZodString]>, "many">, string[], string[]>>;
        script-src-attr: ZodOptional<ZodEffects<ZodArray<ZodUnion<[ZodString, ZodString, ZodUnion<[(...), (...), (...), (...), (...), (...)]>, ZodUnion<[(...), (...), (...)]>, ZodString]>, "many">, string[], string[]>>;
        script-src-elem: ZodOptional<ZodEffects<ZodArray<ZodUnion<[ZodString, ZodString, ZodUnion<[(...), (...), (...), (...), (...), (...)]>, ZodUnion<[(...), (...), (...)]>, ZodString]>, "many">, string[], string[]>>;
        source-values: ZodOptional<ZodEffects<ZodArray<ZodUnion<[ZodString, ZodString, ZodUnion<[(...), (...), (...), (...), (...), (...)]>, ZodUnion<[(...), (...), (...)]>, ZodString]>, "many">, string[], string[]>>;
        style-src: ZodOptional<ZodEffects<ZodArray<ZodUnion<[ZodString, ZodString, ZodUnion<[(...), (...), (...), (...), (...), (...)]>, ZodUnion<[(...), (...), (...)]>, ZodString]>, "many">, string[], string[]>>;
        style-src-attr: ZodOptional<ZodEffects<ZodArray<ZodUnion<[ZodString, ZodString, ZodUnion<[(...), (...), (...), (...), (...), (...)]>, ZodUnion<[(...), (...), (...)]>, ZodString]>, "many">, string[], string[]>>;
        style-src-elem: ZodOptional<ZodEffects<ZodArray<ZodUnion<[ZodString, ZodString, ZodUnion<[(...), (...), (...), (...), (...), (...)]>, ZodUnion<[(...), (...), (...)]>, ZodString]>, "many">, string[], string[]>>;
        upgrade-insecure-requests: ZodOptional<ZodBoolean>;
        worker-src: ZodOptional<ZodEffects<ZodArray<ZodUnion<[ZodString, ZodString, ZodUnion<[(...), (...), (...), (...), (...), (...)]>, ZodUnion<[(...), (...), (...)]>, ZodString]>, "many">, string[], string[]>>;
    }, "strip", ZodTypeAny, {
        base-uri?: string[];
        child-src?: string[];
        connect-src?: string[];
        default-src?: string[];
        font-src?: string[];
        form-action?: string[];
        frame-ancestors?: string[];
        frame-src?: string[];
        img-src?: string[];
        manifest-src?: string[];
        media-src?: string[];
        navigate-to?: string[];
        object-src?: string[];
        report-to?: string[];
        sandbox?: ("allow-downloads" | "allow-downloads-without-user-activation" | "allow-forms" | "allow-modals" | "allow-orientation-lock" | "allow-pointer-lock" | "allow-popups" | "allow-popups-to-escape-sandbox" | "allow-presentation" | "allow-same-origin" | "allow-scripts" | "allow-storage-access-by-user-activation" | "allow-top-navigation" | "allow-top-navigation-by-user-activation" | "allow-top-navigation-to-custom-protocol")[];
        script-src?: string[];
        script-src-attr?: string[];
        script-src-elem?: string[];
        source-values?: string[];
        style-src?: string[];
        style-src-attr?: string[];
        style-src-elem?: string[];
        upgrade-insecure-requests?: boolean;
        worker-src?: string[];
    }, {
        base-uri?: string[];
        child-src?: string[];
        connect-src?: string[];
        default-src?: string[];
        font-src?: string[];
        form-action?: string[];
        frame-ancestors?: string[];
        frame-src?: string[];
        img-src?: string[];
        manifest-src?: string[];
        media-src?: string[];
        navigate-to?: string[];
        object-src?: string[];
        report-to?: string[];
        sandbox?: ("allow-downloads" | "allow-downloads-without-user-activation" | "allow-forms" | "allow-modals" | "allow-orientation-lock" | "allow-pointer-lock" | "allow-popups" | "allow-popups-to-escape-sandbox" | "allow-presentation" | "allow-same-origin" | "allow-scripts" | "allow-storage-access-by-user-activation" | "allow-top-navigation" | "allow-top-navigation-by-user-activation" | "allow-top-navigation-to-custom-protocol")[];
        script-src?: string[];
        script-src-attr?: string[];
        script-src-elem?: string[];
        source-values?: string[];
        style-src?: string[];
        style-src-attr?: string[];
        style-src-elem?: string[];
        upgrade-insecure-requests?: boolean;
        worker-src?: string[];
    }>;
    patterns: ZodArray<ZodString, "many">;
}, "strip", ZodTypeAny, {
    directives: {
        base-uri?: string[];
        child-src?: string[];
        connect-src?: string[];
        default-src?: string[];
        font-src?: string[];
        form-action?: string[];
        frame-ancestors?: string[];
        frame-src?: string[];
        img-src?: string[];
        manifest-src?: string[];
        media-src?: string[];
        navigate-to?: string[];
        object-src?: string[];
        report-to?: string[];
        sandbox?: ("allow-downloads" | "allow-downloads-without-user-activation" | "allow-forms" | "allow-modals" | "allow-orientation-lock" | "allow-pointer-lock" | "allow-popups" | "allow-popups-to-escape-sandbox" | "allow-presentation" | "allow-same-origin" | "allow-scripts" | "allow-storage-access-by-user-activation" | "allow-top-navigation" | "allow-top-navigation-by-user-activation" | "allow-top-navigation-to-custom-protocol")[];
        script-src?: string[];
        script-src-attr?: string[];
        script-src-elem?: string[];
        source-values?: string[];
        style-src?: string[];
        style-src-attr?: string[];
        style-src-elem?: string[];
        upgrade-insecure-requests?: boolean;
        worker-src?: string[];
    };
    patterns: string[];
}, {
    directives: {
        base-uri?: string[];
        child-src?: string[];
        connect-src?: string[];
        default-src?: string[];
        font-src?: string[];
        form-action?: string[];
        frame-ancestors?: string[];
        frame-src?: string[];
        img-src?: string[];
        manifest-src?: string[];
        media-src?: string[];
        navigate-to?: string[];
        object-src?: string[];
        report-to?: string[];
        sandbox?: ("allow-downloads" | "allow-downloads-without-user-activation" | "allow-forms" | "allow-modals" | "allow-orientation-lock" | "allow-pointer-lock" | "allow-popups" | "allow-popups-to-escape-sandbox" | "allow-presentation" | "allow-same-origin" | "allow-scripts" | "allow-storage-access-by-user-activation" | "allow-top-navigation" | "allow-top-navigation-by-user-activation" | "allow-top-navigation-to-custom-protocol")[];
        script-src?: string[];
        script-src-attr?: string[];
        script-src-elem?: string[];
        source-values?: string[];
        style-src?: string[];
        style-src-attr?: string[];
        style-src-elem?: string[];
        upgrade-insecure-requests?: boolean;
        worker-src?: string[];
    };
    patterns: string[];
}> = ...

Type declaration

  • directives: ZodObject<{
        base-uri: ZodOptional<ZodEffects<ZodArray<ZodUnion<[ZodString, ZodString, ZodUnion<[(...), (...), (...), (...), (...), (...)]>, ZodUnion<[(...), (...), (...)]>, ZodString]>, "many">, string[], string[]>>;
        child-src: ZodOptional<ZodEffects<ZodArray<ZodUnion<[ZodString, ZodString, ZodUnion<[(...), (...), (...), (...), (...), (...)]>, ZodUnion<[(...), (...), (...)]>, ZodString]>, "many">, string[], string[]>>;
        connect-src: ZodOptional<ZodEffects<ZodArray<ZodUnion<[ZodString, ZodString, ZodUnion<[(...), (...), (...), (...), (...), (...)]>, ZodUnion<[(...), (...), (...)]>, ZodString]>, "many">, string[], string[]>>;
        default-src: ZodOptional<ZodEffects<ZodArray<ZodUnion<[ZodString, ZodString, ZodUnion<[(...), (...), (...), (...), (...), (...)]>, ZodUnion<[(...), (...), (...)]>, ZodString]>, "many">, string[], string[]>>;
        font-src: ZodOptional<ZodEffects<ZodArray<ZodUnion<[ZodString, ZodString, ZodUnion<[(...), (...), (...), (...), (...), (...)]>, ZodUnion<[(...), (...), (...)]>, ZodString]>, "many">, string[], string[]>>;
        form-action: ZodOptional<ZodEffects<ZodArray<ZodUnion<[ZodString, ZodString, ZodUnion<[(...), (...), (...), (...), (...), (...)]>, ZodUnion<[(...), (...), (...)]>, ZodString]>, "many">, string[], string[]>>;
        frame-ancestors: ZodOptional<ZodEffects<ZodArray<ZodUnion<[ZodString, ZodString, ZodUnion<[(...), (...), (...), (...), (...), (...)]>, ZodUnion<[(...), (...), (...)]>, ZodString]>, "many">, string[], string[]>>;
        frame-src: ZodOptional<ZodEffects<ZodArray<ZodUnion<[ZodString, ZodString, ZodUnion<[(...), (...), (...), (...), (...), (...)]>, ZodUnion<[(...), (...), (...)]>, ZodString]>, "many">, string[], string[]>>;
        img-src: ZodOptional<ZodEffects<ZodArray<ZodUnion<[ZodString, ZodString, ZodUnion<[(...), (...), (...), (...), (...), (...)]>, ZodUnion<[(...), (...), (...)]>, ZodString]>, "many">, string[], string[]>>;
        manifest-src: ZodOptional<ZodEffects<ZodArray<ZodUnion<[ZodString, ZodString, ZodUnion<[(...), (...), (...), (...), (...), (...)]>, ZodUnion<[(...), (...), (...)]>, ZodString]>, "many">, string[], string[]>>;
        media-src: ZodOptional<ZodEffects<ZodArray<ZodUnion<[ZodString, ZodString, ZodUnion<[(...), (...), (...), (...), (...), (...)]>, ZodUnion<[(...), (...), (...)]>, ZodString]>, "many">, string[], string[]>>;
        navigate-to: ZodOptional<ZodEffects<ZodArray<ZodUnion<[ZodString, ZodString, ZodUnion<[(...), (...), (...), (...), (...), (...)]>, ZodUnion<[(...), (...), (...)]>, ZodString]>, "many">, string[], string[]>>;
        object-src: ZodOptional<ZodEffects<ZodArray<ZodUnion<[ZodString, ZodString, ZodUnion<[(...), (...), (...), (...), (...), (...)]>, ZodUnion<[(...), (...), (...)]>, ZodString]>, "many">, string[], string[]>>;
        report-to: ZodOptional<ZodArray<ZodString, "many">>;
        sandbox: ZodOptional<ZodArray<ZodUnion<[ZodLiteral<"allow-downloads">, ZodLiteral<"allow-downloads-without-user-activation">, ZodLiteral<"allow-forms">, ZodLiteral<"allow-modals">, ZodLiteral<"allow-orientation-lock">, ZodLiteral<"allow-pointer-lock">]>, "many">>;
        script-src: ZodOptional<ZodEffects<ZodArray<ZodUnion<[ZodString, ZodString, ZodUnion<[(...), (...), (...), (...), (...), (...)]>, ZodUnion<[(...), (...), (...)]>, ZodString]>, "many">, string[], string[]>>;
        script-src-attr: ZodOptional<ZodEffects<ZodArray<ZodUnion<[ZodString, ZodString, ZodUnion<[(...), (...), (...), (...), (...), (...)]>, ZodUnion<[(...), (...), (...)]>, ZodString]>, "many">, string[], string[]>>;
        script-src-elem: ZodOptional<ZodEffects<ZodArray<ZodUnion<[ZodString, ZodString, ZodUnion<[(...), (...), (...), (...), (...), (...)]>, ZodUnion<[(...), (...), (...)]>, ZodString]>, "many">, string[], string[]>>;
        source-values: ZodOptional<ZodEffects<ZodArray<ZodUnion<[ZodString, ZodString, ZodUnion<[(...), (...), (...), (...), (...), (...)]>, ZodUnion<[(...), (...), (...)]>, ZodString]>, "many">, string[], string[]>>;
        style-src: ZodOptional<ZodEffects<ZodArray<ZodUnion<[ZodString, ZodString, ZodUnion<[(...), (...), (...), (...), (...), (...)]>, ZodUnion<[(...), (...), (...)]>, ZodString]>, "many">, string[], string[]>>;
        style-src-attr: ZodOptional<ZodEffects<ZodArray<ZodUnion<[ZodString, ZodString, ZodUnion<[(...), (...), (...), (...), (...), (...)]>, ZodUnion<[(...), (...), (...)]>, ZodString]>, "many">, string[], string[]>>;
        style-src-elem: ZodOptional<ZodEffects<ZodArray<ZodUnion<[ZodString, ZodString, ZodUnion<[(...), (...), (...), (...), (...), (...)]>, ZodUnion<[(...), (...), (...)]>, ZodString]>, "many">, string[], string[]>>;
        upgrade-insecure-requests: ZodOptional<ZodBoolean>;
        worker-src: ZodOptional<ZodEffects<ZodArray<ZodUnion<[ZodString, ZodString, ZodUnion<[(...), (...), (...), (...), (...), (...)]>, ZodUnion<[(...), (...), (...)]>, ZodString]>, "many">, string[], string[]>>;
    }, "strip", ZodTypeAny, {
        base-uri?: string[];
        child-src?: string[];
        connect-src?: string[];
        default-src?: string[];
        font-src?: string[];
        form-action?: string[];
        frame-ancestors?: string[];
        frame-src?: string[];
        img-src?: string[];
        manifest-src?: string[];
        media-src?: string[];
        navigate-to?: string[];
        object-src?: string[];
        report-to?: string[];
        sandbox?: ("allow-downloads" | "allow-downloads-without-user-activation" | "allow-forms" | "allow-modals" | "allow-orientation-lock" | "allow-pointer-lock" | "allow-popups" | "allow-popups-to-escape-sandbox" | "allow-presentation" | "allow-same-origin" | "allow-scripts" | "allow-storage-access-by-user-activation" | "allow-top-navigation" | "allow-top-navigation-by-user-activation" | "allow-top-navigation-to-custom-protocol")[];
        script-src?: string[];
        script-src-attr?: string[];
        script-src-elem?: string[];
        source-values?: string[];
        style-src?: string[];
        style-src-attr?: string[];
        style-src-elem?: string[];
        upgrade-insecure-requests?: boolean;
        worker-src?: string[];
    }, {
        base-uri?: string[];
        child-src?: string[];
        connect-src?: string[];
        default-src?: string[];
        font-src?: string[];
        form-action?: string[];
        frame-ancestors?: string[];
        frame-src?: string[];
        img-src?: string[];
        manifest-src?: string[];
        media-src?: string[];
        navigate-to?: string[];
        object-src?: string[];
        report-to?: string[];
        sandbox?: ("allow-downloads" | "allow-downloads-without-user-activation" | "allow-forms" | "allow-modals" | "allow-orientation-lock" | "allow-pointer-lock" | "allow-popups" | "allow-popups-to-escape-sandbox" | "allow-presentation" | "allow-same-origin" | "allow-scripts" | "allow-storage-access-by-user-activation" | "allow-top-navigation" | "allow-top-navigation-by-user-activation" | "allow-top-navigation-to-custom-protocol")[];
        script-src?: string[];
        script-src-attr?: string[];
        script-src-elem?: string[];
        source-values?: string[];
        style-src?: string[];
        style-src-attr?: string[];
        style-src-elem?: string[];
        upgrade-insecure-requests?: boolean;
        worker-src?: string[];
    }>
  • patterns: ZodArray<ZodString, "many">

Type declaration

  • directives: {
        base-uri?: string[];
        child-src?: string[];
        connect-src?: string[];
        default-src?: string[];
        font-src?: string[];
        form-action?: string[];
        frame-ancestors?: string[];
        frame-src?: string[];
        img-src?: string[];
        manifest-src?: string[];
        media-src?: string[];
        navigate-to?: string[];
        object-src?: string[];
        report-to?: string[];
        sandbox?: ("allow-downloads" | "allow-downloads-without-user-activation" | "allow-forms" | "allow-modals" | "allow-orientation-lock" | "allow-pointer-lock" | "allow-popups" | "allow-popups-to-escape-sandbox" | "allow-presentation" | "allow-same-origin" | "allow-scripts" | "allow-storage-access-by-user-activation" | "allow-top-navigation" | "allow-top-navigation-by-user-activation" | "allow-top-navigation-to-custom-protocol")[];
        script-src?: string[];
        script-src-attr?: string[];
        script-src-elem?: string[];
        source-values?: string[];
        style-src?: string[];
        style-src-attr?: string[];
        style-src-elem?: string[];
        upgrade-insecure-requests?: boolean;
        worker-src?: string[];
    }
    • Optional base-uri?: string[]
    • Optional child-src?: string[]
    • Optional connect-src?: string[]
    • Optional default-src?: string[]
    • Optional font-src?: string[]
    • Optional form-action?: string[]
    • Optional frame-ancestors?: string[]
    • Optional frame-src?: string[]
    • Optional img-src?: string[]
    • Optional manifest-src?: string[]
    • Optional media-src?: string[]
    • Optional navigate-to?: string[]
    • Optional object-src?: string[]
    • Optional report-to?: string[]
    • Optional sandbox?: ("allow-downloads" | "allow-downloads-without-user-activation" | "allow-forms" | "allow-modals" | "allow-orientation-lock" | "allow-pointer-lock" | "allow-popups" | "allow-popups-to-escape-sandbox" | "allow-presentation" | "allow-same-origin" | "allow-scripts" | "allow-storage-access-by-user-activation" | "allow-top-navigation" | "allow-top-navigation-by-user-activation" | "allow-top-navigation-to-custom-protocol")[]
    • Optional script-src?: string[]
    • Optional script-src-attr?: string[]
    • Optional script-src-elem?: string[]
    • Optional source-values?: string[]
    • Optional style-src?: string[]
    • Optional style-src-attr?: string[]
    • Optional style-src-elem?: string[]
    • Optional upgrade-insecure-requests?: boolean
    • Optional worker-src?: string[]
  • patterns: string[]

Type declaration

  • directives: {
        base-uri?: string[];
        child-src?: string[];
        connect-src?: string[];
        default-src?: string[];
        font-src?: string[];
        form-action?: string[];
        frame-ancestors?: string[];
        frame-src?: string[];
        img-src?: string[];
        manifest-src?: string[];
        media-src?: string[];
        navigate-to?: string[];
        object-src?: string[];
        report-to?: string[];
        sandbox?: ("allow-downloads" | "allow-downloads-without-user-activation" | "allow-forms" | "allow-modals" | "allow-orientation-lock" | "allow-pointer-lock" | "allow-popups" | "allow-popups-to-escape-sandbox" | "allow-presentation" | "allow-same-origin" | "allow-scripts" | "allow-storage-access-by-user-activation" | "allow-top-navigation" | "allow-top-navigation-by-user-activation" | "allow-top-navigation-to-custom-protocol")[];
        script-src?: string[];
        script-src-attr?: string[];
        script-src-elem?: string[];
        source-values?: string[];
        style-src?: string[];
        style-src-attr?: string[];
        style-src-elem?: string[];
        upgrade-insecure-requests?: boolean;
        worker-src?: string[];
    }
    • Optional base-uri?: string[]
    • Optional child-src?: string[]
    • Optional connect-src?: string[]
    • Optional default-src?: string[]
    • Optional font-src?: string[]
    • Optional form-action?: string[]
    • Optional frame-ancestors?: string[]
    • Optional frame-src?: string[]
    • Optional img-src?: string[]
    • Optional manifest-src?: string[]
    • Optional media-src?: string[]
    • Optional navigate-to?: string[]
    • Optional object-src?: string[]
    • Optional report-to?: string[]
    • Optional sandbox?: ("allow-downloads" | "allow-downloads-without-user-activation" | "allow-forms" | "allow-modals" | "allow-orientation-lock" | "allow-pointer-lock" | "allow-popups" | "allow-popups-to-escape-sandbox" | "allow-presentation" | "allow-same-origin" | "allow-scripts" | "allow-storage-access-by-user-activation" | "allow-top-navigation" | "allow-top-navigation-by-user-activation" | "allow-top-navigation-to-custom-protocol")[]
    • Optional script-src?: string[]
    • Optional script-src-attr?: string[]
    • Optional script-src-elem?: string[]
    • Optional source-values?: string[]
    • Optional style-src?: string[]
    • Optional style-src-attr?: string[]
    • Optional style-src-elem?: string[]
    • Optional upgrade-insecure-requests?: boolean
    • Optional worker-src?: string[]
  • patterns: string[]