let oci = import "schemas/lib/integration/oci_artifact_format.ncl" in

{
  artifact = {
    media_type  = "application/vnd.ontoref.domain.v1",
    id          = "<my-domain-id>",
    version     = "0.1.0",
    description = "<one-line summary of what this domain represents>",
    layers = [
      {
        media_type  = "application/vnd.ontoref.domain.contract.v1",
        description = "contract.ncl — typed schema for <my-domain-id>",
        required    = true,
      },
      {
        media_type  = "application/vnd.ontoref.domain.example.v1",
        description = "example.json — reference instance",
        required    = false,
      },
    ],
    # ADR-017 G2 — declare which RegistryEntry credentials this artifact depends
    # on. Used by `ore secrets close` impact analysis to identify which artifacts
    # are affected when credentials change. Empty if the domain does not consume
    # registry credentials at runtime.
    uses_registry = "primary",
  } | oci.DomainArtifact,
}
