iya-sts
    Preparing search index...
    saveNamed: (
        name: unknown,
        given?: Record<string, any>,
    ) =>
        | { errors: string[]; ok: boolean }
        | {
            dn: string;
            message: string;
            ok: boolean;
            policy: {
                description: string;
                dn: string;
                mechanisms: string[];
                name: string;
                precedence: number;
                secondFactors: string[];
            };
        } = ...

    Type Declaration

      • (
            name: unknown,
            given?: Record<string, any>,
        ):
            | { errors: string[]; ok: boolean }
            | {
                dn: string;
                message: string;
                ok: boolean;
                policy: {
                    description: string;
                    dn: string;
                    mechanisms: string[];
                    name: string;
                    precedence: number;
                    secondFactors: string[];
                };
            }
      • Creates or replaces a named authentication policy in this realm (#1148).

        Parameters

        • name: unknown

          lower-case letters, digits and hyphens, not default

        • Optionalgiven: Record<string, any>

          description, precedence (1 to 1000, 100 when omitted, #1237), mechanisms and secondFactors (lists)

        Returns
            | { errors: string[]; ok: boolean }
            | {
                dn: string;
                message: string;
                ok: boolean;
                policy: {
                    description: string;
                    dn: string;
                    mechanisms: string[];
                    name: string;
                    precedence: number;
                    secondFactors: string[];
                };
            }

        ok and the policy, or the errors