{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "v": {
      "type": "number",
      "const": 1,
      "description": "v recorded for this result."
    },
    "id": {
      "type": "string",
      "pattern": "^[a-zA-Z0-9_-]{1,128}$",
      "description": "Resource identifier returned by the operation."
    },
    "revision": {
      "type": "integer",
      "minimum": 1,
      "maximum": 9007199254740991,
      "description": "revision recorded for this result."
    },
    "workspace_id": {
      "type": "string",
      "pattern": "^[a-zA-Z0-9_-]{1,128}$",
      "description": "Workspace that owns this record."
    },
    "project_id": {
      "type": "string",
      "pattern": "^[a-zA-Z0-9_-]{1,128}$",
      "description": "Project that owns this record."
    },
    "approved_by": {
      "type": "string",
      "pattern": "^[a-zA-Z0-9_-]{1,128}$",
      "description": "approved by recorded for this result."
    },
    "approved_at": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$",
      "description": "approved at recorded for this result."
    },
    "members": {
      "minItems": 2,
      "maxItems": 11,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-zA-Z0-9_-]{1,128}$",
            "description": "Resource identifier returned by the operation."
          },
          "role": {
            "type": "string",
            "enum": [
              "customer",
              "competitor"
            ],
            "description": "role recorded for this result."
          },
          "scope": {
            "type": "object",
            "properties": {
              "target_kind": {
                "type": "string",
                "enum": [
                  "domain",
                  "exact_url"
                ],
                "description": "target kind recorded for this result."
              },
              "target": {
                "type": "string",
                "minLength": 1,
                "maxLength": 4096,
                "description": "target recorded for this result."
              },
              "include_subdomains": {
                "type": "boolean",
                "description": "include subdomains recorded for this result."
              }
            },
            "required": [
              "target_kind",
              "target",
              "include_subdomains"
            ],
            "additionalProperties": false,
            "description": "scope recorded for this result."
          }
        },
        "required": [
          "id",
          "role",
          "scope"
        ],
        "additionalProperties": false,
        "description": "members recorded for this result."
      },
      "description": "members recorded for this result."
    },
    "current_revision": {
      "type": "number",
      "description": "current revision recorded for this result."
    },
    "retired_at": {
      "anyOf": [
        {
          "type": "string",
          "description": "retired at recorded for this result."
        },
        {
          "type": "null"
        }
      ],
      "description": "retired at recorded for this result."
    }
  },
  "required": [
    "v",
    "id",
    "revision",
    "workspace_id",
    "project_id",
    "approved_by",
    "approved_at",
    "members",
    "current_revision",
    "retired_at"
  ],
  "additionalProperties": {}
}
