Parse and validate AT Protocol Lexicons with DTO generation for Laravel

Regenerate all lexicon classes with NSID fragment fixes

+1 -2
src/Generated/App/Bsky/Actor/Defs/BskyAppStatePref.php
··· 3 3 namespace SocialDept\Schema\Generated\App\Bsky\Actor\Defs; 4 4 5 5 use SocialDept\Schema\Data\Data; 6 - use SocialDept\Schema\Generated\App\Bsky\Actor\Nux; 7 6 8 7 /** 9 8 * GENERATED CODE - DO NOT EDIT ··· 57 56 return new static( 58 57 activeProgressGuide: $data['activeProgressGuide'] ?? null, 59 58 queuedNudges: $data['queuedNudges'] ?? null, 60 - nuxs: isset($data['nuxs']) ? array_map(fn ($item) => Defs::fromArray($item), $data['nuxs']) : [] 59 + nuxs: isset($data['nuxs']) ? array_map(fn ($item) => Nux::fromArray($item), $data['nuxs']) : [] 61 60 ); 62 61 } 63 62
+1 -2
src/Generated/App/Bsky/Actor/Defs/MutedWord.php
··· 4 4 5 5 use Carbon\Carbon; 6 6 use SocialDept\Schema\Data\Data; 7 - use SocialDept\Schema\Generated\App\Bsky\Actor\MutedWordTarget; 8 7 9 8 /** 10 9 * GENERATED CODE - DO NOT EDIT ··· 64 63 { 65 64 return new static( 66 65 value: $data['value'], 67 - targets: isset($data['targets']) ? array_map(fn ($item) => Defs::fromArray($item), $data['targets']) : [], 66 + targets: isset($data['targets']) ? array_map(fn ($item) => MutedWordTarget::fromArray($item), $data['targets']) : [], 68 67 id: $data['id'] ?? null, 69 68 actorTarget: $data['actorTarget'] ?? null, 70 69 expiresAt: isset($data['expiresAt']) ? Carbon::parse($data['expiresAt']) : null
+1 -2
src/Generated/App/Bsky/Actor/Defs/MutedWordsPref.php
··· 3 3 namespace SocialDept\Schema\Generated\App\Bsky\Actor\Defs; 4 4 5 5 use SocialDept\Schema\Data\Data; 6 - use SocialDept\Schema\Generated\App\Bsky\Actor\MutedWord; 7 6 8 7 /** 9 8 * GENERATED CODE - DO NOT EDIT ··· 46 45 public static function fromArray(array $data): static 47 46 { 48 47 return new static( 49 - items: isset($data['items']) ? array_map(fn ($item) => Defs::fromArray($item), $data['items']) : [] 48 + items: isset($data['items']) ? array_map(fn ($item) => MutedWord::fromArray($item), $data['items']) : [] 50 49 ); 51 50 } 52 51
+2 -2
src/Generated/App/Bsky/Actor/Defs/ProfileView.php
··· 4 4 5 5 use Carbon\Carbon; 6 6 use SocialDept\Schema\Data\Data; 7 - use SocialDept\Schema\Generated\Com\Atproto\Label\Label; 7 + use SocialDept\Schema\Generated\Com\Atproto\Label\Defs\Label; 8 8 9 9 /** 10 10 * GENERATED CODE - DO NOT EDIT ··· 92 92 indexedAt: isset($data['indexedAt']) ? Carbon::parse($data['indexedAt']) : null, 93 93 createdAt: isset($data['createdAt']) ? Carbon::parse($data['createdAt']) : null, 94 94 viewer: $data['viewer'] ?? null, 95 - labels: isset($data['labels']) ? array_map(fn ($item) => Defs::fromArray($item), $data['labels']) : [], 95 + labels: isset($data['labels']) ? array_map(fn ($item) => Label::fromArray($item), $data['labels']) : [], 96 96 verification: $data['verification'] ?? null, 97 97 status: $data['status'] ?? null, 98 98 debug: $data['debug'] ?? null
+2 -2
src/Generated/App/Bsky/Actor/Defs/ProfileViewBasic.php
··· 4 4 5 5 use Carbon\Carbon; 6 6 use SocialDept\Schema\Data\Data; 7 - use SocialDept\Schema\Generated\Com\Atproto\Label\Label; 7 + use SocialDept\Schema\Generated\Com\Atproto\Label\Defs\Label; 8 8 9 9 /** 10 10 * GENERATED CODE - DO NOT EDIT ··· 82 82 avatar: $data['avatar'] ?? null, 83 83 associated: $data['associated'] ?? null, 84 84 viewer: $data['viewer'] ?? null, 85 - labels: isset($data['labels']) ? array_map(fn ($item) => Defs::fromArray($item), $data['labels']) : [], 85 + labels: isset($data['labels']) ? array_map(fn ($item) => Label::fromArray($item), $data['labels']) : [], 86 86 createdAt: isset($data['createdAt']) ? Carbon::parse($data['createdAt']) : null, 87 87 verification: $data['verification'] ?? null, 88 88 status: $data['status'] ?? null,
+4 -4
src/Generated/App/Bsky/Actor/Defs/ProfileViewDetailed.php
··· 4 4 5 5 use Carbon\Carbon; 6 6 use SocialDept\Schema\Data\Data; 7 - use SocialDept\Schema\Generated\App\Bsky\Graph\StarterPackViewBasic; 8 - use SocialDept\Schema\Generated\Com\Atproto\Label\Label; 7 + use SocialDept\Schema\Generated\App\Bsky\Graph\Defs\StarterPackViewBasic; 8 + use SocialDept\Schema\Generated\Com\Atproto\Label\Defs\Label; 9 9 use SocialDept\Schema\Generated\Com\Atproto\Repo\StrongRef; 10 10 11 11 /** ··· 112 112 followsCount: $data['followsCount'] ?? null, 113 113 postsCount: $data['postsCount'] ?? null, 114 114 associated: $data['associated'] ?? null, 115 - joinedViaStarterPack: isset($data['joinedViaStarterPack']) ? Defs::fromArray($data['joinedViaStarterPack']) : null, 115 + joinedViaStarterPack: isset($data['joinedViaStarterPack']) ? StarterPackViewBasic::fromArray($data['joinedViaStarterPack']) : null, 116 116 indexedAt: isset($data['indexedAt']) ? Carbon::parse($data['indexedAt']) : null, 117 117 createdAt: isset($data['createdAt']) ? Carbon::parse($data['createdAt']) : null, 118 118 viewer: $data['viewer'] ?? null, 119 - labels: isset($data['labels']) ? array_map(fn ($item) => Defs::fromArray($item), $data['labels']) : [], 119 + labels: isset($data['labels']) ? array_map(fn ($item) => Label::fromArray($item), $data['labels']) : [], 120 120 pinnedPost: isset($data['pinnedPost']) ? StrongRef::fromArray($data['pinnedPost']) : null, 121 121 verification: $data['verification'] ?? null, 122 122 status: $data['status'] ?? null,
+1 -2
src/Generated/App/Bsky/Actor/Defs/SavedFeedsPrefV2.php
··· 3 3 namespace SocialDept\Schema\Generated\App\Bsky\Actor\Defs; 4 4 5 5 use SocialDept\Schema\Data\Data; 6 - use SocialDept\Schema\Generated\App\Bsky\Actor\SavedFeed; 7 6 8 7 /** 9 8 * GENERATED CODE - DO NOT EDIT ··· 43 42 public static function fromArray(array $data): static 44 43 { 45 44 return new static( 46 - items: isset($data['items']) ? array_map(fn ($item) => Defs::fromArray($item), $data['items']) : [] 45 + items: isset($data['items']) ? array_map(fn ($item) => SavedFeed::fromArray($item), $data['items']) : [] 47 46 ); 48 47 } 49 48
+5 -5
src/Generated/App/Bsky/Actor/Defs/ViewerState.php
··· 3 3 namespace SocialDept\Schema\Generated\App\Bsky\Actor\Defs; 4 4 5 5 use SocialDept\Schema\Data\Data; 6 - use SocialDept\Schema\Generated\App\Bsky\Graph\ListViewBasic; 7 - use SocialDept\Schema\Generated\App\Bsky\Notification\ActivitySubscription; 6 + use SocialDept\Schema\Generated\App\Bsky\Graph\Defs\ListViewBasic; 7 + use SocialDept\Schema\Generated\App\Bsky\Notification\Defs\ActivitySubscription; 8 8 9 9 /** 10 10 * GENERATED CODE - DO NOT EDIT ··· 70 70 { 71 71 return new static( 72 72 muted: $data['muted'] ?? null, 73 - mutedByList: isset($data['mutedByList']) ? Defs::fromArray($data['mutedByList']) : null, 73 + mutedByList: isset($data['mutedByList']) ? ListViewBasic::fromArray($data['mutedByList']) : null, 74 74 blockedBy: $data['blockedBy'] ?? null, 75 75 blocking: $data['blocking'] ?? null, 76 - blockingByList: isset($data['blockingByList']) ? Defs::fromArray($data['blockingByList']) : null, 76 + blockingByList: isset($data['blockingByList']) ? ListViewBasic::fromArray($data['blockingByList']) : null, 77 77 following: $data['following'] ?? null, 78 78 followedBy: $data['followedBy'] ?? null, 79 79 knownFollowers: $data['knownFollowers'] ?? null, 80 - activitySubscription: isset($data['activitySubscription']) ? Defs::fromArray($data['activitySubscription']) : null 80 + activitySubscription: isset($data['activitySubscription']) ? ActivitySubscription::fromArray($data['activitySubscription']) : null 81 81 ); 82 82 } 83 83
+2 -2
src/Generated/App/Bsky/Embed/Images/Image.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\AspectRatio; 7 + use SocialDept\Schema\Generated\App\Bsky\Embed\Defs\AspectRatio; 8 8 9 9 /** 10 10 * GENERATED CODE - DO NOT EDIT ··· 53 53 return new static( 54 54 image: $data['image'], 55 55 alt: $data['alt'], 56 - aspectRatio: isset($data['aspectRatio']) ? Defs::fromArray($data['aspectRatio']) : null 56 + aspectRatio: isset($data['aspectRatio']) ? AspectRatio::fromArray($data['aspectRatio']) : null 57 57 ); 58 58 } 59 59
+2 -2
src/Generated/App/Bsky/Embed/Images/ViewImage.php
··· 3 3 namespace SocialDept\Schema\Generated\App\Bsky\Embed\Images; 4 4 5 5 use SocialDept\Schema\Data\Data; 6 - use SocialDept\Schema\Generated\App\Bsky\Embed\AspectRatio; 6 + use SocialDept\Schema\Generated\App\Bsky\Embed\Defs\AspectRatio; 7 7 8 8 /** 9 9 * GENERATED CODE - DO NOT EDIT ··· 59 59 thumb: $data['thumb'], 60 60 fullsize: $data['fullsize'], 61 61 alt: $data['alt'], 62 - aspectRatio: isset($data['aspectRatio']) ? Defs::fromArray($data['aspectRatio']) : null 62 + aspectRatio: isset($data['aspectRatio']) ? AspectRatio::fromArray($data['aspectRatio']) : null 63 63 ); 64 64 } 65 65
+2 -2
src/Generated/App/Bsky/Embed/Record/ViewBlocked.php
··· 3 3 namespace SocialDept\Schema\Generated\App\Bsky\Embed\Record; 4 4 5 5 use SocialDept\Schema\Data\Data; 6 - use SocialDept\Schema\Generated\App\Bsky\Feed\BlockedAuthor; 6 + use SocialDept\Schema\Generated\App\Bsky\Feed\Defs\BlockedAuthor; 7 7 8 8 /** 9 9 * GENERATED CODE - DO NOT EDIT ··· 51 51 return new static( 52 52 uri: $data['uri'], 53 53 blocked: $data['blocked'], 54 - author: Defs::fromArray($data['author']) 54 + author: BlockedAuthor::fromArray($data['author']) 55 55 ); 56 56 } 57 57
+4 -4
src/Generated/App/Bsky/Embed/Record/ViewRecord.php
··· 4 4 5 5 use Carbon\Carbon; 6 6 use SocialDept\Schema\Data\Data; 7 - use SocialDept\Schema\Generated\App\Bsky\Actor\ProfileViewBasic; 8 - use SocialDept\Schema\Generated\Com\Atproto\Label\Label; 7 + use SocialDept\Schema\Generated\App\Bsky\Actor\Defs\ProfileViewBasic; 8 + use SocialDept\Schema\Generated\Com\Atproto\Label\Defs\Label; 9 9 10 10 /** 11 11 * GENERATED CODE - DO NOT EDIT ··· 73 73 return new static( 74 74 uri: $data['uri'], 75 75 cid: $data['cid'], 76 - author: Defs::fromArray($data['author']), 76 + author: ProfileViewBasic::fromArray($data['author']), 77 77 value: $data['value'], 78 78 indexedAt: Carbon::parse($data['indexedAt']), 79 - labels: isset($data['labels']) ? array_map(fn ($item) => Defs::fromArray($item), $data['labels']) : [], 79 + labels: isset($data['labels']) ? array_map(fn ($item) => Label::fromArray($item), $data['labels']) : [], 80 80 replyCount: $data['replyCount'] ?? null, 81 81 repostCount: $data['repostCount'] ?? null, 82 82 likeCount: $data['likeCount'] ?? null,
+2 -2
src/Generated/App/Bsky/Embed/RecordWithMedia/View.php
··· 3 3 namespace SocialDept\Schema\Generated\App\Bsky\Embed\RecordWithMedia; 4 4 5 5 use SocialDept\Schema\Data\Data; 6 - use SocialDept\Schema\Generated\App\Bsky\Embed\View; 6 + use SocialDept\Schema\Generated\App\Bsky\Embed\Record\View; 7 7 use SocialDept\Schema\Support\UnionHelper; 8 8 9 9 /** ··· 46 46 public static function fromArray(array $data): static 47 47 { 48 48 return new static( 49 - record: Record::fromArray($data['record']), 49 + record: View::fromArray($data['record']), 50 50 media: UnionHelper::validateOpenUnion($data['media']) 51 51 ); 52 52 }
+2 -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\Defs\AspectRatio; 7 8 8 9 /** 9 10 * GENERATED CODE - DO NOT EDIT ··· 61 62 video: $data['video'], 62 63 captions: $data['captions'] ?? [], 63 64 alt: $data['alt'] ?? null, 64 - aspectRatio: isset($data['aspectRatio']) ? Defs::fromArray($data['aspectRatio']) : null 65 + aspectRatio: isset($data['aspectRatio']) ? AspectRatio::fromArray($data['aspectRatio']) : null 65 66 ); 66 67 } 67 68
+2 -2
src/Generated/App/Bsky/Embed/Video/View.php
··· 3 3 namespace SocialDept\Schema\Generated\App\Bsky\Embed\Video; 4 4 5 5 use SocialDept\Schema\Data\Data; 6 - use SocialDept\Schema\Generated\App\Bsky\Embed\AspectRatio; 6 + use SocialDept\Schema\Generated\App\Bsky\Embed\Defs\AspectRatio; 7 7 8 8 /** 9 9 * GENERATED CODE - DO NOT EDIT ··· 60 60 playlist: $data['playlist'], 61 61 thumbnail: $data['thumbnail'] ?? null, 62 62 alt: $data['alt'] ?? null, 63 - aspectRatio: isset($data['aspectRatio']) ? Defs::fromArray($data['aspectRatio']) : null 63 + aspectRatio: isset($data['aspectRatio']) ? AspectRatio::fromArray($data['aspectRatio']) : null 64 64 ); 65 65 } 66 66
+2 -2
src/Generated/App/Bsky/Feed/Defs/BlockedAuthor.php
··· 3 3 namespace SocialDept\Schema\Generated\App\Bsky\Feed\Defs; 4 4 5 5 use SocialDept\Schema\Data\Data; 6 - use SocialDept\Schema\Generated\App\Bsky\Actor\ViewerState; 6 + use SocialDept\Schema\Generated\App\Bsky\Actor\Defs\ViewerState; 7 7 8 8 /** 9 9 * GENERATED CODE - DO NOT EDIT ··· 47 47 { 48 48 return new static( 49 49 did: $data['did'], 50 - viewer: isset($data['viewer']) ? Defs::fromArray($data['viewer']) : null 50 + viewer: isset($data['viewer']) ? ViewerState::fromArray($data['viewer']) : null 51 51 ); 52 52 } 53 53
+4 -4
src/Generated/App/Bsky/Feed/Defs/GeneratorView.php
··· 4 4 5 5 use Carbon\Carbon; 6 6 use SocialDept\Schema\Data\Data; 7 - use SocialDept\Schema\Generated\App\Bsky\Actor\ProfileView; 7 + use SocialDept\Schema\Generated\App\Bsky\Actor\Defs\ProfileView; 8 8 use SocialDept\Schema\Generated\App\Bsky\Richtext\Facet; 9 - use SocialDept\Schema\Generated\Com\Atproto\Label\Label; 9 + use SocialDept\Schema\Generated\Com\Atproto\Label\Defs\Label; 10 10 11 11 /** 12 12 * GENERATED CODE - DO NOT EDIT ··· 83 83 uri: $data['uri'], 84 84 cid: $data['cid'], 85 85 did: $data['did'], 86 - creator: Defs::fromArray($data['creator']), 86 + creator: ProfileView::fromArray($data['creator']), 87 87 displayName: $data['displayName'], 88 88 indexedAt: Carbon::parse($data['indexedAt']), 89 89 description: $data['description'] ?? null, ··· 91 91 avatar: $data['avatar'] ?? null, 92 92 likeCount: $data['likeCount'] ?? null, 93 93 acceptsInteractions: $data['acceptsInteractions'] ?? null, 94 - labels: isset($data['labels']) ? array_map(fn ($item) => Defs::fromArray($item), $data['labels']) : [], 94 + labels: isset($data['labels']) ? array_map(fn ($item) => Label::fromArray($item), $data['labels']) : [], 95 95 viewer: $data['viewer'] ?? null, 96 96 contentMode: $data['contentMode'] ?? null 97 97 );
+4 -4
src/Generated/App/Bsky/Feed/Defs/PostView.php
··· 4 4 5 5 use Carbon\Carbon; 6 6 use SocialDept\Schema\Data\Data; 7 - use SocialDept\Schema\Generated\App\Bsky\Actor\ProfileViewBasic; 8 - use SocialDept\Schema\Generated\Com\Atproto\Label\Label; 7 + use SocialDept\Schema\Generated\App\Bsky\Actor\Defs\ProfileViewBasic; 8 + use SocialDept\Schema\Generated\Com\Atproto\Label\Defs\Label; 9 9 use SocialDept\Schema\Support\UnionHelper; 10 10 11 11 /** ··· 82 82 return new static( 83 83 uri: $data['uri'], 84 84 cid: $data['cid'], 85 - author: Defs::fromArray($data['author']), 85 + author: ProfileViewBasic::fromArray($data['author']), 86 86 record: $data['record'], 87 87 indexedAt: Carbon::parse($data['indexedAt']), 88 88 embed: isset($data['embed']) ? UnionHelper::validateOpenUnion($data['embed']) : null, ··· 92 92 likeCount: $data['likeCount'] ?? null, 93 93 quoteCount: $data['quoteCount'] ?? null, 94 94 viewer: $data['viewer'] ?? null, 95 - labels: isset($data['labels']) ? array_map(fn ($item) => Defs::fromArray($item), $data['labels']) : [], 95 + labels: isset($data['labels']) ? array_map(fn ($item) => Label::fromArray($item), $data['labels']) : [], 96 96 threadgate: $data['threadgate'] ?? null, 97 97 debug: $data['debug'] ?? null 98 98 );
+2
src/Generated/App/Bsky/Feed/Defs/ReasonPin.php
··· 12 12 */ 13 13 class ReasonPin extends Data 14 14 { 15 + 16 + 15 17 /** 16 18 * Get the lexicon NSID for this data type. 17 19 *
+2 -2
src/Generated/App/Bsky/Feed/Defs/ReasonRepost.php
··· 4 4 5 5 use Carbon\Carbon; 6 6 use SocialDept\Schema\Data\Data; 7 - use SocialDept\Schema\Generated\App\Bsky\Actor\ProfileViewBasic; 7 + use SocialDept\Schema\Generated\App\Bsky\Actor\Defs\ProfileViewBasic; 8 8 9 9 /** 10 10 * GENERATED CODE - DO NOT EDIT ··· 53 53 public static function fromArray(array $data): static 54 54 { 55 55 return new static( 56 - by: Defs::fromArray($data['by']), 56 + by: ProfileViewBasic::fromArray($data['by']), 57 57 indexedAt: Carbon::parse($data['indexedAt']), 58 58 uri: $data['uri'] ?? null, 59 59 cid: $data['cid'] ?? null
+2 -2
src/Generated/App/Bsky/Feed/Defs/ReplyRef.php
··· 3 3 namespace SocialDept\Schema\Generated\App\Bsky\Feed\Defs; 4 4 5 5 use SocialDept\Schema\Data\Data; 6 - use SocialDept\Schema\Generated\App\Bsky\Actor\ProfileViewBasic; 6 + use SocialDept\Schema\Generated\App\Bsky\Actor\Defs\ProfileViewBasic; 7 7 use SocialDept\Schema\Support\UnionHelper; 8 8 9 9 /** ··· 53 53 return new static( 54 54 root: UnionHelper::validateOpenUnion($data['root']), 55 55 parent: UnionHelper::validateOpenUnion($data['parent']), 56 - grandparentAuthor: isset($data['grandparentAuthor']) ? Defs::fromArray($data['grandparentAuthor']) : null 56 + grandparentAuthor: isset($data['grandparentAuthor']) ? ProfileViewBasic::fromArray($data['grandparentAuthor']) : null 57 57 ); 58 58 } 59 59
+2
src/Generated/App/Bsky/Feed/Defs/SkeletonReasonPin.php
··· 12 12 */ 13 13 class SkeletonReasonPin extends Data 14 14 { 15 + 16 + 15 17 /** 16 18 * Get the lexicon NSID for this data type. 17 19 *
+2 -2
src/Generated/App/Bsky/Feed/Defs/ThreadgateView.php
··· 3 3 namespace SocialDept\Schema\Generated\App\Bsky\Feed\Defs; 4 4 5 5 use SocialDept\Schema\Data\Data; 6 - use SocialDept\Schema\Generated\App\Bsky\Graph\ListViewBasic; 6 + use SocialDept\Schema\Generated\App\Bsky\Graph\Defs\ListViewBasic; 7 7 8 8 /** 9 9 * GENERATED CODE - DO NOT EDIT ··· 53 53 uri: $data['uri'] ?? null, 54 54 cid: $data['cid'] ?? null, 55 55 record: $data['record'] ?? null, 56 - lists: isset($data['lists']) ? array_map(fn ($item) => Defs::fromArray($item), $data['lists']) : [] 56 + lists: isset($data['lists']) ? array_map(fn ($item) => ListViewBasic::fromArray($item), $data['lists']) : [] 57 57 ); 58 58 } 59 59
+2 -2
src/Generated/App/Bsky/Feed/GetLikes/Like.php
··· 4 4 5 5 use Carbon\Carbon; 6 6 use SocialDept\Schema\Data\Data; 7 - use SocialDept\Schema\Generated\App\Bsky\Actor\ProfileView; 7 + use SocialDept\Schema\Generated\App\Bsky\Actor\Defs\ProfileView; 8 8 9 9 /** 10 10 * GENERATED CODE - DO NOT EDIT ··· 52 52 return new static( 53 53 indexedAt: Carbon::parse($data['indexedAt']), 54 54 createdAt: Carbon::parse($data['createdAt']), 55 - actor: Defs::fromArray($data['actor']) 55 + actor: ProfileView::fromArray($data['actor']) 56 56 ); 57 57 } 58 58
+2 -2
src/Generated/App/Bsky/Graph/Defs/ListItemView.php
··· 3 3 namespace SocialDept\Schema\Generated\App\Bsky\Graph\Defs; 4 4 5 5 use SocialDept\Schema\Data\Data; 6 - use SocialDept\Schema\Generated\App\Bsky\Actor\ProfileView; 6 + use SocialDept\Schema\Generated\App\Bsky\Actor\Defs\ProfileView; 7 7 8 8 /** 9 9 * GENERATED CODE - DO NOT EDIT ··· 47 47 { 48 48 return new static( 49 49 uri: $data['uri'], 50 - subject: Defs::fromArray($data['subject']) 50 + subject: ProfileView::fromArray($data['subject']) 51 51 ); 52 52 } 53 53
+4 -4
src/Generated/App/Bsky/Graph/Defs/ListView.php
··· 4 4 5 5 use Carbon\Carbon; 6 6 use SocialDept\Schema\Data\Data; 7 - use SocialDept\Schema\Generated\App\Bsky\Actor\ProfileView; 7 + use SocialDept\Schema\Generated\App\Bsky\Actor\Defs\ProfileView; 8 8 use SocialDept\Schema\Generated\App\Bsky\Richtext\Facet; 9 - use SocialDept\Schema\Generated\Com\Atproto\Label\Label; 9 + use SocialDept\Schema\Generated\Com\Atproto\Label\Defs\Label; 10 10 11 11 /** 12 12 * GENERATED CODE - DO NOT EDIT ··· 79 79 return new static( 80 80 uri: $data['uri'], 81 81 cid: $data['cid'], 82 - creator: Defs::fromArray($data['creator']), 82 + creator: ProfileView::fromArray($data['creator']), 83 83 name: $data['name'], 84 84 purpose: $data['purpose'], 85 85 indexedAt: Carbon::parse($data['indexedAt']), ··· 87 87 descriptionFacets: isset($data['descriptionFacets']) ? array_map(fn ($item) => Facet::fromArray($item), $data['descriptionFacets']) : [], 88 88 avatar: $data['avatar'] ?? null, 89 89 listItemCount: $data['listItemCount'] ?? null, 90 - labels: isset($data['labels']) ? array_map(fn ($item) => Defs::fromArray($item), $data['labels']) : [], 90 + labels: isset($data['labels']) ? array_map(fn ($item) => Label::fromArray($item), $data['labels']) : [], 91 91 viewer: $data['viewer'] ?? null 92 92 ); 93 93 }
+2 -2
src/Generated/App/Bsky/Graph/Defs/ListViewBasic.php
··· 4 4 5 5 use Carbon\Carbon; 6 6 use SocialDept\Schema\Data\Data; 7 - use SocialDept\Schema\Generated\Com\Atproto\Label\Label; 7 + use SocialDept\Schema\Generated\Com\Atproto\Label\Defs\Label; 8 8 9 9 /** 10 10 * GENERATED CODE - DO NOT EDIT ··· 73 73 purpose: $data['purpose'], 74 74 avatar: $data['avatar'] ?? null, 75 75 listItemCount: $data['listItemCount'] ?? null, 76 - labels: isset($data['labels']) ? array_map(fn ($item) => Defs::fromArray($item), $data['labels']) : [], 76 + labels: isset($data['labels']) ? array_map(fn ($item) => Label::fromArray($item), $data['labels']) : [], 77 77 viewer: $data['viewer'] ?? null, 78 78 indexedAt: isset($data['indexedAt']) ? Carbon::parse($data['indexedAt']) : null 79 79 );
+6 -6
src/Generated/App/Bsky/Graph/Defs/StarterPackView.php
··· 4 4 5 5 use Carbon\Carbon; 6 6 use SocialDept\Schema\Data\Data; 7 - use SocialDept\Schema\Generated\App\Bsky\Actor\ProfileViewBasic; 8 - use SocialDept\Schema\Generated\App\Bsky\Feed\GeneratorView; 9 - use SocialDept\Schema\Generated\Com\Atproto\Label\Label; 7 + use SocialDept\Schema\Generated\App\Bsky\Actor\Defs\ProfileViewBasic; 8 + use SocialDept\Schema\Generated\App\Bsky\Feed\Defs\GeneratorView; 9 + use SocialDept\Schema\Generated\Com\Atproto\Label\Defs\Label; 10 10 11 11 /** 12 12 * GENERATED CODE - DO NOT EDIT ··· 76 76 uri: $data['uri'], 77 77 cid: $data['cid'], 78 78 record: $data['record'], 79 - creator: Defs::fromArray($data['creator']), 79 + creator: ProfileViewBasic::fromArray($data['creator']), 80 80 indexedAt: Carbon::parse($data['indexedAt']), 81 81 list: $data['list'] ?? null, 82 82 listItemsSample: $data['listItemsSample'] ?? [], 83 - feeds: isset($data['feeds']) ? array_map(fn ($item) => Defs::fromArray($item), $data['feeds']) : [], 83 + feeds: isset($data['feeds']) ? array_map(fn ($item) => GeneratorView::fromArray($item), $data['feeds']) : [], 84 84 joinedWeekCount: $data['joinedWeekCount'] ?? null, 85 85 joinedAllTimeCount: $data['joinedAllTimeCount'] ?? null, 86 - labels: isset($data['labels']) ? array_map(fn ($item) => Defs::fromArray($item), $data['labels']) : [] 86 + labels: isset($data['labels']) ? array_map(fn ($item) => Label::fromArray($item), $data['labels']) : [] 87 87 ); 88 88 } 89 89
+4 -4
src/Generated/App/Bsky/Graph/Defs/StarterPackViewBasic.php
··· 4 4 5 5 use Carbon\Carbon; 6 6 use SocialDept\Schema\Data\Data; 7 - use SocialDept\Schema\Generated\App\Bsky\Actor\ProfileViewBasic; 8 - use SocialDept\Schema\Generated\Com\Atproto\Label\Label; 7 + use SocialDept\Schema\Generated\App\Bsky\Actor\Defs\ProfileViewBasic; 8 + use SocialDept\Schema\Generated\Com\Atproto\Label\Defs\Label; 9 9 10 10 /** 11 11 * GENERATED CODE - DO NOT EDIT ··· 70 70 uri: $data['uri'], 71 71 cid: $data['cid'], 72 72 record: $data['record'], 73 - creator: Defs::fromArray($data['creator']), 73 + creator: ProfileViewBasic::fromArray($data['creator']), 74 74 indexedAt: Carbon::parse($data['indexedAt']), 75 75 listItemCount: $data['listItemCount'] ?? null, 76 76 joinedWeekCount: $data['joinedWeekCount'] ?? null, 77 77 joinedAllTimeCount: $data['joinedAllTimeCount'] ?? null, 78 - labels: isset($data['labels']) ? array_map(fn ($item) => Defs::fromArray($item), $data['labels']) : [] 78 + labels: isset($data['labels']) ? array_map(fn ($item) => Label::fromArray($item), $data['labels']) : [] 79 79 ); 80 80 } 81 81
+2 -1
src/Generated/App/Bsky/Graph/ListRecord.php
··· 5 5 use Carbon\Carbon; 6 6 use SocialDept\Schema\Data\BlobReference; 7 7 use SocialDept\Schema\Data\Data; 8 + use SocialDept\Schema\Generated\App\Bsky\Graph\Defs\ListPurpose; 8 9 use SocialDept\Schema\Generated\App\Bsky\Richtext\Facet; 9 10 use SocialDept\Schema\Support\UnionHelper; 10 11 ··· 51 52 public static function fromArray(array $data): static 52 53 { 53 54 return new static( 54 - purpose: Defs::fromArray($data['purpose']), 55 + purpose: ListPurpose::fromArray($data['purpose']), 55 56 name: $data['name'], 56 57 createdAt: Carbon::parse($data['createdAt']), 57 58 description: $data['description'] ?? null,
+4 -4
src/Generated/App/Bsky/Labeler/Defs/LabelerPolicies.php
··· 3 3 namespace SocialDept\Schema\Generated\App\Bsky\Labeler\Defs; 4 4 5 5 use SocialDept\Schema\Data\Data; 6 - use SocialDept\Schema\Generated\Com\Atproto\Label\LabelValue; 7 - use SocialDept\Schema\Generated\Com\Atproto\Label\LabelValueDefinition; 6 + use SocialDept\Schema\Generated\Com\Atproto\Label\Defs\LabelValue; 7 + use SocialDept\Schema\Generated\Com\Atproto\Label\Defs\LabelValueDefinition; 8 8 9 9 /** 10 10 * GENERATED CODE - DO NOT EDIT ··· 50 50 public static function fromArray(array $data): static 51 51 { 52 52 return new static( 53 - labelValues: isset($data['labelValues']) ? array_map(fn ($item) => Defs::fromArray($item), $data['labelValues']) : [], 54 - labelValueDefinitions: isset($data['labelValueDefinitions']) ? array_map(fn ($item) => Defs::fromArray($item), $data['labelValueDefinitions']) : [] 53 + labelValues: isset($data['labelValues']) ? array_map(fn ($item) => LabelValue::fromArray($item), $data['labelValues']) : [], 54 + labelValueDefinitions: isset($data['labelValueDefinitions']) ? array_map(fn ($item) => LabelValueDefinition::fromArray($item), $data['labelValueDefinitions']) : [] 55 55 ); 56 56 } 57 57
+4 -4
src/Generated/App/Bsky/Labeler/Defs/LabelerView.php
··· 4 4 5 5 use Carbon\Carbon; 6 6 use SocialDept\Schema\Data\Data; 7 - use SocialDept\Schema\Generated\App\Bsky\Actor\ProfileView; 8 - use SocialDept\Schema\Generated\Com\Atproto\Label\Label; 7 + use SocialDept\Schema\Generated\App\Bsky\Actor\Defs\ProfileView; 8 + use SocialDept\Schema\Generated\Com\Atproto\Label\Defs\Label; 9 9 10 10 /** 11 11 * GENERATED CODE - DO NOT EDIT ··· 63 63 return new static( 64 64 uri: $data['uri'], 65 65 cid: $data['cid'], 66 - creator: Defs::fromArray($data['creator']), 66 + creator: ProfileView::fromArray($data['creator']), 67 67 indexedAt: Carbon::parse($data['indexedAt']), 68 68 likeCount: $data['likeCount'] ?? null, 69 69 viewer: $data['viewer'] ?? null, 70 - labels: isset($data['labels']) ? array_map(fn ($item) => Defs::fromArray($item), $data['labels']) : [] 70 + labels: isset($data['labels']) ? array_map(fn ($item) => Label::fromArray($item), $data['labels']) : [] 71 71 ); 72 72 } 73 73
+9 -10
src/Generated/App/Bsky/Labeler/Defs/LabelerViewDetailed.php
··· 4 4 5 5 use Carbon\Carbon; 6 6 use SocialDept\Schema\Data\Data; 7 - use SocialDept\Schema\Generated\App\Bsky\Actor\ProfileView; 8 - use SocialDept\Schema\Generated\App\Bsky\Labeler\LabelerPolicies; 9 - use SocialDept\Schema\Generated\Com\Atproto\Label\Label; 10 - use SocialDept\Schema\Generated\Com\Atproto\Moderation\ReasonType; 11 - use SocialDept\Schema\Generated\Com\Atproto\Moderation\SubjectType; 7 + use SocialDept\Schema\Generated\App\Bsky\Actor\Defs\ProfileView; 8 + use SocialDept\Schema\Generated\Com\Atproto\Label\Defs\Label; 9 + use SocialDept\Schema\Generated\Com\Atproto\Moderation\Defs\ReasonType; 10 + use SocialDept\Schema\Generated\Com\Atproto\Moderation\Defs\SubjectType; 12 11 13 12 /** 14 13 * GENERATED CODE - DO NOT EDIT ··· 79 78 return new static( 80 79 uri: $data['uri'], 81 80 cid: $data['cid'], 82 - creator: Defs::fromArray($data['creator']), 83 - policies: Defs::fromArray($data['policies']), 81 + creator: ProfileView::fromArray($data['creator']), 82 + policies: LabelerPolicies::fromArray($data['policies']), 84 83 indexedAt: Carbon::parse($data['indexedAt']), 85 84 likeCount: $data['likeCount'] ?? null, 86 85 viewer: $data['viewer'] ?? null, 87 - labels: isset($data['labels']) ? array_map(fn ($item) => Defs::fromArray($item), $data['labels']) : [], 88 - reasonTypes: isset($data['reasonTypes']) ? array_map(fn ($item) => Defs::fromArray($item), $data['reasonTypes']) : [], 89 - subjectTypes: isset($data['subjectTypes']) ? array_map(fn ($item) => Defs::fromArray($item), $data['subjectTypes']) : [], 86 + labels: isset($data['labels']) ? array_map(fn ($item) => Label::fromArray($item), $data['labels']) : [], 87 + reasonTypes: isset($data['reasonTypes']) ? array_map(fn ($item) => ReasonType::fromArray($item), $data['reasonTypes']) : [], 88 + subjectTypes: isset($data['subjectTypes']) ? array_map(fn ($item) => SubjectType::fromArray($item), $data['subjectTypes']) : [], 90 89 subjectCollections: $data['subjectCollections'] ?? null 91 90 ); 92 91 }
+6 -5
src/Generated/App/Bsky/Labeler/Service.php
··· 4 4 5 5 use Carbon\Carbon; 6 6 use SocialDept\Schema\Data\Data; 7 - use SocialDept\Schema\Generated\Com\Atproto\Moderation\ReasonType; 8 - use SocialDept\Schema\Generated\Com\Atproto\Moderation\SubjectType; 7 + use SocialDept\Schema\Generated\App\Bsky\Labeler\Defs\LabelerPolicies; 8 + use SocialDept\Schema\Generated\Com\Atproto\Moderation\Defs\ReasonType; 9 + use SocialDept\Schema\Generated\Com\Atproto\Moderation\Defs\SubjectType; 9 10 use SocialDept\Schema\Support\UnionHelper; 10 11 11 12 /** ··· 51 52 public static function fromArray(array $data): static 52 53 { 53 54 return new static( 54 - policies: Defs::fromArray($data['policies']), 55 + policies: LabelerPolicies::fromArray($data['policies']), 55 56 createdAt: Carbon::parse($data['createdAt']), 56 57 labels: isset($data['labels']) ? UnionHelper::validateOpenUnion($data['labels']) : null, 57 - reasonTypes: isset($data['reasonTypes']) ? array_map(fn ($item) => Defs::fromArray($item), $data['reasonTypes']) : [], 58 - subjectTypes: isset($data['subjectTypes']) ? array_map(fn ($item) => Defs::fromArray($item), $data['subjectTypes']) : [], 58 + reasonTypes: isset($data['reasonTypes']) ? array_map(fn ($item) => ReasonType::fromArray($item), $data['reasonTypes']) : [], 59 + subjectTypes: isset($data['subjectTypes']) ? array_map(fn ($item) => SubjectType::fromArray($item), $data['subjectTypes']) : [], 59 60 subjectCollections: $data['subjectCollections'] ?? null 60 61 ); 61 62 }
+2
src/Generated/App/Bsky/Notification/Defs/RecordDeleted.php
··· 12 12 */ 13 13 class RecordDeleted extends Data 14 14 { 15 + 16 + 15 17 /** 16 18 * Get the lexicon NSID for this data type. 17 19 *
+4 -4
src/Generated/App/Bsky/Notification/ListNotifications/Notification.php
··· 4 4 5 5 use Carbon\Carbon; 6 6 use SocialDept\Schema\Data\Data; 7 - use SocialDept\Schema\Generated\App\Bsky\Actor\ProfileView; 8 - use SocialDept\Schema\Generated\Com\Atproto\Label\Label; 7 + use SocialDept\Schema\Generated\App\Bsky\Actor\Defs\ProfileView; 8 + use SocialDept\Schema\Generated\Com\Atproto\Label\Defs\Label; 9 9 10 10 /** 11 11 * GENERATED CODE - DO NOT EDIT ··· 70 70 return new static( 71 71 uri: $data['uri'], 72 72 cid: $data['cid'], 73 - author: Defs::fromArray($data['author']), 73 + author: ProfileView::fromArray($data['author']), 74 74 reason: $data['reason'], 75 75 record: $data['record'], 76 76 isRead: $data['isRead'], 77 77 indexedAt: Carbon::parse($data['indexedAt']), 78 78 reasonSubject: $data['reasonSubject'] ?? null, 79 - labels: isset($data['labels']) ? array_map(fn ($item) => Defs::fromArray($item), $data['labels']) : [] 79 + labels: isset($data['labels']) ? array_map(fn ($item) => Label::fromArray($item), $data['labels']) : [] 80 80 ); 81 81 } 82 82
+2 -2
src/Generated/App/Bsky/Unspecced/Defs/ThreadItemBlocked.php
··· 3 3 namespace SocialDept\Schema\Generated\App\Bsky\Unspecced\Defs; 4 4 5 5 use SocialDept\Schema\Data\Data; 6 - use SocialDept\Schema\Generated\App\Bsky\Feed\BlockedAuthor; 6 + use SocialDept\Schema\Generated\App\Bsky\Feed\Defs\BlockedAuthor; 7 7 8 8 /** 9 9 * GENERATED CODE - DO NOT EDIT ··· 43 43 public static function fromArray(array $data): static 44 44 { 45 45 return new static( 46 - author: Defs::fromArray($data['author']) 46 + author: BlockedAuthor::fromArray($data['author']) 47 47 ); 48 48 } 49 49
+2
src/Generated/App/Bsky/Unspecced/Defs/ThreadItemNoUnauthenticated.php
··· 12 12 */ 13 13 class ThreadItemNoUnauthenticated extends Data 14 14 { 15 + 16 + 15 17 /** 16 18 * Get the lexicon NSID for this data type. 17 19 *
+2
src/Generated/App/Bsky/Unspecced/Defs/ThreadItemNotFound.php
··· 12 12 */ 13 13 class ThreadItemNotFound extends Data 14 14 { 15 + 16 + 15 17 /** 16 18 * Get the lexicon NSID for this data type. 17 19 *
+2 -2
src/Generated/App/Bsky/Unspecced/Defs/ThreadItemPost.php
··· 3 3 namespace SocialDept\Schema\Generated\App\Bsky\Unspecced\Defs; 4 4 5 5 use SocialDept\Schema\Data\Data; 6 - use SocialDept\Schema\Generated\App\Bsky\Feed\PostView; 6 + use SocialDept\Schema\Generated\App\Bsky\Feed\Defs\PostView; 7 7 8 8 /** 9 9 * GENERATED CODE - DO NOT EDIT ··· 60 60 public static function fromArray(array $data): static 61 61 { 62 62 return new static( 63 - post: Defs::fromArray($data['post']), 63 + post: PostView::fromArray($data['post']), 64 64 moreParents: $data['moreParents'], 65 65 moreReplies: $data['moreReplies'], 66 66 opThread: $data['opThread'],
+2 -2
src/Generated/App/Bsky/Unspecced/Defs/TrendView.php
··· 4 4 5 5 use Carbon\Carbon; 6 6 use SocialDept\Schema\Data\Data; 7 - use SocialDept\Schema\Generated\App\Bsky\Actor\ProfileViewBasic; 7 + use SocialDept\Schema\Generated\App\Bsky\Actor\Defs\ProfileViewBasic; 8 8 9 9 /** 10 10 * GENERATED CODE - DO NOT EDIT ··· 64 64 link: $data['link'], 65 65 startedAt: Carbon::parse($data['startedAt']), 66 66 postCount: $data['postCount'], 67 - actors: isset($data['actors']) ? array_map(fn ($item) => Defs::fromArray($item), $data['actors']) : [], 67 + actors: isset($data['actors']) ? array_map(fn ($item) => ProfileViewBasic::fromArray($item), $data['actors']) : [], 68 68 status: $data['status'] ?? null, 69 69 category: $data['category'] ?? null 70 70 );
+2 -2
src/Generated/Chat/Bsky/Convo/Defs/ConvoView.php
··· 3 3 namespace SocialDept\Schema\Generated\Chat\Bsky\Convo\Defs; 4 4 5 5 use SocialDept\Schema\Data\Data; 6 - use SocialDept\Schema\Generated\Chat\Bsky\Actor\ProfileViewBasic; 6 + use SocialDept\Schema\Generated\App\Bsky\Actor\Defs\ProfileViewBasic; 7 7 use SocialDept\Schema\Support\UnionHelper; 8 8 9 9 /** ··· 60 60 return new static( 61 61 id: $data['id'], 62 62 rev: $data['rev'], 63 - members: isset($data['members']) ? array_map(fn ($item) => Defs::fromArray($item), $data['members']) : [], 63 + members: isset($data['members']) ? array_map(fn ($item) => ProfileViewBasic::fromArray($item), $data['members']) : [], 64 64 muted: $data['muted'], 65 65 unreadCount: $data['unreadCount'], 66 66 lastMessage: isset($data['lastMessage']) ? UnionHelper::validateOpenUnion($data['lastMessage']) : null,
+3 -3
src/Generated/Com/Atproto/Admin/Defs/AccountView.php
··· 4 4 5 5 use Carbon\Carbon; 6 6 use SocialDept\Schema\Data\Data; 7 - use SocialDept\Schema\Generated\Com\Atproto\Server\InviteCode; 7 + use SocialDept\Schema\Generated\Com\Atproto\Server\Defs\InviteCode; 8 8 9 9 /** 10 10 * GENERATED CODE - DO NOT EDIT ··· 76 76 indexedAt: Carbon::parse($data['indexedAt']), 77 77 email: $data['email'] ?? null, 78 78 relatedRecords: $data['relatedRecords'] ?? null, 79 - invitedBy: isset($data['invitedBy']) ? Defs::fromArray($data['invitedBy']) : null, 80 - invites: isset($data['invites']) ? array_map(fn ($item) => Defs::fromArray($item), $data['invites']) : [], 79 + invitedBy: isset($data['invitedBy']) ? InviteCode::fromArray($data['invitedBy']) : null, 80 + invites: isset($data['invites']) ? array_map(fn ($item) => InviteCode::fromArray($item), $data['invites']) : [], 81 81 invitesDisabled: $data['invitesDisabled'] ?? null, 82 82 emailConfirmedAt: isset($data['emailConfirmedAt']) ? Carbon::parse($data['emailConfirmedAt']) : null, 83 83 inviteNote: $data['inviteNote'] ?? null,
+2 -2
src/Generated/Com/Atproto/Label/SubscribeLabels/Labels.php
··· 3 3 namespace SocialDept\Schema\Generated\Com\Atproto\Label\SubscribeLabels; 4 4 5 5 use SocialDept\Schema\Data\Data; 6 - use SocialDept\Schema\Generated\Com\Atproto\Label\Label; 6 + use SocialDept\Schema\Generated\Com\Atproto\Label\Defs\Label; 7 7 8 8 /** 9 9 * GENERATED CODE - DO NOT EDIT ··· 46 46 { 47 47 return new static( 48 48 seq: $data['seq'], 49 - labels: isset($data['labels']) ? array_map(fn ($item) => Defs::fromArray($item), $data['labels']) : [] 49 + labels: isset($data['labels']) ? array_map(fn ($item) => Label::fromArray($item), $data['labels']) : [] 50 50 ); 51 51 } 52 52
+2
src/Generated/Com/Atproto/Repo/ApplyWrites/DeleteResult.php
··· 12 12 */ 13 13 class DeleteResult extends Data 14 14 { 15 + 16 + 15 17 /** 16 18 * Get the lexicon NSID for this data type. 17 19 *
+2 -2
src/Generated/Com/Atproto/Sync/ListHosts/Host.php
··· 3 3 namespace SocialDept\Schema\Generated\Com\Atproto\Sync\ListHosts; 4 4 5 5 use SocialDept\Schema\Data\Data; 6 - use SocialDept\Schema\Generated\Com\Atproto\Sync\HostStatus; 6 + use SocialDept\Schema\Generated\Com\Atproto\Sync\Defs\HostStatus; 7 7 8 8 /** 9 9 * GENERATED CODE - DO NOT EDIT ··· 56 56 hostname: $data['hostname'], 57 57 seq: $data['seq'] ?? null, 58 58 accountCount: $data['accountCount'] ?? null, 59 - status: isset($data['status']) ? Defs::fromArray($data['status']) : null 59 + status: isset($data['status']) ? HostStatus::fromArray($data['status']) : null 60 60 ); 61 61 } 62 62
+2 -2
src/Generated/Tools/Ozone/Moderation/Defs/ModEventReport.php
··· 3 3 namespace SocialDept\Schema\Generated\Tools\Ozone\Moderation\Defs; 4 4 5 5 use SocialDept\Schema\Data\Data; 6 - use SocialDept\Schema\Generated\Com\Atproto\Moderation\ReasonType; 6 + use SocialDept\Schema\Generated\Com\Atproto\Moderation\Defs\ReasonType; 7 7 8 8 /** 9 9 * GENERATED CODE - DO NOT EDIT ··· 52 52 public static function fromArray(array $data): static 53 53 { 54 54 return new static( 55 - reportType: Defs::fromArray($data['reportType']), 55 + reportType: ReasonType::fromArray($data['reportType']), 56 56 comment: $data['comment'] ?? null, 57 57 isReporterMuted: $data['isReporterMuted'] ?? null 58 58 );
+2 -2
src/Generated/Tools/Ozone/Moderation/Defs/RecordViewDetail.php
··· 4 4 5 5 use Carbon\Carbon; 6 6 use SocialDept\Schema\Data\Data; 7 - use SocialDept\Schema\Generated\Com\Atproto\Label\Label; 7 + use SocialDept\Schema\Generated\Com\Atproto\Label\Defs\Label; 8 8 9 9 /** 10 10 * GENERATED CODE - DO NOT EDIT ··· 68 68 indexedAt: Carbon::parse($data['indexedAt']), 69 69 moderation: $data['moderation'], 70 70 repo: $data['repo'], 71 - labels: isset($data['labels']) ? array_map(fn ($item) => Defs::fromArray($item), $data['labels']) : [] 71 + labels: isset($data['labels']) ? array_map(fn ($item) => Label::fromArray($item), $data['labels']) : [] 72 72 ); 73 73 } 74 74
+4 -4
src/Generated/Tools/Ozone/Moderation/Defs/RepoView.php
··· 4 4 5 5 use Carbon\Carbon; 6 6 use SocialDept\Schema\Data\Data; 7 - use SocialDept\Schema\Generated\Com\Atproto\Admin\ThreatSignature; 8 - use SocialDept\Schema\Generated\Com\Atproto\Server\InviteCode; 7 + use SocialDept\Schema\Generated\Com\Atproto\Admin\Defs\ThreatSignature; 8 + use SocialDept\Schema\Generated\Com\Atproto\Server\Defs\InviteCode; 9 9 10 10 /** 11 11 * GENERATED CODE - DO NOT EDIT ··· 75 75 indexedAt: Carbon::parse($data['indexedAt']), 76 76 moderation: $data['moderation'], 77 77 email: $data['email'] ?? null, 78 - invitedBy: isset($data['invitedBy']) ? Defs::fromArray($data['invitedBy']) : null, 78 + invitedBy: isset($data['invitedBy']) ? InviteCode::fromArray($data['invitedBy']) : null, 79 79 invitesDisabled: $data['invitesDisabled'] ?? null, 80 80 inviteNote: $data['inviteNote'] ?? null, 81 81 deactivatedAt: isset($data['deactivatedAt']) ? Carbon::parse($data['deactivatedAt']) : null, 82 - threatSignatures: isset($data['threatSignatures']) ? array_map(fn ($item) => Defs::fromArray($item), $data['threatSignatures']) : [] 82 + threatSignatures: isset($data['threatSignatures']) ? array_map(fn ($item) => ThreatSignature::fromArray($item), $data['threatSignatures']) : [] 83 83 ); 84 84 } 85 85
+7 -7
src/Generated/Tools/Ozone/Moderation/Defs/RepoViewDetail.php
··· 4 4 5 5 use Carbon\Carbon; 6 6 use SocialDept\Schema\Data\Data; 7 - use SocialDept\Schema\Generated\Com\Atproto\Admin\ThreatSignature; 8 - use SocialDept\Schema\Generated\Com\Atproto\Label\Label; 9 - use SocialDept\Schema\Generated\Com\Atproto\Server\InviteCode; 7 + use SocialDept\Schema\Generated\Com\Atproto\Admin\Defs\ThreatSignature; 8 + use SocialDept\Schema\Generated\Com\Atproto\Label\Defs\Label; 9 + use SocialDept\Schema\Generated\Com\Atproto\Server\Defs\InviteCode; 10 10 11 11 /** 12 12 * GENERATED CODE - DO NOT EDIT ··· 83 83 indexedAt: Carbon::parse($data['indexedAt']), 84 84 moderation: $data['moderation'], 85 85 email: $data['email'] ?? null, 86 - labels: isset($data['labels']) ? array_map(fn ($item) => Defs::fromArray($item), $data['labels']) : [], 87 - invitedBy: isset($data['invitedBy']) ? Defs::fromArray($data['invitedBy']) : null, 88 - invites: isset($data['invites']) ? array_map(fn ($item) => Defs::fromArray($item), $data['invites']) : [], 86 + labels: isset($data['labels']) ? array_map(fn ($item) => Label::fromArray($item), $data['labels']) : [], 87 + invitedBy: isset($data['invitedBy']) ? InviteCode::fromArray($data['invitedBy']) : null, 88 + invites: isset($data['invites']) ? array_map(fn ($item) => InviteCode::fromArray($item), $data['invites']) : [], 89 89 invitesDisabled: $data['invitesDisabled'] ?? null, 90 90 inviteNote: $data['inviteNote'] ?? null, 91 91 emailConfirmedAt: isset($data['emailConfirmedAt']) ? Carbon::parse($data['emailConfirmedAt']) : null, 92 92 deactivatedAt: isset($data['deactivatedAt']) ? Carbon::parse($data['deactivatedAt']) : null, 93 - threatSignatures: isset($data['threatSignatures']) ? array_map(fn ($item) => Defs::fromArray($item), $data['threatSignatures']) : [] 93 + threatSignatures: isset($data['threatSignatures']) ? array_map(fn ($item) => ThreatSignature::fromArray($item), $data['threatSignatures']) : [] 94 94 ); 95 95 } 96 96
+2 -2
src/Generated/Tools/Ozone/Moderation/Defs/SubjectView.php
··· 3 3 namespace SocialDept\Schema\Generated\Tools\Ozone\Moderation\Defs; 4 4 5 5 use SocialDept\Schema\Data\Data; 6 - use SocialDept\Schema\Generated\Com\Atproto\Moderation\SubjectType; 6 + use SocialDept\Schema\Generated\Com\Atproto\Moderation\Defs\SubjectType; 7 7 use SocialDept\Schema\Support\UnionHelper; 8 8 9 9 /** ··· 57 57 public static function fromArray(array $data): static 58 58 { 59 59 return new static( 60 - type: Defs::fromArray($data['type']), 60 + type: SubjectType::fromArray($data['type']), 61 61 subject: $data['subject'], 62 62 status: $data['status'] ?? null, 63 63 repo: $data['repo'] ?? null,