{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "artifactKind": {
      "enum": [
        "file",
        "directory-index",
        "document-frontmatter",
        "document-contents",
        "document-preamble"
      ],
      "type": "string"
    },
    "artifactRelativePath": {
      "allOf": [
        {
          "pattern": "^(?!\\/)(?!.*(?:^|\\/)\\.\\.(?:\\/|$))(?!.*\\/\\/)[^\\0\\r\\n]+\\.md$"
        }
      ],
      "type": "string"
    },
    "canonicalPath": {
      "allOf": [
        {
          "pattern": "^(?!\\/)(?!.*(?:^|\\/)\\.\\.(?:\\/|$))(?!.*\\/\\/)[^\\0\\r\\n]+$"
        }
      ],
      "type": "string"
    },
    "contentBlockEndExclusive": {
      "type": "integer"
    },
    "contentBlockStartIndex": {
      "type": "integer"
    },
    "documentOrder": {
      "type": "integer"
    },
    "headingBlockIndex": {
      "type": "integer"
    },
    "headingText": {
      "type": "string"
    },
    "headingTrail": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "markdown": {
      "type": "string"
    },
    "markdownDigest": {
      "allOf": [
        {
          "pattern": "^[0-9a-f]{64}$"
        }
      ],
      "type": "string"
    },
    "markdownDigestAlgorithm": {
      "enum": [
        "sha256"
      ],
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "schemaVersion": {
      "type": "string"
    },
    "slug": {
      "allOf": [
        {
          "pattern": "^[a-z0-9]+(-[a-z0-9]+)*$"
        }
      ],
      "type": "string"
    },
    "slugFingerprintDigest": {
      "allOf": [
        {
          "pattern": "^[0-9a-f]{64}$"
        }
      ],
      "type": "string"
    },
    "sourceDocumentPath": {
      "type": "string"
    },
    "sourceIndexKind": {
      "enum": [
        "body-block",
        "body-div"
      ],
      "type": "string"
    },
    "sourceTextUrl": {
      "allOf": [
        {
          "pattern": "^https:\\/\\/www\\.legislation\\.gov\\.au\\/.+$"
        }
      ],
      "type": "string"
    },
    "structuralPath": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "substantiveBlockCount": {
      "type": "integer"
    },
    "titleId": {
      "type": "string"
    },
    "versionDate": {
      "allOf": [
        {
          "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
        }
      ],
      "type": "string"
    }
  },
  "required": [
    "schemaVersion",
    "slug",
    "titleId",
    "name",
    "versionDate",
    "sourceTextUrl",
    "canonicalPath",
    "artifactRelativePath",
    "artifactKind",
    "structuralPath",
    "headingTrail",
    "headingText",
    "documentOrder",
    "sourceDocumentPath",
    "sourceIndexKind",
    "headingBlockIndex",
    "contentBlockStartIndex",
    "contentBlockEndExclusive",
    "substantiveBlockCount",
    "markdown",
    "markdownDigestAlgorithm",
    "markdownDigest",
    "slugFingerprintDigest"
  ],
  "type": "object",
  "x-legislation": {
    "artifactFamilyKey": "consumer-nodes",
    "artifactPathPattern": ".tooling/consumer-nodes/<slug>.jsonl",
    "derivationMode": "effect-derived",
    "schemaPath": ".tooling/schemas/consumer-nodes.schema.json",
    "schemaVersion": "1.0.0",
    "shapeKind": "encoded-jsonl-record",
    "sourceEffectExport": "ConsumerNodeRecordJson",
    "sourceEffectModule": "src/domain/consumerSurface.ts"
  }
}
