{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/live-earnings-com/json-schema/live-earnings-com-key-metrics-payload-schema.json",
  "title": "KeyMetricsPayload",
  "description": "A company's key metrics as of a moment: the focus set in force, every figure with where it came from, and our calculations on them.",
  "x-generated": "2026-11-17",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/live-earnings-com-openapi.yaml#/components/schemas/KeyMetricsPayload",
  "type": "object",
  "properties": {
    "company": {
      "type": "object",
      "properties": {
        "company_id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "aliases": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string"
              },
              "value": {
                "type": "string"
              },
              "valid_from": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "valid_to": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "kind",
              "value",
              "valid_from",
              "valid_to"
            ],
            "additionalProperties": false
          }
        }
      },
      "required": [
        "company_id",
        "name",
        "aliases"
      ],
      "additionalProperties": false
    },
    "as_of": {
      "type": "string"
    },
    "view": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "const": "company"
            }
          },
          "required": [
            "kind"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "const": "release"
            },
            "call_slug": {
              "type": "string"
            },
            "call_status": {
              "type": "string"
            },
            "release": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "published_at": {
                      "type": "string"
                    },
                    "sources": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "enum": [
                              "sec_exhibit",
                              "live_transcript"
                            ]
                          },
                          "url": {
                            "type": "string",
                            "description": "The document: the immutable SEC Archives URL, or the call's transcript turn."
                          },
                          "accession": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "published_at": {
                            "type": "string",
                            "description": "When the company published it (EDGAR acceptance for an exhibit)."
                          }
                        },
                        "required": [
                          "kind",
                          "url",
                          "accession",
                          "published_at"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "published_at",
                    "sources"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "kind",
            "call_slug",
            "call_status",
            "release"
          ],
          "additionalProperties": false
        }
      ]
    },
    "coverage": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "applies_to": {
            "type": "string",
            "enum": [
              "guidance",
              "actual",
              "metric"
            ]
          },
          "state": {
            "type": "string"
          },
          "note": {
            "type": "string"
          }
        },
        "required": [
          "applies_to",
          "state",
          "note"
        ],
        "additionalProperties": false
      }
    },
    "focus_set": {
      "anyOf": [
        {
          "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
        },
        {
          "type": "null"
        }
      ]
    },
    "metrics": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "metric_id": {
            "type": "string"
          },
          "display_name": {
            "type": "string"
          },
          "value_kind": {
            "type": "string",
            "enum": [
              "level",
              "margin",
              "share",
              "count",
              "growth_rate",
              "per_share"
            ]
          },
          "unit": {
            "type": "string",
            "enum": [
              "currency",
              "percent",
              "count"
            ]
          },
          "currency": {
            "type": [
              "string",
              "null"
            ]
          },
          "base_scale": {
            "type": "string"
          },
          "definition": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "definition_version_id": {
                    "type": "string"
                  },
                  "version": {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  "text": {
                    "type": "string"
                  }
                },
                "required": [
                  "definition_version_id",
                  "version",
                  "text"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "actuals": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "observation_id": {
                  "type": "string"
                },
                "kind": {
                  "type": "string",
                  "enum": [
                    "actual",
                    "guidance"
                  ]
                },
                "period_label": {
                  "type": "string",
                  "description": "As printed, e.g. \"Q2 2026\" or \"FY 2026\"."
                },
                "period_type": {
                  "type": "string",
                  "enum": [
                    "quarter",
                    "year"
                  ]
                },
                "fiscal_year": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                },
                "fiscal_quarter": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "operator": {
                  "type": "string",
                  "enum": [
                    "eq",
                    "approx",
                    "range",
                    "point_plus_minus",
                    "gte",
                    "gt",
                    "lte",
                    "lt"
                  ]
                },
                "lower": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "upper": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "point": {
                  "description": "In the metric's base scale (e.g. € millions).",
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "printed": {
                  "type": "object",
                  "propertyNames": {
                    "type": "string"
                  },
                  "additionalProperties": {},
                  "description": "The figure exactly as printed: tokens, scale word, decimals."
                },
                "origin": {
                  "type": "string",
                  "const": "printed",
                  "description": "The company's own figure."
                },
                "provenance": {
                  "type": "string",
                  "enum": [
                    "release_table",
                    "release_text",
                    "call",
                    "derived"
                  ]
                },
                "status": {
                  "type": "string"
                },
                "role": {
                  "type": "string",
                  "enum": [
                    "current",
                    "reprint",
                    "prior_as_stated"
                  ]
                },
                "issued_at": {
                  "type": "string"
                },
                "source": {
                  "type": "object",
                  "properties": {
                    "kind": {
                      "type": "string",
                      "enum": [
                        "sec_exhibit",
                        "live_transcript"
                      ]
                    },
                    "url": {
                      "type": "string",
                      "description": "The document: the immutable SEC Archives URL, or the call's transcript turn."
                    },
                    "accession": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "published_at": {
                      "type": "string",
                      "description": "When the company published it (EDGAR acceptance for an exhibit)."
                    }
                  },
                  "required": [
                    "kind",
                    "url",
                    "accession",
                    "published_at"
                  ],
                  "additionalProperties": false
                },
                "locator": {
                  "type": "object",
                  "propertyNames": {
                    "type": "string"
                  },
                  "additionalProperties": {},
                  "description": "Where in the source: table, row and column headers, or sentence line, or transcript turn."
                },
                "verbatim": {
                  "type": "string",
                  "description": "The row or sentence exactly as published."
                },
                "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
                },
                "restated_later": {
                  "type": "boolean"
                },
                "call_slug": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "announcement": {
                  "type": "string",
                  "enum": [
                    "original",
                    "reprint_only"
                  ]
                }
              },
              "required": [
                "observation_id",
                "kind",
                "period_label",
                "period_type",
                "fiscal_year",
                "fiscal_quarter",
                "operator",
                "lower",
                "upper",
                "point",
                "printed",
                "origin",
                "provenance",
                "status",
                "role",
                "issued_at",
                "source",
                "locator",
                "verbatim",
                "checked_by",
                "restated_later",
                "call_slug",
                "announcement"
              ],
              "additionalProperties": false
            }
          },
          "guidance": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "observation_id": {
                  "type": "string"
                },
                "kind": {
                  "type": "string",
                  "enum": [
                    "actual",
                    "guidance"
                  ]
                },
                "period_label": {
                  "type": "string",
                  "description": "As printed, e.g. \"Q2 2026\" or \"FY 2026\"."
                },
                "period_type": {
                  "type": "string",
                  "enum": [
                    "quarter",
                    "year"
                  ]
                },
                "fiscal_year": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                },
                "fiscal_quarter": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "operator": {
                  "type": "string",
                  "enum": [
                    "eq",
                    "approx",
                    "range",
                    "point_plus_minus",
                    "gte",
                    "gt",
                    "lte",
                    "lt"
                  ]
                },
                "lower": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "upper": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "point": {
                  "description": "In the metric's base scale (e.g. € millions).",
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "printed": {
                  "type": "object",
                  "propertyNames": {
                    "type": "string"
                  },
                  "additionalProperties": {},
                  "description": "The figure exactly as printed: tokens, scale word, decimals."
                },
                "origin": {
                  "type": "string",
                  "const": "printed",
                  "description": "The company's own figure."
                },
                "provenance": {
                  "type": "string",
                  "enum": [
                    "release_table",
                    "release_text",
                    "call",
                    "derived"
                  ]
                },
                "status": {
                  "type": "string"
                },
                "role": {
                  "type": "string",
                  "enum": [
                    "current",
                    "reprint",
                    "prior_as_stated"
                  ]
                },
                "issued_at": {
                  "type": "string"
                },
                "source": {
                  "type": "object",
                  "properties": {
                    "kind": {
                      "type": "string",
                      "enum": [
                        "sec_exhibit",
                        "live_transcript"
                      ]
                    },
                    "url": {
                      "type": "string",
                      "description": "The document: the immutable SEC Archives URL, or the call's transcript turn."
                    },
                    "accession": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "published_at": {
                      "type": "string",
                      "description": "When the company published it (EDGAR acceptance for an exhibit)."
                    }
                  },
                  "required": [
                    "kind",
                    "url",
                    "accession",
                    "published_at"
                  ],
                  "additionalProperties": false
                },
                "locator": {
                  "type": "object",
                  "propertyNames": {
                    "type": "string"
                  },
                  "additionalProperties": {},
                  "description": "Where in the source: table, row and column headers, or sentence line, or transcript turn."
                },
                "verbatim": {
                  "type": "string",
                  "description": "The row or sentence exactly as published."
                },
                "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
                },
                "restated_later": {
                  "type": "boolean"
                },
                "call_slug": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "in_force": {
                  "type": "boolean"
                }
              },
              "required": [
                "observation_id",
                "kind",
                "period_label",
                "period_type",
                "fiscal_year",
                "fiscal_quarter",
                "operator",
                "lower",
                "upper",
                "point",
                "printed",
                "origin",
                "provenance",
                "status",
                "role",
                "issued_at",
                "source",
                "locator",
                "verbatim",
                "checked_by",
                "restated_later",
                "call_slug",
                "in_force"
              ],
              "additionalProperties": false
            }
          },
          "changes": {
            "type": "array",
            "items": {
              "oneOf": [
                {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "enum": [
                        "yoy",
                        "qoq"
                      ]
                    },
                    "period_label": {
                      "type": "string"
                    },
                    "unit": {
                      "type": "string",
                      "enum": [
                        "pct",
                        "pts"
                      ]
                    },
                    "value": {
                      "type": "number"
                    },
                    "method": {
                      "type": "string",
                      "enum": [
                        "pct_change",
                        "pts_change"
                      ]
                    },
                    "origin": {
                      "type": "string",
                      "const": "ours",
                      "description": "Our calculation, never the company's figure."
                    },
                    "inputs": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "The observation ids it used."
                    },
                    "calc_version": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    }
                  },
                  "required": [
                    "type",
                    "period_label",
                    "unit",
                    "value",
                    "method",
                    "origin",
                    "inputs",
                    "calc_version"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "const": "actual_vs_guide"
                    },
                    "period_label": {
                      "type": "string"
                    },
                    "result": {
                      "type": "string",
                      "enum": [
                        "below",
                        "within",
                        "above",
                        "equal",
                        "not_equal"
                      ]
                    },
                    "distance": {
                      "type": "number",
                      "description": "Distance to the nearer end of the guide, in the base scale; 0 when within."
                    },
                    "guide_issued_at": {
                      "type": "string"
                    },
                    "method": {
                      "type": "string",
                      "const": "against_latest_guide_before_announcement"
                    },
                    "origin": {
                      "type": "string",
                      "const": "ours",
                      "description": "Our calculation, never the company's figure."
                    },
                    "inputs": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "The observation ids it used."
                    },
                    "calc_version": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    }
                  },
                  "required": [
                    "type",
                    "period_label",
                    "result",
                    "distance",
                    "guide_issued_at",
                    "method",
                    "origin",
                    "inputs",
                    "calc_version"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "enum": [
                        "guide_implied_yoy",
                        "guide_implied_qoq"
                      ]
                    },
                    "period_label": {
                      "type": "string"
                    },
                    "unit": {
                      "type": "string",
                      "enum": [
                        "pct",
                        "pts"
                      ]
                    },
                    "lower": {
                      "type": "number"
                    },
                    "upper": {
                      "type": "number"
                    },
                    "method": {
                      "type": "string",
                      "const": "both_ends",
                      "description": "A range stays a range: computed from both ends, never a midpoint."
                    },
                    "origin": {
                      "type": "string",
                      "const": "ours",
                      "description": "Our calculation, never the company's figure."
                    },
                    "inputs": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "The observation ids it used."
                    },
                    "calc_version": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    }
                  },
                  "required": [
                    "type",
                    "period_label",
                    "unit",
                    "lower",
                    "upper",
                    "method",
                    "origin",
                    "inputs",
                    "calc_version"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "const": "revision"
                    },
                    "period_label": {
                      "type": "string"
                    },
                    "from_issued_at": {
                      "type": "string"
                    },
                    "to_issued_at": {
                      "type": "string"
                    },
                    "lower_delta": {
                      "type": "number"
                    },
                    "upper_delta": {
                      "type": "number"
                    },
                    "width_delta": {
                      "type": "number"
                    },
                    "method": {
                      "type": "string",
                      "const": "between_issuances"
                    },
                    "origin": {
                      "type": "string",
                      "const": "ours",
                      "description": "Our calculation, never the company's figure."
                    },
                    "inputs": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "The observation ids it used."
                    },
                    "calc_version": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    }
                  },
                  "required": [
                    "type",
                    "period_label",
                    "from_issued_at",
                    "to_issued_at",
                    "lower_delta",
                    "upper_delta",
                    "width_delta",
                    "method",
                    "origin",
                    "inputs",
                    "calc_version"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "const": "implied_remaining"
                    },
                    "period_label": {
                      "type": "string"
                    },
                    "remaining_label": {
                      "type": "string"
                    },
                    "lower": {
                      "type": "number"
                    },
                    "upper": {
                      "type": "number"
                    },
                    "method": {
                      "type": "string",
                      "const": "fy_range_minus_ytd"
                    },
                    "origin": {
                      "type": "string",
                      "const": "ours",
                      "description": "Our calculation, never the company's figure."
                    },
                    "inputs": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "The observation ids it used."
                    },
                    "calc_version": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    }
                  },
                  "required": [
                    "type",
                    "period_label",
                    "remaining_label",
                    "lower",
                    "upper",
                    "method",
                    "origin",
                    "inputs",
                    "calc_version"
                  ],
                  "additionalProperties": false
                }
              ]
            }
          },
          "not_calculated": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string"
                },
                "period_label": {
                  "type": "string"
                },
                "reason": {
                  "type": "string"
                }
              },
              "required": [
                "type",
                "period_label",
                "reason"
              ],
              "additionalProperties": false
            }
          },
          "coverage": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "applies_to": {
                  "type": "string",
                  "enum": [
                    "guidance",
                    "actual",
                    "metric"
                  ]
                },
                "state": {
                  "type": "string"
                },
                "note": {
                  "type": "string"
                }
              },
              "required": [
                "applies_to",
                "state",
                "note"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "metric_id",
          "display_name",
          "value_kind",
          "unit",
          "currency",
          "base_scale",
          "definition",
          "actuals",
          "guidance",
          "changes",
          "not_calculated",
          "coverage"
        ],
        "additionalProperties": false
      }
    },
    "calc_version": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "revision": {
      "type": "string",
      "description": "Changes whenever anything in the payload changes; poll on it."
    }
  },
  "required": [
    "company",
    "as_of",
    "view",
    "coverage",
    "focus_set",
    "metrics",
    "calc_version",
    "revision"
  ],
  "additionalProperties": false
}