vanhecke/celmex/1.0.0

NOTE: the latest version is 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.Assets

Cortex asset inventory and external attack-surface views.

type alias AssetsResponse =
{ data : List Value
, filterCount : Maybe Int
, totalCount : Maybe Int
}

Response shape for POST /public_api/v1/assets — the asset inventory list. The top-level envelope contains metadata; each asset's xdm.asset.* fields are preserved as raw JSON.

type alias CountedResponse =
{ totalCount : Maybe Int
, resultCount : Maybe Int
, items : List Value
}

Generic paginated response shape shared by several asset endpoints. The inner items vary so widely (external services, internet exposures, IP ranges, vulnerability tests, websites) that each item is decoded as raw JSON to preserve every field.

type alias LastAssessment =
{ status : Maybe Bool
, time : Maybe Int
}

Status + timestamp pair used inside WebsitesLastAssessment.

type alias SchemaEntry =
{ fieldName : Maybe String
, fieldPrettyName : Maybe String
, dataType : Maybe String
}

One row of the asset inventory schema returned by getSchema.

{ lastExternalAssessment : LastAssessment }

Wrapper for getWebsitesLastAssessment's single last_external_assessment field.

list : Request AssetsResponse

POST /public_api/v1/assets — the asset inventory list.

getSchema : Request (List SchemaEntry)

GET /public_api/v1/assets/schema — list the tenant's asset schema.

getExternalIpRanges : Request CountedResponse

POST /public_api/v1/assets/get_external_ip_address_ranges — discovered external IP ranges.

getExternalServices : Request CountedResponse

POST /public_api/v1/assets/get_external_services — externally reachable services.

getExternalWebsites : Request CountedResponse

POST /public_api/v1/assets/get_external_websites — externally reachable websites.

getInternetExposures : Request CountedResponse

POST /public_api/v1/assets/get_assets_internet_exposure — assets exposed to the public internet.

getVulnerabilityTests : Request CountedResponse

POST /public_api/v1/assets/get_vulnerability_tests — vulnerability scanner results.

getWebsitesLastAssessment : Request WebsitesLastAssessment

POST /public_api/v1/assets/get_external_websites/last_external_assessment — status + timestamp of the most recent websites scan.