vanhecke/celmex/3.0.0

Unavailable. Nobody can download this version any more, with elm or with the Lamdera compiler: github.com/vanhecke/celmex is gone (deleted or private); Software Heritage not asked yet (this run's --swh-calls were used up); no fork with the same repo name found; no cached copy. Use another version.

Details

Cortex.Api.Quarantine

Quarantine status lookup for files on Cortex-managed endpoints.

type alias FileQuery =
{ endpointId : String
, filePath : String
, fileHash : String
}

One file to look up, identified by the endpoint it lives on, its path, and its SHA-256 hash.

The OpenAPI spec swaps the file_path and file_hash field descriptions, but the wire format and example payload confirm filePath is the on-disk path and fileHash is the SHA-256.

type alias FileStatus =
{ endpointId : Maybe String
, filePath : Maybe String
, fileHash : Maybe String
, status : Maybe Bool
}

Quarantine status of a single file, returned by getStatus.

status is Just True when the file is quarantined on the endpoint, Just False when it is not. All fields are wrapped in Maybe because the API schema does not mark them required.

getStatus : List FileQuery -> Request (List FileStatus)

POST /public_api/v1/quarantine/status

Look up the quarantine status of one or more files. The API rejects an empty list with HTTP 500, so callers should pass at least one FileQuery.