{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "rules": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200,
            "description": "Resource identifier returned by the operation."
          },
          "workspace_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200,
            "description": "Workspace that owns this record."
          },
          "project_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200,
            "description": "Project that owns this record."
          },
          "kind": {
            "type": "string",
            "enum": [
              "reject_domain",
              "reject_url_pattern",
              "require_pattern",
              "domain_cap"
            ]
          },
          "value": {
            "type": "string"
          },
          "source": {
            "type": "string",
            "const": "manual"
          },
          "enabled": {
            "type": "boolean"
          },
          "note": {
            "type": "string"
          },
          "revision": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "description": "Optimistic concurrency revision; supply it as expectedRevision on the next write."
          },
          "created_by": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "created_at": {
            "type": "string",
            "description": "UTC timestamp when the record was created."
          },
          "updated_at": {
            "type": "string",
            "description": "UTC timestamp of the last record update."
          }
        },
        "required": [
          "id",
          "workspace_id",
          "project_id",
          "kind",
          "value",
          "source",
          "enabled",
          "note",
          "revision",
          "created_by",
          "created_at",
          "updated_at"
        ],
        "additionalProperties": false
      }
    },
    "revision": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991,
      "description": "Optimistic concurrency revision; supply it as expectedRevision on the next write."
    },
    "managed_disavow_count": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "cursor": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "rules",
    "revision",
    "managed_disavow_count",
    "cursor"
  ],
  "additionalProperties": {}
}
