iya-sts
    Preparing search index...

    The kinds of policy on Directory → Policies: the one list the page, its JSON and the /admin-api/policies operations are drawn from.

    Each kind is a separate module owning its own entry, container, schema and rules, implementing password_policy.ts's interface; a future policy costs a module and a row here. A library that registers no route.

    Index
    • Returns every action every kind answers, in kind order: save then reset.

      Returns string[]

      the actions

    • Returns one kind by id.

      Parameters

      • id: string

        the kind's id

      Returns PolicyKind

      the kind, or null

    • Returns which kind answers an action, and whether it is its save or its reset.

      Parameters

      • action: string

        the action's name

      Returns { kind: PolicyKind; verb: "save" | "reset" }

      the kind and verb, or null

    • Returns every kind, in the order the page draws them.

      Returns PolicyKind[]

      a copy of the list

    • Adds a kind to the list; a second registration of the same id is ignored.

      Parameters

      • kind: PolicyKind

        the kind: its id, label, container, module and the sentences the page draws

      Returns void

    • Returns the name of a kind's reset action, reset-<id>-policy.

      Parameters

      • kind: PolicyKind

        the kind

      Returns string

      the action

    • Returns the name of a kind's save action, save-<id>-policy.

      Parameters

      • kind: PolicyKind

        the kind

      Returns string

      the action

    • Removes a kind, for a test that registered a stub.

      Parameters

      • id: string

        the kind's id

      Returns void