Skip to content

Variable: insightMetricSchema ​

ts
const insightMetricSchema: ZodObject<{
  format: ZodOptional<ZodString>;
  formatted_value: ZodOptional<ZodString>;
  id: ZodString;
  label: ZodString;
  value: ZodOptional<ZodNullable<ZodNumber>>;
}, $loose>;

One figure of an insights screen, with the text the app shows next to it. value is null when the figure does not apply yet, and the text is then "--". The server sends the value under 1fvalue. The endpoints strip that marker before parsing.

MIT License. Not affiliated with, endorsed or sponsored by Meta or Instagram.