{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/live-earnings-com/json-schema/live-earnings-com-focus-sets-schema.json",
  "title": "FocusSets",
  "x-generated": "2026-11-17",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/live-earnings-com-openapi.yaml#/components/schemas/FocusSets",
  "type": "object",
  "properties": {
    "company_id": {
      "type": "string"
    },
    "focus_sets": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "effective_from_call": {
            "description": "Null when you cannot see that call.",
            "type": [
              "string",
              "null"
            ]
          },
          "effective_from": {
            "type": "string"
          },
          "metric_ids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "why_now": {},
          "checked_by": {
            "type": "object",
            "properties": {
              "by": {
                "type": "string",
                "enum": [
                  "table_map",
                  "person",
                  "model_review"
                ],
                "description": "table_map: a cell under the company's table map, which a person approved; person: approved item by item."
              },
              "channel": {
                "type": "string",
                "enum": [
                  "cli",
                  "chat"
                ]
              }
            },
            "required": [
              "by",
              "channel"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "effective_from_call",
          "effective_from",
          "metric_ids",
          "why_now",
          "checked_by"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "company_id",
    "focus_sets"
  ],
  "additionalProperties": false
}