psnawp_api.models.group.group_datatypes module
Contains datatypes for group messaging endpoint.
-
class GroupDetails[source]
Bases: TypedDict
Complete metadata describing a PSN group and its current state.
-
existsNewArrival: bool
-
groupIcon: GroupIcon
-
groupId: str
-
groupName: GroupName
-
groupType: int
-
isFavorite: bool
-
joinedTimestamp: str
-
mainThread: MainThread
-
members: list[Member]
-
modifiedTimestamp: str
-
notificationSetting: NotificationSetting
-
class GroupIcon[source]
Bases: TypedDict
Status information related to the group’s icon.
-
status: int
-
class GroupName[source]
Bases: TypedDict
Details about the group’s name and its status.
-
status: int
-
value: str
-
class LatestMessage[source]
Bases: TypedDict
Metadata and content for the most recent message in a group.
-
alternativeMessageType: int
-
body: str
-
createdTimestamp: str
-
messageType: int
-
messageUid: str
-
sender: Sender
-
class MainThread[source]
Bases: TypedDict
Information about the primary message thread in a group.
-
latestMessage: LatestMessage
-
modifiedTimestamp: str
-
readMessageUid: str
-
threadId: str
-
class Member[source]
Bases: TypedDict
Represents a member of a group, including their ID and role.
-
accountId: str
-
onlineId: str
-
role: str
-
class MessageResponse[source]
Bases: TypedDict
Represents the response metadata for a sent message.
-
createdTimestamp: str
-
messageUid: str
-
class NotificationSetting[source]
Bases: TypedDict
User-specific notification settings for a group.
-
isMute: bool
-
class Sender[source]
Bases: TypedDict
Details about the sender of a message.
-
accountId: str
-
onlineId: str