Skip to content

Variable: friendshipStatusSchema ​

ts
const friendshipStatusSchema: ZodObject<{
  blocking: ZodOptional<ZodBoolean>;
  followed_by: ZodOptional<ZodBoolean>;
  following: ZodOptional<ZodBoolean>;
  incoming_request: ZodOptional<ZodBoolean>;
  is_bestie: ZodOptional<ZodBoolean>;
  is_muting_reel: ZodOptional<ZodBoolean>;
  is_private: ZodOptional<ZodBoolean>;
  is_restricted: ZodOptional<ZodBoolean>;
  muting: ZodOptional<ZodBoolean>;
  outgoing_request: ZodOptional<ZodBoolean>;
}, $loose>;

The relationship between the logged-in account and another user, as the private API reports it on the friendships endpoints. Only the fields the SDK exposes are typed. The rest pass through, and each is optional because the API includes a different subset per endpoint and context.

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