Skip to content

Variable: contentPageSchema ​

ts
const contentPageSchema: ZodObject<{
  items: ZodArray<ZodObject<{
     metrics: ZodOptional<ZodArray<ZodObject<{
        metric: ZodString;
        value: ZodOptional<ZodNullable<...>>;
     }, $loose>>>;
     thumbnail: ZodObject<{
        caption_text: ZodOptional<ZodNullable<ZodString>>;
        creation_time: ZodOptional<ZodNumber>;
        media_id: ZodCoercedString<unknown>;
        media_type: ZodOptional<ZodString>;
        media_url: ZodOptional<ZodNullable<ZodString>>;
     }, $loose>;
  }, $loose>>;
  page_info: ZodOptional<ZodObject<{
     end_cursor: ZodOptional<ZodNullable<ZodString>>;
     has_next_page: ZodOptional<ZodBoolean>;
  }, $loose>>;
}, $loose>;

One page of the content list.

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