iya-sts
    Preparing search index...

    Variable setStatus

    setStatus: (
        id: unknown,
        status: unknown,
        actor?: unknown,
        reason?: unknown,
        options?: ActOptions,
    ) => any = ...

    Type Declaration

      • (
            id: unknown,
            status: unknown,
            actor?: unknown,
            reason?: unknown,
            options?: ActOptions,
        ): any
      • Marks a device compromised or restores it to active.

        Compromised revokes its secret and certificates, ends the sessions its keys authenticated, raises its risk level to HIGH and sends CAEP and RISC; the device stays in the register. Restoring undoes only the risk level the compromise set.

        Parameters

        • id: unknown

          the device's id

        • status: unknown

          active or compromised

        • Optionalactor: unknown

          who did it

        • Optionalreason: unknown

          why

        • Optionaloptions: ActOptions

          who acted, for the audit row and signals

        Returns any

        { ok, device, … }, or a refusal