{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/antfly/json-schema/antfly-resolver-suppression-request-schema.json",
  "title": "ResolverSuppressionRequest",
  "description": "Add keys or normalized texts. The add/remove form updates both sets in one revision. Runtime removals do not override declarative suppression.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/antfly-resolver-curation-api-openapi.yml#/components/schemas/ResolverSuppressionRequest",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "actor": {
      "type": "string",
      "maxLength": 256
    },
    "reason": {
      "type": "string",
      "maxLength": 4096
    },
    "keys": {
      "type": "array",
      "maxItems": 100000,
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 16384
      }
    },
    "texts": {
      "type": "array",
      "maxItems": 100000,
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 16384
      }
    },
    "add": {
      "$ref": "#/$defs/ResolverSuppressionSelection"
    },
    "remove": {
      "$ref": "#/$defs/ResolverSuppressionSelection"
    },
    "expected_revision": {
      "type": "integer",
      "format": "uint64",
      "minimum": 0,
      "x-go-type-skip-optional-pointer": false,
      "description": "Optional revision fence. Explicit zero fences the first edit; omission disables the fence."
    },
    "wait": {
      "$ref": "#/$defs/ResolverWait"
    }
  },
  "$defs": {
    "ResolverSuppressionSelection": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "keys": {
          "type": "array",
          "maxItems": 100000,
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 16384
          }
        },
        "texts": {
          "type": "array",
          "maxItems": 100000,
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 16384
          }
        }
      }
    },
    "ResolverWait": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "timeout_ms": {
          "type": "integer",
          "format": "uint32",
          "minimum": 1,
          "maximum": 300000,
          "default": 1000
        }
      },
      "description": "Wait for observed replay completion up to this timeout. A timeout returns accepted state with applied=false; it does not undo the mutation."
    }
  }
}