Parse and validate AT Protocol Lexicons with DTO generation for Laravel
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix constructor docblocks and add reserved keyword handling

+346 -294
+1 -2
src/Generated/App/Bsky/Actor/Defs/AdultContentPref.php
··· 15 15 */ 16 16 class AdultContentPref extends Data 17 17 { 18 - /** 19 - */ 18 + 20 19 public function __construct( 21 20 public readonly bool $enabled 22 21 ) {
+1 -2
src/Generated/App/Bsky/Actor/Defs/BskyAppProgressGuide.php
··· 19 19 */ 20 20 class BskyAppProgressGuide extends Data 21 21 { 22 - /** 23 - */ 22 + 24 23 public function __construct( 25 24 public readonly string $guide 26 25 ) {
+1
src/Generated/App/Bsky/Actor/Defs/BskyAppStatePref.php
··· 22 22 */ 23 23 class BskyAppStatePref extends Data 24 24 { 25 + 25 26 /** 26 27 * @param array<string>|null $queuedNudges An array of tokens which identify nudges (modals, popups, tours, highlight dots) that should be shown to the user. 27 28 * @param array<Nux>|null $nuxs Storage for NUXs the user has encountered.
+1
src/Generated/App/Bsky/Actor/Defs/ContentLabelPref.php
··· 18 18 */ 19 19 class ContentLabelPref extends Data 20 20 { 21 + 21 22 /** 22 23 * @param string|null $labelerDid Which labeler does this preference apply to? If undefined, applies globally. 23 24 */
+1
src/Generated/App/Bsky/Actor/Defs/FeedViewPref.php
··· 20 20 */ 21 21 class FeedViewPref extends Data 22 22 { 23 + 23 24 /** 24 25 * @param string $feed The URI of the feed, or an identifier which describes the feed. 25 26 * @param bool|null $hideReplies Hide replies in the feed.
+1
src/Generated/App/Bsky/Actor/Defs/HiddenPostsPref.php
··· 15 15 */ 16 16 class HiddenPostsPref extends Data 17 17 { 18 + 18 19 /** 19 20 * @param array<string> $items A list of URIs of posts the account owner has hidden. 20 21 */
+1
src/Generated/App/Bsky/Actor/Defs/InterestsPref.php
··· 16 16 */ 17 17 class InterestsPref extends Data 18 18 { 19 + 19 20 /** 20 21 * @param array<string> $tags A list of tags which describe the account owner's interests gathered during onboarding. 21 22 */
+1 -2
src/Generated/App/Bsky/Actor/Defs/KnownFollowers.php
··· 20 20 */ 21 21 class KnownFollowers extends Data 22 22 { 23 - /** 24 - */ 23 + 25 24 public function __construct( 26 25 public readonly int $count, 27 26 public readonly array $followers
+1 -2
src/Generated/App/Bsky/Actor/Defs/LabelerPrefItem.php
··· 16 16 */ 17 17 class LabelerPrefItem extends Data 18 18 { 19 - /** 20 - */ 19 + 21 20 public function __construct( 22 21 public readonly string $did 23 22 ) {
+1 -2
src/Generated/App/Bsky/Actor/Defs/LabelersPref.php
··· 15 15 */ 16 16 class LabelersPref extends Data 17 17 { 18 - /** 19 - */ 18 + 20 19 public function __construct( 21 20 public readonly array $labelers 22 21 ) {
+1
src/Generated/App/Bsky/Actor/Defs/MutedWord.php
··· 26 26 */ 27 27 class MutedWord extends Data 28 28 { 29 + 29 30 /** 30 31 * @param string $value The muted word itself. 31 32 * @param array<MutedWordTarget> $targets The intended targets of the muted word.
+1
src/Generated/App/Bsky/Actor/Defs/MutedWordsPref.php
··· 16 16 */ 17 17 class MutedWordsPref extends Data 18 18 { 19 + 19 20 /** 20 21 * @param array<MutedWord> $items A list of words the account owner has muted. 21 22 */
+1
src/Generated/App/Bsky/Actor/Defs/Nux.php
··· 25 25 */ 26 26 class Nux extends Data 27 27 { 28 + 28 29 /** 29 30 * @param string|null $data Arbitrary data for the NUX. The structure is defined by the NUX itself. Limited to 300 characters. 30 31 * @param Carbon|null $expiresAt The date and time at which the NUX will expire and should be considered completed.
+1
src/Generated/App/Bsky/Actor/Defs/PersonalDetailsPref.php
··· 16 16 */ 17 17 class PersonalDetailsPref extends Data 18 18 { 19 + 19 20 /** 20 21 * @param Carbon|null $birthDate The birth date of account owner. 21 22 */
+1
src/Generated/App/Bsky/Actor/Defs/PostInteractionSettingsPref.php
··· 21 21 */ 22 22 class PostInteractionSettingsPref extends Data 23 23 { 24 + 24 25 /** 25 26 * @param array|null $threadgateAllowRules Matches threadgate record. List of rules defining who can reply to this users posts. If value is an empty array, no one can reply. If value is undefined, anyone can reply. 26 27 * @param array|null $postgateEmbeddingRules Matches postgate record. List of rules defining who can embed this users posts. If value is an empty array or is undefined, no particular rules apply and anyone can embed.
+1 -2
src/Generated/App/Bsky/Actor/Defs/ProfileAssociated.php
··· 17 17 */ 18 18 class ProfileAssociated extends Data 19 19 { 20 - /** 21 - */ 20 + 22 21 public function __construct( 23 22 public readonly ?int $lists = null, 24 23 public readonly ?int $feedgens = null,
+1 -2
src/Generated/App/Bsky/Actor/Defs/ProfileAssociatedActivitySubscription.php
··· 15 15 */ 16 16 class ProfileAssociatedActivitySubscription extends Data 17 17 { 18 - /** 19 - */ 18 + 20 19 public function __construct( 21 20 public readonly string $allowSubscriptions 22 21 ) {
+1 -2
src/Generated/App/Bsky/Actor/Defs/ProfileAssociatedChat.php
··· 15 15 */ 16 16 class ProfileAssociatedChat extends Data 17 17 { 18 - /** 19 - */ 18 + 20 19 public function __construct( 21 20 public readonly string $allowIncoming 22 21 ) {
+1
src/Generated/App/Bsky/Actor/Defs/ProfileView.php
··· 39 39 */ 40 40 class ProfileView extends Data 41 41 { 42 + 42 43 /** 43 44 * @param mixed $debug Debug information for internal development 44 45 */
+1
src/Generated/App/Bsky/Actor/Defs/ProfileViewBasic.php
··· 34 34 */ 35 35 class ProfileViewBasic extends Data 36 36 { 37 + 37 38 /** 38 39 * @param mixed $debug Debug information for internal development 39 40 */
+1
src/Generated/App/Bsky/Actor/Defs/ProfileViewDetailed.php
··· 50 50 */ 51 51 class ProfileViewDetailed extends Data 52 52 { 53 + 53 54 /** 54 55 * @param mixed $debug Debug information for internal development 55 56 */
+1 -2
src/Generated/App/Bsky/Actor/Defs/SavedFeed.php
··· 18 18 */ 19 19 class SavedFeed extends Data 20 20 { 21 - /** 22 - */ 21 + 23 22 public function __construct( 24 23 public readonly string $id, 25 24 public readonly string $type,
+1 -2
src/Generated/App/Bsky/Actor/Defs/SavedFeedsPref.php
··· 17 17 */ 18 18 class SavedFeedsPref extends Data 19 19 { 20 - /** 21 - */ 20 + 22 21 public function __construct( 23 22 public readonly array $pinned, 24 23 public readonly array $saved,
+1 -2
src/Generated/App/Bsky/Actor/Defs/SavedFeedsPrefV2.php
··· 16 16 */ 17 17 class SavedFeedsPrefV2 extends Data 18 18 { 19 - /** 20 - */ 19 + 21 20 public function __construct( 22 21 public readonly array $items 23 22 ) {
+1
src/Generated/App/Bsky/Actor/Defs/StatusView.php
··· 22 22 */ 23 23 class StatusView extends Data 24 24 { 25 + 25 26 /** 26 27 * @param string $status The status for the account. 27 28 * @param mixed $embed An optional embed associated with the status.
+1
src/Generated/App/Bsky/Actor/Defs/ThreadViewPref.php
··· 12 12 */ 13 13 class ThreadViewPref extends Data 14 14 { 15 + 15 16 /** 16 17 * @param string|null $sort Sorting mode for threads. 17 18 */
+1
src/Generated/App/Bsky/Actor/Defs/VerificationPrefs.php
··· 14 14 */ 15 15 class VerificationPrefs extends Data 16 16 { 17 + 17 18 /** 18 19 * @param bool|null $hideBadges Hide the blue check badges for verified accounts and trusted verifiers. 19 20 */
+1
src/Generated/App/Bsky/Actor/Defs/VerificationState.php
··· 20 20 */ 21 21 class VerificationState extends Data 22 22 { 23 + 23 24 /** 24 25 * @param array $verifications All verifications issued by trusted verifiers on behalf of this user. Verifications by untrusted verifiers are not included. 25 26 * @param string $verifiedStatus The user's status as a verified account.
+1
src/Generated/App/Bsky/Actor/Defs/VerificationView.php
··· 24 24 */ 25 25 class VerificationView extends Data 26 26 { 27 + 27 28 /** 28 29 * @param string $issuer The user who issued this verification. 29 30 * @param string $uri The AT-URI of the verification record.
+1
src/Generated/App/Bsky/Actor/Defs/ViewerState.php
··· 30 30 */ 31 31 class ViewerState extends Data 32 32 { 33 + 33 34 /** 34 35 * @param mixed $knownFollowers This property is present only in selected cases, as an optimization. 35 36 * @param ActivitySubscription|null $activitySubscription This property is present only in selected cases, as an optimization.
+1 -2
src/Generated/App/Bsky/Embed/Defs/AspectRatio.php
··· 21 21 */ 22 22 class AspectRatio extends Data 23 23 { 24 - /** 25 - */ 24 + 26 25 public function __construct( 27 26 public readonly int $width, 28 27 public readonly int $height
+1 -3
src/Generated/App/Bsky/Embed/External.php
··· 3 3 namespace SocialDept\Schema\Generated\App\Bsky\Embed; 4 4 5 5 use SocialDept\Schema\Data\Data; 6 - use SocialDept\Schema\Generated\App\Bsky\Embed\External\External; 7 6 8 7 /** 9 8 * Lexicon: app.bsky.embed.external ··· 16 15 */ 17 16 class External extends Data 18 17 { 19 - /** 20 - */ 18 + 21 19 public function __construct( 22 20 public readonly External $external 23 21 ) {
+1 -2
src/Generated/App/Bsky/Embed/External/External.php
··· 20 20 */ 21 21 class External extends Data 22 22 { 23 - /** 24 - */ 23 + 25 24 public function __construct( 26 25 public readonly string $uri, 27 26 public readonly string $title,
+1 -2
src/Generated/App/Bsky/Embed/External/View.php
··· 15 15 */ 16 16 class View extends Data 17 17 { 18 - /** 19 - */ 18 + 20 19 public function __construct( 21 20 public readonly mixed $external 22 21 ) {
+1 -2
src/Generated/App/Bsky/Embed/External/ViewExternal.php
··· 20 20 */ 21 21 class ViewExternal extends Data 22 22 { 23 - /** 24 - */ 23 + 25 24 public function __construct( 26 25 public readonly string $uri, 27 26 public readonly string $title,
+1 -3
src/Generated/App/Bsky/Embed/Images.php
··· 3 3 namespace SocialDept\Schema\Generated\App\Bsky\Embed; 4 4 5 5 use SocialDept\Schema\Data\Data; 6 - use SocialDept\Schema\Generated\App\Bsky\Embed\Images\Image; 7 6 8 7 /** 9 8 * A set of images embedded in a Bluesky record (eg, a post). ··· 19 18 */ 20 19 class Images extends Data 21 20 { 22 - /** 23 - */ 21 + 24 22 public function __construct( 25 23 public readonly array $images 26 24 ) {
+1
src/Generated/App/Bsky/Embed/Images/Image.php
··· 19 19 */ 20 20 class Image extends Data 21 21 { 22 + 22 23 /** 23 24 * @param string $alt Alt text description of the image, for accessibility. 24 25 */
+1 -2
src/Generated/App/Bsky/Embed/Images/View.php
··· 16 16 */ 17 17 class View extends Data 18 18 { 19 - /** 20 - */ 19 + 21 20 public function __construct( 22 21 public readonly array $images 23 22 ) {
+1
src/Generated/App/Bsky/Embed/Images/ViewImage.php
··· 21 21 */ 22 22 class ViewImage extends Data 23 23 { 24 + 24 25 /** 25 26 * @param string $thumb Fully-qualified URL where a thumbnail of the image can be fetched. For example, CDN location provided by the App View. 26 27 * @param string $fullsize Fully-qualified URL where a large version of the image can be fetched. May or may not be the exact original blob. For example, CDN location provided by the App View.
+1 -2
src/Generated/App/Bsky/Embed/Record.php
··· 19 19 */ 20 20 class Record extends Data 21 21 { 22 - /** 23 - */ 22 + 24 23 public function __construct( 25 24 public readonly StrongRef $record 26 25 ) {
+1 -2
src/Generated/App/Bsky/Embed/Record/View.php
··· 16 16 */ 17 17 class View extends Data 18 18 { 19 - /** 20 - */ 19 + 21 20 public function __construct( 22 21 public readonly mixed $record 23 22 ) {
+1 -2
src/Generated/App/Bsky/Embed/Record/ViewBlocked.php
··· 20 20 */ 21 21 class ViewBlocked extends Data 22 22 { 23 - /** 24 - */ 23 + 25 24 public function __construct( 26 25 public readonly string $uri, 27 26 public readonly bool $blocked,
+1 -2
src/Generated/App/Bsky/Embed/Record/ViewDetached.php
··· 18 18 */ 19 19 class ViewDetached extends Data 20 20 { 21 - /** 22 - */ 21 + 23 22 public function __construct( 24 23 public readonly string $uri, 25 24 public readonly bool $detached
+1 -2
src/Generated/App/Bsky/Embed/Record/ViewNotFound.php
··· 18 18 */ 19 19 class ViewNotFound extends Data 20 20 { 21 - /** 22 - */ 21 + 23 22 public function __construct( 24 23 public readonly string $uri, 25 24 public readonly bool $notFound
+1
src/Generated/App/Bsky/Embed/Record/ViewRecord.php
··· 31 31 */ 32 32 class ViewRecord extends Data 33 33 { 34 + 34 35 /** 35 36 * @param mixed $value The record data itself. 36 37 */
+1 -2
src/Generated/App/Bsky/Embed/RecordWithMedia.php
··· 21 21 */ 22 22 class RecordWithMedia extends Data 23 23 { 24 - /** 25 - */ 24 + 26 25 public function __construct( 27 26 public readonly Record $record, 28 27 public readonly mixed $media
+1 -2
src/Generated/App/Bsky/Embed/RecordWithMedia/View.php
··· 18 18 */ 19 19 class View extends Data 20 20 { 21 - /** 22 - */ 21 + 23 22 public function __construct( 24 23 public readonly View $record, 25 24 public readonly mixed $media
+1 -1
src/Generated/App/Bsky/Embed/Video.php
··· 4 4 5 5 use SocialDept\Schema\Data\BlobReference; 6 6 use SocialDept\Schema\Data\Data; 7 - use SocialDept\Schema\Generated\App\Bsky\Embed\Video\Caption; 8 7 9 8 /** 10 9 * A video embedded in a Bluesky record (eg, a post). ··· 25 24 */ 26 25 class Video extends Data 27 26 { 27 + 28 28 /** 29 29 * @param BlobReference $video The mp4 video file. May be up to 100mb, formerly limited to 50mb. 30 30 * @param string|null $alt Alt text description of the video, for accessibility.
+1 -2
src/Generated/App/Bsky/Embed/Video/Caption.php
··· 18 18 */ 19 19 class Caption extends Data 20 20 { 21 - /** 22 - */ 21 + 23 22 public function __construct( 24 23 public readonly string $lang, 25 24 public readonly BlobReference $file
+1 -2
src/Generated/App/Bsky/Embed/Video/View.php
··· 25 25 */ 26 26 class View extends Data 27 27 { 28 - /** 29 - */ 28 + 30 29 public function __construct( 31 30 public readonly string $cid, 32 31 public readonly string $playlist,
+1 -2
src/Generated/App/Bsky/Feed/Defs/BlockedAuthor.php
··· 18 18 */ 19 19 class BlockedAuthor extends Data 20 20 { 21 - /** 22 - */ 21 + 23 22 public function __construct( 24 23 public readonly string $did, 25 24 public readonly ?ViewerState $viewer = null
+1 -2
src/Generated/App/Bsky/Feed/Defs/BlockedPost.php
··· 19 19 */ 20 20 class BlockedPost extends Data 21 21 { 22 - /** 23 - */ 22 + 24 23 public function __construct( 25 24 public readonly string $uri, 26 25 public readonly bool $blocked,
+1
src/Generated/App/Bsky/Feed/Defs/FeedViewPost.php
··· 22 22 */ 23 23 class FeedViewPost extends Data 24 24 { 25 + 25 26 /** 26 27 * @param string|null $feedContext Context provided by feed generator that may be passed back alongside interactions. 27 28 * @param string|null $reqId Unique identifier per request that may be passed back alongside interactions.
+1 -2
src/Generated/App/Bsky/Feed/Defs/GeneratorView.php
··· 40 40 */ 41 41 class GeneratorView extends Data 42 42 { 43 - /** 44 - */ 43 + 45 44 public function __construct( 46 45 public readonly string $uri, 47 46 public readonly string $cid,
+1 -2
src/Generated/App/Bsky/Feed/Defs/GeneratorViewerState.php
··· 15 15 */ 16 16 class GeneratorViewerState extends Data 17 17 { 18 - /** 19 - */ 18 + 20 19 public function __construct( 21 20 public readonly ?string $like = null 22 21 ) {
+1
src/Generated/App/Bsky/Feed/Defs/Interaction.php
··· 20 20 */ 21 21 class Interaction extends Data 22 22 { 23 + 23 24 /** 24 25 * @param string|null $feedContext Context on a feed item that was originally supplied by the feed generator on getFeedSkeleton. 25 26 * @param string|null $reqId Unique identifier per request that may be passed back alongside interactions.
+1 -2
src/Generated/App/Bsky/Feed/Defs/NotFoundPost.php
··· 18 18 */ 19 19 class NotFoundPost extends Data 20 20 { 21 - /** 22 - */ 21 + 23 22 public function __construct( 24 23 public readonly string $uri, 25 24 public readonly bool $notFound
+1
src/Generated/App/Bsky/Feed/Defs/PostView.php
··· 36 36 */ 37 37 class PostView extends Data 38 38 { 39 + 39 40 /** 40 41 * @param mixed $debug Debug information for internal development 41 42 */
+2
src/Generated/App/Bsky/Feed/Defs/ReasonPin.php
··· 10 10 */ 11 11 class ReasonPin extends Data 12 12 { 13 + 14 + 13 15 /** 14 16 * Get the lexicon NSID for this data type. 15 17 *
+1 -2
src/Generated/App/Bsky/Feed/Defs/ReasonRepost.php
··· 23 23 */ 24 24 class ReasonRepost extends Data 25 25 { 26 - /** 27 - */ 26 + 28 27 public function __construct( 29 28 public readonly ProfileViewBasic $by, 30 29 public readonly Carbon $indexedAt,
+1
src/Generated/App/Bsky/Feed/Defs/ReplyRef.php
··· 19 19 */ 20 20 class ReplyRef extends Data 21 21 { 22 + 22 23 /** 23 24 * @param ProfileViewBasic|null $grandparentAuthor When parent is a reply to another post, this is the author of that post. 24 25 */
+1
src/Generated/App/Bsky/Feed/Defs/SkeletonFeedPost.php
··· 20 20 */ 21 21 class SkeletonFeedPost extends Data 22 22 { 23 + 23 24 /** 24 25 * @param string|null $feedContext Context that will be passed through to client and may be passed to feed generator back alongside interactions. 25 26 */
+2
src/Generated/App/Bsky/Feed/Defs/SkeletonReasonPin.php
··· 10 10 */ 11 11 class SkeletonReasonPin extends Data 12 12 { 13 + 14 + 13 15 /** 14 16 * Get the lexicon NSID for this data type. 15 17 *
+1 -2
src/Generated/App/Bsky/Feed/Defs/SkeletonReasonRepost.php
··· 16 16 */ 17 17 class SkeletonReasonRepost extends Data 18 18 { 19 - /** 20 - */ 19 + 21 20 public function __construct( 22 21 public readonly string $repost 23 22 ) {
+1 -2
src/Generated/App/Bsky/Feed/Defs/ThreadContext.php
··· 17 17 */ 18 18 class ThreadContext extends Data 19 19 { 20 - /** 21 - */ 20 + 22 21 public function __construct( 23 22 public readonly ?string $rootAuthorLike = null 24 23 ) {
+1 -2
src/Generated/App/Bsky/Feed/Defs/ThreadViewPost.php
··· 19 19 */ 20 20 class ThreadViewPost extends Data 21 21 { 22 - /** 23 - */ 22 + 24 23 public function __construct( 25 24 public readonly mixed $post, 26 25 public readonly mixed $parent = null,
+1 -2
src/Generated/App/Bsky/Feed/Defs/ThreadgateView.php
··· 20 20 */ 21 21 class ThreadgateView extends Data 22 22 { 23 - /** 24 - */ 23 + 25 24 public function __construct( 26 25 public readonly ?string $uri = null, 27 26 public readonly ?string $cid = null,
+1 -2
src/Generated/App/Bsky/Feed/Defs/ViewerState.php
··· 25 25 */ 26 26 class ViewerState extends Data 27 27 { 28 - /** 29 - */ 28 + 30 29 public function __construct( 31 30 public readonly ?string $repost = null, 32 31 public readonly ?string $like = null,
+1 -2
src/Generated/App/Bsky/Feed/GetLikes/Like.php
··· 21 21 */ 22 22 class Like extends Data 23 23 { 24 - /** 25 - */ 24 + 26 25 public function __construct( 27 26 public readonly Carbon $indexedAt, 28 27 public readonly Carbon $createdAt,
+1 -2
src/Generated/App/Bsky/Feed/Like.php
··· 12 12 */ 13 13 class Like extends Data 14 14 { 15 - /** 16 - */ 15 + 17 16 public function __construct( 18 17 public readonly StrongRef $subject, 19 18 public readonly Carbon $createdAt,
+1 -2
src/Generated/App/Bsky/Feed/Post.php
··· 4 4 5 5 use Carbon\Carbon; 6 6 use SocialDept\Schema\Data\Data; 7 - use SocialDept\Schema\Generated\App\Bsky\Feed\Post\Entity; 8 - use SocialDept\Schema\Generated\App\Bsky\Feed\Post\ReplyRef; 9 7 use SocialDept\Schema\Generated\App\Bsky\Richtext\Facet; 10 8 use SocialDept\Schema\Support\UnionHelper; 11 9 ··· 15 13 */ 16 14 class Post extends Data 17 15 { 16 + 18 17 /** 19 18 * @param string $text The primary post content. May be an empty string, if there are embeds. 20 19 * @param Carbon $createdAt Client-declared timestamp when this post was originally created.
+1
src/Generated/App/Bsky/Feed/Post/Entity.php
··· 19 19 */ 20 20 class Entity extends Data 21 21 { 22 + 22 23 /** 23 24 * @param string $type Expected values are 'mention' and 'link'. 24 25 */
+1 -2
src/Generated/App/Bsky/Feed/Post/ReplyRef.php
··· 17 17 */ 18 18 class ReplyRef extends Data 19 19 { 20 - /** 21 - */ 20 + 22 21 public function __construct( 23 22 public readonly StrongRef $root, 24 23 public readonly StrongRef $parent
+1 -2
src/Generated/App/Bsky/Feed/Post/TextSlice.php
··· 21 21 */ 22 22 class TextSlice extends Data 23 23 { 24 - /** 25 - */ 24 + 26 25 public function __construct( 27 26 public readonly int $start, 28 27 public readonly int $end
+1 -2
src/Generated/App/Bsky/Feed/Repost.php
··· 12 12 */ 13 13 class Repost extends Data 14 14 { 15 - /** 16 - */ 15 + 17 16 public function __construct( 18 17 public readonly StrongRef $subject, 19 18 public readonly Carbon $createdAt,
+1
src/Generated/App/Bsky/Graph/Block.php
··· 11 11 */ 12 12 class Block extends Data 13 13 { 14 + 14 15 /** 15 16 * @param string $subject DID of the account to be blocked. 16 17 */
+1 -2
src/Generated/App/Bsky/Graph/Defs/ListItemView.php
··· 18 18 */ 19 19 class ListItemView extends Data 20 20 { 21 - /** 22 - */ 21 + 23 22 public function __construct( 24 23 public readonly string $uri, 25 24 public readonly ProfileView $subject
+1 -2
src/Generated/App/Bsky/Graph/Defs/ListView.php
··· 39 39 */ 40 40 class ListView extends Data 41 41 { 42 - /** 43 - */ 42 + 44 43 public function __construct( 45 44 public readonly string $uri, 46 45 public readonly string $cid,
+1 -2
src/Generated/App/Bsky/Graph/Defs/ListViewBasic.php
··· 32 32 */ 33 33 class ListViewBasic extends Data 34 34 { 35 - /** 36 - */ 35 + 37 36 public function __construct( 38 37 public readonly string $uri, 39 38 public readonly string $cid,
+1 -2
src/Generated/App/Bsky/Graph/Defs/ListViewerState.php
··· 16 16 */ 17 17 class ListViewerState extends Data 18 18 { 19 - /** 20 - */ 19 + 21 20 public function __construct( 22 21 public readonly ?bool $muted = null, 23 22 public readonly ?string $blocked = null
+1 -2
src/Generated/App/Bsky/Graph/Defs/NotFoundActor.php
··· 20 20 */ 21 21 class NotFoundActor extends Data 22 22 { 23 - /** 24 - */ 23 + 25 24 public function __construct( 26 25 public readonly string $actor, 27 26 public readonly bool $notFound
+1
src/Generated/App/Bsky/Graph/Defs/Relationship.php
··· 23 23 */ 24 24 class Relationship extends Data 25 25 { 26 + 26 27 /** 27 28 * @param string|null $following if the actor follows this DID, this is the AT-URI of the follow record 28 29 * @param string|null $followedBy if the actor is followed by this DID, contains the AT-URI of the follow record
+1 -2
src/Generated/App/Bsky/Graph/Defs/StarterPackView.php
··· 36 36 */ 37 37 class StarterPackView extends Data 38 38 { 39 - /** 40 - */ 39 + 41 40 public function __construct( 42 41 public readonly string $uri, 43 42 public readonly string $cid,
+1 -2
src/Generated/App/Bsky/Graph/Defs/StarterPackViewBasic.php
··· 32 32 */ 33 33 class StarterPackViewBasic extends Data 34 34 { 35 - /** 36 - */ 35 + 37 36 public function __construct( 38 37 public readonly string $uri, 39 38 public readonly string $cid,
+1 -2
src/Generated/App/Bsky/Graph/Follow.php
··· 12 12 */ 13 13 class Follow extends Data 14 14 { 15 - /** 16 - */ 15 + 17 16 public function __construct( 18 17 public readonly string $subject, 19 18 public readonly Carbon $createdAt,
+2 -1
src/Generated/App/Bsky/Graph/List.php
··· 27 27 public readonly ?array $descriptionFacets = null, 28 28 public readonly ?BlobReference $avatar = null, 29 29 public readonly mixed $labels = null 30 - ) {} 30 + ) { 31 + } 31 32 32 33 /** 33 34 * Get the lexicon NSID for this data type.
+63
src/Generated/App/Bsky/Graph/ListRecord.php
··· 1 + <?php 2 + 3 + namespace SocialDept\Schema\Generated\App\Bsky\Graph; 4 + 5 + use Carbon\Carbon; 6 + use SocialDept\Schema\Data\BlobReference; 7 + use SocialDept\Schema\Data\Data; 8 + use SocialDept\Schema\Generated\App\Bsky\Richtext\Facet; 9 + use SocialDept\Schema\Support\UnionHelper; 10 + 11 + /** 12 + * Lexicon: app.bsky.graph.list 13 + * Type: record 14 + */ 15 + class ListRecord extends Data 16 + { 17 + 18 + /** 19 + * @param ListPurpose $purpose Defines the purpose of the list (aka, moderation-oriented or curration-oriented) 20 + * @param string $name Display name for list; can not be empty. 21 + */ 22 + public function __construct( 23 + public readonly ListPurpose $purpose, 24 + public readonly string $name, 25 + public readonly Carbon $createdAt, 26 + public readonly ?string $description = null, 27 + public readonly ?array $descriptionFacets = null, 28 + public readonly ?BlobReference $avatar = null, 29 + public readonly mixed $labels = null 30 + ) { 31 + } 32 + 33 + /** 34 + * Get the lexicon NSID for this data type. 35 + * 36 + * @return string 37 + */ 38 + public static function getLexicon(): string 39 + { 40 + return 'app.bsky.graph.list'; 41 + } 42 + 43 + 44 + /** 45 + * Create an instance from an array. 46 + * 47 + * @param array $data The data array 48 + * @return static 49 + */ 50 + public static function fromArray(array $data): static 51 + { 52 + return new static( 53 + purpose: Defs::fromArray($data['purpose']), 54 + name: $data['name'], 55 + createdAt: Carbon::parse($data['createdAt']), 56 + description: $data['description'] ?? null, 57 + descriptionFacets: isset($data['descriptionFacets']) ? array_map(fn ($item) => Facet::fromArray($item), $data['descriptionFacets']) : [], 58 + avatar: $data['avatar'] ?? null, 59 + labels: isset($data['labels']) ? UnionHelper::validateOpenUnion($data['labels']) : null 60 + ); 61 + } 62 + 63 + }
+1
src/Generated/App/Bsky/Graph/Listitem.php
··· 11 11 */ 12 12 class Listitem extends Data 13 13 { 14 + 14 15 /** 15 16 * @param string $subject The account which is included on the list. 16 17 * @param string $list Reference (AT-URI) to the list record (app.bsky.graph.list).
+1
src/Generated/App/Bsky/Labeler/Defs/LabelerPolicies.php
··· 18 18 */ 19 19 class LabelerPolicies extends Data 20 20 { 21 + 21 22 /** 22 23 * @param array<LabelValue> $labelValues The label values which this labeler publishes. May include global or custom labels. 23 24 * @param array<LabelValueDefinition>|null $labelValueDefinitions Label values created by this labeler and scoped exclusively to it. Labels defined here will override global label definitions for this labeler.
+1 -2
src/Generated/App/Bsky/Labeler/Defs/LabelerView.php
··· 28 28 */ 29 29 class LabelerView extends Data 30 30 { 31 - /** 32 - */ 31 + 33 32 public function __construct( 34 33 public readonly string $uri, 35 34 public readonly string $cid,
+1
src/Generated/App/Bsky/Labeler/Defs/LabelerViewDetailed.php
··· 35 35 */ 36 36 class LabelerViewDetailed extends Data 37 37 { 38 + 38 39 /** 39 40 * @param array<ReasonType>|null $reasonTypes The set of report reason 'codes' which are in-scope for this service to review and action. These usually align to policy categories. If not defined (distinct from empty array), all reason types are allowed. 40 41 * @param array<SubjectType>|null $subjectTypes The set of subject types (account, record, etc) this service accepts reports on.
+1 -2
src/Generated/App/Bsky/Labeler/Defs/LabelerViewerState.php
··· 15 15 */ 16 16 class LabelerViewerState extends Data 17 17 { 18 - /** 19 - */ 18 + 20 19 public function __construct( 21 20 public readonly ?string $like = null 22 21 ) {
+1
src/Generated/App/Bsky/Labeler/Service.php
··· 14 14 */ 15 15 class Service extends Data 16 16 { 17 + 17 18 /** 18 19 * @param array<ReasonType>|null $reasonTypes The set of report reason 'codes' which are in-scope for this service to review and action. These usually align to policy categories. If not defined (distinct from empty array), all reason types are allowed. 19 20 * @param array<SubjectType>|null $subjectTypes The set of subject types (account, record, etc) this service accepts reports on.
+1 -2
src/Generated/App/Bsky/Notification/Defs/ActivitySubscription.php
··· 16 16 */ 17 17 class ActivitySubscription extends Data 18 18 { 19 - /** 20 - */ 19 + 21 20 public function __construct( 22 21 public readonly bool $post, 23 22 public readonly bool $reply
+1 -2
src/Generated/App/Bsky/Notification/Defs/ChatPreference.php
··· 16 16 */ 17 17 class ChatPreference extends Data 18 18 { 19 - /** 20 - */ 19 + 21 20 public function __construct( 22 21 public readonly string $include, 23 22 public readonly bool $push
+1 -2
src/Generated/App/Bsky/Notification/Defs/FilterablePreference.php
··· 17 17 */ 18 18 class FilterablePreference extends Data 19 19 { 20 - /** 21 - */ 20 + 22 21 public function __construct( 23 22 public readonly string $include, 24 23 public readonly bool $list,
+1 -2
src/Generated/App/Bsky/Notification/Defs/Preference.php
··· 16 16 */ 17 17 class Preference extends Data 18 18 { 19 - /** 20 - */ 19 + 21 20 public function __construct( 22 21 public readonly bool $list, 23 22 public readonly bool $push
+1 -2
src/Generated/App/Bsky/Notification/Defs/Preferences.php
··· 27 27 */ 28 28 class Preferences extends Data 29 29 { 30 - /** 31 - */ 30 + 32 31 public function __construct( 33 32 public readonly mixed $chat, 34 33 public readonly mixed $follow,
+2
src/Generated/App/Bsky/Notification/Defs/RecordDeleted.php
··· 10 10 */ 11 11 class RecordDeleted extends Data 12 12 { 13 + 14 + 13 15 /** 14 16 * Get the lexicon NSID for this data type. 15 17 *
+1 -3
src/Generated/App/Bsky/Notification/Defs/SubjectActivitySubscription.php
··· 3 3 namespace SocialDept\Schema\Generated\App\Bsky\Notification\Defs; 4 4 5 5 use SocialDept\Schema\Data\Data; 6 - use SocialDept\Schema\Generated\App\Bsky\Notification\Defs\SubjectActivitySubscription\ActivitySubscription; 7 6 8 7 /** 9 8 * Object used to store activity subscription data in stash. ··· 20 19 */ 21 20 class SubjectActivitySubscription extends Data 22 21 { 23 - /** 24 - */ 22 + 25 23 public function __construct( 26 24 public readonly string $subject, 27 25 public readonly mixed $activitySubscription
+1
src/Generated/App/Bsky/Notification/ListNotifications/Notification.php
··· 30 30 */ 31 31 class Notification extends Data 32 32 { 33 + 33 34 /** 34 35 * @param string $reason The reason why this notification was delivered - e.g. your post was liked, or you received a new follower. 35 36 */
+1 -3
src/Generated/App/Bsky/Richtext/Facet.php
··· 3 3 namespace SocialDept\Schema\Generated\App\Bsky\Richtext; 4 4 5 5 use SocialDept\Schema\Data\Data; 6 - use SocialDept\Schema\Generated\App\Bsky\Richtext\Facet\ByteSlice; 7 6 8 7 /** 9 8 * Lexicon: app.bsky.richtext.facet ··· 17 16 */ 18 17 class Facet extends Data 19 18 { 20 - /** 21 - */ 19 + 22 20 public function __construct( 23 21 public readonly ByteSlice $index, 24 22 public readonly array $features
+1 -2
src/Generated/App/Bsky/Richtext/Facet/ByteSlice.php
··· 24 24 */ 25 25 class ByteSlice extends Data 26 26 { 27 - /** 28 - */ 27 + 29 28 public function __construct( 30 29 public readonly int $byteStart, 31 30 public readonly int $byteEnd
+1 -2
src/Generated/App/Bsky/Richtext/Facet/Link.php
··· 19 19 */ 20 20 class Link extends Data 21 21 { 22 - /** 23 - */ 22 + 24 23 public function __construct( 25 24 public readonly string $uri 26 25 ) {
+1 -2
src/Generated/App/Bsky/Richtext/Facet/Mention.php
··· 19 19 */ 20 20 class Mention extends Data 21 21 { 22 - /** 23 - */ 22 + 24 23 public function __construct( 25 24 public readonly string $did 26 25 ) {
+1 -2
src/Generated/App/Bsky/Richtext/Facet/Tag.php
··· 20 20 */ 21 21 class Tag extends Data 22 22 { 23 - /** 24 - */ 23 + 25 24 public function __construct( 26 25 public readonly string $tag 27 26 ) {
+1
src/Generated/App/Bsky/Unspecced/Defs/AgeAssuranceEvent.php
··· 26 26 */ 27 27 class AgeAssuranceEvent extends Data 28 28 { 29 + 29 30 /** 30 31 * @param Carbon $createdAt The date and time of this write operation. 31 32 * @param string $status The status of the age assurance process.
+1
src/Generated/App/Bsky/Unspecced/Defs/AgeAssuranceState.php
··· 21 21 */ 22 22 class AgeAssuranceState extends Data 23 23 { 24 + 24 25 /** 25 26 * @param string $status The status of the age assurance process. 26 27 * @param Carbon|null $lastInitiatedAt The timestamp when this state was last updated.
+1 -2
src/Generated/App/Bsky/Unspecced/Defs/SkeletonSearchActor.php
··· 16 16 */ 17 17 class SkeletonSearchActor extends Data 18 18 { 19 - /** 20 - */ 19 + 21 20 public function __construct( 22 21 public readonly string $did 23 22 ) {
+1 -2
src/Generated/App/Bsky/Unspecced/Defs/SkeletonSearchPost.php
··· 16 16 */ 17 17 class SkeletonSearchPost extends Data 18 18 { 19 - /** 20 - */ 19 + 21 20 public function __construct( 22 21 public readonly string $uri 23 22 ) {
+1 -2
src/Generated/App/Bsky/Unspecced/Defs/SkeletonSearchStarterPack.php
··· 16 16 */ 17 17 class SkeletonSearchStarterPack extends Data 18 18 { 19 - /** 20 - */ 19 + 21 20 public function __construct( 22 21 public readonly string $uri 23 22 ) {
+1 -2
src/Generated/App/Bsky/Unspecced/Defs/SkeletonTrend.php
··· 24 24 */ 25 25 class SkeletonTrend extends Data 26 26 { 27 - /** 28 - */ 27 + 29 28 public function __construct( 30 29 public readonly string $topic, 31 30 public readonly string $displayName,
+1 -2
src/Generated/App/Bsky/Unspecced/Defs/ThreadItemBlocked.php
··· 16 16 */ 17 17 class ThreadItemBlocked extends Data 18 18 { 19 - /** 20 - */ 19 + 21 20 public function __construct( 22 21 public readonly BlockedAuthor $author 23 22 ) {
+2
src/Generated/App/Bsky/Unspecced/Defs/ThreadItemNoUnauthenticated.php
··· 10 10 */ 11 11 class ThreadItemNoUnauthenticated extends Data 12 12 { 13 + 14 + 13 15 /** 14 16 * Get the lexicon NSID for this data type. 15 17 *
+2
src/Generated/App/Bsky/Unspecced/Defs/ThreadItemNotFound.php
··· 10 10 */ 11 11 class ThreadItemNotFound extends Data 12 12 { 13 + 14 + 13 15 /** 14 16 * Get the lexicon NSID for this data type. 15 17 *
+1
src/Generated/App/Bsky/Unspecced/Defs/ThreadItemPost.php
··· 21 21 */ 22 22 class ThreadItemPost extends Data 23 23 { 24 + 24 25 /** 25 26 * @param bool $moreParents This post has more parents that were not present in the response. This is just a boolean, without the number of parents. 26 27 * @param int $moreReplies This post has more replies that were not present in the response. This is a numeric value, which is best-effort and might not be accurate.
+1 -2
src/Generated/App/Bsky/Unspecced/Defs/TrendView.php
··· 25 25 */ 26 26 class TrendView extends Data 27 27 { 28 - /** 29 - */ 28 + 30 29 public function __construct( 31 30 public readonly string $topic, 32 31 public readonly string $displayName,
+1 -2
src/Generated/App/Bsky/Unspecced/Defs/TrendingTopic.php
··· 18 18 */ 19 19 class TrendingTopic extends Data 20 20 { 21 - /** 22 - */ 21 + 23 22 public function __construct( 24 23 public readonly string $topic, 25 24 public readonly string $link,
+1
src/Generated/App/Bsky/Video/Defs/JobStatus.php
··· 25 25 */ 26 26 class JobStatus extends Data 27 27 { 28 + 28 29 /** 29 30 * @param string $state The state of the video processing job. All values not listed as a known value indicate that the job is in process. 30 31 * @param int|null $progress Progress within the current processing state.
+1 -2
src/Generated/Chat/Bsky/Convo/Defs/ConvoView.php
··· 24 24 */ 25 25 class ConvoView extends Data 26 26 { 27 - /** 28 - */ 27 + 29 28 public function __construct( 30 29 public readonly string $id, 31 30 public readonly string $rev,
+1 -2
src/Generated/Chat/Bsky/Convo/Defs/DeletedMessageView.php
··· 20 20 */ 21 21 class DeletedMessageView extends Data 22 22 { 23 - /** 24 - */ 23 + 25 24 public function __construct( 26 25 public readonly string $id, 27 26 public readonly string $rev,
+1 -2
src/Generated/Chat/Bsky/Convo/Defs/LogAcceptConvo.php
··· 16 16 */ 17 17 class LogAcceptConvo extends Data 18 18 { 19 - /** 20 - */ 19 + 21 20 public function __construct( 22 21 public readonly string $rev, 23 22 public readonly string $convoId
+1 -2
src/Generated/Chat/Bsky/Convo/Defs/LogAddReaction.php
··· 19 19 */ 20 20 class LogAddReaction extends Data 21 21 { 22 - /** 23 - */ 22 + 24 23 public function __construct( 25 24 public readonly string $rev, 26 25 public readonly string $convoId,
+1 -2
src/Generated/Chat/Bsky/Convo/Defs/LogBeginConvo.php
··· 16 16 */ 17 17 class LogBeginConvo extends Data 18 18 { 19 - /** 20 - */ 19 + 21 20 public function __construct( 22 21 public readonly string $rev, 23 22 public readonly string $convoId
+1 -2
src/Generated/Chat/Bsky/Convo/Defs/LogCreateMessage.php
··· 18 18 */ 19 19 class LogCreateMessage extends Data 20 20 { 21 - /** 22 - */ 21 + 23 22 public function __construct( 24 23 public readonly string $rev, 25 24 public readonly string $convoId,
+1 -2
src/Generated/Chat/Bsky/Convo/Defs/LogDeleteMessage.php
··· 18 18 */ 19 19 class LogDeleteMessage extends Data 20 20 { 21 - /** 22 - */ 21 + 23 22 public function __construct( 24 23 public readonly string $rev, 25 24 public readonly string $convoId,
+1 -2
src/Generated/Chat/Bsky/Convo/Defs/LogLeaveConvo.php
··· 16 16 */ 17 17 class LogLeaveConvo extends Data 18 18 { 19 - /** 20 - */ 19 + 21 20 public function __construct( 22 21 public readonly string $rev, 23 22 public readonly string $convoId
+1 -2
src/Generated/Chat/Bsky/Convo/Defs/LogMuteConvo.php
··· 16 16 */ 17 17 class LogMuteConvo extends Data 18 18 { 19 - /** 20 - */ 19 + 21 20 public function __construct( 22 21 public readonly string $rev, 23 22 public readonly string $convoId
+1 -2
src/Generated/Chat/Bsky/Convo/Defs/LogReadMessage.php
··· 18 18 */ 19 19 class LogReadMessage extends Data 20 20 { 21 - /** 22 - */ 21 + 23 22 public function __construct( 24 23 public readonly string $rev, 25 24 public readonly string $convoId,
+1 -2
src/Generated/Chat/Bsky/Convo/Defs/LogRemoveReaction.php
··· 19 19 */ 20 20 class LogRemoveReaction extends Data 21 21 { 22 - /** 23 - */ 22 + 24 23 public function __construct( 25 24 public readonly string $rev, 26 25 public readonly string $convoId,
+1 -2
src/Generated/Chat/Bsky/Convo/Defs/LogUnmuteConvo.php
··· 16 16 */ 17 17 class LogUnmuteConvo extends Data 18 18 { 19 - /** 20 - */ 19 + 21 20 public function __construct( 22 21 public readonly string $rev, 23 22 public readonly string $convoId
+1 -2
src/Generated/Chat/Bsky/Convo/Defs/MessageAndReactionView.php
··· 16 16 */ 17 17 class MessageAndReactionView extends Data 18 18 { 19 - /** 20 - */ 19 + 21 20 public function __construct( 22 21 public readonly mixed $message, 23 22 public readonly mixed $reaction
+1
src/Generated/Chat/Bsky/Convo/Defs/MessageInput.php
··· 21 21 */ 22 22 class MessageInput extends Data 23 23 { 24 + 24 25 /** 25 26 * @param array<Facet>|null $facets Annotations of text (mentions, URLs, hashtags, etc) 26 27 */
+1 -2
src/Generated/Chat/Bsky/Convo/Defs/MessageRef.php
··· 18 18 */ 19 19 class MessageRef extends Data 20 20 { 21 - /** 22 - */ 21 + 23 22 public function __construct( 24 23 public readonly string $did, 25 24 public readonly string $convoId,
+1
src/Generated/Chat/Bsky/Convo/Defs/MessageView.php
··· 28 28 */ 29 29 class MessageView extends Data 30 30 { 31 + 31 32 /** 32 33 * @param array<Facet>|null $facets Annotations of text (mentions, URLs, hashtags, etc) 33 34 * @param array|null $reactions Reactions to this message, in ascending order of creation time.
+1 -2
src/Generated/Chat/Bsky/Convo/Defs/MessageViewSender.php
··· 16 16 */ 17 17 class MessageViewSender extends Data 18 18 { 19 - /** 20 - */ 19 + 21 20 public function __construct( 22 21 public readonly string $did 23 22 ) {
+1 -2
src/Generated/Chat/Bsky/Convo/Defs/ReactionView.php
··· 19 19 */ 20 20 class ReactionView extends Data 21 21 { 22 - /** 23 - */ 22 + 24 23 public function __construct( 25 24 public readonly string $value, 26 25 public readonly mixed $sender,
+1 -2
src/Generated/Chat/Bsky/Convo/Defs/ReactionViewSender.php
··· 16 16 */ 17 17 class ReactionViewSender extends Data 18 18 { 19 - /** 20 - */ 19 + 21 20 public function __construct( 22 21 public readonly string $did 23 22 ) {
+1 -2
src/Generated/Com/Atproto/Admin/Defs/AccountView.php
··· 33 33 */ 34 34 class AccountView extends Data 35 35 { 36 - /** 37 - */ 36 + 38 37 public function __construct( 39 38 public readonly string $did, 40 39 public readonly string $handle,
+1 -2
src/Generated/Com/Atproto/Admin/Defs/RepoBlobRef.php
··· 20 20 */ 21 21 class RepoBlobRef extends Data 22 22 { 23 - /** 24 - */ 23 + 25 24 public function __construct( 26 25 public readonly string $did, 27 26 public readonly string $cid,
+1 -2
src/Generated/Com/Atproto/Admin/Defs/RepoRef.php
··· 16 16 */ 17 17 class RepoRef extends Data 18 18 { 19 - /** 20 - */ 19 + 21 20 public function __construct( 22 21 public readonly string $did 23 22 ) {
+1 -2
src/Generated/Com/Atproto/Admin/Defs/StatusAttr.php
··· 16 16 */ 17 17 class StatusAttr extends Data 18 18 { 19 - /** 20 - */ 19 + 21 20 public function __construct( 22 21 public readonly bool $applied, 23 22 public readonly ?string $ref = null
+1 -2
src/Generated/Com/Atproto/Admin/Defs/ThreatSignature.php
··· 16 16 */ 17 17 class ThreatSignature extends Data 18 18 { 19 - /** 20 - */ 19 + 21 20 public function __construct( 22 21 public readonly string $property, 23 22 public readonly string $value
+1
src/Generated/Com/Atproto/Identity/Defs/IdentityInfo.php
··· 19 19 */ 20 20 class IdentityInfo extends Data 21 21 { 22 + 22 23 /** 23 24 * @param string $handle The validated handle of the account; or 'handle.invalid' if the handle did not bi-directionally match the DID document. 24 25 * @param mixed $didDoc The complete DID document for the identity.
+1
src/Generated/Com/Atproto/Label/Defs/Label.php
··· 32 32 */ 33 33 class Label extends Data 34 34 { 35 + 35 36 /** 36 37 * @param string $src DID of the actor who created this label. 37 38 * @param string $uri AT URI of the record, repository (account), or other resource that this label applies to.
+1
src/Generated/Com/Atproto/Label/Defs/LabelValueDefinition.php
··· 24 24 */ 25 25 class LabelValueDefinition extends Data 26 26 { 27 + 27 28 /** 28 29 * @param string $identifier The value of the label being defined. Must only include lowercase ascii and the '-' character ([a-z-]+). 29 30 * @param string $severity How should a client visually convey this label? 'inform' means neutral and informational; 'alert' means negative and warning; 'none' means show nothing.
+1
src/Generated/Com/Atproto/Label/Defs/LabelValueDefinitionStrings.php
··· 25 25 */ 26 26 class LabelValueDefinitionStrings extends Data 27 27 { 28 + 28 29 /** 29 30 * @param string $lang The code of the language these strings are written in. 30 31 * @param string $name A short human-readable name for the label.
+1
src/Generated/Com/Atproto/Label/Defs/SelfLabel.php
··· 19 19 */ 20 20 class SelfLabel extends Data 21 21 { 22 + 22 23 /** 23 24 * @param string $val The short string name of the value or type of this label. 24 25 */
+1 -2
src/Generated/Com/Atproto/Label/Defs/SelfLabels.php
··· 19 19 */ 20 20 class SelfLabels extends Data 21 21 { 22 - /** 23 - */ 22 + 24 23 public function __construct( 25 24 public readonly array $values 26 25 ) {
+1 -2
src/Generated/Com/Atproto/Label/SubscribeLabels/Info.php
··· 16 16 */ 17 17 class Info extends Data 18 18 { 19 - /** 20 - */ 19 + 21 20 public function __construct( 22 21 public readonly string $name, 23 22 public readonly ?string $message = null
+1 -2
src/Generated/Com/Atproto/Label/SubscribeLabels/Labels.php
··· 17 17 */ 18 18 class Labels extends Data 19 19 { 20 - /** 21 - */ 20 + 22 21 public function __construct( 23 22 public readonly int $seq, 24 23 public readonly array $labels
+1
src/Generated/Com/Atproto/Moderation/CreateReport/ModTool.php
··· 18 18 */ 19 19 class ModTool extends Data 20 20 { 21 + 21 22 /** 22 23 * @param string $name Name/identifier of the source (e.g., 'bsky-app/android', 'bsky-web/chrome') 23 24 * @param mixed $meta Additional arbitrary metadata about the source
+1
src/Generated/Com/Atproto/Repo/ApplyWrites/Create.php
··· 22 22 */ 23 23 class Create extends Data 24 24 { 25 + 25 26 /** 26 27 * @param string|null $rkey NOTE: maxLength is redundant with record-key format. Keeping it temporarily to ensure backwards compatibility. 27 28 */
+1 -2
src/Generated/Com/Atproto/Repo/ApplyWrites/CreateResult.php
··· 19 19 */ 20 20 class CreateResult extends Data 21 21 { 22 - /** 23 - */ 22 + 24 23 public function __construct( 25 24 public readonly string $uri, 26 25 public readonly string $cid,
+1 -2
src/Generated/Com/Atproto/Repo/ApplyWrites/Delete.php
··· 20 20 */ 21 21 class Delete extends Data 22 22 { 23 - /** 24 - */ 23 + 25 24 public function __construct( 26 25 public readonly string $collection, 27 26 public readonly string $rkey
+2
src/Generated/Com/Atproto/Repo/ApplyWrites/DeleteResult.php
··· 10 10 */ 11 11 class DeleteResult extends Data 12 12 { 13 + 14 + 13 15 /** 14 16 * Get the lexicon NSID for this data type. 15 17 *
+1 -2
src/Generated/Com/Atproto/Repo/ApplyWrites/Update.php
··· 21 21 */ 22 22 class Update extends Data 23 23 { 24 - /** 25 - */ 24 + 26 25 public function __construct( 27 26 public readonly string $collection, 28 27 public readonly string $rkey,
+1 -2
src/Generated/Com/Atproto/Repo/ApplyWrites/UpdateResult.php
··· 19 19 */ 20 20 class UpdateResult extends Data 21 21 { 22 - /** 23 - */ 22 + 24 23 public function __construct( 25 24 public readonly string $uri, 26 25 public readonly string $cid,
+1 -2
src/Generated/Com/Atproto/Repo/Defs/CommitMeta.php
··· 18 18 */ 19 19 class CommitMeta extends Data 20 20 { 21 - /** 22 - */ 21 + 23 22 public function __construct( 24 23 public readonly string $cid, 25 24 public readonly string $rev
+1 -2
src/Generated/Com/Atproto/Repo/ListMissingBlobs/RecordBlob.php
··· 18 18 */ 19 19 class RecordBlob extends Data 20 20 { 21 - /** 22 - */ 21 + 23 22 public function __construct( 24 23 public readonly string $cid, 25 24 public readonly string $recordUri
+1 -2
src/Generated/Com/Atproto/Repo/ListRecords/Record.php
··· 19 19 */ 20 20 class Record extends Data 21 21 { 22 - /** 23 - */ 22 + 24 23 public function __construct( 25 24 public readonly string $uri, 26 25 public readonly string $cid,
+1 -2
src/Generated/Com/Atproto/Repo/StrongRef.php
··· 20 20 */ 21 21 class StrongRef extends Data 22 22 { 23 - /** 24 - */ 23 + 25 24 public function __construct( 26 25 public readonly string $uri, 27 26 public readonly string $cid
+1 -2
src/Generated/Com/Atproto/Server/CreateAppPassword/AppPassword.php
··· 20 20 */ 21 21 class AppPassword extends Data 22 22 { 23 - /** 24 - */ 23 + 25 24 public function __construct( 26 25 public readonly string $name, 27 26 public readonly string $password,
+1 -2
src/Generated/Com/Atproto/Server/CreateInviteCodes/AccountCodes.php
··· 16 16 */ 17 17 class AccountCodes extends Data 18 18 { 19 - /** 20 - */ 19 + 21 20 public function __construct( 22 21 public readonly string $account, 23 22 public readonly array $codes
+1 -2
src/Generated/Com/Atproto/Server/Defs/InviteCode.php
··· 23 23 */ 24 24 class InviteCode extends Data 25 25 { 26 - /** 27 - */ 26 + 28 27 public function __construct( 29 28 public readonly string $code, 30 29 public readonly int $available,
+1 -2
src/Generated/Com/Atproto/Server/Defs/InviteCodeUse.php
··· 19 19 */ 20 20 class InviteCodeUse extends Data 21 21 { 22 - /** 23 - */ 22 + 24 23 public function __construct( 25 24 public readonly string $usedBy, 26 25 public readonly Carbon $usedAt
+1 -2
src/Generated/Com/Atproto/Server/DescribeServer/Contact.php
··· 12 12 */ 13 13 class Contact extends Data 14 14 { 15 - /** 16 - */ 15 + 17 16 public function __construct( 18 17 public readonly ?string $email = null 19 18 ) {
+1 -2
src/Generated/Com/Atproto/Server/DescribeServer/Links.php
··· 17 17 */ 18 18 class Links extends Data 19 19 { 20 - /** 21 - */ 20 + 22 21 public function __construct( 23 22 public readonly ?string $privacyPolicy = null, 24 23 public readonly ?string $termsOfService = null
+1 -2
src/Generated/Com/Atproto/Server/ListAppPasswords/AppPassword.php
··· 19 19 */ 20 20 class AppPassword extends Data 21 21 { 22 - /** 23 - */ 22 + 24 23 public function __construct( 25 24 public readonly string $name, 26 25 public readonly Carbon $createdAt,
+1
src/Generated/Com/Atproto/Sync/ListHosts/Host.php
··· 19 19 */ 20 20 class Host extends Data 21 21 { 22 + 22 23 /** 23 24 * @param string $hostname hostname of server; not a URL (no scheme) 24 25 * @param int|null $seq Recent repo stream event sequence number. May be delayed from actual stream processing (eg, persisted cursor not in-memory cursor).
+1
src/Generated/Com/Atproto/Sync/ListRepos/Repo.php
··· 22 22 */ 23 23 class Repo extends Data 24 24 { 25 + 25 26 /** 26 27 * @param string $head Current repo commit CID 27 28 * @param string|null $status If active=false, this optional field indicates a possible reason for why the account is not active. If active=false and no status is supplied, then the host makes no claim for why the repository is no longer being hosted.
+1 -2
src/Generated/Com/Atproto/Sync/ListReposByCollection/Repo.php
··· 16 16 */ 17 17 class Repo extends Data 18 18 { 19 - /** 20 - */ 19 + 21 20 public function __construct( 22 21 public readonly string $did 23 22 ) {
+1
src/Generated/Com/Atproto/Sync/SubscribeRepos/Account.php
··· 27 27 */ 28 28 class Account extends Data 29 29 { 30 + 30 31 /** 31 32 * @param bool $active Indicates that the account has a repository which can be fetched from the host that emitted this event. 32 33 * @param string|null $status If active=false, this optional field indicates a reason for why the account is not active.
+1
src/Generated/Com/Atproto/Sync/SubscribeRepos/Commit.php
··· 37 37 */ 38 38 class Commit extends Data 39 39 { 40 + 40 41 /** 41 42 * @param int $seq The stream sequence number of this message. 42 43 * @param bool $rebase DEPRECATED -- unused
+1
src/Generated/Com/Atproto/Sync/SubscribeRepos/Identity.php
··· 26 26 */ 27 27 class Identity extends Data 28 28 { 29 + 29 30 /** 30 31 * @param string|null $handle The current handle for the account, or 'handle.invalid' if validation fails. This field is optional, might have been validated or passed-through from an upstream source. Semantics and behaviors for PDS vs Relay may evolve in the future; see atproto specs for more details. 31 32 */
+1 -2
src/Generated/Com/Atproto/Sync/SubscribeRepos/Info.php
··· 16 16 */ 17 17 class Info extends Data 18 18 { 19 - /** 20 - */ 19 + 21 20 public function __construct( 22 21 public readonly string $name, 23 22 public readonly ?string $message = null
+1
src/Generated/Com/Atproto/Sync/SubscribeRepos/RepoOp.php
··· 20 20 */ 21 21 class RepoOp extends Data 22 22 { 23 + 23 24 /** 24 25 * @param string $cid For creates and updates, the new record CID. For deletions, null. 25 26 * @param string|null $prev For updates and deletes, the previous record CID (required for inductive firehose). For creations, field should not be defined.
+1
src/Generated/Com/Atproto/Sync/SubscribeRepos/Sync.php
··· 28 28 */ 29 29 class Sync extends Data 30 30 { 31 + 31 32 /** 32 33 * @param int $seq The stream sequence number of this message. 33 34 * @param string $did The account this repo event corresponds to. Must match that in the commit object.
+1
src/Generated/Tools/Ozone/Communication/Defs/TemplateView.php
··· 28 28 */ 29 29 class TemplateView extends Data 30 30 { 31 + 31 32 /** 32 33 * @param string $name Name of the template. 33 34 * @param string $contentMarkdown Subject of the message, used in emails.
+1
src/Generated/Tools/Ozone/Moderation/Defs/AccountEvent.php
··· 23 23 */ 24 24 class AccountEvent extends Data 25 25 { 26 + 26 27 /** 27 28 * @param bool $active Indicates that the account has a repository which can be fetched from the host that emitted this event. 28 29 */
+1 -2
src/Generated/Tools/Ozone/Moderation/Defs/AccountHosting.php
··· 26 26 */ 27 27 class AccountHosting extends Data 28 28 { 29 - /** 30 - */ 29 + 31 30 public function __construct( 32 31 public readonly string $status, 33 32 public readonly ?Carbon $updatedAt = null,
+1
src/Generated/Tools/Ozone/Moderation/Defs/AccountStats.php
··· 18 18 */ 19 19 class AccountStats extends Data 20 20 { 21 + 21 22 /** 22 23 * @param int|null $reportCount Total number of reports on the account 23 24 * @param int|null $appealCount Total number of appeals against a moderation action on the account
+1
src/Generated/Tools/Ozone/Moderation/Defs/AccountStrike.php
··· 22 22 */ 23 23 class AccountStrike extends Data 24 24 { 25 + 25 26 /** 26 27 * @param int|null $activeStrikeCount Current number of active strikes (excluding expired strikes) 27 28 * @param int|null $totalStrikeCount Total number of strikes ever received (including expired strikes)
+1
src/Generated/Tools/Ozone/Moderation/Defs/AgeAssuranceEvent.php
··· 25 25 */ 26 26 class AgeAssuranceEvent extends Data 27 27 { 28 + 28 29 /** 29 30 * @param Carbon $createdAt The date and time of this write operation. 30 31 * @param string $status The status of the age assurance process.
+1
src/Generated/Tools/Ozone/Moderation/Defs/AgeAssuranceOverrideEvent.php
··· 18 18 */ 19 19 class AgeAssuranceOverrideEvent extends Data 20 20 { 21 + 21 22 /** 22 23 * @param string $status The status to be set for the user decided by a moderator, overriding whatever value the user had previously. Use reset to default to original state. 23 24 * @param string $comment Comment describing the reason for the override.
+1 -3
src/Generated/Tools/Ozone/Moderation/Defs/BlobView.php
··· 4 4 5 5 use Carbon\Carbon; 6 6 use SocialDept\Schema\Data\Data; 7 - use SocialDept\Schema\Generated\Tools\Ozone\Moderation\Defs\BlobView\Moderation; 8 7 use SocialDept\Schema\Support\UnionHelper; 9 8 10 9 /** ··· 25 24 */ 26 25 class BlobView extends Data 27 26 { 28 - /** 29 - */ 27 + 30 28 public function __construct( 31 29 public readonly string $cid, 32 30 public readonly string $mimeType,
+1 -2
src/Generated/Tools/Ozone/Moderation/Defs/CancelScheduledTakedownEvent.php
··· 14 14 */ 15 15 class CancelScheduledTakedownEvent extends Data 16 16 { 17 - /** 18 - */ 17 + 19 18 public function __construct( 20 19 public readonly ?string $comment = null 21 20 ) {
+1 -2
src/Generated/Tools/Ozone/Moderation/Defs/IdentityEvent.php
··· 26 26 */ 27 27 class IdentityEvent extends Data 28 28 { 29 - /** 30 - */ 29 + 31 30 public function __construct( 32 31 public readonly Carbon $timestamp, 33 32 public readonly ?string $comment = null,
+1 -2
src/Generated/Tools/Ozone/Moderation/Defs/ImageDetails.php
··· 16 16 */ 17 17 class ImageDetails extends Data 18 18 { 19 - /** 20 - */ 19 + 21 20 public function __construct( 22 21 public readonly int $width, 23 22 public readonly int $height
+1
src/Generated/Tools/Ozone/Moderation/Defs/ModEventAcknowledge.php
··· 13 13 */ 14 14 class ModEventAcknowledge extends Data 15 15 { 16 + 16 17 /** 17 18 * @param bool|null $acknowledgeAccountSubjects If true, all other reports on content authored by this account will be resolved (acknowledged). 18 19 */
+1
src/Generated/Tools/Ozone/Moderation/Defs/ModEventComment.php
··· 16 16 */ 17 17 class ModEventComment extends Data 18 18 { 19 + 19 20 /** 20 21 * @param bool|null $sticky Make the comment persistent on the subject 21 22 */
+1 -2
src/Generated/Tools/Ozone/Moderation/Defs/ModEventDivert.php
··· 14 14 */ 15 15 class ModEventDivert extends Data 16 16 { 17 - /** 18 - */ 17 + 19 18 public function __construct( 20 19 public readonly ?string $comment = null 21 20 ) {
+1
src/Generated/Tools/Ozone/Moderation/Defs/ModEventEmail.php
··· 27 27 */ 28 28 class ModEventEmail extends Data 29 29 { 30 + 30 31 /** 31 32 * @param string $subjectLine The subject line of the email sent to the user. 32 33 * @param string|null $content The content of the email sent to the user.
+1 -2
src/Generated/Tools/Ozone/Moderation/Defs/ModEventEscalate.php
··· 12 12 */ 13 13 class ModEventEscalate extends Data 14 14 { 15 - /** 16 - */ 15 + 17 16 public function __construct( 18 17 public readonly ?string $comment = null 19 18 ) {
+1
src/Generated/Tools/Ozone/Moderation/Defs/ModEventLabel.php
··· 20 20 */ 21 21 class ModEventLabel extends Data 22 22 { 23 + 23 24 /** 24 25 * @param int|null $durationInHours Indicates how long the label will remain on the subject. Only applies on labels that are being added. 25 26 */
+1
src/Generated/Tools/Ozone/Moderation/Defs/ModEventMute.php
··· 18 18 */ 19 19 class ModEventMute extends Data 20 20 { 21 + 21 22 /** 22 23 * @param int $durationInHours Indicates how long the subject should remain muted. 23 24 */
+1
src/Generated/Tools/Ozone/Moderation/Defs/ModEventMuteReporter.php
··· 15 15 */ 16 16 class ModEventMuteReporter extends Data 17 17 { 18 + 18 19 /** 19 20 * @param int|null $durationInHours Indicates how long the account should remain muted. Falsy value here means a permanent mute. 20 21 */
+1 -2
src/Generated/Tools/Ozone/Moderation/Defs/ModEventPriorityScore.php
··· 20 20 */ 21 21 class ModEventPriorityScore extends Data 22 22 { 23 - /** 24 - */ 23 + 25 24 public function __construct( 26 25 public readonly int $score, 27 26 public readonly ?string $comment = null
+1
src/Generated/Tools/Ozone/Moderation/Defs/ModEventReport.php
··· 20 20 */ 21 21 class ModEventReport extends Data 22 22 { 23 + 23 24 /** 24 25 * @param bool|null $isReporterMuted Set to true if the reporter was muted from reporting at the time of the event. These reports won't impact the reviewState of the subject. 25 26 */
+1
src/Generated/Tools/Ozone/Moderation/Defs/ModEventResolveAppeal.php
··· 14 14 */ 15 15 class ModEventResolveAppeal extends Data 16 16 { 17 + 17 18 /** 18 19 * @param string|null $comment Describe resolution. 19 20 */
+1
src/Generated/Tools/Ozone/Moderation/Defs/ModEventReverseTakedown.php
··· 20 20 */ 21 21 class ModEventReverseTakedown extends Data 22 22 { 23 + 23 24 /** 24 25 * @param string|null $comment Describe reasoning behind the reversal. 25 26 * @param array<string>|null $policies Names/Keywords of the policy infraction for which takedown is being reversed.
+1
src/Generated/Tools/Ozone/Moderation/Defs/ModEventTag.php
··· 19 19 */ 20 20 class ModEventTag extends Data 21 21 { 22 + 22 23 /** 23 24 * @param array<string> $add Tags to be added to the subject. If already exists, won't be duplicated. 24 25 * @param array<string> $remove Tags to be removed to the subject. Ignores a tag If it doesn't exist, won't be duplicated.
+1
src/Generated/Tools/Ozone/Moderation/Defs/ModEventTakedown.php
··· 26 26 */ 27 27 class ModEventTakedown extends Data 28 28 { 29 + 29 30 /** 30 31 * @param int|null $durationInHours Indicates how long the takedown should be in effect before automatically expiring. 31 32 * @param bool|null $acknowledgeAccountSubjects If true, all other reports on content authored by this account will be resolved (acknowledged).
+1
src/Generated/Tools/Ozone/Moderation/Defs/ModEventUnmute.php
··· 14 14 */ 15 15 class ModEventUnmute extends Data 16 16 { 17 + 17 18 /** 18 19 * @param string|null $comment Describe reasoning behind the reversal. 19 20 */
+1
src/Generated/Tools/Ozone/Moderation/Defs/ModEventUnmuteReporter.php
··· 14 14 */ 15 15 class ModEventUnmuteReporter extends Data 16 16 { 17 + 17 18 /** 18 19 * @param string|null $comment Describe reasoning behind the reversal. 19 20 */
+1 -2
src/Generated/Tools/Ozone/Moderation/Defs/ModEventView.php
··· 27 27 */ 28 28 class ModEventView extends Data 29 29 { 30 - /** 31 - */ 30 + 32 31 public function __construct( 33 32 public readonly int $id, 34 33 public readonly mixed $event,
+1 -2
src/Generated/Tools/Ozone/Moderation/Defs/ModEventViewDetail.php
··· 25 25 */ 26 26 class ModEventViewDetail extends Data 27 27 { 28 - /** 29 - */ 28 + 30 29 public function __construct( 31 30 public readonly int $id, 32 31 public readonly mixed $event,
+1
src/Generated/Tools/Ozone/Moderation/Defs/ModTool.php
··· 18 18 */ 19 19 class ModTool extends Data 20 20 { 21 + 21 22 /** 22 23 * @param string $name Name/identifier of the source (e.g., 'automod', 'ozone/workspace') 23 24 * @param mixed $meta Additional arbitrary metadata about the source
+1 -2
src/Generated/Tools/Ozone/Moderation/Defs/Moderation.php
··· 12 12 */ 13 13 class Moderation extends Data 14 14 { 15 - /** 16 - */ 15 + 17 16 public function __construct( 18 17 public readonly mixed $subjectStatus = null 19 18 ) {
+1 -2
src/Generated/Tools/Ozone/Moderation/Defs/ModerationDetail.php
··· 12 12 */ 13 13 class ModerationDetail extends Data 14 14 { 15 - /** 16 - */ 15 + 17 16 public function __construct( 18 17 public readonly mixed $subjectStatus = null 19 18 ) {
+1 -2
src/Generated/Tools/Ozone/Moderation/Defs/RecordEvent.php
··· 24 24 */ 25 25 class RecordEvent extends Data 26 26 { 27 - /** 28 - */ 27 + 29 28 public function __construct( 30 29 public readonly string $op, 31 30 public readonly Carbon $timestamp,
+1 -2
src/Generated/Tools/Ozone/Moderation/Defs/RecordHosting.php
··· 22 22 */ 23 23 class RecordHosting extends Data 24 24 { 25 - /** 26 - */ 25 + 27 26 public function __construct( 28 27 public readonly string $status, 29 28 public readonly ?Carbon $updatedAt = null,
+1 -3
src/Generated/Tools/Ozone/Moderation/Defs/RecordView.php
··· 4 4 5 5 use Carbon\Carbon; 6 6 use SocialDept\Schema\Data\Data; 7 - use SocialDept\Schema\Generated\Tools\Ozone\Moderation\Defs\RecordView\Moderation; 8 7 9 8 /** 10 9 * Lexicon: tools.ozone.moderation.defs.recordView ··· 26 25 */ 27 26 class RecordView extends Data 28 27 { 29 - /** 30 - */ 28 + 31 29 public function __construct( 32 30 public readonly string $uri, 33 31 public readonly string $cid,
+1 -2
src/Generated/Tools/Ozone/Moderation/Defs/RecordViewDetail.php
··· 27 27 */ 28 28 class RecordViewDetail extends Data 29 29 { 30 - /** 31 - */ 30 + 32 31 public function __construct( 33 32 public readonly string $uri, 34 33 public readonly string $cid,
+1 -2
src/Generated/Tools/Ozone/Moderation/Defs/RecordViewNotFound.php
··· 16 16 */ 17 17 class RecordViewNotFound extends Data 18 18 { 19 - /** 20 - */ 19 + 21 20 public function __construct( 22 21 public readonly string $uri 23 22 ) {
+1
src/Generated/Tools/Ozone/Moderation/Defs/RecordsStats.php
··· 21 21 */ 22 22 class RecordsStats extends Data 23 23 { 24 + 24 25 /** 25 26 * @param int|null $totalReports Cumulative sum of the number of reports on the items in the set 26 27 * @param int|null $reportedCount Number of items that were reported at least once
+1 -3
src/Generated/Tools/Ozone/Moderation/Defs/RepoView.php
··· 6 6 use SocialDept\Schema\Data\Data; 7 7 use SocialDept\Schema\Generated\Com\Atproto\Admin\ThreatSignature; 8 8 use SocialDept\Schema\Generated\Com\Atproto\Server\InviteCode; 9 - use SocialDept\Schema\Generated\Tools\Ozone\Moderation\Defs\RepoView\Moderation; 10 9 11 10 /** 12 11 * Lexicon: tools.ozone.moderation.defs.repoView ··· 33 32 */ 34 33 class RepoView extends Data 35 34 { 36 - /** 37 - */ 35 + 38 36 public function __construct( 39 37 public readonly string $did, 40 38 public readonly string $handle,
+1 -2
src/Generated/Tools/Ozone/Moderation/Defs/RepoViewDetail.php
··· 37 37 */ 38 38 class RepoViewDetail extends Data 39 39 { 40 - /** 41 - */ 40 + 42 41 public function __construct( 43 42 public readonly string $did, 44 43 public readonly string $handle,
+1 -2
src/Generated/Tools/Ozone/Moderation/Defs/RepoViewNotFound.php
··· 16 16 */ 17 17 class RepoViewNotFound extends Data 18 18 { 19 - /** 20 - */ 19 + 21 20 public function __construct( 22 21 public readonly string $did 23 22 ) {
+1
src/Generated/Tools/Ozone/Moderation/Defs/ReporterStats.php
··· 24 24 */ 25 25 class ReporterStats extends Data 26 26 { 27 + 27 28 /** 28 29 * @param int $accountReportCount The total number of reports made by the user on accounts. 29 30 * @param int $recordReportCount The total number of reports made by the user on records.
+1
src/Generated/Tools/Ozone/Moderation/Defs/RevokeAccountCredentialsEvent.php
··· 17 17 */ 18 18 class RevokeAccountCredentialsEvent extends Data 19 19 { 20 + 20 21 /** 21 22 * @param string $comment Comment describing the reason for the revocation. 22 23 */
+1 -2
src/Generated/Tools/Ozone/Moderation/Defs/ScheduleTakedownEvent.php
··· 23 23 */ 24 24 class ScheduleTakedownEvent extends Data 25 25 { 26 - /** 27 - */ 26 + 28 27 public function __construct( 29 28 public readonly ?string $comment = null, 30 29 public readonly ?Carbon $executeAt = null,
+1
src/Generated/Tools/Ozone/Moderation/Defs/ScheduledActionView.php
··· 40 40 */ 41 41 class ScheduledActionView extends Data 42 42 { 43 + 43 44 /** 44 45 * @param int $id Auto-incrementing row ID 45 46 * @param string $action Type of action to be executed
+1
src/Generated/Tools/Ozone/Moderation/Defs/SubjectStatusView.php
··· 52 52 */ 53 53 class SubjectStatusView extends Data 54 54 { 55 + 55 56 /** 56 57 * @param Carbon $updatedAt Timestamp referencing when the last update was made to the moderation status of the subject 57 58 * @param Carbon $createdAt Timestamp referencing the first moderation status impacting event was emitted on the subject
+1 -2
src/Generated/Tools/Ozone/Moderation/Defs/SubjectView.php
··· 25 25 */ 26 26 class SubjectView extends Data 27 27 { 28 - /** 29 - */ 28 + 30 29 public function __construct( 31 30 public readonly SubjectType $type, 32 31 public readonly string $subject,
+1 -2
src/Generated/Tools/Ozone/Moderation/Defs/VideoDetails.php
··· 17 17 */ 18 18 class VideoDetails extends Data 19 19 { 20 - /** 21 - */ 20 + 22 21 public function __construct( 23 22 public readonly int $width, 24 23 public readonly int $height,
+1 -2
src/Generated/Tools/Ozone/Server/GetConfig/ServiceConfig.php
··· 15 15 */ 16 16 class ServiceConfig extends Data 17 17 { 18 - /** 19 - */ 18 + 20 19 public function __construct( 21 20 public readonly ?string $url = null 22 21 ) {
+1 -2
src/Generated/Tools/Ozone/Server/GetConfig/ViewerConfig.php
··· 12 12 */ 13 13 class ViewerConfig extends Data 14 14 { 15 - /** 16 - */ 15 + 17 16 public function __construct( 18 17 public readonly ?string $role = null 19 18 ) {
+20 -7
src/Generator/ClassGenerator.php
··· 177 177 178 178 // Build constructor DocBlock with parameter descriptions in the correct order 179 179 $docParams = array_merge($requiredDocParams, $optionalDocParams); 180 - $docLines = [' /**']; 180 + 181 + // Only add docblock if there are parameter descriptions 181 182 if (! empty($docParams)) { 183 + $docLines = [' /**']; 182 184 $docLines = array_merge($docLines, $docParams); 185 + $docLines[] = ' */'; 186 + $docBlock = "\n".implode("\n", $docLines); 187 + } else { 188 + $docBlock = ''; 183 189 } 184 - $docLines[] = ' */'; 185 - $docBlock = implode("\n", $docLines); 186 190 187 - return "\n ".$docBlock."\n public function __construct(\n".implode("\n", $params)."\n ) {\n }"; 191 + return $docBlock."\n public function __construct(\n".implode("\n", $params)."\n ) {\n }"; 188 192 } 189 193 190 194 /** ··· 252 256 } 253 257 } 254 258 255 - // Add local ref imports from nested namespace 256 - if (! empty($localRefs) && $currentNamespace && $currentClassName) { 259 + // Add local ref imports 260 + // For local refs, check if they should be nested or siblings 261 + if (! empty($localRefs) && $currentNamespace) { 257 262 foreach ($localRefs as $localRef) { 258 263 $refClassName = $this->naming->toClassName($localRef); 259 - $uses[] = $currentNamespace . '\\' . $currentClassName . '\\' . $refClassName; 264 + 265 + // If this is a nested definition (has currentClassName) and it's a record type, 266 + // then local refs are nested under the record 267 + if ($currentClassName && $definition['type'] === 'record') { 268 + $uses[] = $currentNamespace . '\\' . $currentClassName . '\\' . $refClassName; 269 + } else { 270 + // For object definitions or defs lexicons, local refs are siblings 271 + $uses[] = $currentNamespace . '\\' . $refClassName; 272 + } 260 273 } 261 274 } 262 275
+29
src/Generator/NamingConverter.php
··· 12 12 protected string $baseNamespace; 13 13 14 14 /** 15 + * PHP reserved keywords that cannot be used as class names. 16 + */ 17 + protected const RESERVED_KEYWORDS = [ 18 + 'abstract', 'and', 'array', 'as', 'break', 'callable', 'case', 'catch', 19 + 'class', 'clone', 'const', 'continue', 'declare', 'default', 'die', 'do', 20 + 'echo', 'else', 'elseif', 'empty', 'enddeclare', 'endfor', 'endforeach', 21 + 'endif', 'endswitch', 'endwhile', 'eval', 'exit', 'extends', 'final', 22 + 'finally', 'fn', 'for', 'foreach', 'function', 'global', 'goto', 'if', 23 + 'implements', 'include', 'include_once', 'instanceof', 'insteadof', 24 + 'interface', 'isset', 'list', 'match', 'namespace', 'new', 'or', 'print', 25 + 'private', 'protected', 'public', 'readonly', 'require', 'require_once', 26 + 'return', 'static', 'switch', 'throw', 'trait', 'try', 'unset', 'use', 27 + 'var', 'while', 'xor', 'yield', '__halt_compiler', 28 + ]; 29 + 30 + /** 15 31 * Create a new NamingConverter. 16 32 */ 17 33 public function __construct(string $baseNamespace = 'App\\Lexicons') ··· 63 79 $parts 64 80 )); 65 81 82 + // Check if the class name is a reserved keyword and add suffix 83 + if ($this->isReservedKeyword($className)) { 84 + $className .= 'Record'; 85 + } 86 + 66 87 return $className; 88 + } 89 + 90 + /** 91 + * Check if a name is a PHP reserved keyword. 92 + */ 93 + protected function isReservedKeyword(string $name): bool 94 + { 95 + return in_array(strtolower($name), self::RESERVED_KEYWORDS, true); 67 96 } 68 97 69 98 /**