Skip to content

Variable: noteSchema ​

ts
const noteSchema: ZodObject<{
  audience: ZodOptional<ZodNumber>;
  author: ZodOptional<ZodObject<{
     biography: ZodOptional<ZodString>;
     external_url: ZodOptional<ZodNullable<ZodString>>;
     follower_count: ZodOptional<ZodNullable<ZodNumber>>;
     following_count: ZodOptional<ZodNullable<ZodNumber>>;
     full_name: ZodOptional<ZodString>;
     is_private: ZodOptional<ZodBoolean>;
     is_verified: ZodOptional<ZodBoolean>;
     media_count: ZodOptional<ZodNullable<ZodNumber>>;
     pk: ZodOptional<ZodCoercedString<unknown>>;
     profile_pic_url: ZodOptional<ZodNullable<ZodString>>;
     username: ZodOptional<ZodString>;
  }, $loose>>;
  author_id: ZodOptional<ZodCoercedString<unknown>>;
  created_at: ZodOptional<ZodNumber>;
  expires_at: ZodOptional<ZodNumber>;
  is_emoji_only: ZodOptional<ZodBoolean>;
  note_id: ZodCoercedString<unknown>;
  note_style: ZodOptional<ZodNumber>;
  text: ZodOptional<ZodString>;
}, $loose>;

A note: the short text that sits over a profile picture in the inbox for a day. audience is 0 for mutual followers and 1 for close friends. The times are Unix seconds.

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