diff --git a/src/Model/InboxAccount.php b/src/Model/InboxAccount.php index f38c30a..68543fb 100644 --- a/src/Model/InboxAccount.php +++ b/src/Model/InboxAccount.php @@ -20,6 +20,8 @@ private function __construct( public readonly ?bool $dmSupported, public readonly ?string $dmPendingReason, public readonly ?bool $canStartConversation, + /** The grant predates a permission the inbox needs; reconnect once. */ + public readonly ?bool $reconnectRequired, ) { parent::__construct($raw); } @@ -41,6 +43,7 @@ public static function fromArray(mixed $data): static self::bool($data, 'dm_supported'), self::str($data, 'dm_pending_reason'), self::bool($data, 'can_start_conversation'), + self::bool($data, 'reconnect_required'), ); } } diff --git a/src/Model/InboxItem.php b/src/Model/InboxItem.php index e221fe0..de7fbd6 100644 --- a/src/Model/InboxItem.php +++ b/src/Model/InboxItem.php @@ -53,6 +53,8 @@ private function __construct( public readonly ?bool $canSendMedia, public readonly ?bool $canQuickReply, public readonly ?bool $canPrivateReply, + /** The platform's own state: published, held, spam or rejected. */ + public readonly ?string $moderationStatus, public readonly ?array $post, public readonly ?array $postContext, public readonly ?array $account, @@ -101,6 +103,7 @@ public static function fromArray(mixed $data): static self::bool($data, 'can_send_media'), self::bool($data, 'can_quick_reply'), self::bool($data, 'can_private_reply'), + self::str($data, 'moderation_status'), self::nested($data, 'post'), self::nested($data, 'post_context'), self::nested($data, 'account'),