class PostAction(BaseModel): """ A class representing the post action """ name: Optional[str] = field(repr=True) link: Optional[str] = field()
class PagingCursors(BaseModel): """ A class representing the paging cursors. """ after: Optional[str] = field(repr=True) before: Optional[str] = field()
class IgBusPublishLimitConfig(BaseModel): """ A class representing the content publish limit config. """ quota_total: Optional[int] = field(repr=True) quota_duration: Optional[int] = field()
class ReactionSummary(BaseModel): """ A class representing """ total_count: Optional[int] = field() viewer_reaction: Optional[str] = field()
class MsgUser(BaseModel): """ A class representing the User in message. """ id: Optional[str] = field(repr=True, compare=True) name: Optional[str] = field(repr=True) email: Optional[str] = field()
class CvUser(BaseModel): """ A class representing the User in conversation. """ id: Optional[str] = field(repr=True, compare=True) name: Optional[str] = field(repr=True) email: Optional[str] = field()
class ImageSource(BaseModel): """ A class representing the Image Source. """ height: Optional[int] = field() width: Optional[int] = field() src: Optional[str] = field(repr=True)
class Picture(BaseModel): """ A class representing the Picture connection. Refer: https://developers.facebook.com/docs/graph-api/reference/page/picture """ data: Optional[ProfilePictureSource] = field(repr=True) paging: Optional[Paging] = field()
class Attachments(BaseModel): """ A class representing the Attachments connection. Refer: https://developers.facebook.com/docs/graph-api/reference/post/attachments/ """ data: Optional[List[StoryAttachment]] = field(repr=True) paging: Optional[Paging] = field()
class IgBusInsightValue(BaseModel): """ A class representing the Instagram insight value info. Refer: https://developers.facebook.com/docs/instagram-api/reference/ig-user/insights """ value: Optional[Union[int, dict]] = field(repr=True) end_time: Optional[str] = field(repr=True)
class VideoStatus(BaseModel): """ A class representing the Video Status. Refer: https://developers.facebook.com/docs/graph-api/reference/video-status/ """ processing_progress: Optional[int] = field(repr=True) video_status: Optional[str] = field(repr=True)
class IgBusMediaResponse(BaseModel): """ A class representing the Business Medias response. Refer: https://developers.facebook.com/docs/instagram-api/reference/ig-user/media """ data: List[IgBusMedia] = field(repr=True, compare=True) paging: Optional[Paging] = field(repr=True)
class IgBasicMediaResponse(IgBasicMediaChild): """ A class representing the Basic display medias response. Refer: https://developers.facebook.com/docs/instagram-basic-display-api/reference/user/media """ data: Optional[List[IgBasicMedia]] = field(repr=True, compare=True) paging: Optional[Paging] = field(repr=True)
class IgBusMentionedMediaResponse(BaseModel): """ A class representing the response for mentioned media. Refer: https://developers.facebook.com/docs/instagram-api/reference/ig-user/mentioned_media """ mentioned_media: Optional[IgBusMedia] = field(repr=True) id: Optional[str] = field(repr=True)
class IgBusHashtagsResponse(BaseModel): """ A class representing the hashtag. Refer: https://developers.facebook.com/docs/instagram-api/reference/ig-user/recently_searched_hashtags """ data: List[IgBusHashtag] = field(repr=True) paging: Optional[Paging] = field(repr=True)
class IgBusMentionedCommentResponse(BaseModel): """ A class representing the response for mentioned comment. Refer: https://developers.facebook.com/docs/instagram-api/reference/ig-user/mentioned_comment """ mentioned_comment: Optional[IgBusReply] = field(repr=True) id: Optional[str] = field(repr=True)
class IgBusDiscoveryUserMediaResponse(BaseModel): """ A class representing the response for discovery user. Refer: https://developers.facebook.com/docs/instagram-api/reference/ig-user/business_discovery#sample-response """ business_discovery: Optional[IgBusDiscoveryUserMedia] = field(repr=True) id: Optional[str] = field(repr=True)
class IgBusInsightsResponse(BaseModel): """ A class representing the Instagram insights response. Refer: https://developers.facebook.com/docs/instagram-api/reference/ig-user/insights """ data: List[IgBusInsight] = field(repr=True) paging: Optional[Paging] = field()
class UserAgeRange(BaseModel): """ A class representing user age range. Refer: https://developers.facebook.com/docs/graph-api/reference/age-range/ """ max: Optional[int] = field(repr=True) min: Optional[int] = field(repr=True)
class FeedResponse(BaseModel): """ A class representing the post response. Refer: https://developers.facebook.com/docs/graph-api/reference/page/feed/#read """ data: List[Post] = field(repr=True, compare=True) paging: Optional[Paging] = field()
class IgBasicMediaChildren(BaseModel): """ A class representing the Basic display media children data. Refer: https://developers.facebook.com/docs/instagram-basic-display-api/reference/media/children """ data: Optional[List[IgBasicMediaChild]] = field(repr=True) paging: Optional[Paging] = field()
class LiveVideosResponse(BaseModel): """ A class representing the result for live videos edge. Refer: https://developers.facebook.com/docs/graph-api/reference/page/live_videos """ data: List[LiveVideo] = field(repr=True, compare=True) paging: Optional[Paging] = field()
class AlbumResponse(BaseModel): """ A class representing the result for albums edge. Refer: https://developers.facebook.com/docs/graph-api/reference/page/albums """ data: List[Album] = field(repr=True, compare=True) paging: Optional[Paging] = field()
class IgBusHashtag(BaseModel): """ A class representing the hashtag. Refer: https://developers.facebook.com/docs/instagram-api/reference/ig-hashtag/ """ id: Optional[str] = field(repr=True, compare=True) name: Optional[str] = field(repr=True)
class BusinessResponse(BaseModel): """ A class representing the result for businesses edge. Refer: https://developers.facebook.com/docs/graph-api/reference/user/businesses/ """ data: List[Business] = field(repr=True, compare=True) paging: Optional[Paging] = field()
class StoryAttachmentSubattachments(BaseModel): """ A class representing the Story Attachment Subattachments. Refer: https://developers.facebook.com/docs/graph-api/reference/story-attachment/subattachments/ """ data: Optional[List["StoryAttachment"]] = field(repr=True) paging: Optional[Paging] = field()
class IgBusCommentResponse(BaseModel): """ A class representing the comments response. Refer: https://developers.facebook.com/docs/instagram-api/reference/ig-media/comments """ data: List[IgBusComment] = field(repr=True) paging: Optional[Paging] = field(repr=True)
class IgBusPublishLimit(BaseModel): """ A class representing the content publish limit. Refer: https://developers.facebook.com/docs/instagram-api/reference/ig-user/content_publishing_limit """ config: Optional[IgBusPublishLimitConfig] = field(repr=True) quota_usage: Optional[int] = field(repr=True)
class ApplicationAccountsResponse(BaseModel): """ A class representing the application edge accounts response. Refer: https://developers.facebook.com/docs/graph-api/reference/application/accounts/ """ data: Optional[List[ApplicationTestAccount]] = field(repr=True) paging: Optional[Paging] = field()
class StoryAttachmentMedia(BaseModel): """ A class representing the Story Attachment Media. Refer: https://developers.facebook.com/docs/graph-api/reference/story-attachment-media/ """ image: Optional[ImageSource] = field() source: Optional[str] = field(repr=True)