{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/patentdata-ai/json-schema/patentdata-ai-monitor-in-schema.json",
  "title": "MonitorIn",
  "x-generated": "2026-11-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/patentdata-ai-openapi.json#/components/schemas/MonitorIn",
  "properties": {
    "targets": {
      "$ref": "#/$defs/Targets"
    },
    "events": {
      "items": {
        "type": "string",
        "enum": [
          "office_action",
          "allowance",
          "abandonment",
          "rce",
          "appeal",
          "issue_fee_paid",
          "grant",
          "publication",
          "response_filed",
          "interview",
          "terminal_disclaimer",
          "pta",
          "status_change",
          "assignment",
          "ptab_petition",
          "ptab_decision",
          "maintenance_due",
          "maintenance_lapse",
          "continuation_filed"
        ]
      },
      "type": "array",
      "title": "Events",
      "description": "Event types to deliver; default all."
    },
    "webhook_url": {
      "type": "string",
      "maxLength": 2083,
      "minLength": 1,
      "format": "uri",
      "title": "Webhook Url",
      "description": "https:// endpoint we POST events to."
    },
    "secret": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 128,
          "minLength": 16
        },
        {
          "type": "null"
        }
      ],
      "title": "Secret"
    }
  },
  "type": "object",
  "required": [
    "targets",
    "webhook_url"
  ],
  "$defs": {
    "Targets": {
      "properties": {
        "application_numbers": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "maxItems": 1000,
          "title": "Application Numbers"
        },
        "patent_numbers": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "maxItems": 1000,
          "title": "Patent Numbers"
        },
        "entity_ids": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "maxItems": 100,
          "title": "Entity Ids"
        }
      },
      "type": "object",
      "title": "Targets"
    }
  }
}