{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/github/json-schema/github-interaction-limit-schema.json",
  "title": "Interaction Restrictions",
  "description": "Limit interactions to a specific type of user for a specified duration",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/github-interactions-api-openapi.yml#/components/schemas/interaction-limit",
  "type": "object",
  "properties": {
    "limit": {
      "$ref": "#/$defs/interaction-group"
    },
    "expiry": {
      "$ref": "#/$defs/interaction-expiry"
    }
  },
  "required": [
    "limit"
  ],
  "$defs": {
    "interaction-expiry": {
      "type": "string",
      "description": "The duration of the interaction restriction. Default: `one_day`.",
      "enum": [
        "one_day",
        "three_days",
        "one_week",
        "one_month",
        "six_months"
      ]
    },
    "interaction-group": {
      "type": "string",
      "description": "The type of GitHub user that can comment, open issues, or create pull requests while the interaction limit is in effect.",
      "enum": [
        "existing_users",
        "contributors_only",
        "collaborators_only"
      ]
    }
  }
}