From 9451e3e808a41e87c5887d398305322d4696d4cd Mon Sep 17 00:00:00 2001 From: Cees-Jan Kiewiet Date: Sat, 25 Feb 2023 18:40:22 +0100 Subject: [PATCH] Hydrator shizzle --- composer.lock | 58 +- src/Client.php | 6 +- src/Hydrator/WebHook/BranchProtectionRule.php | 692 +- src/Hydrator/WebHook/CheckRun.php | 776 +- src/Hydrator/WebHook/CheckSuite.php | 2809 +- src/Hydrator/WebHook/CodeScanningAlert.php | 6518 ++-- src/Hydrator/WebHook/DependabotAlert.php | 858 +- src/Hydrator/WebHook/DeployKey.php | 216 +- src/Hydrator/WebHook/Discussion.php | 8492 +++-- src/Hydrator/WebHook/DiscussionComment.php | 596 +- src/Hydrator/WebHook/Installation.php | 4900 +-- .../WebHook/InstallationRepositories.php | 289 +- src/Hydrator/WebHook/IssueComment.php | 1615 +- src/Hydrator/WebHook/Issues.php | 14321 +++++++-- src/Hydrator/WebHook/Label.php | 640 +- src/Hydrator/WebHook/MarketplacePurchase.php | 4644 +-- src/Hydrator/WebHook/Member.php | 725 +- src/Hydrator/WebHook/Membership.php | 264 +- src/Hydrator/WebHook/Milestone.php | 4650 ++- src/Hydrator/WebHook/OrgBlock.php | 216 +- src/Hydrator/WebHook/Organization.php | 1159 +- src/Hydrator/WebHook/Package.php | 2013 +- src/Hydrator/WebHook/Project.php | 990 +- src/Hydrator/WebHook/ProjectCard.php | 4156 ++- src/Hydrator/WebHook/ProjectColumn.php | 720 +- src/Hydrator/WebHook/ProjectsV2.php | 934 +- src/Hydrator/WebHook/ProjectsV2Item.php | 2100 +- src/Hydrator/WebHook/PullRequest.php | 25488 +++++++++++++--- src/Hydrator/WebHook/PullRequestReview.php | 11410 ++++--- .../WebHook/PullRequestReviewComment.php | 9704 ++++-- .../WebHook/PullRequestReviewThread.php | 4015 ++- src/Hydrator/WebHook/RegistryPackage.php | 2381 +- src/Hydrator/WebHook/Release.php | 5224 +++- src/Hydrator/WebHook/Repository.php | 5721 +++- .../WebHook/RepositoryVulnerabilityAlert.php | 614 +- src/Hydrator/WebHook/SecretScanningAlert.php | 944 +- src/Hydrator/WebHook/SecurityAdvisory.php | 736 +- src/Hydrator/WebHook/Sponsorship.php | 5399 ++-- src/Hydrator/WebHook/Star.php | 206 +- src/Hydrator/WebHook/Team.php | 1644 +- src/Hydrator/WebHook/WorkflowJob.php | 1256 +- src/Hydrator/WebHook/WorkflowRun.php | 468 +- src/Hydrators.php | 1216 +- 43 files changed, 109698 insertions(+), 32085 deletions(-) diff --git a/composer.lock b/composer.lock index 5292be6f5b..3a3b147856 100644 --- a/composer.lock +++ b/composer.lock @@ -53,12 +53,12 @@ "source": { "type": "git", "url": "https://github.com/php-api-clients/openapi-client-generator.git", - "reference": "5286042fe22a8364eb9d4574829f18719bd0f6f1" + "reference": "b8fa502fee9cece62cb3614ce5925618579992b9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-api-clients/openapi-client-generator/zipball/5286042fe22a8364eb9d4574829f18719bd0f6f1", - "reference": "5286042fe22a8364eb9d4574829f18719bd0f6f1", + "url": "https://api.github.com/repos/php-api-clients/openapi-client-generator/zipball/b8fa502fee9cece62cb3614ce5925618579992b9", + "reference": "b8fa502fee9cece62cb3614ce5925618579992b9", "shasum": "" }, "require": { @@ -117,7 +117,7 @@ "issues": "https://github.com/php-api-clients/openapi-client-generator/issues", "source": "https://github.com/php-api-clients/openapi-client-generator/tree/introduce-representation-layer-for-reduced-complexity" }, - "time": "2023-02-23T07:43:57+00:00" + "time": "2023-02-25T17:52:03+00:00" }, { "name": "cebe/php-openapi", @@ -6978,16 +6978,16 @@ }, { "name": "phpstan/phpstan", - "version": "1.10.1", + "version": "1.10.3", "source": { "type": "git", "url": "https://github.com/phpstan/phpstan.git", - "reference": "1cd5fc530a8b68702f3733ad64294b2a39564198" + "reference": "5419375b5891add97dc74be71e6c1c34baaddf64" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan/zipball/1cd5fc530a8b68702f3733ad64294b2a39564198", - "reference": "1cd5fc530a8b68702f3733ad64294b2a39564198", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/5419375b5891add97dc74be71e6c1c34baaddf64", + "reference": "5419375b5891add97dc74be71e6c1c34baaddf64", "shasum": "" }, "require": { @@ -7017,7 +7017,7 @@ ], "support": { "issues": "https://github.com/phpstan/phpstan/issues", - "source": "https://github.com/phpstan/phpstan/tree/1.10.1" + "source": "https://github.com/phpstan/phpstan/tree/1.10.3" }, "funding": [ { @@ -7033,7 +7033,7 @@ "type": "tidelift" } ], - "time": "2023-02-21T21:57:23+00:00" + "time": "2023-02-25T14:47:13+00:00" }, { "name": "phpstan/phpstan-deprecation-rules", @@ -7136,16 +7136,16 @@ }, { "name": "phpstan/phpstan-phpunit", - "version": "1.3.7", + "version": "1.3.8", "source": { "type": "git", "url": "https://github.com/phpstan/phpstan-phpunit.git", - "reference": "7e43c8f77c7e419730ead01c8dc787c6bcbe0e15" + "reference": "4a19a3cb5b2d28b143f350e45e9f6e17e2cb81b5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan-phpunit/zipball/7e43c8f77c7e419730ead01c8dc787c6bcbe0e15", - "reference": "7e43c8f77c7e419730ead01c8dc787c6bcbe0e15", + "url": "https://api.github.com/repos/phpstan/phpstan-phpunit/zipball/4a19a3cb5b2d28b143f350e45e9f6e17e2cb81b5", + "reference": "4a19a3cb5b2d28b143f350e45e9f6e17e2cb81b5", "shasum": "" }, "require": { @@ -7182,9 +7182,9 @@ "description": "PHPUnit extensions and rules for PHPStan", "support": { "issues": "https://github.com/phpstan/phpstan-phpunit/issues", - "source": "https://github.com/phpstan/phpstan-phpunit/tree/1.3.7" + "source": "https://github.com/phpstan/phpstan-phpunit/tree/1.3.8" }, - "time": "2023-02-21T18:40:15+00:00" + "time": "2023-02-25T15:14:31+00:00" }, { "name": "phpstan/phpstan-strict-rules", @@ -7237,23 +7237,23 @@ }, { "name": "phpunit/php-code-coverage", - "version": "9.2.24", + "version": "9.2.25", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-code-coverage.git", - "reference": "2cf940ebc6355a9d430462811b5aaa308b174bed" + "reference": "0e2b40518197a8c0d4b08bc34dfff1c99c508954" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/2cf940ebc6355a9d430462811b5aaa308b174bed", - "reference": "2cf940ebc6355a9d430462811b5aaa308b174bed", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/0e2b40518197a8c0d4b08bc34dfff1c99c508954", + "reference": "0e2b40518197a8c0d4b08bc34dfff1c99c508954", "shasum": "" }, "require": { "ext-dom": "*", "ext-libxml": "*", "ext-xmlwriter": "*", - "nikic/php-parser": "^4.14", + "nikic/php-parser": "^4.15", "php": ">=7.3", "phpunit/php-file-iterator": "^3.0.3", "phpunit/php-text-template": "^2.0.2", @@ -7302,7 +7302,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues", - "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.24" + "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.25" }, "funding": [ { @@ -7310,7 +7310,7 @@ "type": "github" } ], - "time": "2023-01-26T08:26:55+00:00" + "time": "2023-02-25T05:32:00+00:00" }, { "name": "phpunit/php-file-iterator", @@ -11503,16 +11503,16 @@ }, { "name": "vimeo/psalm", - "version": "5.7.5", + "version": "5.7.7", "source": { "type": "git", "url": "https://github.com/vimeo/psalm.git", - "reference": "5390c212bab06ee230c8720c2e9c54b823db00c8" + "reference": "e028ba46ba0d7f9a78bc3201c251e137383e145f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/vimeo/psalm/zipball/5390c212bab06ee230c8720c2e9c54b823db00c8", - "reference": "5390c212bab06ee230c8720c2e9c54b823db00c8", + "url": "https://api.github.com/repos/vimeo/psalm/zipball/e028ba46ba0d7f9a78bc3201c251e137383e145f", + "reference": "e028ba46ba0d7f9a78bc3201c251e137383e145f", "shasum": "" }, "require": { @@ -11602,9 +11602,9 @@ ], "support": { "issues": "https://github.com/vimeo/psalm/issues", - "source": "https://github.com/vimeo/psalm/tree/5.7.5" + "source": "https://github.com/vimeo/psalm/tree/5.7.7" }, - "time": "2023-02-21T16:02:51+00:00" + "time": "2023-02-25T01:05:07+00:00" }, { "name": "webmozart/glob", diff --git a/src/Client.php b/src/Client.php index f1fa2fcdc0..6ffa4ac0e8 100644 --- a/src/Client.php +++ b/src/Client.php @@ -18,11 +18,11 @@ final class Client implements ClientInterface public function __construct(\ApiClients\Contracts\HTTP\Headers\AuthenticationInterface $authentication, \React\Http\Browser $browser) { $this->authentication = $authentication; - $this->browser = new \React\Http\Browser(); + $this->browser = $browser->withBase('https://api.github.com'); $this->requestSchemaValidator = new \League\OpenAPIValidation\Schema\SchemaValidator(\League\OpenAPIValidation\Schema\SchemaValidator::VALIDATE_AS_REQUEST); $this->responseSchemaValidator = new \League\OpenAPIValidation\Schema\SchemaValidator(\League\OpenAPIValidation\Schema\SchemaValidator::VALIDATE_AS_RESPONSE); - $this->hydrator = new Hydrators(); - $this->webHooks = new WebHooks($this->requestSchemaValidator, $this->hydrator); + $this->hydrators = new Hydrators(); + $this->webHooks = new WebHooks($this->requestSchemaValidator, $this->hydrators); } /** * @return ($call is \ApiClients\Client\Github\Operation\Meta\Root::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Root : ($call is \ApiClients\Client\Github\Operation\Apps\GetAuthenticated::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Integration : ($call is \ApiClients\Client\Github\Operation\Apps\CreateFromManifest::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Operation\Apps\CreateFromManifest\Response\Applicationjson\H201|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ValidationErrorSimple : ($call is \ApiClients\Client\Github\Operation\Apps\GetWebhookConfigForApp::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\WebhookConfig : ($call is \ApiClients\Client\Github\Operation\Apps\UpdateWebhookConfigForApp::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\WebhookConfig : ($call is \ApiClients\Client\Github\Operation\Apps\ListWebhookDeliveries::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\HookDeliveryItem|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ScimError|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Apps\GetWebhookDelivery::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\HookDelivery|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ScimError|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Apps\RedeliverWebhookDelivery::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\WebhookPackagePublished\Package\PackageVersion\NpmMetadata\Dependencies|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ScimError|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Apps\ListInstallations::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Installation : ($call is \ApiClients\Client\Github\Operation\Apps\GetInstallation::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Installation|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Apps\DeleteInstallation::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Apps\CreateInstallationAccessToken::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\InstallationToken|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Apps\SuspendInstallation::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Apps\UnsuspendInstallation::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Apps\DeleteAuthorization::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Apps\CheckToken::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Authorization|\ApiClients\Client\Github\Schema\ValidationError|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Apps\DeleteToken::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Apps\ResetToken::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Authorization|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Apps\ScopeToken::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Authorization|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Apps\GetBySlug::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Integration|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\CodesOfConduct\GetAllCodesOfConduct::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\CodeOfConduct : ($call is \ApiClients\Client\Github\Operation\CodesOfConduct\GetConductCode::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\CodeOfConduct|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Emojis\Get::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Operation\Emojis\Get\Response\Applicationjson\H200 : ($call is \ApiClients\Client\Github\Operation\Dependabot\ListAlertsForEnterprise::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\DependabotAlertWithRepository|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ValidationErrorSimple : ($call is \ApiClients\Client\Github\Operation\SecretScanning\ListAlertsForEnterprise::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\OrganizationSecretScanningAlert|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\Operation\SecretScanning\ListAlertsForEnterprise\Response\Applicationjson\H503 : ($call is \ApiClients\Client\Github\Operation\Activity\ListPublicEvents::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Event|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\Operation\SecretScanning\ListAlertsForEnterprise\Response\Applicationjson\H503 : ($call is \ApiClients\Client\Github\Operation\Activity\GetFeeds::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Feed : ($call is \ApiClients\Client\Github\Operation\Gists\List_::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BaseGist|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Gists\Create::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\GistSimple|\ApiClients\Client\Github\Schema\ValidationError|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Gists\ListPublic::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BaseGist|\ApiClients\Client\Github\Schema\ValidationError|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Gists\ListStarred::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BaseGist|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Gists\Get::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\GistSimple|\ApiClients\Client\Github\Schema\Operation\Gists\Get\Response\Applicationjson\H403|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Gists\Delete::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Gists\Update::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\GistSimple|\ApiClients\Client\Github\Schema\ValidationError|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Gists\ListComments::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\GistComment|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Gists\CreateComment::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\GistComment|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Gists\GetComment::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\GistComment|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\Operation\Gists\Get\Response\Applicationjson\H403 : ($call is \ApiClients\Client\Github\Operation\Gists\DeleteComment::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Gists\UpdateComment::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\GistComment|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Gists\ListCommits::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\GistCommit|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Gists\ListForks::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\GistSimple|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Gists\Fork::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BaseGist|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Gists\CheckIsStarred::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Operation\Gists\CheckIsStarred\Response\Applicationjson\H404|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Gists\Star::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Gists\Unstar::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Gists\GetRevision::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\GistSimple|\ApiClients\Client\Github\Schema\ValidationError|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Gitignore\GetAllTemplates::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\WebHookHeader\UserAgent : ($call is \ApiClients\Client\Github\Operation\Gitignore\GetTemplate::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\GitignoreTemplate : ($call is \ApiClients\Client\Github\Operation\Apps\ListReposAccessibleToInstallation::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Operation\Apps\ListReposAccessibleToInstallation\Response\Applicationjson\H200|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Apps\RevokeInstallationAccessToken::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Issues\List_::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Issue|\ApiClients\Client\Github\Schema\ValidationError|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Licenses\GetAllCommonlyUsed::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\LicenseSimple : ($call is \ApiClients\Client\Github\Operation\Licenses\Get::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\License|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Markdown\Render::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\WebHookHeader\UserAgent : ($call is \ApiClients\Client\Github\Operation\Markdown\RenderRaw::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\WebHookHeader\UserAgent : ($call is \ApiClients\Client\Github\Operation\Apps\GetSubscriptionPlanForAccount::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\MarketplacePurchase|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Apps\ListPlans::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\MarketplaceListingPlan|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Apps\ListAccountsForPlan::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\MarketplacePurchase|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Apps\GetSubscriptionPlanForAccountStubbed::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\MarketplacePurchase|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Apps\ListPlansStubbed::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\MarketplaceListingPlan|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Apps\ListAccountsForPlanStubbed::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\MarketplacePurchase|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Meta\Get::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\ApiOverview : ($call is \ApiClients\Client\Github\Operation\Activity\ListPublicEventsForRepoNetwork::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Event|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Activity\ListNotificationsForAuthenticatedUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Thread|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Activity\MarkNotificationsAsRead::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Operation\Activity\MarkNotificationsAsRead\Response\Applicationjson\H202|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Activity\GetThread::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Thread|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Activity\MarkThreadAsRead::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Activity\GetThreadSubscriptionForAuthenticatedUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\ThreadSubscription|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Activity\SetThreadSubscription::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\ThreadSubscription|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Activity\DeleteThreadSubscription::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Meta\GetOctocat::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\WebHookHeader\UserAgent : ($call is \ApiClients\Client\Github\Operation\Orgs\List_::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\OrganizationSimple : ($call is \ApiClients\Client\Github\Operation\Orgs\Get::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\OrganizationFull|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Orgs\Update::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\OrganizationFull|\ApiClients\Client\Github\Schema\Operation\Orgs\Update\Response\Applicationjson\H422|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Actions\GetActionsCacheUsageForOrg::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\ActionsCacheUsageOrgEnterprise : ($call is \ApiClients\Client\Github\Operation\Actions\GetActionsCacheUsageByRepoForOrg::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Operation\Actions\GetActionsCacheUsageByRepoForOrg\Response\Applicationjson\H200 : ($call is \ApiClients\Client\Github\Operation\Oidc\GetOidcCustomSubTemplateForOrg::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\OidcCustomSub : ($call is \ApiClients\Client\Github\Operation\Oidc\UpdateOidcCustomSubTemplateForOrg::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\EmptyObject|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Actions\GetGithubActionsPermissionsOrganization::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\ActionsOrganizationPermissions : ($call is \ApiClients\Client\Github\Operation\Actions\SetGithubActionsPermissionsOrganization::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Actions\ListSelectedRepositoriesEnabledGithubActionsOrganization::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Operation\Actions\ListSelectedRepositoriesEnabledGithubActionsOrganization\Response\Applicationjson\H200 : ($call is \ApiClients\Client\Github\Operation\Actions\SetSelectedRepositoriesEnabledGithubActionsOrganization::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Actions\EnableSelectedRepositoryGithubActionsOrganization::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Actions\DisableSelectedRepositoryGithubActionsOrganization::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Actions\GetAllowedActionsOrganization::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\SelectedActions : ($call is \ApiClients\Client\Github\Operation\Actions\SetAllowedActionsOrganization::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Actions\GetGithubActionsDefaultWorkflowPermissionsOrganization::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\ActionsGetDefaultWorkflowPermissions : ($call is \ApiClients\Client\Github\Operation\Actions\SetGithubActionsDefaultWorkflowPermissionsOrganization::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Actions\ListRequiredWorkflows::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Operation\Actions\ListRequiredWorkflows\Response\Applicationjson\H200 : ($call is \ApiClients\Client\Github\Operation\Actions\CreateRequiredWorkflow::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\RequiredWorkflow|\ApiClients\Client\Github\Schema\ValidationErrorSimple : ($call is \ApiClients\Client\Github\Operation\Actions\GetRequiredWorkflow::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\RequiredWorkflow : ($call is \ApiClients\Client\Github\Operation\Actions\DeleteRequiredWorkflow::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Actions\UpdateRequiredWorkflow::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\RequiredWorkflow|\ApiClients\Client\Github\Schema\ValidationErrorSimple : ($call is \ApiClients\Client\Github\Operation\Actions\ListSelectedRepositoriesRequiredWorkflow::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Operation\Actions\ListSelectedRepositoriesEnabledGithubActionsOrganization\Response\Applicationjson\H200 : ($call is \ApiClients\Client\Github\Operation\Actions\SetSelectedReposToRequiredWorkflow::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Actions\AddSelectedRepoToRequiredWorkflow::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Actions\RemoveSelectedRepoFromRequiredWorkflow::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Actions\ListSelfHostedRunnersForOrg::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Operation\Actions\ListSelfHostedRunnersForOrg\Response\Applicationjson\H200 : ($call is \ApiClients\Client\Github\Operation\Actions\ListRunnerApplicationsForOrg::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\RunnerApplication : ($call is \ApiClients\Client\Github\Operation\Actions\CreateRegistrationTokenForOrg::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\AuthenticationToken : ($call is \ApiClients\Client\Github\Operation\Actions\CreateRemoveTokenForOrg::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\AuthenticationToken : ($call is \ApiClients\Client\Github\Operation\Actions\GetSelfHostedRunnerForOrg::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Runner : ($call is \ApiClients\Client\Github\Operation\Actions\DeleteSelfHostedRunnerFromOrg::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Actions\ListLabelsForSelfHostedRunnerForOrg::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Operation\Actions\ListLabelsForSelfHostedRunnerForOrg\Response\Applicationjson\H200|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Actions\SetCustomLabelsForSelfHostedRunnerForOrg::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Operation\Actions\ListLabelsForSelfHostedRunnerForOrg\Response\Applicationjson\H200|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ValidationErrorSimple : ($call is \ApiClients\Client\Github\Operation\Actions\AddCustomLabelsToSelfHostedRunnerForOrg::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Operation\Actions\ListLabelsForSelfHostedRunnerForOrg\Response\Applicationjson\H200|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ValidationErrorSimple : ($call is \ApiClients\Client\Github\Operation\Actions\RemoveAllCustomLabelsFromSelfHostedRunnerForOrg::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Operation\Actions\ListLabelsForSelfHostedRunnerForOrg\Response\Applicationjson\H200|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Actions\RemoveCustomLabelFromSelfHostedRunnerForOrg::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Operation\Actions\ListLabelsForSelfHostedRunnerForOrg\Response\Applicationjson\H200|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ValidationErrorSimple : ($call is \ApiClients\Client\Github\Operation\Actions\ListOrgSecrets::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Operation\Actions\ListOrgSecrets\Response\Applicationjson\H200 : ($call is \ApiClients\Client\Github\Operation\Actions\GetOrgPublicKey::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\ActionsPublicKey : ($call is \ApiClients\Client\Github\Operation\Actions\GetOrgSecret::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\OrganizationActionsSecret : ($call is \ApiClients\Client\Github\Operation\Actions\CreateOrUpdateOrgSecret::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\EmptyObject : ($call is \ApiClients\Client\Github\Operation\Actions\DeleteOrgSecret::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Actions\ListSelectedReposForOrgSecret::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Operation\Actions\ListSelectedReposForOrgSecret\Response\Applicationjson\H200 : ($call is \ApiClients\Client\Github\Operation\Actions\SetSelectedReposForOrgSecret::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Actions\AddSelectedRepoToOrgSecret::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Actions\RemoveSelectedRepoFromOrgSecret::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Actions\ListOrgVariables::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Operation\Actions\ListOrgVariables\Response\Applicationjson\H200 : ($call is \ApiClients\Client\Github\Operation\Actions\CreateOrgVariable::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\EmptyObject : ($call is \ApiClients\Client\Github\Operation\Actions\GetOrgVariable::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\OrganizationActionsVariable : ($call is \ApiClients\Client\Github\Operation\Actions\DeleteOrgVariable::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Actions\UpdateOrgVariable::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Actions\ListSelectedReposForOrgVariable::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Operation\Actions\ListSelectedReposForOrgSecret\Response\Applicationjson\H200 : ($call is \ApiClients\Client\Github\Operation\Actions\SetSelectedReposForOrgVariable::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Actions\AddSelectedRepoToOrgVariable::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Actions\RemoveSelectedRepoFromOrgVariable::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Orgs\ListBlockedUsers::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\SimpleUser : ($call is \ApiClients\Client\Github\Operation\Orgs\CheckBlockedUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Orgs\BlockUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Orgs\UnblockUser::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\CodeScanning\ListAlertsForOrg::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\CodeScanningOrganizationAlertItems|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\Operation\SecretScanning\ListAlertsForEnterprise\Response\Applicationjson\H503 : ($call is \ApiClients\Client\Github\Operation\Codespaces\ListInOrganization::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Operation\Codespaces\ListInOrganization\Response\Applicationjson\H200|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Codespaces\SetCodespacesBilling::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Codespaces\SetCodespacesBillingUsers::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Codespaces\DeleteCodespacesBillingUsers::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Codespaces\ListOrgSecrets::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Operation\Codespaces\ListOrgSecrets\Response\Applicationjson\H200 : ($call is \ApiClients\Client\Github\Operation\Codespaces\GetOrgPublicKey::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\CodespacesPublicKey : ($call is \ApiClients\Client\Github\Operation\Codespaces\GetOrgSecret::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\CodespacesOrgSecret : ($call is \ApiClients\Client\Github\Operation\Codespaces\CreateOrUpdateOrgSecret::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\EmptyObject|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Codespaces\DeleteOrgSecret::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Codespaces\ListSelectedReposForOrgSecret::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Operation\Actions\ListSelectedReposForOrgSecret\Response\Applicationjson\H200|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Codespaces\SetSelectedReposForOrgSecret::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Codespaces\AddSelectedRepoToOrgSecret::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Codespaces\RemoveSelectedRepoFromOrgSecret::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Dependabot\ListAlertsForOrg::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\DependabotAlertWithRepository|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ScimError|\ApiClients\Client\Github\Schema\ValidationErrorSimple : ($call is \ApiClients\Client\Github\Operation\Dependabot\ListOrgSecrets::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Operation\Dependabot\ListOrgSecrets\Response\Applicationjson\H200 : ($call is \ApiClients\Client\Github\Operation\Dependabot\GetOrgPublicKey::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\DependabotPublicKey : ($call is \ApiClients\Client\Github\Operation\Dependabot\GetOrgSecret::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\OrganizationDependabotSecret : ($call is \ApiClients\Client\Github\Operation\Dependabot\CreateOrUpdateOrgSecret::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\EmptyObject : ($call is \ApiClients\Client\Github\Operation\Dependabot\DeleteOrgSecret::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Dependabot\ListSelectedReposForOrgSecret::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Operation\Actions\ListSelectedReposForOrgSecret\Response\Applicationjson\H200 : ($call is \ApiClients\Client\Github\Operation\Dependabot\SetSelectedReposForOrgSecret::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Dependabot\AddSelectedRepoToOrgSecret::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Dependabot\RemoveSelectedRepoFromOrgSecret::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Activity\ListPublicOrgEvents::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Event : ($call is \ApiClients\Client\Github\Operation\Orgs\ListFailedInvitations::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\OrganizationInvitation|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Orgs\ListWebhooks::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\OrgHook|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Orgs\CreateWebhook::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\OrgHook|\ApiClients\Client\Github\Schema\ValidationError|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Orgs\GetWebhook::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\OrgHook|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Orgs\DeleteWebhook::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Orgs\UpdateWebhook::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\OrgHook|\ApiClients\Client\Github\Schema\ValidationError|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Orgs\GetWebhookConfigForOrg::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\WebhookConfig : ($call is \ApiClients\Client\Github\Operation\Orgs\UpdateWebhookConfigForOrg::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\WebhookConfig : ($call is \ApiClients\Client\Github\Operation\Orgs\ListWebhookDeliveries::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\HookDeliveryItem|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ScimError|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Orgs\GetWebhookDelivery::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\HookDelivery|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ScimError|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Orgs\RedeliverWebhookDelivery::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\WebhookPackagePublished\Package\PackageVersion\NpmMetadata\Dependencies|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ScimError|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Orgs\PingWebhook::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Apps\GetOrgInstallation::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Installation : ($call is \ApiClients\Client\Github\Operation\Orgs\ListAppInstallations::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Operation\Orgs\ListAppInstallations\Response\Applicationjson\H200 : ($call is \ApiClients\Client\Github\Operation\Interactions\GetRestrictionsForOrg::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Operation\Interactions\GetRestrictionsForOrg\Response\Applicationjson\H200 : ($call is \ApiClients\Client\Github\Operation\Interactions\SetRestrictionsForOrg::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\InteractionLimitResponse|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Interactions\RemoveRestrictionsForOrg::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Orgs\ListPendingInvitations::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\OrganizationInvitation|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Orgs\CreateInvitation::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\OrganizationInvitation|\ApiClients\Client\Github\Schema\ValidationError|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Orgs\CancelInvitation::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\ValidationError|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Orgs\ListInvitationTeams::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Team|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Issues\ListForOrg::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Issue|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Orgs\ListMembers::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\SimpleUser|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Orgs\CheckMembershipForUser::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Orgs\RemoveMember::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Codespaces\GetCodespacesForUserInOrg::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Operation\Codespaces\ListInOrganization\Response\Applicationjson\H200|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Codespaces\DeleteFromOrganization::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\WebhookPackagePublished\Package\PackageVersion\NpmMetadata\Dependencies|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Codespaces\StopInOrganization::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Codespace|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Orgs\GetMembershipForUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\OrgMembership|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Orgs\SetMembershipForUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\OrgMembership|\ApiClients\Client\Github\Schema\ValidationError|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Orgs\RemoveMembershipForUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Migrations\ListForOrg::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Migration : ($call is \ApiClients\Client\Github\Operation\Migrations\StartForOrg::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Migration|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Migrations\GetStatusForOrg::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Migration|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Migrations\DownloadArchiveForOrg::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Migrations\DeleteArchiveForOrg::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Migrations\UnlockRepoForOrg::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Migrations\ListReposForOrg::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\MinimalRepository|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Orgs\ListOutsideCollaborators::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\SimpleUser : ($call is \ApiClients\Client\Github\Operation\Orgs\ConvertMemberToOutsideCollaborator::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Operation\Gists\CheckIsStarred\Response\Applicationjson\H404|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Orgs\RemoveOutsideCollaborator::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Operation\Orgs\RemoveOutsideCollaborator\Response\Applicationjson\H422 : ($call is \ApiClients\Client\Github\Operation\Packages\ListPackagesForOrganization::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Package|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Packages\GetPackageForOrganization::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Package : ($call is \ApiClients\Client\Github\Operation\Packages\DeletePackageForOrg::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Packages\RestorePackageForOrg::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Packages\GetAllPackageVersionsForPackageOwnedByOrg::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\PackageVersion|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Packages\GetPackageVersionForOrganization::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\PackageVersion : ($call is \ApiClients\Client\Github\Operation\Packages\DeletePackageVersionForOrg::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Packages\RestorePackageVersionForOrg::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Projects\ListForOrg::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Project|\ApiClients\Client\Github\Schema\ValidationErrorSimple : ($call is \ApiClients\Client\Github\Operation\Projects\CreateForOrg::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Project|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ValidationErrorSimple : ($call is \ApiClients\Client\Github\Operation\Orgs\ListPublicMembers::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\SimpleUser : ($call is \ApiClients\Client\Github\Operation\Orgs\CheckPublicMembershipForUser::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Orgs\SetPublicMembershipForAuthenticatedUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Orgs\RemovePublicMembershipForAuthenticatedUser::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Repos\ListForOrg::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\MinimalRepository : ($call is \ApiClients\Client\Github\Operation\Repos\CreateInOrg::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Repository|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\SecretScanning\ListAlertsForOrg::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\OrganizationSecretScanningAlert|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\Operation\SecretScanning\ListAlertsForEnterprise\Response\Applicationjson\H503 : ($call is \ApiClients\Client\Github\Operation\Orgs\ListSecurityManagerTeams::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\TeamSimple : ($call is \ApiClients\Client\Github\Operation\Orgs\AddSecurityManagerTeam::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Orgs\RemoveSecurityManagerTeam::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Billing\GetGithubActionsBillingOrg::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\ActionsBillingUsage : ($call is \ApiClients\Client\Github\Operation\Billing\GetGithubPackagesBillingOrg::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\PackagesBillingUsage : ($call is \ApiClients\Client\Github\Operation\Billing\GetSharedStorageBillingOrg::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\CombinedBillingUsage : ($call is \ApiClients\Client\Github\Operation\Teams\List_::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Team|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Teams\Create::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\TeamFull|\ApiClients\Client\Github\Schema\ValidationError|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Teams\GetByName::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\TeamFull|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Teams\DeleteInOrg::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Teams\UpdateInOrg::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\TeamFull|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Teams\ListDiscussionsInOrg::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\TeamDiscussion : ($call is \ApiClients\Client\Github\Operation\Teams\CreateDiscussionInOrg::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\TeamDiscussion : ($call is \ApiClients\Client\Github\Operation\Teams\GetDiscussionInOrg::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\TeamDiscussion : ($call is \ApiClients\Client\Github\Operation\Teams\DeleteDiscussionInOrg::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Teams\UpdateDiscussionInOrg::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\TeamDiscussion : ($call is \ApiClients\Client\Github\Operation\Teams\ListDiscussionCommentsInOrg::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\TeamDiscussionComment : ($call is \ApiClients\Client\Github\Operation\Teams\CreateDiscussionCommentInOrg::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\TeamDiscussionComment : ($call is \ApiClients\Client\Github\Operation\Teams\GetDiscussionCommentInOrg::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\TeamDiscussionComment : ($call is \ApiClients\Client\Github\Operation\Teams\DeleteDiscussionCommentInOrg::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Teams\UpdateDiscussionCommentInOrg::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\TeamDiscussionComment : ($call is \ApiClients\Client\Github\Operation\Reactions\ListForTeamDiscussionCommentInOrg::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Reaction : ($call is \ApiClients\Client\Github\Operation\Reactions\CreateForTeamDiscussionCommentInOrg::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Reaction : ($call is \ApiClients\Client\Github\Operation\Reactions\DeleteForTeamDiscussionComment::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Reactions\ListForTeamDiscussionInOrg::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Reaction : ($call is \ApiClients\Client\Github\Operation\Reactions\CreateForTeamDiscussionInOrg::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Reaction : ($call is \ApiClients\Client\Github\Operation\Reactions\DeleteForTeamDiscussion::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Teams\ListPendingInvitationsInOrg::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\OrganizationInvitation : ($call is \ApiClients\Client\Github\Operation\Teams\ListMembersInOrg::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\SimpleUser : ($call is \ApiClients\Client\Github\Operation\Teams\GetMembershipForUserInOrg::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\TeamMembership : ($call is \ApiClients\Client\Github\Operation\Teams\AddOrUpdateMembershipForUserInOrg::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\TeamMembership : ($call is \ApiClients\Client\Github\Operation\Teams\RemoveMembershipForUserInOrg::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Teams\ListProjectsInOrg::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\TeamProject : ($call is \ApiClients\Client\Github\Operation\Teams\CheckPermissionsForProjectInOrg::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\TeamProject : ($call is \ApiClients\Client\Github\Operation\Teams\AddOrUpdateProjectPermissionsInOrg::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Operation\Orgs\RemoveOutsideCollaborator\Response\Applicationjson\H422 : ($call is \ApiClients\Client\Github\Operation\Teams\RemoveProjectInOrg::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Teams\ListReposInOrg::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\MinimalRepository : ($call is \ApiClients\Client\Github\Operation\Teams\CheckPermissionsForRepoInOrg::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\TeamRepository : ($call is \ApiClients\Client\Github\Operation\Teams\AddOrUpdateRepoPermissionsInOrg::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Teams\RemoveRepoInOrg::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Teams\ListChildInOrg::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Team : ($call is \ApiClients\Client\Github\Operation\Orgs\EnableOrDisableSecurityProductOnAllOrgRepos::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Projects\GetCard::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\ProjectCard|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Projects\DeleteCard::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Operation\Projects\DeleteCard\Response\Applicationjson\H403|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Projects\UpdateCard::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\ProjectCard|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ValidationErrorSimple : ($call is \ApiClients\Client\Github\Operation\Projects\MoveCard::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Operation\Gists\CheckIsStarred\Response\Applicationjson\H404|\ApiClients\Client\Github\Schema\Operation\Projects\MoveCard\Response\Applicationjson\H403|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\Operation\Projects\MoveCard\Response\Applicationjson\H503|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Projects\GetColumn::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\ProjectColumn|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Projects\DeleteColumn::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Projects\UpdateColumn::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\ProjectColumn|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Projects\ListCards::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\ProjectCard|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Projects\CreateCard::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\ProjectCard|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\Operation\Orgs\Update\Response\Applicationjson\H422|\ApiClients\Client\Github\Schema\Operation\Projects\MoveCard\Response\Applicationjson\H503 : ($call is \ApiClients\Client\Github\Operation\Projects\MoveColumn::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Operation\Gists\CheckIsStarred\Response\Applicationjson\H404|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ValidationErrorSimple : ($call is \ApiClients\Client\Github\Operation\Projects\Get::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Project|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Projects\Delete::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Operation\Projects\DeleteCard\Response\Applicationjson\H403|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Projects\Update::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Project|\ApiClients\Client\Github\Schema\Operation\Projects\DeleteCard\Response\Applicationjson\H403|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ValidationErrorSimple : ($call is \ApiClients\Client\Github\Operation\Projects\ListCollaborators::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\SimpleUser|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Projects\AddCollaborator::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Projects\RemoveCollaborator::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Projects\GetPermissionForUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\ProjectCollaboratorPermission|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Projects\ListColumns::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\ProjectColumn|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Projects\CreateColumn::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\ProjectColumn|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ValidationErrorSimple : ($call is \ApiClients\Client\Github\Operation\RateLimit\Get::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\RateLimitOverview|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Actions\ListRepoRequiredWorkflows::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Operation\Actions\ListRepoRequiredWorkflows\Response\Applicationjson\H200|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Actions\GetRepoRequiredWorkflow::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\RepoRequiredWorkflow|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Actions\GetRepoRequiredWorkflowUsage::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\WorkflowUsage|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Repos\Get::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\FullRepository|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Repos\Delete::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Operation\Orgs\RemoveOutsideCollaborator\Response\Applicationjson\H422|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Repos\Update::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\FullRepository|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Actions\ListArtifactsForRepo::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Operation\Actions\ListArtifactsForRepo\Response\Applicationjson\H200 : ($call is \ApiClients\Client\Github\Operation\Actions\GetArtifact::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Artifact : ($call is \ApiClients\Client\Github\Operation\Actions\DeleteArtifact::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Actions\DownloadArtifact::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Actions\GetActionsCacheUsage::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\ActionsCacheUsageByRepository : ($call is \ApiClients\Client\Github\Operation\Actions\GetActionsCacheList::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\ActionsCacheList : ($call is \ApiClients\Client\Github\Operation\Actions\DeleteActionsCacheByKey::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\ActionsCacheList : ($call is \ApiClients\Client\Github\Operation\Actions\DeleteActionsCacheById::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Actions\GetJobForWorkflowRun::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Job : ($call is \ApiClients\Client\Github\Operation\Actions\DownloadJobLogsForWorkflowRun::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Actions\ReRunJobForWorkflowRun::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\EmptyObject|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Actions\GetCustomOidcSubClaimForRepo::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\OidcCustomSubRepo|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ScimError : ($call is \ApiClients\Client\Github\Operation\Actions\SetCustomOidcSubClaimForRepo::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\EmptyObject|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ScimError|\ApiClients\Client\Github\Schema\ValidationErrorSimple : ($call is \ApiClients\Client\Github\Operation\Actions\GetGithubActionsPermissionsRepository::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\ActionsRepositoryPermissions : ($call is \ApiClients\Client\Github\Operation\Actions\SetGithubActionsPermissionsRepository::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Actions\GetWorkflowAccessToRepository::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\ActionsWorkflowAccessToRepository : ($call is \ApiClients\Client\Github\Operation\Actions\SetWorkflowAccessToRepository::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Actions\GetAllowedActionsRepository::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\SelectedActions : ($call is \ApiClients\Client\Github\Operation\Actions\SetAllowedActionsRepository::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Actions\GetGithubActionsDefaultWorkflowPermissionsRepository::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\ActionsGetDefaultWorkflowPermissions : ($call is \ApiClients\Client\Github\Operation\Actions\SetGithubActionsDefaultWorkflowPermissionsRepository::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Actions\ListRequiredWorkflowRuns::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Operation\Actions\ListRequiredWorkflowRuns\Response\Applicationjson\H200 : ($call is \ApiClients\Client\Github\Operation\Actions\ListSelfHostedRunnersForRepo::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Operation\Actions\ListSelfHostedRunnersForOrg\Response\Applicationjson\H200 : ($call is \ApiClients\Client\Github\Operation\Actions\ListRunnerApplicationsForRepo::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\RunnerApplication : ($call is \ApiClients\Client\Github\Operation\Actions\CreateRegistrationTokenForRepo::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\AuthenticationToken : ($call is \ApiClients\Client\Github\Operation\Actions\CreateRemoveTokenForRepo::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\AuthenticationToken : ($call is \ApiClients\Client\Github\Operation\Actions\GetSelfHostedRunnerForRepo::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Runner : ($call is \ApiClients\Client\Github\Operation\Actions\DeleteSelfHostedRunnerFromRepo::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Actions\ListLabelsForSelfHostedRunnerForRepo::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Operation\Actions\ListLabelsForSelfHostedRunnerForOrg\Response\Applicationjson\H200|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Actions\SetCustomLabelsForSelfHostedRunnerForRepo::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Operation\Actions\ListLabelsForSelfHostedRunnerForOrg\Response\Applicationjson\H200|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ValidationErrorSimple : ($call is \ApiClients\Client\Github\Operation\Actions\AddCustomLabelsToSelfHostedRunnerForRepo::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Operation\Actions\ListLabelsForSelfHostedRunnerForOrg\Response\Applicationjson\H200|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ValidationErrorSimple : ($call is \ApiClients\Client\Github\Operation\Actions\RemoveAllCustomLabelsFromSelfHostedRunnerForRepo::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Operation\Actions\ListLabelsForSelfHostedRunnerForOrg\Response\Applicationjson\H200|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Actions\RemoveCustomLabelFromSelfHostedRunnerForRepo::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Operation\Actions\ListLabelsForSelfHostedRunnerForOrg\Response\Applicationjson\H200|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ValidationErrorSimple : ($call is \ApiClients\Client\Github\Operation\Actions\ListWorkflowRunsForRepo::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Operation\Actions\ListRequiredWorkflowRuns\Response\Applicationjson\H200 : ($call is \ApiClients\Client\Github\Operation\Actions\GetWorkflowRun::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\WorkflowRun : ($call is \ApiClients\Client\Github\Operation\Actions\DeleteWorkflowRun::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Actions\GetReviewsForRun::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\EnvironmentApprovals : ($call is \ApiClients\Client\Github\Operation\Actions\ApproveWorkflowRun::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\EmptyObject|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Actions\ListWorkflowRunArtifacts::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Operation\Actions\ListArtifactsForRepo\Response\Applicationjson\H200 : ($call is \ApiClients\Client\Github\Operation\Actions\GetWorkflowRunAttempt::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\WorkflowRun : ($call is \ApiClients\Client\Github\Operation\Actions\ListJobsForWorkflowRunAttempt::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Operation\Actions\ListJobsForWorkflowRunAttempt\Response\Applicationjson\H200|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Actions\DownloadWorkflowRunAttemptLogs::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Actions\CancelWorkflowRun::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\EmptyObject|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Actions\ListJobsForWorkflowRun::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Operation\Actions\ListJobsForWorkflowRunAttempt\Response\Applicationjson\H200 : ($call is \ApiClients\Client\Github\Operation\Actions\DownloadWorkflowRunLogs::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Actions\DeleteWorkflowRunLogs::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Actions\GetPendingDeploymentsForRun::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\PendingDeployment : ($call is \ApiClients\Client\Github\Operation\Actions\ReviewPendingDeploymentsForRun::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Deployment : ($call is \ApiClients\Client\Github\Operation\Actions\ReRunWorkflow::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\EmptyObject : ($call is \ApiClients\Client\Github\Operation\Actions\ReRunWorkflowFailedJobs::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\EmptyObject : ($call is \ApiClients\Client\Github\Operation\Actions\GetWorkflowRunUsage::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\WorkflowRunUsage : ($call is \ApiClients\Client\Github\Operation\Actions\ListRepoSecrets::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Operation\Actions\ListRepoSecrets\Response\Applicationjson\H200 : ($call is \ApiClients\Client\Github\Operation\Actions\GetRepoPublicKey::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\ActionsPublicKey : ($call is \ApiClients\Client\Github\Operation\Actions\GetRepoSecret::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\ActionsSecret : ($call is \ApiClients\Client\Github\Operation\Actions\CreateOrUpdateRepoSecret::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\EmptyObject : ($call is \ApiClients\Client\Github\Operation\Actions\DeleteRepoSecret::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Actions\ListRepoVariables::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Operation\Actions\ListRepoVariables\Response\Applicationjson\H200 : ($call is \ApiClients\Client\Github\Operation\Actions\CreateRepoVariable::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\EmptyObject : ($call is \ApiClients\Client\Github\Operation\Actions\GetRepoVariable::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\ActionsVariable : ($call is \ApiClients\Client\Github\Operation\Actions\DeleteRepoVariable::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Actions\UpdateRepoVariable::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Actions\ListRepoWorkflows::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Operation\Actions\ListRepoWorkflows\Response\Applicationjson\H200 : ($call is \ApiClients\Client\Github\Operation\Actions\GetWorkflow::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Workflow : ($call is \ApiClients\Client\Github\Operation\Actions\DisableWorkflow::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Actions\CreateWorkflowDispatch::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Actions\EnableWorkflow::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Actions\ListWorkflowRuns::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Operation\Actions\ListRequiredWorkflowRuns\Response\Applicationjson\H200 : ($call is \ApiClients\Client\Github\Operation\Actions\GetWorkflowUsage::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\WorkflowUsage : ($call is \ApiClients\Client\Github\Operation\Issues\ListAssignees::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\SimpleUser|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Issues\CheckUserCanBeAssigned::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Repos\ListAutolinks::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Autolink : ($call is \ApiClients\Client\Github\Operation\Repos\CreateAutolink::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Autolink|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Repos\GetAutolink::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Autolink|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Repos\DeleteAutolink::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Repos\EnableAutomatedSecurityFixes::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Repos\DisableAutomatedSecurityFixes::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Repos\ListBranches::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\ShortBranch|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Repos\GetBranch::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BranchWithProtection|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Repos\GetBranchProtection::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BranchProtection|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Repos\UpdateBranchProtection::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\ProtectedBranch|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ValidationErrorSimple : ($call is \ApiClients\Client\Github\Operation\Repos\DeleteBranchProtection::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Repos\GetAdminBranchProtection::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\ProtectedBranchAdminEnforced : ($call is \ApiClients\Client\Github\Operation\Repos\SetAdminBranchProtection::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\ProtectedBranchAdminEnforced : ($call is \ApiClients\Client\Github\Operation\Repos\DeleteAdminBranchProtection::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Repos\GetPullRequestReviewProtection::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\ProtectedBranchPullRequestReview : ($call is \ApiClients\Client\Github\Operation\Repos\DeletePullRequestReviewProtection::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Repos\UpdatePullRequestReviewProtection::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\ProtectedBranchPullRequestReview|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Repos\GetCommitSignatureProtection::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\ProtectedBranchAdminEnforced|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Repos\CreateCommitSignatureProtection::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\ProtectedBranchAdminEnforced|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Repos\DeleteCommitSignatureProtection::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Repos\GetStatusChecksProtection::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\StatusCheckPolicy|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Repos\RemoveStatusCheckProtection::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Repos\UpdateStatusCheckProtection::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\StatusCheckPolicy|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Repos\GetAllStatusCheckContexts::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\WebHookHeader\UserAgent|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Repos\SetStatusCheckContexts::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\WebHookHeader\UserAgent|\ApiClients\Client\Github\Schema\ValidationError|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Repos\AddStatusCheckContexts::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\WebHookHeader\UserAgent|\ApiClients\Client\Github\Schema\ValidationError|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Repos\RemoveStatusCheckContexts::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\WebHookHeader\UserAgent|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Repos\GetAccessRestrictions::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BranchRestrictionPolicy|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Repos\DeleteAccessRestrictions::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Repos\GetAppsWithAccessToProtectedBranch::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Integration|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Repos\SetAppAccessRestrictions::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Integration|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Repos\AddAppAccessRestrictions::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Integration|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Repos\RemoveAppAccessRestrictions::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Integration|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Repos\GetTeamsWithAccessToProtectedBranch::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Team|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Repos\SetTeamAccessRestrictions::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Team|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Repos\AddTeamAccessRestrictions::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Team|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Repos\RemoveTeamAccessRestrictions::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Team|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Repos\GetUsersWithAccessToProtectedBranch::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\SimpleUser|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Repos\SetUserAccessRestrictions::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\SimpleUser|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Repos\AddUserAccessRestrictions::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\SimpleUser|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Repos\RemoveUserAccessRestrictions::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\SimpleUser|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Repos\RenameBranch::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BranchWithProtection|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Checks\Create::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\CheckRun : ($call is \ApiClients\Client\Github\Operation\Checks\Get::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\CheckRun : ($call is \ApiClients\Client\Github\Operation\Checks\Update::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\CheckRun : ($call is \ApiClients\Client\Github\Operation\Checks\ListAnnotations::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\CheckAnnotation : ($call is \ApiClients\Client\Github\Operation\Checks\RerequestRun::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\EmptyObject|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Checks\CreateSuite::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\CheckSuite : ($call is \ApiClients\Client\Github\Operation\Checks\SetSuitesPreferences::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\CheckSuitePreference : ($call is \ApiClients\Client\Github\Operation\Checks\GetSuite::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\CheckSuite : ($call is \ApiClients\Client\Github\Operation\Checks\ListForSuite::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Operation\Checks\ListForSuite\Response\Applicationjson\H200 : ($call is \ApiClients\Client\Github\Operation\Checks\RerequestSuite::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\EmptyObject : ($call is \ApiClients\Client\Github\Operation\CodeScanning\ListAlertsForRepo::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\CodeScanningAlertItems|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\Operation\SecretScanning\ListAlertsForEnterprise\Response\Applicationjson\H503 : ($call is \ApiClients\Client\Github\Operation\CodeScanning\GetAlert::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\CodeScanningAlert|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\Operation\SecretScanning\ListAlertsForEnterprise\Response\Applicationjson\H503 : ($call is \ApiClients\Client\Github\Operation\CodeScanning\UpdateAlert::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\CodeScanningAlert|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\Operation\SecretScanning\ListAlertsForEnterprise\Response\Applicationjson\H503 : ($call is \ApiClients\Client\Github\Operation\CodeScanning\ListAlertInstances::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\CodeScanningAlertInstance|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\Operation\SecretScanning\ListAlertsForEnterprise\Response\Applicationjson\H503 : ($call is \ApiClients\Client\Github\Operation\CodeScanning\ListRecentAnalyses::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\CodeScanningAnalysis|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\Operation\SecretScanning\ListAlertsForEnterprise\Response\Applicationjson\H503 : ($call is \ApiClients\Client\Github\Operation\CodeScanning\GetAnalysis::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\CodeScanningAnalysis|\ApiClients\Client\Github\Schema\Operation\CodeScanning\GetAnalysis\Response\ApplicationjsonPlusSarif\H200|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\Operation\SecretScanning\ListAlertsForEnterprise\Response\Applicationjson\H503 : ($call is \ApiClients\Client\Github\Operation\CodeScanning\DeleteAnalysis::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\CodeScanningAnalysisDeletion|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ScimError|\ApiClients\Client\Github\Schema\Operation\SecretScanning\ListAlertsForEnterprise\Response\Applicationjson\H503 : ($call is \ApiClients\Client\Github\Operation\CodeScanning\ListCodeqlDatabases::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\CodeScanningCodeqlDatabase|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\Operation\SecretScanning\ListAlertsForEnterprise\Response\Applicationjson\H503 : ($call is \ApiClients\Client\Github\Operation\CodeScanning\GetCodeqlDatabase::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\CodeScanningCodeqlDatabase|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\Operation\SecretScanning\ListAlertsForEnterprise\Response\Applicationjson\H503 : ($call is \ApiClients\Client\Github\Operation\CodeScanning\UploadSarif::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\CodeScanningSarifsReceipt|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\Operation\SecretScanning\ListAlertsForEnterprise\Response\Applicationjson\H503 : ($call is \ApiClients\Client\Github\Operation\CodeScanning\GetSarif::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\CodeScanningSarifsStatus|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\Operation\SecretScanning\ListAlertsForEnterprise\Response\Applicationjson\H503 : ($call is \ApiClients\Client\Github\Operation\Repos\CodeownersErrors::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\CodeownersErrors : ($call is \ApiClients\Client\Github\Operation\Codespaces\ListInRepositoryForAuthenticatedUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Operation\Codespaces\ListInOrganization\Response\Applicationjson\H200|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Codespaces\CreateWithRepoForAuthenticatedUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Codespace|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ScimError|\ApiClients\Client\Github\Schema\Operation\SecretScanning\ListAlertsForEnterprise\Response\Applicationjson\H503 : ($call is \ApiClients\Client\Github\Operation\Codespaces\ListDevcontainersInRepositoryForAuthenticatedUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Operation\Codespaces\ListDevcontainersInRepositoryForAuthenticatedUser\Response\Applicationjson\H200|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ScimError : ($call is \ApiClients\Client\Github\Operation\Codespaces\RepoMachinesForAuthenticatedUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Operation\Codespaces\RepoMachinesForAuthenticatedUser\Response\Applicationjson\H200|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Codespaces\PreFlightWithRepoForAuthenticatedUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Operation\Codespaces\PreFlightWithRepoForAuthenticatedUser\Response\Applicationjson\H200|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Codespaces\ListRepoSecrets::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Operation\Codespaces\ListRepoSecrets\Response\Applicationjson\H200 : ($call is \ApiClients\Client\Github\Operation\Codespaces\GetRepoPublicKey::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\CodespacesPublicKey : ($call is \ApiClients\Client\Github\Operation\Codespaces\GetRepoSecret::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\RepoCodespacesSecret : ($call is \ApiClients\Client\Github\Operation\Codespaces\CreateOrUpdateRepoSecret::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\EmptyObject : ($call is \ApiClients\Client\Github\Operation\Codespaces\DeleteRepoSecret::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Repos\ListCollaborators::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Collaborator|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Repos\CheckCollaborator::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Repos\AddCollaborator::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\RepositoryInvitation|\ApiClients\Client\Github\Schema\ValidationError|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Repos\RemoveCollaborator::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Repos\GetCollaboratorPermissionLevel::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\RepositoryCollaboratorPermission|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Repos\ListCommitCommentsForRepo::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\CommitComment : ($call is \ApiClients\Client\Github\Operation\Repos\GetCommitComment::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\CommitComment|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Repos\DeleteCommitComment::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Repos\UpdateCommitComment::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\CommitComment|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Reactions\ListForCommitComment::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Reaction|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Reactions\CreateForCommitComment::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Reaction|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Reactions\DeleteForCommitComment::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Repos\ListCommits::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Commit|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ScimError : ($call is \ApiClients\Client\Github\Operation\Repos\ListBranchesForHeadCommit::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BranchShort|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Repos\ListCommentsForCommit::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\CommitComment : ($call is \ApiClients\Client\Github\Operation\Repos\CreateCommitComment::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\CommitComment|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Repos\ListPullRequestsAssociatedWithCommit::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\PullRequestSimple : ($call is \ApiClients\Client\Github\Operation\Repos\GetCommit::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Commit|\ApiClients\Client\Github\Schema\ValidationError|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\Operation\SecretScanning\ListAlertsForEnterprise\Response\Applicationjson\H503 : ($call is \ApiClients\Client\Github\Operation\Checks\ListForRef::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Operation\Checks\ListForSuite\Response\Applicationjson\H200 : ($call is \ApiClients\Client\Github\Operation\Checks\ListSuitesForRef::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Operation\Checks\ListSuitesForRef\Response\Applicationjson\H200 : ($call is \ApiClients\Client\Github\Operation\Repos\GetCombinedStatusForRef::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\CombinedCommitStatus|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Repos\ListCommitStatusesForRef::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Status|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Repos\GetCommunityProfileMetrics::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\CommunityProfile : ($call is \ApiClients\Client\Github\Operation\Repos\CompareCommits::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\CommitComparison|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\Operation\SecretScanning\ListAlertsForEnterprise\Response\Applicationjson\H503 : ($call is \ApiClients\Client\Github\Operation\Repos\GetContent::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\ContentTree|\ApiClients\Client\Github\Schema\Operation\Repos\GetContent\Response\Applicationjson\H200|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Repos\CreateOrUpdateFileContents::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\FileCommit|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Repos\DeleteFile::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\FileCommit|\ApiClients\Client\Github\Schema\ValidationError|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\Operation\SecretScanning\ListAlertsForEnterprise\Response\Applicationjson\H503 : ($call is \ApiClients\Client\Github\Operation\Repos\ListContributors::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Contributor|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Dependabot\ListAlertsForRepo::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\DependabotAlert|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ScimError|\ApiClients\Client\Github\Schema\ValidationErrorSimple : ($call is \ApiClients\Client\Github\Operation\Dependabot\GetAlert::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\DependabotAlert|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Dependabot\UpdateAlert::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\DependabotAlert|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ScimError|\ApiClients\Client\Github\Schema\ValidationErrorSimple : ($call is \ApiClients\Client\Github\Operation\Dependabot\ListRepoSecrets::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Operation\Dependabot\ListRepoSecrets\Response\Applicationjson\H200 : ($call is \ApiClients\Client\Github\Operation\Dependabot\GetRepoPublicKey::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\DependabotPublicKey : ($call is \ApiClients\Client\Github\Operation\Dependabot\GetRepoSecret::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\DependabotSecret : ($call is \ApiClients\Client\Github\Operation\Dependabot\CreateOrUpdateRepoSecret::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\EmptyObject : ($call is \ApiClients\Client\Github\Operation\Dependabot\DeleteRepoSecret::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\DependencyGraph\DiffRange::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\DependencyGraphDiff|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\DependencyGraph\CreateRepositorySnapshot::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Operation\DependencyGraph\CreateRepositorySnapshot\Response\Applicationjson\H201 : ($call is \ApiClients\Client\Github\Operation\Repos\ListDeployments::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Deployment : ($call is \ApiClients\Client\Github\Operation\Repos\CreateDeployment::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Deployment|\ApiClients\Client\Github\Schema\Operation\Activity\MarkNotificationsAsRead\Response\Applicationjson\H202|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Repos\GetDeployment::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Deployment|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Repos\DeleteDeployment::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ValidationErrorSimple : ($call is \ApiClients\Client\Github\Operation\Repos\ListDeploymentStatuses::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\DeploymentStatus|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Repos\CreateDeploymentStatus::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\DeploymentStatus|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Repos\GetDeploymentStatus::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\DeploymentStatus|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Repos\CreateDispatchEvent::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Repos\GetAllEnvironments::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Operation\Repos\GetAllEnvironments\Response\Applicationjson\H200 : ($call is \ApiClients\Client\Github\Operation\Repos\GetEnvironment::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Environment : ($call is \ApiClients\Client\Github\Operation\Repos\CreateOrUpdateEnvironment::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Environment|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Repos\DeleteAnEnvironment::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Repos\ListDeploymentBranchPolicies::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Operation\Repos\ListDeploymentBranchPolicies\Response\Applicationjson\H200 : ($call is \ApiClients\Client\Github\Operation\Repos\CreateDeploymentBranchPolicy::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\DeploymentBranchPolicy : ($call is \ApiClients\Client\Github\Operation\Repos\GetDeploymentBranchPolicy::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\DeploymentBranchPolicy : ($call is \ApiClients\Client\Github\Operation\Repos\UpdateDeploymentBranchPolicy::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\DeploymentBranchPolicy : ($call is \ApiClients\Client\Github\Operation\Repos\DeleteDeploymentBranchPolicy::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Activity\ListRepoEvents::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Event : ($call is \ApiClients\Client\Github\Operation\Repos\ListForks::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\MinimalRepository|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ScimError : ($call is \ApiClients\Client\Github\Operation\Repos\CreateFork::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\FullRepository|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ScimError|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Git\CreateBlob::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\ShortBlob|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Git\GetBlob::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Blob|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Git\CreateCommit::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\GitCommit|\ApiClients\Client\Github\Schema\ValidationError|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Git\GetCommit::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\GitCommit|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Git\ListMatchingRefs::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\GitRef : ($call is \ApiClients\Client\Github\Operation\Git\GetRef::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\GitRef|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Git\CreateRef::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\GitRef|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Git\DeleteRef::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Git\UpdateRef::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\GitRef|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Git\CreateTag::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\GitTag|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Git\GetTag::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\GitTag|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Git\CreateTree::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\GitTree|\ApiClients\Client\Github\Schema\ValidationError|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Git\GetTree::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\GitTree|\ApiClients\Client\Github\Schema\ValidationError|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Repos\ListWebhooks::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Hook|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Repos\CreateWebhook::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Hook|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Repos\GetWebhook::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Hook|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Repos\DeleteWebhook::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Repos\UpdateWebhook::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Hook|\ApiClients\Client\Github\Schema\ValidationError|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Repos\GetWebhookConfigForRepo::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\WebhookConfig : ($call is \ApiClients\Client\Github\Operation\Repos\UpdateWebhookConfigForRepo::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\WebhookConfig : ($call is \ApiClients\Client\Github\Operation\Repos\ListWebhookDeliveries::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\HookDeliveryItem|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ScimError|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Repos\GetWebhookDelivery::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\HookDelivery|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ScimError|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Repos\RedeliverWebhookDelivery::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\WebhookPackagePublished\Package\PackageVersion\NpmMetadata\Dependencies|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ScimError|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Repos\PingWebhook::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Repos\TestPushWebhook::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Migrations\GetImportStatus::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Import|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Migrations\StartImport::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Import|\ApiClients\Client\Github\Schema\ValidationError|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Migrations\CancelImport::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Migrations\UpdateImport::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Import|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Migrations\GetCommitAuthors::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\PorterAuthor|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Migrations\MapCommitAuthor::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\PorterAuthor|\ApiClients\Client\Github\Schema\ValidationError|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Migrations\GetLargeFiles::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\PorterLargeFile|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Migrations\SetLfsPreference::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Import|\ApiClients\Client\Github\Schema\ValidationError|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Apps\GetRepoInstallation::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Installation|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Interactions\GetRestrictionsForRepo::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Operation\Interactions\GetRestrictionsForOrg\Response\Applicationjson\H200 : ($call is \ApiClients\Client\Github\Operation\Interactions\SetRestrictionsForRepo::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\InteractionLimitResponse : ($call is \ApiClients\Client\Github\Operation\Interactions\RemoveRestrictionsForRepo::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Repos\ListInvitations::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\RepositoryInvitation : ($call is \ApiClients\Client\Github\Operation\Repos\DeleteInvitation::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Repos\UpdateInvitation::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\RepositoryInvitation : ($call is \ApiClients\Client\Github\Operation\Issues\ListForRepo::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Issue|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Issues\Create::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Issue|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ValidationError|\ApiClients\Client\Github\Schema\Operation\SecretScanning\ListAlertsForEnterprise\Response\Applicationjson\H503 : ($call is \ApiClients\Client\Github\Operation\Issues\ListCommentsForRepo::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\IssueComment|\ApiClients\Client\Github\Schema\ValidationError|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Issues\GetComment::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\IssueComment|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Issues\DeleteComment::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Issues\UpdateComment::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\IssueComment|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Reactions\ListForIssueComment::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Reaction|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Reactions\CreateForIssueComment::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Reaction|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Reactions\DeleteForIssueComment::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Issues\ListEventsForRepo::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\IssueEvent|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Issues\GetEvent::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\IssueEvent|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Issues\Get::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Issue|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Issues\Update::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Issue|\ApiClients\Client\Github\Schema\ValidationError|\ApiClients\Client\Github\Schema\Operation\SecretScanning\ListAlertsForEnterprise\Response\Applicationjson\H503|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Issues\AddAssignees::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Issue : ($call is \ApiClients\Client\Github\Operation\Issues\RemoveAssignees::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Issue : ($call is \ApiClients\Client\Github\Operation\Issues\CheckUserCanBeAssignedToIssue::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Issues\ListComments::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\IssueComment|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Issues\CreateComment::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\IssueComment|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Issues\ListEvents::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\IssueEventForIssue|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Issues\ListLabelsOnIssue::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Label|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Issues\SetLabels::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Label|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Issues\AddLabels::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Label|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Issues\RemoveAllLabels::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Issues\RemoveLabel::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Label|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Issues\Lock::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Issues\Unlock::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Reactions\ListForIssue::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Reaction|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Reactions\CreateForIssue::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Reaction|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Reactions\DeleteForIssue::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Issues\ListEventsForTimeline::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\TimelineIssueEvents|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Repos\ListDeployKeys::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\DeployKey : ($call is \ApiClients\Client\Github\Operation\Repos\CreateDeployKey::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\DeployKey|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Repos\GetDeployKey::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\DeployKey|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Repos\DeleteDeployKey::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Issues\ListLabelsForRepo::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Label|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Issues\CreateLabel::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Label|\ApiClients\Client\Github\Schema\ValidationError|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Issues\GetLabel::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Label|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Issues\DeleteLabel::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Issues\UpdateLabel::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Label : ($call is \ApiClients\Client\Github\Operation\Repos\ListLanguages::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Language : ($call is \ApiClients\Client\Github\Operation\Repos\EnableLfsForRepo::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\WebhookPackagePublished\Package\PackageVersion\NpmMetadata\Dependencies : ($call is \ApiClients\Client\Github\Operation\Repos\DisableLfsForRepo::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Licenses\GetForRepo::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\LicenseContent : ($call is \ApiClients\Client\Github\Operation\Repos\MergeUpstream::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\MergedUpstream : ($call is \ApiClients\Client\Github\Operation\Repos\Merge::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Commit|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Issues\ListMilestones::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Milestone|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Issues\CreateMilestone::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Milestone|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Issues\GetMilestone::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Milestone|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Issues\DeleteMilestone::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Issues\UpdateMilestone::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Milestone : ($call is \ApiClients\Client\Github\Operation\Issues\ListLabelsForMilestone::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Label : ($call is \ApiClients\Client\Github\Operation\Activity\ListRepoNotificationsForAuthenticatedUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Thread : ($call is \ApiClients\Client\Github\Operation\Activity\MarkRepoNotificationsAsRead::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Operation\Activity\MarkRepoNotificationsAsRead\Response\Applicationjson\H202 : ($call is \ApiClients\Client\Github\Operation\Repos\GetPages::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Page|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Repos\UpdateInformationAboutPagesSite::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\ValidationError|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ScimError : ($call is \ApiClients\Client\Github\Operation\Repos\CreatePagesSite::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Page|\ApiClients\Client\Github\Schema\ValidationError|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Repos\DeletePagesSite::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\ValidationError|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Repos\ListPagesBuilds::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\PageBuild : ($call is \ApiClients\Client\Github\Operation\Repos\RequestPagesBuild::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\PageBuildStatus : ($call is \ApiClients\Client\Github\Operation\Repos\GetLatestPagesBuild::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\PageBuild : ($call is \ApiClients\Client\Github\Operation\Repos\GetPagesBuild::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\PageBuild : ($call is \ApiClients\Client\Github\Operation\Repos\CreatePagesDeployment::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\PageDeployment|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ScimError|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Repos\GetPagesHealthCheck::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\PagesHealthCheck|\ApiClients\Client\Github\Schema\EmptyObject|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Projects\ListForRepo::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Project|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ValidationErrorSimple : ($call is \ApiClients\Client\Github\Operation\Projects\CreateForRepo::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Project|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ValidationErrorSimple : ($call is \ApiClients\Client\Github\Operation\Pulls\List_::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\PullRequestSimple|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Pulls\Create::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\PullRequest|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Pulls\ListReviewCommentsForRepo::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\PullRequestReviewComment : ($call is \ApiClients\Client\Github\Operation\Pulls\GetReviewComment::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\PullRequestReviewComment|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Pulls\DeleteReviewComment::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Pulls\UpdateReviewComment::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\PullRequestReviewComment : ($call is \ApiClients\Client\Github\Operation\Reactions\ListForPullRequestReviewComment::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Reaction|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Reactions\CreateForPullRequestReviewComment::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Reaction|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Reactions\DeleteForPullRequestComment::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Pulls\Get::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\PullRequest|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\Operation\SecretScanning\ListAlertsForEnterprise\Response\Applicationjson\H503 : ($call is \ApiClients\Client\Github\Operation\Pulls\Update::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\PullRequest|\ApiClients\Client\Github\Schema\ValidationError|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Codespaces\CreateWithPrForAuthenticatedUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Codespace|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\Operation\SecretScanning\ListAlertsForEnterprise\Response\Applicationjson\H503 : ($call is \ApiClients\Client\Github\Operation\Pulls\ListReviewComments::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\PullRequestReviewComment : ($call is \ApiClients\Client\Github\Operation\Pulls\CreateReviewComment::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\PullRequestReviewComment|\ApiClients\Client\Github\Schema\ValidationError|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Pulls\CreateReplyForReviewComment::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\PullRequestReviewComment|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Pulls\ListCommits::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Commit : ($call is \ApiClients\Client\Github\Operation\Pulls\ListFiles::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\DiffEntry|\ApiClients\Client\Github\Schema\ValidationError|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\Operation\SecretScanning\ListAlertsForEnterprise\Response\Applicationjson\H503 : ($call is \ApiClients\Client\Github\Operation\Pulls\CheckIfMerged::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Pulls\Merge::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\PullRequestMergeResult|\ApiClients\Client\Github\Schema\Operation\Orgs\RemoveOutsideCollaborator\Response\Applicationjson\H422|\ApiClients\Client\Github\Schema\ValidationError|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Pulls\ListRequestedReviewers::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\PullRequestReviewRequest : ($call is \ApiClients\Client\Github\Operation\Pulls\RequestReviewers::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\PullRequestSimple|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Pulls\RemoveRequestedReviewers::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\PullRequestSimple|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Pulls\ListReviews::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\PullRequestReview : ($call is \ApiClients\Client\Github\Operation\Pulls\CreateReview::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\PullRequestReview|\ApiClients\Client\Github\Schema\ValidationErrorSimple|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Pulls\GetReview::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\PullRequestReview|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Pulls\UpdateReview::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\PullRequestReview|\ApiClients\Client\Github\Schema\ValidationErrorSimple : ($call is \ApiClients\Client\Github\Operation\Pulls\DeletePendingReview::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\PullRequestReview|\ApiClients\Client\Github\Schema\ValidationErrorSimple|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Pulls\ListCommentsForReview::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\ReviewComment|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Pulls\DismissReview::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\PullRequestReview|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ValidationErrorSimple : ($call is \ApiClients\Client\Github\Operation\Pulls\SubmitReview::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\PullRequestReview|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ValidationErrorSimple : ($call is \ApiClients\Client\Github\Operation\Pulls\UpdateBranch::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Operation\Activity\MarkRepoNotificationsAsRead\Response\Applicationjson\H202|\ApiClients\Client\Github\Schema\ValidationError|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Repos\GetReadme::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\ContentFile|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Repos\GetReadmeInDirectory::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\ContentFile|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Repos\ListReleases::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Release|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Repos\CreateRelease::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Release|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Repos\GetReleaseAsset::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\ReleaseAsset|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Repos\DeleteReleaseAsset::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Repos\UpdateReleaseAsset::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\ReleaseAsset : ($call is \ApiClients\Client\Github\Operation\Repos\GenerateReleaseNotes::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\ReleaseNotesContent|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Repos\GetLatestRelease::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Release : ($call is \ApiClients\Client\Github\Operation\Repos\GetReleaseByTag::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Release|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Repos\GetRelease::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Release|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Repos\DeleteRelease::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Repos\UpdateRelease::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Release|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Repos\ListReleaseAssets::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\ReleaseAsset : ($call is \ApiClients\Client\Github\Operation\Repos\UploadReleaseAsset::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\ReleaseAsset : ($call is \ApiClients\Client\Github\Operation\Reactions\ListForRelease::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Reaction|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Reactions\CreateForRelease::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Reaction|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Reactions\DeleteForRelease::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\SecretScanning\ListAlertsForRepo::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\SecretScanningAlert|\ApiClients\Client\Github\Schema\Operation\SecretScanning\ListAlertsForEnterprise\Response\Applicationjson\H503 : ($call is \ApiClients\Client\Github\Operation\SecretScanning\GetAlert::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\SecretScanningAlert|\ApiClients\Client\Github\Schema\Operation\SecretScanning\ListAlertsForEnterprise\Response\Applicationjson\H503 : ($call is \ApiClients\Client\Github\Operation\SecretScanning\UpdateAlert::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\SecretScanningAlert|\ApiClients\Client\Github\Schema\Operation\SecretScanning\ListAlertsForEnterprise\Response\Applicationjson\H503 : ($call is \ApiClients\Client\Github\Operation\SecretScanning\ListLocationsForAlert::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\SecretScanningLocation|\ApiClients\Client\Github\Schema\Operation\SecretScanning\ListAlertsForEnterprise\Response\Applicationjson\H503 : ($call is \ApiClients\Client\Github\Operation\Activity\ListStargazersForRepo::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Operation\Activity\ListStargazersForRepo\Response\Applicationjson\H200|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Repos\GetCodeFrequencyStats::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Operation\Repos\GetCodeFrequencyStats\Response\Applicationjson\H200|\ApiClients\Client\Github\Schema\WebhookPackagePublished\Package\PackageVersion\NpmMetadata\Dependencies : ($call is \ApiClients\Client\Github\Operation\Repos\GetCommitActivityStats::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\CommitActivity|\ApiClients\Client\Github\Schema\WebhookPackagePublished\Package\PackageVersion\NpmMetadata\Dependencies : ($call is \ApiClients\Client\Github\Operation\Repos\GetContributorsStats::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\ContributorActivity|\ApiClients\Client\Github\Schema\WebhookPackagePublished\Package\PackageVersion\NpmMetadata\Dependencies : ($call is \ApiClients\Client\Github\Operation\Repos\GetParticipationStats::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\ParticipationStats|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Repos\GetPunchCardStats::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Operation\Repos\GetCodeFrequencyStats\Response\Applicationjson\H200 : ($call is \ApiClients\Client\Github\Operation\Repos\CreateCommitStatus::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Status : ($call is \ApiClients\Client\Github\Operation\Activity\ListWatchersForRepo::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\SimpleUser : ($call is \ApiClients\Client\Github\Operation\Activity\GetRepoSubscription::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\RepositorySubscription|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Activity\SetRepoSubscription::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\RepositorySubscription : ($call is \ApiClients\Client\Github\Operation\Activity\DeleteRepoSubscription::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Repos\ListTags::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Tag : ($call is \ApiClients\Client\Github\Operation\Repos\ListTagProtection::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\TagProtection|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Repos\CreateTagProtection::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\TagProtection|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Repos\DeleteTagProtection::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Repos\DownloadTarballArchive::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Repos\ListTeams::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Team : ($call is \ApiClients\Client\Github\Operation\Repos\GetAllTopics::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Topic|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Repos\ReplaceAllTopics::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Topic|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ValidationErrorSimple : ($call is \ApiClients\Client\Github\Operation\Repos\GetClones::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\CloneTraffic|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Repos\GetTopPaths::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\ContentTraffic|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Repos\GetTopReferrers::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\ReferrerTraffic|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Repos\GetViews::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\ViewTraffic|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Repos\Transfer::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\MinimalRepository : ($call is \ApiClients\Client\Github\Operation\Repos\CheckVulnerabilityAlerts::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Repos\EnableVulnerabilityAlerts::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Repos\DisableVulnerabilityAlerts::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Repos\DownloadZipballArchive::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Repos\CreateUsingTemplate::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Repository : ($call is \ApiClients\Client\Github\Operation\Repos\ListPublic::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\MinimalRepository|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Actions\ListEnvironmentSecrets::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Operation\Actions\ListRepoSecrets\Response\Applicationjson\H200 : ($call is \ApiClients\Client\Github\Operation\Actions\GetEnvironmentPublicKey::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\ActionsPublicKey : ($call is \ApiClients\Client\Github\Operation\Actions\GetEnvironmentSecret::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\ActionsSecret : ($call is \ApiClients\Client\Github\Operation\Actions\CreateOrUpdateEnvironmentSecret::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\EmptyObject : ($call is \ApiClients\Client\Github\Operation\Actions\DeleteEnvironmentSecret::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Actions\ListEnvironmentVariables::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Operation\Actions\ListRepoVariables\Response\Applicationjson\H200 : ($call is \ApiClients\Client\Github\Operation\Actions\CreateEnvironmentVariable::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\EmptyObject : ($call is \ApiClients\Client\Github\Operation\Actions\GetEnvironmentVariable::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\ActionsVariable : ($call is \ApiClients\Client\Github\Operation\Actions\DeleteEnvironmentVariable::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Actions\UpdateEnvironmentVariable::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Search\Code::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Operation\Search\Code\Response\Applicationjson\H200|\ApiClients\Client\Github\Schema\Operation\SecretScanning\ListAlertsForEnterprise\Response\Applicationjson\H503|\ApiClients\Client\Github\Schema\ValidationError|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Search\Commits::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Operation\Search\Commits\Response\Applicationjson\H200 : ($call is \ApiClients\Client\Github\Operation\Search\IssuesAndPullRequests::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Operation\Search\IssuesAndPullRequests\Response\Applicationjson\H200|\ApiClients\Client\Github\Schema\Operation\SecretScanning\ListAlertsForEnterprise\Response\Applicationjson\H503|\ApiClients\Client\Github\Schema\ValidationError|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Search\Labels::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Operation\Search\Labels\Response\Applicationjson\H200|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Search\Repos::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Operation\Search\Repos\Response\Applicationjson\H200|\ApiClients\Client\Github\Schema\Operation\SecretScanning\ListAlertsForEnterprise\Response\Applicationjson\H503|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Search\Topics::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Operation\Search\Topics\Response\Applicationjson\H200 : ($call is \ApiClients\Client\Github\Operation\Search\Users::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Operation\Search\Users\Response\Applicationjson\H200|\ApiClients\Client\Github\Schema\Operation\SecretScanning\ListAlertsForEnterprise\Response\Applicationjson\H503|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Teams\GetLegacy::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\TeamFull|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Teams\DeleteLegacy::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Teams\UpdateLegacy::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\TeamFull|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Teams\ListDiscussionsLegacy::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\TeamDiscussion : ($call is \ApiClients\Client\Github\Operation\Teams\CreateDiscussionLegacy::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\TeamDiscussion : ($call is \ApiClients\Client\Github\Operation\Teams\GetDiscussionLegacy::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\TeamDiscussion : ($call is \ApiClients\Client\Github\Operation\Teams\DeleteDiscussionLegacy::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Teams\UpdateDiscussionLegacy::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\TeamDiscussion : ($call is \ApiClients\Client\Github\Operation\Teams\ListDiscussionCommentsLegacy::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\TeamDiscussionComment : ($call is \ApiClients\Client\Github\Operation\Teams\CreateDiscussionCommentLegacy::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\TeamDiscussionComment : ($call is \ApiClients\Client\Github\Operation\Teams\GetDiscussionCommentLegacy::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\TeamDiscussionComment : ($call is \ApiClients\Client\Github\Operation\Teams\DeleteDiscussionCommentLegacy::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Teams\UpdateDiscussionCommentLegacy::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\TeamDiscussionComment : ($call is \ApiClients\Client\Github\Operation\Reactions\ListForTeamDiscussionCommentLegacy::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Reaction : ($call is \ApiClients\Client\Github\Operation\Reactions\CreateForTeamDiscussionCommentLegacy::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Reaction : ($call is \ApiClients\Client\Github\Operation\Reactions\ListForTeamDiscussionLegacy::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Reaction : ($call is \ApiClients\Client\Github\Operation\Reactions\CreateForTeamDiscussionLegacy::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Reaction : ($call is \ApiClients\Client\Github\Operation\Teams\ListPendingInvitationsLegacy::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\OrganizationInvitation : ($call is \ApiClients\Client\Github\Operation\Teams\ListMembersLegacy::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\SimpleUser|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Teams\GetMemberLegacy::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Teams\AddMemberLegacy::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Teams\RemoveMemberLegacy::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Teams\GetMembershipForUserLegacy::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\TeamMembership|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Teams\AddOrUpdateMembershipForUserLegacy::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\TeamMembership|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Teams\RemoveMembershipForUserLegacy::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Teams\ListProjectsLegacy::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\TeamProject|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Teams\CheckPermissionsForProjectLegacy::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\TeamProject : ($call is \ApiClients\Client\Github\Operation\Teams\AddOrUpdateProjectPermissionsLegacy::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Operation\Orgs\RemoveOutsideCollaborator\Response\Applicationjson\H422|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Teams\RemoveProjectLegacy::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Teams\ListReposLegacy::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\MinimalRepository|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Teams\CheckPermissionsForRepoLegacy::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\TeamRepository : ($call is \ApiClients\Client\Github\Operation\Teams\AddOrUpdateRepoPermissionsLegacy::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Teams\RemoveRepoLegacy::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Teams\ListChildLegacy::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Team|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Users\GetAuthenticated::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Operation\Users\GetAuthenticated\Response\Applicationjson\H200|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Users\UpdateAuthenticated::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\PrivateUser|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Users\ListBlockedByAuthenticatedUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\SimpleUser|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Users\CheckBlocked::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Users\Block::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Users\Unblock::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Codespaces\ListForAuthenticatedUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Operation\Codespaces\ListInOrganization\Response\Applicationjson\H200|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Codespaces\CreateForAuthenticatedUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Codespace|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\Operation\SecretScanning\ListAlertsForEnterprise\Response\Applicationjson\H503 : ($call is \ApiClients\Client\Github\Operation\Codespaces\ListSecretsForAuthenticatedUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Operation\Codespaces\ListSecretsForAuthenticatedUser\Response\Applicationjson\H200 : ($call is \ApiClients\Client\Github\Operation\Codespaces\GetPublicKeyForAuthenticatedUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\CodespacesUserPublicKey : ($call is \ApiClients\Client\Github\Operation\Codespaces\GetSecretForAuthenticatedUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\CodespacesSecret : ($call is \ApiClients\Client\Github\Operation\Codespaces\CreateOrUpdateSecretForAuthenticatedUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\EmptyObject|\ApiClients\Client\Github\Schema\ValidationError|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Codespaces\DeleteSecretForAuthenticatedUser::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Codespaces\ListRepositoriesForSecretForAuthenticatedUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Operation\Actions\ListSelectedReposForOrgSecret\Response\Applicationjson\H200|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Codespaces\SetRepositoriesForSecretForAuthenticatedUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Codespaces\AddRepositoryForSecretForAuthenticatedUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Codespaces\RemoveRepositoryForSecretForAuthenticatedUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Codespaces\GetForAuthenticatedUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Codespace|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Codespaces\DeleteForAuthenticatedUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\WebhookPackagePublished\Package\PackageVersion\NpmMetadata\Dependencies|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Codespaces\UpdateForAuthenticatedUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Codespace|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Codespaces\ExportForAuthenticatedUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\CodespaceExportDetails|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Codespaces\GetExportDetailsForAuthenticatedUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\CodespaceExportDetails|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Codespaces\CodespaceMachinesForAuthenticatedUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Operation\Codespaces\RepoMachinesForAuthenticatedUser\Response\Applicationjson\H200|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Codespaces\PublishForAuthenticatedUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\CodespaceWithFullRepository|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Codespaces\StartForAuthenticatedUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Codespace|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ScimError : ($call is \ApiClients\Client\Github\Operation\Codespaces\StopForAuthenticatedUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Codespace|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Users\SetPrimaryEmailVisibilityForAuthenticatedUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Email|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Users\ListEmailsForAuthenticatedUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Email|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Users\AddEmailForAuthenticatedUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Email|\ApiClients\Client\Github\Schema\ValidationError|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Users\DeleteEmailForAuthenticatedUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Users\ListFollowersForAuthenticatedUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\SimpleUser|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Users\ListFollowedByAuthenticatedUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\SimpleUser|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Users\CheckPersonIsFollowedByAuthenticated::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Users\Follow::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Users\Unfollow::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Users\ListGpgKeysForAuthenticatedUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\GpgKey|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Users\CreateGpgKeyForAuthenticatedUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\GpgKey|\ApiClients\Client\Github\Schema\ValidationError|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Users\GetGpgKeyForAuthenticatedUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\GpgKey|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Users\DeleteGpgKeyForAuthenticatedUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Apps\ListInstallationsForAuthenticatedUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Operation\Orgs\ListAppInstallations\Response\Applicationjson\H200|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Apps\ListInstallationReposForAuthenticatedUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Operation\Apps\ListInstallationReposForAuthenticatedUser\Response\Applicationjson\H200|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Apps\AddRepoToInstallationForAuthenticatedUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Apps\RemoveRepoFromInstallationForAuthenticatedUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Interactions\GetRestrictionsForAuthenticatedUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Operation\Interactions\GetRestrictionsForOrg\Response\Applicationjson\H200 : ($call is \ApiClients\Client\Github\Operation\Interactions\SetRestrictionsForAuthenticatedUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\InteractionLimitResponse|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Interactions\RemoveRestrictionsForAuthenticatedUser::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Issues\ListForAuthenticatedUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Issue|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Users\ListPublicSshKeysForAuthenticatedUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Key|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Users\CreatePublicSshKeyForAuthenticatedUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Key|\ApiClients\Client\Github\Schema\ValidationError|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Users\GetPublicSshKeyForAuthenticatedUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Key|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Users\DeletePublicSshKeyForAuthenticatedUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Apps\ListSubscriptionsForAuthenticatedUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\UserMarketplacePurchase|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Apps\ListSubscriptionsForAuthenticatedUserStubbed::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\UserMarketplacePurchase|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Orgs\ListMembershipsForAuthenticatedUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\OrgMembership|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Orgs\GetMembershipForAuthenticatedUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\OrgMembership|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Orgs\UpdateMembershipForAuthenticatedUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\OrgMembership|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Migrations\ListForAuthenticatedUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Migration|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Migrations\StartForAuthenticatedUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Migration|\ApiClients\Client\Github\Schema\ValidationError|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Migrations\GetStatusForAuthenticatedUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Migration|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Migrations\GetArchiveForAuthenticatedUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Migrations\DeleteArchiveForAuthenticatedUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Migrations\UnlockRepoForAuthenticatedUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Migrations\ListReposForAuthenticatedUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\MinimalRepository|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Orgs\ListForAuthenticatedUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\OrganizationSimple|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Packages\ListPackagesForAuthenticatedUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Package : ($call is \ApiClients\Client\Github\Operation\Packages\GetPackageForAuthenticatedUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Package : ($call is \ApiClients\Client\Github\Operation\Packages\DeletePackageForAuthenticatedUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Packages\RestorePackageForAuthenticatedUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Packages\GetAllPackageVersionsForPackageOwnedByAuthenticatedUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\PackageVersion|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Packages\GetPackageVersionForAuthenticatedUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\PackageVersion : ($call is \ApiClients\Client\Github\Operation\Packages\DeletePackageVersionForAuthenticatedUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Packages\RestorePackageVersionForAuthenticatedUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Projects\CreateForAuthenticatedUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Project|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ValidationErrorSimple : ($call is \ApiClients\Client\Github\Operation\Users\ListPublicEmailsForAuthenticatedUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Email|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Repos\ListForAuthenticatedUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Repository|\ApiClients\Client\Github\Schema\ValidationError|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Repos\CreateForAuthenticatedUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Repository|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ValidationError|\ApiClients\Client\Github\Schema\ScimError : ($call is \ApiClients\Client\Github\Operation\Repos\ListInvitationsForAuthenticatedUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\RepositoryInvitation|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Repos\DeclineInvitationForAuthenticatedUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Repos\AcceptInvitationForAuthenticatedUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Users\ListSshSigningKeysForAuthenticatedUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\SshSigningKey|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Users\CreateSshSigningKeyForAuthenticatedUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\SshSigningKey|\ApiClients\Client\Github\Schema\ValidationError|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Users\GetSshSigningKeyForAuthenticatedUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\SshSigningKey|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Users\DeleteSshSigningKeyForAuthenticatedUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Activity\ListReposStarredByAuthenticatedUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Repository|\ApiClients\Client\Github\Schema\StarredRepository|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Activity\CheckRepoIsStarredByAuthenticatedUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Activity\StarRepoForAuthenticatedUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Activity\UnstarRepoForAuthenticatedUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Activity\ListWatchedReposForAuthenticatedUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\MinimalRepository|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Teams\ListForAuthenticatedUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\TeamFull|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Users\List_::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\SimpleUser : ($call is \ApiClients\Client\Github\Operation\Users\GetByUsername::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Operation\Users\GetAuthenticated\Response\Applicationjson\H200|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Activity\ListEventsForAuthenticatedUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Event : ($call is \ApiClients\Client\Github\Operation\Activity\ListOrgEventsForAuthenticatedUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Event : ($call is \ApiClients\Client\Github\Operation\Activity\ListPublicEventsForUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Event : ($call is \ApiClients\Client\Github\Operation\Users\ListFollowersForUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\SimpleUser : ($call is \ApiClients\Client\Github\Operation\Users\ListFollowingForUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\SimpleUser : ($call is \ApiClients\Client\Github\Operation\Users\CheckFollowingForUser::OPERATION_MATCH ? \Psr\Http\Message\ResponseInterface : ($call is \ApiClients\Client\Github\Operation\Gists\ListForUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BaseGist|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Users\ListGpgKeysForUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\GpgKey : ($call is \ApiClients\Client\Github\Operation\Users\GetContextForUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Hovercard|\ApiClients\Client\Github\Schema\BasicError|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Apps\GetUserInstallation::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Installation : ($call is \ApiClients\Client\Github\Operation\Users\ListPublicKeysForUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\KeySimple : ($call is \ApiClients\Client\Github\Operation\Orgs\ListForUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\OrganizationSimple : ($call is \ApiClients\Client\Github\Operation\Packages\ListPackagesForUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Package|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Packages\GetPackageForUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Package : ($call is \ApiClients\Client\Github\Operation\Packages\DeletePackageForUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Packages\RestorePackageForUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Packages\GetAllPackageVersionsForPackageOwnedByUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\PackageVersion|\ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Packages\GetPackageVersionForUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\PackageVersion : ($call is \ApiClients\Client\Github\Operation\Packages\DeletePackageVersionForUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Packages\RestorePackageVersionForUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\BasicError : ($call is \ApiClients\Client\Github\Operation\Projects\ListForUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Project|\ApiClients\Client\Github\Schema\ValidationError : ($call is \ApiClients\Client\Github\Operation\Activity\ListReceivedEventsForUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Event : ($call is \ApiClients\Client\Github\Operation\Activity\ListReceivedPublicEventsForUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Event : ($call is \ApiClients\Client\Github\Operation\Repos\ListForUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\MinimalRepository : ($call is \ApiClients\Client\Github\Operation\Billing\GetGithubActionsBillingUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\ActionsBillingUsage : ($call is \ApiClients\Client\Github\Operation\Billing\GetGithubPackagesBillingUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\PackagesBillingUsage : ($call is \ApiClients\Client\Github\Operation\Billing\GetSharedStorageBillingUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\CombinedBillingUsage : ($call is \ApiClients\Client\Github\Operation\Users\ListSshSigningKeysForUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\SshSigningKey : ($call is \ApiClients\Client\Github\Operation\Activity\ListReposStarredByUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Operation\Activity\ListReposStarredByUser\Response\Applicationjson\H200 : ($call is \ApiClients\Client\Github\Operation\Activity\ListReposWatchedByUser::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\MinimalRepository : ($call is \ApiClients\Client\Github\Operation\Meta\GetAllVersions::OPERATION_MATCH ? \ApiClients\Client\Github\Schema\Operation\Meta\GetAllVersions\Response\Applicationjson\H200|\ApiClients\Client\Github\Schema\BasicError : \ApiClients\Client\Github\Schema\WebHookHeader\UserAgent))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))) diff --git a/src/Hydrator/WebHook/BranchProtectionRule.php b/src/Hydrator/WebHook/BranchProtectionRule.php index 827404fc2b..b29aff88e9 100644 --- a/src/Hydrator/WebHook/BranchProtectionRule.php +++ b/src/Hydrator/WebHook/BranchProtectionRule.php @@ -23,19 +23,21 @@ public function __construct() {} public function hydrateObject(string $className, array $payload): object { return match($className) { - 'ApiClients\Client\Github\Schema\WebhookBranchProtectionRuleEdited' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookBranchProtectionRuleEdited($payload), - 'ApiClients\Client\Github\Schema\WebhookBranchProtectionRuleEdited\Changes' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookBranchProtectionRuleEdited⚡️Changes($payload), + 'ApiClients\Client\Github\Schema\WebhookBranchProtectionRuleCreated' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookBranchProtectionRuleCreated($payload), + 'ApiClients\Client\Github\Schema\WebhookBranchProtectionRuleDeleted' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookBranchProtectionRuleDeleted($payload), + 'ApiClients\Client\Github\Schema\WebhookBranchProtectionRuleEdited' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookBranchProtectionRuleEdited($payload), 'ApiClients\Client\Github\Schema\Enterprise' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($payload), 'ApiClients\Client\Github\Schema\SimpleInstallation' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($payload), 'ApiClients\Client\Github\Schema\OrganizationSimple' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($payload), 'ApiClients\Client\Github\Schema\Repository' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($payload), 'ApiClients\Client\Github\Schema\WebhookBranchProtectionRuleCreated\Rule' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookBranchProtectionRuleCreated⚡️Rule($payload), 'ApiClients\Client\Github\Schema\SimpleUser' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($payload), + 'ApiClients\Client\Github\Schema\WebhookBranchProtectionRuleEdited\Changes' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookBranchProtectionRuleEdited⚡️Changes($payload), + 'ApiClients\Client\Github\Schema\Repository\Permissions' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️Permissions($payload), + 'ApiClients\Client\Github\Schema\Repository\TemplateRepository' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository($payload), 'ApiClients\Client\Github\Schema\WebhookBranchProtectionRuleEdited\Changes\AdminEnforced' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookBranchProtectionRuleEdited⚡️Changes⚡️AdminEnforced($payload), 'ApiClients\Client\Github\Schema\WebhookBranchProtectionRuleEdited\Changes\AuthorizedActorNames' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookBranchProtectionRuleEdited⚡️Changes⚡️AuthorizedActorNames($payload), 'ApiClients\Client\Github\Schema\WebhookBranchProtectionRuleEdited\Changes\LinearHistoryRequirementEnforcementLevel' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookBranchProtectionRuleEdited⚡️Changes⚡️LinearHistoryRequirementEnforcementLevel($payload), - 'ApiClients\Client\Github\Schema\Repository\Permissions' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️Permissions($payload), - 'ApiClients\Client\Github\Schema\Repository\TemplateRepository' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository($payload), 'ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner($payload), 'ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Permissions($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), @@ -43,7 +45,7 @@ public function hydrateObject(string $className, array $payload): object } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookBranchProtectionRuleEdited(array $payload): \ApiClients\Client\Github\Schema\WebhookBranchProtectionRuleEdited + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookBranchProtectionRuleCreated(array $payload): \ApiClients\Client\Github\Schema\WebhookBranchProtectionRuleCreated { $properties = []; $missingFields = []; @@ -60,25 +62,158 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh after_action: - $value = $payload['changes'] ?? null; + $value = $payload['enterprise'] ?? null; if ($value === null) { - $missingFields[] = 'changes'; - goto after_changes; + $missingFields[] = 'enterprise'; + goto after_enterprise; } if (is_array($value)) { try { - $this->hydrationStack[] = 'changes'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookBranchProtectionRuleEdited⚡️Changes($value); + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); } finally { array_pop($this->hydrationStack); } } - $properties['changes'] = $value; + $properties['enterprise'] = $value; - after_changes: + after_enterprise: + + $value = $payload['installation'] ?? null; + + if ($value === null) { + $missingFields[] = 'installation'; + goto after_installation; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; + + after_installation: + + $value = $payload['organization'] ?? null; + + if ($value === null) { + $missingFields[] = 'organization'; + goto after_organization; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; + + after_organization: + + $value = $payload['repository'] ?? null; + + if ($value === null) { + $missingFields[] = 'repository'; + goto after_repository; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repository'] = $value; + + after_repository: + + $value = $payload['rule'] ?? null; + + if ($value === null) { + $missingFields[] = 'rule'; + goto after_rule; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'rule'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookBranchProtectionRuleCreated⚡️Rule($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['rule'] = $value; + + after_rule: + + $value = $payload['sender'] ?? null; + + if ($value === null) { + $missingFields[] = 'sender'; + goto after_sender; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; + + after_sender: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookBranchProtectionRuleCreated', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookBranchProtectionRuleCreated::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookBranchProtectionRuleCreated(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookBranchProtectionRuleCreated', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookBranchProtectionRuleDeleted(array $payload): \ApiClients\Client\Github\Schema\WebhookBranchProtectionRuleDeleted + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; + + if ($value === null) { + $missingFields[] = 'action'; + goto after_action; + } + + $properties['action'] = $value; + + after_action: $value = $payload['enterprise'] ?? null; @@ -201,179 +336,190 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh after_sender: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookBranchProtectionRuleEdited', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookBranchProtectionRuleDeleted', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookBranchProtectionRuleEdited::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookBranchProtectionRuleDeleted::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\WebhookBranchProtectionRuleEdited(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookBranchProtectionRuleDeleted(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookBranchProtectionRuleEdited', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookBranchProtectionRuleDeleted', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookBranchProtectionRuleEdited⚡️Changes(array $payload): \ApiClients\Client\Github\Schema\WebhookBranchProtectionRuleEdited\Changes + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookBranchProtectionRuleEdited(array $payload): \ApiClients\Client\Github\Schema\WebhookBranchProtectionRuleEdited { $properties = []; $missingFields = []; try { - $value = $payload['admin_enforced'] ?? null; + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'admin_enforced'; - goto after_admin_enforced; + $missingFields[] = 'action'; + goto after_action; + } + + $properties['action'] = $value; + + after_action: + + $value = $payload['changes'] ?? null; + + if ($value === null) { + $missingFields[] = 'changes'; + goto after_changes; } if (is_array($value)) { try { - $this->hydrationStack[] = 'admin_enforced'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookBranchProtectionRuleEdited⚡️Changes⚡️AdminEnforced($value); + $this->hydrationStack[] = 'changes'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookBranchProtectionRuleEdited⚡️Changes($value); } finally { array_pop($this->hydrationStack); } } - $properties['admin_enforced'] = $value; + $properties['changes'] = $value; - after_admin_enforced: + after_changes: - $value = $payload['authorized_actor_names'] ?? null; + $value = $payload['enterprise'] ?? null; if ($value === null) { - $missingFields[] = 'authorized_actor_names'; - goto after_authorized_actor_names; + $missingFields[] = 'enterprise'; + goto after_enterprise; } if (is_array($value)) { try { - $this->hydrationStack[] = 'authorized_actor_names'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookBranchProtectionRuleEdited⚡️Changes⚡️AuthorizedActorNames($value); + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); } finally { array_pop($this->hydrationStack); } } - $properties['authorized_actor_names'] = $value; + $properties['enterprise'] = $value; - after_authorized_actor_names: + after_enterprise: - $value = $payload['authorized_actors_only'] ?? null; + $value = $payload['installation'] ?? null; if ($value === null) { - $missingFields[] = 'authorized_actors_only'; - goto after_authorized_actors_only; + $missingFields[] = 'installation'; + goto after_installation; } if (is_array($value)) { try { - $this->hydrationStack[] = 'authorized_actors_only'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookBranchProtectionRuleEdited⚡️Changes⚡️AdminEnforced($value); + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); } finally { array_pop($this->hydrationStack); } } - $properties['authorized_actors_only'] = $value; + $properties['installation'] = $value; - after_authorized_actors_only: + after_installation: - $value = $payload['authorized_dismissal_actors_only'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'authorized_dismissal_actors_only'; - goto after_authorized_dismissal_actors_only; + $missingFields[] = 'organization'; + goto after_organization; } if (is_array($value)) { try { - $this->hydrationStack[] = 'authorized_dismissal_actors_only'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookBranchProtectionRuleEdited⚡️Changes⚡️AdminEnforced($value); + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); } finally { array_pop($this->hydrationStack); } } - $properties['authorized_dismissal_actors_only'] = $value; + $properties['organization'] = $value; - after_authorized_dismissal_actors_only: + after_organization: - $value = $payload['linear_history_requirement_enforcement_level'] ?? null; + $value = $payload['repository'] ?? null; if ($value === null) { - $missingFields[] = 'linear_history_requirement_enforcement_level'; - goto after_linear_history_requirement_enforcement_level; + $missingFields[] = 'repository'; + goto after_repository; } if (is_array($value)) { try { - $this->hydrationStack[] = 'linear_history_requirement_enforcement_level'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookBranchProtectionRuleEdited⚡️Changes⚡️LinearHistoryRequirementEnforcementLevel($value); + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); } finally { array_pop($this->hydrationStack); } } - $properties['linear_history_requirement_enforcement_level'] = $value; + $properties['repository'] = $value; - after_linear_history_requirement_enforcement_level: + after_repository: - $value = $payload['required_status_checks'] ?? null; + $value = $payload['rule'] ?? null; if ($value === null) { - $missingFields[] = 'required_status_checks'; - goto after_required_status_checks; + $missingFields[] = 'rule'; + goto after_rule; } if (is_array($value)) { try { - $this->hydrationStack[] = 'required_status_checks'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookBranchProtectionRuleEdited⚡️Changes⚡️AuthorizedActorNames($value); + $this->hydrationStack[] = 'rule'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookBranchProtectionRuleCreated⚡️Rule($value); } finally { array_pop($this->hydrationStack); } } - $properties['required_status_checks'] = $value; + $properties['rule'] = $value; - after_required_status_checks: + after_rule: - $value = $payload['required_status_checks_enforcement_level'] ?? null; + $value = $payload['sender'] ?? null; if ($value === null) { - $missingFields[] = 'required_status_checks_enforcement_level'; - goto after_required_status_checks_enforcement_level; + $missingFields[] = 'sender'; + goto after_sender; } if (is_array($value)) { try { - $this->hydrationStack[] = 'required_status_checks_enforcement_level'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookBranchProtectionRuleEdited⚡️Changes⚡️LinearHistoryRequirementEnforcementLevel($value); + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } } - $properties['required_status_checks_enforcement_level'] = $value; + $properties['sender'] = $value; - after_required_status_checks_enforcement_level: + after_sender: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookBranchProtectionRuleEdited\Changes', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookBranchProtectionRuleEdited', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookBranchProtectionRuleEdited\Changes::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookBranchProtectionRuleEdited::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\WebhookBranchProtectionRuleEdited\Changes(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookBranchProtectionRuleEdited(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookBranchProtectionRuleEdited\Changes', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookBranchProtectionRuleEdited', $exception, stack: $this->hydrationStack); } } @@ -2396,101 +2542,164 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Simp } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookBranchProtectionRuleEdited⚡️Changes⚡️AdminEnforced(array $payload): \ApiClients\Client\Github\Schema\WebhookBranchProtectionRuleEdited\Changes\AdminEnforced + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookBranchProtectionRuleEdited⚡️Changes(array $payload): \ApiClients\Client\Github\Schema\WebhookBranchProtectionRuleEdited\Changes { $properties = []; $missingFields = []; try { - $value = $payload['from'] ?? null; + $value = $payload['admin_enforced'] ?? null; if ($value === null) { - $missingFields[] = 'from'; - goto after_from; + $missingFields[] = 'admin_enforced'; + goto after_admin_enforced; } - $properties['from'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'admin_enforced'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookBranchProtectionRuleEdited⚡️Changes⚡️AdminEnforced($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['admin_enforced'] = $value; - after_from: + after_admin_enforced: - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookBranchProtectionRuleEdited\Changes\AdminEnforced', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookBranchProtectionRuleEdited\Changes\AdminEnforced::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\WebhookBranchProtectionRuleEdited\Changes\AdminEnforced(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookBranchProtectionRuleEdited\Changes\AdminEnforced', $exception, stack: $this->hydrationStack); - } - } + $value = $payload['authorized_actor_names'] ?? null; + + if ($value === null) { + $missingFields[] = 'authorized_actor_names'; + goto after_authorized_actor_names; + } - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookBranchProtectionRuleEdited⚡️Changes⚡️AuthorizedActorNames(array $payload): \ApiClients\Client\Github\Schema\WebhookBranchProtectionRuleEdited\Changes\AuthorizedActorNames - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['from'] ?? null; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'authorized_actor_names'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookBranchProtectionRuleEdited⚡️Changes⚡️AuthorizedActorNames($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['authorized_actor_names'] = $value; + + after_authorized_actor_names: + + $value = $payload['authorized_actors_only'] ?? null; if ($value === null) { - $missingFields[] = 'from'; - goto after_from; + $missingFields[] = 'authorized_actors_only'; + goto after_authorized_actors_only; } - $properties['from'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'authorized_actors_only'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookBranchProtectionRuleEdited⚡️Changes⚡️AdminEnforced($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['authorized_actors_only'] = $value; - after_from: + after_authorized_actors_only: - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookBranchProtectionRuleEdited\Changes\AuthorizedActorNames', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookBranchProtectionRuleEdited\Changes\AuthorizedActorNames::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\WebhookBranchProtectionRuleEdited\Changes\AuthorizedActorNames(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookBranchProtectionRuleEdited\Changes\AuthorizedActorNames', $exception, stack: $this->hydrationStack); - } - } + $value = $payload['authorized_dismissal_actors_only'] ?? null; + + if ($value === null) { + $missingFields[] = 'authorized_dismissal_actors_only'; + goto after_authorized_dismissal_actors_only; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'authorized_dismissal_actors_only'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookBranchProtectionRuleEdited⚡️Changes⚡️AdminEnforced($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['authorized_dismissal_actors_only'] = $value; + + after_authorized_dismissal_actors_only: + + $value = $payload['linear_history_requirement_enforcement_level'] ?? null; + + if ($value === null) { + $missingFields[] = 'linear_history_requirement_enforcement_level'; + goto after_linear_history_requirement_enforcement_level; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'linear_history_requirement_enforcement_level'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookBranchProtectionRuleEdited⚡️Changes⚡️LinearHistoryRequirementEnforcementLevel($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['linear_history_requirement_enforcement_level'] = $value; + + after_linear_history_requirement_enforcement_level: + + $value = $payload['required_status_checks'] ?? null; + + if ($value === null) { + $missingFields[] = 'required_status_checks'; + goto after_required_status_checks; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'required_status_checks'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookBranchProtectionRuleEdited⚡️Changes⚡️AuthorizedActorNames($value); + } finally { + array_pop($this->hydrationStack); + } + } - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookBranchProtectionRuleEdited⚡️Changes⚡️LinearHistoryRequirementEnforcementLevel(array $payload): \ApiClients\Client\Github\Schema\WebhookBranchProtectionRuleEdited\Changes\LinearHistoryRequirementEnforcementLevel - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['from'] ?? null; + $properties['required_status_checks'] = $value; + + after_required_status_checks: + + $value = $payload['required_status_checks_enforcement_level'] ?? null; if ($value === null) { - $missingFields[] = 'from'; - goto after_from; + $missingFields[] = 'required_status_checks_enforcement_level'; + goto after_required_status_checks_enforcement_level; } - $properties['from'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'required_status_checks_enforcement_level'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookBranchProtectionRuleEdited⚡️Changes⚡️LinearHistoryRequirementEnforcementLevel($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['required_status_checks_enforcement_level'] = $value; - after_from: + after_required_status_checks_enforcement_level: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookBranchProtectionRuleEdited\Changes\LinearHistoryRequirementEnforcementLevel', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookBranchProtectionRuleEdited\Changes', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookBranchProtectionRuleEdited\Changes\LinearHistoryRequirementEnforcementLevel::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookBranchProtectionRuleEdited\Changes::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\WebhookBranchProtectionRuleEdited\Changes\LinearHistoryRequirementEnforcementLevel(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookBranchProtectionRuleEdited\Changes(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookBranchProtectionRuleEdited\Changes\LinearHistoryRequirementEnforcementLevel', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookBranchProtectionRuleEdited\Changes', $exception, stack: $this->hydrationStack); } } @@ -3569,6 +3778,105 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repo } + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookBranchProtectionRuleEdited⚡️Changes⚡️AdminEnforced(array $payload): \ApiClients\Client\Github\Schema\WebhookBranchProtectionRuleEdited\Changes\AdminEnforced + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['from'] ?? null; + + if ($value === null) { + $missingFields[] = 'from'; + goto after_from; + } + + $properties['from'] = $value; + + after_from: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookBranchProtectionRuleEdited\Changes\AdminEnforced', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookBranchProtectionRuleEdited\Changes\AdminEnforced::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookBranchProtectionRuleEdited\Changes\AdminEnforced(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookBranchProtectionRuleEdited\Changes\AdminEnforced', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookBranchProtectionRuleEdited⚡️Changes⚡️AuthorizedActorNames(array $payload): \ApiClients\Client\Github\Schema\WebhookBranchProtectionRuleEdited\Changes\AuthorizedActorNames + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['from'] ?? null; + + if ($value === null) { + $missingFields[] = 'from'; + goto after_from; + } + + $properties['from'] = $value; + + after_from: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookBranchProtectionRuleEdited\Changes\AuthorizedActorNames', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookBranchProtectionRuleEdited\Changes\AuthorizedActorNames::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookBranchProtectionRuleEdited\Changes\AuthorizedActorNames(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookBranchProtectionRuleEdited\Changes\AuthorizedActorNames', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookBranchProtectionRuleEdited⚡️Changes⚡️LinearHistoryRequirementEnforcementLevel(array $payload): \ApiClients\Client\Github\Schema\WebhookBranchProtectionRuleEdited\Changes\LinearHistoryRequirementEnforcementLevel + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['from'] ?? null; + + if ($value === null) { + $missingFields[] = 'from'; + goto after_from; + } + + $properties['from'] = $value; + + after_from: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookBranchProtectionRuleEdited\Changes\LinearHistoryRequirementEnforcementLevel', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookBranchProtectionRuleEdited\Changes\LinearHistoryRequirementEnforcementLevel::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookBranchProtectionRuleEdited\Changes\LinearHistoryRequirementEnforcementLevel(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookBranchProtectionRuleEdited\Changes\LinearHistoryRequirementEnforcementLevel', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner(array $payload): \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner { $properties = []; @@ -3876,6 +4184,8 @@ public function serializeObject(object $object): mixed 'DateTime' => $this->serializeValueDateTime($object), 'DateTimeImmutable' => $this->serializeValueDateTimeImmutable($object), 'DateTimeInterface' => $this->serializeValueDateTimeInterface($object), + 'ApiClients\Client\Github\Schema\WebhookBranchProtectionRuleCreated' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookBranchProtectionRuleCreated($object), + 'ApiClients\Client\Github\Schema\WebhookBranchProtectionRuleDeleted' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookBranchProtectionRuleDeleted($object), 'ApiClients\Client\Github\Schema\WebhookBranchProtectionRuleEdited' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookBranchProtectionRuleEdited($object), default => throw new \LogicException('No serialization defined for $className'), }; @@ -3950,6 +4260,124 @@ private function serializeValueDateTimeInterface(mixed $value): mixed } + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookBranchProtectionRuleCreated(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookBranchProtectionRuleCreated); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $rule = $object->rule; + + if ($rule === null) { + goto after_rule; + } + $rule = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookBranchProtectionRuleCreated⚡️Rule($rule); + after_rule: $result['rule'] = $rule; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookBranchProtectionRuleDeleted(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookBranchProtectionRuleDeleted); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $rule = $object->rule; + + if ($rule === null) { + goto after_rule; + } + $rule = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookBranchProtectionRuleCreated⚡️Rule($rule); + after_rule: $result['rule'] = $rule; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookBranchProtectionRuleEdited(mixed $object): mixed { \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookBranchProtectionRuleEdited); diff --git a/src/Hydrator/WebHook/CheckRun.php b/src/Hydrator/WebHook/CheckRun.php index 771c3ac7e1..1ae9c4130a 100644 --- a/src/Hydrator/WebHook/CheckRun.php +++ b/src/Hydrator/WebHook/CheckRun.php @@ -23,13 +23,20 @@ public function __construct() {} public function hydrateObject(string $className, array $payload): object { return match($className) { - 'ApiClients\Client\Github\Schema\WebhookCheckRunRerequested' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckRunRerequested($payload), + 'ApiClients\Client\Github\Schema\WebhookCheckRunCompleted' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckRunCompleted($payload), + 'ApiClients\Client\Github\Schema\WebhookCheckRunCompletedFormEncoded' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckRunCompletedFormEncoded($payload), + 'ApiClients\Client\Github\Schema\WebhookCheckRunCreated' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckRunCreated($payload), + 'ApiClients\Client\Github\Schema\WebhookCheckRunCreatedFormEncoded' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckRunCreatedFormEncoded($payload), + 'ApiClients\Client\Github\Schema\WebhookCheckRunRequestedAction' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckRunRequestedAction($payload), + 'ApiClients\Client\Github\Schema\WebhookCheckRunRequestedActionFormEncoded' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckRunRequestedActionFormEncoded($payload), + 'ApiClients\Client\Github\Schema\WebhookCheckRunRerequested' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckRunRerequested($payload), 'ApiClients\Client\Github\Schema\WebhookCheckRunRerequestedFormEncoded' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckRunRerequestedFormEncoded($payload), 'ApiClients\Client\Github\Schema\CheckRunWithSimpleCheckSuite' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️CheckRunWithSimpleCheckSuite($payload), 'ApiClients\Client\Github\Schema\SimpleInstallation' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($payload), 'ApiClients\Client\Github\Schema\OrganizationSimple' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($payload), 'ApiClients\Client\Github\Schema\Repository' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($payload), 'ApiClients\Client\Github\Schema\SimpleUser' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($payload), + 'ApiClients\Client\Github\Schema\WebhookCheckRunRequestedAction\RequestedAction' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckRunRequestedAction⚡️RequestedAction($payload), 'ApiClients\Client\Github\Schema\SimpleCheckSuite' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleCheckSuite($payload), 'ApiClients\Client\Github\Schema\DeploymentSimple' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️DeploymentSimple($payload), 'ApiClients\Client\Github\Schema\CheckRunWithSimpleCheckSuite\Output' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️CheckRunWithSimpleCheckSuite⚡️Output($payload), @@ -49,6 +56,524 @@ public function hydrateObject(string $className, array $payload): object } + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckRunCompleted(array $payload): \ApiClients\Client\Github\Schema\WebhookCheckRunCompleted + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; + + if ($value === null) { + $missingFields[] = 'action'; + goto after_action; + } + + $properties['action'] = $value; + + after_action: + + $value = $payload['check_run'] ?? null; + + if ($value === null) { + $missingFields[] = 'check_run'; + goto after_check_run; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'check_run'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️CheckRunWithSimpleCheckSuite($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['check_run'] = $value; + + after_check_run: + + $value = $payload['installation'] ?? null; + + if ($value === null) { + $missingFields[] = 'installation'; + goto after_installation; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; + + after_installation: + + $value = $payload['organization'] ?? null; + + if ($value === null) { + $missingFields[] = 'organization'; + goto after_organization; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; + + after_organization: + + $value = $payload['repository'] ?? null; + + if ($value === null) { + $missingFields[] = 'repository'; + goto after_repository; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repository'] = $value; + + after_repository: + + $value = $payload['sender'] ?? null; + + if ($value === null) { + $missingFields[] = 'sender'; + goto after_sender; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; + + after_sender: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCheckRunCompleted', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookCheckRunCompleted::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookCheckRunCompleted(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCheckRunCompleted', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckRunCompletedFormEncoded(array $payload): \ApiClients\Client\Github\Schema\WebhookCheckRunCompletedFormEncoded + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['payload'] ?? null; + + if ($value === null) { + $missingFields[] = 'payload'; + goto after_payload; + } + + $properties['payload'] = $value; + + after_payload: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCheckRunCompletedFormEncoded', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookCheckRunCompletedFormEncoded::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookCheckRunCompletedFormEncoded(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCheckRunCompletedFormEncoded', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckRunCreated(array $payload): \ApiClients\Client\Github\Schema\WebhookCheckRunCreated + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; + + if ($value === null) { + $missingFields[] = 'action'; + goto after_action; + } + + $properties['action'] = $value; + + after_action: + + $value = $payload['check_run'] ?? null; + + if ($value === null) { + $missingFields[] = 'check_run'; + goto after_check_run; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'check_run'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️CheckRunWithSimpleCheckSuite($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['check_run'] = $value; + + after_check_run: + + $value = $payload['installation'] ?? null; + + if ($value === null) { + $missingFields[] = 'installation'; + goto after_installation; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; + + after_installation: + + $value = $payload['organization'] ?? null; + + if ($value === null) { + $missingFields[] = 'organization'; + goto after_organization; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; + + after_organization: + + $value = $payload['repository'] ?? null; + + if ($value === null) { + $missingFields[] = 'repository'; + goto after_repository; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repository'] = $value; + + after_repository: + + $value = $payload['sender'] ?? null; + + if ($value === null) { + $missingFields[] = 'sender'; + goto after_sender; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; + + after_sender: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCheckRunCreated', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookCheckRunCreated::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookCheckRunCreated(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCheckRunCreated', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckRunCreatedFormEncoded(array $payload): \ApiClients\Client\Github\Schema\WebhookCheckRunCreatedFormEncoded + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['payload'] ?? null; + + if ($value === null) { + $missingFields[] = 'payload'; + goto after_payload; + } + + $properties['payload'] = $value; + + after_payload: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCheckRunCreatedFormEncoded', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookCheckRunCreatedFormEncoded::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookCheckRunCreatedFormEncoded(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCheckRunCreatedFormEncoded', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckRunRequestedAction(array $payload): \ApiClients\Client\Github\Schema\WebhookCheckRunRequestedAction + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; + + if ($value === null) { + $missingFields[] = 'action'; + goto after_action; + } + + $properties['action'] = $value; + + after_action: + + $value = $payload['check_run'] ?? null; + + if ($value === null) { + $missingFields[] = 'check_run'; + goto after_check_run; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'check_run'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️CheckRunWithSimpleCheckSuite($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['check_run'] = $value; + + after_check_run: + + $value = $payload['installation'] ?? null; + + if ($value === null) { + $missingFields[] = 'installation'; + goto after_installation; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; + + after_installation: + + $value = $payload['organization'] ?? null; + + if ($value === null) { + $missingFields[] = 'organization'; + goto after_organization; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; + + after_organization: + + $value = $payload['repository'] ?? null; + + if ($value === null) { + $missingFields[] = 'repository'; + goto after_repository; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repository'] = $value; + + after_repository: + + $value = $payload['requested_action'] ?? null; + + if ($value === null) { + $missingFields[] = 'requested_action'; + goto after_requested_action; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'requested_action'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckRunRequestedAction⚡️RequestedAction($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['requested_action'] = $value; + + after_requested_action: + + $value = $payload['sender'] ?? null; + + if ($value === null) { + $missingFields[] = 'sender'; + goto after_sender; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; + + after_sender: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCheckRunRequestedAction', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookCheckRunRequestedAction::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookCheckRunRequestedAction(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCheckRunRequestedAction', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckRunRequestedActionFormEncoded(array $payload): \ApiClients\Client\Github\Schema\WebhookCheckRunRequestedActionFormEncoded + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['payload'] ?? null; + + if ($value === null) { + $missingFields[] = 'payload'; + goto after_payload; + } + + $properties['payload'] = $value; + + after_payload: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCheckRunRequestedActionFormEncoded', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookCheckRunRequestedActionFormEncoded::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookCheckRunRequestedActionFormEncoded(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCheckRunRequestedActionFormEncoded', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckRunRerequested(array $payload): \ApiClients\Client\Github\Schema\WebhookCheckRunRerequested { $properties = []; @@ -2040,6 +2565,39 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Simp } + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckRunRequestedAction⚡️RequestedAction(array $payload): \ApiClients\Client\Github\Schema\WebhookCheckRunRequestedAction\RequestedAction + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['identifier'] ?? null; + + if ($value === null) { + $missingFields[] = 'identifier'; + goto after_identifier; + } + + $properties['identifier'] = $value; + + after_identifier: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCheckRunRequestedAction\RequestedAction', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookCheckRunRequestedAction\RequestedAction::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookCheckRunRequestedAction\RequestedAction(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCheckRunRequestedAction\RequestedAction', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleCheckSuite(array $payload): \ApiClients\Client\Github\Schema\SimpleCheckSuite { $properties = []; @@ -5456,6 +6014,12 @@ public function serializeObject(object $object): mixed 'DateTime' => $this->serializeValueDateTime($object), 'DateTimeImmutable' => $this->serializeValueDateTimeImmutable($object), 'DateTimeInterface' => $this->serializeValueDateTimeInterface($object), + 'ApiClients\Client\Github\Schema\WebhookCheckRunCompleted' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckRunCompleted($object), + 'ApiClients\Client\Github\Schema\WebhookCheckRunCompletedFormEncoded' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckRunCompletedFormEncoded($object), + 'ApiClients\Client\Github\Schema\WebhookCheckRunCreated' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckRunCreated($object), + 'ApiClients\Client\Github\Schema\WebhookCheckRunCreatedFormEncoded' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckRunCreatedFormEncoded($object), + 'ApiClients\Client\Github\Schema\WebhookCheckRunRequestedAction' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckRunRequestedAction($object), + 'ApiClients\Client\Github\Schema\WebhookCheckRunRequestedActionFormEncoded' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckRunRequestedActionFormEncoded($object), 'ApiClients\Client\Github\Schema\WebhookCheckRunRerequested' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckRunRerequested($object), 'ApiClients\Client\Github\Schema\WebhookCheckRunRerequestedFormEncoded' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckRunRerequestedFormEncoded($object), default => throw new \LogicException('No serialization defined for $className'), @@ -5531,6 +6095,216 @@ private function serializeValueDateTimeInterface(mixed $value): mixed } + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckRunCompleted(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookCheckRunCompleted); + $result = []; + + $action = $object->action; + after_action: $result['action'] = $action; + + + $check_run = $object->check_run; + + if ($check_run === null) { + goto after_check_run; + } + $check_run = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️CheckRunWithSimpleCheckSuite($check_run); + after_check_run: $result['check_run'] = $check_run; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckRunCompletedFormEncoded(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookCheckRunCompletedFormEncoded); + $result = []; + + $payload = $object->payload; + + if ($payload === null) { + goto after_payload; + } + after_payload: $result['payload'] = $payload; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckRunCreated(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookCheckRunCreated); + $result = []; + + $action = $object->action; + after_action: $result['action'] = $action; + + + $check_run = $object->check_run; + + if ($check_run === null) { + goto after_check_run; + } + $check_run = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️CheckRunWithSimpleCheckSuite($check_run); + after_check_run: $result['check_run'] = $check_run; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckRunCreatedFormEncoded(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookCheckRunCreatedFormEncoded); + $result = []; + + $payload = $object->payload; + + if ($payload === null) { + goto after_payload; + } + after_payload: $result['payload'] = $payload; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckRunRequestedAction(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookCheckRunRequestedAction); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $check_run = $object->check_run; + + if ($check_run === null) { + goto after_check_run; + } + $check_run = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️CheckRunWithSimpleCheckSuite($check_run); + after_check_run: $result['check_run'] = $check_run; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $requested_action = $object->requested_action; + $requested_action = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckRunRequestedAction⚡️RequestedAction($requested_action); + after_requested_action: $result['requested_action'] = $requested_action; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckRunRequestedActionFormEncoded(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookCheckRunRequestedActionFormEncoded); + $result = []; + + $payload = $object->payload; + + if ($payload === null) { + goto after_payload; + } + after_payload: $result['payload'] = $payload; + + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckRunRerequested(mixed $object): mixed { \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookCheckRunRerequested); diff --git a/src/Hydrator/WebHook/CheckSuite.php b/src/Hydrator/WebHook/CheckSuite.php index e861bf192e..f336651f46 100644 --- a/src/Hydrator/WebHook/CheckSuite.php +++ b/src/Hydrator/WebHook/CheckSuite.php @@ -23,19 +23,26 @@ public function __construct() {} public function hydrateObject(string $className, array $payload): object { return match($className) { - 'ApiClients\Client\Github\Schema\WebhookCheckSuiteRerequested' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckSuiteRerequested($payload), - 'ApiClients\Client\Github\Schema\WebhookCheckSuiteRerequested\ActionsMeta' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckSuiteRerequested⚡️ActionsMeta($payload), - 'ApiClients\Client\Github\Schema\WebhookCheckSuiteRerequested\CheckSuite' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckSuiteRerequested⚡️CheckSuite($payload), + 'ApiClients\Client\Github\Schema\WebhookCheckSuiteCompleted' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckSuiteCompleted($payload), + 'ApiClients\Client\Github\Schema\WebhookCheckSuiteRequested' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckSuiteRequested($payload), + 'ApiClients\Client\Github\Schema\WebhookCheckSuiteRerequested' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckSuiteRerequested($payload), + 'ApiClients\Client\Github\Schema\WebhookCheckSuiteCompleted\ActionsMeta' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckSuiteCompleted⚡️ActionsMeta($payload), + 'ApiClients\Client\Github\Schema\WebhookCheckSuiteCompleted\CheckSuite' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckSuiteCompleted⚡️CheckSuite($payload), 'ApiClients\Client\Github\Schema\Enterprise' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($payload), 'ApiClients\Client\Github\Schema\SimpleInstallation' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($payload), 'ApiClients\Client\Github\Schema\OrganizationSimple' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($payload), 'ApiClients\Client\Github\Schema\Repository' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($payload), 'ApiClients\Client\Github\Schema\SimpleUser' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($payload), - 'ApiClients\Client\Github\Schema\WebhookCheckSuiteRerequested\ActionsMeta\RerunInfo' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckSuiteRerequested⚡️ActionsMeta⚡️RerunInfo($payload), - 'ApiClients\Client\Github\Schema\WebhookCheckSuiteRerequested\CheckSuite\App' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckSuiteRerequested⚡️CheckSuite⚡️App($payload), + 'ApiClients\Client\Github\Schema\WebhookCheckSuiteRequested\CheckSuite' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckSuiteRequested⚡️CheckSuite($payload), + 'ApiClients\Client\Github\Schema\WebhookCheckSuiteRerequested\ActionsMeta' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckSuiteRerequested⚡️ActionsMeta($payload), + 'ApiClients\Client\Github\Schema\WebhookCheckSuiteRerequested\CheckSuite' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckSuiteRerequested⚡️CheckSuite($payload), + 'ApiClients\Client\Github\Schema\WebhookCheckSuiteCompleted\CheckSuite\App' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckSuiteCompleted⚡️CheckSuite⚡️App($payload), 'ApiClients\Client\Github\Schema\WebhookCheckSuiteCompleted\CheckSuite\HeadCommit' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckSuiteCompleted⚡️CheckSuite⚡️HeadCommit($payload), 'ApiClients\Client\Github\Schema\Repository\Permissions' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️Permissions($payload), 'ApiClients\Client\Github\Schema\Repository\TemplateRepository' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository($payload), + 'ApiClients\Client\Github\Schema\WebhookCheckSuiteRequested\CheckSuite\App' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckSuiteRequested⚡️CheckSuite⚡️App($payload), + 'ApiClients\Client\Github\Schema\WebhookCheckSuiteRerequested\ActionsMeta\RerunInfo' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckSuiteRerequested⚡️ActionsMeta⚡️RerunInfo($payload), + 'ApiClients\Client\Github\Schema\WebhookCheckSuiteRerequested\CheckSuite\App' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckSuiteRerequested⚡️CheckSuite⚡️App($payload), 'ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($payload), 'ApiClients\Client\Github\Schema\WebhookCheckSuiteCompleted\CheckSuite\App\Permissions' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckSuiteCompleted⚡️CheckSuite⚡️App⚡️Permissions($payload), 'ApiClients\Client\Github\Schema\WebhookCheckSuiteCompleted\CheckSuite\HeadCommit\Author' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckSuiteCompleted⚡️CheckSuite⚡️HeadCommit⚡️Author($payload), @@ -46,7 +53,7 @@ public function hydrateObject(string $className, array $payload): object } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckSuiteRerequested(array $payload): \ApiClients\Client\Github\Schema\WebhookCheckSuiteRerequested + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckSuiteCompleted(array $payload): \ApiClients\Client\Github\Schema\WebhookCheckSuiteCompleted { $properties = []; $missingFields = []; @@ -73,7 +80,7 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'actions_meta'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckSuiteRerequested⚡️ActionsMeta($value); + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckSuiteCompleted⚡️ActionsMeta($value); } finally { array_pop($this->hydrationStack); } @@ -93,7 +100,7 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'check_suite'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckSuiteRerequested⚡️CheckSuite($value); + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckSuiteCompleted⚡️CheckSuite($value); } finally { array_pop($this->hydrationStack); } @@ -204,202 +211,528 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh after_sender: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCheckSuiteRerequested', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCheckSuiteCompleted', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookCheckSuiteRerequested::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookCheckSuiteCompleted::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\WebhookCheckSuiteRerequested(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookCheckSuiteCompleted(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCheckSuiteRerequested', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCheckSuiteCompleted', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckSuiteRerequested⚡️ActionsMeta(array $payload): \ApiClients\Client\Github\Schema\WebhookCheckSuiteRerequested\ActionsMeta + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckSuiteRequested(array $payload): \ApiClients\Client\Github\Schema\WebhookCheckSuiteRequested { $properties = []; $missingFields = []; try { - $value = $payload['rerun_info'] ?? null; + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'rerun_info'; - goto after_rerun_info; + $missingFields[] = 'action'; + goto after_action; + } + + $properties['action'] = $value; + + after_action: + + $value = $payload['actions_meta'] ?? null; + + if ($value === null) { + $missingFields[] = 'actions_meta'; + goto after_actions_meta; } if (is_array($value)) { try { - $this->hydrationStack[] = 'rerun_info'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckSuiteRerequested⚡️ActionsMeta⚡️RerunInfo($value); + $this->hydrationStack[] = 'actions_meta'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckSuiteCompleted⚡️ActionsMeta($value); } finally { array_pop($this->hydrationStack); } } - $properties['rerun_info'] = $value; + $properties['actions_meta'] = $value; - after_rerun_info: - - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCheckSuiteRerequested\ActionsMeta', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookCheckSuiteRerequested\ActionsMeta::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\WebhookCheckSuiteRerequested\ActionsMeta(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCheckSuiteRerequested\ActionsMeta', $exception, stack: $this->hydrationStack); - } - } + after_actions_meta: - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckSuiteRerequested⚡️CheckSuite(array $payload): \ApiClients\Client\Github\Schema\WebhookCheckSuiteRerequested\CheckSuite - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['after'] ?? null; + $value = $payload['check_suite'] ?? null; if ($value === null) { - $missingFields[] = 'after'; - goto after_after; + $missingFields[] = 'check_suite'; + goto after_check_suite; } - $properties['after'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'check_suite'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckSuiteRequested⚡️CheckSuite($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['check_suite'] = $value; - after_after: + after_check_suite: - $value = $payload['app'] ?? null; + $value = $payload['enterprise'] ?? null; if ($value === null) { - $missingFields[] = 'app'; - goto after_app; + $missingFields[] = 'enterprise'; + goto after_enterprise; } if (is_array($value)) { try { - $this->hydrationStack[] = 'app'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckSuiteRerequested⚡️CheckSuite⚡️App($value); + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); } finally { array_pop($this->hydrationStack); } } - $properties['app'] = $value; + $properties['enterprise'] = $value; - after_app: + after_enterprise: - $value = $payload['before'] ?? null; + $value = $payload['installation'] ?? null; if ($value === null) { - $missingFields[] = 'before'; - goto after_before; + $missingFields[] = 'installation'; + goto after_installation; } - $properties['before'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; - after_before: + after_installation: - $value = $payload['check_runs_url'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'check_runs_url'; - goto after_check_runs_url; + $missingFields[] = 'organization'; + goto after_organization; } - $properties['check_runs_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; - after_check_runs_url: + after_organization: - $value = $payload['conclusion'] ?? null; + $value = $payload['repository'] ?? null; if ($value === null) { - $missingFields[] = 'conclusion'; - goto after_conclusion; + $missingFields[] = 'repository'; + goto after_repository; } - $properties['conclusion'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repository'] = $value; - after_conclusion: + after_repository: - $value = $payload['created_at'] ?? null; + $value = $payload['sender'] ?? null; if ($value === null) { - $missingFields[] = 'created_at'; - goto after_created_at; + $missingFields[] = 'sender'; + goto after_sender; } - $properties['created_at'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; - after_created_at: + after_sender: - $value = $payload['head_branch'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCheckSuiteRequested', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookCheckSuiteRequested::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookCheckSuiteRequested(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCheckSuiteRequested', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckSuiteRerequested(array $payload): \ApiClients\Client\Github\Schema\WebhookCheckSuiteRerequested + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'head_branch'; - goto after_head_branch; + $missingFields[] = 'action'; + goto after_action; } - $properties['head_branch'] = $value; + $properties['action'] = $value; - after_head_branch: + after_action: - $value = $payload['head_commit'] ?? null; + $value = $payload['actions_meta'] ?? null; if ($value === null) { - $missingFields[] = 'head_commit'; - goto after_head_commit; + $missingFields[] = 'actions_meta'; + goto after_actions_meta; } if (is_array($value)) { try { - $this->hydrationStack[] = 'head_commit'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckSuiteCompleted⚡️CheckSuite⚡️HeadCommit($value); + $this->hydrationStack[] = 'actions_meta'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckSuiteRerequested⚡️ActionsMeta($value); } finally { array_pop($this->hydrationStack); } } - $properties['head_commit'] = $value; + $properties['actions_meta'] = $value; - after_head_commit: + after_actions_meta: - $value = $payload['head_sha'] ?? null; + $value = $payload['check_suite'] ?? null; if ($value === null) { - $missingFields[] = 'head_sha'; - goto after_head_sha; + $missingFields[] = 'check_suite'; + goto after_check_suite; } - $properties['head_sha'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'check_suite'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckSuiteRerequested⚡️CheckSuite($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['check_suite'] = $value; - after_head_sha: + after_check_suite: - $value = $payload['id'] ?? null; + $value = $payload['enterprise'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'enterprise'; + goto after_enterprise; } - $properties['id'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['enterprise'] = $value; - after_id: + after_enterprise: - $value = $payload['latest_check_runs_count'] ?? null; + $value = $payload['installation'] ?? null; if ($value === null) { - $missingFields[] = 'latest_check_runs_count'; - goto after_latest_check_runs_count; + $missingFields[] = 'installation'; + goto after_installation; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; + + after_installation: + + $value = $payload['organization'] ?? null; + + if ($value === null) { + $missingFields[] = 'organization'; + goto after_organization; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; + + after_organization: + + $value = $payload['repository'] ?? null; + + if ($value === null) { + $missingFields[] = 'repository'; + goto after_repository; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repository'] = $value; + + after_repository: + + $value = $payload['sender'] ?? null; + + if ($value === null) { + $missingFields[] = 'sender'; + goto after_sender; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; + + after_sender: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCheckSuiteRerequested', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookCheckSuiteRerequested::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookCheckSuiteRerequested(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCheckSuiteRerequested', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckSuiteCompleted⚡️ActionsMeta(array $payload): \ApiClients\Client\Github\Schema\WebhookCheckSuiteCompleted\ActionsMeta + { + $properties = []; + $missingFields = []; + try { + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCheckSuiteCompleted\ActionsMeta', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookCheckSuiteCompleted\ActionsMeta::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookCheckSuiteCompleted\ActionsMeta(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCheckSuiteCompleted\ActionsMeta', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckSuiteCompleted⚡️CheckSuite(array $payload): \ApiClients\Client\Github\Schema\WebhookCheckSuiteCompleted\CheckSuite + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['after'] ?? null; + + if ($value === null) { + $missingFields[] = 'after'; + goto after_after; + } + + $properties['after'] = $value; + + after_after: + + $value = $payload['app'] ?? null; + + if ($value === null) { + $missingFields[] = 'app'; + goto after_app; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'app'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckSuiteCompleted⚡️CheckSuite⚡️App($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['app'] = $value; + + after_app: + + $value = $payload['before'] ?? null; + + if ($value === null) { + $missingFields[] = 'before'; + goto after_before; + } + + $properties['before'] = $value; + + after_before: + + $value = $payload['check_runs_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'check_runs_url'; + goto after_check_runs_url; + } + + $properties['check_runs_url'] = $value; + + after_check_runs_url: + + $value = $payload['conclusion'] ?? null; + + if ($value === null) { + $missingFields[] = 'conclusion'; + goto after_conclusion; + } + + $properties['conclusion'] = $value; + + after_conclusion: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'created_at'; + goto after_created_at; + } + + $properties['created_at'] = $value; + + after_created_at: + + $value = $payload['head_branch'] ?? null; + + if ($value === null) { + $missingFields[] = 'head_branch'; + goto after_head_branch; + } + + $properties['head_branch'] = $value; + + after_head_branch: + + $value = $payload['head_commit'] ?? null; + + if ($value === null) { + $missingFields[] = 'head_commit'; + goto after_head_commit; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'head_commit'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckSuiteCompleted⚡️CheckSuite⚡️HeadCommit($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['head_commit'] = $value; + + after_head_commit: + + $value = $payload['head_sha'] ?? null; + + if ($value === null) { + $missingFields[] = 'head_sha'; + goto after_head_sha; + } + + $properties['head_sha'] = $value; + + after_head_sha: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['latest_check_runs_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'latest_check_runs_count'; + goto after_latest_check_runs_count; } $properties['latest_check_runs_count'] = $value; @@ -484,17 +817,17 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh after_url: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCheckSuiteRerequested\CheckSuite', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCheckSuiteCompleted\CheckSuite', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookCheckSuiteRerequested\CheckSuite::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookCheckSuiteCompleted\CheckSuite::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\WebhookCheckSuiteRerequested\CheckSuite(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookCheckSuiteCompleted\CheckSuite(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCheckSuiteRerequested\CheckSuite', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCheckSuiteCompleted\CheckSuite', $exception, stack: $this->hydrationStack); } } @@ -2220,56 +2553,76 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Simp } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckSuiteRerequested⚡️ActionsMeta⚡️RerunInfo(array $payload): \ApiClients\Client\Github\Schema\WebhookCheckSuiteRerequested\ActionsMeta\RerunInfo + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckSuiteRequested⚡️CheckSuite(array $payload): \ApiClients\Client\Github\Schema\WebhookCheckSuiteRequested\CheckSuite { $properties = []; $missingFields = []; try { - $value = $payload['plan_id'] ?? null; + $value = $payload['after'] ?? null; if ($value === null) { - $missingFields[] = 'plan_id'; - goto after_plan_id; + $missingFields[] = 'after'; + goto after_after; } - $properties['plan_id'] = $value; + $properties['after'] = $value; - after_plan_id: + after_after: - $value = $payload['job_ids'] ?? null; + $value = $payload['app'] ?? null; if ($value === null) { - $missingFields[] = 'job_ids'; - goto after_job_ids; + $missingFields[] = 'app'; + goto after_app; } - $properties['job_ids'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'app'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckSuiteRequested⚡️CheckSuite⚡️App($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['app'] = $value; - after_job_ids: + after_app: - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCheckSuiteRerequested\ActionsMeta\RerunInfo', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookCheckSuiteRerequested\ActionsMeta\RerunInfo::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\WebhookCheckSuiteRerequested\ActionsMeta\RerunInfo(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCheckSuiteRerequested\ActionsMeta\RerunInfo', $exception, stack: $this->hydrationStack); - } - } + $value = $payload['before'] ?? null; + + if ($value === null) { + $missingFields[] = 'before'; + goto after_before; + } + + $properties['before'] = $value; + + after_before: + + $value = $payload['check_runs_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'check_runs_url'; + goto after_check_runs_url; + } + + $properties['check_runs_url'] = $value; + + after_check_runs_url: + + $value = $payload['conclusion'] ?? null; + + if ($value === null) { + $missingFields[] = 'conclusion'; + goto after_conclusion; + } + + $properties['conclusion'] = $value; + + after_conclusion: - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckSuiteRerequested⚡️CheckSuite⚡️App(array $payload): \ApiClients\Client\Github\Schema\WebhookCheckSuiteRerequested\CheckSuite\App - { - $properties = []; - $missingFields = []; - try { - $value = $payload['created_at'] ?? null; if ($value === null) { @@ -2281,49 +2634,47 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh after_created_at: - $value = $payload['description'] ?? null; + $value = $payload['head_branch'] ?? null; if ($value === null) { - $missingFields[] = 'description'; - goto after_description; + $missingFields[] = 'head_branch'; + goto after_head_branch; } - $properties['description'] = $value; + $properties['head_branch'] = $value; - after_description: + after_head_branch: - $value = $payload['events'] ?? null; + $value = $payload['head_commit'] ?? null; if ($value === null) { - $missingFields[] = 'events'; - goto after_events; + $missingFields[] = 'head_commit'; + goto after_head_commit; } - $properties['events'] = $value; - - after_events: - - $value = $payload['external_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'external_url'; - goto after_external_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'head_commit'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckSuiteCompleted⚡️CheckSuite⚡️HeadCommit($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['external_url'] = $value; + $properties['head_commit'] = $value; - after_external_url: + after_head_commit: - $value = $payload['html_url'] ?? null; + $value = $payload['head_sha'] ?? null; if ($value === null) { - $missingFields[] = 'html_url'; - goto after_html_url; + $missingFields[] = 'head_sha'; + goto after_head_sha; } - $properties['html_url'] = $value; + $properties['head_sha'] = $value; - after_html_url: + after_head_sha: $value = $payload['id'] ?? null; @@ -2336,16 +2687,16 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh after_id: - $value = $payload['name'] ?? null; + $value = $payload['latest_check_runs_count'] ?? null; if ($value === null) { - $missingFields[] = 'name'; - goto after_name; + $missingFields[] = 'latest_check_runs_count'; + goto after_latest_check_runs_count; } - $properties['name'] = $value; + $properties['latest_check_runs_count'] = $value; - after_name: + after_latest_check_runs_count: $value = $payload['node_id'] ?? null; @@ -2358,56 +2709,49 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh after_node_id: - $value = $payload['owner'] ?? null; + $value = $payload['pull_requests'] ?? null; if ($value === null) { - $missingFields[] = 'owner'; - goto after_owner; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'owner'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'pull_requests'; + goto after_pull_requests; } - $properties['owner'] = $value; + $properties['pull_requests'] = $value; - after_owner: + after_pull_requests: - $value = $payload['permissions'] ?? null; + $value = $payload['rerequestable'] ?? null; if ($value === null) { - $missingFields[] = 'permissions'; - goto after_permissions; + $missingFields[] = 'rerequestable'; + goto after_rerequestable; } - if (is_array($value)) { - try { - $this->hydrationStack[] = 'permissions'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckSuiteCompleted⚡️CheckSuite⚡️App⚡️Permissions($value); - } finally { - array_pop($this->hydrationStack); - } + $properties['rerequestable'] = $value; + + after_rerequestable: + + $value = $payload['runs_rerequestable'] ?? null; + + if ($value === null) { + $missingFields[] = 'runs_rerequestable'; + goto after_runs_rerequestable; } - $properties['permissions'] = $value; + $properties['runs_rerequestable'] = $value; - after_permissions: + after_runs_rerequestable: - $value = $payload['slug'] ?? null; + $value = $payload['status'] ?? null; if ($value === null) { - $missingFields[] = 'slug'; - goto after_slug; + $missingFields[] = 'status'; + goto after_status; } - $properties['slug'] = $value; + $properties['status'] = $value; - after_slug: + after_status: $value = $payload['updated_at'] ?? null; @@ -2420,221 +2764,219 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh after_updated_at: + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCheckSuiteRerequested\CheckSuite\App', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCheckSuiteRequested\CheckSuite', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookCheckSuiteRerequested\CheckSuite\App::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookCheckSuiteRequested\CheckSuite::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\WebhookCheckSuiteRerequested\CheckSuite\App(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookCheckSuiteRequested\CheckSuite(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCheckSuiteRerequested\CheckSuite\App', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCheckSuiteRequested\CheckSuite', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckSuiteCompleted⚡️CheckSuite⚡️HeadCommit(array $payload): \ApiClients\Client\Github\Schema\WebhookCheckSuiteCompleted\CheckSuite\HeadCommit + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckSuiteRerequested⚡️ActionsMeta(array $payload): \ApiClients\Client\Github\Schema\WebhookCheckSuiteRerequested\ActionsMeta { $properties = []; $missingFields = []; try { - $value = $payload['author'] ?? null; + $value = $payload['rerun_info'] ?? null; if ($value === null) { - $missingFields[] = 'author'; - goto after_author; + $missingFields[] = 'rerun_info'; + goto after_rerun_info; } if (is_array($value)) { try { - $this->hydrationStack[] = 'author'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckSuiteCompleted⚡️CheckSuite⚡️HeadCommit⚡️Author($value); + $this->hydrationStack[] = 'rerun_info'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckSuiteRerequested⚡️ActionsMeta⚡️RerunInfo($value); } finally { array_pop($this->hydrationStack); } } - $properties['author'] = $value; + $properties['rerun_info'] = $value; - after_author: + after_rerun_info: - $value = $payload['committer'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCheckSuiteRerequested\ActionsMeta', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookCheckSuiteRerequested\ActionsMeta::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookCheckSuiteRerequested\ActionsMeta(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCheckSuiteRerequested\ActionsMeta', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckSuiteRerequested⚡️CheckSuite(array $payload): \ApiClients\Client\Github\Schema\WebhookCheckSuiteRerequested\CheckSuite + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['after'] ?? null; if ($value === null) { - $missingFields[] = 'committer'; - goto after_committer; + $missingFields[] = 'after'; + goto after_after; + } + + $properties['after'] = $value; + + after_after: + + $value = $payload['app'] ?? null; + + if ($value === null) { + $missingFields[] = 'app'; + goto after_app; } if (is_array($value)) { try { - $this->hydrationStack[] = 'committer'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckSuiteCompleted⚡️CheckSuite⚡️HeadCommit⚡️Author($value); + $this->hydrationStack[] = 'app'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckSuiteRerequested⚡️CheckSuite⚡️App($value); } finally { array_pop($this->hydrationStack); } } - $properties['committer'] = $value; + $properties['app'] = $value; - after_committer: + after_app: - $value = $payload['id'] ?? null; + $value = $payload['before'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'before'; + goto after_before; } - $properties['id'] = $value; + $properties['before'] = $value; - after_id: + after_before: - $value = $payload['message'] ?? null; + $value = $payload['check_runs_url'] ?? null; if ($value === null) { - $missingFields[] = 'message'; - goto after_message; + $missingFields[] = 'check_runs_url'; + goto after_check_runs_url; } - $properties['message'] = $value; + $properties['check_runs_url'] = $value; - after_message: + after_check_runs_url: - $value = $payload['timestamp'] ?? null; + $value = $payload['conclusion'] ?? null; if ($value === null) { - $missingFields[] = 'timestamp'; - goto after_timestamp; + $missingFields[] = 'conclusion'; + goto after_conclusion; } - $properties['timestamp'] = $value; + $properties['conclusion'] = $value; - after_timestamp: + after_conclusion: - $value = $payload['tree_id'] ?? null; + $value = $payload['created_at'] ?? null; if ($value === null) { - $missingFields[] = 'tree_id'; - goto after_tree_id; + $missingFields[] = 'created_at'; + goto after_created_at; } - $properties['tree_id'] = $value; + $properties['created_at'] = $value; - after_tree_id: - - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCheckSuiteCompleted\CheckSuite\HeadCommit', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookCheckSuiteCompleted\CheckSuite\HeadCommit::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\WebhookCheckSuiteCompleted\CheckSuite\HeadCommit(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCheckSuiteCompleted\CheckSuite\HeadCommit', $exception, stack: $this->hydrationStack); - } - } + after_created_at: - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️Permissions(array $payload): \ApiClients\Client\Github\Schema\Repository\Permissions - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['admin'] ?? null; + $value = $payload['head_branch'] ?? null; if ($value === null) { - $missingFields[] = 'admin'; - goto after_admin; + $missingFields[] = 'head_branch'; + goto after_head_branch; } - $properties['admin'] = $value; + $properties['head_branch'] = $value; - after_admin: + after_head_branch: - $value = $payload['pull'] ?? null; + $value = $payload['head_commit'] ?? null; if ($value === null) { - $missingFields[] = 'pull'; - goto after_pull; + $missingFields[] = 'head_commit'; + goto after_head_commit; } - $properties['pull'] = $value; - - after_pull: - - $value = $payload['triage'] ?? null; - - if ($value === null) { - $missingFields[] = 'triage'; - goto after_triage; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'head_commit'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckSuiteCompleted⚡️CheckSuite⚡️HeadCommit($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['triage'] = $value; + $properties['head_commit'] = $value; - after_triage: + after_head_commit: - $value = $payload['push'] ?? null; + $value = $payload['head_sha'] ?? null; if ($value === null) { - $missingFields[] = 'push'; - goto after_push; + $missingFields[] = 'head_sha'; + goto after_head_sha; } - $properties['push'] = $value; + $properties['head_sha'] = $value; - after_push: + after_head_sha: - $value = $payload['maintain'] ?? null; + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'maintain'; - goto after_maintain; + $missingFields[] = 'id'; + goto after_id; } - $properties['maintain'] = $value; + $properties['id'] = $value; - after_maintain: - - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\Permissions', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\Permissions::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\Repository\Permissions(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\Permissions', $exception, stack: $this->hydrationStack); - } - } + after_id: - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository(array $payload): \ApiClients\Client\Github\Schema\Repository\TemplateRepository - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['id'] ?? null; + $value = $payload['latest_check_runs_count'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'latest_check_runs_count'; + goto after_latest_check_runs_count; } - $properties['id'] = $value; + $properties['latest_check_runs_count'] = $value; - after_id: + after_latest_check_runs_count: $value = $payload['node_id'] ?? null; @@ -2647,69 +2989,534 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repo after_node_id: - $value = $payload['name'] ?? null; + $value = $payload['pull_requests'] ?? null; if ($value === null) { - $missingFields[] = 'name'; - goto after_name; + $missingFields[] = 'pull_requests'; + goto after_pull_requests; } - $properties['name'] = $value; + $properties['pull_requests'] = $value; - after_name: + after_pull_requests: - $value = $payload['full_name'] ?? null; + $value = $payload['rerequestable'] ?? null; if ($value === null) { - $missingFields[] = 'full_name'; - goto after_full_name; + $missingFields[] = 'rerequestable'; + goto after_rerequestable; } - $properties['full_name'] = $value; + $properties['rerequestable'] = $value; - after_full_name: + after_rerequestable: - $value = $payload['owner'] ?? null; + $value = $payload['runs_rerequestable'] ?? null; if ($value === null) { - $missingFields[] = 'owner'; - goto after_owner; + $missingFields[] = 'runs_rerequestable'; + goto after_runs_rerequestable; } - if (is_array($value)) { - try { - $this->hydrationStack[] = 'owner'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner($value); - } finally { - array_pop($this->hydrationStack); - } + $properties['runs_rerequestable'] = $value; + + after_runs_rerequestable: + + $value = $payload['status'] ?? null; + + if ($value === null) { + $missingFields[] = 'status'; + goto after_status; } - $properties['owner'] = $value; + $properties['status'] = $value; - after_owner: + after_status: - $value = $payload['private'] ?? null; + $value = $payload['updated_at'] ?? null; if ($value === null) { - $missingFields[] = 'private'; - goto after_private; + $missingFields[] = 'updated_at'; + goto after_updated_at; } - $properties['private'] = $value; + $properties['updated_at'] = $value; - after_private: + after_updated_at: - $value = $payload['html_url'] ?? null; + $value = $payload['url'] ?? null; if ($value === null) { - $missingFields[] = 'html_url'; - goto after_html_url; + $missingFields[] = 'url'; + goto after_url; } - $properties['html_url'] = $value; + $properties['url'] = $value; - after_html_url: + after_url: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCheckSuiteRerequested\CheckSuite', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookCheckSuiteRerequested\CheckSuite::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookCheckSuiteRerequested\CheckSuite(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCheckSuiteRerequested\CheckSuite', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckSuiteCompleted⚡️CheckSuite⚡️App(array $payload): \ApiClients\Client\Github\Schema\WebhookCheckSuiteCompleted\CheckSuite\App + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'created_at'; + goto after_created_at; + } + + $properties['created_at'] = $value; + + after_created_at: + + $value = $payload['description'] ?? null; + + if ($value === null) { + $missingFields[] = 'description'; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['events'] ?? null; + + if ($value === null) { + $missingFields[] = 'events'; + goto after_events; + } + + $properties['events'] = $value; + + after_events: + + $value = $payload['external_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'external_url'; + goto after_external_url; + } + + $properties['external_url'] = $value; + + after_external_url: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } + + $properties['html_url'] = $value; + + after_html_url: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['owner'] ?? null; + + if ($value === null) { + $missingFields[] = 'owner'; + goto after_owner; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'owner'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['owner'] = $value; + + after_owner: + + $value = $payload['permissions'] ?? null; + + if ($value === null) { + $missingFields[] = 'permissions'; + goto after_permissions; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'permissions'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckSuiteCompleted⚡️CheckSuite⚡️App⚡️Permissions($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['permissions'] = $value; + + after_permissions: + + $value = $payload['slug'] ?? null; + + if ($value === null) { + $missingFields[] = 'slug'; + goto after_slug; + } + + $properties['slug'] = $value; + + after_slug: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'updated_at'; + goto after_updated_at; + } + + $properties['updated_at'] = $value; + + after_updated_at: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCheckSuiteCompleted\CheckSuite\App', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookCheckSuiteCompleted\CheckSuite\App::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookCheckSuiteCompleted\CheckSuite\App(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCheckSuiteCompleted\CheckSuite\App', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckSuiteCompleted⚡️CheckSuite⚡️HeadCommit(array $payload): \ApiClients\Client\Github\Schema\WebhookCheckSuiteCompleted\CheckSuite\HeadCommit + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['author'] ?? null; + + if ($value === null) { + $missingFields[] = 'author'; + goto after_author; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'author'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckSuiteCompleted⚡️CheckSuite⚡️HeadCommit⚡️Author($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['author'] = $value; + + after_author: + + $value = $payload['committer'] ?? null; + + if ($value === null) { + $missingFields[] = 'committer'; + goto after_committer; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'committer'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckSuiteCompleted⚡️CheckSuite⚡️HeadCommit⚡️Author($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['committer'] = $value; + + after_committer: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['message'] ?? null; + + if ($value === null) { + $missingFields[] = 'message'; + goto after_message; + } + + $properties['message'] = $value; + + after_message: + + $value = $payload['timestamp'] ?? null; + + if ($value === null) { + $missingFields[] = 'timestamp'; + goto after_timestamp; + } + + $properties['timestamp'] = $value; + + after_timestamp: + + $value = $payload['tree_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'tree_id'; + goto after_tree_id; + } + + $properties['tree_id'] = $value; + + after_tree_id: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCheckSuiteCompleted\CheckSuite\HeadCommit', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookCheckSuiteCompleted\CheckSuite\HeadCommit::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookCheckSuiteCompleted\CheckSuite\HeadCommit(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCheckSuiteCompleted\CheckSuite\HeadCommit', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️Permissions(array $payload): \ApiClients\Client\Github\Schema\Repository\Permissions + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['admin'] ?? null; + + if ($value === null) { + $missingFields[] = 'admin'; + goto after_admin; + } + + $properties['admin'] = $value; + + after_admin: + + $value = $payload['pull'] ?? null; + + if ($value === null) { + $missingFields[] = 'pull'; + goto after_pull; + } + + $properties['pull'] = $value; + + after_pull: + + $value = $payload['triage'] ?? null; + + if ($value === null) { + $missingFields[] = 'triage'; + goto after_triage; + } + + $properties['triage'] = $value; + + after_triage: + + $value = $payload['push'] ?? null; + + if ($value === null) { + $missingFields[] = 'push'; + goto after_push; + } + + $properties['push'] = $value; + + after_push: + + $value = $payload['maintain'] ?? null; + + if ($value === null) { + $missingFields[] = 'maintain'; + goto after_maintain; + } + + $properties['maintain'] = $value; + + after_maintain: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\Permissions', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\Permissions::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\Repository\Permissions(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\Permissions', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository(array $payload): \ApiClients\Client\Github\Schema\Repository\TemplateRepository + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['full_name'] ?? null; + + if ($value === null) { + $missingFields[] = 'full_name'; + goto after_full_name; + } + + $properties['full_name'] = $value; + + after_full_name: + + $value = $payload['owner'] ?? null; + + if ($value === null) { + $missingFields[] = 'owner'; + goto after_owner; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'owner'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['owner'] = $value; + + after_owner: + + $value = $payload['private'] ?? null; + + if ($value === null) { + $missingFields[] = 'private'; + goto after_private; + } + + $properties['private'] = $value; + + after_private: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } + + $properties['html_url'] = $value; + + after_html_url: $value = $payload['description'] ?? null; @@ -2725,706 +3532,1010 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repo $value = $payload['fork'] ?? null; if ($value === null) { - $missingFields[] = 'fork'; - goto after_fork; + $missingFields[] = 'fork'; + goto after_fork; + } + + $properties['fork'] = $value; + + after_fork: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['archive_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'archive_url'; + goto after_archive_url; } - $properties['fork'] = $value; + $properties['archive_url'] = $value; - after_fork: + after_archive_url: - $value = $payload['url'] ?? null; + $value = $payload['assignees_url'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $missingFields[] = 'assignees_url'; + goto after_assignees_url; + } + + $properties['assignees_url'] = $value; + + after_assignees_url: + + $value = $payload['blobs_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'blobs_url'; + goto after_blobs_url; + } + + $properties['blobs_url'] = $value; + + after_blobs_url: + + $value = $payload['branches_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'branches_url'; + goto after_branches_url; + } + + $properties['branches_url'] = $value; + + after_branches_url: + + $value = $payload['collaborators_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'collaborators_url'; + goto after_collaborators_url; + } + + $properties['collaborators_url'] = $value; + + after_collaborators_url: + + $value = $payload['comments_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'comments_url'; + goto after_comments_url; + } + + $properties['comments_url'] = $value; + + after_comments_url: + + $value = $payload['commits_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'commits_url'; + goto after_commits_url; + } + + $properties['commits_url'] = $value; + + after_commits_url: + + $value = $payload['compare_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'compare_url'; + goto after_compare_url; + } + + $properties['compare_url'] = $value; + + after_compare_url: + + $value = $payload['contents_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'contents_url'; + goto after_contents_url; + } + + $properties['contents_url'] = $value; + + after_contents_url: + + $value = $payload['contributors_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'contributors_url'; + goto after_contributors_url; + } + + $properties['contributors_url'] = $value; + + after_contributors_url: + + $value = $payload['deployments_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'deployments_url'; + goto after_deployments_url; + } + + $properties['deployments_url'] = $value; + + after_deployments_url: + + $value = $payload['downloads_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'downloads_url'; + goto after_downloads_url; + } + + $properties['downloads_url'] = $value; + + after_downloads_url: + + $value = $payload['events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'events_url'; + goto after_events_url; + } + + $properties['events_url'] = $value; + + after_events_url: + + $value = $payload['forks_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'forks_url'; + goto after_forks_url; + } + + $properties['forks_url'] = $value; + + after_forks_url: + + $value = $payload['git_commits_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_commits_url'; + goto after_git_commits_url; + } + + $properties['git_commits_url'] = $value; + + after_git_commits_url: + + $value = $payload['git_refs_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_refs_url'; + goto after_git_refs_url; + } + + $properties['git_refs_url'] = $value; + + after_git_refs_url: + + $value = $payload['git_tags_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_tags_url'; + goto after_git_tags_url; + } + + $properties['git_tags_url'] = $value; + + after_git_tags_url: + + $value = $payload['git_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_url'; + goto after_git_url; + } + + $properties['git_url'] = $value; + + after_git_url: + + $value = $payload['issue_comment_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issue_comment_url'; + goto after_issue_comment_url; + } + + $properties['issue_comment_url'] = $value; + + after_issue_comment_url: + + $value = $payload['issue_events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issue_events_url'; + goto after_issue_events_url; + } + + $properties['issue_events_url'] = $value; + + after_issue_events_url: + + $value = $payload['issues_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issues_url'; + goto after_issues_url; + } + + $properties['issues_url'] = $value; + + after_issues_url: + + $value = $payload['keys_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'keys_url'; + goto after_keys_url; + } + + $properties['keys_url'] = $value; + + after_keys_url: + + $value = $payload['labels_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'labels_url'; + goto after_labels_url; + } + + $properties['labels_url'] = $value; + + after_labels_url: + + $value = $payload['languages_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'languages_url'; + goto after_languages_url; } - $properties['url'] = $value; + $properties['languages_url'] = $value; - after_url: + after_languages_url: - $value = $payload['archive_url'] ?? null; + $value = $payload['merges_url'] ?? null; if ($value === null) { - $missingFields[] = 'archive_url'; - goto after_archive_url; + $missingFields[] = 'merges_url'; + goto after_merges_url; } - $properties['archive_url'] = $value; + $properties['merges_url'] = $value; - after_archive_url: + after_merges_url: - $value = $payload['assignees_url'] ?? null; + $value = $payload['milestones_url'] ?? null; if ($value === null) { - $missingFields[] = 'assignees_url'; - goto after_assignees_url; + $missingFields[] = 'milestones_url'; + goto after_milestones_url; } - $properties['assignees_url'] = $value; + $properties['milestones_url'] = $value; - after_assignees_url: + after_milestones_url: - $value = $payload['blobs_url'] ?? null; + $value = $payload['notifications_url'] ?? null; if ($value === null) { - $missingFields[] = 'blobs_url'; - goto after_blobs_url; + $missingFields[] = 'notifications_url'; + goto after_notifications_url; } - $properties['blobs_url'] = $value; + $properties['notifications_url'] = $value; - after_blobs_url: + after_notifications_url: - $value = $payload['branches_url'] ?? null; + $value = $payload['pulls_url'] ?? null; if ($value === null) { - $missingFields[] = 'branches_url'; - goto after_branches_url; + $missingFields[] = 'pulls_url'; + goto after_pulls_url; } - $properties['branches_url'] = $value; + $properties['pulls_url'] = $value; - after_branches_url: + after_pulls_url: - $value = $payload['collaborators_url'] ?? null; + $value = $payload['releases_url'] ?? null; if ($value === null) { - $missingFields[] = 'collaborators_url'; - goto after_collaborators_url; + $missingFields[] = 'releases_url'; + goto after_releases_url; } - $properties['collaborators_url'] = $value; + $properties['releases_url'] = $value; - after_collaborators_url: + after_releases_url: - $value = $payload['comments_url'] ?? null; + $value = $payload['ssh_url'] ?? null; if ($value === null) { - $missingFields[] = 'comments_url'; - goto after_comments_url; + $missingFields[] = 'ssh_url'; + goto after_ssh_url; } - $properties['comments_url'] = $value; + $properties['ssh_url'] = $value; - after_comments_url: + after_ssh_url: - $value = $payload['commits_url'] ?? null; + $value = $payload['stargazers_url'] ?? null; if ($value === null) { - $missingFields[] = 'commits_url'; - goto after_commits_url; + $missingFields[] = 'stargazers_url'; + goto after_stargazers_url; } - $properties['commits_url'] = $value; + $properties['stargazers_url'] = $value; - after_commits_url: + after_stargazers_url: - $value = $payload['compare_url'] ?? null; + $value = $payload['statuses_url'] ?? null; if ($value === null) { - $missingFields[] = 'compare_url'; - goto after_compare_url; + $missingFields[] = 'statuses_url'; + goto after_statuses_url; } - $properties['compare_url'] = $value; + $properties['statuses_url'] = $value; - after_compare_url: + after_statuses_url: - $value = $payload['contents_url'] ?? null; + $value = $payload['subscribers_url'] ?? null; if ($value === null) { - $missingFields[] = 'contents_url'; - goto after_contents_url; + $missingFields[] = 'subscribers_url'; + goto after_subscribers_url; } - $properties['contents_url'] = $value; + $properties['subscribers_url'] = $value; - after_contents_url: + after_subscribers_url: - $value = $payload['contributors_url'] ?? null; + $value = $payload['subscription_url'] ?? null; if ($value === null) { - $missingFields[] = 'contributors_url'; - goto after_contributors_url; + $missingFields[] = 'subscription_url'; + goto after_subscription_url; } - $properties['contributors_url'] = $value; + $properties['subscription_url'] = $value; - after_contributors_url: + after_subscription_url: - $value = $payload['deployments_url'] ?? null; + $value = $payload['tags_url'] ?? null; if ($value === null) { - $missingFields[] = 'deployments_url'; - goto after_deployments_url; + $missingFields[] = 'tags_url'; + goto after_tags_url; } - $properties['deployments_url'] = $value; + $properties['tags_url'] = $value; - after_deployments_url: + after_tags_url: - $value = $payload['downloads_url'] ?? null; + $value = $payload['teams_url'] ?? null; if ($value === null) { - $missingFields[] = 'downloads_url'; - goto after_downloads_url; + $missingFields[] = 'teams_url'; + goto after_teams_url; } - $properties['downloads_url'] = $value; + $properties['teams_url'] = $value; - after_downloads_url: + after_teams_url: - $value = $payload['events_url'] ?? null; + $value = $payload['trees_url'] ?? null; if ($value === null) { - $missingFields[] = 'events_url'; - goto after_events_url; + $missingFields[] = 'trees_url'; + goto after_trees_url; } - $properties['events_url'] = $value; + $properties['trees_url'] = $value; - after_events_url: + after_trees_url: - $value = $payload['forks_url'] ?? null; + $value = $payload['clone_url'] ?? null; if ($value === null) { - $missingFields[] = 'forks_url'; - goto after_forks_url; + $missingFields[] = 'clone_url'; + goto after_clone_url; } - $properties['forks_url'] = $value; + $properties['clone_url'] = $value; - after_forks_url: + after_clone_url: - $value = $payload['git_commits_url'] ?? null; + $value = $payload['mirror_url'] ?? null; if ($value === null) { - $missingFields[] = 'git_commits_url'; - goto after_git_commits_url; + $missingFields[] = 'mirror_url'; + goto after_mirror_url; } - $properties['git_commits_url'] = $value; + $properties['mirror_url'] = $value; - after_git_commits_url: + after_mirror_url: - $value = $payload['git_refs_url'] ?? null; + $value = $payload['hooks_url'] ?? null; if ($value === null) { - $missingFields[] = 'git_refs_url'; - goto after_git_refs_url; + $missingFields[] = 'hooks_url'; + goto after_hooks_url; } - $properties['git_refs_url'] = $value; + $properties['hooks_url'] = $value; - after_git_refs_url: + after_hooks_url: - $value = $payload['git_tags_url'] ?? null; + $value = $payload['svn_url'] ?? null; if ($value === null) { - $missingFields[] = 'git_tags_url'; - goto after_git_tags_url; + $missingFields[] = 'svn_url'; + goto after_svn_url; } - $properties['git_tags_url'] = $value; + $properties['svn_url'] = $value; - after_git_tags_url: + after_svn_url: - $value = $payload['git_url'] ?? null; + $value = $payload['homepage'] ?? null; if ($value === null) { - $missingFields[] = 'git_url'; - goto after_git_url; + $missingFields[] = 'homepage'; + goto after_homepage; } - $properties['git_url'] = $value; + $properties['homepage'] = $value; - after_git_url: + after_homepage: - $value = $payload['issue_comment_url'] ?? null; + $value = $payload['language'] ?? null; if ($value === null) { - $missingFields[] = 'issue_comment_url'; - goto after_issue_comment_url; + $missingFields[] = 'language'; + goto after_language; } - $properties['issue_comment_url'] = $value; + $properties['language'] = $value; - after_issue_comment_url: + after_language: - $value = $payload['issue_events_url'] ?? null; + $value = $payload['forks_count'] ?? null; if ($value === null) { - $missingFields[] = 'issue_events_url'; - goto after_issue_events_url; + $missingFields[] = 'forks_count'; + goto after_forks_count; } - $properties['issue_events_url'] = $value; + $properties['forks_count'] = $value; - after_issue_events_url: + after_forks_count: - $value = $payload['issues_url'] ?? null; + $value = $payload['stargazers_count'] ?? null; if ($value === null) { - $missingFields[] = 'issues_url'; - goto after_issues_url; + $missingFields[] = 'stargazers_count'; + goto after_stargazers_count; } - $properties['issues_url'] = $value; + $properties['stargazers_count'] = $value; - after_issues_url: + after_stargazers_count: - $value = $payload['keys_url'] ?? null; + $value = $payload['watchers_count'] ?? null; if ($value === null) { - $missingFields[] = 'keys_url'; - goto after_keys_url; + $missingFields[] = 'watchers_count'; + goto after_watchers_count; } - $properties['keys_url'] = $value; + $properties['watchers_count'] = $value; - after_keys_url: + after_watchers_count: - $value = $payload['labels_url'] ?? null; + $value = $payload['size'] ?? null; if ($value === null) { - $missingFields[] = 'labels_url'; - goto after_labels_url; + $missingFields[] = 'size'; + goto after_size; } - $properties['labels_url'] = $value; + $properties['size'] = $value; - after_labels_url: + after_size: - $value = $payload['languages_url'] ?? null; + $value = $payload['default_branch'] ?? null; if ($value === null) { - $missingFields[] = 'languages_url'; - goto after_languages_url; + $missingFields[] = 'default_branch'; + goto after_default_branch; } - $properties['languages_url'] = $value; + $properties['default_branch'] = $value; - after_languages_url: + after_default_branch: - $value = $payload['merges_url'] ?? null; + $value = $payload['open_issues_count'] ?? null; if ($value === null) { - $missingFields[] = 'merges_url'; - goto after_merges_url; + $missingFields[] = 'open_issues_count'; + goto after_open_issues_count; } - $properties['merges_url'] = $value; + $properties['open_issues_count'] = $value; - after_merges_url: + after_open_issues_count: - $value = $payload['milestones_url'] ?? null; + $value = $payload['is_template'] ?? null; if ($value === null) { - $missingFields[] = 'milestones_url'; - goto after_milestones_url; + $missingFields[] = 'is_template'; + goto after_is_template; } - $properties['milestones_url'] = $value; + $properties['is_template'] = $value; - after_milestones_url: + after_is_template: - $value = $payload['notifications_url'] ?? null; + $value = $payload['topics'] ?? null; if ($value === null) { - $missingFields[] = 'notifications_url'; - goto after_notifications_url; + $missingFields[] = 'topics'; + goto after_topics; } - $properties['notifications_url'] = $value; + $properties['topics'] = $value; - after_notifications_url: + after_topics: - $value = $payload['pulls_url'] ?? null; + $value = $payload['has_issues'] ?? null; if ($value === null) { - $missingFields[] = 'pulls_url'; - goto after_pulls_url; + $missingFields[] = 'has_issues'; + goto after_has_issues; } - $properties['pulls_url'] = $value; + $properties['has_issues'] = $value; - after_pulls_url: + after_has_issues: - $value = $payload['releases_url'] ?? null; + $value = $payload['has_projects'] ?? null; if ($value === null) { - $missingFields[] = 'releases_url'; - goto after_releases_url; + $missingFields[] = 'has_projects'; + goto after_has_projects; } - $properties['releases_url'] = $value; + $properties['has_projects'] = $value; - after_releases_url: + after_has_projects: - $value = $payload['ssh_url'] ?? null; + $value = $payload['has_wiki'] ?? null; if ($value === null) { - $missingFields[] = 'ssh_url'; - goto after_ssh_url; + $missingFields[] = 'has_wiki'; + goto after_has_wiki; } - $properties['ssh_url'] = $value; + $properties['has_wiki'] = $value; - after_ssh_url: + after_has_wiki: - $value = $payload['stargazers_url'] ?? null; + $value = $payload['has_pages'] ?? null; if ($value === null) { - $missingFields[] = 'stargazers_url'; - goto after_stargazers_url; + $missingFields[] = 'has_pages'; + goto after_has_pages; } - $properties['stargazers_url'] = $value; + $properties['has_pages'] = $value; - after_stargazers_url: + after_has_pages: - $value = $payload['statuses_url'] ?? null; + $value = $payload['has_downloads'] ?? null; if ($value === null) { - $missingFields[] = 'statuses_url'; - goto after_statuses_url; + $missingFields[] = 'has_downloads'; + goto after_has_downloads; } - $properties['statuses_url'] = $value; + $properties['has_downloads'] = $value; - after_statuses_url: + after_has_downloads: - $value = $payload['subscribers_url'] ?? null; + $value = $payload['archived'] ?? null; if ($value === null) { - $missingFields[] = 'subscribers_url'; - goto after_subscribers_url; + $missingFields[] = 'archived'; + goto after_archived; } - $properties['subscribers_url'] = $value; + $properties['archived'] = $value; - after_subscribers_url: + after_archived: - $value = $payload['subscription_url'] ?? null; + $value = $payload['disabled'] ?? null; if ($value === null) { - $missingFields[] = 'subscription_url'; - goto after_subscription_url; + $missingFields[] = 'disabled'; + goto after_disabled; } - $properties['subscription_url'] = $value; + $properties['disabled'] = $value; - after_subscription_url: + after_disabled: - $value = $payload['tags_url'] ?? null; + $value = $payload['visibility'] ?? null; if ($value === null) { - $missingFields[] = 'tags_url'; - goto after_tags_url; + $missingFields[] = 'visibility'; + goto after_visibility; } - $properties['tags_url'] = $value; + $properties['visibility'] = $value; - after_tags_url: + after_visibility: - $value = $payload['teams_url'] ?? null; + $value = $payload['pushed_at'] ?? null; if ($value === null) { - $missingFields[] = 'teams_url'; - goto after_teams_url; + $missingFields[] = 'pushed_at'; + goto after_pushed_at; } - $properties['teams_url'] = $value; + $properties['pushed_at'] = $value; - after_teams_url: + after_pushed_at: - $value = $payload['trees_url'] ?? null; + $value = $payload['created_at'] ?? null; if ($value === null) { - $missingFields[] = 'trees_url'; - goto after_trees_url; + $missingFields[] = 'created_at'; + goto after_created_at; } - $properties['trees_url'] = $value; + $properties['created_at'] = $value; - after_trees_url: + after_created_at: - $value = $payload['clone_url'] ?? null; + $value = $payload['updated_at'] ?? null; if ($value === null) { - $missingFields[] = 'clone_url'; - goto after_clone_url; + $missingFields[] = 'updated_at'; + goto after_updated_at; } - $properties['clone_url'] = $value; + $properties['updated_at'] = $value; - after_clone_url: + after_updated_at: - $value = $payload['mirror_url'] ?? null; + $value = $payload['permissions'] ?? null; if ($value === null) { - $missingFields[] = 'mirror_url'; - goto after_mirror_url; + $missingFields[] = 'permissions'; + goto after_permissions; } - $properties['mirror_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'permissions'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Permissions($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['permissions'] = $value; - after_mirror_url: + after_permissions: - $value = $payload['hooks_url'] ?? null; + $value = $payload['allow_rebase_merge'] ?? null; if ($value === null) { - $missingFields[] = 'hooks_url'; - goto after_hooks_url; + $missingFields[] = 'allow_rebase_merge'; + goto after_allow_rebase_merge; } - $properties['hooks_url'] = $value; + $properties['allow_rebase_merge'] = $value; - after_hooks_url: + after_allow_rebase_merge: - $value = $payload['svn_url'] ?? null; + $value = $payload['temp_clone_token'] ?? null; if ($value === null) { - $missingFields[] = 'svn_url'; - goto after_svn_url; + $missingFields[] = 'temp_clone_token'; + goto after_temp_clone_token; } - $properties['svn_url'] = $value; + $properties['temp_clone_token'] = $value; - after_svn_url: + after_temp_clone_token: - $value = $payload['homepage'] ?? null; + $value = $payload['allow_squash_merge'] ?? null; if ($value === null) { - $missingFields[] = 'homepage'; - goto after_homepage; + $missingFields[] = 'allow_squash_merge'; + goto after_allow_squash_merge; } - $properties['homepage'] = $value; + $properties['allow_squash_merge'] = $value; - after_homepage: + after_allow_squash_merge: - $value = $payload['language'] ?? null; + $value = $payload['allow_auto_merge'] ?? null; if ($value === null) { - $missingFields[] = 'language'; - goto after_language; + $missingFields[] = 'allow_auto_merge'; + goto after_allow_auto_merge; } - $properties['language'] = $value; + $properties['allow_auto_merge'] = $value; - after_language: + after_allow_auto_merge: - $value = $payload['forks_count'] ?? null; + $value = $payload['delete_branch_on_merge'] ?? null; if ($value === null) { - $missingFields[] = 'forks_count'; - goto after_forks_count; + $missingFields[] = 'delete_branch_on_merge'; + goto after_delete_branch_on_merge; } - $properties['forks_count'] = $value; + $properties['delete_branch_on_merge'] = $value; - after_forks_count: + after_delete_branch_on_merge: - $value = $payload['stargazers_count'] ?? null; + $value = $payload['allow_update_branch'] ?? null; if ($value === null) { - $missingFields[] = 'stargazers_count'; - goto after_stargazers_count; + $missingFields[] = 'allow_update_branch'; + goto after_allow_update_branch; } - $properties['stargazers_count'] = $value; + $properties['allow_update_branch'] = $value; - after_stargazers_count: + after_allow_update_branch: - $value = $payload['watchers_count'] ?? null; + $value = $payload['use_squash_pr_title_as_default'] ?? null; if ($value === null) { - $missingFields[] = 'watchers_count'; - goto after_watchers_count; + $missingFields[] = 'use_squash_pr_title_as_default'; + goto after_use_squash_pr_title_as_default; } - $properties['watchers_count'] = $value; + $properties['use_squash_pr_title_as_default'] = $value; - after_watchers_count: + after_use_squash_pr_title_as_default: - $value = $payload['size'] ?? null; + $value = $payload['squash_merge_commit_title'] ?? null; if ($value === null) { - $missingFields[] = 'size'; - goto after_size; + $missingFields[] = 'squash_merge_commit_title'; + goto after_squash_merge_commit_title; } - $properties['size'] = $value; + $properties['squash_merge_commit_title'] = $value; - after_size: + after_squash_merge_commit_title: - $value = $payload['default_branch'] ?? null; + $value = $payload['squash_merge_commit_message'] ?? null; if ($value === null) { - $missingFields[] = 'default_branch'; - goto after_default_branch; + $missingFields[] = 'squash_merge_commit_message'; + goto after_squash_merge_commit_message; } - $properties['default_branch'] = $value; + $properties['squash_merge_commit_message'] = $value; - after_default_branch: + after_squash_merge_commit_message: - $value = $payload['open_issues_count'] ?? null; + $value = $payload['merge_commit_title'] ?? null; if ($value === null) { - $missingFields[] = 'open_issues_count'; - goto after_open_issues_count; + $missingFields[] = 'merge_commit_title'; + goto after_merge_commit_title; } - $properties['open_issues_count'] = $value; + $properties['merge_commit_title'] = $value; - after_open_issues_count: + after_merge_commit_title: - $value = $payload['is_template'] ?? null; + $value = $payload['merge_commit_message'] ?? null; if ($value === null) { - $missingFields[] = 'is_template'; - goto after_is_template; + $missingFields[] = 'merge_commit_message'; + goto after_merge_commit_message; } - $properties['is_template'] = $value; + $properties['merge_commit_message'] = $value; - after_is_template: + after_merge_commit_message: - $value = $payload['topics'] ?? null; + $value = $payload['allow_merge_commit'] ?? null; if ($value === null) { - $missingFields[] = 'topics'; - goto after_topics; + $missingFields[] = 'allow_merge_commit'; + goto after_allow_merge_commit; } - $properties['topics'] = $value; + $properties['allow_merge_commit'] = $value; - after_topics: + after_allow_merge_commit: - $value = $payload['has_issues'] ?? null; + $value = $payload['subscribers_count'] ?? null; if ($value === null) { - $missingFields[] = 'has_issues'; - goto after_has_issues; + $missingFields[] = 'subscribers_count'; + goto after_subscribers_count; } - $properties['has_issues'] = $value; + $properties['subscribers_count'] = $value; - after_has_issues: + after_subscribers_count: - $value = $payload['has_projects'] ?? null; + $value = $payload['network_count'] ?? null; if ($value === null) { - $missingFields[] = 'has_projects'; - goto after_has_projects; + $missingFields[] = 'network_count'; + goto after_network_count; } - $properties['has_projects'] = $value; + $properties['network_count'] = $value; - after_has_projects: + after_network_count: - $value = $payload['has_wiki'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\TemplateRepository::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\Repository\TemplateRepository(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckSuiteRequested⚡️CheckSuite⚡️App(array $payload): \ApiClients\Client\Github\Schema\WebhookCheckSuiteRequested\CheckSuite\App + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['created_at'] ?? null; if ($value === null) { - $missingFields[] = 'has_wiki'; - goto after_has_wiki; + $missingFields[] = 'created_at'; + goto after_created_at; } - $properties['has_wiki'] = $value; + $properties['created_at'] = $value; - after_has_wiki: + after_created_at: - $value = $payload['has_pages'] ?? null; + $value = $payload['description'] ?? null; if ($value === null) { - $missingFields[] = 'has_pages'; - goto after_has_pages; + $missingFields[] = 'description'; + goto after_description; } - $properties['has_pages'] = $value; + $properties['description'] = $value; - after_has_pages: + after_description: - $value = $payload['has_downloads'] ?? null; + $value = $payload['events'] ?? null; if ($value === null) { - $missingFields[] = 'has_downloads'; - goto after_has_downloads; + $missingFields[] = 'events'; + goto after_events; } - $properties['has_downloads'] = $value; + $properties['events'] = $value; - after_has_downloads: + after_events: - $value = $payload['archived'] ?? null; + $value = $payload['external_url'] ?? null; if ($value === null) { - $missingFields[] = 'archived'; - goto after_archived; + $missingFields[] = 'external_url'; + goto after_external_url; } - $properties['archived'] = $value; + $properties['external_url'] = $value; - after_archived: + after_external_url: - $value = $payload['disabled'] ?? null; + $value = $payload['html_url'] ?? null; if ($value === null) { - $missingFields[] = 'disabled'; - goto after_disabled; + $missingFields[] = 'html_url'; + goto after_html_url; } - $properties['disabled'] = $value; + $properties['html_url'] = $value; - after_disabled: + after_html_url: - $value = $payload['visibility'] ?? null; + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'visibility'; - goto after_visibility; + $missingFields[] = 'id'; + goto after_id; } - $properties['visibility'] = $value; + $properties['id'] = $value; - after_visibility: + after_id: - $value = $payload['pushed_at'] ?? null; + $value = $payload['name'] ?? null; if ($value === null) { - $missingFields[] = 'pushed_at'; - goto after_pushed_at; + $missingFields[] = 'name'; + goto after_name; } - $properties['pushed_at'] = $value; + $properties['name'] = $value; - after_pushed_at: + after_name: - $value = $payload['created_at'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $missingFields[] = 'created_at'; - goto after_created_at; + $missingFields[] = 'node_id'; + goto after_node_id; } - $properties['created_at'] = $value; + $properties['node_id'] = $value; - after_created_at: + after_node_id: - $value = $payload['updated_at'] ?? null; + $value = $payload['owner'] ?? null; if ($value === null) { - $missingFields[] = 'updated_at'; - goto after_updated_at; + $missingFields[] = 'owner'; + goto after_owner; } - $properties['updated_at'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'owner'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['owner'] = $value; - after_updated_at: + after_owner: $value = $payload['permissions'] ?? null; @@ -3436,7 +4547,7 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repo if (is_array($value)) { try { $this->hydrationStack[] = 'permissions'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Permissions($value); + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckSuiteCompleted⚡️CheckSuite⚡️App⚡️Permissions($value); } finally { array_pop($this->hydrationStack); } @@ -3446,172 +4557,256 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repo after_permissions: - $value = $payload['allow_rebase_merge'] ?? null; + $value = $payload['slug'] ?? null; if ($value === null) { - $missingFields[] = 'allow_rebase_merge'; - goto after_allow_rebase_merge; + $missingFields[] = 'slug'; + goto after_slug; } - $properties['allow_rebase_merge'] = $value; + $properties['slug'] = $value; - after_allow_rebase_merge: + after_slug: - $value = $payload['temp_clone_token'] ?? null; + $value = $payload['updated_at'] ?? null; if ($value === null) { - $missingFields[] = 'temp_clone_token'; - goto after_temp_clone_token; + $missingFields[] = 'updated_at'; + goto after_updated_at; } - $properties['temp_clone_token'] = $value; + $properties['updated_at'] = $value; - after_temp_clone_token: + after_updated_at: - $value = $payload['allow_squash_merge'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCheckSuiteRequested\CheckSuite\App', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookCheckSuiteRequested\CheckSuite\App::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookCheckSuiteRequested\CheckSuite\App(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCheckSuiteRequested\CheckSuite\App', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckSuiteRerequested⚡️ActionsMeta⚡️RerunInfo(array $payload): \ApiClients\Client\Github\Schema\WebhookCheckSuiteRerequested\ActionsMeta\RerunInfo + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['plan_id'] ?? null; if ($value === null) { - $missingFields[] = 'allow_squash_merge'; - goto after_allow_squash_merge; + $missingFields[] = 'plan_id'; + goto after_plan_id; } - $properties['allow_squash_merge'] = $value; + $properties['plan_id'] = $value; - after_allow_squash_merge: + after_plan_id: - $value = $payload['allow_auto_merge'] ?? null; + $value = $payload['job_ids'] ?? null; if ($value === null) { - $missingFields[] = 'allow_auto_merge'; - goto after_allow_auto_merge; + $missingFields[] = 'job_ids'; + goto after_job_ids; } - $properties['allow_auto_merge'] = $value; + $properties['job_ids'] = $value; + + after_job_ids: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCheckSuiteRerequested\ActionsMeta\RerunInfo', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookCheckSuiteRerequested\ActionsMeta\RerunInfo::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookCheckSuiteRerequested\ActionsMeta\RerunInfo(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCheckSuiteRerequested\ActionsMeta\RerunInfo', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckSuiteRerequested⚡️CheckSuite⚡️App(array $payload): \ApiClients\Client\Github\Schema\WebhookCheckSuiteRerequested\CheckSuite\App + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'created_at'; + goto after_created_at; + } + + $properties['created_at'] = $value; + + after_created_at: + + $value = $payload['description'] ?? null; + + if ($value === null) { + $missingFields[] = 'description'; + goto after_description; + } + + $properties['description'] = $value; - after_allow_auto_merge: + after_description: - $value = $payload['delete_branch_on_merge'] ?? null; + $value = $payload['events'] ?? null; if ($value === null) { - $missingFields[] = 'delete_branch_on_merge'; - goto after_delete_branch_on_merge; + $missingFields[] = 'events'; + goto after_events; } - $properties['delete_branch_on_merge'] = $value; + $properties['events'] = $value; - after_delete_branch_on_merge: + after_events: - $value = $payload['allow_update_branch'] ?? null; + $value = $payload['external_url'] ?? null; if ($value === null) { - $missingFields[] = 'allow_update_branch'; - goto after_allow_update_branch; + $missingFields[] = 'external_url'; + goto after_external_url; } - $properties['allow_update_branch'] = $value; + $properties['external_url'] = $value; - after_allow_update_branch: + after_external_url: - $value = $payload['use_squash_pr_title_as_default'] ?? null; + $value = $payload['html_url'] ?? null; if ($value === null) { - $missingFields[] = 'use_squash_pr_title_as_default'; - goto after_use_squash_pr_title_as_default; + $missingFields[] = 'html_url'; + goto after_html_url; } - $properties['use_squash_pr_title_as_default'] = $value; + $properties['html_url'] = $value; - after_use_squash_pr_title_as_default: + after_html_url: - $value = $payload['squash_merge_commit_title'] ?? null; + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'squash_merge_commit_title'; - goto after_squash_merge_commit_title; + $missingFields[] = 'id'; + goto after_id; } - $properties['squash_merge_commit_title'] = $value; + $properties['id'] = $value; - after_squash_merge_commit_title: + after_id: - $value = $payload['squash_merge_commit_message'] ?? null; + $value = $payload['name'] ?? null; if ($value === null) { - $missingFields[] = 'squash_merge_commit_message'; - goto after_squash_merge_commit_message; + $missingFields[] = 'name'; + goto after_name; } - $properties['squash_merge_commit_message'] = $value; + $properties['name'] = $value; - after_squash_merge_commit_message: + after_name: - $value = $payload['merge_commit_title'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $missingFields[] = 'merge_commit_title'; - goto after_merge_commit_title; + $missingFields[] = 'node_id'; + goto after_node_id; } - $properties['merge_commit_title'] = $value; + $properties['node_id'] = $value; - after_merge_commit_title: + after_node_id: - $value = $payload['merge_commit_message'] ?? null; + $value = $payload['owner'] ?? null; if ($value === null) { - $missingFields[] = 'merge_commit_message'; - goto after_merge_commit_message; + $missingFields[] = 'owner'; + goto after_owner; } - $properties['merge_commit_message'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'owner'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['owner'] = $value; - after_merge_commit_message: + after_owner: - $value = $payload['allow_merge_commit'] ?? null; + $value = $payload['permissions'] ?? null; if ($value === null) { - $missingFields[] = 'allow_merge_commit'; - goto after_allow_merge_commit; + $missingFields[] = 'permissions'; + goto after_permissions; } - $properties['allow_merge_commit'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'permissions'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckSuiteCompleted⚡️CheckSuite⚡️App⚡️Permissions($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['permissions'] = $value; - after_allow_merge_commit: + after_permissions: - $value = $payload['subscribers_count'] ?? null; + $value = $payload['slug'] ?? null; if ($value === null) { - $missingFields[] = 'subscribers_count'; - goto after_subscribers_count; + $missingFields[] = 'slug'; + goto after_slug; } - $properties['subscribers_count'] = $value; + $properties['slug'] = $value; - after_subscribers_count: + after_slug: - $value = $payload['network_count'] ?? null; + $value = $payload['updated_at'] ?? null; if ($value === null) { - $missingFields[] = 'network_count'; - goto after_network_count; + $missingFields[] = 'updated_at'; + goto after_updated_at; } - $properties['network_count'] = $value; + $properties['updated_at'] = $value; - after_network_count: + after_updated_at: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCheckSuiteRerequested\CheckSuite\App', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\TemplateRepository::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookCheckSuiteRerequested\CheckSuite\App::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\Repository\TemplateRepository(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookCheckSuiteRerequested\CheckSuite\App(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCheckSuiteRerequested\CheckSuite\App', $exception, stack: $this->hydrationStack); } } @@ -4649,6 +5844,8 @@ public function serializeObject(object $object): mixed 'DateTime' => $this->serializeValueDateTime($object), 'DateTimeImmutable' => $this->serializeValueDateTimeImmutable($object), 'DateTimeInterface' => $this->serializeValueDateTimeInterface($object), + 'ApiClients\Client\Github\Schema\WebhookCheckSuiteCompleted' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckSuiteCompleted($object), + 'ApiClients\Client\Github\Schema\WebhookCheckSuiteRequested' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckSuiteRequested($object), 'ApiClients\Client\Github\Schema\WebhookCheckSuiteRerequested' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckSuiteRerequested($object), default => throw new \LogicException('No serialization defined for $className'), }; @@ -4723,6 +5920,142 @@ private function serializeValueDateTimeInterface(mixed $value): mixed } + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckSuiteCompleted(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookCheckSuiteCompleted); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $actions_meta = $object->actions_meta; + + if ($actions_meta === null) { + goto after_actions_meta; + } + $actions_meta = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckSuiteCompleted⚡️ActionsMeta($actions_meta); + after_actions_meta: $result['actions_meta'] = $actions_meta; + + + $check_suite = $object->check_suite; + + if ($check_suite === null) { + goto after_check_suite; + } + $check_suite = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckSuiteCompleted⚡️CheckSuite($check_suite); + after_check_suite: $result['check_suite'] = $check_suite; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckSuiteRequested(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookCheckSuiteRequested); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $actions_meta = $object->actions_meta; + + if ($actions_meta === null) { + goto after_actions_meta; + } + $actions_meta = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckSuiteCompleted⚡️ActionsMeta($actions_meta); + after_actions_meta: $result['actions_meta'] = $actions_meta; + + + $check_suite = $object->check_suite; + + if ($check_suite === null) { + goto after_check_suite; + } + $check_suite = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckSuiteRequested⚡️CheckSuite($check_suite); + after_check_suite: $result['check_suite'] = $check_suite; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckSuiteRerequested(mixed $object): mixed { \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookCheckSuiteRerequested); diff --git a/src/Hydrator/WebHook/CodeScanningAlert.php b/src/Hydrator/WebHook/CodeScanningAlert.php index 8bd31b48c8..82672c12cb 100644 --- a/src/Hydrator/WebHook/CodeScanningAlert.php +++ b/src/Hydrator/WebHook/CodeScanningAlert.php @@ -23,18 +23,33 @@ public function __construct() {} public function hydrateObject(string $className, array $payload): object { return match($className) { - 'ApiClients\Client\Github\Schema\WebhookCodeScanningAlertReopenedByUser' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCodeScanningAlertReopenedByUser($payload), - 'ApiClients\Client\Github\Schema\WebhookCodeScanningAlertReopenedByUser\Alert' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCodeScanningAlertReopenedByUser⚡️Alert($payload), + 'ApiClients\Client\Github\Schema\WebhookCodeScanningAlertAppearedInBranch' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCodeScanningAlertAppearedInBranch($payload), + 'ApiClients\Client\Github\Schema\WebhookCodeScanningAlertClosedByUser' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCodeScanningAlertClosedByUser($payload), + 'ApiClients\Client\Github\Schema\WebhookCodeScanningAlertCreated' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCodeScanningAlertCreated($payload), + 'ApiClients\Client\Github\Schema\WebhookCodeScanningAlertFixed' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCodeScanningAlertFixed($payload), + 'ApiClients\Client\Github\Schema\WebhookCodeScanningAlertReopened' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCodeScanningAlertReopened($payload), + 'ApiClients\Client\Github\Schema\WebhookCodeScanningAlertReopenedByUser' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCodeScanningAlertReopenedByUser($payload), + 'ApiClients\Client\Github\Schema\WebhookCodeScanningAlertAppearedInBranch\Alert' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCodeScanningAlertAppearedInBranch⚡️Alert($payload), 'ApiClients\Client\Github\Schema\Enterprise' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($payload), 'ApiClients\Client\Github\Schema\SimpleInstallation' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($payload), 'ApiClients\Client\Github\Schema\OrganizationSimple' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($payload), 'ApiClients\Client\Github\Schema\Repository' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($payload), 'ApiClients\Client\Github\Schema\SimpleUser' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($payload), + 'ApiClients\Client\Github\Schema\WebhookCodeScanningAlertClosedByUser\Alert' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCodeScanningAlertClosedByUser⚡️Alert($payload), + 'ApiClients\Client\Github\Schema\WebhookCodeScanningAlertCreated\Alert' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCodeScanningAlertCreated⚡️Alert($payload), + 'ApiClients\Client\Github\Schema\WebhookCodeScanningAlertFixed\Alert' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCodeScanningAlertFixed⚡️Alert($payload), + 'ApiClients\Client\Github\Schema\WebhookCodeScanningAlertReopened\Alert' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCodeScanningAlertReopened⚡️Alert($payload), + 'ApiClients\Client\Github\Schema\WebhookCodeScanningAlertReopenedByUser\Alert' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCodeScanningAlertReopenedByUser⚡️Alert($payload), + 'ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($payload), 'ApiClients\Client\Github\Schema\WebhookCodeScanningAlertAppearedInBranch\Alert\MostRecentInstance' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCodeScanningAlertAppearedInBranch⚡️Alert⚡️MostRecentInstance($payload), 'ApiClients\Client\Github\Schema\WebhookCodeScanningAlertAppearedInBranch\Alert\Rule' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCodeScanningAlertAppearedInBranch⚡️Alert⚡️Rule($payload), 'ApiClients\Client\Github\Schema\WebhookCodeScanningAlertAppearedInBranch\Alert\Tool' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCodeScanningAlertAppearedInBranch⚡️Alert⚡️Tool($payload), 'ApiClients\Client\Github\Schema\Repository\Permissions' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️Permissions($payload), 'ApiClients\Client\Github\Schema\Repository\TemplateRepository' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository($payload), + 'ApiClients\Client\Github\Schema\WebhookCodeScanningAlertClosedByUser\Alert\Rule' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCodeScanningAlertClosedByUser⚡️Alert⚡️Rule($payload), + 'ApiClients\Client\Github\Schema\WebhookCodeScanningAlertClosedByUser\Alert\Tool' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCodeScanningAlertClosedByUser⚡️Alert⚡️Tool($payload), + 'ApiClients\Client\Github\Schema\WebhookCodeScanningAlertCreated\Alert\Tool' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCodeScanningAlertCreated⚡️Alert⚡️Tool($payload), + 'ApiClients\Client\Github\Schema\WebhookCheckSuiteCompleted\ActionsMeta' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckSuiteCompleted⚡️ActionsMeta($payload), 'ApiClients\Client\Github\Schema\WebhookCodeScanningAlertAppearedInBranch\Alert\MostRecentInstance\Location' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCodeScanningAlertAppearedInBranch⚡️Alert⚡️MostRecentInstance⚡️Location($payload), 'ApiClients\Client\Github\Schema\CodeScanningAlertInstance\Message' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️CodeScanningAlertInstance⚡️Message($payload), 'ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner($payload), @@ -44,7 +59,7 @@ public function hydrateObject(string $className, array $payload): object } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCodeScanningAlertReopenedByUser(array $payload): \ApiClients\Client\Github\Schema\WebhookCodeScanningAlertReopenedByUser + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCodeScanningAlertAppearedInBranch(array $payload): \ApiClients\Client\Github\Schema\WebhookCodeScanningAlertAppearedInBranch { $properties = []; $missingFields = []; @@ -71,7 +86,7 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'alert'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCodeScanningAlertReopenedByUser⚡️Alert($value); + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCodeScanningAlertAppearedInBranch⚡️Alert($value); } finally { array_pop($this->hydrationStack); } @@ -204,1127 +219,1322 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh after_sender: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCodeScanningAlertReopenedByUser', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCodeScanningAlertAppearedInBranch', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookCodeScanningAlertReopenedByUser::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookCodeScanningAlertAppearedInBranch::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\WebhookCodeScanningAlertReopenedByUser(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookCodeScanningAlertAppearedInBranch(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCodeScanningAlertReopenedByUser', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCodeScanningAlertAppearedInBranch', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCodeScanningAlertReopenedByUser⚡️Alert(array $payload): \ApiClients\Client\Github\Schema\WebhookCodeScanningAlertReopenedByUser\Alert + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCodeScanningAlertClosedByUser(array $payload): \ApiClients\Client\Github\Schema\WebhookCodeScanningAlertClosedByUser { $properties = []; $missingFields = []; try { - $value = $payload['created_at'] ?? null; - - if ($value === null) { - $missingFields[] = 'created_at'; - goto after_created_at; - } - - $properties['created_at'] = $value; - - after_created_at: - - $value = $payload['dismissed_at'] ?? null; + $value = $payload['action'] ?? null; if ($value === null) { - $properties['dismissed_at'] = null; - goto after_dismissed_at; + $missingFields[] = 'action'; + goto after_action; } - $properties['dismissed_at'] = $value; + $properties['action'] = $value; - after_dismissed_at: + after_action: - $value = $payload['dismissed_by'] ?? null; + $value = $payload['alert'] ?? null; if ($value === null) { - $properties['dismissed_by'] = null; - goto after_dismissed_by; + $missingFields[] = 'alert'; + goto after_alert; } - $properties['dismissed_by'] = $value; - - after_dismissed_by: - - $value = $payload['dismissed_reason'] ?? null; - - if ($value === null) { - $properties['dismissed_reason'] = null; - goto after_dismissed_reason; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'alert'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCodeScanningAlertClosedByUser⚡️Alert($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['dismissed_reason'] = $value; + $properties['alert'] = $value; - after_dismissed_reason: + after_alert: - $value = $payload['html_url'] ?? null; + $value = $payload['commit_oid'] ?? null; if ($value === null) { - $missingFields[] = 'html_url'; - goto after_html_url; + $missingFields[] = 'commit_oid'; + goto after_commit_oid; } - $properties['html_url'] = $value; + $properties['commit_oid'] = $value; - after_html_url: + after_commit_oid: - $value = $payload['most_recent_instance'] ?? null; + $value = $payload['enterprise'] ?? null; if ($value === null) { - $missingFields[] = 'most_recent_instance'; - goto after_most_recent_instance; + $missingFields[] = 'enterprise'; + goto after_enterprise; } if (is_array($value)) { try { - $this->hydrationStack[] = 'most_recent_instance'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCodeScanningAlertAppearedInBranch⚡️Alert⚡️MostRecentInstance($value); + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); } finally { array_pop($this->hydrationStack); } } - $properties['most_recent_instance'] = $value; + $properties['enterprise'] = $value; - after_most_recent_instance: + after_enterprise: - $value = $payload['number'] ?? null; + $value = $payload['installation'] ?? null; if ($value === null) { - $missingFields[] = 'number'; - goto after_number; + $missingFields[] = 'installation'; + goto after_installation; } - $properties['number'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; - after_number: + after_installation: - $value = $payload['rule'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'rule'; - goto after_rule; + $missingFields[] = 'organization'; + goto after_organization; } if (is_array($value)) { try { - $this->hydrationStack[] = 'rule'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCodeScanningAlertAppearedInBranch⚡️Alert⚡️Rule($value); + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); } finally { array_pop($this->hydrationStack); } } - $properties['rule'] = $value; + $properties['organization'] = $value; - after_rule: + after_organization: - $value = $payload['state'] ?? null; + $value = $payload['ref'] ?? null; if ($value === null) { - $missingFields[] = 'state'; - goto after_state; + $missingFields[] = 'ref'; + goto after_ref; } - $properties['state'] = $value; + $properties['ref'] = $value; - after_state: + after_ref: - $value = $payload['tool'] ?? null; + $value = $payload['repository'] ?? null; if ($value === null) { - $missingFields[] = 'tool'; - goto after_tool; + $missingFields[] = 'repository'; + goto after_repository; } if (is_array($value)) { try { - $this->hydrationStack[] = 'tool'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCodeScanningAlertAppearedInBranch⚡️Alert⚡️Tool($value); + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); } finally { array_pop($this->hydrationStack); } } - $properties['tool'] = $value; + $properties['repository'] = $value; - after_tool: + after_repository: - $value = $payload['url'] ?? null; + $value = $payload['sender'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $missingFields[] = 'sender'; + goto after_sender; } - $properties['url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; - after_url: + after_sender: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCodeScanningAlertReopenedByUser\Alert', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCodeScanningAlertClosedByUser', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookCodeScanningAlertReopenedByUser\Alert::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookCodeScanningAlertClosedByUser::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\WebhookCodeScanningAlertReopenedByUser\Alert(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookCodeScanningAlertClosedByUser(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCodeScanningAlertReopenedByUser\Alert', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCodeScanningAlertClosedByUser', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise(array $payload): \ApiClients\Client\Github\Schema\Enterprise + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCodeScanningAlertCreated(array $payload): \ApiClients\Client\Github\Schema\WebhookCodeScanningAlertCreated { $properties = []; $missingFields = []; try { - $value = $payload['description'] ?? null; + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'description'; - goto after_description; + $missingFields[] = 'action'; + goto after_action; } - $properties['description'] = $value; + $properties['action'] = $value; - after_description: + after_action: - $value = $payload['html_url'] ?? null; + $value = $payload['alert'] ?? null; if ($value === null) { - $missingFields[] = 'html_url'; - goto after_html_url; + $missingFields[] = 'alert'; + goto after_alert; } - $properties['html_url'] = $value; - - after_html_url: - - $value = $payload['website_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'website_url'; - goto after_website_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'alert'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCodeScanningAlertCreated⚡️Alert($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['website_url'] = $value; + $properties['alert'] = $value; - after_website_url: + after_alert: - $value = $payload['id'] ?? null; + $value = $payload['commit_oid'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'commit_oid'; + goto after_commit_oid; } - $properties['id'] = $value; + $properties['commit_oid'] = $value; - after_id: + after_commit_oid: - $value = $payload['node_id'] ?? null; + $value = $payload['enterprise'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $missingFields[] = 'enterprise'; + goto after_enterprise; } - $properties['node_id'] = $value; - - after_node_id: - - $value = $payload['name'] ?? null; - - if ($value === null) { - $missingFields[] = 'name'; - goto after_name; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['name'] = $value; + $properties['enterprise'] = $value; - after_name: + after_enterprise: - $value = $payload['slug'] ?? null; + $value = $payload['installation'] ?? null; if ($value === null) { - $missingFields[] = 'slug'; - goto after_slug; + $missingFields[] = 'installation'; + goto after_installation; } - $properties['slug'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; - after_slug: + after_installation: - $value = $payload['created_at'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'created_at'; - goto after_created_at; + $missingFields[] = 'organization'; + goto after_organization; } - $properties['created_at'] = $value; - - after_created_at: - - $value = $payload['updated_at'] ?? null; - - if ($value === null) { - $missingFields[] = 'updated_at'; - goto after_updated_at; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['updated_at'] = $value; + $properties['organization'] = $value; - after_updated_at: + after_organization: - $value = $payload['avatar_url'] ?? null; + $value = $payload['ref'] ?? null; if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatar_url; + $missingFields[] = 'ref'; + goto after_ref; } - $properties['avatar_url'] = $value; + $properties['ref'] = $value; - after_avatar_url: - - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Enterprise', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Enterprise::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\Enterprise(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Enterprise', $exception, stack: $this->hydrationStack); - } - } + after_ref: - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation(array $payload): \ApiClients\Client\Github\Schema\SimpleInstallation - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['id'] ?? null; + $value = $payload['repository'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'repository'; + goto after_repository; } - $properties['id'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repository'] = $value; - after_id: + after_repository: - $value = $payload['node_id'] ?? null; + $value = $payload['sender'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $missingFields[] = 'sender'; + goto after_sender; } - $properties['node_id'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; - after_node_id: + after_sender: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleInstallation', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCodeScanningAlertCreated', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\SimpleInstallation::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookCodeScanningAlertCreated::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\SimpleInstallation(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookCodeScanningAlertCreated(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleInstallation', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCodeScanningAlertCreated', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple(array $payload): \ApiClients\Client\Github\Schema\OrganizationSimple + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCodeScanningAlertFixed(array $payload): \ApiClients\Client\Github\Schema\WebhookCodeScanningAlertFixed { $properties = []; $missingFields = []; try { - $value = $payload['login'] ?? null; + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'login'; - goto after_login; + $missingFields[] = 'action'; + goto after_action; } - $properties['login'] = $value; + $properties['action'] = $value; - after_login: + after_action: - $value = $payload['id'] ?? null; + $value = $payload['alert'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'alert'; + goto after_alert; } - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'alert'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCodeScanningAlertFixed⚡️Alert($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['node_id'] = $value; + $properties['alert'] = $value; - after_node_id: + after_alert: - $value = $payload['url'] ?? null; + $value = $payload['commit_oid'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $missingFields[] = 'commit_oid'; + goto after_commit_oid; } - $properties['url'] = $value; + $properties['commit_oid'] = $value; - after_url: + after_commit_oid: - $value = $payload['repos_url'] ?? null; + $value = $payload['enterprise'] ?? null; if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_repos_url; + $missingFields[] = 'enterprise'; + goto after_enterprise; } - $properties['repos_url'] = $value; - - after_repos_url: - - $value = $payload['events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'events_url'; - goto after_events_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['events_url'] = $value; + $properties['enterprise'] = $value; - after_events_url: + after_enterprise: - $value = $payload['hooks_url'] ?? null; + $value = $payload['installation'] ?? null; if ($value === null) { - $missingFields[] = 'hooks_url'; - goto after_hooks_url; + $missingFields[] = 'installation'; + goto after_installation; } - $properties['hooks_url'] = $value; - - after_hooks_url: - - $value = $payload['issues_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'issues_url'; - goto after_issues_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['issues_url'] = $value; + $properties['installation'] = $value; - after_issues_url: + after_installation: - $value = $payload['members_url'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'members_url'; - goto after_members_url; + $missingFields[] = 'organization'; + goto after_organization; } - $properties['members_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; - after_members_url: + after_organization: - $value = $payload['public_members_url'] ?? null; + $value = $payload['ref'] ?? null; if ($value === null) { - $missingFields[] = 'public_members_url'; - goto after_public_members_url; + $missingFields[] = 'ref'; + goto after_ref; } - $properties['public_members_url'] = $value; + $properties['ref'] = $value; - after_public_members_url: + after_ref: - $value = $payload['avatar_url'] ?? null; + $value = $payload['repository'] ?? null; if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatar_url; + $missingFields[] = 'repository'; + goto after_repository; } - $properties['avatar_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repository'] = $value; - after_avatar_url: + after_repository: - $value = $payload['description'] ?? null; + $value = $payload['sender'] ?? null; if ($value === null) { - $missingFields[] = 'description'; - goto after_description; + $missingFields[] = 'sender'; + goto after_sender; } - $properties['description'] = $value; - - after_description: - - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\OrganizationSimple', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\OrganizationSimple::class, $missingFields, stack: $this->hydrationStack); + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; + + after_sender: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCodeScanningAlertFixed', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookCodeScanningAlertFixed::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\OrganizationSimple(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookCodeScanningAlertFixed(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\OrganizationSimple', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCodeScanningAlertFixed', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository(array $payload): \ApiClients\Client\Github\Schema\Repository + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCodeScanningAlertReopened(array $payload): \ApiClients\Client\Github\Schema\WebhookCodeScanningAlertReopened { $properties = []; $missingFields = []; try { - $value = $payload['id'] ?? null; + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'action'; + goto after_action; } - $properties['id'] = $value; + $properties['action'] = $value; - after_id: + after_action: - $value = $payload['node_id'] ?? null; + $value = $payload['alert'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $missingFields[] = 'alert'; + goto after_alert; } - $properties['node_id'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'alert'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCodeScanningAlertReopened⚡️Alert($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['alert'] = $value; - after_node_id: + after_alert: - $value = $payload['name'] ?? null; + $value = $payload['commit_oid'] ?? null; if ($value === null) { - $missingFields[] = 'name'; - goto after_name; + $missingFields[] = 'commit_oid'; + goto after_commit_oid; } - $properties['name'] = $value; + $properties['commit_oid'] = $value; - after_name: + after_commit_oid: - $value = $payload['full_name'] ?? null; + $value = $payload['enterprise'] ?? null; if ($value === null) { - $missingFields[] = 'full_name'; - goto after_full_name; + $missingFields[] = 'enterprise'; + goto after_enterprise; } - $properties['full_name'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['enterprise'] = $value; - after_full_name: + after_enterprise: - $value = $payload['license'] ?? null; + $value = $payload['installation'] ?? null; if ($value === null) { - $properties['license'] = null; - goto after_license; + $missingFields[] = 'installation'; + goto after_installation; } - $properties['license'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; - after_license: + after_installation: $value = $payload['organization'] ?? null; if ($value === null) { - $properties['organization'] = null; + $missingFields[] = 'organization'; goto after_organization; } + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + $properties['organization'] = $value; after_organization: - $value = $payload['forks'] ?? null; + $value = $payload['ref'] ?? null; if ($value === null) { - $missingFields[] = 'forks'; - goto after_forks; + $missingFields[] = 'ref'; + goto after_ref; } - $properties['forks'] = $value; + $properties['ref'] = $value; - after_forks: + after_ref: - $value = $payload['permissions'] ?? null; + $value = $payload['repository'] ?? null; if ($value === null) { - $missingFields[] = 'permissions'; - goto after_permissions; + $missingFields[] = 'repository'; + goto after_repository; } if (is_array($value)) { try { - $this->hydrationStack[] = 'permissions'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️Permissions($value); + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); } finally { array_pop($this->hydrationStack); } } - $properties['permissions'] = $value; + $properties['repository'] = $value; - after_permissions: + after_repository: - $value = $payload['owner'] ?? null; + $value = $payload['sender'] ?? null; if ($value === null) { - $missingFields[] = 'owner'; - goto after_owner; + $missingFields[] = 'sender'; + goto after_sender; } if (is_array($value)) { try { - $this->hydrationStack[] = 'owner'; + $this->hydrationStack[] = 'sender'; $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } } - $properties['owner'] = $value; + $properties['sender'] = $value; - after_owner: + after_sender: - $value = $payload['private'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCodeScanningAlertReopened', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookCodeScanningAlertReopened::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookCodeScanningAlertReopened(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCodeScanningAlertReopened', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCodeScanningAlertReopenedByUser(array $payload): \ApiClients\Client\Github\Schema\WebhookCodeScanningAlertReopenedByUser + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'private'; - goto after_private; + $missingFields[] = 'action'; + goto after_action; } - $properties['private'] = $value; + $properties['action'] = $value; - after_private: + after_action: - $value = $payload['html_url'] ?? null; + $value = $payload['alert'] ?? null; if ($value === null) { - $missingFields[] = 'html_url'; - goto after_html_url; + $missingFields[] = 'alert'; + goto after_alert; } - $properties['html_url'] = $value; - - after_html_url: - - $value = $payload['description'] ?? null; - - if ($value === null) { - $missingFields[] = 'description'; - goto after_description; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'alert'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCodeScanningAlertReopenedByUser⚡️Alert($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['description'] = $value; + $properties['alert'] = $value; - after_description: + after_alert: - $value = $payload['fork'] ?? null; + $value = $payload['commit_oid'] ?? null; if ($value === null) { - $missingFields[] = 'fork'; - goto after_fork; + $missingFields[] = 'commit_oid'; + goto after_commit_oid; } - $properties['fork'] = $value; + $properties['commit_oid'] = $value; - after_fork: + after_commit_oid: - $value = $payload['url'] ?? null; + $value = $payload['enterprise'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $missingFields[] = 'enterprise'; + goto after_enterprise; } - $properties['url'] = $value; - - after_url: - - $value = $payload['archive_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'archive_url'; - goto after_archive_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['archive_url'] = $value; + $properties['enterprise'] = $value; - after_archive_url: + after_enterprise: - $value = $payload['assignees_url'] ?? null; + $value = $payload['installation'] ?? null; if ($value === null) { - $missingFields[] = 'assignees_url'; - goto after_assignees_url; + $missingFields[] = 'installation'; + goto after_installation; } - $properties['assignees_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; - after_assignees_url: + after_installation: - $value = $payload['blobs_url'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'blobs_url'; - goto after_blobs_url; + $missingFields[] = 'organization'; + goto after_organization; } - $properties['blobs_url'] = $value; - - after_blobs_url: - - $value = $payload['branches_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'branches_url'; - goto after_branches_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['branches_url'] = $value; + $properties['organization'] = $value; - after_branches_url: + after_organization: - $value = $payload['collaborators_url'] ?? null; + $value = $payload['ref'] ?? null; if ($value === null) { - $missingFields[] = 'collaborators_url'; - goto after_collaborators_url; + $missingFields[] = 'ref'; + goto after_ref; } - $properties['collaborators_url'] = $value; + $properties['ref'] = $value; - after_collaborators_url: + after_ref: - $value = $payload['comments_url'] ?? null; + $value = $payload['repository'] ?? null; if ($value === null) { - $missingFields[] = 'comments_url'; - goto after_comments_url; + $missingFields[] = 'repository'; + goto after_repository; } - $properties['comments_url'] = $value; - - after_comments_url: - - $value = $payload['commits_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'commits_url'; - goto after_commits_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['commits_url'] = $value; + $properties['repository'] = $value; - after_commits_url: + after_repository: - $value = $payload['compare_url'] ?? null; + $value = $payload['sender'] ?? null; if ($value === null) { - $missingFields[] = 'compare_url'; - goto after_compare_url; + $missingFields[] = 'sender'; + goto after_sender; } - $properties['compare_url'] = $value; - - after_compare_url: - - $value = $payload['contents_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'contents_url'; - goto after_contents_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['contents_url'] = $value; + $properties['sender'] = $value; - after_contents_url: + after_sender: - $value = $payload['contributors_url'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCodeScanningAlertReopenedByUser', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookCodeScanningAlertReopenedByUser::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookCodeScanningAlertReopenedByUser(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCodeScanningAlertReopenedByUser', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCodeScanningAlertAppearedInBranch⚡️Alert(array $payload): \ApiClients\Client\Github\Schema\WebhookCodeScanningAlertAppearedInBranch\Alert + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['created_at'] ?? null; if ($value === null) { - $missingFields[] = 'contributors_url'; - goto after_contributors_url; + $missingFields[] = 'created_at'; + goto after_created_at; } - $properties['contributors_url'] = $value; + $properties['created_at'] = $value; - after_contributors_url: + after_created_at: - $value = $payload['deployments_url'] ?? null; + $value = $payload['dismissed_at'] ?? null; if ($value === null) { - $missingFields[] = 'deployments_url'; - goto after_deployments_url; + $missingFields[] = 'dismissed_at'; + goto after_dismissed_at; } - $properties['deployments_url'] = $value; + $properties['dismissed_at'] = $value; - after_deployments_url: + after_dismissed_at: - $value = $payload['downloads_url'] ?? null; + $value = $payload['dismissed_by'] ?? null; if ($value === null) { - $missingFields[] = 'downloads_url'; - goto after_downloads_url; + $missingFields[] = 'dismissed_by'; + goto after_dismissed_by; } - $properties['downloads_url'] = $value; - - after_downloads_url: - - $value = $payload['events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'events_url'; - goto after_events_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'dismissed_by'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['events_url'] = $value; + $properties['dismissed_by'] = $value; - after_events_url: + after_dismissed_by: - $value = $payload['forks_url'] ?? null; + $value = $payload['dismissed_reason'] ?? null; if ($value === null) { - $missingFields[] = 'forks_url'; - goto after_forks_url; + $missingFields[] = 'dismissed_reason'; + goto after_dismissed_reason; } - $properties['forks_url'] = $value; + $properties['dismissed_reason'] = $value; - after_forks_url: + after_dismissed_reason: - $value = $payload['git_commits_url'] ?? null; + $value = $payload['html_url'] ?? null; if ($value === null) { - $missingFields[] = 'git_commits_url'; - goto after_git_commits_url; + $missingFields[] = 'html_url'; + goto after_html_url; } - $properties['git_commits_url'] = $value; + $properties['html_url'] = $value; - after_git_commits_url: + after_html_url: - $value = $payload['git_refs_url'] ?? null; + $value = $payload['most_recent_instance'] ?? null; if ($value === null) { - $missingFields[] = 'git_refs_url'; - goto after_git_refs_url; + $missingFields[] = 'most_recent_instance'; + goto after_most_recent_instance; } - $properties['git_refs_url'] = $value; - - after_git_refs_url: - - $value = $payload['git_tags_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'git_tags_url'; - goto after_git_tags_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'most_recent_instance'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCodeScanningAlertAppearedInBranch⚡️Alert⚡️MostRecentInstance($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['git_tags_url'] = $value; + $properties['most_recent_instance'] = $value; - after_git_tags_url: + after_most_recent_instance: - $value = $payload['git_url'] ?? null; + $value = $payload['number'] ?? null; if ($value === null) { - $missingFields[] = 'git_url'; - goto after_git_url; + $missingFields[] = 'number'; + goto after_number; } - $properties['git_url'] = $value; + $properties['number'] = $value; - after_git_url: + after_number: - $value = $payload['issue_comment_url'] ?? null; + $value = $payload['rule'] ?? null; if ($value === null) { - $missingFields[] = 'issue_comment_url'; - goto after_issue_comment_url; + $missingFields[] = 'rule'; + goto after_rule; } - $properties['issue_comment_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'rule'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCodeScanningAlertAppearedInBranch⚡️Alert⚡️Rule($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['rule'] = $value; - after_issue_comment_url: + after_rule: - $value = $payload['issue_events_url'] ?? null; + $value = $payload['state'] ?? null; if ($value === null) { - $missingFields[] = 'issue_events_url'; - goto after_issue_events_url; + $missingFields[] = 'state'; + goto after_state; } - $properties['issue_events_url'] = $value; + $properties['state'] = $value; - after_issue_events_url: + after_state: - $value = $payload['issues_url'] ?? null; + $value = $payload['tool'] ?? null; if ($value === null) { - $missingFields[] = 'issues_url'; - goto after_issues_url; + $missingFields[] = 'tool'; + goto after_tool; } - $properties['issues_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'tool'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCodeScanningAlertAppearedInBranch⚡️Alert⚡️Tool($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['tool'] = $value; - after_issues_url: + after_tool: - $value = $payload['keys_url'] ?? null; + $value = $payload['url'] ?? null; if ($value === null) { - $missingFields[] = 'keys_url'; - goto after_keys_url; + $missingFields[] = 'url'; + goto after_url; } - $properties['keys_url'] = $value; + $properties['url'] = $value; - after_keys_url: + after_url: - $value = $payload['labels_url'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCodeScanningAlertAppearedInBranch\Alert', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookCodeScanningAlertAppearedInBranch\Alert::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookCodeScanningAlertAppearedInBranch\Alert(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCodeScanningAlertAppearedInBranch\Alert', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise(array $payload): \ApiClients\Client\Github\Schema\Enterprise + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['description'] ?? null; if ($value === null) { - $missingFields[] = 'labels_url'; - goto after_labels_url; + $missingFields[] = 'description'; + goto after_description; } - $properties['labels_url'] = $value; + $properties['description'] = $value; - after_labels_url: + after_description: - $value = $payload['languages_url'] ?? null; + $value = $payload['html_url'] ?? null; if ($value === null) { - $missingFields[] = 'languages_url'; - goto after_languages_url; + $missingFields[] = 'html_url'; + goto after_html_url; } - $properties['languages_url'] = $value; + $properties['html_url'] = $value; - after_languages_url: + after_html_url: - $value = $payload['merges_url'] ?? null; + $value = $payload['website_url'] ?? null; if ($value === null) { - $missingFields[] = 'merges_url'; - goto after_merges_url; + $missingFields[] = 'website_url'; + goto after_website_url; } - $properties['merges_url'] = $value; + $properties['website_url'] = $value; - after_merges_url: + after_website_url: - $value = $payload['milestones_url'] ?? null; + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'milestones_url'; - goto after_milestones_url; + $missingFields[] = 'id'; + goto after_id; } - $properties['milestones_url'] = $value; + $properties['id'] = $value; - after_milestones_url: + after_id: - $value = $payload['notifications_url'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $missingFields[] = 'notifications_url'; - goto after_notifications_url; + $missingFields[] = 'node_id'; + goto after_node_id; } - $properties['notifications_url'] = $value; + $properties['node_id'] = $value; - after_notifications_url: + after_node_id: - $value = $payload['pulls_url'] ?? null; + $value = $payload['name'] ?? null; if ($value === null) { - $missingFields[] = 'pulls_url'; - goto after_pulls_url; + $missingFields[] = 'name'; + goto after_name; } - $properties['pulls_url'] = $value; + $properties['name'] = $value; - after_pulls_url: + after_name: - $value = $payload['releases_url'] ?? null; + $value = $payload['slug'] ?? null; if ($value === null) { - $missingFields[] = 'releases_url'; - goto after_releases_url; + $missingFields[] = 'slug'; + goto after_slug; } - $properties['releases_url'] = $value; + $properties['slug'] = $value; - after_releases_url: + after_slug: - $value = $payload['ssh_url'] ?? null; + $value = $payload['created_at'] ?? null; if ($value === null) { - $missingFields[] = 'ssh_url'; - goto after_ssh_url; + $missingFields[] = 'created_at'; + goto after_created_at; } - $properties['ssh_url'] = $value; + $properties['created_at'] = $value; - after_ssh_url: + after_created_at: - $value = $payload['stargazers_url'] ?? null; + $value = $payload['updated_at'] ?? null; if ($value === null) { - $missingFields[] = 'stargazers_url'; - goto after_stargazers_url; + $missingFields[] = 'updated_at'; + goto after_updated_at; } - $properties['stargazers_url'] = $value; + $properties['updated_at'] = $value; - after_stargazers_url: + after_updated_at: - $value = $payload['statuses_url'] ?? null; + $value = $payload['avatar_url'] ?? null; if ($value === null) { - $missingFields[] = 'statuses_url'; - goto after_statuses_url; + $missingFields[] = 'avatar_url'; + goto after_avatar_url; } - $properties['statuses_url'] = $value; + $properties['avatar_url'] = $value; - after_statuses_url: + after_avatar_url: - $value = $payload['subscribers_url'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Enterprise', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Enterprise::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\Enterprise(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Enterprise', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation(array $payload): \ApiClients\Client\Github\Schema\SimpleInstallation + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'subscribers_url'; - goto after_subscribers_url; + $missingFields[] = 'id'; + goto after_id; } - $properties['subscribers_url'] = $value; + $properties['id'] = $value; - after_subscribers_url: + after_id: - $value = $payload['subscription_url'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $missingFields[] = 'subscription_url'; - goto after_subscription_url; + $missingFields[] = 'node_id'; + goto after_node_id; } - $properties['subscription_url'] = $value; + $properties['node_id'] = $value; - after_subscription_url: + after_node_id: - $value = $payload['tags_url'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleInstallation', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\SimpleInstallation::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\SimpleInstallation(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleInstallation', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple(array $payload): \ApiClients\Client\Github\Schema\OrganizationSimple + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['login'] ?? null; if ($value === null) { - $missingFields[] = 'tags_url'; - goto after_tags_url; + $missingFields[] = 'login'; + goto after_login; } - $properties['tags_url'] = $value; + $properties['login'] = $value; - after_tags_url: + after_login: - $value = $payload['teams_url'] ?? null; + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'teams_url'; - goto after_teams_url; + $missingFields[] = 'id'; + goto after_id; } - $properties['teams_url'] = $value; + $properties['id'] = $value; - after_teams_url: + after_id: - $value = $payload['trees_url'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $missingFields[] = 'trees_url'; - goto after_trees_url; + $missingFields[] = 'node_id'; + goto after_node_id; } - $properties['trees_url'] = $value; + $properties['node_id'] = $value; - after_trees_url: + after_node_id: - $value = $payload['clone_url'] ?? null; + $value = $payload['url'] ?? null; if ($value === null) { - $missingFields[] = 'clone_url'; - goto after_clone_url; + $missingFields[] = 'url'; + goto after_url; } - $properties['clone_url'] = $value; + $properties['url'] = $value; - after_clone_url: + after_url: - $value = $payload['mirror_url'] ?? null; + $value = $payload['repos_url'] ?? null; if ($value === null) { - $missingFields[] = 'mirror_url'; - goto after_mirror_url; + $missingFields[] = 'repos_url'; + goto after_repos_url; } - $properties['mirror_url'] = $value; + $properties['repos_url'] = $value; - after_mirror_url: + after_repos_url: + + $value = $payload['events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'events_url'; + goto after_events_url; + } + + $properties['events_url'] = $value; + + after_events_url: $value = $payload['hooks_url'] ?? null; @@ -1337,1868 +1547,1867 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repo after_hooks_url: - $value = $payload['svn_url'] ?? null; + $value = $payload['issues_url'] ?? null; if ($value === null) { - $missingFields[] = 'svn_url'; - goto after_svn_url; + $missingFields[] = 'issues_url'; + goto after_issues_url; } - $properties['svn_url'] = $value; + $properties['issues_url'] = $value; - after_svn_url: + after_issues_url: - $value = $payload['homepage'] ?? null; + $value = $payload['members_url'] ?? null; if ($value === null) { - $missingFields[] = 'homepage'; - goto after_homepage; + $missingFields[] = 'members_url'; + goto after_members_url; } - $properties['homepage'] = $value; + $properties['members_url'] = $value; - after_homepage: + after_members_url: - $value = $payload['language'] ?? null; + $value = $payload['public_members_url'] ?? null; if ($value === null) { - $missingFields[] = 'language'; - goto after_language; + $missingFields[] = 'public_members_url'; + goto after_public_members_url; } - $properties['language'] = $value; + $properties['public_members_url'] = $value; - after_language: + after_public_members_url: - $value = $payload['forks_count'] ?? null; + $value = $payload['avatar_url'] ?? null; if ($value === null) { - $missingFields[] = 'forks_count'; - goto after_forks_count; + $missingFields[] = 'avatar_url'; + goto after_avatar_url; } - $properties['forks_count'] = $value; + $properties['avatar_url'] = $value; - after_forks_count: + after_avatar_url: - $value = $payload['stargazers_count'] ?? null; + $value = $payload['description'] ?? null; if ($value === null) { - $missingFields[] = 'stargazers_count'; - goto after_stargazers_count; + $missingFields[] = 'description'; + goto after_description; } - $properties['stargazers_count'] = $value; + $properties['description'] = $value; - after_stargazers_count: + after_description: - $value = $payload['watchers_count'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\OrganizationSimple', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\OrganizationSimple::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\OrganizationSimple(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\OrganizationSimple', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository(array $payload): \ApiClients\Client\Github\Schema\Repository + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'watchers_count'; - goto after_watchers_count; + $missingFields[] = 'id'; + goto after_id; } - $properties['watchers_count'] = $value; + $properties['id'] = $value; - after_watchers_count: + after_id: - $value = $payload['size'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $missingFields[] = 'size'; - goto after_size; + $missingFields[] = 'node_id'; + goto after_node_id; } - $properties['size'] = $value; + $properties['node_id'] = $value; - after_size: + after_node_id: - $value = $payload['default_branch'] ?? null; + $value = $payload['name'] ?? null; if ($value === null) { - $missingFields[] = 'default_branch'; - goto after_default_branch; + $missingFields[] = 'name'; + goto after_name; } - $properties['default_branch'] = $value; + $properties['name'] = $value; - after_default_branch: + after_name: - $value = $payload['open_issues_count'] ?? null; + $value = $payload['full_name'] ?? null; if ($value === null) { - $missingFields[] = 'open_issues_count'; - goto after_open_issues_count; + $missingFields[] = 'full_name'; + goto after_full_name; } - $properties['open_issues_count'] = $value; + $properties['full_name'] = $value; - after_open_issues_count: + after_full_name: - $value = $payload['is_template'] ?? null; + $value = $payload['license'] ?? null; if ($value === null) { - $missingFields[] = 'is_template'; - goto after_is_template; + $properties['license'] = null; + goto after_license; } - $properties['is_template'] = $value; + $properties['license'] = $value; - after_is_template: + after_license: - $value = $payload['topics'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'topics'; - goto after_topics; + $properties['organization'] = null; + goto after_organization; } - $properties['topics'] = $value; + $properties['organization'] = $value; - after_topics: + after_organization: - $value = $payload['has_issues'] ?? null; + $value = $payload['forks'] ?? null; if ($value === null) { - $missingFields[] = 'has_issues'; - goto after_has_issues; + $missingFields[] = 'forks'; + goto after_forks; } - $properties['has_issues'] = $value; + $properties['forks'] = $value; - after_has_issues: + after_forks: - $value = $payload['has_projects'] ?? null; + $value = $payload['permissions'] ?? null; if ($value === null) { - $missingFields[] = 'has_projects'; - goto after_has_projects; + $missingFields[] = 'permissions'; + goto after_permissions; } - $properties['has_projects'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'permissions'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️Permissions($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['permissions'] = $value; - after_has_projects: + after_permissions: - $value = $payload['has_wiki'] ?? null; + $value = $payload['owner'] ?? null; if ($value === null) { - $missingFields[] = 'has_wiki'; - goto after_has_wiki; + $missingFields[] = 'owner'; + goto after_owner; } - $properties['has_wiki'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'owner'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['owner'] = $value; - after_has_wiki: + after_owner: - $value = $payload['has_pages'] ?? null; + $value = $payload['private'] ?? null; if ($value === null) { - $missingFields[] = 'has_pages'; - goto after_has_pages; + $missingFields[] = 'private'; + goto after_private; } - $properties['has_pages'] = $value; + $properties['private'] = $value; - after_has_pages: + after_private: - $value = $payload['has_downloads'] ?? null; + $value = $payload['html_url'] ?? null; if ($value === null) { - $missingFields[] = 'has_downloads'; - goto after_has_downloads; + $missingFields[] = 'html_url'; + goto after_html_url; } - $properties['has_downloads'] = $value; + $properties['html_url'] = $value; - after_has_downloads: + after_html_url: - $value = $payload['has_discussions'] ?? null; + $value = $payload['description'] ?? null; if ($value === null) { - $missingFields[] = 'has_discussions'; - goto after_has_discussions; + $missingFields[] = 'description'; + goto after_description; } - $properties['has_discussions'] = $value; + $properties['description'] = $value; - after_has_discussions: + after_description: - $value = $payload['archived'] ?? null; + $value = $payload['fork'] ?? null; if ($value === null) { - $missingFields[] = 'archived'; - goto after_archived; + $missingFields[] = 'fork'; + goto after_fork; } - $properties['archived'] = $value; + $properties['fork'] = $value; - after_archived: + after_fork: - $value = $payload['disabled'] ?? null; + $value = $payload['url'] ?? null; if ($value === null) { - $missingFields[] = 'disabled'; - goto after_disabled; + $missingFields[] = 'url'; + goto after_url; } - $properties['disabled'] = $value; + $properties['url'] = $value; - after_disabled: + after_url: - $value = $payload['visibility'] ?? null; + $value = $payload['archive_url'] ?? null; if ($value === null) { - $missingFields[] = 'visibility'; - goto after_visibility; + $missingFields[] = 'archive_url'; + goto after_archive_url; } - $properties['visibility'] = $value; + $properties['archive_url'] = $value; - after_visibility: + after_archive_url: - $value = $payload['pushed_at'] ?? null; + $value = $payload['assignees_url'] ?? null; if ($value === null) { - $missingFields[] = 'pushed_at'; - goto after_pushed_at; + $missingFields[] = 'assignees_url'; + goto after_assignees_url; } - $properties['pushed_at'] = $value; + $properties['assignees_url'] = $value; - after_pushed_at: + after_assignees_url: - $value = $payload['created_at'] ?? null; + $value = $payload['blobs_url'] ?? null; if ($value === null) { - $missingFields[] = 'created_at'; - goto after_created_at; + $missingFields[] = 'blobs_url'; + goto after_blobs_url; } - $properties['created_at'] = $value; + $properties['blobs_url'] = $value; - after_created_at: + after_blobs_url: - $value = $payload['updated_at'] ?? null; + $value = $payload['branches_url'] ?? null; if ($value === null) { - $missingFields[] = 'updated_at'; - goto after_updated_at; - } + $missingFields[] = 'branches_url'; + goto after_branches_url; + } - $properties['updated_at'] = $value; + $properties['branches_url'] = $value; - after_updated_at: + after_branches_url: - $value = $payload['allow_rebase_merge'] ?? null; + $value = $payload['collaborators_url'] ?? null; if ($value === null) { - $missingFields[] = 'allow_rebase_merge'; - goto after_allow_rebase_merge; + $missingFields[] = 'collaborators_url'; + goto after_collaborators_url; } - $properties['allow_rebase_merge'] = $value; + $properties['collaborators_url'] = $value; - after_allow_rebase_merge: + after_collaborators_url: - $value = $payload['template_repository'] ?? null; + $value = $payload['comments_url'] ?? null; if ($value === null) { - $missingFields[] = 'template_repository'; - goto after_template_repository; + $missingFields[] = 'comments_url'; + goto after_comments_url; } - if (is_array($value)) { - try { - $this->hydrationStack[] = 'template_repository'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository($value); - } finally { - array_pop($this->hydrationStack); - } + $properties['comments_url'] = $value; + + after_comments_url: + + $value = $payload['commits_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'commits_url'; + goto after_commits_url; } - $properties['template_repository'] = $value; + $properties['commits_url'] = $value; - after_template_repository: + after_commits_url: - $value = $payload['temp_clone_token'] ?? null; + $value = $payload['compare_url'] ?? null; if ($value === null) { - $missingFields[] = 'temp_clone_token'; - goto after_temp_clone_token; + $missingFields[] = 'compare_url'; + goto after_compare_url; } - $properties['temp_clone_token'] = $value; + $properties['compare_url'] = $value; - after_temp_clone_token: + after_compare_url: - $value = $payload['allow_squash_merge'] ?? null; + $value = $payload['contents_url'] ?? null; if ($value === null) { - $missingFields[] = 'allow_squash_merge'; - goto after_allow_squash_merge; + $missingFields[] = 'contents_url'; + goto after_contents_url; } - $properties['allow_squash_merge'] = $value; + $properties['contents_url'] = $value; - after_allow_squash_merge: + after_contents_url: - $value = $payload['allow_auto_merge'] ?? null; + $value = $payload['contributors_url'] ?? null; if ($value === null) { - $missingFields[] = 'allow_auto_merge'; - goto after_allow_auto_merge; + $missingFields[] = 'contributors_url'; + goto after_contributors_url; } - $properties['allow_auto_merge'] = $value; + $properties['contributors_url'] = $value; - after_allow_auto_merge: + after_contributors_url: - $value = $payload['delete_branch_on_merge'] ?? null; + $value = $payload['deployments_url'] ?? null; if ($value === null) { - $missingFields[] = 'delete_branch_on_merge'; - goto after_delete_branch_on_merge; + $missingFields[] = 'deployments_url'; + goto after_deployments_url; } - $properties['delete_branch_on_merge'] = $value; + $properties['deployments_url'] = $value; - after_delete_branch_on_merge: + after_deployments_url: - $value = $payload['allow_update_branch'] ?? null; + $value = $payload['downloads_url'] ?? null; if ($value === null) { - $missingFields[] = 'allow_update_branch'; - goto after_allow_update_branch; + $missingFields[] = 'downloads_url'; + goto after_downloads_url; } - $properties['allow_update_branch'] = $value; + $properties['downloads_url'] = $value; - after_allow_update_branch: + after_downloads_url: - $value = $payload['use_squash_pr_title_as_default'] ?? null; + $value = $payload['events_url'] ?? null; if ($value === null) { - $missingFields[] = 'use_squash_pr_title_as_default'; - goto after_use_squash_pr_title_as_default; + $missingFields[] = 'events_url'; + goto after_events_url; } - $properties['use_squash_pr_title_as_default'] = $value; + $properties['events_url'] = $value; - after_use_squash_pr_title_as_default: + after_events_url: - $value = $payload['squash_merge_commit_title'] ?? null; + $value = $payload['forks_url'] ?? null; if ($value === null) { - $missingFields[] = 'squash_merge_commit_title'; - goto after_squash_merge_commit_title; + $missingFields[] = 'forks_url'; + goto after_forks_url; } - $properties['squash_merge_commit_title'] = $value; + $properties['forks_url'] = $value; - after_squash_merge_commit_title: + after_forks_url: - $value = $payload['squash_merge_commit_message'] ?? null; + $value = $payload['git_commits_url'] ?? null; if ($value === null) { - $missingFields[] = 'squash_merge_commit_message'; - goto after_squash_merge_commit_message; + $missingFields[] = 'git_commits_url'; + goto after_git_commits_url; } - $properties['squash_merge_commit_message'] = $value; + $properties['git_commits_url'] = $value; - after_squash_merge_commit_message: + after_git_commits_url: - $value = $payload['merge_commit_title'] ?? null; + $value = $payload['git_refs_url'] ?? null; if ($value === null) { - $missingFields[] = 'merge_commit_title'; - goto after_merge_commit_title; + $missingFields[] = 'git_refs_url'; + goto after_git_refs_url; } - $properties['merge_commit_title'] = $value; + $properties['git_refs_url'] = $value; - after_merge_commit_title: + after_git_refs_url: - $value = $payload['merge_commit_message'] ?? null; + $value = $payload['git_tags_url'] ?? null; if ($value === null) { - $missingFields[] = 'merge_commit_message'; - goto after_merge_commit_message; + $missingFields[] = 'git_tags_url'; + goto after_git_tags_url; } - $properties['merge_commit_message'] = $value; + $properties['git_tags_url'] = $value; - after_merge_commit_message: + after_git_tags_url: - $value = $payload['allow_merge_commit'] ?? null; + $value = $payload['git_url'] ?? null; if ($value === null) { - $missingFields[] = 'allow_merge_commit'; - goto after_allow_merge_commit; + $missingFields[] = 'git_url'; + goto after_git_url; } - $properties['allow_merge_commit'] = $value; + $properties['git_url'] = $value; - after_allow_merge_commit: + after_git_url: - $value = $payload['allow_forking'] ?? null; + $value = $payload['issue_comment_url'] ?? null; if ($value === null) { - $missingFields[] = 'allow_forking'; - goto after_allow_forking; + $missingFields[] = 'issue_comment_url'; + goto after_issue_comment_url; } - $properties['allow_forking'] = $value; + $properties['issue_comment_url'] = $value; - after_allow_forking: + after_issue_comment_url: - $value = $payload['web_commit_signoff_required'] ?? null; + $value = $payload['issue_events_url'] ?? null; if ($value === null) { - $missingFields[] = 'web_commit_signoff_required'; - goto after_web_commit_signoff_required; + $missingFields[] = 'issue_events_url'; + goto after_issue_events_url; } - $properties['web_commit_signoff_required'] = $value; + $properties['issue_events_url'] = $value; - after_web_commit_signoff_required: + after_issue_events_url: - $value = $payload['subscribers_count'] ?? null; + $value = $payload['issues_url'] ?? null; if ($value === null) { - $missingFields[] = 'subscribers_count'; - goto after_subscribers_count; + $missingFields[] = 'issues_url'; + goto after_issues_url; } - $properties['subscribers_count'] = $value; + $properties['issues_url'] = $value; - after_subscribers_count: + after_issues_url: - $value = $payload['network_count'] ?? null; + $value = $payload['keys_url'] ?? null; if ($value === null) { - $missingFields[] = 'network_count'; - goto after_network_count; + $missingFields[] = 'keys_url'; + goto after_keys_url; } - $properties['network_count'] = $value; + $properties['keys_url'] = $value; - after_network_count: + after_keys_url: - $value = $payload['open_issues'] ?? null; + $value = $payload['labels_url'] ?? null; if ($value === null) { - $missingFields[] = 'open_issues'; - goto after_open_issues; + $missingFields[] = 'labels_url'; + goto after_labels_url; } - $properties['open_issues'] = $value; + $properties['labels_url'] = $value; - after_open_issues: + after_labels_url: - $value = $payload['watchers'] ?? null; + $value = $payload['languages_url'] ?? null; if ($value === null) { - $missingFields[] = 'watchers'; - goto after_watchers; + $missingFields[] = 'languages_url'; + goto after_languages_url; } - $properties['watchers'] = $value; + $properties['languages_url'] = $value; - after_watchers: + after_languages_url: - $value = $payload['master_branch'] ?? null; + $value = $payload['merges_url'] ?? null; if ($value === null) { - $missingFields[] = 'master_branch'; - goto after_master_branch; + $missingFields[] = 'merges_url'; + goto after_merges_url; } - $properties['master_branch'] = $value; + $properties['merges_url'] = $value; - after_master_branch: + after_merges_url: - $value = $payload['starred_at'] ?? null; + $value = $payload['milestones_url'] ?? null; if ($value === null) { - $missingFields[] = 'starred_at'; - goto after_starred_at; + $missingFields[] = 'milestones_url'; + goto after_milestones_url; } - $properties['starred_at'] = $value; + $properties['milestones_url'] = $value; - after_starred_at: + after_milestones_url: - $value = $payload['anonymous_access_enabled'] ?? null; + $value = $payload['notifications_url'] ?? null; if ($value === null) { - $missingFields[] = 'anonymous_access_enabled'; - goto after_anonymous_access_enabled; + $missingFields[] = 'notifications_url'; + goto after_notifications_url; } - $properties['anonymous_access_enabled'] = $value; + $properties['notifications_url'] = $value; - after_anonymous_access_enabled: + after_notifications_url: - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\Repository(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository', $exception, stack: $this->hydrationStack); - } - } - - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser(array $payload): \ApiClients\Client\Github\Schema\SimpleUser - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['name'] ?? null; + $value = $payload['pulls_url'] ?? null; if ($value === null) { - $missingFields[] = 'name'; - goto after_name; + $missingFields[] = 'pulls_url'; + goto after_pulls_url; } - $properties['name'] = $value; + $properties['pulls_url'] = $value; - after_name: + after_pulls_url: - $value = $payload['email'] ?? null; + $value = $payload['releases_url'] ?? null; if ($value === null) { - $missingFields[] = 'email'; - goto after_email; + $missingFields[] = 'releases_url'; + goto after_releases_url; } - $properties['email'] = $value; + $properties['releases_url'] = $value; - after_email: + after_releases_url: - $value = $payload['login'] ?? null; + $value = $payload['ssh_url'] ?? null; if ($value === null) { - $missingFields[] = 'login'; - goto after_login; + $missingFields[] = 'ssh_url'; + goto after_ssh_url; } - $properties['login'] = $value; + $properties['ssh_url'] = $value; - after_login: + after_ssh_url: - $value = $payload['id'] ?? null; + $value = $payload['stargazers_url'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'stargazers_url'; + goto after_stargazers_url; } - $properties['id'] = $value; + $properties['stargazers_url'] = $value; - after_id: + after_stargazers_url: - $value = $payload['node_id'] ?? null; + $value = $payload['statuses_url'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $missingFields[] = 'statuses_url'; + goto after_statuses_url; } - $properties['node_id'] = $value; + $properties['statuses_url'] = $value; - after_node_id: + after_statuses_url: - $value = $payload['avatar_url'] ?? null; + $value = $payload['subscribers_url'] ?? null; if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatar_url; + $missingFields[] = 'subscribers_url'; + goto after_subscribers_url; } - $properties['avatar_url'] = $value; + $properties['subscribers_url'] = $value; - after_avatar_url: + after_subscribers_url: - $value = $payload['gravatar_id'] ?? null; + $value = $payload['subscription_url'] ?? null; if ($value === null) { - $missingFields[] = 'gravatar_id'; - goto after_gravatar_id; + $missingFields[] = 'subscription_url'; + goto after_subscription_url; } - $properties['gravatar_id'] = $value; + $properties['subscription_url'] = $value; - after_gravatar_id: + after_subscription_url: - $value = $payload['url'] ?? null; + $value = $payload['tags_url'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $missingFields[] = 'tags_url'; + goto after_tags_url; } - $properties['url'] = $value; + $properties['tags_url'] = $value; - after_url: + after_tags_url: - $value = $payload['html_url'] ?? null; + $value = $payload['teams_url'] ?? null; if ($value === null) { - $missingFields[] = 'html_url'; - goto after_html_url; + $missingFields[] = 'teams_url'; + goto after_teams_url; } - $properties['html_url'] = $value; + $properties['teams_url'] = $value; - after_html_url: + after_teams_url: - $value = $payload['followers_url'] ?? null; + $value = $payload['trees_url'] ?? null; if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followers_url; + $missingFields[] = 'trees_url'; + goto after_trees_url; } - $properties['followers_url'] = $value; + $properties['trees_url'] = $value; - after_followers_url: + after_trees_url: - $value = $payload['following_url'] ?? null; + $value = $payload['clone_url'] ?? null; if ($value === null) { - $missingFields[] = 'following_url'; - goto after_following_url; + $missingFields[] = 'clone_url'; + goto after_clone_url; } - $properties['following_url'] = $value; + $properties['clone_url'] = $value; - after_following_url: + after_clone_url: - $value = $payload['gists_url'] ?? null; + $value = $payload['mirror_url'] ?? null; if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gists_url; + $missingFields[] = 'mirror_url'; + goto after_mirror_url; } - $properties['gists_url'] = $value; + $properties['mirror_url'] = $value; - after_gists_url: + after_mirror_url: - $value = $payload['starred_url'] ?? null; + $value = $payload['hooks_url'] ?? null; if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starred_url; + $missingFields[] = 'hooks_url'; + goto after_hooks_url; } - $properties['starred_url'] = $value; + $properties['hooks_url'] = $value; - after_starred_url: + after_hooks_url: - $value = $payload['subscriptions_url'] ?? null; + $value = $payload['svn_url'] ?? null; if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptions_url; + $missingFields[] = 'svn_url'; + goto after_svn_url; } - $properties['subscriptions_url'] = $value; + $properties['svn_url'] = $value; - after_subscriptions_url: + after_svn_url: - $value = $payload['organizations_url'] ?? null; + $value = $payload['homepage'] ?? null; if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizations_url; + $missingFields[] = 'homepage'; + goto after_homepage; } - $properties['organizations_url'] = $value; + $properties['homepage'] = $value; - after_organizations_url: + after_homepage: - $value = $payload['repos_url'] ?? null; + $value = $payload['language'] ?? null; if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_repos_url; + $missingFields[] = 'language'; + goto after_language; } - $properties['repos_url'] = $value; + $properties['language'] = $value; - after_repos_url: + after_language: - $value = $payload['events_url'] ?? null; + $value = $payload['forks_count'] ?? null; if ($value === null) { - $missingFields[] = 'events_url'; - goto after_events_url; + $missingFields[] = 'forks_count'; + goto after_forks_count; } - $properties['events_url'] = $value; + $properties['forks_count'] = $value; - after_events_url: + after_forks_count: - $value = $payload['received_events_url'] ?? null; + $value = $payload['stargazers_count'] ?? null; if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_received_events_url; + $missingFields[] = 'stargazers_count'; + goto after_stargazers_count; } - $properties['received_events_url'] = $value; + $properties['stargazers_count'] = $value; - after_received_events_url: + after_stargazers_count: - $value = $payload['type'] ?? null; + $value = $payload['watchers_count'] ?? null; if ($value === null) { - $missingFields[] = 'type'; - goto after_type; + $missingFields[] = 'watchers_count'; + goto after_watchers_count; } - $properties['type'] = $value; + $properties['watchers_count'] = $value; - after_type: + after_watchers_count: - $value = $payload['site_admin'] ?? null; + $value = $payload['size'] ?? null; if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_site_admin; + $missingFields[] = 'size'; + goto after_size; } - $properties['site_admin'] = $value; + $properties['size'] = $value; - after_site_admin: + after_size: - $value = $payload['starred_at'] ?? null; + $value = $payload['default_branch'] ?? null; if ($value === null) { - $missingFields[] = 'starred_at'; - goto after_starred_at; + $missingFields[] = 'default_branch'; + goto after_default_branch; } - $properties['starred_at'] = $value; + $properties['default_branch'] = $value; - after_starred_at: - - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleUser', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\SimpleUser::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\SimpleUser(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleUser', $exception, stack: $this->hydrationStack); - } - } + after_default_branch: - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCodeScanningAlertAppearedInBranch⚡️Alert⚡️MostRecentInstance(array $payload): \ApiClients\Client\Github\Schema\WebhookCodeScanningAlertAppearedInBranch\Alert\MostRecentInstance - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['analysis_key'] ?? null; + $value = $payload['open_issues_count'] ?? null; if ($value === null) { - $missingFields[] = 'analysis_key'; - goto after_analysis_key; + $missingFields[] = 'open_issues_count'; + goto after_open_issues_count; } - $properties['analysis_key'] = $value; + $properties['open_issues_count'] = $value; - after_analysis_key: + after_open_issues_count: - $value = $payload['classifications'] ?? null; + $value = $payload['is_template'] ?? null; if ($value === null) { - $missingFields[] = 'classifications'; - goto after_classifications; - } + $missingFields[] = 'is_template'; + goto after_is_template; + } - $properties['classifications'] = $value; + $properties['is_template'] = $value; - after_classifications: + after_is_template: - $value = $payload['commit_sha'] ?? null; + $value = $payload['topics'] ?? null; if ($value === null) { - $missingFields[] = 'commit_sha'; - goto after_commit_sha; + $missingFields[] = 'topics'; + goto after_topics; } - $properties['commit_sha'] = $value; + $properties['topics'] = $value; - after_commit_sha: + after_topics: - $value = $payload['environment'] ?? null; + $value = $payload['has_issues'] ?? null; if ($value === null) { - $missingFields[] = 'environment'; - goto after_environment; + $missingFields[] = 'has_issues'; + goto after_has_issues; } - $properties['environment'] = $value; + $properties['has_issues'] = $value; - after_environment: + after_has_issues: - $value = $payload['location'] ?? null; + $value = $payload['has_projects'] ?? null; if ($value === null) { - $missingFields[] = 'location'; - goto after_location; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'location'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCodeScanningAlertAppearedInBranch⚡️Alert⚡️MostRecentInstance⚡️Location($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'has_projects'; + goto after_has_projects; } - $properties['location'] = $value; + $properties['has_projects'] = $value; - after_location: + after_has_projects: - $value = $payload['message'] ?? null; + $value = $payload['has_wiki'] ?? null; if ($value === null) { - $missingFields[] = 'message'; - goto after_message; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'message'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️CodeScanningAlertInstance⚡️Message($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'has_wiki'; + goto after_has_wiki; } - $properties['message'] = $value; + $properties['has_wiki'] = $value; - after_message: + after_has_wiki: - $value = $payload['ref'] ?? null; + $value = $payload['has_pages'] ?? null; if ($value === null) { - $missingFields[] = 'ref'; - goto after_ref; + $missingFields[] = 'has_pages'; + goto after_has_pages; } - $properties['ref'] = $value; + $properties['has_pages'] = $value; - after_ref: + after_has_pages: - $value = $payload['state'] ?? null; + $value = $payload['has_downloads'] ?? null; if ($value === null) { - $missingFields[] = 'state'; - goto after_state; + $missingFields[] = 'has_downloads'; + goto after_has_downloads; } - $properties['state'] = $value; + $properties['has_downloads'] = $value; - after_state: - - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCodeScanningAlertAppearedInBranch\Alert\MostRecentInstance', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookCodeScanningAlertAppearedInBranch\Alert\MostRecentInstance::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\WebhookCodeScanningAlertAppearedInBranch\Alert\MostRecentInstance(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCodeScanningAlertAppearedInBranch\Alert\MostRecentInstance', $exception, stack: $this->hydrationStack); - } - } + after_has_downloads: - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCodeScanningAlertAppearedInBranch⚡️Alert⚡️Rule(array $payload): \ApiClients\Client\Github\Schema\WebhookCodeScanningAlertAppearedInBranch\Alert\Rule - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['description'] ?? null; + $value = $payload['has_discussions'] ?? null; if ($value === null) { - $missingFields[] = 'description'; - goto after_description; + $missingFields[] = 'has_discussions'; + goto after_has_discussions; } - $properties['description'] = $value; + $properties['has_discussions'] = $value; - after_description: + after_has_discussions: - $value = $payload['id'] ?? null; + $value = $payload['archived'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'archived'; + goto after_archived; } - $properties['id'] = $value; + $properties['archived'] = $value; - after_id: + after_archived: - $value = $payload['severity'] ?? null; + $value = $payload['disabled'] ?? null; if ($value === null) { - $missingFields[] = 'severity'; - goto after_severity; + $missingFields[] = 'disabled'; + goto after_disabled; } - $properties['severity'] = $value; + $properties['disabled'] = $value; - after_severity: - - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCodeScanningAlertAppearedInBranch\Alert\Rule', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookCodeScanningAlertAppearedInBranch\Alert\Rule::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\WebhookCodeScanningAlertAppearedInBranch\Alert\Rule(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCodeScanningAlertAppearedInBranch\Alert\Rule', $exception, stack: $this->hydrationStack); - } - } + after_disabled: - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCodeScanningAlertAppearedInBranch⚡️Alert⚡️Tool(array $payload): \ApiClients\Client\Github\Schema\WebhookCodeScanningAlertAppearedInBranch\Alert\Tool - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['name'] ?? null; + $value = $payload['visibility'] ?? null; if ($value === null) { - $missingFields[] = 'name'; - goto after_name; + $missingFields[] = 'visibility'; + goto after_visibility; } - $properties['name'] = $value; + $properties['visibility'] = $value; - after_name: + after_visibility: - $value = $payload['version'] ?? null; + $value = $payload['pushed_at'] ?? null; if ($value === null) { - $missingFields[] = 'version'; - goto after_version; + $missingFields[] = 'pushed_at'; + goto after_pushed_at; } - $properties['version'] = $value; + $properties['pushed_at'] = $value; - after_version: - - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCodeScanningAlertAppearedInBranch\Alert\Tool', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookCodeScanningAlertAppearedInBranch\Alert\Tool::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\WebhookCodeScanningAlertAppearedInBranch\Alert\Tool(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCodeScanningAlertAppearedInBranch\Alert\Tool', $exception, stack: $this->hydrationStack); - } - } + after_pushed_at: - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️Permissions(array $payload): \ApiClients\Client\Github\Schema\Repository\Permissions - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['admin'] ?? null; + $value = $payload['created_at'] ?? null; if ($value === null) { - $missingFields[] = 'admin'; - goto after_admin; + $missingFields[] = 'created_at'; + goto after_created_at; } - $properties['admin'] = $value; + $properties['created_at'] = $value; - after_admin: + after_created_at: - $value = $payload['pull'] ?? null; + $value = $payload['updated_at'] ?? null; if ($value === null) { - $missingFields[] = 'pull'; - goto after_pull; + $missingFields[] = 'updated_at'; + goto after_updated_at; } - $properties['pull'] = $value; + $properties['updated_at'] = $value; - after_pull: + after_updated_at: - $value = $payload['triage'] ?? null; + $value = $payload['allow_rebase_merge'] ?? null; if ($value === null) { - $missingFields[] = 'triage'; - goto after_triage; + $missingFields[] = 'allow_rebase_merge'; + goto after_allow_rebase_merge; } - $properties['triage'] = $value; + $properties['allow_rebase_merge'] = $value; - after_triage: + after_allow_rebase_merge: - $value = $payload['push'] ?? null; + $value = $payload['template_repository'] ?? null; if ($value === null) { - $missingFields[] = 'push'; - goto after_push; + $missingFields[] = 'template_repository'; + goto after_template_repository; } - $properties['push'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'template_repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['template_repository'] = $value; - after_push: + after_template_repository: - $value = $payload['maintain'] ?? null; + $value = $payload['temp_clone_token'] ?? null; if ($value === null) { - $missingFields[] = 'maintain'; - goto after_maintain; + $missingFields[] = 'temp_clone_token'; + goto after_temp_clone_token; } - $properties['maintain'] = $value; + $properties['temp_clone_token'] = $value; - after_maintain: - - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\Permissions', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\Permissions::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\Repository\Permissions(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\Permissions', $exception, stack: $this->hydrationStack); - } - } + after_temp_clone_token: - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository(array $payload): \ApiClients\Client\Github\Schema\Repository\TemplateRepository - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['id'] ?? null; + $value = $payload['allow_squash_merge'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'allow_squash_merge'; + goto after_allow_squash_merge; } - $properties['id'] = $value; + $properties['allow_squash_merge'] = $value; - after_id: + after_allow_squash_merge: - $value = $payload['node_id'] ?? null; + $value = $payload['allow_auto_merge'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $missingFields[] = 'allow_auto_merge'; + goto after_allow_auto_merge; } - $properties['node_id'] = $value; + $properties['allow_auto_merge'] = $value; - after_node_id: + after_allow_auto_merge: - $value = $payload['name'] ?? null; + $value = $payload['delete_branch_on_merge'] ?? null; if ($value === null) { - $missingFields[] = 'name'; - goto after_name; + $missingFields[] = 'delete_branch_on_merge'; + goto after_delete_branch_on_merge; } - $properties['name'] = $value; + $properties['delete_branch_on_merge'] = $value; - after_name: + after_delete_branch_on_merge: - $value = $payload['full_name'] ?? null; + $value = $payload['allow_update_branch'] ?? null; if ($value === null) { - $missingFields[] = 'full_name'; - goto after_full_name; + $missingFields[] = 'allow_update_branch'; + goto after_allow_update_branch; } - $properties['full_name'] = $value; + $properties['allow_update_branch'] = $value; - after_full_name: + after_allow_update_branch: - $value = $payload['owner'] ?? null; + $value = $payload['use_squash_pr_title_as_default'] ?? null; if ($value === null) { - $missingFields[] = 'owner'; - goto after_owner; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'owner'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'use_squash_pr_title_as_default'; + goto after_use_squash_pr_title_as_default; } - $properties['owner'] = $value; + $properties['use_squash_pr_title_as_default'] = $value; - after_owner: + after_use_squash_pr_title_as_default: - $value = $payload['private'] ?? null; + $value = $payload['squash_merge_commit_title'] ?? null; if ($value === null) { - $missingFields[] = 'private'; - goto after_private; + $missingFields[] = 'squash_merge_commit_title'; + goto after_squash_merge_commit_title; } - $properties['private'] = $value; + $properties['squash_merge_commit_title'] = $value; - after_private: + after_squash_merge_commit_title: - $value = $payload['html_url'] ?? null; + $value = $payload['squash_merge_commit_message'] ?? null; if ($value === null) { - $missingFields[] = 'html_url'; - goto after_html_url; + $missingFields[] = 'squash_merge_commit_message'; + goto after_squash_merge_commit_message; } - $properties['html_url'] = $value; + $properties['squash_merge_commit_message'] = $value; - after_html_url: + after_squash_merge_commit_message: - $value = $payload['description'] ?? null; + $value = $payload['merge_commit_title'] ?? null; if ($value === null) { - $missingFields[] = 'description'; - goto after_description; + $missingFields[] = 'merge_commit_title'; + goto after_merge_commit_title; } - $properties['description'] = $value; + $properties['merge_commit_title'] = $value; - after_description: + after_merge_commit_title: - $value = $payload['fork'] ?? null; + $value = $payload['merge_commit_message'] ?? null; if ($value === null) { - $missingFields[] = 'fork'; - goto after_fork; + $missingFields[] = 'merge_commit_message'; + goto after_merge_commit_message; } - $properties['fork'] = $value; + $properties['merge_commit_message'] = $value; - after_fork: + after_merge_commit_message: - $value = $payload['url'] ?? null; + $value = $payload['allow_merge_commit'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $missingFields[] = 'allow_merge_commit'; + goto after_allow_merge_commit; } - $properties['url'] = $value; + $properties['allow_merge_commit'] = $value; - after_url: + after_allow_merge_commit: - $value = $payload['archive_url'] ?? null; + $value = $payload['allow_forking'] ?? null; if ($value === null) { - $missingFields[] = 'archive_url'; - goto after_archive_url; + $missingFields[] = 'allow_forking'; + goto after_allow_forking; } - $properties['archive_url'] = $value; + $properties['allow_forking'] = $value; - after_archive_url: + after_allow_forking: - $value = $payload['assignees_url'] ?? null; + $value = $payload['web_commit_signoff_required'] ?? null; if ($value === null) { - $missingFields[] = 'assignees_url'; - goto after_assignees_url; + $missingFields[] = 'web_commit_signoff_required'; + goto after_web_commit_signoff_required; } - $properties['assignees_url'] = $value; + $properties['web_commit_signoff_required'] = $value; - after_assignees_url: + after_web_commit_signoff_required: - $value = $payload['blobs_url'] ?? null; + $value = $payload['subscribers_count'] ?? null; if ($value === null) { - $missingFields[] = 'blobs_url'; - goto after_blobs_url; + $missingFields[] = 'subscribers_count'; + goto after_subscribers_count; } - $properties['blobs_url'] = $value; + $properties['subscribers_count'] = $value; - after_blobs_url: + after_subscribers_count: - $value = $payload['branches_url'] ?? null; + $value = $payload['network_count'] ?? null; if ($value === null) { - $missingFields[] = 'branches_url'; - goto after_branches_url; + $missingFields[] = 'network_count'; + goto after_network_count; } - $properties['branches_url'] = $value; + $properties['network_count'] = $value; - after_branches_url: + after_network_count: - $value = $payload['collaborators_url'] ?? null; + $value = $payload['open_issues'] ?? null; if ($value === null) { - $missingFields[] = 'collaborators_url'; - goto after_collaborators_url; + $missingFields[] = 'open_issues'; + goto after_open_issues; } - $properties['collaborators_url'] = $value; + $properties['open_issues'] = $value; - after_collaborators_url: + after_open_issues: - $value = $payload['comments_url'] ?? null; + $value = $payload['watchers'] ?? null; if ($value === null) { - $missingFields[] = 'comments_url'; - goto after_comments_url; + $missingFields[] = 'watchers'; + goto after_watchers; } - $properties['comments_url'] = $value; + $properties['watchers'] = $value; - after_comments_url: + after_watchers: - $value = $payload['commits_url'] ?? null; + $value = $payload['master_branch'] ?? null; if ($value === null) { - $missingFields[] = 'commits_url'; - goto after_commits_url; + $missingFields[] = 'master_branch'; + goto after_master_branch; } - $properties['commits_url'] = $value; + $properties['master_branch'] = $value; - after_commits_url: + after_master_branch: - $value = $payload['compare_url'] ?? null; + $value = $payload['starred_at'] ?? null; if ($value === null) { - $missingFields[] = 'compare_url'; - goto after_compare_url; + $missingFields[] = 'starred_at'; + goto after_starred_at; } - $properties['compare_url'] = $value; + $properties['starred_at'] = $value; - after_compare_url: + after_starred_at: - $value = $payload['contents_url'] ?? null; + $value = $payload['anonymous_access_enabled'] ?? null; if ($value === null) { - $missingFields[] = 'contents_url'; - goto after_contents_url; + $missingFields[] = 'anonymous_access_enabled'; + goto after_anonymous_access_enabled; } - $properties['contents_url'] = $value; + $properties['anonymous_access_enabled'] = $value; - after_contents_url: + after_anonymous_access_enabled: - $value = $payload['contributors_url'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\Repository(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser(array $payload): \ApiClients\Client\Github\Schema\SimpleUser + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['name'] ?? null; if ($value === null) { - $missingFields[] = 'contributors_url'; - goto after_contributors_url; + $missingFields[] = 'name'; + goto after_name; } - $properties['contributors_url'] = $value; + $properties['name'] = $value; - after_contributors_url: + after_name: - $value = $payload['deployments_url'] ?? null; + $value = $payload['email'] ?? null; if ($value === null) { - $missingFields[] = 'deployments_url'; - goto after_deployments_url; + $missingFields[] = 'email'; + goto after_email; } - $properties['deployments_url'] = $value; + $properties['email'] = $value; - after_deployments_url: + after_email: - $value = $payload['downloads_url'] ?? null; + $value = $payload['login'] ?? null; if ($value === null) { - $missingFields[] = 'downloads_url'; - goto after_downloads_url; + $missingFields[] = 'login'; + goto after_login; } - $properties['downloads_url'] = $value; + $properties['login'] = $value; - after_downloads_url: + after_login: - $value = $payload['events_url'] ?? null; + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'events_url'; - goto after_events_url; + $missingFields[] = 'id'; + goto after_id; } - $properties['events_url'] = $value; + $properties['id'] = $value; - after_events_url: + after_id: - $value = $payload['forks_url'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $missingFields[] = 'forks_url'; - goto after_forks_url; + $missingFields[] = 'node_id'; + goto after_node_id; } - $properties['forks_url'] = $value; + $properties['node_id'] = $value; - after_forks_url: + after_node_id: - $value = $payload['git_commits_url'] ?? null; + $value = $payload['avatar_url'] ?? null; if ($value === null) { - $missingFields[] = 'git_commits_url'; - goto after_git_commits_url; + $missingFields[] = 'avatar_url'; + goto after_avatar_url; } - $properties['git_commits_url'] = $value; + $properties['avatar_url'] = $value; - after_git_commits_url: + after_avatar_url: - $value = $payload['git_refs_url'] ?? null; + $value = $payload['gravatar_id'] ?? null; if ($value === null) { - $missingFields[] = 'git_refs_url'; - goto after_git_refs_url; + $missingFields[] = 'gravatar_id'; + goto after_gravatar_id; } - $properties['git_refs_url'] = $value; + $properties['gravatar_id'] = $value; - after_git_refs_url: + after_gravatar_id: - $value = $payload['git_tags_url'] ?? null; + $value = $payload['url'] ?? null; if ($value === null) { - $missingFields[] = 'git_tags_url'; - goto after_git_tags_url; + $missingFields[] = 'url'; + goto after_url; } - $properties['git_tags_url'] = $value; + $properties['url'] = $value; - after_git_tags_url: + after_url: - $value = $payload['git_url'] ?? null; + $value = $payload['html_url'] ?? null; if ($value === null) { - $missingFields[] = 'git_url'; - goto after_git_url; + $missingFields[] = 'html_url'; + goto after_html_url; } - $properties['git_url'] = $value; + $properties['html_url'] = $value; - after_git_url: + after_html_url: - $value = $payload['issue_comment_url'] ?? null; + $value = $payload['followers_url'] ?? null; if ($value === null) { - $missingFields[] = 'issue_comment_url'; - goto after_issue_comment_url; + $missingFields[] = 'followers_url'; + goto after_followers_url; } - $properties['issue_comment_url'] = $value; + $properties['followers_url'] = $value; - after_issue_comment_url: + after_followers_url: - $value = $payload['issue_events_url'] ?? null; + $value = $payload['following_url'] ?? null; if ($value === null) { - $missingFields[] = 'issue_events_url'; - goto after_issue_events_url; + $missingFields[] = 'following_url'; + goto after_following_url; } - $properties['issue_events_url'] = $value; + $properties['following_url'] = $value; - after_issue_events_url: + after_following_url: - $value = $payload['issues_url'] ?? null; + $value = $payload['gists_url'] ?? null; if ($value === null) { - $missingFields[] = 'issues_url'; - goto after_issues_url; + $missingFields[] = 'gists_url'; + goto after_gists_url; } - $properties['issues_url'] = $value; + $properties['gists_url'] = $value; - after_issues_url: + after_gists_url: - $value = $payload['keys_url'] ?? null; + $value = $payload['starred_url'] ?? null; if ($value === null) { - $missingFields[] = 'keys_url'; - goto after_keys_url; + $missingFields[] = 'starred_url'; + goto after_starred_url; } - $properties['keys_url'] = $value; + $properties['starred_url'] = $value; - after_keys_url: + after_starred_url: - $value = $payload['labels_url'] ?? null; + $value = $payload['subscriptions_url'] ?? null; if ($value === null) { - $missingFields[] = 'labels_url'; - goto after_labels_url; + $missingFields[] = 'subscriptions_url'; + goto after_subscriptions_url; } - $properties['labels_url'] = $value; + $properties['subscriptions_url'] = $value; - after_labels_url: + after_subscriptions_url: - $value = $payload['languages_url'] ?? null; + $value = $payload['organizations_url'] ?? null; if ($value === null) { - $missingFields[] = 'languages_url'; - goto after_languages_url; + $missingFields[] = 'organizations_url'; + goto after_organizations_url; } - $properties['languages_url'] = $value; + $properties['organizations_url'] = $value; - after_languages_url: + after_organizations_url: - $value = $payload['merges_url'] ?? null; + $value = $payload['repos_url'] ?? null; if ($value === null) { - $missingFields[] = 'merges_url'; - goto after_merges_url; + $missingFields[] = 'repos_url'; + goto after_repos_url; } - $properties['merges_url'] = $value; + $properties['repos_url'] = $value; - after_merges_url: + after_repos_url: - $value = $payload['milestones_url'] ?? null; + $value = $payload['events_url'] ?? null; if ($value === null) { - $missingFields[] = 'milestones_url'; - goto after_milestones_url; + $missingFields[] = 'events_url'; + goto after_events_url; } - $properties['milestones_url'] = $value; + $properties['events_url'] = $value; - after_milestones_url: + after_events_url: - $value = $payload['notifications_url'] ?? null; + $value = $payload['received_events_url'] ?? null; if ($value === null) { - $missingFields[] = 'notifications_url'; - goto after_notifications_url; + $missingFields[] = 'received_events_url'; + goto after_received_events_url; } - $properties['notifications_url'] = $value; + $properties['received_events_url'] = $value; - after_notifications_url: + after_received_events_url: - $value = $payload['pulls_url'] ?? null; + $value = $payload['type'] ?? null; if ($value === null) { - $missingFields[] = 'pulls_url'; - goto after_pulls_url; + $missingFields[] = 'type'; + goto after_type; } - $properties['pulls_url'] = $value; + $properties['type'] = $value; - after_pulls_url: + after_type: - $value = $payload['releases_url'] ?? null; + $value = $payload['site_admin'] ?? null; if ($value === null) { - $missingFields[] = 'releases_url'; - goto after_releases_url; + $missingFields[] = 'site_admin'; + goto after_site_admin; } - $properties['releases_url'] = $value; + $properties['site_admin'] = $value; - after_releases_url: + after_site_admin: - $value = $payload['ssh_url'] ?? null; + $value = $payload['starred_at'] ?? null; if ($value === null) { - $missingFields[] = 'ssh_url'; - goto after_ssh_url; + $missingFields[] = 'starred_at'; + goto after_starred_at; } - $properties['ssh_url'] = $value; - - after_ssh_url: - - $value = $payload['stargazers_url'] ?? null; + $properties['starred_at'] = $value; - if ($value === null) { - $missingFields[] = 'stargazers_url'; - goto after_stargazers_url; - } + after_starred_at: - $properties['stargazers_url'] = $value; - - after_stargazers_url: + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleUser', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\SimpleUser::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\SimpleUser(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleUser', $exception, stack: $this->hydrationStack); + } + } - $value = $payload['statuses_url'] ?? null; + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCodeScanningAlertClosedByUser⚡️Alert(array $payload): \ApiClients\Client\Github\Schema\WebhookCodeScanningAlertClosedByUser\Alert + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['created_at'] ?? null; if ($value === null) { - $missingFields[] = 'statuses_url'; - goto after_statuses_url; + $missingFields[] = 'created_at'; + goto after_created_at; } - $properties['statuses_url'] = $value; + $properties['created_at'] = $value; - after_statuses_url: + after_created_at: - $value = $payload['subscribers_url'] ?? null; + $value = $payload['dismissed_at'] ?? null; if ($value === null) { - $missingFields[] = 'subscribers_url'; - goto after_subscribers_url; + $missingFields[] = 'dismissed_at'; + goto after_dismissed_at; } - $properties['subscribers_url'] = $value; + $properties['dismissed_at'] = $value; - after_subscribers_url: + after_dismissed_at: - $value = $payload['subscription_url'] ?? null; + $value = $payload['dismissed_by'] ?? null; if ($value === null) { - $missingFields[] = 'subscription_url'; - goto after_subscription_url; + $missingFields[] = 'dismissed_by'; + goto after_dismissed_by; } - $properties['subscription_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'dismissed_by'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['dismissed_by'] = $value; - after_subscription_url: + after_dismissed_by: - $value = $payload['tags_url'] ?? null; + $value = $payload['dismissed_reason'] ?? null; if ($value === null) { - $missingFields[] = 'tags_url'; - goto after_tags_url; + $missingFields[] = 'dismissed_reason'; + goto after_dismissed_reason; } - $properties['tags_url'] = $value; + $properties['dismissed_reason'] = $value; - after_tags_url: + after_dismissed_reason: - $value = $payload['teams_url'] ?? null; + $value = $payload['html_url'] ?? null; if ($value === null) { - $missingFields[] = 'teams_url'; - goto after_teams_url; + $missingFields[] = 'html_url'; + goto after_html_url; } - $properties['teams_url'] = $value; + $properties['html_url'] = $value; - after_teams_url: + after_html_url: - $value = $payload['trees_url'] ?? null; + $value = $payload['most_recent_instance'] ?? null; if ($value === null) { - $missingFields[] = 'trees_url'; - goto after_trees_url; + $missingFields[] = 'most_recent_instance'; + goto after_most_recent_instance; } - $properties['trees_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'most_recent_instance'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCodeScanningAlertAppearedInBranch⚡️Alert⚡️MostRecentInstance($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['most_recent_instance'] = $value; - after_trees_url: + after_most_recent_instance: - $value = $payload['clone_url'] ?? null; + $value = $payload['number'] ?? null; if ($value === null) { - $missingFields[] = 'clone_url'; - goto after_clone_url; + $missingFields[] = 'number'; + goto after_number; } - $properties['clone_url'] = $value; + $properties['number'] = $value; - after_clone_url: + after_number: - $value = $payload['mirror_url'] ?? null; + $value = $payload['rule'] ?? null; if ($value === null) { - $missingFields[] = 'mirror_url'; - goto after_mirror_url; + $missingFields[] = 'rule'; + goto after_rule; } - $properties['mirror_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'rule'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCodeScanningAlertClosedByUser⚡️Alert⚡️Rule($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['rule'] = $value; - after_mirror_url: + after_rule: - $value = $payload['hooks_url'] ?? null; + $value = $payload['state'] ?? null; if ($value === null) { - $missingFields[] = 'hooks_url'; - goto after_hooks_url; + $missingFields[] = 'state'; + goto after_state; } - $properties['hooks_url'] = $value; + $properties['state'] = $value; - after_hooks_url: + after_state: - $value = $payload['svn_url'] ?? null; + $value = $payload['tool'] ?? null; if ($value === null) { - $missingFields[] = 'svn_url'; - goto after_svn_url; + $missingFields[] = 'tool'; + goto after_tool; } - $properties['svn_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'tool'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCodeScanningAlertClosedByUser⚡️Alert⚡️Tool($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['tool'] = $value; - after_svn_url: + after_tool: - $value = $payload['homepage'] ?? null; + $value = $payload['url'] ?? null; if ($value === null) { - $missingFields[] = 'homepage'; - goto after_homepage; + $missingFields[] = 'url'; + goto after_url; } - $properties['homepage'] = $value; + $properties['url'] = $value; - after_homepage: + after_url: - $value = $payload['language'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCodeScanningAlertClosedByUser\Alert', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookCodeScanningAlertClosedByUser\Alert::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookCodeScanningAlertClosedByUser\Alert(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCodeScanningAlertClosedByUser\Alert', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCodeScanningAlertCreated⚡️Alert(array $payload): \ApiClients\Client\Github\Schema\WebhookCodeScanningAlertCreated\Alert + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['created_at'] ?? null; if ($value === null) { - $missingFields[] = 'language'; - goto after_language; + $missingFields[] = 'created_at'; + goto after_created_at; } - $properties['language'] = $value; + $properties['created_at'] = $value; - after_language: + after_created_at: - $value = $payload['forks_count'] ?? null; + $value = $payload['dismissed_at'] ?? null; if ($value === null) { - $missingFields[] = 'forks_count'; - goto after_forks_count; + $properties['dismissed_at'] = null; + goto after_dismissed_at; } - $properties['forks_count'] = $value; + $properties['dismissed_at'] = $value; - after_forks_count: + after_dismissed_at: - $value = $payload['stargazers_count'] ?? null; + $value = $payload['dismissed_by'] ?? null; if ($value === null) { - $missingFields[] = 'stargazers_count'; - goto after_stargazers_count; + $properties['dismissed_by'] = null; + goto after_dismissed_by; } - $properties['stargazers_count'] = $value; + $properties['dismissed_by'] = $value; - after_stargazers_count: + after_dismissed_by: - $value = $payload['watchers_count'] ?? null; + $value = $payload['dismissed_comment'] ?? null; if ($value === null) { - $missingFields[] = 'watchers_count'; - goto after_watchers_count; + $missingFields[] = 'dismissed_comment'; + goto after_dismissed_comment; } - $properties['watchers_count'] = $value; + $properties['dismissed_comment'] = $value; - after_watchers_count: + after_dismissed_comment: - $value = $payload['size'] ?? null; + $value = $payload['dismissed_reason'] ?? null; if ($value === null) { - $missingFields[] = 'size'; - goto after_size; + $properties['dismissed_reason'] = null; + goto after_dismissed_reason; } - $properties['size'] = $value; + $properties['dismissed_reason'] = $value; - after_size: + after_dismissed_reason: - $value = $payload['default_branch'] ?? null; + $value = $payload['fixed_at'] ?? null; if ($value === null) { - $missingFields[] = 'default_branch'; - goto after_default_branch; + $properties['fixed_at'] = null; + goto after_fixed_at; } - $properties['default_branch'] = $value; + $properties['fixed_at'] = $value; - after_default_branch: + after_fixed_at: - $value = $payload['open_issues_count'] ?? null; + $value = $payload['html_url'] ?? null; if ($value === null) { - $missingFields[] = 'open_issues_count'; - goto after_open_issues_count; + $missingFields[] = 'html_url'; + goto after_html_url; } - $properties['open_issues_count'] = $value; + $properties['html_url'] = $value; - after_open_issues_count: + after_html_url: - $value = $payload['is_template'] ?? null; + $value = $payload['instances_url'] ?? null; if ($value === null) { - $missingFields[] = 'is_template'; - goto after_is_template; + $missingFields[] = 'instances_url'; + goto after_instances_url; } - $properties['is_template'] = $value; + $properties['instances_url'] = $value; - after_is_template: + after_instances_url: - $value = $payload['topics'] ?? null; + $value = $payload['most_recent_instance'] ?? null; if ($value === null) { - $missingFields[] = 'topics'; - goto after_topics; + $missingFields[] = 'most_recent_instance'; + goto after_most_recent_instance; } - $properties['topics'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'most_recent_instance'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCodeScanningAlertAppearedInBranch⚡️Alert⚡️MostRecentInstance($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['most_recent_instance'] = $value; - after_topics: + after_most_recent_instance: - $value = $payload['has_issues'] ?? null; + $value = $payload['number'] ?? null; if ($value === null) { - $missingFields[] = 'has_issues'; - goto after_has_issues; + $missingFields[] = 'number'; + goto after_number; } - $properties['has_issues'] = $value; + $properties['number'] = $value; - after_has_issues: + after_number: - $value = $payload['has_projects'] ?? null; + $value = $payload['rule'] ?? null; if ($value === null) { - $missingFields[] = 'has_projects'; - goto after_has_projects; + $missingFields[] = 'rule'; + goto after_rule; } - $properties['has_projects'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'rule'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCodeScanningAlertClosedByUser⚡️Alert⚡️Rule($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['rule'] = $value; - after_has_projects: + after_rule: - $value = $payload['has_wiki'] ?? null; + $value = $payload['state'] ?? null; if ($value === null) { - $missingFields[] = 'has_wiki'; - goto after_has_wiki; + $missingFields[] = 'state'; + goto after_state; } - $properties['has_wiki'] = $value; + $properties['state'] = $value; - after_has_wiki: + after_state: - $value = $payload['has_pages'] ?? null; + $value = $payload['tool'] ?? null; if ($value === null) { - $missingFields[] = 'has_pages'; - goto after_has_pages; - } - - $properties['has_pages'] = $value; - - after_has_pages: - - $value = $payload['has_downloads'] ?? null; - - if ($value === null) { - $missingFields[] = 'has_downloads'; - goto after_has_downloads; + $missingFields[] = 'tool'; + goto after_tool; } - $properties['has_downloads'] = $value; - - after_has_downloads: - - $value = $payload['archived'] ?? null; - - if ($value === null) { - $missingFields[] = 'archived'; - goto after_archived; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'tool'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCodeScanningAlertCreated⚡️Alert⚡️Tool($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['archived'] = $value; + $properties['tool'] = $value; - after_archived: + after_tool: - $value = $payload['disabled'] ?? null; + $value = $payload['updated_at'] ?? null; if ($value === null) { - $missingFields[] = 'disabled'; - goto after_disabled; + $missingFields[] = 'updated_at'; + goto after_updated_at; } - $properties['disabled'] = $value; + $properties['updated_at'] = $value; - after_disabled: + after_updated_at: - $value = $payload['visibility'] ?? null; + $value = $payload['url'] ?? null; if ($value === null) { - $missingFields[] = 'visibility'; - goto after_visibility; + $missingFields[] = 'url'; + goto after_url; } - $properties['visibility'] = $value; - - after_visibility: - - $value = $payload['pushed_at'] ?? null; + $properties['url'] = $value; - if ($value === null) { - $missingFields[] = 'pushed_at'; - goto after_pushed_at; - } + after_url: - $properties['pushed_at'] = $value; - - after_pushed_at: + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCodeScanningAlertCreated\Alert', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookCodeScanningAlertCreated\Alert::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookCodeScanningAlertCreated\Alert(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCodeScanningAlertCreated\Alert', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCodeScanningAlertFixed⚡️Alert(array $payload): \ApiClients\Client\Github\Schema\WebhookCodeScanningAlertFixed\Alert + { + $properties = []; + $missingFields = []; + try { + $value = $payload['created_at'] ?? null; if ($value === null) { @@ -3210,377 +3419,330 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repo after_created_at: - $value = $payload['updated_at'] ?? null; + $value = $payload['dismissed_at'] ?? null; if ($value === null) { - $missingFields[] = 'updated_at'; - goto after_updated_at; + $missingFields[] = 'dismissed_at'; + goto after_dismissed_at; } - $properties['updated_at'] = $value; + $properties['dismissed_at'] = $value; - after_updated_at: + after_dismissed_at: - $value = $payload['permissions'] ?? null; + $value = $payload['dismissed_by'] ?? null; if ($value === null) { - $missingFields[] = 'permissions'; - goto after_permissions; + $missingFields[] = 'dismissed_by'; + goto after_dismissed_by; } if (is_array($value)) { try { - $this->hydrationStack[] = 'permissions'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Permissions($value); + $this->hydrationStack[] = 'dismissed_by'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); } finally { array_pop($this->hydrationStack); } } - $properties['permissions'] = $value; - - after_permissions: - - $value = $payload['allow_rebase_merge'] ?? null; - - if ($value === null) { - $missingFields[] = 'allow_rebase_merge'; - goto after_allow_rebase_merge; - } - - $properties['allow_rebase_merge'] = $value; - - after_allow_rebase_merge: - - $value = $payload['temp_clone_token'] ?? null; - - if ($value === null) { - $missingFields[] = 'temp_clone_token'; - goto after_temp_clone_token; - } - - $properties['temp_clone_token'] = $value; + $properties['dismissed_by'] = $value; - after_temp_clone_token: + after_dismissed_by: - $value = $payload['allow_squash_merge'] ?? null; + $value = $payload['dismissed_reason'] ?? null; if ($value === null) { - $missingFields[] = 'allow_squash_merge'; - goto after_allow_squash_merge; + $missingFields[] = 'dismissed_reason'; + goto after_dismissed_reason; } - $properties['allow_squash_merge'] = $value; + $properties['dismissed_reason'] = $value; - after_allow_squash_merge: + after_dismissed_reason: - $value = $payload['allow_auto_merge'] ?? null; + $value = $payload['html_url'] ?? null; if ($value === null) { - $missingFields[] = 'allow_auto_merge'; - goto after_allow_auto_merge; + $missingFields[] = 'html_url'; + goto after_html_url; } - $properties['allow_auto_merge'] = $value; + $properties['html_url'] = $value; - after_allow_auto_merge: + after_html_url: - $value = $payload['delete_branch_on_merge'] ?? null; + $value = $payload['instances_url'] ?? null; if ($value === null) { - $missingFields[] = 'delete_branch_on_merge'; - goto after_delete_branch_on_merge; + $missingFields[] = 'instances_url'; + goto after_instances_url; } - $properties['delete_branch_on_merge'] = $value; + $properties['instances_url'] = $value; - after_delete_branch_on_merge: + after_instances_url: - $value = $payload['allow_update_branch'] ?? null; + $value = $payload['most_recent_instance'] ?? null; if ($value === null) { - $missingFields[] = 'allow_update_branch'; - goto after_allow_update_branch; + $missingFields[] = 'most_recent_instance'; + goto after_most_recent_instance; } - $properties['allow_update_branch'] = $value; - - after_allow_update_branch: - - $value = $payload['use_squash_pr_title_as_default'] ?? null; - - if ($value === null) { - $missingFields[] = 'use_squash_pr_title_as_default'; - goto after_use_squash_pr_title_as_default; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'most_recent_instance'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCodeScanningAlertAppearedInBranch⚡️Alert⚡️MostRecentInstance($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['use_squash_pr_title_as_default'] = $value; + $properties['most_recent_instance'] = $value; - after_use_squash_pr_title_as_default: + after_most_recent_instance: - $value = $payload['squash_merge_commit_title'] ?? null; + $value = $payload['number'] ?? null; if ($value === null) { - $missingFields[] = 'squash_merge_commit_title'; - goto after_squash_merge_commit_title; + $missingFields[] = 'number'; + goto after_number; } - $properties['squash_merge_commit_title'] = $value; + $properties['number'] = $value; - after_squash_merge_commit_title: + after_number: - $value = $payload['squash_merge_commit_message'] ?? null; + $value = $payload['rule'] ?? null; if ($value === null) { - $missingFields[] = 'squash_merge_commit_message'; - goto after_squash_merge_commit_message; + $missingFields[] = 'rule'; + goto after_rule; } - $properties['squash_merge_commit_message'] = $value; - - after_squash_merge_commit_message: - - $value = $payload['merge_commit_title'] ?? null; - - if ($value === null) { - $missingFields[] = 'merge_commit_title'; - goto after_merge_commit_title; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'rule'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCodeScanningAlertClosedByUser⚡️Alert⚡️Rule($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['merge_commit_title'] = $value; + $properties['rule'] = $value; - after_merge_commit_title: + after_rule: - $value = $payload['merge_commit_message'] ?? null; + $value = $payload['state'] ?? null; if ($value === null) { - $missingFields[] = 'merge_commit_message'; - goto after_merge_commit_message; + $missingFields[] = 'state'; + goto after_state; } - $properties['merge_commit_message'] = $value; + $properties['state'] = $value; - after_merge_commit_message: + after_state: - $value = $payload['allow_merge_commit'] ?? null; + $value = $payload['tool'] ?? null; if ($value === null) { - $missingFields[] = 'allow_merge_commit'; - goto after_allow_merge_commit; + $missingFields[] = 'tool'; + goto after_tool; } - $properties['allow_merge_commit'] = $value; - - after_allow_merge_commit: - - $value = $payload['subscribers_count'] ?? null; - - if ($value === null) { - $missingFields[] = 'subscribers_count'; - goto after_subscribers_count; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'tool'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCodeScanningAlertClosedByUser⚡️Alert⚡️Tool($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['subscribers_count'] = $value; + $properties['tool'] = $value; - after_subscribers_count: + after_tool: - $value = $payload['network_count'] ?? null; + $value = $payload['url'] ?? null; if ($value === null) { - $missingFields[] = 'network_count'; - goto after_network_count; + $missingFields[] = 'url'; + goto after_url; } - $properties['network_count'] = $value; + $properties['url'] = $value; - after_network_count: + after_url: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCodeScanningAlertFixed\Alert', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\TemplateRepository::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookCodeScanningAlertFixed\Alert::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\Repository\TemplateRepository(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookCodeScanningAlertFixed\Alert(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCodeScanningAlertFixed\Alert', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCodeScanningAlertAppearedInBranch⚡️Alert⚡️MostRecentInstance⚡️Location(array $payload): \ApiClients\Client\Github\Schema\WebhookCodeScanningAlertAppearedInBranch\Alert\MostRecentInstance\Location + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCodeScanningAlertReopened⚡️Alert(array $payload): \ApiClients\Client\Github\Schema\WebhookCodeScanningAlertReopened\Alert { $properties = []; $missingFields = []; try { - $value = $payload['end_column'] ?? null; + $value = $payload['created_at'] ?? null; if ($value === null) { - $missingFields[] = 'end_column'; - goto after_end_column; + $missingFields[] = 'created_at'; + goto after_created_at; } - $properties['end_column'] = $value; + $properties['created_at'] = $value; - after_end_column: + after_created_at: - $value = $payload['end_line'] ?? null; + $value = $payload['dismissed_at'] ?? null; if ($value === null) { - $missingFields[] = 'end_line'; - goto after_end_line; + $missingFields[] = 'dismissed_at'; + goto after_dismissed_at; } - $properties['end_line'] = $value; + $properties['dismissed_at'] = $value; - after_end_line: + after_dismissed_at: - $value = $payload['path'] ?? null; + $value = $payload['dismissed_by'] ?? null; if ($value === null) { - $missingFields[] = 'path'; - goto after_path; + $missingFields[] = 'dismissed_by'; + goto after_dismissed_by; } - $properties['path'] = $value; - - after_path: - - $value = $payload['start_column'] ?? null; - - if ($value === null) { - $missingFields[] = 'start_column'; - goto after_start_column; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'dismissed_by'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckSuiteCompleted⚡️ActionsMeta($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['start_column'] = $value; + $properties['dismissed_by'] = $value; - after_start_column: + after_dismissed_by: - $value = $payload['start_line'] ?? null; + $value = $payload['dismissed_reason'] ?? null; if ($value === null) { - $missingFields[] = 'start_line'; - goto after_start_line; + $missingFields[] = 'dismissed_reason'; + goto after_dismissed_reason; } - $properties['start_line'] = $value; + $properties['dismissed_reason'] = $value; - after_start_line: - - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCodeScanningAlertAppearedInBranch\Alert\MostRecentInstance\Location', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookCodeScanningAlertAppearedInBranch\Alert\MostRecentInstance\Location::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\WebhookCodeScanningAlertAppearedInBranch\Alert\MostRecentInstance\Location(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCodeScanningAlertAppearedInBranch\Alert\MostRecentInstance\Location', $exception, stack: $this->hydrationStack); - } - } + after_dismissed_reason: - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️CodeScanningAlertInstance⚡️Message(array $payload): \ApiClients\Client\Github\Schema\CodeScanningAlertInstance\Message - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['text'] ?? null; + $value = $payload['html_url'] ?? null; if ($value === null) { - $missingFields[] = 'text'; - goto after_text; + $missingFields[] = 'html_url'; + goto after_html_url; } - $properties['text'] = $value; + $properties['html_url'] = $value; - after_text: - - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\CodeScanningAlertInstance\Message', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\CodeScanningAlertInstance\Message::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\CodeScanningAlertInstance\Message(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\CodeScanningAlertInstance\Message', $exception, stack: $this->hydrationStack); - } - } + after_html_url: - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner(array $payload): \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['login'] ?? null; + $value = $payload['most_recent_instance'] ?? null; if ($value === null) { - $missingFields[] = 'login'; - goto after_login; + $missingFields[] = 'most_recent_instance'; + goto after_most_recent_instance; } - $properties['login'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'most_recent_instance'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCodeScanningAlertAppearedInBranch⚡️Alert⚡️MostRecentInstance($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['most_recent_instance'] = $value; - after_login: + after_most_recent_instance: - $value = $payload['id'] ?? null; + $value = $payload['number'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'number'; + goto after_number; } - $properties['id'] = $value; + $properties['number'] = $value; - after_id: + after_number: - $value = $payload['node_id'] ?? null; + $value = $payload['rule'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $missingFields[] = 'rule'; + goto after_rule; } - $properties['node_id'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'rule'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCodeScanningAlertClosedByUser⚡️Alert⚡️Rule($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['rule'] = $value; - after_node_id: + after_rule: - $value = $payload['avatar_url'] ?? null; + $value = $payload['state'] ?? null; if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatar_url; + $missingFields[] = 'state'; + goto after_state; } - $properties['avatar_url'] = $value; + $properties['state'] = $value; - after_avatar_url: + after_state: - $value = $payload['gravatar_id'] ?? null; + $value = $payload['tool'] ?? null; if ($value === null) { - $missingFields[] = 'gravatar_id'; - goto after_gravatar_id; + $missingFields[] = 'tool'; + goto after_tool; } - $properties['gravatar_id'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'tool'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCodeScanningAlertClosedByUser⚡️Alert⚡️Tool($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['tool'] = $value; - after_gravatar_id: + after_tool: $value = $payload['url'] ?? null; @@ -3593,312 +3755,2856 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repo after_url: - $value = $payload['html_url'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCodeScanningAlertReopened\Alert', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookCodeScanningAlertReopened\Alert::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookCodeScanningAlertReopened\Alert(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCodeScanningAlertReopened\Alert', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCodeScanningAlertReopenedByUser⚡️Alert(array $payload): \ApiClients\Client\Github\Schema\WebhookCodeScanningAlertReopenedByUser\Alert + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['created_at'] ?? null; if ($value === null) { - $missingFields[] = 'html_url'; - goto after_html_url; + $missingFields[] = 'created_at'; + goto after_created_at; } - $properties['html_url'] = $value; + $properties['created_at'] = $value; - after_html_url: + after_created_at: - $value = $payload['followers_url'] ?? null; + $value = $payload['dismissed_at'] ?? null; if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followers_url; + $properties['dismissed_at'] = null; + goto after_dismissed_at; } - $properties['followers_url'] = $value; + $properties['dismissed_at'] = $value; - after_followers_url: + after_dismissed_at: - $value = $payload['following_url'] ?? null; + $value = $payload['dismissed_by'] ?? null; if ($value === null) { - $missingFields[] = 'following_url'; - goto after_following_url; + $properties['dismissed_by'] = null; + goto after_dismissed_by; } - $properties['following_url'] = $value; + $properties['dismissed_by'] = $value; - after_following_url: + after_dismissed_by: - $value = $payload['gists_url'] ?? null; + $value = $payload['dismissed_reason'] ?? null; if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gists_url; + $properties['dismissed_reason'] = null; + goto after_dismissed_reason; } - $properties['gists_url'] = $value; + $properties['dismissed_reason'] = $value; - after_gists_url: + after_dismissed_reason: - $value = $payload['starred_url'] ?? null; + $value = $payload['html_url'] ?? null; if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starred_url; + $missingFields[] = 'html_url'; + goto after_html_url; } - $properties['starred_url'] = $value; + $properties['html_url'] = $value; - after_starred_url: + after_html_url: - $value = $payload['subscriptions_url'] ?? null; + $value = $payload['most_recent_instance'] ?? null; if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptions_url; + $missingFields[] = 'most_recent_instance'; + goto after_most_recent_instance; } - $properties['subscriptions_url'] = $value; - - after_subscriptions_url: - - $value = $payload['organizations_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizations_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'most_recent_instance'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCodeScanningAlertAppearedInBranch⚡️Alert⚡️MostRecentInstance($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['organizations_url'] = $value; + $properties['most_recent_instance'] = $value; - after_organizations_url: + after_most_recent_instance: - $value = $payload['repos_url'] ?? null; + $value = $payload['number'] ?? null; if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_repos_url; + $missingFields[] = 'number'; + goto after_number; } - $properties['repos_url'] = $value; + $properties['number'] = $value; - after_repos_url: + after_number: - $value = $payload['events_url'] ?? null; + $value = $payload['rule'] ?? null; if ($value === null) { - $missingFields[] = 'events_url'; - goto after_events_url; + $missingFields[] = 'rule'; + goto after_rule; } - $properties['events_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'rule'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCodeScanningAlertAppearedInBranch⚡️Alert⚡️Rule($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['rule'] = $value; - after_events_url: + after_rule: - $value = $payload['received_events_url'] ?? null; + $value = $payload['state'] ?? null; if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_received_events_url; + $missingFields[] = 'state'; + goto after_state; } - $properties['received_events_url'] = $value; + $properties['state'] = $value; - after_received_events_url: + after_state: - $value = $payload['type'] ?? null; + $value = $payload['tool'] ?? null; if ($value === null) { - $missingFields[] = 'type'; - goto after_type; + $missingFields[] = 'tool'; + goto after_tool; } - $properties['type'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'tool'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCodeScanningAlertAppearedInBranch⚡️Alert⚡️Tool($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['tool'] = $value; - after_type: + after_tool: - $value = $payload['site_admin'] ?? null; + $value = $payload['url'] ?? null; if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_site_admin; + $missingFields[] = 'url'; + goto after_url; } - $properties['site_admin'] = $value; + $properties['url'] = $value; - after_site_admin: + after_url: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCodeScanningAlertReopenedByUser\Alert', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookCodeScanningAlertReopenedByUser\Alert::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookCodeScanningAlertReopenedByUser\Alert(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCodeScanningAlertReopenedByUser\Alert', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Permissions(array $payload): \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy(array $payload): \ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy { $properties = []; $missingFields = []; try { - $value = $payload['admin'] ?? null; + $value = $payload['avatar_url'] ?? null; if ($value === null) { - $missingFields[] = 'admin'; - goto after_admin; + $missingFields[] = 'avatar_url'; + goto after_avatar_url; } - $properties['admin'] = $value; + $properties['avatar_url'] = $value; - after_admin: + after_avatar_url: - $value = $payload['maintain'] ?? null; + $value = $payload['deleted'] ?? null; if ($value === null) { - $missingFields[] = 'maintain'; - goto after_maintain; + $missingFields[] = 'deleted'; + goto after_deleted; } - $properties['maintain'] = $value; + $properties['deleted'] = $value; - after_maintain: + after_deleted: - $value = $payload['push'] ?? null; + $value = $payload['email'] ?? null; if ($value === null) { - $missingFields[] = 'push'; - goto after_push; + $missingFields[] = 'email'; + goto after_email; } - $properties['push'] = $value; + $properties['email'] = $value; - after_push: + after_email: - $value = $payload['triage'] ?? null; + $value = $payload['events_url'] ?? null; if ($value === null) { - $missingFields[] = 'triage'; - goto after_triage; + $missingFields[] = 'events_url'; + goto after_events_url; } - $properties['triage'] = $value; + $properties['events_url'] = $value; - after_triage: + after_events_url: - $value = $payload['pull'] ?? null; + $value = $payload['followers_url'] ?? null; if ($value === null) { - $missingFields[] = 'pull'; - goto after_pull; + $missingFields[] = 'followers_url'; + goto after_followers_url; } - $properties['pull'] = $value; + $properties['followers_url'] = $value; - after_pull: + after_followers_url: - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions', $exception, stack: $this->hydrationStack); - } - } + $value = $payload['following_url'] ?? null; - public function serializeObject(object $object): mixed - { - try { - $className = get_class($object); + if ($value === null) { + $missingFields[] = 'following_url'; + goto after_following_url; + } - return match($className) { - 'array' => $this->serializeValuearray($object), - 'Ramsey\Uuid\UuidInterface' => $this->serializeValueRamsey⚡️Uuid⚡️UuidInterface($object), - 'DateTime' => $this->serializeValueDateTime($object), - 'DateTimeImmutable' => $this->serializeValueDateTimeImmutable($object), - 'DateTimeInterface' => $this->serializeValueDateTimeInterface($object), - 'ApiClients\Client\Github\Schema\WebhookCodeScanningAlertReopenedByUser' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCodeScanningAlertReopenedByUser($object), - default => throw new \LogicException('No serialization defined for $className'), - }; - } catch (\Throwable $exception) { - throw UnableToSerializeObject::dueToError($className, $exception); - } - } - + $properties['following_url'] = $value; - private function serializeValuearray(mixed $value): mixed - { - static $serializer; - - if ($serializer === null) { - $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeArrayItems(...array ( -)); - } - - return $serializer->serialize($value, $this); - } + after_following_url: + $value = $payload['gists_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'gists_url'; + goto after_gists_url; + } - private function serializeValueRamsey⚡️Uuid⚡️UuidInterface(mixed $value): mixed - { - static $serializer; - - if ($serializer === null) { - $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeUuidToString(...array ( -)); - } - - return $serializer->serialize($value, $this); - } + $properties['gists_url'] = $value; + + after_gists_url: + $value = $payload['gravatar_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'gravatar_id'; + goto after_gravatar_id; + } - private function serializeValueDateTime(mixed $value): mixed - { - static $serializer; - - if ($serializer === null) { - $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeDateTime(...array ( -)); - } - - return $serializer->serialize($value, $this); - } + $properties['gravatar_id'] = $value; + + after_gravatar_id: + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } - private function serializeValueDateTimeImmutable(mixed $value): mixed - { - static $serializer; - - if ($serializer === null) { - $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeDateTime(...array ( -)); - } - - return $serializer->serialize($value, $this); - } + $properties['html_url'] = $value; + + after_html_url: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['login'] ?? null; + + if ($value === null) { + $missingFields[] = 'login'; + goto after_login; + } + + $properties['login'] = $value; + + after_login: + + $value = $payload['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['organizations_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'organizations_url'; + goto after_organizations_url; + } + + $properties['organizations_url'] = $value; + + after_organizations_url: + + $value = $payload['received_events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'received_events_url'; + goto after_received_events_url; + } + + $properties['received_events_url'] = $value; + + after_received_events_url: + + $value = $payload['repos_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'repos_url'; + goto after_repos_url; + } + + $properties['repos_url'] = $value; + + after_repos_url: + + $value = $payload['site_admin'] ?? null; + + if ($value === null) { + $missingFields[] = 'site_admin'; + goto after_site_admin; + } + + $properties['site_admin'] = $value; + + after_site_admin: + + $value = $payload['starred_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'starred_url'; + goto after_starred_url; + } + + $properties['starred_url'] = $value; + + after_starred_url: + + $value = $payload['subscriptions_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscriptions_url'; + goto after_subscriptions_url; + } + + $properties['subscriptions_url'] = $value; + + after_subscriptions_url: + + $value = $payload['type'] ?? null; + + if ($value === null) { + $missingFields[] = 'type'; + goto after_type; + } + + $properties['type'] = $value; + + after_type: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCodeScanningAlertAppearedInBranch⚡️Alert⚡️MostRecentInstance(array $payload): \ApiClients\Client\Github\Schema\WebhookCodeScanningAlertAppearedInBranch\Alert\MostRecentInstance + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['analysis_key'] ?? null; + + if ($value === null) { + $missingFields[] = 'analysis_key'; + goto after_analysis_key; + } + + $properties['analysis_key'] = $value; + + after_analysis_key: + + $value = $payload['classifications'] ?? null; + + if ($value === null) { + $missingFields[] = 'classifications'; + goto after_classifications; + } + + $properties['classifications'] = $value; + + after_classifications: + + $value = $payload['commit_sha'] ?? null; + + if ($value === null) { + $missingFields[] = 'commit_sha'; + goto after_commit_sha; + } + + $properties['commit_sha'] = $value; + + after_commit_sha: + + $value = $payload['environment'] ?? null; + + if ($value === null) { + $missingFields[] = 'environment'; + goto after_environment; + } + + $properties['environment'] = $value; + + after_environment: + + $value = $payload['location'] ?? null; + + if ($value === null) { + $missingFields[] = 'location'; + goto after_location; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'location'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCodeScanningAlertAppearedInBranch⚡️Alert⚡️MostRecentInstance⚡️Location($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['location'] = $value; + + after_location: + + $value = $payload['message'] ?? null; + + if ($value === null) { + $missingFields[] = 'message'; + goto after_message; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'message'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️CodeScanningAlertInstance⚡️Message($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['message'] = $value; + + after_message: + + $value = $payload['ref'] ?? null; + + if ($value === null) { + $missingFields[] = 'ref'; + goto after_ref; + } + + $properties['ref'] = $value; + + after_ref: + + $value = $payload['state'] ?? null; + + if ($value === null) { + $missingFields[] = 'state'; + goto after_state; + } + + $properties['state'] = $value; + + after_state: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCodeScanningAlertAppearedInBranch\Alert\MostRecentInstance', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookCodeScanningAlertAppearedInBranch\Alert\MostRecentInstance::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookCodeScanningAlertAppearedInBranch\Alert\MostRecentInstance(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCodeScanningAlertAppearedInBranch\Alert\MostRecentInstance', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCodeScanningAlertAppearedInBranch⚡️Alert⚡️Rule(array $payload): \ApiClients\Client\Github\Schema\WebhookCodeScanningAlertAppearedInBranch\Alert\Rule + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['description'] ?? null; + + if ($value === null) { + $missingFields[] = 'description'; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['severity'] ?? null; + + if ($value === null) { + $missingFields[] = 'severity'; + goto after_severity; + } + + $properties['severity'] = $value; + + after_severity: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCodeScanningAlertAppearedInBranch\Alert\Rule', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookCodeScanningAlertAppearedInBranch\Alert\Rule::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookCodeScanningAlertAppearedInBranch\Alert\Rule(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCodeScanningAlertAppearedInBranch\Alert\Rule', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCodeScanningAlertAppearedInBranch⚡️Alert⚡️Tool(array $payload): \ApiClients\Client\Github\Schema\WebhookCodeScanningAlertAppearedInBranch\Alert\Tool + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['version'] ?? null; + + if ($value === null) { + $missingFields[] = 'version'; + goto after_version; + } + + $properties['version'] = $value; + + after_version: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCodeScanningAlertAppearedInBranch\Alert\Tool', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookCodeScanningAlertAppearedInBranch\Alert\Tool::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookCodeScanningAlertAppearedInBranch\Alert\Tool(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCodeScanningAlertAppearedInBranch\Alert\Tool', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️Permissions(array $payload): \ApiClients\Client\Github\Schema\Repository\Permissions + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['admin'] ?? null; + + if ($value === null) { + $missingFields[] = 'admin'; + goto after_admin; + } + + $properties['admin'] = $value; + + after_admin: + + $value = $payload['pull'] ?? null; + + if ($value === null) { + $missingFields[] = 'pull'; + goto after_pull; + } + + $properties['pull'] = $value; + + after_pull: + + $value = $payload['triage'] ?? null; + + if ($value === null) { + $missingFields[] = 'triage'; + goto after_triage; + } + + $properties['triage'] = $value; + + after_triage: + + $value = $payload['push'] ?? null; + + if ($value === null) { + $missingFields[] = 'push'; + goto after_push; + } + + $properties['push'] = $value; + + after_push: + + $value = $payload['maintain'] ?? null; + + if ($value === null) { + $missingFields[] = 'maintain'; + goto after_maintain; + } + + $properties['maintain'] = $value; + + after_maintain: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\Permissions', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\Permissions::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\Repository\Permissions(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\Permissions', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository(array $payload): \ApiClients\Client\Github\Schema\Repository\TemplateRepository + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['full_name'] ?? null; + + if ($value === null) { + $missingFields[] = 'full_name'; + goto after_full_name; + } + + $properties['full_name'] = $value; + + after_full_name: + + $value = $payload['owner'] ?? null; + + if ($value === null) { + $missingFields[] = 'owner'; + goto after_owner; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'owner'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['owner'] = $value; + + after_owner: + + $value = $payload['private'] ?? null; + + if ($value === null) { + $missingFields[] = 'private'; + goto after_private; + } + + $properties['private'] = $value; + + after_private: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } + + $properties['html_url'] = $value; + + after_html_url: + + $value = $payload['description'] ?? null; + + if ($value === null) { + $missingFields[] = 'description'; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['fork'] ?? null; + + if ($value === null) { + $missingFields[] = 'fork'; + goto after_fork; + } + + $properties['fork'] = $value; + + after_fork: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['archive_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'archive_url'; + goto after_archive_url; + } + + $properties['archive_url'] = $value; + + after_archive_url: + + $value = $payload['assignees_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'assignees_url'; + goto after_assignees_url; + } + + $properties['assignees_url'] = $value; + + after_assignees_url: + + $value = $payload['blobs_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'blobs_url'; + goto after_blobs_url; + } + + $properties['blobs_url'] = $value; + + after_blobs_url: + + $value = $payload['branches_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'branches_url'; + goto after_branches_url; + } + + $properties['branches_url'] = $value; + + after_branches_url: + + $value = $payload['collaborators_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'collaborators_url'; + goto after_collaborators_url; + } + + $properties['collaborators_url'] = $value; + + after_collaborators_url: + + $value = $payload['comments_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'comments_url'; + goto after_comments_url; + } + + $properties['comments_url'] = $value; + + after_comments_url: + + $value = $payload['commits_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'commits_url'; + goto after_commits_url; + } + + $properties['commits_url'] = $value; + + after_commits_url: + + $value = $payload['compare_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'compare_url'; + goto after_compare_url; + } + + $properties['compare_url'] = $value; + + after_compare_url: + + $value = $payload['contents_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'contents_url'; + goto after_contents_url; + } + + $properties['contents_url'] = $value; + + after_contents_url: + + $value = $payload['contributors_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'contributors_url'; + goto after_contributors_url; + } + + $properties['contributors_url'] = $value; + + after_contributors_url: + + $value = $payload['deployments_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'deployments_url'; + goto after_deployments_url; + } + + $properties['deployments_url'] = $value; + + after_deployments_url: + + $value = $payload['downloads_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'downloads_url'; + goto after_downloads_url; + } + + $properties['downloads_url'] = $value; + + after_downloads_url: + + $value = $payload['events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'events_url'; + goto after_events_url; + } + + $properties['events_url'] = $value; + + after_events_url: + + $value = $payload['forks_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'forks_url'; + goto after_forks_url; + } + + $properties['forks_url'] = $value; + + after_forks_url: + + $value = $payload['git_commits_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_commits_url'; + goto after_git_commits_url; + } + + $properties['git_commits_url'] = $value; + + after_git_commits_url: + + $value = $payload['git_refs_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_refs_url'; + goto after_git_refs_url; + } + + $properties['git_refs_url'] = $value; + + after_git_refs_url: + + $value = $payload['git_tags_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_tags_url'; + goto after_git_tags_url; + } + + $properties['git_tags_url'] = $value; + + after_git_tags_url: + + $value = $payload['git_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_url'; + goto after_git_url; + } + + $properties['git_url'] = $value; + + after_git_url: + + $value = $payload['issue_comment_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issue_comment_url'; + goto after_issue_comment_url; + } + + $properties['issue_comment_url'] = $value; + + after_issue_comment_url: + + $value = $payload['issue_events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issue_events_url'; + goto after_issue_events_url; + } + + $properties['issue_events_url'] = $value; + + after_issue_events_url: + + $value = $payload['issues_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issues_url'; + goto after_issues_url; + } + + $properties['issues_url'] = $value; + + after_issues_url: + + $value = $payload['keys_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'keys_url'; + goto after_keys_url; + } + + $properties['keys_url'] = $value; + + after_keys_url: + + $value = $payload['labels_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'labels_url'; + goto after_labels_url; + } + + $properties['labels_url'] = $value; + + after_labels_url: + + $value = $payload['languages_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'languages_url'; + goto after_languages_url; + } + + $properties['languages_url'] = $value; + + after_languages_url: + + $value = $payload['merges_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'merges_url'; + goto after_merges_url; + } + + $properties['merges_url'] = $value; + + after_merges_url: + + $value = $payload['milestones_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'milestones_url'; + goto after_milestones_url; + } + + $properties['milestones_url'] = $value; + + after_milestones_url: + + $value = $payload['notifications_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'notifications_url'; + goto after_notifications_url; + } + + $properties['notifications_url'] = $value; + + after_notifications_url: + + $value = $payload['pulls_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'pulls_url'; + goto after_pulls_url; + } + + $properties['pulls_url'] = $value; + + after_pulls_url: + + $value = $payload['releases_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'releases_url'; + goto after_releases_url; + } + + $properties['releases_url'] = $value; + + after_releases_url: + + $value = $payload['ssh_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'ssh_url'; + goto after_ssh_url; + } + + $properties['ssh_url'] = $value; + + after_ssh_url: + + $value = $payload['stargazers_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'stargazers_url'; + goto after_stargazers_url; + } + + $properties['stargazers_url'] = $value; + + after_stargazers_url: + + $value = $payload['statuses_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'statuses_url'; + goto after_statuses_url; + } + + $properties['statuses_url'] = $value; + + after_statuses_url: + + $value = $payload['subscribers_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscribers_url'; + goto after_subscribers_url; + } + + $properties['subscribers_url'] = $value; + + after_subscribers_url: + + $value = $payload['subscription_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscription_url'; + goto after_subscription_url; + } + + $properties['subscription_url'] = $value; + + after_subscription_url: + + $value = $payload['tags_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'tags_url'; + goto after_tags_url; + } + + $properties['tags_url'] = $value; + + after_tags_url: + + $value = $payload['teams_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'teams_url'; + goto after_teams_url; + } + + $properties['teams_url'] = $value; + + after_teams_url: + + $value = $payload['trees_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'trees_url'; + goto after_trees_url; + } + + $properties['trees_url'] = $value; + + after_trees_url: + + $value = $payload['clone_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'clone_url'; + goto after_clone_url; + } + + $properties['clone_url'] = $value; + + after_clone_url: + + $value = $payload['mirror_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'mirror_url'; + goto after_mirror_url; + } + + $properties['mirror_url'] = $value; + + after_mirror_url: + + $value = $payload['hooks_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'hooks_url'; + goto after_hooks_url; + } + + $properties['hooks_url'] = $value; + + after_hooks_url: + + $value = $payload['svn_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'svn_url'; + goto after_svn_url; + } + + $properties['svn_url'] = $value; + + after_svn_url: + + $value = $payload['homepage'] ?? null; + + if ($value === null) { + $missingFields[] = 'homepage'; + goto after_homepage; + } + + $properties['homepage'] = $value; + + after_homepage: + + $value = $payload['language'] ?? null; + + if ($value === null) { + $missingFields[] = 'language'; + goto after_language; + } + + $properties['language'] = $value; + + after_language: + + $value = $payload['forks_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'forks_count'; + goto after_forks_count; + } + + $properties['forks_count'] = $value; + + after_forks_count: + + $value = $payload['stargazers_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'stargazers_count'; + goto after_stargazers_count; + } + + $properties['stargazers_count'] = $value; + + after_stargazers_count: + + $value = $payload['watchers_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'watchers_count'; + goto after_watchers_count; + } + + $properties['watchers_count'] = $value; + + after_watchers_count: + + $value = $payload['size'] ?? null; + + if ($value === null) { + $missingFields[] = 'size'; + goto after_size; + } + + $properties['size'] = $value; + + after_size: + + $value = $payload['default_branch'] ?? null; + + if ($value === null) { + $missingFields[] = 'default_branch'; + goto after_default_branch; + } + + $properties['default_branch'] = $value; + + after_default_branch: + + $value = $payload['open_issues_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'open_issues_count'; + goto after_open_issues_count; + } + + $properties['open_issues_count'] = $value; + + after_open_issues_count: + + $value = $payload['is_template'] ?? null; + + if ($value === null) { + $missingFields[] = 'is_template'; + goto after_is_template; + } + + $properties['is_template'] = $value; + + after_is_template: + + $value = $payload['topics'] ?? null; + + if ($value === null) { + $missingFields[] = 'topics'; + goto after_topics; + } + + $properties['topics'] = $value; + + after_topics: + + $value = $payload['has_issues'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_issues'; + goto after_has_issues; + } + + $properties['has_issues'] = $value; + + after_has_issues: + + $value = $payload['has_projects'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_projects'; + goto after_has_projects; + } + + $properties['has_projects'] = $value; + + after_has_projects: + + $value = $payload['has_wiki'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_wiki'; + goto after_has_wiki; + } + + $properties['has_wiki'] = $value; + + after_has_wiki: + + $value = $payload['has_pages'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_pages'; + goto after_has_pages; + } + + $properties['has_pages'] = $value; + + after_has_pages: + + $value = $payload['has_downloads'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_downloads'; + goto after_has_downloads; + } + + $properties['has_downloads'] = $value; + + after_has_downloads: + + $value = $payload['archived'] ?? null; + + if ($value === null) { + $missingFields[] = 'archived'; + goto after_archived; + } + + $properties['archived'] = $value; + + after_archived: + + $value = $payload['disabled'] ?? null; + + if ($value === null) { + $missingFields[] = 'disabled'; + goto after_disabled; + } + + $properties['disabled'] = $value; + + after_disabled: + + $value = $payload['visibility'] ?? null; + + if ($value === null) { + $missingFields[] = 'visibility'; + goto after_visibility; + } + + $properties['visibility'] = $value; + + after_visibility: + + $value = $payload['pushed_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'pushed_at'; + goto after_pushed_at; + } + + $properties['pushed_at'] = $value; + + after_pushed_at: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'created_at'; + goto after_created_at; + } + + $properties['created_at'] = $value; + + after_created_at: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'updated_at'; + goto after_updated_at; + } + + $properties['updated_at'] = $value; + + after_updated_at: + + $value = $payload['permissions'] ?? null; + + if ($value === null) { + $missingFields[] = 'permissions'; + goto after_permissions; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'permissions'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Permissions($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['permissions'] = $value; + + after_permissions: + + $value = $payload['allow_rebase_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_rebase_merge'; + goto after_allow_rebase_merge; + } + + $properties['allow_rebase_merge'] = $value; + + after_allow_rebase_merge: + + $value = $payload['temp_clone_token'] ?? null; + + if ($value === null) { + $missingFields[] = 'temp_clone_token'; + goto after_temp_clone_token; + } + + $properties['temp_clone_token'] = $value; + + after_temp_clone_token: + + $value = $payload['allow_squash_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_squash_merge'; + goto after_allow_squash_merge; + } + + $properties['allow_squash_merge'] = $value; + + after_allow_squash_merge: + + $value = $payload['allow_auto_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_auto_merge'; + goto after_allow_auto_merge; + } + + $properties['allow_auto_merge'] = $value; + + after_allow_auto_merge: + + $value = $payload['delete_branch_on_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'delete_branch_on_merge'; + goto after_delete_branch_on_merge; + } + + $properties['delete_branch_on_merge'] = $value; + + after_delete_branch_on_merge: + + $value = $payload['allow_update_branch'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_update_branch'; + goto after_allow_update_branch; + } + + $properties['allow_update_branch'] = $value; + + after_allow_update_branch: + + $value = $payload['use_squash_pr_title_as_default'] ?? null; + + if ($value === null) { + $missingFields[] = 'use_squash_pr_title_as_default'; + goto after_use_squash_pr_title_as_default; + } + + $properties['use_squash_pr_title_as_default'] = $value; + + after_use_squash_pr_title_as_default: + + $value = $payload['squash_merge_commit_title'] ?? null; + + if ($value === null) { + $missingFields[] = 'squash_merge_commit_title'; + goto after_squash_merge_commit_title; + } + + $properties['squash_merge_commit_title'] = $value; + + after_squash_merge_commit_title: + + $value = $payload['squash_merge_commit_message'] ?? null; + + if ($value === null) { + $missingFields[] = 'squash_merge_commit_message'; + goto after_squash_merge_commit_message; + } + + $properties['squash_merge_commit_message'] = $value; + + after_squash_merge_commit_message: + + $value = $payload['merge_commit_title'] ?? null; + + if ($value === null) { + $missingFields[] = 'merge_commit_title'; + goto after_merge_commit_title; + } + + $properties['merge_commit_title'] = $value; + + after_merge_commit_title: + + $value = $payload['merge_commit_message'] ?? null; + + if ($value === null) { + $missingFields[] = 'merge_commit_message'; + goto after_merge_commit_message; + } + + $properties['merge_commit_message'] = $value; + + after_merge_commit_message: + + $value = $payload['allow_merge_commit'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_merge_commit'; + goto after_allow_merge_commit; + } + + $properties['allow_merge_commit'] = $value; + + after_allow_merge_commit: + + $value = $payload['subscribers_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscribers_count'; + goto after_subscribers_count; + } + + $properties['subscribers_count'] = $value; + + after_subscribers_count: + + $value = $payload['network_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'network_count'; + goto after_network_count; + } + + $properties['network_count'] = $value; + + after_network_count: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\TemplateRepository::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\Repository\TemplateRepository(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCodeScanningAlertClosedByUser⚡️Alert⚡️Rule(array $payload): \ApiClients\Client\Github\Schema\WebhookCodeScanningAlertClosedByUser\Alert\Rule + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['description'] ?? null; + + if ($value === null) { + $missingFields[] = 'description'; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['full_description'] ?? null; + + if ($value === null) { + $missingFields[] = 'full_description'; + goto after_full_description; + } + + $properties['full_description'] = $value; + + after_full_description: + + $value = $payload['help'] ?? null; + + if ($value === null) { + $missingFields[] = 'help'; + goto after_help; + } + + $properties['help'] = $value; + + after_help: + + $value = $payload['help_uri'] ?? null; + + if ($value === null) { + $missingFields[] = 'help_uri'; + goto after_help_uri; + } + + $properties['help_uri'] = $value; + + after_help_uri: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['severity'] ?? null; + + if ($value === null) { + $missingFields[] = 'severity'; + goto after_severity; + } + + $properties['severity'] = $value; + + after_severity: + + $value = $payload['tags'] ?? null; + + if ($value === null) { + $missingFields[] = 'tags'; + goto after_tags; + } + + $properties['tags'] = $value; + + after_tags: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCodeScanningAlertClosedByUser\Alert\Rule', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookCodeScanningAlertClosedByUser\Alert\Rule::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookCodeScanningAlertClosedByUser\Alert\Rule(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCodeScanningAlertClosedByUser\Alert\Rule', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCodeScanningAlertClosedByUser⚡️Alert⚡️Tool(array $payload): \ApiClients\Client\Github\Schema\WebhookCodeScanningAlertClosedByUser\Alert\Tool + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['guid'] ?? null; + + if ($value === null) { + $missingFields[] = 'guid'; + goto after_guid; + } + + $properties['guid'] = $value; + + after_guid: + + $value = $payload['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['version'] ?? null; + + if ($value === null) { + $missingFields[] = 'version'; + goto after_version; + } + + $properties['version'] = $value; + + after_version: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCodeScanningAlertClosedByUser\Alert\Tool', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookCodeScanningAlertClosedByUser\Alert\Tool::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookCodeScanningAlertClosedByUser\Alert\Tool(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCodeScanningAlertClosedByUser\Alert\Tool', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCodeScanningAlertCreated⚡️Alert⚡️Tool(array $payload): \ApiClients\Client\Github\Schema\WebhookCodeScanningAlertCreated\Alert\Tool + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['guid'] ?? null; + + if ($value === null) { + $missingFields[] = 'guid'; + goto after_guid; + } + + $properties['guid'] = $value; + + after_guid: + + $value = $payload['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['version'] ?? null; + + if ($value === null) { + $missingFields[] = 'version'; + goto after_version; + } + + $properties['version'] = $value; + + after_version: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCodeScanningAlertCreated\Alert\Tool', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookCodeScanningAlertCreated\Alert\Tool::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookCodeScanningAlertCreated\Alert\Tool(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCodeScanningAlertCreated\Alert\Tool', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckSuiteCompleted⚡️ActionsMeta(array $payload): \ApiClients\Client\Github\Schema\WebhookCheckSuiteCompleted\ActionsMeta + { + $properties = []; + $missingFields = []; + try { + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCheckSuiteCompleted\ActionsMeta', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookCheckSuiteCompleted\ActionsMeta::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookCheckSuiteCompleted\ActionsMeta(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCheckSuiteCompleted\ActionsMeta', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCodeScanningAlertAppearedInBranch⚡️Alert⚡️MostRecentInstance⚡️Location(array $payload): \ApiClients\Client\Github\Schema\WebhookCodeScanningAlertAppearedInBranch\Alert\MostRecentInstance\Location + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['end_column'] ?? null; + + if ($value === null) { + $missingFields[] = 'end_column'; + goto after_end_column; + } + + $properties['end_column'] = $value; + + after_end_column: + + $value = $payload['end_line'] ?? null; + + if ($value === null) { + $missingFields[] = 'end_line'; + goto after_end_line; + } + + $properties['end_line'] = $value; + + after_end_line: + + $value = $payload['path'] ?? null; + + if ($value === null) { + $missingFields[] = 'path'; + goto after_path; + } + + $properties['path'] = $value; + + after_path: + + $value = $payload['start_column'] ?? null; + + if ($value === null) { + $missingFields[] = 'start_column'; + goto after_start_column; + } + + $properties['start_column'] = $value; + + after_start_column: + + $value = $payload['start_line'] ?? null; + + if ($value === null) { + $missingFields[] = 'start_line'; + goto after_start_line; + } + + $properties['start_line'] = $value; + + after_start_line: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCodeScanningAlertAppearedInBranch\Alert\MostRecentInstance\Location', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookCodeScanningAlertAppearedInBranch\Alert\MostRecentInstance\Location::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookCodeScanningAlertAppearedInBranch\Alert\MostRecentInstance\Location(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCodeScanningAlertAppearedInBranch\Alert\MostRecentInstance\Location', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️CodeScanningAlertInstance⚡️Message(array $payload): \ApiClients\Client\Github\Schema\CodeScanningAlertInstance\Message + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['text'] ?? null; + + if ($value === null) { + $missingFields[] = 'text'; + goto after_text; + } + + $properties['text'] = $value; + + after_text: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\CodeScanningAlertInstance\Message', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\CodeScanningAlertInstance\Message::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\CodeScanningAlertInstance\Message(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\CodeScanningAlertInstance\Message', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner(array $payload): \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['login'] ?? null; + + if ($value === null) { + $missingFields[] = 'login'; + goto after_login; + } + + $properties['login'] = $value; + + after_login: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['avatar_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'avatar_url'; + goto after_avatar_url; + } + + $properties['avatar_url'] = $value; + + after_avatar_url: + + $value = $payload['gravatar_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'gravatar_id'; + goto after_gravatar_id; + } + + $properties['gravatar_id'] = $value; + + after_gravatar_id: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } + + $properties['html_url'] = $value; + + after_html_url: + + $value = $payload['followers_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'followers_url'; + goto after_followers_url; + } + + $properties['followers_url'] = $value; + + after_followers_url: + + $value = $payload['following_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'following_url'; + goto after_following_url; + } + + $properties['following_url'] = $value; + + after_following_url: + + $value = $payload['gists_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'gists_url'; + goto after_gists_url; + } + + $properties['gists_url'] = $value; + + after_gists_url: + + $value = $payload['starred_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'starred_url'; + goto after_starred_url; + } + + $properties['starred_url'] = $value; + + after_starred_url: + + $value = $payload['subscriptions_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscriptions_url'; + goto after_subscriptions_url; + } + + $properties['subscriptions_url'] = $value; + + after_subscriptions_url: + + $value = $payload['organizations_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'organizations_url'; + goto after_organizations_url; + } + + $properties['organizations_url'] = $value; + + after_organizations_url: + + $value = $payload['repos_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'repos_url'; + goto after_repos_url; + } + + $properties['repos_url'] = $value; + + after_repos_url: + + $value = $payload['events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'events_url'; + goto after_events_url; + } + + $properties['events_url'] = $value; + + after_events_url: + + $value = $payload['received_events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'received_events_url'; + goto after_received_events_url; + } + + $properties['received_events_url'] = $value; + + after_received_events_url: + + $value = $payload['type'] ?? null; + + if ($value === null) { + $missingFields[] = 'type'; + goto after_type; + } + + $properties['type'] = $value; + + after_type: + + $value = $payload['site_admin'] ?? null; + + if ($value === null) { + $missingFields[] = 'site_admin'; + goto after_site_admin; + } + + $properties['site_admin'] = $value; + + after_site_admin: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Permissions(array $payload): \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['admin'] ?? null; + + if ($value === null) { + $missingFields[] = 'admin'; + goto after_admin; + } + + $properties['admin'] = $value; + + after_admin: + + $value = $payload['maintain'] ?? null; + + if ($value === null) { + $missingFields[] = 'maintain'; + goto after_maintain; + } + + $properties['maintain'] = $value; + + after_maintain: + + $value = $payload['push'] ?? null; + + if ($value === null) { + $missingFields[] = 'push'; + goto after_push; + } + + $properties['push'] = $value; + + after_push: + + $value = $payload['triage'] ?? null; + + if ($value === null) { + $missingFields[] = 'triage'; + goto after_triage; + } + + $properties['triage'] = $value; + + after_triage: + + $value = $payload['pull'] ?? null; + + if ($value === null) { + $missingFields[] = 'pull'; + goto after_pull; + } + + $properties['pull'] = $value; + + after_pull: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions', $exception, stack: $this->hydrationStack); + } + } + + public function serializeObject(object $object): mixed + { + try { + $className = get_class($object); + + return match($className) { + 'array' => $this->serializeValuearray($object), + 'Ramsey\Uuid\UuidInterface' => $this->serializeValueRamsey⚡️Uuid⚡️UuidInterface($object), + 'DateTime' => $this->serializeValueDateTime($object), + 'DateTimeImmutable' => $this->serializeValueDateTimeImmutable($object), + 'DateTimeInterface' => $this->serializeValueDateTimeInterface($object), + 'ApiClients\Client\Github\Schema\WebhookCodeScanningAlertAppearedInBranch' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCodeScanningAlertAppearedInBranch($object), + 'ApiClients\Client\Github\Schema\WebhookCodeScanningAlertClosedByUser' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCodeScanningAlertClosedByUser($object), + 'ApiClients\Client\Github\Schema\WebhookCodeScanningAlertCreated' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCodeScanningAlertCreated($object), + 'ApiClients\Client\Github\Schema\WebhookCodeScanningAlertFixed' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCodeScanningAlertFixed($object), + 'ApiClients\Client\Github\Schema\WebhookCodeScanningAlertReopened' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCodeScanningAlertReopened($object), + 'ApiClients\Client\Github\Schema\WebhookCodeScanningAlertReopenedByUser' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCodeScanningAlertReopenedByUser($object), + default => throw new \LogicException('No serialization defined for $className'), + }; + } catch (\Throwable $exception) { + throw UnableToSerializeObject::dueToError($className, $exception); + } + } + + + private function serializeValuearray(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeArrayItems(...array ( +)); + } + + return $serializer->serialize($value, $this); + } + + + private function serializeValueRamsey⚡️Uuid⚡️UuidInterface(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeUuidToString(...array ( +)); + } + + return $serializer->serialize($value, $this); + } + + + private function serializeValueDateTime(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeDateTime(...array ( +)); + } + + return $serializer->serialize($value, $this); + } + + + private function serializeValueDateTimeImmutable(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeDateTime(...array ( +)); + } + + return $serializer->serialize($value, $this); + } private function serializeValueDateTimeInterface(mixed $value): mixed { - static $serializer; + static $serializer; + + if ($serializer === null) { + $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeDateTime(...array ( +)); + } + + return $serializer->serialize($value, $this); + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCodeScanningAlertAppearedInBranch(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookCodeScanningAlertAppearedInBranch); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $alert = $object->alert; + + if ($alert === null) { + goto after_alert; + } + $alert = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCodeScanningAlertAppearedInBranch⚡️Alert($alert); + after_alert: $result['alert'] = $alert; + + + $commit_oid = $object->commit_oid; + + if ($commit_oid === null) { + goto after_commit_oid; + } + after_commit_oid: $result['commit_oid'] = $commit_oid; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $ref = $object->ref; + + if ($ref === null) { + goto after_ref; + } + after_ref: $result['ref'] = $ref; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCodeScanningAlertClosedByUser(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookCodeScanningAlertClosedByUser); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $alert = $object->alert; + + if ($alert === null) { + goto after_alert; + } + $alert = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCodeScanningAlertClosedByUser⚡️Alert($alert); + after_alert: $result['alert'] = $alert; + + + $commit_oid = $object->commit_oid; + + if ($commit_oid === null) { + goto after_commit_oid; + } + after_commit_oid: $result['commit_oid'] = $commit_oid; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $ref = $object->ref; + + if ($ref === null) { + goto after_ref; + } + after_ref: $result['ref'] = $ref; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCodeScanningAlertCreated(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookCodeScanningAlertCreated); + $result = []; - if ($serializer === null) { - $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeDateTime(...array ( -)); + $action = $object->action; + + if ($action === null) { + goto after_action; } + after_action: $result['action'] = $action; + - return $serializer->serialize($value, $this); + $alert = $object->alert; + + if ($alert === null) { + goto after_alert; + } + $alert = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCodeScanningAlertCreated⚡️Alert($alert); + after_alert: $result['alert'] = $alert; + + + $commit_oid = $object->commit_oid; + + if ($commit_oid === null) { + goto after_commit_oid; + } + after_commit_oid: $result['commit_oid'] = $commit_oid; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $ref = $object->ref; + + if ($ref === null) { + goto after_ref; + } + after_ref: $result['ref'] = $ref; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCodeScanningAlertFixed(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookCodeScanningAlertFixed); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $alert = $object->alert; + + if ($alert === null) { + goto after_alert; + } + $alert = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCodeScanningAlertFixed⚡️Alert($alert); + after_alert: $result['alert'] = $alert; + + + $commit_oid = $object->commit_oid; + + if ($commit_oid === null) { + goto after_commit_oid; + } + after_commit_oid: $result['commit_oid'] = $commit_oid; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $ref = $object->ref; + + if ($ref === null) { + goto after_ref; + } + after_ref: $result['ref'] = $ref; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCodeScanningAlertReopened(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookCodeScanningAlertReopened); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $alert = $object->alert; + + if ($alert === null) { + goto after_alert; + } + $alert = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCodeScanningAlertReopened⚡️Alert($alert); + after_alert: $result['alert'] = $alert; + + + $commit_oid = $object->commit_oid; + + if ($commit_oid === null) { + goto after_commit_oid; + } + after_commit_oid: $result['commit_oid'] = $commit_oid; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $ref = $object->ref; + + if ($ref === null) { + goto after_ref; + } + after_ref: $result['ref'] = $ref; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; } diff --git a/src/Hydrator/WebHook/DependabotAlert.php b/src/Hydrator/WebHook/DependabotAlert.php index edc51cf967..658a0d92ea 100644 --- a/src/Hydrator/WebHook/DependabotAlert.php +++ b/src/Hydrator/WebHook/DependabotAlert.php @@ -23,7 +23,11 @@ public function __construct() {} public function hydrateObject(string $className, array $payload): object { return match($className) { - 'ApiClients\Client\Github\Schema\WebhookDependabotAlertReopened' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDependabotAlertReopened($payload), + 'ApiClients\Client\Github\Schema\WebhookDependabotAlertCreated' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDependabotAlertCreated($payload), + 'ApiClients\Client\Github\Schema\WebhookDependabotAlertDismissed' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDependabotAlertDismissed($payload), + 'ApiClients\Client\Github\Schema\WebhookDependabotAlertFixed' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDependabotAlertFixed($payload), + 'ApiClients\Client\Github\Schema\WebhookDependabotAlertReintroduced' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDependabotAlertReintroduced($payload), + 'ApiClients\Client\Github\Schema\WebhookDependabotAlertReopened' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDependabotAlertReopened($payload), 'ApiClients\Client\Github\Schema\DependabotAlert' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️DependabotAlert($payload), 'ApiClients\Client\Github\Schema\SimpleInstallation' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($payload), 'ApiClients\Client\Github\Schema\OrganizationSimple' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($payload), @@ -45,6 +49,618 @@ public function hydrateObject(string $className, array $payload): object } + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDependabotAlertCreated(array $payload): \ApiClients\Client\Github\Schema\WebhookDependabotAlertCreated + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; + + if ($value === null) { + $missingFields[] = 'action'; + goto after_action; + } + + $properties['action'] = $value; + + after_action: + + $value = $payload['alert'] ?? null; + + if ($value === null) { + $missingFields[] = 'alert'; + goto after_alert; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'alert'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️DependabotAlert($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['alert'] = $value; + + after_alert: + + $value = $payload['installation'] ?? null; + + if ($value === null) { + $missingFields[] = 'installation'; + goto after_installation; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; + + after_installation: + + $value = $payload['organization'] ?? null; + + if ($value === null) { + $missingFields[] = 'organization'; + goto after_organization; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; + + after_organization: + + $value = $payload['enterprise'] ?? null; + + if ($value === null) { + $missingFields[] = 'enterprise'; + goto after_enterprise; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['enterprise'] = $value; + + after_enterprise: + + $value = $payload['repository'] ?? null; + + if ($value === null) { + $missingFields[] = 'repository'; + goto after_repository; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repository'] = $value; + + after_repository: + + $value = $payload['sender'] ?? null; + + if ($value === null) { + $missingFields[] = 'sender'; + goto after_sender; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; + + after_sender: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDependabotAlertCreated', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookDependabotAlertCreated::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookDependabotAlertCreated(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDependabotAlertCreated', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDependabotAlertDismissed(array $payload): \ApiClients\Client\Github\Schema\WebhookDependabotAlertDismissed + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; + + if ($value === null) { + $missingFields[] = 'action'; + goto after_action; + } + + $properties['action'] = $value; + + after_action: + + $value = $payload['alert'] ?? null; + + if ($value === null) { + $missingFields[] = 'alert'; + goto after_alert; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'alert'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️DependabotAlert($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['alert'] = $value; + + after_alert: + + $value = $payload['installation'] ?? null; + + if ($value === null) { + $missingFields[] = 'installation'; + goto after_installation; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; + + after_installation: + + $value = $payload['organization'] ?? null; + + if ($value === null) { + $missingFields[] = 'organization'; + goto after_organization; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; + + after_organization: + + $value = $payload['enterprise'] ?? null; + + if ($value === null) { + $missingFields[] = 'enterprise'; + goto after_enterprise; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['enterprise'] = $value; + + after_enterprise: + + $value = $payload['repository'] ?? null; + + if ($value === null) { + $missingFields[] = 'repository'; + goto after_repository; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repository'] = $value; + + after_repository: + + $value = $payload['sender'] ?? null; + + if ($value === null) { + $missingFields[] = 'sender'; + goto after_sender; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; + + after_sender: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDependabotAlertDismissed', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookDependabotAlertDismissed::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookDependabotAlertDismissed(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDependabotAlertDismissed', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDependabotAlertFixed(array $payload): \ApiClients\Client\Github\Schema\WebhookDependabotAlertFixed + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; + + if ($value === null) { + $missingFields[] = 'action'; + goto after_action; + } + + $properties['action'] = $value; + + after_action: + + $value = $payload['alert'] ?? null; + + if ($value === null) { + $missingFields[] = 'alert'; + goto after_alert; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'alert'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️DependabotAlert($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['alert'] = $value; + + after_alert: + + $value = $payload['installation'] ?? null; + + if ($value === null) { + $missingFields[] = 'installation'; + goto after_installation; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; + + after_installation: + + $value = $payload['organization'] ?? null; + + if ($value === null) { + $missingFields[] = 'organization'; + goto after_organization; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; + + after_organization: + + $value = $payload['enterprise'] ?? null; + + if ($value === null) { + $missingFields[] = 'enterprise'; + goto after_enterprise; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['enterprise'] = $value; + + after_enterprise: + + $value = $payload['repository'] ?? null; + + if ($value === null) { + $missingFields[] = 'repository'; + goto after_repository; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repository'] = $value; + + after_repository: + + $value = $payload['sender'] ?? null; + + if ($value === null) { + $missingFields[] = 'sender'; + goto after_sender; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; + + after_sender: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDependabotAlertFixed', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookDependabotAlertFixed::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookDependabotAlertFixed(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDependabotAlertFixed', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDependabotAlertReintroduced(array $payload): \ApiClients\Client\Github\Schema\WebhookDependabotAlertReintroduced + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; + + if ($value === null) { + $missingFields[] = 'action'; + goto after_action; + } + + $properties['action'] = $value; + + after_action: + + $value = $payload['alert'] ?? null; + + if ($value === null) { + $missingFields[] = 'alert'; + goto after_alert; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'alert'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️DependabotAlert($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['alert'] = $value; + + after_alert: + + $value = $payload['installation'] ?? null; + + if ($value === null) { + $missingFields[] = 'installation'; + goto after_installation; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; + + after_installation: + + $value = $payload['organization'] ?? null; + + if ($value === null) { + $missingFields[] = 'organization'; + goto after_organization; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; + + after_organization: + + $value = $payload['enterprise'] ?? null; + + if ($value === null) { + $missingFields[] = 'enterprise'; + goto after_enterprise; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['enterprise'] = $value; + + after_enterprise: + + $value = $payload['repository'] ?? null; + + if ($value === null) { + $missingFields[] = 'repository'; + goto after_repository; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repository'] = $value; + + after_repository: + + $value = $payload['sender'] ?? null; + + if ($value === null) { + $missingFields[] = 'sender'; + goto after_sender; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; + + after_sender: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDependabotAlertReintroduced', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookDependabotAlertReintroduced::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookDependabotAlertReintroduced(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDependabotAlertReintroduced', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDependabotAlertReopened(array $payload): \ApiClients\Client\Github\Schema\WebhookDependabotAlertReopened { $properties = []; @@ -3946,6 +4562,10 @@ public function serializeObject(object $object): mixed 'DateTime' => $this->serializeValueDateTime($object), 'DateTimeImmutable' => $this->serializeValueDateTimeImmutable($object), 'DateTimeInterface' => $this->serializeValueDateTimeInterface($object), + 'ApiClients\Client\Github\Schema\WebhookDependabotAlertCreated' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDependabotAlertCreated($object), + 'ApiClients\Client\Github\Schema\WebhookDependabotAlertDismissed' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDependabotAlertDismissed($object), + 'ApiClients\Client\Github\Schema\WebhookDependabotAlertFixed' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDependabotAlertFixed($object), + 'ApiClients\Client\Github\Schema\WebhookDependabotAlertReintroduced' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDependabotAlertReintroduced($object), 'ApiClients\Client\Github\Schema\WebhookDependabotAlertReopened' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDependabotAlertReopened($object), default => throw new \LogicException('No serialization defined for $className'), }; @@ -4020,6 +4640,242 @@ private function serializeValueDateTimeInterface(mixed $value): mixed } + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDependabotAlertCreated(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookDependabotAlertCreated); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $alert = $object->alert; + + if ($alert === null) { + goto after_alert; + } + $alert = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️DependabotAlert($alert); + after_alert: $result['alert'] = $alert; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDependabotAlertDismissed(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookDependabotAlertDismissed); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $alert = $object->alert; + + if ($alert === null) { + goto after_alert; + } + $alert = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️DependabotAlert($alert); + after_alert: $result['alert'] = $alert; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDependabotAlertFixed(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookDependabotAlertFixed); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $alert = $object->alert; + + if ($alert === null) { + goto after_alert; + } + $alert = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️DependabotAlert($alert); + after_alert: $result['alert'] = $alert; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDependabotAlertReintroduced(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookDependabotAlertReintroduced); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $alert = $object->alert; + + if ($alert === null) { + goto after_alert; + } + $alert = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️DependabotAlert($alert); + after_alert: $result['alert'] = $alert; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDependabotAlertReopened(mixed $object): mixed { \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookDependabotAlertReopened); diff --git a/src/Hydrator/WebHook/DeployKey.php b/src/Hydrator/WebHook/DeployKey.php index c1e76ea6c8..d6ffaec005 100644 --- a/src/Hydrator/WebHook/DeployKey.php +++ b/src/Hydrator/WebHook/DeployKey.php @@ -23,7 +23,8 @@ public function __construct() {} public function hydrateObject(string $className, array $payload): object { return match($className) { - 'ApiClients\Client\Github\Schema\WebhookDeployKeyDeleted' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDeployKeyDeleted($payload), + 'ApiClients\Client\Github\Schema\WebhookDeployKeyCreated' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDeployKeyCreated($payload), + 'ApiClients\Client\Github\Schema\WebhookDeployKeyDeleted' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDeployKeyDeleted($payload), 'ApiClients\Client\Github\Schema\Enterprise' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($payload), 'ApiClients\Client\Github\Schema\SimpleInstallation' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($payload), 'ApiClients\Client\Github\Schema\WebhookDeployKeyCreated\Key' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDeployKeyCreated⚡️Key($payload), @@ -39,6 +40,159 @@ public function hydrateObject(string $className, array $payload): object } + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDeployKeyCreated(array $payload): \ApiClients\Client\Github\Schema\WebhookDeployKeyCreated + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; + + if ($value === null) { + $missingFields[] = 'action'; + goto after_action; + } + + $properties['action'] = $value; + + after_action: + + $value = $payload['enterprise'] ?? null; + + if ($value === null) { + $missingFields[] = 'enterprise'; + goto after_enterprise; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['enterprise'] = $value; + + after_enterprise: + + $value = $payload['installation'] ?? null; + + if ($value === null) { + $missingFields[] = 'installation'; + goto after_installation; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; + + after_installation: + + $value = $payload['key'] ?? null; + + if ($value === null) { + $missingFields[] = 'key'; + goto after_key; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'key'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDeployKeyCreated⚡️Key($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['key'] = $value; + + after_key: + + $value = $payload['organization'] ?? null; + + if ($value === null) { + $missingFields[] = 'organization'; + goto after_organization; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; + + after_organization: + + $value = $payload['repository'] ?? null; + + if ($value === null) { + $missingFields[] = 'repository'; + goto after_repository; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repository'] = $value; + + after_repository: + + $value = $payload['sender'] ?? null; + + if ($value === null) { + $missingFields[] = 'sender'; + goto after_sender; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; + + after_sender: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDeployKeyCreated', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookDeployKeyCreated::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookDeployKeyCreated(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDeployKeyCreated', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDeployKeyDeleted(array $payload): \ApiClients\Client\Github\Schema\WebhookDeployKeyDeleted { $properties = []; @@ -3415,6 +3569,7 @@ public function serializeObject(object $object): mixed 'DateTime' => $this->serializeValueDateTime($object), 'DateTimeImmutable' => $this->serializeValueDateTimeImmutable($object), 'DateTimeInterface' => $this->serializeValueDateTimeInterface($object), + 'ApiClients\Client\Github\Schema\WebhookDeployKeyCreated' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDeployKeyCreated($object), 'ApiClients\Client\Github\Schema\WebhookDeployKeyDeleted' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDeployKeyDeleted($object), default => throw new \LogicException('No serialization defined for $className'), }; @@ -3489,6 +3644,65 @@ private function serializeValueDateTimeInterface(mixed $value): mixed } + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDeployKeyCreated(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookDeployKeyCreated); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $key = $object->key; + + if ($key === null) { + goto after_key; + } + $key = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDeployKeyCreated⚡️Key($key); + after_key: $result['key'] = $key; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDeployKeyDeleted(mixed $object): mixed { \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookDeployKeyDeleted); diff --git a/src/Hydrator/WebHook/Discussion.php b/src/Hydrator/WebHook/Discussion.php index 6021f60b93..a096e5c965 100644 --- a/src/Hydrator/WebHook/Discussion.php +++ b/src/Hydrator/WebHook/Discussion.php @@ -23,26 +23,50 @@ public function __construct() {} public function hydrateObject(string $className, array $payload): object { return match($className) { - 'ApiClients\Client\Github\Schema\WebhookDiscussionUnpinned' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionUnpinned($payload), + 'ApiClients\Client\Github\Schema\WebhookDiscussionAnswered' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionAnswered($payload), + 'ApiClients\Client\Github\Schema\WebhookDiscussionCategoryChanged' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionCategoryChanged($payload), + 'ApiClients\Client\Github\Schema\WebhookDiscussionCreated' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionCreated($payload), + 'ApiClients\Client\Github\Schema\WebhookDiscussionDeleted' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionDeleted($payload), + 'ApiClients\Client\Github\Schema\WebhookDiscussionEdited' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionEdited($payload), + 'ApiClients\Client\Github\Schema\WebhookDiscussionLabeled' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionLabeled($payload), + 'ApiClients\Client\Github\Schema\WebhookDiscussionLocked' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionLocked($payload), + 'ApiClients\Client\Github\Schema\WebhookDiscussionPinned' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionPinned($payload), + 'ApiClients\Client\Github\Schema\WebhookDiscussionTransferred' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionTransferred($payload), + 'ApiClients\Client\Github\Schema\WebhookDiscussionUnanswered' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionUnanswered($payload), + 'ApiClients\Client\Github\Schema\WebhookDiscussionUnlabeled' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionUnlabeled($payload), + 'ApiClients\Client\Github\Schema\WebhookDiscussionUnlocked' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionUnlocked($payload), + 'ApiClients\Client\Github\Schema\WebhookDiscussionUnpinned' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionUnpinned($payload), + 'ApiClients\Client\Github\Schema\WebhookDiscussionAnswered\Answer' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionAnswered⚡️Answer($payload), 'ApiClients\Client\Github\Schema\Discussion' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion($payload), 'ApiClients\Client\Github\Schema\Enterprise' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($payload), 'ApiClients\Client\Github\Schema\SimpleInstallation' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($payload), 'ApiClients\Client\Github\Schema\OrganizationSimple' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($payload), 'ApiClients\Client\Github\Schema\Repository' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($payload), 'ApiClients\Client\Github\Schema\SimpleUser' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($payload), + 'ApiClients\Client\Github\Schema\WebhookDiscussionCategoryChanged\Changes' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionCategoryChanged⚡️Changes($payload), + 'ApiClients\Client\Github\Schema\WebhookDiscussionEdited\Changes' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionEdited⚡️Changes($payload), + 'ApiClients\Client\Github\Schema\WebhookDiscussionLabeled\Discussion' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionLabeled⚡️Discussion($payload), + 'ApiClients\Client\Github\Schema\WebhookDiscussionLabeled\Label' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionLabeled⚡️Label($payload), + 'ApiClients\Client\Github\Schema\WebhookDiscussionTransferred\Changes' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionTransferred⚡️Changes($payload), + 'ApiClients\Client\Github\Schema\Discussion\Reactions' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️Reactions($payload), 'ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($payload), 'ApiClients\Client\Github\Schema\Discussion\Category' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️Category($payload), - 'ApiClients\Client\Github\Schema\Discussion\Reactions' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️Reactions($payload), 'ApiClients\Client\Github\Schema\Repository\Permissions' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️Permissions($payload), 'ApiClients\Client\Github\Schema\Repository\TemplateRepository' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository($payload), + 'ApiClients\Client\Github\Schema\WebhookDiscussionCategoryChanged\Changes\Category' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionCategoryChanged⚡️Changes⚡️Category($payload), + 'ApiClients\Client\Github\Schema\WebhookDiscussionCommentEdited\Changes\Body' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionCommentEdited⚡️Changes⚡️Body($payload), + 'ApiClients\Client\Github\Schema\WebhookDiscussionTransferred\Changes\NewDiscussion' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionTransferred⚡️Changes⚡️NewDiscussion($payload), + 'ApiClients\Client\Github\Schema\WebhookDiscussionTransferred\Changes\NewRepository' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionTransferred⚡️Changes⚡️NewRepository($payload), 'ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner($payload), 'ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Permissions($payload), + 'ApiClients\Client\Github\Schema\WebhookDiscussionTransferred\Changes\NewRepository\License' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionTransferred⚡️Changes⚡️NewRepository⚡️License($payload), + 'ApiClients\Client\Github\Schema\WebhookDiscussionTransferred\Changes\NewRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionTransferred⚡️Changes⚡️NewRepository⚡️Permissions($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), }; } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionUnpinned(array $payload): \ApiClients\Client\Github\Schema\WebhookDiscussionUnpinned + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionAnswered(array $payload): \ApiClients\Client\Github\Schema\WebhookDiscussionAnswered { $properties = []; $missingFields = []; @@ -59,6 +83,26 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh after_action: + $value = $payload['answer'] ?? null; + + if ($value === null) { + $missingFields[] = 'answer'; + goto after_answer; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'answer'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionAnswered⚡️Answer($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['answer'] = $value; + + after_answer: + $value = $payload['discussion'] ?? null; if ($value === null) { @@ -180,1816 +224,2244 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh after_sender: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDiscussionUnpinned', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDiscussionAnswered', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookDiscussionUnpinned::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookDiscussionAnswered::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\WebhookDiscussionUnpinned(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookDiscussionAnswered(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDiscussionUnpinned', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDiscussionAnswered', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion(array $payload): \ApiClients\Client\Github\Schema\Discussion + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionCategoryChanged(array $payload): \ApiClients\Client\Github\Schema\WebhookDiscussionCategoryChanged { $properties = []; $missingFields = []; try { - $value = $payload['active_lock_reason'] ?? null; + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'active_lock_reason'; - goto after_active_lock_reason; + $missingFields[] = 'action'; + goto after_action; } - $properties['active_lock_reason'] = $value; + $properties['action'] = $value; - after_active_lock_reason: + after_action: - $value = $payload['answer_chosen_at'] ?? null; + $value = $payload['changes'] ?? null; if ($value === null) { - $missingFields[] = 'answer_chosen_at'; - goto after_answer_chosen_at; + $missingFields[] = 'changes'; + goto after_changes; } - $properties['answer_chosen_at'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'changes'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionCategoryChanged⚡️Changes($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['changes'] = $value; - after_answer_chosen_at: + after_changes: - $value = $payload['answer_chosen_by'] ?? null; + $value = $payload['discussion'] ?? null; if ($value === null) { - $missingFields[] = 'answer_chosen_by'; - goto after_answer_chosen_by; + $missingFields[] = 'discussion'; + goto after_discussion; } if (is_array($value)) { try { - $this->hydrationStack[] = 'answer_chosen_by'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + $this->hydrationStack[] = 'discussion'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion($value); } finally { array_pop($this->hydrationStack); } } - $properties['answer_chosen_by'] = $value; + $properties['discussion'] = $value; - after_answer_chosen_by: + after_discussion: - $value = $payload['answer_html_url'] ?? null; + $value = $payload['enterprise'] ?? null; if ($value === null) { - $missingFields[] = 'answer_html_url'; - goto after_answer_html_url; + $missingFields[] = 'enterprise'; + goto after_enterprise; } - $properties['answer_html_url'] = $value; - - after_answer_html_url: - - $value = $payload['author_association'] ?? null; - - if ($value === null) { - $missingFields[] = 'author_association'; - goto after_author_association; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['author_association'] = $value; + $properties['enterprise'] = $value; - after_author_association: + after_enterprise: - $value = $payload['body'] ?? null; + $value = $payload['installation'] ?? null; if ($value === null) { - $missingFields[] = 'body'; - goto after_body; + $missingFields[] = 'installation'; + goto after_installation; } - $properties['body'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; - after_body: + after_installation: - $value = $payload['category'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'category'; - goto after_category; + $missingFields[] = 'organization'; + goto after_organization; } if (is_array($value)) { try { - $this->hydrationStack[] = 'category'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️Category($value); + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); } finally { array_pop($this->hydrationStack); } } - $properties['category'] = $value; + $properties['organization'] = $value; - after_category: + after_organization: - $value = $payload['comments'] ?? null; + $value = $payload['repository'] ?? null; if ($value === null) { - $missingFields[] = 'comments'; - goto after_comments; + $missingFields[] = 'repository'; + goto after_repository; } - $properties['comments'] = $value; - - after_comments: - - $value = $payload['created_at'] ?? null; - - if ($value === null) { - $missingFields[] = 'created_at'; - goto after_created_at; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['created_at'] = $value; + $properties['repository'] = $value; - after_created_at: + after_repository: - $value = $payload['html_url'] ?? null; + $value = $payload['sender'] ?? null; if ($value === null) { - $missingFields[] = 'html_url'; - goto after_html_url; + $missingFields[] = 'sender'; + goto after_sender; } - $properties['html_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; - after_html_url: + after_sender: - $value = $payload['id'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDiscussionCategoryChanged', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookDiscussionCategoryChanged::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookDiscussionCategoryChanged(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDiscussionCategoryChanged', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionCreated(array $payload): \ApiClients\Client\Github\Schema\WebhookDiscussionCreated + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'action'; + goto after_action; } - $properties['id'] = $value; + $properties['action'] = $value; - after_id: + after_action: - $value = $payload['locked'] ?? null; + $value = $payload['discussion'] ?? null; if ($value === null) { - $missingFields[] = 'locked'; - goto after_locked; + $properties['discussion'] = null; + goto after_discussion; } - $properties['locked'] = $value; + $properties['discussion'] = $value; - after_locked: + after_discussion: - $value = $payload['node_id'] ?? null; + $value = $payload['enterprise'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $missingFields[] = 'enterprise'; + goto after_enterprise; } - $properties['node_id'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['enterprise'] = $value; - after_node_id: + after_enterprise: - $value = $payload['number'] ?? null; + $value = $payload['installation'] ?? null; if ($value === null) { - $missingFields[] = 'number'; - goto after_number; + $missingFields[] = 'installation'; + goto after_installation; } - $properties['number'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; - after_number: + after_installation: - $value = $payload['reactions'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'reactions'; - goto after_reactions; + $missingFields[] = 'organization'; + goto after_organization; } if (is_array($value)) { try { - $this->hydrationStack[] = 'reactions'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️Reactions($value); + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); } finally { array_pop($this->hydrationStack); } } - $properties['reactions'] = $value; + $properties['organization'] = $value; - after_reactions: + after_organization: - $value = $payload['repository_url'] ?? null; + $value = $payload['repository'] ?? null; if ($value === null) { - $missingFields[] = 'repository_url'; - goto after_repository_url; + $missingFields[] = 'repository'; + goto after_repository; } - $properties['repository_url'] = $value; - - after_repository_url: - - $value = $payload['state'] ?? null; - - if ($value === null) { - $missingFields[] = 'state'; - goto after_state; - } - - $properties['state'] = $value; - - after_state: - - $value = $payload['timeline_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'timeline_url'; - goto after_timeline_url; - } - - $properties['timeline_url'] = $value; - - after_timeline_url: - - $value = $payload['title'] ?? null; - - if ($value === null) { - $missingFields[] = 'title'; - goto after_title; - } - - $properties['title'] = $value; - - after_title: - - $value = $payload['updated_at'] ?? null; - - if ($value === null) { - $missingFields[] = 'updated_at'; - goto after_updated_at; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['updated_at'] = $value; + $properties['repository'] = $value; - after_updated_at: + after_repository: - $value = $payload['user'] ?? null; + $value = $payload['sender'] ?? null; if ($value === null) { - $missingFields[] = 'user'; - goto after_user; + $missingFields[] = 'sender'; + goto after_sender; } if (is_array($value)) { try { - $this->hydrationStack[] = 'user'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } } - $properties['user'] = $value; + $properties['sender'] = $value; - after_user: + after_sender: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Discussion', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDiscussionCreated', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Discussion::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookDiscussionCreated::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\Discussion(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookDiscussionCreated(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Discussion', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDiscussionCreated', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise(array $payload): \ApiClients\Client\Github\Schema\Enterprise + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionDeleted(array $payload): \ApiClients\Client\Github\Schema\WebhookDiscussionDeleted { $properties = []; $missingFields = []; try { - $value = $payload['description'] ?? null; + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'description'; - goto after_description; + $missingFields[] = 'action'; + goto after_action; } - $properties['description'] = $value; + $properties['action'] = $value; - after_description: + after_action: - $value = $payload['html_url'] ?? null; + $value = $payload['discussion'] ?? null; if ($value === null) { - $missingFields[] = 'html_url'; - goto after_html_url; + $missingFields[] = 'discussion'; + goto after_discussion; } - $properties['html_url'] = $value; - - after_html_url: - - $value = $payload['website_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'website_url'; - goto after_website_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'discussion'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['website_url'] = $value; + $properties['discussion'] = $value; - after_website_url: + after_discussion: - $value = $payload['id'] ?? null; + $value = $payload['enterprise'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'enterprise'; + goto after_enterprise; } - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['node_id'] = $value; + $properties['enterprise'] = $value; - after_node_id: + after_enterprise: - $value = $payload['name'] ?? null; + $value = $payload['installation'] ?? null; if ($value === null) { - $missingFields[] = 'name'; - goto after_name; + $missingFields[] = 'installation'; + goto after_installation; } - $properties['name'] = $value; - - after_name: - - $value = $payload['slug'] ?? null; - - if ($value === null) { - $missingFields[] = 'slug'; - goto after_slug; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['slug'] = $value; + $properties['installation'] = $value; - after_slug: + after_installation: - $value = $payload['created_at'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'created_at'; - goto after_created_at; + $missingFields[] = 'organization'; + goto after_organization; } - $properties['created_at'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; - after_created_at: + after_organization: - $value = $payload['updated_at'] ?? null; + $value = $payload['repository'] ?? null; if ($value === null) { - $missingFields[] = 'updated_at'; - goto after_updated_at; + $missingFields[] = 'repository'; + goto after_repository; } - $properties['updated_at'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repository'] = $value; - after_updated_at: + after_repository: - $value = $payload['avatar_url'] ?? null; + $value = $payload['sender'] ?? null; if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatar_url; + $missingFields[] = 'sender'; + goto after_sender; } - $properties['avatar_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; - after_avatar_url: + after_sender: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Enterprise', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDiscussionDeleted', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Enterprise::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookDiscussionDeleted::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\Enterprise(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookDiscussionDeleted(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Enterprise', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDiscussionDeleted', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation(array $payload): \ApiClients\Client\Github\Schema\SimpleInstallation + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionEdited(array $payload): \ApiClients\Client\Github\Schema\WebhookDiscussionEdited { $properties = []; $missingFields = []; try { - $value = $payload['id'] ?? null; + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'action'; + goto after_action; } - $properties['id'] = $value; + $properties['action'] = $value; - after_id: + after_action: - $value = $payload['node_id'] ?? null; + $value = $payload['changes'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $missingFields[] = 'changes'; + goto after_changes; } - $properties['node_id'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'changes'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionEdited⚡️Changes($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['changes'] = $value; - after_node_id: + after_changes: - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleInstallation', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\SimpleInstallation::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\SimpleInstallation(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleInstallation', $exception, stack: $this->hydrationStack); - } - } - - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple(array $payload): \ApiClients\Client\Github\Schema\OrganizationSimple - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['login'] ?? null; + $value = $payload['discussion'] ?? null; if ($value === null) { - $missingFields[] = 'login'; - goto after_login; + $missingFields[] = 'discussion'; + goto after_discussion; } - $properties['login'] = $value; - - after_login: - - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'discussion'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['id'] = $value; + $properties['discussion'] = $value; - after_id: + after_discussion: - $value = $payload['node_id'] ?? null; + $value = $payload['enterprise'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $missingFields[] = 'enterprise'; + goto after_enterprise; } - $properties['node_id'] = $value; - - after_node_id: - - $value = $payload['url'] ?? null; - - if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['url'] = $value; + $properties['enterprise'] = $value; - after_url: + after_enterprise: - $value = $payload['repos_url'] ?? null; + $value = $payload['installation'] ?? null; if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_repos_url; + $missingFields[] = 'installation'; + goto after_installation; } - $properties['repos_url'] = $value; - - after_repos_url: - - $value = $payload['events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'events_url'; - goto after_events_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['events_url'] = $value; + $properties['installation'] = $value; - after_events_url: + after_installation: - $value = $payload['hooks_url'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'hooks_url'; - goto after_hooks_url; + $missingFields[] = 'organization'; + goto after_organization; } - $properties['hooks_url'] = $value; - - after_hooks_url: - - $value = $payload['issues_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'issues_url'; - goto after_issues_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['issues_url'] = $value; + $properties['organization'] = $value; - after_issues_url: + after_organization: - $value = $payload['members_url'] ?? null; + $value = $payload['repository'] ?? null; if ($value === null) { - $missingFields[] = 'members_url'; - goto after_members_url; + $missingFields[] = 'repository'; + goto after_repository; } - $properties['members_url'] = $value; - - after_members_url: - - $value = $payload['public_members_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'public_members_url'; - goto after_public_members_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['public_members_url'] = $value; + $properties['repository'] = $value; - after_public_members_url: + after_repository: - $value = $payload['avatar_url'] ?? null; + $value = $payload['sender'] ?? null; if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatar_url; + $missingFields[] = 'sender'; + goto after_sender; } - $properties['avatar_url'] = $value; - - after_avatar_url: - - $value = $payload['description'] ?? null; - - if ($value === null) { - $missingFields[] = 'description'; - goto after_description; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['description'] = $value; + $properties['sender'] = $value; - after_description: + after_sender: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\OrganizationSimple', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDiscussionEdited', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\OrganizationSimple::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookDiscussionEdited::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\OrganizationSimple(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookDiscussionEdited(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\OrganizationSimple', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDiscussionEdited', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository(array $payload): \ApiClients\Client\Github\Schema\Repository + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionLabeled(array $payload): \ApiClients\Client\Github\Schema\WebhookDiscussionLabeled { $properties = []; $missingFields = []; try { - $value = $payload['id'] ?? null; + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'action'; + goto after_action; } - $properties['id'] = $value; + $properties['action'] = $value; - after_id: + after_action: - $value = $payload['node_id'] ?? null; + $value = $payload['discussion'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $missingFields[] = 'discussion'; + goto after_discussion; } - $properties['node_id'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'discussion'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionLabeled⚡️Discussion($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['discussion'] = $value; - after_node_id: + after_discussion: - $value = $payload['name'] ?? null; + $value = $payload['enterprise'] ?? null; if ($value === null) { - $missingFields[] = 'name'; - goto after_name; + $missingFields[] = 'enterprise'; + goto after_enterprise; } - $properties['name'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['enterprise'] = $value; - after_name: + after_enterprise: - $value = $payload['full_name'] ?? null; + $value = $payload['installation'] ?? null; if ($value === null) { - $missingFields[] = 'full_name'; - goto after_full_name; + $missingFields[] = 'installation'; + goto after_installation; } - $properties['full_name'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; - after_full_name: + after_installation: - $value = $payload['license'] ?? null; + $value = $payload['label'] ?? null; if ($value === null) { - $properties['license'] = null; - goto after_license; + $missingFields[] = 'label'; + goto after_label; } - $properties['license'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'label'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionLabeled⚡️Label($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['label'] = $value; - after_license: + after_label: $value = $payload['organization'] ?? null; if ($value === null) { - $properties['organization'] = null; + $missingFields[] = 'organization'; goto after_organization; } - $properties['organization'] = $value; - - after_organization: - - $value = $payload['forks'] ?? null; - - if ($value === null) { - $missingFields[] = 'forks'; - goto after_forks; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['forks'] = $value; + $properties['organization'] = $value; - after_forks: + after_organization: - $value = $payload['permissions'] ?? null; + $value = $payload['repository'] ?? null; if ($value === null) { - $missingFields[] = 'permissions'; - goto after_permissions; + $missingFields[] = 'repository'; + goto after_repository; } if (is_array($value)) { try { - $this->hydrationStack[] = 'permissions'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️Permissions($value); + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); } finally { array_pop($this->hydrationStack); } } - $properties['permissions'] = $value; + $properties['repository'] = $value; - after_permissions: + after_repository: - $value = $payload['owner'] ?? null; + $value = $payload['sender'] ?? null; if ($value === null) { - $missingFields[] = 'owner'; - goto after_owner; + $missingFields[] = 'sender'; + goto after_sender; } if (is_array($value)) { try { - $this->hydrationStack[] = 'owner'; + $this->hydrationStack[] = 'sender'; $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } } - $properties['owner'] = $value; + $properties['sender'] = $value; - after_owner: + after_sender: - $value = $payload['private'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDiscussionLabeled', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookDiscussionLabeled::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookDiscussionLabeled(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDiscussionLabeled', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionLocked(array $payload): \ApiClients\Client\Github\Schema\WebhookDiscussionLocked + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'private'; - goto after_private; + $missingFields[] = 'action'; + goto after_action; } - $properties['private'] = $value; + $properties['action'] = $value; - after_private: + after_action: - $value = $payload['html_url'] ?? null; + $value = $payload['discussion'] ?? null; if ($value === null) { - $missingFields[] = 'html_url'; - goto after_html_url; + $missingFields[] = 'discussion'; + goto after_discussion; } - $properties['html_url'] = $value; - - after_html_url: - - $value = $payload['description'] ?? null; - - if ($value === null) { - $missingFields[] = 'description'; - goto after_description; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'discussion'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['description'] = $value; + $properties['discussion'] = $value; - after_description: + after_discussion: - $value = $payload['fork'] ?? null; + $value = $payload['enterprise'] ?? null; if ($value === null) { - $missingFields[] = 'fork'; - goto after_fork; + $missingFields[] = 'enterprise'; + goto after_enterprise; } - $properties['fork'] = $value; - - after_fork: - - $value = $payload['url'] ?? null; - - if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['url'] = $value; + $properties['enterprise'] = $value; - after_url: + after_enterprise: - $value = $payload['archive_url'] ?? null; + $value = $payload['installation'] ?? null; if ($value === null) { - $missingFields[] = 'archive_url'; - goto after_archive_url; + $missingFields[] = 'installation'; + goto after_installation; } - $properties['archive_url'] = $value; - - after_archive_url: - - $value = $payload['assignees_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'assignees_url'; - goto after_assignees_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['assignees_url'] = $value; + $properties['installation'] = $value; - after_assignees_url: + after_installation: - $value = $payload['blobs_url'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'blobs_url'; - goto after_blobs_url; + $missingFields[] = 'organization'; + goto after_organization; } - $properties['blobs_url'] = $value; - - after_blobs_url: - - $value = $payload['branches_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'branches_url'; - goto after_branches_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['branches_url'] = $value; + $properties['organization'] = $value; - after_branches_url: + after_organization: - $value = $payload['collaborators_url'] ?? null; + $value = $payload['repository'] ?? null; if ($value === null) { - $missingFields[] = 'collaborators_url'; - goto after_collaborators_url; + $missingFields[] = 'repository'; + goto after_repository; } - $properties['collaborators_url'] = $value; - - after_collaborators_url: - - $value = $payload['comments_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'comments_url'; - goto after_comments_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['comments_url'] = $value; + $properties['repository'] = $value; - after_comments_url: + after_repository: - $value = $payload['commits_url'] ?? null; + $value = $payload['sender'] ?? null; if ($value === null) { - $missingFields[] = 'commits_url'; - goto after_commits_url; + $missingFields[] = 'sender'; + goto after_sender; } - $properties['commits_url'] = $value; - - after_commits_url: - - $value = $payload['compare_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'compare_url'; - goto after_compare_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['compare_url'] = $value; + $properties['sender'] = $value; - after_compare_url: + after_sender: - $value = $payload['contents_url'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDiscussionLocked', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookDiscussionLocked::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookDiscussionLocked(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDiscussionLocked', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionPinned(array $payload): \ApiClients\Client\Github\Schema\WebhookDiscussionPinned + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'contents_url'; - goto after_contents_url; + $missingFields[] = 'action'; + goto after_action; } - $properties['contents_url'] = $value; + $properties['action'] = $value; - after_contents_url: + after_action: - $value = $payload['contributors_url'] ?? null; + $value = $payload['discussion'] ?? null; if ($value === null) { - $missingFields[] = 'contributors_url'; - goto after_contributors_url; + $missingFields[] = 'discussion'; + goto after_discussion; } - $properties['contributors_url'] = $value; - - after_contributors_url: - - $value = $payload['deployments_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'deployments_url'; - goto after_deployments_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'discussion'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['deployments_url'] = $value; + $properties['discussion'] = $value; - after_deployments_url: + after_discussion: - $value = $payload['downloads_url'] ?? null; + $value = $payload['enterprise'] ?? null; if ($value === null) { - $missingFields[] = 'downloads_url'; - goto after_downloads_url; + $missingFields[] = 'enterprise'; + goto after_enterprise; } - $properties['downloads_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['enterprise'] = $value; - after_downloads_url: + after_enterprise: - $value = $payload['events_url'] ?? null; + $value = $payload['installation'] ?? null; if ($value === null) { - $missingFields[] = 'events_url'; - goto after_events_url; + $missingFields[] = 'installation'; + goto after_installation; } - $properties['events_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; - after_events_url: + after_installation: - $value = $payload['forks_url'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'forks_url'; - goto after_forks_url; + $missingFields[] = 'organization'; + goto after_organization; } - $properties['forks_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; - after_forks_url: + after_organization: - $value = $payload['git_commits_url'] ?? null; + $value = $payload['repository'] ?? null; if ($value === null) { - $missingFields[] = 'git_commits_url'; - goto after_git_commits_url; + $missingFields[] = 'repository'; + goto after_repository; } - $properties['git_commits_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repository'] = $value; - after_git_commits_url: + after_repository: - $value = $payload['git_refs_url'] ?? null; + $value = $payload['sender'] ?? null; if ($value === null) { - $missingFields[] = 'git_refs_url'; - goto after_git_refs_url; + $missingFields[] = 'sender'; + goto after_sender; } - $properties['git_refs_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; - after_git_refs_url: + after_sender: - $value = $payload['git_tags_url'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDiscussionPinned', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookDiscussionPinned::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookDiscussionPinned(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDiscussionPinned', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionTransferred(array $payload): \ApiClients\Client\Github\Schema\WebhookDiscussionTransferred + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'git_tags_url'; - goto after_git_tags_url; + $missingFields[] = 'action'; + goto after_action; } - $properties['git_tags_url'] = $value; + $properties['action'] = $value; - after_git_tags_url: + after_action: - $value = $payload['git_url'] ?? null; + $value = $payload['changes'] ?? null; if ($value === null) { - $missingFields[] = 'git_url'; - goto after_git_url; + $missingFields[] = 'changes'; + goto after_changes; } - $properties['git_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'changes'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionTransferred⚡️Changes($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['changes'] = $value; - after_git_url: + after_changes: - $value = $payload['issue_comment_url'] ?? null; + $value = $payload['discussion'] ?? null; if ($value === null) { - $missingFields[] = 'issue_comment_url'; - goto after_issue_comment_url; + $missingFields[] = 'discussion'; + goto after_discussion; } - $properties['issue_comment_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'discussion'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['discussion'] = $value; - after_issue_comment_url: + after_discussion: - $value = $payload['issue_events_url'] ?? null; + $value = $payload['enterprise'] ?? null; if ($value === null) { - $missingFields[] = 'issue_events_url'; - goto after_issue_events_url; + $missingFields[] = 'enterprise'; + goto after_enterprise; } - $properties['issue_events_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['enterprise'] = $value; - after_issue_events_url: + after_enterprise: - $value = $payload['issues_url'] ?? null; + $value = $payload['installation'] ?? null; if ($value === null) { - $missingFields[] = 'issues_url'; - goto after_issues_url; + $missingFields[] = 'installation'; + goto after_installation; } - $properties['issues_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; - after_issues_url: + after_installation: - $value = $payload['keys_url'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'keys_url'; - goto after_keys_url; + $missingFields[] = 'organization'; + goto after_organization; } - $properties['keys_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; - after_keys_url: + after_organization: - $value = $payload['labels_url'] ?? null; + $value = $payload['repository'] ?? null; if ($value === null) { - $missingFields[] = 'labels_url'; - goto after_labels_url; + $missingFields[] = 'repository'; + goto after_repository; } - $properties['labels_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repository'] = $value; - after_labels_url: + after_repository: - $value = $payload['languages_url'] ?? null; + $value = $payload['sender'] ?? null; if ($value === null) { - $missingFields[] = 'languages_url'; - goto after_languages_url; + $missingFields[] = 'sender'; + goto after_sender; } - $properties['languages_url'] = $value; - - after_languages_url: - - $value = $payload['merges_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'merges_url'; - goto after_merges_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['merges_url'] = $value; + $properties['sender'] = $value; - after_merges_url: + after_sender: - $value = $payload['milestones_url'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDiscussionTransferred', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookDiscussionTransferred::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookDiscussionTransferred(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDiscussionTransferred', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionUnanswered(array $payload): \ApiClients\Client\Github\Schema\WebhookDiscussionUnanswered + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'milestones_url'; - goto after_milestones_url; + $missingFields[] = 'action'; + goto after_action; } - $properties['milestones_url'] = $value; + $properties['action'] = $value; - after_milestones_url: + after_action: - $value = $payload['notifications_url'] ?? null; + $value = $payload['discussion'] ?? null; if ($value === null) { - $missingFields[] = 'notifications_url'; - goto after_notifications_url; + $missingFields[] = 'discussion'; + goto after_discussion; } - $properties['notifications_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'discussion'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['discussion'] = $value; - after_notifications_url: + after_discussion: - $value = $payload['pulls_url'] ?? null; + $value = $payload['old_answer'] ?? null; if ($value === null) { - $missingFields[] = 'pulls_url'; - goto after_pulls_url; + $missingFields[] = 'old_answer'; + goto after_old_answer; } - $properties['pulls_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'old_answer'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionAnswered⚡️Answer($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['old_answer'] = $value; - after_pulls_url: + after_old_answer: - $value = $payload['releases_url'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'releases_url'; - goto after_releases_url; + $missingFields[] = 'organization'; + goto after_organization; } - $properties['releases_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; - after_releases_url: + after_organization: - $value = $payload['ssh_url'] ?? null; + $value = $payload['repository'] ?? null; if ($value === null) { - $missingFields[] = 'ssh_url'; - goto after_ssh_url; + $missingFields[] = 'repository'; + goto after_repository; } - $properties['ssh_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repository'] = $value; - after_ssh_url: + after_repository: - $value = $payload['stargazers_url'] ?? null; + $value = $payload['sender'] ?? null; if ($value === null) { - $missingFields[] = 'stargazers_url'; - goto after_stargazers_url; + $missingFields[] = 'sender'; + goto after_sender; } - $properties['stargazers_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; - after_stargazers_url: + after_sender: - $value = $payload['statuses_url'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDiscussionUnanswered', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookDiscussionUnanswered::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookDiscussionUnanswered(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDiscussionUnanswered', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionUnlabeled(array $payload): \ApiClients\Client\Github\Schema\WebhookDiscussionUnlabeled + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'statuses_url'; - goto after_statuses_url; + $missingFields[] = 'action'; + goto after_action; } - $properties['statuses_url'] = $value; + $properties['action'] = $value; - after_statuses_url: + after_action: - $value = $payload['subscribers_url'] ?? null; + $value = $payload['discussion'] ?? null; if ($value === null) { - $missingFields[] = 'subscribers_url'; - goto after_subscribers_url; + $missingFields[] = 'discussion'; + goto after_discussion; } - $properties['subscribers_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'discussion'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['discussion'] = $value; - after_subscribers_url: + after_discussion: - $value = $payload['subscription_url'] ?? null; + $value = $payload['enterprise'] ?? null; if ($value === null) { - $missingFields[] = 'subscription_url'; - goto after_subscription_url; + $missingFields[] = 'enterprise'; + goto after_enterprise; } - $properties['subscription_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['enterprise'] = $value; - after_subscription_url: + after_enterprise: - $value = $payload['tags_url'] ?? null; + $value = $payload['installation'] ?? null; if ($value === null) { - $missingFields[] = 'tags_url'; - goto after_tags_url; + $missingFields[] = 'installation'; + goto after_installation; } - $properties['tags_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; - after_tags_url: + after_installation: - $value = $payload['teams_url'] ?? null; + $value = $payload['label'] ?? null; if ($value === null) { - $missingFields[] = 'teams_url'; - goto after_teams_url; + $missingFields[] = 'label'; + goto after_label; } - $properties['teams_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'label'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionLabeled⚡️Label($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['label'] = $value; - after_teams_url: + after_label: - $value = $payload['trees_url'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'trees_url'; - goto after_trees_url; + $missingFields[] = 'organization'; + goto after_organization; } - $properties['trees_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; - after_trees_url: + after_organization: - $value = $payload['clone_url'] ?? null; + $value = $payload['repository'] ?? null; if ($value === null) { - $missingFields[] = 'clone_url'; - goto after_clone_url; + $missingFields[] = 'repository'; + goto after_repository; } - $properties['clone_url'] = $value; - - after_clone_url: - - $value = $payload['mirror_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'mirror_url'; - goto after_mirror_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['mirror_url'] = $value; + $properties['repository'] = $value; - after_mirror_url: + after_repository: - $value = $payload['hooks_url'] ?? null; + $value = $payload['sender'] ?? null; if ($value === null) { - $missingFields[] = 'hooks_url'; - goto after_hooks_url; + $missingFields[] = 'sender'; + goto after_sender; } - $properties['hooks_url'] = $value; - - after_hooks_url: - - $value = $payload['svn_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'svn_url'; - goto after_svn_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['svn_url'] = $value; + $properties['sender'] = $value; - after_svn_url: + after_sender: - $value = $payload['homepage'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDiscussionUnlabeled', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookDiscussionUnlabeled::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookDiscussionUnlabeled(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDiscussionUnlabeled', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionUnlocked(array $payload): \ApiClients\Client\Github\Schema\WebhookDiscussionUnlocked + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'homepage'; - goto after_homepage; + $missingFields[] = 'action'; + goto after_action; } - $properties['homepage'] = $value; + $properties['action'] = $value; - after_homepage: + after_action: - $value = $payload['language'] ?? null; + $value = $payload['discussion'] ?? null; if ($value === null) { - $missingFields[] = 'language'; - goto after_language; + $missingFields[] = 'discussion'; + goto after_discussion; } - $properties['language'] = $value; - - after_language: - - $value = $payload['forks_count'] ?? null; - - if ($value === null) { - $missingFields[] = 'forks_count'; - goto after_forks_count; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'discussion'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['forks_count'] = $value; + $properties['discussion'] = $value; - after_forks_count: + after_discussion: - $value = $payload['stargazers_count'] ?? null; + $value = $payload['enterprise'] ?? null; if ($value === null) { - $missingFields[] = 'stargazers_count'; - goto after_stargazers_count; + $missingFields[] = 'enterprise'; + goto after_enterprise; } - $properties['stargazers_count'] = $value; - - after_stargazers_count: - - $value = $payload['watchers_count'] ?? null; - - if ($value === null) { - $missingFields[] = 'watchers_count'; - goto after_watchers_count; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['watchers_count'] = $value; + $properties['enterprise'] = $value; - after_watchers_count: + after_enterprise: - $value = $payload['size'] ?? null; + $value = $payload['installation'] ?? null; if ($value === null) { - $missingFields[] = 'size'; - goto after_size; + $missingFields[] = 'installation'; + goto after_installation; } - $properties['size'] = $value; - - after_size: - - $value = $payload['default_branch'] ?? null; - - if ($value === null) { - $missingFields[] = 'default_branch'; - goto after_default_branch; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['default_branch'] = $value; + $properties['installation'] = $value; - after_default_branch: + after_installation: - $value = $payload['open_issues_count'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'open_issues_count'; - goto after_open_issues_count; + $missingFields[] = 'organization'; + goto after_organization; } - $properties['open_issues_count'] = $value; - - after_open_issues_count: - - $value = $payload['is_template'] ?? null; - - if ($value === null) { - $missingFields[] = 'is_template'; - goto after_is_template; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['is_template'] = $value; + $properties['organization'] = $value; - after_is_template: + after_organization: - $value = $payload['topics'] ?? null; + $value = $payload['repository'] ?? null; if ($value === null) { - $missingFields[] = 'topics'; - goto after_topics; + $missingFields[] = 'repository'; + goto after_repository; } - $properties['topics'] = $value; - - after_topics: - - $value = $payload['has_issues'] ?? null; - - if ($value === null) { - $missingFields[] = 'has_issues'; - goto after_has_issues; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['has_issues'] = $value; + $properties['repository'] = $value; - after_has_issues: + after_repository: - $value = $payload['has_projects'] ?? null; + $value = $payload['sender'] ?? null; if ($value === null) { - $missingFields[] = 'has_projects'; - goto after_has_projects; + $missingFields[] = 'sender'; + goto after_sender; } - $properties['has_projects'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; - after_has_projects: + after_sender: - $value = $payload['has_wiki'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDiscussionUnlocked', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookDiscussionUnlocked::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookDiscussionUnlocked(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDiscussionUnlocked', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionUnpinned(array $payload): \ApiClients\Client\Github\Schema\WebhookDiscussionUnpinned + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'has_wiki'; - goto after_has_wiki; + $missingFields[] = 'action'; + goto after_action; } - $properties['has_wiki'] = $value; + $properties['action'] = $value; - after_has_wiki: + after_action: - $value = $payload['has_pages'] ?? null; + $value = $payload['discussion'] ?? null; if ($value === null) { - $missingFields[] = 'has_pages'; - goto after_has_pages; + $missingFields[] = 'discussion'; + goto after_discussion; } - $properties['has_pages'] = $value; - - after_has_pages: - - $value = $payload['has_downloads'] ?? null; - - if ($value === null) { - $missingFields[] = 'has_downloads'; - goto after_has_downloads; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'discussion'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['has_downloads'] = $value; + $properties['discussion'] = $value; - after_has_downloads: + after_discussion: - $value = $payload['has_discussions'] ?? null; + $value = $payload['enterprise'] ?? null; if ($value === null) { - $missingFields[] = 'has_discussions'; - goto after_has_discussions; + $missingFields[] = 'enterprise'; + goto after_enterprise; } - $properties['has_discussions'] = $value; - - after_has_discussions: - - $value = $payload['archived'] ?? null; - - if ($value === null) { - $missingFields[] = 'archived'; - goto after_archived; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['archived'] = $value; + $properties['enterprise'] = $value; - after_archived: + after_enterprise: - $value = $payload['disabled'] ?? null; + $value = $payload['installation'] ?? null; if ($value === null) { - $missingFields[] = 'disabled'; - goto after_disabled; + $missingFields[] = 'installation'; + goto after_installation; } - $properties['disabled'] = $value; - - after_disabled: - - $value = $payload['visibility'] ?? null; - - if ($value === null) { - $missingFields[] = 'visibility'; - goto after_visibility; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['visibility'] = $value; + $properties['installation'] = $value; - after_visibility: + after_installation: - $value = $payload['pushed_at'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'pushed_at'; - goto after_pushed_at; + $missingFields[] = 'organization'; + goto after_organization; } - $properties['pushed_at'] = $value; - - after_pushed_at: - - $value = $payload['created_at'] ?? null; - - if ($value === null) { - $missingFields[] = 'created_at'; - goto after_created_at; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['created_at'] = $value; + $properties['organization'] = $value; - after_created_at: + after_organization: - $value = $payload['updated_at'] ?? null; + $value = $payload['repository'] ?? null; if ($value === null) { - $missingFields[] = 'updated_at'; - goto after_updated_at; + $missingFields[] = 'repository'; + goto after_repository; } - $properties['updated_at'] = $value; - - after_updated_at: - - $value = $payload['allow_rebase_merge'] ?? null; - - if ($value === null) { - $missingFields[] = 'allow_rebase_merge'; - goto after_allow_rebase_merge; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['allow_rebase_merge'] = $value; + $properties['repository'] = $value; - after_allow_rebase_merge: + after_repository: - $value = $payload['template_repository'] ?? null; + $value = $payload['sender'] ?? null; if ($value === null) { - $missingFields[] = 'template_repository'; - goto after_template_repository; + $missingFields[] = 'sender'; + goto after_sender; } if (is_array($value)) { try { - $this->hydrationStack[] = 'template_repository'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository($value); + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } } - $properties['template_repository'] = $value; + $properties['sender'] = $value; - after_template_repository: + after_sender: - $value = $payload['temp_clone_token'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDiscussionUnpinned', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookDiscussionUnpinned::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookDiscussionUnpinned(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDiscussionUnpinned', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionAnswered⚡️Answer(array $payload): \ApiClients\Client\Github\Schema\WebhookDiscussionAnswered\Answer + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['author_association'] ?? null; if ($value === null) { - $missingFields[] = 'temp_clone_token'; - goto after_temp_clone_token; + $missingFields[] = 'author_association'; + goto after_author_association; } - $properties['temp_clone_token'] = $value; + $properties['author_association'] = $value; - after_temp_clone_token: + after_author_association: - $value = $payload['allow_squash_merge'] ?? null; + $value = $payload['body'] ?? null; if ($value === null) { - $missingFields[] = 'allow_squash_merge'; - goto after_allow_squash_merge; + $missingFields[] = 'body'; + goto after_body; } - $properties['allow_squash_merge'] = $value; + $properties['body'] = $value; - after_allow_squash_merge: + after_body: - $value = $payload['allow_auto_merge'] ?? null; + $value = $payload['child_comment_count'] ?? null; if ($value === null) { - $missingFields[] = 'allow_auto_merge'; - goto after_allow_auto_merge; + $missingFields[] = 'child_comment_count'; + goto after_child_comment_count; } - $properties['allow_auto_merge'] = $value; + $properties['child_comment_count'] = $value; - after_allow_auto_merge: + after_child_comment_count: - $value = $payload['delete_branch_on_merge'] ?? null; + $value = $payload['created_at'] ?? null; if ($value === null) { - $missingFields[] = 'delete_branch_on_merge'; - goto after_delete_branch_on_merge; + $missingFields[] = 'created_at'; + goto after_created_at; } - $properties['delete_branch_on_merge'] = $value; + $properties['created_at'] = $value; - after_delete_branch_on_merge: + after_created_at: - $value = $payload['allow_update_branch'] ?? null; + $value = $payload['discussion_id'] ?? null; if ($value === null) { - $missingFields[] = 'allow_update_branch'; - goto after_allow_update_branch; + $missingFields[] = 'discussion_id'; + goto after_discussion_id; } - $properties['allow_update_branch'] = $value; + $properties['discussion_id'] = $value; - after_allow_update_branch: + after_discussion_id: - $value = $payload['use_squash_pr_title_as_default'] ?? null; + $value = $payload['html_url'] ?? null; if ($value === null) { - $missingFields[] = 'use_squash_pr_title_as_default'; - goto after_use_squash_pr_title_as_default; + $missingFields[] = 'html_url'; + goto after_html_url; } - $properties['use_squash_pr_title_as_default'] = $value; + $properties['html_url'] = $value; - after_use_squash_pr_title_as_default: + after_html_url: - $value = $payload['squash_merge_commit_title'] ?? null; + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'squash_merge_commit_title'; - goto after_squash_merge_commit_title; + $missingFields[] = 'id'; + goto after_id; } - $properties['squash_merge_commit_title'] = $value; + $properties['id'] = $value; - after_squash_merge_commit_title: + after_id: - $value = $payload['squash_merge_commit_message'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $missingFields[] = 'squash_merge_commit_message'; - goto after_squash_merge_commit_message; + $missingFields[] = 'node_id'; + goto after_node_id; } - $properties['squash_merge_commit_message'] = $value; + $properties['node_id'] = $value; - after_squash_merge_commit_message: + after_node_id: - $value = $payload['merge_commit_title'] ?? null; + $value = $payload['parent_id'] ?? null; if ($value === null) { - $missingFields[] = 'merge_commit_title'; - goto after_merge_commit_title; + $properties['parent_id'] = null; + goto after_parent_id; } - $properties['merge_commit_title'] = $value; + $properties['parent_id'] = $value; - after_merge_commit_title: + after_parent_id: - $value = $payload['merge_commit_message'] ?? null; + $value = $payload['reactions'] ?? null; if ($value === null) { - $missingFields[] = 'merge_commit_message'; - goto after_merge_commit_message; + $missingFields[] = 'reactions'; + goto after_reactions; } - $properties['merge_commit_message'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'reactions'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️Reactions($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['reactions'] = $value; - after_merge_commit_message: + after_reactions: - $value = $payload['allow_merge_commit'] ?? null; + $value = $payload['repository_url'] ?? null; if ($value === null) { - $missingFields[] = 'allow_merge_commit'; - goto after_allow_merge_commit; + $missingFields[] = 'repository_url'; + goto after_repository_url; } - $properties['allow_merge_commit'] = $value; + $properties['repository_url'] = $value; - after_allow_merge_commit: + after_repository_url: - $value = $payload['allow_forking'] ?? null; + $value = $payload['updated_at'] ?? null; if ($value === null) { - $missingFields[] = 'allow_forking'; - goto after_allow_forking; + $missingFields[] = 'updated_at'; + goto after_updated_at; } - $properties['allow_forking'] = $value; + $properties['updated_at'] = $value; - after_allow_forking: + after_updated_at: - $value = $payload['web_commit_signoff_required'] ?? null; + $value = $payload['user'] ?? null; if ($value === null) { - $missingFields[] = 'web_commit_signoff_required'; - goto after_web_commit_signoff_required; + $missingFields[] = 'user'; + goto after_user; } - $properties['web_commit_signoff_required'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'user'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['user'] = $value; - after_web_commit_signoff_required: + after_user: - $value = $payload['subscribers_count'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDiscussionAnswered\Answer', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookDiscussionAnswered\Answer::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookDiscussionAnswered\Answer(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDiscussionAnswered\Answer', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion(array $payload): \ApiClients\Client\Github\Schema\Discussion + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['active_lock_reason'] ?? null; if ($value === null) { - $missingFields[] = 'subscribers_count'; - goto after_subscribers_count; + $missingFields[] = 'active_lock_reason'; + goto after_active_lock_reason; } - $properties['subscribers_count'] = $value; + $properties['active_lock_reason'] = $value; - after_subscribers_count: + after_active_lock_reason: - $value = $payload['network_count'] ?? null; + $value = $payload['answer_chosen_at'] ?? null; if ($value === null) { - $missingFields[] = 'network_count'; - goto after_network_count; + $missingFields[] = 'answer_chosen_at'; + goto after_answer_chosen_at; } - $properties['network_count'] = $value; + $properties['answer_chosen_at'] = $value; - after_network_count: + after_answer_chosen_at: - $value = $payload['open_issues'] ?? null; + $value = $payload['answer_chosen_by'] ?? null; if ($value === null) { - $missingFields[] = 'open_issues'; - goto after_open_issues; + $missingFields[] = 'answer_chosen_by'; + goto after_answer_chosen_by; } - $properties['open_issues'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'answer_chosen_by'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['answer_chosen_by'] = $value; - after_open_issues: + after_answer_chosen_by: - $value = $payload['watchers'] ?? null; + $value = $payload['answer_html_url'] ?? null; if ($value === null) { - $missingFields[] = 'watchers'; - goto after_watchers; + $missingFields[] = 'answer_html_url'; + goto after_answer_html_url; } - $properties['watchers'] = $value; + $properties['answer_html_url'] = $value; - after_watchers: + after_answer_html_url: - $value = $payload['master_branch'] ?? null; + $value = $payload['author_association'] ?? null; if ($value === null) { - $missingFields[] = 'master_branch'; - goto after_master_branch; + $missingFields[] = 'author_association'; + goto after_author_association; } - $properties['master_branch'] = $value; + $properties['author_association'] = $value; - after_master_branch: + after_author_association: - $value = $payload['starred_at'] ?? null; + $value = $payload['body'] ?? null; if ($value === null) { - $missingFields[] = 'starred_at'; - goto after_starred_at; + $missingFields[] = 'body'; + goto after_body; } - $properties['starred_at'] = $value; + $properties['body'] = $value; - after_starred_at: + after_body: - $value = $payload['anonymous_access_enabled'] ?? null; + $value = $payload['category'] ?? null; if ($value === null) { - $missingFields[] = 'anonymous_access_enabled'; - goto after_anonymous_access_enabled; + $missingFields[] = 'category'; + goto after_category; } - $properties['anonymous_access_enabled'] = $value; - - after_anonymous_access_enabled: + if (is_array($value)) { + try { + $this->hydrationStack[] = 'category'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️Category($value); + } finally { + array_pop($this->hydrationStack); + } + } - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\Repository(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository', $exception, stack: $this->hydrationStack); - } - } + $properties['category'] = $value; + + after_category: - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser(array $payload): \ApiClients\Client\Github\Schema\SimpleUser - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['name'] ?? null; + $value = $payload['comments'] ?? null; if ($value === null) { - $missingFields[] = 'name'; - goto after_name; + $missingFields[] = 'comments'; + goto after_comments; } - $properties['name'] = $value; + $properties['comments'] = $value; - after_name: + after_comments: - $value = $payload['email'] ?? null; + $value = $payload['created_at'] ?? null; if ($value === null) { - $missingFields[] = 'email'; - goto after_email; + $missingFields[] = 'created_at'; + goto after_created_at; } - $properties['email'] = $value; + $properties['created_at'] = $value; - after_email: + after_created_at: - $value = $payload['login'] ?? null; + $value = $payload['html_url'] ?? null; if ($value === null) { - $missingFields[] = 'login'; - goto after_login; + $missingFields[] = 'html_url'; + goto after_html_url; } - $properties['login'] = $value; + $properties['html_url'] = $value; - after_login: + after_html_url: $value = $payload['id'] ?? null; @@ -2002,6 +2474,17 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Simp after_id: + $value = $payload['locked'] ?? null; + + if ($value === null) { + $missingFields[] = 'locked'; + goto after_locked; + } + + $properties['locked'] = $value; + + after_locked: + $value = $payload['node_id'] ?? null; if ($value === null) { @@ -2013,490 +2496,464 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Simp after_node_id: - $value = $payload['avatar_url'] ?? null; + $value = $payload['number'] ?? null; if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatar_url; + $missingFields[] = 'number'; + goto after_number; } - $properties['avatar_url'] = $value; + $properties['number'] = $value; - after_avatar_url: + after_number: - $value = $payload['gravatar_id'] ?? null; + $value = $payload['reactions'] ?? null; if ($value === null) { - $missingFields[] = 'gravatar_id'; - goto after_gravatar_id; + $missingFields[] = 'reactions'; + goto after_reactions; } - $properties['gravatar_id'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'reactions'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️Reactions($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['reactions'] = $value; - after_gravatar_id: + after_reactions: - $value = $payload['url'] ?? null; + $value = $payload['repository_url'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $missingFields[] = 'repository_url'; + goto after_repository_url; } - $properties['url'] = $value; + $properties['repository_url'] = $value; - after_url: + after_repository_url: - $value = $payload['html_url'] ?? null; + $value = $payload['state'] ?? null; if ($value === null) { - $missingFields[] = 'html_url'; - goto after_html_url; + $missingFields[] = 'state'; + goto after_state; } - $properties['html_url'] = $value; + $properties['state'] = $value; - after_html_url: + after_state: - $value = $payload['followers_url'] ?? null; + $value = $payload['timeline_url'] ?? null; if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followers_url; + $missingFields[] = 'timeline_url'; + goto after_timeline_url; } - $properties['followers_url'] = $value; + $properties['timeline_url'] = $value; - after_followers_url: + after_timeline_url: - $value = $payload['following_url'] ?? null; + $value = $payload['title'] ?? null; if ($value === null) { - $missingFields[] = 'following_url'; - goto after_following_url; + $missingFields[] = 'title'; + goto after_title; } - $properties['following_url'] = $value; + $properties['title'] = $value; - after_following_url: + after_title: - $value = $payload['gists_url'] ?? null; + $value = $payload['updated_at'] ?? null; if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gists_url; + $missingFields[] = 'updated_at'; + goto after_updated_at; } - $properties['gists_url'] = $value; + $properties['updated_at'] = $value; - after_gists_url: + after_updated_at: - $value = $payload['starred_url'] ?? null; + $value = $payload['user'] ?? null; if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starred_url; + $missingFields[] = 'user'; + goto after_user; } - $properties['starred_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'user'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['user'] = $value; - after_starred_url: + after_user: - $value = $payload['subscriptions_url'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Discussion', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Discussion::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\Discussion(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Discussion', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise(array $payload): \ApiClients\Client\Github\Schema\Enterprise + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['description'] ?? null; if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptions_url; + $missingFields[] = 'description'; + goto after_description; } - $properties['subscriptions_url'] = $value; + $properties['description'] = $value; - after_subscriptions_url: + after_description: - $value = $payload['organizations_url'] ?? null; + $value = $payload['html_url'] ?? null; if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizations_url; + $missingFields[] = 'html_url'; + goto after_html_url; } - $properties['organizations_url'] = $value; + $properties['html_url'] = $value; - after_organizations_url: + after_html_url: - $value = $payload['repos_url'] ?? null; + $value = $payload['website_url'] ?? null; if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_repos_url; + $missingFields[] = 'website_url'; + goto after_website_url; } - $properties['repos_url'] = $value; + $properties['website_url'] = $value; - after_repos_url: + after_website_url: - $value = $payload['events_url'] ?? null; + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'events_url'; - goto after_events_url; + $missingFields[] = 'id'; + goto after_id; } - $properties['events_url'] = $value; + $properties['id'] = $value; - after_events_url: + after_id: - $value = $payload['received_events_url'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_received_events_url; + $missingFields[] = 'node_id'; + goto after_node_id; } - $properties['received_events_url'] = $value; + $properties['node_id'] = $value; - after_received_events_url: + after_node_id: - $value = $payload['type'] ?? null; + $value = $payload['name'] ?? null; if ($value === null) { - $missingFields[] = 'type'; - goto after_type; + $missingFields[] = 'name'; + goto after_name; } - $properties['type'] = $value; + $properties['name'] = $value; - after_type: + after_name: - $value = $payload['site_admin'] ?? null; + $value = $payload['slug'] ?? null; if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_site_admin; + $missingFields[] = 'slug'; + goto after_slug; } - $properties['site_admin'] = $value; + $properties['slug'] = $value; - after_site_admin: + after_slug: - $value = $payload['starred_at'] ?? null; + $value = $payload['created_at'] ?? null; if ($value === null) { - $missingFields[] = 'starred_at'; - goto after_starred_at; + $missingFields[] = 'created_at'; + goto after_created_at; } - $properties['starred_at'] = $value; + $properties['created_at'] = $value; - after_starred_at: + after_created_at: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'updated_at'; + goto after_updated_at; + } + + $properties['updated_at'] = $value; + + after_updated_at: + + $value = $payload['avatar_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'avatar_url'; + goto after_avatar_url; + } + + $properties['avatar_url'] = $value; + + after_avatar_url: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleUser', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Enterprise', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\SimpleUser::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Enterprise::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\SimpleUser(...$properties); + return new \ApiClients\Client\Github\Schema\Enterprise(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleUser', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Enterprise', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy(array $payload): \ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation(array $payload): \ApiClients\Client\Github\Schema\SimpleInstallation { $properties = []; $missingFields = []; try { - $value = $payload['avatar_url'] ?? null; + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatar_url; + $missingFields[] = 'id'; + goto after_id; } - $properties['avatar_url'] = $value; + $properties['id'] = $value; - after_avatar_url: + after_id: - $value = $payload['deleted'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $missingFields[] = 'deleted'; - goto after_deleted; + $missingFields[] = 'node_id'; + goto after_node_id; } - $properties['deleted'] = $value; + $properties['node_id'] = $value; - after_deleted: + after_node_id: - $value = $payload['email'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleInstallation', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\SimpleInstallation::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\SimpleInstallation(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleInstallation', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple(array $payload): \ApiClients\Client\Github\Schema\OrganizationSimple + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['login'] ?? null; if ($value === null) { - $missingFields[] = 'email'; - goto after_email; + $missingFields[] = 'login'; + goto after_login; } - $properties['email'] = $value; + $properties['login'] = $value; - after_email: + after_login: - $value = $payload['events_url'] ?? null; + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'events_url'; - goto after_events_url; + $missingFields[] = 'id'; + goto after_id; } - $properties['events_url'] = $value; + $properties['id'] = $value; - after_events_url: + after_id: - $value = $payload['followers_url'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followers_url; + $missingFields[] = 'node_id'; + goto after_node_id; } - $properties['followers_url'] = $value; + $properties['node_id'] = $value; - after_followers_url: + after_node_id: - $value = $payload['following_url'] ?? null; + $value = $payload['url'] ?? null; if ($value === null) { - $missingFields[] = 'following_url'; - goto after_following_url; - } - - $properties['following_url'] = $value; - - after_following_url: - - $value = $payload['gists_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gists_url; - } - - $properties['gists_url'] = $value; - - after_gists_url: - - $value = $payload['gravatar_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'gravatar_id'; - goto after_gravatar_id; - } - - $properties['gravatar_id'] = $value; - - after_gravatar_id: - - $value = $payload['html_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'html_url'; - goto after_html_url; - } - - $properties['html_url'] = $value; - - after_html_url: - - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; - } - - $properties['id'] = $value; - - after_id: - - $value = $payload['login'] ?? null; - - if ($value === null) { - $missingFields[] = 'login'; - goto after_login; - } - - $properties['login'] = $value; - - after_login: - - $value = $payload['name'] ?? null; - - if ($value === null) { - $missingFields[] = 'name'; - goto after_name; - } - - $properties['name'] = $value; - - after_name: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $missingFields[] = 'url'; + goto after_url; } - $properties['node_id'] = $value; + $properties['url'] = $value; - after_node_id: + after_url: - $value = $payload['organizations_url'] ?? null; + $value = $payload['repos_url'] ?? null; if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizations_url; + $missingFields[] = 'repos_url'; + goto after_repos_url; } - $properties['organizations_url'] = $value; + $properties['repos_url'] = $value; - after_organizations_url: + after_repos_url: - $value = $payload['received_events_url'] ?? null; + $value = $payload['events_url'] ?? null; if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_received_events_url; + $missingFields[] = 'events_url'; + goto after_events_url; } - $properties['received_events_url'] = $value; + $properties['events_url'] = $value; - after_received_events_url: + after_events_url: - $value = $payload['repos_url'] ?? null; + $value = $payload['hooks_url'] ?? null; if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_repos_url; + $missingFields[] = 'hooks_url'; + goto after_hooks_url; } - $properties['repos_url'] = $value; + $properties['hooks_url'] = $value; - after_repos_url: + after_hooks_url: - $value = $payload['site_admin'] ?? null; + $value = $payload['issues_url'] ?? null; if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_site_admin; + $missingFields[] = 'issues_url'; + goto after_issues_url; } - $properties['site_admin'] = $value; + $properties['issues_url'] = $value; - after_site_admin: + after_issues_url: - $value = $payload['starred_url'] ?? null; + $value = $payload['members_url'] ?? null; if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starred_url; + $missingFields[] = 'members_url'; + goto after_members_url; } - $properties['starred_url'] = $value; + $properties['members_url'] = $value; - after_starred_url: + after_members_url: - $value = $payload['subscriptions_url'] ?? null; + $value = $payload['public_members_url'] ?? null; if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptions_url; + $missingFields[] = 'public_members_url'; + goto after_public_members_url; } - $properties['subscriptions_url'] = $value; + $properties['public_members_url'] = $value; - after_subscriptions_url: + after_public_members_url: - $value = $payload['type'] ?? null; + $value = $payload['avatar_url'] ?? null; if ($value === null) { - $missingFields[] = 'type'; - goto after_type; + $missingFields[] = 'avatar_url'; + goto after_avatar_url; } - $properties['type'] = $value; + $properties['avatar_url'] = $value; - after_type: + after_avatar_url: - $value = $payload['url'] ?? null; + $value = $payload['description'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $missingFields[] = 'description'; + goto after_description; } - $properties['url'] = $value; + $properties['description'] = $value; - after_url: + after_description: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\OrganizationSimple', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\OrganizationSimple::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy(...$properties); + return new \ApiClients\Client\Github\Schema\OrganizationSimple(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\OrganizationSimple', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️Category(array $payload): \ApiClients\Client\Github\Schema\Discussion\Category + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository(array $payload): \ApiClients\Client\Github\Schema\Repository { $properties = []; $missingFields = []; try { - $value = $payload['created_at'] ?? null; - - if ($value === null) { - $missingFields[] = 'created_at'; - goto after_created_at; - } - - $properties['created_at'] = $value; - - after_created_at: - - $value = $payload['description'] ?? null; - - if ($value === null) { - $missingFields[] = 'description'; - goto after_description; - } - - $properties['description'] = $value; - - after_description: - - $value = $payload['emoji'] ?? null; - - if ($value === null) { - $missingFields[] = 'emoji'; - goto after_emoji; - } - - $properties['emoji'] = $value; - - after_emoji: - $value = $payload['id'] ?? null; if ($value === null) { @@ -2508,16 +2965,16 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Disc after_id: - $value = $payload['is_answerable'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $missingFields[] = 'is_answerable'; - goto after_is_answerable; + $missingFields[] = 'node_id'; + goto after_node_id; } - $properties['is_answerable'] = $value; + $properties['node_id'] = $value; - after_is_answerable: + after_node_id: $value = $payload['name'] ?? null; @@ -2530,511 +2987,256 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Disc after_name: - $value = $payload['node_id'] ?? null; + $value = $payload['full_name'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $missingFields[] = 'full_name'; + goto after_full_name; } - $properties['node_id'] = $value; + $properties['full_name'] = $value; - after_node_id: + after_full_name: - $value = $payload['repository_id'] ?? null; + $value = $payload['license'] ?? null; if ($value === null) { - $missingFields[] = 'repository_id'; - goto after_repository_id; + $properties['license'] = null; + goto after_license; } - $properties['repository_id'] = $value; + $properties['license'] = $value; - after_repository_id: + after_license: - $value = $payload['slug'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'slug'; - goto after_slug; + $properties['organization'] = null; + goto after_organization; } - $properties['slug'] = $value; + $properties['organization'] = $value; - after_slug: + after_organization: - $value = $payload['updated_at'] ?? null; + $value = $payload['forks'] ?? null; if ($value === null) { - $missingFields[] = 'updated_at'; - goto after_updated_at; + $missingFields[] = 'forks'; + goto after_forks; } - $properties['updated_at'] = $value; + $properties['forks'] = $value; - after_updated_at: + after_forks: - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Discussion\Category', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Discussion\Category::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\Discussion\Category(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Discussion\Category', $exception, stack: $this->hydrationStack); - } - } - - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️Reactions(array $payload): \ApiClients\Client\Github\Schema\Discussion\Reactions - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['__p_l_u_s_e_s_1'] ?? null; + $value = $payload['permissions'] ?? null; if ($value === null) { - $missingFields[] = '__p_l_u_s_e_s_1'; - goto after__PLUSES_1; + $missingFields[] = 'permissions'; + goto after_permissions; } - $properties['_PLUSES_1'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'permissions'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️Permissions($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['permissions'] = $value; - after__PLUSES_1: + after_permissions: - $value = $payload['__m_i_n_u_s_1'] ?? null; + $value = $payload['owner'] ?? null; if ($value === null) { - $missingFields[] = '__m_i_n_u_s_1'; - goto after__MINUS_1; + $missingFields[] = 'owner'; + goto after_owner; } - $properties['_MINUS_1'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'owner'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['owner'] = $value; - after__MINUS_1: + after_owner: - $value = $payload['confused'] ?? null; + $value = $payload['private'] ?? null; if ($value === null) { - $missingFields[] = 'confused'; - goto after_confused; + $missingFields[] = 'private'; + goto after_private; } - $properties['confused'] = $value; + $properties['private'] = $value; - after_confused: + after_private: - $value = $payload['eyes'] ?? null; + $value = $payload['html_url'] ?? null; if ($value === null) { - $missingFields[] = 'eyes'; - goto after_eyes; + $missingFields[] = 'html_url'; + goto after_html_url; } - $properties['eyes'] = $value; + $properties['html_url'] = $value; - after_eyes: + after_html_url: - $value = $payload['heart'] ?? null; + $value = $payload['description'] ?? null; if ($value === null) { - $missingFields[] = 'heart'; - goto after_heart; + $missingFields[] = 'description'; + goto after_description; } - $properties['heart'] = $value; + $properties['description'] = $value; - after_heart: + after_description: - $value = $payload['hooray'] ?? null; + $value = $payload['fork'] ?? null; if ($value === null) { - $missingFields[] = 'hooray'; - goto after_hooray; + $missingFields[] = 'fork'; + goto after_fork; } - $properties['hooray'] = $value; + $properties['fork'] = $value; - after_hooray: + after_fork: - $value = $payload['laugh'] ?? null; + $value = $payload['url'] ?? null; if ($value === null) { - $missingFields[] = 'laugh'; - goto after_laugh; + $missingFields[] = 'url'; + goto after_url; } - $properties['laugh'] = $value; + $properties['url'] = $value; - after_laugh: + after_url: - $value = $payload['rocket'] ?? null; + $value = $payload['archive_url'] ?? null; if ($value === null) { - $missingFields[] = 'rocket'; - goto after_rocket; + $missingFields[] = 'archive_url'; + goto after_archive_url; } - $properties['rocket'] = $value; + $properties['archive_url'] = $value; - after_rocket: + after_archive_url: - $value = $payload['total_count'] ?? null; + $value = $payload['assignees_url'] ?? null; if ($value === null) { - $missingFields[] = 'total_count'; - goto after_total_count; + $missingFields[] = 'assignees_url'; + goto after_assignees_url; } - $properties['total_count'] = $value; + $properties['assignees_url'] = $value; - after_total_count: + after_assignees_url: - $value = $payload['url'] ?? null; + $value = $payload['blobs_url'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $missingFields[] = 'blobs_url'; + goto after_blobs_url; } - $properties['url'] = $value; + $properties['blobs_url'] = $value; - after_url: - - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Discussion\Reactions', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Discussion\Reactions::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\Discussion\Reactions(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Discussion\Reactions', $exception, stack: $this->hydrationStack); - } - } + after_blobs_url: - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️Permissions(array $payload): \ApiClients\Client\Github\Schema\Repository\Permissions - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['admin'] ?? null; + $value = $payload['branches_url'] ?? null; if ($value === null) { - $missingFields[] = 'admin'; - goto after_admin; + $missingFields[] = 'branches_url'; + goto after_branches_url; } - $properties['admin'] = $value; + $properties['branches_url'] = $value; - after_admin: + after_branches_url: - $value = $payload['pull'] ?? null; + $value = $payload['collaborators_url'] ?? null; if ($value === null) { - $missingFields[] = 'pull'; - goto after_pull; + $missingFields[] = 'collaborators_url'; + goto after_collaborators_url; } - $properties['pull'] = $value; + $properties['collaborators_url'] = $value; - after_pull: + after_collaborators_url: - $value = $payload['triage'] ?? null; + $value = $payload['comments_url'] ?? null; if ($value === null) { - $missingFields[] = 'triage'; - goto after_triage; + $missingFields[] = 'comments_url'; + goto after_comments_url; } - $properties['triage'] = $value; + $properties['comments_url'] = $value; - after_triage: + after_comments_url: - $value = $payload['push'] ?? null; + $value = $payload['commits_url'] ?? null; if ($value === null) { - $missingFields[] = 'push'; - goto after_push; + $missingFields[] = 'commits_url'; + goto after_commits_url; } - $properties['push'] = $value; + $properties['commits_url'] = $value; - after_push: + after_commits_url: - $value = $payload['maintain'] ?? null; + $value = $payload['compare_url'] ?? null; if ($value === null) { - $missingFields[] = 'maintain'; - goto after_maintain; + $missingFields[] = 'compare_url'; + goto after_compare_url; } - $properties['maintain'] = $value; + $properties['compare_url'] = $value; - after_maintain: - - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\Permissions', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\Permissions::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\Repository\Permissions(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\Permissions', $exception, stack: $this->hydrationStack); - } - } + after_compare_url: - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository(array $payload): \ApiClients\Client\Github\Schema\Repository\TemplateRepository - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['id'] ?? null; + $value = $payload['contents_url'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'contents_url'; + goto after_contents_url; } - $properties['id'] = $value; + $properties['contents_url'] = $value; - after_id: + after_contents_url: - $value = $payload['node_id'] ?? null; + $value = $payload['contributors_url'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $missingFields[] = 'contributors_url'; + goto after_contributors_url; } - $properties['node_id'] = $value; + $properties['contributors_url'] = $value; - after_node_id: + after_contributors_url: - $value = $payload['name'] ?? null; - - if ($value === null) { - $missingFields[] = 'name'; - goto after_name; - } - - $properties['name'] = $value; - - after_name: - - $value = $payload['full_name'] ?? null; - - if ($value === null) { - $missingFields[] = 'full_name'; - goto after_full_name; - } - - $properties['full_name'] = $value; - - after_full_name: - - $value = $payload['owner'] ?? null; - - if ($value === null) { - $missingFields[] = 'owner'; - goto after_owner; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'owner'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner($value); - } finally { - array_pop($this->hydrationStack); - } - } - - $properties['owner'] = $value; - - after_owner: - - $value = $payload['private'] ?? null; - - if ($value === null) { - $missingFields[] = 'private'; - goto after_private; - } - - $properties['private'] = $value; - - after_private: - - $value = $payload['html_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'html_url'; - goto after_html_url; - } - - $properties['html_url'] = $value; - - after_html_url: - - $value = $payload['description'] ?? null; - - if ($value === null) { - $missingFields[] = 'description'; - goto after_description; - } - - $properties['description'] = $value; - - after_description: - - $value = $payload['fork'] ?? null; - - if ($value === null) { - $missingFields[] = 'fork'; - goto after_fork; - } - - $properties['fork'] = $value; - - after_fork: - - $value = $payload['url'] ?? null; - - if ($value === null) { - $missingFields[] = 'url'; - goto after_url; - } - - $properties['url'] = $value; - - after_url: - - $value = $payload['archive_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'archive_url'; - goto after_archive_url; - } - - $properties['archive_url'] = $value; - - after_archive_url: - - $value = $payload['assignees_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'assignees_url'; - goto after_assignees_url; - } - - $properties['assignees_url'] = $value; - - after_assignees_url: - - $value = $payload['blobs_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'blobs_url'; - goto after_blobs_url; - } - - $properties['blobs_url'] = $value; - - after_blobs_url: - - $value = $payload['branches_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'branches_url'; - goto after_branches_url; - } - - $properties['branches_url'] = $value; - - after_branches_url: - - $value = $payload['collaborators_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'collaborators_url'; - goto after_collaborators_url; - } - - $properties['collaborators_url'] = $value; - - after_collaborators_url: - - $value = $payload['comments_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'comments_url'; - goto after_comments_url; - } - - $properties['comments_url'] = $value; - - after_comments_url: - - $value = $payload['commits_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'commits_url'; - goto after_commits_url; - } - - $properties['commits_url'] = $value; - - after_commits_url: - - $value = $payload['compare_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'compare_url'; - goto after_compare_url; - } - - $properties['compare_url'] = $value; - - after_compare_url: - - $value = $payload['contents_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'contents_url'; - goto after_contents_url; - } - - $properties['contents_url'] = $value; - - after_contents_url: - - $value = $payload['contributors_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'contributors_url'; - goto after_contributors_url; - } - - $properties['contributors_url'] = $value; - - after_contributors_url: - - $value = $payload['deployments_url'] ?? null; + $value = $payload['deployments_url'] ?? null; if ($value === null) { $missingFields[] = 'deployments_url'; @@ -3540,6 +3742,17 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repo after_has_downloads: + $value = $payload['has_discussions'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_discussions'; + goto after_has_discussions; + } + + $properties['has_discussions'] = $value; + + after_has_discussions: + $value = $payload['archived'] ?? null; if ($value === null) { @@ -3606,36 +3819,36 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repo after_updated_at: - $value = $payload['permissions'] ?? null; + $value = $payload['allow_rebase_merge'] ?? null; if ($value === null) { - $missingFields[] = 'permissions'; - goto after_permissions; + $missingFields[] = 'allow_rebase_merge'; + goto after_allow_rebase_merge; + } + + $properties['allow_rebase_merge'] = $value; + + after_allow_rebase_merge: + + $value = $payload['template_repository'] ?? null; + + if ($value === null) { + $missingFields[] = 'template_repository'; + goto after_template_repository; } if (is_array($value)) { try { - $this->hydrationStack[] = 'permissions'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Permissions($value); + $this->hydrationStack[] = 'template_repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository($value); } finally { array_pop($this->hydrationStack); } } - $properties['permissions'] = $value; - - after_permissions: - - $value = $payload['allow_rebase_merge'] ?? null; - - if ($value === null) { - $missingFields[] = 'allow_rebase_merge'; - goto after_allow_rebase_merge; - } - - $properties['allow_rebase_merge'] = $value; + $properties['template_repository'] = $value; - after_allow_rebase_merge: + after_template_repository: $value = $payload['temp_clone_token'] ?? null; @@ -3758,7 +3971,29 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repo after_allow_merge_commit: - $value = $payload['subscribers_count'] ?? null; + $value = $payload['allow_forking'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_forking'; + goto after_allow_forking; + } + + $properties['allow_forking'] = $value; + + after_allow_forking: + + $value = $payload['web_commit_signoff_required'] ?? null; + + if ($value === null) { + $missingFields[] = 'web_commit_signoff_required'; + goto after_web_commit_signoff_required; + } + + $properties['web_commit_signoff_required'] = $value; + + after_web_commit_signoff_required: + + $value = $payload['subscribers_count'] ?? null; if ($value === null) { $missingFields[] = 'subscribers_count'; @@ -3780,28 +4015,105 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repo after_network_count: + $value = $payload['open_issues'] ?? null; + + if ($value === null) { + $missingFields[] = 'open_issues'; + goto after_open_issues; + } + + $properties['open_issues'] = $value; + + after_open_issues: + + $value = $payload['watchers'] ?? null; + + if ($value === null) { + $missingFields[] = 'watchers'; + goto after_watchers; + } + + $properties['watchers'] = $value; + + after_watchers: + + $value = $payload['master_branch'] ?? null; + + if ($value === null) { + $missingFields[] = 'master_branch'; + goto after_master_branch; + } + + $properties['master_branch'] = $value; + + after_master_branch: + + $value = $payload['starred_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'starred_at'; + goto after_starred_at; + } + + $properties['starred_at'] = $value; + + after_starred_at: + + $value = $payload['anonymous_access_enabled'] ?? null; + + if ($value === null) { + $missingFields[] = 'anonymous_access_enabled'; + goto after_anonymous_access_enabled; + } + + $properties['anonymous_access_enabled'] = $value; + + after_anonymous_access_enabled: + } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\TemplateRepository::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\Repository\TemplateRepository(...$properties); + return new \ApiClients\Client\Github\Schema\Repository(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner(array $payload): \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser(array $payload): \ApiClients\Client\Github\Schema\SimpleUser { $properties = []; $missingFields = []; try { + $value = $payload['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['email'] ?? null; + + if ($value === null) { + $missingFields[] = 'email'; + goto after_email; + } + + $properties['email'] = $value; + + after_email: + $value = $payload['login'] ?? null; if ($value === null) { @@ -4000,180 +4312,4888 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repo after_site_admin: + $value = $payload['starred_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'starred_at'; + goto after_starred_at; + } + + $properties['starred_at'] = $value; + + after_starred_at: + } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleUser', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\SimpleUser::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner(...$properties); + return new \ApiClients\Client\Github\Schema\SimpleUser(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleUser', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Permissions(array $payload): \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionCategoryChanged⚡️Changes(array $payload): \ApiClients\Client\Github\Schema\WebhookDiscussionCategoryChanged\Changes { $properties = []; $missingFields = []; try { - $value = $payload['admin'] ?? null; + $value = $payload['category'] ?? null; if ($value === null) { - $missingFields[] = 'admin'; - goto after_admin; + $missingFields[] = 'category'; + goto after_category; } - $properties['admin'] = $value; - - after_admin: - - $value = $payload['maintain'] ?? null; - - if ($value === null) { - $missingFields[] = 'maintain'; - goto after_maintain; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'category'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionCategoryChanged⚡️Changes⚡️Category($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['maintain'] = $value; + $properties['category'] = $value; - after_maintain: + after_category: - $value = $payload['push'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDiscussionCategoryChanged\Changes', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookDiscussionCategoryChanged\Changes::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookDiscussionCategoryChanged\Changes(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDiscussionCategoryChanged\Changes', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionEdited⚡️Changes(array $payload): \ApiClients\Client\Github\Schema\WebhookDiscussionEdited\Changes + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['body'] ?? null; if ($value === null) { - $missingFields[] = 'push'; - goto after_push; + $missingFields[] = 'body'; + goto after_body; } - $properties['push'] = $value; - - after_push: - - $value = $payload['triage'] ?? null; - - if ($value === null) { - $missingFields[] = 'triage'; - goto after_triage; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'body'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionCommentEdited⚡️Changes⚡️Body($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['triage'] = $value; + $properties['body'] = $value; - after_triage: + after_body: - $value = $payload['pull'] ?? null; + $value = $payload['title'] ?? null; if ($value === null) { - $missingFields[] = 'pull'; - goto after_pull; + $missingFields[] = 'title'; + goto after_title; } - $properties['pull'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'title'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionCommentEdited⚡️Changes⚡️Body($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['title'] = $value; - after_pull: + after_title: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDiscussionEdited\Changes', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookDiscussionEdited\Changes::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookDiscussionEdited\Changes(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDiscussionEdited\Changes', $exception, stack: $this->hydrationStack); } } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionLabeled⚡️Discussion(array $payload): \ApiClients\Client\Github\Schema\WebhookDiscussionLabeled\Discussion + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['active_lock_reason'] ?? null; - public function serializeObject(object $object): mixed - { - try { - $className = get_class($object); + if ($value === null) { + $missingFields[] = 'active_lock_reason'; + goto after_active_lock_reason; + } - return match($className) { - 'array' => $this->serializeValuearray($object), - 'Ramsey\Uuid\UuidInterface' => $this->serializeValueRamsey⚡️Uuid⚡️UuidInterface($object), - 'DateTime' => $this->serializeValueDateTime($object), - 'DateTimeImmutable' => $this->serializeValueDateTimeImmutable($object), - 'DateTimeInterface' => $this->serializeValueDateTimeInterface($object), - 'ApiClients\Client\Github\Schema\WebhookDiscussionUnpinned' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionUnpinned($object), - default => throw new \LogicException('No serialization defined for $className'), - }; - } catch (\Throwable $exception) { - throw UnableToSerializeObject::dueToError($className, $exception); - } - } + $properties['active_lock_reason'] = $value; + after_active_lock_reason: + + $value = $payload['answer_chosen_at'] ?? null; - private function serializeValuearray(mixed $value): mixed - { - static $serializer; - - if ($serializer === null) { - $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeArrayItems(...array ( -)); + if ($value === null) { + $missingFields[] = 'answer_chosen_at'; + goto after_answer_chosen_at; + } + + $properties['answer_chosen_at'] = $value; + + after_answer_chosen_at: + + $value = $payload['answer_chosen_by'] ?? null; + + if ($value === null) { + $missingFields[] = 'answer_chosen_by'; + goto after_answer_chosen_by; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'answer_chosen_by'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['answer_chosen_by'] = $value; + + after_answer_chosen_by: + + $value = $payload['answer_html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'answer_html_url'; + goto after_answer_html_url; + } + + $properties['answer_html_url'] = $value; + + after_answer_html_url: + + $value = $payload['author_association'] ?? null; + + if ($value === null) { + $missingFields[] = 'author_association'; + goto after_author_association; + } + + $properties['author_association'] = $value; + + after_author_association: + + $value = $payload['body'] ?? null; + + if ($value === null) { + $missingFields[] = 'body'; + goto after_body; + } + + $properties['body'] = $value; + + after_body: + + $value = $payload['category'] ?? null; + + if ($value === null) { + $missingFields[] = 'category'; + goto after_category; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'category'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️Category($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['category'] = $value; + + after_category: + + $value = $payload['comments'] ?? null; + + if ($value === null) { + $missingFields[] = 'comments'; + goto after_comments; + } + + $properties['comments'] = $value; + + after_comments: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'created_at'; + goto after_created_at; + } + + $properties['created_at'] = $value; + + after_created_at: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } + + $properties['html_url'] = $value; + + after_html_url: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['locked'] ?? null; + + if ($value === null) { + $missingFields[] = 'locked'; + goto after_locked; + } + + $properties['locked'] = $value; + + after_locked: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['number'] ?? null; + + if ($value === null) { + $missingFields[] = 'number'; + goto after_number; + } + + $properties['number'] = $value; + + after_number: + + $value = $payload['reactions'] ?? null; + + if ($value === null) { + $missingFields[] = 'reactions'; + goto after_reactions; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'reactions'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️Reactions($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['reactions'] = $value; + + after_reactions: + + $value = $payload['repository_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'repository_url'; + goto after_repository_url; + } + + $properties['repository_url'] = $value; + + after_repository_url: + + $value = $payload['state'] ?? null; + + if ($value === null) { + $missingFields[] = 'state'; + goto after_state; + } + + $properties['state'] = $value; + + after_state: + + $value = $payload['timeline_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'timeline_url'; + goto after_timeline_url; + } + + $properties['timeline_url'] = $value; + + after_timeline_url: + + $value = $payload['title'] ?? null; + + if ($value === null) { + $missingFields[] = 'title'; + goto after_title; + } + + $properties['title'] = $value; + + after_title: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'updated_at'; + goto after_updated_at; + } + + $properties['updated_at'] = $value; + + after_updated_at: + + $value = $payload['user'] ?? null; + + if ($value === null) { + $missingFields[] = 'user'; + goto after_user; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'user'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['user'] = $value; + + after_user: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDiscussionLabeled\Discussion', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookDiscussionLabeled\Discussion::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookDiscussionLabeled\Discussion(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDiscussionLabeled\Discussion', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionLabeled⚡️Label(array $payload): \ApiClients\Client\Github\Schema\WebhookDiscussionLabeled\Label + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['color'] ?? null; + + if ($value === null) { + $missingFields[] = 'color'; + goto after_color; + } + + $properties['color'] = $value; + + after_color: + + $value = $payload['default'] ?? null; + + if ($value === null) { + $missingFields[] = 'default'; + goto after_default; + } + + $properties['default'] = $value; + + after_default: + + $value = $payload['description'] ?? null; + + if ($value === null) { + $missingFields[] = 'description'; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDiscussionLabeled\Label', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookDiscussionLabeled\Label::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookDiscussionLabeled\Label(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDiscussionLabeled\Label', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionTransferred⚡️Changes(array $payload): \ApiClients\Client\Github\Schema\WebhookDiscussionTransferred\Changes + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['new_discussion'] ?? null; + + if ($value === null) { + $missingFields[] = 'new_discussion'; + goto after_new_discussion; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'new_discussion'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionTransferred⚡️Changes⚡️NewDiscussion($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['new_discussion'] = $value; + + after_new_discussion: + + $value = $payload['new_repository'] ?? null; + + if ($value === null) { + $missingFields[] = 'new_repository'; + goto after_new_repository; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'new_repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionTransferred⚡️Changes⚡️NewRepository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['new_repository'] = $value; + + after_new_repository: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDiscussionTransferred\Changes', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookDiscussionTransferred\Changes::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookDiscussionTransferred\Changes(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDiscussionTransferred\Changes', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️Reactions(array $payload): \ApiClients\Client\Github\Schema\Discussion\Reactions + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['__p_l_u_s_e_s_1'] ?? null; + + if ($value === null) { + $missingFields[] = '__p_l_u_s_e_s_1'; + goto after__PLUSES_1; + } + + $properties['_PLUSES_1'] = $value; + + after__PLUSES_1: + + $value = $payload['__m_i_n_u_s_1'] ?? null; + + if ($value === null) { + $missingFields[] = '__m_i_n_u_s_1'; + goto after__MINUS_1; + } + + $properties['_MINUS_1'] = $value; + + after__MINUS_1: + + $value = $payload['confused'] ?? null; + + if ($value === null) { + $missingFields[] = 'confused'; + goto after_confused; + } + + $properties['confused'] = $value; + + after_confused: + + $value = $payload['eyes'] ?? null; + + if ($value === null) { + $missingFields[] = 'eyes'; + goto after_eyes; + } + + $properties['eyes'] = $value; + + after_eyes: + + $value = $payload['heart'] ?? null; + + if ($value === null) { + $missingFields[] = 'heart'; + goto after_heart; + } + + $properties['heart'] = $value; + + after_heart: + + $value = $payload['hooray'] ?? null; + + if ($value === null) { + $missingFields[] = 'hooray'; + goto after_hooray; + } + + $properties['hooray'] = $value; + + after_hooray: + + $value = $payload['laugh'] ?? null; + + if ($value === null) { + $missingFields[] = 'laugh'; + goto after_laugh; + } + + $properties['laugh'] = $value; + + after_laugh: + + $value = $payload['rocket'] ?? null; + + if ($value === null) { + $missingFields[] = 'rocket'; + goto after_rocket; + } + + $properties['rocket'] = $value; + + after_rocket: + + $value = $payload['total_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'total_count'; + goto after_total_count; + } + + $properties['total_count'] = $value; + + after_total_count: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Discussion\Reactions', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Discussion\Reactions::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\Discussion\Reactions(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Discussion\Reactions', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy(array $payload): \ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['avatar_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'avatar_url'; + goto after_avatar_url; + } + + $properties['avatar_url'] = $value; + + after_avatar_url: + + $value = $payload['deleted'] ?? null; + + if ($value === null) { + $missingFields[] = 'deleted'; + goto after_deleted; + } + + $properties['deleted'] = $value; + + after_deleted: + + $value = $payload['email'] ?? null; + + if ($value === null) { + $missingFields[] = 'email'; + goto after_email; + } + + $properties['email'] = $value; + + after_email: + + $value = $payload['events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'events_url'; + goto after_events_url; + } + + $properties['events_url'] = $value; + + after_events_url: + + $value = $payload['followers_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'followers_url'; + goto after_followers_url; + } + + $properties['followers_url'] = $value; + + after_followers_url: + + $value = $payload['following_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'following_url'; + goto after_following_url; + } + + $properties['following_url'] = $value; + + after_following_url: + + $value = $payload['gists_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'gists_url'; + goto after_gists_url; + } + + $properties['gists_url'] = $value; + + after_gists_url: + + $value = $payload['gravatar_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'gravatar_id'; + goto after_gravatar_id; + } + + $properties['gravatar_id'] = $value; + + after_gravatar_id: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } + + $properties['html_url'] = $value; + + after_html_url: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['login'] ?? null; + + if ($value === null) { + $missingFields[] = 'login'; + goto after_login; + } + + $properties['login'] = $value; + + after_login: + + $value = $payload['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['organizations_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'organizations_url'; + goto after_organizations_url; + } + + $properties['organizations_url'] = $value; + + after_organizations_url: + + $value = $payload['received_events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'received_events_url'; + goto after_received_events_url; + } + + $properties['received_events_url'] = $value; + + after_received_events_url: + + $value = $payload['repos_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'repos_url'; + goto after_repos_url; + } + + $properties['repos_url'] = $value; + + after_repos_url: + + $value = $payload['site_admin'] ?? null; + + if ($value === null) { + $missingFields[] = 'site_admin'; + goto after_site_admin; + } + + $properties['site_admin'] = $value; + + after_site_admin: + + $value = $payload['starred_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'starred_url'; + goto after_starred_url; + } + + $properties['starred_url'] = $value; + + after_starred_url: + + $value = $payload['subscriptions_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscriptions_url'; + goto after_subscriptions_url; + } + + $properties['subscriptions_url'] = $value; + + after_subscriptions_url: + + $value = $payload['type'] ?? null; + + if ($value === null) { + $missingFields[] = 'type'; + goto after_type; + } + + $properties['type'] = $value; + + after_type: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️Category(array $payload): \ApiClients\Client\Github\Schema\Discussion\Category + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'created_at'; + goto after_created_at; + } + + $properties['created_at'] = $value; + + after_created_at: + + $value = $payload['description'] ?? null; + + if ($value === null) { + $missingFields[] = 'description'; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['emoji'] ?? null; + + if ($value === null) { + $missingFields[] = 'emoji'; + goto after_emoji; + } + + $properties['emoji'] = $value; + + after_emoji: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['is_answerable'] ?? null; + + if ($value === null) { + $missingFields[] = 'is_answerable'; + goto after_is_answerable; + } + + $properties['is_answerable'] = $value; + + after_is_answerable: + + $value = $payload['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['repository_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'repository_id'; + goto after_repository_id; + } + + $properties['repository_id'] = $value; + + after_repository_id: + + $value = $payload['slug'] ?? null; + + if ($value === null) { + $missingFields[] = 'slug'; + goto after_slug; + } + + $properties['slug'] = $value; + + after_slug: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'updated_at'; + goto after_updated_at; + } + + $properties['updated_at'] = $value; + + after_updated_at: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Discussion\Category', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Discussion\Category::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\Discussion\Category(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Discussion\Category', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️Permissions(array $payload): \ApiClients\Client\Github\Schema\Repository\Permissions + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['admin'] ?? null; + + if ($value === null) { + $missingFields[] = 'admin'; + goto after_admin; + } + + $properties['admin'] = $value; + + after_admin: + + $value = $payload['pull'] ?? null; + + if ($value === null) { + $missingFields[] = 'pull'; + goto after_pull; + } + + $properties['pull'] = $value; + + after_pull: + + $value = $payload['triage'] ?? null; + + if ($value === null) { + $missingFields[] = 'triage'; + goto after_triage; + } + + $properties['triage'] = $value; + + after_triage: + + $value = $payload['push'] ?? null; + + if ($value === null) { + $missingFields[] = 'push'; + goto after_push; + } + + $properties['push'] = $value; + + after_push: + + $value = $payload['maintain'] ?? null; + + if ($value === null) { + $missingFields[] = 'maintain'; + goto after_maintain; + } + + $properties['maintain'] = $value; + + after_maintain: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\Permissions', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\Permissions::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\Repository\Permissions(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\Permissions', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository(array $payload): \ApiClients\Client\Github\Schema\Repository\TemplateRepository + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['full_name'] ?? null; + + if ($value === null) { + $missingFields[] = 'full_name'; + goto after_full_name; + } + + $properties['full_name'] = $value; + + after_full_name: + + $value = $payload['owner'] ?? null; + + if ($value === null) { + $missingFields[] = 'owner'; + goto after_owner; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'owner'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['owner'] = $value; + + after_owner: + + $value = $payload['private'] ?? null; + + if ($value === null) { + $missingFields[] = 'private'; + goto after_private; + } + + $properties['private'] = $value; + + after_private: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } + + $properties['html_url'] = $value; + + after_html_url: + + $value = $payload['description'] ?? null; + + if ($value === null) { + $missingFields[] = 'description'; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['fork'] ?? null; + + if ($value === null) { + $missingFields[] = 'fork'; + goto after_fork; + } + + $properties['fork'] = $value; + + after_fork: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['archive_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'archive_url'; + goto after_archive_url; + } + + $properties['archive_url'] = $value; + + after_archive_url: + + $value = $payload['assignees_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'assignees_url'; + goto after_assignees_url; + } + + $properties['assignees_url'] = $value; + + after_assignees_url: + + $value = $payload['blobs_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'blobs_url'; + goto after_blobs_url; + } + + $properties['blobs_url'] = $value; + + after_blobs_url: + + $value = $payload['branches_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'branches_url'; + goto after_branches_url; + } + + $properties['branches_url'] = $value; + + after_branches_url: + + $value = $payload['collaborators_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'collaborators_url'; + goto after_collaborators_url; + } + + $properties['collaborators_url'] = $value; + + after_collaborators_url: + + $value = $payload['comments_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'comments_url'; + goto after_comments_url; + } + + $properties['comments_url'] = $value; + + after_comments_url: + + $value = $payload['commits_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'commits_url'; + goto after_commits_url; + } + + $properties['commits_url'] = $value; + + after_commits_url: + + $value = $payload['compare_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'compare_url'; + goto after_compare_url; + } + + $properties['compare_url'] = $value; + + after_compare_url: + + $value = $payload['contents_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'contents_url'; + goto after_contents_url; + } + + $properties['contents_url'] = $value; + + after_contents_url: + + $value = $payload['contributors_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'contributors_url'; + goto after_contributors_url; + } + + $properties['contributors_url'] = $value; + + after_contributors_url: + + $value = $payload['deployments_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'deployments_url'; + goto after_deployments_url; + } + + $properties['deployments_url'] = $value; + + after_deployments_url: + + $value = $payload['downloads_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'downloads_url'; + goto after_downloads_url; + } + + $properties['downloads_url'] = $value; + + after_downloads_url: + + $value = $payload['events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'events_url'; + goto after_events_url; + } + + $properties['events_url'] = $value; + + after_events_url: + + $value = $payload['forks_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'forks_url'; + goto after_forks_url; + } + + $properties['forks_url'] = $value; + + after_forks_url: + + $value = $payload['git_commits_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_commits_url'; + goto after_git_commits_url; + } + + $properties['git_commits_url'] = $value; + + after_git_commits_url: + + $value = $payload['git_refs_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_refs_url'; + goto after_git_refs_url; + } + + $properties['git_refs_url'] = $value; + + after_git_refs_url: + + $value = $payload['git_tags_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_tags_url'; + goto after_git_tags_url; + } + + $properties['git_tags_url'] = $value; + + after_git_tags_url: + + $value = $payload['git_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_url'; + goto after_git_url; + } + + $properties['git_url'] = $value; + + after_git_url: + + $value = $payload['issue_comment_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issue_comment_url'; + goto after_issue_comment_url; + } + + $properties['issue_comment_url'] = $value; + + after_issue_comment_url: + + $value = $payload['issue_events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issue_events_url'; + goto after_issue_events_url; + } + + $properties['issue_events_url'] = $value; + + after_issue_events_url: + + $value = $payload['issues_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issues_url'; + goto after_issues_url; + } + + $properties['issues_url'] = $value; + + after_issues_url: + + $value = $payload['keys_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'keys_url'; + goto after_keys_url; + } + + $properties['keys_url'] = $value; + + after_keys_url: + + $value = $payload['labels_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'labels_url'; + goto after_labels_url; + } + + $properties['labels_url'] = $value; + + after_labels_url: + + $value = $payload['languages_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'languages_url'; + goto after_languages_url; + } + + $properties['languages_url'] = $value; + + after_languages_url: + + $value = $payload['merges_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'merges_url'; + goto after_merges_url; + } + + $properties['merges_url'] = $value; + + after_merges_url: + + $value = $payload['milestones_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'milestones_url'; + goto after_milestones_url; + } + + $properties['milestones_url'] = $value; + + after_milestones_url: + + $value = $payload['notifications_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'notifications_url'; + goto after_notifications_url; + } + + $properties['notifications_url'] = $value; + + after_notifications_url: + + $value = $payload['pulls_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'pulls_url'; + goto after_pulls_url; + } + + $properties['pulls_url'] = $value; + + after_pulls_url: + + $value = $payload['releases_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'releases_url'; + goto after_releases_url; + } + + $properties['releases_url'] = $value; + + after_releases_url: + + $value = $payload['ssh_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'ssh_url'; + goto after_ssh_url; + } + + $properties['ssh_url'] = $value; + + after_ssh_url: + + $value = $payload['stargazers_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'stargazers_url'; + goto after_stargazers_url; + } + + $properties['stargazers_url'] = $value; + + after_stargazers_url: + + $value = $payload['statuses_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'statuses_url'; + goto after_statuses_url; + } + + $properties['statuses_url'] = $value; + + after_statuses_url: + + $value = $payload['subscribers_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscribers_url'; + goto after_subscribers_url; + } + + $properties['subscribers_url'] = $value; + + after_subscribers_url: + + $value = $payload['subscription_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscription_url'; + goto after_subscription_url; + } + + $properties['subscription_url'] = $value; + + after_subscription_url: + + $value = $payload['tags_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'tags_url'; + goto after_tags_url; + } + + $properties['tags_url'] = $value; + + after_tags_url: + + $value = $payload['teams_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'teams_url'; + goto after_teams_url; + } + + $properties['teams_url'] = $value; + + after_teams_url: + + $value = $payload['trees_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'trees_url'; + goto after_trees_url; + } + + $properties['trees_url'] = $value; + + after_trees_url: + + $value = $payload['clone_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'clone_url'; + goto after_clone_url; + } + + $properties['clone_url'] = $value; + + after_clone_url: + + $value = $payload['mirror_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'mirror_url'; + goto after_mirror_url; + } + + $properties['mirror_url'] = $value; + + after_mirror_url: + + $value = $payload['hooks_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'hooks_url'; + goto after_hooks_url; + } + + $properties['hooks_url'] = $value; + + after_hooks_url: + + $value = $payload['svn_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'svn_url'; + goto after_svn_url; + } + + $properties['svn_url'] = $value; + + after_svn_url: + + $value = $payload['homepage'] ?? null; + + if ($value === null) { + $missingFields[] = 'homepage'; + goto after_homepage; + } + + $properties['homepage'] = $value; + + after_homepage: + + $value = $payload['language'] ?? null; + + if ($value === null) { + $missingFields[] = 'language'; + goto after_language; + } + + $properties['language'] = $value; + + after_language: + + $value = $payload['forks_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'forks_count'; + goto after_forks_count; + } + + $properties['forks_count'] = $value; + + after_forks_count: + + $value = $payload['stargazers_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'stargazers_count'; + goto after_stargazers_count; + } + + $properties['stargazers_count'] = $value; + + after_stargazers_count: + + $value = $payload['watchers_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'watchers_count'; + goto after_watchers_count; + } + + $properties['watchers_count'] = $value; + + after_watchers_count: + + $value = $payload['size'] ?? null; + + if ($value === null) { + $missingFields[] = 'size'; + goto after_size; + } + + $properties['size'] = $value; + + after_size: + + $value = $payload['default_branch'] ?? null; + + if ($value === null) { + $missingFields[] = 'default_branch'; + goto after_default_branch; + } + + $properties['default_branch'] = $value; + + after_default_branch: + + $value = $payload['open_issues_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'open_issues_count'; + goto after_open_issues_count; + } + + $properties['open_issues_count'] = $value; + + after_open_issues_count: + + $value = $payload['is_template'] ?? null; + + if ($value === null) { + $missingFields[] = 'is_template'; + goto after_is_template; + } + + $properties['is_template'] = $value; + + after_is_template: + + $value = $payload['topics'] ?? null; + + if ($value === null) { + $missingFields[] = 'topics'; + goto after_topics; + } + + $properties['topics'] = $value; + + after_topics: + + $value = $payload['has_issues'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_issues'; + goto after_has_issues; + } + + $properties['has_issues'] = $value; + + after_has_issues: + + $value = $payload['has_projects'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_projects'; + goto after_has_projects; + } + + $properties['has_projects'] = $value; + + after_has_projects: + + $value = $payload['has_wiki'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_wiki'; + goto after_has_wiki; + } + + $properties['has_wiki'] = $value; + + after_has_wiki: + + $value = $payload['has_pages'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_pages'; + goto after_has_pages; + } + + $properties['has_pages'] = $value; + + after_has_pages: + + $value = $payload['has_downloads'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_downloads'; + goto after_has_downloads; + } + + $properties['has_downloads'] = $value; + + after_has_downloads: + + $value = $payload['archived'] ?? null; + + if ($value === null) { + $missingFields[] = 'archived'; + goto after_archived; + } + + $properties['archived'] = $value; + + after_archived: + + $value = $payload['disabled'] ?? null; + + if ($value === null) { + $missingFields[] = 'disabled'; + goto after_disabled; + } + + $properties['disabled'] = $value; + + after_disabled: + + $value = $payload['visibility'] ?? null; + + if ($value === null) { + $missingFields[] = 'visibility'; + goto after_visibility; + } + + $properties['visibility'] = $value; + + after_visibility: + + $value = $payload['pushed_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'pushed_at'; + goto after_pushed_at; + } + + $properties['pushed_at'] = $value; + + after_pushed_at: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'created_at'; + goto after_created_at; + } + + $properties['created_at'] = $value; + + after_created_at: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'updated_at'; + goto after_updated_at; + } + + $properties['updated_at'] = $value; + + after_updated_at: + + $value = $payload['permissions'] ?? null; + + if ($value === null) { + $missingFields[] = 'permissions'; + goto after_permissions; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'permissions'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Permissions($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['permissions'] = $value; + + after_permissions: + + $value = $payload['allow_rebase_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_rebase_merge'; + goto after_allow_rebase_merge; + } + + $properties['allow_rebase_merge'] = $value; + + after_allow_rebase_merge: + + $value = $payload['temp_clone_token'] ?? null; + + if ($value === null) { + $missingFields[] = 'temp_clone_token'; + goto after_temp_clone_token; + } + + $properties['temp_clone_token'] = $value; + + after_temp_clone_token: + + $value = $payload['allow_squash_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_squash_merge'; + goto after_allow_squash_merge; + } + + $properties['allow_squash_merge'] = $value; + + after_allow_squash_merge: + + $value = $payload['allow_auto_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_auto_merge'; + goto after_allow_auto_merge; + } + + $properties['allow_auto_merge'] = $value; + + after_allow_auto_merge: + + $value = $payload['delete_branch_on_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'delete_branch_on_merge'; + goto after_delete_branch_on_merge; + } + + $properties['delete_branch_on_merge'] = $value; + + after_delete_branch_on_merge: + + $value = $payload['allow_update_branch'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_update_branch'; + goto after_allow_update_branch; + } + + $properties['allow_update_branch'] = $value; + + after_allow_update_branch: + + $value = $payload['use_squash_pr_title_as_default'] ?? null; + + if ($value === null) { + $missingFields[] = 'use_squash_pr_title_as_default'; + goto after_use_squash_pr_title_as_default; + } + + $properties['use_squash_pr_title_as_default'] = $value; + + after_use_squash_pr_title_as_default: + + $value = $payload['squash_merge_commit_title'] ?? null; + + if ($value === null) { + $missingFields[] = 'squash_merge_commit_title'; + goto after_squash_merge_commit_title; + } + + $properties['squash_merge_commit_title'] = $value; + + after_squash_merge_commit_title: + + $value = $payload['squash_merge_commit_message'] ?? null; + + if ($value === null) { + $missingFields[] = 'squash_merge_commit_message'; + goto after_squash_merge_commit_message; + } + + $properties['squash_merge_commit_message'] = $value; + + after_squash_merge_commit_message: + + $value = $payload['merge_commit_title'] ?? null; + + if ($value === null) { + $missingFields[] = 'merge_commit_title'; + goto after_merge_commit_title; + } + + $properties['merge_commit_title'] = $value; + + after_merge_commit_title: + + $value = $payload['merge_commit_message'] ?? null; + + if ($value === null) { + $missingFields[] = 'merge_commit_message'; + goto after_merge_commit_message; + } + + $properties['merge_commit_message'] = $value; + + after_merge_commit_message: + + $value = $payload['allow_merge_commit'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_merge_commit'; + goto after_allow_merge_commit; + } + + $properties['allow_merge_commit'] = $value; + + after_allow_merge_commit: + + $value = $payload['subscribers_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscribers_count'; + goto after_subscribers_count; + } + + $properties['subscribers_count'] = $value; + + after_subscribers_count: + + $value = $payload['network_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'network_count'; + goto after_network_count; + } + + $properties['network_count'] = $value; + + after_network_count: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\TemplateRepository::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\Repository\TemplateRepository(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionCategoryChanged⚡️Changes⚡️Category(array $payload): \ApiClients\Client\Github\Schema\WebhookDiscussionCategoryChanged\Changes\Category + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['from'] ?? null; + + if ($value === null) { + $missingFields[] = 'from'; + goto after_from; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'from'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️Category($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['from'] = $value; + + after_from: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDiscussionCategoryChanged\Changes\Category', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookDiscussionCategoryChanged\Changes\Category::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookDiscussionCategoryChanged\Changes\Category(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDiscussionCategoryChanged\Changes\Category', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionCommentEdited⚡️Changes⚡️Body(array $payload): \ApiClients\Client\Github\Schema\WebhookDiscussionCommentEdited\Changes\Body + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['from'] ?? null; + + if ($value === null) { + $missingFields[] = 'from'; + goto after_from; + } + + $properties['from'] = $value; + + after_from: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDiscussionCommentEdited\Changes\Body', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookDiscussionCommentEdited\Changes\Body::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookDiscussionCommentEdited\Changes\Body(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDiscussionCommentEdited\Changes\Body', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionTransferred⚡️Changes⚡️NewDiscussion(array $payload): \ApiClients\Client\Github\Schema\WebhookDiscussionTransferred\Changes\NewDiscussion + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['active_lock_reason'] ?? null; + + if ($value === null) { + $missingFields[] = 'active_lock_reason'; + goto after_active_lock_reason; + } + + $properties['active_lock_reason'] = $value; + + after_active_lock_reason: + + $value = $payload['answer_chosen_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'answer_chosen_at'; + goto after_answer_chosen_at; + } + + $properties['answer_chosen_at'] = $value; + + after_answer_chosen_at: + + $value = $payload['answer_chosen_by'] ?? null; + + if ($value === null) { + $missingFields[] = 'answer_chosen_by'; + goto after_answer_chosen_by; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'answer_chosen_by'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['answer_chosen_by'] = $value; + + after_answer_chosen_by: + + $value = $payload['answer_html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'answer_html_url'; + goto after_answer_html_url; + } + + $properties['answer_html_url'] = $value; + + after_answer_html_url: + + $value = $payload['author_association'] ?? null; + + if ($value === null) { + $missingFields[] = 'author_association'; + goto after_author_association; + } + + $properties['author_association'] = $value; + + after_author_association: + + $value = $payload['body'] ?? null; + + if ($value === null) { + $missingFields[] = 'body'; + goto after_body; + } + + $properties['body'] = $value; + + after_body: + + $value = $payload['category'] ?? null; + + if ($value === null) { + $missingFields[] = 'category'; + goto after_category; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'category'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️Category($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['category'] = $value; + + after_category: + + $value = $payload['comments'] ?? null; + + if ($value === null) { + $missingFields[] = 'comments'; + goto after_comments; + } + + $properties['comments'] = $value; + + after_comments: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'created_at'; + goto after_created_at; + } + + $properties['created_at'] = $value; + + after_created_at: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } + + $properties['html_url'] = $value; + + after_html_url: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['locked'] ?? null; + + if ($value === null) { + $missingFields[] = 'locked'; + goto after_locked; + } + + $properties['locked'] = $value; + + after_locked: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['number'] ?? null; + + if ($value === null) { + $missingFields[] = 'number'; + goto after_number; + } + + $properties['number'] = $value; + + after_number: + + $value = $payload['reactions'] ?? null; + + if ($value === null) { + $missingFields[] = 'reactions'; + goto after_reactions; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'reactions'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️Reactions($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['reactions'] = $value; + + after_reactions: + + $value = $payload['repository_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'repository_url'; + goto after_repository_url; + } + + $properties['repository_url'] = $value; + + after_repository_url: + + $value = $payload['state'] ?? null; + + if ($value === null) { + $missingFields[] = 'state'; + goto after_state; + } + + $properties['state'] = $value; + + after_state: + + $value = $payload['timeline_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'timeline_url'; + goto after_timeline_url; + } + + $properties['timeline_url'] = $value; + + after_timeline_url: + + $value = $payload['title'] ?? null; + + if ($value === null) { + $missingFields[] = 'title'; + goto after_title; + } + + $properties['title'] = $value; + + after_title: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'updated_at'; + goto after_updated_at; + } + + $properties['updated_at'] = $value; + + after_updated_at: + + $value = $payload['user'] ?? null; + + if ($value === null) { + $missingFields[] = 'user'; + goto after_user; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'user'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['user'] = $value; + + after_user: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDiscussionTransferred\Changes\NewDiscussion', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookDiscussionTransferred\Changes\NewDiscussion::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookDiscussionTransferred\Changes\NewDiscussion(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDiscussionTransferred\Changes\NewDiscussion', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionTransferred⚡️Changes⚡️NewRepository(array $payload): \ApiClients\Client\Github\Schema\WebhookDiscussionTransferred\Changes\NewRepository + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['allow_auto_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_auto_merge'; + goto after_allow_auto_merge; + } + + $properties['allow_auto_merge'] = $value; + + after_allow_auto_merge: + + $value = $payload['allow_forking'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_forking'; + goto after_allow_forking; + } + + $properties['allow_forking'] = $value; + + after_allow_forking: + + $value = $payload['allow_merge_commit'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_merge_commit'; + goto after_allow_merge_commit; + } + + $properties['allow_merge_commit'] = $value; + + after_allow_merge_commit: + + $value = $payload['allow_rebase_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_rebase_merge'; + goto after_allow_rebase_merge; + } + + $properties['allow_rebase_merge'] = $value; + + after_allow_rebase_merge: + + $value = $payload['allow_squash_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_squash_merge'; + goto after_allow_squash_merge; + } + + $properties['allow_squash_merge'] = $value; + + after_allow_squash_merge: + + $value = $payload['allow_update_branch'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_update_branch'; + goto after_allow_update_branch; + } + + $properties['allow_update_branch'] = $value; + + after_allow_update_branch: + + $value = $payload['archive_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'archive_url'; + goto after_archive_url; + } + + $properties['archive_url'] = $value; + + after_archive_url: + + $value = $payload['archived'] ?? null; + + if ($value === null) { + $missingFields[] = 'archived'; + goto after_archived; + } + + $properties['archived'] = $value; + + after_archived: + + $value = $payload['assignees_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'assignees_url'; + goto after_assignees_url; + } + + $properties['assignees_url'] = $value; + + after_assignees_url: + + $value = $payload['blobs_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'blobs_url'; + goto after_blobs_url; + } + + $properties['blobs_url'] = $value; + + after_blobs_url: + + $value = $payload['branches_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'branches_url'; + goto after_branches_url; + } + + $properties['branches_url'] = $value; + + after_branches_url: + + $value = $payload['clone_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'clone_url'; + goto after_clone_url; + } + + $properties['clone_url'] = $value; + + after_clone_url: + + $value = $payload['collaborators_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'collaborators_url'; + goto after_collaborators_url; + } + + $properties['collaborators_url'] = $value; + + after_collaborators_url: + + $value = $payload['comments_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'comments_url'; + goto after_comments_url; + } + + $properties['comments_url'] = $value; + + after_comments_url: + + $value = $payload['commits_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'commits_url'; + goto after_commits_url; + } + + $properties['commits_url'] = $value; + + after_commits_url: + + $value = $payload['compare_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'compare_url'; + goto after_compare_url; + } + + $properties['compare_url'] = $value; + + after_compare_url: + + $value = $payload['contents_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'contents_url'; + goto after_contents_url; + } + + $properties['contents_url'] = $value; + + after_contents_url: + + $value = $payload['contributors_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'contributors_url'; + goto after_contributors_url; + } + + $properties['contributors_url'] = $value; + + after_contributors_url: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $properties['created_at'] = null; + goto after_created_at; + } + + $properties['created_at'] = $value; + + after_created_at: + + $value = $payload['default_branch'] ?? null; + + if ($value === null) { + $missingFields[] = 'default_branch'; + goto after_default_branch; + } + + $properties['default_branch'] = $value; + + after_default_branch: + + $value = $payload['delete_branch_on_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'delete_branch_on_merge'; + goto after_delete_branch_on_merge; + } + + $properties['delete_branch_on_merge'] = $value; + + after_delete_branch_on_merge: + + $value = $payload['deployments_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'deployments_url'; + goto after_deployments_url; + } + + $properties['deployments_url'] = $value; + + after_deployments_url: + + $value = $payload['description'] ?? null; + + if ($value === null) { + $missingFields[] = 'description'; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['disabled'] ?? null; + + if ($value === null) { + $missingFields[] = 'disabled'; + goto after_disabled; + } + + $properties['disabled'] = $value; + + after_disabled: + + $value = $payload['downloads_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'downloads_url'; + goto after_downloads_url; + } + + $properties['downloads_url'] = $value; + + after_downloads_url: + + $value = $payload['events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'events_url'; + goto after_events_url; + } + + $properties['events_url'] = $value; + + after_events_url: + + $value = $payload['fork'] ?? null; + + if ($value === null) { + $missingFields[] = 'fork'; + goto after_fork; + } + + $properties['fork'] = $value; + + after_fork: + + $value = $payload['forks'] ?? null; + + if ($value === null) { + $missingFields[] = 'forks'; + goto after_forks; + } + + $properties['forks'] = $value; + + after_forks: + + $value = $payload['forks_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'forks_count'; + goto after_forks_count; + } + + $properties['forks_count'] = $value; + + after_forks_count: + + $value = $payload['forks_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'forks_url'; + goto after_forks_url; + } + + $properties['forks_url'] = $value; + + after_forks_url: + + $value = $payload['full_name'] ?? null; + + if ($value === null) { + $missingFields[] = 'full_name'; + goto after_full_name; + } + + $properties['full_name'] = $value; + + after_full_name: + + $value = $payload['git_commits_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_commits_url'; + goto after_git_commits_url; + } + + $properties['git_commits_url'] = $value; + + after_git_commits_url: + + $value = $payload['git_refs_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_refs_url'; + goto after_git_refs_url; + } + + $properties['git_refs_url'] = $value; + + after_git_refs_url: + + $value = $payload['git_tags_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_tags_url'; + goto after_git_tags_url; + } + + $properties['git_tags_url'] = $value; + + after_git_tags_url: + + $value = $payload['git_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_url'; + goto after_git_url; + } + + $properties['git_url'] = $value; + + after_git_url: + + $value = $payload['has_downloads'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_downloads'; + goto after_has_downloads; + } + + $properties['has_downloads'] = $value; + + after_has_downloads: + + $value = $payload['has_issues'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_issues'; + goto after_has_issues; + } + + $properties['has_issues'] = $value; + + after_has_issues: + + $value = $payload['has_pages'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_pages'; + goto after_has_pages; + } + + $properties['has_pages'] = $value; + + after_has_pages: + + $value = $payload['has_projects'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_projects'; + goto after_has_projects; + } + + $properties['has_projects'] = $value; + + after_has_projects: + + $value = $payload['has_wiki'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_wiki'; + goto after_has_wiki; + } + + $properties['has_wiki'] = $value; + + after_has_wiki: + + $value = $payload['has_discussions'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_discussions'; + goto after_has_discussions; + } + + $properties['has_discussions'] = $value; + + after_has_discussions: + + $value = $payload['homepage'] ?? null; + + if ($value === null) { + $missingFields[] = 'homepage'; + goto after_homepage; + } + + $properties['homepage'] = $value; + + after_homepage: + + $value = $payload['hooks_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'hooks_url'; + goto after_hooks_url; + } + + $properties['hooks_url'] = $value; + + after_hooks_url: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } + + $properties['html_url'] = $value; + + after_html_url: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['is_template'] ?? null; + + if ($value === null) { + $missingFields[] = 'is_template'; + goto after_is_template; + } + + $properties['is_template'] = $value; + + after_is_template: + + $value = $payload['issue_comment_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issue_comment_url'; + goto after_issue_comment_url; + } + + $properties['issue_comment_url'] = $value; + + after_issue_comment_url: + + $value = $payload['issue_events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issue_events_url'; + goto after_issue_events_url; + } + + $properties['issue_events_url'] = $value; + + after_issue_events_url: + + $value = $payload['issues_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issues_url'; + goto after_issues_url; + } + + $properties['issues_url'] = $value; + + after_issues_url: + + $value = $payload['keys_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'keys_url'; + goto after_keys_url; + } + + $properties['keys_url'] = $value; + + after_keys_url: + + $value = $payload['labels_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'labels_url'; + goto after_labels_url; + } + + $properties['labels_url'] = $value; + + after_labels_url: + + $value = $payload['language'] ?? null; + + if ($value === null) { + $missingFields[] = 'language'; + goto after_language; + } + + $properties['language'] = $value; + + after_language: + + $value = $payload['languages_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'languages_url'; + goto after_languages_url; + } + + $properties['languages_url'] = $value; + + after_languages_url: + + $value = $payload['license'] ?? null; + + if ($value === null) { + $missingFields[] = 'license'; + goto after_license; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'license'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionTransferred⚡️Changes⚡️NewRepository⚡️License($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['license'] = $value; + + after_license: + + $value = $payload['master_branch'] ?? null; + + if ($value === null) { + $missingFields[] = 'master_branch'; + goto after_master_branch; + } + + $properties['master_branch'] = $value; + + after_master_branch: + + $value = $payload['merges_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'merges_url'; + goto after_merges_url; + } + + $properties['merges_url'] = $value; + + after_merges_url: + + $value = $payload['milestones_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'milestones_url'; + goto after_milestones_url; + } + + $properties['milestones_url'] = $value; + + after_milestones_url: + + $value = $payload['mirror_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'mirror_url'; + goto after_mirror_url; + } + + $properties['mirror_url'] = $value; + + after_mirror_url: + + $value = $payload['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['notifications_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'notifications_url'; + goto after_notifications_url; + } + + $properties['notifications_url'] = $value; + + after_notifications_url: + + $value = $payload['open_issues'] ?? null; + + if ($value === null) { + $missingFields[] = 'open_issues'; + goto after_open_issues; + } + + $properties['open_issues'] = $value; + + after_open_issues: + + $value = $payload['open_issues_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'open_issues_count'; + goto after_open_issues_count; + } + + $properties['open_issues_count'] = $value; + + after_open_issues_count: + + $value = $payload['organization'] ?? null; + + if ($value === null) { + $missingFields[] = 'organization'; + goto after_organization; + } + + $properties['organization'] = $value; + + after_organization: + + $value = $payload['owner'] ?? null; + + if ($value === null) { + $missingFields[] = 'owner'; + goto after_owner; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'owner'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['owner'] = $value; + + after_owner: + + $value = $payload['permissions'] ?? null; + + if ($value === null) { + $missingFields[] = 'permissions'; + goto after_permissions; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'permissions'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionTransferred⚡️Changes⚡️NewRepository⚡️Permissions($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['permissions'] = $value; + + after_permissions: + + $value = $payload['private'] ?? null; + + if ($value === null) { + $missingFields[] = 'private'; + goto after_private; + } + + $properties['private'] = $value; + + after_private: + + $value = $payload['public'] ?? null; + + if ($value === null) { + $missingFields[] = 'public'; + goto after_public; + } + + $properties['public'] = $value; + + after_public: + + $value = $payload['pulls_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'pulls_url'; + goto after_pulls_url; + } + + $properties['pulls_url'] = $value; + + after_pulls_url: + + $value = $payload['pushed_at'] ?? null; + + if ($value === null) { + $properties['pushed_at'] = null; + goto after_pushed_at; + } + + $properties['pushed_at'] = $value; + + after_pushed_at: + + $value = $payload['releases_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'releases_url'; + goto after_releases_url; + } + + $properties['releases_url'] = $value; + + after_releases_url: + + $value = $payload['role_name'] ?? null; + + if ($value === null) { + $missingFields[] = 'role_name'; + goto after_role_name; + } + + $properties['role_name'] = $value; + + after_role_name: + + $value = $payload['size'] ?? null; + + if ($value === null) { + $missingFields[] = 'size'; + goto after_size; + } + + $properties['size'] = $value; + + after_size: + + $value = $payload['ssh_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'ssh_url'; + goto after_ssh_url; + } + + $properties['ssh_url'] = $value; + + after_ssh_url: + + $value = $payload['stargazers'] ?? null; + + if ($value === null) { + $missingFields[] = 'stargazers'; + goto after_stargazers; + } + + $properties['stargazers'] = $value; + + after_stargazers: + + $value = $payload['stargazers_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'stargazers_count'; + goto after_stargazers_count; + } + + $properties['stargazers_count'] = $value; + + after_stargazers_count: + + $value = $payload['stargazers_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'stargazers_url'; + goto after_stargazers_url; + } + + $properties['stargazers_url'] = $value; + + after_stargazers_url: + + $value = $payload['statuses_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'statuses_url'; + goto after_statuses_url; + } + + $properties['statuses_url'] = $value; + + after_statuses_url: + + $value = $payload['subscribers_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscribers_url'; + goto after_subscribers_url; + } + + $properties['subscribers_url'] = $value; + + after_subscribers_url: + + $value = $payload['subscription_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscription_url'; + goto after_subscription_url; + } + + $properties['subscription_url'] = $value; + + after_subscription_url: + + $value = $payload['svn_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'svn_url'; + goto after_svn_url; + } + + $properties['svn_url'] = $value; + + after_svn_url: + + $value = $payload['tags_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'tags_url'; + goto after_tags_url; + } + + $properties['tags_url'] = $value; + + after_tags_url: + + $value = $payload['teams_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'teams_url'; + goto after_teams_url; + } + + $properties['teams_url'] = $value; + + after_teams_url: + + $value = $payload['topics'] ?? null; + + if ($value === null) { + $missingFields[] = 'topics'; + goto after_topics; + } + + $properties['topics'] = $value; + + after_topics: + + $value = $payload['trees_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'trees_url'; + goto after_trees_url; + } + + $properties['trees_url'] = $value; + + after_trees_url: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'updated_at'; + goto after_updated_at; + } + + $properties['updated_at'] = $value; + + after_updated_at: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['visibility'] ?? null; + + if ($value === null) { + $missingFields[] = 'visibility'; + goto after_visibility; + } + + $properties['visibility'] = $value; + + after_visibility: + + $value = $payload['watchers'] ?? null; + + if ($value === null) { + $missingFields[] = 'watchers'; + goto after_watchers; + } + + $properties['watchers'] = $value; + + after_watchers: + + $value = $payload['watchers_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'watchers_count'; + goto after_watchers_count; + } + + $properties['watchers_count'] = $value; + + after_watchers_count: + + $value = $payload['web_commit_signoff_required'] ?? null; + + if ($value === null) { + $missingFields[] = 'web_commit_signoff_required'; + goto after_web_commit_signoff_required; + } + + $properties['web_commit_signoff_required'] = $value; + + after_web_commit_signoff_required: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDiscussionTransferred\Changes\NewRepository', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookDiscussionTransferred\Changes\NewRepository::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookDiscussionTransferred\Changes\NewRepository(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDiscussionTransferred\Changes\NewRepository', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner(array $payload): \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['login'] ?? null; + + if ($value === null) { + $missingFields[] = 'login'; + goto after_login; + } + + $properties['login'] = $value; + + after_login: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['avatar_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'avatar_url'; + goto after_avatar_url; + } + + $properties['avatar_url'] = $value; + + after_avatar_url: + + $value = $payload['gravatar_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'gravatar_id'; + goto after_gravatar_id; + } + + $properties['gravatar_id'] = $value; + + after_gravatar_id: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } + + $properties['html_url'] = $value; + + after_html_url: + + $value = $payload['followers_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'followers_url'; + goto after_followers_url; + } + + $properties['followers_url'] = $value; + + after_followers_url: + + $value = $payload['following_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'following_url'; + goto after_following_url; + } + + $properties['following_url'] = $value; + + after_following_url: + + $value = $payload['gists_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'gists_url'; + goto after_gists_url; + } + + $properties['gists_url'] = $value; + + after_gists_url: + + $value = $payload['starred_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'starred_url'; + goto after_starred_url; + } + + $properties['starred_url'] = $value; + + after_starred_url: + + $value = $payload['subscriptions_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscriptions_url'; + goto after_subscriptions_url; + } + + $properties['subscriptions_url'] = $value; + + after_subscriptions_url: + + $value = $payload['organizations_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'organizations_url'; + goto after_organizations_url; + } + + $properties['organizations_url'] = $value; + + after_organizations_url: + + $value = $payload['repos_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'repos_url'; + goto after_repos_url; + } + + $properties['repos_url'] = $value; + + after_repos_url: + + $value = $payload['events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'events_url'; + goto after_events_url; + } + + $properties['events_url'] = $value; + + after_events_url: + + $value = $payload['received_events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'received_events_url'; + goto after_received_events_url; + } + + $properties['received_events_url'] = $value; + + after_received_events_url: + + $value = $payload['type'] ?? null; + + if ($value === null) { + $missingFields[] = 'type'; + goto after_type; + } + + $properties['type'] = $value; + + after_type: + + $value = $payload['site_admin'] ?? null; + + if ($value === null) { + $missingFields[] = 'site_admin'; + goto after_site_admin; + } + + $properties['site_admin'] = $value; + + after_site_admin: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Permissions(array $payload): \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['admin'] ?? null; + + if ($value === null) { + $missingFields[] = 'admin'; + goto after_admin; + } + + $properties['admin'] = $value; + + after_admin: + + $value = $payload['maintain'] ?? null; + + if ($value === null) { + $missingFields[] = 'maintain'; + goto after_maintain; + } + + $properties['maintain'] = $value; + + after_maintain: + + $value = $payload['push'] ?? null; + + if ($value === null) { + $missingFields[] = 'push'; + goto after_push; + } + + $properties['push'] = $value; + + after_push: + + $value = $payload['triage'] ?? null; + + if ($value === null) { + $missingFields[] = 'triage'; + goto after_triage; + } + + $properties['triage'] = $value; + + after_triage: + + $value = $payload['pull'] ?? null; + + if ($value === null) { + $missingFields[] = 'pull'; + goto after_pull; + } + + $properties['pull'] = $value; + + after_pull: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionTransferred⚡️Changes⚡️NewRepository⚡️License(array $payload): \ApiClients\Client\Github\Schema\WebhookDiscussionTransferred\Changes\NewRepository\License + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['key'] ?? null; + + if ($value === null) { + $missingFields[] = 'key'; + goto after_key; + } + + $properties['key'] = $value; + + after_key: + + $value = $payload['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['spdx_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'spdx_id'; + goto after_spdx_id; + } + + $properties['spdx_id'] = $value; + + after_spdx_id: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDiscussionTransferred\Changes\NewRepository\License', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookDiscussionTransferred\Changes\NewRepository\License::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookDiscussionTransferred\Changes\NewRepository\License(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDiscussionTransferred\Changes\NewRepository\License', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionTransferred⚡️Changes⚡️NewRepository⚡️Permissions(array $payload): \ApiClients\Client\Github\Schema\WebhookDiscussionTransferred\Changes\NewRepository\Permissions + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['admin'] ?? null; + + if ($value === null) { + $missingFields[] = 'admin'; + goto after_admin; + } + + $properties['admin'] = $value; + + after_admin: + + $value = $payload['maintain'] ?? null; + + if ($value === null) { + $missingFields[] = 'maintain'; + goto after_maintain; + } + + $properties['maintain'] = $value; + + after_maintain: + + $value = $payload['pull'] ?? null; + + if ($value === null) { + $missingFields[] = 'pull'; + goto after_pull; + } + + $properties['pull'] = $value; + + after_pull: + + $value = $payload['push'] ?? null; + + if ($value === null) { + $missingFields[] = 'push'; + goto after_push; + } + + $properties['push'] = $value; + + after_push: + + $value = $payload['triage'] ?? null; + + if ($value === null) { + $missingFields[] = 'triage'; + goto after_triage; + } + + $properties['triage'] = $value; + + after_triage: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDiscussionTransferred\Changes\NewRepository\Permissions', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookDiscussionTransferred\Changes\NewRepository\Permissions::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookDiscussionTransferred\Changes\NewRepository\Permissions(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDiscussionTransferred\Changes\NewRepository\Permissions', $exception, stack: $this->hydrationStack); + } + } + + public function serializeObject(object $object): mixed + { + try { + $className = get_class($object); + + return match($className) { + 'array' => $this->serializeValuearray($object), + 'Ramsey\Uuid\UuidInterface' => $this->serializeValueRamsey⚡️Uuid⚡️UuidInterface($object), + 'DateTime' => $this->serializeValueDateTime($object), + 'DateTimeImmutable' => $this->serializeValueDateTimeImmutable($object), + 'DateTimeInterface' => $this->serializeValueDateTimeInterface($object), + 'ApiClients\Client\Github\Schema\WebhookDiscussionAnswered' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionAnswered($object), + 'ApiClients\Client\Github\Schema\WebhookDiscussionCategoryChanged' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionCategoryChanged($object), + 'ApiClients\Client\Github\Schema\WebhookDiscussionCreated' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionCreated($object), + 'ApiClients\Client\Github\Schema\WebhookDiscussionDeleted' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionDeleted($object), + 'ApiClients\Client\Github\Schema\WebhookDiscussionEdited' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionEdited($object), + 'ApiClients\Client\Github\Schema\WebhookDiscussionLabeled' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionLabeled($object), + 'ApiClients\Client\Github\Schema\WebhookDiscussionLocked' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionLocked($object), + 'ApiClients\Client\Github\Schema\WebhookDiscussionPinned' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionPinned($object), + 'ApiClients\Client\Github\Schema\WebhookDiscussionTransferred' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionTransferred($object), + 'ApiClients\Client\Github\Schema\WebhookDiscussionUnanswered' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionUnanswered($object), + 'ApiClients\Client\Github\Schema\WebhookDiscussionUnlabeled' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionUnlabeled($object), + 'ApiClients\Client\Github\Schema\WebhookDiscussionUnlocked' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionUnlocked($object), + 'ApiClients\Client\Github\Schema\WebhookDiscussionUnpinned' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionUnpinned($object), + default => throw new \LogicException('No serialization defined for $className'), + }; + } catch (\Throwable $exception) { + throw UnableToSerializeObject::dueToError($className, $exception); + } + } + + + private function serializeValuearray(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeArrayItems(...array ( +)); + } + + return $serializer->serialize($value, $this); + } + + + private function serializeValueRamsey⚡️Uuid⚡️UuidInterface(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeUuidToString(...array ( +)); + } + + return $serializer->serialize($value, $this); + } + + + private function serializeValueDateTime(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeDateTime(...array ( +)); + } + + return $serializer->serialize($value, $this); + } + + + private function serializeValueDateTimeImmutable(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeDateTime(...array ( +)); + } + + return $serializer->serialize($value, $this); + } + + + private function serializeValueDateTimeInterface(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeDateTime(...array ( +)); + } + + return $serializer->serialize($value, $this); + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionAnswered(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookDiscussionAnswered); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $answer = $object->answer; + + if ($answer === null) { + goto after_answer; + } + $answer = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionAnswered⚡️Answer($answer); + after_answer: $result['answer'] = $answer; + + + $discussion = $object->discussion; + + if ($discussion === null) { + goto after_discussion; + } + $discussion = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion($discussion); + after_discussion: $result['discussion'] = $discussion; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionCategoryChanged(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookDiscussionCategoryChanged); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $changes = $object->changes; + + if ($changes === null) { + goto after_changes; + } + $changes = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionCategoryChanged⚡️Changes($changes); + after_changes: $result['changes'] = $changes; + + + $discussion = $object->discussion; + + if ($discussion === null) { + goto after_discussion; + } + $discussion = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion($discussion); + after_discussion: $result['discussion'] = $discussion; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionCreated(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookDiscussionCreated); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $discussion = $object->discussion; + + if ($discussion === null) { + goto after_discussion; + } + after_discussion: $result['discussion'] = $discussion; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionDeleted(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookDiscussionDeleted); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $discussion = $object->discussion; + + if ($discussion === null) { + goto after_discussion; + } + $discussion = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion($discussion); + after_discussion: $result['discussion'] = $discussion; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionEdited(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookDiscussionEdited); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $changes = $object->changes; + $changes = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionEdited⚡️Changes($changes); + after_changes: $result['changes'] = $changes; + + + $discussion = $object->discussion; + + if ($discussion === null) { + goto after_discussion; + } + $discussion = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion($discussion); + after_discussion: $result['discussion'] = $discussion; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionLabeled(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookDiscussionLabeled); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $discussion = $object->discussion; + + if ($discussion === null) { + goto after_discussion; + } + $discussion = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionLabeled⚡️Discussion($discussion); + after_discussion: $result['discussion'] = $discussion; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $label = $object->label; + + if ($label === null) { + goto after_label; + } + $label = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionLabeled⚡️Label($label); + after_label: $result['label'] = $label; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionLocked(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookDiscussionLocked); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $discussion = $object->discussion; + + if ($discussion === null) { + goto after_discussion; + } + $discussion = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion($discussion); + after_discussion: $result['discussion'] = $discussion; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionPinned(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookDiscussionPinned); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $discussion = $object->discussion; + + if ($discussion === null) { + goto after_discussion; + } + $discussion = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion($discussion); + after_discussion: $result['discussion'] = $discussion; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + - return $serializer->serialize($value, $this); - } + $sender = $object->sender; + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; - private function serializeValueRamsey⚡️Uuid⚡️UuidInterface(mixed $value): mixed + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionTransferred(mixed $object): mixed { - static $serializer; + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookDiscussionTransferred); + $result = []; - if ($serializer === null) { - $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeUuidToString(...array ( -)); + $action = $object->action; + + if ($action === null) { + goto after_action; } + after_action: $result['action'] = $action; + - return $serializer->serialize($value, $this); - } + $changes = $object->changes; + if ($changes === null) { + goto after_changes; + } + $changes = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionTransferred⚡️Changes($changes); + after_changes: $result['changes'] = $changes; - private function serializeValueDateTime(mixed $value): mixed - { - static $serializer; - if ($serializer === null) { - $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeDateTime(...array ( -)); + $discussion = $object->discussion; + + if ($discussion === null) { + goto after_discussion; } + $discussion = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion($discussion); + after_discussion: $result['discussion'] = $discussion; + - return $serializer->serialize($value, $this); - } + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; - private function serializeValueDateTimeImmutable(mixed $value): mixed + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionUnanswered(mixed $object): mixed { - static $serializer; + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookDiscussionUnanswered); + $result = []; - if ($serializer === null) { - $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeDateTime(...array ( -)); + $action = $object->action; + + if ($action === null) { + goto after_action; } + after_action: $result['action'] = $action; + - return $serializer->serialize($value, $this); + $discussion = $object->discussion; + + if ($discussion === null) { + goto after_discussion; + } + $discussion = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion($discussion); + after_discussion: $result['discussion'] = $discussion; + + + $old_answer = $object->old_answer; + + if ($old_answer === null) { + goto after_old_answer; + } + $old_answer = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionAnswered⚡️Answer($old_answer); + after_old_answer: $result['old_answer'] = $old_answer; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; } + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionUnlabeled(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookDiscussionUnlabeled); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; - private function serializeValueDateTimeInterface(mixed $value): mixed + + $discussion = $object->discussion; + + if ($discussion === null) { + goto after_discussion; + } + $discussion = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion($discussion); + after_discussion: $result['discussion'] = $discussion; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $label = $object->label; + + if ($label === null) { + goto after_label; + } + $label = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionLabeled⚡️Label($label); + after_label: $result['label'] = $label; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionUnlocked(mixed $object): mixed { - static $serializer; + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookDiscussionUnlocked); + $result = []; - if ($serializer === null) { - $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeDateTime(...array ( -)); + $action = $object->action; + + if ($action === null) { + goto after_action; } + after_action: $result['action'] = $action; + - return $serializer->serialize($value, $this); + $discussion = $object->discussion; + + if ($discussion === null) { + goto after_discussion; + } + $discussion = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion($discussion); + after_discussion: $result['discussion'] = $discussion; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; } diff --git a/src/Hydrator/WebHook/DiscussionComment.php b/src/Hydrator/WebHook/DiscussionComment.php index 3b15b2ed22..19195e2b75 100644 --- a/src/Hydrator/WebHook/DiscussionComment.php +++ b/src/Hydrator/WebHook/DiscussionComment.php @@ -23,8 +23,9 @@ public function __construct() {} public function hydrateObject(string $className, array $payload): object { return match($className) { - 'ApiClients\Client\Github\Schema\WebhookDiscussionCommentEdited' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionCommentEdited($payload), - 'ApiClients\Client\Github\Schema\WebhookDiscussionCommentEdited\Changes' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionCommentEdited⚡️Changes($payload), + 'ApiClients\Client\Github\Schema\WebhookDiscussionCommentCreated' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionCommentCreated($payload), + 'ApiClients\Client\Github\Schema\WebhookDiscussionCommentDeleted' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionCommentDeleted($payload), + 'ApiClients\Client\Github\Schema\WebhookDiscussionCommentEdited' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionCommentEdited($payload), 'ApiClients\Client\Github\Schema\WebhookDiscussionCommentCreated\Comment' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionCommentCreated⚡️Comment($payload), 'ApiClients\Client\Github\Schema\Discussion' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion($payload), 'ApiClients\Client\Github\Schema\Enterprise' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($payload), @@ -32,12 +33,13 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\Github\Schema\OrganizationSimple' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($payload), 'ApiClients\Client\Github\Schema\Repository' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($payload), 'ApiClients\Client\Github\Schema\SimpleUser' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($payload), - 'ApiClients\Client\Github\Schema\WebhookDiscussionCommentEdited\Changes\Body' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionCommentEdited⚡️Changes⚡️Body($payload), + 'ApiClients\Client\Github\Schema\WebhookDiscussionCommentEdited\Changes' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionCommentEdited⚡️Changes($payload), 'ApiClients\Client\Github\Schema\Discussion\Reactions' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️Reactions($payload), 'ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($payload), 'ApiClients\Client\Github\Schema\Discussion\Category' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️Category($payload), 'ApiClients\Client\Github\Schema\Repository\Permissions' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️Permissions($payload), 'ApiClients\Client\Github\Schema\Repository\TemplateRepository' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository($payload), + 'ApiClients\Client\Github\Schema\WebhookDiscussionCommentEdited\Changes\Body' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionCommentEdited⚡️Changes⚡️Body($payload), 'ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner($payload), 'ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Permissions($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), @@ -45,6 +47,352 @@ public function hydrateObject(string $className, array $payload): object } + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionCommentCreated(array $payload): \ApiClients\Client\Github\Schema\WebhookDiscussionCommentCreated + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; + + if ($value === null) { + $missingFields[] = 'action'; + goto after_action; + } + + $properties['action'] = $value; + + after_action: + + $value = $payload['comment'] ?? null; + + if ($value === null) { + $missingFields[] = 'comment'; + goto after_comment; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'comment'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionCommentCreated⚡️Comment($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['comment'] = $value; + + after_comment: + + $value = $payload['discussion'] ?? null; + + if ($value === null) { + $missingFields[] = 'discussion'; + goto after_discussion; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'discussion'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['discussion'] = $value; + + after_discussion: + + $value = $payload['enterprise'] ?? null; + + if ($value === null) { + $missingFields[] = 'enterprise'; + goto after_enterprise; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['enterprise'] = $value; + + after_enterprise: + + $value = $payload['installation'] ?? null; + + if ($value === null) { + $missingFields[] = 'installation'; + goto after_installation; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; + + after_installation: + + $value = $payload['organization'] ?? null; + + if ($value === null) { + $missingFields[] = 'organization'; + goto after_organization; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; + + after_organization: + + $value = $payload['repository'] ?? null; + + if ($value === null) { + $missingFields[] = 'repository'; + goto after_repository; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repository'] = $value; + + after_repository: + + $value = $payload['sender'] ?? null; + + if ($value === null) { + $missingFields[] = 'sender'; + goto after_sender; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; + + after_sender: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDiscussionCommentCreated', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookDiscussionCommentCreated::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookDiscussionCommentCreated(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDiscussionCommentCreated', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionCommentDeleted(array $payload): \ApiClients\Client\Github\Schema\WebhookDiscussionCommentDeleted + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; + + if ($value === null) { + $missingFields[] = 'action'; + goto after_action; + } + + $properties['action'] = $value; + + after_action: + + $value = $payload['comment'] ?? null; + + if ($value === null) { + $missingFields[] = 'comment'; + goto after_comment; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'comment'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionCommentCreated⚡️Comment($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['comment'] = $value; + + after_comment: + + $value = $payload['discussion'] ?? null; + + if ($value === null) { + $missingFields[] = 'discussion'; + goto after_discussion; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'discussion'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['discussion'] = $value; + + after_discussion: + + $value = $payload['enterprise'] ?? null; + + if ($value === null) { + $missingFields[] = 'enterprise'; + goto after_enterprise; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['enterprise'] = $value; + + after_enterprise: + + $value = $payload['installation'] ?? null; + + if ($value === null) { + $missingFields[] = 'installation'; + goto after_installation; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; + + after_installation: + + $value = $payload['organization'] ?? null; + + if ($value === null) { + $missingFields[] = 'organization'; + goto after_organization; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; + + after_organization: + + $value = $payload['repository'] ?? null; + + if ($value === null) { + $missingFields[] = 'repository'; + goto after_repository; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repository'] = $value; + + after_repository: + + $value = $payload['sender'] ?? null; + + if ($value === null) { + $missingFields[] = 'sender'; + goto after_sender; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; + + after_sender: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDiscussionCommentDeleted', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookDiscussionCommentDeleted::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookDiscussionCommentDeleted(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDiscussionCommentDeleted', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionCommentEdited(array $payload): \ApiClients\Client\Github\Schema\WebhookDiscussionCommentEdited { $properties = []; @@ -238,48 +586,6 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionCommentEdited⚡️Changes(array $payload): \ApiClients\Client\Github\Schema\WebhookDiscussionCommentEdited\Changes - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['body'] ?? null; - - if ($value === null) { - $missingFields[] = 'body'; - goto after_body; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'body'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionCommentEdited⚡️Changes⚡️Body($value); - } finally { - array_pop($this->hydrationStack); - } - } - - $properties['body'] = $value; - - after_body: - - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDiscussionCommentEdited\Changes', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookDiscussionCommentEdited\Changes::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\WebhookDiscussionCommentEdited\Changes(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDiscussionCommentEdited\Changes', $exception, stack: $this->hydrationStack); - } - } - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionCommentCreated⚡️Comment(array $payload): \ApiClients\Client\Github\Schema\WebhookDiscussionCommentCreated\Comment { $properties = []; @@ -2473,35 +2779,44 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Simp } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionCommentEdited⚡️Changes⚡️Body(array $payload): \ApiClients\Client\Github\Schema\WebhookDiscussionCommentEdited\Changes\Body + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionCommentEdited⚡️Changes(array $payload): \ApiClients\Client\Github\Schema\WebhookDiscussionCommentEdited\Changes { $properties = []; $missingFields = []; try { - $value = $payload['from'] ?? null; + $value = $payload['body'] ?? null; if ($value === null) { - $missingFields[] = 'from'; - goto after_from; + $missingFields[] = 'body'; + goto after_body; } - $properties['from'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'body'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionCommentEdited⚡️Changes⚡️Body($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['body'] = $value; - after_from: + after_body: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDiscussionCommentEdited\Changes\Body', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDiscussionCommentEdited\Changes', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookDiscussionCommentEdited\Changes\Body::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookDiscussionCommentEdited\Changes::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\WebhookDiscussionCommentEdited\Changes\Body(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookDiscussionCommentEdited\Changes(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDiscussionCommentEdited\Changes\Body', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDiscussionCommentEdited\Changes', $exception, stack: $this->hydrationStack); } } @@ -4097,6 +4412,39 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repo } + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionCommentEdited⚡️Changes⚡️Body(array $payload): \ApiClients\Client\Github\Schema\WebhookDiscussionCommentEdited\Changes\Body + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['from'] ?? null; + + if ($value === null) { + $missingFields[] = 'from'; + goto after_from; + } + + $properties['from'] = $value; + + after_from: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDiscussionCommentEdited\Changes\Body', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookDiscussionCommentEdited\Changes\Body::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookDiscussionCommentEdited\Changes\Body(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDiscussionCommentEdited\Changes\Body', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner(array $payload): \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner { $properties = []; @@ -4404,6 +4752,8 @@ public function serializeObject(object $object): mixed 'DateTime' => $this->serializeValueDateTime($object), 'DateTimeImmutable' => $this->serializeValueDateTimeImmutable($object), 'DateTimeInterface' => $this->serializeValueDateTimeInterface($object), + 'ApiClients\Client\Github\Schema\WebhookDiscussionCommentCreated' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionCommentCreated($object), + 'ApiClients\Client\Github\Schema\WebhookDiscussionCommentDeleted' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionCommentDeleted($object), 'ApiClients\Client\Github\Schema\WebhookDiscussionCommentEdited' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionCommentEdited($object), default => throw new \LogicException('No serialization defined for $className'), }; @@ -4478,6 +4828,142 @@ private function serializeValueDateTimeInterface(mixed $value): mixed } + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionCommentCreated(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookDiscussionCommentCreated); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $comment = $object->comment; + + if ($comment === null) { + goto after_comment; + } + $comment = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionCommentCreated⚡️Comment($comment); + after_comment: $result['comment'] = $comment; + + + $discussion = $object->discussion; + + if ($discussion === null) { + goto after_discussion; + } + $discussion = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion($discussion); + after_discussion: $result['discussion'] = $discussion; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionCommentDeleted(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookDiscussionCommentDeleted); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $comment = $object->comment; + + if ($comment === null) { + goto after_comment; + } + $comment = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionCommentCreated⚡️Comment($comment); + after_comment: $result['comment'] = $comment; + + + $discussion = $object->discussion; + + if ($discussion === null) { + goto after_discussion; + } + $discussion = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion($discussion); + after_discussion: $result['discussion'] = $discussion; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionCommentEdited(mixed $object): mixed { \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookDiscussionCommentEdited); diff --git a/src/Hydrator/WebHook/Installation.php b/src/Hydrator/WebHook/Installation.php index 2ce8849795..56c7b430fc 100644 --- a/src/Hydrator/WebHook/Installation.php +++ b/src/Hydrator/WebHook/Installation.php @@ -23,11 +23,16 @@ public function __construct() {} public function hydrateObject(string $className, array $payload): object { return match($className) { - 'ApiClients\Client\Github\Schema\WebhookInstallationUnsuspend' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookInstallationUnsuspend($payload), + 'ApiClients\Client\Github\Schema\WebhookInstallationCreated' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookInstallationCreated($payload), + 'ApiClients\Client\Github\Schema\WebhookInstallationDeleted' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookInstallationDeleted($payload), + 'ApiClients\Client\Github\Schema\WebhookInstallationNewPermissionsAccepted' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookInstallationNewPermissionsAccepted($payload), + 'ApiClients\Client\Github\Schema\WebhookInstallationSuspend' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookInstallationSuspend($payload), + 'ApiClients\Client\Github\Schema\WebhookInstallationUnsuspend' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookInstallationUnsuspend($payload), 'ApiClients\Client\Github\Schema\Enterprise' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($payload), 'ApiClients\Client\Github\Schema\Installation' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Installation($payload), 'ApiClients\Client\Github\Schema\OrganizationSimple' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($payload), 'ApiClients\Client\Github\Schema\Repository' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($payload), + 'ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($payload), 'ApiClients\Client\Github\Schema\SimpleUser' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($payload), 'ApiClients\Client\Github\Schema\Installation\Account' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Installation⚡️Account($payload), 'ApiClients\Client\Github\Schema\AppPermissions' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️AppPermissions($payload), @@ -40,7 +45,7 @@ public function hydrateObject(string $className, array $payload): object } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookInstallationUnsuspend(array $payload): \ApiClients\Client\Github\Schema\WebhookInstallationUnsuspend + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookInstallationCreated(array $payload): \ApiClients\Client\Github\Schema\WebhookInstallationCreated { $properties = []; $missingFields = []; @@ -151,10 +156,19 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh $value = $payload['requester'] ?? null; if ($value === null) { - $properties['requester'] = null; + $missingFields[] = 'requester'; goto after_requester; } + if (is_array($value)) { + try { + $this->hydrationStack[] = 'requester'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + $properties['requester'] = $value; after_requester: @@ -180,573 +194,680 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh after_sender: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookInstallationUnsuspend', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookInstallationCreated', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookInstallationUnsuspend::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookInstallationCreated::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\WebhookInstallationUnsuspend(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookInstallationCreated(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookInstallationUnsuspend', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookInstallationCreated', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise(array $payload): \ApiClients\Client\Github\Schema\Enterprise + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookInstallationDeleted(array $payload): \ApiClients\Client\Github\Schema\WebhookInstallationDeleted { $properties = []; $missingFields = []; try { - $value = $payload['description'] ?? null; + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'description'; - goto after_description; + $missingFields[] = 'action'; + goto after_action; } - $properties['description'] = $value; + $properties['action'] = $value; - after_description: + after_action: - $value = $payload['html_url'] ?? null; + $value = $payload['enterprise'] ?? null; if ($value === null) { - $missingFields[] = 'html_url'; - goto after_html_url; + $missingFields[] = 'enterprise'; + goto after_enterprise; } - $properties['html_url'] = $value; - - after_html_url: - - $value = $payload['website_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'website_url'; - goto after_website_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['website_url'] = $value; + $properties['enterprise'] = $value; - after_website_url: + after_enterprise: - $value = $payload['id'] ?? null; + $value = $payload['installation'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'installation'; + goto after_installation; } - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Installation($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['node_id'] = $value; + $properties['installation'] = $value; - after_node_id: + after_installation: - $value = $payload['name'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'name'; - goto after_name; + $missingFields[] = 'organization'; + goto after_organization; } - $properties['name'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; - after_name: + after_organization: - $value = $payload['slug'] ?? null; + $value = $payload['repositories'] ?? null; if ($value === null) { - $missingFields[] = 'slug'; - goto after_slug; + $missingFields[] = 'repositories'; + goto after_repositories; } - $properties['slug'] = $value; + $properties['repositories'] = $value; - after_slug: + after_repositories: - $value = $payload['created_at'] ?? null; + $value = $payload['repository'] ?? null; if ($value === null) { - $missingFields[] = 'created_at'; - goto after_created_at; + $missingFields[] = 'repository'; + goto after_repository; } - $properties['created_at'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repository'] = $value; - after_created_at: + after_repository: - $value = $payload['updated_at'] ?? null; + $value = $payload['requester'] ?? null; if ($value === null) { - $missingFields[] = 'updated_at'; - goto after_updated_at; + $properties['requester'] = null; + goto after_requester; } - $properties['updated_at'] = $value; + $properties['requester'] = $value; - after_updated_at: + after_requester: - $value = $payload['avatar_url'] ?? null; + $value = $payload['sender'] ?? null; if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatar_url; + $missingFields[] = 'sender'; + goto after_sender; } - $properties['avatar_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; - after_avatar_url: + after_sender: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Enterprise', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookInstallationDeleted', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Enterprise::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookInstallationDeleted::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\Enterprise(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookInstallationDeleted(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Enterprise', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookInstallationDeleted', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Installation(array $payload): \ApiClients\Client\Github\Schema\Installation + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookInstallationNewPermissionsAccepted(array $payload): \ApiClients\Client\Github\Schema\WebhookInstallationNewPermissionsAccepted { $properties = []; $missingFields = []; try { - $value = $payload['id'] ?? null; + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'action'; + goto after_action; } - $properties['id'] = $value; + $properties['action'] = $value; - after_id: + after_action: - $value = $payload['account'] ?? null; + $value = $payload['enterprise'] ?? null; if ($value === null) { - $missingFields[] = 'account'; - goto after_account; + $missingFields[] = 'enterprise'; + goto after_enterprise; } if (is_array($value)) { try { - $this->hydrationStack[] = 'account'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Installation⚡️Account($value); + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); } finally { array_pop($this->hydrationStack); } } - $properties['account'] = $value; + $properties['enterprise'] = $value; - after_account: + after_enterprise: - $value = $payload['repository_selection'] ?? null; + $value = $payload['installation'] ?? null; if ($value === null) { - $missingFields[] = 'repository_selection'; - goto after_repository_selection; + $missingFields[] = 'installation'; + goto after_installation; } - $properties['repository_selection'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Installation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; - after_repository_selection: + after_installation: - $value = $payload['access_tokens_url'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'access_tokens_url'; - goto after_access_tokens_url; + $missingFields[] = 'organization'; + goto after_organization; } - $properties['access_tokens_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; - after_access_tokens_url: + after_organization: - $value = $payload['repositories_url'] ?? null; + $value = $payload['repositories'] ?? null; if ($value === null) { - $missingFields[] = 'repositories_url'; - goto after_repositories_url; + $missingFields[] = 'repositories'; + goto after_repositories; } - $properties['repositories_url'] = $value; + $properties['repositories'] = $value; - after_repositories_url: + after_repositories: - $value = $payload['html_url'] ?? null; + $value = $payload['repository'] ?? null; if ($value === null) { - $missingFields[] = 'html_url'; - goto after_html_url; + $missingFields[] = 'repository'; + goto after_repository; } - $properties['html_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repository'] = $value; - after_html_url: + after_repository: - $value = $payload['app_id'] ?? null; + $value = $payload['requester'] ?? null; if ($value === null) { - $missingFields[] = 'app_id'; - goto after_app_id; + $properties['requester'] = null; + goto after_requester; } - $properties['app_id'] = $value; + $properties['requester'] = $value; - after_app_id: + after_requester: - $value = $payload['target_id'] ?? null; + $value = $payload['sender'] ?? null; if ($value === null) { - $missingFields[] = 'target_id'; - goto after_target_id; + $missingFields[] = 'sender'; + goto after_sender; } - $properties['target_id'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; - after_target_id: + after_sender: - $value = $payload['target_type'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookInstallationNewPermissionsAccepted', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookInstallationNewPermissionsAccepted::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookInstallationNewPermissionsAccepted(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookInstallationNewPermissionsAccepted', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookInstallationSuspend(array $payload): \ApiClients\Client\Github\Schema\WebhookInstallationSuspend + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'target_type'; - goto after_target_type; + $missingFields[] = 'action'; + goto after_action; } - $properties['target_type'] = $value; + $properties['action'] = $value; - after_target_type: + after_action: - $value = $payload['permissions'] ?? null; + $value = $payload['enterprise'] ?? null; if ($value === null) { - $missingFields[] = 'permissions'; - goto after_permissions; + $missingFields[] = 'enterprise'; + goto after_enterprise; } if (is_array($value)) { try { - $this->hydrationStack[] = 'permissions'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️AppPermissions($value); + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); } finally { array_pop($this->hydrationStack); } } - $properties['permissions'] = $value; + $properties['enterprise'] = $value; - after_permissions: + after_enterprise: - $value = $payload['events'] ?? null; + $value = $payload['installation'] ?? null; if ($value === null) { - $missingFields[] = 'events'; - goto after_events; + $missingFields[] = 'installation'; + goto after_installation; } - $properties['events'] = $value; - - after_events: - - $value = $payload['created_at'] ?? null; - - if ($value === null) { - $missingFields[] = 'created_at'; - goto after_created_at; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Installation($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['created_at'] = $value; + $properties['installation'] = $value; - after_created_at: + after_installation: - $value = $payload['updated_at'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'updated_at'; - goto after_updated_at; + $missingFields[] = 'organization'; + goto after_organization; } - $properties['updated_at'] = $value; - - after_updated_at: - - $value = $payload['single_file_name'] ?? null; - - if ($value === null) { - $missingFields[] = 'single_file_name'; - goto after_single_file_name; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['single_file_name'] = $value; + $properties['organization'] = $value; - after_single_file_name: + after_organization: - $value = $payload['has_multiple_single_files'] ?? null; + $value = $payload['repositories'] ?? null; if ($value === null) { - $missingFields[] = 'has_multiple_single_files'; - goto after_has_multiple_single_files; + $missingFields[] = 'repositories'; + goto after_repositories; } - $properties['has_multiple_single_files'] = $value; + $properties['repositories'] = $value; - after_has_multiple_single_files: + after_repositories: - $value = $payload['single_file_paths'] ?? null; + $value = $payload['repository'] ?? null; if ($value === null) { - $missingFields[] = 'single_file_paths'; - goto after_single_file_paths; + $missingFields[] = 'repository'; + goto after_repository; } - $properties['single_file_paths'] = $value; - - after_single_file_paths: - - $value = $payload['app_slug'] ?? null; - - if ($value === null) { - $missingFields[] = 'app_slug'; - goto after_app_slug; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['app_slug'] = $value; + $properties['repository'] = $value; - after_app_slug: + after_repository: - $value = $payload['suspended_by'] ?? null; + $value = $payload['requester'] ?? null; if ($value === null) { - $properties['suspended_by'] = null; - goto after_suspended_by; + $properties['requester'] = null; + goto after_requester; } - $properties['suspended_by'] = $value; + $properties['requester'] = $value; - after_suspended_by: + after_requester: - $value = $payload['suspended_at'] ?? null; + $value = $payload['sender'] ?? null; if ($value === null) { - $missingFields[] = 'suspended_at'; - goto after_suspended_at; + $missingFields[] = 'sender'; + goto after_sender; } - $properties['suspended_at'] = $value; - - after_suspended_at: - - $value = $payload['contact_email'] ?? null; - - if ($value === null) { - $missingFields[] = 'contact_email'; - goto after_contact_email; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['contact_email'] = $value; + $properties['sender'] = $value; - after_contact_email: + after_sender: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Installation', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookInstallationSuspend', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Installation::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookInstallationSuspend::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\Installation(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookInstallationSuspend(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Installation', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookInstallationSuspend', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple(array $payload): \ApiClients\Client\Github\Schema\OrganizationSimple + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookInstallationUnsuspend(array $payload): \ApiClients\Client\Github\Schema\WebhookInstallationUnsuspend { $properties = []; $missingFields = []; try { - $value = $payload['login'] ?? null; + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'login'; - goto after_login; + $missingFields[] = 'action'; + goto after_action; } - $properties['login'] = $value; + $properties['action'] = $value; - after_login: + after_action: - $value = $payload['id'] ?? null; + $value = $payload['enterprise'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'enterprise'; + goto after_enterprise; } - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['node_id'] = $value; + $properties['enterprise'] = $value; - after_node_id: + after_enterprise: - $value = $payload['url'] ?? null; + $value = $payload['installation'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $missingFields[] = 'installation'; + goto after_installation; } - $properties['url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Installation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; - after_url: + after_installation: - $value = $payload['repos_url'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_repos_url; + $missingFields[] = 'organization'; + goto after_organization; } - $properties['repos_url'] = $value; - - after_repos_url: - - $value = $payload['events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'events_url'; - goto after_events_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['events_url'] = $value; + $properties['organization'] = $value; - after_events_url: + after_organization: - $value = $payload['hooks_url'] ?? null; + $value = $payload['repositories'] ?? null; if ($value === null) { - $missingFields[] = 'hooks_url'; - goto after_hooks_url; + $missingFields[] = 'repositories'; + goto after_repositories; } - $properties['hooks_url'] = $value; + $properties['repositories'] = $value; - after_hooks_url: + after_repositories: - $value = $payload['issues_url'] ?? null; + $value = $payload['repository'] ?? null; if ($value === null) { - $missingFields[] = 'issues_url'; - goto after_issues_url; + $missingFields[] = 'repository'; + goto after_repository; } - $properties['issues_url'] = $value; - - after_issues_url: - - $value = $payload['members_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'members_url'; - goto after_members_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['members_url'] = $value; + $properties['repository'] = $value; - after_members_url: + after_repository: - $value = $payload['public_members_url'] ?? null; + $value = $payload['requester'] ?? null; if ($value === null) { - $missingFields[] = 'public_members_url'; - goto after_public_members_url; + $properties['requester'] = null; + goto after_requester; } - $properties['public_members_url'] = $value; + $properties['requester'] = $value; - after_public_members_url: + after_requester: - $value = $payload['avatar_url'] ?? null; + $value = $payload['sender'] ?? null; if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatar_url; + $missingFields[] = 'sender'; + goto after_sender; } - $properties['avatar_url'] = $value; - - after_avatar_url: - - $value = $payload['description'] ?? null; - - if ($value === null) { - $missingFields[] = 'description'; - goto after_description; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['description'] = $value; + $properties['sender'] = $value; - after_description: + after_sender: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\OrganizationSimple', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookInstallationUnsuspend', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\OrganizationSimple::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookInstallationUnsuspend::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\OrganizationSimple(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookInstallationUnsuspend(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\OrganizationSimple', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookInstallationUnsuspend', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository(array $payload): \ApiClients\Client\Github\Schema\Repository + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise(array $payload): \ApiClients\Client\Github\Schema\Enterprise { $properties = []; $missingFields = []; try { + $value = $payload['description'] ?? null; + + if ($value === null) { + $missingFields[] = 'description'; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } + + $properties['html_url'] = $value; + + after_html_url: + + $value = $payload['website_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'website_url'; + goto after_website_url; + } + + $properties['website_url'] = $value; + + after_website_url: + $value = $payload['id'] ?? null; if ($value === null) { @@ -780,100 +901,135 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repo after_name: - $value = $payload['full_name'] ?? null; + $value = $payload['slug'] ?? null; if ($value === null) { - $missingFields[] = 'full_name'; - goto after_full_name; + $missingFields[] = 'slug'; + goto after_slug; } - $properties['full_name'] = $value; + $properties['slug'] = $value; - after_full_name: + after_slug: - $value = $payload['license'] ?? null; + $value = $payload['created_at'] ?? null; if ($value === null) { - $properties['license'] = null; - goto after_license; + $missingFields[] = 'created_at'; + goto after_created_at; } - $properties['license'] = $value; + $properties['created_at'] = $value; - after_license: + after_created_at: - $value = $payload['organization'] ?? null; + $value = $payload['updated_at'] ?? null; if ($value === null) { - $properties['organization'] = null; - goto after_organization; + $missingFields[] = 'updated_at'; + goto after_updated_at; } - $properties['organization'] = $value; + $properties['updated_at'] = $value; - after_organization: + after_updated_at: - $value = $payload['forks'] ?? null; + $value = $payload['avatar_url'] ?? null; if ($value === null) { - $missingFields[] = 'forks'; - goto after_forks; + $missingFields[] = 'avatar_url'; + goto after_avatar_url; } - $properties['forks'] = $value; + $properties['avatar_url'] = $value; - after_forks: + after_avatar_url: - $value = $payload['permissions'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Enterprise', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Enterprise::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\Enterprise(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Enterprise', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Installation(array $payload): \ApiClients\Client\Github\Schema\Installation + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'permissions'; - goto after_permissions; + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['account'] ?? null; + + if ($value === null) { + $missingFields[] = 'account'; + goto after_account; } if (is_array($value)) { try { - $this->hydrationStack[] = 'permissions'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️Permissions($value); + $this->hydrationStack[] = 'account'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Installation⚡️Account($value); } finally { array_pop($this->hydrationStack); } } - $properties['permissions'] = $value; + $properties['account'] = $value; - after_permissions: + after_account: - $value = $payload['owner'] ?? null; + $value = $payload['repository_selection'] ?? null; if ($value === null) { - $missingFields[] = 'owner'; - goto after_owner; + $missingFields[] = 'repository_selection'; + goto after_repository_selection; } - if (is_array($value)) { - try { - $this->hydrationStack[] = 'owner'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); - } finally { - array_pop($this->hydrationStack); - } + $properties['repository_selection'] = $value; + + after_repository_selection: + + $value = $payload['access_tokens_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'access_tokens_url'; + goto after_access_tokens_url; } - $properties['owner'] = $value; + $properties['access_tokens_url'] = $value; - after_owner: + after_access_tokens_url: - $value = $payload['private'] ?? null; + $value = $payload['repositories_url'] ?? null; if ($value === null) { - $missingFields[] = 'private'; - goto after_private; + $missingFields[] = 'repositories_url'; + goto after_repositories_url; } - $properties['private'] = $value; + $properties['repositories_url'] = $value; - after_private: + after_repositories_url: $value = $payload['html_url'] ?? null; @@ -886,1764 +1042,1736 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repo after_html_url: - $value = $payload['description'] ?? null; + $value = $payload['app_id'] ?? null; if ($value === null) { - $missingFields[] = 'description'; - goto after_description; + $missingFields[] = 'app_id'; + goto after_app_id; } - $properties['description'] = $value; + $properties['app_id'] = $value; - after_description: + after_app_id: - $value = $payload['fork'] ?? null; + $value = $payload['target_id'] ?? null; if ($value === null) { - $missingFields[] = 'fork'; - goto after_fork; + $missingFields[] = 'target_id'; + goto after_target_id; } - $properties['fork'] = $value; + $properties['target_id'] = $value; - after_fork: + after_target_id: - $value = $payload['url'] ?? null; + $value = $payload['target_type'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $missingFields[] = 'target_type'; + goto after_target_type; } - $properties['url'] = $value; + $properties['target_type'] = $value; - after_url: + after_target_type: - $value = $payload['archive_url'] ?? null; + $value = $payload['permissions'] ?? null; if ($value === null) { - $missingFields[] = 'archive_url'; - goto after_archive_url; + $missingFields[] = 'permissions'; + goto after_permissions; } - $properties['archive_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'permissions'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️AppPermissions($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['permissions'] = $value; - after_archive_url: + after_permissions: - $value = $payload['assignees_url'] ?? null; + $value = $payload['events'] ?? null; if ($value === null) { - $missingFields[] = 'assignees_url'; - goto after_assignees_url; + $missingFields[] = 'events'; + goto after_events; } - $properties['assignees_url'] = $value; + $properties['events'] = $value; - after_assignees_url: + after_events: - $value = $payload['blobs_url'] ?? null; + $value = $payload['created_at'] ?? null; if ($value === null) { - $missingFields[] = 'blobs_url'; - goto after_blobs_url; + $missingFields[] = 'created_at'; + goto after_created_at; } - $properties['blobs_url'] = $value; + $properties['created_at'] = $value; - after_blobs_url: + after_created_at: - $value = $payload['branches_url'] ?? null; + $value = $payload['updated_at'] ?? null; if ($value === null) { - $missingFields[] = 'branches_url'; - goto after_branches_url; + $missingFields[] = 'updated_at'; + goto after_updated_at; } - $properties['branches_url'] = $value; + $properties['updated_at'] = $value; - after_branches_url: + after_updated_at: - $value = $payload['collaborators_url'] ?? null; + $value = $payload['single_file_name'] ?? null; if ($value === null) { - $missingFields[] = 'collaborators_url'; - goto after_collaborators_url; + $missingFields[] = 'single_file_name'; + goto after_single_file_name; } - $properties['collaborators_url'] = $value; + $properties['single_file_name'] = $value; - after_collaborators_url: + after_single_file_name: - $value = $payload['comments_url'] ?? null; + $value = $payload['has_multiple_single_files'] ?? null; if ($value === null) { - $missingFields[] = 'comments_url'; - goto after_comments_url; + $missingFields[] = 'has_multiple_single_files'; + goto after_has_multiple_single_files; } - $properties['comments_url'] = $value; + $properties['has_multiple_single_files'] = $value; - after_comments_url: + after_has_multiple_single_files: - $value = $payload['commits_url'] ?? null; + $value = $payload['single_file_paths'] ?? null; if ($value === null) { - $missingFields[] = 'commits_url'; - goto after_commits_url; + $missingFields[] = 'single_file_paths'; + goto after_single_file_paths; } - $properties['commits_url'] = $value; + $properties['single_file_paths'] = $value; - after_commits_url: + after_single_file_paths: - $value = $payload['compare_url'] ?? null; + $value = $payload['app_slug'] ?? null; if ($value === null) { - $missingFields[] = 'compare_url'; - goto after_compare_url; + $missingFields[] = 'app_slug'; + goto after_app_slug; } - $properties['compare_url'] = $value; + $properties['app_slug'] = $value; - after_compare_url: + after_app_slug: - $value = $payload['contents_url'] ?? null; + $value = $payload['suspended_by'] ?? null; if ($value === null) { - $missingFields[] = 'contents_url'; - goto after_contents_url; + $properties['suspended_by'] = null; + goto after_suspended_by; } - $properties['contents_url'] = $value; + $properties['suspended_by'] = $value; - after_contents_url: + after_suspended_by: - $value = $payload['contributors_url'] ?? null; + $value = $payload['suspended_at'] ?? null; if ($value === null) { - $missingFields[] = 'contributors_url'; - goto after_contributors_url; + $missingFields[] = 'suspended_at'; + goto after_suspended_at; } - $properties['contributors_url'] = $value; + $properties['suspended_at'] = $value; - after_contributors_url: + after_suspended_at: - $value = $payload['deployments_url'] ?? null; + $value = $payload['contact_email'] ?? null; if ($value === null) { - $missingFields[] = 'deployments_url'; - goto after_deployments_url; + $missingFields[] = 'contact_email'; + goto after_contact_email; } - $properties['deployments_url'] = $value; + $properties['contact_email'] = $value; - after_deployments_url: + after_contact_email: - $value = $payload['downloads_url'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Installation', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Installation::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\Installation(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Installation', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple(array $payload): \ApiClients\Client\Github\Schema\OrganizationSimple + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['login'] ?? null; if ($value === null) { - $missingFields[] = 'downloads_url'; - goto after_downloads_url; + $missingFields[] = 'login'; + goto after_login; } - $properties['downloads_url'] = $value; + $properties['login'] = $value; - after_downloads_url: + after_login: - $value = $payload['events_url'] ?? null; + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'events_url'; - goto after_events_url; + $missingFields[] = 'id'; + goto after_id; } - $properties['events_url'] = $value; + $properties['id'] = $value; - after_events_url: + after_id: - $value = $payload['forks_url'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $missingFields[] = 'forks_url'; - goto after_forks_url; + $missingFields[] = 'node_id'; + goto after_node_id; } - $properties['forks_url'] = $value; + $properties['node_id'] = $value; - after_forks_url: + after_node_id: - $value = $payload['git_commits_url'] ?? null; + $value = $payload['url'] ?? null; if ($value === null) { - $missingFields[] = 'git_commits_url'; - goto after_git_commits_url; + $missingFields[] = 'url'; + goto after_url; } - $properties['git_commits_url'] = $value; + $properties['url'] = $value; - after_git_commits_url: + after_url: - $value = $payload['git_refs_url'] ?? null; + $value = $payload['repos_url'] ?? null; if ($value === null) { - $missingFields[] = 'git_refs_url'; - goto after_git_refs_url; + $missingFields[] = 'repos_url'; + goto after_repos_url; } - $properties['git_refs_url'] = $value; + $properties['repos_url'] = $value; - after_git_refs_url: + after_repos_url: - $value = $payload['git_tags_url'] ?? null; + $value = $payload['events_url'] ?? null; if ($value === null) { - $missingFields[] = 'git_tags_url'; - goto after_git_tags_url; + $missingFields[] = 'events_url'; + goto after_events_url; } - $properties['git_tags_url'] = $value; + $properties['events_url'] = $value; - after_git_tags_url: + after_events_url: - $value = $payload['git_url'] ?? null; + $value = $payload['hooks_url'] ?? null; if ($value === null) { - $missingFields[] = 'git_url'; - goto after_git_url; + $missingFields[] = 'hooks_url'; + goto after_hooks_url; } - $properties['git_url'] = $value; + $properties['hooks_url'] = $value; - after_git_url: + after_hooks_url: - $value = $payload['issue_comment_url'] ?? null; + $value = $payload['issues_url'] ?? null; if ($value === null) { - $missingFields[] = 'issue_comment_url'; - goto after_issue_comment_url; + $missingFields[] = 'issues_url'; + goto after_issues_url; } - $properties['issue_comment_url'] = $value; + $properties['issues_url'] = $value; - after_issue_comment_url: + after_issues_url: - $value = $payload['issue_events_url'] ?? null; + $value = $payload['members_url'] ?? null; if ($value === null) { - $missingFields[] = 'issue_events_url'; - goto after_issue_events_url; - } + $missingFields[] = 'members_url'; + goto after_members_url; + } - $properties['issue_events_url'] = $value; + $properties['members_url'] = $value; - after_issue_events_url: + after_members_url: - $value = $payload['issues_url'] ?? null; + $value = $payload['public_members_url'] ?? null; if ($value === null) { - $missingFields[] = 'issues_url'; - goto after_issues_url; + $missingFields[] = 'public_members_url'; + goto after_public_members_url; } - $properties['issues_url'] = $value; + $properties['public_members_url'] = $value; - after_issues_url: + after_public_members_url: - $value = $payload['keys_url'] ?? null; + $value = $payload['avatar_url'] ?? null; if ($value === null) { - $missingFields[] = 'keys_url'; - goto after_keys_url; + $missingFields[] = 'avatar_url'; + goto after_avatar_url; } - $properties['keys_url'] = $value; + $properties['avatar_url'] = $value; - after_keys_url: + after_avatar_url: - $value = $payload['labels_url'] ?? null; + $value = $payload['description'] ?? null; if ($value === null) { - $missingFields[] = 'labels_url'; - goto after_labels_url; + $missingFields[] = 'description'; + goto after_description; } - $properties['labels_url'] = $value; + $properties['description'] = $value; - after_labels_url: + after_description: - $value = $payload['languages_url'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\OrganizationSimple', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\OrganizationSimple::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\OrganizationSimple(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\OrganizationSimple', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository(array $payload): \ApiClients\Client\Github\Schema\Repository + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'languages_url'; - goto after_languages_url; + $missingFields[] = 'id'; + goto after_id; } - $properties['languages_url'] = $value; + $properties['id'] = $value; - after_languages_url: + after_id: - $value = $payload['merges_url'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $missingFields[] = 'merges_url'; - goto after_merges_url; + $missingFields[] = 'node_id'; + goto after_node_id; } - $properties['merges_url'] = $value; + $properties['node_id'] = $value; - after_merges_url: + after_node_id: - $value = $payload['milestones_url'] ?? null; + $value = $payload['name'] ?? null; if ($value === null) { - $missingFields[] = 'milestones_url'; - goto after_milestones_url; + $missingFields[] = 'name'; + goto after_name; } - $properties['milestones_url'] = $value; + $properties['name'] = $value; - after_milestones_url: + after_name: - $value = $payload['notifications_url'] ?? null; + $value = $payload['full_name'] ?? null; if ($value === null) { - $missingFields[] = 'notifications_url'; - goto after_notifications_url; + $missingFields[] = 'full_name'; + goto after_full_name; } - $properties['notifications_url'] = $value; + $properties['full_name'] = $value; - after_notifications_url: + after_full_name: - $value = $payload['pulls_url'] ?? null; + $value = $payload['license'] ?? null; if ($value === null) { - $missingFields[] = 'pulls_url'; - goto after_pulls_url; + $properties['license'] = null; + goto after_license; } - $properties['pulls_url'] = $value; + $properties['license'] = $value; - after_pulls_url: + after_license: - $value = $payload['releases_url'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'releases_url'; - goto after_releases_url; + $properties['organization'] = null; + goto after_organization; } - $properties['releases_url'] = $value; + $properties['organization'] = $value; - after_releases_url: + after_organization: - $value = $payload['ssh_url'] ?? null; + $value = $payload['forks'] ?? null; if ($value === null) { - $missingFields[] = 'ssh_url'; - goto after_ssh_url; + $missingFields[] = 'forks'; + goto after_forks; } - $properties['ssh_url'] = $value; + $properties['forks'] = $value; - after_ssh_url: + after_forks: - $value = $payload['stargazers_url'] ?? null; + $value = $payload['permissions'] ?? null; if ($value === null) { - $missingFields[] = 'stargazers_url'; - goto after_stargazers_url; + $missingFields[] = 'permissions'; + goto after_permissions; } - $properties['stargazers_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'permissions'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️Permissions($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['permissions'] = $value; - after_stargazers_url: + after_permissions: - $value = $payload['statuses_url'] ?? null; + $value = $payload['owner'] ?? null; if ($value === null) { - $missingFields[] = 'statuses_url'; - goto after_statuses_url; + $missingFields[] = 'owner'; + goto after_owner; } - $properties['statuses_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'owner'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['owner'] = $value; - after_statuses_url: + after_owner: - $value = $payload['subscribers_url'] ?? null; + $value = $payload['private'] ?? null; if ($value === null) { - $missingFields[] = 'subscribers_url'; - goto after_subscribers_url; + $missingFields[] = 'private'; + goto after_private; } - $properties['subscribers_url'] = $value; + $properties['private'] = $value; - after_subscribers_url: + after_private: - $value = $payload['subscription_url'] ?? null; + $value = $payload['html_url'] ?? null; if ($value === null) { - $missingFields[] = 'subscription_url'; - goto after_subscription_url; + $missingFields[] = 'html_url'; + goto after_html_url; } - $properties['subscription_url'] = $value; + $properties['html_url'] = $value; - after_subscription_url: + after_html_url: - $value = $payload['tags_url'] ?? null; + $value = $payload['description'] ?? null; if ($value === null) { - $missingFields[] = 'tags_url'; - goto after_tags_url; + $missingFields[] = 'description'; + goto after_description; } - $properties['tags_url'] = $value; + $properties['description'] = $value; - after_tags_url: + after_description: - $value = $payload['teams_url'] ?? null; + $value = $payload['fork'] ?? null; if ($value === null) { - $missingFields[] = 'teams_url'; - goto after_teams_url; + $missingFields[] = 'fork'; + goto after_fork; } - $properties['teams_url'] = $value; + $properties['fork'] = $value; - after_teams_url: + after_fork: - $value = $payload['trees_url'] ?? null; + $value = $payload['url'] ?? null; if ($value === null) { - $missingFields[] = 'trees_url'; - goto after_trees_url; + $missingFields[] = 'url'; + goto after_url; } - $properties['trees_url'] = $value; + $properties['url'] = $value; - after_trees_url: + after_url: - $value = $payload['clone_url'] ?? null; + $value = $payload['archive_url'] ?? null; if ($value === null) { - $missingFields[] = 'clone_url'; - goto after_clone_url; + $missingFields[] = 'archive_url'; + goto after_archive_url; } - $properties['clone_url'] = $value; + $properties['archive_url'] = $value; - after_clone_url: + after_archive_url: - $value = $payload['mirror_url'] ?? null; + $value = $payload['assignees_url'] ?? null; if ($value === null) { - $missingFields[] = 'mirror_url'; - goto after_mirror_url; + $missingFields[] = 'assignees_url'; + goto after_assignees_url; } - $properties['mirror_url'] = $value; + $properties['assignees_url'] = $value; - after_mirror_url: + after_assignees_url: - $value = $payload['hooks_url'] ?? null; + $value = $payload['blobs_url'] ?? null; if ($value === null) { - $missingFields[] = 'hooks_url'; - goto after_hooks_url; + $missingFields[] = 'blobs_url'; + goto after_blobs_url; } - $properties['hooks_url'] = $value; + $properties['blobs_url'] = $value; - after_hooks_url: + after_blobs_url: - $value = $payload['svn_url'] ?? null; + $value = $payload['branches_url'] ?? null; if ($value === null) { - $missingFields[] = 'svn_url'; - goto after_svn_url; + $missingFields[] = 'branches_url'; + goto after_branches_url; } - $properties['svn_url'] = $value; + $properties['branches_url'] = $value; - after_svn_url: + after_branches_url: - $value = $payload['homepage'] ?? null; + $value = $payload['collaborators_url'] ?? null; if ($value === null) { - $missingFields[] = 'homepage'; - goto after_homepage; + $missingFields[] = 'collaborators_url'; + goto after_collaborators_url; } - $properties['homepage'] = $value; + $properties['collaborators_url'] = $value; - after_homepage: + after_collaborators_url: - $value = $payload['language'] ?? null; + $value = $payload['comments_url'] ?? null; if ($value === null) { - $missingFields[] = 'language'; - goto after_language; + $missingFields[] = 'comments_url'; + goto after_comments_url; } - $properties['language'] = $value; + $properties['comments_url'] = $value; - after_language: + after_comments_url: - $value = $payload['forks_count'] ?? null; + $value = $payload['commits_url'] ?? null; if ($value === null) { - $missingFields[] = 'forks_count'; - goto after_forks_count; + $missingFields[] = 'commits_url'; + goto after_commits_url; } - $properties['forks_count'] = $value; + $properties['commits_url'] = $value; - after_forks_count: + after_commits_url: - $value = $payload['stargazers_count'] ?? null; + $value = $payload['compare_url'] ?? null; if ($value === null) { - $missingFields[] = 'stargazers_count'; - goto after_stargazers_count; + $missingFields[] = 'compare_url'; + goto after_compare_url; } - $properties['stargazers_count'] = $value; + $properties['compare_url'] = $value; - after_stargazers_count: + after_compare_url: - $value = $payload['watchers_count'] ?? null; + $value = $payload['contents_url'] ?? null; if ($value === null) { - $missingFields[] = 'watchers_count'; - goto after_watchers_count; + $missingFields[] = 'contents_url'; + goto after_contents_url; } - $properties['watchers_count'] = $value; + $properties['contents_url'] = $value; - after_watchers_count: + after_contents_url: - $value = $payload['size'] ?? null; + $value = $payload['contributors_url'] ?? null; if ($value === null) { - $missingFields[] = 'size'; - goto after_size; + $missingFields[] = 'contributors_url'; + goto after_contributors_url; } - $properties['size'] = $value; + $properties['contributors_url'] = $value; - after_size: + after_contributors_url: - $value = $payload['default_branch'] ?? null; + $value = $payload['deployments_url'] ?? null; if ($value === null) { - $missingFields[] = 'default_branch'; - goto after_default_branch; + $missingFields[] = 'deployments_url'; + goto after_deployments_url; } - $properties['default_branch'] = $value; + $properties['deployments_url'] = $value; - after_default_branch: + after_deployments_url: - $value = $payload['open_issues_count'] ?? null; + $value = $payload['downloads_url'] ?? null; if ($value === null) { - $missingFields[] = 'open_issues_count'; - goto after_open_issues_count; + $missingFields[] = 'downloads_url'; + goto after_downloads_url; } - $properties['open_issues_count'] = $value; + $properties['downloads_url'] = $value; - after_open_issues_count: + after_downloads_url: - $value = $payload['is_template'] ?? null; + $value = $payload['events_url'] ?? null; if ($value === null) { - $missingFields[] = 'is_template'; - goto after_is_template; + $missingFields[] = 'events_url'; + goto after_events_url; } - $properties['is_template'] = $value; + $properties['events_url'] = $value; - after_is_template: + after_events_url: - $value = $payload['topics'] ?? null; + $value = $payload['forks_url'] ?? null; if ($value === null) { - $missingFields[] = 'topics'; - goto after_topics; + $missingFields[] = 'forks_url'; + goto after_forks_url; } - $properties['topics'] = $value; + $properties['forks_url'] = $value; - after_topics: + after_forks_url: - $value = $payload['has_issues'] ?? null; + $value = $payload['git_commits_url'] ?? null; if ($value === null) { - $missingFields[] = 'has_issues'; - goto after_has_issues; + $missingFields[] = 'git_commits_url'; + goto after_git_commits_url; } - $properties['has_issues'] = $value; + $properties['git_commits_url'] = $value; - after_has_issues: + after_git_commits_url: - $value = $payload['has_projects'] ?? null; + $value = $payload['git_refs_url'] ?? null; if ($value === null) { - $missingFields[] = 'has_projects'; - goto after_has_projects; + $missingFields[] = 'git_refs_url'; + goto after_git_refs_url; } - $properties['has_projects'] = $value; + $properties['git_refs_url'] = $value; - after_has_projects: + after_git_refs_url: - $value = $payload['has_wiki'] ?? null; + $value = $payload['git_tags_url'] ?? null; if ($value === null) { - $missingFields[] = 'has_wiki'; - goto after_has_wiki; + $missingFields[] = 'git_tags_url'; + goto after_git_tags_url; } - $properties['has_wiki'] = $value; + $properties['git_tags_url'] = $value; - after_has_wiki: + after_git_tags_url: - $value = $payload['has_pages'] ?? null; + $value = $payload['git_url'] ?? null; if ($value === null) { - $missingFields[] = 'has_pages'; - goto after_has_pages; + $missingFields[] = 'git_url'; + goto after_git_url; } - $properties['has_pages'] = $value; + $properties['git_url'] = $value; - after_has_pages: + after_git_url: - $value = $payload['has_downloads'] ?? null; + $value = $payload['issue_comment_url'] ?? null; if ($value === null) { - $missingFields[] = 'has_downloads'; - goto after_has_downloads; + $missingFields[] = 'issue_comment_url'; + goto after_issue_comment_url; } - $properties['has_downloads'] = $value; + $properties['issue_comment_url'] = $value; - after_has_downloads: + after_issue_comment_url: - $value = $payload['has_discussions'] ?? null; + $value = $payload['issue_events_url'] ?? null; if ($value === null) { - $missingFields[] = 'has_discussions'; - goto after_has_discussions; + $missingFields[] = 'issue_events_url'; + goto after_issue_events_url; } - $properties['has_discussions'] = $value; + $properties['issue_events_url'] = $value; - after_has_discussions: + after_issue_events_url: - $value = $payload['archived'] ?? null; + $value = $payload['issues_url'] ?? null; if ($value === null) { - $missingFields[] = 'archived'; - goto after_archived; + $missingFields[] = 'issues_url'; + goto after_issues_url; } - $properties['archived'] = $value; + $properties['issues_url'] = $value; - after_archived: + after_issues_url: - $value = $payload['disabled'] ?? null; + $value = $payload['keys_url'] ?? null; if ($value === null) { - $missingFields[] = 'disabled'; - goto after_disabled; + $missingFields[] = 'keys_url'; + goto after_keys_url; } - $properties['disabled'] = $value; + $properties['keys_url'] = $value; - after_disabled: + after_keys_url: - $value = $payload['visibility'] ?? null; + $value = $payload['labels_url'] ?? null; if ($value === null) { - $missingFields[] = 'visibility'; - goto after_visibility; + $missingFields[] = 'labels_url'; + goto after_labels_url; } - $properties['visibility'] = $value; + $properties['labels_url'] = $value; - after_visibility: + after_labels_url: - $value = $payload['pushed_at'] ?? null; + $value = $payload['languages_url'] ?? null; if ($value === null) { - $missingFields[] = 'pushed_at'; - goto after_pushed_at; + $missingFields[] = 'languages_url'; + goto after_languages_url; } - $properties['pushed_at'] = $value; + $properties['languages_url'] = $value; - after_pushed_at: + after_languages_url: - $value = $payload['created_at'] ?? null; + $value = $payload['merges_url'] ?? null; if ($value === null) { - $missingFields[] = 'created_at'; - goto after_created_at; + $missingFields[] = 'merges_url'; + goto after_merges_url; } - $properties['created_at'] = $value; + $properties['merges_url'] = $value; - after_created_at: + after_merges_url: - $value = $payload['updated_at'] ?? null; + $value = $payload['milestones_url'] ?? null; if ($value === null) { - $missingFields[] = 'updated_at'; - goto after_updated_at; + $missingFields[] = 'milestones_url'; + goto after_milestones_url; } - $properties['updated_at'] = $value; + $properties['milestones_url'] = $value; - after_updated_at: + after_milestones_url: - $value = $payload['allow_rebase_merge'] ?? null; + $value = $payload['notifications_url'] ?? null; if ($value === null) { - $missingFields[] = 'allow_rebase_merge'; - goto after_allow_rebase_merge; + $missingFields[] = 'notifications_url'; + goto after_notifications_url; } - $properties['allow_rebase_merge'] = $value; + $properties['notifications_url'] = $value; - after_allow_rebase_merge: + after_notifications_url: - $value = $payload['template_repository'] ?? null; + $value = $payload['pulls_url'] ?? null; if ($value === null) { - $missingFields[] = 'template_repository'; - goto after_template_repository; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'template_repository'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'pulls_url'; + goto after_pulls_url; } - $properties['template_repository'] = $value; + $properties['pulls_url'] = $value; - after_template_repository: + after_pulls_url: - $value = $payload['temp_clone_token'] ?? null; + $value = $payload['releases_url'] ?? null; if ($value === null) { - $missingFields[] = 'temp_clone_token'; - goto after_temp_clone_token; + $missingFields[] = 'releases_url'; + goto after_releases_url; } - $properties['temp_clone_token'] = $value; + $properties['releases_url'] = $value; - after_temp_clone_token: + after_releases_url: - $value = $payload['allow_squash_merge'] ?? null; + $value = $payload['ssh_url'] ?? null; if ($value === null) { - $missingFields[] = 'allow_squash_merge'; - goto after_allow_squash_merge; + $missingFields[] = 'ssh_url'; + goto after_ssh_url; } - $properties['allow_squash_merge'] = $value; + $properties['ssh_url'] = $value; - after_allow_squash_merge: + after_ssh_url: - $value = $payload['allow_auto_merge'] ?? null; + $value = $payload['stargazers_url'] ?? null; if ($value === null) { - $missingFields[] = 'allow_auto_merge'; - goto after_allow_auto_merge; + $missingFields[] = 'stargazers_url'; + goto after_stargazers_url; } - $properties['allow_auto_merge'] = $value; + $properties['stargazers_url'] = $value; - after_allow_auto_merge: + after_stargazers_url: - $value = $payload['delete_branch_on_merge'] ?? null; + $value = $payload['statuses_url'] ?? null; if ($value === null) { - $missingFields[] = 'delete_branch_on_merge'; - goto after_delete_branch_on_merge; + $missingFields[] = 'statuses_url'; + goto after_statuses_url; } - $properties['delete_branch_on_merge'] = $value; + $properties['statuses_url'] = $value; - after_delete_branch_on_merge: + after_statuses_url: - $value = $payload['allow_update_branch'] ?? null; + $value = $payload['subscribers_url'] ?? null; if ($value === null) { - $missingFields[] = 'allow_update_branch'; - goto after_allow_update_branch; + $missingFields[] = 'subscribers_url'; + goto after_subscribers_url; } - $properties['allow_update_branch'] = $value; + $properties['subscribers_url'] = $value; - after_allow_update_branch: + after_subscribers_url: - $value = $payload['use_squash_pr_title_as_default'] ?? null; + $value = $payload['subscription_url'] ?? null; if ($value === null) { - $missingFields[] = 'use_squash_pr_title_as_default'; - goto after_use_squash_pr_title_as_default; + $missingFields[] = 'subscription_url'; + goto after_subscription_url; } - $properties['use_squash_pr_title_as_default'] = $value; + $properties['subscription_url'] = $value; - after_use_squash_pr_title_as_default: + after_subscription_url: - $value = $payload['squash_merge_commit_title'] ?? null; + $value = $payload['tags_url'] ?? null; if ($value === null) { - $missingFields[] = 'squash_merge_commit_title'; - goto after_squash_merge_commit_title; + $missingFields[] = 'tags_url'; + goto after_tags_url; } - $properties['squash_merge_commit_title'] = $value; + $properties['tags_url'] = $value; - after_squash_merge_commit_title: + after_tags_url: - $value = $payload['squash_merge_commit_message'] ?? null; + $value = $payload['teams_url'] ?? null; if ($value === null) { - $missingFields[] = 'squash_merge_commit_message'; - goto after_squash_merge_commit_message; + $missingFields[] = 'teams_url'; + goto after_teams_url; } - $properties['squash_merge_commit_message'] = $value; + $properties['teams_url'] = $value; - after_squash_merge_commit_message: + after_teams_url: - $value = $payload['merge_commit_title'] ?? null; + $value = $payload['trees_url'] ?? null; if ($value === null) { - $missingFields[] = 'merge_commit_title'; - goto after_merge_commit_title; + $missingFields[] = 'trees_url'; + goto after_trees_url; } - $properties['merge_commit_title'] = $value; + $properties['trees_url'] = $value; - after_merge_commit_title: + after_trees_url: - $value = $payload['merge_commit_message'] ?? null; + $value = $payload['clone_url'] ?? null; if ($value === null) { - $missingFields[] = 'merge_commit_message'; - goto after_merge_commit_message; + $missingFields[] = 'clone_url'; + goto after_clone_url; } - $properties['merge_commit_message'] = $value; + $properties['clone_url'] = $value; - after_merge_commit_message: + after_clone_url: - $value = $payload['allow_merge_commit'] ?? null; + $value = $payload['mirror_url'] ?? null; if ($value === null) { - $missingFields[] = 'allow_merge_commit'; - goto after_allow_merge_commit; + $missingFields[] = 'mirror_url'; + goto after_mirror_url; } - $properties['allow_merge_commit'] = $value; + $properties['mirror_url'] = $value; - after_allow_merge_commit: + after_mirror_url: - $value = $payload['allow_forking'] ?? null; + $value = $payload['hooks_url'] ?? null; if ($value === null) { - $missingFields[] = 'allow_forking'; - goto after_allow_forking; + $missingFields[] = 'hooks_url'; + goto after_hooks_url; } - $properties['allow_forking'] = $value; + $properties['hooks_url'] = $value; - after_allow_forking: + after_hooks_url: - $value = $payload['web_commit_signoff_required'] ?? null; + $value = $payload['svn_url'] ?? null; if ($value === null) { - $missingFields[] = 'web_commit_signoff_required'; - goto after_web_commit_signoff_required; + $missingFields[] = 'svn_url'; + goto after_svn_url; } - $properties['web_commit_signoff_required'] = $value; + $properties['svn_url'] = $value; - after_web_commit_signoff_required: + after_svn_url: - $value = $payload['subscribers_count'] ?? null; + $value = $payload['homepage'] ?? null; if ($value === null) { - $missingFields[] = 'subscribers_count'; - goto after_subscribers_count; + $missingFields[] = 'homepage'; + goto after_homepage; } - $properties['subscribers_count'] = $value; + $properties['homepage'] = $value; - after_subscribers_count: + after_homepage: - $value = $payload['network_count'] ?? null; + $value = $payload['language'] ?? null; if ($value === null) { - $missingFields[] = 'network_count'; - goto after_network_count; + $missingFields[] = 'language'; + goto after_language; } - $properties['network_count'] = $value; + $properties['language'] = $value; - after_network_count: + after_language: - $value = $payload['open_issues'] ?? null; + $value = $payload['forks_count'] ?? null; if ($value === null) { - $missingFields[] = 'open_issues'; - goto after_open_issues; + $missingFields[] = 'forks_count'; + goto after_forks_count; } - $properties['open_issues'] = $value; + $properties['forks_count'] = $value; - after_open_issues: + after_forks_count: - $value = $payload['watchers'] ?? null; + $value = $payload['stargazers_count'] ?? null; if ($value === null) { - $missingFields[] = 'watchers'; - goto after_watchers; + $missingFields[] = 'stargazers_count'; + goto after_stargazers_count; } - $properties['watchers'] = $value; + $properties['stargazers_count'] = $value; - after_watchers: + after_stargazers_count: - $value = $payload['master_branch'] ?? null; + $value = $payload['watchers_count'] ?? null; if ($value === null) { - $missingFields[] = 'master_branch'; - goto after_master_branch; + $missingFields[] = 'watchers_count'; + goto after_watchers_count; } - $properties['master_branch'] = $value; + $properties['watchers_count'] = $value; - after_master_branch: + after_watchers_count: - $value = $payload['starred_at'] ?? null; + $value = $payload['size'] ?? null; if ($value === null) { - $missingFields[] = 'starred_at'; - goto after_starred_at; + $missingFields[] = 'size'; + goto after_size; } - $properties['starred_at'] = $value; + $properties['size'] = $value; - after_starred_at: + after_size: - $value = $payload['anonymous_access_enabled'] ?? null; + $value = $payload['default_branch'] ?? null; if ($value === null) { - $missingFields[] = 'anonymous_access_enabled'; - goto after_anonymous_access_enabled; + $missingFields[] = 'default_branch'; + goto after_default_branch; } - $properties['anonymous_access_enabled'] = $value; + $properties['default_branch'] = $value; - after_anonymous_access_enabled: - - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\Repository(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository', $exception, stack: $this->hydrationStack); - } - } + after_default_branch: - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser(array $payload): \ApiClients\Client\Github\Schema\SimpleUser - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['name'] ?? null; + $value = $payload['open_issues_count'] ?? null; if ($value === null) { - $missingFields[] = 'name'; - goto after_name; + $missingFields[] = 'open_issues_count'; + goto after_open_issues_count; } - $properties['name'] = $value; + $properties['open_issues_count'] = $value; - after_name: + after_open_issues_count: - $value = $payload['email'] ?? null; + $value = $payload['is_template'] ?? null; if ($value === null) { - $missingFields[] = 'email'; - goto after_email; + $missingFields[] = 'is_template'; + goto after_is_template; } - $properties['email'] = $value; + $properties['is_template'] = $value; - after_email: + after_is_template: - $value = $payload['login'] ?? null; + $value = $payload['topics'] ?? null; if ($value === null) { - $missingFields[] = 'login'; - goto after_login; + $missingFields[] = 'topics'; + goto after_topics; } - $properties['login'] = $value; + $properties['topics'] = $value; - after_login: + after_topics: - $value = $payload['id'] ?? null; + $value = $payload['has_issues'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'has_issues'; + goto after_has_issues; } - $properties['id'] = $value; + $properties['has_issues'] = $value; - after_id: + after_has_issues: - $value = $payload['node_id'] ?? null; + $value = $payload['has_projects'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $missingFields[] = 'has_projects'; + goto after_has_projects; } - $properties['node_id'] = $value; + $properties['has_projects'] = $value; - after_node_id: + after_has_projects: - $value = $payload['avatar_url'] ?? null; + $value = $payload['has_wiki'] ?? null; if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatar_url; + $missingFields[] = 'has_wiki'; + goto after_has_wiki; } - $properties['avatar_url'] = $value; + $properties['has_wiki'] = $value; - after_avatar_url: + after_has_wiki: - $value = $payload['gravatar_id'] ?? null; + $value = $payload['has_pages'] ?? null; if ($value === null) { - $missingFields[] = 'gravatar_id'; - goto after_gravatar_id; + $missingFields[] = 'has_pages'; + goto after_has_pages; } - $properties['gravatar_id'] = $value; + $properties['has_pages'] = $value; - after_gravatar_id: + after_has_pages: - $value = $payload['url'] ?? null; + $value = $payload['has_downloads'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $missingFields[] = 'has_downloads'; + goto after_has_downloads; } - $properties['url'] = $value; + $properties['has_downloads'] = $value; - after_url: + after_has_downloads: - $value = $payload['html_url'] ?? null; + $value = $payload['has_discussions'] ?? null; if ($value === null) { - $missingFields[] = 'html_url'; - goto after_html_url; + $missingFields[] = 'has_discussions'; + goto after_has_discussions; } - $properties['html_url'] = $value; + $properties['has_discussions'] = $value; - after_html_url: + after_has_discussions: - $value = $payload['followers_url'] ?? null; + $value = $payload['archived'] ?? null; if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followers_url; + $missingFields[] = 'archived'; + goto after_archived; } - $properties['followers_url'] = $value; + $properties['archived'] = $value; - after_followers_url: + after_archived: - $value = $payload['following_url'] ?? null; + $value = $payload['disabled'] ?? null; if ($value === null) { - $missingFields[] = 'following_url'; - goto after_following_url; + $missingFields[] = 'disabled'; + goto after_disabled; } - $properties['following_url'] = $value; + $properties['disabled'] = $value; - after_following_url: + after_disabled: - $value = $payload['gists_url'] ?? null; + $value = $payload['visibility'] ?? null; if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gists_url; + $missingFields[] = 'visibility'; + goto after_visibility; } - $properties['gists_url'] = $value; + $properties['visibility'] = $value; - after_gists_url: + after_visibility: - $value = $payload['starred_url'] ?? null; + $value = $payload['pushed_at'] ?? null; if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starred_url; + $missingFields[] = 'pushed_at'; + goto after_pushed_at; } - $properties['starred_url'] = $value; + $properties['pushed_at'] = $value; - after_starred_url: + after_pushed_at: - $value = $payload['subscriptions_url'] ?? null; + $value = $payload['created_at'] ?? null; if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptions_url; + $missingFields[] = 'created_at'; + goto after_created_at; } - $properties['subscriptions_url'] = $value; + $properties['created_at'] = $value; - after_subscriptions_url: + after_created_at: - $value = $payload['organizations_url'] ?? null; + $value = $payload['updated_at'] ?? null; if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizations_url; + $missingFields[] = 'updated_at'; + goto after_updated_at; } - $properties['organizations_url'] = $value; + $properties['updated_at'] = $value; - after_organizations_url: + after_updated_at: - $value = $payload['repos_url'] ?? null; + $value = $payload['allow_rebase_merge'] ?? null; if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_repos_url; + $missingFields[] = 'allow_rebase_merge'; + goto after_allow_rebase_merge; } - $properties['repos_url'] = $value; + $properties['allow_rebase_merge'] = $value; - after_repos_url: + after_allow_rebase_merge: - $value = $payload['events_url'] ?? null; + $value = $payload['template_repository'] ?? null; if ($value === null) { - $missingFields[] = 'events_url'; - goto after_events_url; + $missingFields[] = 'template_repository'; + goto after_template_repository; } - $properties['events_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'template_repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['template_repository'] = $value; - after_events_url: + after_template_repository: - $value = $payload['received_events_url'] ?? null; + $value = $payload['temp_clone_token'] ?? null; if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_received_events_url; + $missingFields[] = 'temp_clone_token'; + goto after_temp_clone_token; } - $properties['received_events_url'] = $value; + $properties['temp_clone_token'] = $value; - after_received_events_url: + after_temp_clone_token: - $value = $payload['type'] ?? null; + $value = $payload['allow_squash_merge'] ?? null; if ($value === null) { - $missingFields[] = 'type'; - goto after_type; + $missingFields[] = 'allow_squash_merge'; + goto after_allow_squash_merge; } - $properties['type'] = $value; + $properties['allow_squash_merge'] = $value; - after_type: + after_allow_squash_merge: - $value = $payload['site_admin'] ?? null; + $value = $payload['allow_auto_merge'] ?? null; if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_site_admin; + $missingFields[] = 'allow_auto_merge'; + goto after_allow_auto_merge; } - $properties['site_admin'] = $value; + $properties['allow_auto_merge'] = $value; - after_site_admin: + after_allow_auto_merge: - $value = $payload['starred_at'] ?? null; + $value = $payload['delete_branch_on_merge'] ?? null; if ($value === null) { - $missingFields[] = 'starred_at'; - goto after_starred_at; + $missingFields[] = 'delete_branch_on_merge'; + goto after_delete_branch_on_merge; } - $properties['starred_at'] = $value; + $properties['delete_branch_on_merge'] = $value; - after_starred_at: - - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleUser', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\SimpleUser::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\SimpleUser(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleUser', $exception, stack: $this->hydrationStack); - } - } - - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Installation⚡️Account(array $payload): \ApiClients\Client\Github\Schema\Installation\Account - { - $properties = []; - $missingFields = []; - try { - - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Installation\Account', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Installation\Account::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\Installation\Account(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Installation\Account', $exception, stack: $this->hydrationStack); - } - } + after_delete_branch_on_merge: - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️AppPermissions(array $payload): \ApiClients\Client\Github\Schema\AppPermissions - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['actions'] ?? null; + $value = $payload['allow_update_branch'] ?? null; if ($value === null) { - $missingFields[] = 'actions'; - goto after_actions; + $missingFields[] = 'allow_update_branch'; + goto after_allow_update_branch; } - $properties['actions'] = $value; + $properties['allow_update_branch'] = $value; - after_actions: + after_allow_update_branch: - $value = $payload['administration'] ?? null; + $value = $payload['use_squash_pr_title_as_default'] ?? null; if ($value === null) { - $missingFields[] = 'administration'; - goto after_administration; + $missingFields[] = 'use_squash_pr_title_as_default'; + goto after_use_squash_pr_title_as_default; } - $properties['administration'] = $value; + $properties['use_squash_pr_title_as_default'] = $value; - after_administration: + after_use_squash_pr_title_as_default: - $value = $payload['checks'] ?? null; + $value = $payload['squash_merge_commit_title'] ?? null; if ($value === null) { - $missingFields[] = 'checks'; - goto after_checks; + $missingFields[] = 'squash_merge_commit_title'; + goto after_squash_merge_commit_title; } - $properties['checks'] = $value; + $properties['squash_merge_commit_title'] = $value; - after_checks: + after_squash_merge_commit_title: - $value = $payload['contents'] ?? null; + $value = $payload['squash_merge_commit_message'] ?? null; if ($value === null) { - $missingFields[] = 'contents'; - goto after_contents; + $missingFields[] = 'squash_merge_commit_message'; + goto after_squash_merge_commit_message; } - $properties['contents'] = $value; + $properties['squash_merge_commit_message'] = $value; - after_contents: + after_squash_merge_commit_message: - $value = $payload['deployments'] ?? null; + $value = $payload['merge_commit_title'] ?? null; if ($value === null) { - $missingFields[] = 'deployments'; - goto after_deployments; + $missingFields[] = 'merge_commit_title'; + goto after_merge_commit_title; } - $properties['deployments'] = $value; + $properties['merge_commit_title'] = $value; - after_deployments: + after_merge_commit_title: - $value = $payload['environments'] ?? null; + $value = $payload['merge_commit_message'] ?? null; if ($value === null) { - $missingFields[] = 'environments'; - goto after_environments; + $missingFields[] = 'merge_commit_message'; + goto after_merge_commit_message; } - $properties['environments'] = $value; + $properties['merge_commit_message'] = $value; - after_environments: + after_merge_commit_message: - $value = $payload['issues'] ?? null; + $value = $payload['allow_merge_commit'] ?? null; if ($value === null) { - $missingFields[] = 'issues'; - goto after_issues; + $missingFields[] = 'allow_merge_commit'; + goto after_allow_merge_commit; } - $properties['issues'] = $value; + $properties['allow_merge_commit'] = $value; - after_issues: + after_allow_merge_commit: - $value = $payload['metadata'] ?? null; + $value = $payload['allow_forking'] ?? null; if ($value === null) { - $missingFields[] = 'metadata'; - goto after_metadata; + $missingFields[] = 'allow_forking'; + goto after_allow_forking; } - $properties['metadata'] = $value; + $properties['allow_forking'] = $value; - after_metadata: + after_allow_forking: - $value = $payload['packages'] ?? null; + $value = $payload['web_commit_signoff_required'] ?? null; if ($value === null) { - $missingFields[] = 'packages'; - goto after_packages; + $missingFields[] = 'web_commit_signoff_required'; + goto after_web_commit_signoff_required; } - $properties['packages'] = $value; + $properties['web_commit_signoff_required'] = $value; - after_packages: + after_web_commit_signoff_required: - $value = $payload['pages'] ?? null; + $value = $payload['subscribers_count'] ?? null; if ($value === null) { - $missingFields[] = 'pages'; - goto after_pages; + $missingFields[] = 'subscribers_count'; + goto after_subscribers_count; } - $properties['pages'] = $value; + $properties['subscribers_count'] = $value; - after_pages: + after_subscribers_count: - $value = $payload['pull_requests'] ?? null; + $value = $payload['network_count'] ?? null; if ($value === null) { - $missingFields[] = 'pull_requests'; - goto after_pull_requests; + $missingFields[] = 'network_count'; + goto after_network_count; } - $properties['pull_requests'] = $value; + $properties['network_count'] = $value; - after_pull_requests: + after_network_count: - $value = $payload['repository_announcement_banners'] ?? null; + $value = $payload['open_issues'] ?? null; if ($value === null) { - $missingFields[] = 'repository_announcement_banners'; - goto after_repository_announcement_banners; + $missingFields[] = 'open_issues'; + goto after_open_issues; } - $properties['repository_announcement_banners'] = $value; + $properties['open_issues'] = $value; - after_repository_announcement_banners: + after_open_issues: - $value = $payload['repository_hooks'] ?? null; + $value = $payload['watchers'] ?? null; if ($value === null) { - $missingFields[] = 'repository_hooks'; - goto after_repository_hooks; + $missingFields[] = 'watchers'; + goto after_watchers; } - $properties['repository_hooks'] = $value; + $properties['watchers'] = $value; - after_repository_hooks: + after_watchers: - $value = $payload['repository_projects'] ?? null; + $value = $payload['master_branch'] ?? null; if ($value === null) { - $missingFields[] = 'repository_projects'; - goto after_repository_projects; + $missingFields[] = 'master_branch'; + goto after_master_branch; } - $properties['repository_projects'] = $value; + $properties['master_branch'] = $value; - after_repository_projects: + after_master_branch: - $value = $payload['secret_scanning_alerts'] ?? null; + $value = $payload['starred_at'] ?? null; if ($value === null) { - $missingFields[] = 'secret_scanning_alerts'; - goto after_secret_scanning_alerts; + $missingFields[] = 'starred_at'; + goto after_starred_at; } - $properties['secret_scanning_alerts'] = $value; + $properties['starred_at'] = $value; - after_secret_scanning_alerts: + after_starred_at: - $value = $payload['secrets'] ?? null; + $value = $payload['anonymous_access_enabled'] ?? null; if ($value === null) { - $missingFields[] = 'secrets'; - goto after_secrets; + $missingFields[] = 'anonymous_access_enabled'; + goto after_anonymous_access_enabled; } - $properties['secrets'] = $value; + $properties['anonymous_access_enabled'] = $value; - after_secrets: + after_anonymous_access_enabled: - $value = $payload['security_events'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\Repository(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy(array $payload): \ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['avatar_url'] ?? null; if ($value === null) { - $missingFields[] = 'security_events'; - goto after_security_events; + $missingFields[] = 'avatar_url'; + goto after_avatar_url; } - $properties['security_events'] = $value; + $properties['avatar_url'] = $value; - after_security_events: + after_avatar_url: - $value = $payload['single_file'] ?? null; + $value = $payload['deleted'] ?? null; if ($value === null) { - $missingFields[] = 'single_file'; - goto after_single_file; + $missingFields[] = 'deleted'; + goto after_deleted; } - $properties['single_file'] = $value; + $properties['deleted'] = $value; - after_single_file: + after_deleted: - $value = $payload['statuses'] ?? null; + $value = $payload['email'] ?? null; if ($value === null) { - $missingFields[] = 'statuses'; - goto after_statuses; + $missingFields[] = 'email'; + goto after_email; } - $properties['statuses'] = $value; + $properties['email'] = $value; - after_statuses: + after_email: - $value = $payload['vulnerability_alerts'] ?? null; + $value = $payload['events_url'] ?? null; if ($value === null) { - $missingFields[] = 'vulnerability_alerts'; - goto after_vulnerability_alerts; + $missingFields[] = 'events_url'; + goto after_events_url; } - $properties['vulnerability_alerts'] = $value; + $properties['events_url'] = $value; - after_vulnerability_alerts: + after_events_url: - $value = $payload['workflows'] ?? null; + $value = $payload['followers_url'] ?? null; if ($value === null) { - $missingFields[] = 'workflows'; - goto after_workflows; + $missingFields[] = 'followers_url'; + goto after_followers_url; } - $properties['workflows'] = $value; + $properties['followers_url'] = $value; - after_workflows: + after_followers_url: - $value = $payload['members'] ?? null; + $value = $payload['following_url'] ?? null; if ($value === null) { - $missingFields[] = 'members'; - goto after_members; + $missingFields[] = 'following_url'; + goto after_following_url; } - $properties['members'] = $value; + $properties['following_url'] = $value; - after_members: + after_following_url: - $value = $payload['organization_administration'] ?? null; + $value = $payload['gists_url'] ?? null; if ($value === null) { - $missingFields[] = 'organization_administration'; - goto after_organization_administration; + $missingFields[] = 'gists_url'; + goto after_gists_url; } - $properties['organization_administration'] = $value; + $properties['gists_url'] = $value; - after_organization_administration: + after_gists_url: - $value = $payload['organization_custom_roles'] ?? null; + $value = $payload['gravatar_id'] ?? null; if ($value === null) { - $missingFields[] = 'organization_custom_roles'; - goto after_organization_custom_roles; + $missingFields[] = 'gravatar_id'; + goto after_gravatar_id; } - $properties['organization_custom_roles'] = $value; + $properties['gravatar_id'] = $value; - after_organization_custom_roles: + after_gravatar_id: - $value = $payload['organization_announcement_banners'] ?? null; + $value = $payload['html_url'] ?? null; if ($value === null) { - $missingFields[] = 'organization_announcement_banners'; - goto after_organization_announcement_banners; + $missingFields[] = 'html_url'; + goto after_html_url; } - $properties['organization_announcement_banners'] = $value; + $properties['html_url'] = $value; - after_organization_announcement_banners: + after_html_url: - $value = $payload['organization_hooks'] ?? null; + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'organization_hooks'; - goto after_organization_hooks; + $missingFields[] = 'id'; + goto after_id; } - $properties['organization_hooks'] = $value; + $properties['id'] = $value; - after_organization_hooks: + after_id: - $value = $payload['organization_plan'] ?? null; + $value = $payload['login'] ?? null; if ($value === null) { - $missingFields[] = 'organization_plan'; - goto after_organization_plan; + $missingFields[] = 'login'; + goto after_login; } - $properties['organization_plan'] = $value; + $properties['login'] = $value; - after_organization_plan: + after_login: - $value = $payload['organization_projects'] ?? null; + $value = $payload['name'] ?? null; if ($value === null) { - $missingFields[] = 'organization_projects'; - goto after_organization_projects; - } - - $properties['organization_projects'] = $value; - - after_organization_projects: - - $value = $payload['organization_packages'] ?? null; - - if ($value === null) { - $missingFields[] = 'organization_packages'; - goto after_organization_packages; + $missingFields[] = 'name'; + goto after_name; } - $properties['organization_packages'] = $value; + $properties['name'] = $value; - after_organization_packages: + after_name: - $value = $payload['organization_secrets'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $missingFields[] = 'organization_secrets'; - goto after_organization_secrets; + $missingFields[] = 'node_id'; + goto after_node_id; } - $properties['organization_secrets'] = $value; + $properties['node_id'] = $value; - after_organization_secrets: + after_node_id: - $value = $payload['organization_self_hosted_runners'] ?? null; + $value = $payload['organizations_url'] ?? null; if ($value === null) { - $missingFields[] = 'organization_self_hosted_runners'; - goto after_organization_self_hosted_runners; + $missingFields[] = 'organizations_url'; + goto after_organizations_url; } - $properties['organization_self_hosted_runners'] = $value; + $properties['organizations_url'] = $value; - after_organization_self_hosted_runners: + after_organizations_url: - $value = $payload['organization_user_blocking'] ?? null; + $value = $payload['received_events_url'] ?? null; if ($value === null) { - $missingFields[] = 'organization_user_blocking'; - goto after_organization_user_blocking; + $missingFields[] = 'received_events_url'; + goto after_received_events_url; } - $properties['organization_user_blocking'] = $value; + $properties['received_events_url'] = $value; - after_organization_user_blocking: + after_received_events_url: - $value = $payload['team_discussions'] ?? null; + $value = $payload['repos_url'] ?? null; if ($value === null) { - $missingFields[] = 'team_discussions'; - goto after_team_discussions; + $missingFields[] = 'repos_url'; + goto after_repos_url; } - $properties['team_discussions'] = $value; + $properties['repos_url'] = $value; - after_team_discussions: - - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\AppPermissions', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\AppPermissions::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\AppPermissions(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\AppPermissions', $exception, stack: $this->hydrationStack); - } - } + after_repos_url: - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️Permissions(array $payload): \ApiClients\Client\Github\Schema\Repository\Permissions - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['admin'] ?? null; + $value = $payload['site_admin'] ?? null; if ($value === null) { - $missingFields[] = 'admin'; - goto after_admin; + $missingFields[] = 'site_admin'; + goto after_site_admin; } - $properties['admin'] = $value; + $properties['site_admin'] = $value; - after_admin: + after_site_admin: - $value = $payload['pull'] ?? null; + $value = $payload['starred_url'] ?? null; if ($value === null) { - $missingFields[] = 'pull'; - goto after_pull; + $missingFields[] = 'starred_url'; + goto after_starred_url; } - $properties['pull'] = $value; + $properties['starred_url'] = $value; - after_pull: + after_starred_url: - $value = $payload['triage'] ?? null; + $value = $payload['subscriptions_url'] ?? null; if ($value === null) { - $missingFields[] = 'triage'; - goto after_triage; + $missingFields[] = 'subscriptions_url'; + goto after_subscriptions_url; } - $properties['triage'] = $value; + $properties['subscriptions_url'] = $value; - after_triage: + after_subscriptions_url: - $value = $payload['push'] ?? null; + $value = $payload['type'] ?? null; if ($value === null) { - $missingFields[] = 'push'; - goto after_push; + $missingFields[] = 'type'; + goto after_type; } - $properties['push'] = $value; + $properties['type'] = $value; - after_push: + after_type: - $value = $payload['maintain'] ?? null; + $value = $payload['url'] ?? null; if ($value === null) { - $missingFields[] = 'maintain'; - goto after_maintain; + $missingFields[] = 'url'; + goto after_url; } - $properties['maintain'] = $value; + $properties['url'] = $value; - after_maintain: + after_url: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\Permissions', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\Permissions::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\Repository\Permissions(...$properties); + return new \ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\Permissions', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository(array $payload): \ApiClients\Client\Github\Schema\Repository\TemplateRepository + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser(array $payload): \ApiClients\Client\Github\Schema\SimpleUser { $properties = []; $missingFields = []; try { - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; - } - - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; - } - - $properties['node_id'] = $value; - - after_node_id: - $value = $payload['name'] ?? null; if ($value === null) { @@ -2655,80 +2783,71 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repo after_name: - $value = $payload['full_name'] ?? null; + $value = $payload['email'] ?? null; if ($value === null) { - $missingFields[] = 'full_name'; - goto after_full_name; + $missingFields[] = 'email'; + goto after_email; } - $properties['full_name'] = $value; + $properties['email'] = $value; - after_full_name: + after_email: - $value = $payload['owner'] ?? null; + $value = $payload['login'] ?? null; if ($value === null) { - $missingFields[] = 'owner'; - goto after_owner; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'owner'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'login'; + goto after_login; } - $properties['owner'] = $value; + $properties['login'] = $value; - after_owner: + after_login: - $value = $payload['private'] ?? null; + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'private'; - goto after_private; + $missingFields[] = 'id'; + goto after_id; } - $properties['private'] = $value; + $properties['id'] = $value; - after_private: + after_id: - $value = $payload['html_url'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $missingFields[] = 'html_url'; - goto after_html_url; + $missingFields[] = 'node_id'; + goto after_node_id; } - $properties['html_url'] = $value; + $properties['node_id'] = $value; - after_html_url: + after_node_id: - $value = $payload['description'] ?? null; + $value = $payload['avatar_url'] ?? null; if ($value === null) { - $missingFields[] = 'description'; - goto after_description; + $missingFields[] = 'avatar_url'; + goto after_avatar_url; } - $properties['description'] = $value; + $properties['avatar_url'] = $value; - after_description: + after_avatar_url: - $value = $payload['fork'] ?? null; + $value = $payload['gravatar_id'] ?? null; if ($value === null) { - $missingFields[] = 'fork'; - goto after_fork; + $missingFields[] = 'gravatar_id'; + goto after_gravatar_id; } - $properties['fork'] = $value; + $properties['gravatar_id'] = $value; - after_fork: + after_gravatar_id: $value = $payload['url'] ?? null; @@ -2741,1256 +2860,2309 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repo after_url: - $value = $payload['archive_url'] ?? null; + $value = $payload['html_url'] ?? null; if ($value === null) { - $missingFields[] = 'archive_url'; - goto after_archive_url; + $missingFields[] = 'html_url'; + goto after_html_url; } - $properties['archive_url'] = $value; + $properties['html_url'] = $value; - after_archive_url: + after_html_url: - $value = $payload['assignees_url'] ?? null; + $value = $payload['followers_url'] ?? null; if ($value === null) { - $missingFields[] = 'assignees_url'; - goto after_assignees_url; + $missingFields[] = 'followers_url'; + goto after_followers_url; } - $properties['assignees_url'] = $value; + $properties['followers_url'] = $value; - after_assignees_url: + after_followers_url: - $value = $payload['blobs_url'] ?? null; + $value = $payload['following_url'] ?? null; if ($value === null) { - $missingFields[] = 'blobs_url'; - goto after_blobs_url; + $missingFields[] = 'following_url'; + goto after_following_url; } - $properties['blobs_url'] = $value; + $properties['following_url'] = $value; - after_blobs_url: + after_following_url: - $value = $payload['branches_url'] ?? null; + $value = $payload['gists_url'] ?? null; if ($value === null) { - $missingFields[] = 'branches_url'; - goto after_branches_url; + $missingFields[] = 'gists_url'; + goto after_gists_url; } - $properties['branches_url'] = $value; + $properties['gists_url'] = $value; - after_branches_url: + after_gists_url: - $value = $payload['collaborators_url'] ?? null; + $value = $payload['starred_url'] ?? null; if ($value === null) { - $missingFields[] = 'collaborators_url'; - goto after_collaborators_url; + $missingFields[] = 'starred_url'; + goto after_starred_url; } - $properties['collaborators_url'] = $value; + $properties['starred_url'] = $value; - after_collaborators_url: + after_starred_url: - $value = $payload['comments_url'] ?? null; + $value = $payload['subscriptions_url'] ?? null; if ($value === null) { - $missingFields[] = 'comments_url'; - goto after_comments_url; + $missingFields[] = 'subscriptions_url'; + goto after_subscriptions_url; } - $properties['comments_url'] = $value; + $properties['subscriptions_url'] = $value; - after_comments_url: + after_subscriptions_url: - $value = $payload['commits_url'] ?? null; + $value = $payload['organizations_url'] ?? null; if ($value === null) { - $missingFields[] = 'commits_url'; - goto after_commits_url; + $missingFields[] = 'organizations_url'; + goto after_organizations_url; } - $properties['commits_url'] = $value; + $properties['organizations_url'] = $value; - after_commits_url: + after_organizations_url: - $value = $payload['compare_url'] ?? null; + $value = $payload['repos_url'] ?? null; if ($value === null) { - $missingFields[] = 'compare_url'; - goto after_compare_url; + $missingFields[] = 'repos_url'; + goto after_repos_url; } - $properties['compare_url'] = $value; + $properties['repos_url'] = $value; - after_compare_url: + after_repos_url: - $value = $payload['contents_url'] ?? null; + $value = $payload['events_url'] ?? null; if ($value === null) { - $missingFields[] = 'contents_url'; - goto after_contents_url; + $missingFields[] = 'events_url'; + goto after_events_url; } - $properties['contents_url'] = $value; + $properties['events_url'] = $value; - after_contents_url: + after_events_url: - $value = $payload['contributors_url'] ?? null; + $value = $payload['received_events_url'] ?? null; if ($value === null) { - $missingFields[] = 'contributors_url'; - goto after_contributors_url; + $missingFields[] = 'received_events_url'; + goto after_received_events_url; } - $properties['contributors_url'] = $value; + $properties['received_events_url'] = $value; - after_contributors_url: + after_received_events_url: - $value = $payload['deployments_url'] ?? null; + $value = $payload['type'] ?? null; if ($value === null) { - $missingFields[] = 'deployments_url'; - goto after_deployments_url; + $missingFields[] = 'type'; + goto after_type; } - $properties['deployments_url'] = $value; + $properties['type'] = $value; - after_deployments_url: + after_type: - $value = $payload['downloads_url'] ?? null; + $value = $payload['site_admin'] ?? null; if ($value === null) { - $missingFields[] = 'downloads_url'; - goto after_downloads_url; + $missingFields[] = 'site_admin'; + goto after_site_admin; } - $properties['downloads_url'] = $value; + $properties['site_admin'] = $value; - after_downloads_url: + after_site_admin: - $value = $payload['events_url'] ?? null; + $value = $payload['starred_at'] ?? null; if ($value === null) { - $missingFields[] = 'events_url'; - goto after_events_url; + $missingFields[] = 'starred_at'; + goto after_starred_at; } - $properties['events_url'] = $value; + $properties['starred_at'] = $value; - after_events_url: + after_starred_at: - $value = $payload['forks_url'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleUser', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\SimpleUser::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\SimpleUser(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleUser', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Installation⚡️Account(array $payload): \ApiClients\Client\Github\Schema\Installation\Account + { + $properties = []; + $missingFields = []; + try { + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Installation\Account', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Installation\Account::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\Installation\Account(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Installation\Account', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️AppPermissions(array $payload): \ApiClients\Client\Github\Schema\AppPermissions + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['actions'] ?? null; if ($value === null) { - $missingFields[] = 'forks_url'; - goto after_forks_url; + $missingFields[] = 'actions'; + goto after_actions; } - $properties['forks_url'] = $value; + $properties['actions'] = $value; - after_forks_url: + after_actions: - $value = $payload['git_commits_url'] ?? null; + $value = $payload['administration'] ?? null; if ($value === null) { - $missingFields[] = 'git_commits_url'; - goto after_git_commits_url; + $missingFields[] = 'administration'; + goto after_administration; } - $properties['git_commits_url'] = $value; + $properties['administration'] = $value; - after_git_commits_url: + after_administration: - $value = $payload['git_refs_url'] ?? null; + $value = $payload['checks'] ?? null; if ($value === null) { - $missingFields[] = 'git_refs_url'; - goto after_git_refs_url; + $missingFields[] = 'checks'; + goto after_checks; } - $properties['git_refs_url'] = $value; + $properties['checks'] = $value; - after_git_refs_url: + after_checks: - $value = $payload['git_tags_url'] ?? null; + $value = $payload['contents'] ?? null; if ($value === null) { - $missingFields[] = 'git_tags_url'; - goto after_git_tags_url; + $missingFields[] = 'contents'; + goto after_contents; } - $properties['git_tags_url'] = $value; + $properties['contents'] = $value; - after_git_tags_url: + after_contents: - $value = $payload['git_url'] ?? null; + $value = $payload['deployments'] ?? null; if ($value === null) { - $missingFields[] = 'git_url'; - goto after_git_url; + $missingFields[] = 'deployments'; + goto after_deployments; } - $properties['git_url'] = $value; + $properties['deployments'] = $value; - after_git_url: + after_deployments: - $value = $payload['issue_comment_url'] ?? null; + $value = $payload['environments'] ?? null; if ($value === null) { - $missingFields[] = 'issue_comment_url'; - goto after_issue_comment_url; + $missingFields[] = 'environments'; + goto after_environments; } - $properties['issue_comment_url'] = $value; + $properties['environments'] = $value; - after_issue_comment_url: + after_environments: - $value = $payload['issue_events_url'] ?? null; + $value = $payload['issues'] ?? null; if ($value === null) { - $missingFields[] = 'issue_events_url'; - goto after_issue_events_url; + $missingFields[] = 'issues'; + goto after_issues; } - $properties['issue_events_url'] = $value; + $properties['issues'] = $value; - after_issue_events_url: + after_issues: - $value = $payload['issues_url'] ?? null; + $value = $payload['metadata'] ?? null; if ($value === null) { - $missingFields[] = 'issues_url'; - goto after_issues_url; + $missingFields[] = 'metadata'; + goto after_metadata; } - $properties['issues_url'] = $value; + $properties['metadata'] = $value; - after_issues_url: + after_metadata: - $value = $payload['keys_url'] ?? null; + $value = $payload['packages'] ?? null; if ($value === null) { - $missingFields[] = 'keys_url'; - goto after_keys_url; + $missingFields[] = 'packages'; + goto after_packages; } - $properties['keys_url'] = $value; + $properties['packages'] = $value; - after_keys_url: + after_packages: - $value = $payload['labels_url'] ?? null; + $value = $payload['pages'] ?? null; if ($value === null) { - $missingFields[] = 'labels_url'; - goto after_labels_url; + $missingFields[] = 'pages'; + goto after_pages; } - $properties['labels_url'] = $value; + $properties['pages'] = $value; - after_labels_url: + after_pages: - $value = $payload['languages_url'] ?? null; + $value = $payload['pull_requests'] ?? null; if ($value === null) { - $missingFields[] = 'languages_url'; - goto after_languages_url; + $missingFields[] = 'pull_requests'; + goto after_pull_requests; } - $properties['languages_url'] = $value; + $properties['pull_requests'] = $value; - after_languages_url: + after_pull_requests: - $value = $payload['merges_url'] ?? null; + $value = $payload['repository_announcement_banners'] ?? null; if ($value === null) { - $missingFields[] = 'merges_url'; - goto after_merges_url; + $missingFields[] = 'repository_announcement_banners'; + goto after_repository_announcement_banners; } - $properties['merges_url'] = $value; + $properties['repository_announcement_banners'] = $value; - after_merges_url: + after_repository_announcement_banners: - $value = $payload['milestones_url'] ?? null; + $value = $payload['repository_hooks'] ?? null; if ($value === null) { - $missingFields[] = 'milestones_url'; - goto after_milestones_url; + $missingFields[] = 'repository_hooks'; + goto after_repository_hooks; } - $properties['milestones_url'] = $value; + $properties['repository_hooks'] = $value; - after_milestones_url: + after_repository_hooks: - $value = $payload['notifications_url'] ?? null; + $value = $payload['repository_projects'] ?? null; if ($value === null) { - $missingFields[] = 'notifications_url'; - goto after_notifications_url; + $missingFields[] = 'repository_projects'; + goto after_repository_projects; } - $properties['notifications_url'] = $value; + $properties['repository_projects'] = $value; - after_notifications_url: + after_repository_projects: - $value = $payload['pulls_url'] ?? null; + $value = $payload['secret_scanning_alerts'] ?? null; if ($value === null) { - $missingFields[] = 'pulls_url'; - goto after_pulls_url; + $missingFields[] = 'secret_scanning_alerts'; + goto after_secret_scanning_alerts; } - $properties['pulls_url'] = $value; + $properties['secret_scanning_alerts'] = $value; - after_pulls_url: + after_secret_scanning_alerts: - $value = $payload['releases_url'] ?? null; + $value = $payload['secrets'] ?? null; if ($value === null) { - $missingFields[] = 'releases_url'; - goto after_releases_url; + $missingFields[] = 'secrets'; + goto after_secrets; } - $properties['releases_url'] = $value; + $properties['secrets'] = $value; - after_releases_url: + after_secrets: - $value = $payload['ssh_url'] ?? null; + $value = $payload['security_events'] ?? null; if ($value === null) { - $missingFields[] = 'ssh_url'; - goto after_ssh_url; + $missingFields[] = 'security_events'; + goto after_security_events; } - $properties['ssh_url'] = $value; + $properties['security_events'] = $value; - after_ssh_url: + after_security_events: - $value = $payload['stargazers_url'] ?? null; + $value = $payload['single_file'] ?? null; if ($value === null) { - $missingFields[] = 'stargazers_url'; - goto after_stargazers_url; + $missingFields[] = 'single_file'; + goto after_single_file; } - $properties['stargazers_url'] = $value; + $properties['single_file'] = $value; - after_stargazers_url: + after_single_file: - $value = $payload['statuses_url'] ?? null; + $value = $payload['statuses'] ?? null; if ($value === null) { - $missingFields[] = 'statuses_url'; - goto after_statuses_url; + $missingFields[] = 'statuses'; + goto after_statuses; } - $properties['statuses_url'] = $value; + $properties['statuses'] = $value; - after_statuses_url: + after_statuses: - $value = $payload['subscribers_url'] ?? null; + $value = $payload['vulnerability_alerts'] ?? null; if ($value === null) { - $missingFields[] = 'subscribers_url'; - goto after_subscribers_url; + $missingFields[] = 'vulnerability_alerts'; + goto after_vulnerability_alerts; } - $properties['subscribers_url'] = $value; + $properties['vulnerability_alerts'] = $value; - after_subscribers_url: + after_vulnerability_alerts: - $value = $payload['subscription_url'] ?? null; + $value = $payload['workflows'] ?? null; if ($value === null) { - $missingFields[] = 'subscription_url'; - goto after_subscription_url; + $missingFields[] = 'workflows'; + goto after_workflows; } - $properties['subscription_url'] = $value; + $properties['workflows'] = $value; - after_subscription_url: + after_workflows: - $value = $payload['tags_url'] ?? null; + $value = $payload['members'] ?? null; if ($value === null) { - $missingFields[] = 'tags_url'; - goto after_tags_url; + $missingFields[] = 'members'; + goto after_members; } - $properties['tags_url'] = $value; + $properties['members'] = $value; - after_tags_url: + after_members: - $value = $payload['teams_url'] ?? null; + $value = $payload['organization_administration'] ?? null; if ($value === null) { - $missingFields[] = 'teams_url'; - goto after_teams_url; + $missingFields[] = 'organization_administration'; + goto after_organization_administration; } - $properties['teams_url'] = $value; + $properties['organization_administration'] = $value; - after_teams_url: + after_organization_administration: - $value = $payload['trees_url'] ?? null; + $value = $payload['organization_custom_roles'] ?? null; if ($value === null) { - $missingFields[] = 'trees_url'; - goto after_trees_url; + $missingFields[] = 'organization_custom_roles'; + goto after_organization_custom_roles; } - $properties['trees_url'] = $value; + $properties['organization_custom_roles'] = $value; - after_trees_url: + after_organization_custom_roles: - $value = $payload['clone_url'] ?? null; + $value = $payload['organization_announcement_banners'] ?? null; if ($value === null) { - $missingFields[] = 'clone_url'; - goto after_clone_url; + $missingFields[] = 'organization_announcement_banners'; + goto after_organization_announcement_banners; } - $properties['clone_url'] = $value; + $properties['organization_announcement_banners'] = $value; - after_clone_url: + after_organization_announcement_banners: - $value = $payload['mirror_url'] ?? null; + $value = $payload['organization_hooks'] ?? null; if ($value === null) { - $missingFields[] = 'mirror_url'; - goto after_mirror_url; + $missingFields[] = 'organization_hooks'; + goto after_organization_hooks; } - $properties['mirror_url'] = $value; + $properties['organization_hooks'] = $value; - after_mirror_url: + after_organization_hooks: - $value = $payload['hooks_url'] ?? null; + $value = $payload['organization_plan'] ?? null; if ($value === null) { - $missingFields[] = 'hooks_url'; - goto after_hooks_url; + $missingFields[] = 'organization_plan'; + goto after_organization_plan; } - $properties['hooks_url'] = $value; + $properties['organization_plan'] = $value; - after_hooks_url: + after_organization_plan: - $value = $payload['svn_url'] ?? null; + $value = $payload['organization_projects'] ?? null; if ($value === null) { - $missingFields[] = 'svn_url'; - goto after_svn_url; + $missingFields[] = 'organization_projects'; + goto after_organization_projects; } - $properties['svn_url'] = $value; + $properties['organization_projects'] = $value; - after_svn_url: + after_organization_projects: - $value = $payload['homepage'] ?? null; + $value = $payload['organization_packages'] ?? null; if ($value === null) { - $missingFields[] = 'homepage'; - goto after_homepage; + $missingFields[] = 'organization_packages'; + goto after_organization_packages; } - $properties['homepage'] = $value; + $properties['organization_packages'] = $value; - after_homepage: + after_organization_packages: - $value = $payload['language'] ?? null; + $value = $payload['organization_secrets'] ?? null; if ($value === null) { - $missingFields[] = 'language'; - goto after_language; + $missingFields[] = 'organization_secrets'; + goto after_organization_secrets; } - $properties['language'] = $value; + $properties['organization_secrets'] = $value; - after_language: + after_organization_secrets: - $value = $payload['forks_count'] ?? null; + $value = $payload['organization_self_hosted_runners'] ?? null; if ($value === null) { - $missingFields[] = 'forks_count'; - goto after_forks_count; + $missingFields[] = 'organization_self_hosted_runners'; + goto after_organization_self_hosted_runners; } - $properties['forks_count'] = $value; + $properties['organization_self_hosted_runners'] = $value; - after_forks_count: + after_organization_self_hosted_runners: - $value = $payload['stargazers_count'] ?? null; + $value = $payload['organization_user_blocking'] ?? null; if ($value === null) { - $missingFields[] = 'stargazers_count'; - goto after_stargazers_count; + $missingFields[] = 'organization_user_blocking'; + goto after_organization_user_blocking; } - $properties['stargazers_count'] = $value; + $properties['organization_user_blocking'] = $value; - after_stargazers_count: + after_organization_user_blocking: - $value = $payload['watchers_count'] ?? null; + $value = $payload['team_discussions'] ?? null; if ($value === null) { - $missingFields[] = 'watchers_count'; - goto after_watchers_count; + $missingFields[] = 'team_discussions'; + goto after_team_discussions; } - $properties['watchers_count'] = $value; + $properties['team_discussions'] = $value; - after_watchers_count: + after_team_discussions: - $value = $payload['size'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\AppPermissions', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\AppPermissions::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\AppPermissions(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\AppPermissions', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️Permissions(array $payload): \ApiClients\Client\Github\Schema\Repository\Permissions + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['admin'] ?? null; if ($value === null) { - $missingFields[] = 'size'; - goto after_size; + $missingFields[] = 'admin'; + goto after_admin; } - $properties['size'] = $value; + $properties['admin'] = $value; - after_size: + after_admin: - $value = $payload['default_branch'] ?? null; + $value = $payload['pull'] ?? null; if ($value === null) { - $missingFields[] = 'default_branch'; - goto after_default_branch; - } + $missingFields[] = 'pull'; + goto after_pull; + } - $properties['default_branch'] = $value; + $properties['pull'] = $value; - after_default_branch: + after_pull: - $value = $payload['open_issues_count'] ?? null; + $value = $payload['triage'] ?? null; if ($value === null) { - $missingFields[] = 'open_issues_count'; - goto after_open_issues_count; + $missingFields[] = 'triage'; + goto after_triage; } - $properties['open_issues_count'] = $value; + $properties['triage'] = $value; - after_open_issues_count: + after_triage: - $value = $payload['is_template'] ?? null; + $value = $payload['push'] ?? null; if ($value === null) { - $missingFields[] = 'is_template'; - goto after_is_template; + $missingFields[] = 'push'; + goto after_push; } - $properties['is_template'] = $value; + $properties['push'] = $value; - after_is_template: + after_push: - $value = $payload['topics'] ?? null; + $value = $payload['maintain'] ?? null; if ($value === null) { - $missingFields[] = 'topics'; - goto after_topics; + $missingFields[] = 'maintain'; + goto after_maintain; } - $properties['topics'] = $value; + $properties['maintain'] = $value; - after_topics: + after_maintain: - $value = $payload['has_issues'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\Permissions', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\Permissions::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\Repository\Permissions(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\Permissions', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository(array $payload): \ApiClients\Client\Github\Schema\Repository\TemplateRepository + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'has_issues'; - goto after_has_issues; + $missingFields[] = 'id'; + goto after_id; } - $properties['has_issues'] = $value; + $properties['id'] = $value; - after_has_issues: + after_id: - $value = $payload['has_projects'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $missingFields[] = 'has_projects'; - goto after_has_projects; + $missingFields[] = 'node_id'; + goto after_node_id; } - $properties['has_projects'] = $value; + $properties['node_id'] = $value; - after_has_projects: + after_node_id: - $value = $payload['has_wiki'] ?? null; + $value = $payload['name'] ?? null; if ($value === null) { - $missingFields[] = 'has_wiki'; - goto after_has_wiki; + $missingFields[] = 'name'; + goto after_name; } - $properties['has_wiki'] = $value; + $properties['name'] = $value; - after_has_wiki: + after_name: - $value = $payload['has_pages'] ?? null; + $value = $payload['full_name'] ?? null; if ($value === null) { - $missingFields[] = 'has_pages'; - goto after_has_pages; + $missingFields[] = 'full_name'; + goto after_full_name; } - $properties['has_pages'] = $value; + $properties['full_name'] = $value; - after_has_pages: + after_full_name: - $value = $payload['has_downloads'] ?? null; + $value = $payload['owner'] ?? null; if ($value === null) { - $missingFields[] = 'has_downloads'; - goto after_has_downloads; + $missingFields[] = 'owner'; + goto after_owner; } - $properties['has_downloads'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'owner'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['owner'] = $value; - after_has_downloads: + after_owner: - $value = $payload['archived'] ?? null; + $value = $payload['private'] ?? null; if ($value === null) { - $missingFields[] = 'archived'; - goto after_archived; + $missingFields[] = 'private'; + goto after_private; } - $properties['archived'] = $value; + $properties['private'] = $value; - after_archived: + after_private: - $value = $payload['disabled'] ?? null; + $value = $payload['html_url'] ?? null; if ($value === null) { - $missingFields[] = 'disabled'; - goto after_disabled; + $missingFields[] = 'html_url'; + goto after_html_url; } - $properties['disabled'] = $value; + $properties['html_url'] = $value; - after_disabled: + after_html_url: - $value = $payload['visibility'] ?? null; + $value = $payload['description'] ?? null; if ($value === null) { - $missingFields[] = 'visibility'; - goto after_visibility; + $missingFields[] = 'description'; + goto after_description; } - $properties['visibility'] = $value; + $properties['description'] = $value; - after_visibility: + after_description: - $value = $payload['pushed_at'] ?? null; + $value = $payload['fork'] ?? null; if ($value === null) { - $missingFields[] = 'pushed_at'; - goto after_pushed_at; + $missingFields[] = 'fork'; + goto after_fork; } - $properties['pushed_at'] = $value; + $properties['fork'] = $value; - after_pushed_at: + after_fork: - $value = $payload['created_at'] ?? null; + $value = $payload['url'] ?? null; if ($value === null) { - $missingFields[] = 'created_at'; - goto after_created_at; + $missingFields[] = 'url'; + goto after_url; } - $properties['created_at'] = $value; + $properties['url'] = $value; - after_created_at: + after_url: - $value = $payload['updated_at'] ?? null; + $value = $payload['archive_url'] ?? null; if ($value === null) { - $missingFields[] = 'updated_at'; - goto after_updated_at; + $missingFields[] = 'archive_url'; + goto after_archive_url; } - $properties['updated_at'] = $value; + $properties['archive_url'] = $value; - after_updated_at: + after_archive_url: - $value = $payload['permissions'] ?? null; + $value = $payload['assignees_url'] ?? null; if ($value === null) { - $missingFields[] = 'permissions'; - goto after_permissions; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'permissions'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Permissions($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'assignees_url'; + goto after_assignees_url; } - $properties['permissions'] = $value; + $properties['assignees_url'] = $value; - after_permissions: + after_assignees_url: - $value = $payload['allow_rebase_merge'] ?? null; + $value = $payload['blobs_url'] ?? null; if ($value === null) { - $missingFields[] = 'allow_rebase_merge'; - goto after_allow_rebase_merge; + $missingFields[] = 'blobs_url'; + goto after_blobs_url; } - $properties['allow_rebase_merge'] = $value; + $properties['blobs_url'] = $value; - after_allow_rebase_merge: + after_blobs_url: - $value = $payload['temp_clone_token'] ?? null; + $value = $payload['branches_url'] ?? null; if ($value === null) { - $missingFields[] = 'temp_clone_token'; - goto after_temp_clone_token; + $missingFields[] = 'branches_url'; + goto after_branches_url; } - $properties['temp_clone_token'] = $value; + $properties['branches_url'] = $value; - after_temp_clone_token: + after_branches_url: - $value = $payload['allow_squash_merge'] ?? null; + $value = $payload['collaborators_url'] ?? null; if ($value === null) { - $missingFields[] = 'allow_squash_merge'; - goto after_allow_squash_merge; + $missingFields[] = 'collaborators_url'; + goto after_collaborators_url; } - $properties['allow_squash_merge'] = $value; + $properties['collaborators_url'] = $value; - after_allow_squash_merge: + after_collaborators_url: - $value = $payload['allow_auto_merge'] ?? null; + $value = $payload['comments_url'] ?? null; if ($value === null) { - $missingFields[] = 'allow_auto_merge'; - goto after_allow_auto_merge; + $missingFields[] = 'comments_url'; + goto after_comments_url; } - $properties['allow_auto_merge'] = $value; + $properties['comments_url'] = $value; - after_allow_auto_merge: + after_comments_url: - $value = $payload['delete_branch_on_merge'] ?? null; + $value = $payload['commits_url'] ?? null; if ($value === null) { - $missingFields[] = 'delete_branch_on_merge'; - goto after_delete_branch_on_merge; + $missingFields[] = 'commits_url'; + goto after_commits_url; } - $properties['delete_branch_on_merge'] = $value; + $properties['commits_url'] = $value; - after_delete_branch_on_merge: + after_commits_url: - $value = $payload['allow_update_branch'] ?? null; + $value = $payload['compare_url'] ?? null; if ($value === null) { - $missingFields[] = 'allow_update_branch'; - goto after_allow_update_branch; + $missingFields[] = 'compare_url'; + goto after_compare_url; } - $properties['allow_update_branch'] = $value; + $properties['compare_url'] = $value; - after_allow_update_branch: + after_compare_url: - $value = $payload['use_squash_pr_title_as_default'] ?? null; + $value = $payload['contents_url'] ?? null; if ($value === null) { - $missingFields[] = 'use_squash_pr_title_as_default'; - goto after_use_squash_pr_title_as_default; + $missingFields[] = 'contents_url'; + goto after_contents_url; } - $properties['use_squash_pr_title_as_default'] = $value; + $properties['contents_url'] = $value; - after_use_squash_pr_title_as_default: + after_contents_url: - $value = $payload['squash_merge_commit_title'] ?? null; + $value = $payload['contributors_url'] ?? null; if ($value === null) { - $missingFields[] = 'squash_merge_commit_title'; - goto after_squash_merge_commit_title; + $missingFields[] = 'contributors_url'; + goto after_contributors_url; } - $properties['squash_merge_commit_title'] = $value; + $properties['contributors_url'] = $value; - after_squash_merge_commit_title: + after_contributors_url: - $value = $payload['squash_merge_commit_message'] ?? null; + $value = $payload['deployments_url'] ?? null; if ($value === null) { - $missingFields[] = 'squash_merge_commit_message'; - goto after_squash_merge_commit_message; + $missingFields[] = 'deployments_url'; + goto after_deployments_url; } - $properties['squash_merge_commit_message'] = $value; + $properties['deployments_url'] = $value; - after_squash_merge_commit_message: + after_deployments_url: - $value = $payload['merge_commit_title'] ?? null; + $value = $payload['downloads_url'] ?? null; if ($value === null) { - $missingFields[] = 'merge_commit_title'; - goto after_merge_commit_title; + $missingFields[] = 'downloads_url'; + goto after_downloads_url; } - $properties['merge_commit_title'] = $value; + $properties['downloads_url'] = $value; - after_merge_commit_title: + after_downloads_url: - $value = $payload['merge_commit_message'] ?? null; + $value = $payload['events_url'] ?? null; if ($value === null) { - $missingFields[] = 'merge_commit_message'; - goto after_merge_commit_message; + $missingFields[] = 'events_url'; + goto after_events_url; } - $properties['merge_commit_message'] = $value; + $properties['events_url'] = $value; - after_merge_commit_message: + after_events_url: - $value = $payload['allow_merge_commit'] ?? null; + $value = $payload['forks_url'] ?? null; if ($value === null) { - $missingFields[] = 'allow_merge_commit'; - goto after_allow_merge_commit; + $missingFields[] = 'forks_url'; + goto after_forks_url; } - $properties['allow_merge_commit'] = $value; + $properties['forks_url'] = $value; - after_allow_merge_commit: + after_forks_url: - $value = $payload['subscribers_count'] ?? null; + $value = $payload['git_commits_url'] ?? null; if ($value === null) { - $missingFields[] = 'subscribers_count'; - goto after_subscribers_count; + $missingFields[] = 'git_commits_url'; + goto after_git_commits_url; } - $properties['subscribers_count'] = $value; + $properties['git_commits_url'] = $value; - after_subscribers_count: + after_git_commits_url: - $value = $payload['network_count'] ?? null; + $value = $payload['git_refs_url'] ?? null; if ($value === null) { - $missingFields[] = 'network_count'; - goto after_network_count; + $missingFields[] = 'git_refs_url'; + goto after_git_refs_url; } - $properties['network_count'] = $value; + $properties['git_refs_url'] = $value; - after_network_count: - - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\TemplateRepository::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\Repository\TemplateRepository(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository', $exception, stack: $this->hydrationStack); - } - } + after_git_refs_url: - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner(array $payload): \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['login'] ?? null; + $value = $payload['git_tags_url'] ?? null; if ($value === null) { - $missingFields[] = 'login'; - goto after_login; + $missingFields[] = 'git_tags_url'; + goto after_git_tags_url; } - $properties['login'] = $value; + $properties['git_tags_url'] = $value; - after_login: + after_git_tags_url: - $value = $payload['id'] ?? null; + $value = $payload['git_url'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'git_url'; + goto after_git_url; } - $properties['id'] = $value; + $properties['git_url'] = $value; - after_id: + after_git_url: - $value = $payload['node_id'] ?? null; + $value = $payload['issue_comment_url'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $missingFields[] = 'issue_comment_url'; + goto after_issue_comment_url; } - $properties['node_id'] = $value; + $properties['issue_comment_url'] = $value; - after_node_id: + after_issue_comment_url: - $value = $payload['avatar_url'] ?? null; + $value = $payload['issue_events_url'] ?? null; if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatar_url; + $missingFields[] = 'issue_events_url'; + goto after_issue_events_url; } - $properties['avatar_url'] = $value; + $properties['issue_events_url'] = $value; - after_avatar_url: + after_issue_events_url: - $value = $payload['gravatar_id'] ?? null; + $value = $payload['issues_url'] ?? null; if ($value === null) { - $missingFields[] = 'gravatar_id'; - goto after_gravatar_id; + $missingFields[] = 'issues_url'; + goto after_issues_url; } - $properties['gravatar_id'] = $value; + $properties['issues_url'] = $value; - after_gravatar_id: + after_issues_url: - $value = $payload['url'] ?? null; + $value = $payload['keys_url'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $missingFields[] = 'keys_url'; + goto after_keys_url; } - $properties['url'] = $value; + $properties['keys_url'] = $value; - after_url: + after_keys_url: - $value = $payload['html_url'] ?? null; + $value = $payload['labels_url'] ?? null; if ($value === null) { - $missingFields[] = 'html_url'; - goto after_html_url; + $missingFields[] = 'labels_url'; + goto after_labels_url; } - $properties['html_url'] = $value; + $properties['labels_url'] = $value; - after_html_url: + after_labels_url: - $value = $payload['followers_url'] ?? null; + $value = $payload['languages_url'] ?? null; if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followers_url; + $missingFields[] = 'languages_url'; + goto after_languages_url; } - $properties['followers_url'] = $value; + $properties['languages_url'] = $value; - after_followers_url: + after_languages_url: - $value = $payload['following_url'] ?? null; + $value = $payload['merges_url'] ?? null; if ($value === null) { - $missingFields[] = 'following_url'; - goto after_following_url; + $missingFields[] = 'merges_url'; + goto after_merges_url; } - $properties['following_url'] = $value; + $properties['merges_url'] = $value; - after_following_url: + after_merges_url: - $value = $payload['gists_url'] ?? null; + $value = $payload['milestones_url'] ?? null; if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gists_url; + $missingFields[] = 'milestones_url'; + goto after_milestones_url; } - $properties['gists_url'] = $value; + $properties['milestones_url'] = $value; - after_gists_url: + after_milestones_url: - $value = $payload['starred_url'] ?? null; + $value = $payload['notifications_url'] ?? null; if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starred_url; + $missingFields[] = 'notifications_url'; + goto after_notifications_url; } - $properties['starred_url'] = $value; + $properties['notifications_url'] = $value; - after_starred_url: + after_notifications_url: - $value = $payload['subscriptions_url'] ?? null; + $value = $payload['pulls_url'] ?? null; if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptions_url; + $missingFields[] = 'pulls_url'; + goto after_pulls_url; } - $properties['subscriptions_url'] = $value; + $properties['pulls_url'] = $value; - after_subscriptions_url: + after_pulls_url: - $value = $payload['organizations_url'] ?? null; + $value = $payload['releases_url'] ?? null; if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizations_url; + $missingFields[] = 'releases_url'; + goto after_releases_url; } - $properties['organizations_url'] = $value; + $properties['releases_url'] = $value; - after_organizations_url: + after_releases_url: - $value = $payload['repos_url'] ?? null; + $value = $payload['ssh_url'] ?? null; if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_repos_url; + $missingFields[] = 'ssh_url'; + goto after_ssh_url; } - $properties['repos_url'] = $value; + $properties['ssh_url'] = $value; - after_repos_url: + after_ssh_url: - $value = $payload['events_url'] ?? null; + $value = $payload['stargazers_url'] ?? null; if ($value === null) { - $missingFields[] = 'events_url'; - goto after_events_url; + $missingFields[] = 'stargazers_url'; + goto after_stargazers_url; } - $properties['events_url'] = $value; + $properties['stargazers_url'] = $value; - after_events_url: + after_stargazers_url: - $value = $payload['received_events_url'] ?? null; + $value = $payload['statuses_url'] ?? null; if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_received_events_url; + $missingFields[] = 'statuses_url'; + goto after_statuses_url; } - $properties['received_events_url'] = $value; + $properties['statuses_url'] = $value; - after_received_events_url: + after_statuses_url: - $value = $payload['type'] ?? null; + $value = $payload['subscribers_url'] ?? null; if ($value === null) { - $missingFields[] = 'type'; - goto after_type; + $missingFields[] = 'subscribers_url'; + goto after_subscribers_url; } - $properties['type'] = $value; + $properties['subscribers_url'] = $value; - after_type: + after_subscribers_url: - $value = $payload['site_admin'] ?? null; + $value = $payload['subscription_url'] ?? null; if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_site_admin; + $missingFields[] = 'subscription_url'; + goto after_subscription_url; } - $properties['site_admin'] = $value; + $properties['subscription_url'] = $value; - after_site_admin: + after_subscription_url: - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner', $exception, stack: $this->hydrationStack); - } - } + $value = $payload['tags_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'tags_url'; + goto after_tags_url; + } - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Permissions(array $payload): \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['admin'] ?? null; + $properties['tags_url'] = $value; + + after_tags_url: + + $value = $payload['teams_url'] ?? null; if ($value === null) { - $missingFields[] = 'admin'; - goto after_admin; + $missingFields[] = 'teams_url'; + goto after_teams_url; } - $properties['admin'] = $value; + $properties['teams_url'] = $value; - after_admin: + after_teams_url: - $value = $payload['maintain'] ?? null; + $value = $payload['trees_url'] ?? null; if ($value === null) { - $missingFields[] = 'maintain'; - goto after_maintain; + $missingFields[] = 'trees_url'; + goto after_trees_url; } - $properties['maintain'] = $value; + $properties['trees_url'] = $value; - after_maintain: + after_trees_url: - $value = $payload['push'] ?? null; + $value = $payload['clone_url'] ?? null; if ($value === null) { - $missingFields[] = 'push'; - goto after_push; + $missingFields[] = 'clone_url'; + goto after_clone_url; } - $properties['push'] = $value; + $properties['clone_url'] = $value; - after_push: + after_clone_url: - $value = $payload['triage'] ?? null; + $value = $payload['mirror_url'] ?? null; if ($value === null) { - $missingFields[] = 'triage'; - goto after_triage; + $missingFields[] = 'mirror_url'; + goto after_mirror_url; } - $properties['triage'] = $value; + $properties['mirror_url'] = $value; - after_triage: + after_mirror_url: - $value = $payload['pull'] ?? null; + $value = $payload['hooks_url'] ?? null; if ($value === null) { - $missingFields[] = 'pull'; - goto after_pull; + $missingFields[] = 'hooks_url'; + goto after_hooks_url; } - $properties['pull'] = $value; + $properties['hooks_url'] = $value; - after_pull: + after_hooks_url: - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions', $exception, stack: $this->hydrationStack); - } - } + $value = $payload['svn_url'] ?? null; - public function serializeObject(object $object): mixed - { - try { - $className = get_class($object); + if ($value === null) { + $missingFields[] = 'svn_url'; + goto after_svn_url; + } - return match($className) { - 'array' => $this->serializeValuearray($object), - 'Ramsey\Uuid\UuidInterface' => $this->serializeValueRamsey⚡️Uuid⚡️UuidInterface($object), - 'DateTime' => $this->serializeValueDateTime($object), - 'DateTimeImmutable' => $this->serializeValueDateTimeImmutable($object), - 'DateTimeInterface' => $this->serializeValueDateTimeInterface($object), - 'ApiClients\Client\Github\Schema\WebhookInstallationUnsuspend' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookInstallationUnsuspend($object), - default => throw new \LogicException('No serialization defined for $className'), - }; - } catch (\Throwable $exception) { - throw UnableToSerializeObject::dueToError($className, $exception); - } - } + $properties['svn_url'] = $value; + after_svn_url: + + $value = $payload['homepage'] ?? null; - private function serializeValuearray(mixed $value): mixed - { - static $serializer; - - if ($serializer === null) { - $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeArrayItems(...array ( -)); - } - - return $serializer->serialize($value, $this); - } + if ($value === null) { + $missingFields[] = 'homepage'; + goto after_homepage; + } + $properties['homepage'] = $value; + + after_homepage: - private function serializeValueRamsey⚡️Uuid⚡️UuidInterface(mixed $value): mixed - { - static $serializer; - - if ($serializer === null) { - $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeUuidToString(...array ( -)); - } - - return $serializer->serialize($value, $this); - } + $value = $payload['language'] ?? null; + + if ($value === null) { + $missingFields[] = 'language'; + goto after_language; + } + $properties['language'] = $value; + + after_language: - private function serializeValueDateTime(mixed $value): mixed - { - static $serializer; - - if ($serializer === null) { - $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeDateTime(...array ( -)); - } - - return $serializer->serialize($value, $this); - } + $value = $payload['forks_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'forks_count'; + goto after_forks_count; + } + $properties['forks_count'] = $value; + + after_forks_count: - private function serializeValueDateTimeImmutable(mixed $value): mixed - { - static $serializer; - - if ($serializer === null) { - $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeDateTime(...array ( -)); - } - - return $serializer->serialize($value, $this); - } + $value = $payload['stargazers_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'stargazers_count'; + goto after_stargazers_count; + } + + $properties['stargazers_count'] = $value; + + after_stargazers_count: + $value = $payload['watchers_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'watchers_count'; + goto after_watchers_count; + } - private function serializeValueDateTimeInterface(mixed $value): mixed - { - static $serializer; - - if ($serializer === null) { - $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeDateTime(...array ( -)); - } - - return $serializer->serialize($value, $this); + $properties['watchers_count'] = $value; + + after_watchers_count: + + $value = $payload['size'] ?? null; + + if ($value === null) { + $missingFields[] = 'size'; + goto after_size; + } + + $properties['size'] = $value; + + after_size: + + $value = $payload['default_branch'] ?? null; + + if ($value === null) { + $missingFields[] = 'default_branch'; + goto after_default_branch; + } + + $properties['default_branch'] = $value; + + after_default_branch: + + $value = $payload['open_issues_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'open_issues_count'; + goto after_open_issues_count; + } + + $properties['open_issues_count'] = $value; + + after_open_issues_count: + + $value = $payload['is_template'] ?? null; + + if ($value === null) { + $missingFields[] = 'is_template'; + goto after_is_template; + } + + $properties['is_template'] = $value; + + after_is_template: + + $value = $payload['topics'] ?? null; + + if ($value === null) { + $missingFields[] = 'topics'; + goto after_topics; + } + + $properties['topics'] = $value; + + after_topics: + + $value = $payload['has_issues'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_issues'; + goto after_has_issues; + } + + $properties['has_issues'] = $value; + + after_has_issues: + + $value = $payload['has_projects'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_projects'; + goto after_has_projects; + } + + $properties['has_projects'] = $value; + + after_has_projects: + + $value = $payload['has_wiki'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_wiki'; + goto after_has_wiki; + } + + $properties['has_wiki'] = $value; + + after_has_wiki: + + $value = $payload['has_pages'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_pages'; + goto after_has_pages; + } + + $properties['has_pages'] = $value; + + after_has_pages: + + $value = $payload['has_downloads'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_downloads'; + goto after_has_downloads; + } + + $properties['has_downloads'] = $value; + + after_has_downloads: + + $value = $payload['archived'] ?? null; + + if ($value === null) { + $missingFields[] = 'archived'; + goto after_archived; + } + + $properties['archived'] = $value; + + after_archived: + + $value = $payload['disabled'] ?? null; + + if ($value === null) { + $missingFields[] = 'disabled'; + goto after_disabled; + } + + $properties['disabled'] = $value; + + after_disabled: + + $value = $payload['visibility'] ?? null; + + if ($value === null) { + $missingFields[] = 'visibility'; + goto after_visibility; + } + + $properties['visibility'] = $value; + + after_visibility: + + $value = $payload['pushed_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'pushed_at'; + goto after_pushed_at; + } + + $properties['pushed_at'] = $value; + + after_pushed_at: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'created_at'; + goto after_created_at; + } + + $properties['created_at'] = $value; + + after_created_at: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'updated_at'; + goto after_updated_at; + } + + $properties['updated_at'] = $value; + + after_updated_at: + + $value = $payload['permissions'] ?? null; + + if ($value === null) { + $missingFields[] = 'permissions'; + goto after_permissions; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'permissions'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Permissions($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['permissions'] = $value; + + after_permissions: + + $value = $payload['allow_rebase_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_rebase_merge'; + goto after_allow_rebase_merge; + } + + $properties['allow_rebase_merge'] = $value; + + after_allow_rebase_merge: + + $value = $payload['temp_clone_token'] ?? null; + + if ($value === null) { + $missingFields[] = 'temp_clone_token'; + goto after_temp_clone_token; + } + + $properties['temp_clone_token'] = $value; + + after_temp_clone_token: + + $value = $payload['allow_squash_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_squash_merge'; + goto after_allow_squash_merge; + } + + $properties['allow_squash_merge'] = $value; + + after_allow_squash_merge: + + $value = $payload['allow_auto_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_auto_merge'; + goto after_allow_auto_merge; + } + + $properties['allow_auto_merge'] = $value; + + after_allow_auto_merge: + + $value = $payload['delete_branch_on_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'delete_branch_on_merge'; + goto after_delete_branch_on_merge; + } + + $properties['delete_branch_on_merge'] = $value; + + after_delete_branch_on_merge: + + $value = $payload['allow_update_branch'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_update_branch'; + goto after_allow_update_branch; + } + + $properties['allow_update_branch'] = $value; + + after_allow_update_branch: + + $value = $payload['use_squash_pr_title_as_default'] ?? null; + + if ($value === null) { + $missingFields[] = 'use_squash_pr_title_as_default'; + goto after_use_squash_pr_title_as_default; + } + + $properties['use_squash_pr_title_as_default'] = $value; + + after_use_squash_pr_title_as_default: + + $value = $payload['squash_merge_commit_title'] ?? null; + + if ($value === null) { + $missingFields[] = 'squash_merge_commit_title'; + goto after_squash_merge_commit_title; + } + + $properties['squash_merge_commit_title'] = $value; + + after_squash_merge_commit_title: + + $value = $payload['squash_merge_commit_message'] ?? null; + + if ($value === null) { + $missingFields[] = 'squash_merge_commit_message'; + goto after_squash_merge_commit_message; + } + + $properties['squash_merge_commit_message'] = $value; + + after_squash_merge_commit_message: + + $value = $payload['merge_commit_title'] ?? null; + + if ($value === null) { + $missingFields[] = 'merge_commit_title'; + goto after_merge_commit_title; + } + + $properties['merge_commit_title'] = $value; + + after_merge_commit_title: + + $value = $payload['merge_commit_message'] ?? null; + + if ($value === null) { + $missingFields[] = 'merge_commit_message'; + goto after_merge_commit_message; + } + + $properties['merge_commit_message'] = $value; + + after_merge_commit_message: + + $value = $payload['allow_merge_commit'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_merge_commit'; + goto after_allow_merge_commit; + } + + $properties['allow_merge_commit'] = $value; + + after_allow_merge_commit: + + $value = $payload['subscribers_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscribers_count'; + goto after_subscribers_count; + } + + $properties['subscribers_count'] = $value; + + after_subscribers_count: + + $value = $payload['network_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'network_count'; + goto after_network_count; + } + + $properties['network_count'] = $value; + + after_network_count: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\TemplateRepository::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\Repository\TemplateRepository(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner(array $payload): \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['login'] ?? null; + + if ($value === null) { + $missingFields[] = 'login'; + goto after_login; + } + + $properties['login'] = $value; + + after_login: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['avatar_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'avatar_url'; + goto after_avatar_url; + } + + $properties['avatar_url'] = $value; + + after_avatar_url: + + $value = $payload['gravatar_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'gravatar_id'; + goto after_gravatar_id; + } + + $properties['gravatar_id'] = $value; + + after_gravatar_id: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } + + $properties['html_url'] = $value; + + after_html_url: + + $value = $payload['followers_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'followers_url'; + goto after_followers_url; + } + + $properties['followers_url'] = $value; + + after_followers_url: + + $value = $payload['following_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'following_url'; + goto after_following_url; + } + + $properties['following_url'] = $value; + + after_following_url: + + $value = $payload['gists_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'gists_url'; + goto after_gists_url; + } + + $properties['gists_url'] = $value; + + after_gists_url: + + $value = $payload['starred_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'starred_url'; + goto after_starred_url; + } + + $properties['starred_url'] = $value; + + after_starred_url: + + $value = $payload['subscriptions_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscriptions_url'; + goto after_subscriptions_url; + } + + $properties['subscriptions_url'] = $value; + + after_subscriptions_url: + + $value = $payload['organizations_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'organizations_url'; + goto after_organizations_url; + } + + $properties['organizations_url'] = $value; + + after_organizations_url: + + $value = $payload['repos_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'repos_url'; + goto after_repos_url; + } + + $properties['repos_url'] = $value; + + after_repos_url: + + $value = $payload['events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'events_url'; + goto after_events_url; + } + + $properties['events_url'] = $value; + + after_events_url: + + $value = $payload['received_events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'received_events_url'; + goto after_received_events_url; + } + + $properties['received_events_url'] = $value; + + after_received_events_url: + + $value = $payload['type'] ?? null; + + if ($value === null) { + $missingFields[] = 'type'; + goto after_type; + } + + $properties['type'] = $value; + + after_type: + + $value = $payload['site_admin'] ?? null; + + if ($value === null) { + $missingFields[] = 'site_admin'; + goto after_site_admin; + } + + $properties['site_admin'] = $value; + + after_site_admin: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Permissions(array $payload): \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['admin'] ?? null; + + if ($value === null) { + $missingFields[] = 'admin'; + goto after_admin; + } + + $properties['admin'] = $value; + + after_admin: + + $value = $payload['maintain'] ?? null; + + if ($value === null) { + $missingFields[] = 'maintain'; + goto after_maintain; + } + + $properties['maintain'] = $value; + + after_maintain: + + $value = $payload['push'] ?? null; + + if ($value === null) { + $missingFields[] = 'push'; + goto after_push; + } + + $properties['push'] = $value; + + after_push: + + $value = $payload['triage'] ?? null; + + if ($value === null) { + $missingFields[] = 'triage'; + goto after_triage; + } + + $properties['triage'] = $value; + + after_triage: + + $value = $payload['pull'] ?? null; + + if ($value === null) { + $missingFields[] = 'pull'; + goto after_pull; + } + + $properties['pull'] = $value; + + after_pull: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions', $exception, stack: $this->hydrationStack); + } + } + + public function serializeObject(object $object): mixed + { + try { + $className = get_class($object); + + return match($className) { + 'array' => $this->serializeValuearray($object), + 'Ramsey\Uuid\UuidInterface' => $this->serializeValueRamsey⚡️Uuid⚡️UuidInterface($object), + 'DateTime' => $this->serializeValueDateTime($object), + 'DateTimeImmutable' => $this->serializeValueDateTimeImmutable($object), + 'DateTimeInterface' => $this->serializeValueDateTimeInterface($object), + 'ApiClients\Client\Github\Schema\WebhookInstallationCreated' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookInstallationCreated($object), + 'ApiClients\Client\Github\Schema\WebhookInstallationDeleted' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookInstallationDeleted($object), + 'ApiClients\Client\Github\Schema\WebhookInstallationNewPermissionsAccepted' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookInstallationNewPermissionsAccepted($object), + 'ApiClients\Client\Github\Schema\WebhookInstallationSuspend' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookInstallationSuspend($object), + 'ApiClients\Client\Github\Schema\WebhookInstallationUnsuspend' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookInstallationUnsuspend($object), + default => throw new \LogicException('No serialization defined for $className'), + }; + } catch (\Throwable $exception) { + throw UnableToSerializeObject::dueToError($className, $exception); + } + } + + + private function serializeValuearray(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeArrayItems(...array ( +)); + } + + return $serializer->serialize($value, $this); + } + + + private function serializeValueRamsey⚡️Uuid⚡️UuidInterface(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeUuidToString(...array ( +)); + } + + return $serializer->serialize($value, $this); + } + + + private function serializeValueDateTime(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeDateTime(...array ( +)); + } + + return $serializer->serialize($value, $this); + } + + + private function serializeValueDateTimeImmutable(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeDateTime(...array ( +)); + } + + return $serializer->serialize($value, $this); + } + + + private function serializeValueDateTimeInterface(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeDateTime(...array ( +)); + } + + return $serializer->serialize($value, $this); + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookInstallationCreated(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookInstallationCreated); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + + if ($installation === null) { + goto after_installation; + } + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Installation($installation); + after_installation: $result['installation'] = $installation; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $repositories = $object->repositories; + static $repositoriesSerializer0; + + if ($repositoriesSerializer0 === null) { + $repositoriesSerializer0 = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeArrayItems(...array ( +)); + } + + $repositories = $repositoriesSerializer0->serialize($repositories, $this); + after_repositories: $result['repositories'] = $repositories; + + + $repository = $object->repository; + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $requester = $object->requester; + + if ($requester === null) { + goto after_requester; + } + $requester = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($requester); + after_requester: $result['requester'] = $requester; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookInstallationDeleted(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookInstallationDeleted); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + + if ($installation === null) { + goto after_installation; + } + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Installation($installation); + after_installation: $result['installation'] = $installation; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $repositories = $object->repositories; + static $repositoriesSerializer0; + + if ($repositoriesSerializer0 === null) { + $repositoriesSerializer0 = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeArrayItems(...array ( +)); + } + + $repositories = $repositoriesSerializer0->serialize($repositories, $this); + after_repositories: $result['repositories'] = $repositories; + + + $repository = $object->repository; + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $requester = $object->requester; + + if ($requester === null) { + goto after_requester; + } + after_requester: $result['requester'] = $requester; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookInstallationNewPermissionsAccepted(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookInstallationNewPermissionsAccepted); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + + if ($installation === null) { + goto after_installation; + } + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Installation($installation); + after_installation: $result['installation'] = $installation; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $repositories = $object->repositories; + static $repositoriesSerializer0; + + if ($repositoriesSerializer0 === null) { + $repositoriesSerializer0 = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeArrayItems(...array ( +)); + } + + $repositories = $repositoriesSerializer0->serialize($repositories, $this); + after_repositories: $result['repositories'] = $repositories; + + + $repository = $object->repository; + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $requester = $object->requester; + + if ($requester === null) { + goto after_requester; + } + after_requester: $result['requester'] = $requester; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookInstallationSuspend(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookInstallationSuspend); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + + if ($installation === null) { + goto after_installation; + } + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Installation($installation); + after_installation: $result['installation'] = $installation; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $repositories = $object->repositories; + static $repositoriesSerializer0; + + if ($repositoriesSerializer0 === null) { + $repositoriesSerializer0 = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeArrayItems(...array ( +)); + } + + $repositories = $repositoriesSerializer0->serialize($repositories, $this); + after_repositories: $result['repositories'] = $repositories; + + + $repository = $object->repository; + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $requester = $object->requester; + + if ($requester === null) { + goto after_requester; + } + after_requester: $result['requester'] = $requester; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; } diff --git a/src/Hydrator/WebHook/InstallationRepositories.php b/src/Hydrator/WebHook/InstallationRepositories.php index c15a3bebad..a012fd8e1a 100644 --- a/src/Hydrator/WebHook/InstallationRepositories.php +++ b/src/Hydrator/WebHook/InstallationRepositories.php @@ -23,7 +23,8 @@ public function __construct() {} public function hydrateObject(string $className, array $payload): object { return match($className) { - 'ApiClients\Client\Github\Schema\WebhookInstallationRepositoriesRemoved' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookInstallationRepositoriesRemoved($payload), + 'ApiClients\Client\Github\Schema\WebhookInstallationRepositoriesAdded' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookInstallationRepositoriesAdded($payload), + 'ApiClients\Client\Github\Schema\WebhookInstallationRepositoriesRemoved' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookInstallationRepositoriesRemoved($payload), 'ApiClients\Client\Github\Schema\Enterprise' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($payload), 'ApiClients\Client\Github\Schema\Installation' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Installation($payload), 'ApiClients\Client\Github\Schema\OrganizationSimple' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($payload), @@ -41,6 +42,192 @@ public function hydrateObject(string $className, array $payload): object } + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookInstallationRepositoriesAdded(array $payload): \ApiClients\Client\Github\Schema\WebhookInstallationRepositoriesAdded + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; + + if ($value === null) { + $missingFields[] = 'action'; + goto after_action; + } + + $properties['action'] = $value; + + after_action: + + $value = $payload['enterprise'] ?? null; + + if ($value === null) { + $missingFields[] = 'enterprise'; + goto after_enterprise; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['enterprise'] = $value; + + after_enterprise: + + $value = $payload['installation'] ?? null; + + if ($value === null) { + $missingFields[] = 'installation'; + goto after_installation; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Installation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; + + after_installation: + + $value = $payload['organization'] ?? null; + + if ($value === null) { + $missingFields[] = 'organization'; + goto after_organization; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; + + after_organization: + + $value = $payload['repositories_added'] ?? null; + + if ($value === null) { + $missingFields[] = 'repositories_added'; + goto after_repositories_added; + } + + $properties['repositories_added'] = $value; + + after_repositories_added: + + $value = $payload['repositories_removed'] ?? null; + + if ($value === null) { + $missingFields[] = 'repositories_removed'; + goto after_repositories_removed; + } + + $properties['repositories_removed'] = $value; + + after_repositories_removed: + + $value = $payload['repository'] ?? null; + + if ($value === null) { + $missingFields[] = 'repository'; + goto after_repository; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repository'] = $value; + + after_repository: + + $value = $payload['repository_selection'] ?? null; + + if ($value === null) { + $missingFields[] = 'repository_selection'; + goto after_repository_selection; + } + + $properties['repository_selection'] = $value; + + after_repository_selection: + + $value = $payload['requester'] ?? null; + + if ($value === null) { + $missingFields[] = 'requester'; + goto after_requester; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'requester'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['requester'] = $value; + + after_requester: + + $value = $payload['sender'] ?? null; + + if ($value === null) { + $missingFields[] = 'sender'; + goto after_sender; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; + + after_sender: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookInstallationRepositoriesAdded', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookInstallationRepositoriesAdded::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookInstallationRepositoriesAdded(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookInstallationRepositoriesAdded', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookInstallationRepositoriesRemoved(array $payload): \ApiClients\Client\Github\Schema\WebhookInstallationRepositoriesRemoved { $properties = []; @@ -4205,6 +4392,7 @@ public function serializeObject(object $object): mixed 'DateTime' => $this->serializeValueDateTime($object), 'DateTimeImmutable' => $this->serializeValueDateTimeImmutable($object), 'DateTimeInterface' => $this->serializeValueDateTimeInterface($object), + 'ApiClients\Client\Github\Schema\WebhookInstallationRepositoriesAdded' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookInstallationRepositoriesAdded($object), 'ApiClients\Client\Github\Schema\WebhookInstallationRepositoriesRemoved' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookInstallationRepositoriesRemoved($object), default => throw new \LogicException('No serialization defined for $className'), }; @@ -4279,6 +4467,105 @@ private function serializeValueDateTimeInterface(mixed $value): mixed } + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookInstallationRepositoriesAdded(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookInstallationRepositoriesAdded); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + + if ($installation === null) { + goto after_installation; + } + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Installation($installation); + after_installation: $result['installation'] = $installation; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $repositories_added = $object->repositories_added; + + if ($repositories_added === null) { + goto after_repositories_added; + } + static $repositories_addedSerializer0; + + if ($repositories_addedSerializer0 === null) { + $repositories_addedSerializer0 = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeArrayItems(...array ( +)); + } + + $repositories_added = $repositories_addedSerializer0->serialize($repositories_added, $this); + after_repositories_added: $result['repositories_added'] = $repositories_added; + + + $repositories_removed = $object->repositories_removed; + + if ($repositories_removed === null) { + goto after_repositories_removed; + } + static $repositories_removedSerializer0; + + if ($repositories_removedSerializer0 === null) { + $repositories_removedSerializer0 = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeArrayItems(...array ( +)); + } + + $repositories_removed = $repositories_removedSerializer0->serialize($repositories_removed, $this); + after_repositories_removed: $result['repositories_removed'] = $repositories_removed; + + + $repository = $object->repository; + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $repository_selection = $object->repository_selection; + + if ($repository_selection === null) { + goto after_repository_selection; + } + after_repository_selection: $result['repository_selection'] = $repository_selection; + + + $requester = $object->requester; + + if ($requester === null) { + goto after_requester; + } + $requester = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($requester); + after_requester: $result['requester'] = $requester; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookInstallationRepositoriesRemoved(mixed $object): mixed { \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookInstallationRepositoriesRemoved); diff --git a/src/Hydrator/WebHook/IssueComment.php b/src/Hydrator/WebHook/IssueComment.php index d7f07fc67d..ba799f623b 100644 --- a/src/Hydrator/WebHook/IssueComment.php +++ b/src/Hydrator/WebHook/IssueComment.php @@ -23,19 +23,23 @@ public function __construct() {} public function hydrateObject(string $className, array $payload): object { return match($className) { - 'ApiClients\Client\Github\Schema\WebhookIssueCommentEdited' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentEdited($payload), - 'ApiClients\Client\Github\Schema\WebhookIssueCommentEdited\Changes' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentEdited⚡️Changes($payload), - 'ApiClients\Client\Github\Schema\WebhookIssueCommentDeleted\Comment' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Comment($payload), + 'ApiClients\Client\Github\Schema\WebhookIssueCommentCreated' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentCreated($payload), + 'ApiClients\Client\Github\Schema\WebhookIssueCommentDeleted' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentDeleted($payload), + 'ApiClients\Client\Github\Schema\WebhookIssueCommentEdited' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentEdited($payload), + 'ApiClients\Client\Github\Schema\WebhookIssueCommentCreated\Comment' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentCreated⚡️Comment($payload), 'ApiClients\Client\Github\Schema\Enterprise' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($payload), 'ApiClients\Client\Github\Schema\SimpleInstallation' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($payload), 'ApiClients\Client\Github\Schema\OrganizationSimple' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($payload), 'ApiClients\Client\Github\Schema\Repository' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($payload), 'ApiClients\Client\Github\Schema\SimpleUser' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($payload), - 'ApiClients\Client\Github\Schema\WebhookIssueCommentEdited\Changes\Body' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentEdited⚡️Changes⚡️Body($payload), + 'ApiClients\Client\Github\Schema\WebhookIssueCommentDeleted\Comment' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Comment($payload), + 'ApiClients\Client\Github\Schema\WebhookIssueCommentEdited\Changes' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentEdited⚡️Changes($payload), 'ApiClients\Client\Github\Schema\Discussion\Reactions' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️Reactions($payload), - 'ApiClients\Client\Github\Schema\WebhookIssueCommentDeleted\Comment\User' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Comment⚡️User($payload), + 'ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($payload), 'ApiClients\Client\Github\Schema\Repository\Permissions' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️Permissions($payload), 'ApiClients\Client\Github\Schema\Repository\TemplateRepository' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository($payload), + 'ApiClients\Client\Github\Schema\WebhookIssueCommentDeleted\Comment\User' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Comment⚡️User($payload), + 'ApiClients\Client\Github\Schema\WebhookIssueCommentEdited\Changes\Body' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentEdited⚡️Changes⚡️Body($payload), 'ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner($payload), 'ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Permissions($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), @@ -43,7 +47,7 @@ public function hydrateObject(string $className, array $payload): object } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentEdited(array $payload): \ApiClients\Client\Github\Schema\WebhookIssueCommentEdited + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentCreated(array $payload): \ApiClients\Client\Github\Schema\WebhookIssueCommentCreated { $properties = []; $missingFields = []; @@ -60,26 +64,6 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh after_action: - $value = $payload['changes'] ?? null; - - if ($value === null) { - $missingFields[] = 'changes'; - goto after_changes; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'changes'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentEdited⚡️Changes($value); - } finally { - array_pop($this->hydrationStack); - } - } - - $properties['changes'] = $value; - - after_changes: - $value = $payload['comment'] ?? null; if ($value === null) { @@ -90,7 +74,7 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'comment'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Comment($value); + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentCreated⚡️Comment($value); } finally { array_pop($this->hydrationStack); } @@ -212,264 +196,570 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh after_sender: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssueCommentEdited', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookIssueCommentEdited::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\WebhookIssueCommentEdited(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssueCommentEdited', $exception, stack: $this->hydrationStack); - } - } - - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentEdited⚡️Changes(array $payload): \ApiClients\Client\Github\Schema\WebhookIssueCommentEdited\Changes - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['body'] ?? null; - - if ($value === null) { - $missingFields[] = 'body'; - goto after_body; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'body'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentEdited⚡️Changes⚡️Body($value); - } finally { - array_pop($this->hydrationStack); - } - } - - $properties['body'] = $value; - - after_body: - - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssueCommentEdited\Changes', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssueCommentCreated', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookIssueCommentEdited\Changes::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookIssueCommentCreated::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\WebhookIssueCommentEdited\Changes(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookIssueCommentCreated(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssueCommentEdited\Changes', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssueCommentCreated', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Comment(array $payload): \ApiClients\Client\Github\Schema\WebhookIssueCommentDeleted\Comment + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentDeleted(array $payload): \ApiClients\Client\Github\Schema\WebhookIssueCommentDeleted { $properties = []; $missingFields = []; try { - $value = $payload['author_association'] ?? null; + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'author_association'; - goto after_author_association; + $missingFields[] = 'action'; + goto after_action; } - $properties['author_association'] = $value; + $properties['action'] = $value; - after_author_association: + after_action: - $value = $payload['body'] ?? null; + $value = $payload['comment'] ?? null; if ($value === null) { - $missingFields[] = 'body'; - goto after_body; + $missingFields[] = 'comment'; + goto after_comment; } - $properties['body'] = $value; - - after_body: - - $value = $payload['created_at'] ?? null; - - if ($value === null) { - $missingFields[] = 'created_at'; - goto after_created_at; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'comment'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Comment($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['created_at'] = $value; + $properties['comment'] = $value; - after_created_at: + after_comment: - $value = $payload['html_url'] ?? null; + $value = $payload['enterprise'] ?? null; if ($value === null) { - $missingFields[] = 'html_url'; - goto after_html_url; + $missingFields[] = 'enterprise'; + goto after_enterprise; } - $properties['html_url'] = $value; - - after_html_url: - - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['id'] = $value; + $properties['enterprise'] = $value; - after_id: + after_enterprise: - $value = $payload['issue_url'] ?? null; + $value = $payload['installation'] ?? null; if ($value === null) { - $missingFields[] = 'issue_url'; - goto after_issue_url; + $missingFields[] = 'installation'; + goto after_installation; } - $properties['issue_url'] = $value; - - after_issue_url: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['node_id'] = $value; + $properties['installation'] = $value; - after_node_id: + after_installation: - $value = $payload['performed_via_github_app'] ?? null; + $value = $payload['issue'] ?? null; if ($value === null) { - $properties['performed_via_github_app'] = null; - goto after_performed_via_github_app; + $properties['issue'] = null; + goto after_issue; } - $properties['performed_via_github_app'] = $value; + $properties['issue'] = $value; - after_performed_via_github_app: + after_issue: - $value = $payload['reactions'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'reactions'; - goto after_reactions; + $missingFields[] = 'organization'; + goto after_organization; } if (is_array($value)) { try { - $this->hydrationStack[] = 'reactions'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️Reactions($value); + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); } finally { array_pop($this->hydrationStack); } } - $properties['reactions'] = $value; + $properties['organization'] = $value; - after_reactions: + after_organization: - $value = $payload['updated_at'] ?? null; + $value = $payload['repository'] ?? null; if ($value === null) { - $missingFields[] = 'updated_at'; - goto after_updated_at; + $missingFields[] = 'repository'; + goto after_repository; } - $properties['updated_at'] = $value; - - after_updated_at: - - $value = $payload['url'] ?? null; - - if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['url'] = $value; + $properties['repository'] = $value; - after_url: + after_repository: - $value = $payload['user'] ?? null; + $value = $payload['sender'] ?? null; if ($value === null) { - $missingFields[] = 'user'; - goto after_user; + $missingFields[] = 'sender'; + goto after_sender; } if (is_array($value)) { try { - $this->hydrationStack[] = 'user'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Comment⚡️User($value); + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } } - $properties['user'] = $value; + $properties['sender'] = $value; - after_user: + after_sender: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssueCommentDeleted\Comment', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssueCommentDeleted', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookIssueCommentDeleted\Comment::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookIssueCommentDeleted::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\WebhookIssueCommentDeleted\Comment(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookIssueCommentDeleted(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssueCommentDeleted\Comment', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssueCommentDeleted', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise(array $payload): \ApiClients\Client\Github\Schema\Enterprise + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentEdited(array $payload): \ApiClients\Client\Github\Schema\WebhookIssueCommentEdited { $properties = []; $missingFields = []; try { - $value = $payload['description'] ?? null; + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'description'; - goto after_description; + $missingFields[] = 'action'; + goto after_action; } - $properties['description'] = $value; + $properties['action'] = $value; - after_description: + after_action: - $value = $payload['html_url'] ?? null; + $value = $payload['changes'] ?? null; if ($value === null) { - $missingFields[] = 'html_url'; - goto after_html_url; + $missingFields[] = 'changes'; + goto after_changes; } - $properties['html_url'] = $value; - - after_html_url: - - $value = $payload['website_url'] ?? null; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'changes'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentEdited⚡️Changes($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['changes'] = $value; + + after_changes: + + $value = $payload['comment'] ?? null; + + if ($value === null) { + $missingFields[] = 'comment'; + goto after_comment; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'comment'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Comment($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['comment'] = $value; + + after_comment: + + $value = $payload['enterprise'] ?? null; + + if ($value === null) { + $missingFields[] = 'enterprise'; + goto after_enterprise; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['enterprise'] = $value; + + after_enterprise: + + $value = $payload['installation'] ?? null; + + if ($value === null) { + $missingFields[] = 'installation'; + goto after_installation; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; + + after_installation: + + $value = $payload['issue'] ?? null; + + if ($value === null) { + $properties['issue'] = null; + goto after_issue; + } + + $properties['issue'] = $value; + + after_issue: + + $value = $payload['organization'] ?? null; + + if ($value === null) { + $missingFields[] = 'organization'; + goto after_organization; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; + + after_organization: + + $value = $payload['repository'] ?? null; + + if ($value === null) { + $missingFields[] = 'repository'; + goto after_repository; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repository'] = $value; + + after_repository: + + $value = $payload['sender'] ?? null; + + if ($value === null) { + $missingFields[] = 'sender'; + goto after_sender; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; + + after_sender: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssueCommentEdited', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookIssueCommentEdited::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookIssueCommentEdited(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssueCommentEdited', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentCreated⚡️Comment(array $payload): \ApiClients\Client\Github\Schema\WebhookIssueCommentCreated\Comment + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['author_association'] ?? null; + + if ($value === null) { + $missingFields[] = 'author_association'; + goto after_author_association; + } + + $properties['author_association'] = $value; + + after_author_association: + + $value = $payload['body'] ?? null; + + if ($value === null) { + $missingFields[] = 'body'; + goto after_body; + } + + $properties['body'] = $value; + + after_body: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'created_at'; + goto after_created_at; + } + + $properties['created_at'] = $value; + + after_created_at: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } + + $properties['html_url'] = $value; + + after_html_url: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['issue_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issue_url'; + goto after_issue_url; + } + + $properties['issue_url'] = $value; + + after_issue_url: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['performed_via_github_app'] ?? null; + + if ($value === null) { + $properties['performed_via_github_app'] = null; + goto after_performed_via_github_app; + } + + $properties['performed_via_github_app'] = $value; + + after_performed_via_github_app: + + $value = $payload['reactions'] ?? null; + + if ($value === null) { + $missingFields[] = 'reactions'; + goto after_reactions; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'reactions'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️Reactions($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['reactions'] = $value; + + after_reactions: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'updated_at'; + goto after_updated_at; + } + + $properties['updated_at'] = $value; + + after_updated_at: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['user'] ?? null; + + if ($value === null) { + $missingFields[] = 'user'; + goto after_user; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'user'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['user'] = $value; + + after_user: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssueCommentCreated\Comment', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookIssueCommentCreated\Comment::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookIssueCommentCreated\Comment(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssueCommentCreated\Comment', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise(array $payload): \ApiClients\Client\Github\Schema\Enterprise + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['description'] ?? null; + + if ($value === null) { + $missingFields[] = 'description'; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } + + $properties['html_url'] = $value; + + after_html_url: + + $value = $payload['website_url'] ?? null; if ($value === null) { $missingFields[] = 'website_url'; @@ -2162,35 +2452,216 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Simp } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentEdited⚡️Changes⚡️Body(array $payload): \ApiClients\Client\Github\Schema\WebhookIssueCommentEdited\Changes\Body + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Comment(array $payload): \ApiClients\Client\Github\Schema\WebhookIssueCommentDeleted\Comment { $properties = []; $missingFields = []; try { - $value = $payload['from'] ?? null; + $value = $payload['author_association'] ?? null; if ($value === null) { - $missingFields[] = 'from'; - goto after_from; + $missingFields[] = 'author_association'; + goto after_author_association; } - $properties['from'] = $value; + $properties['author_association'] = $value; - after_from: + after_author_association: + + $value = $payload['body'] ?? null; + + if ($value === null) { + $missingFields[] = 'body'; + goto after_body; + } + + $properties['body'] = $value; + + after_body: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'created_at'; + goto after_created_at; + } + + $properties['created_at'] = $value; + + after_created_at: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } + + $properties['html_url'] = $value; + + after_html_url: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['issue_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issue_url'; + goto after_issue_url; + } + + $properties['issue_url'] = $value; + + after_issue_url: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['performed_via_github_app'] ?? null; + + if ($value === null) { + $properties['performed_via_github_app'] = null; + goto after_performed_via_github_app; + } + + $properties['performed_via_github_app'] = $value; + + after_performed_via_github_app: + + $value = $payload['reactions'] ?? null; + + if ($value === null) { + $missingFields[] = 'reactions'; + goto after_reactions; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'reactions'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️Reactions($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['reactions'] = $value; + + after_reactions: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'updated_at'; + goto after_updated_at; + } + + $properties['updated_at'] = $value; + + after_updated_at: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['user'] ?? null; + + if ($value === null) { + $missingFields[] = 'user'; + goto after_user; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'user'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Comment⚡️User($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['user'] = $value; + + after_user: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssueCommentEdited\Changes\Body', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssueCommentDeleted\Comment', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookIssueCommentEdited\Changes\Body::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookIssueCommentDeleted\Comment::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\WebhookIssueCommentEdited\Changes\Body(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookIssueCommentDeleted\Comment(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssueCommentEdited\Changes\Body', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssueCommentDeleted\Comment', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentEdited⚡️Changes(array $payload): \ApiClients\Client\Github\Schema\WebhookIssueCommentEdited\Changes + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['body'] ?? null; + + if ($value === null) { + $missingFields[] = 'body'; + goto after_body; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'body'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentEdited⚡️Changes⚡️Body($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['body'] = $value; + + after_body: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssueCommentEdited\Changes', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookIssueCommentEdited\Changes::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookIssueCommentEdited\Changes(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssueCommentEdited\Changes', $exception, stack: $this->hydrationStack); } } @@ -2327,7 +2798,7 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Disc } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Comment⚡️User(array $payload): \ApiClients\Client\Github\Schema\WebhookIssueCommentDeleted\Comment\User + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy(array $payload): \ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy { $properties = []; $missingFields = []; @@ -2565,17 +3036,17 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh after_url: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssueCommentDeleted\Comment\User', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookIssueCommentDeleted\Comment\User::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\WebhookIssueCommentDeleted\Comment\User(...$properties); + return new \ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssueCommentDeleted\Comment\User', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy', $exception, stack: $this->hydrationStack); } } @@ -3277,379 +3748,665 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repo after_stargazers_count: - $value = $payload['watchers_count'] ?? null; + $value = $payload['watchers_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'watchers_count'; + goto after_watchers_count; + } + + $properties['watchers_count'] = $value; + + after_watchers_count: + + $value = $payload['size'] ?? null; + + if ($value === null) { + $missingFields[] = 'size'; + goto after_size; + } + + $properties['size'] = $value; + + after_size: + + $value = $payload['default_branch'] ?? null; + + if ($value === null) { + $missingFields[] = 'default_branch'; + goto after_default_branch; + } + + $properties['default_branch'] = $value; + + after_default_branch: + + $value = $payload['open_issues_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'open_issues_count'; + goto after_open_issues_count; + } + + $properties['open_issues_count'] = $value; + + after_open_issues_count: + + $value = $payload['is_template'] ?? null; + + if ($value === null) { + $missingFields[] = 'is_template'; + goto after_is_template; + } + + $properties['is_template'] = $value; + + after_is_template: + + $value = $payload['topics'] ?? null; + + if ($value === null) { + $missingFields[] = 'topics'; + goto after_topics; + } + + $properties['topics'] = $value; + + after_topics: + + $value = $payload['has_issues'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_issues'; + goto after_has_issues; + } + + $properties['has_issues'] = $value; + + after_has_issues: + + $value = $payload['has_projects'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_projects'; + goto after_has_projects; + } + + $properties['has_projects'] = $value; + + after_has_projects: + + $value = $payload['has_wiki'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_wiki'; + goto after_has_wiki; + } + + $properties['has_wiki'] = $value; + + after_has_wiki: + + $value = $payload['has_pages'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_pages'; + goto after_has_pages; + } + + $properties['has_pages'] = $value; + + after_has_pages: + + $value = $payload['has_downloads'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_downloads'; + goto after_has_downloads; + } + + $properties['has_downloads'] = $value; + + after_has_downloads: + + $value = $payload['archived'] ?? null; + + if ($value === null) { + $missingFields[] = 'archived'; + goto after_archived; + } + + $properties['archived'] = $value; + + after_archived: + + $value = $payload['disabled'] ?? null; + + if ($value === null) { + $missingFields[] = 'disabled'; + goto after_disabled; + } + + $properties['disabled'] = $value; + + after_disabled: + + $value = $payload['visibility'] ?? null; + + if ($value === null) { + $missingFields[] = 'visibility'; + goto after_visibility; + } + + $properties['visibility'] = $value; + + after_visibility: + + $value = $payload['pushed_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'pushed_at'; + goto after_pushed_at; + } + + $properties['pushed_at'] = $value; + + after_pushed_at: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'created_at'; + goto after_created_at; + } + + $properties['created_at'] = $value; + + after_created_at: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'updated_at'; + goto after_updated_at; + } + + $properties['updated_at'] = $value; + + after_updated_at: + + $value = $payload['permissions'] ?? null; + + if ($value === null) { + $missingFields[] = 'permissions'; + goto after_permissions; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'permissions'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Permissions($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['permissions'] = $value; + + after_permissions: + + $value = $payload['allow_rebase_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_rebase_merge'; + goto after_allow_rebase_merge; + } + + $properties['allow_rebase_merge'] = $value; + + after_allow_rebase_merge: + + $value = $payload['temp_clone_token'] ?? null; + + if ($value === null) { + $missingFields[] = 'temp_clone_token'; + goto after_temp_clone_token; + } + + $properties['temp_clone_token'] = $value; + + after_temp_clone_token: + + $value = $payload['allow_squash_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_squash_merge'; + goto after_allow_squash_merge; + } + + $properties['allow_squash_merge'] = $value; + + after_allow_squash_merge: + + $value = $payload['allow_auto_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_auto_merge'; + goto after_allow_auto_merge; + } + + $properties['allow_auto_merge'] = $value; + + after_allow_auto_merge: + + $value = $payload['delete_branch_on_merge'] ?? null; if ($value === null) { - $missingFields[] = 'watchers_count'; - goto after_watchers_count; + $missingFields[] = 'delete_branch_on_merge'; + goto after_delete_branch_on_merge; } - $properties['watchers_count'] = $value; + $properties['delete_branch_on_merge'] = $value; - after_watchers_count: + after_delete_branch_on_merge: - $value = $payload['size'] ?? null; + $value = $payload['allow_update_branch'] ?? null; if ($value === null) { - $missingFields[] = 'size'; - goto after_size; + $missingFields[] = 'allow_update_branch'; + goto after_allow_update_branch; } - $properties['size'] = $value; + $properties['allow_update_branch'] = $value; - after_size: + after_allow_update_branch: - $value = $payload['default_branch'] ?? null; + $value = $payload['use_squash_pr_title_as_default'] ?? null; if ($value === null) { - $missingFields[] = 'default_branch'; - goto after_default_branch; + $missingFields[] = 'use_squash_pr_title_as_default'; + goto after_use_squash_pr_title_as_default; } - $properties['default_branch'] = $value; + $properties['use_squash_pr_title_as_default'] = $value; - after_default_branch: + after_use_squash_pr_title_as_default: - $value = $payload['open_issues_count'] ?? null; + $value = $payload['squash_merge_commit_title'] ?? null; if ($value === null) { - $missingFields[] = 'open_issues_count'; - goto after_open_issues_count; + $missingFields[] = 'squash_merge_commit_title'; + goto after_squash_merge_commit_title; } - $properties['open_issues_count'] = $value; + $properties['squash_merge_commit_title'] = $value; - after_open_issues_count: + after_squash_merge_commit_title: - $value = $payload['is_template'] ?? null; + $value = $payload['squash_merge_commit_message'] ?? null; if ($value === null) { - $missingFields[] = 'is_template'; - goto after_is_template; + $missingFields[] = 'squash_merge_commit_message'; + goto after_squash_merge_commit_message; } - $properties['is_template'] = $value; + $properties['squash_merge_commit_message'] = $value; - after_is_template: + after_squash_merge_commit_message: - $value = $payload['topics'] ?? null; + $value = $payload['merge_commit_title'] ?? null; if ($value === null) { - $missingFields[] = 'topics'; - goto after_topics; + $missingFields[] = 'merge_commit_title'; + goto after_merge_commit_title; } - $properties['topics'] = $value; + $properties['merge_commit_title'] = $value; - after_topics: + after_merge_commit_title: - $value = $payload['has_issues'] ?? null; + $value = $payload['merge_commit_message'] ?? null; if ($value === null) { - $missingFields[] = 'has_issues'; - goto after_has_issues; + $missingFields[] = 'merge_commit_message'; + goto after_merge_commit_message; } - $properties['has_issues'] = $value; + $properties['merge_commit_message'] = $value; - after_has_issues: + after_merge_commit_message: - $value = $payload['has_projects'] ?? null; + $value = $payload['allow_merge_commit'] ?? null; if ($value === null) { - $missingFields[] = 'has_projects'; - goto after_has_projects; + $missingFields[] = 'allow_merge_commit'; + goto after_allow_merge_commit; } - $properties['has_projects'] = $value; + $properties['allow_merge_commit'] = $value; - after_has_projects: + after_allow_merge_commit: - $value = $payload['has_wiki'] ?? null; + $value = $payload['subscribers_count'] ?? null; if ($value === null) { - $missingFields[] = 'has_wiki'; - goto after_has_wiki; + $missingFields[] = 'subscribers_count'; + goto after_subscribers_count; } - $properties['has_wiki'] = $value; + $properties['subscribers_count'] = $value; - after_has_wiki: + after_subscribers_count: - $value = $payload['has_pages'] ?? null; + $value = $payload['network_count'] ?? null; if ($value === null) { - $missingFields[] = 'has_pages'; - goto after_has_pages; + $missingFields[] = 'network_count'; + goto after_network_count; } - $properties['has_pages'] = $value; + $properties['network_count'] = $value; - after_has_pages: + after_network_count: - $value = $payload['has_downloads'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\TemplateRepository::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\Repository\TemplateRepository(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Comment⚡️User(array $payload): \ApiClients\Client\Github\Schema\WebhookIssueCommentDeleted\Comment\User + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['avatar_url'] ?? null; if ($value === null) { - $missingFields[] = 'has_downloads'; - goto after_has_downloads; + $missingFields[] = 'avatar_url'; + goto after_avatar_url; } - $properties['has_downloads'] = $value; + $properties['avatar_url'] = $value; - after_has_downloads: + after_avatar_url: - $value = $payload['archived'] ?? null; + $value = $payload['deleted'] ?? null; if ($value === null) { - $missingFields[] = 'archived'; - goto after_archived; + $missingFields[] = 'deleted'; + goto after_deleted; } - $properties['archived'] = $value; + $properties['deleted'] = $value; - after_archived: + after_deleted: - $value = $payload['disabled'] ?? null; + $value = $payload['email'] ?? null; if ($value === null) { - $missingFields[] = 'disabled'; - goto after_disabled; + $missingFields[] = 'email'; + goto after_email; } - $properties['disabled'] = $value; + $properties['email'] = $value; - after_disabled: + after_email: - $value = $payload['visibility'] ?? null; + $value = $payload['events_url'] ?? null; if ($value === null) { - $missingFields[] = 'visibility'; - goto after_visibility; + $missingFields[] = 'events_url'; + goto after_events_url; } - $properties['visibility'] = $value; + $properties['events_url'] = $value; - after_visibility: + after_events_url: - $value = $payload['pushed_at'] ?? null; + $value = $payload['followers_url'] ?? null; if ($value === null) { - $missingFields[] = 'pushed_at'; - goto after_pushed_at; + $missingFields[] = 'followers_url'; + goto after_followers_url; } - $properties['pushed_at'] = $value; + $properties['followers_url'] = $value; - after_pushed_at: + after_followers_url: - $value = $payload['created_at'] ?? null; + $value = $payload['following_url'] ?? null; if ($value === null) { - $missingFields[] = 'created_at'; - goto after_created_at; + $missingFields[] = 'following_url'; + goto after_following_url; } - $properties['created_at'] = $value; + $properties['following_url'] = $value; - after_created_at: + after_following_url: - $value = $payload['updated_at'] ?? null; + $value = $payload['gists_url'] ?? null; if ($value === null) { - $missingFields[] = 'updated_at'; - goto after_updated_at; + $missingFields[] = 'gists_url'; + goto after_gists_url; } - $properties['updated_at'] = $value; + $properties['gists_url'] = $value; - after_updated_at: + after_gists_url: - $value = $payload['permissions'] ?? null; + $value = $payload['gravatar_id'] ?? null; if ($value === null) { - $missingFields[] = 'permissions'; - goto after_permissions; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'permissions'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Permissions($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'gravatar_id'; + goto after_gravatar_id; } - $properties['permissions'] = $value; + $properties['gravatar_id'] = $value; - after_permissions: + after_gravatar_id: - $value = $payload['allow_rebase_merge'] ?? null; + $value = $payload['html_url'] ?? null; if ($value === null) { - $missingFields[] = 'allow_rebase_merge'; - goto after_allow_rebase_merge; + $missingFields[] = 'html_url'; + goto after_html_url; } - $properties['allow_rebase_merge'] = $value; + $properties['html_url'] = $value; - after_allow_rebase_merge: + after_html_url: - $value = $payload['temp_clone_token'] ?? null; + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'temp_clone_token'; - goto after_temp_clone_token; + $missingFields[] = 'id'; + goto after_id; } - $properties['temp_clone_token'] = $value; + $properties['id'] = $value; - after_temp_clone_token: + after_id: - $value = $payload['allow_squash_merge'] ?? null; + $value = $payload['login'] ?? null; if ($value === null) { - $missingFields[] = 'allow_squash_merge'; - goto after_allow_squash_merge; + $missingFields[] = 'login'; + goto after_login; } - $properties['allow_squash_merge'] = $value; + $properties['login'] = $value; - after_allow_squash_merge: + after_login: - $value = $payload['allow_auto_merge'] ?? null; + $value = $payload['name'] ?? null; if ($value === null) { - $missingFields[] = 'allow_auto_merge'; - goto after_allow_auto_merge; + $missingFields[] = 'name'; + goto after_name; } - $properties['allow_auto_merge'] = $value; + $properties['name'] = $value; - after_allow_auto_merge: + after_name: - $value = $payload['delete_branch_on_merge'] ?? null; + $value = $payload['node_id'] ?? null; - if ($value === null) { - $missingFields[] = 'delete_branch_on_merge'; - goto after_delete_branch_on_merge; + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; } - $properties['delete_branch_on_merge'] = $value; + $properties['node_id'] = $value; - after_delete_branch_on_merge: + after_node_id: - $value = $payload['allow_update_branch'] ?? null; + $value = $payload['organizations_url'] ?? null; if ($value === null) { - $missingFields[] = 'allow_update_branch'; - goto after_allow_update_branch; + $missingFields[] = 'organizations_url'; + goto after_organizations_url; } - $properties['allow_update_branch'] = $value; + $properties['organizations_url'] = $value; - after_allow_update_branch: + after_organizations_url: - $value = $payload['use_squash_pr_title_as_default'] ?? null; + $value = $payload['received_events_url'] ?? null; if ($value === null) { - $missingFields[] = 'use_squash_pr_title_as_default'; - goto after_use_squash_pr_title_as_default; + $missingFields[] = 'received_events_url'; + goto after_received_events_url; } - $properties['use_squash_pr_title_as_default'] = $value; + $properties['received_events_url'] = $value; - after_use_squash_pr_title_as_default: + after_received_events_url: - $value = $payload['squash_merge_commit_title'] ?? null; + $value = $payload['repos_url'] ?? null; if ($value === null) { - $missingFields[] = 'squash_merge_commit_title'; - goto after_squash_merge_commit_title; + $missingFields[] = 'repos_url'; + goto after_repos_url; } - $properties['squash_merge_commit_title'] = $value; + $properties['repos_url'] = $value; - after_squash_merge_commit_title: + after_repos_url: - $value = $payload['squash_merge_commit_message'] ?? null; + $value = $payload['site_admin'] ?? null; if ($value === null) { - $missingFields[] = 'squash_merge_commit_message'; - goto after_squash_merge_commit_message; + $missingFields[] = 'site_admin'; + goto after_site_admin; } - $properties['squash_merge_commit_message'] = $value; + $properties['site_admin'] = $value; - after_squash_merge_commit_message: + after_site_admin: - $value = $payload['merge_commit_title'] ?? null; + $value = $payload['starred_url'] ?? null; if ($value === null) { - $missingFields[] = 'merge_commit_title'; - goto after_merge_commit_title; + $missingFields[] = 'starred_url'; + goto after_starred_url; } - $properties['merge_commit_title'] = $value; + $properties['starred_url'] = $value; - after_merge_commit_title: + after_starred_url: - $value = $payload['merge_commit_message'] ?? null; + $value = $payload['subscriptions_url'] ?? null; if ($value === null) { - $missingFields[] = 'merge_commit_message'; - goto after_merge_commit_message; + $missingFields[] = 'subscriptions_url'; + goto after_subscriptions_url; } - $properties['merge_commit_message'] = $value; + $properties['subscriptions_url'] = $value; - after_merge_commit_message: + after_subscriptions_url: - $value = $payload['allow_merge_commit'] ?? null; + $value = $payload['type'] ?? null; if ($value === null) { - $missingFields[] = 'allow_merge_commit'; - goto after_allow_merge_commit; + $missingFields[] = 'type'; + goto after_type; } - $properties['allow_merge_commit'] = $value; + $properties['type'] = $value; - after_allow_merge_commit: + after_type: - $value = $payload['subscribers_count'] ?? null; + $value = $payload['url'] ?? null; if ($value === null) { - $missingFields[] = 'subscribers_count'; - goto after_subscribers_count; + $missingFields[] = 'url'; + goto after_url; } - $properties['subscribers_count'] = $value; + $properties['url'] = $value; - after_subscribers_count: + after_url: - $value = $payload['network_count'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssueCommentDeleted\Comment\User', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookIssueCommentDeleted\Comment\User::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookIssueCommentDeleted\Comment\User(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssueCommentDeleted\Comment\User', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentEdited⚡️Changes⚡️Body(array $payload): \ApiClients\Client\Github\Schema\WebhookIssueCommentEdited\Changes\Body + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['from'] ?? null; if ($value === null) { - $missingFields[] = 'network_count'; - goto after_network_count; + $missingFields[] = 'from'; + goto after_from; } - $properties['network_count'] = $value; + $properties['from'] = $value; - after_network_count: + after_from: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssueCommentEdited\Changes\Body', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\TemplateRepository::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookIssueCommentEdited\Changes\Body::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\Repository\TemplateRepository(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookIssueCommentEdited\Changes\Body(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssueCommentEdited\Changes\Body', $exception, stack: $this->hydrationStack); } } @@ -3961,6 +4718,8 @@ public function serializeObject(object $object): mixed 'DateTime' => $this->serializeValueDateTime($object), 'DateTimeImmutable' => $this->serializeValueDateTimeImmutable($object), 'DateTimeInterface' => $this->serializeValueDateTimeInterface($object), + 'ApiClients\Client\Github\Schema\WebhookIssueCommentCreated' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentCreated($object), + 'ApiClients\Client\Github\Schema\WebhookIssueCommentDeleted' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentDeleted($object), 'ApiClients\Client\Github\Schema\WebhookIssueCommentEdited' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentEdited($object), default => throw new \LogicException('No serialization defined for $className'), }; @@ -4035,6 +4794,140 @@ private function serializeValueDateTimeInterface(mixed $value): mixed } + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentCreated(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookIssueCommentCreated); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $comment = $object->comment; + + if ($comment === null) { + goto after_comment; + } + $comment = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentCreated⚡️Comment($comment); + after_comment: $result['comment'] = $comment; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $issue = $object->issue; + + if ($issue === null) { + goto after_issue; + } + after_issue: $result['issue'] = $issue; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentDeleted(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookIssueCommentDeleted); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $comment = $object->comment; + + if ($comment === null) { + goto after_comment; + } + $comment = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Comment($comment); + after_comment: $result['comment'] = $comment; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $issue = $object->issue; + + if ($issue === null) { + goto after_issue; + } + after_issue: $result['issue'] = $issue; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentEdited(mixed $object): mixed { \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookIssueCommentEdited); diff --git a/src/Hydrator/WebHook/Issues.php b/src/Hydrator/WebHook/Issues.php index 7d9df6ad4c..5f3f88ec3a 100644 --- a/src/Hydrator/WebHook/Issues.php +++ b/src/Hydrator/WebHook/Issues.php @@ -23,29 +23,68 @@ public function __construct() {} public function hydrateObject(string $className, array $payload): object { return match($className) { - 'ApiClients\Client\Github\Schema\WebhookIssuesUnpinned' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesUnpinned($payload), + 'ApiClients\Client\Github\Schema\WebhookIssuesAssigned' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesAssigned($payload), + 'ApiClients\Client\Github\Schema\WebhookIssuesClosed' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesClosed($payload), + 'ApiClients\Client\Github\Schema\WebhookIssuesDeleted' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesDeleted($payload), + 'ApiClients\Client\Github\Schema\WebhookIssuesDemilestoned' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesDemilestoned($payload), + 'ApiClients\Client\Github\Schema\WebhookIssuesEdited' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesEdited($payload), + 'ApiClients\Client\Github\Schema\WebhookIssuesLabeled' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesLabeled($payload), + 'ApiClients\Client\Github\Schema\WebhookIssuesLocked' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesLocked($payload), + 'ApiClients\Client\Github\Schema\WebhookIssuesMilestoned' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesMilestoned($payload), + 'ApiClients\Client\Github\Schema\WebhookIssuesOpened' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesOpened($payload), + 'ApiClients\Client\Github\Schema\WebhookIssuesPinned' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesPinned($payload), + 'ApiClients\Client\Github\Schema\WebhookIssuesReopened' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesReopened($payload), + 'ApiClients\Client\Github\Schema\WebhookIssuesTransferred' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesTransferred($payload), + 'ApiClients\Client\Github\Schema\WebhookIssuesUnassigned' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesUnassigned($payload), + 'ApiClients\Client\Github\Schema\WebhookIssuesUnlabeled' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesUnlabeled($payload), + 'ApiClients\Client\Github\Schema\WebhookIssuesUnlocked' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesUnlocked($payload), + 'ApiClients\Client\Github\Schema\WebhookIssuesUnpinned' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesUnpinned($payload), + 'ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($payload), 'ApiClients\Client\Github\Schema\Enterprise' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($payload), 'ApiClients\Client\Github\Schema\SimpleInstallation' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($payload), - 'ApiClients\Client\Github\Schema\WebhookIssuesPinned\Issue' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesPinned⚡️Issue($payload), + 'ApiClients\Client\Github\Schema\WebhookIssuesAssigned\Issue' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesAssigned⚡️Issue($payload), 'ApiClients\Client\Github\Schema\OrganizationSimple' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($payload), 'ApiClients\Client\Github\Schema\Repository' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($payload), 'ApiClients\Client\Github\Schema\SimpleUser' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($payload), - 'ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($payload), - 'ApiClients\Client\Github\Schema\WebhookIssuesDeleted\Issue\Milestone' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesDeleted⚡️Issue⚡️Milestone($payload), - 'ApiClients\Client\Github\Schema\WebhookIssuesOpened\Changes\OldIssue\PerformedViaGithubApp' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesOpened⚡️Changes⚡️OldIssue⚡️PerformedViaGithubApp($payload), + 'ApiClients\Client\Github\Schema\WebhookIssuesDeleted\Issue' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesDeleted⚡️Issue($payload), + 'ApiClients\Client\Github\Schema\WebhookIssuesDemilestoned\Milestone' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesDemilestoned⚡️Milestone($payload), + 'ApiClients\Client\Github\Schema\WebhookIssuesEdited\Changes' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesEdited⚡️Changes($payload), + 'ApiClients\Client\Github\Schema\WebhookIssuesEdited\Issue' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesEdited⚡️Issue($payload), + 'ApiClients\Client\Github\Schema\WebhookDiscussionLabeled\Label' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionLabeled⚡️Label($payload), + 'ApiClients\Client\Github\Schema\WebhookIssuesLabeled\Issue' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesLabeled⚡️Issue($payload), + 'ApiClients\Client\Github\Schema\WebhookIssuesOpened\Changes' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesOpened⚡️Changes($payload), + 'ApiClients\Client\Github\Schema\WebhookIssuesOpened\Issue' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesOpened⚡️Issue($payload), + 'ApiClients\Client\Github\Schema\WebhookIssuesPinned\Issue' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesPinned⚡️Issue($payload), + 'ApiClients\Client\Github\Schema\WebhookIssuesTransferred\Changes' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesTransferred⚡️Changes($payload), + 'ApiClients\Client\Github\Schema\WebhookIssueCommentDeleted\Comment\User' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Comment⚡️User($payload), + 'ApiClients\Client\Github\Schema\WebhookIssuesAssigned\Issue\Milestone' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesAssigned⚡️Issue⚡️Milestone($payload), + 'ApiClients\Client\Github\Schema\WebhookIssuesAssigned\Issue\PerformedViaGithubApp' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesAssigned⚡️Issue⚡️PerformedViaGithubApp($payload), 'ApiClients\Client\Github\Schema\WebhookIssuesAssigned\Issue\PullRequest' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesAssigned⚡️Issue⚡️PullRequest($payload), 'ApiClients\Client\Github\Schema\Discussion\Reactions' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️Reactions($payload), 'ApiClients\Client\Github\Schema\Repository\Permissions' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️Permissions($payload), 'ApiClients\Client\Github\Schema\Repository\TemplateRepository' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository($payload), - 'ApiClients\Client\Github\Schema\WebhookDeploymentCreated\Deployment\PerformedViaGithubApp\Permissions' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDeploymentCreated⚡️Deployment⚡️PerformedViaGithubApp⚡️Permissions($payload), + 'ApiClients\Client\Github\Schema\WebhookIssuesDeleted\Issue\Milestone' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesDeleted⚡️Issue⚡️Milestone($payload), + 'ApiClients\Client\Github\Schema\WebhookIssuesDeleted\Issue\PerformedViaGithubApp' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesDeleted⚡️Issue⚡️PerformedViaGithubApp($payload), + 'ApiClients\Client\Github\Schema\WebhookIssueCommentEdited\Changes\Body' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentEdited⚡️Changes⚡️Body($payload), + 'ApiClients\Client\Github\Schema\WebhookIssuesEdited\Changes\Title' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesEdited⚡️Changes⚡️Title($payload), + 'ApiClients\Client\Github\Schema\WebhookIssuesEdited\Issue\PerformedViaGithubApp' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesEdited⚡️Issue⚡️PerformedViaGithubApp($payload), + 'ApiClients\Client\Github\Schema\WebhookIssuesLabeled\Issue\PerformedViaGithubApp' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesLabeled⚡️Issue⚡️PerformedViaGithubApp($payload), + 'ApiClients\Client\Github\Schema\WebhookIssuesOpened\Changes\OldIssue' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesOpened⚡️Changes⚡️OldIssue($payload), + 'ApiClients\Client\Github\Schema\WebhookIssuesOpened\Changes\OldRepository' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesOpened⚡️Changes⚡️OldRepository($payload), + 'ApiClients\Client\Github\Schema\WebhookIssuesOpened\Changes\OldIssue\PerformedViaGithubApp' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesOpened⚡️Changes⚡️OldIssue⚡️PerformedViaGithubApp($payload), + 'ApiClients\Client\Github\Schema\WebhookDiscussionTransferred\Changes\NewRepository' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionTransferred⚡️Changes⚡️NewRepository($payload), + 'ApiClients\Client\Github\Schema\WebhookIssuesAssigned\Issue\PerformedViaGithubApp\Permissions' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesAssigned⚡️Issue⚡️PerformedViaGithubApp⚡️Permissions($payload), 'ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner($payload), 'ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Permissions($payload), + 'ApiClients\Client\Github\Schema\WebhookDeploymentCreated\Deployment\PerformedViaGithubApp\Permissions' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDeploymentCreated⚡️Deployment⚡️PerformedViaGithubApp⚡️Permissions($payload), + 'ApiClients\Client\Github\Schema\WebhookDiscussionTransferred\Changes\NewRepository\License' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionTransferred⚡️Changes⚡️NewRepository⚡️License($payload), + 'ApiClients\Client\Github\Schema\WebhookDiscussionTransferred\Changes\NewRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionTransferred⚡️Changes⚡️NewRepository⚡️Permissions($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), }; } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesUnpinned(array $payload): \ApiClients\Client\Github\Schema\WebhookIssuesUnpinned + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesAssigned(array $payload): \ApiClients\Client\Github\Schema\WebhookIssuesAssigned { $properties = []; $missingFields = []; @@ -62,6 +101,26 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh after_action: + $value = $payload['assignee'] ?? null; + + if ($value === null) { + $missingFields[] = 'assignee'; + goto after_assignee; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'assignee'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['assignee'] = $value; + + after_assignee: + $value = $payload['enterprise'] ?? null; if ($value === null) { @@ -112,7 +171,7 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'issue'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesPinned⚡️Issue($value); + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesAssigned⚡️Issue($value); } finally { array_pop($this->hydrationStack); } @@ -183,387 +242,385 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh after_sender: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesUnpinned', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesAssigned', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookIssuesUnpinned::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookIssuesAssigned::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\WebhookIssuesUnpinned(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookIssuesAssigned(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesUnpinned', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesAssigned', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise(array $payload): \ApiClients\Client\Github\Schema\Enterprise + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesClosed(array $payload): \ApiClients\Client\Github\Schema\WebhookIssuesClosed { $properties = []; $missingFields = []; try { - $value = $payload['description'] ?? null; + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'description'; - goto after_description; + $missingFields[] = 'action'; + goto after_action; } - $properties['description'] = $value; + $properties['action'] = $value; - after_description: + after_action: - $value = $payload['html_url'] ?? null; + $value = $payload['enterprise'] ?? null; if ($value === null) { - $missingFields[] = 'html_url'; - goto after_html_url; + $missingFields[] = 'enterprise'; + goto after_enterprise; } - $properties['html_url'] = $value; - - after_html_url: - - $value = $payload['website_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'website_url'; - goto after_website_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['website_url'] = $value; + $properties['enterprise'] = $value; - after_website_url: + after_enterprise: - $value = $payload['id'] ?? null; + $value = $payload['installation'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'installation'; + goto after_installation; } - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['node_id'] = $value; + $properties['installation'] = $value; - after_node_id: + after_installation: - $value = $payload['name'] ?? null; + $value = $payload['issue'] ?? null; if ($value === null) { - $missingFields[] = 'name'; - goto after_name; + $properties['issue'] = null; + goto after_issue; } - $properties['name'] = $value; + $properties['issue'] = $value; - after_name: + after_issue: - $value = $payload['slug'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'slug'; - goto after_slug; + $missingFields[] = 'organization'; + goto after_organization; } - $properties['slug'] = $value; - - after_slug: - - $value = $payload['created_at'] ?? null; - - if ($value === null) { - $missingFields[] = 'created_at'; - goto after_created_at; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['created_at'] = $value; + $properties['organization'] = $value; - after_created_at: + after_organization: - $value = $payload['updated_at'] ?? null; + $value = $payload['repository'] ?? null; if ($value === null) { - $missingFields[] = 'updated_at'; - goto after_updated_at; + $missingFields[] = 'repository'; + goto after_repository; } - $properties['updated_at'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repository'] = $value; - after_updated_at: + after_repository: - $value = $payload['avatar_url'] ?? null; + $value = $payload['sender'] ?? null; if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatar_url; + $missingFields[] = 'sender'; + goto after_sender; } - $properties['avatar_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; - after_avatar_url: + after_sender: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Enterprise', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesClosed', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Enterprise::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookIssuesClosed::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\Enterprise(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookIssuesClosed(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Enterprise', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesClosed', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation(array $payload): \ApiClients\Client\Github\Schema\SimpleInstallation + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesDeleted(array $payload): \ApiClients\Client\Github\Schema\WebhookIssuesDeleted { $properties = []; $missingFields = []; try { - $value = $payload['id'] ?? null; + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'action'; + goto after_action; } - $properties['id'] = $value; + $properties['action'] = $value; - after_id: + after_action: - $value = $payload['node_id'] ?? null; + $value = $payload['enterprise'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $missingFields[] = 'enterprise'; + goto after_enterprise; } - $properties['node_id'] = $value; - - after_node_id: - - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleInstallation', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\SimpleInstallation::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\SimpleInstallation(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleInstallation', $exception, stack: $this->hydrationStack); - } - } - - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesPinned⚡️Issue(array $payload): \ApiClients\Client\Github\Schema\WebhookIssuesPinned\Issue - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['active_lock_reason'] ?? null; - - if ($value === null) { - $missingFields[] = 'active_lock_reason'; - goto after_active_lock_reason; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['active_lock_reason'] = $value; + $properties['enterprise'] = $value; - after_active_lock_reason: + after_enterprise: - $value = $payload['assignee'] ?? null; + $value = $payload['installation'] ?? null; if ($value === null) { - $missingFields[] = 'assignee'; - goto after_assignee; + $missingFields[] = 'installation'; + goto after_installation; } if (is_array($value)) { try { - $this->hydrationStack[] = 'assignee'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); } finally { array_pop($this->hydrationStack); } } - $properties['assignee'] = $value; + $properties['installation'] = $value; - after_assignee: + after_installation: - $value = $payload['assignees'] ?? null; + $value = $payload['issue'] ?? null; if ($value === null) { - $missingFields[] = 'assignees'; - goto after_assignees; + $missingFields[] = 'issue'; + goto after_issue; } - $properties['assignees'] = $value; - - after_assignees: - - $value = $payload['author_association'] ?? null; - - if ($value === null) { - $missingFields[] = 'author_association'; - goto after_author_association; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'issue'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesDeleted⚡️Issue($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['author_association'] = $value; + $properties['issue'] = $value; - after_author_association: + after_issue: - $value = $payload['body'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'body'; - goto after_body; + $missingFields[] = 'organization'; + goto after_organization; } - $properties['body'] = $value; - - after_body: - - $value = $payload['closed_at'] ?? null; - - if ($value === null) { - $missingFields[] = 'closed_at'; - goto after_closed_at; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['closed_at'] = $value; + $properties['organization'] = $value; - after_closed_at: + after_organization: - $value = $payload['comments'] ?? null; + $value = $payload['repository'] ?? null; if ($value === null) { - $missingFields[] = 'comments'; - goto after_comments; + $missingFields[] = 'repository'; + goto after_repository; } - $properties['comments'] = $value; - - after_comments: - - $value = $payload['comments_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'comments_url'; - goto after_comments_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['comments_url'] = $value; + $properties['repository'] = $value; - after_comments_url: + after_repository: - $value = $payload['created_at'] ?? null; + $value = $payload['sender'] ?? null; if ($value === null) { - $missingFields[] = 'created_at'; - goto after_created_at; + $missingFields[] = 'sender'; + goto after_sender; } - $properties['created_at'] = $value; - - after_created_at: - - $value = $payload['draft'] ?? null; - - if ($value === null) { - $missingFields[] = 'draft'; - goto after_draft; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['draft'] = $value; + $properties['sender'] = $value; - after_draft: + after_sender: - $value = $payload['events_url'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesDeleted', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookIssuesDeleted::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookIssuesDeleted(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesDeleted', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesDemilestoned(array $payload): \ApiClients\Client\Github\Schema\WebhookIssuesDemilestoned + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'events_url'; - goto after_events_url; + $missingFields[] = 'action'; + goto after_action; } - $properties['events_url'] = $value; + $properties['action'] = $value; - after_events_url: + after_action: - $value = $payload['html_url'] ?? null; + $value = $payload['enterprise'] ?? null; if ($value === null) { - $missingFields[] = 'html_url'; - goto after_html_url; + $missingFields[] = 'enterprise'; + goto after_enterprise; } - $properties['html_url'] = $value; - - after_html_url: - - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['id'] = $value; + $properties['enterprise'] = $value; - after_id: + after_enterprise: - $value = $payload['labels'] ?? null; + $value = $payload['installation'] ?? null; if ($value === null) { - $missingFields[] = 'labels'; - goto after_labels; + $missingFields[] = 'installation'; + goto after_installation; } - $properties['labels'] = $value; - - after_labels: - - $value = $payload['labels_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'labels_url'; - goto after_labels_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['labels_url'] = $value; + $properties['installation'] = $value; - after_labels_url: + after_installation: - $value = $payload['locked'] ?? null; + $value = $payload['issue'] ?? null; if ($value === null) { - $missingFields[] = 'locked'; - goto after_locked; + $properties['issue'] = null; + goto after_issue; } - $properties['locked'] = $value; + $properties['issue'] = $value; - after_locked: + after_issue: $value = $payload['milestone'] ?? null; @@ -575,7 +632,7 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'milestone'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesDeleted⚡️Issue⚡️Milestone($value); + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesDemilestoned⚡️Milestone($value); } finally { array_pop($this->hydrationStack); } @@ -585,1742 +642,2038 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh after_milestone: - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; - } - - $properties['node_id'] = $value; - - after_node_id: - - $value = $payload['number'] ?? null; - - if ($value === null) { - $missingFields[] = 'number'; - goto after_number; - } - - $properties['number'] = $value; - - after_number: - - $value = $payload['performed_via_github_app'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'performed_via_github_app'; - goto after_performed_via_github_app; + $missingFields[] = 'organization'; + goto after_organization; } if (is_array($value)) { try { - $this->hydrationStack[] = 'performed_via_github_app'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesOpened⚡️Changes⚡️OldIssue⚡️PerformedViaGithubApp($value); + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); } finally { array_pop($this->hydrationStack); } } - $properties['performed_via_github_app'] = $value; + $properties['organization'] = $value; - after_performed_via_github_app: + after_organization: - $value = $payload['pull_request'] ?? null; + $value = $payload['repository'] ?? null; if ($value === null) { - $missingFields[] = 'pull_request'; - goto after_pull_request; + $missingFields[] = 'repository'; + goto after_repository; } if (is_array($value)) { try { - $this->hydrationStack[] = 'pull_request'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesAssigned⚡️Issue⚡️PullRequest($value); + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); } finally { array_pop($this->hydrationStack); } } - $properties['pull_request'] = $value; + $properties['repository'] = $value; - after_pull_request: + after_repository: - $value = $payload['reactions'] ?? null; + $value = $payload['sender'] ?? null; if ($value === null) { - $missingFields[] = 'reactions'; - goto after_reactions; + $missingFields[] = 'sender'; + goto after_sender; } if (is_array($value)) { try { - $this->hydrationStack[] = 'reactions'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️Reactions($value); + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } } - $properties['reactions'] = $value; - - after_reactions: - - $value = $payload['repository_url'] ?? null; + $properties['sender'] = $value; - if ($value === null) { - $missingFields[] = 'repository_url'; - goto after_repository_url; - } + after_sender: - $properties['repository_url'] = $value; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesDemilestoned', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookIssuesDemilestoned::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookIssuesDemilestoned(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesDemilestoned', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesEdited(array $payload): \ApiClients\Client\Github\Schema\WebhookIssuesEdited + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; - after_repository_url: + if ($value === null) { + $missingFields[] = 'action'; + goto after_action; + } - $value = $payload['state'] ?? null; + $properties['action'] = $value; + + after_action: + + $value = $payload['changes'] ?? null; if ($value === null) { - $missingFields[] = 'state'; - goto after_state; + $missingFields[] = 'changes'; + goto after_changes; } - $properties['state'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'changes'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesEdited⚡️Changes($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['changes'] = $value; - after_state: + after_changes: - $value = $payload['state_reason'] ?? null; + $value = $payload['enterprise'] ?? null; if ($value === null) { - $missingFields[] = 'state_reason'; - goto after_state_reason; + $missingFields[] = 'enterprise'; + goto after_enterprise; } - $properties['state_reason'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['enterprise'] = $value; - after_state_reason: + after_enterprise: - $value = $payload['timeline_url'] ?? null; + $value = $payload['installation'] ?? null; if ($value === null) { - $missingFields[] = 'timeline_url'; - goto after_timeline_url; + $missingFields[] = 'installation'; + goto after_installation; } - $properties['timeline_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; - after_timeline_url: + after_installation: - $value = $payload['title'] ?? null; + $value = $payload['issue'] ?? null; if ($value === null) { - $missingFields[] = 'title'; - goto after_title; + $missingFields[] = 'issue'; + goto after_issue; } - $properties['title'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'issue'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesEdited⚡️Issue($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['issue'] = $value; - after_title: + after_issue: - $value = $payload['updated_at'] ?? null; + $value = $payload['label'] ?? null; if ($value === null) { - $missingFields[] = 'updated_at'; - goto after_updated_at; + $missingFields[] = 'label'; + goto after_label; } - $properties['updated_at'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'label'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionLabeled⚡️Label($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['label'] = $value; - after_updated_at: + after_label: - $value = $payload['url'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $missingFields[] = 'organization'; + goto after_organization; } - $properties['url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; - after_url: + after_organization: - $value = $payload['user'] ?? null; + $value = $payload['repository'] ?? null; if ($value === null) { - $missingFields[] = 'user'; - goto after_user; + $missingFields[] = 'repository'; + goto after_repository; } if (is_array($value)) { try { - $this->hydrationStack[] = 'user'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); } finally { array_pop($this->hydrationStack); } } - $properties['user'] = $value; + $properties['repository'] = $value; - after_user: + after_repository: + + $value = $payload['sender'] ?? null; + + if ($value === null) { + $missingFields[] = 'sender'; + goto after_sender; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; + + after_sender: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesPinned\Issue', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesEdited', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookIssuesPinned\Issue::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookIssuesEdited::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\WebhookIssuesPinned\Issue(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookIssuesEdited(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesPinned\Issue', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesEdited', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple(array $payload): \ApiClients\Client\Github\Schema\OrganizationSimple + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesLabeled(array $payload): \ApiClients\Client\Github\Schema\WebhookIssuesLabeled { $properties = []; $missingFields = []; try { - $value = $payload['login'] ?? null; + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'login'; - goto after_login; + $missingFields[] = 'action'; + goto after_action; } - $properties['login'] = $value; + $properties['action'] = $value; - after_login: + after_action: - $value = $payload['id'] ?? null; + $value = $payload['enterprise'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'enterprise'; + goto after_enterprise; } - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['node_id'] = $value; + $properties['enterprise'] = $value; - after_node_id: + after_enterprise: - $value = $payload['url'] ?? null; + $value = $payload['installation'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $missingFields[] = 'installation'; + goto after_installation; } - $properties['url'] = $value; - - after_url: - - $value = $payload['repos_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_repos_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['repos_url'] = $value; + $properties['installation'] = $value; - after_repos_url: + after_installation: - $value = $payload['events_url'] ?? null; + $value = $payload['issue'] ?? null; if ($value === null) { - $missingFields[] = 'events_url'; - goto after_events_url; + $missingFields[] = 'issue'; + goto after_issue; } - $properties['events_url'] = $value; - - after_events_url: - - $value = $payload['hooks_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'hooks_url'; - goto after_hooks_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'issue'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesLabeled⚡️Issue($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['hooks_url'] = $value; + $properties['issue'] = $value; - after_hooks_url: + after_issue: - $value = $payload['issues_url'] ?? null; + $value = $payload['label'] ?? null; if ($value === null) { - $missingFields[] = 'issues_url'; - goto after_issues_url; + $missingFields[] = 'label'; + goto after_label; } - $properties['issues_url'] = $value; - - after_issues_url: - - $value = $payload['members_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'members_url'; - goto after_members_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'label'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionLabeled⚡️Label($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['members_url'] = $value; + $properties['label'] = $value; - after_members_url: + after_label: - $value = $payload['public_members_url'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'public_members_url'; - goto after_public_members_url; + $missingFields[] = 'organization'; + goto after_organization; } - $properties['public_members_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; - after_public_members_url: + after_organization: - $value = $payload['avatar_url'] ?? null; + $value = $payload['repository'] ?? null; if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatar_url; + $missingFields[] = 'repository'; + goto after_repository; } - $properties['avatar_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repository'] = $value; - after_avatar_url: + after_repository: - $value = $payload['description'] ?? null; + $value = $payload['sender'] ?? null; if ($value === null) { - $missingFields[] = 'description'; - goto after_description; + $missingFields[] = 'sender'; + goto after_sender; } - $properties['description'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; - after_description: + after_sender: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\OrganizationSimple', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesLabeled', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\OrganizationSimple::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookIssuesLabeled::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\OrganizationSimple(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookIssuesLabeled(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\OrganizationSimple', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesLabeled', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository(array $payload): \ApiClients\Client\Github\Schema\Repository + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesLocked(array $payload): \ApiClients\Client\Github\Schema\WebhookIssuesLocked { $properties = []; $missingFields = []; try { - $value = $payload['id'] ?? null; + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'action'; + goto after_action; } - $properties['id'] = $value; + $properties['action'] = $value; - after_id: + after_action: - $value = $payload['node_id'] ?? null; + $value = $payload['enterprise'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $missingFields[] = 'enterprise'; + goto after_enterprise; } - $properties['node_id'] = $value; - - after_node_id: - - $value = $payload['name'] ?? null; - - if ($value === null) { - $missingFields[] = 'name'; - goto after_name; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['name'] = $value; + $properties['enterprise'] = $value; - after_name: + after_enterprise: - $value = $payload['full_name'] ?? null; + $value = $payload['installation'] ?? null; if ($value === null) { - $missingFields[] = 'full_name'; - goto after_full_name; + $missingFields[] = 'installation'; + goto after_installation; } - $properties['full_name'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; - after_full_name: + after_installation: - $value = $payload['license'] ?? null; + $value = $payload['issue'] ?? null; if ($value === null) { - $properties['license'] = null; - goto after_license; + $properties['issue'] = null; + goto after_issue; } - $properties['license'] = $value; + $properties['issue'] = $value; - after_license: + after_issue: $value = $payload['organization'] ?? null; if ($value === null) { - $properties['organization'] = null; + $missingFields[] = 'organization'; goto after_organization; } - $properties['organization'] = $value; - - after_organization: - - $value = $payload['forks'] ?? null; - - if ($value === null) { - $missingFields[] = 'forks'; - goto after_forks; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['forks'] = $value; + $properties['organization'] = $value; - after_forks: + after_organization: - $value = $payload['permissions'] ?? null; + $value = $payload['repository'] ?? null; if ($value === null) { - $missingFields[] = 'permissions'; - goto after_permissions; + $missingFields[] = 'repository'; + goto after_repository; } if (is_array($value)) { try { - $this->hydrationStack[] = 'permissions'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️Permissions($value); + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); } finally { array_pop($this->hydrationStack); } } - $properties['permissions'] = $value; + $properties['repository'] = $value; - after_permissions: + after_repository: - $value = $payload['owner'] ?? null; + $value = $payload['sender'] ?? null; if ($value === null) { - $missingFields[] = 'owner'; - goto after_owner; + $missingFields[] = 'sender'; + goto after_sender; } if (is_array($value)) { try { - $this->hydrationStack[] = 'owner'; + $this->hydrationStack[] = 'sender'; $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } } - $properties['owner'] = $value; + $properties['sender'] = $value; - after_owner: + after_sender: - $value = $payload['private'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesLocked', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookIssuesLocked::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookIssuesLocked(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesLocked', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesMilestoned(array $payload): \ApiClients\Client\Github\Schema\WebhookIssuesMilestoned + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'private'; - goto after_private; + $missingFields[] = 'action'; + goto after_action; } - $properties['private'] = $value; + $properties['action'] = $value; - after_private: + after_action: - $value = $payload['html_url'] ?? null; + $value = $payload['enterprise'] ?? null; if ($value === null) { - $missingFields[] = 'html_url'; - goto after_html_url; + $missingFields[] = 'enterprise'; + goto after_enterprise; } - $properties['html_url'] = $value; - - after_html_url: - - $value = $payload['description'] ?? null; - - if ($value === null) { - $missingFields[] = 'description'; - goto after_description; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['description'] = $value; + $properties['enterprise'] = $value; - after_description: + after_enterprise: - $value = $payload['fork'] ?? null; + $value = $payload['installation'] ?? null; if ($value === null) { - $missingFields[] = 'fork'; - goto after_fork; + $missingFields[] = 'installation'; + goto after_installation; } - $properties['fork'] = $value; - - after_fork: - - $value = $payload['url'] ?? null; - - if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['url'] = $value; + $properties['installation'] = $value; - after_url: + after_installation: - $value = $payload['archive_url'] ?? null; + $value = $payload['issue'] ?? null; if ($value === null) { - $missingFields[] = 'archive_url'; - goto after_archive_url; + $properties['issue'] = null; + goto after_issue; } - $properties['archive_url'] = $value; + $properties['issue'] = $value; - after_archive_url: + after_issue: - $value = $payload['assignees_url'] ?? null; + $value = $payload['milestone'] ?? null; if ($value === null) { - $missingFields[] = 'assignees_url'; - goto after_assignees_url; + $missingFields[] = 'milestone'; + goto after_milestone; } - $properties['assignees_url'] = $value; - - after_assignees_url: - - $value = $payload['blobs_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'blobs_url'; - goto after_blobs_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'milestone'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesDemilestoned⚡️Milestone($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['blobs_url'] = $value; + $properties['milestone'] = $value; - after_blobs_url: + after_milestone: - $value = $payload['branches_url'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'branches_url'; - goto after_branches_url; + $missingFields[] = 'organization'; + goto after_organization; } - $properties['branches_url'] = $value; - - after_branches_url: - - $value = $payload['collaborators_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'collaborators_url'; - goto after_collaborators_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['collaborators_url'] = $value; + $properties['organization'] = $value; - after_collaborators_url: + after_organization: - $value = $payload['comments_url'] ?? null; + $value = $payload['repository'] ?? null; if ($value === null) { - $missingFields[] = 'comments_url'; - goto after_comments_url; + $missingFields[] = 'repository'; + goto after_repository; } - $properties['comments_url'] = $value; - - after_comments_url: - - $value = $payload['commits_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'commits_url'; - goto after_commits_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['commits_url'] = $value; + $properties['repository'] = $value; - after_commits_url: + after_repository: - $value = $payload['compare_url'] ?? null; + $value = $payload['sender'] ?? null; if ($value === null) { - $missingFields[] = 'compare_url'; - goto after_compare_url; + $missingFields[] = 'sender'; + goto after_sender; } - $properties['compare_url'] = $value; - - after_compare_url: - - $value = $payload['contents_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'contents_url'; - goto after_contents_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['contents_url'] = $value; + $properties['sender'] = $value; - after_contents_url: + after_sender: - $value = $payload['contributors_url'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesMilestoned', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookIssuesMilestoned::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookIssuesMilestoned(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesMilestoned', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesOpened(array $payload): \ApiClients\Client\Github\Schema\WebhookIssuesOpened + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'contributors_url'; - goto after_contributors_url; + $missingFields[] = 'action'; + goto after_action; } - $properties['contributors_url'] = $value; + $properties['action'] = $value; - after_contributors_url: + after_action: - $value = $payload['deployments_url'] ?? null; + $value = $payload['changes'] ?? null; if ($value === null) { - $missingFields[] = 'deployments_url'; - goto after_deployments_url; + $missingFields[] = 'changes'; + goto after_changes; } - $properties['deployments_url'] = $value; - - after_deployments_url: - - $value = $payload['downloads_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'downloads_url'; - goto after_downloads_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'changes'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesOpened⚡️Changes($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['downloads_url'] = $value; + $properties['changes'] = $value; - after_downloads_url: + after_changes: - $value = $payload['events_url'] ?? null; + $value = $payload['enterprise'] ?? null; if ($value === null) { - $missingFields[] = 'events_url'; - goto after_events_url; + $missingFields[] = 'enterprise'; + goto after_enterprise; } - $properties['events_url'] = $value; - - after_events_url: - - $value = $payload['forks_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'forks_url'; - goto after_forks_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['forks_url'] = $value; + $properties['enterprise'] = $value; - after_forks_url: + after_enterprise: - $value = $payload['git_commits_url'] ?? null; + $value = $payload['installation'] ?? null; if ($value === null) { - $missingFields[] = 'git_commits_url'; - goto after_git_commits_url; + $missingFields[] = 'installation'; + goto after_installation; } - $properties['git_commits_url'] = $value; - - after_git_commits_url: - - $value = $payload['git_refs_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'git_refs_url'; - goto after_git_refs_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['git_refs_url'] = $value; + $properties['installation'] = $value; - after_git_refs_url: + after_installation: - $value = $payload['git_tags_url'] ?? null; + $value = $payload['issue'] ?? null; if ($value === null) { - $missingFields[] = 'git_tags_url'; - goto after_git_tags_url; + $missingFields[] = 'issue'; + goto after_issue; } - $properties['git_tags_url'] = $value; - - after_git_tags_url: - - $value = $payload['git_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'git_url'; - goto after_git_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'issue'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesOpened⚡️Issue($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['git_url'] = $value; + $properties['issue'] = $value; - after_git_url: + after_issue: - $value = $payload['issue_comment_url'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'issue_comment_url'; - goto after_issue_comment_url; + $missingFields[] = 'organization'; + goto after_organization; } - $properties['issue_comment_url'] = $value; - - after_issue_comment_url: - - $value = $payload['issue_events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'issue_events_url'; - goto after_issue_events_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['issue_events_url'] = $value; + $properties['organization'] = $value; - after_issue_events_url: + after_organization: - $value = $payload['issues_url'] ?? null; + $value = $payload['repository'] ?? null; if ($value === null) { - $missingFields[] = 'issues_url'; - goto after_issues_url; + $missingFields[] = 'repository'; + goto after_repository; } - $properties['issues_url'] = $value; - - after_issues_url: - - $value = $payload['keys_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'keys_url'; - goto after_keys_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['keys_url'] = $value; + $properties['repository'] = $value; - after_keys_url: + after_repository: - $value = $payload['labels_url'] ?? null; + $value = $payload['sender'] ?? null; if ($value === null) { - $missingFields[] = 'labels_url'; - goto after_labels_url; + $missingFields[] = 'sender'; + goto after_sender; } - $properties['labels_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; - after_labels_url: + after_sender: - $value = $payload['languages_url'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesOpened', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookIssuesOpened::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookIssuesOpened(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesOpened', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesPinned(array $payload): \ApiClients\Client\Github\Schema\WebhookIssuesPinned + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'languages_url'; - goto after_languages_url; + $missingFields[] = 'action'; + goto after_action; } - $properties['languages_url'] = $value; + $properties['action'] = $value; - after_languages_url: + after_action: - $value = $payload['merges_url'] ?? null; + $value = $payload['enterprise'] ?? null; if ($value === null) { - $missingFields[] = 'merges_url'; - goto after_merges_url; + $missingFields[] = 'enterprise'; + goto after_enterprise; } - $properties['merges_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['enterprise'] = $value; - after_merges_url: + after_enterprise: - $value = $payload['milestones_url'] ?? null; + $value = $payload['installation'] ?? null; if ($value === null) { - $missingFields[] = 'milestones_url'; - goto after_milestones_url; + $missingFields[] = 'installation'; + goto after_installation; } - $properties['milestones_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; - after_milestones_url: + after_installation: - $value = $payload['notifications_url'] ?? null; + $value = $payload['issue'] ?? null; if ($value === null) { - $missingFields[] = 'notifications_url'; - goto after_notifications_url; + $missingFields[] = 'issue'; + goto after_issue; } - $properties['notifications_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'issue'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesPinned⚡️Issue($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['issue'] = $value; - after_notifications_url: + after_issue: - $value = $payload['pulls_url'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'pulls_url'; - goto after_pulls_url; + $missingFields[] = 'organization'; + goto after_organization; } - $properties['pulls_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; - after_pulls_url: + after_organization: - $value = $payload['releases_url'] ?? null; + $value = $payload['repository'] ?? null; if ($value === null) { - $missingFields[] = 'releases_url'; - goto after_releases_url; + $missingFields[] = 'repository'; + goto after_repository; } - $properties['releases_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repository'] = $value; - after_releases_url: + after_repository: - $value = $payload['ssh_url'] ?? null; + $value = $payload['sender'] ?? null; if ($value === null) { - $missingFields[] = 'ssh_url'; - goto after_ssh_url; + $missingFields[] = 'sender'; + goto after_sender; } - $properties['ssh_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; - after_ssh_url: + after_sender: - $value = $payload['stargazers_url'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesPinned', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookIssuesPinned::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookIssuesPinned(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesPinned', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesReopened(array $payload): \ApiClients\Client\Github\Schema\WebhookIssuesReopened + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'stargazers_url'; - goto after_stargazers_url; + $missingFields[] = 'action'; + goto after_action; } - $properties['stargazers_url'] = $value; + $properties['action'] = $value; - after_stargazers_url: + after_action: - $value = $payload['statuses_url'] ?? null; + $value = $payload['enterprise'] ?? null; if ($value === null) { - $missingFields[] = 'statuses_url'; - goto after_statuses_url; + $missingFields[] = 'enterprise'; + goto after_enterprise; } - $properties['statuses_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['enterprise'] = $value; - after_statuses_url: + after_enterprise: - $value = $payload['subscribers_url'] ?? null; + $value = $payload['installation'] ?? null; if ($value === null) { - $missingFields[] = 'subscribers_url'; - goto after_subscribers_url; + $missingFields[] = 'installation'; + goto after_installation; } - $properties['subscribers_url'] = $value; - - after_subscribers_url: - - $value = $payload['subscription_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'subscription_url'; - goto after_subscription_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['subscription_url'] = $value; + $properties['installation'] = $value; - after_subscription_url: + after_installation: - $value = $payload['tags_url'] ?? null; + $value = $payload['issue'] ?? null; if ($value === null) { - $missingFields[] = 'tags_url'; - goto after_tags_url; + $properties['issue'] = null; + goto after_issue; } - $properties['tags_url'] = $value; + $properties['issue'] = $value; - after_tags_url: + after_issue: - $value = $payload['teams_url'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'teams_url'; - goto after_teams_url; + $missingFields[] = 'organization'; + goto after_organization; } - $properties['teams_url'] = $value; - - after_teams_url: - - $value = $payload['trees_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'trees_url'; - goto after_trees_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['trees_url'] = $value; + $properties['organization'] = $value; - after_trees_url: + after_organization: - $value = $payload['clone_url'] ?? null; + $value = $payload['repository'] ?? null; if ($value === null) { - $missingFields[] = 'clone_url'; - goto after_clone_url; + $missingFields[] = 'repository'; + goto after_repository; } - $properties['clone_url'] = $value; - - after_clone_url: - - $value = $payload['mirror_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'mirror_url'; - goto after_mirror_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['mirror_url'] = $value; + $properties['repository'] = $value; - after_mirror_url: + after_repository: - $value = $payload['hooks_url'] ?? null; + $value = $payload['sender'] ?? null; if ($value === null) { - $missingFields[] = 'hooks_url'; - goto after_hooks_url; + $missingFields[] = 'sender'; + goto after_sender; } - $properties['hooks_url'] = $value; - - after_hooks_url: - - $value = $payload['svn_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'svn_url'; - goto after_svn_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['svn_url'] = $value; + $properties['sender'] = $value; - after_svn_url: + after_sender: - $value = $payload['homepage'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesReopened', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookIssuesReopened::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookIssuesReopened(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesReopened', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesTransferred(array $payload): \ApiClients\Client\Github\Schema\WebhookIssuesTransferred + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'homepage'; - goto after_homepage; + $missingFields[] = 'action'; + goto after_action; } - $properties['homepage'] = $value; + $properties['action'] = $value; - after_homepage: + after_action: - $value = $payload['language'] ?? null; + $value = $payload['changes'] ?? null; if ($value === null) { - $missingFields[] = 'language'; - goto after_language; + $missingFields[] = 'changes'; + goto after_changes; } - $properties['language'] = $value; - - after_language: - - $value = $payload['forks_count'] ?? null; - - if ($value === null) { - $missingFields[] = 'forks_count'; - goto after_forks_count; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'changes'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesTransferred⚡️Changes($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['forks_count'] = $value; + $properties['changes'] = $value; - after_forks_count: + after_changes: - $value = $payload['stargazers_count'] ?? null; + $value = $payload['enterprise'] ?? null; if ($value === null) { - $missingFields[] = 'stargazers_count'; - goto after_stargazers_count; + $missingFields[] = 'enterprise'; + goto after_enterprise; } - $properties['stargazers_count'] = $value; - - after_stargazers_count: - - $value = $payload['watchers_count'] ?? null; - - if ($value === null) { - $missingFields[] = 'watchers_count'; - goto after_watchers_count; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['watchers_count'] = $value; + $properties['enterprise'] = $value; - after_watchers_count: + after_enterprise: - $value = $payload['size'] ?? null; + $value = $payload['installation'] ?? null; if ($value === null) { - $missingFields[] = 'size'; - goto after_size; + $missingFields[] = 'installation'; + goto after_installation; } - $properties['size'] = $value; - - after_size: - - $value = $payload['default_branch'] ?? null; - - if ($value === null) { - $missingFields[] = 'default_branch'; - goto after_default_branch; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['default_branch'] = $value; + $properties['installation'] = $value; - after_default_branch: + after_installation: - $value = $payload['open_issues_count'] ?? null; + $value = $payload['issue'] ?? null; if ($value === null) { - $missingFields[] = 'open_issues_count'; - goto after_open_issues_count; + $missingFields[] = 'issue'; + goto after_issue; } - $properties['open_issues_count'] = $value; - - after_open_issues_count: - - $value = $payload['is_template'] ?? null; - - if ($value === null) { - $missingFields[] = 'is_template'; - goto after_is_template; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'issue'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesPinned⚡️Issue($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['is_template'] = $value; + $properties['issue'] = $value; - after_is_template: + after_issue: - $value = $payload['topics'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'topics'; - goto after_topics; + $missingFields[] = 'organization'; + goto after_organization; } - $properties['topics'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; - after_topics: + after_organization: - $value = $payload['has_issues'] ?? null; + $value = $payload['repository'] ?? null; if ($value === null) { - $missingFields[] = 'has_issues'; - goto after_has_issues; + $missingFields[] = 'repository'; + goto after_repository; } - $properties['has_issues'] = $value; - - after_has_issues: - - $value = $payload['has_projects'] ?? null; - - if ($value === null) { - $missingFields[] = 'has_projects'; - goto after_has_projects; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['has_projects'] = $value; + $properties['repository'] = $value; - after_has_projects: + after_repository: - $value = $payload['has_wiki'] ?? null; + $value = $payload['sender'] ?? null; if ($value === null) { - $missingFields[] = 'has_wiki'; - goto after_has_wiki; + $missingFields[] = 'sender'; + goto after_sender; } - $properties['has_wiki'] = $value; - - after_has_wiki: - - $value = $payload['has_pages'] ?? null; - - if ($value === null) { - $missingFields[] = 'has_pages'; - goto after_has_pages; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['has_pages'] = $value; + $properties['sender'] = $value; - after_has_pages: + after_sender: - $value = $payload['has_downloads'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesTransferred', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookIssuesTransferred::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookIssuesTransferred(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesTransferred', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesUnassigned(array $payload): \ApiClients\Client\Github\Schema\WebhookIssuesUnassigned + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'has_downloads'; - goto after_has_downloads; + $missingFields[] = 'action'; + goto after_action; } - $properties['has_downloads'] = $value; + $properties['action'] = $value; - after_has_downloads: + after_action: - $value = $payload['has_discussions'] ?? null; + $value = $payload['assignee'] ?? null; if ($value === null) { - $missingFields[] = 'has_discussions'; - goto after_has_discussions; + $missingFields[] = 'assignee'; + goto after_assignee; } - $properties['has_discussions'] = $value; - - after_has_discussions: - - $value = $payload['archived'] ?? null; - - if ($value === null) { - $missingFields[] = 'archived'; - goto after_archived; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'assignee'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Comment⚡️User($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['archived'] = $value; + $properties['assignee'] = $value; - after_archived: + after_assignee: - $value = $payload['disabled'] ?? null; + $value = $payload['enterprise'] ?? null; if ($value === null) { - $missingFields[] = 'disabled'; - goto after_disabled; + $missingFields[] = 'enterprise'; + goto after_enterprise; } - $properties['disabled'] = $value; - - after_disabled: - - $value = $payload['visibility'] ?? null; - - if ($value === null) { - $missingFields[] = 'visibility'; - goto after_visibility; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['visibility'] = $value; + $properties['enterprise'] = $value; - after_visibility: + after_enterprise: - $value = $payload['pushed_at'] ?? null; + $value = $payload['installation'] ?? null; if ($value === null) { - $missingFields[] = 'pushed_at'; - goto after_pushed_at; + $missingFields[] = 'installation'; + goto after_installation; } - $properties['pushed_at'] = $value; - - after_pushed_at: - - $value = $payload['created_at'] ?? null; - - if ($value === null) { - $missingFields[] = 'created_at'; - goto after_created_at; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['created_at'] = $value; + $properties['installation'] = $value; - after_created_at: + after_installation: - $value = $payload['updated_at'] ?? null; + $value = $payload['issue'] ?? null; if ($value === null) { - $missingFields[] = 'updated_at'; - goto after_updated_at; + $missingFields[] = 'issue'; + goto after_issue; } - $properties['updated_at'] = $value; - - after_updated_at: - - $value = $payload['allow_rebase_merge'] ?? null; - - if ($value === null) { - $missingFields[] = 'allow_rebase_merge'; - goto after_allow_rebase_merge; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'issue'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesAssigned⚡️Issue($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['allow_rebase_merge'] = $value; + $properties['issue'] = $value; - after_allow_rebase_merge: + after_issue: - $value = $payload['template_repository'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'template_repository'; - goto after_template_repository; + $missingFields[] = 'organization'; + goto after_organization; } if (is_array($value)) { try { - $this->hydrationStack[] = 'template_repository'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository($value); + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); } finally { array_pop($this->hydrationStack); } } - $properties['template_repository'] = $value; + $properties['organization'] = $value; - after_template_repository: + after_organization: - $value = $payload['temp_clone_token'] ?? null; + $value = $payload['repository'] ?? null; if ($value === null) { - $missingFields[] = 'temp_clone_token'; - goto after_temp_clone_token; + $missingFields[] = 'repository'; + goto after_repository; } - $properties['temp_clone_token'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repository'] = $value; - after_temp_clone_token: + after_repository: - $value = $payload['allow_squash_merge'] ?? null; + $value = $payload['sender'] ?? null; if ($value === null) { - $missingFields[] = 'allow_squash_merge'; - goto after_allow_squash_merge; + $missingFields[] = 'sender'; + goto after_sender; } - $properties['allow_squash_merge'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; - after_allow_squash_merge: + after_sender: - $value = $payload['allow_auto_merge'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesUnassigned', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookIssuesUnassigned::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookIssuesUnassigned(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesUnassigned', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesUnlabeled(array $payload): \ApiClients\Client\Github\Schema\WebhookIssuesUnlabeled + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'allow_auto_merge'; - goto after_allow_auto_merge; + $missingFields[] = 'action'; + goto after_action; } - $properties['allow_auto_merge'] = $value; + $properties['action'] = $value; - after_allow_auto_merge: + after_action: - $value = $payload['delete_branch_on_merge'] ?? null; + $value = $payload['enterprise'] ?? null; if ($value === null) { - $missingFields[] = 'delete_branch_on_merge'; - goto after_delete_branch_on_merge; - } - - $properties['delete_branch_on_merge'] = $value; - - after_delete_branch_on_merge: - - $value = $payload['allow_update_branch'] ?? null; - - if ($value === null) { - $missingFields[] = 'allow_update_branch'; - goto after_allow_update_branch; - } - - $properties['allow_update_branch'] = $value; - - after_allow_update_branch: - - $value = $payload['use_squash_pr_title_as_default'] ?? null; - - if ($value === null) { - $missingFields[] = 'use_squash_pr_title_as_default'; - goto after_use_squash_pr_title_as_default; - } - - $properties['use_squash_pr_title_as_default'] = $value; - - after_use_squash_pr_title_as_default: - - $value = $payload['squash_merge_commit_title'] ?? null; - - if ($value === null) { - $missingFields[] = 'squash_merge_commit_title'; - goto after_squash_merge_commit_title; + $missingFields[] = 'enterprise'; + goto after_enterprise; } - $properties['squash_merge_commit_title'] = $value; - - after_squash_merge_commit_title: - - $value = $payload['squash_merge_commit_message'] ?? null; - - if ($value === null) { - $missingFields[] = 'squash_merge_commit_message'; - goto after_squash_merge_commit_message; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['squash_merge_commit_message'] = $value; + $properties['enterprise'] = $value; - after_squash_merge_commit_message: + after_enterprise: - $value = $payload['merge_commit_title'] ?? null; + $value = $payload['installation'] ?? null; if ($value === null) { - $missingFields[] = 'merge_commit_title'; - goto after_merge_commit_title; + $missingFields[] = 'installation'; + goto after_installation; } - $properties['merge_commit_title'] = $value; - - after_merge_commit_title: - - $value = $payload['merge_commit_message'] ?? null; - - if ($value === null) { - $missingFields[] = 'merge_commit_message'; - goto after_merge_commit_message; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['merge_commit_message'] = $value; + $properties['installation'] = $value; - after_merge_commit_message: + after_installation: - $value = $payload['allow_merge_commit'] ?? null; + $value = $payload['issue'] ?? null; if ($value === null) { - $missingFields[] = 'allow_merge_commit'; - goto after_allow_merge_commit; + $missingFields[] = 'issue'; + goto after_issue; } - $properties['allow_merge_commit'] = $value; - - after_allow_merge_commit: - - $value = $payload['allow_forking'] ?? null; - - if ($value === null) { - $missingFields[] = 'allow_forking'; - goto after_allow_forking; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'issue'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesAssigned⚡️Issue($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['allow_forking'] = $value; + $properties['issue'] = $value; - after_allow_forking: + after_issue: - $value = $payload['web_commit_signoff_required'] ?? null; + $value = $payload['label'] ?? null; if ($value === null) { - $missingFields[] = 'web_commit_signoff_required'; - goto after_web_commit_signoff_required; + $missingFields[] = 'label'; + goto after_label; } - $properties['web_commit_signoff_required'] = $value; - - after_web_commit_signoff_required: - - $value = $payload['subscribers_count'] ?? null; - - if ($value === null) { - $missingFields[] = 'subscribers_count'; - goto after_subscribers_count; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'label'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionLabeled⚡️Label($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['subscribers_count'] = $value; + $properties['label'] = $value; - after_subscribers_count: + after_label: - $value = $payload['network_count'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'network_count'; - goto after_network_count; + $missingFields[] = 'organization'; + goto after_organization; } - $properties['network_count'] = $value; - - after_network_count: - - $value = $payload['open_issues'] ?? null; - - if ($value === null) { - $missingFields[] = 'open_issues'; - goto after_open_issues; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['open_issues'] = $value; + $properties['organization'] = $value; - after_open_issues: + after_organization: - $value = $payload['watchers'] ?? null; + $value = $payload['repository'] ?? null; if ($value === null) { - $missingFields[] = 'watchers'; - goto after_watchers; + $missingFields[] = 'repository'; + goto after_repository; } - $properties['watchers'] = $value; - - after_watchers: - - $value = $payload['master_branch'] ?? null; - - if ($value === null) { - $missingFields[] = 'master_branch'; - goto after_master_branch; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['master_branch'] = $value; + $properties['repository'] = $value; - after_master_branch: + after_repository: - $value = $payload['starred_at'] ?? null; + $value = $payload['sender'] ?? null; if ($value === null) { - $missingFields[] = 'starred_at'; - goto after_starred_at; + $missingFields[] = 'sender'; + goto after_sender; } - $properties['starred_at'] = $value; - - after_starred_at: - - $value = $payload['anonymous_access_enabled'] ?? null; - - if ($value === null) { - $missingFields[] = 'anonymous_access_enabled'; - goto after_anonymous_access_enabled; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['anonymous_access_enabled'] = $value; + $properties['sender'] = $value; - after_anonymous_access_enabled: + after_sender: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesUnlabeled', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookIssuesUnlabeled::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\Repository(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookIssuesUnlabeled(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesUnlabeled', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser(array $payload): \ApiClients\Client\Github\Schema\SimpleUser + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesUnlocked(array $payload): \ApiClients\Client\Github\Schema\WebhookIssuesUnlocked { $properties = []; $missingFields = []; try { - $value = $payload['name'] ?? null; + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'name'; - goto after_name; + $missingFields[] = 'action'; + goto after_action; } - $properties['name'] = $value; + $properties['action'] = $value; - after_name: + after_action: - $value = $payload['email'] ?? null; + $value = $payload['enterprise'] ?? null; if ($value === null) { - $missingFields[] = 'email'; - goto after_email; + $missingFields[] = 'enterprise'; + goto after_enterprise; } - $properties['email'] = $value; - - after_email: - - $value = $payload['login'] ?? null; - - if ($value === null) { - $missingFields[] = 'login'; - goto after_login; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['login'] = $value; + $properties['enterprise'] = $value; - after_login: + after_enterprise: - $value = $payload['id'] ?? null; + $value = $payload['installation'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'installation'; + goto after_installation; } - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['node_id'] = $value; + $properties['installation'] = $value; - after_node_id: + after_installation: - $value = $payload['avatar_url'] ?? null; + $value = $payload['issue'] ?? null; if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatar_url; + $properties['issue'] = null; + goto after_issue; } - $properties['avatar_url'] = $value; + $properties['issue'] = $value; - after_avatar_url: + after_issue: - $value = $payload['gravatar_id'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'gravatar_id'; - goto after_gravatar_id; + $missingFields[] = 'organization'; + goto after_organization; } - $properties['gravatar_id'] = $value; - - after_gravatar_id: - - $value = $payload['url'] ?? null; - - if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['url'] = $value; + $properties['organization'] = $value; - after_url: + after_organization: - $value = $payload['html_url'] ?? null; + $value = $payload['repository'] ?? null; if ($value === null) { - $missingFields[] = 'html_url'; - goto after_html_url; + $missingFields[] = 'repository'; + goto after_repository; } - $properties['html_url'] = $value; - - after_html_url: - - $value = $payload['followers_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followers_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['followers_url'] = $value; + $properties['repository'] = $value; - after_followers_url: + after_repository: - $value = $payload['following_url'] ?? null; + $value = $payload['sender'] ?? null; if ($value === null) { - $missingFields[] = 'following_url'; - goto after_following_url; + $missingFields[] = 'sender'; + goto after_sender; } - $properties['following_url'] = $value; - - after_following_url: - - $value = $payload['gists_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gists_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['gists_url'] = $value; + $properties['sender'] = $value; - after_gists_url: + after_sender: - $value = $payload['starred_url'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesUnlocked', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookIssuesUnlocked::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookIssuesUnlocked(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesUnlocked', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesUnpinned(array $payload): \ApiClients\Client\Github\Schema\WebhookIssuesUnpinned + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starred_url; + $missingFields[] = 'action'; + goto after_action; } - $properties['starred_url'] = $value; + $properties['action'] = $value; - after_starred_url: + after_action: - $value = $payload['subscriptions_url'] ?? null; + $value = $payload['enterprise'] ?? null; if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptions_url; + $missingFields[] = 'enterprise'; + goto after_enterprise; } - $properties['subscriptions_url'] = $value; - - after_subscriptions_url: - - $value = $payload['organizations_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizations_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['organizations_url'] = $value; + $properties['enterprise'] = $value; - after_organizations_url: + after_enterprise: - $value = $payload['repos_url'] ?? null; + $value = $payload['installation'] ?? null; if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_repos_url; + $missingFields[] = 'installation'; + goto after_installation; } - $properties['repos_url'] = $value; - - after_repos_url: - - $value = $payload['events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'events_url'; - goto after_events_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['events_url'] = $value; + $properties['installation'] = $value; - after_events_url: + after_installation: - $value = $payload['received_events_url'] ?? null; + $value = $payload['issue'] ?? null; if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_received_events_url; + $missingFields[] = 'issue'; + goto after_issue; } - $properties['received_events_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'issue'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesPinned⚡️Issue($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['issue'] = $value; - after_received_events_url: + after_issue: - $value = $payload['type'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'type'; - goto after_type; + $missingFields[] = 'organization'; + goto after_organization; } - $properties['type'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; - after_type: + after_organization: - $value = $payload['site_admin'] ?? null; + $value = $payload['repository'] ?? null; if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_site_admin; + $missingFields[] = 'repository'; + goto after_repository; } - $properties['site_admin'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repository'] = $value; - after_site_admin: + after_repository: - $value = $payload['starred_at'] ?? null; + $value = $payload['sender'] ?? null; if ($value === null) { - $missingFields[] = 'starred_at'; - goto after_starred_at; + $missingFields[] = 'sender'; + goto after_sender; } - $properties['starred_at'] = $value; - - after_starred_at: - - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleUser', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\SimpleUser::class, $missingFields, stack: $this->hydrationStack); + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; + + after_sender: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesUnpinned', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookIssuesUnpinned::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\SimpleUser(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookIssuesUnpinned(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleUser', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesUnpinned', $exception, stack: $this->hydrationStack); } } @@ -2578,65 +2931,12 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Disc } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesDeleted⚡️Issue⚡️Milestone(array $payload): \ApiClients\Client\Github\Schema\WebhookIssuesDeleted\Issue\Milestone + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise(array $payload): \ApiClients\Client\Github\Schema\Enterprise { $properties = []; $missingFields = []; try { - $value = $payload['closed_at'] ?? null; - - if ($value === null) { - $missingFields[] = 'closed_at'; - goto after_closed_at; - } - - $properties['closed_at'] = $value; - - after_closed_at: - - $value = $payload['closed_issues'] ?? null; - - if ($value === null) { - $missingFields[] = 'closed_issues'; - goto after_closed_issues; - } - - $properties['closed_issues'] = $value; - - after_closed_issues: - - $value = $payload['created_at'] ?? null; - - if ($value === null) { - $missingFields[] = 'created_at'; - goto after_created_at; - } - - $properties['created_at'] = $value; - - after_created_at: - - $value = $payload['creator'] ?? null; - - if ($value === null) { - $missingFields[] = 'creator'; - goto after_creator; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'creator'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); - } finally { - array_pop($this->hydrationStack); - } - } - - $properties['creator'] = $value; - - after_creator: - $value = $payload['description'] ?? null; if ($value === null) { @@ -2648,17 +2948,6 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh after_description: - $value = $payload['due_on'] ?? null; - - if ($value === null) { - $missingFields[] = 'due_on'; - goto after_due_on; - } - - $properties['due_on'] = $value; - - after_due_on: - $value = $payload['html_url'] ?? null; if ($value === null) { @@ -2670,27 +2959,27 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh after_html_url: - $value = $payload['id'] ?? null; + $value = $payload['website_url'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'website_url'; + goto after_website_url; } - $properties['id'] = $value; + $properties['website_url'] = $value; - after_id: + after_website_url: - $value = $payload['labels_url'] ?? null; + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'labels_url'; - goto after_labels_url; + $missingFields[] = 'id'; + goto after_id; } - $properties['labels_url'] = $value; + $properties['id'] = $value; - after_labels_url: + after_id: $value = $payload['node_id'] ?? null; @@ -2703,49 +2992,38 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh after_node_id: - $value = $payload['number'] ?? null; - - if ($value === null) { - $missingFields[] = 'number'; - goto after_number; - } - - $properties['number'] = $value; - - after_number: - - $value = $payload['open_issues'] ?? null; + $value = $payload['name'] ?? null; if ($value === null) { - $missingFields[] = 'open_issues'; - goto after_open_issues; + $missingFields[] = 'name'; + goto after_name; } - $properties['open_issues'] = $value; + $properties['name'] = $value; - after_open_issues: + after_name: - $value = $payload['state'] ?? null; + $value = $payload['slug'] ?? null; if ($value === null) { - $missingFields[] = 'state'; - goto after_state; + $missingFields[] = 'slug'; + goto after_slug; } - $properties['state'] = $value; + $properties['slug'] = $value; - after_state: + after_slug: - $value = $payload['title'] ?? null; + $value = $payload['created_at'] ?? null; if ($value === null) { - $missingFields[] = 'title'; - goto after_title; + $missingFields[] = 'created_at'; + goto after_created_at; } - $properties['title'] = $value; + $properties['created_at'] = $value; - after_title: + after_created_at: $value = $payload['updated_at'] ?? null; @@ -2758,221 +3036,212 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh after_updated_at: - $value = $payload['url'] ?? null; + $value = $payload['avatar_url'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $missingFields[] = 'avatar_url'; + goto after_avatar_url; } - $properties['url'] = $value; + $properties['avatar_url'] = $value; - after_url: + after_avatar_url: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesDeleted\Issue\Milestone', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Enterprise', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookIssuesDeleted\Issue\Milestone::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Enterprise::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\WebhookIssuesDeleted\Issue\Milestone(...$properties); + return new \ApiClients\Client\Github\Schema\Enterprise(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesDeleted\Issue\Milestone', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Enterprise', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesOpened⚡️Changes⚡️OldIssue⚡️PerformedViaGithubApp(array $payload): \ApiClients\Client\Github\Schema\WebhookIssuesOpened\Changes\OldIssue\PerformedViaGithubApp + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation(array $payload): \ApiClients\Client\Github\Schema\SimpleInstallation { $properties = []; $missingFields = []; try { - $value = $payload['created_at'] ?? null; + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'created_at'; - goto after_created_at; + $missingFields[] = 'id'; + goto after_id; } - $properties['created_at'] = $value; + $properties['id'] = $value; - after_created_at: + after_id: - $value = $payload['description'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $missingFields[] = 'description'; - goto after_description; + $missingFields[] = 'node_id'; + goto after_node_id; } - $properties['description'] = $value; + $properties['node_id'] = $value; - after_description: + after_node_id: - $value = $payload['events'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleInstallation', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\SimpleInstallation::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\SimpleInstallation(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleInstallation', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesAssigned⚡️Issue(array $payload): \ApiClients\Client\Github\Schema\WebhookIssuesAssigned\Issue + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['active_lock_reason'] ?? null; if ($value === null) { - $missingFields[] = 'events'; - goto after_events; + $missingFields[] = 'active_lock_reason'; + goto after_active_lock_reason; } - $properties['events'] = $value; + $properties['active_lock_reason'] = $value; - after_events: + after_active_lock_reason: - $value = $payload['external_url'] ?? null; + $value = $payload['assignee'] ?? null; if ($value === null) { - $missingFields[] = 'external_url'; - goto after_external_url; + $missingFields[] = 'assignee'; + goto after_assignee; } - $properties['external_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'assignee'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Comment⚡️User($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['assignee'] = $value; - after_external_url: + after_assignee: - $value = $payload['html_url'] ?? null; + $value = $payload['assignees'] ?? null; if ($value === null) { - $missingFields[] = 'html_url'; - goto after_html_url; + $missingFields[] = 'assignees'; + goto after_assignees; } - $properties['html_url'] = $value; + $properties['assignees'] = $value; - after_html_url: + after_assignees: - $value = $payload['id'] ?? null; + $value = $payload['author_association'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'author_association'; + goto after_author_association; } - $properties['id'] = $value; + $properties['author_association'] = $value; - after_id: + after_author_association: - $value = $payload['name'] ?? null; + $value = $payload['body'] ?? null; if ($value === null) { - $missingFields[] = 'name'; - goto after_name; + $missingFields[] = 'body'; + goto after_body; } - $properties['name'] = $value; + $properties['body'] = $value; - after_name: + after_body: - $value = $payload['node_id'] ?? null; + $value = $payload['closed_at'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $missingFields[] = 'closed_at'; + goto after_closed_at; } - $properties['node_id'] = $value; + $properties['closed_at'] = $value; - after_node_id: + after_closed_at: - $value = $payload['owner'] ?? null; + $value = $payload['comments'] ?? null; if ($value === null) { - $missingFields[] = 'owner'; - goto after_owner; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'owner'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'comments'; + goto after_comments; } - $properties['owner'] = $value; + $properties['comments'] = $value; - after_owner: + after_comments: - $value = $payload['permissions'] ?? null; + $value = $payload['comments_url'] ?? null; if ($value === null) { - $missingFields[] = 'permissions'; - goto after_permissions; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'permissions'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDeploymentCreated⚡️Deployment⚡️PerformedViaGithubApp⚡️Permissions($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'comments_url'; + goto after_comments_url; } - $properties['permissions'] = $value; + $properties['comments_url'] = $value; - after_permissions: + after_comments_url: - $value = $payload['slug'] ?? null; + $value = $payload['created_at'] ?? null; if ($value === null) { - $missingFields[] = 'slug'; - goto after_slug; + $missingFields[] = 'created_at'; + goto after_created_at; } - $properties['slug'] = $value; + $properties['created_at'] = $value; - after_slug: + after_created_at: - $value = $payload['updated_at'] ?? null; + $value = $payload['draft'] ?? null; if ($value === null) { - $missingFields[] = 'updated_at'; - goto after_updated_at; + $missingFields[] = 'draft'; + goto after_draft; } - $properties['updated_at'] = $value; + $properties['draft'] = $value; - after_updated_at: - - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesOpened\Changes\OldIssue\PerformedViaGithubApp', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookIssuesOpened\Changes\OldIssue\PerformedViaGithubApp::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\WebhookIssuesOpened\Changes\OldIssue\PerformedViaGithubApp(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesOpened\Changes\OldIssue\PerformedViaGithubApp', $exception, stack: $this->hydrationStack); - } - } + after_draft: - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesAssigned⚡️Issue⚡️PullRequest(array $payload): \ApiClients\Client\Github\Schema\WebhookIssuesAssigned\Issue\PullRequest - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['diff_url'] ?? null; + $value = $payload['events_url'] ?? null; if ($value === null) { - $missingFields[] = 'diff_url'; - goto after_diff_url; + $missingFields[] = 'events_url'; + goto after_events_url; } - $properties['diff_url'] = $value; + $properties['events_url'] = $value; - after_diff_url: + after_events_url: $value = $payload['html_url'] ?? null; @@ -2985,270 +3254,282 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh after_html_url: - $value = $payload['merged_at'] ?? null; + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'merged_at'; - goto after_merged_at; + $missingFields[] = 'id'; + goto after_id; } - $properties['merged_at'] = $value; + $properties['id'] = $value; - after_merged_at: + after_id: - $value = $payload['patch_url'] ?? null; + $value = $payload['labels'] ?? null; if ($value === null) { - $missingFields[] = 'patch_url'; - goto after_patch_url; + $missingFields[] = 'labels'; + goto after_labels; } - $properties['patch_url'] = $value; + $properties['labels'] = $value; - after_patch_url: + after_labels: - $value = $payload['url'] ?? null; + $value = $payload['labels_url'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $missingFields[] = 'labels_url'; + goto after_labels_url; } - $properties['url'] = $value; + $properties['labels_url'] = $value; - after_url: - - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesAssigned\Issue\PullRequest', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookIssuesAssigned\Issue\PullRequest::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\WebhookIssuesAssigned\Issue\PullRequest(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesAssigned\Issue\PullRequest', $exception, stack: $this->hydrationStack); - } - } + after_labels_url: - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️Reactions(array $payload): \ApiClients\Client\Github\Schema\Discussion\Reactions - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['__p_l_u_s_e_s_1'] ?? null; + $value = $payload['locked'] ?? null; if ($value === null) { - $missingFields[] = '__p_l_u_s_e_s_1'; - goto after__PLUSES_1; + $missingFields[] = 'locked'; + goto after_locked; } - $properties['_PLUSES_1'] = $value; + $properties['locked'] = $value; - after__PLUSES_1: + after_locked: - $value = $payload['__m_i_n_u_s_1'] ?? null; + $value = $payload['milestone'] ?? null; if ($value === null) { - $missingFields[] = '__m_i_n_u_s_1'; - goto after__MINUS_1; + $missingFields[] = 'milestone'; + goto after_milestone; } - $properties['_MINUS_1'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'milestone'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesAssigned⚡️Issue⚡️Milestone($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['milestone'] = $value; - after__MINUS_1: + after_milestone: - $value = $payload['confused'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $missingFields[] = 'confused'; - goto after_confused; + $missingFields[] = 'node_id'; + goto after_node_id; } - $properties['confused'] = $value; + $properties['node_id'] = $value; - after_confused: + after_node_id: - $value = $payload['eyes'] ?? null; + $value = $payload['number'] ?? null; if ($value === null) { - $missingFields[] = 'eyes'; - goto after_eyes; + $missingFields[] = 'number'; + goto after_number; } - $properties['eyes'] = $value; + $properties['number'] = $value; - after_eyes: + after_number: - $value = $payload['heart'] ?? null; + $value = $payload['performed_via_github_app'] ?? null; if ($value === null) { - $missingFields[] = 'heart'; - goto after_heart; + $missingFields[] = 'performed_via_github_app'; + goto after_performed_via_github_app; } - $properties['heart'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'performed_via_github_app'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesAssigned⚡️Issue⚡️PerformedViaGithubApp($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['performed_via_github_app'] = $value; - after_heart: + after_performed_via_github_app: - $value = $payload['hooray'] ?? null; + $value = $payload['pull_request'] ?? null; if ($value === null) { - $missingFields[] = 'hooray'; - goto after_hooray; + $missingFields[] = 'pull_request'; + goto after_pull_request; } - $properties['hooray'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'pull_request'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesAssigned⚡️Issue⚡️PullRequest($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['pull_request'] = $value; - after_hooray: + after_pull_request: - $value = $payload['laugh'] ?? null; + $value = $payload['reactions'] ?? null; if ($value === null) { - $missingFields[] = 'laugh'; - goto after_laugh; + $missingFields[] = 'reactions'; + goto after_reactions; } - $properties['laugh'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'reactions'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️Reactions($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['reactions'] = $value; - after_laugh: + after_reactions: - $value = $payload['rocket'] ?? null; + $value = $payload['repository_url'] ?? null; if ($value === null) { - $missingFields[] = 'rocket'; - goto after_rocket; + $missingFields[] = 'repository_url'; + goto after_repository_url; } - $properties['rocket'] = $value; + $properties['repository_url'] = $value; - after_rocket: + after_repository_url: - $value = $payload['total_count'] ?? null; + $value = $payload['state'] ?? null; if ($value === null) { - $missingFields[] = 'total_count'; - goto after_total_count; + $missingFields[] = 'state'; + goto after_state; } - $properties['total_count'] = $value; + $properties['state'] = $value; - after_total_count: + after_state: - $value = $payload['url'] ?? null; + $value = $payload['state_reason'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $missingFields[] = 'state_reason'; + goto after_state_reason; } - $properties['url'] = $value; + $properties['state_reason'] = $value; - after_url: - - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Discussion\Reactions', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Discussion\Reactions::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\Discussion\Reactions(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Discussion\Reactions', $exception, stack: $this->hydrationStack); - } - } + after_state_reason: - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️Permissions(array $payload): \ApiClients\Client\Github\Schema\Repository\Permissions - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['admin'] ?? null; + $value = $payload['timeline_url'] ?? null; if ($value === null) { - $missingFields[] = 'admin'; - goto after_admin; + $missingFields[] = 'timeline_url'; + goto after_timeline_url; } - $properties['admin'] = $value; + $properties['timeline_url'] = $value; - after_admin: + after_timeline_url: - $value = $payload['pull'] ?? null; + $value = $payload['title'] ?? null; if ($value === null) { - $missingFields[] = 'pull'; - goto after_pull; + $missingFields[] = 'title'; + goto after_title; } - $properties['pull'] = $value; + $properties['title'] = $value; - after_pull: + after_title: - $value = $payload['triage'] ?? null; + $value = $payload['updated_at'] ?? null; if ($value === null) { - $missingFields[] = 'triage'; - goto after_triage; + $missingFields[] = 'updated_at'; + goto after_updated_at; } - $properties['triage'] = $value; + $properties['updated_at'] = $value; - after_triage: + after_updated_at: - $value = $payload['push'] ?? null; + $value = $payload['url'] ?? null; if ($value === null) { - $missingFields[] = 'push'; - goto after_push; + $missingFields[] = 'url'; + goto after_url; } - $properties['push'] = $value; + $properties['url'] = $value; - after_push: + after_url: - $value = $payload['maintain'] ?? null; + $value = $payload['user'] ?? null; if ($value === null) { - $missingFields[] = 'maintain'; - goto after_maintain; + $missingFields[] = 'user'; + goto after_user; } - $properties['maintain'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'user'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Comment⚡️User($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['user'] = $value; - after_maintain: + after_user: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\Permissions', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesAssigned\Issue', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\Permissions::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookIssuesAssigned\Issue::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\Repository\Permissions(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookIssuesAssigned\Issue(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\Permissions', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesAssigned\Issue', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository(array $payload): \ApiClients\Client\Github\Schema\Repository\TemplateRepository + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple(array $payload): \ApiClients\Client\Github\Schema\OrganizationSimple { $properties = []; $missingFields = []; try { + $value = $payload['login'] ?? null; + + if ($value === null) { + $missingFields[] = 'login'; + goto after_login; + } + + $properties['login'] = $value; + + after_login: + $value = $payload['id'] ?? null; if ($value === null) { @@ -3271,131 +3552,327 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repo after_node_id: - $value = $payload['name'] ?? null; - - if ($value === null) { - $missingFields[] = 'name'; - goto after_name; - } - - $properties['name'] = $value; - - after_name: - - $value = $payload['full_name'] ?? null; + $value = $payload['url'] ?? null; if ($value === null) { - $missingFields[] = 'full_name'; - goto after_full_name; + $missingFields[] = 'url'; + goto after_url; } - $properties['full_name'] = $value; + $properties['url'] = $value; - after_full_name: + after_url: - $value = $payload['owner'] ?? null; + $value = $payload['repos_url'] ?? null; if ($value === null) { - $missingFields[] = 'owner'; - goto after_owner; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'owner'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'repos_url'; + goto after_repos_url; } - $properties['owner'] = $value; + $properties['repos_url'] = $value; - after_owner: + after_repos_url: - $value = $payload['private'] ?? null; + $value = $payload['events_url'] ?? null; if ($value === null) { - $missingFields[] = 'private'; - goto after_private; + $missingFields[] = 'events_url'; + goto after_events_url; } - $properties['private'] = $value; + $properties['events_url'] = $value; - after_private: + after_events_url: - $value = $payload['html_url'] ?? null; + $value = $payload['hooks_url'] ?? null; if ($value === null) { - $missingFields[] = 'html_url'; - goto after_html_url; + $missingFields[] = 'hooks_url'; + goto after_hooks_url; } - $properties['html_url'] = $value; + $properties['hooks_url'] = $value; - after_html_url: + after_hooks_url: - $value = $payload['description'] ?? null; + $value = $payload['issues_url'] ?? null; if ($value === null) { - $missingFields[] = 'description'; - goto after_description; + $missingFields[] = 'issues_url'; + goto after_issues_url; } - $properties['description'] = $value; + $properties['issues_url'] = $value; - after_description: + after_issues_url: - $value = $payload['fork'] ?? null; + $value = $payload['members_url'] ?? null; if ($value === null) { - $missingFields[] = 'fork'; - goto after_fork; + $missingFields[] = 'members_url'; + goto after_members_url; } - $properties['fork'] = $value; + $properties['members_url'] = $value; - after_fork: + after_members_url: - $value = $payload['url'] ?? null; + $value = $payload['public_members_url'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $missingFields[] = 'public_members_url'; + goto after_public_members_url; } - $properties['url'] = $value; + $properties['public_members_url'] = $value; - after_url: + after_public_members_url: - $value = $payload['archive_url'] ?? null; + $value = $payload['avatar_url'] ?? null; if ($value === null) { - $missingFields[] = 'archive_url'; - goto after_archive_url; + $missingFields[] = 'avatar_url'; + goto after_avatar_url; } - $properties['archive_url'] = $value; + $properties['avatar_url'] = $value; - after_archive_url: + after_avatar_url: - $value = $payload['assignees_url'] ?? null; + $value = $payload['description'] ?? null; if ($value === null) { - $missingFields[] = 'assignees_url'; - goto after_assignees_url; + $missingFields[] = 'description'; + goto after_description; } - $properties['assignees_url'] = $value; + $properties['description'] = $value; - after_assignees_url: + after_description: - $value = $payload['blobs_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'blobs_url'; - goto after_blobs_url; - } + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\OrganizationSimple', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\OrganizationSimple::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\OrganizationSimple(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\OrganizationSimple', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository(array $payload): \ApiClients\Client\Github\Schema\Repository + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['full_name'] ?? null; + + if ($value === null) { + $missingFields[] = 'full_name'; + goto after_full_name; + } + + $properties['full_name'] = $value; + + after_full_name: + + $value = $payload['license'] ?? null; + + if ($value === null) { + $properties['license'] = null; + goto after_license; + } + + $properties['license'] = $value; + + after_license: + + $value = $payload['organization'] ?? null; + + if ($value === null) { + $properties['organization'] = null; + goto after_organization; + } + + $properties['organization'] = $value; + + after_organization: + + $value = $payload['forks'] ?? null; + + if ($value === null) { + $missingFields[] = 'forks'; + goto after_forks; + } + + $properties['forks'] = $value; + + after_forks: + + $value = $payload['permissions'] ?? null; + + if ($value === null) { + $missingFields[] = 'permissions'; + goto after_permissions; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'permissions'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️Permissions($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['permissions'] = $value; + + after_permissions: + + $value = $payload['owner'] ?? null; + + if ($value === null) { + $missingFields[] = 'owner'; + goto after_owner; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'owner'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['owner'] = $value; + + after_owner: + + $value = $payload['private'] ?? null; + + if ($value === null) { + $missingFields[] = 'private'; + goto after_private; + } + + $properties['private'] = $value; + + after_private: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } + + $properties['html_url'] = $value; + + after_html_url: + + $value = $payload['description'] ?? null; + + if ($value === null) { + $missingFields[] = 'description'; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['fork'] ?? null; + + if ($value === null) { + $missingFields[] = 'fork'; + goto after_fork; + } + + $properties['fork'] = $value; + + after_fork: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['archive_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'archive_url'; + goto after_archive_url; + } + + $properties['archive_url'] = $value; + + after_archive_url: + + $value = $payload['assignees_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'assignees_url'; + goto after_assignees_url; + } + + $properties['assignees_url'] = $value; + + after_assignees_url: + + $value = $payload['blobs_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'blobs_url'; + goto after_blobs_url; + } $properties['blobs_url'] = $value; @@ -3984,6 +4461,17 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repo after_has_downloads: + $value = $payload['has_discussions'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_discussions'; + goto after_has_discussions; + } + + $properties['has_discussions'] = $value; + + after_has_discussions: + $value = $payload['archived'] ?? null; if ($value === null) { @@ -4050,26 +4538,6 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repo after_updated_at: - $value = $payload['permissions'] ?? null; - - if ($value === null) { - $missingFields[] = 'permissions'; - goto after_permissions; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'permissions'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Permissions($value); - } finally { - array_pop($this->hydrationStack); - } - } - - $properties['permissions'] = $value; - - after_permissions: - $value = $payload['allow_rebase_merge'] ?? null; if ($value === null) { @@ -4081,10 +4549,30 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repo after_allow_rebase_merge: - $value = $payload['temp_clone_token'] ?? null; + $value = $payload['template_repository'] ?? null; if ($value === null) { - $missingFields[] = 'temp_clone_token'; + $missingFields[] = 'template_repository'; + goto after_template_repository; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'template_repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['template_repository'] = $value; + + after_template_repository: + + $value = $payload['temp_clone_token'] ?? null; + + if ($value === null) { + $missingFields[] = 'temp_clone_token'; goto after_temp_clone_token; } @@ -4202,6 +4690,28 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repo after_allow_merge_commit: + $value = $payload['allow_forking'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_forking'; + goto after_allow_forking; + } + + $properties['allow_forking'] = $value; + + after_allow_forking: + + $value = $payload['web_commit_signoff_required'] ?? null; + + if ($value === null) { + $missingFields[] = 'web_commit_signoff_required'; + goto after_web_commit_signoff_required; + } + + $properties['web_commit_signoff_required'] = $value; + + after_web_commit_signoff_required: + $value = $payload['subscribers_count'] ?? null; if ($value === null) { @@ -4224,456 +4734,540 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repo after_network_count: + $value = $payload['open_issues'] ?? null; + + if ($value === null) { + $missingFields[] = 'open_issues'; + goto after_open_issues; + } + + $properties['open_issues'] = $value; + + after_open_issues: + + $value = $payload['watchers'] ?? null; + + if ($value === null) { + $missingFields[] = 'watchers'; + goto after_watchers; + } + + $properties['watchers'] = $value; + + after_watchers: + + $value = $payload['master_branch'] ?? null; + + if ($value === null) { + $missingFields[] = 'master_branch'; + goto after_master_branch; + } + + $properties['master_branch'] = $value; + + after_master_branch: + + $value = $payload['starred_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'starred_at'; + goto after_starred_at; + } + + $properties['starred_at'] = $value; + + after_starred_at: + + $value = $payload['anonymous_access_enabled'] ?? null; + + if ($value === null) { + $missingFields[] = 'anonymous_access_enabled'; + goto after_anonymous_access_enabled; + } + + $properties['anonymous_access_enabled'] = $value; + + after_anonymous_access_enabled: + } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\TemplateRepository::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\Repository\TemplateRepository(...$properties); + return new \ApiClients\Client\Github\Schema\Repository(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDeploymentCreated⚡️Deployment⚡️PerformedViaGithubApp⚡️Permissions(array $payload): \ApiClients\Client\Github\Schema\WebhookDeploymentCreated\Deployment\PerformedViaGithubApp\Permissions + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser(array $payload): \ApiClients\Client\Github\Schema\SimpleUser { $properties = []; $missingFields = []; try { - $value = $payload['actions'] ?? null; + $value = $payload['name'] ?? null; if ($value === null) { - $missingFields[] = 'actions'; - goto after_actions; + $missingFields[] = 'name'; + goto after_name; } - $properties['actions'] = $value; + $properties['name'] = $value; - after_actions: + after_name: - $value = $payload['administration'] ?? null; + $value = $payload['email'] ?? null; if ($value === null) { - $missingFields[] = 'administration'; - goto after_administration; + $missingFields[] = 'email'; + goto after_email; } - $properties['administration'] = $value; + $properties['email'] = $value; - after_administration: + after_email: - $value = $payload['checks'] ?? null; + $value = $payload['login'] ?? null; if ($value === null) { - $missingFields[] = 'checks'; - goto after_checks; + $missingFields[] = 'login'; + goto after_login; } - $properties['checks'] = $value; + $properties['login'] = $value; - after_checks: + after_login: - $value = $payload['content_references'] ?? null; + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'content_references'; - goto after_content_references; + $missingFields[] = 'id'; + goto after_id; } - $properties['content_references'] = $value; + $properties['id'] = $value; - after_content_references: + after_id: - $value = $payload['contents'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $missingFields[] = 'contents'; - goto after_contents; + $missingFields[] = 'node_id'; + goto after_node_id; } - $properties['contents'] = $value; + $properties['node_id'] = $value; - after_contents: + after_node_id: - $value = $payload['deployments'] ?? null; + $value = $payload['avatar_url'] ?? null; if ($value === null) { - $missingFields[] = 'deployments'; - goto after_deployments; + $missingFields[] = 'avatar_url'; + goto after_avatar_url; } - $properties['deployments'] = $value; + $properties['avatar_url'] = $value; - after_deployments: + after_avatar_url: - $value = $payload['discussions'] ?? null; + $value = $payload['gravatar_id'] ?? null; if ($value === null) { - $missingFields[] = 'discussions'; - goto after_discussions; + $missingFields[] = 'gravatar_id'; + goto after_gravatar_id; } - $properties['discussions'] = $value; + $properties['gravatar_id'] = $value; - after_discussions: + after_gravatar_id: - $value = $payload['emails'] ?? null; + $value = $payload['url'] ?? null; if ($value === null) { - $missingFields[] = 'emails'; - goto after_emails; + $missingFields[] = 'url'; + goto after_url; } - $properties['emails'] = $value; + $properties['url'] = $value; - after_emails: + after_url: - $value = $payload['environments'] ?? null; + $value = $payload['html_url'] ?? null; if ($value === null) { - $missingFields[] = 'environments'; - goto after_environments; + $missingFields[] = 'html_url'; + goto after_html_url; } - $properties['environments'] = $value; + $properties['html_url'] = $value; - after_environments: + after_html_url: - $value = $payload['issues'] ?? null; + $value = $payload['followers_url'] ?? null; if ($value === null) { - $missingFields[] = 'issues'; - goto after_issues; + $missingFields[] = 'followers_url'; + goto after_followers_url; } - $properties['issues'] = $value; + $properties['followers_url'] = $value; - after_issues: + after_followers_url: - $value = $payload['keys'] ?? null; + $value = $payload['following_url'] ?? null; if ($value === null) { - $missingFields[] = 'keys'; - goto after_keys; + $missingFields[] = 'following_url'; + goto after_following_url; } - $properties['keys'] = $value; + $properties['following_url'] = $value; - after_keys: + after_following_url: - $value = $payload['members'] ?? null; + $value = $payload['gists_url'] ?? null; if ($value === null) { - $missingFields[] = 'members'; - goto after_members; + $missingFields[] = 'gists_url'; + goto after_gists_url; } - $properties['members'] = $value; + $properties['gists_url'] = $value; - after_members: + after_gists_url: - $value = $payload['metadata'] ?? null; + $value = $payload['starred_url'] ?? null; if ($value === null) { - $missingFields[] = 'metadata'; - goto after_metadata; + $missingFields[] = 'starred_url'; + goto after_starred_url; } - $properties['metadata'] = $value; + $properties['starred_url'] = $value; - after_metadata: + after_starred_url: - $value = $payload['organization_administration'] ?? null; + $value = $payload['subscriptions_url'] ?? null; if ($value === null) { - $missingFields[] = 'organization_administration'; - goto after_organization_administration; + $missingFields[] = 'subscriptions_url'; + goto after_subscriptions_url; } - $properties['organization_administration'] = $value; + $properties['subscriptions_url'] = $value; - after_organization_administration: + after_subscriptions_url: - $value = $payload['organization_hooks'] ?? null; + $value = $payload['organizations_url'] ?? null; if ($value === null) { - $missingFields[] = 'organization_hooks'; - goto after_organization_hooks; + $missingFields[] = 'organizations_url'; + goto after_organizations_url; } - $properties['organization_hooks'] = $value; + $properties['organizations_url'] = $value; - after_organization_hooks: + after_organizations_url: - $value = $payload['organization_packages'] ?? null; + $value = $payload['repos_url'] ?? null; if ($value === null) { - $missingFields[] = 'organization_packages'; - goto after_organization_packages; + $missingFields[] = 'repos_url'; + goto after_repos_url; } - $properties['organization_packages'] = $value; + $properties['repos_url'] = $value; - after_organization_packages: + after_repos_url: - $value = $payload['organization_plan'] ?? null; + $value = $payload['events_url'] ?? null; if ($value === null) { - $missingFields[] = 'organization_plan'; - goto after_organization_plan; + $missingFields[] = 'events_url'; + goto after_events_url; } - $properties['organization_plan'] = $value; + $properties['events_url'] = $value; - after_organization_plan: + after_events_url: - $value = $payload['organization_projects'] ?? null; + $value = $payload['received_events_url'] ?? null; if ($value === null) { - $missingFields[] = 'organization_projects'; - goto after_organization_projects; + $missingFields[] = 'received_events_url'; + goto after_received_events_url; } - $properties['organization_projects'] = $value; + $properties['received_events_url'] = $value; - after_organization_projects: + after_received_events_url: - $value = $payload['organization_secrets'] ?? null; + $value = $payload['type'] ?? null; if ($value === null) { - $missingFields[] = 'organization_secrets'; - goto after_organization_secrets; + $missingFields[] = 'type'; + goto after_type; } - $properties['organization_secrets'] = $value; + $properties['type'] = $value; - after_organization_secrets: + after_type: - $value = $payload['organization_self_hosted_runners'] ?? null; + $value = $payload['site_admin'] ?? null; if ($value === null) { - $missingFields[] = 'organization_self_hosted_runners'; - goto after_organization_self_hosted_runners; + $missingFields[] = 'site_admin'; + goto after_site_admin; } - $properties['organization_self_hosted_runners'] = $value; + $properties['site_admin'] = $value; - after_organization_self_hosted_runners: + after_site_admin: - $value = $payload['organization_user_blocking'] ?? null; + $value = $payload['starred_at'] ?? null; if ($value === null) { - $missingFields[] = 'organization_user_blocking'; - goto after_organization_user_blocking; + $missingFields[] = 'starred_at'; + goto after_starred_at; } - $properties['organization_user_blocking'] = $value; + $properties['starred_at'] = $value; - after_organization_user_blocking: + after_starred_at: - $value = $payload['packages'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleUser', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\SimpleUser::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\SimpleUser(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleUser', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesDeleted⚡️Issue(array $payload): \ApiClients\Client\Github\Schema\WebhookIssuesDeleted\Issue + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['active_lock_reason'] ?? null; if ($value === null) { - $missingFields[] = 'packages'; - goto after_packages; + $missingFields[] = 'active_lock_reason'; + goto after_active_lock_reason; } - $properties['packages'] = $value; + $properties['active_lock_reason'] = $value; - after_packages: + after_active_lock_reason: - $value = $payload['pages'] ?? null; + $value = $payload['assignee'] ?? null; if ($value === null) { - $missingFields[] = 'pages'; - goto after_pages; + $missingFields[] = 'assignee'; + goto after_assignee; } - $properties['pages'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'assignee'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['assignee'] = $value; - after_pages: + after_assignee: - $value = $payload['pull_requests'] ?? null; + $value = $payload['assignees'] ?? null; if ($value === null) { - $missingFields[] = 'pull_requests'; - goto after_pull_requests; + $missingFields[] = 'assignees'; + goto after_assignees; } - $properties['pull_requests'] = $value; + $properties['assignees'] = $value; - after_pull_requests: + after_assignees: - $value = $payload['repository_hooks'] ?? null; + $value = $payload['author_association'] ?? null; if ($value === null) { - $missingFields[] = 'repository_hooks'; - goto after_repository_hooks; + $missingFields[] = 'author_association'; + goto after_author_association; } - $properties['repository_hooks'] = $value; + $properties['author_association'] = $value; - after_repository_hooks: + after_author_association: - $value = $payload['repository_projects'] ?? null; + $value = $payload['body'] ?? null; if ($value === null) { - $missingFields[] = 'repository_projects'; - goto after_repository_projects; + $missingFields[] = 'body'; + goto after_body; } - $properties['repository_projects'] = $value; + $properties['body'] = $value; - after_repository_projects: + after_body: - $value = $payload['secret_scanning_alerts'] ?? null; + $value = $payload['closed_at'] ?? null; if ($value === null) { - $missingFields[] = 'secret_scanning_alerts'; - goto after_secret_scanning_alerts; + $missingFields[] = 'closed_at'; + goto after_closed_at; } - $properties['secret_scanning_alerts'] = $value; + $properties['closed_at'] = $value; - after_secret_scanning_alerts: + after_closed_at: - $value = $payload['secrets'] ?? null; + $value = $payload['comments'] ?? null; if ($value === null) { - $missingFields[] = 'secrets'; - goto after_secrets; + $missingFields[] = 'comments'; + goto after_comments; } - $properties['secrets'] = $value; + $properties['comments'] = $value; - after_secrets: + after_comments: - $value = $payload['security_events'] ?? null; + $value = $payload['comments_url'] ?? null; if ($value === null) { - $missingFields[] = 'security_events'; - goto after_security_events; + $missingFields[] = 'comments_url'; + goto after_comments_url; } - $properties['security_events'] = $value; + $properties['comments_url'] = $value; - after_security_events: + after_comments_url: - $value = $payload['security_scanning_alert'] ?? null; + $value = $payload['created_at'] ?? null; if ($value === null) { - $missingFields[] = 'security_scanning_alert'; - goto after_security_scanning_alert; + $missingFields[] = 'created_at'; + goto after_created_at; } - $properties['security_scanning_alert'] = $value; + $properties['created_at'] = $value; - after_security_scanning_alert: + after_created_at: - $value = $payload['single_file'] ?? null; + $value = $payload['draft'] ?? null; if ($value === null) { - $missingFields[] = 'single_file'; - goto after_single_file; + $missingFields[] = 'draft'; + goto after_draft; } - $properties['single_file'] = $value; + $properties['draft'] = $value; - after_single_file: + after_draft: - $value = $payload['statuses'] ?? null; + $value = $payload['events_url'] ?? null; if ($value === null) { - $missingFields[] = 'statuses'; - goto after_statuses; + $missingFields[] = 'events_url'; + goto after_events_url; } - $properties['statuses'] = $value; + $properties['events_url'] = $value; - after_statuses: + after_events_url: - $value = $payload['team_discussions'] ?? null; + $value = $payload['html_url'] ?? null; if ($value === null) { - $missingFields[] = 'team_discussions'; - goto after_team_discussions; + $missingFields[] = 'html_url'; + goto after_html_url; } - $properties['team_discussions'] = $value; + $properties['html_url'] = $value; - after_team_discussions: + after_html_url: - $value = $payload['vulnerability_alerts'] ?? null; + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'vulnerability_alerts'; - goto after_vulnerability_alerts; + $missingFields[] = 'id'; + goto after_id; } - $properties['vulnerability_alerts'] = $value; + $properties['id'] = $value; - after_vulnerability_alerts: + after_id: - $value = $payload['workflows'] ?? null; + $value = $payload['labels'] ?? null; if ($value === null) { - $missingFields[] = 'workflows'; - goto after_workflows; + $missingFields[] = 'labels'; + goto after_labels; } - $properties['workflows'] = $value; + $properties['labels'] = $value; - after_workflows: - - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDeploymentCreated\Deployment\PerformedViaGithubApp\Permissions', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookDeploymentCreated\Deployment\PerformedViaGithubApp\Permissions::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\WebhookDeploymentCreated\Deployment\PerformedViaGithubApp\Permissions(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDeploymentCreated\Deployment\PerformedViaGithubApp\Permissions', $exception, stack: $this->hydrationStack); - } - } + after_labels: - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner(array $payload): \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['login'] ?? null; + $value = $payload['labels_url'] ?? null; if ($value === null) { - $missingFields[] = 'login'; - goto after_login; + $missingFields[] = 'labels_url'; + goto after_labels_url; } - $properties['login'] = $value; + $properties['labels_url'] = $value; - after_login: + after_labels_url: - $value = $payload['id'] ?? null; + $value = $payload['locked'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'locked'; + goto after_locked; } - $properties['id'] = $value; + $properties['locked'] = $value; - after_id: + after_locked: + + $value = $payload['milestone'] ?? null; + + if ($value === null) { + $missingFields[] = 'milestone'; + goto after_milestone; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'milestone'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesDeleted⚡️Issue⚡️Milestone($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['milestone'] = $value; + + after_milestone: $value = $payload['node_id'] ?? null; @@ -4686,345 +5280,9976 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repo after_node_id: - $value = $payload['avatar_url'] ?? null; + $value = $payload['number'] ?? null; if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatar_url; + $missingFields[] = 'number'; + goto after_number; } - $properties['avatar_url'] = $value; + $properties['number'] = $value; - after_avatar_url: + after_number: - $value = $payload['gravatar_id'] ?? null; + $value = $payload['performed_via_github_app'] ?? null; if ($value === null) { - $missingFields[] = 'gravatar_id'; - goto after_gravatar_id; + $missingFields[] = 'performed_via_github_app'; + goto after_performed_via_github_app; } - $properties['gravatar_id'] = $value; - - after_gravatar_id: - - $value = $payload['url'] ?? null; - - if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'performed_via_github_app'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesDeleted⚡️Issue⚡️PerformedViaGithubApp($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['url'] = $value; + $properties['performed_via_github_app'] = $value; - after_url: + after_performed_via_github_app: - $value = $payload['html_url'] ?? null; + $value = $payload['pull_request'] ?? null; if ($value === null) { - $missingFields[] = 'html_url'; - goto after_html_url; + $missingFields[] = 'pull_request'; + goto after_pull_request; } - $properties['html_url'] = $value; - - after_html_url: - - $value = $payload['followers_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followers_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'pull_request'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesAssigned⚡️Issue⚡️PullRequest($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['followers_url'] = $value; + $properties['pull_request'] = $value; - after_followers_url: + after_pull_request: - $value = $payload['following_url'] ?? null; + $value = $payload['reactions'] ?? null; if ($value === null) { - $missingFields[] = 'following_url'; - goto after_following_url; + $missingFields[] = 'reactions'; + goto after_reactions; } - $properties['following_url'] = $value; - - after_following_url: - - $value = $payload['gists_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gists_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'reactions'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️Reactions($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['gists_url'] = $value; + $properties['reactions'] = $value; - after_gists_url: + after_reactions: - $value = $payload['starred_url'] ?? null; + $value = $payload['repository_url'] ?? null; if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starred_url; + $missingFields[] = 'repository_url'; + goto after_repository_url; } - $properties['starred_url'] = $value; + $properties['repository_url'] = $value; - after_starred_url: + after_repository_url: - $value = $payload['subscriptions_url'] ?? null; + $value = $payload['state'] ?? null; if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptions_url; + $missingFields[] = 'state'; + goto after_state; } - $properties['subscriptions_url'] = $value; + $properties['state'] = $value; - after_subscriptions_url: + after_state: - $value = $payload['organizations_url'] ?? null; + $value = $payload['state_reason'] ?? null; if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizations_url; + $missingFields[] = 'state_reason'; + goto after_state_reason; } - $properties['organizations_url'] = $value; + $properties['state_reason'] = $value; - after_organizations_url: + after_state_reason: - $value = $payload['repos_url'] ?? null; + $value = $payload['timeline_url'] ?? null; if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_repos_url; + $missingFields[] = 'timeline_url'; + goto after_timeline_url; } - $properties['repos_url'] = $value; + $properties['timeline_url'] = $value; - after_repos_url: + after_timeline_url: - $value = $payload['events_url'] ?? null; + $value = $payload['title'] ?? null; if ($value === null) { - $missingFields[] = 'events_url'; - goto after_events_url; + $missingFields[] = 'title'; + goto after_title; } - $properties['events_url'] = $value; + $properties['title'] = $value; - after_events_url: + after_title: - $value = $payload['received_events_url'] ?? null; + $value = $payload['updated_at'] ?? null; if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_received_events_url; + $missingFields[] = 'updated_at'; + goto after_updated_at; } - $properties['received_events_url'] = $value; + $properties['updated_at'] = $value; - after_received_events_url: + after_updated_at: - $value = $payload['type'] ?? null; + $value = $payload['url'] ?? null; if ($value === null) { - $missingFields[] = 'type'; - goto after_type; + $missingFields[] = 'url'; + goto after_url; } - $properties['type'] = $value; + $properties['url'] = $value; - after_type: + after_url: - $value = $payload['site_admin'] ?? null; + $value = $payload['user'] ?? null; if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_site_admin; + $missingFields[] = 'user'; + goto after_user; } - $properties['site_admin'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'user'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['user'] = $value; - after_site_admin: + after_user: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesDeleted\Issue', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookIssuesDeleted\Issue::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookIssuesDeleted\Issue(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesDeleted\Issue', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Permissions(array $payload): \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesDemilestoned⚡️Milestone(array $payload): \ApiClients\Client\Github\Schema\WebhookIssuesDemilestoned\Milestone { $properties = []; $missingFields = []; try { - $value = $payload['admin'] ?? null; + $value = $payload['closed_at'] ?? null; if ($value === null) { - $missingFields[] = 'admin'; - goto after_admin; + $missingFields[] = 'closed_at'; + goto after_closed_at; } - $properties['admin'] = $value; + $properties['closed_at'] = $value; - after_admin: + after_closed_at: - $value = $payload['maintain'] ?? null; + $value = $payload['closed_issues'] ?? null; if ($value === null) { - $missingFields[] = 'maintain'; - goto after_maintain; + $missingFields[] = 'closed_issues'; + goto after_closed_issues; } - $properties['maintain'] = $value; + $properties['closed_issues'] = $value; - after_maintain: + after_closed_issues: - $value = $payload['push'] ?? null; + $value = $payload['created_at'] ?? null; if ($value === null) { - $missingFields[] = 'push'; - goto after_push; + $missingFields[] = 'created_at'; + goto after_created_at; } - $properties['push'] = $value; + $properties['created_at'] = $value; - after_push: + after_created_at: - $value = $payload['triage'] ?? null; + $value = $payload['creator'] ?? null; if ($value === null) { - $missingFields[] = 'triage'; - goto after_triage; + $missingFields[] = 'creator'; + goto after_creator; } - $properties['triage'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'creator'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Comment⚡️User($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['creator'] = $value; + + after_creator: + + $value = $payload['description'] ?? null; + + if ($value === null) { + $missingFields[] = 'description'; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['due_on'] ?? null; + + if ($value === null) { + $missingFields[] = 'due_on'; + goto after_due_on; + } + + $properties['due_on'] = $value; + + after_due_on: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } + + $properties['html_url'] = $value; + + after_html_url: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['labels_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'labels_url'; + goto after_labels_url; + } + + $properties['labels_url'] = $value; + + after_labels_url: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['number'] ?? null; + + if ($value === null) { + $missingFields[] = 'number'; + goto after_number; + } + + $properties['number'] = $value; + + after_number: + + $value = $payload['open_issues'] ?? null; + + if ($value === null) { + $missingFields[] = 'open_issues'; + goto after_open_issues; + } + + $properties['open_issues'] = $value; + + after_open_issues: + + $value = $payload['state'] ?? null; + + if ($value === null) { + $missingFields[] = 'state'; + goto after_state; + } + + $properties['state'] = $value; + + after_state: + + $value = $payload['title'] ?? null; + + if ($value === null) { + $missingFields[] = 'title'; + goto after_title; + } + + $properties['title'] = $value; + + after_title: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'updated_at'; + goto after_updated_at; + } + + $properties['updated_at'] = $value; + + after_updated_at: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesDemilestoned\Milestone', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookIssuesDemilestoned\Milestone::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookIssuesDemilestoned\Milestone(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesDemilestoned\Milestone', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesEdited⚡️Changes(array $payload): \ApiClients\Client\Github\Schema\WebhookIssuesEdited\Changes + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['body'] ?? null; + + if ($value === null) { + $missingFields[] = 'body'; + goto after_body; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'body'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentEdited⚡️Changes⚡️Body($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['body'] = $value; + + after_body: + + $value = $payload['title'] ?? null; + + if ($value === null) { + $missingFields[] = 'title'; + goto after_title; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'title'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesEdited⚡️Changes⚡️Title($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['title'] = $value; + + after_title: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesEdited\Changes', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookIssuesEdited\Changes::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookIssuesEdited\Changes(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesEdited\Changes', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesEdited⚡️Issue(array $payload): \ApiClients\Client\Github\Schema\WebhookIssuesEdited\Issue + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['active_lock_reason'] ?? null; + + if ($value === null) { + $missingFields[] = 'active_lock_reason'; + goto after_active_lock_reason; + } + + $properties['active_lock_reason'] = $value; + + after_active_lock_reason: + + $value = $payload['assignee'] ?? null; + + if ($value === null) { + $missingFields[] = 'assignee'; + goto after_assignee; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'assignee'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Comment⚡️User($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['assignee'] = $value; + + after_assignee: + + $value = $payload['assignees'] ?? null; + + if ($value === null) { + $missingFields[] = 'assignees'; + goto after_assignees; + } + + $properties['assignees'] = $value; + + after_assignees: + + $value = $payload['author_association'] ?? null; + + if ($value === null) { + $missingFields[] = 'author_association'; + goto after_author_association; + } + + $properties['author_association'] = $value; + + after_author_association: + + $value = $payload['body'] ?? null; + + if ($value === null) { + $missingFields[] = 'body'; + goto after_body; + } + + $properties['body'] = $value; + + after_body: + + $value = $payload['closed_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'closed_at'; + goto after_closed_at; + } + + $properties['closed_at'] = $value; + + after_closed_at: + + $value = $payload['comments'] ?? null; + + if ($value === null) { + $missingFields[] = 'comments'; + goto after_comments; + } + + $properties['comments'] = $value; + + after_comments: + + $value = $payload['comments_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'comments_url'; + goto after_comments_url; + } + + $properties['comments_url'] = $value; + + after_comments_url: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'created_at'; + goto after_created_at; + } + + $properties['created_at'] = $value; + + after_created_at: + + $value = $payload['draft'] ?? null; + + if ($value === null) { + $missingFields[] = 'draft'; + goto after_draft; + } + + $properties['draft'] = $value; + + after_draft: + + $value = $payload['events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'events_url'; + goto after_events_url; + } + + $properties['events_url'] = $value; + + after_events_url: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } + + $properties['html_url'] = $value; + + after_html_url: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['labels'] ?? null; + + if ($value === null) { + $missingFields[] = 'labels'; + goto after_labels; + } + + $properties['labels'] = $value; + + after_labels: + + $value = $payload['labels_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'labels_url'; + goto after_labels_url; + } + + $properties['labels_url'] = $value; + + after_labels_url: + + $value = $payload['locked'] ?? null; + + if ($value === null) { + $missingFields[] = 'locked'; + goto after_locked; + } + + $properties['locked'] = $value; + + after_locked: + + $value = $payload['milestone'] ?? null; + + if ($value === null) { + $missingFields[] = 'milestone'; + goto after_milestone; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'milestone'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesAssigned⚡️Issue⚡️Milestone($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['milestone'] = $value; + + after_milestone: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['number'] ?? null; + + if ($value === null) { + $missingFields[] = 'number'; + goto after_number; + } + + $properties['number'] = $value; + + after_number: + + $value = $payload['performed_via_github_app'] ?? null; + + if ($value === null) { + $missingFields[] = 'performed_via_github_app'; + goto after_performed_via_github_app; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'performed_via_github_app'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesEdited⚡️Issue⚡️PerformedViaGithubApp($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['performed_via_github_app'] = $value; + + after_performed_via_github_app: + + $value = $payload['pull_request'] ?? null; + + if ($value === null) { + $missingFields[] = 'pull_request'; + goto after_pull_request; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'pull_request'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesAssigned⚡️Issue⚡️PullRequest($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['pull_request'] = $value; + + after_pull_request: + + $value = $payload['reactions'] ?? null; + + if ($value === null) { + $missingFields[] = 'reactions'; + goto after_reactions; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'reactions'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️Reactions($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['reactions'] = $value; + + after_reactions: + + $value = $payload['repository_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'repository_url'; + goto after_repository_url; + } + + $properties['repository_url'] = $value; + + after_repository_url: + + $value = $payload['state'] ?? null; + + if ($value === null) { + $missingFields[] = 'state'; + goto after_state; + } + + $properties['state'] = $value; + + after_state: + + $value = $payload['state_reason'] ?? null; + + if ($value === null) { + $missingFields[] = 'state_reason'; + goto after_state_reason; + } + + $properties['state_reason'] = $value; + + after_state_reason: + + $value = $payload['timeline_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'timeline_url'; + goto after_timeline_url; + } + + $properties['timeline_url'] = $value; + + after_timeline_url: + + $value = $payload['title'] ?? null; + + if ($value === null) { + $missingFields[] = 'title'; + goto after_title; + } + + $properties['title'] = $value; + + after_title: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'updated_at'; + goto after_updated_at; + } + + $properties['updated_at'] = $value; + + after_updated_at: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['user'] ?? null; + + if ($value === null) { + $missingFields[] = 'user'; + goto after_user; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'user'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Comment⚡️User($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['user'] = $value; + + after_user: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesEdited\Issue', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookIssuesEdited\Issue::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookIssuesEdited\Issue(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesEdited\Issue', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionLabeled⚡️Label(array $payload): \ApiClients\Client\Github\Schema\WebhookDiscussionLabeled\Label + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['color'] ?? null; + + if ($value === null) { + $missingFields[] = 'color'; + goto after_color; + } + + $properties['color'] = $value; + + after_color: + + $value = $payload['default'] ?? null; + + if ($value === null) { + $missingFields[] = 'default'; + goto after_default; + } + + $properties['default'] = $value; + + after_default: + + $value = $payload['description'] ?? null; + + if ($value === null) { + $missingFields[] = 'description'; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDiscussionLabeled\Label', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookDiscussionLabeled\Label::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookDiscussionLabeled\Label(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDiscussionLabeled\Label', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesLabeled⚡️Issue(array $payload): \ApiClients\Client\Github\Schema\WebhookIssuesLabeled\Issue + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['active_lock_reason'] ?? null; + + if ($value === null) { + $missingFields[] = 'active_lock_reason'; + goto after_active_lock_reason; + } + + $properties['active_lock_reason'] = $value; + + after_active_lock_reason: + + $value = $payload['assignee'] ?? null; + + if ($value === null) { + $missingFields[] = 'assignee'; + goto after_assignee; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'assignee'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Comment⚡️User($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['assignee'] = $value; + + after_assignee: + + $value = $payload['assignees'] ?? null; + + if ($value === null) { + $missingFields[] = 'assignees'; + goto after_assignees; + } + + $properties['assignees'] = $value; + + after_assignees: + + $value = $payload['author_association'] ?? null; + + if ($value === null) { + $missingFields[] = 'author_association'; + goto after_author_association; + } + + $properties['author_association'] = $value; + + after_author_association: + + $value = $payload['body'] ?? null; + + if ($value === null) { + $missingFields[] = 'body'; + goto after_body; + } + + $properties['body'] = $value; + + after_body: + + $value = $payload['closed_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'closed_at'; + goto after_closed_at; + } + + $properties['closed_at'] = $value; + + after_closed_at: + + $value = $payload['comments'] ?? null; + + if ($value === null) { + $missingFields[] = 'comments'; + goto after_comments; + } + + $properties['comments'] = $value; + + after_comments: + + $value = $payload['comments_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'comments_url'; + goto after_comments_url; + } + + $properties['comments_url'] = $value; + + after_comments_url: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'created_at'; + goto after_created_at; + } + + $properties['created_at'] = $value; + + after_created_at: + + $value = $payload['draft'] ?? null; + + if ($value === null) { + $missingFields[] = 'draft'; + goto after_draft; + } + + $properties['draft'] = $value; + + after_draft: + + $value = $payload['events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'events_url'; + goto after_events_url; + } + + $properties['events_url'] = $value; + + after_events_url: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } + + $properties['html_url'] = $value; + + after_html_url: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['labels'] ?? null; + + if ($value === null) { + $missingFields[] = 'labels'; + goto after_labels; + } + + $properties['labels'] = $value; + + after_labels: + + $value = $payload['labels_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'labels_url'; + goto after_labels_url; + } + + $properties['labels_url'] = $value; + + after_labels_url: + + $value = $payload['locked'] ?? null; + + if ($value === null) { + $missingFields[] = 'locked'; + goto after_locked; + } + + $properties['locked'] = $value; + + after_locked: + + $value = $payload['milestone'] ?? null; + + if ($value === null) { + $missingFields[] = 'milestone'; + goto after_milestone; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'milestone'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesAssigned⚡️Issue⚡️Milestone($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['milestone'] = $value; + + after_milestone: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['number'] ?? null; + + if ($value === null) { + $missingFields[] = 'number'; + goto after_number; + } + + $properties['number'] = $value; + + after_number: + + $value = $payload['performed_via_github_app'] ?? null; + + if ($value === null) { + $missingFields[] = 'performed_via_github_app'; + goto after_performed_via_github_app; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'performed_via_github_app'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesLabeled⚡️Issue⚡️PerformedViaGithubApp($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['performed_via_github_app'] = $value; + + after_performed_via_github_app: + + $value = $payload['pull_request'] ?? null; + + if ($value === null) { + $missingFields[] = 'pull_request'; + goto after_pull_request; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'pull_request'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesAssigned⚡️Issue⚡️PullRequest($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['pull_request'] = $value; + + after_pull_request: + + $value = $payload['reactions'] ?? null; + + if ($value === null) { + $missingFields[] = 'reactions'; + goto after_reactions; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'reactions'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️Reactions($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['reactions'] = $value; + + after_reactions: + + $value = $payload['repository_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'repository_url'; + goto after_repository_url; + } + + $properties['repository_url'] = $value; + + after_repository_url: + + $value = $payload['state'] ?? null; + + if ($value === null) { + $missingFields[] = 'state'; + goto after_state; + } + + $properties['state'] = $value; + + after_state: + + $value = $payload['state_reason'] ?? null; + + if ($value === null) { + $missingFields[] = 'state_reason'; + goto after_state_reason; + } + + $properties['state_reason'] = $value; + + after_state_reason: + + $value = $payload['timeline_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'timeline_url'; + goto after_timeline_url; + } + + $properties['timeline_url'] = $value; + + after_timeline_url: + + $value = $payload['title'] ?? null; + + if ($value === null) { + $missingFields[] = 'title'; + goto after_title; + } + + $properties['title'] = $value; + + after_title: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'updated_at'; + goto after_updated_at; + } + + $properties['updated_at'] = $value; + + after_updated_at: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['user'] ?? null; + + if ($value === null) { + $missingFields[] = 'user'; + goto after_user; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'user'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Comment⚡️User($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['user'] = $value; + + after_user: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesLabeled\Issue', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookIssuesLabeled\Issue::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookIssuesLabeled\Issue(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesLabeled\Issue', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesOpened⚡️Changes(array $payload): \ApiClients\Client\Github\Schema\WebhookIssuesOpened\Changes + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['old_issue'] ?? null; + + if ($value === null) { + $missingFields[] = 'old_issue'; + goto after_old_issue; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'old_issue'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesOpened⚡️Changes⚡️OldIssue($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['old_issue'] = $value; + + after_old_issue: + + $value = $payload['old_repository'] ?? null; + + if ($value === null) { + $missingFields[] = 'old_repository'; + goto after_old_repository; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'old_repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesOpened⚡️Changes⚡️OldRepository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['old_repository'] = $value; + + after_old_repository: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesOpened\Changes', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookIssuesOpened\Changes::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookIssuesOpened\Changes(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesOpened\Changes', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesOpened⚡️Issue(array $payload): \ApiClients\Client\Github\Schema\WebhookIssuesOpened\Issue + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['active_lock_reason'] ?? null; + + if ($value === null) { + $missingFields[] = 'active_lock_reason'; + goto after_active_lock_reason; + } + + $properties['active_lock_reason'] = $value; + + after_active_lock_reason: + + $value = $payload['assignee'] ?? null; + + if ($value === null) { + $missingFields[] = 'assignee'; + goto after_assignee; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'assignee'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['assignee'] = $value; + + after_assignee: + + $value = $payload['assignees'] ?? null; + + if ($value === null) { + $missingFields[] = 'assignees'; + goto after_assignees; + } + + $properties['assignees'] = $value; + + after_assignees: + + $value = $payload['author_association'] ?? null; + + if ($value === null) { + $missingFields[] = 'author_association'; + goto after_author_association; + } + + $properties['author_association'] = $value; + + after_author_association: + + $value = $payload['body'] ?? null; + + if ($value === null) { + $missingFields[] = 'body'; + goto after_body; + } + + $properties['body'] = $value; + + after_body: + + $value = $payload['closed_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'closed_at'; + goto after_closed_at; + } + + $properties['closed_at'] = $value; + + after_closed_at: + + $value = $payload['comments'] ?? null; + + if ($value === null) { + $missingFields[] = 'comments'; + goto after_comments; + } + + $properties['comments'] = $value; + + after_comments: + + $value = $payload['comments_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'comments_url'; + goto after_comments_url; + } + + $properties['comments_url'] = $value; + + after_comments_url: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'created_at'; + goto after_created_at; + } + + $properties['created_at'] = $value; + + after_created_at: + + $value = $payload['draft'] ?? null; + + if ($value === null) { + $missingFields[] = 'draft'; + goto after_draft; + } + + $properties['draft'] = $value; + + after_draft: + + $value = $payload['events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'events_url'; + goto after_events_url; + } + + $properties['events_url'] = $value; + + after_events_url: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } + + $properties['html_url'] = $value; + + after_html_url: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['labels'] ?? null; + + if ($value === null) { + $missingFields[] = 'labels'; + goto after_labels; + } + + $properties['labels'] = $value; + + after_labels: + + $value = $payload['labels_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'labels_url'; + goto after_labels_url; + } + + $properties['labels_url'] = $value; + + after_labels_url: + + $value = $payload['locked'] ?? null; + + if ($value === null) { + $missingFields[] = 'locked'; + goto after_locked; + } + + $properties['locked'] = $value; + + after_locked: + + $value = $payload['milestone'] ?? null; + + if ($value === null) { + $missingFields[] = 'milestone'; + goto after_milestone; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'milestone'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesAssigned⚡️Issue⚡️Milestone($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['milestone'] = $value; + + after_milestone: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['number'] ?? null; + + if ($value === null) { + $missingFields[] = 'number'; + goto after_number; + } + + $properties['number'] = $value; + + after_number: + + $value = $payload['performed_via_github_app'] ?? null; + + if ($value === null) { + $missingFields[] = 'performed_via_github_app'; + goto after_performed_via_github_app; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'performed_via_github_app'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesEdited⚡️Issue⚡️PerformedViaGithubApp($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['performed_via_github_app'] = $value; + + after_performed_via_github_app: + + $value = $payload['pull_request'] ?? null; + + if ($value === null) { + $missingFields[] = 'pull_request'; + goto after_pull_request; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'pull_request'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesAssigned⚡️Issue⚡️PullRequest($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['pull_request'] = $value; + + after_pull_request: + + $value = $payload['reactions'] ?? null; + + if ($value === null) { + $missingFields[] = 'reactions'; + goto after_reactions; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'reactions'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️Reactions($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['reactions'] = $value; + + after_reactions: + + $value = $payload['repository_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'repository_url'; + goto after_repository_url; + } + + $properties['repository_url'] = $value; + + after_repository_url: + + $value = $payload['state'] ?? null; + + if ($value === null) { + $missingFields[] = 'state'; + goto after_state; + } + + $properties['state'] = $value; + + after_state: + + $value = $payload['state_reason'] ?? null; + + if ($value === null) { + $missingFields[] = 'state_reason'; + goto after_state_reason; + } + + $properties['state_reason'] = $value; + + after_state_reason: + + $value = $payload['timeline_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'timeline_url'; + goto after_timeline_url; + } + + $properties['timeline_url'] = $value; + + after_timeline_url: + + $value = $payload['title'] ?? null; + + if ($value === null) { + $missingFields[] = 'title'; + goto after_title; + } + + $properties['title'] = $value; + + after_title: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'updated_at'; + goto after_updated_at; + } + + $properties['updated_at'] = $value; + + after_updated_at: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['user'] ?? null; + + if ($value === null) { + $missingFields[] = 'user'; + goto after_user; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'user'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['user'] = $value; + + after_user: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesOpened\Issue', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookIssuesOpened\Issue::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookIssuesOpened\Issue(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesOpened\Issue', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesPinned⚡️Issue(array $payload): \ApiClients\Client\Github\Schema\WebhookIssuesPinned\Issue + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['active_lock_reason'] ?? null; + + if ($value === null) { + $missingFields[] = 'active_lock_reason'; + goto after_active_lock_reason; + } + + $properties['active_lock_reason'] = $value; + + after_active_lock_reason: + + $value = $payload['assignee'] ?? null; + + if ($value === null) { + $missingFields[] = 'assignee'; + goto after_assignee; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'assignee'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['assignee'] = $value; + + after_assignee: + + $value = $payload['assignees'] ?? null; + + if ($value === null) { + $missingFields[] = 'assignees'; + goto after_assignees; + } + + $properties['assignees'] = $value; + + after_assignees: + + $value = $payload['author_association'] ?? null; + + if ($value === null) { + $missingFields[] = 'author_association'; + goto after_author_association; + } + + $properties['author_association'] = $value; + + after_author_association: + + $value = $payload['body'] ?? null; + + if ($value === null) { + $missingFields[] = 'body'; + goto after_body; + } + + $properties['body'] = $value; + + after_body: + + $value = $payload['closed_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'closed_at'; + goto after_closed_at; + } + + $properties['closed_at'] = $value; + + after_closed_at: + + $value = $payload['comments'] ?? null; + + if ($value === null) { + $missingFields[] = 'comments'; + goto after_comments; + } + + $properties['comments'] = $value; + + after_comments: + + $value = $payload['comments_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'comments_url'; + goto after_comments_url; + } + + $properties['comments_url'] = $value; + + after_comments_url: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'created_at'; + goto after_created_at; + } + + $properties['created_at'] = $value; + + after_created_at: + + $value = $payload['draft'] ?? null; + + if ($value === null) { + $missingFields[] = 'draft'; + goto after_draft; + } + + $properties['draft'] = $value; + + after_draft: + + $value = $payload['events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'events_url'; + goto after_events_url; + } + + $properties['events_url'] = $value; + + after_events_url: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } + + $properties['html_url'] = $value; + + after_html_url: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['labels'] ?? null; + + if ($value === null) { + $missingFields[] = 'labels'; + goto after_labels; + } + + $properties['labels'] = $value; + + after_labels: + + $value = $payload['labels_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'labels_url'; + goto after_labels_url; + } + + $properties['labels_url'] = $value; + + after_labels_url: + + $value = $payload['locked'] ?? null; + + if ($value === null) { + $missingFields[] = 'locked'; + goto after_locked; + } + + $properties['locked'] = $value; + + after_locked: + + $value = $payload['milestone'] ?? null; + + if ($value === null) { + $missingFields[] = 'milestone'; + goto after_milestone; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'milestone'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesDeleted⚡️Issue⚡️Milestone($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['milestone'] = $value; + + after_milestone: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['number'] ?? null; + + if ($value === null) { + $missingFields[] = 'number'; + goto after_number; + } + + $properties['number'] = $value; + + after_number: + + $value = $payload['performed_via_github_app'] ?? null; + + if ($value === null) { + $missingFields[] = 'performed_via_github_app'; + goto after_performed_via_github_app; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'performed_via_github_app'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesOpened⚡️Changes⚡️OldIssue⚡️PerformedViaGithubApp($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['performed_via_github_app'] = $value; + + after_performed_via_github_app: + + $value = $payload['pull_request'] ?? null; + + if ($value === null) { + $missingFields[] = 'pull_request'; + goto after_pull_request; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'pull_request'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesAssigned⚡️Issue⚡️PullRequest($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['pull_request'] = $value; + + after_pull_request: + + $value = $payload['reactions'] ?? null; + + if ($value === null) { + $missingFields[] = 'reactions'; + goto after_reactions; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'reactions'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️Reactions($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['reactions'] = $value; + + after_reactions: + + $value = $payload['repository_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'repository_url'; + goto after_repository_url; + } + + $properties['repository_url'] = $value; + + after_repository_url: + + $value = $payload['state'] ?? null; + + if ($value === null) { + $missingFields[] = 'state'; + goto after_state; + } + + $properties['state'] = $value; + + after_state: + + $value = $payload['state_reason'] ?? null; + + if ($value === null) { + $missingFields[] = 'state_reason'; + goto after_state_reason; + } + + $properties['state_reason'] = $value; + + after_state_reason: + + $value = $payload['timeline_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'timeline_url'; + goto after_timeline_url; + } + + $properties['timeline_url'] = $value; + + after_timeline_url: + + $value = $payload['title'] ?? null; + + if ($value === null) { + $missingFields[] = 'title'; + goto after_title; + } + + $properties['title'] = $value; + + after_title: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'updated_at'; + goto after_updated_at; + } + + $properties['updated_at'] = $value; + + after_updated_at: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['user'] ?? null; + + if ($value === null) { + $missingFields[] = 'user'; + goto after_user; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'user'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['user'] = $value; + + after_user: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesPinned\Issue', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookIssuesPinned\Issue::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookIssuesPinned\Issue(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesPinned\Issue', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesTransferred⚡️Changes(array $payload): \ApiClients\Client\Github\Schema\WebhookIssuesTransferred\Changes + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['new_issue'] ?? null; + + if ($value === null) { + $missingFields[] = 'new_issue'; + goto after_new_issue; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'new_issue'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesPinned⚡️Issue($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['new_issue'] = $value; + + after_new_issue: + + $value = $payload['new_repository'] ?? null; + + if ($value === null) { + $missingFields[] = 'new_repository'; + goto after_new_repository; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'new_repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionTransferred⚡️Changes⚡️NewRepository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['new_repository'] = $value; + + after_new_repository: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesTransferred\Changes', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookIssuesTransferred\Changes::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookIssuesTransferred\Changes(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesTransferred\Changes', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Comment⚡️User(array $payload): \ApiClients\Client\Github\Schema\WebhookIssueCommentDeleted\Comment\User + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['avatar_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'avatar_url'; + goto after_avatar_url; + } + + $properties['avatar_url'] = $value; + + after_avatar_url: + + $value = $payload['deleted'] ?? null; + + if ($value === null) { + $missingFields[] = 'deleted'; + goto after_deleted; + } + + $properties['deleted'] = $value; + + after_deleted: + + $value = $payload['email'] ?? null; + + if ($value === null) { + $missingFields[] = 'email'; + goto after_email; + } + + $properties['email'] = $value; + + after_email: + + $value = $payload['events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'events_url'; + goto after_events_url; + } + + $properties['events_url'] = $value; + + after_events_url: + + $value = $payload['followers_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'followers_url'; + goto after_followers_url; + } + + $properties['followers_url'] = $value; + + after_followers_url: + + $value = $payload['following_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'following_url'; + goto after_following_url; + } + + $properties['following_url'] = $value; + + after_following_url: + + $value = $payload['gists_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'gists_url'; + goto after_gists_url; + } + + $properties['gists_url'] = $value; + + after_gists_url: + + $value = $payload['gravatar_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'gravatar_id'; + goto after_gravatar_id; + } + + $properties['gravatar_id'] = $value; + + after_gravatar_id: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } + + $properties['html_url'] = $value; + + after_html_url: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['login'] ?? null; + + if ($value === null) { + $missingFields[] = 'login'; + goto after_login; + } + + $properties['login'] = $value; + + after_login: + + $value = $payload['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['organizations_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'organizations_url'; + goto after_organizations_url; + } + + $properties['organizations_url'] = $value; + + after_organizations_url: + + $value = $payload['received_events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'received_events_url'; + goto after_received_events_url; + } + + $properties['received_events_url'] = $value; + + after_received_events_url: + + $value = $payload['repos_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'repos_url'; + goto after_repos_url; + } + + $properties['repos_url'] = $value; + + after_repos_url: + + $value = $payload['site_admin'] ?? null; + + if ($value === null) { + $missingFields[] = 'site_admin'; + goto after_site_admin; + } + + $properties['site_admin'] = $value; + + after_site_admin: + + $value = $payload['starred_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'starred_url'; + goto after_starred_url; + } + + $properties['starred_url'] = $value; + + after_starred_url: + + $value = $payload['subscriptions_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscriptions_url'; + goto after_subscriptions_url; + } + + $properties['subscriptions_url'] = $value; + + after_subscriptions_url: + + $value = $payload['type'] ?? null; + + if ($value === null) { + $missingFields[] = 'type'; + goto after_type; + } + + $properties['type'] = $value; + + after_type: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssueCommentDeleted\Comment\User', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookIssueCommentDeleted\Comment\User::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookIssueCommentDeleted\Comment\User(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssueCommentDeleted\Comment\User', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesAssigned⚡️Issue⚡️Milestone(array $payload): \ApiClients\Client\Github\Schema\WebhookIssuesAssigned\Issue\Milestone + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['closed_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'closed_at'; + goto after_closed_at; + } + + $properties['closed_at'] = $value; + + after_closed_at: + + $value = $payload['closed_issues'] ?? null; + + if ($value === null) { + $missingFields[] = 'closed_issues'; + goto after_closed_issues; + } + + $properties['closed_issues'] = $value; + + after_closed_issues: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'created_at'; + goto after_created_at; + } + + $properties['created_at'] = $value; + + after_created_at: + + $value = $payload['creator'] ?? null; + + if ($value === null) { + $missingFields[] = 'creator'; + goto after_creator; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'creator'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Comment⚡️User($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['creator'] = $value; + + after_creator: + + $value = $payload['description'] ?? null; + + if ($value === null) { + $missingFields[] = 'description'; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['due_on'] ?? null; + + if ($value === null) { + $missingFields[] = 'due_on'; + goto after_due_on; + } + + $properties['due_on'] = $value; + + after_due_on: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } + + $properties['html_url'] = $value; + + after_html_url: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['labels_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'labels_url'; + goto after_labels_url; + } + + $properties['labels_url'] = $value; + + after_labels_url: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['number'] ?? null; + + if ($value === null) { + $missingFields[] = 'number'; + goto after_number; + } + + $properties['number'] = $value; + + after_number: + + $value = $payload['open_issues'] ?? null; + + if ($value === null) { + $missingFields[] = 'open_issues'; + goto after_open_issues; + } + + $properties['open_issues'] = $value; + + after_open_issues: + + $value = $payload['state'] ?? null; + + if ($value === null) { + $missingFields[] = 'state'; + goto after_state; + } + + $properties['state'] = $value; + + after_state: + + $value = $payload['title'] ?? null; + + if ($value === null) { + $missingFields[] = 'title'; + goto after_title; + } + + $properties['title'] = $value; + + after_title: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'updated_at'; + goto after_updated_at; + } + + $properties['updated_at'] = $value; + + after_updated_at: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesAssigned\Issue\Milestone', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookIssuesAssigned\Issue\Milestone::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookIssuesAssigned\Issue\Milestone(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesAssigned\Issue\Milestone', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesAssigned⚡️Issue⚡️PerformedViaGithubApp(array $payload): \ApiClients\Client\Github\Schema\WebhookIssuesAssigned\Issue\PerformedViaGithubApp + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'created_at'; + goto after_created_at; + } + + $properties['created_at'] = $value; + + after_created_at: + + $value = $payload['description'] ?? null; + + if ($value === null) { + $missingFields[] = 'description'; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['events'] ?? null; + + if ($value === null) { + $missingFields[] = 'events'; + goto after_events; + } + + $properties['events'] = $value; + + after_events: + + $value = $payload['external_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'external_url'; + goto after_external_url; + } + + $properties['external_url'] = $value; + + after_external_url: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } + + $properties['html_url'] = $value; + + after_html_url: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['owner'] ?? null; + + if ($value === null) { + $missingFields[] = 'owner'; + goto after_owner; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'owner'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['owner'] = $value; + + after_owner: + + $value = $payload['permissions'] ?? null; + + if ($value === null) { + $missingFields[] = 'permissions'; + goto after_permissions; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'permissions'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesAssigned⚡️Issue⚡️PerformedViaGithubApp⚡️Permissions($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['permissions'] = $value; + + after_permissions: + + $value = $payload['slug'] ?? null; + + if ($value === null) { + $missingFields[] = 'slug'; + goto after_slug; + } + + $properties['slug'] = $value; + + after_slug: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'updated_at'; + goto after_updated_at; + } + + $properties['updated_at'] = $value; + + after_updated_at: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesAssigned\Issue\PerformedViaGithubApp', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookIssuesAssigned\Issue\PerformedViaGithubApp::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookIssuesAssigned\Issue\PerformedViaGithubApp(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesAssigned\Issue\PerformedViaGithubApp', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesAssigned⚡️Issue⚡️PullRequest(array $payload): \ApiClients\Client\Github\Schema\WebhookIssuesAssigned\Issue\PullRequest + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['diff_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'diff_url'; + goto after_diff_url; + } + + $properties['diff_url'] = $value; + + after_diff_url: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } + + $properties['html_url'] = $value; + + after_html_url: + + $value = $payload['merged_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'merged_at'; + goto after_merged_at; + } + + $properties['merged_at'] = $value; + + after_merged_at: + + $value = $payload['patch_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'patch_url'; + goto after_patch_url; + } + + $properties['patch_url'] = $value; + + after_patch_url: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesAssigned\Issue\PullRequest', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookIssuesAssigned\Issue\PullRequest::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookIssuesAssigned\Issue\PullRequest(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesAssigned\Issue\PullRequest', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️Reactions(array $payload): \ApiClients\Client\Github\Schema\Discussion\Reactions + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['__p_l_u_s_e_s_1'] ?? null; + + if ($value === null) { + $missingFields[] = '__p_l_u_s_e_s_1'; + goto after__PLUSES_1; + } + + $properties['_PLUSES_1'] = $value; + + after__PLUSES_1: + + $value = $payload['__m_i_n_u_s_1'] ?? null; + + if ($value === null) { + $missingFields[] = '__m_i_n_u_s_1'; + goto after__MINUS_1; + } + + $properties['_MINUS_1'] = $value; + + after__MINUS_1: + + $value = $payload['confused'] ?? null; + + if ($value === null) { + $missingFields[] = 'confused'; + goto after_confused; + } + + $properties['confused'] = $value; + + after_confused: + + $value = $payload['eyes'] ?? null; + + if ($value === null) { + $missingFields[] = 'eyes'; + goto after_eyes; + } + + $properties['eyes'] = $value; + + after_eyes: + + $value = $payload['heart'] ?? null; + + if ($value === null) { + $missingFields[] = 'heart'; + goto after_heart; + } + + $properties['heart'] = $value; + + after_heart: + + $value = $payload['hooray'] ?? null; + + if ($value === null) { + $missingFields[] = 'hooray'; + goto after_hooray; + } + + $properties['hooray'] = $value; + + after_hooray: + + $value = $payload['laugh'] ?? null; + + if ($value === null) { + $missingFields[] = 'laugh'; + goto after_laugh; + } + + $properties['laugh'] = $value; + + after_laugh: + + $value = $payload['rocket'] ?? null; + + if ($value === null) { + $missingFields[] = 'rocket'; + goto after_rocket; + } + + $properties['rocket'] = $value; + + after_rocket: + + $value = $payload['total_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'total_count'; + goto after_total_count; + } + + $properties['total_count'] = $value; + + after_total_count: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Discussion\Reactions', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Discussion\Reactions::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\Discussion\Reactions(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Discussion\Reactions', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️Permissions(array $payload): \ApiClients\Client\Github\Schema\Repository\Permissions + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['admin'] ?? null; + + if ($value === null) { + $missingFields[] = 'admin'; + goto after_admin; + } + + $properties['admin'] = $value; + + after_admin: + + $value = $payload['pull'] ?? null; + + if ($value === null) { + $missingFields[] = 'pull'; + goto after_pull; + } + + $properties['pull'] = $value; + + after_pull: + + $value = $payload['triage'] ?? null; + + if ($value === null) { + $missingFields[] = 'triage'; + goto after_triage; + } + + $properties['triage'] = $value; + + after_triage: + + $value = $payload['push'] ?? null; + + if ($value === null) { + $missingFields[] = 'push'; + goto after_push; + } + + $properties['push'] = $value; + + after_push: + + $value = $payload['maintain'] ?? null; + + if ($value === null) { + $missingFields[] = 'maintain'; + goto after_maintain; + } + + $properties['maintain'] = $value; + + after_maintain: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\Permissions', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\Permissions::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\Repository\Permissions(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\Permissions', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository(array $payload): \ApiClients\Client\Github\Schema\Repository\TemplateRepository + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['full_name'] ?? null; + + if ($value === null) { + $missingFields[] = 'full_name'; + goto after_full_name; + } + + $properties['full_name'] = $value; + + after_full_name: + + $value = $payload['owner'] ?? null; + + if ($value === null) { + $missingFields[] = 'owner'; + goto after_owner; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'owner'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['owner'] = $value; + + after_owner: + + $value = $payload['private'] ?? null; + + if ($value === null) { + $missingFields[] = 'private'; + goto after_private; + } + + $properties['private'] = $value; + + after_private: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } + + $properties['html_url'] = $value; + + after_html_url: + + $value = $payload['description'] ?? null; + + if ($value === null) { + $missingFields[] = 'description'; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['fork'] ?? null; + + if ($value === null) { + $missingFields[] = 'fork'; + goto after_fork; + } + + $properties['fork'] = $value; + + after_fork: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['archive_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'archive_url'; + goto after_archive_url; + } + + $properties['archive_url'] = $value; + + after_archive_url: + + $value = $payload['assignees_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'assignees_url'; + goto after_assignees_url; + } + + $properties['assignees_url'] = $value; + + after_assignees_url: + + $value = $payload['blobs_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'blobs_url'; + goto after_blobs_url; + } + + $properties['blobs_url'] = $value; + + after_blobs_url: + + $value = $payload['branches_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'branches_url'; + goto after_branches_url; + } + + $properties['branches_url'] = $value; + + after_branches_url: + + $value = $payload['collaborators_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'collaborators_url'; + goto after_collaborators_url; + } + + $properties['collaborators_url'] = $value; + + after_collaborators_url: + + $value = $payload['comments_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'comments_url'; + goto after_comments_url; + } + + $properties['comments_url'] = $value; + + after_comments_url: + + $value = $payload['commits_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'commits_url'; + goto after_commits_url; + } + + $properties['commits_url'] = $value; + + after_commits_url: + + $value = $payload['compare_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'compare_url'; + goto after_compare_url; + } + + $properties['compare_url'] = $value; + + after_compare_url: + + $value = $payload['contents_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'contents_url'; + goto after_contents_url; + } + + $properties['contents_url'] = $value; + + after_contents_url: + + $value = $payload['contributors_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'contributors_url'; + goto after_contributors_url; + } + + $properties['contributors_url'] = $value; + + after_contributors_url: + + $value = $payload['deployments_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'deployments_url'; + goto after_deployments_url; + } + + $properties['deployments_url'] = $value; + + after_deployments_url: + + $value = $payload['downloads_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'downloads_url'; + goto after_downloads_url; + } + + $properties['downloads_url'] = $value; + + after_downloads_url: + + $value = $payload['events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'events_url'; + goto after_events_url; + } + + $properties['events_url'] = $value; + + after_events_url: + + $value = $payload['forks_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'forks_url'; + goto after_forks_url; + } + + $properties['forks_url'] = $value; + + after_forks_url: + + $value = $payload['git_commits_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_commits_url'; + goto after_git_commits_url; + } + + $properties['git_commits_url'] = $value; + + after_git_commits_url: + + $value = $payload['git_refs_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_refs_url'; + goto after_git_refs_url; + } + + $properties['git_refs_url'] = $value; + + after_git_refs_url: + + $value = $payload['git_tags_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_tags_url'; + goto after_git_tags_url; + } + + $properties['git_tags_url'] = $value; + + after_git_tags_url: + + $value = $payload['git_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_url'; + goto after_git_url; + } + + $properties['git_url'] = $value; + + after_git_url: + + $value = $payload['issue_comment_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issue_comment_url'; + goto after_issue_comment_url; + } + + $properties['issue_comment_url'] = $value; + + after_issue_comment_url: + + $value = $payload['issue_events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issue_events_url'; + goto after_issue_events_url; + } + + $properties['issue_events_url'] = $value; + + after_issue_events_url: + + $value = $payload['issues_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issues_url'; + goto after_issues_url; + } + + $properties['issues_url'] = $value; + + after_issues_url: + + $value = $payload['keys_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'keys_url'; + goto after_keys_url; + } + + $properties['keys_url'] = $value; + + after_keys_url: + + $value = $payload['labels_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'labels_url'; + goto after_labels_url; + } + + $properties['labels_url'] = $value; + + after_labels_url: + + $value = $payload['languages_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'languages_url'; + goto after_languages_url; + } + + $properties['languages_url'] = $value; + + after_languages_url: + + $value = $payload['merges_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'merges_url'; + goto after_merges_url; + } + + $properties['merges_url'] = $value; + + after_merges_url: + + $value = $payload['milestones_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'milestones_url'; + goto after_milestones_url; + } + + $properties['milestones_url'] = $value; + + after_milestones_url: + + $value = $payload['notifications_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'notifications_url'; + goto after_notifications_url; + } + + $properties['notifications_url'] = $value; + + after_notifications_url: + + $value = $payload['pulls_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'pulls_url'; + goto after_pulls_url; + } + + $properties['pulls_url'] = $value; + + after_pulls_url: + + $value = $payload['releases_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'releases_url'; + goto after_releases_url; + } + + $properties['releases_url'] = $value; + + after_releases_url: + + $value = $payload['ssh_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'ssh_url'; + goto after_ssh_url; + } + + $properties['ssh_url'] = $value; + + after_ssh_url: + + $value = $payload['stargazers_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'stargazers_url'; + goto after_stargazers_url; + } + + $properties['stargazers_url'] = $value; + + after_stargazers_url: + + $value = $payload['statuses_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'statuses_url'; + goto after_statuses_url; + } + + $properties['statuses_url'] = $value; + + after_statuses_url: + + $value = $payload['subscribers_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscribers_url'; + goto after_subscribers_url; + } + + $properties['subscribers_url'] = $value; + + after_subscribers_url: + + $value = $payload['subscription_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscription_url'; + goto after_subscription_url; + } + + $properties['subscription_url'] = $value; + + after_subscription_url: + + $value = $payload['tags_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'tags_url'; + goto after_tags_url; + } + + $properties['tags_url'] = $value; + + after_tags_url: + + $value = $payload['teams_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'teams_url'; + goto after_teams_url; + } + + $properties['teams_url'] = $value; + + after_teams_url: + + $value = $payload['trees_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'trees_url'; + goto after_trees_url; + } + + $properties['trees_url'] = $value; + + after_trees_url: + + $value = $payload['clone_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'clone_url'; + goto after_clone_url; + } + + $properties['clone_url'] = $value; + + after_clone_url: + + $value = $payload['mirror_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'mirror_url'; + goto after_mirror_url; + } + + $properties['mirror_url'] = $value; + + after_mirror_url: + + $value = $payload['hooks_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'hooks_url'; + goto after_hooks_url; + } + + $properties['hooks_url'] = $value; + + after_hooks_url: + + $value = $payload['svn_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'svn_url'; + goto after_svn_url; + } + + $properties['svn_url'] = $value; + + after_svn_url: + + $value = $payload['homepage'] ?? null; + + if ($value === null) { + $missingFields[] = 'homepage'; + goto after_homepage; + } + + $properties['homepage'] = $value; + + after_homepage: + + $value = $payload['language'] ?? null; + + if ($value === null) { + $missingFields[] = 'language'; + goto after_language; + } + + $properties['language'] = $value; + + after_language: + + $value = $payload['forks_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'forks_count'; + goto after_forks_count; + } + + $properties['forks_count'] = $value; + + after_forks_count: + + $value = $payload['stargazers_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'stargazers_count'; + goto after_stargazers_count; + } + + $properties['stargazers_count'] = $value; + + after_stargazers_count: + + $value = $payload['watchers_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'watchers_count'; + goto after_watchers_count; + } + + $properties['watchers_count'] = $value; + + after_watchers_count: + + $value = $payload['size'] ?? null; + + if ($value === null) { + $missingFields[] = 'size'; + goto after_size; + } + + $properties['size'] = $value; + + after_size: + + $value = $payload['default_branch'] ?? null; + + if ($value === null) { + $missingFields[] = 'default_branch'; + goto after_default_branch; + } + + $properties['default_branch'] = $value; + + after_default_branch: + + $value = $payload['open_issues_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'open_issues_count'; + goto after_open_issues_count; + } + + $properties['open_issues_count'] = $value; + + after_open_issues_count: + + $value = $payload['is_template'] ?? null; + + if ($value === null) { + $missingFields[] = 'is_template'; + goto after_is_template; + } + + $properties['is_template'] = $value; + + after_is_template: + + $value = $payload['topics'] ?? null; + + if ($value === null) { + $missingFields[] = 'topics'; + goto after_topics; + } + + $properties['topics'] = $value; + + after_topics: + + $value = $payload['has_issues'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_issues'; + goto after_has_issues; + } + + $properties['has_issues'] = $value; + + after_has_issues: + + $value = $payload['has_projects'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_projects'; + goto after_has_projects; + } + + $properties['has_projects'] = $value; + + after_has_projects: + + $value = $payload['has_wiki'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_wiki'; + goto after_has_wiki; + } + + $properties['has_wiki'] = $value; + + after_has_wiki: + + $value = $payload['has_pages'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_pages'; + goto after_has_pages; + } + + $properties['has_pages'] = $value; + + after_has_pages: + + $value = $payload['has_downloads'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_downloads'; + goto after_has_downloads; + } + + $properties['has_downloads'] = $value; + + after_has_downloads: + + $value = $payload['archived'] ?? null; + + if ($value === null) { + $missingFields[] = 'archived'; + goto after_archived; + } + + $properties['archived'] = $value; + + after_archived: + + $value = $payload['disabled'] ?? null; + + if ($value === null) { + $missingFields[] = 'disabled'; + goto after_disabled; + } + + $properties['disabled'] = $value; + + after_disabled: + + $value = $payload['visibility'] ?? null; + + if ($value === null) { + $missingFields[] = 'visibility'; + goto after_visibility; + } + + $properties['visibility'] = $value; + + after_visibility: + + $value = $payload['pushed_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'pushed_at'; + goto after_pushed_at; + } + + $properties['pushed_at'] = $value; + + after_pushed_at: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'created_at'; + goto after_created_at; + } + + $properties['created_at'] = $value; + + after_created_at: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'updated_at'; + goto after_updated_at; + } + + $properties['updated_at'] = $value; + + after_updated_at: + + $value = $payload['permissions'] ?? null; + + if ($value === null) { + $missingFields[] = 'permissions'; + goto after_permissions; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'permissions'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Permissions($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['permissions'] = $value; + + after_permissions: + + $value = $payload['allow_rebase_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_rebase_merge'; + goto after_allow_rebase_merge; + } + + $properties['allow_rebase_merge'] = $value; + + after_allow_rebase_merge: + + $value = $payload['temp_clone_token'] ?? null; + + if ($value === null) { + $missingFields[] = 'temp_clone_token'; + goto after_temp_clone_token; + } + + $properties['temp_clone_token'] = $value; + + after_temp_clone_token: + + $value = $payload['allow_squash_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_squash_merge'; + goto after_allow_squash_merge; + } + + $properties['allow_squash_merge'] = $value; + + after_allow_squash_merge: + + $value = $payload['allow_auto_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_auto_merge'; + goto after_allow_auto_merge; + } + + $properties['allow_auto_merge'] = $value; + + after_allow_auto_merge: + + $value = $payload['delete_branch_on_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'delete_branch_on_merge'; + goto after_delete_branch_on_merge; + } + + $properties['delete_branch_on_merge'] = $value; + + after_delete_branch_on_merge: + + $value = $payload['allow_update_branch'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_update_branch'; + goto after_allow_update_branch; + } + + $properties['allow_update_branch'] = $value; + + after_allow_update_branch: + + $value = $payload['use_squash_pr_title_as_default'] ?? null; + + if ($value === null) { + $missingFields[] = 'use_squash_pr_title_as_default'; + goto after_use_squash_pr_title_as_default; + } + + $properties['use_squash_pr_title_as_default'] = $value; + + after_use_squash_pr_title_as_default: + + $value = $payload['squash_merge_commit_title'] ?? null; + + if ($value === null) { + $missingFields[] = 'squash_merge_commit_title'; + goto after_squash_merge_commit_title; + } + + $properties['squash_merge_commit_title'] = $value; + + after_squash_merge_commit_title: + + $value = $payload['squash_merge_commit_message'] ?? null; + + if ($value === null) { + $missingFields[] = 'squash_merge_commit_message'; + goto after_squash_merge_commit_message; + } + + $properties['squash_merge_commit_message'] = $value; + + after_squash_merge_commit_message: + + $value = $payload['merge_commit_title'] ?? null; + + if ($value === null) { + $missingFields[] = 'merge_commit_title'; + goto after_merge_commit_title; + } + + $properties['merge_commit_title'] = $value; + + after_merge_commit_title: + + $value = $payload['merge_commit_message'] ?? null; + + if ($value === null) { + $missingFields[] = 'merge_commit_message'; + goto after_merge_commit_message; + } + + $properties['merge_commit_message'] = $value; + + after_merge_commit_message: + + $value = $payload['allow_merge_commit'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_merge_commit'; + goto after_allow_merge_commit; + } + + $properties['allow_merge_commit'] = $value; + + after_allow_merge_commit: + + $value = $payload['subscribers_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscribers_count'; + goto after_subscribers_count; + } + + $properties['subscribers_count'] = $value; + + after_subscribers_count: + + $value = $payload['network_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'network_count'; + goto after_network_count; + } + + $properties['network_count'] = $value; + + after_network_count: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\TemplateRepository::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\Repository\TemplateRepository(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesDeleted⚡️Issue⚡️Milestone(array $payload): \ApiClients\Client\Github\Schema\WebhookIssuesDeleted\Issue\Milestone + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['closed_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'closed_at'; + goto after_closed_at; + } + + $properties['closed_at'] = $value; + + after_closed_at: + + $value = $payload['closed_issues'] ?? null; + + if ($value === null) { + $missingFields[] = 'closed_issues'; + goto after_closed_issues; + } + + $properties['closed_issues'] = $value; + + after_closed_issues: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'created_at'; + goto after_created_at; + } + + $properties['created_at'] = $value; + + after_created_at: + + $value = $payload['creator'] ?? null; + + if ($value === null) { + $missingFields[] = 'creator'; + goto after_creator; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'creator'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['creator'] = $value; + + after_creator: + + $value = $payload['description'] ?? null; + + if ($value === null) { + $missingFields[] = 'description'; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['due_on'] ?? null; + + if ($value === null) { + $missingFields[] = 'due_on'; + goto after_due_on; + } + + $properties['due_on'] = $value; + + after_due_on: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } + + $properties['html_url'] = $value; + + after_html_url: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['labels_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'labels_url'; + goto after_labels_url; + } + + $properties['labels_url'] = $value; + + after_labels_url: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['number'] ?? null; + + if ($value === null) { + $missingFields[] = 'number'; + goto after_number; + } + + $properties['number'] = $value; + + after_number: + + $value = $payload['open_issues'] ?? null; + + if ($value === null) { + $missingFields[] = 'open_issues'; + goto after_open_issues; + } + + $properties['open_issues'] = $value; + + after_open_issues: + + $value = $payload['state'] ?? null; + + if ($value === null) { + $missingFields[] = 'state'; + goto after_state; + } + + $properties['state'] = $value; + + after_state: + + $value = $payload['title'] ?? null; + + if ($value === null) { + $missingFields[] = 'title'; + goto after_title; + } + + $properties['title'] = $value; + + after_title: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'updated_at'; + goto after_updated_at; + } + + $properties['updated_at'] = $value; + + after_updated_at: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesDeleted\Issue\Milestone', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookIssuesDeleted\Issue\Milestone::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookIssuesDeleted\Issue\Milestone(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesDeleted\Issue\Milestone', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesDeleted⚡️Issue⚡️PerformedViaGithubApp(array $payload): \ApiClients\Client\Github\Schema\WebhookIssuesDeleted\Issue\PerformedViaGithubApp + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'created_at'; + goto after_created_at; + } + + $properties['created_at'] = $value; + + after_created_at: + + $value = $payload['description'] ?? null; + + if ($value === null) { + $missingFields[] = 'description'; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['events'] ?? null; + + if ($value === null) { + $missingFields[] = 'events'; + goto after_events; + } + + $properties['events'] = $value; + + after_events: + + $value = $payload['external_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'external_url'; + goto after_external_url; + } + + $properties['external_url'] = $value; + + after_external_url: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } + + $properties['html_url'] = $value; + + after_html_url: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['owner'] ?? null; + + if ($value === null) { + $missingFields[] = 'owner'; + goto after_owner; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'owner'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['owner'] = $value; + + after_owner: + + $value = $payload['permissions'] ?? null; + + if ($value === null) { + $missingFields[] = 'permissions'; + goto after_permissions; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'permissions'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDeploymentCreated⚡️Deployment⚡️PerformedViaGithubApp⚡️Permissions($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['permissions'] = $value; + + after_permissions: + + $value = $payload['slug'] ?? null; + + if ($value === null) { + $missingFields[] = 'slug'; + goto after_slug; + } + + $properties['slug'] = $value; + + after_slug: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'updated_at'; + goto after_updated_at; + } + + $properties['updated_at'] = $value; + + after_updated_at: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesDeleted\Issue\PerformedViaGithubApp', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookIssuesDeleted\Issue\PerformedViaGithubApp::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookIssuesDeleted\Issue\PerformedViaGithubApp(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesDeleted\Issue\PerformedViaGithubApp', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentEdited⚡️Changes⚡️Body(array $payload): \ApiClients\Client\Github\Schema\WebhookIssueCommentEdited\Changes\Body + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['from'] ?? null; + + if ($value === null) { + $missingFields[] = 'from'; + goto after_from; + } + + $properties['from'] = $value; + + after_from: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssueCommentEdited\Changes\Body', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookIssueCommentEdited\Changes\Body::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookIssueCommentEdited\Changes\Body(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssueCommentEdited\Changes\Body', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesEdited⚡️Changes⚡️Title(array $payload): \ApiClients\Client\Github\Schema\WebhookIssuesEdited\Changes\Title + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['from'] ?? null; + + if ($value === null) { + $missingFields[] = 'from'; + goto after_from; + } + + $properties['from'] = $value; + + after_from: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesEdited\Changes\Title', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookIssuesEdited\Changes\Title::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookIssuesEdited\Changes\Title(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesEdited\Changes\Title', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesEdited⚡️Issue⚡️PerformedViaGithubApp(array $payload): \ApiClients\Client\Github\Schema\WebhookIssuesEdited\Issue\PerformedViaGithubApp + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'created_at'; + goto after_created_at; + } + + $properties['created_at'] = $value; + + after_created_at: + + $value = $payload['description'] ?? null; + + if ($value === null) { + $missingFields[] = 'description'; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['events'] ?? null; + + if ($value === null) { + $missingFields[] = 'events'; + goto after_events; + } + + $properties['events'] = $value; + + after_events: + + $value = $payload['external_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'external_url'; + goto after_external_url; + } + + $properties['external_url'] = $value; + + after_external_url: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } + + $properties['html_url'] = $value; + + after_html_url: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['owner'] ?? null; + + if ($value === null) { + $missingFields[] = 'owner'; + goto after_owner; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'owner'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['owner'] = $value; + + after_owner: + + $value = $payload['permissions'] ?? null; + + if ($value === null) { + $missingFields[] = 'permissions'; + goto after_permissions; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'permissions'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesAssigned⚡️Issue⚡️PerformedViaGithubApp⚡️Permissions($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['permissions'] = $value; + + after_permissions: + + $value = $payload['slug'] ?? null; + + if ($value === null) { + $missingFields[] = 'slug'; + goto after_slug; + } + + $properties['slug'] = $value; + + after_slug: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'updated_at'; + goto after_updated_at; + } + + $properties['updated_at'] = $value; + + after_updated_at: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesEdited\Issue\PerformedViaGithubApp', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookIssuesEdited\Issue\PerformedViaGithubApp::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookIssuesEdited\Issue\PerformedViaGithubApp(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesEdited\Issue\PerformedViaGithubApp', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesLabeled⚡️Issue⚡️PerformedViaGithubApp(array $payload): \ApiClients\Client\Github\Schema\WebhookIssuesLabeled\Issue\PerformedViaGithubApp + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'created_at'; + goto after_created_at; + } + + $properties['created_at'] = $value; + + after_created_at: + + $value = $payload['description'] ?? null; + + if ($value === null) { + $missingFields[] = 'description'; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['events'] ?? null; + + if ($value === null) { + $missingFields[] = 'events'; + goto after_events; + } + + $properties['events'] = $value; + + after_events: + + $value = $payload['external_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'external_url'; + goto after_external_url; + } + + $properties['external_url'] = $value; + + after_external_url: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } + + $properties['html_url'] = $value; + + after_html_url: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['owner'] ?? null; + + if ($value === null) { + $missingFields[] = 'owner'; + goto after_owner; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'owner'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['owner'] = $value; + + after_owner: + + $value = $payload['permissions'] ?? null; + + if ($value === null) { + $missingFields[] = 'permissions'; + goto after_permissions; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'permissions'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesAssigned⚡️Issue⚡️PerformedViaGithubApp⚡️Permissions($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['permissions'] = $value; + + after_permissions: + + $value = $payload['slug'] ?? null; + + if ($value === null) { + $missingFields[] = 'slug'; + goto after_slug; + } + + $properties['slug'] = $value; + + after_slug: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'updated_at'; + goto after_updated_at; + } + + $properties['updated_at'] = $value; + + after_updated_at: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesLabeled\Issue\PerformedViaGithubApp', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookIssuesLabeled\Issue\PerformedViaGithubApp::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookIssuesLabeled\Issue\PerformedViaGithubApp(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesLabeled\Issue\PerformedViaGithubApp', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesOpened⚡️Changes⚡️OldIssue(array $payload): \ApiClients\Client\Github\Schema\WebhookIssuesOpened\Changes\OldIssue + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['active_lock_reason'] ?? null; + + if ($value === null) { + $missingFields[] = 'active_lock_reason'; + goto after_active_lock_reason; + } + + $properties['active_lock_reason'] = $value; + + after_active_lock_reason: + + $value = $payload['assignee'] ?? null; + + if ($value === null) { + $missingFields[] = 'assignee'; + goto after_assignee; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'assignee'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['assignee'] = $value; + + after_assignee: + + $value = $payload['assignees'] ?? null; + + if ($value === null) { + $missingFields[] = 'assignees'; + goto after_assignees; + } + + $properties['assignees'] = $value; + + after_assignees: + + $value = $payload['author_association'] ?? null; + + if ($value === null) { + $missingFields[] = 'author_association'; + goto after_author_association; + } + + $properties['author_association'] = $value; + + after_author_association: + + $value = $payload['body'] ?? null; + + if ($value === null) { + $missingFields[] = 'body'; + goto after_body; + } + + $properties['body'] = $value; + + after_body: + + $value = $payload['closed_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'closed_at'; + goto after_closed_at; + } + + $properties['closed_at'] = $value; + + after_closed_at: + + $value = $payload['comments'] ?? null; + + if ($value === null) { + $missingFields[] = 'comments'; + goto after_comments; + } + + $properties['comments'] = $value; + + after_comments: + + $value = $payload['comments_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'comments_url'; + goto after_comments_url; + } + + $properties['comments_url'] = $value; + + after_comments_url: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'created_at'; + goto after_created_at; + } + + $properties['created_at'] = $value; + + after_created_at: + + $value = $payload['draft'] ?? null; + + if ($value === null) { + $missingFields[] = 'draft'; + goto after_draft; + } + + $properties['draft'] = $value; + + after_draft: + + $value = $payload['events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'events_url'; + goto after_events_url; + } + + $properties['events_url'] = $value; + + after_events_url: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } + + $properties['html_url'] = $value; + + after_html_url: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['labels'] ?? null; + + if ($value === null) { + $missingFields[] = 'labels'; + goto after_labels; + } + + $properties['labels'] = $value; + + after_labels: + + $value = $payload['labels_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'labels_url'; + goto after_labels_url; + } + + $properties['labels_url'] = $value; + + after_labels_url: + + $value = $payload['locked'] ?? null; + + if ($value === null) { + $missingFields[] = 'locked'; + goto after_locked; + } + + $properties['locked'] = $value; + + after_locked: + + $value = $payload['milestone'] ?? null; + + if ($value === null) { + $missingFields[] = 'milestone'; + goto after_milestone; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'milestone'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesDeleted⚡️Issue⚡️Milestone($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['milestone'] = $value; + + after_milestone: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['number'] ?? null; + + if ($value === null) { + $missingFields[] = 'number'; + goto after_number; + } + + $properties['number'] = $value; + + after_number: + + $value = $payload['performed_via_github_app'] ?? null; + + if ($value === null) { + $missingFields[] = 'performed_via_github_app'; + goto after_performed_via_github_app; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'performed_via_github_app'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesOpened⚡️Changes⚡️OldIssue⚡️PerformedViaGithubApp($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['performed_via_github_app'] = $value; + + after_performed_via_github_app: + + $value = $payload['pull_request'] ?? null; + + if ($value === null) { + $missingFields[] = 'pull_request'; + goto after_pull_request; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'pull_request'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesAssigned⚡️Issue⚡️PullRequest($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['pull_request'] = $value; + + after_pull_request: + + $value = $payload['reactions'] ?? null; + + if ($value === null) { + $missingFields[] = 'reactions'; + goto after_reactions; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'reactions'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️Reactions($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['reactions'] = $value; + + after_reactions: + + $value = $payload['repository_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'repository_url'; + goto after_repository_url; + } + + $properties['repository_url'] = $value; + + after_repository_url: + + $value = $payload['state'] ?? null; + + if ($value === null) { + $missingFields[] = 'state'; + goto after_state; + } + + $properties['state'] = $value; + + after_state: + + $value = $payload['state_reason'] ?? null; + + if ($value === null) { + $missingFields[] = 'state_reason'; + goto after_state_reason; + } + + $properties['state_reason'] = $value; + + after_state_reason: + + $value = $payload['timeline_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'timeline_url'; + goto after_timeline_url; + } + + $properties['timeline_url'] = $value; + + after_timeline_url: + + $value = $payload['title'] ?? null; + + if ($value === null) { + $missingFields[] = 'title'; + goto after_title; + } + + $properties['title'] = $value; + + after_title: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'updated_at'; + goto after_updated_at; + } + + $properties['updated_at'] = $value; + + after_updated_at: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['user'] ?? null; + + if ($value === null) { + $missingFields[] = 'user'; + goto after_user; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'user'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['user'] = $value; + + after_user: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesOpened\Changes\OldIssue', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookIssuesOpened\Changes\OldIssue::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookIssuesOpened\Changes\OldIssue(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesOpened\Changes\OldIssue', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesOpened⚡️Changes⚡️OldRepository(array $payload): \ApiClients\Client\Github\Schema\WebhookIssuesOpened\Changes\OldRepository + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['allow_auto_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_auto_merge'; + goto after_allow_auto_merge; + } + + $properties['allow_auto_merge'] = $value; + + after_allow_auto_merge: + + $value = $payload['allow_forking'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_forking'; + goto after_allow_forking; + } + + $properties['allow_forking'] = $value; + + after_allow_forking: + + $value = $payload['allow_merge_commit'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_merge_commit'; + goto after_allow_merge_commit; + } + + $properties['allow_merge_commit'] = $value; + + after_allow_merge_commit: + + $value = $payload['allow_rebase_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_rebase_merge'; + goto after_allow_rebase_merge; + } + + $properties['allow_rebase_merge'] = $value; + + after_allow_rebase_merge: + + $value = $payload['allow_squash_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_squash_merge'; + goto after_allow_squash_merge; + } + + $properties['allow_squash_merge'] = $value; + + after_allow_squash_merge: + + $value = $payload['allow_update_branch'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_update_branch'; + goto after_allow_update_branch; + } + + $properties['allow_update_branch'] = $value; + + after_allow_update_branch: + + $value = $payload['archive_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'archive_url'; + goto after_archive_url; + } + + $properties['archive_url'] = $value; + + after_archive_url: + + $value = $payload['archived'] ?? null; + + if ($value === null) { + $missingFields[] = 'archived'; + goto after_archived; + } + + $properties['archived'] = $value; + + after_archived: + + $value = $payload['assignees_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'assignees_url'; + goto after_assignees_url; + } + + $properties['assignees_url'] = $value; + + after_assignees_url: + + $value = $payload['blobs_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'blobs_url'; + goto after_blobs_url; + } + + $properties['blobs_url'] = $value; + + after_blobs_url: + + $value = $payload['branches_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'branches_url'; + goto after_branches_url; + } + + $properties['branches_url'] = $value; + + after_branches_url: + + $value = $payload['clone_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'clone_url'; + goto after_clone_url; + } + + $properties['clone_url'] = $value; + + after_clone_url: + + $value = $payload['collaborators_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'collaborators_url'; + goto after_collaborators_url; + } + + $properties['collaborators_url'] = $value; + + after_collaborators_url: + + $value = $payload['comments_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'comments_url'; + goto after_comments_url; + } + + $properties['comments_url'] = $value; + + after_comments_url: + + $value = $payload['commits_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'commits_url'; + goto after_commits_url; + } + + $properties['commits_url'] = $value; + + after_commits_url: + + $value = $payload['compare_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'compare_url'; + goto after_compare_url; + } + + $properties['compare_url'] = $value; + + after_compare_url: + + $value = $payload['contents_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'contents_url'; + goto after_contents_url; + } + + $properties['contents_url'] = $value; + + after_contents_url: + + $value = $payload['contributors_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'contributors_url'; + goto after_contributors_url; + } + + $properties['contributors_url'] = $value; + + after_contributors_url: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $properties['created_at'] = null; + goto after_created_at; + } + + $properties['created_at'] = $value; + + after_created_at: + + $value = $payload['default_branch'] ?? null; + + if ($value === null) { + $missingFields[] = 'default_branch'; + goto after_default_branch; + } + + $properties['default_branch'] = $value; + + after_default_branch: + + $value = $payload['delete_branch_on_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'delete_branch_on_merge'; + goto after_delete_branch_on_merge; + } + + $properties['delete_branch_on_merge'] = $value; + + after_delete_branch_on_merge: + + $value = $payload['deployments_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'deployments_url'; + goto after_deployments_url; + } + + $properties['deployments_url'] = $value; + + after_deployments_url: + + $value = $payload['description'] ?? null; + + if ($value === null) { + $missingFields[] = 'description'; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['disabled'] ?? null; + + if ($value === null) { + $missingFields[] = 'disabled'; + goto after_disabled; + } + + $properties['disabled'] = $value; + + after_disabled: + + $value = $payload['downloads_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'downloads_url'; + goto after_downloads_url; + } + + $properties['downloads_url'] = $value; + + after_downloads_url: + + $value = $payload['events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'events_url'; + goto after_events_url; + } + + $properties['events_url'] = $value; + + after_events_url: + + $value = $payload['fork'] ?? null; + + if ($value === null) { + $missingFields[] = 'fork'; + goto after_fork; + } + + $properties['fork'] = $value; + + after_fork: + + $value = $payload['forks'] ?? null; + + if ($value === null) { + $missingFields[] = 'forks'; + goto after_forks; + } + + $properties['forks'] = $value; + + after_forks: + + $value = $payload['forks_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'forks_count'; + goto after_forks_count; + } + + $properties['forks_count'] = $value; + + after_forks_count: + + $value = $payload['forks_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'forks_url'; + goto after_forks_url; + } + + $properties['forks_url'] = $value; + + after_forks_url: + + $value = $payload['full_name'] ?? null; + + if ($value === null) { + $missingFields[] = 'full_name'; + goto after_full_name; + } + + $properties['full_name'] = $value; + + after_full_name: + + $value = $payload['git_commits_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_commits_url'; + goto after_git_commits_url; + } + + $properties['git_commits_url'] = $value; + + after_git_commits_url: + + $value = $payload['git_refs_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_refs_url'; + goto after_git_refs_url; + } + + $properties['git_refs_url'] = $value; + + after_git_refs_url: + + $value = $payload['git_tags_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_tags_url'; + goto after_git_tags_url; + } + + $properties['git_tags_url'] = $value; + + after_git_tags_url: + + $value = $payload['git_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_url'; + goto after_git_url; + } + + $properties['git_url'] = $value; + + after_git_url: + + $value = $payload['has_downloads'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_downloads'; + goto after_has_downloads; + } + + $properties['has_downloads'] = $value; + + after_has_downloads: + + $value = $payload['has_issues'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_issues'; + goto after_has_issues; + } + + $properties['has_issues'] = $value; + + after_has_issues: + + $value = $payload['has_pages'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_pages'; + goto after_has_pages; + } + + $properties['has_pages'] = $value; + + after_has_pages: + + $value = $payload['has_projects'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_projects'; + goto after_has_projects; + } + + $properties['has_projects'] = $value; + + after_has_projects: + + $value = $payload['has_wiki'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_wiki'; + goto after_has_wiki; + } + + $properties['has_wiki'] = $value; + + after_has_wiki: + + $value = $payload['homepage'] ?? null; + + if ($value === null) { + $missingFields[] = 'homepage'; + goto after_homepage; + } + + $properties['homepage'] = $value; + + after_homepage: + + $value = $payload['hooks_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'hooks_url'; + goto after_hooks_url; + } + + $properties['hooks_url'] = $value; + + after_hooks_url: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } + + $properties['html_url'] = $value; + + after_html_url: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['is_template'] ?? null; + + if ($value === null) { + $missingFields[] = 'is_template'; + goto after_is_template; + } + + $properties['is_template'] = $value; + + after_is_template: + + $value = $payload['issue_comment_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issue_comment_url'; + goto after_issue_comment_url; + } + + $properties['issue_comment_url'] = $value; + + after_issue_comment_url: + + $value = $payload['issue_events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issue_events_url'; + goto after_issue_events_url; + } + + $properties['issue_events_url'] = $value; + + after_issue_events_url: + + $value = $payload['issues_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issues_url'; + goto after_issues_url; + } + + $properties['issues_url'] = $value; + + after_issues_url: + + $value = $payload['keys_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'keys_url'; + goto after_keys_url; + } + + $properties['keys_url'] = $value; + + after_keys_url: + + $value = $payload['labels_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'labels_url'; + goto after_labels_url; + } + + $properties['labels_url'] = $value; + + after_labels_url: + + $value = $payload['language'] ?? null; + + if ($value === null) { + $missingFields[] = 'language'; + goto after_language; + } + + $properties['language'] = $value; + + after_language: + + $value = $payload['languages_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'languages_url'; + goto after_languages_url; + } + + $properties['languages_url'] = $value; + + after_languages_url: + + $value = $payload['license'] ?? null; + + if ($value === null) { + $missingFields[] = 'license'; + goto after_license; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'license'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionTransferred⚡️Changes⚡️NewRepository⚡️License($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['license'] = $value; + + after_license: + + $value = $payload['master_branch'] ?? null; + + if ($value === null) { + $missingFields[] = 'master_branch'; + goto after_master_branch; + } + + $properties['master_branch'] = $value; + + after_master_branch: + + $value = $payload['merges_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'merges_url'; + goto after_merges_url; + } + + $properties['merges_url'] = $value; + + after_merges_url: + + $value = $payload['milestones_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'milestones_url'; + goto after_milestones_url; + } + + $properties['milestones_url'] = $value; + + after_milestones_url: + + $value = $payload['mirror_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'mirror_url'; + goto after_mirror_url; + } + + $properties['mirror_url'] = $value; + + after_mirror_url: + + $value = $payload['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['notifications_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'notifications_url'; + goto after_notifications_url; + } + + $properties['notifications_url'] = $value; + + after_notifications_url: + + $value = $payload['open_issues'] ?? null; + + if ($value === null) { + $missingFields[] = 'open_issues'; + goto after_open_issues; + } + + $properties['open_issues'] = $value; + + after_open_issues: + + $value = $payload['open_issues_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'open_issues_count'; + goto after_open_issues_count; + } + + $properties['open_issues_count'] = $value; + + after_open_issues_count: + + $value = $payload['organization'] ?? null; + + if ($value === null) { + $missingFields[] = 'organization'; + goto after_organization; + } + + $properties['organization'] = $value; + + after_organization: + + $value = $payload['owner'] ?? null; + + if ($value === null) { + $missingFields[] = 'owner'; + goto after_owner; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'owner'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['owner'] = $value; + + after_owner: + + $value = $payload['permissions'] ?? null; + + if ($value === null) { + $missingFields[] = 'permissions'; + goto after_permissions; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'permissions'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionTransferred⚡️Changes⚡️NewRepository⚡️Permissions($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['permissions'] = $value; + + after_permissions: + + $value = $payload['private'] ?? null; + + if ($value === null) { + $missingFields[] = 'private'; + goto after_private; + } + + $properties['private'] = $value; + + after_private: + + $value = $payload['public'] ?? null; + + if ($value === null) { + $missingFields[] = 'public'; + goto after_public; + } + + $properties['public'] = $value; + + after_public: + + $value = $payload['pulls_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'pulls_url'; + goto after_pulls_url; + } + + $properties['pulls_url'] = $value; + + after_pulls_url: + + $value = $payload['pushed_at'] ?? null; + + if ($value === null) { + $properties['pushed_at'] = null; + goto after_pushed_at; + } + + $properties['pushed_at'] = $value; + + after_pushed_at: + + $value = $payload['releases_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'releases_url'; + goto after_releases_url; + } + + $properties['releases_url'] = $value; + + after_releases_url: + + $value = $payload['role_name'] ?? null; + + if ($value === null) { + $missingFields[] = 'role_name'; + goto after_role_name; + } + + $properties['role_name'] = $value; + + after_role_name: + + $value = $payload['size'] ?? null; + + if ($value === null) { + $missingFields[] = 'size'; + goto after_size; + } + + $properties['size'] = $value; + + after_size: + + $value = $payload['ssh_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'ssh_url'; + goto after_ssh_url; + } + + $properties['ssh_url'] = $value; + + after_ssh_url: + + $value = $payload['stargazers'] ?? null; + + if ($value === null) { + $missingFields[] = 'stargazers'; + goto after_stargazers; + } + + $properties['stargazers'] = $value; + + after_stargazers: + + $value = $payload['stargazers_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'stargazers_count'; + goto after_stargazers_count; + } + + $properties['stargazers_count'] = $value; + + after_stargazers_count: + + $value = $payload['stargazers_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'stargazers_url'; + goto after_stargazers_url; + } + + $properties['stargazers_url'] = $value; + + after_stargazers_url: + + $value = $payload['statuses_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'statuses_url'; + goto after_statuses_url; + } + + $properties['statuses_url'] = $value; + + after_statuses_url: + + $value = $payload['subscribers_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscribers_url'; + goto after_subscribers_url; + } + + $properties['subscribers_url'] = $value; + + after_subscribers_url: + + $value = $payload['subscription_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscription_url'; + goto after_subscription_url; + } + + $properties['subscription_url'] = $value; + + after_subscription_url: + + $value = $payload['svn_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'svn_url'; + goto after_svn_url; + } + + $properties['svn_url'] = $value; + + after_svn_url: + + $value = $payload['tags_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'tags_url'; + goto after_tags_url; + } + + $properties['tags_url'] = $value; + + after_tags_url: + + $value = $payload['teams_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'teams_url'; + goto after_teams_url; + } + + $properties['teams_url'] = $value; + + after_teams_url: + + $value = $payload['topics'] ?? null; + + if ($value === null) { + $missingFields[] = 'topics'; + goto after_topics; + } + + $properties['topics'] = $value; + + after_topics: + + $value = $payload['trees_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'trees_url'; + goto after_trees_url; + } + + $properties['trees_url'] = $value; + + after_trees_url: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'updated_at'; + goto after_updated_at; + } + + $properties['updated_at'] = $value; + + after_updated_at: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['visibility'] ?? null; + + if ($value === null) { + $missingFields[] = 'visibility'; + goto after_visibility; + } + + $properties['visibility'] = $value; + + after_visibility: + + $value = $payload['watchers'] ?? null; + + if ($value === null) { + $missingFields[] = 'watchers'; + goto after_watchers; + } + + $properties['watchers'] = $value; + + after_watchers: + + $value = $payload['watchers_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'watchers_count'; + goto after_watchers_count; + } + + $properties['watchers_count'] = $value; + + after_watchers_count: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesOpened\Changes\OldRepository', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookIssuesOpened\Changes\OldRepository::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookIssuesOpened\Changes\OldRepository(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesOpened\Changes\OldRepository', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesOpened⚡️Changes⚡️OldIssue⚡️PerformedViaGithubApp(array $payload): \ApiClients\Client\Github\Schema\WebhookIssuesOpened\Changes\OldIssue\PerformedViaGithubApp + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'created_at'; + goto after_created_at; + } + + $properties['created_at'] = $value; + + after_created_at: + + $value = $payload['description'] ?? null; + + if ($value === null) { + $missingFields[] = 'description'; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['events'] ?? null; + + if ($value === null) { + $missingFields[] = 'events'; + goto after_events; + } + + $properties['events'] = $value; + + after_events: + + $value = $payload['external_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'external_url'; + goto after_external_url; + } + + $properties['external_url'] = $value; + + after_external_url: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } + + $properties['html_url'] = $value; + + after_html_url: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['owner'] ?? null; + + if ($value === null) { + $missingFields[] = 'owner'; + goto after_owner; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'owner'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['owner'] = $value; + + after_owner: + + $value = $payload['permissions'] ?? null; + + if ($value === null) { + $missingFields[] = 'permissions'; + goto after_permissions; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'permissions'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDeploymentCreated⚡️Deployment⚡️PerformedViaGithubApp⚡️Permissions($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['permissions'] = $value; + + after_permissions: + + $value = $payload['slug'] ?? null; + + if ($value === null) { + $missingFields[] = 'slug'; + goto after_slug; + } + + $properties['slug'] = $value; + + after_slug: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'updated_at'; + goto after_updated_at; + } + + $properties['updated_at'] = $value; + + after_updated_at: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesOpened\Changes\OldIssue\PerformedViaGithubApp', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookIssuesOpened\Changes\OldIssue\PerformedViaGithubApp::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookIssuesOpened\Changes\OldIssue\PerformedViaGithubApp(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesOpened\Changes\OldIssue\PerformedViaGithubApp', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionTransferred⚡️Changes⚡️NewRepository(array $payload): \ApiClients\Client\Github\Schema\WebhookDiscussionTransferred\Changes\NewRepository + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['allow_auto_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_auto_merge'; + goto after_allow_auto_merge; + } + + $properties['allow_auto_merge'] = $value; + + after_allow_auto_merge: + + $value = $payload['allow_forking'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_forking'; + goto after_allow_forking; + } + + $properties['allow_forking'] = $value; + + after_allow_forking: + + $value = $payload['allow_merge_commit'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_merge_commit'; + goto after_allow_merge_commit; + } + + $properties['allow_merge_commit'] = $value; + + after_allow_merge_commit: + + $value = $payload['allow_rebase_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_rebase_merge'; + goto after_allow_rebase_merge; + } + + $properties['allow_rebase_merge'] = $value; + + after_allow_rebase_merge: + + $value = $payload['allow_squash_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_squash_merge'; + goto after_allow_squash_merge; + } + + $properties['allow_squash_merge'] = $value; + + after_allow_squash_merge: + + $value = $payload['allow_update_branch'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_update_branch'; + goto after_allow_update_branch; + } + + $properties['allow_update_branch'] = $value; + + after_allow_update_branch: + + $value = $payload['archive_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'archive_url'; + goto after_archive_url; + } + + $properties['archive_url'] = $value; + + after_archive_url: + + $value = $payload['archived'] ?? null; + + if ($value === null) { + $missingFields[] = 'archived'; + goto after_archived; + } + + $properties['archived'] = $value; + + after_archived: + + $value = $payload['assignees_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'assignees_url'; + goto after_assignees_url; + } + + $properties['assignees_url'] = $value; + + after_assignees_url: + + $value = $payload['blobs_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'blobs_url'; + goto after_blobs_url; + } + + $properties['blobs_url'] = $value; + + after_blobs_url: + + $value = $payload['branches_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'branches_url'; + goto after_branches_url; + } + + $properties['branches_url'] = $value; + + after_branches_url: + + $value = $payload['clone_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'clone_url'; + goto after_clone_url; + } + + $properties['clone_url'] = $value; + + after_clone_url: + + $value = $payload['collaborators_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'collaborators_url'; + goto after_collaborators_url; + } + + $properties['collaborators_url'] = $value; + + after_collaborators_url: + + $value = $payload['comments_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'comments_url'; + goto after_comments_url; + } + + $properties['comments_url'] = $value; + + after_comments_url: + + $value = $payload['commits_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'commits_url'; + goto after_commits_url; + } + + $properties['commits_url'] = $value; + + after_commits_url: + + $value = $payload['compare_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'compare_url'; + goto after_compare_url; + } + + $properties['compare_url'] = $value; + + after_compare_url: + + $value = $payload['contents_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'contents_url'; + goto after_contents_url; + } + + $properties['contents_url'] = $value; + + after_contents_url: + + $value = $payload['contributors_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'contributors_url'; + goto after_contributors_url; + } + + $properties['contributors_url'] = $value; + + after_contributors_url: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $properties['created_at'] = null; + goto after_created_at; + } + + $properties['created_at'] = $value; + + after_created_at: + + $value = $payload['default_branch'] ?? null; + + if ($value === null) { + $missingFields[] = 'default_branch'; + goto after_default_branch; + } + + $properties['default_branch'] = $value; + + after_default_branch: + + $value = $payload['delete_branch_on_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'delete_branch_on_merge'; + goto after_delete_branch_on_merge; + } + + $properties['delete_branch_on_merge'] = $value; + + after_delete_branch_on_merge: + + $value = $payload['deployments_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'deployments_url'; + goto after_deployments_url; + } + + $properties['deployments_url'] = $value; + + after_deployments_url: + + $value = $payload['description'] ?? null; + + if ($value === null) { + $missingFields[] = 'description'; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['disabled'] ?? null; + + if ($value === null) { + $missingFields[] = 'disabled'; + goto after_disabled; + } + + $properties['disabled'] = $value; + + after_disabled: + + $value = $payload['downloads_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'downloads_url'; + goto after_downloads_url; + } + + $properties['downloads_url'] = $value; + + after_downloads_url: + + $value = $payload['events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'events_url'; + goto after_events_url; + } + + $properties['events_url'] = $value; + + after_events_url: + + $value = $payload['fork'] ?? null; + + if ($value === null) { + $missingFields[] = 'fork'; + goto after_fork; + } + + $properties['fork'] = $value; + + after_fork: + + $value = $payload['forks'] ?? null; + + if ($value === null) { + $missingFields[] = 'forks'; + goto after_forks; + } + + $properties['forks'] = $value; + + after_forks: + + $value = $payload['forks_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'forks_count'; + goto after_forks_count; + } + + $properties['forks_count'] = $value; + + after_forks_count: + + $value = $payload['forks_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'forks_url'; + goto after_forks_url; + } + + $properties['forks_url'] = $value; + + after_forks_url: + + $value = $payload['full_name'] ?? null; + + if ($value === null) { + $missingFields[] = 'full_name'; + goto after_full_name; + } + + $properties['full_name'] = $value; + + after_full_name: + + $value = $payload['git_commits_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_commits_url'; + goto after_git_commits_url; + } + + $properties['git_commits_url'] = $value; + + after_git_commits_url: + + $value = $payload['git_refs_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_refs_url'; + goto after_git_refs_url; + } + + $properties['git_refs_url'] = $value; + + after_git_refs_url: + + $value = $payload['git_tags_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_tags_url'; + goto after_git_tags_url; + } + + $properties['git_tags_url'] = $value; + + after_git_tags_url: + + $value = $payload['git_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_url'; + goto after_git_url; + } + + $properties['git_url'] = $value; + + after_git_url: + + $value = $payload['has_downloads'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_downloads'; + goto after_has_downloads; + } + + $properties['has_downloads'] = $value; + + after_has_downloads: + + $value = $payload['has_issues'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_issues'; + goto after_has_issues; + } + + $properties['has_issues'] = $value; + + after_has_issues: + + $value = $payload['has_pages'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_pages'; + goto after_has_pages; + } + + $properties['has_pages'] = $value; + + after_has_pages: + + $value = $payload['has_projects'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_projects'; + goto after_has_projects; + } + + $properties['has_projects'] = $value; + + after_has_projects: + + $value = $payload['has_wiki'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_wiki'; + goto after_has_wiki; + } + + $properties['has_wiki'] = $value; + + after_has_wiki: + + $value = $payload['has_discussions'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_discussions'; + goto after_has_discussions; + } + + $properties['has_discussions'] = $value; + + after_has_discussions: + + $value = $payload['homepage'] ?? null; + + if ($value === null) { + $missingFields[] = 'homepage'; + goto after_homepage; + } + + $properties['homepage'] = $value; + + after_homepage: + + $value = $payload['hooks_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'hooks_url'; + goto after_hooks_url; + } + + $properties['hooks_url'] = $value; + + after_hooks_url: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } + + $properties['html_url'] = $value; + + after_html_url: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['is_template'] ?? null; + + if ($value === null) { + $missingFields[] = 'is_template'; + goto after_is_template; + } + + $properties['is_template'] = $value; + + after_is_template: + + $value = $payload['issue_comment_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issue_comment_url'; + goto after_issue_comment_url; + } + + $properties['issue_comment_url'] = $value; + + after_issue_comment_url: + + $value = $payload['issue_events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issue_events_url'; + goto after_issue_events_url; + } + + $properties['issue_events_url'] = $value; + + after_issue_events_url: + + $value = $payload['issues_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issues_url'; + goto after_issues_url; + } + + $properties['issues_url'] = $value; + + after_issues_url: + + $value = $payload['keys_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'keys_url'; + goto after_keys_url; + } + + $properties['keys_url'] = $value; + + after_keys_url: + + $value = $payload['labels_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'labels_url'; + goto after_labels_url; + } + + $properties['labels_url'] = $value; + + after_labels_url: + + $value = $payload['language'] ?? null; + + if ($value === null) { + $missingFields[] = 'language'; + goto after_language; + } + + $properties['language'] = $value; + + after_language: + + $value = $payload['languages_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'languages_url'; + goto after_languages_url; + } + + $properties['languages_url'] = $value; + + after_languages_url: + + $value = $payload['license'] ?? null; + + if ($value === null) { + $missingFields[] = 'license'; + goto after_license; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'license'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionTransferred⚡️Changes⚡️NewRepository⚡️License($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['license'] = $value; + + after_license: + + $value = $payload['master_branch'] ?? null; + + if ($value === null) { + $missingFields[] = 'master_branch'; + goto after_master_branch; + } + + $properties['master_branch'] = $value; + + after_master_branch: + + $value = $payload['merges_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'merges_url'; + goto after_merges_url; + } + + $properties['merges_url'] = $value; + + after_merges_url: + + $value = $payload['milestones_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'milestones_url'; + goto after_milestones_url; + } + + $properties['milestones_url'] = $value; + + after_milestones_url: + + $value = $payload['mirror_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'mirror_url'; + goto after_mirror_url; + } + + $properties['mirror_url'] = $value; + + after_mirror_url: + + $value = $payload['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['notifications_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'notifications_url'; + goto after_notifications_url; + } + + $properties['notifications_url'] = $value; + + after_notifications_url: + + $value = $payload['open_issues'] ?? null; + + if ($value === null) { + $missingFields[] = 'open_issues'; + goto after_open_issues; + } + + $properties['open_issues'] = $value; + + after_open_issues: + + $value = $payload['open_issues_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'open_issues_count'; + goto after_open_issues_count; + } + + $properties['open_issues_count'] = $value; + + after_open_issues_count: + + $value = $payload['organization'] ?? null; + + if ($value === null) { + $missingFields[] = 'organization'; + goto after_organization; + } + + $properties['organization'] = $value; + + after_organization: + + $value = $payload['owner'] ?? null; + + if ($value === null) { + $missingFields[] = 'owner'; + goto after_owner; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'owner'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['owner'] = $value; + + after_owner: + + $value = $payload['permissions'] ?? null; + + if ($value === null) { + $missingFields[] = 'permissions'; + goto after_permissions; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'permissions'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionTransferred⚡️Changes⚡️NewRepository⚡️Permissions($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['permissions'] = $value; + + after_permissions: + + $value = $payload['private'] ?? null; + + if ($value === null) { + $missingFields[] = 'private'; + goto after_private; + } + + $properties['private'] = $value; + + after_private: + + $value = $payload['public'] ?? null; + + if ($value === null) { + $missingFields[] = 'public'; + goto after_public; + } + + $properties['public'] = $value; + + after_public: + + $value = $payload['pulls_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'pulls_url'; + goto after_pulls_url; + } + + $properties['pulls_url'] = $value; + + after_pulls_url: + + $value = $payload['pushed_at'] ?? null; + + if ($value === null) { + $properties['pushed_at'] = null; + goto after_pushed_at; + } + + $properties['pushed_at'] = $value; + + after_pushed_at: + + $value = $payload['releases_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'releases_url'; + goto after_releases_url; + } + + $properties['releases_url'] = $value; + + after_releases_url: + + $value = $payload['role_name'] ?? null; + + if ($value === null) { + $missingFields[] = 'role_name'; + goto after_role_name; + } + + $properties['role_name'] = $value; + + after_role_name: + + $value = $payload['size'] ?? null; + + if ($value === null) { + $missingFields[] = 'size'; + goto after_size; + } + + $properties['size'] = $value; + + after_size: + + $value = $payload['ssh_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'ssh_url'; + goto after_ssh_url; + } + + $properties['ssh_url'] = $value; + + after_ssh_url: + + $value = $payload['stargazers'] ?? null; + + if ($value === null) { + $missingFields[] = 'stargazers'; + goto after_stargazers; + } + + $properties['stargazers'] = $value; + + after_stargazers: + + $value = $payload['stargazers_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'stargazers_count'; + goto after_stargazers_count; + } + + $properties['stargazers_count'] = $value; + + after_stargazers_count: + + $value = $payload['stargazers_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'stargazers_url'; + goto after_stargazers_url; + } + + $properties['stargazers_url'] = $value; + + after_stargazers_url: + + $value = $payload['statuses_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'statuses_url'; + goto after_statuses_url; + } + + $properties['statuses_url'] = $value; + + after_statuses_url: + + $value = $payload['subscribers_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscribers_url'; + goto after_subscribers_url; + } + + $properties['subscribers_url'] = $value; + + after_subscribers_url: + + $value = $payload['subscription_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscription_url'; + goto after_subscription_url; + } + + $properties['subscription_url'] = $value; + + after_subscription_url: + + $value = $payload['svn_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'svn_url'; + goto after_svn_url; + } + + $properties['svn_url'] = $value; + + after_svn_url: + + $value = $payload['tags_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'tags_url'; + goto after_tags_url; + } + + $properties['tags_url'] = $value; + + after_tags_url: + + $value = $payload['teams_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'teams_url'; + goto after_teams_url; + } + + $properties['teams_url'] = $value; + + after_teams_url: + + $value = $payload['topics'] ?? null; + + if ($value === null) { + $missingFields[] = 'topics'; + goto after_topics; + } + + $properties['topics'] = $value; + + after_topics: + + $value = $payload['trees_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'trees_url'; + goto after_trees_url; + } + + $properties['trees_url'] = $value; + + after_trees_url: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'updated_at'; + goto after_updated_at; + } + + $properties['updated_at'] = $value; + + after_updated_at: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['visibility'] ?? null; + + if ($value === null) { + $missingFields[] = 'visibility'; + goto after_visibility; + } + + $properties['visibility'] = $value; + + after_visibility: + + $value = $payload['watchers'] ?? null; + + if ($value === null) { + $missingFields[] = 'watchers'; + goto after_watchers; + } + + $properties['watchers'] = $value; + + after_watchers: + + $value = $payload['watchers_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'watchers_count'; + goto after_watchers_count; + } + + $properties['watchers_count'] = $value; + + after_watchers_count: + + $value = $payload['web_commit_signoff_required'] ?? null; + + if ($value === null) { + $missingFields[] = 'web_commit_signoff_required'; + goto after_web_commit_signoff_required; + } + + $properties['web_commit_signoff_required'] = $value; + + after_web_commit_signoff_required: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDiscussionTransferred\Changes\NewRepository', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookDiscussionTransferred\Changes\NewRepository::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookDiscussionTransferred\Changes\NewRepository(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDiscussionTransferred\Changes\NewRepository', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesAssigned⚡️Issue⚡️PerformedViaGithubApp⚡️Permissions(array $payload): \ApiClients\Client\Github\Schema\WebhookIssuesAssigned\Issue\PerformedViaGithubApp\Permissions + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['actions'] ?? null; + + if ($value === null) { + $missingFields[] = 'actions'; + goto after_actions; + } + + $properties['actions'] = $value; + + after_actions: + + $value = $payload['administration'] ?? null; + + if ($value === null) { + $missingFields[] = 'administration'; + goto after_administration; + } + + $properties['administration'] = $value; + + after_administration: + + $value = $payload['checks'] ?? null; + + if ($value === null) { + $missingFields[] = 'checks'; + goto after_checks; + } + + $properties['checks'] = $value; + + after_checks: + + $value = $payload['content_references'] ?? null; + + if ($value === null) { + $missingFields[] = 'content_references'; + goto after_content_references; + } + + $properties['content_references'] = $value; + + after_content_references: + + $value = $payload['contents'] ?? null; + + if ($value === null) { + $missingFields[] = 'contents'; + goto after_contents; + } + + $properties['contents'] = $value; + + after_contents: + + $value = $payload['deployments'] ?? null; + + if ($value === null) { + $missingFields[] = 'deployments'; + goto after_deployments; + } + + $properties['deployments'] = $value; + + after_deployments: + + $value = $payload['discussions'] ?? null; + + if ($value === null) { + $missingFields[] = 'discussions'; + goto after_discussions; + } + + $properties['discussions'] = $value; + + after_discussions: + + $value = $payload['emails'] ?? null; + + if ($value === null) { + $missingFields[] = 'emails'; + goto after_emails; + } + + $properties['emails'] = $value; + + after_emails: + + $value = $payload['environments'] ?? null; + + if ($value === null) { + $missingFields[] = 'environments'; + goto after_environments; + } + + $properties['environments'] = $value; + + after_environments: + + $value = $payload['issues'] ?? null; + + if ($value === null) { + $missingFields[] = 'issues'; + goto after_issues; + } + + $properties['issues'] = $value; + + after_issues: + + $value = $payload['keys'] ?? null; + + if ($value === null) { + $missingFields[] = 'keys'; + goto after_keys; + } + + $properties['keys'] = $value; + + after_keys: + + $value = $payload['members'] ?? null; + + if ($value === null) { + $missingFields[] = 'members'; + goto after_members; + } + + $properties['members'] = $value; + + after_members: + + $value = $payload['metadata'] ?? null; + + if ($value === null) { + $missingFields[] = 'metadata'; + goto after_metadata; + } + + $properties['metadata'] = $value; + + after_metadata: + + $value = $payload['organization_administration'] ?? null; + + if ($value === null) { + $missingFields[] = 'organization_administration'; + goto after_organization_administration; + } + + $properties['organization_administration'] = $value; + + after_organization_administration: + + $value = $payload['organization_hooks'] ?? null; + + if ($value === null) { + $missingFields[] = 'organization_hooks'; + goto after_organization_hooks; + } + + $properties['organization_hooks'] = $value; + + after_organization_hooks: + + $value = $payload['organization_packages'] ?? null; + + if ($value === null) { + $missingFields[] = 'organization_packages'; + goto after_organization_packages; + } + + $properties['organization_packages'] = $value; + + after_organization_packages: + + $value = $payload['organization_plan'] ?? null; + + if ($value === null) { + $missingFields[] = 'organization_plan'; + goto after_organization_plan; + } + + $properties['organization_plan'] = $value; + + after_organization_plan: + + $value = $payload['organization_projects'] ?? null; + + if ($value === null) { + $missingFields[] = 'organization_projects'; + goto after_organization_projects; + } + + $properties['organization_projects'] = $value; + + after_organization_projects: + + $value = $payload['organization_secrets'] ?? null; + + if ($value === null) { + $missingFields[] = 'organization_secrets'; + goto after_organization_secrets; + } + + $properties['organization_secrets'] = $value; + + after_organization_secrets: + + $value = $payload['organization_self_hosted_runners'] ?? null; + + if ($value === null) { + $missingFields[] = 'organization_self_hosted_runners'; + goto after_organization_self_hosted_runners; + } + + $properties['organization_self_hosted_runners'] = $value; + + after_organization_self_hosted_runners: + + $value = $payload['organization_user_blocking'] ?? null; + + if ($value === null) { + $missingFields[] = 'organization_user_blocking'; + goto after_organization_user_blocking; + } + + $properties['organization_user_blocking'] = $value; + + after_organization_user_blocking: + + $value = $payload['packages'] ?? null; + + if ($value === null) { + $missingFields[] = 'packages'; + goto after_packages; + } + + $properties['packages'] = $value; + + after_packages: + + $value = $payload['pages'] ?? null; + + if ($value === null) { + $missingFields[] = 'pages'; + goto after_pages; + } + + $properties['pages'] = $value; + + after_pages: + + $value = $payload['pull_requests'] ?? null; + + if ($value === null) { + $missingFields[] = 'pull_requests'; + goto after_pull_requests; + } + + $properties['pull_requests'] = $value; + + after_pull_requests: + + $value = $payload['repository_hooks'] ?? null; + + if ($value === null) { + $missingFields[] = 'repository_hooks'; + goto after_repository_hooks; + } + + $properties['repository_hooks'] = $value; + + after_repository_hooks: + + $value = $payload['repository_projects'] ?? null; + + if ($value === null) { + $missingFields[] = 'repository_projects'; + goto after_repository_projects; + } + + $properties['repository_projects'] = $value; + + after_repository_projects: + + $value = $payload['secret_scanning_alerts'] ?? null; + + if ($value === null) { + $missingFields[] = 'secret_scanning_alerts'; + goto after_secret_scanning_alerts; + } + + $properties['secret_scanning_alerts'] = $value; + + after_secret_scanning_alerts: + + $value = $payload['secrets'] ?? null; + + if ($value === null) { + $missingFields[] = 'secrets'; + goto after_secrets; + } + + $properties['secrets'] = $value; + + after_secrets: + + $value = $payload['security_events'] ?? null; + + if ($value === null) { + $missingFields[] = 'security_events'; + goto after_security_events; + } + + $properties['security_events'] = $value; + + after_security_events: + + $value = $payload['security_scanning_alert'] ?? null; + + if ($value === null) { + $missingFields[] = 'security_scanning_alert'; + goto after_security_scanning_alert; + } + + $properties['security_scanning_alert'] = $value; + + after_security_scanning_alert: + + $value = $payload['single_file'] ?? null; + + if ($value === null) { + $missingFields[] = 'single_file'; + goto after_single_file; + } + + $properties['single_file'] = $value; + + after_single_file: + + $value = $payload['statuses'] ?? null; + + if ($value === null) { + $missingFields[] = 'statuses'; + goto after_statuses; + } + + $properties['statuses'] = $value; + + after_statuses: + + $value = $payload['team_discussions'] ?? null; + + if ($value === null) { + $missingFields[] = 'team_discussions'; + goto after_team_discussions; + } + + $properties['team_discussions'] = $value; + + after_team_discussions: + + $value = $payload['vulnerability_alerts'] ?? null; + + if ($value === null) { + $missingFields[] = 'vulnerability_alerts'; + goto after_vulnerability_alerts; + } + + $properties['vulnerability_alerts'] = $value; + + after_vulnerability_alerts: + + $value = $payload['workflows'] ?? null; + + if ($value === null) { + $missingFields[] = 'workflows'; + goto after_workflows; + } + + $properties['workflows'] = $value; + + after_workflows: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesAssigned\Issue\PerformedViaGithubApp\Permissions', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookIssuesAssigned\Issue\PerformedViaGithubApp\Permissions::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookIssuesAssigned\Issue\PerformedViaGithubApp\Permissions(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesAssigned\Issue\PerformedViaGithubApp\Permissions', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner(array $payload): \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['login'] ?? null; + + if ($value === null) { + $missingFields[] = 'login'; + goto after_login; + } + + $properties['login'] = $value; + + after_login: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['avatar_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'avatar_url'; + goto after_avatar_url; + } + + $properties['avatar_url'] = $value; + + after_avatar_url: + + $value = $payload['gravatar_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'gravatar_id'; + goto after_gravatar_id; + } + + $properties['gravatar_id'] = $value; + + after_gravatar_id: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } + + $properties['html_url'] = $value; + + after_html_url: + + $value = $payload['followers_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'followers_url'; + goto after_followers_url; + } + + $properties['followers_url'] = $value; + + after_followers_url: + + $value = $payload['following_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'following_url'; + goto after_following_url; + } + + $properties['following_url'] = $value; + + after_following_url: + + $value = $payload['gists_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'gists_url'; + goto after_gists_url; + } + + $properties['gists_url'] = $value; + + after_gists_url: + + $value = $payload['starred_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'starred_url'; + goto after_starred_url; + } + + $properties['starred_url'] = $value; + + after_starred_url: + + $value = $payload['subscriptions_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscriptions_url'; + goto after_subscriptions_url; + } + + $properties['subscriptions_url'] = $value; + + after_subscriptions_url: + + $value = $payload['organizations_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'organizations_url'; + goto after_organizations_url; + } + + $properties['organizations_url'] = $value; + + after_organizations_url: + + $value = $payload['repos_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'repos_url'; + goto after_repos_url; + } + + $properties['repos_url'] = $value; + + after_repos_url: + + $value = $payload['events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'events_url'; + goto after_events_url; + } + + $properties['events_url'] = $value; + + after_events_url: + + $value = $payload['received_events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'received_events_url'; + goto after_received_events_url; + } + + $properties['received_events_url'] = $value; + + after_received_events_url: + + $value = $payload['type'] ?? null; + + if ($value === null) { + $missingFields[] = 'type'; + goto after_type; + } + + $properties['type'] = $value; + + after_type: + + $value = $payload['site_admin'] ?? null; + + if ($value === null) { + $missingFields[] = 'site_admin'; + goto after_site_admin; + } + + $properties['site_admin'] = $value; + + after_site_admin: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Permissions(array $payload): \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['admin'] ?? null; + + if ($value === null) { + $missingFields[] = 'admin'; + goto after_admin; + } + + $properties['admin'] = $value; + + after_admin: + + $value = $payload['maintain'] ?? null; + + if ($value === null) { + $missingFields[] = 'maintain'; + goto after_maintain; + } + + $properties['maintain'] = $value; + + after_maintain: + + $value = $payload['push'] ?? null; + + if ($value === null) { + $missingFields[] = 'push'; + goto after_push; + } + + $properties['push'] = $value; + + after_push: + + $value = $payload['triage'] ?? null; + + if ($value === null) { + $missingFields[] = 'triage'; + goto after_triage; + } + + $properties['triage'] = $value; + + after_triage: + + $value = $payload['pull'] ?? null; + + if ($value === null) { + $missingFields[] = 'pull'; + goto after_pull; + } + + $properties['pull'] = $value; + + after_pull: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDeploymentCreated⚡️Deployment⚡️PerformedViaGithubApp⚡️Permissions(array $payload): \ApiClients\Client\Github\Schema\WebhookDeploymentCreated\Deployment\PerformedViaGithubApp\Permissions + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['actions'] ?? null; + + if ($value === null) { + $missingFields[] = 'actions'; + goto after_actions; + } + + $properties['actions'] = $value; + + after_actions: + + $value = $payload['administration'] ?? null; + + if ($value === null) { + $missingFields[] = 'administration'; + goto after_administration; + } + + $properties['administration'] = $value; + + after_administration: + + $value = $payload['checks'] ?? null; + + if ($value === null) { + $missingFields[] = 'checks'; + goto after_checks; + } + + $properties['checks'] = $value; + + after_checks: + + $value = $payload['content_references'] ?? null; + + if ($value === null) { + $missingFields[] = 'content_references'; + goto after_content_references; + } + + $properties['content_references'] = $value; + + after_content_references: + + $value = $payload['contents'] ?? null; + + if ($value === null) { + $missingFields[] = 'contents'; + goto after_contents; + } + + $properties['contents'] = $value; + + after_contents: + + $value = $payload['deployments'] ?? null; + + if ($value === null) { + $missingFields[] = 'deployments'; + goto after_deployments; + } + + $properties['deployments'] = $value; + + after_deployments: + + $value = $payload['discussions'] ?? null; + + if ($value === null) { + $missingFields[] = 'discussions'; + goto after_discussions; + } + + $properties['discussions'] = $value; + + after_discussions: + + $value = $payload['emails'] ?? null; + + if ($value === null) { + $missingFields[] = 'emails'; + goto after_emails; + } + + $properties['emails'] = $value; + + after_emails: + + $value = $payload['environments'] ?? null; + + if ($value === null) { + $missingFields[] = 'environments'; + goto after_environments; + } + + $properties['environments'] = $value; + + after_environments: + + $value = $payload['issues'] ?? null; + + if ($value === null) { + $missingFields[] = 'issues'; + goto after_issues; + } + + $properties['issues'] = $value; + + after_issues: + + $value = $payload['keys'] ?? null; + + if ($value === null) { + $missingFields[] = 'keys'; + goto after_keys; + } + + $properties['keys'] = $value; + + after_keys: + + $value = $payload['members'] ?? null; + + if ($value === null) { + $missingFields[] = 'members'; + goto after_members; + } + + $properties['members'] = $value; + + after_members: + + $value = $payload['metadata'] ?? null; + + if ($value === null) { + $missingFields[] = 'metadata'; + goto after_metadata; + } + + $properties['metadata'] = $value; + + after_metadata: + + $value = $payload['organization_administration'] ?? null; + + if ($value === null) { + $missingFields[] = 'organization_administration'; + goto after_organization_administration; + } + + $properties['organization_administration'] = $value; + + after_organization_administration: + + $value = $payload['organization_hooks'] ?? null; + + if ($value === null) { + $missingFields[] = 'organization_hooks'; + goto after_organization_hooks; + } + + $properties['organization_hooks'] = $value; + + after_organization_hooks: + + $value = $payload['organization_packages'] ?? null; + + if ($value === null) { + $missingFields[] = 'organization_packages'; + goto after_organization_packages; + } + + $properties['organization_packages'] = $value; + + after_organization_packages: + + $value = $payload['organization_plan'] ?? null; + + if ($value === null) { + $missingFields[] = 'organization_plan'; + goto after_organization_plan; + } + + $properties['organization_plan'] = $value; + + after_organization_plan: + + $value = $payload['organization_projects'] ?? null; + + if ($value === null) { + $missingFields[] = 'organization_projects'; + goto after_organization_projects; + } + + $properties['organization_projects'] = $value; + + after_organization_projects: + + $value = $payload['organization_secrets'] ?? null; + + if ($value === null) { + $missingFields[] = 'organization_secrets'; + goto after_organization_secrets; + } + + $properties['organization_secrets'] = $value; + + after_organization_secrets: + + $value = $payload['organization_self_hosted_runners'] ?? null; + + if ($value === null) { + $missingFields[] = 'organization_self_hosted_runners'; + goto after_organization_self_hosted_runners; + } + + $properties['organization_self_hosted_runners'] = $value; + + after_organization_self_hosted_runners: + + $value = $payload['organization_user_blocking'] ?? null; + + if ($value === null) { + $missingFields[] = 'organization_user_blocking'; + goto after_organization_user_blocking; + } + + $properties['organization_user_blocking'] = $value; + + after_organization_user_blocking: + + $value = $payload['packages'] ?? null; + + if ($value === null) { + $missingFields[] = 'packages'; + goto after_packages; + } + + $properties['packages'] = $value; + + after_packages: + + $value = $payload['pages'] ?? null; + + if ($value === null) { + $missingFields[] = 'pages'; + goto after_pages; + } + + $properties['pages'] = $value; + + after_pages: + + $value = $payload['pull_requests'] ?? null; + + if ($value === null) { + $missingFields[] = 'pull_requests'; + goto after_pull_requests; + } + + $properties['pull_requests'] = $value; + + after_pull_requests: + + $value = $payload['repository_hooks'] ?? null; + + if ($value === null) { + $missingFields[] = 'repository_hooks'; + goto after_repository_hooks; + } + + $properties['repository_hooks'] = $value; + + after_repository_hooks: + + $value = $payload['repository_projects'] ?? null; + + if ($value === null) { + $missingFields[] = 'repository_projects'; + goto after_repository_projects; + } + + $properties['repository_projects'] = $value; + + after_repository_projects: + + $value = $payload['secret_scanning_alerts'] ?? null; + + if ($value === null) { + $missingFields[] = 'secret_scanning_alerts'; + goto after_secret_scanning_alerts; + } + + $properties['secret_scanning_alerts'] = $value; + + after_secret_scanning_alerts: + + $value = $payload['secrets'] ?? null; + + if ($value === null) { + $missingFields[] = 'secrets'; + goto after_secrets; + } + + $properties['secrets'] = $value; + + after_secrets: + + $value = $payload['security_events'] ?? null; + + if ($value === null) { + $missingFields[] = 'security_events'; + goto after_security_events; + } + + $properties['security_events'] = $value; + + after_security_events: + + $value = $payload['security_scanning_alert'] ?? null; + + if ($value === null) { + $missingFields[] = 'security_scanning_alert'; + goto after_security_scanning_alert; + } + + $properties['security_scanning_alert'] = $value; + + after_security_scanning_alert: + + $value = $payload['single_file'] ?? null; + + if ($value === null) { + $missingFields[] = 'single_file'; + goto after_single_file; + } + + $properties['single_file'] = $value; + + after_single_file: + + $value = $payload['statuses'] ?? null; + + if ($value === null) { + $missingFields[] = 'statuses'; + goto after_statuses; + } + + $properties['statuses'] = $value; + + after_statuses: + + $value = $payload['team_discussions'] ?? null; + + if ($value === null) { + $missingFields[] = 'team_discussions'; + goto after_team_discussions; + } + + $properties['team_discussions'] = $value; + + after_team_discussions: + + $value = $payload['vulnerability_alerts'] ?? null; + + if ($value === null) { + $missingFields[] = 'vulnerability_alerts'; + goto after_vulnerability_alerts; + } + + $properties['vulnerability_alerts'] = $value; + + after_vulnerability_alerts: + + $value = $payload['workflows'] ?? null; + + if ($value === null) { + $missingFields[] = 'workflows'; + goto after_workflows; + } + + $properties['workflows'] = $value; + + after_workflows: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDeploymentCreated\Deployment\PerformedViaGithubApp\Permissions', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookDeploymentCreated\Deployment\PerformedViaGithubApp\Permissions::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookDeploymentCreated\Deployment\PerformedViaGithubApp\Permissions(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDeploymentCreated\Deployment\PerformedViaGithubApp\Permissions', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionTransferred⚡️Changes⚡️NewRepository⚡️License(array $payload): \ApiClients\Client\Github\Schema\WebhookDiscussionTransferred\Changes\NewRepository\License + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['key'] ?? null; + + if ($value === null) { + $missingFields[] = 'key'; + goto after_key; + } + + $properties['key'] = $value; + + after_key: + + $value = $payload['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['spdx_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'spdx_id'; + goto after_spdx_id; + } + + $properties['spdx_id'] = $value; + + after_spdx_id: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDiscussionTransferred\Changes\NewRepository\License', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookDiscussionTransferred\Changes\NewRepository\License::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookDiscussionTransferred\Changes\NewRepository\License(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDiscussionTransferred\Changes\NewRepository\License', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionTransferred⚡️Changes⚡️NewRepository⚡️Permissions(array $payload): \ApiClients\Client\Github\Schema\WebhookDiscussionTransferred\Changes\NewRepository\Permissions + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['admin'] ?? null; + + if ($value === null) { + $missingFields[] = 'admin'; + goto after_admin; + } + + $properties['admin'] = $value; + + after_admin: + + $value = $payload['maintain'] ?? null; + + if ($value === null) { + $missingFields[] = 'maintain'; + goto after_maintain; + } + + $properties['maintain'] = $value; + + after_maintain: + + $value = $payload['pull'] ?? null; + + if ($value === null) { + $missingFields[] = 'pull'; + goto after_pull; + } + + $properties['pull'] = $value; + + after_pull: + + $value = $payload['push'] ?? null; + + if ($value === null) { + $missingFields[] = 'push'; + goto after_push; + } + + $properties['push'] = $value; + + after_push: + + $value = $payload['triage'] ?? null; + + if ($value === null) { + $missingFields[] = 'triage'; + goto after_triage; + } + + $properties['triage'] = $value; + + after_triage: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDiscussionTransferred\Changes\NewRepository\Permissions', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookDiscussionTransferred\Changes\NewRepository\Permissions::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookDiscussionTransferred\Changes\NewRepository\Permissions(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDiscussionTransferred\Changes\NewRepository\Permissions', $exception, stack: $this->hydrationStack); + } + } + + public function serializeObject(object $object): mixed + { + try { + $className = get_class($object); + + return match($className) { + 'array' => $this->serializeValuearray($object), + 'Ramsey\Uuid\UuidInterface' => $this->serializeValueRamsey⚡️Uuid⚡️UuidInterface($object), + 'DateTime' => $this->serializeValueDateTime($object), + 'DateTimeImmutable' => $this->serializeValueDateTimeImmutable($object), + 'DateTimeInterface' => $this->serializeValueDateTimeInterface($object), + 'ApiClients\Client\Github\Schema\WebhookIssuesAssigned' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesAssigned($object), + 'ApiClients\Client\Github\Schema\WebhookIssuesClosed' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesClosed($object), + 'ApiClients\Client\Github\Schema\WebhookIssuesDeleted' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesDeleted($object), + 'ApiClients\Client\Github\Schema\WebhookIssuesDemilestoned' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesDemilestoned($object), + 'ApiClients\Client\Github\Schema\WebhookIssuesEdited' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesEdited($object), + 'ApiClients\Client\Github\Schema\WebhookIssuesLabeled' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesLabeled($object), + 'ApiClients\Client\Github\Schema\WebhookIssuesLocked' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesLocked($object), + 'ApiClients\Client\Github\Schema\WebhookIssuesMilestoned' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesMilestoned($object), + 'ApiClients\Client\Github\Schema\WebhookIssuesOpened' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesOpened($object), + 'ApiClients\Client\Github\Schema\WebhookIssuesPinned' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesPinned($object), + 'ApiClients\Client\Github\Schema\WebhookIssuesReopened' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesReopened($object), + 'ApiClients\Client\Github\Schema\WebhookIssuesTransferred' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesTransferred($object), + 'ApiClients\Client\Github\Schema\WebhookIssuesUnassigned' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesUnassigned($object), + 'ApiClients\Client\Github\Schema\WebhookIssuesUnlabeled' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesUnlabeled($object), + 'ApiClients\Client\Github\Schema\WebhookIssuesUnlocked' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesUnlocked($object), + 'ApiClients\Client\Github\Schema\WebhookIssuesUnpinned' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesUnpinned($object), + default => throw new \LogicException('No serialization defined for $className'), + }; + } catch (\Throwable $exception) { + throw UnableToSerializeObject::dueToError($className, $exception); + } + } + + + private function serializeValuearray(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeArrayItems(...array ( +)); + } + + return $serializer->serialize($value, $this); + } + + + private function serializeValueRamsey⚡️Uuid⚡️UuidInterface(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeUuidToString(...array ( +)); + } + + return $serializer->serialize($value, $this); + } + + + private function serializeValueDateTime(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeDateTime(...array ( +)); + } + + return $serializer->serialize($value, $this); + } + + + private function serializeValueDateTimeImmutable(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeDateTime(...array ( +)); + } + + return $serializer->serialize($value, $this); + } + + + private function serializeValueDateTimeInterface(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeDateTime(...array ( +)); + } + + return $serializer->serialize($value, $this); + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesAssigned(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookIssuesAssigned); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $assignee = $object->assignee; + + if ($assignee === null) { + goto after_assignee; + } + $assignee = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($assignee); + after_assignee: $result['assignee'] = $assignee; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $issue = $object->issue; + + if ($issue === null) { + goto after_issue; + } + $issue = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesAssigned⚡️Issue($issue); + after_issue: $result['issue'] = $issue; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesClosed(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookIssuesClosed); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $issue = $object->issue; + + if ($issue === null) { + goto after_issue; + } + after_issue: $result['issue'] = $issue; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesDeleted(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookIssuesDeleted); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $issue = $object->issue; + + if ($issue === null) { + goto after_issue; + } + $issue = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesDeleted⚡️Issue($issue); + after_issue: $result['issue'] = $issue; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesDemilestoned(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookIssuesDemilestoned); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $issue = $object->issue; + + if ($issue === null) { + goto after_issue; + } + after_issue: $result['issue'] = $issue; + + + $milestone = $object->milestone; + $milestone = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesDemilestoned⚡️Milestone($milestone); + after_milestone: $result['milestone'] = $milestone; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesEdited(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookIssuesEdited); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $changes = $object->changes; + + if ($changes === null) { + goto after_changes; + } + $changes = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesEdited⚡️Changes($changes); + after_changes: $result['changes'] = $changes; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $issue = $object->issue; + + if ($issue === null) { + goto after_issue; + } + $issue = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesEdited⚡️Issue($issue); + after_issue: $result['issue'] = $issue; + + + $label = $object->label; + $label = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionLabeled⚡️Label($label); + after_label: $result['label'] = $label; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesLabeled(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookIssuesLabeled); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $issue = $object->issue; + + if ($issue === null) { + goto after_issue; + } + $issue = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesLabeled⚡️Issue($issue); + after_issue: $result['issue'] = $issue; + + + $label = $object->label; + $label = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionLabeled⚡️Label($label); + after_label: $result['label'] = $label; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesLocked(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookIssuesLocked); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $issue = $object->issue; + + if ($issue === null) { + goto after_issue; + } + after_issue: $result['issue'] = $issue; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + - after_triage: + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesMilestoned(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookIssuesMilestoned); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $issue = $object->issue; + + if ($issue === null) { + goto after_issue; + } + after_issue: $result['issue'] = $issue; + + + $milestone = $object->milestone; + + if ($milestone === null) { + goto after_milestone; + } + $milestone = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesDemilestoned⚡️Milestone($milestone); + after_milestone: $result['milestone'] = $milestone; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesOpened(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookIssuesOpened); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $changes = $object->changes; + $changes = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesOpened⚡️Changes($changes); + after_changes: $result['changes'] = $changes; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $issue = $object->issue; + + if ($issue === null) { + goto after_issue; + } + $issue = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesOpened⚡️Issue($issue); + after_issue: $result['issue'] = $issue; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesPinned(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookIssuesPinned); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $issue = $object->issue; + + if ($issue === null) { + goto after_issue; + } + $issue = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesPinned⚡️Issue($issue); + after_issue: $result['issue'] = $issue; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesReopened(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookIssuesReopened); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $issue = $object->issue; + + if ($issue === null) { + goto after_issue; + } + after_issue: $result['issue'] = $issue; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesTransferred(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookIssuesTransferred); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $changes = $object->changes; + + if ($changes === null) { + goto after_changes; + } + $changes = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesTransferred⚡️Changes($changes); + after_changes: $result['changes'] = $changes; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; - $value = $payload['pull'] ?? null; - - if ($value === null) { - $missingFields[] = 'pull'; - goto after_pull; - } + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; - $properties['pull'] = $value; - - after_pull: + + $issue = $object->issue; - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions', $exception, stack: $this->hydrationStack); - } + if ($issue === null) { + goto after_issue; + } + $issue = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesPinned⚡️Issue($issue); + after_issue: $result['issue'] = $issue; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + - public function serializeObject(object $object): mixed + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesUnassigned(mixed $object): mixed { - try { - $className = get_class($object); + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookIssuesUnassigned); + $result = []; + + $action = $object->action; - return match($className) { - 'array' => $this->serializeValuearray($object), - 'Ramsey\Uuid\UuidInterface' => $this->serializeValueRamsey⚡️Uuid⚡️UuidInterface($object), - 'DateTime' => $this->serializeValueDateTime($object), - 'DateTimeImmutable' => $this->serializeValueDateTimeImmutable($object), - 'DateTimeInterface' => $this->serializeValueDateTimeInterface($object), - 'ApiClients\Client\Github\Schema\WebhookIssuesUnpinned' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesUnpinned($object), - default => throw new \LogicException('No serialization defined for $className'), - }; - } catch (\Throwable $exception) { - throw UnableToSerializeObject::dueToError($className, $exception); + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $assignee = $object->assignee; + + if ($assignee === null) { + goto after_assignee; + } + $assignee = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Comment⚡️User($assignee); + after_assignee: $result['assignee'] = $assignee; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $issue = $object->issue; + + if ($issue === null) { + goto after_issue; + } + $issue = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesAssigned⚡️Issue($issue); + after_issue: $result['issue'] = $issue; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; } + - - private function serializeValuearray(mixed $value): mixed + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesUnlabeled(mixed $object): mixed { - static $serializer; + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookIssuesUnlabeled); + $result = []; - if ($serializer === null) { - $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeArrayItems(...array ( -)); + $action = $object->action; + + if ($action === null) { + goto after_action; } + after_action: $result['action'] = $action; + - return $serializer->serialize($value, $this); - } + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; - private function serializeValueRamsey⚡️Uuid⚡️UuidInterface(mixed $value): mixed - { - static $serializer; - if ($serializer === null) { - $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeUuidToString(...array ( -)); + $issue = $object->issue; + + if ($issue === null) { + goto after_issue; } + $issue = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesAssigned⚡️Issue($issue); + after_issue: $result['issue'] = $issue; + - return $serializer->serialize($value, $this); - } + $label = $object->label; + $label = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionLabeled⚡️Label($label); + after_label: $result['label'] = $label; + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; - private function serializeValueDateTime(mixed $value): mixed - { - static $serializer; - if ($serializer === null) { - $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeDateTime(...array ( -)); + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + - return $serializer->serialize($value, $this); - } + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; - private function serializeValueDateTimeImmutable(mixed $value): mixed + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesUnlocked(mixed $object): mixed { - static $serializer; + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookIssuesUnlocked); + $result = []; - if ($serializer === null) { - $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeDateTime(...array ( -)); + $action = $object->action; + + if ($action === null) { + goto after_action; } + after_action: $result['action'] = $action; + - return $serializer->serialize($value, $this); - } + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; - private function serializeValueDateTimeInterface(mixed $value): mixed - { - static $serializer; - if ($serializer === null) { - $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeDateTime(...array ( -)); + $issue = $object->issue; + + if ($issue === null) { + goto after_issue; } + after_issue: $result['issue'] = $issue; + - return $serializer->serialize($value, $this); + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; } diff --git a/src/Hydrator/WebHook/Label.php b/src/Hydrator/WebHook/Label.php index b04306d137..cf1e9a9d76 100644 --- a/src/Hydrator/WebHook/Label.php +++ b/src/Hydrator/WebHook/Label.php @@ -23,19 +23,21 @@ public function __construct() {} public function hydrateObject(string $className, array $payload): object { return match($className) { - 'ApiClients\Client\Github\Schema\WebhookLabelEdited' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookLabelEdited($payload), - 'ApiClients\Client\Github\Schema\WebhookLabelEdited\Changes' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookLabelEdited⚡️Changes($payload), + 'ApiClients\Client\Github\Schema\WebhookLabelCreated' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookLabelCreated($payload), + 'ApiClients\Client\Github\Schema\WebhookLabelDeleted' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookLabelDeleted($payload), + 'ApiClients\Client\Github\Schema\WebhookLabelEdited' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookLabelEdited($payload), 'ApiClients\Client\Github\Schema\Enterprise' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($payload), 'ApiClients\Client\Github\Schema\SimpleInstallation' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($payload), 'ApiClients\Client\Github\Schema\WebhookDiscussionLabeled\Label' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionLabeled⚡️Label($payload), 'ApiClients\Client\Github\Schema\OrganizationSimple' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($payload), 'ApiClients\Client\Github\Schema\Repository' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($payload), 'ApiClients\Client\Github\Schema\SimpleUser' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($payload), + 'ApiClients\Client\Github\Schema\WebhookLabelEdited\Changes' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookLabelEdited⚡️Changes($payload), + 'ApiClients\Client\Github\Schema\Repository\Permissions' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️Permissions($payload), + 'ApiClients\Client\Github\Schema\Repository\TemplateRepository' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository($payload), 'ApiClients\Client\Github\Schema\WebhookLabelEdited\Changes\Color' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookLabelEdited⚡️Changes⚡️Color($payload), 'ApiClients\Client\Github\Schema\WebhookLabelEdited\Changes\Description' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookLabelEdited⚡️Changes⚡️Description($payload), 'ApiClients\Client\Github\Schema\WebhookLabelEdited\Changes\Name' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookLabelEdited⚡️Changes⚡️Name($payload), - 'ApiClients\Client\Github\Schema\Repository\Permissions' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️Permissions($payload), - 'ApiClients\Client\Github\Schema\Repository\TemplateRepository' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository($payload), 'ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner($payload), 'ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Permissions($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), @@ -43,7 +45,7 @@ public function hydrateObject(string $className, array $payload): object } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookLabelEdited(array $payload): \ApiClients\Client\Github\Schema\WebhookLabelEdited + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookLabelCreated(array $payload): \ApiClients\Client\Github\Schema\WebhookLabelCreated { $properties = []; $missingFields = []; @@ -60,25 +62,158 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh after_action: - $value = $payload['changes'] ?? null; + $value = $payload['enterprise'] ?? null; if ($value === null) { - $missingFields[] = 'changes'; - goto after_changes; + $missingFields[] = 'enterprise'; + goto after_enterprise; } if (is_array($value)) { try { - $this->hydrationStack[] = 'changes'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookLabelEdited⚡️Changes($value); + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); } finally { array_pop($this->hydrationStack); } } - $properties['changes'] = $value; + $properties['enterprise'] = $value; - after_changes: + after_enterprise: + + $value = $payload['installation'] ?? null; + + if ($value === null) { + $missingFields[] = 'installation'; + goto after_installation; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; + + after_installation: + + $value = $payload['label'] ?? null; + + if ($value === null) { + $missingFields[] = 'label'; + goto after_label; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'label'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionLabeled⚡️Label($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['label'] = $value; + + after_label: + + $value = $payload['organization'] ?? null; + + if ($value === null) { + $missingFields[] = 'organization'; + goto after_organization; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; + + after_organization: + + $value = $payload['repository'] ?? null; + + if ($value === null) { + $missingFields[] = 'repository'; + goto after_repository; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repository'] = $value; + + after_repository: + + $value = $payload['sender'] ?? null; + + if ($value === null) { + $missingFields[] = 'sender'; + goto after_sender; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; + + after_sender: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookLabelCreated', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookLabelCreated::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookLabelCreated(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookLabelCreated', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookLabelDeleted(array $payload): \ApiClients\Client\Github\Schema\WebhookLabelDeleted + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; + + if ($value === null) { + $missingFields[] = 'action'; + goto after_action; + } + + $properties['action'] = $value; + + after_action: $value = $payload['enterprise'] ?? null; @@ -201,99 +336,190 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh after_sender: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookLabelEdited', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookLabelDeleted', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookLabelEdited::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookLabelDeleted::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\WebhookLabelEdited(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookLabelDeleted(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookLabelEdited', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookLabelDeleted', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookLabelEdited⚡️Changes(array $payload): \ApiClients\Client\Github\Schema\WebhookLabelEdited\Changes + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookLabelEdited(array $payload): \ApiClients\Client\Github\Schema\WebhookLabelEdited { $properties = []; $missingFields = []; try { - $value = $payload['color'] ?? null; + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'color'; - goto after_color; + $missingFields[] = 'action'; + goto after_action; + } + + $properties['action'] = $value; + + after_action: + + $value = $payload['changes'] ?? null; + + if ($value === null) { + $missingFields[] = 'changes'; + goto after_changes; } if (is_array($value)) { try { - $this->hydrationStack[] = 'color'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookLabelEdited⚡️Changes⚡️Color($value); + $this->hydrationStack[] = 'changes'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookLabelEdited⚡️Changes($value); } finally { array_pop($this->hydrationStack); } } - $properties['color'] = $value; + $properties['changes'] = $value; - after_color: + after_changes: - $value = $payload['description'] ?? null; + $value = $payload['enterprise'] ?? null; if ($value === null) { - $missingFields[] = 'description'; - goto after_description; + $missingFields[] = 'enterprise'; + goto after_enterprise; } if (is_array($value)) { try { - $this->hydrationStack[] = 'description'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookLabelEdited⚡️Changes⚡️Description($value); + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); } finally { array_pop($this->hydrationStack); } } - $properties['description'] = $value; + $properties['enterprise'] = $value; - after_description: + after_enterprise: - $value = $payload['name'] ?? null; + $value = $payload['installation'] ?? null; if ($value === null) { - $missingFields[] = 'name'; - goto after_name; + $missingFields[] = 'installation'; + goto after_installation; } if (is_array($value)) { try { - $this->hydrationStack[] = 'name'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookLabelEdited⚡️Changes⚡️Name($value); + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); } finally { array_pop($this->hydrationStack); } } - $properties['name'] = $value; + $properties['installation'] = $value; - after_name: + after_installation: + + $value = $payload['label'] ?? null; + + if ($value === null) { + $missingFields[] = 'label'; + goto after_label; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'label'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionLabeled⚡️Label($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['label'] = $value; + + after_label: + + $value = $payload['organization'] ?? null; + + if ($value === null) { + $missingFields[] = 'organization'; + goto after_organization; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; + + after_organization: + + $value = $payload['repository'] ?? null; + + if ($value === null) { + $missingFields[] = 'repository'; + goto after_repository; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repository'] = $value; + + after_repository: + + $value = $payload['sender'] ?? null; + + if ($value === null) { + $missingFields[] = 'sender'; + goto after_sender; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; + + after_sender: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookLabelEdited\Changes', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookLabelEdited', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookLabelEdited\Changes::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookLabelEdited::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\WebhookLabelEdited\Changes(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookLabelEdited(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookLabelEdited\Changes', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookLabelEdited', $exception, stack: $this->hydrationStack); } } @@ -2118,101 +2344,84 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Simp } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookLabelEdited⚡️Changes⚡️Color(array $payload): \ApiClients\Client\Github\Schema\WebhookLabelEdited\Changes\Color + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookLabelEdited⚡️Changes(array $payload): \ApiClients\Client\Github\Schema\WebhookLabelEdited\Changes { $properties = []; $missingFields = []; try { - $value = $payload['from'] ?? null; + $value = $payload['color'] ?? null; if ($value === null) { - $missingFields[] = 'from'; - goto after_from; + $missingFields[] = 'color'; + goto after_color; } - $properties['from'] = $value; - - after_from: + if (is_array($value)) { + try { + $this->hydrationStack[] = 'color'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookLabelEdited⚡️Changes⚡️Color($value); + } finally { + array_pop($this->hydrationStack); + } + } - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookLabelEdited\Changes\Color', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookLabelEdited\Changes\Color::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\WebhookLabelEdited\Changes\Color(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookLabelEdited\Changes\Color', $exception, stack: $this->hydrationStack); - } - } + $properties['color'] = $value; + + after_color: - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookLabelEdited⚡️Changes⚡️Description(array $payload): \ApiClients\Client\Github\Schema\WebhookLabelEdited\Changes\Description - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['from'] ?? null; + $value = $payload['description'] ?? null; if ($value === null) { - $missingFields[] = 'from'; - goto after_from; + $missingFields[] = 'description'; + goto after_description; } - $properties['from'] = $value; - - after_from: - - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookLabelEdited\Changes\Description', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookLabelEdited\Changes\Description::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\WebhookLabelEdited\Changes\Description(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookLabelEdited\Changes\Description', $exception, stack: $this->hydrationStack); - } - } - - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookLabelEdited⚡️Changes⚡️Name(array $payload): \ApiClients\Client\Github\Schema\WebhookLabelEdited\Changes\Name - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['from'] ?? null; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'description'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookLabelEdited⚡️Changes⚡️Description($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['name'] ?? null; if ($value === null) { - $missingFields[] = 'from'; - goto after_from; + $missingFields[] = 'name'; + goto after_name; } - $properties['from'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'name'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookLabelEdited⚡️Changes⚡️Name($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['name'] = $value; - after_from: + after_name: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookLabelEdited\Changes\Name', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookLabelEdited\Changes', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookLabelEdited\Changes\Name::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookLabelEdited\Changes::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\WebhookLabelEdited\Changes\Name(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookLabelEdited\Changes(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookLabelEdited\Changes\Name', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookLabelEdited\Changes', $exception, stack: $this->hydrationStack); } } @@ -3291,6 +3500,105 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repo } + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookLabelEdited⚡️Changes⚡️Color(array $payload): \ApiClients\Client\Github\Schema\WebhookLabelEdited\Changes\Color + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['from'] ?? null; + + if ($value === null) { + $missingFields[] = 'from'; + goto after_from; + } + + $properties['from'] = $value; + + after_from: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookLabelEdited\Changes\Color', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookLabelEdited\Changes\Color::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookLabelEdited\Changes\Color(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookLabelEdited\Changes\Color', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookLabelEdited⚡️Changes⚡️Description(array $payload): \ApiClients\Client\Github\Schema\WebhookLabelEdited\Changes\Description + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['from'] ?? null; + + if ($value === null) { + $missingFields[] = 'from'; + goto after_from; + } + + $properties['from'] = $value; + + after_from: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookLabelEdited\Changes\Description', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookLabelEdited\Changes\Description::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookLabelEdited\Changes\Description(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookLabelEdited\Changes\Description', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookLabelEdited⚡️Changes⚡️Name(array $payload): \ApiClients\Client\Github\Schema\WebhookLabelEdited\Changes\Name + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['from'] ?? null; + + if ($value === null) { + $missingFields[] = 'from'; + goto after_from; + } + + $properties['from'] = $value; + + after_from: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookLabelEdited\Changes\Name', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookLabelEdited\Changes\Name::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookLabelEdited\Changes\Name(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookLabelEdited\Changes\Name', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner(array $payload): \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner { $properties = []; @@ -3598,6 +3906,8 @@ public function serializeObject(object $object): mixed 'DateTime' => $this->serializeValueDateTime($object), 'DateTimeImmutable' => $this->serializeValueDateTimeImmutable($object), 'DateTimeInterface' => $this->serializeValueDateTimeInterface($object), + 'ApiClients\Client\Github\Schema\WebhookLabelCreated' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookLabelCreated($object), + 'ApiClients\Client\Github\Schema\WebhookLabelDeleted' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookLabelDeleted($object), 'ApiClients\Client\Github\Schema\WebhookLabelEdited' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookLabelEdited($object), default => throw new \LogicException('No serialization defined for $className'), }; @@ -3672,6 +3982,120 @@ private function serializeValueDateTimeInterface(mixed $value): mixed } + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookLabelCreated(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookLabelCreated); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $label = $object->label; + + if ($label === null) { + goto after_label; + } + $label = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionLabeled⚡️Label($label); + after_label: $result['label'] = $label; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookLabelDeleted(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookLabelDeleted); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $label = $object->label; + + if ($label === null) { + goto after_label; + } + $label = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionLabeled⚡️Label($label); + after_label: $result['label'] = $label; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookLabelEdited(mixed $object): mixed { \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookLabelEdited); diff --git a/src/Hydrator/WebHook/MarketplacePurchase.php b/src/Hydrator/WebHook/MarketplacePurchase.php index 4c98a245f7..1766ca8007 100644 --- a/src/Hydrator/WebHook/MarketplacePurchase.php +++ b/src/Hydrator/WebHook/MarketplacePurchase.php @@ -23,13 +23,19 @@ public function __construct() {} public function hydrateObject(string $className, array $payload): object { return match($className) { - 'ApiClients\Client\Github\Schema\WebhookMarketplacePurchasePurchased' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMarketplacePurchasePurchased($payload), + 'ApiClients\Client\Github\Schema\WebhookMarketplacePurchaseCancelled' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMarketplacePurchaseCancelled($payload), + 'ApiClients\Client\Github\Schema\WebhookMarketplacePurchaseChanged' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMarketplacePurchaseChanged($payload), + 'ApiClients\Client\Github\Schema\WebhookMarketplacePurchasePendingChange' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMarketplacePurchasePendingChange($payload), + 'ApiClients\Client\Github\Schema\WebhookMarketplacePurchasePendingChangeCancelled' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMarketplacePurchasePendingChangeCancelled($payload), + 'ApiClients\Client\Github\Schema\WebhookMarketplacePurchasePurchased' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMarketplacePurchasePurchased($payload), 'ApiClients\Client\Github\Schema\Enterprise' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($payload), 'ApiClients\Client\Github\Schema\SimpleInstallation' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($payload), 'ApiClients\Client\Github\Schema\OrganizationSimple' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($payload), 'ApiClients\Client\Github\Schema\WebhookMarketplacePurchaseCancelled\PreviousMarketplacePurchase' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMarketplacePurchaseCancelled⚡️PreviousMarketplacePurchase($payload), 'ApiClients\Client\Github\Schema\Repository' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($payload), 'ApiClients\Client\Github\Schema\SimpleUser' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($payload), + 'ApiClients\Client\Github\Schema\WebhookMarketplacePurchaseChanged\PreviousMarketplacePurchase' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMarketplacePurchaseChanged⚡️PreviousMarketplacePurchase($payload), + 'ApiClients\Client\Github\Schema\WebhookMarketplacePurchasePendingChange\PreviousMarketplacePurchase' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMarketplacePurchasePendingChange⚡️PreviousMarketplacePurchase($payload), 'ApiClients\Client\Github\Schema\WebhookMarketplacePurchaseCancelled\PreviousMarketplacePurchase\Account' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMarketplacePurchaseCancelled⚡️PreviousMarketplacePurchase⚡️Account($payload), 'ApiClients\Client\Github\Schema\WebhookMarketplacePurchaseCancelled\PreviousMarketplacePurchase\Plan' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMarketplacePurchaseCancelled⚡️PreviousMarketplacePurchase⚡️Plan($payload), 'ApiClients\Client\Github\Schema\Repository\Permissions' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️Permissions($payload), @@ -41,7 +47,7 @@ public function hydrateObject(string $className, array $payload): object } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMarketplacePurchasePurchased(array $payload): \ApiClients\Client\Github\Schema\WebhookMarketplacePurchasePurchased + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMarketplacePurchaseCancelled(array $payload): \ApiClients\Client\Github\Schema\WebhookMarketplacePurchaseCancelled { $properties = []; $missingFields = []; @@ -201,613 +207,727 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh after_sender: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookMarketplacePurchasePurchased', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookMarketplacePurchaseCancelled', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookMarketplacePurchasePurchased::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookMarketplacePurchaseCancelled::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\WebhookMarketplacePurchasePurchased(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookMarketplacePurchaseCancelled(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookMarketplacePurchasePurchased', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookMarketplacePurchaseCancelled', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise(array $payload): \ApiClients\Client\Github\Schema\Enterprise + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMarketplacePurchaseChanged(array $payload): \ApiClients\Client\Github\Schema\WebhookMarketplacePurchaseChanged { $properties = []; $missingFields = []; try { - $value = $payload['description'] ?? null; + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'description'; - goto after_description; + $missingFields[] = 'action'; + goto after_action; } - $properties['description'] = $value; + $properties['action'] = $value; - after_description: + after_action: - $value = $payload['html_url'] ?? null; + $value = $payload['effective_date'] ?? null; if ($value === null) { - $missingFields[] = 'html_url'; - goto after_html_url; + $missingFields[] = 'effective_date'; + goto after_effective_date; } - $properties['html_url'] = $value; + $properties['effective_date'] = $value; - after_html_url: + after_effective_date: - $value = $payload['website_url'] ?? null; + $value = $payload['enterprise'] ?? null; if ($value === null) { - $missingFields[] = 'website_url'; - goto after_website_url; + $missingFields[] = 'enterprise'; + goto after_enterprise; } - $properties['website_url'] = $value; - - after_website_url: - - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['id'] = $value; + $properties['enterprise'] = $value; - after_id: + after_enterprise: - $value = $payload['node_id'] ?? null; + $value = $payload['installation'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $missingFields[] = 'installation'; + goto after_installation; } - $properties['node_id'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; - after_node_id: + after_installation: - $value = $payload['name'] ?? null; + $value = $payload['marketplace_purchase'] ?? null; if ($value === null) { - $missingFields[] = 'name'; - goto after_name; + $properties['marketplace_purchase'] = null; + goto after_marketplace_purchase; } - $properties['name'] = $value; + $properties['marketplace_purchase'] = $value; - after_name: + after_marketplace_purchase: - $value = $payload['slug'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'slug'; - goto after_slug; + $missingFields[] = 'organization'; + goto after_organization; } - $properties['slug'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; - after_slug: + after_organization: - $value = $payload['created_at'] ?? null; + $value = $payload['previous_marketplace_purchase'] ?? null; if ($value === null) { - $missingFields[] = 'created_at'; - goto after_created_at; + $missingFields[] = 'previous_marketplace_purchase'; + goto after_previous_marketplace_purchase; } - $properties['created_at'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'previous_marketplace_purchase'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMarketplacePurchaseChanged⚡️PreviousMarketplacePurchase($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['previous_marketplace_purchase'] = $value; - after_created_at: + after_previous_marketplace_purchase: - $value = $payload['updated_at'] ?? null; + $value = $payload['repository'] ?? null; if ($value === null) { - $missingFields[] = 'updated_at'; - goto after_updated_at; + $missingFields[] = 'repository'; + goto after_repository; } - $properties['updated_at'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repository'] = $value; - after_updated_at: + after_repository: - $value = $payload['avatar_url'] ?? null; + $value = $payload['sender'] ?? null; if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatar_url; + $missingFields[] = 'sender'; + goto after_sender; } - $properties['avatar_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; - after_avatar_url: + after_sender: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Enterprise', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookMarketplacePurchaseChanged', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Enterprise::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookMarketplacePurchaseChanged::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\Enterprise(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookMarketplacePurchaseChanged(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Enterprise', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookMarketplacePurchaseChanged', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation(array $payload): \ApiClients\Client\Github\Schema\SimpleInstallation + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMarketplacePurchasePendingChange(array $payload): \ApiClients\Client\Github\Schema\WebhookMarketplacePurchasePendingChange { $properties = []; $missingFields = []; try { - $value = $payload['id'] ?? null; + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'action'; + goto after_action; } - $properties['id'] = $value; + $properties['action'] = $value; - after_id: + after_action: - $value = $payload['node_id'] ?? null; + $value = $payload['effective_date'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $missingFields[] = 'effective_date'; + goto after_effective_date; } - $properties['node_id'] = $value; + $properties['effective_date'] = $value; - after_node_id: - - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleInstallation', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\SimpleInstallation::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\SimpleInstallation(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleInstallation', $exception, stack: $this->hydrationStack); - } - } + after_effective_date: - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple(array $payload): \ApiClients\Client\Github\Schema\OrganizationSimple - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['login'] ?? null; + $value = $payload['enterprise'] ?? null; if ($value === null) { - $missingFields[] = 'login'; - goto after_login; + $missingFields[] = 'enterprise'; + goto after_enterprise; } - $properties['login'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['enterprise'] = $value; - after_login: + after_enterprise: - $value = $payload['id'] ?? null; + $value = $payload['installation'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'installation'; + goto after_installation; } - $properties['id'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; - after_id: + after_installation: - $value = $payload['node_id'] ?? null; + $value = $payload['marketplace_purchase'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $properties['marketplace_purchase'] = null; + goto after_marketplace_purchase; } - $properties['node_id'] = $value; + $properties['marketplace_purchase'] = $value; - after_node_id: + after_marketplace_purchase: - $value = $payload['url'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; - } - - $properties['url'] = $value; - - after_url: - - $value = $payload['repos_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_repos_url; + $missingFields[] = 'organization'; + goto after_organization; } - $properties['repos_url'] = $value; - - after_repos_url: - - $value = $payload['events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'events_url'; - goto after_events_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['events_url'] = $value; + $properties['organization'] = $value; - after_events_url: + after_organization: - $value = $payload['hooks_url'] ?? null; + $value = $payload['previous_marketplace_purchase'] ?? null; if ($value === null) { - $missingFields[] = 'hooks_url'; - goto after_hooks_url; + $missingFields[] = 'previous_marketplace_purchase'; + goto after_previous_marketplace_purchase; } - $properties['hooks_url'] = $value; - - after_hooks_url: - - $value = $payload['issues_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'issues_url'; - goto after_issues_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'previous_marketplace_purchase'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMarketplacePurchasePendingChange⚡️PreviousMarketplacePurchase($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['issues_url'] = $value; + $properties['previous_marketplace_purchase'] = $value; - after_issues_url: + after_previous_marketplace_purchase: - $value = $payload['members_url'] ?? null; + $value = $payload['repository'] ?? null; if ($value === null) { - $missingFields[] = 'members_url'; - goto after_members_url; + $missingFields[] = 'repository'; + goto after_repository; } - $properties['members_url'] = $value; - - after_members_url: - - $value = $payload['public_members_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'public_members_url'; - goto after_public_members_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['public_members_url'] = $value; + $properties['repository'] = $value; - after_public_members_url: + after_repository: - $value = $payload['avatar_url'] ?? null; + $value = $payload['sender'] ?? null; if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatar_url; + $missingFields[] = 'sender'; + goto after_sender; } - $properties['avatar_url'] = $value; - - after_avatar_url: - - $value = $payload['description'] ?? null; - - if ($value === null) { - $missingFields[] = 'description'; - goto after_description; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['description'] = $value; + $properties['sender'] = $value; - after_description: + after_sender: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\OrganizationSimple', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookMarketplacePurchasePendingChange', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\OrganizationSimple::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookMarketplacePurchasePendingChange::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\OrganizationSimple(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookMarketplacePurchasePendingChange(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\OrganizationSimple', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookMarketplacePurchasePendingChange', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMarketplacePurchaseCancelled⚡️PreviousMarketplacePurchase(array $payload): \ApiClients\Client\Github\Schema\WebhookMarketplacePurchaseCancelled\PreviousMarketplacePurchase + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMarketplacePurchasePendingChangeCancelled(array $payload): \ApiClients\Client\Github\Schema\WebhookMarketplacePurchasePendingChangeCancelled { $properties = []; $missingFields = []; try { - $value = $payload['account'] ?? null; + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'account'; - goto after_account; + $missingFields[] = 'action'; + goto after_action; + } + + $properties['action'] = $value; + + after_action: + + $value = $payload['effective_date'] ?? null; + + if ($value === null) { + $missingFields[] = 'effective_date'; + goto after_effective_date; + } + + $properties['effective_date'] = $value; + + after_effective_date: + + $value = $payload['enterprise'] ?? null; + + if ($value === null) { + $missingFields[] = 'enterprise'; + goto after_enterprise; } if (is_array($value)) { try { - $this->hydrationStack[] = 'account'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMarketplacePurchaseCancelled⚡️PreviousMarketplacePurchase⚡️Account($value); + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); } finally { array_pop($this->hydrationStack); } } - $properties['account'] = $value; + $properties['enterprise'] = $value; - after_account: + after_enterprise: - $value = $payload['billing_cycle'] ?? null; + $value = $payload['installation'] ?? null; if ($value === null) { - $missingFields[] = 'billing_cycle'; - goto after_billing_cycle; + $missingFields[] = 'installation'; + goto after_installation; } - $properties['billing_cycle'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; - after_billing_cycle: + after_installation: - $value = $payload['free_trial_ends_on'] ?? null; + $value = $payload['marketplace_purchase'] ?? null; if ($value === null) { - $properties['free_trial_ends_on'] = null; - goto after_free_trial_ends_on; + $properties['marketplace_purchase'] = null; + goto after_marketplace_purchase; } - $properties['free_trial_ends_on'] = $value; + $properties['marketplace_purchase'] = $value; - after_free_trial_ends_on: + after_marketplace_purchase: - $value = $payload['next_billing_date'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'next_billing_date'; - goto after_next_billing_date; + $missingFields[] = 'organization'; + goto after_organization; } - $properties['next_billing_date'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; - after_next_billing_date: + after_organization: - $value = $payload['on_free_trial'] ?? null; + $value = $payload['previous_marketplace_purchase'] ?? null; if ($value === null) { - $missingFields[] = 'on_free_trial'; - goto after_on_free_trial; + $missingFields[] = 'previous_marketplace_purchase'; + goto after_previous_marketplace_purchase; } - $properties['on_free_trial'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'previous_marketplace_purchase'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMarketplacePurchaseCancelled⚡️PreviousMarketplacePurchase($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['previous_marketplace_purchase'] = $value; - after_on_free_trial: + after_previous_marketplace_purchase: - $value = $payload['plan'] ?? null; + $value = $payload['repository'] ?? null; if ($value === null) { - $missingFields[] = 'plan'; - goto after_plan; + $missingFields[] = 'repository'; + goto after_repository; } if (is_array($value)) { try { - $this->hydrationStack[] = 'plan'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMarketplacePurchaseCancelled⚡️PreviousMarketplacePurchase⚡️Plan($value); + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); } finally { array_pop($this->hydrationStack); } } - $properties['plan'] = $value; + $properties['repository'] = $value; - after_plan: + after_repository: - $value = $payload['unit_count'] ?? null; + $value = $payload['sender'] ?? null; if ($value === null) { - $missingFields[] = 'unit_count'; - goto after_unit_count; + $missingFields[] = 'sender'; + goto after_sender; } - $properties['unit_count'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; - after_unit_count: + after_sender: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookMarketplacePurchaseCancelled\PreviousMarketplacePurchase', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookMarketplacePurchasePendingChangeCancelled', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookMarketplacePurchaseCancelled\PreviousMarketplacePurchase::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookMarketplacePurchasePendingChangeCancelled::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\WebhookMarketplacePurchaseCancelled\PreviousMarketplacePurchase(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookMarketplacePurchasePendingChangeCancelled(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookMarketplacePurchaseCancelled\PreviousMarketplacePurchase', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookMarketplacePurchasePendingChangeCancelled', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository(array $payload): \ApiClients\Client\Github\Schema\Repository + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMarketplacePurchasePurchased(array $payload): \ApiClients\Client\Github\Schema\WebhookMarketplacePurchasePurchased { $properties = []; $missingFields = []; try { - $value = $payload['id'] ?? null; + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'action'; + goto after_action; } - $properties['id'] = $value; + $properties['action'] = $value; - after_id: + after_action: - $value = $payload['node_id'] ?? null; + $value = $payload['effective_date'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $missingFields[] = 'effective_date'; + goto after_effective_date; } - $properties['node_id'] = $value; + $properties['effective_date'] = $value; - after_node_id: + after_effective_date: - $value = $payload['name'] ?? null; + $value = $payload['enterprise'] ?? null; if ($value === null) { - $missingFields[] = 'name'; - goto after_name; + $missingFields[] = 'enterprise'; + goto after_enterprise; } - $properties['name'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['enterprise'] = $value; - after_name: + after_enterprise: - $value = $payload['full_name'] ?? null; + $value = $payload['installation'] ?? null; if ($value === null) { - $missingFields[] = 'full_name'; - goto after_full_name; + $missingFields[] = 'installation'; + goto after_installation; } - $properties['full_name'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; - after_full_name: + after_installation: - $value = $payload['license'] ?? null; + $value = $payload['marketplace_purchase'] ?? null; if ($value === null) { - $properties['license'] = null; - goto after_license; + $properties['marketplace_purchase'] = null; + goto after_marketplace_purchase; } - $properties['license'] = $value; + $properties['marketplace_purchase'] = $value; - after_license: + after_marketplace_purchase: $value = $payload['organization'] ?? null; if ($value === null) { - $properties['organization'] = null; + $missingFields[] = 'organization'; goto after_organization; } - $properties['organization'] = $value; - - after_organization: - - $value = $payload['forks'] ?? null; - - if ($value === null) { - $missingFields[] = 'forks'; - goto after_forks; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['forks'] = $value; + $properties['organization'] = $value; - after_forks: + after_organization: - $value = $payload['permissions'] ?? null; + $value = $payload['previous_marketplace_purchase'] ?? null; if ($value === null) { - $missingFields[] = 'permissions'; - goto after_permissions; + $missingFields[] = 'previous_marketplace_purchase'; + goto after_previous_marketplace_purchase; } if (is_array($value)) { try { - $this->hydrationStack[] = 'permissions'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️Permissions($value); + $this->hydrationStack[] = 'previous_marketplace_purchase'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMarketplacePurchaseCancelled⚡️PreviousMarketplacePurchase($value); } finally { array_pop($this->hydrationStack); } } - $properties['permissions'] = $value; + $properties['previous_marketplace_purchase'] = $value; - after_permissions: + after_previous_marketplace_purchase: - $value = $payload['owner'] ?? null; + $value = $payload['repository'] ?? null; if ($value === null) { - $missingFields[] = 'owner'; - goto after_owner; + $missingFields[] = 'repository'; + goto after_repository; } if (is_array($value)) { try { - $this->hydrationStack[] = 'owner'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); } finally { array_pop($this->hydrationStack); } } - $properties['owner'] = $value; + $properties['repository'] = $value; - after_owner: + after_repository: - $value = $payload['private'] ?? null; + $value = $payload['sender'] ?? null; if ($value === null) { - $missingFields[] = 'private'; - goto after_private; + $missingFields[] = 'sender'; + goto after_sender; } - $properties['private'] = $value; - - after_private: - - $value = $payload['html_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'html_url'; - goto after_html_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['html_url'] = $value; + $properties['sender'] = $value; - after_html_url: + after_sender: + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookMarketplacePurchasePurchased', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookMarketplacePurchasePurchased::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookMarketplacePurchasePurchased(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookMarketplacePurchasePurchased', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise(array $payload): \ApiClients\Client\Github\Schema\Enterprise + { + $properties = []; + $missingFields = []; + try { + $value = $payload['description'] ?? null; if ($value === null) { @@ -819,1544 +939,1580 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repo after_description: - $value = $payload['fork'] ?? null; + $value = $payload['html_url'] ?? null; if ($value === null) { - $missingFields[] = 'fork'; - goto after_fork; + $missingFields[] = 'html_url'; + goto after_html_url; } - $properties['fork'] = $value; + $properties['html_url'] = $value; - after_fork: + after_html_url: - $value = $payload['url'] ?? null; + $value = $payload['website_url'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $missingFields[] = 'website_url'; + goto after_website_url; } - $properties['url'] = $value; + $properties['website_url'] = $value; - after_url: + after_website_url: - $value = $payload['archive_url'] ?? null; + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'archive_url'; - goto after_archive_url; + $missingFields[] = 'id'; + goto after_id; } - $properties['archive_url'] = $value; + $properties['id'] = $value; - after_archive_url: + after_id: - $value = $payload['assignees_url'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $missingFields[] = 'assignees_url'; - goto after_assignees_url; + $missingFields[] = 'node_id'; + goto after_node_id; } - $properties['assignees_url'] = $value; + $properties['node_id'] = $value; - after_assignees_url: + after_node_id: - $value = $payload['blobs_url'] ?? null; + $value = $payload['name'] ?? null; if ($value === null) { - $missingFields[] = 'blobs_url'; - goto after_blobs_url; + $missingFields[] = 'name'; + goto after_name; } - $properties['blobs_url'] = $value; + $properties['name'] = $value; - after_blobs_url: + after_name: - $value = $payload['branches_url'] ?? null; + $value = $payload['slug'] ?? null; if ($value === null) { - $missingFields[] = 'branches_url'; - goto after_branches_url; + $missingFields[] = 'slug'; + goto after_slug; } - $properties['branches_url'] = $value; + $properties['slug'] = $value; - after_branches_url: + after_slug: - $value = $payload['collaborators_url'] ?? null; + $value = $payload['created_at'] ?? null; if ($value === null) { - $missingFields[] = 'collaborators_url'; - goto after_collaborators_url; + $missingFields[] = 'created_at'; + goto after_created_at; } - $properties['collaborators_url'] = $value; + $properties['created_at'] = $value; - after_collaborators_url: + after_created_at: - $value = $payload['comments_url'] ?? null; + $value = $payload['updated_at'] ?? null; if ($value === null) { - $missingFields[] = 'comments_url'; - goto after_comments_url; + $missingFields[] = 'updated_at'; + goto after_updated_at; } - $properties['comments_url'] = $value; + $properties['updated_at'] = $value; - after_comments_url: + after_updated_at: - $value = $payload['commits_url'] ?? null; + $value = $payload['avatar_url'] ?? null; if ($value === null) { - $missingFields[] = 'commits_url'; - goto after_commits_url; + $missingFields[] = 'avatar_url'; + goto after_avatar_url; } - $properties['commits_url'] = $value; + $properties['avatar_url'] = $value; - after_commits_url: + after_avatar_url: - $value = $payload['compare_url'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Enterprise', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Enterprise::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\Enterprise(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Enterprise', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation(array $payload): \ApiClients\Client\Github\Schema\SimpleInstallation + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'compare_url'; - goto after_compare_url; + $missingFields[] = 'id'; + goto after_id; } - $properties['compare_url'] = $value; + $properties['id'] = $value; - after_compare_url: + after_id: - $value = $payload['contents_url'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $missingFields[] = 'contents_url'; - goto after_contents_url; + $missingFields[] = 'node_id'; + goto after_node_id; } - $properties['contents_url'] = $value; + $properties['node_id'] = $value; - after_contents_url: + after_node_id: - $value = $payload['contributors_url'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleInstallation', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\SimpleInstallation::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\SimpleInstallation(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleInstallation', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple(array $payload): \ApiClients\Client\Github\Schema\OrganizationSimple + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['login'] ?? null; if ($value === null) { - $missingFields[] = 'contributors_url'; - goto after_contributors_url; + $missingFields[] = 'login'; + goto after_login; } - $properties['contributors_url'] = $value; + $properties['login'] = $value; - after_contributors_url: + after_login: - $value = $payload['deployments_url'] ?? null; + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'deployments_url'; - goto after_deployments_url; + $missingFields[] = 'id'; + goto after_id; } - $properties['deployments_url'] = $value; + $properties['id'] = $value; - after_deployments_url: + after_id: - $value = $payload['downloads_url'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $missingFields[] = 'downloads_url'; - goto after_downloads_url; + $missingFields[] = 'node_id'; + goto after_node_id; } - $properties['downloads_url'] = $value; + $properties['node_id'] = $value; - after_downloads_url: + after_node_id: - $value = $payload['events_url'] ?? null; + $value = $payload['url'] ?? null; if ($value === null) { - $missingFields[] = 'events_url'; - goto after_events_url; + $missingFields[] = 'url'; + goto after_url; } - $properties['events_url'] = $value; + $properties['url'] = $value; - after_events_url: + after_url: - $value = $payload['forks_url'] ?? null; + $value = $payload['repos_url'] ?? null; if ($value === null) { - $missingFields[] = 'forks_url'; - goto after_forks_url; + $missingFields[] = 'repos_url'; + goto after_repos_url; } - $properties['forks_url'] = $value; + $properties['repos_url'] = $value; - after_forks_url: + after_repos_url: - $value = $payload['git_commits_url'] ?? null; + $value = $payload['events_url'] ?? null; if ($value === null) { - $missingFields[] = 'git_commits_url'; - goto after_git_commits_url; + $missingFields[] = 'events_url'; + goto after_events_url; } - $properties['git_commits_url'] = $value; + $properties['events_url'] = $value; - after_git_commits_url: + after_events_url: - $value = $payload['git_refs_url'] ?? null; + $value = $payload['hooks_url'] ?? null; if ($value === null) { - $missingFields[] = 'git_refs_url'; - goto after_git_refs_url; + $missingFields[] = 'hooks_url'; + goto after_hooks_url; } - $properties['git_refs_url'] = $value; + $properties['hooks_url'] = $value; - after_git_refs_url: + after_hooks_url: - $value = $payload['git_tags_url'] ?? null; + $value = $payload['issues_url'] ?? null; if ($value === null) { - $missingFields[] = 'git_tags_url'; - goto after_git_tags_url; + $missingFields[] = 'issues_url'; + goto after_issues_url; } - $properties['git_tags_url'] = $value; + $properties['issues_url'] = $value; - after_git_tags_url: + after_issues_url: - $value = $payload['git_url'] ?? null; + $value = $payload['members_url'] ?? null; if ($value === null) { - $missingFields[] = 'git_url'; - goto after_git_url; + $missingFields[] = 'members_url'; + goto after_members_url; } - $properties['git_url'] = $value; + $properties['members_url'] = $value; - after_git_url: + after_members_url: - $value = $payload['issue_comment_url'] ?? null; + $value = $payload['public_members_url'] ?? null; if ($value === null) { - $missingFields[] = 'issue_comment_url'; - goto after_issue_comment_url; + $missingFields[] = 'public_members_url'; + goto after_public_members_url; } - $properties['issue_comment_url'] = $value; + $properties['public_members_url'] = $value; - after_issue_comment_url: + after_public_members_url: - $value = $payload['issue_events_url'] ?? null; + $value = $payload['avatar_url'] ?? null; if ($value === null) { - $missingFields[] = 'issue_events_url'; - goto after_issue_events_url; + $missingFields[] = 'avatar_url'; + goto after_avatar_url; } - $properties['issue_events_url'] = $value; + $properties['avatar_url'] = $value; - after_issue_events_url: + after_avatar_url: - $value = $payload['issues_url'] ?? null; + $value = $payload['description'] ?? null; if ($value === null) { - $missingFields[] = 'issues_url'; - goto after_issues_url; + $missingFields[] = 'description'; + goto after_description; } - $properties['issues_url'] = $value; + $properties['description'] = $value; - after_issues_url: + after_description: - $value = $payload['keys_url'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\OrganizationSimple', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\OrganizationSimple::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\OrganizationSimple(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\OrganizationSimple', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMarketplacePurchaseCancelled⚡️PreviousMarketplacePurchase(array $payload): \ApiClients\Client\Github\Schema\WebhookMarketplacePurchaseCancelled\PreviousMarketplacePurchase + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['account'] ?? null; if ($value === null) { - $missingFields[] = 'keys_url'; - goto after_keys_url; + $missingFields[] = 'account'; + goto after_account; } - $properties['keys_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'account'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMarketplacePurchaseCancelled⚡️PreviousMarketplacePurchase⚡️Account($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['account'] = $value; - after_keys_url: + after_account: - $value = $payload['labels_url'] ?? null; + $value = $payload['billing_cycle'] ?? null; if ($value === null) { - $missingFields[] = 'labels_url'; - goto after_labels_url; + $missingFields[] = 'billing_cycle'; + goto after_billing_cycle; } - $properties['labels_url'] = $value; + $properties['billing_cycle'] = $value; - after_labels_url: + after_billing_cycle: - $value = $payload['languages_url'] ?? null; + $value = $payload['free_trial_ends_on'] ?? null; if ($value === null) { - $missingFields[] = 'languages_url'; - goto after_languages_url; + $properties['free_trial_ends_on'] = null; + goto after_free_trial_ends_on; } - $properties['languages_url'] = $value; + $properties['free_trial_ends_on'] = $value; - after_languages_url: + after_free_trial_ends_on: - $value = $payload['merges_url'] ?? null; + $value = $payload['next_billing_date'] ?? null; if ($value === null) { - $missingFields[] = 'merges_url'; - goto after_merges_url; + $missingFields[] = 'next_billing_date'; + goto after_next_billing_date; } - $properties['merges_url'] = $value; + $properties['next_billing_date'] = $value; - after_merges_url: + after_next_billing_date: - $value = $payload['milestones_url'] ?? null; + $value = $payload['on_free_trial'] ?? null; if ($value === null) { - $missingFields[] = 'milestones_url'; - goto after_milestones_url; + $missingFields[] = 'on_free_trial'; + goto after_on_free_trial; } - $properties['milestones_url'] = $value; + $properties['on_free_trial'] = $value; - after_milestones_url: + after_on_free_trial: - $value = $payload['notifications_url'] ?? null; + $value = $payload['plan'] ?? null; if ($value === null) { - $missingFields[] = 'notifications_url'; - goto after_notifications_url; + $missingFields[] = 'plan'; + goto after_plan; } - $properties['notifications_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'plan'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMarketplacePurchaseCancelled⚡️PreviousMarketplacePurchase⚡️Plan($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['plan'] = $value; - after_notifications_url: + after_plan: - $value = $payload['pulls_url'] ?? null; + $value = $payload['unit_count'] ?? null; if ($value === null) { - $missingFields[] = 'pulls_url'; - goto after_pulls_url; + $missingFields[] = 'unit_count'; + goto after_unit_count; } - $properties['pulls_url'] = $value; + $properties['unit_count'] = $value; - after_pulls_url: + after_unit_count: - $value = $payload['releases_url'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookMarketplacePurchaseCancelled\PreviousMarketplacePurchase', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookMarketplacePurchaseCancelled\PreviousMarketplacePurchase::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookMarketplacePurchaseCancelled\PreviousMarketplacePurchase(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookMarketplacePurchaseCancelled\PreviousMarketplacePurchase', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository(array $payload): \ApiClients\Client\Github\Schema\Repository + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'releases_url'; - goto after_releases_url; + $missingFields[] = 'id'; + goto after_id; } - $properties['releases_url'] = $value; + $properties['id'] = $value; - after_releases_url: + after_id: - $value = $payload['ssh_url'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $missingFields[] = 'ssh_url'; - goto after_ssh_url; + $missingFields[] = 'node_id'; + goto after_node_id; } - $properties['ssh_url'] = $value; + $properties['node_id'] = $value; - after_ssh_url: + after_node_id: - $value = $payload['stargazers_url'] ?? null; + $value = $payload['name'] ?? null; if ($value === null) { - $missingFields[] = 'stargazers_url'; - goto after_stargazers_url; + $missingFields[] = 'name'; + goto after_name; } - $properties['stargazers_url'] = $value; + $properties['name'] = $value; - after_stargazers_url: + after_name: - $value = $payload['statuses_url'] ?? null; + $value = $payload['full_name'] ?? null; if ($value === null) { - $missingFields[] = 'statuses_url'; - goto after_statuses_url; + $missingFields[] = 'full_name'; + goto after_full_name; } - $properties['statuses_url'] = $value; + $properties['full_name'] = $value; - after_statuses_url: + after_full_name: - $value = $payload['subscribers_url'] ?? null; + $value = $payload['license'] ?? null; if ($value === null) { - $missingFields[] = 'subscribers_url'; - goto after_subscribers_url; + $properties['license'] = null; + goto after_license; } - $properties['subscribers_url'] = $value; + $properties['license'] = $value; - after_subscribers_url: + after_license: - $value = $payload['subscription_url'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'subscription_url'; - goto after_subscription_url; + $properties['organization'] = null; + goto after_organization; } - $properties['subscription_url'] = $value; + $properties['organization'] = $value; - after_subscription_url: + after_organization: - $value = $payload['tags_url'] ?? null; + $value = $payload['forks'] ?? null; if ($value === null) { - $missingFields[] = 'tags_url'; - goto after_tags_url; + $missingFields[] = 'forks'; + goto after_forks; } - $properties['tags_url'] = $value; + $properties['forks'] = $value; - after_tags_url: + after_forks: - $value = $payload['teams_url'] ?? null; + $value = $payload['permissions'] ?? null; if ($value === null) { - $missingFields[] = 'teams_url'; - goto after_teams_url; + $missingFields[] = 'permissions'; + goto after_permissions; } - $properties['teams_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'permissions'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️Permissions($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['permissions'] = $value; - after_teams_url: + after_permissions: - $value = $payload['trees_url'] ?? null; + $value = $payload['owner'] ?? null; if ($value === null) { - $missingFields[] = 'trees_url'; - goto after_trees_url; + $missingFields[] = 'owner'; + goto after_owner; } - $properties['trees_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'owner'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['owner'] = $value; - after_trees_url: + after_owner: - $value = $payload['clone_url'] ?? null; + $value = $payload['private'] ?? null; if ($value === null) { - $missingFields[] = 'clone_url'; - goto after_clone_url; + $missingFields[] = 'private'; + goto after_private; } - $properties['clone_url'] = $value; + $properties['private'] = $value; - after_clone_url: + after_private: - $value = $payload['mirror_url'] ?? null; + $value = $payload['html_url'] ?? null; if ($value === null) { - $missingFields[] = 'mirror_url'; - goto after_mirror_url; + $missingFields[] = 'html_url'; + goto after_html_url; } - $properties['mirror_url'] = $value; + $properties['html_url'] = $value; - after_mirror_url: + after_html_url: - $value = $payload['hooks_url'] ?? null; + $value = $payload['description'] ?? null; if ($value === null) { - $missingFields[] = 'hooks_url'; - goto after_hooks_url; + $missingFields[] = 'description'; + goto after_description; } - $properties['hooks_url'] = $value; + $properties['description'] = $value; - after_hooks_url: + after_description: - $value = $payload['svn_url'] ?? null; + $value = $payload['fork'] ?? null; if ($value === null) { - $missingFields[] = 'svn_url'; - goto after_svn_url; + $missingFields[] = 'fork'; + goto after_fork; } - $properties['svn_url'] = $value; + $properties['fork'] = $value; - after_svn_url: + after_fork: - $value = $payload['homepage'] ?? null; + $value = $payload['url'] ?? null; if ($value === null) { - $missingFields[] = 'homepage'; - goto after_homepage; + $missingFields[] = 'url'; + goto after_url; } - $properties['homepage'] = $value; + $properties['url'] = $value; - after_homepage: + after_url: - $value = $payload['language'] ?? null; + $value = $payload['archive_url'] ?? null; if ($value === null) { - $missingFields[] = 'language'; - goto after_language; + $missingFields[] = 'archive_url'; + goto after_archive_url; } - $properties['language'] = $value; + $properties['archive_url'] = $value; - after_language: + after_archive_url: - $value = $payload['forks_count'] ?? null; + $value = $payload['assignees_url'] ?? null; if ($value === null) { - $missingFields[] = 'forks_count'; - goto after_forks_count; + $missingFields[] = 'assignees_url'; + goto after_assignees_url; } - $properties['forks_count'] = $value; + $properties['assignees_url'] = $value; - after_forks_count: + after_assignees_url: - $value = $payload['stargazers_count'] ?? null; + $value = $payload['blobs_url'] ?? null; if ($value === null) { - $missingFields[] = 'stargazers_count'; - goto after_stargazers_count; + $missingFields[] = 'blobs_url'; + goto after_blobs_url; } - $properties['stargazers_count'] = $value; + $properties['blobs_url'] = $value; - after_stargazers_count: + after_blobs_url: - $value = $payload['watchers_count'] ?? null; + $value = $payload['branches_url'] ?? null; if ($value === null) { - $missingFields[] = 'watchers_count'; - goto after_watchers_count; + $missingFields[] = 'branches_url'; + goto after_branches_url; } - $properties['watchers_count'] = $value; + $properties['branches_url'] = $value; - after_watchers_count: + after_branches_url: - $value = $payload['size'] ?? null; + $value = $payload['collaborators_url'] ?? null; if ($value === null) { - $missingFields[] = 'size'; - goto after_size; + $missingFields[] = 'collaborators_url'; + goto after_collaborators_url; } - $properties['size'] = $value; + $properties['collaborators_url'] = $value; - after_size: + after_collaborators_url: - $value = $payload['default_branch'] ?? null; + $value = $payload['comments_url'] ?? null; if ($value === null) { - $missingFields[] = 'default_branch'; - goto after_default_branch; + $missingFields[] = 'comments_url'; + goto after_comments_url; } - $properties['default_branch'] = $value; + $properties['comments_url'] = $value; - after_default_branch: + after_comments_url: - $value = $payload['open_issues_count'] ?? null; + $value = $payload['commits_url'] ?? null; if ($value === null) { - $missingFields[] = 'open_issues_count'; - goto after_open_issues_count; + $missingFields[] = 'commits_url'; + goto after_commits_url; } - $properties['open_issues_count'] = $value; + $properties['commits_url'] = $value; - after_open_issues_count: + after_commits_url: - $value = $payload['is_template'] ?? null; + $value = $payload['compare_url'] ?? null; if ($value === null) { - $missingFields[] = 'is_template'; - goto after_is_template; + $missingFields[] = 'compare_url'; + goto after_compare_url; } - $properties['is_template'] = $value; + $properties['compare_url'] = $value; - after_is_template: + after_compare_url: - $value = $payload['topics'] ?? null; + $value = $payload['contents_url'] ?? null; if ($value === null) { - $missingFields[] = 'topics'; - goto after_topics; + $missingFields[] = 'contents_url'; + goto after_contents_url; } - $properties['topics'] = $value; + $properties['contents_url'] = $value; - after_topics: + after_contents_url: - $value = $payload['has_issues'] ?? null; + $value = $payload['contributors_url'] ?? null; if ($value === null) { - $missingFields[] = 'has_issues'; - goto after_has_issues; + $missingFields[] = 'contributors_url'; + goto after_contributors_url; } - $properties['has_issues'] = $value; + $properties['contributors_url'] = $value; - after_has_issues: + after_contributors_url: - $value = $payload['has_projects'] ?? null; + $value = $payload['deployments_url'] ?? null; if ($value === null) { - $missingFields[] = 'has_projects'; - goto after_has_projects; + $missingFields[] = 'deployments_url'; + goto after_deployments_url; } - $properties['has_projects'] = $value; + $properties['deployments_url'] = $value; - after_has_projects: + after_deployments_url: - $value = $payload['has_wiki'] ?? null; + $value = $payload['downloads_url'] ?? null; if ($value === null) { - $missingFields[] = 'has_wiki'; - goto after_has_wiki; + $missingFields[] = 'downloads_url'; + goto after_downloads_url; } - $properties['has_wiki'] = $value; + $properties['downloads_url'] = $value; - after_has_wiki: + after_downloads_url: - $value = $payload['has_pages'] ?? null; + $value = $payload['events_url'] ?? null; if ($value === null) { - $missingFields[] = 'has_pages'; - goto after_has_pages; + $missingFields[] = 'events_url'; + goto after_events_url; } - $properties['has_pages'] = $value; + $properties['events_url'] = $value; - after_has_pages: + after_events_url: - $value = $payload['has_downloads'] ?? null; + $value = $payload['forks_url'] ?? null; if ($value === null) { - $missingFields[] = 'has_downloads'; - goto after_has_downloads; + $missingFields[] = 'forks_url'; + goto after_forks_url; } - $properties['has_downloads'] = $value; + $properties['forks_url'] = $value; - after_has_downloads: + after_forks_url: - $value = $payload['has_discussions'] ?? null; + $value = $payload['git_commits_url'] ?? null; if ($value === null) { - $missingFields[] = 'has_discussions'; - goto after_has_discussions; + $missingFields[] = 'git_commits_url'; + goto after_git_commits_url; } - $properties['has_discussions'] = $value; + $properties['git_commits_url'] = $value; - after_has_discussions: + after_git_commits_url: - $value = $payload['archived'] ?? null; + $value = $payload['git_refs_url'] ?? null; if ($value === null) { - $missingFields[] = 'archived'; - goto after_archived; + $missingFields[] = 'git_refs_url'; + goto after_git_refs_url; } - $properties['archived'] = $value; + $properties['git_refs_url'] = $value; - after_archived: + after_git_refs_url: - $value = $payload['disabled'] ?? null; + $value = $payload['git_tags_url'] ?? null; if ($value === null) { - $missingFields[] = 'disabled'; - goto after_disabled; + $missingFields[] = 'git_tags_url'; + goto after_git_tags_url; } - $properties['disabled'] = $value; + $properties['git_tags_url'] = $value; - after_disabled: + after_git_tags_url: - $value = $payload['visibility'] ?? null; + $value = $payload['git_url'] ?? null; if ($value === null) { - $missingFields[] = 'visibility'; - goto after_visibility; + $missingFields[] = 'git_url'; + goto after_git_url; } - $properties['visibility'] = $value; + $properties['git_url'] = $value; - after_visibility: + after_git_url: - $value = $payload['pushed_at'] ?? null; + $value = $payload['issue_comment_url'] ?? null; if ($value === null) { - $missingFields[] = 'pushed_at'; - goto after_pushed_at; + $missingFields[] = 'issue_comment_url'; + goto after_issue_comment_url; } - $properties['pushed_at'] = $value; + $properties['issue_comment_url'] = $value; - after_pushed_at: + after_issue_comment_url: - $value = $payload['created_at'] ?? null; + $value = $payload['issue_events_url'] ?? null; if ($value === null) { - $missingFields[] = 'created_at'; - goto after_created_at; + $missingFields[] = 'issue_events_url'; + goto after_issue_events_url; } - $properties['created_at'] = $value; + $properties['issue_events_url'] = $value; - after_created_at: + after_issue_events_url: - $value = $payload['updated_at'] ?? null; + $value = $payload['issues_url'] ?? null; if ($value === null) { - $missingFields[] = 'updated_at'; - goto after_updated_at; + $missingFields[] = 'issues_url'; + goto after_issues_url; } - $properties['updated_at'] = $value; + $properties['issues_url'] = $value; - after_updated_at: + after_issues_url: - $value = $payload['allow_rebase_merge'] ?? null; + $value = $payload['keys_url'] ?? null; if ($value === null) { - $missingFields[] = 'allow_rebase_merge'; - goto after_allow_rebase_merge; + $missingFields[] = 'keys_url'; + goto after_keys_url; } - $properties['allow_rebase_merge'] = $value; + $properties['keys_url'] = $value; - after_allow_rebase_merge: + after_keys_url: - $value = $payload['template_repository'] ?? null; + $value = $payload['labels_url'] ?? null; if ($value === null) { - $missingFields[] = 'template_repository'; - goto after_template_repository; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'template_repository'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'labels_url'; + goto after_labels_url; } - $properties['template_repository'] = $value; + $properties['labels_url'] = $value; - after_template_repository: + after_labels_url: - $value = $payload['temp_clone_token'] ?? null; + $value = $payload['languages_url'] ?? null; if ($value === null) { - $missingFields[] = 'temp_clone_token'; - goto after_temp_clone_token; + $missingFields[] = 'languages_url'; + goto after_languages_url; } - $properties['temp_clone_token'] = $value; + $properties['languages_url'] = $value; - after_temp_clone_token: + after_languages_url: - $value = $payload['allow_squash_merge'] ?? null; + $value = $payload['merges_url'] ?? null; if ($value === null) { - $missingFields[] = 'allow_squash_merge'; - goto after_allow_squash_merge; + $missingFields[] = 'merges_url'; + goto after_merges_url; } - $properties['allow_squash_merge'] = $value; + $properties['merges_url'] = $value; - after_allow_squash_merge: + after_merges_url: - $value = $payload['allow_auto_merge'] ?? null; + $value = $payload['milestones_url'] ?? null; if ($value === null) { - $missingFields[] = 'allow_auto_merge'; - goto after_allow_auto_merge; + $missingFields[] = 'milestones_url'; + goto after_milestones_url; } - $properties['allow_auto_merge'] = $value; + $properties['milestones_url'] = $value; - after_allow_auto_merge: + after_milestones_url: - $value = $payload['delete_branch_on_merge'] ?? null; + $value = $payload['notifications_url'] ?? null; if ($value === null) { - $missingFields[] = 'delete_branch_on_merge'; - goto after_delete_branch_on_merge; + $missingFields[] = 'notifications_url'; + goto after_notifications_url; } - $properties['delete_branch_on_merge'] = $value; + $properties['notifications_url'] = $value; - after_delete_branch_on_merge: + after_notifications_url: - $value = $payload['allow_update_branch'] ?? null; + $value = $payload['pulls_url'] ?? null; if ($value === null) { - $missingFields[] = 'allow_update_branch'; - goto after_allow_update_branch; + $missingFields[] = 'pulls_url'; + goto after_pulls_url; } - $properties['allow_update_branch'] = $value; + $properties['pulls_url'] = $value; - after_allow_update_branch: + after_pulls_url: - $value = $payload['use_squash_pr_title_as_default'] ?? null; + $value = $payload['releases_url'] ?? null; if ($value === null) { - $missingFields[] = 'use_squash_pr_title_as_default'; - goto after_use_squash_pr_title_as_default; - } + $missingFields[] = 'releases_url'; + goto after_releases_url; + } - $properties['use_squash_pr_title_as_default'] = $value; + $properties['releases_url'] = $value; - after_use_squash_pr_title_as_default: + after_releases_url: - $value = $payload['squash_merge_commit_title'] ?? null; + $value = $payload['ssh_url'] ?? null; if ($value === null) { - $missingFields[] = 'squash_merge_commit_title'; - goto after_squash_merge_commit_title; + $missingFields[] = 'ssh_url'; + goto after_ssh_url; } - $properties['squash_merge_commit_title'] = $value; + $properties['ssh_url'] = $value; - after_squash_merge_commit_title: + after_ssh_url: - $value = $payload['squash_merge_commit_message'] ?? null; + $value = $payload['stargazers_url'] ?? null; if ($value === null) { - $missingFields[] = 'squash_merge_commit_message'; - goto after_squash_merge_commit_message; + $missingFields[] = 'stargazers_url'; + goto after_stargazers_url; } - $properties['squash_merge_commit_message'] = $value; + $properties['stargazers_url'] = $value; - after_squash_merge_commit_message: + after_stargazers_url: - $value = $payload['merge_commit_title'] ?? null; + $value = $payload['statuses_url'] ?? null; if ($value === null) { - $missingFields[] = 'merge_commit_title'; - goto after_merge_commit_title; + $missingFields[] = 'statuses_url'; + goto after_statuses_url; } - $properties['merge_commit_title'] = $value; + $properties['statuses_url'] = $value; - after_merge_commit_title: + after_statuses_url: - $value = $payload['merge_commit_message'] ?? null; + $value = $payload['subscribers_url'] ?? null; if ($value === null) { - $missingFields[] = 'merge_commit_message'; - goto after_merge_commit_message; + $missingFields[] = 'subscribers_url'; + goto after_subscribers_url; } - $properties['merge_commit_message'] = $value; + $properties['subscribers_url'] = $value; - after_merge_commit_message: + after_subscribers_url: - $value = $payload['allow_merge_commit'] ?? null; + $value = $payload['subscription_url'] ?? null; if ($value === null) { - $missingFields[] = 'allow_merge_commit'; - goto after_allow_merge_commit; + $missingFields[] = 'subscription_url'; + goto after_subscription_url; } - $properties['allow_merge_commit'] = $value; + $properties['subscription_url'] = $value; - after_allow_merge_commit: + after_subscription_url: - $value = $payload['allow_forking'] ?? null; + $value = $payload['tags_url'] ?? null; if ($value === null) { - $missingFields[] = 'allow_forking'; - goto after_allow_forking; + $missingFields[] = 'tags_url'; + goto after_tags_url; } - $properties['allow_forking'] = $value; + $properties['tags_url'] = $value; - after_allow_forking: + after_tags_url: - $value = $payload['web_commit_signoff_required'] ?? null; + $value = $payload['teams_url'] ?? null; if ($value === null) { - $missingFields[] = 'web_commit_signoff_required'; - goto after_web_commit_signoff_required; + $missingFields[] = 'teams_url'; + goto after_teams_url; } - $properties['web_commit_signoff_required'] = $value; + $properties['teams_url'] = $value; - after_web_commit_signoff_required: + after_teams_url: - $value = $payload['subscribers_count'] ?? null; + $value = $payload['trees_url'] ?? null; if ($value === null) { - $missingFields[] = 'subscribers_count'; - goto after_subscribers_count; + $missingFields[] = 'trees_url'; + goto after_trees_url; } - $properties['subscribers_count'] = $value; + $properties['trees_url'] = $value; - after_subscribers_count: + after_trees_url: - $value = $payload['network_count'] ?? null; + $value = $payload['clone_url'] ?? null; if ($value === null) { - $missingFields[] = 'network_count'; - goto after_network_count; + $missingFields[] = 'clone_url'; + goto after_clone_url; } - $properties['network_count'] = $value; + $properties['clone_url'] = $value; - after_network_count: + after_clone_url: - $value = $payload['open_issues'] ?? null; + $value = $payload['mirror_url'] ?? null; if ($value === null) { - $missingFields[] = 'open_issues'; - goto after_open_issues; + $missingFields[] = 'mirror_url'; + goto after_mirror_url; } - $properties['open_issues'] = $value; + $properties['mirror_url'] = $value; - after_open_issues: + after_mirror_url: - $value = $payload['watchers'] ?? null; + $value = $payload['hooks_url'] ?? null; if ($value === null) { - $missingFields[] = 'watchers'; - goto after_watchers; + $missingFields[] = 'hooks_url'; + goto after_hooks_url; } - $properties['watchers'] = $value; + $properties['hooks_url'] = $value; - after_watchers: + after_hooks_url: - $value = $payload['master_branch'] ?? null; + $value = $payload['svn_url'] ?? null; if ($value === null) { - $missingFields[] = 'master_branch'; - goto after_master_branch; + $missingFields[] = 'svn_url'; + goto after_svn_url; } - $properties['master_branch'] = $value; + $properties['svn_url'] = $value; - after_master_branch: + after_svn_url: - $value = $payload['starred_at'] ?? null; + $value = $payload['homepage'] ?? null; if ($value === null) { - $missingFields[] = 'starred_at'; - goto after_starred_at; + $missingFields[] = 'homepage'; + goto after_homepage; } - $properties['starred_at'] = $value; + $properties['homepage'] = $value; - after_starred_at: + after_homepage: - $value = $payload['anonymous_access_enabled'] ?? null; + $value = $payload['language'] ?? null; if ($value === null) { - $missingFields[] = 'anonymous_access_enabled'; - goto after_anonymous_access_enabled; + $missingFields[] = 'language'; + goto after_language; } - $properties['anonymous_access_enabled'] = $value; + $properties['language'] = $value; - after_anonymous_access_enabled: - - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\Repository(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository', $exception, stack: $this->hydrationStack); - } - } + after_language: - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser(array $payload): \ApiClients\Client\Github\Schema\SimpleUser - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['name'] ?? null; + $value = $payload['forks_count'] ?? null; if ($value === null) { - $missingFields[] = 'name'; - goto after_name; + $missingFields[] = 'forks_count'; + goto after_forks_count; } - $properties['name'] = $value; + $properties['forks_count'] = $value; - after_name: + after_forks_count: - $value = $payload['email'] ?? null; + $value = $payload['stargazers_count'] ?? null; if ($value === null) { - $missingFields[] = 'email'; - goto after_email; + $missingFields[] = 'stargazers_count'; + goto after_stargazers_count; } - $properties['email'] = $value; + $properties['stargazers_count'] = $value; - after_email: + after_stargazers_count: - $value = $payload['login'] ?? null; + $value = $payload['watchers_count'] ?? null; if ($value === null) { - $missingFields[] = 'login'; - goto after_login; + $missingFields[] = 'watchers_count'; + goto after_watchers_count; } - $properties['login'] = $value; + $properties['watchers_count'] = $value; - after_login: + after_watchers_count: - $value = $payload['id'] ?? null; + $value = $payload['size'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'size'; + goto after_size; } - $properties['id'] = $value; + $properties['size'] = $value; - after_id: + after_size: - $value = $payload['node_id'] ?? null; + $value = $payload['default_branch'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $missingFields[] = 'default_branch'; + goto after_default_branch; } - $properties['node_id'] = $value; + $properties['default_branch'] = $value; - after_node_id: + after_default_branch: - $value = $payload['avatar_url'] ?? null; + $value = $payload['open_issues_count'] ?? null; if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatar_url; + $missingFields[] = 'open_issues_count'; + goto after_open_issues_count; } - $properties['avatar_url'] = $value; + $properties['open_issues_count'] = $value; - after_avatar_url: + after_open_issues_count: - $value = $payload['gravatar_id'] ?? null; + $value = $payload['is_template'] ?? null; if ($value === null) { - $missingFields[] = 'gravatar_id'; - goto after_gravatar_id; + $missingFields[] = 'is_template'; + goto after_is_template; } - $properties['gravatar_id'] = $value; + $properties['is_template'] = $value; - after_gravatar_id: + after_is_template: - $value = $payload['url'] ?? null; + $value = $payload['topics'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $missingFields[] = 'topics'; + goto after_topics; } - $properties['url'] = $value; + $properties['topics'] = $value; - after_url: + after_topics: - $value = $payload['html_url'] ?? null; + $value = $payload['has_issues'] ?? null; if ($value === null) { - $missingFields[] = 'html_url'; - goto after_html_url; + $missingFields[] = 'has_issues'; + goto after_has_issues; } - $properties['html_url'] = $value; + $properties['has_issues'] = $value; - after_html_url: + after_has_issues: - $value = $payload['followers_url'] ?? null; + $value = $payload['has_projects'] ?? null; if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followers_url; + $missingFields[] = 'has_projects'; + goto after_has_projects; } - $properties['followers_url'] = $value; + $properties['has_projects'] = $value; - after_followers_url: + after_has_projects: - $value = $payload['following_url'] ?? null; + $value = $payload['has_wiki'] ?? null; if ($value === null) { - $missingFields[] = 'following_url'; - goto after_following_url; + $missingFields[] = 'has_wiki'; + goto after_has_wiki; } - $properties['following_url'] = $value; + $properties['has_wiki'] = $value; - after_following_url: + after_has_wiki: - $value = $payload['gists_url'] ?? null; + $value = $payload['has_pages'] ?? null; if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gists_url; + $missingFields[] = 'has_pages'; + goto after_has_pages; } - $properties['gists_url'] = $value; + $properties['has_pages'] = $value; - after_gists_url: + after_has_pages: - $value = $payload['starred_url'] ?? null; + $value = $payload['has_downloads'] ?? null; if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starred_url; + $missingFields[] = 'has_downloads'; + goto after_has_downloads; } - $properties['starred_url'] = $value; + $properties['has_downloads'] = $value; - after_starred_url: + after_has_downloads: - $value = $payload['subscriptions_url'] ?? null; + $value = $payload['has_discussions'] ?? null; if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptions_url; + $missingFields[] = 'has_discussions'; + goto after_has_discussions; } - $properties['subscriptions_url'] = $value; + $properties['has_discussions'] = $value; - after_subscriptions_url: + after_has_discussions: - $value = $payload['organizations_url'] ?? null; + $value = $payload['archived'] ?? null; if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizations_url; + $missingFields[] = 'archived'; + goto after_archived; } - $properties['organizations_url'] = $value; + $properties['archived'] = $value; - after_organizations_url: + after_archived: - $value = $payload['repos_url'] ?? null; + $value = $payload['disabled'] ?? null; if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_repos_url; + $missingFields[] = 'disabled'; + goto after_disabled; } - $properties['repos_url'] = $value; + $properties['disabled'] = $value; - after_repos_url: + after_disabled: - $value = $payload['events_url'] ?? null; + $value = $payload['visibility'] ?? null; if ($value === null) { - $missingFields[] = 'events_url'; - goto after_events_url; + $missingFields[] = 'visibility'; + goto after_visibility; } - $properties['events_url'] = $value; + $properties['visibility'] = $value; - after_events_url: + after_visibility: - $value = $payload['received_events_url'] ?? null; + $value = $payload['pushed_at'] ?? null; if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_received_events_url; + $missingFields[] = 'pushed_at'; + goto after_pushed_at; } - $properties['received_events_url'] = $value; + $properties['pushed_at'] = $value; - after_received_events_url: + after_pushed_at: - $value = $payload['type'] ?? null; + $value = $payload['created_at'] ?? null; if ($value === null) { - $missingFields[] = 'type'; - goto after_type; + $missingFields[] = 'created_at'; + goto after_created_at; } - $properties['type'] = $value; + $properties['created_at'] = $value; - after_type: + after_created_at: - $value = $payload['site_admin'] ?? null; + $value = $payload['updated_at'] ?? null; if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_site_admin; + $missingFields[] = 'updated_at'; + goto after_updated_at; } - $properties['site_admin'] = $value; + $properties['updated_at'] = $value; - after_site_admin: + after_updated_at: - $value = $payload['starred_at'] ?? null; + $value = $payload['allow_rebase_merge'] ?? null; if ($value === null) { - $missingFields[] = 'starred_at'; - goto after_starred_at; + $missingFields[] = 'allow_rebase_merge'; + goto after_allow_rebase_merge; } - $properties['starred_at'] = $value; + $properties['allow_rebase_merge'] = $value; - after_starred_at: - - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleUser', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\SimpleUser::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\SimpleUser(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleUser', $exception, stack: $this->hydrationStack); - } - } + after_allow_rebase_merge: - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMarketplacePurchaseCancelled⚡️PreviousMarketplacePurchase⚡️Account(array $payload): \ApiClients\Client\Github\Schema\WebhookMarketplacePurchaseCancelled\PreviousMarketplacePurchase\Account - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['id'] ?? null; + $value = $payload['template_repository'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'template_repository'; + goto after_template_repository; } - $properties['id'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'template_repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['template_repository'] = $value; - after_id: + after_template_repository: - $value = $payload['login'] ?? null; + $value = $payload['temp_clone_token'] ?? null; if ($value === null) { - $missingFields[] = 'login'; - goto after_login; + $missingFields[] = 'temp_clone_token'; + goto after_temp_clone_token; } - $properties['login'] = $value; + $properties['temp_clone_token'] = $value; - after_login: + after_temp_clone_token: - $value = $payload['node_id'] ?? null; + $value = $payload['allow_squash_merge'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $missingFields[] = 'allow_squash_merge'; + goto after_allow_squash_merge; } - $properties['node_id'] = $value; + $properties['allow_squash_merge'] = $value; - after_node_id: + after_allow_squash_merge: - $value = $payload['organization_billing_email'] ?? null; + $value = $payload['allow_auto_merge'] ?? null; if ($value === null) { - $missingFields[] = 'organization_billing_email'; - goto after_organization_billing_email; + $missingFields[] = 'allow_auto_merge'; + goto after_allow_auto_merge; } - $properties['organization_billing_email'] = $value; + $properties['allow_auto_merge'] = $value; - after_organization_billing_email: + after_allow_auto_merge: - $value = $payload['type'] ?? null; + $value = $payload['delete_branch_on_merge'] ?? null; if ($value === null) { - $missingFields[] = 'type'; - goto after_type; + $missingFields[] = 'delete_branch_on_merge'; + goto after_delete_branch_on_merge; } - $properties['type'] = $value; + $properties['delete_branch_on_merge'] = $value; - after_type: - - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookMarketplacePurchaseCancelled\PreviousMarketplacePurchase\Account', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookMarketplacePurchaseCancelled\PreviousMarketplacePurchase\Account::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\WebhookMarketplacePurchaseCancelled\PreviousMarketplacePurchase\Account(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookMarketplacePurchaseCancelled\PreviousMarketplacePurchase\Account', $exception, stack: $this->hydrationStack); - } - } + after_delete_branch_on_merge: - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMarketplacePurchaseCancelled⚡️PreviousMarketplacePurchase⚡️Plan(array $payload): \ApiClients\Client\Github\Schema\WebhookMarketplacePurchaseCancelled\PreviousMarketplacePurchase\Plan - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['bullets'] ?? null; + $value = $payload['allow_update_branch'] ?? null; if ($value === null) { - $missingFields[] = 'bullets'; - goto after_bullets; + $missingFields[] = 'allow_update_branch'; + goto after_allow_update_branch; } - $properties['bullets'] = $value; + $properties['allow_update_branch'] = $value; - after_bullets: + after_allow_update_branch: - $value = $payload['description'] ?? null; + $value = $payload['use_squash_pr_title_as_default'] ?? null; if ($value === null) { - $missingFields[] = 'description'; - goto after_description; + $missingFields[] = 'use_squash_pr_title_as_default'; + goto after_use_squash_pr_title_as_default; } - $properties['description'] = $value; + $properties['use_squash_pr_title_as_default'] = $value; - after_description: + after_use_squash_pr_title_as_default: - $value = $payload['has_free_trial'] ?? null; + $value = $payload['squash_merge_commit_title'] ?? null; if ($value === null) { - $missingFields[] = 'has_free_trial'; - goto after_has_free_trial; + $missingFields[] = 'squash_merge_commit_title'; + goto after_squash_merge_commit_title; } - $properties['has_free_trial'] = $value; + $properties['squash_merge_commit_title'] = $value; - after_has_free_trial: + after_squash_merge_commit_title: - $value = $payload['id'] ?? null; + $value = $payload['squash_merge_commit_message'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'squash_merge_commit_message'; + goto after_squash_merge_commit_message; } - $properties['id'] = $value; + $properties['squash_merge_commit_message'] = $value; - after_id: + after_squash_merge_commit_message: - $value = $payload['monthly_price_in_cents'] ?? null; + $value = $payload['merge_commit_title'] ?? null; if ($value === null) { - $missingFields[] = 'monthly_price_in_cents'; - goto after_monthly_price_in_cents; + $missingFields[] = 'merge_commit_title'; + goto after_merge_commit_title; } - $properties['monthly_price_in_cents'] = $value; + $properties['merge_commit_title'] = $value; - after_monthly_price_in_cents: + after_merge_commit_title: - $value = $payload['name'] ?? null; + $value = $payload['merge_commit_message'] ?? null; if ($value === null) { - $missingFields[] = 'name'; - goto after_name; + $missingFields[] = 'merge_commit_message'; + goto after_merge_commit_message; } - $properties['name'] = $value; + $properties['merge_commit_message'] = $value; - after_name: + after_merge_commit_message: - $value = $payload['price_model'] ?? null; + $value = $payload['allow_merge_commit'] ?? null; if ($value === null) { - $missingFields[] = 'price_model'; - goto after_price_model; + $missingFields[] = 'allow_merge_commit'; + goto after_allow_merge_commit; } - $properties['price_model'] = $value; + $properties['allow_merge_commit'] = $value; - after_price_model: + after_allow_merge_commit: - $value = $payload['unit_name'] ?? null; + $value = $payload['allow_forking'] ?? null; if ($value === null) { - $missingFields[] = 'unit_name'; - goto after_unit_name; + $missingFields[] = 'allow_forking'; + goto after_allow_forking; } - $properties['unit_name'] = $value; + $properties['allow_forking'] = $value; - after_unit_name: + after_allow_forking: - $value = $payload['yearly_price_in_cents'] ?? null; + $value = $payload['web_commit_signoff_required'] ?? null; if ($value === null) { - $missingFields[] = 'yearly_price_in_cents'; - goto after_yearly_price_in_cents; + $missingFields[] = 'web_commit_signoff_required'; + goto after_web_commit_signoff_required; } - $properties['yearly_price_in_cents'] = $value; + $properties['web_commit_signoff_required'] = $value; - after_yearly_price_in_cents: + after_web_commit_signoff_required: - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookMarketplacePurchaseCancelled\PreviousMarketplacePurchase\Plan', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookMarketplacePurchaseCancelled\PreviousMarketplacePurchase\Plan::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\WebhookMarketplacePurchaseCancelled\PreviousMarketplacePurchase\Plan(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookMarketplacePurchaseCancelled\PreviousMarketplacePurchase\Plan', $exception, stack: $this->hydrationStack); - } - } + $value = $payload['subscribers_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscribers_count'; + goto after_subscribers_count; + } - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️Permissions(array $payload): \ApiClients\Client\Github\Schema\Repository\Permissions - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['admin'] ?? null; + $properties['subscribers_count'] = $value; + + after_subscribers_count: + + $value = $payload['network_count'] ?? null; if ($value === null) { - $missingFields[] = 'admin'; - goto after_admin; + $missingFields[] = 'network_count'; + goto after_network_count; } - $properties['admin'] = $value; + $properties['network_count'] = $value; - after_admin: + after_network_count: - $value = $payload['pull'] ?? null; + $value = $payload['open_issues'] ?? null; if ($value === null) { - $missingFields[] = 'pull'; - goto after_pull; + $missingFields[] = 'open_issues'; + goto after_open_issues; } - $properties['pull'] = $value; + $properties['open_issues'] = $value; - after_pull: + after_open_issues: - $value = $payload['triage'] ?? null; + $value = $payload['watchers'] ?? null; if ($value === null) { - $missingFields[] = 'triage'; - goto after_triage; + $missingFields[] = 'watchers'; + goto after_watchers; } - $properties['triage'] = $value; + $properties['watchers'] = $value; - after_triage: + after_watchers: - $value = $payload['push'] ?? null; + $value = $payload['master_branch'] ?? null; if ($value === null) { - $missingFields[] = 'push'; - goto after_push; + $missingFields[] = 'master_branch'; + goto after_master_branch; } - $properties['push'] = $value; + $properties['master_branch'] = $value; - after_push: + after_master_branch: - $value = $payload['maintain'] ?? null; + $value = $payload['starred_at'] ?? null; if ($value === null) { - $missingFields[] = 'maintain'; - goto after_maintain; + $missingFields[] = 'starred_at'; + goto after_starred_at; } - $properties['maintain'] = $value; + $properties['starred_at'] = $value; - after_maintain: + after_starred_at: + + $value = $payload['anonymous_access_enabled'] ?? null; + + if ($value === null) { + $missingFields[] = 'anonymous_access_enabled'; + goto after_anonymous_access_enabled; + } + + $properties['anonymous_access_enabled'] = $value; + + after_anonymous_access_enabled: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\Permissions', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\Permissions::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\Repository\Permissions(...$properties); + return new \ApiClients\Client\Github\Schema\Repository(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\Permissions', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository(array $payload): \ApiClients\Client\Github\Schema\Repository\TemplateRepository + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser(array $payload): \ApiClients\Client\Github\Schema\SimpleUser { $properties = []; $missingFields = []; try { - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; - } - - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; - } - - $properties['node_id'] = $value; - - after_node_id: - $value = $payload['name'] ?? null; if ($value === null) { @@ -2368,80 +2524,71 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repo after_name: - $value = $payload['full_name'] ?? null; + $value = $payload['email'] ?? null; if ($value === null) { - $missingFields[] = 'full_name'; - goto after_full_name; + $missingFields[] = 'email'; + goto after_email; } - $properties['full_name'] = $value; + $properties['email'] = $value; - after_full_name: + after_email: - $value = $payload['owner'] ?? null; + $value = $payload['login'] ?? null; if ($value === null) { - $missingFields[] = 'owner'; - goto after_owner; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'owner'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'login'; + goto after_login; } - $properties['owner'] = $value; + $properties['login'] = $value; - after_owner: + after_login: - $value = $payload['private'] ?? null; + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'private'; - goto after_private; + $missingFields[] = 'id'; + goto after_id; } - $properties['private'] = $value; + $properties['id'] = $value; - after_private: + after_id: - $value = $payload['html_url'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $missingFields[] = 'html_url'; - goto after_html_url; + $missingFields[] = 'node_id'; + goto after_node_id; } - $properties['html_url'] = $value; + $properties['node_id'] = $value; - after_html_url: + after_node_id: - $value = $payload['description'] ?? null; + $value = $payload['avatar_url'] ?? null; if ($value === null) { - $missingFields[] = 'description'; - goto after_description; + $missingFields[] = 'avatar_url'; + goto after_avatar_url; } - $properties['description'] = $value; + $properties['avatar_url'] = $value; - after_description: + after_avatar_url: - $value = $payload['fork'] ?? null; + $value = $payload['gravatar_id'] ?? null; if ($value === null) { - $missingFields[] = 'fork'; - goto after_fork; + $missingFields[] = 'gravatar_id'; + goto after_gravatar_id; } - $properties['fork'] = $value; + $properties['gravatar_id'] = $value; - after_fork: + after_gravatar_id: $value = $payload['url'] ?? null; @@ -2454,1212 +2601,2009 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repo after_url: - $value = $payload['archive_url'] ?? null; + $value = $payload['html_url'] ?? null; if ($value === null) { - $missingFields[] = 'archive_url'; - goto after_archive_url; + $missingFields[] = 'html_url'; + goto after_html_url; } - $properties['archive_url'] = $value; + $properties['html_url'] = $value; - after_archive_url: + after_html_url: - $value = $payload['assignees_url'] ?? null; + $value = $payload['followers_url'] ?? null; if ($value === null) { - $missingFields[] = 'assignees_url'; - goto after_assignees_url; + $missingFields[] = 'followers_url'; + goto after_followers_url; } - $properties['assignees_url'] = $value; + $properties['followers_url'] = $value; - after_assignees_url: + after_followers_url: - $value = $payload['blobs_url'] ?? null; + $value = $payload['following_url'] ?? null; if ($value === null) { - $missingFields[] = 'blobs_url'; - goto after_blobs_url; + $missingFields[] = 'following_url'; + goto after_following_url; } - $properties['blobs_url'] = $value; + $properties['following_url'] = $value; - after_blobs_url: + after_following_url: - $value = $payload['branches_url'] ?? null; + $value = $payload['gists_url'] ?? null; if ($value === null) { - $missingFields[] = 'branches_url'; - goto after_branches_url; + $missingFields[] = 'gists_url'; + goto after_gists_url; } - $properties['branches_url'] = $value; + $properties['gists_url'] = $value; - after_branches_url: + after_gists_url: - $value = $payload['collaborators_url'] ?? null; + $value = $payload['starred_url'] ?? null; if ($value === null) { - $missingFields[] = 'collaborators_url'; - goto after_collaborators_url; + $missingFields[] = 'starred_url'; + goto after_starred_url; } - $properties['collaborators_url'] = $value; + $properties['starred_url'] = $value; - after_collaborators_url: + after_starred_url: - $value = $payload['comments_url'] ?? null; + $value = $payload['subscriptions_url'] ?? null; if ($value === null) { - $missingFields[] = 'comments_url'; - goto after_comments_url; + $missingFields[] = 'subscriptions_url'; + goto after_subscriptions_url; } - $properties['comments_url'] = $value; + $properties['subscriptions_url'] = $value; - after_comments_url: + after_subscriptions_url: - $value = $payload['commits_url'] ?? null; + $value = $payload['organizations_url'] ?? null; if ($value === null) { - $missingFields[] = 'commits_url'; - goto after_commits_url; + $missingFields[] = 'organizations_url'; + goto after_organizations_url; } - $properties['commits_url'] = $value; + $properties['organizations_url'] = $value; - after_commits_url: + after_organizations_url: - $value = $payload['compare_url'] ?? null; + $value = $payload['repos_url'] ?? null; if ($value === null) { - $missingFields[] = 'compare_url'; - goto after_compare_url; + $missingFields[] = 'repos_url'; + goto after_repos_url; } - $properties['compare_url'] = $value; + $properties['repos_url'] = $value; - after_compare_url: + after_repos_url: - $value = $payload['contents_url'] ?? null; + $value = $payload['events_url'] ?? null; if ($value === null) { - $missingFields[] = 'contents_url'; - goto after_contents_url; + $missingFields[] = 'events_url'; + goto after_events_url; } - $properties['contents_url'] = $value; + $properties['events_url'] = $value; - after_contents_url: + after_events_url: - $value = $payload['contributors_url'] ?? null; + $value = $payload['received_events_url'] ?? null; if ($value === null) { - $missingFields[] = 'contributors_url'; - goto after_contributors_url; + $missingFields[] = 'received_events_url'; + goto after_received_events_url; } - $properties['contributors_url'] = $value; + $properties['received_events_url'] = $value; - after_contributors_url: + after_received_events_url: - $value = $payload['deployments_url'] ?? null; + $value = $payload['type'] ?? null; if ($value === null) { - $missingFields[] = 'deployments_url'; - goto after_deployments_url; + $missingFields[] = 'type'; + goto after_type; } - $properties['deployments_url'] = $value; + $properties['type'] = $value; - after_deployments_url: + after_type: - $value = $payload['downloads_url'] ?? null; + $value = $payload['site_admin'] ?? null; if ($value === null) { - $missingFields[] = 'downloads_url'; - goto after_downloads_url; + $missingFields[] = 'site_admin'; + goto after_site_admin; } - $properties['downloads_url'] = $value; + $properties['site_admin'] = $value; - after_downloads_url: + after_site_admin: - $value = $payload['events_url'] ?? null; + $value = $payload['starred_at'] ?? null; if ($value === null) { - $missingFields[] = 'events_url'; - goto after_events_url; + $missingFields[] = 'starred_at'; + goto after_starred_at; } - $properties['events_url'] = $value; - - after_events_url: - - $value = $payload['forks_url'] ?? null; + $properties['starred_at'] = $value; - if ($value === null) { - $missingFields[] = 'forks_url'; - goto after_forks_url; - } + after_starred_at: - $properties['forks_url'] = $value; - - after_forks_url: + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleUser', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\SimpleUser::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\SimpleUser(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleUser', $exception, stack: $this->hydrationStack); + } + } - $value = $payload['git_commits_url'] ?? null; + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMarketplacePurchaseChanged⚡️PreviousMarketplacePurchase(array $payload): \ApiClients\Client\Github\Schema\WebhookMarketplacePurchaseChanged\PreviousMarketplacePurchase + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['account'] ?? null; if ($value === null) { - $missingFields[] = 'git_commits_url'; - goto after_git_commits_url; + $missingFields[] = 'account'; + goto after_account; } - $properties['git_commits_url'] = $value; - - after_git_commits_url: - - $value = $payload['git_refs_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'git_refs_url'; - goto after_git_refs_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'account'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMarketplacePurchaseCancelled⚡️PreviousMarketplacePurchase⚡️Account($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['git_refs_url'] = $value; + $properties['account'] = $value; - after_git_refs_url: + after_account: - $value = $payload['git_tags_url'] ?? null; + $value = $payload['billing_cycle'] ?? null; if ($value === null) { - $missingFields[] = 'git_tags_url'; - goto after_git_tags_url; + $missingFields[] = 'billing_cycle'; + goto after_billing_cycle; } - $properties['git_tags_url'] = $value; + $properties['billing_cycle'] = $value; - after_git_tags_url: + after_billing_cycle: - $value = $payload['git_url'] ?? null; + $value = $payload['free_trial_ends_on'] ?? null; if ($value === null) { - $missingFields[] = 'git_url'; - goto after_git_url; + $missingFields[] = 'free_trial_ends_on'; + goto after_free_trial_ends_on; } - $properties['git_url'] = $value; + $properties['free_trial_ends_on'] = $value; - after_git_url: + after_free_trial_ends_on: - $value = $payload['issue_comment_url'] ?? null; + $value = $payload['next_billing_date'] ?? null; if ($value === null) { - $missingFields[] = 'issue_comment_url'; - goto after_issue_comment_url; + $missingFields[] = 'next_billing_date'; + goto after_next_billing_date; } - $properties['issue_comment_url'] = $value; + $properties['next_billing_date'] = $value; - after_issue_comment_url: + after_next_billing_date: - $value = $payload['issue_events_url'] ?? null; + $value = $payload['on_free_trial'] ?? null; if ($value === null) { - $missingFields[] = 'issue_events_url'; - goto after_issue_events_url; + $missingFields[] = 'on_free_trial'; + goto after_on_free_trial; } - $properties['issue_events_url'] = $value; + $properties['on_free_trial'] = $value; - after_issue_events_url: + after_on_free_trial: - $value = $payload['issues_url'] ?? null; + $value = $payload['plan'] ?? null; if ($value === null) { - $missingFields[] = 'issues_url'; - goto after_issues_url; + $missingFields[] = 'plan'; + goto after_plan; } - $properties['issues_url'] = $value; - - after_issues_url: - - $value = $payload['keys_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'keys_url'; - goto after_keys_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'plan'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMarketplacePurchaseCancelled⚡️PreviousMarketplacePurchase⚡️Plan($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['keys_url'] = $value; + $properties['plan'] = $value; - after_keys_url: + after_plan: - $value = $payload['labels_url'] ?? null; + $value = $payload['unit_count'] ?? null; if ($value === null) { - $missingFields[] = 'labels_url'; - goto after_labels_url; + $missingFields[] = 'unit_count'; + goto after_unit_count; } - $properties['labels_url'] = $value; + $properties['unit_count'] = $value; - after_labels_url: + after_unit_count: - $value = $payload['languages_url'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookMarketplacePurchaseChanged\PreviousMarketplacePurchase', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookMarketplacePurchaseChanged\PreviousMarketplacePurchase::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookMarketplacePurchaseChanged\PreviousMarketplacePurchase(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookMarketplacePurchaseChanged\PreviousMarketplacePurchase', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMarketplacePurchasePendingChange⚡️PreviousMarketplacePurchase(array $payload): \ApiClients\Client\Github\Schema\WebhookMarketplacePurchasePendingChange\PreviousMarketplacePurchase + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['account'] ?? null; if ($value === null) { - $missingFields[] = 'languages_url'; - goto after_languages_url; + $missingFields[] = 'account'; + goto after_account; } - $properties['languages_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'account'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMarketplacePurchaseCancelled⚡️PreviousMarketplacePurchase⚡️Account($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['account'] = $value; - after_languages_url: + after_account: - $value = $payload['merges_url'] ?? null; + $value = $payload['billing_cycle'] ?? null; if ($value === null) { - $missingFields[] = 'merges_url'; - goto after_merges_url; + $missingFields[] = 'billing_cycle'; + goto after_billing_cycle; } - $properties['merges_url'] = $value; + $properties['billing_cycle'] = $value; - after_merges_url: + after_billing_cycle: - $value = $payload['milestones_url'] ?? null; + $value = $payload['free_trial_ends_on'] ?? null; if ($value === null) { - $missingFields[] = 'milestones_url'; - goto after_milestones_url; + $missingFields[] = 'free_trial_ends_on'; + goto after_free_trial_ends_on; } - $properties['milestones_url'] = $value; + $properties['free_trial_ends_on'] = $value; - after_milestones_url: + after_free_trial_ends_on: - $value = $payload['notifications_url'] ?? null; + $value = $payload['next_billing_date'] ?? null; if ($value === null) { - $missingFields[] = 'notifications_url'; - goto after_notifications_url; + $missingFields[] = 'next_billing_date'; + goto after_next_billing_date; } - $properties['notifications_url'] = $value; + $properties['next_billing_date'] = $value; - after_notifications_url: + after_next_billing_date: - $value = $payload['pulls_url'] ?? null; + $value = $payload['on_free_trial'] ?? null; if ($value === null) { - $missingFields[] = 'pulls_url'; - goto after_pulls_url; + $missingFields[] = 'on_free_trial'; + goto after_on_free_trial; } - $properties['pulls_url'] = $value; + $properties['on_free_trial'] = $value; - after_pulls_url: + after_on_free_trial: - $value = $payload['releases_url'] ?? null; + $value = $payload['plan'] ?? null; if ($value === null) { - $missingFields[] = 'releases_url'; - goto after_releases_url; + $missingFields[] = 'plan'; + goto after_plan; } - $properties['releases_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'plan'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMarketplacePurchaseCancelled⚡️PreviousMarketplacePurchase⚡️Plan($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['plan'] = $value; - after_releases_url: + after_plan: - $value = $payload['ssh_url'] ?? null; + $value = $payload['unit_count'] ?? null; if ($value === null) { - $missingFields[] = 'ssh_url'; - goto after_ssh_url; + $missingFields[] = 'unit_count'; + goto after_unit_count; } - $properties['ssh_url'] = $value; + $properties['unit_count'] = $value; - after_ssh_url: + after_unit_count: - $value = $payload['stargazers_url'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookMarketplacePurchasePendingChange\PreviousMarketplacePurchase', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookMarketplacePurchasePendingChange\PreviousMarketplacePurchase::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookMarketplacePurchasePendingChange\PreviousMarketplacePurchase(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookMarketplacePurchasePendingChange\PreviousMarketplacePurchase', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMarketplacePurchaseCancelled⚡️PreviousMarketplacePurchase⚡️Account(array $payload): \ApiClients\Client\Github\Schema\WebhookMarketplacePurchaseCancelled\PreviousMarketplacePurchase\Account + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'stargazers_url'; - goto after_stargazers_url; + $missingFields[] = 'id'; + goto after_id; } - $properties['stargazers_url'] = $value; + $properties['id'] = $value; - after_stargazers_url: + after_id: - $value = $payload['statuses_url'] ?? null; + $value = $payload['login'] ?? null; if ($value === null) { - $missingFields[] = 'statuses_url'; - goto after_statuses_url; + $missingFields[] = 'login'; + goto after_login; } - $properties['statuses_url'] = $value; + $properties['login'] = $value; - after_statuses_url: + after_login: - $value = $payload['subscribers_url'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $missingFields[] = 'subscribers_url'; - goto after_subscribers_url; + $missingFields[] = 'node_id'; + goto after_node_id; } - $properties['subscribers_url'] = $value; + $properties['node_id'] = $value; - after_subscribers_url: + after_node_id: - $value = $payload['subscription_url'] ?? null; + $value = $payload['organization_billing_email'] ?? null; if ($value === null) { - $missingFields[] = 'subscription_url'; - goto after_subscription_url; + $missingFields[] = 'organization_billing_email'; + goto after_organization_billing_email; } - $properties['subscription_url'] = $value; + $properties['organization_billing_email'] = $value; - after_subscription_url: + after_organization_billing_email: - $value = $payload['tags_url'] ?? null; + $value = $payload['type'] ?? null; if ($value === null) { - $missingFields[] = 'tags_url'; - goto after_tags_url; + $missingFields[] = 'type'; + goto after_type; } - $properties['tags_url'] = $value; + $properties['type'] = $value; - after_tags_url: + after_type: - $value = $payload['teams_url'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookMarketplacePurchaseCancelled\PreviousMarketplacePurchase\Account', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookMarketplacePurchaseCancelled\PreviousMarketplacePurchase\Account::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookMarketplacePurchaseCancelled\PreviousMarketplacePurchase\Account(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookMarketplacePurchaseCancelled\PreviousMarketplacePurchase\Account', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMarketplacePurchaseCancelled⚡️PreviousMarketplacePurchase⚡️Plan(array $payload): \ApiClients\Client\Github\Schema\WebhookMarketplacePurchaseCancelled\PreviousMarketplacePurchase\Plan + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['bullets'] ?? null; if ($value === null) { - $missingFields[] = 'teams_url'; - goto after_teams_url; + $missingFields[] = 'bullets'; + goto after_bullets; } - $properties['teams_url'] = $value; + $properties['bullets'] = $value; - after_teams_url: + after_bullets: - $value = $payload['trees_url'] ?? null; + $value = $payload['description'] ?? null; if ($value === null) { - $missingFields[] = 'trees_url'; - goto after_trees_url; + $missingFields[] = 'description'; + goto after_description; } - $properties['trees_url'] = $value; + $properties['description'] = $value; - after_trees_url: + after_description: - $value = $payload['clone_url'] ?? null; + $value = $payload['has_free_trial'] ?? null; if ($value === null) { - $missingFields[] = 'clone_url'; - goto after_clone_url; + $missingFields[] = 'has_free_trial'; + goto after_has_free_trial; } - $properties['clone_url'] = $value; + $properties['has_free_trial'] = $value; - after_clone_url: + after_has_free_trial: - $value = $payload['mirror_url'] ?? null; + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'mirror_url'; - goto after_mirror_url; + $missingFields[] = 'id'; + goto after_id; } - $properties['mirror_url'] = $value; + $properties['id'] = $value; - after_mirror_url: + after_id: - $value = $payload['hooks_url'] ?? null; + $value = $payload['monthly_price_in_cents'] ?? null; if ($value === null) { - $missingFields[] = 'hooks_url'; - goto after_hooks_url; + $missingFields[] = 'monthly_price_in_cents'; + goto after_monthly_price_in_cents; } - $properties['hooks_url'] = $value; + $properties['monthly_price_in_cents'] = $value; - after_hooks_url: + after_monthly_price_in_cents: - $value = $payload['svn_url'] ?? null; + $value = $payload['name'] ?? null; if ($value === null) { - $missingFields[] = 'svn_url'; - goto after_svn_url; + $missingFields[] = 'name'; + goto after_name; } - $properties['svn_url'] = $value; + $properties['name'] = $value; - after_svn_url: + after_name: - $value = $payload['homepage'] ?? null; + $value = $payload['price_model'] ?? null; if ($value === null) { - $missingFields[] = 'homepage'; - goto after_homepage; + $missingFields[] = 'price_model'; + goto after_price_model; } - $properties['homepage'] = $value; + $properties['price_model'] = $value; - after_homepage: + after_price_model: - $value = $payload['language'] ?? null; + $value = $payload['unit_name'] ?? null; if ($value === null) { - $missingFields[] = 'language'; - goto after_language; + $missingFields[] = 'unit_name'; + goto after_unit_name; } - $properties['language'] = $value; + $properties['unit_name'] = $value; - after_language: + after_unit_name: - $value = $payload['forks_count'] ?? null; + $value = $payload['yearly_price_in_cents'] ?? null; if ($value === null) { - $missingFields[] = 'forks_count'; - goto after_forks_count; + $missingFields[] = 'yearly_price_in_cents'; + goto after_yearly_price_in_cents; } - $properties['forks_count'] = $value; + $properties['yearly_price_in_cents'] = $value; - after_forks_count: + after_yearly_price_in_cents: - $value = $payload['stargazers_count'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookMarketplacePurchaseCancelled\PreviousMarketplacePurchase\Plan', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookMarketplacePurchaseCancelled\PreviousMarketplacePurchase\Plan::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookMarketplacePurchaseCancelled\PreviousMarketplacePurchase\Plan(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookMarketplacePurchaseCancelled\PreviousMarketplacePurchase\Plan', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️Permissions(array $payload): \ApiClients\Client\Github\Schema\Repository\Permissions + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['admin'] ?? null; if ($value === null) { - $missingFields[] = 'stargazers_count'; - goto after_stargazers_count; + $missingFields[] = 'admin'; + goto after_admin; } - $properties['stargazers_count'] = $value; + $properties['admin'] = $value; - after_stargazers_count: + after_admin: - $value = $payload['watchers_count'] ?? null; + $value = $payload['pull'] ?? null; if ($value === null) { - $missingFields[] = 'watchers_count'; - goto after_watchers_count; + $missingFields[] = 'pull'; + goto after_pull; } - $properties['watchers_count'] = $value; + $properties['pull'] = $value; - after_watchers_count: + after_pull: - $value = $payload['size'] ?? null; + $value = $payload['triage'] ?? null; if ($value === null) { - $missingFields[] = 'size'; - goto after_size; + $missingFields[] = 'triage'; + goto after_triage; } - $properties['size'] = $value; + $properties['triage'] = $value; - after_size: + after_triage: - $value = $payload['default_branch'] ?? null; + $value = $payload['push'] ?? null; if ($value === null) { - $missingFields[] = 'default_branch'; - goto after_default_branch; + $missingFields[] = 'push'; + goto after_push; } - $properties['default_branch'] = $value; + $properties['push'] = $value; - after_default_branch: + after_push: - $value = $payload['open_issues_count'] ?? null; + $value = $payload['maintain'] ?? null; if ($value === null) { - $missingFields[] = 'open_issues_count'; - goto after_open_issues_count; + $missingFields[] = 'maintain'; + goto after_maintain; } - $properties['open_issues_count'] = $value; + $properties['maintain'] = $value; - after_open_issues_count: + after_maintain: - $value = $payload['is_template'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\Permissions', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\Permissions::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\Repository\Permissions(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\Permissions', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository(array $payload): \ApiClients\Client\Github\Schema\Repository\TemplateRepository + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'is_template'; - goto after_is_template; + $missingFields[] = 'id'; + goto after_id; } - $properties['is_template'] = $value; + $properties['id'] = $value; - after_is_template: + after_id: - $value = $payload['topics'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $missingFields[] = 'topics'; - goto after_topics; + $missingFields[] = 'node_id'; + goto after_node_id; } - $properties['topics'] = $value; + $properties['node_id'] = $value; - after_topics: + after_node_id: - $value = $payload['has_issues'] ?? null; + $value = $payload['name'] ?? null; if ($value === null) { - $missingFields[] = 'has_issues'; - goto after_has_issues; + $missingFields[] = 'name'; + goto after_name; } - $properties['has_issues'] = $value; + $properties['name'] = $value; - after_has_issues: + after_name: - $value = $payload['has_projects'] ?? null; + $value = $payload['full_name'] ?? null; if ($value === null) { - $missingFields[] = 'has_projects'; - goto after_has_projects; + $missingFields[] = 'full_name'; + goto after_full_name; } - $properties['has_projects'] = $value; + $properties['full_name'] = $value; - after_has_projects: + after_full_name: - $value = $payload['has_wiki'] ?? null; + $value = $payload['owner'] ?? null; if ($value === null) { - $missingFields[] = 'has_wiki'; - goto after_has_wiki; + $missingFields[] = 'owner'; + goto after_owner; } - $properties['has_wiki'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'owner'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['owner'] = $value; - after_has_wiki: + after_owner: - $value = $payload['has_pages'] ?? null; + $value = $payload['private'] ?? null; if ($value === null) { - $missingFields[] = 'has_pages'; - goto after_has_pages; + $missingFields[] = 'private'; + goto after_private; } - $properties['has_pages'] = $value; + $properties['private'] = $value; - after_has_pages: + after_private: - $value = $payload['has_downloads'] ?? null; + $value = $payload['html_url'] ?? null; if ($value === null) { - $missingFields[] = 'has_downloads'; - goto after_has_downloads; + $missingFields[] = 'html_url'; + goto after_html_url; } - $properties['has_downloads'] = $value; + $properties['html_url'] = $value; - after_has_downloads: + after_html_url: - $value = $payload['archived'] ?? null; + $value = $payload['description'] ?? null; if ($value === null) { - $missingFields[] = 'archived'; - goto after_archived; + $missingFields[] = 'description'; + goto after_description; } - $properties['archived'] = $value; + $properties['description'] = $value; - after_archived: + after_description: - $value = $payload['disabled'] ?? null; + $value = $payload['fork'] ?? null; if ($value === null) { - $missingFields[] = 'disabled'; - goto after_disabled; + $missingFields[] = 'fork'; + goto after_fork; } - $properties['disabled'] = $value; + $properties['fork'] = $value; - after_disabled: + after_fork: - $value = $payload['visibility'] ?? null; + $value = $payload['url'] ?? null; if ($value === null) { - $missingFields[] = 'visibility'; - goto after_visibility; + $missingFields[] = 'url'; + goto after_url; } - $properties['visibility'] = $value; + $properties['url'] = $value; - after_visibility: + after_url: - $value = $payload['pushed_at'] ?? null; + $value = $payload['archive_url'] ?? null; if ($value === null) { - $missingFields[] = 'pushed_at'; - goto after_pushed_at; + $missingFields[] = 'archive_url'; + goto after_archive_url; } - $properties['pushed_at'] = $value; + $properties['archive_url'] = $value; - after_pushed_at: + after_archive_url: - $value = $payload['created_at'] ?? null; + $value = $payload['assignees_url'] ?? null; if ($value === null) { - $missingFields[] = 'created_at'; - goto after_created_at; + $missingFields[] = 'assignees_url'; + goto after_assignees_url; } - $properties['created_at'] = $value; + $properties['assignees_url'] = $value; - after_created_at: + after_assignees_url: - $value = $payload['updated_at'] ?? null; + $value = $payload['blobs_url'] ?? null; if ($value === null) { - $missingFields[] = 'updated_at'; - goto after_updated_at; + $missingFields[] = 'blobs_url'; + goto after_blobs_url; } - $properties['updated_at'] = $value; + $properties['blobs_url'] = $value; - after_updated_at: + after_blobs_url: - $value = $payload['permissions'] ?? null; + $value = $payload['branches_url'] ?? null; if ($value === null) { - $missingFields[] = 'permissions'; - goto after_permissions; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'permissions'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Permissions($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'branches_url'; + goto after_branches_url; } - $properties['permissions'] = $value; + $properties['branches_url'] = $value; - after_permissions: + after_branches_url: - $value = $payload['allow_rebase_merge'] ?? null; + $value = $payload['collaborators_url'] ?? null; if ($value === null) { - $missingFields[] = 'allow_rebase_merge'; - goto after_allow_rebase_merge; + $missingFields[] = 'collaborators_url'; + goto after_collaborators_url; } - $properties['allow_rebase_merge'] = $value; + $properties['collaborators_url'] = $value; - after_allow_rebase_merge: + after_collaborators_url: - $value = $payload['temp_clone_token'] ?? null; + $value = $payload['comments_url'] ?? null; if ($value === null) { - $missingFields[] = 'temp_clone_token'; - goto after_temp_clone_token; + $missingFields[] = 'comments_url'; + goto after_comments_url; } - $properties['temp_clone_token'] = $value; + $properties['comments_url'] = $value; - after_temp_clone_token: + after_comments_url: - $value = $payload['allow_squash_merge'] ?? null; + $value = $payload['commits_url'] ?? null; if ($value === null) { - $missingFields[] = 'allow_squash_merge'; - goto after_allow_squash_merge; + $missingFields[] = 'commits_url'; + goto after_commits_url; } - $properties['allow_squash_merge'] = $value; + $properties['commits_url'] = $value; - after_allow_squash_merge: + after_commits_url: - $value = $payload['allow_auto_merge'] ?? null; + $value = $payload['compare_url'] ?? null; if ($value === null) { - $missingFields[] = 'allow_auto_merge'; - goto after_allow_auto_merge; + $missingFields[] = 'compare_url'; + goto after_compare_url; } - $properties['allow_auto_merge'] = $value; + $properties['compare_url'] = $value; - after_allow_auto_merge: + after_compare_url: - $value = $payload['delete_branch_on_merge'] ?? null; + $value = $payload['contents_url'] ?? null; if ($value === null) { - $missingFields[] = 'delete_branch_on_merge'; - goto after_delete_branch_on_merge; + $missingFields[] = 'contents_url'; + goto after_contents_url; } - $properties['delete_branch_on_merge'] = $value; + $properties['contents_url'] = $value; - after_delete_branch_on_merge: + after_contents_url: - $value = $payload['allow_update_branch'] ?? null; + $value = $payload['contributors_url'] ?? null; if ($value === null) { - $missingFields[] = 'allow_update_branch'; - goto after_allow_update_branch; + $missingFields[] = 'contributors_url'; + goto after_contributors_url; } - $properties['allow_update_branch'] = $value; + $properties['contributors_url'] = $value; - after_allow_update_branch: + after_contributors_url: - $value = $payload['use_squash_pr_title_as_default'] ?? null; + $value = $payload['deployments_url'] ?? null; if ($value === null) { - $missingFields[] = 'use_squash_pr_title_as_default'; - goto after_use_squash_pr_title_as_default; + $missingFields[] = 'deployments_url'; + goto after_deployments_url; } - $properties['use_squash_pr_title_as_default'] = $value; + $properties['deployments_url'] = $value; - after_use_squash_pr_title_as_default: + after_deployments_url: - $value = $payload['squash_merge_commit_title'] ?? null; + $value = $payload['downloads_url'] ?? null; if ($value === null) { - $missingFields[] = 'squash_merge_commit_title'; - goto after_squash_merge_commit_title; + $missingFields[] = 'downloads_url'; + goto after_downloads_url; } - $properties['squash_merge_commit_title'] = $value; + $properties['downloads_url'] = $value; - after_squash_merge_commit_title: + after_downloads_url: - $value = $payload['squash_merge_commit_message'] ?? null; + $value = $payload['events_url'] ?? null; if ($value === null) { - $missingFields[] = 'squash_merge_commit_message'; - goto after_squash_merge_commit_message; + $missingFields[] = 'events_url'; + goto after_events_url; } - $properties['squash_merge_commit_message'] = $value; + $properties['events_url'] = $value; - after_squash_merge_commit_message: + after_events_url: - $value = $payload['merge_commit_title'] ?? null; + $value = $payload['forks_url'] ?? null; if ($value === null) { - $missingFields[] = 'merge_commit_title'; - goto after_merge_commit_title; + $missingFields[] = 'forks_url'; + goto after_forks_url; } - $properties['merge_commit_title'] = $value; + $properties['forks_url'] = $value; - after_merge_commit_title: + after_forks_url: - $value = $payload['merge_commit_message'] ?? null; + $value = $payload['git_commits_url'] ?? null; if ($value === null) { - $missingFields[] = 'merge_commit_message'; - goto after_merge_commit_message; + $missingFields[] = 'git_commits_url'; + goto after_git_commits_url; } - $properties['merge_commit_message'] = $value; + $properties['git_commits_url'] = $value; - after_merge_commit_message: + after_git_commits_url: - $value = $payload['allow_merge_commit'] ?? null; + $value = $payload['git_refs_url'] ?? null; if ($value === null) { - $missingFields[] = 'allow_merge_commit'; - goto after_allow_merge_commit; + $missingFields[] = 'git_refs_url'; + goto after_git_refs_url; } - $properties['allow_merge_commit'] = $value; + $properties['git_refs_url'] = $value; - after_allow_merge_commit: + after_git_refs_url: - $value = $payload['subscribers_count'] ?? null; + $value = $payload['git_tags_url'] ?? null; if ($value === null) { - $missingFields[] = 'subscribers_count'; - goto after_subscribers_count; + $missingFields[] = 'git_tags_url'; + goto after_git_tags_url; } - $properties['subscribers_count'] = $value; + $properties['git_tags_url'] = $value; - after_subscribers_count: + after_git_tags_url: - $value = $payload['network_count'] ?? null; + $value = $payload['git_url'] ?? null; if ($value === null) { - $missingFields[] = 'network_count'; - goto after_network_count; + $missingFields[] = 'git_url'; + goto after_git_url; } - $properties['network_count'] = $value; + $properties['git_url'] = $value; - after_network_count: - - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\TemplateRepository::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\Repository\TemplateRepository(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository', $exception, stack: $this->hydrationStack); - } - } + after_git_url: - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner(array $payload): \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['login'] ?? null; + $value = $payload['issue_comment_url'] ?? null; if ($value === null) { - $missingFields[] = 'login'; - goto after_login; + $missingFields[] = 'issue_comment_url'; + goto after_issue_comment_url; } - $properties['login'] = $value; + $properties['issue_comment_url'] = $value; - after_login: + after_issue_comment_url: - $value = $payload['id'] ?? null; + $value = $payload['issue_events_url'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'issue_events_url'; + goto after_issue_events_url; } - $properties['id'] = $value; + $properties['issue_events_url'] = $value; - after_id: + after_issue_events_url: - $value = $payload['node_id'] ?? null; + $value = $payload['issues_url'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $missingFields[] = 'issues_url'; + goto after_issues_url; } - $properties['node_id'] = $value; + $properties['issues_url'] = $value; - after_node_id: + after_issues_url: - $value = $payload['avatar_url'] ?? null; + $value = $payload['keys_url'] ?? null; if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatar_url; + $missingFields[] = 'keys_url'; + goto after_keys_url; } - $properties['avatar_url'] = $value; + $properties['keys_url'] = $value; - after_avatar_url: + after_keys_url: - $value = $payload['gravatar_id'] ?? null; + $value = $payload['labels_url'] ?? null; if ($value === null) { - $missingFields[] = 'gravatar_id'; - goto after_gravatar_id; + $missingFields[] = 'labels_url'; + goto after_labels_url; } - $properties['gravatar_id'] = $value; + $properties['labels_url'] = $value; - after_gravatar_id: + after_labels_url: - $value = $payload['url'] ?? null; + $value = $payload['languages_url'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $missingFields[] = 'languages_url'; + goto after_languages_url; } - $properties['url'] = $value; + $properties['languages_url'] = $value; - after_url: + after_languages_url: - $value = $payload['html_url'] ?? null; + $value = $payload['merges_url'] ?? null; if ($value === null) { - $missingFields[] = 'html_url'; - goto after_html_url; + $missingFields[] = 'merges_url'; + goto after_merges_url; } - $properties['html_url'] = $value; + $properties['merges_url'] = $value; - after_html_url: + after_merges_url: - $value = $payload['followers_url'] ?? null; + $value = $payload['milestones_url'] ?? null; if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followers_url; + $missingFields[] = 'milestones_url'; + goto after_milestones_url; } - $properties['followers_url'] = $value; + $properties['milestones_url'] = $value; - after_followers_url: + after_milestones_url: - $value = $payload['following_url'] ?? null; + $value = $payload['notifications_url'] ?? null; if ($value === null) { - $missingFields[] = 'following_url'; - goto after_following_url; + $missingFields[] = 'notifications_url'; + goto after_notifications_url; } - $properties['following_url'] = $value; + $properties['notifications_url'] = $value; - after_following_url: + after_notifications_url: - $value = $payload['gists_url'] ?? null; + $value = $payload['pulls_url'] ?? null; if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gists_url; + $missingFields[] = 'pulls_url'; + goto after_pulls_url; } - $properties['gists_url'] = $value; + $properties['pulls_url'] = $value; - after_gists_url: + after_pulls_url: - $value = $payload['starred_url'] ?? null; + $value = $payload['releases_url'] ?? null; if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starred_url; + $missingFields[] = 'releases_url'; + goto after_releases_url; } - $properties['starred_url'] = $value; + $properties['releases_url'] = $value; - after_starred_url: + after_releases_url: - $value = $payload['subscriptions_url'] ?? null; + $value = $payload['ssh_url'] ?? null; if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptions_url; + $missingFields[] = 'ssh_url'; + goto after_ssh_url; } - $properties['subscriptions_url'] = $value; + $properties['ssh_url'] = $value; - after_subscriptions_url: + after_ssh_url: - $value = $payload['organizations_url'] ?? null; + $value = $payload['stargazers_url'] ?? null; if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizations_url; + $missingFields[] = 'stargazers_url'; + goto after_stargazers_url; } - $properties['organizations_url'] = $value; + $properties['stargazers_url'] = $value; - after_organizations_url: + after_stargazers_url: - $value = $payload['repos_url'] ?? null; + $value = $payload['statuses_url'] ?? null; if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_repos_url; + $missingFields[] = 'statuses_url'; + goto after_statuses_url; } - $properties['repos_url'] = $value; + $properties['statuses_url'] = $value; - after_repos_url: + after_statuses_url: - $value = $payload['events_url'] ?? null; + $value = $payload['subscribers_url'] ?? null; if ($value === null) { - $missingFields[] = 'events_url'; - goto after_events_url; + $missingFields[] = 'subscribers_url'; + goto after_subscribers_url; } - $properties['events_url'] = $value; + $properties['subscribers_url'] = $value; - after_events_url: + after_subscribers_url: - $value = $payload['received_events_url'] ?? null; + $value = $payload['subscription_url'] ?? null; if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_received_events_url; + $missingFields[] = 'subscription_url'; + goto after_subscription_url; } - $properties['received_events_url'] = $value; + $properties['subscription_url'] = $value; - after_received_events_url: + after_subscription_url: - $value = $payload['type'] ?? null; + $value = $payload['tags_url'] ?? null; if ($value === null) { - $missingFields[] = 'type'; - goto after_type; + $missingFields[] = 'tags_url'; + goto after_tags_url; } - $properties['type'] = $value; + $properties['tags_url'] = $value; - after_type: + after_tags_url: - $value = $payload['site_admin'] ?? null; + $value = $payload['teams_url'] ?? null; if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_site_admin; + $missingFields[] = 'teams_url'; + goto after_teams_url; } - $properties['site_admin'] = $value; + $properties['teams_url'] = $value; - after_site_admin: + after_teams_url: - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner', $exception, stack: $this->hydrationStack); - } - } + $value = $payload['trees_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'trees_url'; + goto after_trees_url; + } - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Permissions(array $payload): \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['admin'] ?? null; + $properties['trees_url'] = $value; + + after_trees_url: + + $value = $payload['clone_url'] ?? null; if ($value === null) { - $missingFields[] = 'admin'; - goto after_admin; + $missingFields[] = 'clone_url'; + goto after_clone_url; } - $properties['admin'] = $value; + $properties['clone_url'] = $value; - after_admin: + after_clone_url: - $value = $payload['maintain'] ?? null; + $value = $payload['mirror_url'] ?? null; if ($value === null) { - $missingFields[] = 'maintain'; - goto after_maintain; + $missingFields[] = 'mirror_url'; + goto after_mirror_url; } - $properties['maintain'] = $value; + $properties['mirror_url'] = $value; - after_maintain: + after_mirror_url: - $value = $payload['push'] ?? null; + $value = $payload['hooks_url'] ?? null; if ($value === null) { - $missingFields[] = 'push'; - goto after_push; + $missingFields[] = 'hooks_url'; + goto after_hooks_url; } - $properties['push'] = $value; + $properties['hooks_url'] = $value; - after_push: + after_hooks_url: - $value = $payload['triage'] ?? null; + $value = $payload['svn_url'] ?? null; if ($value === null) { - $missingFields[] = 'triage'; - goto after_triage; + $missingFields[] = 'svn_url'; + goto after_svn_url; } - $properties['triage'] = $value; + $properties['svn_url'] = $value; - after_triage: + after_svn_url: - $value = $payload['pull'] ?? null; + $value = $payload['homepage'] ?? null; if ($value === null) { - $missingFields[] = 'pull'; - goto after_pull; + $missingFields[] = 'homepage'; + goto after_homepage; } - $properties['pull'] = $value; + $properties['homepage'] = $value; - after_pull: + after_homepage: - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions', $exception, stack: $this->hydrationStack); - } - } + $value = $payload['language'] ?? null; - public function serializeObject(object $object): mixed - { - try { - $className = get_class($object); + if ($value === null) { + $missingFields[] = 'language'; + goto after_language; + } - return match($className) { - 'array' => $this->serializeValuearray($object), - 'Ramsey\Uuid\UuidInterface' => $this->serializeValueRamsey⚡️Uuid⚡️UuidInterface($object), - 'DateTime' => $this->serializeValueDateTime($object), - 'DateTimeImmutable' => $this->serializeValueDateTimeImmutable($object), - 'DateTimeInterface' => $this->serializeValueDateTimeInterface($object), - 'ApiClients\Client\Github\Schema\WebhookMarketplacePurchasePurchased' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMarketplacePurchasePurchased($object), - default => throw new \LogicException('No serialization defined for $className'), - }; - } catch (\Throwable $exception) { - throw UnableToSerializeObject::dueToError($className, $exception); - } - } + $properties['language'] = $value; + after_language: + + $value = $payload['forks_count'] ?? null; - private function serializeValuearray(mixed $value): mixed - { - static $serializer; - - if ($serializer === null) { - $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeArrayItems(...array ( -)); - } - - return $serializer->serialize($value, $this); - } + if ($value === null) { + $missingFields[] = 'forks_count'; + goto after_forks_count; + } + $properties['forks_count'] = $value; + + after_forks_count: - private function serializeValueRamsey⚡️Uuid⚡️UuidInterface(mixed $value): mixed - { - static $serializer; - - if ($serializer === null) { + $value = $payload['stargazers_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'stargazers_count'; + goto after_stargazers_count; + } + + $properties['stargazers_count'] = $value; + + after_stargazers_count: + + $value = $payload['watchers_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'watchers_count'; + goto after_watchers_count; + } + + $properties['watchers_count'] = $value; + + after_watchers_count: + + $value = $payload['size'] ?? null; + + if ($value === null) { + $missingFields[] = 'size'; + goto after_size; + } + + $properties['size'] = $value; + + after_size: + + $value = $payload['default_branch'] ?? null; + + if ($value === null) { + $missingFields[] = 'default_branch'; + goto after_default_branch; + } + + $properties['default_branch'] = $value; + + after_default_branch: + + $value = $payload['open_issues_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'open_issues_count'; + goto after_open_issues_count; + } + + $properties['open_issues_count'] = $value; + + after_open_issues_count: + + $value = $payload['is_template'] ?? null; + + if ($value === null) { + $missingFields[] = 'is_template'; + goto after_is_template; + } + + $properties['is_template'] = $value; + + after_is_template: + + $value = $payload['topics'] ?? null; + + if ($value === null) { + $missingFields[] = 'topics'; + goto after_topics; + } + + $properties['topics'] = $value; + + after_topics: + + $value = $payload['has_issues'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_issues'; + goto after_has_issues; + } + + $properties['has_issues'] = $value; + + after_has_issues: + + $value = $payload['has_projects'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_projects'; + goto after_has_projects; + } + + $properties['has_projects'] = $value; + + after_has_projects: + + $value = $payload['has_wiki'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_wiki'; + goto after_has_wiki; + } + + $properties['has_wiki'] = $value; + + after_has_wiki: + + $value = $payload['has_pages'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_pages'; + goto after_has_pages; + } + + $properties['has_pages'] = $value; + + after_has_pages: + + $value = $payload['has_downloads'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_downloads'; + goto after_has_downloads; + } + + $properties['has_downloads'] = $value; + + after_has_downloads: + + $value = $payload['archived'] ?? null; + + if ($value === null) { + $missingFields[] = 'archived'; + goto after_archived; + } + + $properties['archived'] = $value; + + after_archived: + + $value = $payload['disabled'] ?? null; + + if ($value === null) { + $missingFields[] = 'disabled'; + goto after_disabled; + } + + $properties['disabled'] = $value; + + after_disabled: + + $value = $payload['visibility'] ?? null; + + if ($value === null) { + $missingFields[] = 'visibility'; + goto after_visibility; + } + + $properties['visibility'] = $value; + + after_visibility: + + $value = $payload['pushed_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'pushed_at'; + goto after_pushed_at; + } + + $properties['pushed_at'] = $value; + + after_pushed_at: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'created_at'; + goto after_created_at; + } + + $properties['created_at'] = $value; + + after_created_at: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'updated_at'; + goto after_updated_at; + } + + $properties['updated_at'] = $value; + + after_updated_at: + + $value = $payload['permissions'] ?? null; + + if ($value === null) { + $missingFields[] = 'permissions'; + goto after_permissions; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'permissions'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Permissions($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['permissions'] = $value; + + after_permissions: + + $value = $payload['allow_rebase_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_rebase_merge'; + goto after_allow_rebase_merge; + } + + $properties['allow_rebase_merge'] = $value; + + after_allow_rebase_merge: + + $value = $payload['temp_clone_token'] ?? null; + + if ($value === null) { + $missingFields[] = 'temp_clone_token'; + goto after_temp_clone_token; + } + + $properties['temp_clone_token'] = $value; + + after_temp_clone_token: + + $value = $payload['allow_squash_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_squash_merge'; + goto after_allow_squash_merge; + } + + $properties['allow_squash_merge'] = $value; + + after_allow_squash_merge: + + $value = $payload['allow_auto_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_auto_merge'; + goto after_allow_auto_merge; + } + + $properties['allow_auto_merge'] = $value; + + after_allow_auto_merge: + + $value = $payload['delete_branch_on_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'delete_branch_on_merge'; + goto after_delete_branch_on_merge; + } + + $properties['delete_branch_on_merge'] = $value; + + after_delete_branch_on_merge: + + $value = $payload['allow_update_branch'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_update_branch'; + goto after_allow_update_branch; + } + + $properties['allow_update_branch'] = $value; + + after_allow_update_branch: + + $value = $payload['use_squash_pr_title_as_default'] ?? null; + + if ($value === null) { + $missingFields[] = 'use_squash_pr_title_as_default'; + goto after_use_squash_pr_title_as_default; + } + + $properties['use_squash_pr_title_as_default'] = $value; + + after_use_squash_pr_title_as_default: + + $value = $payload['squash_merge_commit_title'] ?? null; + + if ($value === null) { + $missingFields[] = 'squash_merge_commit_title'; + goto after_squash_merge_commit_title; + } + + $properties['squash_merge_commit_title'] = $value; + + after_squash_merge_commit_title: + + $value = $payload['squash_merge_commit_message'] ?? null; + + if ($value === null) { + $missingFields[] = 'squash_merge_commit_message'; + goto after_squash_merge_commit_message; + } + + $properties['squash_merge_commit_message'] = $value; + + after_squash_merge_commit_message: + + $value = $payload['merge_commit_title'] ?? null; + + if ($value === null) { + $missingFields[] = 'merge_commit_title'; + goto after_merge_commit_title; + } + + $properties['merge_commit_title'] = $value; + + after_merge_commit_title: + + $value = $payload['merge_commit_message'] ?? null; + + if ($value === null) { + $missingFields[] = 'merge_commit_message'; + goto after_merge_commit_message; + } + + $properties['merge_commit_message'] = $value; + + after_merge_commit_message: + + $value = $payload['allow_merge_commit'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_merge_commit'; + goto after_allow_merge_commit; + } + + $properties['allow_merge_commit'] = $value; + + after_allow_merge_commit: + + $value = $payload['subscribers_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscribers_count'; + goto after_subscribers_count; + } + + $properties['subscribers_count'] = $value; + + after_subscribers_count: + + $value = $payload['network_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'network_count'; + goto after_network_count; + } + + $properties['network_count'] = $value; + + after_network_count: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\TemplateRepository::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\Repository\TemplateRepository(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner(array $payload): \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['login'] ?? null; + + if ($value === null) { + $missingFields[] = 'login'; + goto after_login; + } + + $properties['login'] = $value; + + after_login: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['avatar_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'avatar_url'; + goto after_avatar_url; + } + + $properties['avatar_url'] = $value; + + after_avatar_url: + + $value = $payload['gravatar_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'gravatar_id'; + goto after_gravatar_id; + } + + $properties['gravatar_id'] = $value; + + after_gravatar_id: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } + + $properties['html_url'] = $value; + + after_html_url: + + $value = $payload['followers_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'followers_url'; + goto after_followers_url; + } + + $properties['followers_url'] = $value; + + after_followers_url: + + $value = $payload['following_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'following_url'; + goto after_following_url; + } + + $properties['following_url'] = $value; + + after_following_url: + + $value = $payload['gists_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'gists_url'; + goto after_gists_url; + } + + $properties['gists_url'] = $value; + + after_gists_url: + + $value = $payload['starred_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'starred_url'; + goto after_starred_url; + } + + $properties['starred_url'] = $value; + + after_starred_url: + + $value = $payload['subscriptions_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscriptions_url'; + goto after_subscriptions_url; + } + + $properties['subscriptions_url'] = $value; + + after_subscriptions_url: + + $value = $payload['organizations_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'organizations_url'; + goto after_organizations_url; + } + + $properties['organizations_url'] = $value; + + after_organizations_url: + + $value = $payload['repos_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'repos_url'; + goto after_repos_url; + } + + $properties['repos_url'] = $value; + + after_repos_url: + + $value = $payload['events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'events_url'; + goto after_events_url; + } + + $properties['events_url'] = $value; + + after_events_url: + + $value = $payload['received_events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'received_events_url'; + goto after_received_events_url; + } + + $properties['received_events_url'] = $value; + + after_received_events_url: + + $value = $payload['type'] ?? null; + + if ($value === null) { + $missingFields[] = 'type'; + goto after_type; + } + + $properties['type'] = $value; + + after_type: + + $value = $payload['site_admin'] ?? null; + + if ($value === null) { + $missingFields[] = 'site_admin'; + goto after_site_admin; + } + + $properties['site_admin'] = $value; + + after_site_admin: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Permissions(array $payload): \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['admin'] ?? null; + + if ($value === null) { + $missingFields[] = 'admin'; + goto after_admin; + } + + $properties['admin'] = $value; + + after_admin: + + $value = $payload['maintain'] ?? null; + + if ($value === null) { + $missingFields[] = 'maintain'; + goto after_maintain; + } + + $properties['maintain'] = $value; + + after_maintain: + + $value = $payload['push'] ?? null; + + if ($value === null) { + $missingFields[] = 'push'; + goto after_push; + } + + $properties['push'] = $value; + + after_push: + + $value = $payload['triage'] ?? null; + + if ($value === null) { + $missingFields[] = 'triage'; + goto after_triage; + } + + $properties['triage'] = $value; + + after_triage: + + $value = $payload['pull'] ?? null; + + if ($value === null) { + $missingFields[] = 'pull'; + goto after_pull; + } + + $properties['pull'] = $value; + + after_pull: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions', $exception, stack: $this->hydrationStack); + } + } + + public function serializeObject(object $object): mixed + { + try { + $className = get_class($object); + + return match($className) { + 'array' => $this->serializeValuearray($object), + 'Ramsey\Uuid\UuidInterface' => $this->serializeValueRamsey⚡️Uuid⚡️UuidInterface($object), + 'DateTime' => $this->serializeValueDateTime($object), + 'DateTimeImmutable' => $this->serializeValueDateTimeImmutable($object), + 'DateTimeInterface' => $this->serializeValueDateTimeInterface($object), + 'ApiClients\Client\Github\Schema\WebhookMarketplacePurchaseCancelled' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMarketplacePurchaseCancelled($object), + 'ApiClients\Client\Github\Schema\WebhookMarketplacePurchaseChanged' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMarketplacePurchaseChanged($object), + 'ApiClients\Client\Github\Schema\WebhookMarketplacePurchasePendingChange' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMarketplacePurchasePendingChange($object), + 'ApiClients\Client\Github\Schema\WebhookMarketplacePurchasePendingChangeCancelled' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMarketplacePurchasePendingChangeCancelled($object), + 'ApiClients\Client\Github\Schema\WebhookMarketplacePurchasePurchased' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMarketplacePurchasePurchased($object), + default => throw new \LogicException('No serialization defined for $className'), + }; + } catch (\Throwable $exception) { + throw UnableToSerializeObject::dueToError($className, $exception); + } + } + + + private function serializeValuearray(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeArrayItems(...array ( +)); + } + + return $serializer->serialize($value, $this); + } + + + private function serializeValueRamsey⚡️Uuid⚡️UuidInterface(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeUuidToString(...array ( )); } @@ -3681,29 +4625,297 @@ private function serializeValueDateTime(mixed $value): mixed } - private function serializeValueDateTimeImmutable(mixed $value): mixed + private function serializeValueDateTimeImmutable(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeDateTime(...array ( +)); + } + + return $serializer->serialize($value, $this); + } + + + private function serializeValueDateTimeInterface(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeDateTime(...array ( +)); + } + + return $serializer->serialize($value, $this); + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMarketplacePurchaseCancelled(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookMarketplacePurchaseCancelled); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $effective_date = $object->effective_date; + + if ($effective_date === null) { + goto after_effective_date; + } + after_effective_date: $result['effective_date'] = $effective_date; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $marketplace_purchase = $object->marketplace_purchase; + + if ($marketplace_purchase === null) { + goto after_marketplace_purchase; + } + after_marketplace_purchase: $result['marketplace_purchase'] = $marketplace_purchase; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $previous_marketplace_purchase = $object->previous_marketplace_purchase; + $previous_marketplace_purchase = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMarketplacePurchaseCancelled⚡️PreviousMarketplacePurchase($previous_marketplace_purchase); + after_previous_marketplace_purchase: $result['previous_marketplace_purchase'] = $previous_marketplace_purchase; + + + $repository = $object->repository; + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMarketplacePurchaseChanged(mixed $object): mixed { - static $serializer; + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookMarketplacePurchaseChanged); + $result = []; - if ($serializer === null) { - $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeDateTime(...array ( -)); + $action = $object->action; + + if ($action === null) { + goto after_action; } + after_action: $result['action'] = $action; + - return $serializer->serialize($value, $this); + $effective_date = $object->effective_date; + + if ($effective_date === null) { + goto after_effective_date; + } + after_effective_date: $result['effective_date'] = $effective_date; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $marketplace_purchase = $object->marketplace_purchase; + + if ($marketplace_purchase === null) { + goto after_marketplace_purchase; + } + after_marketplace_purchase: $result['marketplace_purchase'] = $marketplace_purchase; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $previous_marketplace_purchase = $object->previous_marketplace_purchase; + $previous_marketplace_purchase = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMarketplacePurchaseChanged⚡️PreviousMarketplacePurchase($previous_marketplace_purchase); + after_previous_marketplace_purchase: $result['previous_marketplace_purchase'] = $previous_marketplace_purchase; + + + $repository = $object->repository; + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; } + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMarketplacePurchasePendingChange(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookMarketplacePurchasePendingChange); + $result = []; + + $action = $object->action; - private function serializeValueDateTimeInterface(mixed $value): mixed + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $effective_date = $object->effective_date; + + if ($effective_date === null) { + goto after_effective_date; + } + after_effective_date: $result['effective_date'] = $effective_date; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $marketplace_purchase = $object->marketplace_purchase; + + if ($marketplace_purchase === null) { + goto after_marketplace_purchase; + } + after_marketplace_purchase: $result['marketplace_purchase'] = $marketplace_purchase; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $previous_marketplace_purchase = $object->previous_marketplace_purchase; + $previous_marketplace_purchase = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMarketplacePurchasePendingChange⚡️PreviousMarketplacePurchase($previous_marketplace_purchase); + after_previous_marketplace_purchase: $result['previous_marketplace_purchase'] = $previous_marketplace_purchase; + + + $repository = $object->repository; + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMarketplacePurchasePendingChangeCancelled(mixed $object): mixed { - static $serializer; + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookMarketplacePurchasePendingChangeCancelled); + $result = []; - if ($serializer === null) { - $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeDateTime(...array ( -)); + $action = $object->action; + + if ($action === null) { + goto after_action; } + after_action: $result['action'] = $action; + - return $serializer->serialize($value, $this); + $effective_date = $object->effective_date; + + if ($effective_date === null) { + goto after_effective_date; + } + after_effective_date: $result['effective_date'] = $effective_date; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $marketplace_purchase = $object->marketplace_purchase; + + if ($marketplace_purchase === null) { + goto after_marketplace_purchase; + } + after_marketplace_purchase: $result['marketplace_purchase'] = $marketplace_purchase; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $previous_marketplace_purchase = $object->previous_marketplace_purchase; + $previous_marketplace_purchase = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMarketplacePurchaseCancelled⚡️PreviousMarketplacePurchase($previous_marketplace_purchase); + after_previous_marketplace_purchase: $result['previous_marketplace_purchase'] = $previous_marketplace_purchase; + + + $repository = $object->repository; + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; } diff --git a/src/Hydrator/WebHook/Member.php b/src/Hydrator/WebHook/Member.php index 1289951546..6acd06ab14 100644 --- a/src/Hydrator/WebHook/Member.php +++ b/src/Hydrator/WebHook/Member.php @@ -23,15 +23,22 @@ public function __construct() {} public function hydrateObject(string $className, array $payload): object { return match($className) { - 'ApiClients\Client\Github\Schema\WebhookMemberRemoved' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMemberRemoved($payload), + 'ApiClients\Client\Github\Schema\WebhookMemberAdded' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMemberAdded($payload), + 'ApiClients\Client\Github\Schema\WebhookMemberEdited' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMemberEdited($payload), + 'ApiClients\Client\Github\Schema\WebhookMemberRemoved' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMemberRemoved($payload), + 'ApiClients\Client\Github\Schema\WebhookMemberAdded\Changes' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMemberAdded⚡️Changes($payload), 'ApiClients\Client\Github\Schema\Enterprise' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($payload), 'ApiClients\Client\Github\Schema\SimpleInstallation' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($payload), 'ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($payload), 'ApiClients\Client\Github\Schema\OrganizationSimple' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($payload), 'ApiClients\Client\Github\Schema\Repository' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($payload), 'ApiClients\Client\Github\Schema\SimpleUser' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($payload), + 'ApiClients\Client\Github\Schema\WebhookMemberEdited\Changes' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMemberEdited⚡️Changes($payload), + 'ApiClients\Client\Github\Schema\WebhookMemberAdded\Changes\Permission' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMemberAdded⚡️Changes⚡️Permission($payload), 'ApiClients\Client\Github\Schema\Repository\Permissions' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️Permissions($payload), 'ApiClients\Client\Github\Schema\Repository\TemplateRepository' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository($payload), + 'ApiClients\Client\Github\Schema\WebhookMemberEdited\Changes\OldPermission' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMemberEdited⚡️Changes⚡️OldPermission($payload), + 'ApiClients\Client\Github\Schema\WebhookMemberEdited\Changes\Permission' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMemberEdited⚡️Changes⚡️Permission($payload), 'ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner($payload), 'ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Permissions($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), @@ -39,6 +46,352 @@ public function hydrateObject(string $className, array $payload): object } + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMemberAdded(array $payload): \ApiClients\Client\Github\Schema\WebhookMemberAdded + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; + + if ($value === null) { + $missingFields[] = 'action'; + goto after_action; + } + + $properties['action'] = $value; + + after_action: + + $value = $payload['changes'] ?? null; + + if ($value === null) { + $missingFields[] = 'changes'; + goto after_changes; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'changes'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMemberAdded⚡️Changes($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['changes'] = $value; + + after_changes: + + $value = $payload['enterprise'] ?? null; + + if ($value === null) { + $missingFields[] = 'enterprise'; + goto after_enterprise; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['enterprise'] = $value; + + after_enterprise: + + $value = $payload['installation'] ?? null; + + if ($value === null) { + $missingFields[] = 'installation'; + goto after_installation; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; + + after_installation: + + $value = $payload['member'] ?? null; + + if ($value === null) { + $missingFields[] = 'member'; + goto after_member; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'member'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['member'] = $value; + + after_member: + + $value = $payload['organization'] ?? null; + + if ($value === null) { + $missingFields[] = 'organization'; + goto after_organization; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; + + after_organization: + + $value = $payload['repository'] ?? null; + + if ($value === null) { + $missingFields[] = 'repository'; + goto after_repository; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repository'] = $value; + + after_repository: + + $value = $payload['sender'] ?? null; + + if ($value === null) { + $missingFields[] = 'sender'; + goto after_sender; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; + + after_sender: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookMemberAdded', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookMemberAdded::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookMemberAdded(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookMemberAdded', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMemberEdited(array $payload): \ApiClients\Client\Github\Schema\WebhookMemberEdited + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; + + if ($value === null) { + $missingFields[] = 'action'; + goto after_action; + } + + $properties['action'] = $value; + + after_action: + + $value = $payload['changes'] ?? null; + + if ($value === null) { + $missingFields[] = 'changes'; + goto after_changes; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'changes'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMemberEdited⚡️Changes($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['changes'] = $value; + + after_changes: + + $value = $payload['enterprise'] ?? null; + + if ($value === null) { + $missingFields[] = 'enterprise'; + goto after_enterprise; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['enterprise'] = $value; + + after_enterprise: + + $value = $payload['installation'] ?? null; + + if ($value === null) { + $missingFields[] = 'installation'; + goto after_installation; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; + + after_installation: + + $value = $payload['member'] ?? null; + + if ($value === null) { + $missingFields[] = 'member'; + goto after_member; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'member'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['member'] = $value; + + after_member: + + $value = $payload['organization'] ?? null; + + if ($value === null) { + $missingFields[] = 'organization'; + goto after_organization; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; + + after_organization: + + $value = $payload['repository'] ?? null; + + if ($value === null) { + $missingFields[] = 'repository'; + goto after_repository; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repository'] = $value; + + after_repository: + + $value = $payload['sender'] ?? null; + + if ($value === null) { + $missingFields[] = 'sender'; + goto after_sender; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; + + after_sender: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookMemberEdited', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookMemberEdited::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookMemberEdited(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookMemberEdited', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMemberRemoved(array $payload): \ApiClients\Client\Github\Schema\WebhookMemberRemoved { $properties = []; @@ -156,38 +509,80 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh after_repository: - $value = $payload['sender'] ?? null; + $value = $payload['sender'] ?? null; + + if ($value === null) { + $missingFields[] = 'sender'; + goto after_sender; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; + + after_sender: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookMemberRemoved', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookMemberRemoved::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookMemberRemoved(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookMemberRemoved', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMemberAdded⚡️Changes(array $payload): \ApiClients\Client\Github\Schema\WebhookMemberAdded\Changes + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['permission'] ?? null; if ($value === null) { - $missingFields[] = 'sender'; - goto after_sender; + $missingFields[] = 'permission'; + goto after_permission; } if (is_array($value)) { try { - $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + $this->hydrationStack[] = 'permission'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMemberAdded⚡️Changes⚡️Permission($value); } finally { array_pop($this->hydrationStack); } } - $properties['sender'] = $value; + $properties['permission'] = $value; - after_sender: + after_permission: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookMemberRemoved', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookMemberAdded\Changes', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookMemberRemoved::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookMemberAdded\Changes::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\WebhookMemberRemoved(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookMemberAdded\Changes(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookMemberRemoved', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookMemberAdded\Changes', $exception, stack: $this->hydrationStack); } } @@ -2166,6 +2561,101 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Simp } + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMemberEdited⚡️Changes(array $payload): \ApiClients\Client\Github\Schema\WebhookMemberEdited\Changes + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['old_permission'] ?? null; + + if ($value === null) { + $missingFields[] = 'old_permission'; + goto after_old_permission; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'old_permission'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMemberEdited⚡️Changes⚡️OldPermission($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['old_permission'] = $value; + + after_old_permission: + + $value = $payload['permission'] ?? null; + + if ($value === null) { + $missingFields[] = 'permission'; + goto after_permission; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'permission'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMemberEdited⚡️Changes⚡️Permission($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['permission'] = $value; + + after_permission: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookMemberEdited\Changes', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookMemberEdited\Changes::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookMemberEdited\Changes(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookMemberEdited\Changes', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMemberAdded⚡️Changes⚡️Permission(array $payload): \ApiClients\Client\Github\Schema\WebhookMemberAdded\Changes\Permission + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['to'] ?? null; + + if ($value === null) { + $missingFields[] = 'to'; + goto after_to; + } + + $properties['to'] = $value; + + after_to: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookMemberAdded\Changes\Permission', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookMemberAdded\Changes\Permission::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookMemberAdded\Changes\Permission(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookMemberAdded\Changes\Permission', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️Permissions(array $payload): \ApiClients\Client\Github\Schema\Repository\Permissions { $properties = []; @@ -3240,6 +3730,83 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repo } + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMemberEdited⚡️Changes⚡️OldPermission(array $payload): \ApiClients\Client\Github\Schema\WebhookMemberEdited\Changes\OldPermission + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['from'] ?? null; + + if ($value === null) { + $missingFields[] = 'from'; + goto after_from; + } + + $properties['from'] = $value; + + after_from: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookMemberEdited\Changes\OldPermission', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookMemberEdited\Changes\OldPermission::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookMemberEdited\Changes\OldPermission(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookMemberEdited\Changes\OldPermission', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMemberEdited⚡️Changes⚡️Permission(array $payload): \ApiClients\Client\Github\Schema\WebhookMemberEdited\Changes\Permission + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['from'] ?? null; + + if ($value === null) { + $missingFields[] = 'from'; + goto after_from; + } + + $properties['from'] = $value; + + after_from: + + $value = $payload['to'] ?? null; + + if ($value === null) { + $missingFields[] = 'to'; + goto after_to; + } + + $properties['to'] = $value; + + after_to: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookMemberEdited\Changes\Permission', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookMemberEdited\Changes\Permission::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookMemberEdited\Changes\Permission(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookMemberEdited\Changes\Permission', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner(array $payload): \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner { $properties = []; @@ -3547,6 +4114,8 @@ public function serializeObject(object $object): mixed 'DateTime' => $this->serializeValueDateTime($object), 'DateTimeImmutable' => $this->serializeValueDateTimeImmutable($object), 'DateTimeInterface' => $this->serializeValueDateTimeInterface($object), + 'ApiClients\Client\Github\Schema\WebhookMemberAdded' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMemberAdded($object), + 'ApiClients\Client\Github\Schema\WebhookMemberEdited' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMemberEdited($object), 'ApiClients\Client\Github\Schema\WebhookMemberRemoved' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMemberRemoved($object), default => throw new \LogicException('No serialization defined for $className'), }; @@ -3621,6 +4190,138 @@ private function serializeValueDateTimeInterface(mixed $value): mixed } + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMemberAdded(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookMemberAdded); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $changes = $object->changes; + $changes = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMemberAdded⚡️Changes($changes); + after_changes: $result['changes'] = $changes; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $member = $object->member; + + if ($member === null) { + goto after_member; + } + $member = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($member); + after_member: $result['member'] = $member; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMemberEdited(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookMemberEdited); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $changes = $object->changes; + + if ($changes === null) { + goto after_changes; + } + $changes = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMemberEdited⚡️Changes($changes); + after_changes: $result['changes'] = $changes; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $member = $object->member; + + if ($member === null) { + goto after_member; + } + $member = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($member); + after_member: $result['member'] = $member; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMemberRemoved(mixed $object): mixed { \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookMemberRemoved); diff --git a/src/Hydrator/WebHook/Membership.php b/src/Hydrator/WebHook/Membership.php index 2f5cd52695..eee88d0ca0 100644 --- a/src/Hydrator/WebHook/Membership.php +++ b/src/Hydrator/WebHook/Membership.php @@ -23,7 +23,8 @@ public function __construct() {} public function hydrateObject(string $className, array $payload): object { return match($className) { - 'ApiClients\Client\Github\Schema\WebhookMembershipRemoved' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMembershipRemoved($payload), + 'ApiClients\Client\Github\Schema\WebhookMembershipAdded' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMembershipAdded($payload), + 'ApiClients\Client\Github\Schema\WebhookMembershipRemoved' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMembershipRemoved($payload), 'ApiClients\Client\Github\Schema\Enterprise' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($payload), 'ApiClients\Client\Github\Schema\SimpleInstallation' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($payload), 'ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($payload), @@ -41,6 +42,190 @@ public function hydrateObject(string $className, array $payload): object } + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMembershipAdded(array $payload): \ApiClients\Client\Github\Schema\WebhookMembershipAdded + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; + + if ($value === null) { + $missingFields[] = 'action'; + goto after_action; + } + + $properties['action'] = $value; + + after_action: + + $value = $payload['enterprise'] ?? null; + + if ($value === null) { + $missingFields[] = 'enterprise'; + goto after_enterprise; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['enterprise'] = $value; + + after_enterprise: + + $value = $payload['installation'] ?? null; + + if ($value === null) { + $missingFields[] = 'installation'; + goto after_installation; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; + + after_installation: + + $value = $payload['member'] ?? null; + + if ($value === null) { + $missingFields[] = 'member'; + goto after_member; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'member'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['member'] = $value; + + after_member: + + $value = $payload['organization'] ?? null; + + if ($value === null) { + $missingFields[] = 'organization'; + goto after_organization; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; + + after_organization: + + $value = $payload['repository'] ?? null; + + if ($value === null) { + $missingFields[] = 'repository'; + goto after_repository; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repository'] = $value; + + after_repository: + + $value = $payload['scope'] ?? null; + + if ($value === null) { + $missingFields[] = 'scope'; + goto after_scope; + } + + $properties['scope'] = $value; + + after_scope: + + $value = $payload['sender'] ?? null; + + if ($value === null) { + $missingFields[] = 'sender'; + goto after_sender; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; + + after_sender: + + $value = $payload['team'] ?? null; + + if ($value === null) { + $missingFields[] = 'team'; + goto after_team; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'team'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMembershipAdded⚡️Team($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['team'] = $value; + + after_team: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookMembershipAdded', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookMembershipAdded::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookMembershipAdded(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookMembershipAdded', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMembershipRemoved(array $payload): \ApiClients\Client\Github\Schema\WebhookMembershipRemoved { $properties = []; @@ -3897,6 +4082,7 @@ public function serializeObject(object $object): mixed 'DateTime' => $this->serializeValueDateTime($object), 'DateTimeImmutable' => $this->serializeValueDateTimeImmutable($object), 'DateTimeInterface' => $this->serializeValueDateTimeInterface($object), + 'ApiClients\Client\Github\Schema\WebhookMembershipAdded' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMembershipAdded($object), 'ApiClients\Client\Github\Schema\WebhookMembershipRemoved' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMembershipRemoved($object), default => throw new \LogicException('No serialization defined for $className'), }; @@ -3971,6 +4157,82 @@ private function serializeValueDateTimeInterface(mixed $value): mixed } + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMembershipAdded(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookMembershipAdded); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $member = $object->member; + + if ($member === null) { + goto after_member; + } + $member = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($member); + after_member: $result['member'] = $member; + + + $organization = $object->organization; + + if ($organization === null) { + goto after_organization; + } + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $repository = $object->repository; + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $scope = $object->scope; + + if ($scope === null) { + goto after_scope; + } + after_scope: $result['scope'] = $scope; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($sender); + after_sender: $result['sender'] = $sender; + + + $team = $object->team; + + if ($team === null) { + goto after_team; + } + $team = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMembershipAdded⚡️Team($team); + after_team: $result['team'] = $team; + + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMembershipRemoved(mixed $object): mixed { \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookMembershipRemoved); diff --git a/src/Hydrator/WebHook/Milestone.php b/src/Hydrator/WebHook/Milestone.php index 5e6e632218..4a854813df 100644 --- a/src/Hydrator/WebHook/Milestone.php +++ b/src/Hydrator/WebHook/Milestone.php @@ -23,16 +23,26 @@ public function __construct() {} public function hydrateObject(string $className, array $payload): object { return match($className) { - 'ApiClients\Client\Github\Schema\WebhookMilestoneOpened' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMilestoneOpened($payload), + 'ApiClients\Client\Github\Schema\WebhookMilestoneClosed' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMilestoneClosed($payload), + 'ApiClients\Client\Github\Schema\WebhookMilestoneCreated' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMilestoneCreated($payload), + 'ApiClients\Client\Github\Schema\WebhookMilestoneDeleted' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMilestoneDeleted($payload), + 'ApiClients\Client\Github\Schema\WebhookMilestoneEdited' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMilestoneEdited($payload), + 'ApiClients\Client\Github\Schema\WebhookMilestoneOpened' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMilestoneOpened($payload), 'ApiClients\Client\Github\Schema\Enterprise' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($payload), 'ApiClients\Client\Github\Schema\SimpleInstallation' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($payload), - 'ApiClients\Client\Github\Schema\WebhookMilestoneCreated\Milestone' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMilestoneCreated⚡️Milestone($payload), + 'ApiClients\Client\Github\Schema\WebhookIssuesDemilestoned\Milestone' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesDemilestoned⚡️Milestone($payload), 'ApiClients\Client\Github\Schema\OrganizationSimple' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($payload), 'ApiClients\Client\Github\Schema\Repository' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($payload), 'ApiClients\Client\Github\Schema\SimpleUser' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($payload), - 'ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($payload), + 'ApiClients\Client\Github\Schema\WebhookMilestoneCreated\Milestone' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMilestoneCreated⚡️Milestone($payload), + 'ApiClients\Client\Github\Schema\WebhookMilestoneEdited\Changes' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMilestoneEdited⚡️Changes($payload), + 'ApiClients\Client\Github\Schema\WebhookIssueCommentDeleted\Comment\User' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Comment⚡️User($payload), 'ApiClients\Client\Github\Schema\Repository\Permissions' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️Permissions($payload), 'ApiClients\Client\Github\Schema\Repository\TemplateRepository' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository($payload), + 'ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($payload), + 'ApiClients\Client\Github\Schema\WebhookLabelEdited\Changes\Description' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookLabelEdited⚡️Changes⚡️Description($payload), + 'ApiClients\Client\Github\Schema\WebhookMilestoneEdited\Changes\DueOn' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMilestoneEdited⚡️Changes⚡️DueOn($payload), + 'ApiClients\Client\Github\Schema\WebhookMilestoneEdited\Changes\Title' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMilestoneEdited⚡️Changes⚡️Title($payload), 'ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner($payload), 'ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Permissions($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), @@ -40,7 +50,7 @@ public function hydrateObject(string $className, array $payload): object } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMilestoneOpened(array $payload): \ApiClients\Client\Github\Schema\WebhookMilestoneOpened + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMilestoneClosed(array $payload): \ApiClients\Client\Github\Schema\WebhookMilestoneClosed { $properties = []; $missingFields = []; @@ -107,7 +117,7 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'milestone'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMilestoneCreated⚡️Milestone($value); + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesDemilestoned⚡️Milestone($value); } finally { array_pop($this->hydrationStack); } @@ -178,277 +188,1323 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh after_sender: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookMilestoneOpened', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookMilestoneClosed', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookMilestoneOpened::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookMilestoneClosed::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\WebhookMilestoneOpened(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookMilestoneClosed(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookMilestoneOpened', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookMilestoneClosed', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise(array $payload): \ApiClients\Client\Github\Schema\Enterprise + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMilestoneCreated(array $payload): \ApiClients\Client\Github\Schema\WebhookMilestoneCreated { $properties = []; $missingFields = []; try { - $value = $payload['description'] ?? null; + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'description'; - goto after_description; + $missingFields[] = 'action'; + goto after_action; } - $properties['description'] = $value; + $properties['action'] = $value; - after_description: + after_action: - $value = $payload['html_url'] ?? null; + $value = $payload['enterprise'] ?? null; if ($value === null) { - $missingFields[] = 'html_url'; - goto after_html_url; + $missingFields[] = 'enterprise'; + goto after_enterprise; } - $properties['html_url'] = $value; - - after_html_url: - - $value = $payload['website_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'website_url'; - goto after_website_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['website_url'] = $value; + $properties['enterprise'] = $value; - after_website_url: + after_enterprise: - $value = $payload['id'] ?? null; + $value = $payload['installation'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'installation'; + goto after_installation; } - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['node_id'] = $value; + $properties['installation'] = $value; - after_node_id: + after_installation: - $value = $payload['name'] ?? null; + $value = $payload['milestone'] ?? null; if ($value === null) { - $missingFields[] = 'name'; - goto after_name; + $missingFields[] = 'milestone'; + goto after_milestone; } - $properties['name'] = $value; - - after_name: - - $value = $payload['slug'] ?? null; - - if ($value === null) { - $missingFields[] = 'slug'; - goto after_slug; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'milestone'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMilestoneCreated⚡️Milestone($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['slug'] = $value; + $properties['milestone'] = $value; - after_slug: + after_milestone: - $value = $payload['created_at'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'created_at'; - goto after_created_at; + $missingFields[] = 'organization'; + goto after_organization; } - $properties['created_at'] = $value; - - after_created_at: - - $value = $payload['updated_at'] ?? null; - - if ($value === null) { - $missingFields[] = 'updated_at'; - goto after_updated_at; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['updated_at'] = $value; + $properties['organization'] = $value; - after_updated_at: + after_organization: - $value = $payload['avatar_url'] ?? null; + $value = $payload['repository'] ?? null; if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatar_url; + $missingFields[] = 'repository'; + goto after_repository; } - $properties['avatar_url'] = $value; - - after_avatar_url: - - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Enterprise', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Enterprise::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\Enterprise(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Enterprise', $exception, stack: $this->hydrationStack); - } - } - - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation(array $payload): \ApiClients\Client\Github\Schema\SimpleInstallation - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['id'] = $value; + $properties['repository'] = $value; - after_id: + after_repository: - $value = $payload['node_id'] ?? null; + $value = $payload['sender'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $missingFields[] = 'sender'; + goto after_sender; } - $properties['node_id'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; - after_node_id: + after_sender: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleInstallation', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookMilestoneCreated', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\SimpleInstallation::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookMilestoneCreated::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\SimpleInstallation(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookMilestoneCreated(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleInstallation', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookMilestoneCreated', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMilestoneCreated⚡️Milestone(array $payload): \ApiClients\Client\Github\Schema\WebhookMilestoneCreated\Milestone + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMilestoneDeleted(array $payload): \ApiClients\Client\Github\Schema\WebhookMilestoneDeleted { $properties = []; $missingFields = []; try { - $value = $payload['closed_at'] ?? null; + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'closed_at'; - goto after_closed_at; + $missingFields[] = 'action'; + goto after_action; } - $properties['closed_at'] = $value; + $properties['action'] = $value; - after_closed_at: + after_action: - $value = $payload['closed_issues'] ?? null; + $value = $payload['enterprise'] ?? null; if ($value === null) { - $missingFields[] = 'closed_issues'; - goto after_closed_issues; + $missingFields[] = 'enterprise'; + goto after_enterprise; } - $properties['closed_issues'] = $value; - - after_closed_issues: - - $value = $payload['created_at'] ?? null; - - if ($value === null) { - $missingFields[] = 'created_at'; - goto after_created_at; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['created_at'] = $value; + $properties['enterprise'] = $value; - after_created_at: + after_enterprise: - $value = $payload['creator'] ?? null; + $value = $payload['installation'] ?? null; if ($value === null) { - $missingFields[] = 'creator'; - goto after_creator; + $missingFields[] = 'installation'; + goto after_installation; } if (is_array($value)) { try { - $this->hydrationStack[] = 'creator'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); } finally { array_pop($this->hydrationStack); } } - $properties['creator'] = $value; + $properties['installation'] = $value; - after_creator: + after_installation: - $value = $payload['description'] ?? null; + $value = $payload['milestone'] ?? null; if ($value === null) { - $missingFields[] = 'description'; - goto after_description; + $missingFields[] = 'milestone'; + goto after_milestone; } - $properties['description'] = $value; - - after_description: + if (is_array($value)) { + try { + $this->hydrationStack[] = 'milestone'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesDemilestoned⚡️Milestone($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['milestone'] = $value; + + after_milestone: + + $value = $payload['organization'] ?? null; + + if ($value === null) { + $missingFields[] = 'organization'; + goto after_organization; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; + + after_organization: + + $value = $payload['repository'] ?? null; + + if ($value === null) { + $missingFields[] = 'repository'; + goto after_repository; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repository'] = $value; + + after_repository: + + $value = $payload['sender'] ?? null; + + if ($value === null) { + $missingFields[] = 'sender'; + goto after_sender; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; + + after_sender: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookMilestoneDeleted', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookMilestoneDeleted::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookMilestoneDeleted(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookMilestoneDeleted', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMilestoneEdited(array $payload): \ApiClients\Client\Github\Schema\WebhookMilestoneEdited + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; + + if ($value === null) { + $missingFields[] = 'action'; + goto after_action; + } + + $properties['action'] = $value; + + after_action: + + $value = $payload['changes'] ?? null; + + if ($value === null) { + $missingFields[] = 'changes'; + goto after_changes; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'changes'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMilestoneEdited⚡️Changes($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['changes'] = $value; + + after_changes: + + $value = $payload['enterprise'] ?? null; + + if ($value === null) { + $missingFields[] = 'enterprise'; + goto after_enterprise; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['enterprise'] = $value; + + after_enterprise: + + $value = $payload['installation'] ?? null; + + if ($value === null) { + $missingFields[] = 'installation'; + goto after_installation; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; + + after_installation: + + $value = $payload['milestone'] ?? null; + + if ($value === null) { + $missingFields[] = 'milestone'; + goto after_milestone; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'milestone'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesDemilestoned⚡️Milestone($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['milestone'] = $value; + + after_milestone: + + $value = $payload['organization'] ?? null; + + if ($value === null) { + $missingFields[] = 'organization'; + goto after_organization; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; + + after_organization: + + $value = $payload['repository'] ?? null; + + if ($value === null) { + $missingFields[] = 'repository'; + goto after_repository; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repository'] = $value; + + after_repository: + + $value = $payload['sender'] ?? null; + + if ($value === null) { + $missingFields[] = 'sender'; + goto after_sender; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; + + after_sender: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookMilestoneEdited', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookMilestoneEdited::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookMilestoneEdited(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookMilestoneEdited', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMilestoneOpened(array $payload): \ApiClients\Client\Github\Schema\WebhookMilestoneOpened + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; + + if ($value === null) { + $missingFields[] = 'action'; + goto after_action; + } + + $properties['action'] = $value; + + after_action: + + $value = $payload['enterprise'] ?? null; + + if ($value === null) { + $missingFields[] = 'enterprise'; + goto after_enterprise; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['enterprise'] = $value; + + after_enterprise: + + $value = $payload['installation'] ?? null; + + if ($value === null) { + $missingFields[] = 'installation'; + goto after_installation; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; + + after_installation: + + $value = $payload['milestone'] ?? null; + + if ($value === null) { + $missingFields[] = 'milestone'; + goto after_milestone; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'milestone'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMilestoneCreated⚡️Milestone($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['milestone'] = $value; + + after_milestone: + + $value = $payload['organization'] ?? null; + + if ($value === null) { + $missingFields[] = 'organization'; + goto after_organization; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; + + after_organization: + + $value = $payload['repository'] ?? null; + + if ($value === null) { + $missingFields[] = 'repository'; + goto after_repository; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repository'] = $value; + + after_repository: + + $value = $payload['sender'] ?? null; + + if ($value === null) { + $missingFields[] = 'sender'; + goto after_sender; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; + + after_sender: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookMilestoneOpened', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookMilestoneOpened::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookMilestoneOpened(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookMilestoneOpened', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise(array $payload): \ApiClients\Client\Github\Schema\Enterprise + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['description'] ?? null; + + if ($value === null) { + $missingFields[] = 'description'; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } + + $properties['html_url'] = $value; + + after_html_url: + + $value = $payload['website_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'website_url'; + goto after_website_url; + } + + $properties['website_url'] = $value; + + after_website_url: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['slug'] ?? null; + + if ($value === null) { + $missingFields[] = 'slug'; + goto after_slug; + } + + $properties['slug'] = $value; + + after_slug: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'created_at'; + goto after_created_at; + } + + $properties['created_at'] = $value; + + after_created_at: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'updated_at'; + goto after_updated_at; + } + + $properties['updated_at'] = $value; + + after_updated_at: + + $value = $payload['avatar_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'avatar_url'; + goto after_avatar_url; + } + + $properties['avatar_url'] = $value; + + after_avatar_url: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Enterprise', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Enterprise::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\Enterprise(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Enterprise', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation(array $payload): \ApiClients\Client\Github\Schema\SimpleInstallation + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleInstallation', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\SimpleInstallation::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\SimpleInstallation(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleInstallation', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesDemilestoned⚡️Milestone(array $payload): \ApiClients\Client\Github\Schema\WebhookIssuesDemilestoned\Milestone + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['closed_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'closed_at'; + goto after_closed_at; + } + + $properties['closed_at'] = $value; + + after_closed_at: + + $value = $payload['closed_issues'] ?? null; + + if ($value === null) { + $missingFields[] = 'closed_issues'; + goto after_closed_issues; + } + + $properties['closed_issues'] = $value; + + after_closed_issues: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'created_at'; + goto after_created_at; + } + + $properties['created_at'] = $value; + + after_created_at: + + $value = $payload['creator'] ?? null; + + if ($value === null) { + $missingFields[] = 'creator'; + goto after_creator; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'creator'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Comment⚡️User($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['creator'] = $value; + + after_creator: + + $value = $payload['description'] ?? null; + + if ($value === null) { + $missingFields[] = 'description'; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['due_on'] ?? null; + + if ($value === null) { + $missingFields[] = 'due_on'; + goto after_due_on; + } + + $properties['due_on'] = $value; + + after_due_on: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } + + $properties['html_url'] = $value; + + after_html_url: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['labels_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'labels_url'; + goto after_labels_url; + } + + $properties['labels_url'] = $value; + + after_labels_url: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['number'] ?? null; + + if ($value === null) { + $missingFields[] = 'number'; + goto after_number; + } + + $properties['number'] = $value; + + after_number: + + $value = $payload['open_issues'] ?? null; + + if ($value === null) { + $missingFields[] = 'open_issues'; + goto after_open_issues; + } + + $properties['open_issues'] = $value; + + after_open_issues: + + $value = $payload['state'] ?? null; + + if ($value === null) { + $missingFields[] = 'state'; + goto after_state; + } + + $properties['state'] = $value; + + after_state: + + $value = $payload['title'] ?? null; + + if ($value === null) { + $missingFields[] = 'title'; + goto after_title; + } + + $properties['title'] = $value; + + after_title: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'updated_at'; + goto after_updated_at; + } + + $properties['updated_at'] = $value; + + after_updated_at: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesDemilestoned\Milestone', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookIssuesDemilestoned\Milestone::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookIssuesDemilestoned\Milestone(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesDemilestoned\Milestone', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple(array $payload): \ApiClients\Client\Github\Schema\OrganizationSimple + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['login'] ?? null; + + if ($value === null) { + $missingFields[] = 'login'; + goto after_login; + } + + $properties['login'] = $value; + + after_login: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['repos_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'repos_url'; + goto after_repos_url; + } + + $properties['repos_url'] = $value; + + after_repos_url: + + $value = $payload['events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'events_url'; + goto after_events_url; + } + + $properties['events_url'] = $value; + + after_events_url: + + $value = $payload['hooks_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'hooks_url'; + goto after_hooks_url; + } + + $properties['hooks_url'] = $value; + + after_hooks_url: + + $value = $payload['issues_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issues_url'; + goto after_issues_url; + } + + $properties['issues_url'] = $value; + + after_issues_url: + + $value = $payload['members_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'members_url'; + goto after_members_url; + } + + $properties['members_url'] = $value; + + after_members_url: + + $value = $payload['public_members_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'public_members_url'; + goto after_public_members_url; + } + + $properties['public_members_url'] = $value; + + after_public_members_url: + + $value = $payload['avatar_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'avatar_url'; + goto after_avatar_url; + } + + $properties['avatar_url'] = $value; + + after_avatar_url: + + $value = $payload['description'] ?? null; + + if ($value === null) { + $missingFields[] = 'description'; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\OrganizationSimple', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\OrganizationSimple::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\OrganizationSimple(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\OrganizationSimple', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository(array $payload): \ApiClients\Client\Github\Schema\Repository + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: - $value = $payload['due_on'] ?? null; + $value = $payload['name'] ?? null; if ($value === null) { - $missingFields[] = 'due_on'; - goto after_due_on; + $missingFields[] = 'name'; + goto after_name; } - $properties['due_on'] = $value; + $properties['name'] = $value; - after_due_on: + after_name: + + $value = $payload['full_name'] ?? null; + + if ($value === null) { + $missingFields[] = 'full_name'; + goto after_full_name; + } + + $properties['full_name'] = $value; + + after_full_name: + + $value = $payload['license'] ?? null; + + if ($value === null) { + $properties['license'] = null; + goto after_license; + } + + $properties['license'] = $value; + + after_license: + + $value = $payload['organization'] ?? null; + + if ($value === null) { + $properties['organization'] = null; + goto after_organization; + } + + $properties['organization'] = $value; + + after_organization: + + $value = $payload['forks'] ?? null; + + if ($value === null) { + $missingFields[] = 'forks'; + goto after_forks; + } + + $properties['forks'] = $value; + + after_forks: + + $value = $payload['permissions'] ?? null; + + if ($value === null) { + $missingFields[] = 'permissions'; + goto after_permissions; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'permissions'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️Permissions($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['permissions'] = $value; + + after_permissions: + + $value = $payload['owner'] ?? null; + + if ($value === null) { + $missingFields[] = 'owner'; + goto after_owner; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'owner'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['owner'] = $value; + + after_owner: + + $value = $payload['private'] ?? null; + + if ($value === null) { + $missingFields[] = 'private'; + goto after_private; + } + + $properties['private'] = $value; + + after_private: $value = $payload['html_url'] ?? null; @@ -461,203 +1517,258 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh after_html_url: - $value = $payload['id'] ?? null; + $value = $payload['description'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'description'; + goto after_description; } - $properties['id'] = $value; + $properties['description'] = $value; - after_id: + after_description: - $value = $payload['labels_url'] ?? null; + $value = $payload['fork'] ?? null; if ($value === null) { - $missingFields[] = 'labels_url'; - goto after_labels_url; + $missingFields[] = 'fork'; + goto after_fork; } - $properties['labels_url'] = $value; + $properties['fork'] = $value; - after_labels_url: + after_fork: - $value = $payload['node_id'] ?? null; + $value = $payload['url'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $missingFields[] = 'url'; + goto after_url; } - $properties['node_id'] = $value; + $properties['url'] = $value; - after_node_id: + after_url: - $value = $payload['number'] ?? null; + $value = $payload['archive_url'] ?? null; if ($value === null) { - $missingFields[] = 'number'; - goto after_number; + $missingFields[] = 'archive_url'; + goto after_archive_url; } - $properties['number'] = $value; + $properties['archive_url'] = $value; - after_number: + after_archive_url: - $value = $payload['open_issues'] ?? null; + $value = $payload['assignees_url'] ?? null; if ($value === null) { - $missingFields[] = 'open_issues'; - goto after_open_issues; + $missingFields[] = 'assignees_url'; + goto after_assignees_url; } - $properties['open_issues'] = $value; + $properties['assignees_url'] = $value; - after_open_issues: + after_assignees_url: - $value = $payload['state'] ?? null; + $value = $payload['blobs_url'] ?? null; if ($value === null) { - $missingFields[] = 'state'; - goto after_state; + $missingFields[] = 'blobs_url'; + goto after_blobs_url; } - $properties['state'] = $value; + $properties['blobs_url'] = $value; - after_state: + after_blobs_url: - $value = $payload['title'] ?? null; + $value = $payload['branches_url'] ?? null; if ($value === null) { - $missingFields[] = 'title'; - goto after_title; + $missingFields[] = 'branches_url'; + goto after_branches_url; } - $properties['title'] = $value; + $properties['branches_url'] = $value; - after_title: + after_branches_url: - $value = $payload['updated_at'] ?? null; + $value = $payload['collaborators_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'collaborators_url'; + goto after_collaborators_url; + } + + $properties['collaborators_url'] = $value; + + after_collaborators_url: + + $value = $payload['comments_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'comments_url'; + goto after_comments_url; + } + + $properties['comments_url'] = $value; + + after_comments_url: + + $value = $payload['commits_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'commits_url'; + goto after_commits_url; + } + + $properties['commits_url'] = $value; + + after_commits_url: + + $value = $payload['compare_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'compare_url'; + goto after_compare_url; + } + + $properties['compare_url'] = $value; + + after_compare_url: + + $value = $payload['contents_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'contents_url'; + goto after_contents_url; + } + + $properties['contents_url'] = $value; + + after_contents_url: + + $value = $payload['contributors_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'contributors_url'; + goto after_contributors_url; + } + + $properties['contributors_url'] = $value; + + after_contributors_url: + + $value = $payload['deployments_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'deployments_url'; + goto after_deployments_url; + } + + $properties['deployments_url'] = $value; + + after_deployments_url: + + $value = $payload['downloads_url'] ?? null; if ($value === null) { - $missingFields[] = 'updated_at'; - goto after_updated_at; + $missingFields[] = 'downloads_url'; + goto after_downloads_url; } - $properties['updated_at'] = $value; + $properties['downloads_url'] = $value; - after_updated_at: + after_downloads_url: - $value = $payload['url'] ?? null; + $value = $payload['events_url'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $missingFields[] = 'events_url'; + goto after_events_url; } - $properties['url'] = $value; + $properties['events_url'] = $value; - after_url: - - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookMilestoneCreated\Milestone', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookMilestoneCreated\Milestone::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\WebhookMilestoneCreated\Milestone(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookMilestoneCreated\Milestone', $exception, stack: $this->hydrationStack); - } - } + after_events_url: - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple(array $payload): \ApiClients\Client\Github\Schema\OrganizationSimple - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['login'] ?? null; + $value = $payload['forks_url'] ?? null; if ($value === null) { - $missingFields[] = 'login'; - goto after_login; + $missingFields[] = 'forks_url'; + goto after_forks_url; } - $properties['login'] = $value; + $properties['forks_url'] = $value; - after_login: + after_forks_url: - $value = $payload['id'] ?? null; + $value = $payload['git_commits_url'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'git_commits_url'; + goto after_git_commits_url; } - $properties['id'] = $value; + $properties['git_commits_url'] = $value; - after_id: + after_git_commits_url: - $value = $payload['node_id'] ?? null; + $value = $payload['git_refs_url'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $missingFields[] = 'git_refs_url'; + goto after_git_refs_url; } - $properties['node_id'] = $value; + $properties['git_refs_url'] = $value; - after_node_id: + after_git_refs_url: - $value = $payload['url'] ?? null; + $value = $payload['git_tags_url'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $missingFields[] = 'git_tags_url'; + goto after_git_tags_url; } - $properties['url'] = $value; + $properties['git_tags_url'] = $value; - after_url: + after_git_tags_url: - $value = $payload['repos_url'] ?? null; + $value = $payload['git_url'] ?? null; if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_repos_url; + $missingFields[] = 'git_url'; + goto after_git_url; } - $properties['repos_url'] = $value; + $properties['git_url'] = $value; - after_repos_url: + after_git_url: - $value = $payload['events_url'] ?? null; + $value = $payload['issue_comment_url'] ?? null; if ($value === null) { - $missingFields[] = 'events_url'; - goto after_events_url; + $missingFields[] = 'issue_comment_url'; + goto after_issue_comment_url; } - $properties['events_url'] = $value; + $properties['issue_comment_url'] = $value; - after_events_url: + after_issue_comment_url: - $value = $payload['hooks_url'] ?? null; + $value = $payload['issue_events_url'] ?? null; if ($value === null) { - $missingFields[] = 'hooks_url'; - goto after_hooks_url; + $missingFields[] = 'issue_events_url'; + goto after_issue_events_url; } - $properties['hooks_url'] = $value; + $properties['issue_events_url'] = $value; - after_hooks_url: + after_issue_events_url: $value = $payload['issues_url'] ?? null; @@ -670,1220 +1781,1304 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Orga after_issues_url: - $value = $payload['members_url'] ?? null; + $value = $payload['keys_url'] ?? null; if ($value === null) { - $missingFields[] = 'members_url'; - goto after_members_url; + $missingFields[] = 'keys_url'; + goto after_keys_url; } - $properties['members_url'] = $value; + $properties['keys_url'] = $value; - after_members_url: + after_keys_url: - $value = $payload['public_members_url'] ?? null; + $value = $payload['labels_url'] ?? null; if ($value === null) { - $missingFields[] = 'public_members_url'; - goto after_public_members_url; + $missingFields[] = 'labels_url'; + goto after_labels_url; } - $properties['public_members_url'] = $value; + $properties['labels_url'] = $value; - after_public_members_url: + after_labels_url: - $value = $payload['avatar_url'] ?? null; + $value = $payload['languages_url'] ?? null; if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatar_url; + $missingFields[] = 'languages_url'; + goto after_languages_url; } - $properties['avatar_url'] = $value; + $properties['languages_url'] = $value; - after_avatar_url: + after_languages_url: - $value = $payload['description'] ?? null; + $value = $payload['merges_url'] ?? null; if ($value === null) { - $missingFields[] = 'description'; - goto after_description; + $missingFields[] = 'merges_url'; + goto after_merges_url; } - $properties['description'] = $value; + $properties['merges_url'] = $value; - after_description: - - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\OrganizationSimple', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\OrganizationSimple::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\OrganizationSimple(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\OrganizationSimple', $exception, stack: $this->hydrationStack); - } - } + after_merges_url: - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository(array $payload): \ApiClients\Client\Github\Schema\Repository - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['id'] ?? null; + $value = $payload['milestones_url'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'milestones_url'; + goto after_milestones_url; } - $properties['id'] = $value; + $properties['milestones_url'] = $value; - after_id: + after_milestones_url: - $value = $payload['node_id'] ?? null; + $value = $payload['notifications_url'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $missingFields[] = 'notifications_url'; + goto after_notifications_url; } - $properties['node_id'] = $value; + $properties['notifications_url'] = $value; - after_node_id: + after_notifications_url: - $value = $payload['name'] ?? null; + $value = $payload['pulls_url'] ?? null; if ($value === null) { - $missingFields[] = 'name'; - goto after_name; + $missingFields[] = 'pulls_url'; + goto after_pulls_url; } - $properties['name'] = $value; + $properties['pulls_url'] = $value; - after_name: + after_pulls_url: - $value = $payload['full_name'] ?? null; + $value = $payload['releases_url'] ?? null; if ($value === null) { - $missingFields[] = 'full_name'; - goto after_full_name; + $missingFields[] = 'releases_url'; + goto after_releases_url; } - $properties['full_name'] = $value; + $properties['releases_url'] = $value; - after_full_name: + after_releases_url: - $value = $payload['license'] ?? null; + $value = $payload['ssh_url'] ?? null; if ($value === null) { - $properties['license'] = null; - goto after_license; + $missingFields[] = 'ssh_url'; + goto after_ssh_url; } - $properties['license'] = $value; + $properties['ssh_url'] = $value; - after_license: + after_ssh_url: - $value = $payload['organization'] ?? null; + $value = $payload['stargazers_url'] ?? null; if ($value === null) { - $properties['organization'] = null; - goto after_organization; + $missingFields[] = 'stargazers_url'; + goto after_stargazers_url; } - $properties['organization'] = $value; + $properties['stargazers_url'] = $value; - after_organization: + after_stargazers_url: - $value = $payload['forks'] ?? null; + $value = $payload['statuses_url'] ?? null; if ($value === null) { - $missingFields[] = 'forks'; - goto after_forks; + $missingFields[] = 'statuses_url'; + goto after_statuses_url; } - $properties['forks'] = $value; + $properties['statuses_url'] = $value; - after_forks: + after_statuses_url: - $value = $payload['permissions'] ?? null; + $value = $payload['subscribers_url'] ?? null; if ($value === null) { - $missingFields[] = 'permissions'; - goto after_permissions; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'permissions'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️Permissions($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'subscribers_url'; + goto after_subscribers_url; } - $properties['permissions'] = $value; + $properties['subscribers_url'] = $value; - after_permissions: + after_subscribers_url: - $value = $payload['owner'] ?? null; + $value = $payload['subscription_url'] ?? null; if ($value === null) { - $missingFields[] = 'owner'; - goto after_owner; + $missingFields[] = 'subscription_url'; + goto after_subscription_url; } - if (is_array($value)) { - try { - $this->hydrationStack[] = 'owner'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); - } finally { - array_pop($this->hydrationStack); - } + $properties['subscription_url'] = $value; + + after_subscription_url: + + $value = $payload['tags_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'tags_url'; + goto after_tags_url; } - $properties['owner'] = $value; + $properties['tags_url'] = $value; - after_owner: + after_tags_url: - $value = $payload['private'] ?? null; + $value = $payload['teams_url'] ?? null; if ($value === null) { - $missingFields[] = 'private'; - goto after_private; + $missingFields[] = 'teams_url'; + goto after_teams_url; } - $properties['private'] = $value; + $properties['teams_url'] = $value; - after_private: + after_teams_url: - $value = $payload['html_url'] ?? null; + $value = $payload['trees_url'] ?? null; if ($value === null) { - $missingFields[] = 'html_url'; - goto after_html_url; + $missingFields[] = 'trees_url'; + goto after_trees_url; } - $properties['html_url'] = $value; + $properties['trees_url'] = $value; - after_html_url: + after_trees_url: - $value = $payload['description'] ?? null; + $value = $payload['clone_url'] ?? null; if ($value === null) { - $missingFields[] = 'description'; - goto after_description; + $missingFields[] = 'clone_url'; + goto after_clone_url; } - $properties['description'] = $value; + $properties['clone_url'] = $value; - after_description: + after_clone_url: - $value = $payload['fork'] ?? null; + $value = $payload['mirror_url'] ?? null; if ($value === null) { - $missingFields[] = 'fork'; - goto after_fork; + $missingFields[] = 'mirror_url'; + goto after_mirror_url; } - $properties['fork'] = $value; + $properties['mirror_url'] = $value; - after_fork: + after_mirror_url: - $value = $payload['url'] ?? null; + $value = $payload['hooks_url'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $missingFields[] = 'hooks_url'; + goto after_hooks_url; } - $properties['url'] = $value; + $properties['hooks_url'] = $value; - after_url: + after_hooks_url: - $value = $payload['archive_url'] ?? null; + $value = $payload['svn_url'] ?? null; if ($value === null) { - $missingFields[] = 'archive_url'; - goto after_archive_url; + $missingFields[] = 'svn_url'; + goto after_svn_url; } - $properties['archive_url'] = $value; + $properties['svn_url'] = $value; - after_archive_url: + after_svn_url: - $value = $payload['assignees_url'] ?? null; + $value = $payload['homepage'] ?? null; if ($value === null) { - $missingFields[] = 'assignees_url'; - goto after_assignees_url; + $missingFields[] = 'homepage'; + goto after_homepage; } - $properties['assignees_url'] = $value; + $properties['homepage'] = $value; - after_assignees_url: + after_homepage: - $value = $payload['blobs_url'] ?? null; + $value = $payload['language'] ?? null; if ($value === null) { - $missingFields[] = 'blobs_url'; - goto after_blobs_url; + $missingFields[] = 'language'; + goto after_language; } - $properties['blobs_url'] = $value; + $properties['language'] = $value; - after_blobs_url: + after_language: - $value = $payload['branches_url'] ?? null; + $value = $payload['forks_count'] ?? null; if ($value === null) { - $missingFields[] = 'branches_url'; - goto after_branches_url; + $missingFields[] = 'forks_count'; + goto after_forks_count; } - $properties['branches_url'] = $value; + $properties['forks_count'] = $value; - after_branches_url: + after_forks_count: - $value = $payload['collaborators_url'] ?? null; + $value = $payload['stargazers_count'] ?? null; if ($value === null) { - $missingFields[] = 'collaborators_url'; - goto after_collaborators_url; + $missingFields[] = 'stargazers_count'; + goto after_stargazers_count; } - $properties['collaborators_url'] = $value; + $properties['stargazers_count'] = $value; - after_collaborators_url: + after_stargazers_count: - $value = $payload['comments_url'] ?? null; + $value = $payload['watchers_count'] ?? null; if ($value === null) { - $missingFields[] = 'comments_url'; - goto after_comments_url; + $missingFields[] = 'watchers_count'; + goto after_watchers_count; } - $properties['comments_url'] = $value; + $properties['watchers_count'] = $value; - after_comments_url: + after_watchers_count: - $value = $payload['commits_url'] ?? null; + $value = $payload['size'] ?? null; if ($value === null) { - $missingFields[] = 'commits_url'; - goto after_commits_url; + $missingFields[] = 'size'; + goto after_size; } - $properties['commits_url'] = $value; + $properties['size'] = $value; - after_commits_url: + after_size: - $value = $payload['compare_url'] ?? null; + $value = $payload['default_branch'] ?? null; if ($value === null) { - $missingFields[] = 'compare_url'; - goto after_compare_url; + $missingFields[] = 'default_branch'; + goto after_default_branch; } - $properties['compare_url'] = $value; + $properties['default_branch'] = $value; - after_compare_url: + after_default_branch: - $value = $payload['contents_url'] ?? null; + $value = $payload['open_issues_count'] ?? null; if ($value === null) { - $missingFields[] = 'contents_url'; - goto after_contents_url; + $missingFields[] = 'open_issues_count'; + goto after_open_issues_count; } - $properties['contents_url'] = $value; + $properties['open_issues_count'] = $value; - after_contents_url: + after_open_issues_count: - $value = $payload['contributors_url'] ?? null; + $value = $payload['is_template'] ?? null; if ($value === null) { - $missingFields[] = 'contributors_url'; - goto after_contributors_url; + $missingFields[] = 'is_template'; + goto after_is_template; } - $properties['contributors_url'] = $value; + $properties['is_template'] = $value; - after_contributors_url: + after_is_template: - $value = $payload['deployments_url'] ?? null; + $value = $payload['topics'] ?? null; if ($value === null) { - $missingFields[] = 'deployments_url'; - goto after_deployments_url; + $missingFields[] = 'topics'; + goto after_topics; } - $properties['deployments_url'] = $value; + $properties['topics'] = $value; - after_deployments_url: + after_topics: - $value = $payload['downloads_url'] ?? null; + $value = $payload['has_issues'] ?? null; if ($value === null) { - $missingFields[] = 'downloads_url'; - goto after_downloads_url; + $missingFields[] = 'has_issues'; + goto after_has_issues; } - $properties['downloads_url'] = $value; + $properties['has_issues'] = $value; - after_downloads_url: + after_has_issues: - $value = $payload['events_url'] ?? null; + $value = $payload['has_projects'] ?? null; if ($value === null) { - $missingFields[] = 'events_url'; - goto after_events_url; + $missingFields[] = 'has_projects'; + goto after_has_projects; } - $properties['events_url'] = $value; + $properties['has_projects'] = $value; - after_events_url: + after_has_projects: - $value = $payload['forks_url'] ?? null; + $value = $payload['has_wiki'] ?? null; if ($value === null) { - $missingFields[] = 'forks_url'; - goto after_forks_url; + $missingFields[] = 'has_wiki'; + goto after_has_wiki; } - $properties['forks_url'] = $value; + $properties['has_wiki'] = $value; - after_forks_url: + after_has_wiki: - $value = $payload['git_commits_url'] ?? null; + $value = $payload['has_pages'] ?? null; if ($value === null) { - $missingFields[] = 'git_commits_url'; - goto after_git_commits_url; + $missingFields[] = 'has_pages'; + goto after_has_pages; } - $properties['git_commits_url'] = $value; + $properties['has_pages'] = $value; - after_git_commits_url: + after_has_pages: - $value = $payload['git_refs_url'] ?? null; + $value = $payload['has_downloads'] ?? null; if ($value === null) { - $missingFields[] = 'git_refs_url'; - goto after_git_refs_url; + $missingFields[] = 'has_downloads'; + goto after_has_downloads; } - $properties['git_refs_url'] = $value; + $properties['has_downloads'] = $value; - after_git_refs_url: + after_has_downloads: - $value = $payload['git_tags_url'] ?? null; + $value = $payload['has_discussions'] ?? null; if ($value === null) { - $missingFields[] = 'git_tags_url'; - goto after_git_tags_url; + $missingFields[] = 'has_discussions'; + goto after_has_discussions; } - $properties['git_tags_url'] = $value; + $properties['has_discussions'] = $value; - after_git_tags_url: + after_has_discussions: - $value = $payload['git_url'] ?? null; + $value = $payload['archived'] ?? null; if ($value === null) { - $missingFields[] = 'git_url'; - goto after_git_url; + $missingFields[] = 'archived'; + goto after_archived; } - $properties['git_url'] = $value; + $properties['archived'] = $value; - after_git_url: + after_archived: - $value = $payload['issue_comment_url'] ?? null; + $value = $payload['disabled'] ?? null; if ($value === null) { - $missingFields[] = 'issue_comment_url'; - goto after_issue_comment_url; + $missingFields[] = 'disabled'; + goto after_disabled; } - $properties['issue_comment_url'] = $value; + $properties['disabled'] = $value; - after_issue_comment_url: + after_disabled: - $value = $payload['issue_events_url'] ?? null; + $value = $payload['visibility'] ?? null; if ($value === null) { - $missingFields[] = 'issue_events_url'; - goto after_issue_events_url; + $missingFields[] = 'visibility'; + goto after_visibility; } - $properties['issue_events_url'] = $value; + $properties['visibility'] = $value; - after_issue_events_url: + after_visibility: - $value = $payload['issues_url'] ?? null; + $value = $payload['pushed_at'] ?? null; if ($value === null) { - $missingFields[] = 'issues_url'; - goto after_issues_url; + $missingFields[] = 'pushed_at'; + goto after_pushed_at; } - $properties['issues_url'] = $value; + $properties['pushed_at'] = $value; - after_issues_url: + after_pushed_at: - $value = $payload['keys_url'] ?? null; + $value = $payload['created_at'] ?? null; if ($value === null) { - $missingFields[] = 'keys_url'; - goto after_keys_url; + $missingFields[] = 'created_at'; + goto after_created_at; } - $properties['keys_url'] = $value; + $properties['created_at'] = $value; - after_keys_url: + after_created_at: - $value = $payload['labels_url'] ?? null; + $value = $payload['updated_at'] ?? null; if ($value === null) { - $missingFields[] = 'labels_url'; - goto after_labels_url; + $missingFields[] = 'updated_at'; + goto after_updated_at; } - $properties['labels_url'] = $value; + $properties['updated_at'] = $value; - after_labels_url: + after_updated_at: - $value = $payload['languages_url'] ?? null; + $value = $payload['allow_rebase_merge'] ?? null; if ($value === null) { - $missingFields[] = 'languages_url'; - goto after_languages_url; + $missingFields[] = 'allow_rebase_merge'; + goto after_allow_rebase_merge; } - $properties['languages_url'] = $value; + $properties['allow_rebase_merge'] = $value; - after_languages_url: + after_allow_rebase_merge: - $value = $payload['merges_url'] ?? null; + $value = $payload['template_repository'] ?? null; if ($value === null) { - $missingFields[] = 'merges_url'; - goto after_merges_url; + $missingFields[] = 'template_repository'; + goto after_template_repository; } - $properties['merges_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'template_repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['template_repository'] = $value; - after_merges_url: + after_template_repository: - $value = $payload['milestones_url'] ?? null; + $value = $payload['temp_clone_token'] ?? null; if ($value === null) { - $missingFields[] = 'milestones_url'; - goto after_milestones_url; + $missingFields[] = 'temp_clone_token'; + goto after_temp_clone_token; } - $properties['milestones_url'] = $value; + $properties['temp_clone_token'] = $value; - after_milestones_url: + after_temp_clone_token: - $value = $payload['notifications_url'] ?? null; + $value = $payload['allow_squash_merge'] ?? null; if ($value === null) { - $missingFields[] = 'notifications_url'; - goto after_notifications_url; + $missingFields[] = 'allow_squash_merge'; + goto after_allow_squash_merge; } - $properties['notifications_url'] = $value; + $properties['allow_squash_merge'] = $value; - after_notifications_url: + after_allow_squash_merge: - $value = $payload['pulls_url'] ?? null; + $value = $payload['allow_auto_merge'] ?? null; if ($value === null) { - $missingFields[] = 'pulls_url'; - goto after_pulls_url; + $missingFields[] = 'allow_auto_merge'; + goto after_allow_auto_merge; } - $properties['pulls_url'] = $value; + $properties['allow_auto_merge'] = $value; - after_pulls_url: + after_allow_auto_merge: - $value = $payload['releases_url'] ?? null; + $value = $payload['delete_branch_on_merge'] ?? null; if ($value === null) { - $missingFields[] = 'releases_url'; - goto after_releases_url; + $missingFields[] = 'delete_branch_on_merge'; + goto after_delete_branch_on_merge; } - $properties['releases_url'] = $value; + $properties['delete_branch_on_merge'] = $value; - after_releases_url: + after_delete_branch_on_merge: - $value = $payload['ssh_url'] ?? null; + $value = $payload['allow_update_branch'] ?? null; if ($value === null) { - $missingFields[] = 'ssh_url'; - goto after_ssh_url; + $missingFields[] = 'allow_update_branch'; + goto after_allow_update_branch; } - $properties['ssh_url'] = $value; + $properties['allow_update_branch'] = $value; - after_ssh_url: + after_allow_update_branch: - $value = $payload['stargazers_url'] ?? null; + $value = $payload['use_squash_pr_title_as_default'] ?? null; if ($value === null) { - $missingFields[] = 'stargazers_url'; - goto after_stargazers_url; + $missingFields[] = 'use_squash_pr_title_as_default'; + goto after_use_squash_pr_title_as_default; } - $properties['stargazers_url'] = $value; + $properties['use_squash_pr_title_as_default'] = $value; - after_stargazers_url: + after_use_squash_pr_title_as_default: - $value = $payload['statuses_url'] ?? null; + $value = $payload['squash_merge_commit_title'] ?? null; if ($value === null) { - $missingFields[] = 'statuses_url'; - goto after_statuses_url; + $missingFields[] = 'squash_merge_commit_title'; + goto after_squash_merge_commit_title; } - $properties['statuses_url'] = $value; + $properties['squash_merge_commit_title'] = $value; - after_statuses_url: + after_squash_merge_commit_title: - $value = $payload['subscribers_url'] ?? null; + $value = $payload['squash_merge_commit_message'] ?? null; if ($value === null) { - $missingFields[] = 'subscribers_url'; - goto after_subscribers_url; + $missingFields[] = 'squash_merge_commit_message'; + goto after_squash_merge_commit_message; } - $properties['subscribers_url'] = $value; + $properties['squash_merge_commit_message'] = $value; - after_subscribers_url: + after_squash_merge_commit_message: - $value = $payload['subscription_url'] ?? null; + $value = $payload['merge_commit_title'] ?? null; if ($value === null) { - $missingFields[] = 'subscription_url'; - goto after_subscription_url; + $missingFields[] = 'merge_commit_title'; + goto after_merge_commit_title; } - $properties['subscription_url'] = $value; + $properties['merge_commit_title'] = $value; - after_subscription_url: + after_merge_commit_title: - $value = $payload['tags_url'] ?? null; + $value = $payload['merge_commit_message'] ?? null; if ($value === null) { - $missingFields[] = 'tags_url'; - goto after_tags_url; + $missingFields[] = 'merge_commit_message'; + goto after_merge_commit_message; } - $properties['tags_url'] = $value; + $properties['merge_commit_message'] = $value; - after_tags_url: + after_merge_commit_message: - $value = $payload['teams_url'] ?? null; + $value = $payload['allow_merge_commit'] ?? null; if ($value === null) { - $missingFields[] = 'teams_url'; - goto after_teams_url; + $missingFields[] = 'allow_merge_commit'; + goto after_allow_merge_commit; } - $properties['teams_url'] = $value; + $properties['allow_merge_commit'] = $value; - after_teams_url: + after_allow_merge_commit: - $value = $payload['trees_url'] ?? null; + $value = $payload['allow_forking'] ?? null; if ($value === null) { - $missingFields[] = 'trees_url'; - goto after_trees_url; + $missingFields[] = 'allow_forking'; + goto after_allow_forking; } - $properties['trees_url'] = $value; + $properties['allow_forking'] = $value; - after_trees_url: + after_allow_forking: - $value = $payload['clone_url'] ?? null; + $value = $payload['web_commit_signoff_required'] ?? null; if ($value === null) { - $missingFields[] = 'clone_url'; - goto after_clone_url; + $missingFields[] = 'web_commit_signoff_required'; + goto after_web_commit_signoff_required; } - $properties['clone_url'] = $value; + $properties['web_commit_signoff_required'] = $value; - after_clone_url: + after_web_commit_signoff_required: - $value = $payload['mirror_url'] ?? null; + $value = $payload['subscribers_count'] ?? null; if ($value === null) { - $missingFields[] = 'mirror_url'; - goto after_mirror_url; + $missingFields[] = 'subscribers_count'; + goto after_subscribers_count; } - $properties['mirror_url'] = $value; + $properties['subscribers_count'] = $value; - after_mirror_url: + after_subscribers_count: - $value = $payload['hooks_url'] ?? null; + $value = $payload['network_count'] ?? null; if ($value === null) { - $missingFields[] = 'hooks_url'; - goto after_hooks_url; + $missingFields[] = 'network_count'; + goto after_network_count; } - $properties['hooks_url'] = $value; + $properties['network_count'] = $value; - after_hooks_url: + after_network_count: - $value = $payload['svn_url'] ?? null; + $value = $payload['open_issues'] ?? null; if ($value === null) { - $missingFields[] = 'svn_url'; - goto after_svn_url; + $missingFields[] = 'open_issues'; + goto after_open_issues; } - $properties['svn_url'] = $value; + $properties['open_issues'] = $value; - after_svn_url: + after_open_issues: - $value = $payload['homepage'] ?? null; + $value = $payload['watchers'] ?? null; if ($value === null) { - $missingFields[] = 'homepage'; - goto after_homepage; + $missingFields[] = 'watchers'; + goto after_watchers; } - $properties['homepage'] = $value; + $properties['watchers'] = $value; - after_homepage: + after_watchers: - $value = $payload['language'] ?? null; + $value = $payload['master_branch'] ?? null; if ($value === null) { - $missingFields[] = 'language'; - goto after_language; + $missingFields[] = 'master_branch'; + goto after_master_branch; } - $properties['language'] = $value; + $properties['master_branch'] = $value; - after_language: + after_master_branch: - $value = $payload['forks_count'] ?? null; + $value = $payload['starred_at'] ?? null; if ($value === null) { - $missingFields[] = 'forks_count'; - goto after_forks_count; + $missingFields[] = 'starred_at'; + goto after_starred_at; } - $properties['forks_count'] = $value; + $properties['starred_at'] = $value; - after_forks_count: + after_starred_at: - $value = $payload['stargazers_count'] ?? null; + $value = $payload['anonymous_access_enabled'] ?? null; if ($value === null) { - $missingFields[] = 'stargazers_count'; - goto after_stargazers_count; + $missingFields[] = 'anonymous_access_enabled'; + goto after_anonymous_access_enabled; } - $properties['stargazers_count'] = $value; + $properties['anonymous_access_enabled'] = $value; - after_stargazers_count: + after_anonymous_access_enabled: - $value = $payload['watchers_count'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\Repository(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser(array $payload): \ApiClients\Client\Github\Schema\SimpleUser + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['name'] ?? null; if ($value === null) { - $missingFields[] = 'watchers_count'; - goto after_watchers_count; + $missingFields[] = 'name'; + goto after_name; } - $properties['watchers_count'] = $value; + $properties['name'] = $value; - after_watchers_count: + after_name: - $value = $payload['size'] ?? null; + $value = $payload['email'] ?? null; if ($value === null) { - $missingFields[] = 'size'; - goto after_size; + $missingFields[] = 'email'; + goto after_email; } - $properties['size'] = $value; + $properties['email'] = $value; - after_size: + after_email: - $value = $payload['default_branch'] ?? null; + $value = $payload['login'] ?? null; if ($value === null) { - $missingFields[] = 'default_branch'; - goto after_default_branch; + $missingFields[] = 'login'; + goto after_login; } - $properties['default_branch'] = $value; + $properties['login'] = $value; - after_default_branch: + after_login: - $value = $payload['open_issues_count'] ?? null; + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'open_issues_count'; - goto after_open_issues_count; + $missingFields[] = 'id'; + goto after_id; } - $properties['open_issues_count'] = $value; + $properties['id'] = $value; - after_open_issues_count: + after_id: - $value = $payload['is_template'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $missingFields[] = 'is_template'; - goto after_is_template; + $missingFields[] = 'node_id'; + goto after_node_id; } - $properties['is_template'] = $value; + $properties['node_id'] = $value; - after_is_template: + after_node_id: - $value = $payload['topics'] ?? null; + $value = $payload['avatar_url'] ?? null; if ($value === null) { - $missingFields[] = 'topics'; - goto after_topics; + $missingFields[] = 'avatar_url'; + goto after_avatar_url; } - $properties['topics'] = $value; + $properties['avatar_url'] = $value; - after_topics: + after_avatar_url: - $value = $payload['has_issues'] ?? null; + $value = $payload['gravatar_id'] ?? null; if ($value === null) { - $missingFields[] = 'has_issues'; - goto after_has_issues; + $missingFields[] = 'gravatar_id'; + goto after_gravatar_id; } - $properties['has_issues'] = $value; + $properties['gravatar_id'] = $value; - after_has_issues: + after_gravatar_id: - $value = $payload['has_projects'] ?? null; + $value = $payload['url'] ?? null; if ($value === null) { - $missingFields[] = 'has_projects'; - goto after_has_projects; + $missingFields[] = 'url'; + goto after_url; } - $properties['has_projects'] = $value; + $properties['url'] = $value; - after_has_projects: + after_url: - $value = $payload['has_wiki'] ?? null; + $value = $payload['html_url'] ?? null; if ($value === null) { - $missingFields[] = 'has_wiki'; - goto after_has_wiki; + $missingFields[] = 'html_url'; + goto after_html_url; } - $properties['has_wiki'] = $value; + $properties['html_url'] = $value; - after_has_wiki: + after_html_url: - $value = $payload['has_pages'] ?? null; + $value = $payload['followers_url'] ?? null; if ($value === null) { - $missingFields[] = 'has_pages'; - goto after_has_pages; + $missingFields[] = 'followers_url'; + goto after_followers_url; } - $properties['has_pages'] = $value; + $properties['followers_url'] = $value; - after_has_pages: + after_followers_url: - $value = $payload['has_downloads'] ?? null; + $value = $payload['following_url'] ?? null; if ($value === null) { - $missingFields[] = 'has_downloads'; - goto after_has_downloads; + $missingFields[] = 'following_url'; + goto after_following_url; } - $properties['has_downloads'] = $value; + $properties['following_url'] = $value; - after_has_downloads: + after_following_url: - $value = $payload['has_discussions'] ?? null; + $value = $payload['gists_url'] ?? null; if ($value === null) { - $missingFields[] = 'has_discussions'; - goto after_has_discussions; + $missingFields[] = 'gists_url'; + goto after_gists_url; } - $properties['has_discussions'] = $value; + $properties['gists_url'] = $value; - after_has_discussions: + after_gists_url: - $value = $payload['archived'] ?? null; + $value = $payload['starred_url'] ?? null; if ($value === null) { - $missingFields[] = 'archived'; - goto after_archived; + $missingFields[] = 'starred_url'; + goto after_starred_url; } - $properties['archived'] = $value; + $properties['starred_url'] = $value; - after_archived: + after_starred_url: - $value = $payload['disabled'] ?? null; + $value = $payload['subscriptions_url'] ?? null; if ($value === null) { - $missingFields[] = 'disabled'; - goto after_disabled; + $missingFields[] = 'subscriptions_url'; + goto after_subscriptions_url; } - $properties['disabled'] = $value; + $properties['subscriptions_url'] = $value; - after_disabled: + after_subscriptions_url: - $value = $payload['visibility'] ?? null; + $value = $payload['organizations_url'] ?? null; if ($value === null) { - $missingFields[] = 'visibility'; - goto after_visibility; + $missingFields[] = 'organizations_url'; + goto after_organizations_url; } - $properties['visibility'] = $value; + $properties['organizations_url'] = $value; - after_visibility: + after_organizations_url: - $value = $payload['pushed_at'] ?? null; + $value = $payload['repos_url'] ?? null; if ($value === null) { - $missingFields[] = 'pushed_at'; - goto after_pushed_at; + $missingFields[] = 'repos_url'; + goto after_repos_url; } - $properties['pushed_at'] = $value; + $properties['repos_url'] = $value; - after_pushed_at: + after_repos_url: - $value = $payload['created_at'] ?? null; + $value = $payload['events_url'] ?? null; if ($value === null) { - $missingFields[] = 'created_at'; - goto after_created_at; + $missingFields[] = 'events_url'; + goto after_events_url; } - $properties['created_at'] = $value; + $properties['events_url'] = $value; - after_created_at: + after_events_url: - $value = $payload['updated_at'] ?? null; + $value = $payload['received_events_url'] ?? null; if ($value === null) { - $missingFields[] = 'updated_at'; - goto after_updated_at; + $missingFields[] = 'received_events_url'; + goto after_received_events_url; } - $properties['updated_at'] = $value; + $properties['received_events_url'] = $value; - after_updated_at: + after_received_events_url: - $value = $payload['allow_rebase_merge'] ?? null; + $value = $payload['type'] ?? null; if ($value === null) { - $missingFields[] = 'allow_rebase_merge'; - goto after_allow_rebase_merge; + $missingFields[] = 'type'; + goto after_type; } - $properties['allow_rebase_merge'] = $value; + $properties['type'] = $value; - after_allow_rebase_merge: + after_type: - $value = $payload['template_repository'] ?? null; + $value = $payload['site_admin'] ?? null; if ($value === null) { - $missingFields[] = 'template_repository'; - goto after_template_repository; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'template_repository'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'site_admin'; + goto after_site_admin; } - $properties['template_repository'] = $value; + $properties['site_admin'] = $value; - after_template_repository: + after_site_admin: - $value = $payload['temp_clone_token'] ?? null; + $value = $payload['starred_at'] ?? null; if ($value === null) { - $missingFields[] = 'temp_clone_token'; - goto after_temp_clone_token; + $missingFields[] = 'starred_at'; + goto after_starred_at; } - $properties['temp_clone_token'] = $value; + $properties['starred_at'] = $value; - after_temp_clone_token: + after_starred_at: - $value = $payload['allow_squash_merge'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleUser', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\SimpleUser::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\SimpleUser(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleUser', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMilestoneCreated⚡️Milestone(array $payload): \ApiClients\Client\Github\Schema\WebhookMilestoneCreated\Milestone + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['closed_at'] ?? null; if ($value === null) { - $missingFields[] = 'allow_squash_merge'; - goto after_allow_squash_merge; + $missingFields[] = 'closed_at'; + goto after_closed_at; } - $properties['allow_squash_merge'] = $value; + $properties['closed_at'] = $value; - after_allow_squash_merge: + after_closed_at: - $value = $payload['allow_auto_merge'] ?? null; + $value = $payload['closed_issues'] ?? null; if ($value === null) { - $missingFields[] = 'allow_auto_merge'; - goto after_allow_auto_merge; + $missingFields[] = 'closed_issues'; + goto after_closed_issues; } - $properties['allow_auto_merge'] = $value; + $properties['closed_issues'] = $value; - after_allow_auto_merge: + after_closed_issues: - $value = $payload['delete_branch_on_merge'] ?? null; + $value = $payload['created_at'] ?? null; if ($value === null) { - $missingFields[] = 'delete_branch_on_merge'; - goto after_delete_branch_on_merge; + $missingFields[] = 'created_at'; + goto after_created_at; } - $properties['delete_branch_on_merge'] = $value; + $properties['created_at'] = $value; - after_delete_branch_on_merge: + after_created_at: - $value = $payload['allow_update_branch'] ?? null; + $value = $payload['creator'] ?? null; if ($value === null) { - $missingFields[] = 'allow_update_branch'; - goto after_allow_update_branch; + $missingFields[] = 'creator'; + goto after_creator; } - $properties['allow_update_branch'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'creator'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['creator'] = $value; - after_allow_update_branch: + after_creator: - $value = $payload['use_squash_pr_title_as_default'] ?? null; + $value = $payload['description'] ?? null; if ($value === null) { - $missingFields[] = 'use_squash_pr_title_as_default'; - goto after_use_squash_pr_title_as_default; + $missingFields[] = 'description'; + goto after_description; } - $properties['use_squash_pr_title_as_default'] = $value; + $properties['description'] = $value; - after_use_squash_pr_title_as_default: + after_description: - $value = $payload['squash_merge_commit_title'] ?? null; + $value = $payload['due_on'] ?? null; if ($value === null) { - $missingFields[] = 'squash_merge_commit_title'; - goto after_squash_merge_commit_title; + $missingFields[] = 'due_on'; + goto after_due_on; } - $properties['squash_merge_commit_title'] = $value; + $properties['due_on'] = $value; - after_squash_merge_commit_title: + after_due_on: - $value = $payload['squash_merge_commit_message'] ?? null; + $value = $payload['html_url'] ?? null; if ($value === null) { - $missingFields[] = 'squash_merge_commit_message'; - goto after_squash_merge_commit_message; + $missingFields[] = 'html_url'; + goto after_html_url; } - $properties['squash_merge_commit_message'] = $value; + $properties['html_url'] = $value; - after_squash_merge_commit_message: + after_html_url: - $value = $payload['merge_commit_title'] ?? null; + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'merge_commit_title'; - goto after_merge_commit_title; + $missingFields[] = 'id'; + goto after_id; } - $properties['merge_commit_title'] = $value; + $properties['id'] = $value; - after_merge_commit_title: + after_id: - $value = $payload['merge_commit_message'] ?? null; + $value = $payload['labels_url'] ?? null; if ($value === null) { - $missingFields[] = 'merge_commit_message'; - goto after_merge_commit_message; + $missingFields[] = 'labels_url'; + goto after_labels_url; } - $properties['merge_commit_message'] = $value; + $properties['labels_url'] = $value; - after_merge_commit_message: + after_labels_url: - $value = $payload['allow_merge_commit'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $missingFields[] = 'allow_merge_commit'; - goto after_allow_merge_commit; + $missingFields[] = 'node_id'; + goto after_node_id; } - $properties['allow_merge_commit'] = $value; + $properties['node_id'] = $value; - after_allow_merge_commit: + after_node_id: - $value = $payload['allow_forking'] ?? null; + $value = $payload['number'] ?? null; if ($value === null) { - $missingFields[] = 'allow_forking'; - goto after_allow_forking; + $missingFields[] = 'number'; + goto after_number; } - $properties['allow_forking'] = $value; + $properties['number'] = $value; - after_allow_forking: + after_number: - $value = $payload['web_commit_signoff_required'] ?? null; + $value = $payload['open_issues'] ?? null; if ($value === null) { - $missingFields[] = 'web_commit_signoff_required'; - goto after_web_commit_signoff_required; + $missingFields[] = 'open_issues'; + goto after_open_issues; } - $properties['web_commit_signoff_required'] = $value; + $properties['open_issues'] = $value; - after_web_commit_signoff_required: + after_open_issues: - $value = $payload['subscribers_count'] ?? null; + $value = $payload['state'] ?? null; if ($value === null) { - $missingFields[] = 'subscribers_count'; - goto after_subscribers_count; + $missingFields[] = 'state'; + goto after_state; } - $properties['subscribers_count'] = $value; + $properties['state'] = $value; - after_subscribers_count: + after_state: - $value = $payload['network_count'] ?? null; + $value = $payload['title'] ?? null; if ($value === null) { - $missingFields[] = 'network_count'; - goto after_network_count; + $missingFields[] = 'title'; + goto after_title; } - $properties['network_count'] = $value; + $properties['title'] = $value; - after_network_count: + after_title: - $value = $payload['open_issues'] ?? null; + $value = $payload['updated_at'] ?? null; if ($value === null) { - $missingFields[] = 'open_issues'; - goto after_open_issues; + $missingFields[] = 'updated_at'; + goto after_updated_at; } - $properties['open_issues'] = $value; + $properties['updated_at'] = $value; - after_open_issues: + after_updated_at: - $value = $payload['watchers'] ?? null; + $value = $payload['url'] ?? null; if ($value === null) { - $missingFields[] = 'watchers'; - goto after_watchers; + $missingFields[] = 'url'; + goto after_url; } - $properties['watchers'] = $value; + $properties['url'] = $value; - after_watchers: + after_url: - $value = $payload['master_branch'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookMilestoneCreated\Milestone', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookMilestoneCreated\Milestone::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookMilestoneCreated\Milestone(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookMilestoneCreated\Milestone', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMilestoneEdited⚡️Changes(array $payload): \ApiClients\Client\Github\Schema\WebhookMilestoneEdited\Changes + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['description'] ?? null; if ($value === null) { - $missingFields[] = 'master_branch'; - goto after_master_branch; + $missingFields[] = 'description'; + goto after_description; } - $properties['master_branch'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'description'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookLabelEdited⚡️Changes⚡️Description($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['description'] = $value; - after_master_branch: + after_description: - $value = $payload['starred_at'] ?? null; + $value = $payload['due_on'] ?? null; if ($value === null) { - $missingFields[] = 'starred_at'; - goto after_starred_at; + $missingFields[] = 'due_on'; + goto after_due_on; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'due_on'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMilestoneEdited⚡️Changes⚡️DueOn($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['starred_at'] = $value; + $properties['due_on'] = $value; - after_starred_at: + after_due_on: - $value = $payload['anonymous_access_enabled'] ?? null; + $value = $payload['title'] ?? null; if ($value === null) { - $missingFields[] = 'anonymous_access_enabled'; - goto after_anonymous_access_enabled; + $missingFields[] = 'title'; + goto after_title; } - $properties['anonymous_access_enabled'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'title'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMilestoneEdited⚡️Changes⚡️Title($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['title'] = $value; - after_anonymous_access_enabled: + after_title: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookMilestoneEdited\Changes', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookMilestoneEdited\Changes::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\Repository(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookMilestoneEdited\Changes(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookMilestoneEdited\Changes', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser(array $payload): \ApiClients\Client\Github\Schema\SimpleUser + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Comment⚡️User(array $payload): \ApiClients\Client\Github\Schema\WebhookIssueCommentDeleted\Comment\User { $properties = []; $missingFields = []; try { - $value = $payload['name'] ?? null; + $value = $payload['avatar_url'] ?? null; if ($value === null) { - $missingFields[] = 'name'; - goto after_name; + $missingFields[] = 'avatar_url'; + goto after_avatar_url; } - $properties['name'] = $value; + $properties['avatar_url'] = $value; - after_name: + after_avatar_url: + + $value = $payload['deleted'] ?? null; + + if ($value === null) { + $missingFields[] = 'deleted'; + goto after_deleted; + } + + $properties['deleted'] = $value; + + after_deleted: $value = $payload['email'] ?? null; @@ -1896,49 +3091,49 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Simp after_email: - $value = $payload['login'] ?? null; + $value = $payload['events_url'] ?? null; if ($value === null) { - $missingFields[] = 'login'; - goto after_login; + $missingFields[] = 'events_url'; + goto after_events_url; } - $properties['login'] = $value; + $properties['events_url'] = $value; - after_login: + after_events_url: - $value = $payload['id'] ?? null; + $value = $payload['followers_url'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'followers_url'; + goto after_followers_url; } - $properties['id'] = $value; + $properties['followers_url'] = $value; - after_id: + after_followers_url: - $value = $payload['node_id'] ?? null; + $value = $payload['following_url'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $missingFields[] = 'following_url'; + goto after_following_url; } - $properties['node_id'] = $value; + $properties['following_url'] = $value; - after_node_id: + after_following_url: - $value = $payload['avatar_url'] ?? null; + $value = $payload['gists_url'] ?? null; if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatar_url; + $missingFields[] = 'gists_url'; + goto after_gists_url; } - $properties['avatar_url'] = $value; + $properties['gists_url'] = $value; - after_avatar_url: + after_gists_url: $value = $payload['gravatar_id'] ?? null; @@ -1951,60 +3146,104 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Simp after_gravatar_id: - $value = $payload['url'] ?? null; + $value = $payload['html_url'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $missingFields[] = 'html_url'; + goto after_html_url; } - $properties['url'] = $value; + $properties['html_url'] = $value; - after_url: + after_html_url: - $value = $payload['html_url'] ?? null; + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'html_url'; - goto after_html_url; + $missingFields[] = 'id'; + goto after_id; } - $properties['html_url'] = $value; + $properties['id'] = $value; - after_html_url: + after_id: - $value = $payload['followers_url'] ?? null; + $value = $payload['login'] ?? null; if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followers_url; + $missingFields[] = 'login'; + goto after_login; } - $properties['followers_url'] = $value; + $properties['login'] = $value; - after_followers_url: + after_login: - $value = $payload['following_url'] ?? null; + $value = $payload['name'] ?? null; if ($value === null) { - $missingFields[] = 'following_url'; - goto after_following_url; + $missingFields[] = 'name'; + goto after_name; } - $properties['following_url'] = $value; + $properties['name'] = $value; - after_following_url: + after_name: - $value = $payload['gists_url'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gists_url; + $missingFields[] = 'node_id'; + goto after_node_id; } - $properties['gists_url'] = $value; + $properties['node_id'] = $value; - after_gists_url: + after_node_id: + + $value = $payload['organizations_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'organizations_url'; + goto after_organizations_url; + } + + $properties['organizations_url'] = $value; + + after_organizations_url: + + $value = $payload['received_events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'received_events_url'; + goto after_received_events_url; + } + + $properties['received_events_url'] = $value; + + after_received_events_url: + + $value = $payload['repos_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'repos_url'; + goto after_repos_url; + } + + $properties['repos_url'] = $value; + + after_repos_url: + + $value = $payload['site_admin'] ?? null; + + if ($value === null) { + $missingFields[] = 'site_admin'; + goto after_site_admin; + } + + $properties['site_admin'] = $value; + + after_site_admin: $value = $payload['starred_url'] ?? null; @@ -2028,192 +3267,201 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Simp after_subscriptions_url: - $value = $payload['organizations_url'] ?? null; + $value = $payload['type'] ?? null; if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizations_url; + $missingFields[] = 'type'; + goto after_type; } - $properties['organizations_url'] = $value; + $properties['type'] = $value; - after_organizations_url: + after_type: - $value = $payload['repos_url'] ?? null; + $value = $payload['url'] ?? null; if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_repos_url; + $missingFields[] = 'url'; + goto after_url; } - $properties['repos_url'] = $value; + $properties['url'] = $value; - after_repos_url: + after_url: - $value = $payload['events_url'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssueCommentDeleted\Comment\User', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookIssueCommentDeleted\Comment\User::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookIssueCommentDeleted\Comment\User(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssueCommentDeleted\Comment\User', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️Permissions(array $payload): \ApiClients\Client\Github\Schema\Repository\Permissions + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['admin'] ?? null; if ($value === null) { - $missingFields[] = 'events_url'; - goto after_events_url; + $missingFields[] = 'admin'; + goto after_admin; } - $properties['events_url'] = $value; + $properties['admin'] = $value; - after_events_url: + after_admin: - $value = $payload['received_events_url'] ?? null; + $value = $payload['pull'] ?? null; if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_received_events_url; + $missingFields[] = 'pull'; + goto after_pull; } - $properties['received_events_url'] = $value; + $properties['pull'] = $value; - after_received_events_url: + after_pull: - $value = $payload['type'] ?? null; + $value = $payload['triage'] ?? null; if ($value === null) { - $missingFields[] = 'type'; - goto after_type; + $missingFields[] = 'triage'; + goto after_triage; } - $properties['type'] = $value; + $properties['triage'] = $value; - after_type: + after_triage: - $value = $payload['site_admin'] ?? null; + $value = $payload['push'] ?? null; if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_site_admin; + $missingFields[] = 'push'; + goto after_push; } - $properties['site_admin'] = $value; + $properties['push'] = $value; - after_site_admin: + after_push: - $value = $payload['starred_at'] ?? null; + $value = $payload['maintain'] ?? null; if ($value === null) { - $missingFields[] = 'starred_at'; - goto after_starred_at; + $missingFields[] = 'maintain'; + goto after_maintain; } - $properties['starred_at'] = $value; + $properties['maintain'] = $value; - after_starred_at: + after_maintain: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleUser', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\Permissions', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\SimpleUser::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\Permissions::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\SimpleUser(...$properties); + return new \ApiClients\Client\Github\Schema\Repository\Permissions(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleUser', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\Permissions', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy(array $payload): \ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository(array $payload): \ApiClients\Client\Github\Schema\Repository\TemplateRepository { $properties = []; $missingFields = []; try { - $value = $payload['avatar_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatar_url; - } - - $properties['avatar_url'] = $value; - - after_avatar_url: - - $value = $payload['deleted'] ?? null; + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'deleted'; - goto after_deleted; + $missingFields[] = 'id'; + goto after_id; } - $properties['deleted'] = $value; + $properties['id'] = $value; - after_deleted: + after_id: - $value = $payload['email'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $missingFields[] = 'email'; - goto after_email; + $missingFields[] = 'node_id'; + goto after_node_id; } - $properties['email'] = $value; + $properties['node_id'] = $value; - after_email: + after_node_id: - $value = $payload['events_url'] ?? null; + $value = $payload['name'] ?? null; if ($value === null) { - $missingFields[] = 'events_url'; - goto after_events_url; + $missingFields[] = 'name'; + goto after_name; } - $properties['events_url'] = $value; + $properties['name'] = $value; - after_events_url: + after_name: - $value = $payload['followers_url'] ?? null; + $value = $payload['full_name'] ?? null; if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followers_url; + $missingFields[] = 'full_name'; + goto after_full_name; } - $properties['followers_url'] = $value; + $properties['full_name'] = $value; - after_followers_url: + after_full_name: - $value = $payload['following_url'] ?? null; + $value = $payload['owner'] ?? null; if ($value === null) { - $missingFields[] = 'following_url'; - goto after_following_url; + $missingFields[] = 'owner'; + goto after_owner; } - $properties['following_url'] = $value; - - after_following_url: - - $value = $payload['gists_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gists_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'owner'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['gists_url'] = $value; + $properties['owner'] = $value; - after_gists_url: + after_owner: - $value = $payload['gravatar_id'] ?? null; + $value = $payload['private'] ?? null; if ($value === null) { - $missingFields[] = 'gravatar_id'; - goto after_gravatar_id; + $missingFields[] = 'private'; + goto after_private; } - $properties['gravatar_id'] = $value; + $properties['private'] = $value; - after_gravatar_id: + after_private: $value = $payload['html_url'] ?? null; @@ -2226,1224 +3474,1259 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Disc after_html_url: - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; - } - - $properties['id'] = $value; - - after_id: - - $value = $payload['login'] ?? null; - - if ($value === null) { - $missingFields[] = 'login'; - goto after_login; - } - - $properties['login'] = $value; - - after_login: - - $value = $payload['name'] ?? null; + $value = $payload['description'] ?? null; if ($value === null) { - $missingFields[] = 'name'; - goto after_name; + $missingFields[] = 'description'; + goto after_description; } - $properties['name'] = $value; + $properties['description'] = $value; - after_name: + after_description: - $value = $payload['node_id'] ?? null; + $value = $payload['fork'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $missingFields[] = 'fork'; + goto after_fork; } - $properties['node_id'] = $value; + $properties['fork'] = $value; - after_node_id: + after_fork: - $value = $payload['organizations_url'] ?? null; + $value = $payload['url'] ?? null; if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizations_url; + $missingFields[] = 'url'; + goto after_url; } - $properties['organizations_url'] = $value; + $properties['url'] = $value; - after_organizations_url: + after_url: - $value = $payload['received_events_url'] ?? null; + $value = $payload['archive_url'] ?? null; if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_received_events_url; + $missingFields[] = 'archive_url'; + goto after_archive_url; } - $properties['received_events_url'] = $value; + $properties['archive_url'] = $value; - after_received_events_url: + after_archive_url: - $value = $payload['repos_url'] ?? null; + $value = $payload['assignees_url'] ?? null; if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_repos_url; + $missingFields[] = 'assignees_url'; + goto after_assignees_url; } - $properties['repos_url'] = $value; + $properties['assignees_url'] = $value; - after_repos_url: + after_assignees_url: - $value = $payload['site_admin'] ?? null; + $value = $payload['blobs_url'] ?? null; if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_site_admin; + $missingFields[] = 'blobs_url'; + goto after_blobs_url; } - $properties['site_admin'] = $value; + $properties['blobs_url'] = $value; - after_site_admin: + after_blobs_url: - $value = $payload['starred_url'] ?? null; + $value = $payload['branches_url'] ?? null; if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starred_url; + $missingFields[] = 'branches_url'; + goto after_branches_url; } - $properties['starred_url'] = $value; + $properties['branches_url'] = $value; - after_starred_url: + after_branches_url: - $value = $payload['subscriptions_url'] ?? null; + $value = $payload['collaborators_url'] ?? null; if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptions_url; + $missingFields[] = 'collaborators_url'; + goto after_collaborators_url; } - $properties['subscriptions_url'] = $value; + $properties['collaborators_url'] = $value; - after_subscriptions_url: + after_collaborators_url: - $value = $payload['type'] ?? null; + $value = $payload['comments_url'] ?? null; if ($value === null) { - $missingFields[] = 'type'; - goto after_type; + $missingFields[] = 'comments_url'; + goto after_comments_url; } - $properties['type'] = $value; + $properties['comments_url'] = $value; - after_type: + after_comments_url: - $value = $payload['url'] ?? null; + $value = $payload['commits_url'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $missingFields[] = 'commits_url'; + goto after_commits_url; } - $properties['url'] = $value; + $properties['commits_url'] = $value; - after_url: - - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy', $exception, stack: $this->hydrationStack); - } - } - - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️Permissions(array $payload): \ApiClients\Client\Github\Schema\Repository\Permissions - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['admin'] ?? null; + after_commits_url: + + $value = $payload['compare_url'] ?? null; if ($value === null) { - $missingFields[] = 'admin'; - goto after_admin; + $missingFields[] = 'compare_url'; + goto after_compare_url; } - $properties['admin'] = $value; + $properties['compare_url'] = $value; - after_admin: + after_compare_url: - $value = $payload['pull'] ?? null; + $value = $payload['contents_url'] ?? null; if ($value === null) { - $missingFields[] = 'pull'; - goto after_pull; + $missingFields[] = 'contents_url'; + goto after_contents_url; } - $properties['pull'] = $value; + $properties['contents_url'] = $value; - after_pull: + after_contents_url: - $value = $payload['triage'] ?? null; + $value = $payload['contributors_url'] ?? null; if ($value === null) { - $missingFields[] = 'triage'; - goto after_triage; + $missingFields[] = 'contributors_url'; + goto after_contributors_url; } - $properties['triage'] = $value; + $properties['contributors_url'] = $value; - after_triage: + after_contributors_url: - $value = $payload['push'] ?? null; + $value = $payload['deployments_url'] ?? null; if ($value === null) { - $missingFields[] = 'push'; - goto after_push; + $missingFields[] = 'deployments_url'; + goto after_deployments_url; } - $properties['push'] = $value; + $properties['deployments_url'] = $value; - after_push: + after_deployments_url: - $value = $payload['maintain'] ?? null; + $value = $payload['downloads_url'] ?? null; if ($value === null) { - $missingFields[] = 'maintain'; - goto after_maintain; + $missingFields[] = 'downloads_url'; + goto after_downloads_url; } - $properties['maintain'] = $value; + $properties['downloads_url'] = $value; - after_maintain: + after_downloads_url: - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\Permissions', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\Permissions::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\Repository\Permissions(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\Permissions', $exception, stack: $this->hydrationStack); - } - } + $value = $payload['events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'events_url'; + goto after_events_url; + } - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository(array $payload): \ApiClients\Client\Github\Schema\Repository\TemplateRepository - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['id'] ?? null; + $properties['events_url'] = $value; + + after_events_url: + + $value = $payload['forks_url'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'forks_url'; + goto after_forks_url; } - $properties['id'] = $value; + $properties['forks_url'] = $value; - after_id: + after_forks_url: - $value = $payload['node_id'] ?? null; + $value = $payload['git_commits_url'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $missingFields[] = 'git_commits_url'; + goto after_git_commits_url; } - $properties['node_id'] = $value; + $properties['git_commits_url'] = $value; - after_node_id: + after_git_commits_url: - $value = $payload['name'] ?? null; + $value = $payload['git_refs_url'] ?? null; if ($value === null) { - $missingFields[] = 'name'; - goto after_name; + $missingFields[] = 'git_refs_url'; + goto after_git_refs_url; } - $properties['name'] = $value; + $properties['git_refs_url'] = $value; - after_name: + after_git_refs_url: - $value = $payload['full_name'] ?? null; + $value = $payload['git_tags_url'] ?? null; if ($value === null) { - $missingFields[] = 'full_name'; - goto after_full_name; + $missingFields[] = 'git_tags_url'; + goto after_git_tags_url; } - $properties['full_name'] = $value; + $properties['git_tags_url'] = $value; - after_full_name: + after_git_tags_url: - $value = $payload['owner'] ?? null; + $value = $payload['git_url'] ?? null; if ($value === null) { - $missingFields[] = 'owner'; - goto after_owner; + $missingFields[] = 'git_url'; + goto after_git_url; } - if (is_array($value)) { - try { - $this->hydrationStack[] = 'owner'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner($value); - } finally { - array_pop($this->hydrationStack); - } + $properties['git_url'] = $value; + + after_git_url: + + $value = $payload['issue_comment_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issue_comment_url'; + goto after_issue_comment_url; } - $properties['owner'] = $value; + $properties['issue_comment_url'] = $value; - after_owner: + after_issue_comment_url: - $value = $payload['private'] ?? null; + $value = $payload['issue_events_url'] ?? null; if ($value === null) { - $missingFields[] = 'private'; - goto after_private; + $missingFields[] = 'issue_events_url'; + goto after_issue_events_url; } - $properties['private'] = $value; + $properties['issue_events_url'] = $value; - after_private: + after_issue_events_url: - $value = $payload['html_url'] ?? null; + $value = $payload['issues_url'] ?? null; if ($value === null) { - $missingFields[] = 'html_url'; - goto after_html_url; + $missingFields[] = 'issues_url'; + goto after_issues_url; } - $properties['html_url'] = $value; + $properties['issues_url'] = $value; - after_html_url: + after_issues_url: - $value = $payload['description'] ?? null; + $value = $payload['keys_url'] ?? null; if ($value === null) { - $missingFields[] = 'description'; - goto after_description; + $missingFields[] = 'keys_url'; + goto after_keys_url; } - $properties['description'] = $value; + $properties['keys_url'] = $value; - after_description: + after_keys_url: - $value = $payload['fork'] ?? null; + $value = $payload['labels_url'] ?? null; if ($value === null) { - $missingFields[] = 'fork'; - goto after_fork; + $missingFields[] = 'labels_url'; + goto after_labels_url; } - $properties['fork'] = $value; + $properties['labels_url'] = $value; - after_fork: + after_labels_url: - $value = $payload['url'] ?? null; + $value = $payload['languages_url'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $missingFields[] = 'languages_url'; + goto after_languages_url; } - $properties['url'] = $value; + $properties['languages_url'] = $value; - after_url: + after_languages_url: - $value = $payload['archive_url'] ?? null; + $value = $payload['merges_url'] ?? null; if ($value === null) { - $missingFields[] = 'archive_url'; - goto after_archive_url; + $missingFields[] = 'merges_url'; + goto after_merges_url; } - $properties['archive_url'] = $value; + $properties['merges_url'] = $value; - after_archive_url: + after_merges_url: - $value = $payload['assignees_url'] ?? null; + $value = $payload['milestones_url'] ?? null; if ($value === null) { - $missingFields[] = 'assignees_url'; - goto after_assignees_url; + $missingFields[] = 'milestones_url'; + goto after_milestones_url; } - $properties['assignees_url'] = $value; + $properties['milestones_url'] = $value; - after_assignees_url: + after_milestones_url: - $value = $payload['blobs_url'] ?? null; + $value = $payload['notifications_url'] ?? null; if ($value === null) { - $missingFields[] = 'blobs_url'; - goto after_blobs_url; + $missingFields[] = 'notifications_url'; + goto after_notifications_url; } - $properties['blobs_url'] = $value; + $properties['notifications_url'] = $value; - after_blobs_url: + after_notifications_url: - $value = $payload['branches_url'] ?? null; + $value = $payload['pulls_url'] ?? null; if ($value === null) { - $missingFields[] = 'branches_url'; - goto after_branches_url; + $missingFields[] = 'pulls_url'; + goto after_pulls_url; } - $properties['branches_url'] = $value; + $properties['pulls_url'] = $value; - after_branches_url: + after_pulls_url: - $value = $payload['collaborators_url'] ?? null; + $value = $payload['releases_url'] ?? null; if ($value === null) { - $missingFields[] = 'collaborators_url'; - goto after_collaborators_url; + $missingFields[] = 'releases_url'; + goto after_releases_url; } - $properties['collaborators_url'] = $value; + $properties['releases_url'] = $value; - after_collaborators_url: + after_releases_url: - $value = $payload['comments_url'] ?? null; + $value = $payload['ssh_url'] ?? null; if ($value === null) { - $missingFields[] = 'comments_url'; - goto after_comments_url; + $missingFields[] = 'ssh_url'; + goto after_ssh_url; } - $properties['comments_url'] = $value; + $properties['ssh_url'] = $value; - after_comments_url: + after_ssh_url: - $value = $payload['commits_url'] ?? null; + $value = $payload['stargazers_url'] ?? null; if ($value === null) { - $missingFields[] = 'commits_url'; - goto after_commits_url; + $missingFields[] = 'stargazers_url'; + goto after_stargazers_url; } - $properties['commits_url'] = $value; + $properties['stargazers_url'] = $value; - after_commits_url: + after_stargazers_url: - $value = $payload['compare_url'] ?? null; + $value = $payload['statuses_url'] ?? null; if ($value === null) { - $missingFields[] = 'compare_url'; - goto after_compare_url; + $missingFields[] = 'statuses_url'; + goto after_statuses_url; } - $properties['compare_url'] = $value; + $properties['statuses_url'] = $value; - after_compare_url: + after_statuses_url: - $value = $payload['contents_url'] ?? null; + $value = $payload['subscribers_url'] ?? null; if ($value === null) { - $missingFields[] = 'contents_url'; - goto after_contents_url; + $missingFields[] = 'subscribers_url'; + goto after_subscribers_url; } - $properties['contents_url'] = $value; + $properties['subscribers_url'] = $value; - after_contents_url: + after_subscribers_url: - $value = $payload['contributors_url'] ?? null; + $value = $payload['subscription_url'] ?? null; if ($value === null) { - $missingFields[] = 'contributors_url'; - goto after_contributors_url; + $missingFields[] = 'subscription_url'; + goto after_subscription_url; } - $properties['contributors_url'] = $value; + $properties['subscription_url'] = $value; - after_contributors_url: + after_subscription_url: - $value = $payload['deployments_url'] ?? null; + $value = $payload['tags_url'] ?? null; if ($value === null) { - $missingFields[] = 'deployments_url'; - goto after_deployments_url; + $missingFields[] = 'tags_url'; + goto after_tags_url; } - $properties['deployments_url'] = $value; + $properties['tags_url'] = $value; - after_deployments_url: + after_tags_url: - $value = $payload['downloads_url'] ?? null; + $value = $payload['teams_url'] ?? null; if ($value === null) { - $missingFields[] = 'downloads_url'; - goto after_downloads_url; + $missingFields[] = 'teams_url'; + goto after_teams_url; } - $properties['downloads_url'] = $value; + $properties['teams_url'] = $value; - after_downloads_url: + after_teams_url: - $value = $payload['events_url'] ?? null; + $value = $payload['trees_url'] ?? null; if ($value === null) { - $missingFields[] = 'events_url'; - goto after_events_url; + $missingFields[] = 'trees_url'; + goto after_trees_url; } - $properties['events_url'] = $value; + $properties['trees_url'] = $value; - after_events_url: + after_trees_url: - $value = $payload['forks_url'] ?? null; + $value = $payload['clone_url'] ?? null; if ($value === null) { - $missingFields[] = 'forks_url'; - goto after_forks_url; + $missingFields[] = 'clone_url'; + goto after_clone_url; } - $properties['forks_url'] = $value; + $properties['clone_url'] = $value; - after_forks_url: + after_clone_url: - $value = $payload['git_commits_url'] ?? null; + $value = $payload['mirror_url'] ?? null; if ($value === null) { - $missingFields[] = 'git_commits_url'; - goto after_git_commits_url; + $missingFields[] = 'mirror_url'; + goto after_mirror_url; } - $properties['git_commits_url'] = $value; + $properties['mirror_url'] = $value; - after_git_commits_url: + after_mirror_url: - $value = $payload['git_refs_url'] ?? null; + $value = $payload['hooks_url'] ?? null; if ($value === null) { - $missingFields[] = 'git_refs_url'; - goto after_git_refs_url; + $missingFields[] = 'hooks_url'; + goto after_hooks_url; } - $properties['git_refs_url'] = $value; + $properties['hooks_url'] = $value; - after_git_refs_url: + after_hooks_url: - $value = $payload['git_tags_url'] ?? null; + $value = $payload['svn_url'] ?? null; if ($value === null) { - $missingFields[] = 'git_tags_url'; - goto after_git_tags_url; + $missingFields[] = 'svn_url'; + goto after_svn_url; } - $properties['git_tags_url'] = $value; + $properties['svn_url'] = $value; - after_git_tags_url: + after_svn_url: - $value = $payload['git_url'] ?? null; + $value = $payload['homepage'] ?? null; if ($value === null) { - $missingFields[] = 'git_url'; - goto after_git_url; + $missingFields[] = 'homepage'; + goto after_homepage; } - $properties['git_url'] = $value; + $properties['homepage'] = $value; - after_git_url: + after_homepage: - $value = $payload['issue_comment_url'] ?? null; + $value = $payload['language'] ?? null; if ($value === null) { - $missingFields[] = 'issue_comment_url'; - goto after_issue_comment_url; + $missingFields[] = 'language'; + goto after_language; } - $properties['issue_comment_url'] = $value; + $properties['language'] = $value; - after_issue_comment_url: + after_language: - $value = $payload['issue_events_url'] ?? null; + $value = $payload['forks_count'] ?? null; if ($value === null) { - $missingFields[] = 'issue_events_url'; - goto after_issue_events_url; + $missingFields[] = 'forks_count'; + goto after_forks_count; } - $properties['issue_events_url'] = $value; + $properties['forks_count'] = $value; - after_issue_events_url: + after_forks_count: - $value = $payload['issues_url'] ?? null; + $value = $payload['stargazers_count'] ?? null; if ($value === null) { - $missingFields[] = 'issues_url'; - goto after_issues_url; + $missingFields[] = 'stargazers_count'; + goto after_stargazers_count; } - $properties['issues_url'] = $value; + $properties['stargazers_count'] = $value; - after_issues_url: + after_stargazers_count: - $value = $payload['keys_url'] ?? null; + $value = $payload['watchers_count'] ?? null; if ($value === null) { - $missingFields[] = 'keys_url'; - goto after_keys_url; + $missingFields[] = 'watchers_count'; + goto after_watchers_count; } - $properties['keys_url'] = $value; + $properties['watchers_count'] = $value; - after_keys_url: + after_watchers_count: - $value = $payload['labels_url'] ?? null; + $value = $payload['size'] ?? null; if ($value === null) { - $missingFields[] = 'labels_url'; - goto after_labels_url; + $missingFields[] = 'size'; + goto after_size; } - $properties['labels_url'] = $value; + $properties['size'] = $value; - after_labels_url: + after_size: - $value = $payload['languages_url'] ?? null; + $value = $payload['default_branch'] ?? null; if ($value === null) { - $missingFields[] = 'languages_url'; - goto after_languages_url; + $missingFields[] = 'default_branch'; + goto after_default_branch; } - $properties['languages_url'] = $value; + $properties['default_branch'] = $value; - after_languages_url: + after_default_branch: - $value = $payload['merges_url'] ?? null; + $value = $payload['open_issues_count'] ?? null; if ($value === null) { - $missingFields[] = 'merges_url'; - goto after_merges_url; + $missingFields[] = 'open_issues_count'; + goto after_open_issues_count; } - $properties['merges_url'] = $value; + $properties['open_issues_count'] = $value; - after_merges_url: + after_open_issues_count: - $value = $payload['milestones_url'] ?? null; + $value = $payload['is_template'] ?? null; if ($value === null) { - $missingFields[] = 'milestones_url'; - goto after_milestones_url; + $missingFields[] = 'is_template'; + goto after_is_template; } - $properties['milestones_url'] = $value; + $properties['is_template'] = $value; - after_milestones_url: + after_is_template: - $value = $payload['notifications_url'] ?? null; + $value = $payload['topics'] ?? null; if ($value === null) { - $missingFields[] = 'notifications_url'; - goto after_notifications_url; + $missingFields[] = 'topics'; + goto after_topics; } - $properties['notifications_url'] = $value; + $properties['topics'] = $value; - after_notifications_url: + after_topics: - $value = $payload['pulls_url'] ?? null; + $value = $payload['has_issues'] ?? null; if ($value === null) { - $missingFields[] = 'pulls_url'; - goto after_pulls_url; + $missingFields[] = 'has_issues'; + goto after_has_issues; } - $properties['pulls_url'] = $value; + $properties['has_issues'] = $value; - after_pulls_url: + after_has_issues: - $value = $payload['releases_url'] ?? null; + $value = $payload['has_projects'] ?? null; if ($value === null) { - $missingFields[] = 'releases_url'; - goto after_releases_url; + $missingFields[] = 'has_projects'; + goto after_has_projects; } - $properties['releases_url'] = $value; + $properties['has_projects'] = $value; - after_releases_url: + after_has_projects: - $value = $payload['ssh_url'] ?? null; + $value = $payload['has_wiki'] ?? null; if ($value === null) { - $missingFields[] = 'ssh_url'; - goto after_ssh_url; + $missingFields[] = 'has_wiki'; + goto after_has_wiki; } - $properties['ssh_url'] = $value; + $properties['has_wiki'] = $value; - after_ssh_url: + after_has_wiki: - $value = $payload['stargazers_url'] ?? null; + $value = $payload['has_pages'] ?? null; if ($value === null) { - $missingFields[] = 'stargazers_url'; - goto after_stargazers_url; + $missingFields[] = 'has_pages'; + goto after_has_pages; } - $properties['stargazers_url'] = $value; + $properties['has_pages'] = $value; - after_stargazers_url: + after_has_pages: - $value = $payload['statuses_url'] ?? null; + $value = $payload['has_downloads'] ?? null; if ($value === null) { - $missingFields[] = 'statuses_url'; - goto after_statuses_url; + $missingFields[] = 'has_downloads'; + goto after_has_downloads; } - $properties['statuses_url'] = $value; + $properties['has_downloads'] = $value; - after_statuses_url: + after_has_downloads: - $value = $payload['subscribers_url'] ?? null; + $value = $payload['archived'] ?? null; if ($value === null) { - $missingFields[] = 'subscribers_url'; - goto after_subscribers_url; + $missingFields[] = 'archived'; + goto after_archived; } - $properties['subscribers_url'] = $value; + $properties['archived'] = $value; - after_subscribers_url: + after_archived: - $value = $payload['subscription_url'] ?? null; + $value = $payload['disabled'] ?? null; if ($value === null) { - $missingFields[] = 'subscription_url'; - goto after_subscription_url; + $missingFields[] = 'disabled'; + goto after_disabled; } - $properties['subscription_url'] = $value; + $properties['disabled'] = $value; - after_subscription_url: + after_disabled: - $value = $payload['tags_url'] ?? null; + $value = $payload['visibility'] ?? null; if ($value === null) { - $missingFields[] = 'tags_url'; - goto after_tags_url; + $missingFields[] = 'visibility'; + goto after_visibility; } - $properties['tags_url'] = $value; + $properties['visibility'] = $value; - after_tags_url: + after_visibility: - $value = $payload['teams_url'] ?? null; + $value = $payload['pushed_at'] ?? null; if ($value === null) { - $missingFields[] = 'teams_url'; - goto after_teams_url; + $missingFields[] = 'pushed_at'; + goto after_pushed_at; } - $properties['teams_url'] = $value; + $properties['pushed_at'] = $value; - after_teams_url: + after_pushed_at: - $value = $payload['trees_url'] ?? null; + $value = $payload['created_at'] ?? null; if ($value === null) { - $missingFields[] = 'trees_url'; - goto after_trees_url; + $missingFields[] = 'created_at'; + goto after_created_at; } - $properties['trees_url'] = $value; + $properties['created_at'] = $value; - after_trees_url: + after_created_at: - $value = $payload['clone_url'] ?? null; + $value = $payload['updated_at'] ?? null; if ($value === null) { - $missingFields[] = 'clone_url'; - goto after_clone_url; + $missingFields[] = 'updated_at'; + goto after_updated_at; } - $properties['clone_url'] = $value; + $properties['updated_at'] = $value; - after_clone_url: + after_updated_at: - $value = $payload['mirror_url'] ?? null; + $value = $payload['permissions'] ?? null; if ($value === null) { - $missingFields[] = 'mirror_url'; - goto after_mirror_url; + $missingFields[] = 'permissions'; + goto after_permissions; } - $properties['mirror_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'permissions'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Permissions($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['permissions'] = $value; - after_mirror_url: + after_permissions: - $value = $payload['hooks_url'] ?? null; + $value = $payload['allow_rebase_merge'] ?? null; if ($value === null) { - $missingFields[] = 'hooks_url'; - goto after_hooks_url; + $missingFields[] = 'allow_rebase_merge'; + goto after_allow_rebase_merge; } - $properties['hooks_url'] = $value; + $properties['allow_rebase_merge'] = $value; - after_hooks_url: + after_allow_rebase_merge: - $value = $payload['svn_url'] ?? null; + $value = $payload['temp_clone_token'] ?? null; if ($value === null) { - $missingFields[] = 'svn_url'; - goto after_svn_url; + $missingFields[] = 'temp_clone_token'; + goto after_temp_clone_token; } - $properties['svn_url'] = $value; + $properties['temp_clone_token'] = $value; - after_svn_url: + after_temp_clone_token: - $value = $payload['homepage'] ?? null; + $value = $payload['allow_squash_merge'] ?? null; if ($value === null) { - $missingFields[] = 'homepage'; - goto after_homepage; + $missingFields[] = 'allow_squash_merge'; + goto after_allow_squash_merge; } - $properties['homepage'] = $value; + $properties['allow_squash_merge'] = $value; - after_homepage: + after_allow_squash_merge: - $value = $payload['language'] ?? null; + $value = $payload['allow_auto_merge'] ?? null; if ($value === null) { - $missingFields[] = 'language'; - goto after_language; + $missingFields[] = 'allow_auto_merge'; + goto after_allow_auto_merge; } - $properties['language'] = $value; + $properties['allow_auto_merge'] = $value; - after_language: + after_allow_auto_merge: - $value = $payload['forks_count'] ?? null; + $value = $payload['delete_branch_on_merge'] ?? null; if ($value === null) { - $missingFields[] = 'forks_count'; - goto after_forks_count; + $missingFields[] = 'delete_branch_on_merge'; + goto after_delete_branch_on_merge; } - $properties['forks_count'] = $value; + $properties['delete_branch_on_merge'] = $value; - after_forks_count: + after_delete_branch_on_merge: - $value = $payload['stargazers_count'] ?? null; + $value = $payload['allow_update_branch'] ?? null; if ($value === null) { - $missingFields[] = 'stargazers_count'; - goto after_stargazers_count; + $missingFields[] = 'allow_update_branch'; + goto after_allow_update_branch; } - $properties['stargazers_count'] = $value; + $properties['allow_update_branch'] = $value; - after_stargazers_count: + after_allow_update_branch: - $value = $payload['watchers_count'] ?? null; + $value = $payload['use_squash_pr_title_as_default'] ?? null; if ($value === null) { - $missingFields[] = 'watchers_count'; - goto after_watchers_count; + $missingFields[] = 'use_squash_pr_title_as_default'; + goto after_use_squash_pr_title_as_default; } - $properties['watchers_count'] = $value; + $properties['use_squash_pr_title_as_default'] = $value; - after_watchers_count: + after_use_squash_pr_title_as_default: - $value = $payload['size'] ?? null; + $value = $payload['squash_merge_commit_title'] ?? null; if ($value === null) { - $missingFields[] = 'size'; - goto after_size; + $missingFields[] = 'squash_merge_commit_title'; + goto after_squash_merge_commit_title; } - $properties['size'] = $value; + $properties['squash_merge_commit_title'] = $value; - after_size: + after_squash_merge_commit_title: - $value = $payload['default_branch'] ?? null; + $value = $payload['squash_merge_commit_message'] ?? null; if ($value === null) { - $missingFields[] = 'default_branch'; - goto after_default_branch; + $missingFields[] = 'squash_merge_commit_message'; + goto after_squash_merge_commit_message; } - $properties['default_branch'] = $value; + $properties['squash_merge_commit_message'] = $value; - after_default_branch: + after_squash_merge_commit_message: - $value = $payload['open_issues_count'] ?? null; + $value = $payload['merge_commit_title'] ?? null; if ($value === null) { - $missingFields[] = 'open_issues_count'; - goto after_open_issues_count; + $missingFields[] = 'merge_commit_title'; + goto after_merge_commit_title; } - $properties['open_issues_count'] = $value; + $properties['merge_commit_title'] = $value; - after_open_issues_count: + after_merge_commit_title: - $value = $payload['is_template'] ?? null; + $value = $payload['merge_commit_message'] ?? null; if ($value === null) { - $missingFields[] = 'is_template'; - goto after_is_template; + $missingFields[] = 'merge_commit_message'; + goto after_merge_commit_message; } - $properties['is_template'] = $value; + $properties['merge_commit_message'] = $value; - after_is_template: + after_merge_commit_message: - $value = $payload['topics'] ?? null; + $value = $payload['allow_merge_commit'] ?? null; if ($value === null) { - $missingFields[] = 'topics'; - goto after_topics; + $missingFields[] = 'allow_merge_commit'; + goto after_allow_merge_commit; } - $properties['topics'] = $value; + $properties['allow_merge_commit'] = $value; - after_topics: + after_allow_merge_commit: - $value = $payload['has_issues'] ?? null; + $value = $payload['subscribers_count'] ?? null; if ($value === null) { - $missingFields[] = 'has_issues'; - goto after_has_issues; + $missingFields[] = 'subscribers_count'; + goto after_subscribers_count; } - $properties['has_issues'] = $value; + $properties['subscribers_count'] = $value; - after_has_issues: + after_subscribers_count: - $value = $payload['has_projects'] ?? null; + $value = $payload['network_count'] ?? null; if ($value === null) { - $missingFields[] = 'has_projects'; - goto after_has_projects; + $missingFields[] = 'network_count'; + goto after_network_count; } - $properties['has_projects'] = $value; + $properties['network_count'] = $value; - after_has_projects: + after_network_count: - $value = $payload['has_wiki'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\TemplateRepository::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\Repository\TemplateRepository(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy(array $payload): \ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['avatar_url'] ?? null; if ($value === null) { - $missingFields[] = 'has_wiki'; - goto after_has_wiki; + $missingFields[] = 'avatar_url'; + goto after_avatar_url; } - $properties['has_wiki'] = $value; + $properties['avatar_url'] = $value; - after_has_wiki: + after_avatar_url: - $value = $payload['has_pages'] ?? null; + $value = $payload['deleted'] ?? null; if ($value === null) { - $missingFields[] = 'has_pages'; - goto after_has_pages; + $missingFields[] = 'deleted'; + goto after_deleted; } - $properties['has_pages'] = $value; + $properties['deleted'] = $value; - after_has_pages: + after_deleted: - $value = $payload['has_downloads'] ?? null; + $value = $payload['email'] ?? null; if ($value === null) { - $missingFields[] = 'has_downloads'; - goto after_has_downloads; + $missingFields[] = 'email'; + goto after_email; } - $properties['has_downloads'] = $value; + $properties['email'] = $value; - after_has_downloads: + after_email: - $value = $payload['archived'] ?? null; + $value = $payload['events_url'] ?? null; if ($value === null) { - $missingFields[] = 'archived'; - goto after_archived; + $missingFields[] = 'events_url'; + goto after_events_url; } - $properties['archived'] = $value; + $properties['events_url'] = $value; - after_archived: + after_events_url: - $value = $payload['disabled'] ?? null; + $value = $payload['followers_url'] ?? null; if ($value === null) { - $missingFields[] = 'disabled'; - goto after_disabled; + $missingFields[] = 'followers_url'; + goto after_followers_url; } - $properties['disabled'] = $value; + $properties['followers_url'] = $value; - after_disabled: + after_followers_url: - $value = $payload['visibility'] ?? null; + $value = $payload['following_url'] ?? null; if ($value === null) { - $missingFields[] = 'visibility'; - goto after_visibility; + $missingFields[] = 'following_url'; + goto after_following_url; } - $properties['visibility'] = $value; + $properties['following_url'] = $value; - after_visibility: + after_following_url: - $value = $payload['pushed_at'] ?? null; + $value = $payload['gists_url'] ?? null; if ($value === null) { - $missingFields[] = 'pushed_at'; - goto after_pushed_at; + $missingFields[] = 'gists_url'; + goto after_gists_url; } - $properties['pushed_at'] = $value; + $properties['gists_url'] = $value; - after_pushed_at: + after_gists_url: - $value = $payload['created_at'] ?? null; + $value = $payload['gravatar_id'] ?? null; if ($value === null) { - $missingFields[] = 'created_at'; - goto after_created_at; + $missingFields[] = 'gravatar_id'; + goto after_gravatar_id; } - $properties['created_at'] = $value; + $properties['gravatar_id'] = $value; - after_created_at: + after_gravatar_id: - $value = $payload['updated_at'] ?? null; + $value = $payload['html_url'] ?? null; if ($value === null) { - $missingFields[] = 'updated_at'; - goto after_updated_at; + $missingFields[] = 'html_url'; + goto after_html_url; } - $properties['updated_at'] = $value; + $properties['html_url'] = $value; - after_updated_at: + after_html_url: - $value = $payload['permissions'] ?? null; + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'permissions'; - goto after_permissions; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'permissions'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Permissions($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'id'; + goto after_id; } - $properties['permissions'] = $value; + $properties['id'] = $value; - after_permissions: + after_id: - $value = $payload['allow_rebase_merge'] ?? null; + $value = $payload['login'] ?? null; if ($value === null) { - $missingFields[] = 'allow_rebase_merge'; - goto after_allow_rebase_merge; + $missingFields[] = 'login'; + goto after_login; } - $properties['allow_rebase_merge'] = $value; + $properties['login'] = $value; - after_allow_rebase_merge: + after_login: - $value = $payload['temp_clone_token'] ?? null; + $value = $payload['name'] ?? null; if ($value === null) { - $missingFields[] = 'temp_clone_token'; - goto after_temp_clone_token; + $missingFields[] = 'name'; + goto after_name; } - $properties['temp_clone_token'] = $value; + $properties['name'] = $value; - after_temp_clone_token: + after_name: - $value = $payload['allow_squash_merge'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $missingFields[] = 'allow_squash_merge'; - goto after_allow_squash_merge; + $missingFields[] = 'node_id'; + goto after_node_id; } - $properties['allow_squash_merge'] = $value; + $properties['node_id'] = $value; - after_allow_squash_merge: + after_node_id: - $value = $payload['allow_auto_merge'] ?? null; + $value = $payload['organizations_url'] ?? null; if ($value === null) { - $missingFields[] = 'allow_auto_merge'; - goto after_allow_auto_merge; + $missingFields[] = 'organizations_url'; + goto after_organizations_url; } - $properties['allow_auto_merge'] = $value; + $properties['organizations_url'] = $value; - after_allow_auto_merge: + after_organizations_url: - $value = $payload['delete_branch_on_merge'] ?? null; + $value = $payload['received_events_url'] ?? null; if ($value === null) { - $missingFields[] = 'delete_branch_on_merge'; - goto after_delete_branch_on_merge; + $missingFields[] = 'received_events_url'; + goto after_received_events_url; } - $properties['delete_branch_on_merge'] = $value; + $properties['received_events_url'] = $value; - after_delete_branch_on_merge: + after_received_events_url: - $value = $payload['allow_update_branch'] ?? null; + $value = $payload['repos_url'] ?? null; if ($value === null) { - $missingFields[] = 'allow_update_branch'; - goto after_allow_update_branch; + $missingFields[] = 'repos_url'; + goto after_repos_url; } - $properties['allow_update_branch'] = $value; + $properties['repos_url'] = $value; - after_allow_update_branch: + after_repos_url: - $value = $payload['use_squash_pr_title_as_default'] ?? null; + $value = $payload['site_admin'] ?? null; if ($value === null) { - $missingFields[] = 'use_squash_pr_title_as_default'; - goto after_use_squash_pr_title_as_default; + $missingFields[] = 'site_admin'; + goto after_site_admin; } - $properties['use_squash_pr_title_as_default'] = $value; + $properties['site_admin'] = $value; - after_use_squash_pr_title_as_default: + after_site_admin: - $value = $payload['squash_merge_commit_title'] ?? null; + $value = $payload['starred_url'] ?? null; if ($value === null) { - $missingFields[] = 'squash_merge_commit_title'; - goto after_squash_merge_commit_title; + $missingFields[] = 'starred_url'; + goto after_starred_url; } - $properties['squash_merge_commit_title'] = $value; + $properties['starred_url'] = $value; - after_squash_merge_commit_title: + after_starred_url: - $value = $payload['squash_merge_commit_message'] ?? null; + $value = $payload['subscriptions_url'] ?? null; if ($value === null) { - $missingFields[] = 'squash_merge_commit_message'; - goto after_squash_merge_commit_message; + $missingFields[] = 'subscriptions_url'; + goto after_subscriptions_url; } - $properties['squash_merge_commit_message'] = $value; + $properties['subscriptions_url'] = $value; - after_squash_merge_commit_message: + after_subscriptions_url: - $value = $payload['merge_commit_title'] ?? null; + $value = $payload['type'] ?? null; if ($value === null) { - $missingFields[] = 'merge_commit_title'; - goto after_merge_commit_title; + $missingFields[] = 'type'; + goto after_type; } - $properties['merge_commit_title'] = $value; + $properties['type'] = $value; - after_merge_commit_title: + after_type: - $value = $payload['merge_commit_message'] ?? null; + $value = $payload['url'] ?? null; if ($value === null) { - $missingFields[] = 'merge_commit_message'; - goto after_merge_commit_message; + $missingFields[] = 'url'; + goto after_url; } - $properties['merge_commit_message'] = $value; + $properties['url'] = $value; - after_merge_commit_message: + after_url: - $value = $payload['allow_merge_commit'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookLabelEdited⚡️Changes⚡️Description(array $payload): \ApiClients\Client\Github\Schema\WebhookLabelEdited\Changes\Description + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['from'] ?? null; if ($value === null) { - $missingFields[] = 'allow_merge_commit'; - goto after_allow_merge_commit; + $missingFields[] = 'from'; + goto after_from; } - $properties['allow_merge_commit'] = $value; + $properties['from'] = $value; - after_allow_merge_commit: + after_from: - $value = $payload['subscribers_count'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookLabelEdited\Changes\Description', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookLabelEdited\Changes\Description::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookLabelEdited\Changes\Description(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookLabelEdited\Changes\Description', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMilestoneEdited⚡️Changes⚡️DueOn(array $payload): \ApiClients\Client\Github\Schema\WebhookMilestoneEdited\Changes\DueOn + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['from'] ?? null; if ($value === null) { - $missingFields[] = 'subscribers_count'; - goto after_subscribers_count; + $missingFields[] = 'from'; + goto after_from; } - $properties['subscribers_count'] = $value; + $properties['from'] = $value; - after_subscribers_count: + after_from: - $value = $payload['network_count'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookMilestoneEdited\Changes\DueOn', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookMilestoneEdited\Changes\DueOn::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookMilestoneEdited\Changes\DueOn(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookMilestoneEdited\Changes\DueOn', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMilestoneEdited⚡️Changes⚡️Title(array $payload): \ApiClients\Client\Github\Schema\WebhookMilestoneEdited\Changes\Title + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['from'] ?? null; if ($value === null) { - $missingFields[] = 'network_count'; - goto after_network_count; + $missingFields[] = 'from'; + goto after_from; } - $properties['network_count'] = $value; + $properties['from'] = $value; - after_network_count: + after_from: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookMilestoneEdited\Changes\Title', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\TemplateRepository::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookMilestoneEdited\Changes\Title::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\Repository\TemplateRepository(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookMilestoneEdited\Changes\Title(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookMilestoneEdited\Changes\Title', $exception, stack: $this->hydrationStack); } } @@ -3755,6 +5038,10 @@ public function serializeObject(object $object): mixed 'DateTime' => $this->serializeValueDateTime($object), 'DateTimeImmutable' => $this->serializeValueDateTimeImmutable($object), 'DateTimeInterface' => $this->serializeValueDateTimeInterface($object), + 'ApiClients\Client\Github\Schema\WebhookMilestoneClosed' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMilestoneClosed($object), + 'ApiClients\Client\Github\Schema\WebhookMilestoneCreated' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMilestoneCreated($object), + 'ApiClients\Client\Github\Schema\WebhookMilestoneDeleted' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMilestoneDeleted($object), + 'ApiClients\Client\Github\Schema\WebhookMilestoneEdited' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMilestoneEdited($object), 'ApiClients\Client\Github\Schema\WebhookMilestoneOpened' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMilestoneOpened($object), default => throw new \LogicException('No serialization defined for $className'), }; @@ -3829,6 +5116,251 @@ private function serializeValueDateTimeInterface(mixed $value): mixed } + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMilestoneClosed(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookMilestoneClosed); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $milestone = $object->milestone; + + if ($milestone === null) { + goto after_milestone; + } + $milestone = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesDemilestoned⚡️Milestone($milestone); + after_milestone: $result['milestone'] = $milestone; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMilestoneCreated(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookMilestoneCreated); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $milestone = $object->milestone; + + if ($milestone === null) { + goto after_milestone; + } + $milestone = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMilestoneCreated⚡️Milestone($milestone); + after_milestone: $result['milestone'] = $milestone; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMilestoneDeleted(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookMilestoneDeleted); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $milestone = $object->milestone; + + if ($milestone === null) { + goto after_milestone; + } + $milestone = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesDemilestoned⚡️Milestone($milestone); + after_milestone: $result['milestone'] = $milestone; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMilestoneEdited(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookMilestoneEdited); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $changes = $object->changes; + + if ($changes === null) { + goto after_changes; + } + $changes = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMilestoneEdited⚡️Changes($changes); + after_changes: $result['changes'] = $changes; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $milestone = $object->milestone; + + if ($milestone === null) { + goto after_milestone; + } + $milestone = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesDemilestoned⚡️Milestone($milestone); + after_milestone: $result['milestone'] = $milestone; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMilestoneOpened(mixed $object): mixed { \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookMilestoneOpened); diff --git a/src/Hydrator/WebHook/OrgBlock.php b/src/Hydrator/WebHook/OrgBlock.php index a53deb7754..3690be6df4 100644 --- a/src/Hydrator/WebHook/OrgBlock.php +++ b/src/Hydrator/WebHook/OrgBlock.php @@ -23,7 +23,8 @@ public function __construct() {} public function hydrateObject(string $className, array $payload): object { return match($className) { - 'ApiClients\Client\Github\Schema\WebhookOrgBlockUnblocked' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookOrgBlockUnblocked($payload), + 'ApiClients\Client\Github\Schema\WebhookOrgBlockBlocked' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookOrgBlockBlocked($payload), + 'ApiClients\Client\Github\Schema\WebhookOrgBlockUnblocked' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookOrgBlockUnblocked($payload), 'ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($payload), 'ApiClients\Client\Github\Schema\Enterprise' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($payload), 'ApiClients\Client\Github\Schema\SimpleInstallation' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($payload), @@ -39,6 +40,159 @@ public function hydrateObject(string $className, array $payload): object } + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookOrgBlockBlocked(array $payload): \ApiClients\Client\Github\Schema\WebhookOrgBlockBlocked + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; + + if ($value === null) { + $missingFields[] = 'action'; + goto after_action; + } + + $properties['action'] = $value; + + after_action: + + $value = $payload['blocked_user'] ?? null; + + if ($value === null) { + $missingFields[] = 'blocked_user'; + goto after_blocked_user; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'blocked_user'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['blocked_user'] = $value; + + after_blocked_user: + + $value = $payload['enterprise'] ?? null; + + if ($value === null) { + $missingFields[] = 'enterprise'; + goto after_enterprise; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['enterprise'] = $value; + + after_enterprise: + + $value = $payload['installation'] ?? null; + + if ($value === null) { + $missingFields[] = 'installation'; + goto after_installation; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; + + after_installation: + + $value = $payload['organization'] ?? null; + + if ($value === null) { + $missingFields[] = 'organization'; + goto after_organization; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; + + after_organization: + + $value = $payload['repository'] ?? null; + + if ($value === null) { + $missingFields[] = 'repository'; + goto after_repository; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repository'] = $value; + + after_repository: + + $value = $payload['sender'] ?? null; + + if ($value === null) { + $missingFields[] = 'sender'; + goto after_sender; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; + + after_sender: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookOrgBlockBlocked', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookOrgBlockBlocked::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookOrgBlockBlocked(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookOrgBlockBlocked', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookOrgBlockUnblocked(array $payload): \ApiClients\Client\Github\Schema\WebhookOrgBlockUnblocked { $properties = []; @@ -3547,6 +3701,7 @@ public function serializeObject(object $object): mixed 'DateTime' => $this->serializeValueDateTime($object), 'DateTimeImmutable' => $this->serializeValueDateTimeImmutable($object), 'DateTimeInterface' => $this->serializeValueDateTimeInterface($object), + 'ApiClients\Client\Github\Schema\WebhookOrgBlockBlocked' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookOrgBlockBlocked($object), 'ApiClients\Client\Github\Schema\WebhookOrgBlockUnblocked' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookOrgBlockUnblocked($object), default => throw new \LogicException('No serialization defined for $className'), }; @@ -3621,6 +3776,65 @@ private function serializeValueDateTimeInterface(mixed $value): mixed } + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookOrgBlockBlocked(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookOrgBlockBlocked); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $blocked_user = $object->blocked_user; + + if ($blocked_user === null) { + goto after_blocked_user; + } + $blocked_user = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($blocked_user); + after_blocked_user: $result['blocked_user'] = $blocked_user; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $organization = $object->organization; + + if ($organization === null) { + goto after_organization; + } + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $repository = $object->repository; + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookOrgBlockUnblocked(mixed $object): mixed { \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookOrgBlockUnblocked); diff --git a/src/Hydrator/WebHook/Organization.php b/src/Hydrator/WebHook/Organization.php index 118e3e89d4..de145a7d23 100644 --- a/src/Hydrator/WebHook/Organization.php +++ b/src/Hydrator/WebHook/Organization.php @@ -23,18 +23,23 @@ public function __construct() {} public function hydrateObject(string $className, array $payload): object { return match($className) { - 'ApiClients\Client\Github\Schema\WebhookOrganizationRenamed' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookOrganizationRenamed($payload), - 'ApiClients\Client\Github\Schema\WebhookOrganizationRenamed\Changes' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookOrganizationRenamed⚡️Changes($payload), + 'ApiClients\Client\Github\Schema\WebhookOrganizationDeleted' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookOrganizationDeleted($payload), + 'ApiClients\Client\Github\Schema\WebhookOrganizationMemberAdded' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookOrganizationMemberAdded($payload), + 'ApiClients\Client\Github\Schema\WebhookOrganizationMemberInvited' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookOrganizationMemberInvited($payload), + 'ApiClients\Client\Github\Schema\WebhookOrganizationMemberRemoved' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookOrganizationMemberRemoved($payload), + 'ApiClients\Client\Github\Schema\WebhookOrganizationRenamed' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookOrganizationRenamed($payload), 'ApiClients\Client\Github\Schema\Enterprise' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($payload), 'ApiClients\Client\Github\Schema\SimpleInstallation' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($payload), 'ApiClients\Client\Github\Schema\WebhookOrganizationDeleted\Membership' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookOrganizationDeleted⚡️Membership($payload), 'ApiClients\Client\Github\Schema\OrganizationSimple' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($payload), 'ApiClients\Client\Github\Schema\Repository' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($payload), 'ApiClients\Client\Github\Schema\SimpleUser' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($payload), - 'ApiClients\Client\Github\Schema\WebhookOrganizationRenamed\Changes\Login' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookOrganizationRenamed⚡️Changes⚡️Login($payload), + 'ApiClients\Client\Github\Schema\WebhookOrganizationMemberInvited\Invitation' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookOrganizationMemberInvited⚡️Invitation($payload), 'ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($payload), + 'ApiClients\Client\Github\Schema\WebhookOrganizationRenamed\Changes' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookOrganizationRenamed⚡️Changes($payload), 'ApiClients\Client\Github\Schema\Repository\Permissions' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️Permissions($payload), 'ApiClients\Client\Github\Schema\Repository\TemplateRepository' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository($payload), + 'ApiClients\Client\Github\Schema\WebhookOrganizationRenamed\Changes\Login' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookOrganizationRenamed⚡️Changes⚡️Login($payload), 'ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner($payload), 'ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Permissions($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), @@ -42,6 +47,638 @@ public function hydrateObject(string $className, array $payload): object } + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookOrganizationDeleted(array $payload): \ApiClients\Client\Github\Schema\WebhookOrganizationDeleted + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; + + if ($value === null) { + $missingFields[] = 'action'; + goto after_action; + } + + $properties['action'] = $value; + + after_action: + + $value = $payload['enterprise'] ?? null; + + if ($value === null) { + $missingFields[] = 'enterprise'; + goto after_enterprise; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['enterprise'] = $value; + + after_enterprise: + + $value = $payload['installation'] ?? null; + + if ($value === null) { + $missingFields[] = 'installation'; + goto after_installation; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; + + after_installation: + + $value = $payload['membership'] ?? null; + + if ($value === null) { + $missingFields[] = 'membership'; + goto after_membership; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'membership'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookOrganizationDeleted⚡️Membership($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['membership'] = $value; + + after_membership: + + $value = $payload['organization'] ?? null; + + if ($value === null) { + $missingFields[] = 'organization'; + goto after_organization; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; + + after_organization: + + $value = $payload['repository'] ?? null; + + if ($value === null) { + $missingFields[] = 'repository'; + goto after_repository; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repository'] = $value; + + after_repository: + + $value = $payload['sender'] ?? null; + + if ($value === null) { + $missingFields[] = 'sender'; + goto after_sender; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; + + after_sender: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookOrganizationDeleted', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookOrganizationDeleted::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookOrganizationDeleted(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookOrganizationDeleted', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookOrganizationMemberAdded(array $payload): \ApiClients\Client\Github\Schema\WebhookOrganizationMemberAdded + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; + + if ($value === null) { + $missingFields[] = 'action'; + goto after_action; + } + + $properties['action'] = $value; + + after_action: + + $value = $payload['enterprise'] ?? null; + + if ($value === null) { + $missingFields[] = 'enterprise'; + goto after_enterprise; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['enterprise'] = $value; + + after_enterprise: + + $value = $payload['installation'] ?? null; + + if ($value === null) { + $missingFields[] = 'installation'; + goto after_installation; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; + + after_installation: + + $value = $payload['membership'] ?? null; + + if ($value === null) { + $missingFields[] = 'membership'; + goto after_membership; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'membership'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookOrganizationDeleted⚡️Membership($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['membership'] = $value; + + after_membership: + + $value = $payload['organization'] ?? null; + + if ($value === null) { + $missingFields[] = 'organization'; + goto after_organization; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; + + after_organization: + + $value = $payload['repository'] ?? null; + + if ($value === null) { + $missingFields[] = 'repository'; + goto after_repository; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repository'] = $value; + + after_repository: + + $value = $payload['sender'] ?? null; + + if ($value === null) { + $missingFields[] = 'sender'; + goto after_sender; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; + + after_sender: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookOrganizationMemberAdded', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookOrganizationMemberAdded::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookOrganizationMemberAdded(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookOrganizationMemberAdded', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookOrganizationMemberInvited(array $payload): \ApiClients\Client\Github\Schema\WebhookOrganizationMemberInvited + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; + + if ($value === null) { + $missingFields[] = 'action'; + goto after_action; + } + + $properties['action'] = $value; + + after_action: + + $value = $payload['enterprise'] ?? null; + + if ($value === null) { + $missingFields[] = 'enterprise'; + goto after_enterprise; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['enterprise'] = $value; + + after_enterprise: + + $value = $payload['installation'] ?? null; + + if ($value === null) { + $missingFields[] = 'installation'; + goto after_installation; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; + + after_installation: + + $value = $payload['invitation'] ?? null; + + if ($value === null) { + $missingFields[] = 'invitation'; + goto after_invitation; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'invitation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookOrganizationMemberInvited⚡️Invitation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['invitation'] = $value; + + after_invitation: + + $value = $payload['organization'] ?? null; + + if ($value === null) { + $missingFields[] = 'organization'; + goto after_organization; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; + + after_organization: + + $value = $payload['repository'] ?? null; + + if ($value === null) { + $missingFields[] = 'repository'; + goto after_repository; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repository'] = $value; + + after_repository: + + $value = $payload['sender'] ?? null; + + if ($value === null) { + $missingFields[] = 'sender'; + goto after_sender; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; + + after_sender: + + $value = $payload['user'] ?? null; + + if ($value === null) { + $missingFields[] = 'user'; + goto after_user; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'user'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['user'] = $value; + + after_user: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookOrganizationMemberInvited', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookOrganizationMemberInvited::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookOrganizationMemberInvited(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookOrganizationMemberInvited', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookOrganizationMemberRemoved(array $payload): \ApiClients\Client\Github\Schema\WebhookOrganizationMemberRemoved + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; + + if ($value === null) { + $missingFields[] = 'action'; + goto after_action; + } + + $properties['action'] = $value; + + after_action: + + $value = $payload['enterprise'] ?? null; + + if ($value === null) { + $missingFields[] = 'enterprise'; + goto after_enterprise; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['enterprise'] = $value; + + after_enterprise: + + $value = $payload['installation'] ?? null; + + if ($value === null) { + $missingFields[] = 'installation'; + goto after_installation; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; + + after_installation: + + $value = $payload['membership'] ?? null; + + if ($value === null) { + $missingFields[] = 'membership'; + goto after_membership; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'membership'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookOrganizationDeleted⚡️Membership($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['membership'] = $value; + + after_membership: + + $value = $payload['organization'] ?? null; + + if ($value === null) { + $missingFields[] = 'organization'; + goto after_organization; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; + + after_organization: + + $value = $payload['repository'] ?? null; + + if ($value === null) { + $missingFields[] = 'repository'; + goto after_repository; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repository'] = $value; + + after_repository: + + $value = $payload['sender'] ?? null; + + if ($value === null) { + $missingFields[] = 'sender'; + goto after_sender; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; + + after_sender: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookOrganizationMemberRemoved', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookOrganizationMemberRemoved::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookOrganizationMemberRemoved(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookOrganizationMemberRemoved', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookOrganizationRenamed(array $payload): \ApiClients\Client\Github\Schema\WebhookOrganizationRenamed { $properties = []; @@ -215,48 +852,6 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookOrganizationRenamed⚡️Changes(array $payload): \ApiClients\Client\Github\Schema\WebhookOrganizationRenamed\Changes - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['login'] ?? null; - - if ($value === null) { - $missingFields[] = 'login'; - goto after_login; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'login'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookOrganizationRenamed⚡️Changes⚡️Login($value); - } finally { - array_pop($this->hydrationStack); - } - } - - $properties['login'] = $value; - - after_login: - - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookOrganizationRenamed\Changes', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookOrganizationRenamed\Changes::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\WebhookOrganizationRenamed\Changes(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookOrganizationRenamed\Changes', $exception, stack: $this->hydrationStack); - } - } - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise(array $payload): \ApiClients\Client\Github\Schema\Enterprise { $properties = []; @@ -2064,35 +2659,165 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Simp } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookOrganizationRenamed⚡️Changes⚡️Login(array $payload): \ApiClients\Client\Github\Schema\WebhookOrganizationRenamed\Changes\Login + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookOrganizationMemberInvited⚡️Invitation(array $payload): \ApiClients\Client\Github\Schema\WebhookOrganizationMemberInvited\Invitation { $properties = []; $missingFields = []; try { - $value = $payload['from'] ?? null; + $value = $payload['created_at'] ?? null; if ($value === null) { - $missingFields[] = 'from'; - goto after_from; + $missingFields[] = 'created_at'; + goto after_created_at; } - $properties['from'] = $value; + $properties['created_at'] = $value; - after_from: + after_created_at: + + $value = $payload['email'] ?? null; + + if ($value === null) { + $missingFields[] = 'email'; + goto after_email; + } + + $properties['email'] = $value; + + after_email: + + $value = $payload['failed_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'failed_at'; + goto after_failed_at; + } + + $properties['failed_at'] = $value; + + after_failed_at: + + $value = $payload['failed_reason'] ?? null; + + if ($value === null) { + $missingFields[] = 'failed_reason'; + goto after_failed_reason; + } + + $properties['failed_reason'] = $value; + + after_failed_reason: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['invitation_teams_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'invitation_teams_url'; + goto after_invitation_teams_url; + } + + $properties['invitation_teams_url'] = $value; + + after_invitation_teams_url: + + $value = $payload['inviter'] ?? null; + + if ($value === null) { + $missingFields[] = 'inviter'; + goto after_inviter; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'inviter'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['inviter'] = $value; + + after_inviter: + + $value = $payload['login'] ?? null; + + if ($value === null) { + $missingFields[] = 'login'; + goto after_login; + } + + $properties['login'] = $value; + + after_login: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['role'] ?? null; + + if ($value === null) { + $missingFields[] = 'role'; + goto after_role; + } + + $properties['role'] = $value; + + after_role: + + $value = $payload['team_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'team_count'; + goto after_team_count; + } + + $properties['team_count'] = $value; + + after_team_count: + + $value = $payload['invitation_source'] ?? null; + + if ($value === null) { + $missingFields[] = 'invitation_source'; + goto after_invitation_source; + } + + $properties['invitation_source'] = $value; + + after_invitation_source: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookOrganizationRenamed\Changes\Login', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookOrganizationMemberInvited\Invitation', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookOrganizationRenamed\Changes\Login::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookOrganizationMemberInvited\Invitation::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\WebhookOrganizationRenamed\Changes\Login(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookOrganizationMemberInvited\Invitation(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookOrganizationRenamed\Changes\Login', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookOrganizationMemberInvited\Invitation', $exception, stack: $this->hydrationStack); } } @@ -2343,9 +3068,51 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Disc } try { - return new \ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy(...$properties); + return new \ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookOrganizationRenamed⚡️Changes(array $payload): \ApiClients\Client\Github\Schema\WebhookOrganizationRenamed\Changes + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['login'] ?? null; + + if ($value === null) { + $missingFields[] = 'login'; + goto after_login; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'login'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookOrganizationRenamed⚡️Changes⚡️Login($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['login'] = $value; + + after_login: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookOrganizationRenamed\Changes', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookOrganizationRenamed\Changes::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookOrganizationRenamed\Changes(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookOrganizationRenamed\Changes', $exception, stack: $this->hydrationStack); } } @@ -3424,6 +4191,39 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repo } + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookOrganizationRenamed⚡️Changes⚡️Login(array $payload): \ApiClients\Client\Github\Schema\WebhookOrganizationRenamed\Changes\Login + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['from'] ?? null; + + if ($value === null) { + $missingFields[] = 'from'; + goto after_from; + } + + $properties['from'] = $value; + + after_from: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookOrganizationRenamed\Changes\Login', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookOrganizationRenamed\Changes\Login::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookOrganizationRenamed\Changes\Login(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookOrganizationRenamed\Changes\Login', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner(array $payload): \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner { $properties = []; @@ -3731,6 +4531,10 @@ public function serializeObject(object $object): mixed 'DateTime' => $this->serializeValueDateTime($object), 'DateTimeImmutable' => $this->serializeValueDateTimeImmutable($object), 'DateTimeInterface' => $this->serializeValueDateTimeInterface($object), + 'ApiClients\Client\Github\Schema\WebhookOrganizationDeleted' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookOrganizationDeleted($object), + 'ApiClients\Client\Github\Schema\WebhookOrganizationMemberAdded' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookOrganizationMemberAdded($object), + 'ApiClients\Client\Github\Schema\WebhookOrganizationMemberInvited' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookOrganizationMemberInvited($object), + 'ApiClients\Client\Github\Schema\WebhookOrganizationMemberRemoved' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookOrganizationMemberRemoved($object), 'ApiClients\Client\Github\Schema\WebhookOrganizationRenamed' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookOrganizationRenamed($object), default => throw new \LogicException('No serialization defined for $className'), }; @@ -3805,6 +4609,247 @@ private function serializeValueDateTimeInterface(mixed $value): mixed } + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookOrganizationDeleted(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookOrganizationDeleted); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $membership = $object->membership; + $membership = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookOrganizationDeleted⚡️Membership($membership); + after_membership: $result['membership'] = $membership; + + + $organization = $object->organization; + + if ($organization === null) { + goto after_organization; + } + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $repository = $object->repository; + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookOrganizationMemberAdded(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookOrganizationMemberAdded); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $membership = $object->membership; + + if ($membership === null) { + goto after_membership; + } + $membership = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookOrganizationDeleted⚡️Membership($membership); + after_membership: $result['membership'] = $membership; + + + $organization = $object->organization; + + if ($organization === null) { + goto after_organization; + } + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $repository = $object->repository; + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookOrganizationMemberInvited(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookOrganizationMemberInvited); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $invitation = $object->invitation; + + if ($invitation === null) { + goto after_invitation; + } + $invitation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookOrganizationMemberInvited⚡️Invitation($invitation); + after_invitation: $result['invitation'] = $invitation; + + + $organization = $object->organization; + + if ($organization === null) { + goto after_organization; + } + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $repository = $object->repository; + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + $user = $object->user; + + if ($user === null) { + goto after_user; + } + $user = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($user); + after_user: $result['user'] = $user; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookOrganizationMemberRemoved(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookOrganizationMemberRemoved); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $membership = $object->membership; + + if ($membership === null) { + goto after_membership; + } + $membership = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookOrganizationDeleted⚡️Membership($membership); + after_membership: $result['membership'] = $membership; + + + $organization = $object->organization; + + if ($organization === null) { + goto after_organization; + } + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $repository = $object->repository; + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookOrganizationRenamed(mixed $object): mixed { \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookOrganizationRenamed); diff --git a/src/Hydrator/WebHook/Package.php b/src/Hydrator/WebHook/Package.php index f7dae7ec2f..bf6f6606aa 100644 --- a/src/Hydrator/WebHook/Package.php +++ b/src/Hydrator/WebHook/Package.php @@ -23,26 +23,188 @@ public function __construct() {} public function hydrateObject(string $className, array $payload): object { return match($className) { - 'ApiClients\Client\Github\Schema\WebhookPackageUpdated' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPackageUpdated($payload), + 'ApiClients\Client\Github\Schema\WebhookPackagePublished' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPackagePublished($payload), + 'ApiClients\Client\Github\Schema\WebhookPackageUpdated' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPackageUpdated($payload), 'ApiClients\Client\Github\Schema\Enterprise' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($payload), 'ApiClients\Client\Github\Schema\SimpleInstallation' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($payload), 'ApiClients\Client\Github\Schema\OrganizationSimple' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($payload), - 'ApiClients\Client\Github\Schema\WebhookPackageUpdated\Package' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPackageUpdated⚡️Package($payload), + 'ApiClients\Client\Github\Schema\WebhookPackagePublished\Package' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPackagePublished⚡️Package($payload), 'ApiClients\Client\Github\Schema\Repository' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($payload), 'ApiClients\Client\Github\Schema\SimpleUser' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($payload), + 'ApiClients\Client\Github\Schema\WebhookPackageUpdated\Package' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPackageUpdated⚡️Package($payload), 'ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($payload), - 'ApiClients\Client\Github\Schema\WebhookPackageUpdated\Package\PackageVersion' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPackageUpdated⚡️Package⚡️PackageVersion($payload), + 'ApiClients\Client\Github\Schema\WebhookPackagePublished\Package\PackageVersion' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPackagePublished⚡️Package⚡️PackageVersion($payload), 'ApiClients\Client\Github\Schema\WebhookPackagePublished\Package\Registry' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPackagePublished⚡️Package⚡️Registry($payload), 'ApiClients\Client\Github\Schema\Repository\Permissions' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️Permissions($payload), 'ApiClients\Client\Github\Schema\Repository\TemplateRepository' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository($payload), - 'ApiClients\Client\Github\Schema\WebhookPackageUpdated\Package\PackageVersion\Release' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPackageUpdated⚡️Package⚡️PackageVersion⚡️Release($payload), + 'ApiClients\Client\Github\Schema\WebhookPackageUpdated\Package\PackageVersion' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPackageUpdated⚡️Package⚡️PackageVersion($payload), + 'ApiClients\Client\Github\Schema\WebhookPackagePublished\Package\PackageVersion\ContainerMetadata' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPackagePublished⚡️Package⚡️PackageVersion⚡️ContainerMetadata($payload), + 'ApiClients\Client\Github\Schema\WebhookPackagePublished\Package\PackageVersion\NpmMetadata' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPackagePublished⚡️Package⚡️PackageVersion⚡️NpmMetadata($payload), + 'ApiClients\Client\Github\Schema\WebhookPackagePublished\Package\PackageVersion\Release' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPackagePublished⚡️Package⚡️PackageVersion⚡️Release($payload), 'ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner($payload), 'ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Permissions($payload), + 'ApiClients\Client\Github\Schema\WebhookPackageUpdated\Package\PackageVersion\Release' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPackageUpdated⚡️Package⚡️PackageVersion⚡️Release($payload), + 'ApiClients\Client\Github\Schema\WebhookCheckSuiteCompleted\ActionsMeta' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckSuiteCompleted⚡️ActionsMeta($payload), + 'ApiClients\Client\Github\Schema\WebhookPackagePublished\Package\PackageVersion\ContainerMetadata\Tag' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPackagePublished⚡️Package⚡️PackageVersion⚡️ContainerMetadata⚡️Tag($payload), + 'ApiClients\Client\Github\Schema\WebhookPackagePublished\Package\PackageVersion\NpmMetadata\Dependencies' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPackagePublished⚡️Package⚡️PackageVersion⚡️NpmMetadata⚡️Dependencies($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), }; } + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPackagePublished(array $payload): \ApiClients\Client\Github\Schema\WebhookPackagePublished + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; + + if ($value === null) { + $missingFields[] = 'action'; + goto after_action; + } + + $properties['action'] = $value; + + after_action: + + $value = $payload['enterprise'] ?? null; + + if ($value === null) { + $missingFields[] = 'enterprise'; + goto after_enterprise; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['enterprise'] = $value; + + after_enterprise: + + $value = $payload['installation'] ?? null; + + if ($value === null) { + $missingFields[] = 'installation'; + goto after_installation; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; + + after_installation: + + $value = $payload['organization'] ?? null; + + if ($value === null) { + $missingFields[] = 'organization'; + goto after_organization; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; + + after_organization: + + $value = $payload['package'] ?? null; + + if ($value === null) { + $missingFields[] = 'package'; + goto after_package; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'package'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPackagePublished⚡️Package($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['package'] = $value; + + after_package: + + $value = $payload['repository'] ?? null; + + if ($value === null) { + $missingFields[] = 'repository'; + goto after_repository; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repository'] = $value; + + after_repository: + + $value = $payload['sender'] ?? null; + + if ($value === null) { + $missingFields[] = 'sender'; + goto after_sender; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; + + after_sender: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPackagePublished', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPackagePublished::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookPackagePublished(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPackagePublished', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPackageUpdated(array $payload): \ApiClients\Client\Github\Schema\WebhookPackageUpdated { $properties = []; @@ -526,7 +688,7 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Orga } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPackageUpdated⚡️Package(array $payload): \ApiClients\Client\Github\Schema\WebhookPackageUpdated\Package + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPackagePublished⚡️Package(array $payload): \ApiClients\Client\Github\Schema\WebhookPackagePublished\Package { $properties = []; $missingFields = []; @@ -650,7 +812,7 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'package_version'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPackageUpdated⚡️Package⚡️PackageVersion($value); + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPackagePublished⚡️Package⚡️PackageVersion($value); } finally { array_pop($this->hydrationStack); } @@ -692,17 +854,17 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh after_updated_at: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPackageUpdated\Package', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPackagePublished\Package', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPackageUpdated\Package::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPackagePublished\Package::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\WebhookPackageUpdated\Package(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookPackagePublished\Package(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPackageUpdated\Package', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPackagePublished\Package', $exception, stack: $this->hydrationStack); } } @@ -2098,105 +2260,286 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Simp } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy(array $payload): \ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPackageUpdated⚡️Package(array $payload): \ApiClients\Client\Github\Schema\WebhookPackageUpdated\Package { $properties = []; $missingFields = []; try { - $value = $payload['avatar_url'] ?? null; + $value = $payload['created_at'] ?? null; if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatar_url; + $missingFields[] = 'created_at'; + goto after_created_at; } - $properties['avatar_url'] = $value; + $properties['created_at'] = $value; - after_avatar_url: + after_created_at: - $value = $payload['deleted'] ?? null; + $value = $payload['description'] ?? null; if ($value === null) { - $missingFields[] = 'deleted'; - goto after_deleted; + $missingFields[] = 'description'; + goto after_description; } - $properties['deleted'] = $value; + $properties['description'] = $value; - after_deleted: + after_description: - $value = $payload['email'] ?? null; + $value = $payload['ecosystem'] ?? null; if ($value === null) { - $missingFields[] = 'email'; - goto after_email; + $missingFields[] = 'ecosystem'; + goto after_ecosystem; } - $properties['email'] = $value; + $properties['ecosystem'] = $value; - after_email: + after_ecosystem: - $value = $payload['events_url'] ?? null; + $value = $payload['html_url'] ?? null; if ($value === null) { - $missingFields[] = 'events_url'; - goto after_events_url; + $missingFields[] = 'html_url'; + goto after_html_url; } - $properties['events_url'] = $value; + $properties['html_url'] = $value; - after_events_url: + after_html_url: - $value = $payload['followers_url'] ?? null; + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followers_url; + $missingFields[] = 'id'; + goto after_id; } - $properties['followers_url'] = $value; + $properties['id'] = $value; - after_followers_url: + after_id: - $value = $payload['following_url'] ?? null; + $value = $payload['name'] ?? null; if ($value === null) { - $missingFields[] = 'following_url'; - goto after_following_url; + $missingFields[] = 'name'; + goto after_name; } - $properties['following_url'] = $value; + $properties['name'] = $value; - after_following_url: + after_name: - $value = $payload['gists_url'] ?? null; + $value = $payload['namespace'] ?? null; if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gists_url; + $missingFields[] = 'namespace'; + goto after_namespace; } - $properties['gists_url'] = $value; + $properties['namespace'] = $value; - after_gists_url: + after_namespace: - $value = $payload['gravatar_id'] ?? null; + $value = $payload['owner'] ?? null; if ($value === null) { - $missingFields[] = 'gravatar_id'; - goto after_gravatar_id; + $missingFields[] = 'owner'; + goto after_owner; } - $properties['gravatar_id'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'owner'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['owner'] = $value; - after_gravatar_id: + after_owner: - $value = $payload['html_url'] ?? null; + $value = $payload['package_type'] ?? null; if ($value === null) { - $missingFields[] = 'html_url'; - goto after_html_url; + $missingFields[] = 'package_type'; + goto after_package_type; + } + + $properties['package_type'] = $value; + + after_package_type: + + $value = $payload['package_version'] ?? null; + + if ($value === null) { + $missingFields[] = 'package_version'; + goto after_package_version; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'package_version'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPackageUpdated⚡️Package⚡️PackageVersion($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['package_version'] = $value; + + after_package_version: + + $value = $payload['registry'] ?? null; + + if ($value === null) { + $missingFields[] = 'registry'; + goto after_registry; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'registry'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPackagePublished⚡️Package⚡️Registry($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['registry'] = $value; + + after_registry: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'updated_at'; + goto after_updated_at; + } + + $properties['updated_at'] = $value; + + after_updated_at: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPackageUpdated\Package', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPackageUpdated\Package::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookPackageUpdated\Package(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPackageUpdated\Package', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy(array $payload): \ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['avatar_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'avatar_url'; + goto after_avatar_url; + } + + $properties['avatar_url'] = $value; + + after_avatar_url: + + $value = $payload['deleted'] ?? null; + + if ($value === null) { + $missingFields[] = 'deleted'; + goto after_deleted; + } + + $properties['deleted'] = $value; + + after_deleted: + + $value = $payload['email'] ?? null; + + if ($value === null) { + $missingFields[] = 'email'; + goto after_email; + } + + $properties['email'] = $value; + + after_email: + + $value = $payload['events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'events_url'; + goto after_events_url; + } + + $properties['events_url'] = $value; + + after_events_url: + + $value = $payload['followers_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'followers_url'; + goto after_followers_url; + } + + $properties['followers_url'] = $value; + + after_followers_url: + + $value = $payload['following_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'following_url'; + goto after_following_url; + } + + $properties['following_url'] = $value; + + after_following_url: + + $value = $payload['gists_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'gists_url'; + goto after_gists_url; + } + + $properties['gists_url'] = $value; + + after_gists_url: + + $value = $payload['gravatar_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'gravatar_id'; + goto after_gravatar_id; + } + + $properties['gravatar_id'] = $value; + + after_gravatar_id: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; } $properties['html_url'] = $value; @@ -2351,7 +2694,7 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Disc } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPackageUpdated⚡️Package⚡️PackageVersion(array $payload): \ApiClients\Client\Github\Schema\WebhookPackageUpdated\Package\PackageVersion + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPackagePublished⚡️Package⚡️PackageVersion(array $payload): \ApiClients\Client\Github\Schema\WebhookPackagePublished\Package\PackageVersion { $properties = []; $missingFields = []; @@ -2380,7 +2723,7 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh $value = $payload['body'] ?? null; if ($value === null) { - $missingFields[] = 'body'; + $properties['body'] = null; goto after_body; } @@ -2399,6 +2742,26 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh after_body_html: + $value = $payload['container_metadata'] ?? null; + + if ($value === null) { + $missingFields[] = 'container_metadata'; + goto after_container_metadata; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'container_metadata'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPackagePublished⚡️Package⚡️PackageVersion⚡️ContainerMetadata($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['container_metadata'] = $value; + + after_container_metadata: + $value = $payload['created_at'] ?? null; if ($value === null) { @@ -2509,6 +2872,37 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh after_name: + $value = $payload['npm_metadata'] ?? null; + + if ($value === null) { + $missingFields[] = 'npm_metadata'; + goto after_npm_metadata; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'npm_metadata'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPackagePublished⚡️Package⚡️PackageVersion⚡️NpmMetadata($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['npm_metadata'] = $value; + + after_npm_metadata: + + $value = $payload['nuget_metadata'] ?? null; + + if ($value === null) { + $missingFields[] = 'nuget_metadata'; + goto after_nuget_metadata; + } + + $properties['nuget_metadata'] = $value; + + after_nuget_metadata: + $value = $payload['package_files'] ?? null; if ($value === null) { @@ -2552,7 +2946,7 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'release'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPackageUpdated⚡️Package⚡️PackageVersion⚡️Release($value); + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPackagePublished⚡️Package⚡️PackageVersion⚡️Release($value); } finally { array_pop($this->hydrationStack); } @@ -2651,17 +3045,17 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh after_version: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPackageUpdated\Package\PackageVersion', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPackagePublished\Package\PackageVersion', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPackageUpdated\Package\PackageVersion::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPackagePublished\Package\PackageVersion::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\WebhookPackageUpdated\Package\PackageVersion(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookPackagePublished\Package\PackageVersion(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPackageUpdated\Package\PackageVersion', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPackagePublished\Package\PackageVersion', $exception, stack: $this->hydrationStack); } } @@ -3817,7 +4211,7 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repo } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPackageUpdated⚡️Package⚡️PackageVersion⚡️Release(array $payload): \ApiClients\Client\Github\Schema\WebhookPackageUpdated\Package\PackageVersion\Release + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPackageUpdated⚡️Package⚡️PackageVersion(array $payload): \ApiClients\Client\Github\Schema\WebhookPackageUpdated\Package\PackageVersion { $properties = []; $missingFields = []; @@ -3843,54 +4237,997 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh after_author: - $value = $payload['created_at'] ?? null; + $value = $payload['body'] ?? null; if ($value === null) { - $missingFields[] = 'created_at'; - goto after_created_at; + $missingFields[] = 'body'; + goto after_body; } - $properties['created_at'] = $value; + $properties['body'] = $value; - after_created_at: + after_body: - $value = $payload['draft'] ?? null; + $value = $payload['body_html'] ?? null; if ($value === null) { - $missingFields[] = 'draft'; - goto after_draft; + $missingFields[] = 'body_html'; + goto after_body_html; } - $properties['draft'] = $value; + $properties['body_html'] = $value; - after_draft: + after_body_html: - $value = $payload['html_url'] ?? null; + $value = $payload['created_at'] ?? null; if ($value === null) { - $missingFields[] = 'html_url'; - goto after_html_url; + $missingFields[] = 'created_at'; + goto after_created_at; } - $properties['html_url'] = $value; + $properties['created_at'] = $value; - after_html_url: + after_created_at: - $value = $payload['id'] ?? null; + $value = $payload['description'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'description'; + goto after_description; } - $properties['id'] = $value; + $properties['description'] = $value; - after_id: + after_description: - $value = $payload['name'] ?? null; + $value = $payload['docker_metadata'] ?? null; if ($value === null) { - $missingFields[] = 'name'; + $missingFields[] = 'docker_metadata'; + goto after_docker_metadata; + } + + $properties['docker_metadata'] = $value; + + after_docker_metadata: + + $value = $payload['draft'] ?? null; + + if ($value === null) { + $missingFields[] = 'draft'; + goto after_draft; + } + + $properties['draft'] = $value; + + after_draft: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } + + $properties['html_url'] = $value; + + after_html_url: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['installation_command'] ?? null; + + if ($value === null) { + $missingFields[] = 'installation_command'; + goto after_installation_command; + } + + $properties['installation_command'] = $value; + + after_installation_command: + + $value = $payload['manifest'] ?? null; + + if ($value === null) { + $missingFields[] = 'manifest'; + goto after_manifest; + } + + $properties['manifest'] = $value; + + after_manifest: + + $value = $payload['metadata'] ?? null; + + if ($value === null) { + $missingFields[] = 'metadata'; + goto after_metadata; + } + + $properties['metadata'] = $value; + + after_metadata: + + $value = $payload['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['package_files'] ?? null; + + if ($value === null) { + $missingFields[] = 'package_files'; + goto after_package_files; + } + + $properties['package_files'] = $value; + + after_package_files: + + $value = $payload['package_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'package_url'; + goto after_package_url; + } + + $properties['package_url'] = $value; + + after_package_url: + + $value = $payload['prerelease'] ?? null; + + if ($value === null) { + $missingFields[] = 'prerelease'; + goto after_prerelease; + } + + $properties['prerelease'] = $value; + + after_prerelease: + + $value = $payload['release'] ?? null; + + if ($value === null) { + $missingFields[] = 'release'; + goto after_release; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'release'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPackageUpdated⚡️Package⚡️PackageVersion⚡️Release($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['release'] = $value; + + after_release: + + $value = $payload['rubygems_metadata'] ?? null; + + if ($value === null) { + $missingFields[] = 'rubygems_metadata'; + goto after_rubygems_metadata; + } + + $properties['rubygems_metadata'] = $value; + + after_rubygems_metadata: + + $value = $payload['source_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'source_url'; + goto after_source_url; + } + + $properties['source_url'] = $value; + + after_source_url: + + $value = $payload['summary'] ?? null; + + if ($value === null) { + $missingFields[] = 'summary'; + goto after_summary; + } + + $properties['summary'] = $value; + + after_summary: + + $value = $payload['tag_name'] ?? null; + + if ($value === null) { + $missingFields[] = 'tag_name'; + goto after_tag_name; + } + + $properties['tag_name'] = $value; + + after_tag_name: + + $value = $payload['target_commitish'] ?? null; + + if ($value === null) { + $missingFields[] = 'target_commitish'; + goto after_target_commitish; + } + + $properties['target_commitish'] = $value; + + after_target_commitish: + + $value = $payload['target_oid'] ?? null; + + if ($value === null) { + $missingFields[] = 'target_oid'; + goto after_target_oid; + } + + $properties['target_oid'] = $value; + + after_target_oid: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'updated_at'; + goto after_updated_at; + } + + $properties['updated_at'] = $value; + + after_updated_at: + + $value = $payload['version'] ?? null; + + if ($value === null) { + $missingFields[] = 'version'; + goto after_version; + } + + $properties['version'] = $value; + + after_version: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPackageUpdated\Package\PackageVersion', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPackageUpdated\Package\PackageVersion::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookPackageUpdated\Package\PackageVersion(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPackageUpdated\Package\PackageVersion', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPackagePublished⚡️Package⚡️PackageVersion⚡️ContainerMetadata(array $payload): \ApiClients\Client\Github\Schema\WebhookPackagePublished\Package\PackageVersion\ContainerMetadata + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['labels'] ?? null; + + if ($value === null) { + $missingFields[] = 'labels'; + goto after_labels; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'labels'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckSuiteCompleted⚡️ActionsMeta($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['labels'] = $value; + + after_labels: + + $value = $payload['manifest'] ?? null; + + if ($value === null) { + $missingFields[] = 'manifest'; + goto after_manifest; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'manifest'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckSuiteCompleted⚡️ActionsMeta($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['manifest'] = $value; + + after_manifest: + + $value = $payload['tag'] ?? null; + + if ($value === null) { + $missingFields[] = 'tag'; + goto after_tag; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'tag'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPackagePublished⚡️Package⚡️PackageVersion⚡️ContainerMetadata⚡️Tag($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['tag'] = $value; + + after_tag: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPackagePublished\Package\PackageVersion\ContainerMetadata', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPackagePublished\Package\PackageVersion\ContainerMetadata::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookPackagePublished\Package\PackageVersion\ContainerMetadata(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPackagePublished\Package\PackageVersion\ContainerMetadata', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPackagePublished⚡️Package⚡️PackageVersion⚡️NpmMetadata(array $payload): \ApiClients\Client\Github\Schema\WebhookPackagePublished\Package\PackageVersion\NpmMetadata + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['version'] ?? null; + + if ($value === null) { + $missingFields[] = 'version'; + goto after_version; + } + + $properties['version'] = $value; + + after_version: + + $value = $payload['npm_user'] ?? null; + + if ($value === null) { + $missingFields[] = 'npm_user'; + goto after_npm_user; + } + + $properties['npm_user'] = $value; + + after_npm_user: + + $value = $payload['author'] ?? null; + + if ($value === null) { + $missingFields[] = 'author'; + goto after_author; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'author'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckSuiteCompleted⚡️ActionsMeta($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['author'] = $value; + + after_author: + + $value = $payload['bugs'] ?? null; + + if ($value === null) { + $missingFields[] = 'bugs'; + goto after_bugs; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'bugs'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckSuiteCompleted⚡️ActionsMeta($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['bugs'] = $value; + + after_bugs: + + $value = $payload['dependencies'] ?? null; + + if ($value === null) { + $missingFields[] = 'dependencies'; + goto after_dependencies; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'dependencies'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPackagePublished⚡️Package⚡️PackageVersion⚡️NpmMetadata⚡️Dependencies($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['dependencies'] = $value; + + after_dependencies: + + $value = $payload['dev_dependencies'] ?? null; + + if ($value === null) { + $missingFields[] = 'dev_dependencies'; + goto after_dev_dependencies; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'dev_dependencies'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPackagePublished⚡️Package⚡️PackageVersion⚡️NpmMetadata⚡️Dependencies($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['dev_dependencies'] = $value; + + after_dev_dependencies: + + $value = $payload['peer_dependencies'] ?? null; + + if ($value === null) { + $missingFields[] = 'peer_dependencies'; + goto after_peer_dependencies; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'peer_dependencies'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPackagePublished⚡️Package⚡️PackageVersion⚡️NpmMetadata⚡️Dependencies($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['peer_dependencies'] = $value; + + after_peer_dependencies: + + $value = $payload['optional_dependencies'] ?? null; + + if ($value === null) { + $missingFields[] = 'optional_dependencies'; + goto after_optional_dependencies; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'optional_dependencies'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPackagePublished⚡️Package⚡️PackageVersion⚡️NpmMetadata⚡️Dependencies($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['optional_dependencies'] = $value; + + after_optional_dependencies: + + $value = $payload['description'] ?? null; + + if ($value === null) { + $missingFields[] = 'description'; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['dist'] ?? null; + + if ($value === null) { + $missingFields[] = 'dist'; + goto after_dist; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'dist'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckSuiteCompleted⚡️ActionsMeta($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['dist'] = $value; + + after_dist: + + $value = $payload['git_head'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_head'; + goto after_git_head; + } + + $properties['git_head'] = $value; + + after_git_head: + + $value = $payload['homepage'] ?? null; + + if ($value === null) { + $missingFields[] = 'homepage'; + goto after_homepage; + } + + $properties['homepage'] = $value; + + after_homepage: + + $value = $payload['license'] ?? null; + + if ($value === null) { + $missingFields[] = 'license'; + goto after_license; + } + + $properties['license'] = $value; + + after_license: + + $value = $payload['main'] ?? null; + + if ($value === null) { + $missingFields[] = 'main'; + goto after_main; + } + + $properties['main'] = $value; + + after_main: + + $value = $payload['repository'] ?? null; + + if ($value === null) { + $missingFields[] = 'repository'; + goto after_repository; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckSuiteCompleted⚡️ActionsMeta($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repository'] = $value; + + after_repository: + + $value = $payload['scripts'] ?? null; + + if ($value === null) { + $missingFields[] = 'scripts'; + goto after_scripts; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'scripts'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPackagePublished⚡️Package⚡️PackageVersion⚡️NpmMetadata⚡️Dependencies($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['scripts'] = $value; + + after_scripts: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['node_version'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_version'; + goto after_node_version; + } + + $properties['node_version'] = $value; + + after_node_version: + + $value = $payload['npm_version'] ?? null; + + if ($value === null) { + $missingFields[] = 'npm_version'; + goto after_npm_version; + } + + $properties['npm_version'] = $value; + + after_npm_version: + + $value = $payload['has_shrinkwrap'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_shrinkwrap'; + goto after_has_shrinkwrap; + } + + $properties['has_shrinkwrap'] = $value; + + after_has_shrinkwrap: + + $value = $payload['maintainers'] ?? null; + + if ($value === null) { + $missingFields[] = 'maintainers'; + goto after_maintainers; + } + + $properties['maintainers'] = $value; + + after_maintainers: + + $value = $payload['contributors'] ?? null; + + if ($value === null) { + $missingFields[] = 'contributors'; + goto after_contributors; + } + + $properties['contributors'] = $value; + + after_contributors: + + $value = $payload['engines'] ?? null; + + if ($value === null) { + $missingFields[] = 'engines'; + goto after_engines; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'engines'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPackagePublished⚡️Package⚡️PackageVersion⚡️NpmMetadata⚡️Dependencies($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['engines'] = $value; + + after_engines: + + $value = $payload['keywords'] ?? null; + + if ($value === null) { + $missingFields[] = 'keywords'; + goto after_keywords; + } + + $properties['keywords'] = $value; + + after_keywords: + + $value = $payload['files'] ?? null; + + if ($value === null) { + $missingFields[] = 'files'; + goto after_files; + } + + $properties['files'] = $value; + + after_files: + + $value = $payload['bin'] ?? null; + + if ($value === null) { + $missingFields[] = 'bin'; + goto after_bin; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'bin'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPackagePublished⚡️Package⚡️PackageVersion⚡️NpmMetadata⚡️Dependencies($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['bin'] = $value; + + after_bin: + + $value = $payload['man'] ?? null; + + if ($value === null) { + $missingFields[] = 'man'; + goto after_man; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'man'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPackagePublished⚡️Package⚡️PackageVersion⚡️NpmMetadata⚡️Dependencies($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['man'] = $value; + + after_man: + + $value = $payload['directories'] ?? null; + + if ($value === null) { + $missingFields[] = 'directories'; + goto after_directories; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'directories'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckSuiteCompleted⚡️ActionsMeta($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['directories'] = $value; + + after_directories: + + $value = $payload['os'] ?? null; + + if ($value === null) { + $missingFields[] = 'os'; + goto after_os; + } + + $properties['os'] = $value; + + after_os: + + $value = $payload['cpu'] ?? null; + + if ($value === null) { + $missingFields[] = 'cpu'; + goto after_cpu; + } + + $properties['cpu'] = $value; + + after_cpu: + + $value = $payload['readme'] ?? null; + + if ($value === null) { + $missingFields[] = 'readme'; + goto after_readme; + } + + $properties['readme'] = $value; + + after_readme: + + $value = $payload['installation_command'] ?? null; + + if ($value === null) { + $missingFields[] = 'installation_command'; + goto after_installation_command; + } + + $properties['installation_command'] = $value; + + after_installation_command: + + $value = $payload['release_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'release_id'; + goto after_release_id; + } + + $properties['release_id'] = $value; + + after_release_id: + + $value = $payload['commit_oid'] ?? null; + + if ($value === null) { + $missingFields[] = 'commit_oid'; + goto after_commit_oid; + } + + $properties['commit_oid'] = $value; + + after_commit_oid: + + $value = $payload['published_via_actions'] ?? null; + + if ($value === null) { + $missingFields[] = 'published_via_actions'; + goto after_published_via_actions; + } + + $properties['published_via_actions'] = $value; + + after_published_via_actions: + + $value = $payload['deleted_by_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'deleted_by_id'; + goto after_deleted_by_id; + } + + $properties['deleted_by_id'] = $value; + + after_deleted_by_id: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPackagePublished\Package\PackageVersion\NpmMetadata', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPackagePublished\Package\PackageVersion\NpmMetadata::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookPackagePublished\Package\PackageVersion\NpmMetadata(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPackagePublished\Package\PackageVersion\NpmMetadata', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPackagePublished⚡️Package⚡️PackageVersion⚡️Release(array $payload): \ApiClients\Client\Github\Schema\WebhookPackagePublished\Package\PackageVersion\Release + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['author'] ?? null; + + if ($value === null) { + $missingFields[] = 'author'; + goto after_author; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'author'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['author'] = $value; + + after_author: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'created_at'; + goto after_created_at; + } + + $properties['created_at'] = $value; + + after_created_at: + + $value = $payload['draft'] ?? null; + + if ($value === null) { + $missingFields[] = 'draft'; + goto after_draft; + } + + $properties['draft'] = $value; + + after_draft: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } + + $properties['html_url'] = $value; + + after_html_url: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; goto after_name; } @@ -3954,17 +5291,17 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh after_url: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPackageUpdated\Package\PackageVersion\Release', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPackagePublished\Package\PackageVersion\Release', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPackageUpdated\Package\PackageVersion\Release::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPackagePublished\Package\PackageVersion\Release::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\WebhookPackageUpdated\Package\PackageVersion\Release(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookPackagePublished\Package\PackageVersion\Release(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPackageUpdated\Package\PackageVersion\Release', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPackagePublished\Package\PackageVersion\Release', $exception, stack: $this->hydrationStack); } } @@ -4059,209 +5396,449 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repo goto after_followers_url; } - $properties['followers_url'] = $value; + $properties['followers_url'] = $value; + + after_followers_url: + + $value = $payload['following_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'following_url'; + goto after_following_url; + } + + $properties['following_url'] = $value; + + after_following_url: + + $value = $payload['gists_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'gists_url'; + goto after_gists_url; + } + + $properties['gists_url'] = $value; + + after_gists_url: + + $value = $payload['starred_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'starred_url'; + goto after_starred_url; + } + + $properties['starred_url'] = $value; + + after_starred_url: + + $value = $payload['subscriptions_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscriptions_url'; + goto after_subscriptions_url; + } + + $properties['subscriptions_url'] = $value; + + after_subscriptions_url: + + $value = $payload['organizations_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'organizations_url'; + goto after_organizations_url; + } + + $properties['organizations_url'] = $value; + + after_organizations_url: + + $value = $payload['repos_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'repos_url'; + goto after_repos_url; + } + + $properties['repos_url'] = $value; + + after_repos_url: + + $value = $payload['events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'events_url'; + goto after_events_url; + } + + $properties['events_url'] = $value; + + after_events_url: + + $value = $payload['received_events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'received_events_url'; + goto after_received_events_url; + } + + $properties['received_events_url'] = $value; + + after_received_events_url: + + $value = $payload['type'] ?? null; + + if ($value === null) { + $missingFields[] = 'type'; + goto after_type; + } + + $properties['type'] = $value; + + after_type: + + $value = $payload['site_admin'] ?? null; + + if ($value === null) { + $missingFields[] = 'site_admin'; + goto after_site_admin; + } + + $properties['site_admin'] = $value; + + after_site_admin: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Permissions(array $payload): \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['admin'] ?? null; + + if ($value === null) { + $missingFields[] = 'admin'; + goto after_admin; + } + + $properties['admin'] = $value; + + after_admin: + + $value = $payload['maintain'] ?? null; + + if ($value === null) { + $missingFields[] = 'maintain'; + goto after_maintain; + } + + $properties['maintain'] = $value; + + after_maintain: + + $value = $payload['push'] ?? null; + + if ($value === null) { + $missingFields[] = 'push'; + goto after_push; + } + + $properties['push'] = $value; + + after_push: + + $value = $payload['triage'] ?? null; + + if ($value === null) { + $missingFields[] = 'triage'; + goto after_triage; + } + + $properties['triage'] = $value; + + after_triage: + + $value = $payload['pull'] ?? null; + + if ($value === null) { + $missingFields[] = 'pull'; + goto after_pull; + } + + $properties['pull'] = $value; + + after_pull: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPackageUpdated⚡️Package⚡️PackageVersion⚡️Release(array $payload): \ApiClients\Client\Github\Schema\WebhookPackageUpdated\Package\PackageVersion\Release + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['author'] ?? null; + + if ($value === null) { + $missingFields[] = 'author'; + goto after_author; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'author'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['author'] = $value; - after_followers_url: + after_author: - $value = $payload['following_url'] ?? null; + $value = $payload['created_at'] ?? null; if ($value === null) { - $missingFields[] = 'following_url'; - goto after_following_url; + $missingFields[] = 'created_at'; + goto after_created_at; } - $properties['following_url'] = $value; + $properties['created_at'] = $value; - after_following_url: + after_created_at: - $value = $payload['gists_url'] ?? null; + $value = $payload['draft'] ?? null; if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gists_url; + $missingFields[] = 'draft'; + goto after_draft; } - $properties['gists_url'] = $value; + $properties['draft'] = $value; - after_gists_url: + after_draft: - $value = $payload['starred_url'] ?? null; + $value = $payload['html_url'] ?? null; if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starred_url; + $missingFields[] = 'html_url'; + goto after_html_url; } - $properties['starred_url'] = $value; + $properties['html_url'] = $value; - after_starred_url: + after_html_url: - $value = $payload['subscriptions_url'] ?? null; + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptions_url; + $missingFields[] = 'id'; + goto after_id; } - $properties['subscriptions_url'] = $value; + $properties['id'] = $value; - after_subscriptions_url: + after_id: - $value = $payload['organizations_url'] ?? null; + $value = $payload['name'] ?? null; if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizations_url; + $missingFields[] = 'name'; + goto after_name; } - $properties['organizations_url'] = $value; + $properties['name'] = $value; - after_organizations_url: + after_name: - $value = $payload['repos_url'] ?? null; + $value = $payload['prerelease'] ?? null; if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_repos_url; + $missingFields[] = 'prerelease'; + goto after_prerelease; } - $properties['repos_url'] = $value; + $properties['prerelease'] = $value; - after_repos_url: + after_prerelease: - $value = $payload['events_url'] ?? null; + $value = $payload['published_at'] ?? null; if ($value === null) { - $missingFields[] = 'events_url'; - goto after_events_url; + $missingFields[] = 'published_at'; + goto after_published_at; } - $properties['events_url'] = $value; + $properties['published_at'] = $value; - after_events_url: + after_published_at: - $value = $payload['received_events_url'] ?? null; + $value = $payload['tag_name'] ?? null; if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_received_events_url; + $missingFields[] = 'tag_name'; + goto after_tag_name; } - $properties['received_events_url'] = $value; + $properties['tag_name'] = $value; - after_received_events_url: + after_tag_name: - $value = $payload['type'] ?? null; + $value = $payload['target_commitish'] ?? null; if ($value === null) { - $missingFields[] = 'type'; - goto after_type; + $missingFields[] = 'target_commitish'; + goto after_target_commitish; } - $properties['type'] = $value; + $properties['target_commitish'] = $value; - after_type: + after_target_commitish: - $value = $payload['site_admin'] ?? null; + $value = $payload['url'] ?? null; if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_site_admin; + $missingFields[] = 'url'; + goto after_url; } - $properties['site_admin'] = $value; + $properties['url'] = $value; - after_site_admin: + after_url: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPackageUpdated\Package\PackageVersion\Release', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPackageUpdated\Package\PackageVersion\Release::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookPackageUpdated\Package\PackageVersion\Release(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPackageUpdated\Package\PackageVersion\Release', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Permissions(array $payload): \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckSuiteCompleted⚡️ActionsMeta(array $payload): \ApiClients\Client\Github\Schema\WebhookCheckSuiteCompleted\ActionsMeta { $properties = []; $missingFields = []; try { - $value = $payload['admin'] ?? null; - - if ($value === null) { - $missingFields[] = 'admin'; - goto after_admin; - } - - $properties['admin'] = $value; - - after_admin: - - $value = $payload['maintain'] ?? null; - - if ($value === null) { - $missingFields[] = 'maintain'; - goto after_maintain; - } - - $properties['maintain'] = $value; - - after_maintain: + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCheckSuiteCompleted\ActionsMeta', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookCheckSuiteCompleted\ActionsMeta::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookCheckSuiteCompleted\ActionsMeta(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCheckSuiteCompleted\ActionsMeta', $exception, stack: $this->hydrationStack); + } + } - $value = $payload['push'] ?? null; + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPackagePublished⚡️Package⚡️PackageVersion⚡️ContainerMetadata⚡️Tag(array $payload): \ApiClients\Client\Github\Schema\WebhookPackagePublished\Package\PackageVersion\ContainerMetadata\Tag + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['digest'] ?? null; if ($value === null) { - $missingFields[] = 'push'; - goto after_push; + $missingFields[] = 'digest'; + goto after_digest; } - $properties['push'] = $value; + $properties['digest'] = $value; - after_push: + after_digest: - $value = $payload['triage'] ?? null; + $value = $payload['name'] ?? null; if ($value === null) { - $missingFields[] = 'triage'; - goto after_triage; + $missingFields[] = 'name'; + goto after_name; } - $properties['triage'] = $value; - - after_triage: - - $value = $payload['pull'] ?? null; + $properties['name'] = $value; - if ($value === null) { - $missingFields[] = 'pull'; - goto after_pull; - } + after_name: - $properties['pull'] = $value; - - after_pull: + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPackagePublished\Package\PackageVersion\ContainerMetadata\Tag', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPackagePublished\Package\PackageVersion\ContainerMetadata\Tag::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookPackagePublished\Package\PackageVersion\ContainerMetadata\Tag(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPackagePublished\Package\PackageVersion\ContainerMetadata\Tag', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPackagePublished⚡️Package⚡️PackageVersion⚡️NpmMetadata⚡️Dependencies(array $payload): \ApiClients\Client\Github\Schema\WebhookPackagePublished\Package\PackageVersion\NpmMetadata\Dependencies + { + $properties = []; + $missingFields = []; + try { + } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPackagePublished\Package\PackageVersion\NpmMetadata\Dependencies', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPackagePublished\Package\PackageVersion\NpmMetadata\Dependencies::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookPackagePublished\Package\PackageVersion\NpmMetadata\Dependencies(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPackagePublished\Package\PackageVersion\NpmMetadata\Dependencies', $exception, stack: $this->hydrationStack); } } @@ -4276,6 +5853,7 @@ public function serializeObject(object $object): mixed 'DateTime' => $this->serializeValueDateTime($object), 'DateTimeImmutable' => $this->serializeValueDateTimeImmutable($object), 'DateTimeInterface' => $this->serializeValueDateTimeInterface($object), + 'ApiClients\Client\Github\Schema\WebhookPackagePublished' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPackagePublished($object), 'ApiClients\Client\Github\Schema\WebhookPackageUpdated' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPackageUpdated($object), default => throw new \LogicException('No serialization defined for $className'), }; @@ -4350,6 +5928,61 @@ private function serializeValueDateTimeInterface(mixed $value): mixed } + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPackagePublished(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookPackagePublished); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $package = $object->package; + + if ($package === null) { + goto after_package; + } + $package = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPackagePublished⚡️Package($package); + after_package: $result['package'] = $package; + + + $repository = $object->repository; + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPackageUpdated(mixed $object): mixed { \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookPackageUpdated); diff --git a/src/Hydrator/WebHook/Project.php b/src/Hydrator/WebHook/Project.php index 1756c66a69..96aef41b7e 100644 --- a/src/Hydrator/WebHook/Project.php +++ b/src/Hydrator/WebHook/Project.php @@ -23,16 +23,23 @@ public function __construct() {} public function hydrateObject(string $className, array $payload): object { return match($className) { - 'ApiClients\Client\Github\Schema\WebhookProjectReopened' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectReopened($payload), + 'ApiClients\Client\Github\Schema\WebhookProjectClosed' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectClosed($payload), + 'ApiClients\Client\Github\Schema\WebhookProjectCreated' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectCreated($payload), + 'ApiClients\Client\Github\Schema\WebhookProjectDeleted' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectDeleted($payload), + 'ApiClients\Client\Github\Schema\WebhookProjectEdited' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectEdited($payload), + 'ApiClients\Client\Github\Schema\WebhookProjectReopened' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectReopened($payload), 'ApiClients\Client\Github\Schema\Enterprise' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($payload), 'ApiClients\Client\Github\Schema\SimpleInstallation' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($payload), 'ApiClients\Client\Github\Schema\OrganizationSimple' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($payload), 'ApiClients\Client\Github\Schema\WebhookProjectClosed\Project' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectClosed⚡️Project($payload), 'ApiClients\Client\Github\Schema\Repository' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($payload), 'ApiClients\Client\Github\Schema\SimpleUser' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($payload), + 'ApiClients\Client\Github\Schema\WebhookProjectEdited\Changes' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectEdited⚡️Changes($payload), 'ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($payload), 'ApiClients\Client\Github\Schema\Repository\Permissions' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️Permissions($payload), 'ApiClients\Client\Github\Schema\Repository\TemplateRepository' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository($payload), + 'ApiClients\Client\Github\Schema\WebhookProjectEdited\Changes\Body' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectEdited⚡️Changes⚡️Body($payload), + 'ApiClients\Client\Github\Schema\WebhookProjectEdited\Changes\Name' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectEdited⚡️Changes⚡️Name($payload), 'ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner($payload), 'ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Permissions($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), @@ -40,6 +47,629 @@ public function hydrateObject(string $className, array $payload): object } + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectClosed(array $payload): \ApiClients\Client\Github\Schema\WebhookProjectClosed + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; + + if ($value === null) { + $missingFields[] = 'action'; + goto after_action; + } + + $properties['action'] = $value; + + after_action: + + $value = $payload['enterprise'] ?? null; + + if ($value === null) { + $missingFields[] = 'enterprise'; + goto after_enterprise; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['enterprise'] = $value; + + after_enterprise: + + $value = $payload['installation'] ?? null; + + if ($value === null) { + $missingFields[] = 'installation'; + goto after_installation; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; + + after_installation: + + $value = $payload['organization'] ?? null; + + if ($value === null) { + $missingFields[] = 'organization'; + goto after_organization; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; + + after_organization: + + $value = $payload['project'] ?? null; + + if ($value === null) { + $missingFields[] = 'project'; + goto after_project; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'project'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectClosed⚡️Project($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['project'] = $value; + + after_project: + + $value = $payload['repository'] ?? null; + + if ($value === null) { + $missingFields[] = 'repository'; + goto after_repository; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repository'] = $value; + + after_repository: + + $value = $payload['sender'] ?? null; + + if ($value === null) { + $missingFields[] = 'sender'; + goto after_sender; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; + + after_sender: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectClosed', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookProjectClosed::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookProjectClosed(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectClosed', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectCreated(array $payload): \ApiClients\Client\Github\Schema\WebhookProjectCreated + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; + + if ($value === null) { + $missingFields[] = 'action'; + goto after_action; + } + + $properties['action'] = $value; + + after_action: + + $value = $payload['enterprise'] ?? null; + + if ($value === null) { + $missingFields[] = 'enterprise'; + goto after_enterprise; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['enterprise'] = $value; + + after_enterprise: + + $value = $payload['installation'] ?? null; + + if ($value === null) { + $missingFields[] = 'installation'; + goto after_installation; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; + + after_installation: + + $value = $payload['organization'] ?? null; + + if ($value === null) { + $missingFields[] = 'organization'; + goto after_organization; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; + + after_organization: + + $value = $payload['project'] ?? null; + + if ($value === null) { + $missingFields[] = 'project'; + goto after_project; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'project'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectClosed⚡️Project($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['project'] = $value; + + after_project: + + $value = $payload['repository'] ?? null; + + if ($value === null) { + $missingFields[] = 'repository'; + goto after_repository; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repository'] = $value; + + after_repository: + + $value = $payload['sender'] ?? null; + + if ($value === null) { + $missingFields[] = 'sender'; + goto after_sender; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; + + after_sender: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectCreated', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookProjectCreated::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookProjectCreated(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectCreated', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectDeleted(array $payload): \ApiClients\Client\Github\Schema\WebhookProjectDeleted + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; + + if ($value === null) { + $missingFields[] = 'action'; + goto after_action; + } + + $properties['action'] = $value; + + after_action: + + $value = $payload['enterprise'] ?? null; + + if ($value === null) { + $missingFields[] = 'enterprise'; + goto after_enterprise; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['enterprise'] = $value; + + after_enterprise: + + $value = $payload['installation'] ?? null; + + if ($value === null) { + $missingFields[] = 'installation'; + goto after_installation; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; + + after_installation: + + $value = $payload['organization'] ?? null; + + if ($value === null) { + $missingFields[] = 'organization'; + goto after_organization; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; + + after_organization: + + $value = $payload['project'] ?? null; + + if ($value === null) { + $missingFields[] = 'project'; + goto after_project; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'project'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectClosed⚡️Project($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['project'] = $value; + + after_project: + + $value = $payload['repository'] ?? null; + + if ($value === null) { + $properties['repository'] = null; + goto after_repository; + } + + $properties['repository'] = $value; + + after_repository: + + $value = $payload['sender'] ?? null; + + if ($value === null) { + $missingFields[] = 'sender'; + goto after_sender; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; + + after_sender: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectDeleted', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookProjectDeleted::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookProjectDeleted(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectDeleted', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectEdited(array $payload): \ApiClients\Client\Github\Schema\WebhookProjectEdited + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; + + if ($value === null) { + $missingFields[] = 'action'; + goto after_action; + } + + $properties['action'] = $value; + + after_action: + + $value = $payload['changes'] ?? null; + + if ($value === null) { + $missingFields[] = 'changes'; + goto after_changes; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'changes'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectEdited⚡️Changes($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['changes'] = $value; + + after_changes: + + $value = $payload['enterprise'] ?? null; + + if ($value === null) { + $missingFields[] = 'enterprise'; + goto after_enterprise; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['enterprise'] = $value; + + after_enterprise: + + $value = $payload['installation'] ?? null; + + if ($value === null) { + $missingFields[] = 'installation'; + goto after_installation; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; + + after_installation: + + $value = $payload['organization'] ?? null; + + if ($value === null) { + $missingFields[] = 'organization'; + goto after_organization; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; + + after_organization: + + $value = $payload['project'] ?? null; + + if ($value === null) { + $missingFields[] = 'project'; + goto after_project; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'project'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectClosed⚡️Project($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['project'] = $value; + + after_project: + + $value = $payload['repository'] ?? null; + + if ($value === null) { + $missingFields[] = 'repository'; + goto after_repository; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repository'] = $value; + + after_repository: + + $value = $payload['sender'] ?? null; + + if ($value === null) { + $missingFields[] = 'sender'; + goto after_sender; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; + + after_sender: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectEdited', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookProjectEdited::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookProjectEdited(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectEdited', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectReopened(array $payload): \ApiClients\Client\Github\Schema\WebhookProjectReopened { $properties = []; @@ -2077,13 +2707,75 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Simp } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\SimpleUser::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\SimpleUser::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\SimpleUser(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleUser', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectEdited⚡️Changes(array $payload): \ApiClients\Client\Github\Schema\WebhookProjectEdited\Changes + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['body'] ?? null; + + if ($value === null) { + $missingFields[] = 'body'; + goto after_body; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'body'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectEdited⚡️Changes⚡️Body($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['body'] = $value; + + after_body: + + $value = $payload['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'name'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectEdited⚡️Changes⚡️Name($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['name'] = $value; + + after_name: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectEdited\Changes', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookProjectEdited\Changes::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\SimpleUser(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookProjectEdited\Changes(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleUser', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectEdited\Changes', $exception, stack: $this->hydrationStack); } } @@ -3415,6 +4107,72 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repo } + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectEdited⚡️Changes⚡️Body(array $payload): \ApiClients\Client\Github\Schema\WebhookProjectEdited\Changes\Body + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['from'] ?? null; + + if ($value === null) { + $missingFields[] = 'from'; + goto after_from; + } + + $properties['from'] = $value; + + after_from: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectEdited\Changes\Body', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookProjectEdited\Changes\Body::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookProjectEdited\Changes\Body(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectEdited\Changes\Body', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectEdited⚡️Changes⚡️Name(array $payload): \ApiClients\Client\Github\Schema\WebhookProjectEdited\Changes\Name + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['from'] ?? null; + + if ($value === null) { + $missingFields[] = 'from'; + goto after_from; + } + + $properties['from'] = $value; + + after_from: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectEdited\Changes\Name', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookProjectEdited\Changes\Name::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookProjectEdited\Changes\Name(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectEdited\Changes\Name', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner(array $payload): \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner { $properties = []; @@ -3722,6 +4480,10 @@ public function serializeObject(object $object): mixed 'DateTime' => $this->serializeValueDateTime($object), 'DateTimeImmutable' => $this->serializeValueDateTimeImmutable($object), 'DateTimeInterface' => $this->serializeValueDateTimeInterface($object), + 'ApiClients\Client\Github\Schema\WebhookProjectClosed' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectClosed($object), + 'ApiClients\Client\Github\Schema\WebhookProjectCreated' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectCreated($object), + 'ApiClients\Client\Github\Schema\WebhookProjectDeleted' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectDeleted($object), + 'ApiClients\Client\Github\Schema\WebhookProjectEdited' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectEdited($object), 'ApiClients\Client\Github\Schema\WebhookProjectReopened' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectReopened($object), default => throw new \LogicException('No serialization defined for $className'), }; @@ -3796,6 +4558,226 @@ private function serializeValueDateTimeInterface(mixed $value): mixed } + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectClosed(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookProjectClosed); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $project = $object->project; + + if ($project === null) { + goto after_project; + } + $project = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectClosed⚡️Project($project); + after_project: $result['project'] = $project; + + + $repository = $object->repository; + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectCreated(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookProjectCreated); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $project = $object->project; + + if ($project === null) { + goto after_project; + } + $project = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectClosed⚡️Project($project); + after_project: $result['project'] = $project; + + + $repository = $object->repository; + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectDeleted(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookProjectDeleted); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $project = $object->project; + + if ($project === null) { + goto after_project; + } + $project = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectClosed⚡️Project($project); + after_project: $result['project'] = $project; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectEdited(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookProjectEdited); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $changes = $object->changes; + $changes = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectEdited⚡️Changes($changes); + after_changes: $result['changes'] = $changes; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $project = $object->project; + + if ($project === null) { + goto after_project; + } + $project = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectClosed⚡️Project($project); + after_project: $result['project'] = $project; + + + $repository = $object->repository; + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectReopened(mixed $object): mixed { \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookProjectReopened); diff --git a/src/Hydrator/WebHook/ProjectCard.php b/src/Hydrator/WebHook/ProjectCard.php index aafbb91abd..b7472b3a26 100644 --- a/src/Hydrator/WebHook/ProjectCard.php +++ b/src/Hydrator/WebHook/ProjectCard.php @@ -23,16 +23,28 @@ public function __construct() {} public function hydrateObject(string $className, array $payload): object { return match($className) { - 'ApiClients\Client\Github\Schema\WebhookProjectCardMoved' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectCardMoved($payload), - 'ApiClients\Client\Github\Schema\WebhookProjectCardMoved\Changes' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectCardMoved⚡️Changes($payload), + 'ApiClients\Client\Github\Schema\WebhookProjectCardConverted' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectCardConverted($payload), + 'ApiClients\Client\Github\Schema\WebhookProjectCardCreated' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectCardCreated($payload), + 'ApiClients\Client\Github\Schema\WebhookProjectCardDeleted' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectCardDeleted($payload), + 'ApiClients\Client\Github\Schema\WebhookProjectCardEdited' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectCardEdited($payload), + 'ApiClients\Client\Github\Schema\WebhookProjectCardMoved' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectCardMoved($payload), + 'ApiClients\Client\Github\Schema\WebhookProjectCardConverted\Changes' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectCardConverted⚡️Changes($payload), 'ApiClients\Client\Github\Schema\Enterprise' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($payload), 'ApiClients\Client\Github\Schema\SimpleInstallation' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($payload), 'ApiClients\Client\Github\Schema\OrganizationSimple' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($payload), + 'ApiClients\Client\Github\Schema\WebhookProjectCardConverted\ProjectCard' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectCardConverted⚡️ProjectCard($payload), 'ApiClients\Client\Github\Schema\Repository' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($payload), 'ApiClients\Client\Github\Schema\SimpleUser' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($payload), - 'ApiClients\Client\Github\Schema\WebhookProjectCardMoved\Changes\ColumnId' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectCardMoved⚡️Changes⚡️ColumnId($payload), + 'ApiClients\Client\Github\Schema\WebhookProjectCardDeleted\ProjectCard' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectCardDeleted⚡️ProjectCard($payload), + 'ApiClients\Client\Github\Schema\WebhookProjectCardEdited\Changes' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectCardEdited⚡️Changes($payload), + 'ApiClients\Client\Github\Schema\WebhookProjectCardMoved\Changes' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectCardMoved⚡️Changes($payload), + 'ApiClients\Client\Github\Schema\WebhookDiscussionCommentEdited\Changes\Body' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionCommentEdited⚡️Changes⚡️Body($payload), + 'ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($payload), 'ApiClients\Client\Github\Schema\Repository\Permissions' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️Permissions($payload), 'ApiClients\Client\Github\Schema\Repository\TemplateRepository' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository($payload), + 'ApiClients\Client\Github\Schema\WebhookIssueCommentDeleted\Comment\User' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Comment⚡️User($payload), + 'ApiClients\Client\Github\Schema\WebhookProjectCardEdited\Changes\Note' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectCardEdited⚡️Changes⚡️Note($payload), + 'ApiClients\Client\Github\Schema\WebhookProjectCardMoved\Changes\ColumnId' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectCardMoved⚡️Changes⚡️ColumnId($payload), 'ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner($payload), 'ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Permissions($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), @@ -40,7 +52,7 @@ public function hydrateObject(string $className, array $payload): object } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectCardMoved(array $payload): \ApiClients\Client\Github\Schema\WebhookProjectCardMoved + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectCardConverted(array $payload): \ApiClients\Client\Github\Schema\WebhookProjectCardConverted { $properties = []; $missingFields = []; @@ -67,7 +79,7 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'changes'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectCardMoved⚡️Changes($value); + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectCardConverted⚡️Changes($value); } finally { array_pop($this->hydrationStack); } @@ -140,10 +152,19 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh $value = $payload['project_card'] ?? null; if ($value === null) { - $properties['project_card'] = null; + $missingFields[] = 'project_card'; goto after_project_card; } + if (is_array($value)) { + try { + $this->hydrationStack[] = 'project_card'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectCardConverted⚡️ProjectCard($value); + } finally { + array_pop($this->hydrationStack); + } + } + $properties['project_card'] = $value; after_project_card: @@ -189,299 +210,1510 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh after_sender: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectCardMoved', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectCardConverted', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookProjectCardMoved::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookProjectCardConverted::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\WebhookProjectCardMoved(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookProjectCardConverted(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectCardMoved', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectCardConverted', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectCardMoved⚡️Changes(array $payload): \ApiClients\Client\Github\Schema\WebhookProjectCardMoved\Changes + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectCardCreated(array $payload): \ApiClients\Client\Github\Schema\WebhookProjectCardCreated { $properties = []; $missingFields = []; try { - $value = $payload['column_id'] ?? null; + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'column_id'; - goto after_column_id; + $missingFields[] = 'action'; + goto after_action; + } + + $properties['action'] = $value; + + after_action: + + $value = $payload['enterprise'] ?? null; + + if ($value === null) { + $missingFields[] = 'enterprise'; + goto after_enterprise; } if (is_array($value)) { try { - $this->hydrationStack[] = 'column_id'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectCardMoved⚡️Changes⚡️ColumnId($value); + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); } finally { array_pop($this->hydrationStack); } } - $properties['column_id'] = $value; + $properties['enterprise'] = $value; - after_column_id: - - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectCardMoved\Changes', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookProjectCardMoved\Changes::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\WebhookProjectCardMoved\Changes(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectCardMoved\Changes', $exception, stack: $this->hydrationStack); - } - } + after_enterprise: - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise(array $payload): \ApiClients\Client\Github\Schema\Enterprise - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['description'] ?? null; + $value = $payload['installation'] ?? null; if ($value === null) { - $missingFields[] = 'description'; - goto after_description; + $missingFields[] = 'installation'; + goto after_installation; } - $properties['description'] = $value; - - after_description: - - $value = $payload['html_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'html_url'; - goto after_html_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['html_url'] = $value; + $properties['installation'] = $value; - after_html_url: + after_installation: - $value = $payload['website_url'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'website_url'; - goto after_website_url; + $missingFields[] = 'organization'; + goto after_organization; } - $properties['website_url'] = $value; - - after_website_url: - - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['id'] = $value; + $properties['organization'] = $value; - after_id: + after_organization: - $value = $payload['node_id'] ?? null; + $value = $payload['project_card'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $missingFields[] = 'project_card'; + goto after_project_card; } - $properties['node_id'] = $value; - - after_node_id: - - $value = $payload['name'] ?? null; - - if ($value === null) { - $missingFields[] = 'name'; - goto after_name; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'project_card'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectCardConverted⚡️ProjectCard($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['name'] = $value; + $properties['project_card'] = $value; - after_name: + after_project_card: - $value = $payload['slug'] ?? null; + $value = $payload['repository'] ?? null; if ($value === null) { - $missingFields[] = 'slug'; - goto after_slug; + $missingFields[] = 'repository'; + goto after_repository; } - $properties['slug'] = $value; - - after_slug: - - $value = $payload['created_at'] ?? null; - - if ($value === null) { - $missingFields[] = 'created_at'; - goto after_created_at; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['created_at'] = $value; + $properties['repository'] = $value; - after_created_at: + after_repository: - $value = $payload['updated_at'] ?? null; + $value = $payload['sender'] ?? null; if ($value === null) { - $missingFields[] = 'updated_at'; - goto after_updated_at; + $missingFields[] = 'sender'; + goto after_sender; } - $properties['updated_at'] = $value; - - after_updated_at: - - $value = $payload['avatar_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatar_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['avatar_url'] = $value; + $properties['sender'] = $value; - after_avatar_url: + after_sender: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Enterprise', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectCardCreated', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Enterprise::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookProjectCardCreated::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\Enterprise(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookProjectCardCreated(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Enterprise', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectCardCreated', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation(array $payload): \ApiClients\Client\Github\Schema\SimpleInstallation + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectCardDeleted(array $payload): \ApiClients\Client\Github\Schema\WebhookProjectCardDeleted { $properties = []; $missingFields = []; try { - $value = $payload['id'] ?? null; + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'action'; + goto after_action; } - $properties['id'] = $value; + $properties['action'] = $value; - after_id: + after_action: - $value = $payload['node_id'] ?? null; + $value = $payload['enterprise'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $missingFields[] = 'enterprise'; + goto after_enterprise; } - $properties['node_id'] = $value; - - after_node_id: + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } + } - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleInstallation', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\SimpleInstallation::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\SimpleInstallation(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleInstallation', $exception, stack: $this->hydrationStack); - } - } + $properties['enterprise'] = $value; + + after_enterprise: - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple(array $payload): \ApiClients\Client\Github\Schema\OrganizationSimple - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['login'] ?? null; + $value = $payload['installation'] ?? null; if ($value === null) { - $missingFields[] = 'login'; - goto after_login; + $missingFields[] = 'installation'; + goto after_installation; } - $properties['login'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; + + after_installation: + + $value = $payload['organization'] ?? null; + + if ($value === null) { + $missingFields[] = 'organization'; + goto after_organization; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; + + after_organization: + + $value = $payload['project_card'] ?? null; + + if ($value === null) { + $missingFields[] = 'project_card'; + goto after_project_card; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'project_card'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectCardDeleted⚡️ProjectCard($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['project_card'] = $value; + + after_project_card: + + $value = $payload['repository'] ?? null; + + if ($value === null) { + $properties['repository'] = null; + goto after_repository; + } + + $properties['repository'] = $value; + + after_repository: + + $value = $payload['sender'] ?? null; + + if ($value === null) { + $missingFields[] = 'sender'; + goto after_sender; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; + + after_sender: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectCardDeleted', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookProjectCardDeleted::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookProjectCardDeleted(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectCardDeleted', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectCardEdited(array $payload): \ApiClients\Client\Github\Schema\WebhookProjectCardEdited + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; + + if ($value === null) { + $missingFields[] = 'action'; + goto after_action; + } + + $properties['action'] = $value; + + after_action: + + $value = $payload['changes'] ?? null; + + if ($value === null) { + $missingFields[] = 'changes'; + goto after_changes; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'changes'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectCardEdited⚡️Changes($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['changes'] = $value; + + after_changes: + + $value = $payload['enterprise'] ?? null; + + if ($value === null) { + $missingFields[] = 'enterprise'; + goto after_enterprise; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['enterprise'] = $value; + + after_enterprise: + + $value = $payload['installation'] ?? null; + + if ($value === null) { + $missingFields[] = 'installation'; + goto after_installation; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; + + after_installation: + + $value = $payload['organization'] ?? null; + + if ($value === null) { + $missingFields[] = 'organization'; + goto after_organization; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; + + after_organization: + + $value = $payload['project_card'] ?? null; + + if ($value === null) { + $missingFields[] = 'project_card'; + goto after_project_card; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'project_card'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectCardConverted⚡️ProjectCard($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['project_card'] = $value; + + after_project_card: + + $value = $payload['repository'] ?? null; + + if ($value === null) { + $missingFields[] = 'repository'; + goto after_repository; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repository'] = $value; + + after_repository: + + $value = $payload['sender'] ?? null; + + if ($value === null) { + $missingFields[] = 'sender'; + goto after_sender; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; + + after_sender: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectCardEdited', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookProjectCardEdited::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookProjectCardEdited(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectCardEdited', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectCardMoved(array $payload): \ApiClients\Client\Github\Schema\WebhookProjectCardMoved + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; + + if ($value === null) { + $missingFields[] = 'action'; + goto after_action; + } + + $properties['action'] = $value; + + after_action: + + $value = $payload['changes'] ?? null; + + if ($value === null) { + $missingFields[] = 'changes'; + goto after_changes; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'changes'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectCardMoved⚡️Changes($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['changes'] = $value; + + after_changes: + + $value = $payload['enterprise'] ?? null; + + if ($value === null) { + $missingFields[] = 'enterprise'; + goto after_enterprise; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['enterprise'] = $value; + + after_enterprise: + + $value = $payload['installation'] ?? null; + + if ($value === null) { + $missingFields[] = 'installation'; + goto after_installation; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; + + after_installation: + + $value = $payload['organization'] ?? null; + + if ($value === null) { + $missingFields[] = 'organization'; + goto after_organization; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; + + after_organization: + + $value = $payload['project_card'] ?? null; + + if ($value === null) { + $properties['project_card'] = null; + goto after_project_card; + } + + $properties['project_card'] = $value; + + after_project_card: + + $value = $payload['repository'] ?? null; + + if ($value === null) { + $missingFields[] = 'repository'; + goto after_repository; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repository'] = $value; + + after_repository: + + $value = $payload['sender'] ?? null; + + if ($value === null) { + $missingFields[] = 'sender'; + goto after_sender; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; + + after_sender: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectCardMoved', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookProjectCardMoved::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookProjectCardMoved(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectCardMoved', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectCardConverted⚡️Changes(array $payload): \ApiClients\Client\Github\Schema\WebhookProjectCardConverted\Changes + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['note'] ?? null; + + if ($value === null) { + $missingFields[] = 'note'; + goto after_note; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'note'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionCommentEdited⚡️Changes⚡️Body($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['note'] = $value; + + after_note: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectCardConverted\Changes', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookProjectCardConverted\Changes::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookProjectCardConverted\Changes(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectCardConverted\Changes', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise(array $payload): \ApiClients\Client\Github\Schema\Enterprise + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['description'] ?? null; + + if ($value === null) { + $missingFields[] = 'description'; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } + + $properties['html_url'] = $value; + + after_html_url: + + $value = $payload['website_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'website_url'; + goto after_website_url; + } + + $properties['website_url'] = $value; + + after_website_url: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['slug'] ?? null; + + if ($value === null) { + $missingFields[] = 'slug'; + goto after_slug; + } + + $properties['slug'] = $value; + + after_slug: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'created_at'; + goto after_created_at; + } + + $properties['created_at'] = $value; + + after_created_at: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'updated_at'; + goto after_updated_at; + } + + $properties['updated_at'] = $value; + + after_updated_at: + + $value = $payload['avatar_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'avatar_url'; + goto after_avatar_url; + } + + $properties['avatar_url'] = $value; + + after_avatar_url: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Enterprise', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Enterprise::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\Enterprise(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Enterprise', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation(array $payload): \ApiClients\Client\Github\Schema\SimpleInstallation + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleInstallation', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\SimpleInstallation::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\SimpleInstallation(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleInstallation', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple(array $payload): \ApiClients\Client\Github\Schema\OrganizationSimple + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['login'] ?? null; + + if ($value === null) { + $missingFields[] = 'login'; + goto after_login; + } + + $properties['login'] = $value; + + after_login: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['repos_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'repos_url'; + goto after_repos_url; + } + + $properties['repos_url'] = $value; + + after_repos_url: + + $value = $payload['events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'events_url'; + goto after_events_url; + } + + $properties['events_url'] = $value; + + after_events_url: + + $value = $payload['hooks_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'hooks_url'; + goto after_hooks_url; + } + + $properties['hooks_url'] = $value; + + after_hooks_url: + + $value = $payload['issues_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issues_url'; + goto after_issues_url; + } + + $properties['issues_url'] = $value; + + after_issues_url: + + $value = $payload['members_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'members_url'; + goto after_members_url; + } + + $properties['members_url'] = $value; + + after_members_url: + + $value = $payload['public_members_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'public_members_url'; + goto after_public_members_url; + } + + $properties['public_members_url'] = $value; + + after_public_members_url: + + $value = $payload['avatar_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'avatar_url'; + goto after_avatar_url; + } + + $properties['avatar_url'] = $value; + + after_avatar_url: + + $value = $payload['description'] ?? null; + + if ($value === null) { + $missingFields[] = 'description'; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\OrganizationSimple', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\OrganizationSimple::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\OrganizationSimple(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\OrganizationSimple', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectCardConverted⚡️ProjectCard(array $payload): \ApiClients\Client\Github\Schema\WebhookProjectCardConverted\ProjectCard + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['after_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'after_id'; + goto after_after_id; + } + + $properties['after_id'] = $value; + + after_after_id: + + $value = $payload['archived'] ?? null; + + if ($value === null) { + $missingFields[] = 'archived'; + goto after_archived; + } + + $properties['archived'] = $value; + + after_archived: + + $value = $payload['column_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'column_id'; + goto after_column_id; + } + + $properties['column_id'] = $value; + + after_column_id: + + $value = $payload['column_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'column_url'; + goto after_column_url; + } + + $properties['column_url'] = $value; + + after_column_url: + + $value = $payload['content_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'content_url'; + goto after_content_url; + } + + $properties['content_url'] = $value; + + after_content_url: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'created_at'; + goto after_created_at; + } + + $properties['created_at'] = $value; + + after_created_at: + + $value = $payload['creator'] ?? null; + + if ($value === null) { + $missingFields[] = 'creator'; + goto after_creator; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'creator'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['creator'] = $value; + + after_creator: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['note'] ?? null; + + if ($value === null) { + $missingFields[] = 'note'; + goto after_note; + } + + $properties['note'] = $value; + + after_note: + + $value = $payload['project_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'project_url'; + goto after_project_url; + } + + $properties['project_url'] = $value; + + after_project_url: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'updated_at'; + goto after_updated_at; + } + + $properties['updated_at'] = $value; + + after_updated_at: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectCardConverted\ProjectCard', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookProjectCardConverted\ProjectCard::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookProjectCardConverted\ProjectCard(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectCardConverted\ProjectCard', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository(array $payload): \ApiClients\Client\Github\Schema\Repository + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['full_name'] ?? null; + + if ($value === null) { + $missingFields[] = 'full_name'; + goto after_full_name; + } + + $properties['full_name'] = $value; + + after_full_name: + + $value = $payload['license'] ?? null; + + if ($value === null) { + $properties['license'] = null; + goto after_license; + } + + $properties['license'] = $value; + + after_license: + + $value = $payload['organization'] ?? null; + + if ($value === null) { + $properties['organization'] = null; + goto after_organization; + } + + $properties['organization'] = $value; + + after_organization: + + $value = $payload['forks'] ?? null; + + if ($value === null) { + $missingFields[] = 'forks'; + goto after_forks; + } + + $properties['forks'] = $value; + + after_forks: + + $value = $payload['permissions'] ?? null; + + if ($value === null) { + $missingFields[] = 'permissions'; + goto after_permissions; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'permissions'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️Permissions($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['permissions'] = $value; + + after_permissions: + + $value = $payload['owner'] ?? null; + + if ($value === null) { + $missingFields[] = 'owner'; + goto after_owner; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'owner'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['owner'] = $value; + + after_owner: + + $value = $payload['private'] ?? null; + + if ($value === null) { + $missingFields[] = 'private'; + goto after_private; + } + + $properties['private'] = $value; + + after_private: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } + + $properties['html_url'] = $value; + + after_html_url: + + $value = $payload['description'] ?? null; + + if ($value === null) { + $missingFields[] = 'description'; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['fork'] ?? null; + + if ($value === null) { + $missingFields[] = 'fork'; + goto after_fork; + } + + $properties['fork'] = $value; + + after_fork: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['archive_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'archive_url'; + goto after_archive_url; + } + + $properties['archive_url'] = $value; + + after_archive_url: + + $value = $payload['assignees_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'assignees_url'; + goto after_assignees_url; + } + + $properties['assignees_url'] = $value; + + after_assignees_url: + + $value = $payload['blobs_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'blobs_url'; + goto after_blobs_url; + } + + $properties['blobs_url'] = $value; + + after_blobs_url: + + $value = $payload['branches_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'branches_url'; + goto after_branches_url; + } + + $properties['branches_url'] = $value; + + after_branches_url: + + $value = $payload['collaborators_url'] ?? null; - after_login: + if ($value === null) { + $missingFields[] = 'collaborators_url'; + goto after_collaborators_url; + } - $value = $payload['id'] ?? null; + $properties['collaborators_url'] = $value; + + after_collaborators_url: + + $value = $payload['comments_url'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'comments_url'; + goto after_comments_url; } - $properties['id'] = $value; + $properties['comments_url'] = $value; - after_id: + after_comments_url: - $value = $payload['node_id'] ?? null; + $value = $payload['commits_url'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $missingFields[] = 'commits_url'; + goto after_commits_url; } - $properties['node_id'] = $value; + $properties['commits_url'] = $value; - after_node_id: + after_commits_url: - $value = $payload['url'] ?? null; + $value = $payload['compare_url'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $missingFields[] = 'compare_url'; + goto after_compare_url; } - $properties['url'] = $value; + $properties['compare_url'] = $value; - after_url: + after_compare_url: - $value = $payload['repos_url'] ?? null; + $value = $payload['contents_url'] ?? null; if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_repos_url; + $missingFields[] = 'contents_url'; + goto after_contents_url; } - $properties['repos_url'] = $value; + $properties['contents_url'] = $value; - after_repos_url: + after_contents_url: + + $value = $payload['contributors_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'contributors_url'; + goto after_contributors_url; + } + + $properties['contributors_url'] = $value; + + after_contributors_url: + + $value = $payload['deployments_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'deployments_url'; + goto after_deployments_url; + } + + $properties['deployments_url'] = $value; + + after_deployments_url: + + $value = $payload['downloads_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'downloads_url'; + goto after_downloads_url; + } + + $properties['downloads_url'] = $value; + + after_downloads_url: $value = $payload['events_url'] ?? null; @@ -494,1242 +1726,1394 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Orga after_events_url: - $value = $payload['hooks_url'] ?? null; + $value = $payload['forks_url'] ?? null; if ($value === null) { - $missingFields[] = 'hooks_url'; - goto after_hooks_url; + $missingFields[] = 'forks_url'; + goto after_forks_url; } - $properties['hooks_url'] = $value; + $properties['forks_url'] = $value; - after_hooks_url: + after_forks_url: - $value = $payload['issues_url'] ?? null; + $value = $payload['git_commits_url'] ?? null; if ($value === null) { - $missingFields[] = 'issues_url'; - goto after_issues_url; + $missingFields[] = 'git_commits_url'; + goto after_git_commits_url; } - $properties['issues_url'] = $value; + $properties['git_commits_url'] = $value; - after_issues_url: + after_git_commits_url: - $value = $payload['members_url'] ?? null; + $value = $payload['git_refs_url'] ?? null; if ($value === null) { - $missingFields[] = 'members_url'; - goto after_members_url; + $missingFields[] = 'git_refs_url'; + goto after_git_refs_url; } - $properties['members_url'] = $value; + $properties['git_refs_url'] = $value; - after_members_url: + after_git_refs_url: - $value = $payload['public_members_url'] ?? null; + $value = $payload['git_tags_url'] ?? null; if ($value === null) { - $missingFields[] = 'public_members_url'; - goto after_public_members_url; + $missingFields[] = 'git_tags_url'; + goto after_git_tags_url; } - $properties['public_members_url'] = $value; + $properties['git_tags_url'] = $value; - after_public_members_url: + after_git_tags_url: - $value = $payload['avatar_url'] ?? null; + $value = $payload['git_url'] ?? null; if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatar_url; + $missingFields[] = 'git_url'; + goto after_git_url; } - $properties['avatar_url'] = $value; + $properties['git_url'] = $value; - after_avatar_url: + after_git_url: - $value = $payload['description'] ?? null; + $value = $payload['issue_comment_url'] ?? null; if ($value === null) { - $missingFields[] = 'description'; - goto after_description; + $missingFields[] = 'issue_comment_url'; + goto after_issue_comment_url; } - $properties['description'] = $value; + $properties['issue_comment_url'] = $value; - after_description: + after_issue_comment_url: - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\OrganizationSimple', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\OrganizationSimple::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\OrganizationSimple(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\OrganizationSimple', $exception, stack: $this->hydrationStack); - } - } + $value = $payload['issue_events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issue_events_url'; + goto after_issue_events_url; + } - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository(array $payload): \ApiClients\Client\Github\Schema\Repository - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['id'] ?? null; + $properties['issue_events_url'] = $value; + + after_issue_events_url: + + $value = $payload['issues_url'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'issues_url'; + goto after_issues_url; } - $properties['id'] = $value; + $properties['issues_url'] = $value; - after_id: + after_issues_url: - $value = $payload['node_id'] ?? null; + $value = $payload['keys_url'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $missingFields[] = 'keys_url'; + goto after_keys_url; } - $properties['node_id'] = $value; + $properties['keys_url'] = $value; - after_node_id: + after_keys_url: - $value = $payload['name'] ?? null; + $value = $payload['labels_url'] ?? null; if ($value === null) { - $missingFields[] = 'name'; - goto after_name; + $missingFields[] = 'labels_url'; + goto after_labels_url; } - $properties['name'] = $value; + $properties['labels_url'] = $value; - after_name: + after_labels_url: - $value = $payload['full_name'] ?? null; + $value = $payload['languages_url'] ?? null; if ($value === null) { - $missingFields[] = 'full_name'; - goto after_full_name; + $missingFields[] = 'languages_url'; + goto after_languages_url; } - $properties['full_name'] = $value; + $properties['languages_url'] = $value; - after_full_name: + after_languages_url: - $value = $payload['license'] ?? null; + $value = $payload['merges_url'] ?? null; if ($value === null) { - $properties['license'] = null; - goto after_license; + $missingFields[] = 'merges_url'; + goto after_merges_url; } - $properties['license'] = $value; + $properties['merges_url'] = $value; - after_license: + after_merges_url: + + $value = $payload['milestones_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'milestones_url'; + goto after_milestones_url; + } + + $properties['milestones_url'] = $value; + + after_milestones_url: + + $value = $payload['notifications_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'notifications_url'; + goto after_notifications_url; + } + + $properties['notifications_url'] = $value; + + after_notifications_url: + + $value = $payload['pulls_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'pulls_url'; + goto after_pulls_url; + } + + $properties['pulls_url'] = $value; + + after_pulls_url: - $value = $payload['organization'] ?? null; + $value = $payload['releases_url'] ?? null; if ($value === null) { - $properties['organization'] = null; - goto after_organization; + $missingFields[] = 'releases_url'; + goto after_releases_url; } - $properties['organization'] = $value; + $properties['releases_url'] = $value; - after_organization: + after_releases_url: - $value = $payload['forks'] ?? null; + $value = $payload['ssh_url'] ?? null; if ($value === null) { - $missingFields[] = 'forks'; - goto after_forks; + $missingFields[] = 'ssh_url'; + goto after_ssh_url; } - $properties['forks'] = $value; + $properties['ssh_url'] = $value; - after_forks: + after_ssh_url: - $value = $payload['permissions'] ?? null; + $value = $payload['stargazers_url'] ?? null; if ($value === null) { - $missingFields[] = 'permissions'; - goto after_permissions; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'permissions'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️Permissions($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'stargazers_url'; + goto after_stargazers_url; } - $properties['permissions'] = $value; + $properties['stargazers_url'] = $value; - after_permissions: + after_stargazers_url: - $value = $payload['owner'] ?? null; + $value = $payload['statuses_url'] ?? null; if ($value === null) { - $missingFields[] = 'owner'; - goto after_owner; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'owner'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'statuses_url'; + goto after_statuses_url; } - $properties['owner'] = $value; + $properties['statuses_url'] = $value; - after_owner: + after_statuses_url: - $value = $payload['private'] ?? null; + $value = $payload['subscribers_url'] ?? null; if ($value === null) { - $missingFields[] = 'private'; - goto after_private; + $missingFields[] = 'subscribers_url'; + goto after_subscribers_url; } - $properties['private'] = $value; + $properties['subscribers_url'] = $value; - after_private: + after_subscribers_url: - $value = $payload['html_url'] ?? null; + $value = $payload['subscription_url'] ?? null; if ($value === null) { - $missingFields[] = 'html_url'; - goto after_html_url; + $missingFields[] = 'subscription_url'; + goto after_subscription_url; } - $properties['html_url'] = $value; + $properties['subscription_url'] = $value; - after_html_url: + after_subscription_url: - $value = $payload['description'] ?? null; + $value = $payload['tags_url'] ?? null; if ($value === null) { - $missingFields[] = 'description'; - goto after_description; + $missingFields[] = 'tags_url'; + goto after_tags_url; } - $properties['description'] = $value; + $properties['tags_url'] = $value; - after_description: + after_tags_url: - $value = $payload['fork'] ?? null; + $value = $payload['teams_url'] ?? null; if ($value === null) { - $missingFields[] = 'fork'; - goto after_fork; + $missingFields[] = 'teams_url'; + goto after_teams_url; } - $properties['fork'] = $value; + $properties['teams_url'] = $value; - after_fork: + after_teams_url: - $value = $payload['url'] ?? null; + $value = $payload['trees_url'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $missingFields[] = 'trees_url'; + goto after_trees_url; } - $properties['url'] = $value; + $properties['trees_url'] = $value; - after_url: + after_trees_url: - $value = $payload['archive_url'] ?? null; + $value = $payload['clone_url'] ?? null; if ($value === null) { - $missingFields[] = 'archive_url'; - goto after_archive_url; + $missingFields[] = 'clone_url'; + goto after_clone_url; } - $properties['archive_url'] = $value; + $properties['clone_url'] = $value; - after_archive_url: + after_clone_url: - $value = $payload['assignees_url'] ?? null; + $value = $payload['mirror_url'] ?? null; if ($value === null) { - $missingFields[] = 'assignees_url'; - goto after_assignees_url; + $missingFields[] = 'mirror_url'; + goto after_mirror_url; } - $properties['assignees_url'] = $value; + $properties['mirror_url'] = $value; - after_assignees_url: + after_mirror_url: - $value = $payload['blobs_url'] ?? null; + $value = $payload['hooks_url'] ?? null; if ($value === null) { - $missingFields[] = 'blobs_url'; - goto after_blobs_url; + $missingFields[] = 'hooks_url'; + goto after_hooks_url; } - $properties['blobs_url'] = $value; + $properties['hooks_url'] = $value; - after_blobs_url: + after_hooks_url: - $value = $payload['branches_url'] ?? null; + $value = $payload['svn_url'] ?? null; if ($value === null) { - $missingFields[] = 'branches_url'; - goto after_branches_url; + $missingFields[] = 'svn_url'; + goto after_svn_url; } - $properties['branches_url'] = $value; + $properties['svn_url'] = $value; - after_branches_url: + after_svn_url: - $value = $payload['collaborators_url'] ?? null; + $value = $payload['homepage'] ?? null; if ($value === null) { - $missingFields[] = 'collaborators_url'; - goto after_collaborators_url; + $missingFields[] = 'homepage'; + goto after_homepage; } - $properties['collaborators_url'] = $value; + $properties['homepage'] = $value; - after_collaborators_url: + after_homepage: - $value = $payload['comments_url'] ?? null; + $value = $payload['language'] ?? null; if ($value === null) { - $missingFields[] = 'comments_url'; - goto after_comments_url; + $missingFields[] = 'language'; + goto after_language; } - $properties['comments_url'] = $value; + $properties['language'] = $value; - after_comments_url: + after_language: - $value = $payload['commits_url'] ?? null; + $value = $payload['forks_count'] ?? null; if ($value === null) { - $missingFields[] = 'commits_url'; - goto after_commits_url; + $missingFields[] = 'forks_count'; + goto after_forks_count; } - $properties['commits_url'] = $value; + $properties['forks_count'] = $value; - after_commits_url: + after_forks_count: - $value = $payload['compare_url'] ?? null; + $value = $payload['stargazers_count'] ?? null; if ($value === null) { - $missingFields[] = 'compare_url'; - goto after_compare_url; + $missingFields[] = 'stargazers_count'; + goto after_stargazers_count; } - $properties['compare_url'] = $value; + $properties['stargazers_count'] = $value; - after_compare_url: + after_stargazers_count: - $value = $payload['contents_url'] ?? null; + $value = $payload['watchers_count'] ?? null; if ($value === null) { - $missingFields[] = 'contents_url'; - goto after_contents_url; + $missingFields[] = 'watchers_count'; + goto after_watchers_count; } - $properties['contents_url'] = $value; + $properties['watchers_count'] = $value; - after_contents_url: + after_watchers_count: - $value = $payload['contributors_url'] ?? null; + $value = $payload['size'] ?? null; if ($value === null) { - $missingFields[] = 'contributors_url'; - goto after_contributors_url; + $missingFields[] = 'size'; + goto after_size; } - $properties['contributors_url'] = $value; + $properties['size'] = $value; - after_contributors_url: + after_size: - $value = $payload['deployments_url'] ?? null; + $value = $payload['default_branch'] ?? null; if ($value === null) { - $missingFields[] = 'deployments_url'; - goto after_deployments_url; + $missingFields[] = 'default_branch'; + goto after_default_branch; } - $properties['deployments_url'] = $value; + $properties['default_branch'] = $value; - after_deployments_url: + after_default_branch: - $value = $payload['downloads_url'] ?? null; + $value = $payload['open_issues_count'] ?? null; if ($value === null) { - $missingFields[] = 'downloads_url'; - goto after_downloads_url; + $missingFields[] = 'open_issues_count'; + goto after_open_issues_count; } - $properties['downloads_url'] = $value; + $properties['open_issues_count'] = $value; - after_downloads_url: + after_open_issues_count: - $value = $payload['events_url'] ?? null; + $value = $payload['is_template'] ?? null; if ($value === null) { - $missingFields[] = 'events_url'; - goto after_events_url; + $missingFields[] = 'is_template'; + goto after_is_template; } - $properties['events_url'] = $value; + $properties['is_template'] = $value; - after_events_url: + after_is_template: - $value = $payload['forks_url'] ?? null; + $value = $payload['topics'] ?? null; if ($value === null) { - $missingFields[] = 'forks_url'; - goto after_forks_url; + $missingFields[] = 'topics'; + goto after_topics; } - $properties['forks_url'] = $value; + $properties['topics'] = $value; - after_forks_url: + after_topics: - $value = $payload['git_commits_url'] ?? null; + $value = $payload['has_issues'] ?? null; if ($value === null) { - $missingFields[] = 'git_commits_url'; - goto after_git_commits_url; + $missingFields[] = 'has_issues'; + goto after_has_issues; } - $properties['git_commits_url'] = $value; + $properties['has_issues'] = $value; - after_git_commits_url: + after_has_issues: - $value = $payload['git_refs_url'] ?? null; + $value = $payload['has_projects'] ?? null; if ($value === null) { - $missingFields[] = 'git_refs_url'; - goto after_git_refs_url; + $missingFields[] = 'has_projects'; + goto after_has_projects; } - $properties['git_refs_url'] = $value; + $properties['has_projects'] = $value; - after_git_refs_url: + after_has_projects: - $value = $payload['git_tags_url'] ?? null; + $value = $payload['has_wiki'] ?? null; if ($value === null) { - $missingFields[] = 'git_tags_url'; - goto after_git_tags_url; + $missingFields[] = 'has_wiki'; + goto after_has_wiki; } - $properties['git_tags_url'] = $value; + $properties['has_wiki'] = $value; - after_git_tags_url: + after_has_wiki: - $value = $payload['git_url'] ?? null; + $value = $payload['has_pages'] ?? null; if ($value === null) { - $missingFields[] = 'git_url'; - goto after_git_url; + $missingFields[] = 'has_pages'; + goto after_has_pages; } - $properties['git_url'] = $value; + $properties['has_pages'] = $value; - after_git_url: + after_has_pages: - $value = $payload['issue_comment_url'] ?? null; + $value = $payload['has_downloads'] ?? null; if ($value === null) { - $missingFields[] = 'issue_comment_url'; - goto after_issue_comment_url; + $missingFields[] = 'has_downloads'; + goto after_has_downloads; } - $properties['issue_comment_url'] = $value; + $properties['has_downloads'] = $value; - after_issue_comment_url: + after_has_downloads: - $value = $payload['issue_events_url'] ?? null; + $value = $payload['has_discussions'] ?? null; if ($value === null) { - $missingFields[] = 'issue_events_url'; - goto after_issue_events_url; + $missingFields[] = 'has_discussions'; + goto after_has_discussions; } - $properties['issue_events_url'] = $value; + $properties['has_discussions'] = $value; - after_issue_events_url: + after_has_discussions: - $value = $payload['issues_url'] ?? null; + $value = $payload['archived'] ?? null; if ($value === null) { - $missingFields[] = 'issues_url'; - goto after_issues_url; + $missingFields[] = 'archived'; + goto after_archived; } - $properties['issues_url'] = $value; + $properties['archived'] = $value; - after_issues_url: + after_archived: - $value = $payload['keys_url'] ?? null; + $value = $payload['disabled'] ?? null; if ($value === null) { - $missingFields[] = 'keys_url'; - goto after_keys_url; + $missingFields[] = 'disabled'; + goto after_disabled; } - $properties['keys_url'] = $value; + $properties['disabled'] = $value; - after_keys_url: + after_disabled: - $value = $payload['labels_url'] ?? null; + $value = $payload['visibility'] ?? null; if ($value === null) { - $missingFields[] = 'labels_url'; - goto after_labels_url; + $missingFields[] = 'visibility'; + goto after_visibility; } - $properties['labels_url'] = $value; + $properties['visibility'] = $value; - after_labels_url: + after_visibility: - $value = $payload['languages_url'] ?? null; + $value = $payload['pushed_at'] ?? null; if ($value === null) { - $missingFields[] = 'languages_url'; - goto after_languages_url; + $missingFields[] = 'pushed_at'; + goto after_pushed_at; } - $properties['languages_url'] = $value; + $properties['pushed_at'] = $value; - after_languages_url: + after_pushed_at: - $value = $payload['merges_url'] ?? null; + $value = $payload['created_at'] ?? null; if ($value === null) { - $missingFields[] = 'merges_url'; - goto after_merges_url; + $missingFields[] = 'created_at'; + goto after_created_at; } - $properties['merges_url'] = $value; + $properties['created_at'] = $value; - after_merges_url: + after_created_at: - $value = $payload['milestones_url'] ?? null; + $value = $payload['updated_at'] ?? null; if ($value === null) { - $missingFields[] = 'milestones_url'; - goto after_milestones_url; + $missingFields[] = 'updated_at'; + goto after_updated_at; } - $properties['milestones_url'] = $value; + $properties['updated_at'] = $value; - after_milestones_url: + after_updated_at: - $value = $payload['notifications_url'] ?? null; + $value = $payload['allow_rebase_merge'] ?? null; if ($value === null) { - $missingFields[] = 'notifications_url'; - goto after_notifications_url; + $missingFields[] = 'allow_rebase_merge'; + goto after_allow_rebase_merge; } - $properties['notifications_url'] = $value; + $properties['allow_rebase_merge'] = $value; - after_notifications_url: + after_allow_rebase_merge: - $value = $payload['pulls_url'] ?? null; + $value = $payload['template_repository'] ?? null; if ($value === null) { - $missingFields[] = 'pulls_url'; - goto after_pulls_url; + $missingFields[] = 'template_repository'; + goto after_template_repository; } - $properties['pulls_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'template_repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['template_repository'] = $value; - after_pulls_url: + after_template_repository: - $value = $payload['releases_url'] ?? null; + $value = $payload['temp_clone_token'] ?? null; if ($value === null) { - $missingFields[] = 'releases_url'; - goto after_releases_url; + $missingFields[] = 'temp_clone_token'; + goto after_temp_clone_token; } - $properties['releases_url'] = $value; + $properties['temp_clone_token'] = $value; - after_releases_url: + after_temp_clone_token: - $value = $payload['ssh_url'] ?? null; + $value = $payload['allow_squash_merge'] ?? null; if ($value === null) { - $missingFields[] = 'ssh_url'; - goto after_ssh_url; + $missingFields[] = 'allow_squash_merge'; + goto after_allow_squash_merge; } - $properties['ssh_url'] = $value; + $properties['allow_squash_merge'] = $value; - after_ssh_url: + after_allow_squash_merge: - $value = $payload['stargazers_url'] ?? null; + $value = $payload['allow_auto_merge'] ?? null; if ($value === null) { - $missingFields[] = 'stargazers_url'; - goto after_stargazers_url; + $missingFields[] = 'allow_auto_merge'; + goto after_allow_auto_merge; } - $properties['stargazers_url'] = $value; + $properties['allow_auto_merge'] = $value; - after_stargazers_url: + after_allow_auto_merge: - $value = $payload['statuses_url'] ?? null; + $value = $payload['delete_branch_on_merge'] ?? null; if ($value === null) { - $missingFields[] = 'statuses_url'; - goto after_statuses_url; + $missingFields[] = 'delete_branch_on_merge'; + goto after_delete_branch_on_merge; } - $properties['statuses_url'] = $value; + $properties['delete_branch_on_merge'] = $value; - after_statuses_url: + after_delete_branch_on_merge: - $value = $payload['subscribers_url'] ?? null; + $value = $payload['allow_update_branch'] ?? null; if ($value === null) { - $missingFields[] = 'subscribers_url'; - goto after_subscribers_url; + $missingFields[] = 'allow_update_branch'; + goto after_allow_update_branch; } - $properties['subscribers_url'] = $value; + $properties['allow_update_branch'] = $value; - after_subscribers_url: + after_allow_update_branch: - $value = $payload['subscription_url'] ?? null; + $value = $payload['use_squash_pr_title_as_default'] ?? null; if ($value === null) { - $missingFields[] = 'subscription_url'; - goto after_subscription_url; + $missingFields[] = 'use_squash_pr_title_as_default'; + goto after_use_squash_pr_title_as_default; } - $properties['subscription_url'] = $value; + $properties['use_squash_pr_title_as_default'] = $value; - after_subscription_url: + after_use_squash_pr_title_as_default: - $value = $payload['tags_url'] ?? null; + $value = $payload['squash_merge_commit_title'] ?? null; if ($value === null) { - $missingFields[] = 'tags_url'; - goto after_tags_url; + $missingFields[] = 'squash_merge_commit_title'; + goto after_squash_merge_commit_title; } - $properties['tags_url'] = $value; + $properties['squash_merge_commit_title'] = $value; - after_tags_url: + after_squash_merge_commit_title: - $value = $payload['teams_url'] ?? null; + $value = $payload['squash_merge_commit_message'] ?? null; if ($value === null) { - $missingFields[] = 'teams_url'; - goto after_teams_url; + $missingFields[] = 'squash_merge_commit_message'; + goto after_squash_merge_commit_message; } - $properties['teams_url'] = $value; + $properties['squash_merge_commit_message'] = $value; - after_teams_url: + after_squash_merge_commit_message: - $value = $payload['trees_url'] ?? null; + $value = $payload['merge_commit_title'] ?? null; if ($value === null) { - $missingFields[] = 'trees_url'; - goto after_trees_url; + $missingFields[] = 'merge_commit_title'; + goto after_merge_commit_title; } - $properties['trees_url'] = $value; + $properties['merge_commit_title'] = $value; - after_trees_url: + after_merge_commit_title: - $value = $payload['clone_url'] ?? null; + $value = $payload['merge_commit_message'] ?? null; if ($value === null) { - $missingFields[] = 'clone_url'; - goto after_clone_url; + $missingFields[] = 'merge_commit_message'; + goto after_merge_commit_message; } - $properties['clone_url'] = $value; + $properties['merge_commit_message'] = $value; - after_clone_url: + after_merge_commit_message: - $value = $payload['mirror_url'] ?? null; + $value = $payload['allow_merge_commit'] ?? null; if ($value === null) { - $missingFields[] = 'mirror_url'; - goto after_mirror_url; + $missingFields[] = 'allow_merge_commit'; + goto after_allow_merge_commit; } - $properties['mirror_url'] = $value; + $properties['allow_merge_commit'] = $value; - after_mirror_url: + after_allow_merge_commit: - $value = $payload['hooks_url'] ?? null; + $value = $payload['allow_forking'] ?? null; if ($value === null) { - $missingFields[] = 'hooks_url'; - goto after_hooks_url; + $missingFields[] = 'allow_forking'; + goto after_allow_forking; } - $properties['hooks_url'] = $value; + $properties['allow_forking'] = $value; - after_hooks_url: + after_allow_forking: - $value = $payload['svn_url'] ?? null; + $value = $payload['web_commit_signoff_required'] ?? null; if ($value === null) { - $missingFields[] = 'svn_url'; - goto after_svn_url; + $missingFields[] = 'web_commit_signoff_required'; + goto after_web_commit_signoff_required; } - $properties['svn_url'] = $value; + $properties['web_commit_signoff_required'] = $value; - after_svn_url: + after_web_commit_signoff_required: - $value = $payload['homepage'] ?? null; + $value = $payload['subscribers_count'] ?? null; if ($value === null) { - $missingFields[] = 'homepage'; - goto after_homepage; + $missingFields[] = 'subscribers_count'; + goto after_subscribers_count; } - $properties['homepage'] = $value; + $properties['subscribers_count'] = $value; - after_homepage: + after_subscribers_count: - $value = $payload['language'] ?? null; + $value = $payload['network_count'] ?? null; if ($value === null) { - $missingFields[] = 'language'; - goto after_language; + $missingFields[] = 'network_count'; + goto after_network_count; } - $properties['language'] = $value; + $properties['network_count'] = $value; - after_language: + after_network_count: - $value = $payload['forks_count'] ?? null; + $value = $payload['open_issues'] ?? null; if ($value === null) { - $missingFields[] = 'forks_count'; - goto after_forks_count; + $missingFields[] = 'open_issues'; + goto after_open_issues; } - $properties['forks_count'] = $value; + $properties['open_issues'] = $value; - after_forks_count: + after_open_issues: - $value = $payload['stargazers_count'] ?? null; + $value = $payload['watchers'] ?? null; if ($value === null) { - $missingFields[] = 'stargazers_count'; - goto after_stargazers_count; + $missingFields[] = 'watchers'; + goto after_watchers; } - $properties['stargazers_count'] = $value; + $properties['watchers'] = $value; - after_stargazers_count: + after_watchers: - $value = $payload['watchers_count'] ?? null; + $value = $payload['master_branch'] ?? null; if ($value === null) { - $missingFields[] = 'watchers_count'; - goto after_watchers_count; + $missingFields[] = 'master_branch'; + goto after_master_branch; } - $properties['watchers_count'] = $value; + $properties['master_branch'] = $value; - after_watchers_count: + after_master_branch: - $value = $payload['size'] ?? null; + $value = $payload['starred_at'] ?? null; if ($value === null) { - $missingFields[] = 'size'; - goto after_size; + $missingFields[] = 'starred_at'; + goto after_starred_at; } - $properties['size'] = $value; + $properties['starred_at'] = $value; - after_size: + after_starred_at: - $value = $payload['default_branch'] ?? null; + $value = $payload['anonymous_access_enabled'] ?? null; if ($value === null) { - $missingFields[] = 'default_branch'; - goto after_default_branch; + $missingFields[] = 'anonymous_access_enabled'; + goto after_anonymous_access_enabled; } - $properties['default_branch'] = $value; + $properties['anonymous_access_enabled'] = $value; - after_default_branch: + after_anonymous_access_enabled: - $value = $payload['open_issues_count'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\Repository(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser(array $payload): \ApiClients\Client\Github\Schema\SimpleUser + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['name'] ?? null; if ($value === null) { - $missingFields[] = 'open_issues_count'; - goto after_open_issues_count; + $missingFields[] = 'name'; + goto after_name; } - $properties['open_issues_count'] = $value; + $properties['name'] = $value; - after_open_issues_count: + after_name: - $value = $payload['is_template'] ?? null; + $value = $payload['email'] ?? null; if ($value === null) { - $missingFields[] = 'is_template'; - goto after_is_template; + $missingFields[] = 'email'; + goto after_email; } - $properties['is_template'] = $value; + $properties['email'] = $value; - after_is_template: + after_email: - $value = $payload['topics'] ?? null; + $value = $payload['login'] ?? null; if ($value === null) { - $missingFields[] = 'topics'; - goto after_topics; + $missingFields[] = 'login'; + goto after_login; } - $properties['topics'] = $value; + $properties['login'] = $value; - after_topics: + after_login: - $value = $payload['has_issues'] ?? null; + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'has_issues'; - goto after_has_issues; + $missingFields[] = 'id'; + goto after_id; } - $properties['has_issues'] = $value; + $properties['id'] = $value; - after_has_issues: + after_id: - $value = $payload['has_projects'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $missingFields[] = 'has_projects'; - goto after_has_projects; + $missingFields[] = 'node_id'; + goto after_node_id; } - $properties['has_projects'] = $value; + $properties['node_id'] = $value; - after_has_projects: + after_node_id: - $value = $payload['has_wiki'] ?? null; + $value = $payload['avatar_url'] ?? null; if ($value === null) { - $missingFields[] = 'has_wiki'; - goto after_has_wiki; + $missingFields[] = 'avatar_url'; + goto after_avatar_url; } - $properties['has_wiki'] = $value; + $properties['avatar_url'] = $value; - after_has_wiki: + after_avatar_url: - $value = $payload['has_pages'] ?? null; + $value = $payload['gravatar_id'] ?? null; if ($value === null) { - $missingFields[] = 'has_pages'; - goto after_has_pages; + $missingFields[] = 'gravatar_id'; + goto after_gravatar_id; } - $properties['has_pages'] = $value; + $properties['gravatar_id'] = $value; - after_has_pages: + after_gravatar_id: - $value = $payload['has_downloads'] ?? null; + $value = $payload['url'] ?? null; if ($value === null) { - $missingFields[] = 'has_downloads'; - goto after_has_downloads; + $missingFields[] = 'url'; + goto after_url; } - $properties['has_downloads'] = $value; + $properties['url'] = $value; - after_has_downloads: + after_url: - $value = $payload['has_discussions'] ?? null; + $value = $payload['html_url'] ?? null; if ($value === null) { - $missingFields[] = 'has_discussions'; - goto after_has_discussions; + $missingFields[] = 'html_url'; + goto after_html_url; } - $properties['has_discussions'] = $value; + $properties['html_url'] = $value; - after_has_discussions: + after_html_url: - $value = $payload['archived'] ?? null; + $value = $payload['followers_url'] ?? null; if ($value === null) { - $missingFields[] = 'archived'; - goto after_archived; + $missingFields[] = 'followers_url'; + goto after_followers_url; } - $properties['archived'] = $value; + $properties['followers_url'] = $value; - after_archived: + after_followers_url: - $value = $payload['disabled'] ?? null; + $value = $payload['following_url'] ?? null; if ($value === null) { - $missingFields[] = 'disabled'; - goto after_disabled; + $missingFields[] = 'following_url'; + goto after_following_url; } - $properties['disabled'] = $value; + $properties['following_url'] = $value; - after_disabled: + after_following_url: - $value = $payload['visibility'] ?? null; + $value = $payload['gists_url'] ?? null; if ($value === null) { - $missingFields[] = 'visibility'; - goto after_visibility; + $missingFields[] = 'gists_url'; + goto after_gists_url; } - $properties['visibility'] = $value; + $properties['gists_url'] = $value; - after_visibility: + after_gists_url: - $value = $payload['pushed_at'] ?? null; + $value = $payload['starred_url'] ?? null; if ($value === null) { - $missingFields[] = 'pushed_at'; - goto after_pushed_at; + $missingFields[] = 'starred_url'; + goto after_starred_url; } - $properties['pushed_at'] = $value; + $properties['starred_url'] = $value; - after_pushed_at: + after_starred_url: - $value = $payload['created_at'] ?? null; + $value = $payload['subscriptions_url'] ?? null; if ($value === null) { - $missingFields[] = 'created_at'; - goto after_created_at; + $missingFields[] = 'subscriptions_url'; + goto after_subscriptions_url; } - $properties['created_at'] = $value; + $properties['subscriptions_url'] = $value; - after_created_at: + after_subscriptions_url: - $value = $payload['updated_at'] ?? null; + $value = $payload['organizations_url'] ?? null; if ($value === null) { - $missingFields[] = 'updated_at'; - goto after_updated_at; + $missingFields[] = 'organizations_url'; + goto after_organizations_url; } - $properties['updated_at'] = $value; + $properties['organizations_url'] = $value; - after_updated_at: + after_organizations_url: - $value = $payload['allow_rebase_merge'] ?? null; + $value = $payload['repos_url'] ?? null; if ($value === null) { - $missingFields[] = 'allow_rebase_merge'; - goto after_allow_rebase_merge; + $missingFields[] = 'repos_url'; + goto after_repos_url; } - $properties['allow_rebase_merge'] = $value; + $properties['repos_url'] = $value; - after_allow_rebase_merge: + after_repos_url: - $value = $payload['template_repository'] ?? null; + $value = $payload['events_url'] ?? null; if ($value === null) { - $missingFields[] = 'template_repository'; - goto after_template_repository; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'template_repository'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'events_url'; + goto after_events_url; } - $properties['template_repository'] = $value; + $properties['events_url'] = $value; - after_template_repository: + after_events_url: - $value = $payload['temp_clone_token'] ?? null; + $value = $payload['received_events_url'] ?? null; if ($value === null) { - $missingFields[] = 'temp_clone_token'; - goto after_temp_clone_token; + $missingFields[] = 'received_events_url'; + goto after_received_events_url; } - $properties['temp_clone_token'] = $value; + $properties['received_events_url'] = $value; - after_temp_clone_token: + after_received_events_url: - $value = $payload['allow_squash_merge'] ?? null; + $value = $payload['type'] ?? null; if ($value === null) { - $missingFields[] = 'allow_squash_merge'; - goto after_allow_squash_merge; + $missingFields[] = 'type'; + goto after_type; } - $properties['allow_squash_merge'] = $value; + $properties['type'] = $value; - after_allow_squash_merge: + after_type: - $value = $payload['allow_auto_merge'] ?? null; + $value = $payload['site_admin'] ?? null; if ($value === null) { - $missingFields[] = 'allow_auto_merge'; - goto after_allow_auto_merge; + $missingFields[] = 'site_admin'; + goto after_site_admin; } - $properties['allow_auto_merge'] = $value; + $properties['site_admin'] = $value; - after_allow_auto_merge: + after_site_admin: - $value = $payload['delete_branch_on_merge'] ?? null; + $value = $payload['starred_at'] ?? null; if ($value === null) { - $missingFields[] = 'delete_branch_on_merge'; - goto after_delete_branch_on_merge; + $missingFields[] = 'starred_at'; + goto after_starred_at; } - $properties['delete_branch_on_merge'] = $value; + $properties['starred_at'] = $value; - after_delete_branch_on_merge: + after_starred_at: - $value = $payload['allow_update_branch'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleUser', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\SimpleUser::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\SimpleUser(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleUser', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectCardDeleted⚡️ProjectCard(array $payload): \ApiClients\Client\Github\Schema\WebhookProjectCardDeleted\ProjectCard + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['after_id'] ?? null; if ($value === null) { - $missingFields[] = 'allow_update_branch'; - goto after_allow_update_branch; + $missingFields[] = 'after_id'; + goto after_after_id; } - $properties['allow_update_branch'] = $value; + $properties['after_id'] = $value; - after_allow_update_branch: + after_after_id: - $value = $payload['use_squash_pr_title_as_default'] ?? null; + $value = $payload['archived'] ?? null; if ($value === null) { - $missingFields[] = 'use_squash_pr_title_as_default'; - goto after_use_squash_pr_title_as_default; + $missingFields[] = 'archived'; + goto after_archived; } - $properties['use_squash_pr_title_as_default'] = $value; + $properties['archived'] = $value; - after_use_squash_pr_title_as_default: + after_archived: - $value = $payload['squash_merge_commit_title'] ?? null; + $value = $payload['column_id'] ?? null; if ($value === null) { - $missingFields[] = 'squash_merge_commit_title'; - goto after_squash_merge_commit_title; + $missingFields[] = 'column_id'; + goto after_column_id; } - $properties['squash_merge_commit_title'] = $value; + $properties['column_id'] = $value; - after_squash_merge_commit_title: + after_column_id: - $value = $payload['squash_merge_commit_message'] ?? null; + $value = $payload['column_url'] ?? null; if ($value === null) { - $missingFields[] = 'squash_merge_commit_message'; - goto after_squash_merge_commit_message; + $missingFields[] = 'column_url'; + goto after_column_url; } - $properties['squash_merge_commit_message'] = $value; + $properties['column_url'] = $value; - after_squash_merge_commit_message: + after_column_url: - $value = $payload['merge_commit_title'] ?? null; + $value = $payload['content_url'] ?? null; if ($value === null) { - $missingFields[] = 'merge_commit_title'; - goto after_merge_commit_title; + $missingFields[] = 'content_url'; + goto after_content_url; } - $properties['merge_commit_title'] = $value; + $properties['content_url'] = $value; - after_merge_commit_title: + after_content_url: - $value = $payload['merge_commit_message'] ?? null; + $value = $payload['created_at'] ?? null; if ($value === null) { - $missingFields[] = 'merge_commit_message'; - goto after_merge_commit_message; + $missingFields[] = 'created_at'; + goto after_created_at; } - $properties['merge_commit_message'] = $value; + $properties['created_at'] = $value; - after_merge_commit_message: + after_created_at: - $value = $payload['allow_merge_commit'] ?? null; + $value = $payload['creator'] ?? null; if ($value === null) { - $missingFields[] = 'allow_merge_commit'; - goto after_allow_merge_commit; + $missingFields[] = 'creator'; + goto after_creator; } - $properties['allow_merge_commit'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'creator'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Comment⚡️User($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['creator'] = $value; - after_allow_merge_commit: + after_creator: - $value = $payload['allow_forking'] ?? null; + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'allow_forking'; - goto after_allow_forking; + $missingFields[] = 'id'; + goto after_id; } - $properties['allow_forking'] = $value; + $properties['id'] = $value; - after_allow_forking: + after_id: - $value = $payload['web_commit_signoff_required'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $missingFields[] = 'web_commit_signoff_required'; - goto after_web_commit_signoff_required; + $missingFields[] = 'node_id'; + goto after_node_id; } - $properties['web_commit_signoff_required'] = $value; + $properties['node_id'] = $value; - after_web_commit_signoff_required: + after_node_id: - $value = $payload['subscribers_count'] ?? null; + $value = $payload['note'] ?? null; if ($value === null) { - $missingFields[] = 'subscribers_count'; - goto after_subscribers_count; + $missingFields[] = 'note'; + goto after_note; } - $properties['subscribers_count'] = $value; + $properties['note'] = $value; - after_subscribers_count: + after_note: - $value = $payload['network_count'] ?? null; + $value = $payload['project_url'] ?? null; if ($value === null) { - $missingFields[] = 'network_count'; - goto after_network_count; + $missingFields[] = 'project_url'; + goto after_project_url; } - $properties['network_count'] = $value; + $properties['project_url'] = $value; - after_network_count: + after_project_url: - $value = $payload['open_issues'] ?? null; + $value = $payload['updated_at'] ?? null; if ($value === null) { - $missingFields[] = 'open_issues'; - goto after_open_issues; + $missingFields[] = 'updated_at'; + goto after_updated_at; } - $properties['open_issues'] = $value; + $properties['updated_at'] = $value; - after_open_issues: + after_updated_at: - $value = $payload['watchers'] ?? null; + $value = $payload['url'] ?? null; if ($value === null) { - $missingFields[] = 'watchers'; - goto after_watchers; + $missingFields[] = 'url'; + goto after_url; } - $properties['watchers'] = $value; + $properties['url'] = $value; - after_watchers: + after_url: - $value = $payload['master_branch'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectCardDeleted\ProjectCard', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookProjectCardDeleted\ProjectCard::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookProjectCardDeleted\ProjectCard(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectCardDeleted\ProjectCard', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectCardEdited⚡️Changes(array $payload): \ApiClients\Client\Github\Schema\WebhookProjectCardEdited\Changes + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['note'] ?? null; if ($value === null) { - $missingFields[] = 'master_branch'; - goto after_master_branch; + $missingFields[] = 'note'; + goto after_note; } - $properties['master_branch'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'note'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectCardEdited⚡️Changes⚡️Note($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['note'] = $value; - after_master_branch: + after_note: - $value = $payload['starred_at'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectCardEdited\Changes', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookProjectCardEdited\Changes::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookProjectCardEdited\Changes(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectCardEdited\Changes', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectCardMoved⚡️Changes(array $payload): \ApiClients\Client\Github\Schema\WebhookProjectCardMoved\Changes + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['column_id'] ?? null; if ($value === null) { - $missingFields[] = 'starred_at'; - goto after_starred_at; + $missingFields[] = 'column_id'; + goto after_column_id; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'column_id'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectCardMoved⚡️Changes⚡️ColumnId($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['starred_at'] = $value; + $properties['column_id'] = $value; - after_starred_at: + after_column_id: - $value = $payload['anonymous_access_enabled'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectCardMoved\Changes', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookProjectCardMoved\Changes::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookProjectCardMoved\Changes(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectCardMoved\Changes', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionCommentEdited⚡️Changes⚡️Body(array $payload): \ApiClients\Client\Github\Schema\WebhookDiscussionCommentEdited\Changes\Body + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['from'] ?? null; if ($value === null) { - $missingFields[] = 'anonymous_access_enabled'; - goto after_anonymous_access_enabled; + $missingFields[] = 'from'; + goto after_from; } - $properties['anonymous_access_enabled'] = $value; + $properties['from'] = $value; - after_anonymous_access_enabled: + after_from: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDiscussionCommentEdited\Changes\Body', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookDiscussionCommentEdited\Changes\Body::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\Repository(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookDiscussionCommentEdited\Changes\Body(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDiscussionCommentEdited\Changes\Body', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser(array $payload): \ApiClients\Client\Github\Schema\SimpleUser + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy(array $payload): \ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy { $properties = []; $missingFields = []; try { - $value = $payload['name'] ?? null; + $value = $payload['avatar_url'] ?? null; if ($value === null) { - $missingFields[] = 'name'; - goto after_name; + $missingFields[] = 'avatar_url'; + goto after_avatar_url; } - $properties['name'] = $value; + $properties['avatar_url'] = $value; - after_name: + after_avatar_url: + + $value = $payload['deleted'] ?? null; + + if ($value === null) { + $missingFields[] = 'deleted'; + goto after_deleted; + } + + $properties['deleted'] = $value; + + after_deleted: $value = $payload['email'] ?? null; @@ -1742,49 +3126,49 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Simp after_email: - $value = $payload['login'] ?? null; + $value = $payload['events_url'] ?? null; if ($value === null) { - $missingFields[] = 'login'; - goto after_login; + $missingFields[] = 'events_url'; + goto after_events_url; } - $properties['login'] = $value; + $properties['events_url'] = $value; - after_login: + after_events_url: - $value = $payload['id'] ?? null; + $value = $payload['followers_url'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'followers_url'; + goto after_followers_url; } - $properties['id'] = $value; + $properties['followers_url'] = $value; - after_id: + after_followers_url: - $value = $payload['node_id'] ?? null; + $value = $payload['following_url'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $missingFields[] = 'following_url'; + goto after_following_url; } - $properties['node_id'] = $value; + $properties['following_url'] = $value; - after_node_id: + after_following_url: - $value = $payload['avatar_url'] ?? null; + $value = $payload['gists_url'] ?? null; if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatar_url; + $missingFields[] = 'gists_url'; + goto after_gists_url; } - $properties['avatar_url'] = $value; + $properties['gists_url'] = $value; - after_avatar_url: + after_gists_url: $value = $payload['gravatar_id'] ?? null; @@ -1797,17 +3181,6 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Simp after_gravatar_id: - $value = $payload['url'] ?? null; - - if ($value === null) { - $missingFields[] = 'url'; - goto after_url; - } - - $properties['url'] = $value; - - after_url: - $value = $payload['html_url'] ?? null; if ($value === null) { @@ -1819,60 +3192,49 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Simp after_html_url: - $value = $payload['followers_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followers_url; - } - - $properties['followers_url'] = $value; - - after_followers_url: - - $value = $payload['following_url'] ?? null; + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'following_url'; - goto after_following_url; + $missingFields[] = 'id'; + goto after_id; } - $properties['following_url'] = $value; + $properties['id'] = $value; - after_following_url: + after_id: - $value = $payload['gists_url'] ?? null; + $value = $payload['login'] ?? null; if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gists_url; + $missingFields[] = 'login'; + goto after_login; } - $properties['gists_url'] = $value; + $properties['login'] = $value; - after_gists_url: + after_login: - $value = $payload['starred_url'] ?? null; + $value = $payload['name'] ?? null; if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starred_url; + $missingFields[] = 'name'; + goto after_name; } - $properties['starred_url'] = $value; + $properties['name'] = $value; - after_starred_url: + after_name: - $value = $payload['subscriptions_url'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptions_url; + $missingFields[] = 'node_id'; + goto after_node_id; } - $properties['subscriptions_url'] = $value; + $properties['node_id'] = $value; - after_subscriptions_url: + after_node_id: $value = $payload['organizations_url'] ?? null; @@ -1885,117 +3247,95 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Simp after_organizations_url: - $value = $payload['repos_url'] ?? null; + $value = $payload['received_events_url'] ?? null; if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_repos_url; + $missingFields[] = 'received_events_url'; + goto after_received_events_url; } - $properties['repos_url'] = $value; + $properties['received_events_url'] = $value; - after_repos_url: + after_received_events_url: - $value = $payload['events_url'] ?? null; + $value = $payload['repos_url'] ?? null; if ($value === null) { - $missingFields[] = 'events_url'; - goto after_events_url; + $missingFields[] = 'repos_url'; + goto after_repos_url; } - $properties['events_url'] = $value; + $properties['repos_url'] = $value; - after_events_url: + after_repos_url: - $value = $payload['received_events_url'] ?? null; + $value = $payload['site_admin'] ?? null; if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_received_events_url; + $missingFields[] = 'site_admin'; + goto after_site_admin; } - $properties['received_events_url'] = $value; + $properties['site_admin'] = $value; - after_received_events_url: + after_site_admin: - $value = $payload['type'] ?? null; + $value = $payload['starred_url'] ?? null; if ($value === null) { - $missingFields[] = 'type'; - goto after_type; + $missingFields[] = 'starred_url'; + goto after_starred_url; } - $properties['type'] = $value; + $properties['starred_url'] = $value; - after_type: + after_starred_url: - $value = $payload['site_admin'] ?? null; + $value = $payload['subscriptions_url'] ?? null; if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_site_admin; + $missingFields[] = 'subscriptions_url'; + goto after_subscriptions_url; } - $properties['site_admin'] = $value; + $properties['subscriptions_url'] = $value; - after_site_admin: + after_subscriptions_url: - $value = $payload['starred_at'] ?? null; + $value = $payload['type'] ?? null; if ($value === null) { - $missingFields[] = 'starred_at'; - goto after_starred_at; + $missingFields[] = 'type'; + goto after_type; } - $properties['starred_at'] = $value; + $properties['type'] = $value; - after_starred_at: - - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleUser', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\SimpleUser::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\SimpleUser(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleUser', $exception, stack: $this->hydrationStack); - } - } + after_type: - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectCardMoved⚡️Changes⚡️ColumnId(array $payload): \ApiClients\Client\Github\Schema\WebhookProjectCardMoved\Changes\ColumnId - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['from'] ?? null; + $value = $payload['url'] ?? null; if ($value === null) { - $missingFields[] = 'from'; - goto after_from; + $missingFields[] = 'url'; + goto after_url; } - $properties['from'] = $value; + $properties['url'] = $value; - after_from: + after_url: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectCardMoved\Changes\ColumnId', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookProjectCardMoved\Changes\ColumnId::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\WebhookProjectCardMoved\Changes\ColumnId(...$properties); + return new \ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectCardMoved\Changes\ColumnId', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy', $exception, stack: $this->hydrationStack); } } @@ -2532,544 +3872,863 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repo after_ssh_url: - $value = $payload['stargazers_url'] ?? null; + $value = $payload['stargazers_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'stargazers_url'; + goto after_stargazers_url; + } + + $properties['stargazers_url'] = $value; + + after_stargazers_url: + + $value = $payload['statuses_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'statuses_url'; + goto after_statuses_url; + } + + $properties['statuses_url'] = $value; + + after_statuses_url: + + $value = $payload['subscribers_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscribers_url'; + goto after_subscribers_url; + } + + $properties['subscribers_url'] = $value; + + after_subscribers_url: + + $value = $payload['subscription_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscription_url'; + goto after_subscription_url; + } + + $properties['subscription_url'] = $value; + + after_subscription_url: + + $value = $payload['tags_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'tags_url'; + goto after_tags_url; + } + + $properties['tags_url'] = $value; + + after_tags_url: + + $value = $payload['teams_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'teams_url'; + goto after_teams_url; + } + + $properties['teams_url'] = $value; + + after_teams_url: + + $value = $payload['trees_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'trees_url'; + goto after_trees_url; + } + + $properties['trees_url'] = $value; + + after_trees_url: + + $value = $payload['clone_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'clone_url'; + goto after_clone_url; + } + + $properties['clone_url'] = $value; + + after_clone_url: + + $value = $payload['mirror_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'mirror_url'; + goto after_mirror_url; + } + + $properties['mirror_url'] = $value; + + after_mirror_url: + + $value = $payload['hooks_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'hooks_url'; + goto after_hooks_url; + } + + $properties['hooks_url'] = $value; + + after_hooks_url: + + $value = $payload['svn_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'svn_url'; + goto after_svn_url; + } + + $properties['svn_url'] = $value; + + after_svn_url: + + $value = $payload['homepage'] ?? null; + + if ($value === null) { + $missingFields[] = 'homepage'; + goto after_homepage; + } + + $properties['homepage'] = $value; + + after_homepage: + + $value = $payload['language'] ?? null; + + if ($value === null) { + $missingFields[] = 'language'; + goto after_language; + } + + $properties['language'] = $value; + + after_language: + + $value = $payload['forks_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'forks_count'; + goto after_forks_count; + } + + $properties['forks_count'] = $value; + + after_forks_count: + + $value = $payload['stargazers_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'stargazers_count'; + goto after_stargazers_count; + } + + $properties['stargazers_count'] = $value; + + after_stargazers_count: + + $value = $payload['watchers_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'watchers_count'; + goto after_watchers_count; + } + + $properties['watchers_count'] = $value; + + after_watchers_count: + + $value = $payload['size'] ?? null; + + if ($value === null) { + $missingFields[] = 'size'; + goto after_size; + } + + $properties['size'] = $value; + + after_size: + + $value = $payload['default_branch'] ?? null; + + if ($value === null) { + $missingFields[] = 'default_branch'; + goto after_default_branch; + } + + $properties['default_branch'] = $value; + + after_default_branch: + + $value = $payload['open_issues_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'open_issues_count'; + goto after_open_issues_count; + } + + $properties['open_issues_count'] = $value; + + after_open_issues_count: + + $value = $payload['is_template'] ?? null; + + if ($value === null) { + $missingFields[] = 'is_template'; + goto after_is_template; + } + + $properties['is_template'] = $value; + + after_is_template: + + $value = $payload['topics'] ?? null; + + if ($value === null) { + $missingFields[] = 'topics'; + goto after_topics; + } + + $properties['topics'] = $value; + + after_topics: + + $value = $payload['has_issues'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_issues'; + goto after_has_issues; + } + + $properties['has_issues'] = $value; + + after_has_issues: + + $value = $payload['has_projects'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_projects'; + goto after_has_projects; + } + + $properties['has_projects'] = $value; + + after_has_projects: + + $value = $payload['has_wiki'] ?? null; if ($value === null) { - $missingFields[] = 'stargazers_url'; - goto after_stargazers_url; + $missingFields[] = 'has_wiki'; + goto after_has_wiki; } - $properties['stargazers_url'] = $value; + $properties['has_wiki'] = $value; - after_stargazers_url: + after_has_wiki: - $value = $payload['statuses_url'] ?? null; + $value = $payload['has_pages'] ?? null; if ($value === null) { - $missingFields[] = 'statuses_url'; - goto after_statuses_url; + $missingFields[] = 'has_pages'; + goto after_has_pages; } - $properties['statuses_url'] = $value; + $properties['has_pages'] = $value; - after_statuses_url: + after_has_pages: - $value = $payload['subscribers_url'] ?? null; + $value = $payload['has_downloads'] ?? null; if ($value === null) { - $missingFields[] = 'subscribers_url'; - goto after_subscribers_url; + $missingFields[] = 'has_downloads'; + goto after_has_downloads; } - $properties['subscribers_url'] = $value; + $properties['has_downloads'] = $value; - after_subscribers_url: + after_has_downloads: - $value = $payload['subscription_url'] ?? null; + $value = $payload['archived'] ?? null; if ($value === null) { - $missingFields[] = 'subscription_url'; - goto after_subscription_url; + $missingFields[] = 'archived'; + goto after_archived; } - $properties['subscription_url'] = $value; + $properties['archived'] = $value; - after_subscription_url: + after_archived: - $value = $payload['tags_url'] ?? null; + $value = $payload['disabled'] ?? null; if ($value === null) { - $missingFields[] = 'tags_url'; - goto after_tags_url; + $missingFields[] = 'disabled'; + goto after_disabled; } - $properties['tags_url'] = $value; + $properties['disabled'] = $value; - after_tags_url: + after_disabled: - $value = $payload['teams_url'] ?? null; + $value = $payload['visibility'] ?? null; if ($value === null) { - $missingFields[] = 'teams_url'; - goto after_teams_url; + $missingFields[] = 'visibility'; + goto after_visibility; } - $properties['teams_url'] = $value; + $properties['visibility'] = $value; - after_teams_url: + after_visibility: - $value = $payload['trees_url'] ?? null; + $value = $payload['pushed_at'] ?? null; if ($value === null) { - $missingFields[] = 'trees_url'; - goto after_trees_url; + $missingFields[] = 'pushed_at'; + goto after_pushed_at; } - $properties['trees_url'] = $value; + $properties['pushed_at'] = $value; - after_trees_url: + after_pushed_at: - $value = $payload['clone_url'] ?? null; + $value = $payload['created_at'] ?? null; if ($value === null) { - $missingFields[] = 'clone_url'; - goto after_clone_url; + $missingFields[] = 'created_at'; + goto after_created_at; } - $properties['clone_url'] = $value; + $properties['created_at'] = $value; - after_clone_url: + after_created_at: - $value = $payload['mirror_url'] ?? null; + $value = $payload['updated_at'] ?? null; if ($value === null) { - $missingFields[] = 'mirror_url'; - goto after_mirror_url; + $missingFields[] = 'updated_at'; + goto after_updated_at; } - $properties['mirror_url'] = $value; + $properties['updated_at'] = $value; - after_mirror_url: + after_updated_at: - $value = $payload['hooks_url'] ?? null; + $value = $payload['permissions'] ?? null; if ($value === null) { - $missingFields[] = 'hooks_url'; - goto after_hooks_url; + $missingFields[] = 'permissions'; + goto after_permissions; } - $properties['hooks_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'permissions'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Permissions($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['permissions'] = $value; - after_hooks_url: + after_permissions: - $value = $payload['svn_url'] ?? null; + $value = $payload['allow_rebase_merge'] ?? null; if ($value === null) { - $missingFields[] = 'svn_url'; - goto after_svn_url; + $missingFields[] = 'allow_rebase_merge'; + goto after_allow_rebase_merge; } - $properties['svn_url'] = $value; + $properties['allow_rebase_merge'] = $value; - after_svn_url: + after_allow_rebase_merge: - $value = $payload['homepage'] ?? null; + $value = $payload['temp_clone_token'] ?? null; if ($value === null) { - $missingFields[] = 'homepage'; - goto after_homepage; + $missingFields[] = 'temp_clone_token'; + goto after_temp_clone_token; } - $properties['homepage'] = $value; + $properties['temp_clone_token'] = $value; - after_homepage: + after_temp_clone_token: - $value = $payload['language'] ?? null; + $value = $payload['allow_squash_merge'] ?? null; if ($value === null) { - $missingFields[] = 'language'; - goto after_language; + $missingFields[] = 'allow_squash_merge'; + goto after_allow_squash_merge; } - $properties['language'] = $value; + $properties['allow_squash_merge'] = $value; - after_language: + after_allow_squash_merge: - $value = $payload['forks_count'] ?? null; + $value = $payload['allow_auto_merge'] ?? null; if ($value === null) { - $missingFields[] = 'forks_count'; - goto after_forks_count; + $missingFields[] = 'allow_auto_merge'; + goto after_allow_auto_merge; } - $properties['forks_count'] = $value; + $properties['allow_auto_merge'] = $value; - after_forks_count: + after_allow_auto_merge: - $value = $payload['stargazers_count'] ?? null; + $value = $payload['delete_branch_on_merge'] ?? null; if ($value === null) { - $missingFields[] = 'stargazers_count'; - goto after_stargazers_count; + $missingFields[] = 'delete_branch_on_merge'; + goto after_delete_branch_on_merge; } - $properties['stargazers_count'] = $value; + $properties['delete_branch_on_merge'] = $value; - after_stargazers_count: + after_delete_branch_on_merge: - $value = $payload['watchers_count'] ?? null; + $value = $payload['allow_update_branch'] ?? null; if ($value === null) { - $missingFields[] = 'watchers_count'; - goto after_watchers_count; + $missingFields[] = 'allow_update_branch'; + goto after_allow_update_branch; } - $properties['watchers_count'] = $value; + $properties['allow_update_branch'] = $value; - after_watchers_count: + after_allow_update_branch: - $value = $payload['size'] ?? null; + $value = $payload['use_squash_pr_title_as_default'] ?? null; if ($value === null) { - $missingFields[] = 'size'; - goto after_size; + $missingFields[] = 'use_squash_pr_title_as_default'; + goto after_use_squash_pr_title_as_default; } - $properties['size'] = $value; + $properties['use_squash_pr_title_as_default'] = $value; - after_size: + after_use_squash_pr_title_as_default: - $value = $payload['default_branch'] ?? null; + $value = $payload['squash_merge_commit_title'] ?? null; if ($value === null) { - $missingFields[] = 'default_branch'; - goto after_default_branch; + $missingFields[] = 'squash_merge_commit_title'; + goto after_squash_merge_commit_title; } - $properties['default_branch'] = $value; + $properties['squash_merge_commit_title'] = $value; - after_default_branch: + after_squash_merge_commit_title: - $value = $payload['open_issues_count'] ?? null; + $value = $payload['squash_merge_commit_message'] ?? null; if ($value === null) { - $missingFields[] = 'open_issues_count'; - goto after_open_issues_count; + $missingFields[] = 'squash_merge_commit_message'; + goto after_squash_merge_commit_message; } - $properties['open_issues_count'] = $value; + $properties['squash_merge_commit_message'] = $value; - after_open_issues_count: + after_squash_merge_commit_message: - $value = $payload['is_template'] ?? null; + $value = $payload['merge_commit_title'] ?? null; if ($value === null) { - $missingFields[] = 'is_template'; - goto after_is_template; + $missingFields[] = 'merge_commit_title'; + goto after_merge_commit_title; } - $properties['is_template'] = $value; + $properties['merge_commit_title'] = $value; - after_is_template: + after_merge_commit_title: - $value = $payload['topics'] ?? null; + $value = $payload['merge_commit_message'] ?? null; if ($value === null) { - $missingFields[] = 'topics'; - goto after_topics; + $missingFields[] = 'merge_commit_message'; + goto after_merge_commit_message; } - $properties['topics'] = $value; + $properties['merge_commit_message'] = $value; - after_topics: + after_merge_commit_message: - $value = $payload['has_issues'] ?? null; + $value = $payload['allow_merge_commit'] ?? null; if ($value === null) { - $missingFields[] = 'has_issues'; - goto after_has_issues; + $missingFields[] = 'allow_merge_commit'; + goto after_allow_merge_commit; } - $properties['has_issues'] = $value; + $properties['allow_merge_commit'] = $value; - after_has_issues: + after_allow_merge_commit: - $value = $payload['has_projects'] ?? null; + $value = $payload['subscribers_count'] ?? null; if ($value === null) { - $missingFields[] = 'has_projects'; - goto after_has_projects; + $missingFields[] = 'subscribers_count'; + goto after_subscribers_count; } - $properties['has_projects'] = $value; + $properties['subscribers_count'] = $value; - after_has_projects: + after_subscribers_count: - $value = $payload['has_wiki'] ?? null; + $value = $payload['network_count'] ?? null; if ($value === null) { - $missingFields[] = 'has_wiki'; - goto after_has_wiki; + $missingFields[] = 'network_count'; + goto after_network_count; } - $properties['has_wiki'] = $value; + $properties['network_count'] = $value; - after_has_wiki: + after_network_count: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\TemplateRepository::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\Repository\TemplateRepository(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository', $exception, stack: $this->hydrationStack); + } + } - $value = $payload['has_pages'] ?? null; + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Comment⚡️User(array $payload): \ApiClients\Client\Github\Schema\WebhookIssueCommentDeleted\Comment\User + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['avatar_url'] ?? null; if ($value === null) { - $missingFields[] = 'has_pages'; - goto after_has_pages; + $missingFields[] = 'avatar_url'; + goto after_avatar_url; } - $properties['has_pages'] = $value; + $properties['avatar_url'] = $value; - after_has_pages: + after_avatar_url: - $value = $payload['has_downloads'] ?? null; + $value = $payload['deleted'] ?? null; if ($value === null) { - $missingFields[] = 'has_downloads'; - goto after_has_downloads; + $missingFields[] = 'deleted'; + goto after_deleted; } - $properties['has_downloads'] = $value; + $properties['deleted'] = $value; - after_has_downloads: + after_deleted: - $value = $payload['archived'] ?? null; + $value = $payload['email'] ?? null; if ($value === null) { - $missingFields[] = 'archived'; - goto after_archived; + $missingFields[] = 'email'; + goto after_email; } - $properties['archived'] = $value; + $properties['email'] = $value; - after_archived: + after_email: - $value = $payload['disabled'] ?? null; + $value = $payload['events_url'] ?? null; if ($value === null) { - $missingFields[] = 'disabled'; - goto after_disabled; + $missingFields[] = 'events_url'; + goto after_events_url; } - $properties['disabled'] = $value; + $properties['events_url'] = $value; - after_disabled: + after_events_url: - $value = $payload['visibility'] ?? null; + $value = $payload['followers_url'] ?? null; if ($value === null) { - $missingFields[] = 'visibility'; - goto after_visibility; + $missingFields[] = 'followers_url'; + goto after_followers_url; } - $properties['visibility'] = $value; + $properties['followers_url'] = $value; - after_visibility: + after_followers_url: - $value = $payload['pushed_at'] ?? null; + $value = $payload['following_url'] ?? null; if ($value === null) { - $missingFields[] = 'pushed_at'; - goto after_pushed_at; + $missingFields[] = 'following_url'; + goto after_following_url; } - $properties['pushed_at'] = $value; + $properties['following_url'] = $value; - after_pushed_at: + after_following_url: - $value = $payload['created_at'] ?? null; + $value = $payload['gists_url'] ?? null; if ($value === null) { - $missingFields[] = 'created_at'; - goto after_created_at; + $missingFields[] = 'gists_url'; + goto after_gists_url; } - $properties['created_at'] = $value; + $properties['gists_url'] = $value; - after_created_at: + after_gists_url: - $value = $payload['updated_at'] ?? null; + $value = $payload['gravatar_id'] ?? null; if ($value === null) { - $missingFields[] = 'updated_at'; - goto after_updated_at; + $missingFields[] = 'gravatar_id'; + goto after_gravatar_id; } - $properties['updated_at'] = $value; + $properties['gravatar_id'] = $value; - after_updated_at: + after_gravatar_id: - $value = $payload['permissions'] ?? null; + $value = $payload['html_url'] ?? null; if ($value === null) { - $missingFields[] = 'permissions'; - goto after_permissions; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'permissions'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Permissions($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'html_url'; + goto after_html_url; } - $properties['permissions'] = $value; + $properties['html_url'] = $value; - after_permissions: + after_html_url: - $value = $payload['allow_rebase_merge'] ?? null; + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'allow_rebase_merge'; - goto after_allow_rebase_merge; + $missingFields[] = 'id'; + goto after_id; } - $properties['allow_rebase_merge'] = $value; + $properties['id'] = $value; - after_allow_rebase_merge: + after_id: - $value = $payload['temp_clone_token'] ?? null; + $value = $payload['login'] ?? null; if ($value === null) { - $missingFields[] = 'temp_clone_token'; - goto after_temp_clone_token; + $missingFields[] = 'login'; + goto after_login; } - $properties['temp_clone_token'] = $value; + $properties['login'] = $value; - after_temp_clone_token: + after_login: - $value = $payload['allow_squash_merge'] ?? null; + $value = $payload['name'] ?? null; if ($value === null) { - $missingFields[] = 'allow_squash_merge'; - goto after_allow_squash_merge; + $missingFields[] = 'name'; + goto after_name; } - $properties['allow_squash_merge'] = $value; + $properties['name'] = $value; - after_allow_squash_merge: + after_name: - $value = $payload['allow_auto_merge'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $missingFields[] = 'allow_auto_merge'; - goto after_allow_auto_merge; + $missingFields[] = 'node_id'; + goto after_node_id; } - $properties['allow_auto_merge'] = $value; + $properties['node_id'] = $value; - after_allow_auto_merge: + after_node_id: - $value = $payload['delete_branch_on_merge'] ?? null; + $value = $payload['organizations_url'] ?? null; if ($value === null) { - $missingFields[] = 'delete_branch_on_merge'; - goto after_delete_branch_on_merge; + $missingFields[] = 'organizations_url'; + goto after_organizations_url; } - $properties['delete_branch_on_merge'] = $value; + $properties['organizations_url'] = $value; - after_delete_branch_on_merge: + after_organizations_url: - $value = $payload['allow_update_branch'] ?? null; + $value = $payload['received_events_url'] ?? null; if ($value === null) { - $missingFields[] = 'allow_update_branch'; - goto after_allow_update_branch; + $missingFields[] = 'received_events_url'; + goto after_received_events_url; } - $properties['allow_update_branch'] = $value; + $properties['received_events_url'] = $value; - after_allow_update_branch: + after_received_events_url: - $value = $payload['use_squash_pr_title_as_default'] ?? null; + $value = $payload['repos_url'] ?? null; if ($value === null) { - $missingFields[] = 'use_squash_pr_title_as_default'; - goto after_use_squash_pr_title_as_default; + $missingFields[] = 'repos_url'; + goto after_repos_url; } - $properties['use_squash_pr_title_as_default'] = $value; + $properties['repos_url'] = $value; - after_use_squash_pr_title_as_default: + after_repos_url: - $value = $payload['squash_merge_commit_title'] ?? null; + $value = $payload['site_admin'] ?? null; if ($value === null) { - $missingFields[] = 'squash_merge_commit_title'; - goto after_squash_merge_commit_title; + $missingFields[] = 'site_admin'; + goto after_site_admin; } - $properties['squash_merge_commit_title'] = $value; + $properties['site_admin'] = $value; - after_squash_merge_commit_title: + after_site_admin: - $value = $payload['squash_merge_commit_message'] ?? null; + $value = $payload['starred_url'] ?? null; if ($value === null) { - $missingFields[] = 'squash_merge_commit_message'; - goto after_squash_merge_commit_message; + $missingFields[] = 'starred_url'; + goto after_starred_url; } - $properties['squash_merge_commit_message'] = $value; + $properties['starred_url'] = $value; - after_squash_merge_commit_message: + after_starred_url: - $value = $payload['merge_commit_title'] ?? null; + $value = $payload['subscriptions_url'] ?? null; if ($value === null) { - $missingFields[] = 'merge_commit_title'; - goto after_merge_commit_title; + $missingFields[] = 'subscriptions_url'; + goto after_subscriptions_url; } - $properties['merge_commit_title'] = $value; + $properties['subscriptions_url'] = $value; - after_merge_commit_title: + after_subscriptions_url: - $value = $payload['merge_commit_message'] ?? null; + $value = $payload['type'] ?? null; if ($value === null) { - $missingFields[] = 'merge_commit_message'; - goto after_merge_commit_message; + $missingFields[] = 'type'; + goto after_type; } - $properties['merge_commit_message'] = $value; + $properties['type'] = $value; - after_merge_commit_message: + after_type: - $value = $payload['allow_merge_commit'] ?? null; + $value = $payload['url'] ?? null; if ($value === null) { - $missingFields[] = 'allow_merge_commit'; - goto after_allow_merge_commit; + $missingFields[] = 'url'; + goto after_url; } - $properties['allow_merge_commit'] = $value; + $properties['url'] = $value; - after_allow_merge_commit: + after_url: - $value = $payload['subscribers_count'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssueCommentDeleted\Comment\User', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookIssueCommentDeleted\Comment\User::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookIssueCommentDeleted\Comment\User(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssueCommentDeleted\Comment\User', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectCardEdited⚡️Changes⚡️Note(array $payload): \ApiClients\Client\Github\Schema\WebhookProjectCardEdited\Changes\Note + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['from'] ?? null; if ($value === null) { - $missingFields[] = 'subscribers_count'; - goto after_subscribers_count; + $missingFields[] = 'from'; + goto after_from; } - $properties['subscribers_count'] = $value; + $properties['from'] = $value; - after_subscribers_count: + after_from: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectCardEdited\Changes\Note', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookProjectCardEdited\Changes\Note::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookProjectCardEdited\Changes\Note(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectCardEdited\Changes\Note', $exception, stack: $this->hydrationStack); + } + } - $value = $payload['network_count'] ?? null; + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectCardMoved⚡️Changes⚡️ColumnId(array $payload): \ApiClients\Client\Github\Schema\WebhookProjectCardMoved\Changes\ColumnId + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['from'] ?? null; if ($value === null) { - $missingFields[] = 'network_count'; - goto after_network_count; + $missingFields[] = 'from'; + goto after_from; } - $properties['network_count'] = $value; + $properties['from'] = $value; - after_network_count: + after_from: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectCardMoved\Changes\ColumnId', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\TemplateRepository::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookProjectCardMoved\Changes\ColumnId::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\Repository\TemplateRepository(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookProjectCardMoved\Changes\ColumnId(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectCardMoved\Changes\ColumnId', $exception, stack: $this->hydrationStack); } } @@ -3381,6 +5040,10 @@ public function serializeObject(object $object): mixed 'DateTime' => $this->serializeValueDateTime($object), 'DateTimeImmutable' => $this->serializeValueDateTimeImmutable($object), 'DateTimeInterface' => $this->serializeValueDateTimeInterface($object), + 'ApiClients\Client\Github\Schema\WebhookProjectCardConverted' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectCardConverted($object), + 'ApiClients\Client\Github\Schema\WebhookProjectCardCreated' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectCardCreated($object), + 'ApiClients\Client\Github\Schema\WebhookProjectCardDeleted' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectCardDeleted($object), + 'ApiClients\Client\Github\Schema\WebhookProjectCardEdited' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectCardEdited($object), 'ApiClients\Client\Github\Schema\WebhookProjectCardMoved' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectCardMoved($object), default => throw new \LogicException('No serialization defined for $className'), }; @@ -3455,6 +5118,247 @@ private function serializeValueDateTimeInterface(mixed $value): mixed } + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectCardConverted(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookProjectCardConverted); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $changes = $object->changes; + + if ($changes === null) { + goto after_changes; + } + $changes = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectCardConverted⚡️Changes($changes); + after_changes: $result['changes'] = $changes; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $project_card = $object->project_card; + + if ($project_card === null) { + goto after_project_card; + } + $project_card = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectCardConverted⚡️ProjectCard($project_card); + after_project_card: $result['project_card'] = $project_card; + + + $repository = $object->repository; + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectCardCreated(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookProjectCardCreated); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $project_card = $object->project_card; + + if ($project_card === null) { + goto after_project_card; + } + $project_card = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectCardConverted⚡️ProjectCard($project_card); + after_project_card: $result['project_card'] = $project_card; + + + $repository = $object->repository; + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectCardDeleted(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookProjectCardDeleted); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $project_card = $object->project_card; + + if ($project_card === null) { + goto after_project_card; + } + $project_card = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectCardDeleted⚡️ProjectCard($project_card); + after_project_card: $result['project_card'] = $project_card; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectCardEdited(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookProjectCardEdited); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $changes = $object->changes; + + if ($changes === null) { + goto after_changes; + } + $changes = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectCardEdited⚡️Changes($changes); + after_changes: $result['changes'] = $changes; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $project_card = $object->project_card; + + if ($project_card === null) { + goto after_project_card; + } + $project_card = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectCardConverted⚡️ProjectCard($project_card); + after_project_card: $result['project_card'] = $project_card; + + + $repository = $object->repository; + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectCardMoved(mixed $object): mixed { \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookProjectCardMoved); diff --git a/src/Hydrator/WebHook/ProjectColumn.php b/src/Hydrator/WebHook/ProjectColumn.php index 5716183fc3..a424e07bde 100644 --- a/src/Hydrator/WebHook/ProjectColumn.php +++ b/src/Hydrator/WebHook/ProjectColumn.php @@ -23,15 +23,20 @@ public function __construct() {} public function hydrateObject(string $className, array $payload): object { return match($className) { - 'ApiClients\Client\Github\Schema\WebhookProjectColumnMoved' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectColumnMoved($payload), + 'ApiClients\Client\Github\Schema\WebhookProjectColumnCreated' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectColumnCreated($payload), + 'ApiClients\Client\Github\Schema\WebhookProjectColumnDeleted' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectColumnDeleted($payload), + 'ApiClients\Client\Github\Schema\WebhookProjectColumnEdited' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectColumnEdited($payload), + 'ApiClients\Client\Github\Schema\WebhookProjectColumnMoved' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectColumnMoved($payload), 'ApiClients\Client\Github\Schema\Enterprise' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($payload), 'ApiClients\Client\Github\Schema\SimpleInstallation' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($payload), 'ApiClients\Client\Github\Schema\OrganizationSimple' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($payload), 'ApiClients\Client\Github\Schema\WebhookProjectColumnCreated\ProjectColumn' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectColumnCreated⚡️ProjectColumn($payload), 'ApiClients\Client\Github\Schema\Repository' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($payload), 'ApiClients\Client\Github\Schema\SimpleUser' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($payload), + 'ApiClients\Client\Github\Schema\WebhookProjectColumnEdited\Changes' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectColumnEdited⚡️Changes($payload), 'ApiClients\Client\Github\Schema\Repository\Permissions' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️Permissions($payload), 'ApiClients\Client\Github\Schema\Repository\TemplateRepository' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository($payload), + 'ApiClients\Client\Github\Schema\WebhookDiscussionCommentEdited\Changes\Body' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionCommentEdited⚡️Changes⚡️Body($payload), 'ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner($payload), 'ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Permissions($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), @@ -39,6 +44,476 @@ public function hydrateObject(string $className, array $payload): object } + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectColumnCreated(array $payload): \ApiClients\Client\Github\Schema\WebhookProjectColumnCreated + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; + + if ($value === null) { + $missingFields[] = 'action'; + goto after_action; + } + + $properties['action'] = $value; + + after_action: + + $value = $payload['enterprise'] ?? null; + + if ($value === null) { + $missingFields[] = 'enterprise'; + goto after_enterprise; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['enterprise'] = $value; + + after_enterprise: + + $value = $payload['installation'] ?? null; + + if ($value === null) { + $missingFields[] = 'installation'; + goto after_installation; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; + + after_installation: + + $value = $payload['organization'] ?? null; + + if ($value === null) { + $missingFields[] = 'organization'; + goto after_organization; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; + + after_organization: + + $value = $payload['project_column'] ?? null; + + if ($value === null) { + $missingFields[] = 'project_column'; + goto after_project_column; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'project_column'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectColumnCreated⚡️ProjectColumn($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['project_column'] = $value; + + after_project_column: + + $value = $payload['repository'] ?? null; + + if ($value === null) { + $missingFields[] = 'repository'; + goto after_repository; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repository'] = $value; + + after_repository: + + $value = $payload['sender'] ?? null; + + if ($value === null) { + $missingFields[] = 'sender'; + goto after_sender; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; + + after_sender: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectColumnCreated', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookProjectColumnCreated::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookProjectColumnCreated(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectColumnCreated', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectColumnDeleted(array $payload): \ApiClients\Client\Github\Schema\WebhookProjectColumnDeleted + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; + + if ($value === null) { + $missingFields[] = 'action'; + goto after_action; + } + + $properties['action'] = $value; + + after_action: + + $value = $payload['enterprise'] ?? null; + + if ($value === null) { + $missingFields[] = 'enterprise'; + goto after_enterprise; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['enterprise'] = $value; + + after_enterprise: + + $value = $payload['installation'] ?? null; + + if ($value === null) { + $missingFields[] = 'installation'; + goto after_installation; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; + + after_installation: + + $value = $payload['organization'] ?? null; + + if ($value === null) { + $missingFields[] = 'organization'; + goto after_organization; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; + + after_organization: + + $value = $payload['project_column'] ?? null; + + if ($value === null) { + $missingFields[] = 'project_column'; + goto after_project_column; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'project_column'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectColumnCreated⚡️ProjectColumn($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['project_column'] = $value; + + after_project_column: + + $value = $payload['repository'] ?? null; + + if ($value === null) { + $properties['repository'] = null; + goto after_repository; + } + + $properties['repository'] = $value; + + after_repository: + + $value = $payload['sender'] ?? null; + + if ($value === null) { + $missingFields[] = 'sender'; + goto after_sender; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; + + after_sender: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectColumnDeleted', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookProjectColumnDeleted::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookProjectColumnDeleted(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectColumnDeleted', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectColumnEdited(array $payload): \ApiClients\Client\Github\Schema\WebhookProjectColumnEdited + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; + + if ($value === null) { + $missingFields[] = 'action'; + goto after_action; + } + + $properties['action'] = $value; + + after_action: + + $value = $payload['changes'] ?? null; + + if ($value === null) { + $missingFields[] = 'changes'; + goto after_changes; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'changes'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectColumnEdited⚡️Changes($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['changes'] = $value; + + after_changes: + + $value = $payload['enterprise'] ?? null; + + if ($value === null) { + $missingFields[] = 'enterprise'; + goto after_enterprise; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['enterprise'] = $value; + + after_enterprise: + + $value = $payload['installation'] ?? null; + + if ($value === null) { + $missingFields[] = 'installation'; + goto after_installation; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; + + after_installation: + + $value = $payload['organization'] ?? null; + + if ($value === null) { + $missingFields[] = 'organization'; + goto after_organization; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; + + after_organization: + + $value = $payload['project_column'] ?? null; + + if ($value === null) { + $missingFields[] = 'project_column'; + goto after_project_column; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'project_column'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectColumnCreated⚡️ProjectColumn($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['project_column'] = $value; + + after_project_column: + + $value = $payload['repository'] ?? null; + + if ($value === null) { + $missingFields[] = 'repository'; + goto after_repository; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repository'] = $value; + + after_repository: + + $value = $payload['sender'] ?? null; + + if ($value === null) { + $missingFields[] = 'sender'; + goto after_sender; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; + + after_sender: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectColumnEdited', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookProjectColumnEdited::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookProjectColumnEdited(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectColumnEdited', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectColumnMoved(array $payload): \ApiClients\Client\Github\Schema\WebhookProjectColumnMoved { $properties = []; @@ -2034,6 +2509,48 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Simp } + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectColumnEdited⚡️Changes(array $payload): \ApiClients\Client\Github\Schema\WebhookProjectColumnEdited\Changes + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'name'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionCommentEdited⚡️Changes⚡️Body($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['name'] = $value; + + after_name: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectColumnEdited\Changes', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookProjectColumnEdited\Changes::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookProjectColumnEdited\Changes(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectColumnEdited\Changes', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️Permissions(array $payload): \ApiClients\Client\Github\Schema\Repository\Permissions { $properties = []; @@ -3108,6 +3625,39 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repo } + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionCommentEdited⚡️Changes⚡️Body(array $payload): \ApiClients\Client\Github\Schema\WebhookDiscussionCommentEdited\Changes\Body + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['from'] ?? null; + + if ($value === null) { + $missingFields[] = 'from'; + goto after_from; + } + + $properties['from'] = $value; + + after_from: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDiscussionCommentEdited\Changes\Body', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookDiscussionCommentEdited\Changes\Body::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookDiscussionCommentEdited\Changes\Body(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDiscussionCommentEdited\Changes\Body', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner(array $payload): \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner { $properties = []; @@ -3415,6 +3965,9 @@ public function serializeObject(object $object): mixed 'DateTime' => $this->serializeValueDateTime($object), 'DateTimeImmutable' => $this->serializeValueDateTimeImmutable($object), 'DateTimeInterface' => $this->serializeValueDateTimeInterface($object), + 'ApiClients\Client\Github\Schema\WebhookProjectColumnCreated' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectColumnCreated($object), + 'ApiClients\Client\Github\Schema\WebhookProjectColumnDeleted' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectColumnDeleted($object), + 'ApiClients\Client\Github\Schema\WebhookProjectColumnEdited' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectColumnEdited($object), 'ApiClients\Client\Github\Schema\WebhookProjectColumnMoved' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectColumnMoved($object), default => throw new \LogicException('No serialization defined for $className'), }; @@ -3489,6 +4042,171 @@ private function serializeValueDateTimeInterface(mixed $value): mixed } + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectColumnCreated(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookProjectColumnCreated); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $project_column = $object->project_column; + + if ($project_column === null) { + goto after_project_column; + } + $project_column = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectColumnCreated⚡️ProjectColumn($project_column); + after_project_column: $result['project_column'] = $project_column; + + + $repository = $object->repository; + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectColumnDeleted(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookProjectColumnDeleted); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $project_column = $object->project_column; + + if ($project_column === null) { + goto after_project_column; + } + $project_column = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectColumnCreated⚡️ProjectColumn($project_column); + after_project_column: $result['project_column'] = $project_column; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectColumnEdited(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookProjectColumnEdited); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $changes = $object->changes; + + if ($changes === null) { + goto after_changes; + } + $changes = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectColumnEdited⚡️Changes($changes); + after_changes: $result['changes'] = $changes; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $project_column = $object->project_column; + + if ($project_column === null) { + goto after_project_column; + } + $project_column = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectColumnCreated⚡️ProjectColumn($project_column); + after_project_column: $result['project_column'] = $project_column; + + + $repository = $object->repository; + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectColumnMoved(mixed $object): mixed { \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookProjectColumnMoved); diff --git a/src/Hydrator/WebHook/ProjectsV2.php b/src/Hydrator/WebHook/ProjectsV2.php index 0116cc9a5a..ac04f249fc 100644 --- a/src/Hydrator/WebHook/ProjectsV2.php +++ b/src/Hydrator/WebHook/ProjectsV2.php @@ -23,16 +23,23 @@ public function __construct() {} public function hydrateObject(string $className, array $payload): object { return match($className) { - 'ApiClients\Client\Github\Schema\WebhookProjectsV2ProjectReopened' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectsV2ProjectReopened($payload), + 'ApiClients\Client\Github\Schema\WebhookProjectsV2ProjectClosed' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectsV2ProjectClosed($payload), + 'ApiClients\Client\Github\Schema\WebhookProjectsV2ProjectCreated' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectsV2ProjectCreated($payload), + 'ApiClients\Client\Github\Schema\WebhookProjectsV2ProjectEdited' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectsV2ProjectEdited($payload), + 'ApiClients\Client\Github\Schema\WebhookProjectsV2ProjectReopened' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectsV2ProjectReopened($payload), 'ApiClients\Client\Github\Schema\OrganizationSimple' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($payload), 'ApiClients\Client\Github\Schema\ProjectsV2' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️ProjectsV2($payload), 'ApiClients\Client\Github\Schema\SimpleUser' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($payload), + 'ApiClients\Client\Github\Schema\WebhookProjectsV2ProjectEdited\Changes' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectsV2ProjectEdited⚡️Changes($payload), + 'ApiClients\Client\Github\Schema\WebhookMemberEdited\Changes\Permission' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMemberEdited⚡️Changes⚡️Permission($payload), + 'ApiClients\Client\Github\Schema\WebhookProjectsV2ProjectEdited\Changes\Public_' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectsV2ProjectEdited⚡️Changes⚡️Public_($payload), + 'ApiClients\Client\Github\Schema\WebhookProjectsV2ProjectEdited\Changes\Title' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectsV2ProjectEdited⚡️Changes⚡️Title($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), }; } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectsV2ProjectReopened(array $payload): \ApiClients\Client\Github\Schema\WebhookProjectsV2ProjectReopened + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectsV2ProjectClosed(array $payload): \ApiClients\Client\Github\Schema\WebhookProjectsV2ProjectClosed { $properties = []; $missingFields = []; @@ -110,248 +117,547 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh after_sender: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectsV2ProjectReopened', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectsV2ProjectClosed', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookProjectsV2ProjectReopened::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookProjectsV2ProjectClosed::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\WebhookProjectsV2ProjectReopened(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookProjectsV2ProjectClosed(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectsV2ProjectReopened', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectsV2ProjectClosed', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple(array $payload): \ApiClients\Client\Github\Schema\OrganizationSimple + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectsV2ProjectCreated(array $payload): \ApiClients\Client\Github\Schema\WebhookProjectsV2ProjectCreated { $properties = []; $missingFields = []; try { - $value = $payload['login'] ?? null; + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'login'; - goto after_login; + $missingFields[] = 'action'; + goto after_action; } - $properties['login'] = $value; + $properties['action'] = $value; - after_login: + after_action: - $value = $payload['id'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'organization'; + goto after_organization; } - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['node_id'] = $value; + $properties['organization'] = $value; - after_node_id: + after_organization: - $value = $payload['url'] ?? null; + $value = $payload['projects_v2'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $missingFields[] = 'projects_v2'; + goto after_projects_v2; } - $properties['url'] = $value; - - after_url: - - $value = $payload['repos_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_repos_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'projects_v2'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️ProjectsV2($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['repos_url'] = $value; + $properties['projects_v2'] = $value; - after_repos_url: + after_projects_v2: - $value = $payload['events_url'] ?? null; + $value = $payload['sender'] ?? null; if ($value === null) { - $missingFields[] = 'events_url'; - goto after_events_url; + $missingFields[] = 'sender'; + goto after_sender; } - $properties['events_url'] = $value; - - after_events_url: - - $value = $payload['hooks_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'hooks_url'; - goto after_hooks_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['hooks_url'] = $value; + $properties['sender'] = $value; - after_hooks_url: + after_sender: - $value = $payload['issues_url'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectsV2ProjectCreated', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookProjectsV2ProjectCreated::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookProjectsV2ProjectCreated(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectsV2ProjectCreated', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectsV2ProjectEdited(array $payload): \ApiClients\Client\Github\Schema\WebhookProjectsV2ProjectEdited + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'issues_url'; - goto after_issues_url; + $missingFields[] = 'action'; + goto after_action; } - $properties['issues_url'] = $value; + $properties['action'] = $value; - after_issues_url: + after_action: - $value = $payload['members_url'] ?? null; + $value = $payload['changes'] ?? null; if ($value === null) { - $missingFields[] = 'members_url'; - goto after_members_url; + $missingFields[] = 'changes'; + goto after_changes; } - $properties['members_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'changes'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectsV2ProjectEdited⚡️Changes($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['changes'] = $value; - after_members_url: + after_changes: - $value = $payload['public_members_url'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'public_members_url'; - goto after_public_members_url; + $missingFields[] = 'organization'; + goto after_organization; } - $properties['public_members_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; - after_public_members_url: + after_organization: - $value = $payload['avatar_url'] ?? null; + $value = $payload['projects_v2'] ?? null; if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatar_url; + $missingFields[] = 'projects_v2'; + goto after_projects_v2; } - $properties['avatar_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'projects_v2'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️ProjectsV2($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['projects_v2'] = $value; - after_avatar_url: + after_projects_v2: - $value = $payload['description'] ?? null; + $value = $payload['sender'] ?? null; if ($value === null) { - $missingFields[] = 'description'; - goto after_description; + $missingFields[] = 'sender'; + goto after_sender; } - $properties['description'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; - after_description: + after_sender: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\OrganizationSimple', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectsV2ProjectEdited', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\OrganizationSimple::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookProjectsV2ProjectEdited::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\OrganizationSimple(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookProjectsV2ProjectEdited(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\OrganizationSimple', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectsV2ProjectEdited', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️ProjectsV2(array $payload): \ApiClients\Client\Github\Schema\ProjectsV2 + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectsV2ProjectReopened(array $payload): \ApiClients\Client\Github\Schema\WebhookProjectsV2ProjectReopened { $properties = []; $missingFields = []; try { - $value = $payload['id'] ?? null; + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'action'; + goto after_action; } - $properties['id'] = $value; + $properties['action'] = $value; - after_id: + after_action: - $value = $payload['node_id'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $missingFields[] = 'organization'; + goto after_organization; } - $properties['node_id'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; - after_node_id: + after_organization: - $value = $payload['owner'] ?? null; + $value = $payload['projects_v2'] ?? null; if ($value === null) { - $missingFields[] = 'owner'; - goto after_owner; + $missingFields[] = 'projects_v2'; + goto after_projects_v2; } if (is_array($value)) { try { - $this->hydrationStack[] = 'owner'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + $this->hydrationStack[] = 'projects_v2'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️ProjectsV2($value); } finally { array_pop($this->hydrationStack); } } - $properties['owner'] = $value; + $properties['projects_v2'] = $value; - after_owner: + after_projects_v2: - $value = $payload['creator'] ?? null; + $value = $payload['sender'] ?? null; if ($value === null) { - $missingFields[] = 'creator'; - goto after_creator; + $missingFields[] = 'sender'; + goto after_sender; } if (is_array($value)) { try { - $this->hydrationStack[] = 'creator'; + $this->hydrationStack[] = 'sender'; $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } } - $properties['creator'] = $value; + $properties['sender'] = $value; - after_creator: + after_sender: - $value = $payload['title'] ?? null; - - if ($value === null) { - $missingFields[] = 'title'; - goto after_title; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectsV2ProjectReopened', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookProjectsV2ProjectReopened::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookProjectsV2ProjectReopened(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectsV2ProjectReopened', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple(array $payload): \ApiClients\Client\Github\Schema\OrganizationSimple + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['login'] ?? null; + + if ($value === null) { + $missingFields[] = 'login'; + goto after_login; + } + + $properties['login'] = $value; + + after_login: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['repos_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'repos_url'; + goto after_repos_url; + } + + $properties['repos_url'] = $value; + + after_repos_url: + + $value = $payload['events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'events_url'; + goto after_events_url; + } + + $properties['events_url'] = $value; + + after_events_url: + + $value = $payload['hooks_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'hooks_url'; + goto after_hooks_url; + } + + $properties['hooks_url'] = $value; + + after_hooks_url: + + $value = $payload['issues_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issues_url'; + goto after_issues_url; + } + + $properties['issues_url'] = $value; + + after_issues_url: + + $value = $payload['members_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'members_url'; + goto after_members_url; + } + + $properties['members_url'] = $value; + + after_members_url: + + $value = $payload['public_members_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'public_members_url'; + goto after_public_members_url; + } + + $properties['public_members_url'] = $value; + + after_public_members_url: + + $value = $payload['avatar_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'avatar_url'; + goto after_avatar_url; + } + + $properties['avatar_url'] = $value; + + after_avatar_url: + + $value = $payload['description'] ?? null; + + if ($value === null) { + $missingFields[] = 'description'; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\OrganizationSimple', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\OrganizationSimple::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\OrganizationSimple(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\OrganizationSimple', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️ProjectsV2(array $payload): \ApiClients\Client\Github\Schema\ProjectsV2 + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['owner'] ?? null; + + if ($value === null) { + $missingFields[] = 'owner'; + goto after_owner; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'owner'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['owner'] = $value; + + after_owner: + + $value = $payload['creator'] ?? null; + + if ($value === null) { + $missingFields[] = 'creator'; + goto after_creator; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'creator'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['creator'] = $value; + + after_creator: + + $value = $payload['title'] ?? null; + + if ($value === null) { + $missingFields[] = 'title'; + goto after_title; } $properties['title'] = $value; @@ -724,20 +1030,257 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Simp throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleUser', $exception, stack: $this->hydrationStack); } } - - public function serializeObject(object $object): mixed - { - try { - $className = get_class($object); - return match($className) { - 'array' => $this->serializeValuearray($object), - 'Ramsey\Uuid\UuidInterface' => $this->serializeValueRamsey⚡️Uuid⚡️UuidInterface($object), - 'DateTime' => $this->serializeValueDateTime($object), - 'DateTimeImmutable' => $this->serializeValueDateTimeImmutable($object), - 'DateTimeInterface' => $this->serializeValueDateTimeInterface($object), - 'ApiClients\Client\Github\Schema\WebhookProjectsV2ProjectReopened' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectsV2ProjectReopened($object), - default => throw new \LogicException('No serialization defined for $className'), + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectsV2ProjectEdited⚡️Changes(array $payload): \ApiClients\Client\Github\Schema\WebhookProjectsV2ProjectEdited\Changes + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['description'] ?? null; + + if ($value === null) { + $missingFields[] = 'description'; + goto after_description; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'description'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMemberEdited⚡️Changes⚡️Permission($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['public'] ?? null; + + if ($value === null) { + $missingFields[] = 'public'; + goto after_public; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'public'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectsV2ProjectEdited⚡️Changes⚡️Public_($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['public'] = $value; + + after_public: + + $value = $payload['short_description'] ?? null; + + if ($value === null) { + $missingFields[] = 'short_description'; + goto after_short_description; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'short_description'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMemberEdited⚡️Changes⚡️Permission($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['short_description'] = $value; + + after_short_description: + + $value = $payload['title'] ?? null; + + if ($value === null) { + $missingFields[] = 'title'; + goto after_title; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'title'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectsV2ProjectEdited⚡️Changes⚡️Title($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['title'] = $value; + + after_title: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectsV2ProjectEdited\Changes', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookProjectsV2ProjectEdited\Changes::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookProjectsV2ProjectEdited\Changes(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectsV2ProjectEdited\Changes', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMemberEdited⚡️Changes⚡️Permission(array $payload): \ApiClients\Client\Github\Schema\WebhookMemberEdited\Changes\Permission + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['from'] ?? null; + + if ($value === null) { + $missingFields[] = 'from'; + goto after_from; + } + + $properties['from'] = $value; + + after_from: + + $value = $payload['to'] ?? null; + + if ($value === null) { + $missingFields[] = 'to'; + goto after_to; + } + + $properties['to'] = $value; + + after_to: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookMemberEdited\Changes\Permission', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookMemberEdited\Changes\Permission::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookMemberEdited\Changes\Permission(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookMemberEdited\Changes\Permission', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectsV2ProjectEdited⚡️Changes⚡️Public_(array $payload): \ApiClients\Client\Github\Schema\WebhookProjectsV2ProjectEdited\Changes\Public_ + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['from'] ?? null; + + if ($value === null) { + $missingFields[] = 'from'; + goto after_from; + } + + $properties['from'] = $value; + + after_from: + + $value = $payload['to'] ?? null; + + if ($value === null) { + $missingFields[] = 'to'; + goto after_to; + } + + $properties['to'] = $value; + + after_to: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectsV2ProjectEdited\Changes\Public_', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookProjectsV2ProjectEdited\Changes\Public_::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookProjectsV2ProjectEdited\Changes\Public_(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectsV2ProjectEdited\Changes\Public_', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectsV2ProjectEdited⚡️Changes⚡️Title(array $payload): \ApiClients\Client\Github\Schema\WebhookProjectsV2ProjectEdited\Changes\Title + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['from'] ?? null; + + if ($value === null) { + $missingFields[] = 'from'; + goto after_from; + } + + $properties['from'] = $value; + + after_from: + + $value = $payload['to'] ?? null; + + if ($value === null) { + $missingFields[] = 'to'; + goto after_to; + } + + $properties['to'] = $value; + + after_to: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectsV2ProjectEdited\Changes\Title', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookProjectsV2ProjectEdited\Changes\Title::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookProjectsV2ProjectEdited\Changes\Title(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectsV2ProjectEdited\Changes\Title', $exception, stack: $this->hydrationStack); + } + } + + public function serializeObject(object $object): mixed + { + try { + $className = get_class($object); + + return match($className) { + 'array' => $this->serializeValuearray($object), + 'Ramsey\Uuid\UuidInterface' => $this->serializeValueRamsey⚡️Uuid⚡️UuidInterface($object), + 'DateTime' => $this->serializeValueDateTime($object), + 'DateTimeImmutable' => $this->serializeValueDateTimeImmutable($object), + 'DateTimeInterface' => $this->serializeValueDateTimeInterface($object), + 'ApiClients\Client\Github\Schema\WebhookProjectsV2ProjectClosed' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectsV2ProjectClosed($object), + 'ApiClients\Client\Github\Schema\WebhookProjectsV2ProjectCreated' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectsV2ProjectCreated($object), + 'ApiClients\Client\Github\Schema\WebhookProjectsV2ProjectEdited' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectsV2ProjectEdited($object), + 'ApiClients\Client\Github\Schema\WebhookProjectsV2ProjectReopened' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectsV2ProjectReopened($object), + default => throw new \LogicException('No serialization defined for $className'), }; } catch (\Throwable $exception) { throw UnableToSerializeObject::dueToError($className, $exception); @@ -810,6 +1353,147 @@ private function serializeValueDateTimeInterface(mixed $value): mixed } + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectsV2ProjectClosed(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookProjectsV2ProjectClosed); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $organization = $object->organization; + + if ($organization === null) { + goto after_organization; + } + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $projects_v2 = $object->projects_v2; + + if ($projects_v2 === null) { + goto after_projects_v2; + } + $projects_v2 = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️ProjectsV2($projects_v2); + after_projects_v2: $result['projects_v2'] = $projects_v2; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectsV2ProjectCreated(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookProjectsV2ProjectCreated); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $organization = $object->organization; + + if ($organization === null) { + goto after_organization; + } + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $projects_v2 = $object->projects_v2; + + if ($projects_v2 === null) { + goto after_projects_v2; + } + $projects_v2 = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️ProjectsV2($projects_v2); + after_projects_v2: $result['projects_v2'] = $projects_v2; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectsV2ProjectEdited(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookProjectsV2ProjectEdited); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $changes = $object->changes; + + if ($changes === null) { + goto after_changes; + } + $changes = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectsV2ProjectEdited⚡️Changes($changes); + after_changes: $result['changes'] = $changes; + + + $organization = $object->organization; + + if ($organization === null) { + goto after_organization; + } + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $projects_v2 = $object->projects_v2; + + if ($projects_v2 === null) { + goto after_projects_v2; + } + $projects_v2 = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️ProjectsV2($projects_v2); + after_projects_v2: $result['projects_v2'] = $projects_v2; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectsV2ProjectReopened(mixed $object): mixed { \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookProjectsV2ProjectReopened); diff --git a/src/Hydrator/WebHook/ProjectsV2Item.php b/src/Hydrator/WebHook/ProjectsV2Item.php index dcf8a710e6..f94af099ba 100644 --- a/src/Hydrator/WebHook/ProjectsV2Item.php +++ b/src/Hydrator/WebHook/ProjectsV2Item.php @@ -23,19 +23,29 @@ public function __construct() {} public function hydrateObject(string $className, array $payload): object { return match($className) { - 'ApiClients\Client\Github\Schema\WebhookProjectsV2ItemRestored' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectsV2ItemRestored($payload), + 'ApiClients\Client\Github\Schema\WebhookProjectsV2ItemArchived' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectsV2ItemArchived($payload), + 'ApiClients\Client\Github\Schema\WebhookProjectsV2ItemConverted' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectsV2ItemConverted($payload), + 'ApiClients\Client\Github\Schema\WebhookProjectsV2ItemCreated' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectsV2ItemCreated($payload), + 'ApiClients\Client\Github\Schema\WebhookProjectsV2ItemDeleted' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectsV2ItemDeleted($payload), + 'ApiClients\Client\Github\Schema\WebhookProjectsV2ItemEdited' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectsV2ItemEdited($payload), + 'ApiClients\Client\Github\Schema\WebhookProjectsV2ItemReordered' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectsV2ItemReordered($payload), + 'ApiClients\Client\Github\Schema\WebhookProjectsV2ItemRestored' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectsV2ItemRestored($payload), 'ApiClients\Client\Github\Schema\WebhookProjectsV2ItemArchived\Changes' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectsV2ItemArchived⚡️Changes($payload), 'ApiClients\Client\Github\Schema\SimpleInstallation' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($payload), 'ApiClients\Client\Github\Schema\OrganizationSimple' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($payload), 'ApiClients\Client\Github\Schema\ProjectsV2Item' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️ProjectsV2Item($payload), 'ApiClients\Client\Github\Schema\SimpleUser' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($payload), + 'ApiClients\Client\Github\Schema\WebhookProjectsV2ItemConverted\Changes' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectsV2ItemConverted⚡️Changes($payload), + 'ApiClients\Client\Github\Schema\WebhookProjectsV2ItemReordered\Changes' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectsV2ItemReordered⚡️Changes($payload), 'ApiClients\Client\Github\Schema\WebhookProjectsV2ItemArchived\Changes\ArchivedAt' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectsV2ItemArchived⚡️Changes⚡️ArchivedAt($payload), + 'ApiClients\Client\Github\Schema\WebhookProjectsV2ItemConverted\Changes\ContentType' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectsV2ItemConverted⚡️Changes⚡️ContentType($payload), + 'ApiClients\Client\Github\Schema\WebhookMemberEdited\Changes\Permission' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMemberEdited⚡️Changes⚡️Permission($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), }; } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectsV2ItemRestored(array $payload): \ApiClients\Client\Github\Schema\WebhookProjectsV2ItemRestored + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectsV2ItemArchived(array $payload): \ApiClients\Client\Github\Schema\WebhookProjectsV2ItemArchived { $properties = []; $missingFields = []; @@ -153,769 +163,2025 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh after_sender: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectsV2ItemRestored', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectsV2ItemArchived', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookProjectsV2ItemRestored::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookProjectsV2ItemArchived::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\WebhookProjectsV2ItemRestored(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookProjectsV2ItemArchived(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectsV2ItemRestored', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectsV2ItemArchived', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectsV2ItemArchived⚡️Changes(array $payload): \ApiClients\Client\Github\Schema\WebhookProjectsV2ItemArchived\Changes + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectsV2ItemConverted(array $payload): \ApiClients\Client\Github\Schema\WebhookProjectsV2ItemConverted { $properties = []; $missingFields = []; try { - $value = $payload['archived_at'] ?? null; + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'archived_at'; - goto after_archived_at; + $missingFields[] = 'action'; + goto after_action; + } + + $properties['action'] = $value; + + after_action: + + $value = $payload['changes'] ?? null; + + if ($value === null) { + $missingFields[] = 'changes'; + goto after_changes; } if (is_array($value)) { try { - $this->hydrationStack[] = 'archived_at'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectsV2ItemArchived⚡️Changes⚡️ArchivedAt($value); + $this->hydrationStack[] = 'changes'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectsV2ItemConverted⚡️Changes($value); } finally { array_pop($this->hydrationStack); } } - $properties['archived_at'] = $value; + $properties['changes'] = $value; - after_archived_at: + after_changes: - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectsV2ItemArchived\Changes', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookProjectsV2ItemArchived\Changes::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\WebhookProjectsV2ItemArchived\Changes(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectsV2ItemArchived\Changes', $exception, stack: $this->hydrationStack); - } - } + $value = $payload['installation'] ?? null; + + if ($value === null) { + $missingFields[] = 'installation'; + goto after_installation; + } - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation(array $payload): \ApiClients\Client\Github\Schema\SimpleInstallation - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['id'] ?? null; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; + + after_installation: + + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'organization'; + goto after_organization; } - $properties['id'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; - after_id: + after_organization: - $value = $payload['node_id'] ?? null; + $value = $payload['projects_v2_item'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $missingFields[] = 'projects_v2_item'; + goto after_projects_v2_item; } - $properties['node_id'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'projects_v2_item'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️ProjectsV2Item($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['projects_v2_item'] = $value; - after_node_id: + after_projects_v2_item: + + $value = $payload['sender'] ?? null; + + if ($value === null) { + $missingFields[] = 'sender'; + goto after_sender; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; + + after_sender: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleInstallation', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectsV2ItemConverted', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\SimpleInstallation::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookProjectsV2ItemConverted::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\SimpleInstallation(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookProjectsV2ItemConverted(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleInstallation', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectsV2ItemConverted', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple(array $payload): \ApiClients\Client\Github\Schema\OrganizationSimple + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectsV2ItemCreated(array $payload): \ApiClients\Client\Github\Schema\WebhookProjectsV2ItemCreated { $properties = []; $missingFields = []; try { - $value = $payload['login'] ?? null; + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'login'; - goto after_login; + $missingFields[] = 'action'; + goto after_action; } - $properties['login'] = $value; + $properties['action'] = $value; - after_login: + after_action: - $value = $payload['id'] ?? null; + $value = $payload['installation'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'installation'; + goto after_installation; } - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['node_id'] = $value; + $properties['installation'] = $value; - after_node_id: + after_installation: - $value = $payload['url'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $missingFields[] = 'organization'; + goto after_organization; } - $properties['url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; - after_url: + after_organization: - $value = $payload['repos_url'] ?? null; + $value = $payload['projects_v2_item'] ?? null; if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_repos_url; + $missingFields[] = 'projects_v2_item'; + goto after_projects_v2_item; } - $properties['repos_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'projects_v2_item'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️ProjectsV2Item($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['projects_v2_item'] = $value; - after_repos_url: + after_projects_v2_item: - $value = $payload['events_url'] ?? null; + $value = $payload['sender'] ?? null; if ($value === null) { - $missingFields[] = 'events_url'; - goto after_events_url; + $missingFields[] = 'sender'; + goto after_sender; } - $properties['events_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; - after_events_url: + after_sender: - $value = $payload['hooks_url'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectsV2ItemCreated', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookProjectsV2ItemCreated::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookProjectsV2ItemCreated(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectsV2ItemCreated', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectsV2ItemDeleted(array $payload): \ApiClients\Client\Github\Schema\WebhookProjectsV2ItemDeleted + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'hooks_url'; - goto after_hooks_url; + $missingFields[] = 'action'; + goto after_action; } - $properties['hooks_url'] = $value; + $properties['action'] = $value; - after_hooks_url: + after_action: - $value = $payload['issues_url'] ?? null; + $value = $payload['installation'] ?? null; if ($value === null) { - $missingFields[] = 'issues_url'; - goto after_issues_url; + $missingFields[] = 'installation'; + goto after_installation; } - $properties['issues_url'] = $value; - - after_issues_url: - - $value = $payload['members_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'members_url'; - goto after_members_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['members_url'] = $value; + $properties['installation'] = $value; - after_members_url: + after_installation: - $value = $payload['public_members_url'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'public_members_url'; - goto after_public_members_url; + $missingFields[] = 'organization'; + goto after_organization; } - $properties['public_members_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; - after_public_members_url: + after_organization: - $value = $payload['avatar_url'] ?? null; + $value = $payload['projects_v2_item'] ?? null; if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatar_url; + $missingFields[] = 'projects_v2_item'; + goto after_projects_v2_item; } - $properties['avatar_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'projects_v2_item'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️ProjectsV2Item($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['projects_v2_item'] = $value; - after_avatar_url: + after_projects_v2_item: - $value = $payload['description'] ?? null; + $value = $payload['sender'] ?? null; if ($value === null) { - $missingFields[] = 'description'; - goto after_description; + $missingFields[] = 'sender'; + goto after_sender; } - $properties['description'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; - after_description: + after_sender: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\OrganizationSimple', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectsV2ItemDeleted', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\OrganizationSimple::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookProjectsV2ItemDeleted::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\OrganizationSimple(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookProjectsV2ItemDeleted(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\OrganizationSimple', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectsV2ItemDeleted', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️ProjectsV2Item(array $payload): \ApiClients\Client\Github\Schema\ProjectsV2Item + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectsV2ItemEdited(array $payload): \ApiClients\Client\Github\Schema\WebhookProjectsV2ItemEdited { $properties = []; $missingFields = []; try { - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; - } - - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $missingFields[] = 'action'; + goto after_action; } - $properties['node_id'] = $value; + $properties['action'] = $value; - after_node_id: + after_action: - $value = $payload['project_node_id'] ?? null; + $value = $payload['changes'] ?? null; if ($value === null) { - $missingFields[] = 'project_node_id'; - goto after_project_node_id; + $properties['changes'] = null; + goto after_changes; } - $properties['project_node_id'] = $value; + $properties['changes'] = $value; - after_project_node_id: + after_changes: - $value = $payload['content_node_id'] ?? null; + $value = $payload['installation'] ?? null; if ($value === null) { - $missingFields[] = 'content_node_id'; - goto after_content_node_id; + $missingFields[] = 'installation'; + goto after_installation; } - $properties['content_node_id'] = $value; - - after_content_node_id: - - $value = $payload['content_type'] ?? null; - - if ($value === null) { - $missingFields[] = 'content_type'; - goto after_content_type; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['content_type'] = $value; + $properties['installation'] = $value; - after_content_type: + after_installation: - $value = $payload['creator'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'creator'; - goto after_creator; + $missingFields[] = 'organization'; + goto after_organization; } if (is_array($value)) { try { - $this->hydrationStack[] = 'creator'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); } finally { array_pop($this->hydrationStack); } } - $properties['creator'] = $value; + $properties['organization'] = $value; - after_creator: + after_organization: - $value = $payload['created_at'] ?? null; + $value = $payload['projects_v2_item'] ?? null; if ($value === null) { - $missingFields[] = 'created_at'; - goto after_created_at; + $missingFields[] = 'projects_v2_item'; + goto after_projects_v2_item; } - $properties['created_at'] = $value; - - after_created_at: - - $value = $payload['updated_at'] ?? null; - - if ($value === null) { - $missingFields[] = 'updated_at'; - goto after_updated_at; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'projects_v2_item'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️ProjectsV2Item($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['updated_at'] = $value; + $properties['projects_v2_item'] = $value; - after_updated_at: + after_projects_v2_item: - $value = $payload['archived_at'] ?? null; + $value = $payload['sender'] ?? null; if ($value === null) { - $missingFields[] = 'archived_at'; - goto after_archived_at; + $missingFields[] = 'sender'; + goto after_sender; } - $properties['archived_at'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; - after_archived_at: + after_sender: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\ProjectsV2Item', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectsV2ItemEdited', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\ProjectsV2Item::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookProjectsV2ItemEdited::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\ProjectsV2Item(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookProjectsV2ItemEdited(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\ProjectsV2Item', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectsV2ItemEdited', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser(array $payload): \ApiClients\Client\Github\Schema\SimpleUser + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectsV2ItemReordered(array $payload): \ApiClients\Client\Github\Schema\WebhookProjectsV2ItemReordered { $properties = []; $missingFields = []; try { - $value = $payload['name'] ?? null; + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'name'; - goto after_name; + $missingFields[] = 'action'; + goto after_action; } - $properties['name'] = $value; + $properties['action'] = $value; - after_name: + after_action: - $value = $payload['email'] ?? null; + $value = $payload['changes'] ?? null; if ($value === null) { - $missingFields[] = 'email'; - goto after_email; + $missingFields[] = 'changes'; + goto after_changes; } - $properties['email'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'changes'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectsV2ItemReordered⚡️Changes($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['changes'] = $value; - after_email: + after_changes: - $value = $payload['login'] ?? null; + $value = $payload['installation'] ?? null; if ($value === null) { - $missingFields[] = 'login'; - goto after_login; + $missingFields[] = 'installation'; + goto after_installation; } - $properties['login'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; - after_login: + after_installation: - $value = $payload['id'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'organization'; + goto after_organization; } - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['node_id'] = $value; + $properties['organization'] = $value; - after_node_id: + after_organization: - $value = $payload['avatar_url'] ?? null; + $value = $payload['projects_v2_item'] ?? null; if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatar_url; + $missingFields[] = 'projects_v2_item'; + goto after_projects_v2_item; } - $properties['avatar_url'] = $value; - - after_avatar_url: - - $value = $payload['gravatar_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'gravatar_id'; - goto after_gravatar_id; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'projects_v2_item'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️ProjectsV2Item($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['gravatar_id'] = $value; + $properties['projects_v2_item'] = $value; - after_gravatar_id: + after_projects_v2_item: - $value = $payload['url'] ?? null; + $value = $payload['sender'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $missingFields[] = 'sender'; + goto after_sender; } - $properties['url'] = $value; - - after_url: - - $value = $payload['html_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'html_url'; - goto after_html_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['html_url'] = $value; - - after_html_url: - - $value = $payload['followers_url'] ?? null; + $properties['sender'] = $value; - if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followers_url; - } + after_sender: - $properties['followers_url'] = $value; - - after_followers_url: + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectsV2ItemReordered', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookProjectsV2ItemReordered::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookProjectsV2ItemReordered(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectsV2ItemReordered', $exception, stack: $this->hydrationStack); + } + } - $value = $payload['following_url'] ?? null; + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectsV2ItemRestored(array $payload): \ApiClients\Client\Github\Schema\WebhookProjectsV2ItemRestored + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'following_url'; - goto after_following_url; + $missingFields[] = 'action'; + goto after_action; } - $properties['following_url'] = $value; + $properties['action'] = $value; - after_following_url: + after_action: - $value = $payload['gists_url'] ?? null; + $value = $payload['changes'] ?? null; if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gists_url; + $missingFields[] = 'changes'; + goto after_changes; } - $properties['gists_url'] = $value; - - after_gists_url: - - $value = $payload['starred_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starred_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'changes'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectsV2ItemArchived⚡️Changes($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['starred_url'] = $value; + $properties['changes'] = $value; - after_starred_url: + after_changes: - $value = $payload['subscriptions_url'] ?? null; + $value = $payload['installation'] ?? null; if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptions_url; + $missingFields[] = 'installation'; + goto after_installation; } - $properties['subscriptions_url'] = $value; - - after_subscriptions_url: - - $value = $payload['organizations_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizations_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['organizations_url'] = $value; + $properties['installation'] = $value; - after_organizations_url: + after_installation: - $value = $payload['repos_url'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_repos_url; + $missingFields[] = 'organization'; + goto after_organization; } - $properties['repos_url'] = $value; - - after_repos_url: - - $value = $payload['events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'events_url'; - goto after_events_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['events_url'] = $value; + $properties['organization'] = $value; - after_events_url: + after_organization: - $value = $payload['received_events_url'] ?? null; + $value = $payload['projects_v2_item'] ?? null; if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_received_events_url; + $missingFields[] = 'projects_v2_item'; + goto after_projects_v2_item; } - $properties['received_events_url'] = $value; - - after_received_events_url: - - $value = $payload['type'] ?? null; - - if ($value === null) { - $missingFields[] = 'type'; - goto after_type; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'projects_v2_item'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️ProjectsV2Item($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['type'] = $value; + $properties['projects_v2_item'] = $value; - after_type: + after_projects_v2_item: - $value = $payload['site_admin'] ?? null; + $value = $payload['sender'] ?? null; if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_site_admin; + $missingFields[] = 'sender'; + goto after_sender; } - $properties['site_admin'] = $value; - - after_site_admin: - - $value = $payload['starred_at'] ?? null; - - if ($value === null) { - $missingFields[] = 'starred_at'; - goto after_starred_at; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['starred_at'] = $value; + $properties['sender'] = $value; - after_starred_at: + after_sender: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleUser', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectsV2ItemRestored', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\SimpleUser::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookProjectsV2ItemRestored::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\SimpleUser(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookProjectsV2ItemRestored(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleUser', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectsV2ItemRestored', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectsV2ItemArchived⚡️Changes⚡️ArchivedAt(array $payload): \ApiClients\Client\Github\Schema\WebhookProjectsV2ItemArchived\Changes\ArchivedAt + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectsV2ItemArchived⚡️Changes(array $payload): \ApiClients\Client\Github\Schema\WebhookProjectsV2ItemArchived\Changes { $properties = []; $missingFields = []; try { - $value = $payload['from'] ?? null; + $value = $payload['archived_at'] ?? null; if ($value === null) { - $missingFields[] = 'from'; - goto after_from; - } + $missingFields[] = 'archived_at'; + goto after_archived_at; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'archived_at'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectsV2ItemArchived⚡️Changes⚡️ArchivedAt($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['archived_at'] = $value; + + after_archived_at: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectsV2ItemArchived\Changes', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookProjectsV2ItemArchived\Changes::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookProjectsV2ItemArchived\Changes(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectsV2ItemArchived\Changes', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation(array $payload): \ApiClients\Client\Github\Schema\SimpleInstallation + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleInstallation', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\SimpleInstallation::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\SimpleInstallation(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleInstallation', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple(array $payload): \ApiClients\Client\Github\Schema\OrganizationSimple + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['login'] ?? null; + + if ($value === null) { + $missingFields[] = 'login'; + goto after_login; + } + + $properties['login'] = $value; + + after_login: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['repos_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'repos_url'; + goto after_repos_url; + } + + $properties['repos_url'] = $value; + + after_repos_url: + + $value = $payload['events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'events_url'; + goto after_events_url; + } + + $properties['events_url'] = $value; + + after_events_url: + + $value = $payload['hooks_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'hooks_url'; + goto after_hooks_url; + } + + $properties['hooks_url'] = $value; + + after_hooks_url: + + $value = $payload['issues_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issues_url'; + goto after_issues_url; + } + + $properties['issues_url'] = $value; + + after_issues_url: + + $value = $payload['members_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'members_url'; + goto after_members_url; + } + + $properties['members_url'] = $value; + + after_members_url: + + $value = $payload['public_members_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'public_members_url'; + goto after_public_members_url; + } + + $properties['public_members_url'] = $value; + + after_public_members_url: + + $value = $payload['avatar_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'avatar_url'; + goto after_avatar_url; + } + + $properties['avatar_url'] = $value; + + after_avatar_url: + + $value = $payload['description'] ?? null; + + if ($value === null) { + $missingFields[] = 'description'; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\OrganizationSimple', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\OrganizationSimple::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\OrganizationSimple(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\OrganizationSimple', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️ProjectsV2Item(array $payload): \ApiClients\Client\Github\Schema\ProjectsV2Item + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['project_node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'project_node_id'; + goto after_project_node_id; + } + + $properties['project_node_id'] = $value; + + after_project_node_id: + + $value = $payload['content_node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'content_node_id'; + goto after_content_node_id; + } + + $properties['content_node_id'] = $value; + + after_content_node_id: + + $value = $payload['content_type'] ?? null; + + if ($value === null) { + $missingFields[] = 'content_type'; + goto after_content_type; + } + + $properties['content_type'] = $value; + + after_content_type: + + $value = $payload['creator'] ?? null; + + if ($value === null) { + $missingFields[] = 'creator'; + goto after_creator; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'creator'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['creator'] = $value; + + after_creator: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'created_at'; + goto after_created_at; + } + + $properties['created_at'] = $value; + + after_created_at: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'updated_at'; + goto after_updated_at; + } + + $properties['updated_at'] = $value; + + after_updated_at: + + $value = $payload['archived_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'archived_at'; + goto after_archived_at; + } + + $properties['archived_at'] = $value; + + after_archived_at: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\ProjectsV2Item', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\ProjectsV2Item::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\ProjectsV2Item(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\ProjectsV2Item', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser(array $payload): \ApiClients\Client\Github\Schema\SimpleUser + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['email'] ?? null; + + if ($value === null) { + $missingFields[] = 'email'; + goto after_email; + } + + $properties['email'] = $value; + + after_email: + + $value = $payload['login'] ?? null; + + if ($value === null) { + $missingFields[] = 'login'; + goto after_login; + } + + $properties['login'] = $value; + + after_login: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['avatar_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'avatar_url'; + goto after_avatar_url; + } + + $properties['avatar_url'] = $value; + + after_avatar_url: + + $value = $payload['gravatar_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'gravatar_id'; + goto after_gravatar_id; + } + + $properties['gravatar_id'] = $value; + + after_gravatar_id: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } + + $properties['html_url'] = $value; + + after_html_url: + + $value = $payload['followers_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'followers_url'; + goto after_followers_url; + } + + $properties['followers_url'] = $value; + + after_followers_url: + + $value = $payload['following_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'following_url'; + goto after_following_url; + } + + $properties['following_url'] = $value; + + after_following_url: + + $value = $payload['gists_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'gists_url'; + goto after_gists_url; + } + + $properties['gists_url'] = $value; + + after_gists_url: + + $value = $payload['starred_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'starred_url'; + goto after_starred_url; + } + + $properties['starred_url'] = $value; + + after_starred_url: + + $value = $payload['subscriptions_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscriptions_url'; + goto after_subscriptions_url; + } + + $properties['subscriptions_url'] = $value; + + after_subscriptions_url: + + $value = $payload['organizations_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'organizations_url'; + goto after_organizations_url; + } + + $properties['organizations_url'] = $value; + + after_organizations_url: + + $value = $payload['repos_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'repos_url'; + goto after_repos_url; + } + + $properties['repos_url'] = $value; + + after_repos_url: + + $value = $payload['events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'events_url'; + goto after_events_url; + } + + $properties['events_url'] = $value; + + after_events_url: + + $value = $payload['received_events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'received_events_url'; + goto after_received_events_url; + } + + $properties['received_events_url'] = $value; + + after_received_events_url: + + $value = $payload['type'] ?? null; + + if ($value === null) { + $missingFields[] = 'type'; + goto after_type; + } + + $properties['type'] = $value; + + after_type: + + $value = $payload['site_admin'] ?? null; + + if ($value === null) { + $missingFields[] = 'site_admin'; + goto after_site_admin; + } + + $properties['site_admin'] = $value; + + after_site_admin: + + $value = $payload['starred_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'starred_at'; + goto after_starred_at; + } + + $properties['starred_at'] = $value; + + after_starred_at: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleUser', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\SimpleUser::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\SimpleUser(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleUser', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectsV2ItemConverted⚡️Changes(array $payload): \ApiClients\Client\Github\Schema\WebhookProjectsV2ItemConverted\Changes + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['content_type'] ?? null; + + if ($value === null) { + $missingFields[] = 'content_type'; + goto after_content_type; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'content_type'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectsV2ItemConverted⚡️Changes⚡️ContentType($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['content_type'] = $value; + + after_content_type: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectsV2ItemConverted\Changes', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookProjectsV2ItemConverted\Changes::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookProjectsV2ItemConverted\Changes(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectsV2ItemConverted\Changes', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectsV2ItemReordered⚡️Changes(array $payload): \ApiClients\Client\Github\Schema\WebhookProjectsV2ItemReordered\Changes + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['previous_projects_v2_item_node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'previous_projects_v2_item_node_id'; + goto after_previous_projects_v2_item_node_id; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'previous_projects_v2_item_node_id'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMemberEdited⚡️Changes⚡️Permission($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['previous_projects_v2_item_node_id'] = $value; + + after_previous_projects_v2_item_node_id: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectsV2ItemReordered\Changes', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookProjectsV2ItemReordered\Changes::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookProjectsV2ItemReordered\Changes(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectsV2ItemReordered\Changes', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectsV2ItemArchived⚡️Changes⚡️ArchivedAt(array $payload): \ApiClients\Client\Github\Schema\WebhookProjectsV2ItemArchived\Changes\ArchivedAt + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['from'] ?? null; + + if ($value === null) { + $missingFields[] = 'from'; + goto after_from; + } + + $properties['from'] = $value; + + after_from: + + $value = $payload['to'] ?? null; + + if ($value === null) { + $missingFields[] = 'to'; + goto after_to; + } + + $properties['to'] = $value; + + after_to: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectsV2ItemArchived\Changes\ArchivedAt', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookProjectsV2ItemArchived\Changes\ArchivedAt::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookProjectsV2ItemArchived\Changes\ArchivedAt(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectsV2ItemArchived\Changes\ArchivedAt', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectsV2ItemConverted⚡️Changes⚡️ContentType(array $payload): \ApiClients\Client\Github\Schema\WebhookProjectsV2ItemConverted\Changes\ContentType + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['from'] ?? null; + + if ($value === null) { + $missingFields[] = 'from'; + goto after_from; + } + + $properties['from'] = $value; + + after_from: + + $value = $payload['to'] ?? null; + + if ($value === null) { + $missingFields[] = 'to'; + goto after_to; + } + + $properties['to'] = $value; + + after_to: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectsV2ItemConverted\Changes\ContentType', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookProjectsV2ItemConverted\Changes\ContentType::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookProjectsV2ItemConverted\Changes\ContentType(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectsV2ItemConverted\Changes\ContentType', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMemberEdited⚡️Changes⚡️Permission(array $payload): \ApiClients\Client\Github\Schema\WebhookMemberEdited\Changes\Permission + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['from'] ?? null; + + if ($value === null) { + $missingFields[] = 'from'; + goto after_from; + } + + $properties['from'] = $value; + + after_from: + + $value = $payload['to'] ?? null; + + if ($value === null) { + $missingFields[] = 'to'; + goto after_to; + } + + $properties['to'] = $value; + + after_to: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookMemberEdited\Changes\Permission', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookMemberEdited\Changes\Permission::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookMemberEdited\Changes\Permission(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookMemberEdited\Changes\Permission', $exception, stack: $this->hydrationStack); + } + } + + public function serializeObject(object $object): mixed + { + try { + $className = get_class($object); + + return match($className) { + 'array' => $this->serializeValuearray($object), + 'Ramsey\Uuid\UuidInterface' => $this->serializeValueRamsey⚡️Uuid⚡️UuidInterface($object), + 'DateTime' => $this->serializeValueDateTime($object), + 'DateTimeImmutable' => $this->serializeValueDateTimeImmutable($object), + 'DateTimeInterface' => $this->serializeValueDateTimeInterface($object), + 'ApiClients\Client\Github\Schema\WebhookProjectsV2ItemArchived' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectsV2ItemArchived($object), + 'ApiClients\Client\Github\Schema\WebhookProjectsV2ItemConverted' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectsV2ItemConverted($object), + 'ApiClients\Client\Github\Schema\WebhookProjectsV2ItemCreated' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectsV2ItemCreated($object), + 'ApiClients\Client\Github\Schema\WebhookProjectsV2ItemDeleted' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectsV2ItemDeleted($object), + 'ApiClients\Client\Github\Schema\WebhookProjectsV2ItemEdited' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectsV2ItemEdited($object), + 'ApiClients\Client\Github\Schema\WebhookProjectsV2ItemReordered' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectsV2ItemReordered($object), + 'ApiClients\Client\Github\Schema\WebhookProjectsV2ItemRestored' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectsV2ItemRestored($object), + default => throw new \LogicException('No serialization defined for $className'), + }; + } catch (\Throwable $exception) { + throw UnableToSerializeObject::dueToError($className, $exception); + } + } + + + private function serializeValuearray(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeArrayItems(...array ( +)); + } + + return $serializer->serialize($value, $this); + } + + + private function serializeValueRamsey⚡️Uuid⚡️UuidInterface(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeUuidToString(...array ( +)); + } + + return $serializer->serialize($value, $this); + } + + + private function serializeValueDateTime(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeDateTime(...array ( +)); + } + + return $serializer->serialize($value, $this); + } + + + private function serializeValueDateTimeImmutable(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeDateTime(...array ( +)); + } + + return $serializer->serialize($value, $this); + } + + + private function serializeValueDateTimeInterface(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeDateTime(...array ( +)); + } + + return $serializer->serialize($value, $this); + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectsV2ItemArchived(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookProjectsV2ItemArchived); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $changes = $object->changes; + + if ($changes === null) { + goto after_changes; + } + $changes = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectsV2ItemArchived⚡️Changes($changes); + after_changes: $result['changes'] = $changes; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $organization = $object->organization; + + if ($organization === null) { + goto after_organization; + } + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $projects_v2_item = $object->projects_v2_item; + + if ($projects_v2_item === null) { + goto after_projects_v2_item; + } + $projects_v2_item = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️ProjectsV2Item($projects_v2_item); + after_projects_v2_item: $result['projects_v2_item'] = $projects_v2_item; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectsV2ItemConverted(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookProjectsV2ItemConverted); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $changes = $object->changes; + + if ($changes === null) { + goto after_changes; + } + $changes = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectsV2ItemConverted⚡️Changes($changes); + after_changes: $result['changes'] = $changes; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $organization = $object->organization; + + if ($organization === null) { + goto after_organization; + } + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $projects_v2_item = $object->projects_v2_item; + + if ($projects_v2_item === null) { + goto after_projects_v2_item; + } + $projects_v2_item = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️ProjectsV2Item($projects_v2_item); + after_projects_v2_item: $result['projects_v2_item'] = $projects_v2_item; + + + $sender = $object->sender; - $properties['from'] = $value; - - after_from: + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; - $value = $payload['to'] ?? null; - - if ($value === null) { - $missingFields[] = 'to'; - goto after_to; - } - $properties['to'] = $value; - - after_to: + return $result; + } - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectsV2ItemArchived\Changes\ArchivedAt', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookProjectsV2ItemArchived\Changes\ArchivedAt::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\WebhookProjectsV2ItemArchived\Changes\ArchivedAt(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectsV2ItemArchived\Changes\ArchivedAt', $exception, stack: $this->hydrationStack); - } - } - public function serializeObject(object $object): mixed + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectsV2ItemCreated(mixed $object): mixed { - try { - $className = get_class($object); + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookProjectsV2ItemCreated); + $result = []; + + $action = $object->action; - return match($className) { - 'array' => $this->serializeValuearray($object), - 'Ramsey\Uuid\UuidInterface' => $this->serializeValueRamsey⚡️Uuid⚡️UuidInterface($object), - 'DateTime' => $this->serializeValueDateTime($object), - 'DateTimeImmutable' => $this->serializeValueDateTimeImmutable($object), - 'DateTimeInterface' => $this->serializeValueDateTimeInterface($object), - 'ApiClients\Client\Github\Schema\WebhookProjectsV2ItemRestored' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectsV2ItemRestored($object), - default => throw new \LogicException('No serialization defined for $className'), - }; - } catch (\Throwable $exception) { - throw UnableToSerializeObject::dueToError($className, $exception); + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $organization = $object->organization; + + if ($organization === null) { + goto after_organization; + } + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $projects_v2_item = $object->projects_v2_item; + + if ($projects_v2_item === null) { + goto after_projects_v2_item; + } + $projects_v2_item = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️ProjectsV2Item($projects_v2_item); + after_projects_v2_item: $result['projects_v2_item'] = $projects_v2_item; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; } + - - private function serializeValuearray(mixed $value): mixed + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectsV2ItemDeleted(mixed $object): mixed { - static $serializer; + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookProjectsV2ItemDeleted); + $result = []; - if ($serializer === null) { - $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeArrayItems(...array ( -)); + $action = $object->action; + + if ($action === null) { + goto after_action; } + after_action: $result['action'] = $action; + - return $serializer->serialize($value, $this); - } + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + $organization = $object->organization; + + if ($organization === null) { + goto after_organization; + } + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; - private function serializeValueRamsey⚡️Uuid⚡️UuidInterface(mixed $value): mixed - { - static $serializer; - if ($serializer === null) { - $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeUuidToString(...array ( -)); + $projects_v2_item = $object->projects_v2_item; + + if ($projects_v2_item === null) { + goto after_projects_v2_item; } + $projects_v2_item = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️ProjectsV2Item($projects_v2_item); + after_projects_v2_item: $result['projects_v2_item'] = $projects_v2_item; + - return $serializer->serialize($value, $this); - } + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; - private function serializeValueDateTime(mixed $value): mixed + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectsV2ItemEdited(mixed $object): mixed { - static $serializer; + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookProjectsV2ItemEdited); + $result = []; - if ($serializer === null) { - $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeDateTime(...array ( -)); + $action = $object->action; + + if ($action === null) { + goto after_action; } + after_action: $result['action'] = $action; + - return $serializer->serialize($value, $this); - } + $changes = $object->changes; + + if ($changes === null) { + goto after_changes; + } + after_changes: $result['changes'] = $changes; + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; - private function serializeValueDateTimeImmutable(mixed $value): mixed - { - static $serializer; - if ($serializer === null) { - $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeDateTime(...array ( -)); + $organization = $object->organization; + + if ($organization === null) { + goto after_organization; } + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + - return $serializer->serialize($value, $this); - } + $projects_v2_item = $object->projects_v2_item; + + if ($projects_v2_item === null) { + goto after_projects_v2_item; + } + $projects_v2_item = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️ProjectsV2Item($projects_v2_item); + after_projects_v2_item: $result['projects_v2_item'] = $projects_v2_item; + + $sender = $object->sender; - private function serializeValueDateTimeInterface(mixed $value): mixed + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectsV2ItemReordered(mixed $object): mixed { - static $serializer; + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookProjectsV2ItemReordered); + $result = []; - if ($serializer === null) { - $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeDateTime(...array ( -)); + $action = $object->action; + + if ($action === null) { + goto after_action; } + after_action: $result['action'] = $action; + - return $serializer->serialize($value, $this); + $changes = $object->changes; + + if ($changes === null) { + goto after_changes; + } + $changes = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectsV2ItemReordered⚡️Changes($changes); + after_changes: $result['changes'] = $changes; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $organization = $object->organization; + + if ($organization === null) { + goto after_organization; + } + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $projects_v2_item = $object->projects_v2_item; + + if ($projects_v2_item === null) { + goto after_projects_v2_item; + } + $projects_v2_item = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️ProjectsV2Item($projects_v2_item); + after_projects_v2_item: $result['projects_v2_item'] = $projects_v2_item; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; } diff --git a/src/Hydrator/WebHook/PullRequest.php b/src/Hydrator/WebHook/PullRequest.php index 1d6bfeb2e1..7ede1eb5e1 100644 --- a/src/Hydrator/WebHook/PullRequest.php +++ b/src/Hydrator/WebHook/PullRequest.php @@ -23,26 +23,77 @@ public function __construct() {} public function hydrateObject(string $className, array $payload): object { return match($className) { - 'ApiClients\Client\Github\Schema\WebhookPullRequestUnlocked' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestUnlocked($payload), + 'ApiClients\Client\Github\Schema\WebhookPullRequestAssigned' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned($payload), + 'ApiClients\Client\Github\Schema\WebhookPullRequestAutoMergeDisabled' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAutoMergeDisabled($payload), + 'ApiClients\Client\Github\Schema\WebhookPullRequestAutoMergeEnabled' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAutoMergeEnabled($payload), + 'ApiClients\Client\Github\Schema\WebhookPullRequestClosed' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestClosed($payload), + 'ApiClients\Client\Github\Schema\WebhookPullRequestConvertedToDraft' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestConvertedToDraft($payload), + 'ApiClients\Client\Github\Schema\WebhookPullRequestDemilestoned' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestDemilestoned($payload), + 'ApiClients\Client\Github\Schema\WebhookPullRequestDequeued' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestDequeued($payload), + 'ApiClients\Client\Github\Schema\WebhookPullRequestEdited' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestEdited($payload), + 'ApiClients\Client\Github\Schema\WebhookPullRequestEnqueued' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestEnqueued($payload), + 'ApiClients\Client\Github\Schema\WebhookPullRequestLabeled' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestLabeled($payload), + 'ApiClients\Client\Github\Schema\WebhookPullRequestLocked' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestLocked($payload), + 'ApiClients\Client\Github\Schema\WebhookPullRequestMilestoned' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestMilestoned($payload), + 'ApiClients\Client\Github\Schema\WebhookPullRequestOpened' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestOpened($payload), + 'ApiClients\Client\Github\Schema\WebhookPullRequestReadyForReview' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReadyForReview($payload), + 'ApiClients\Client\Github\Schema\WebhookPullRequestReopened' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReopened($payload), + 'ApiClients\Client\Github\Schema\WebhookPullRequestSynchronize' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestSynchronize($payload), + 'ApiClients\Client\Github\Schema\WebhookPullRequestUnassigned' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestUnassigned($payload), + 'ApiClients\Client\Github\Schema\WebhookPullRequestUnlabeled' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestUnlabeled($payload), + 'ApiClients\Client\Github\Schema\WebhookPullRequestUnlocked' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestUnlocked($payload), + 'ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($payload), 'ApiClients\Client\Github\Schema\Enterprise' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($payload), 'ApiClients\Client\Github\Schema\SimpleInstallation' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($payload), 'ApiClients\Client\Github\Schema\OrganizationSimple' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($payload), - 'ApiClients\Client\Github\Schema\WebhookPullRequestUnlocked\PullRequest' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestUnlocked⚡️PullRequest($payload), + 'ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest($payload), 'ApiClients\Client\Github\Schema\Repository' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($payload), 'ApiClients\Client\Github\Schema\SimpleUser' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($payload), + 'ApiClients\Client\Github\Schema\WebhookPullRequestAutoMergeDisabled\PullRequest' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAutoMergeDisabled⚡️PullRequest($payload), + 'ApiClients\Client\Github\Schema\WebhookPullRequestAutoMergeEnabled\PullRequest' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAutoMergeEnabled⚡️PullRequest($payload), + 'ApiClients\Client\Github\Schema\Milestone' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Milestone($payload), + 'ApiClients\Client\Github\Schema\WebhookPullRequestDemilestoned\PullRequest' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestDemilestoned⚡️PullRequest($payload), + 'ApiClients\Client\Github\Schema\WebhookPullRequestDequeued\PullRequest' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestDequeued⚡️PullRequest($payload), + 'ApiClients\Client\Github\Schema\WebhookPullRequestEdited\Changes' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestEdited⚡️Changes($payload), + 'ApiClients\Client\Github\Schema\WebhookPullRequestEdited\PullRequest' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestEdited⚡️PullRequest($payload), + 'ApiClients\Client\Github\Schema\WebhookPullRequestEnqueued\PullRequest' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestEnqueued⚡️PullRequest($payload), + 'ApiClients\Client\Github\Schema\WebhookDiscussionLabeled\Label' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionLabeled⚡️Label($payload), + 'ApiClients\Client\Github\Schema\WebhookPullRequestLocked\PullRequest' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestLocked⚡️PullRequest($payload), + 'ApiClients\Client\Github\Schema\WebhookPullRequestSynchronize\PullRequest' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestSynchronize⚡️PullRequest($payload), + 'ApiClients\Client\Github\Schema\WebhookIssueCommentDeleted\Comment\User' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Comment⚡️User($payload), + 'ApiClients\Client\Github\Schema\WebhookPullRequestUnassigned\PullRequest' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestUnassigned⚡️PullRequest($payload), + 'ApiClients\Client\Github\Schema\WebhookPullRequestUnlabeled\PullRequest' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestUnlabeled⚡️PullRequest($payload), + 'ApiClients\Client\Github\Schema\WebhookPullRequestUnlocked\PullRequest' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestUnlocked⚡️PullRequest($payload), 'ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Links' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links($payload), - 'ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($payload), - 'ApiClients\Client\Github\Schema\WebhookPullRequestReviewThreadUnresolved\PullRequest\AutoMerge' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewThreadUnresolved⚡️PullRequest⚡️AutoMerge($payload), + 'ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\AutoMerge' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️AutoMerge($payload), 'ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Base' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Base($payload), - 'ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentDeleted\PullRequest\Head' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewCommentDeleted⚡️PullRequest⚡️Head($payload), - 'ApiClients\Client\Github\Schema\WebhookIssuesDeleted\Issue\Milestone' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesDeleted⚡️Issue⚡️Milestone($payload), + 'ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Head' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Head($payload), + 'ApiClients\Client\Github\Schema\WebhookIssuesAssigned\Issue\Milestone' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesAssigned⚡️Issue⚡️Milestone($payload), 'ApiClients\Client\Github\Schema\Repository\Permissions' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️Permissions($payload), 'ApiClients\Client\Github\Schema\Repository\TemplateRepository' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository($payload), + 'ApiClients\Client\Github\Schema\WebhookPullRequestAutoMergeDisabled\PullRequest\Base' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAutoMergeDisabled⚡️PullRequest⚡️Base($payload), + 'ApiClients\Client\Github\Schema\WebhookIssuesDeleted\Issue\Milestone' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesDeleted⚡️Issue⚡️Milestone($payload), + 'ApiClients\Client\Github\Schema\WebhookPullRequestDemilestoned\PullRequest\Base' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestDemilestoned⚡️PullRequest⚡️Base($payload), + 'ApiClients\Client\Github\Schema\WebhookPullRequestEdited\Changes\Base' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestEdited⚡️Changes⚡️Base($payload), + 'ApiClients\Client\Github\Schema\WebhookProjectEdited\Changes\Body' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectEdited⚡️Changes⚡️Body($payload), + 'ApiClients\Client\Github\Schema\WebhookMilestoneEdited\Changes\Title' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMilestoneEdited⚡️Changes⚡️Title($payload), + 'ApiClients\Client\Github\Schema\WebhookPullRequestEnqueued\PullRequest\Base' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestEnqueued⚡️PullRequest⚡️Base($payload), + 'ApiClients\Client\Github\Schema\WebhookPullRequestSynchronize\PullRequest\Head' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestSynchronize⚡️PullRequest⚡️Head($payload), + 'ApiClients\Client\Github\Schema\WebhookPullRequestUnassigned\PullRequest\Base' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestUnassigned⚡️PullRequest⚡️Base($payload), + 'ApiClients\Client\Github\Schema\WebhookPullRequestUnlabeled\PullRequest\Head' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestUnlabeled⚡️PullRequest⚡️Head($payload), + 'ApiClients\Client\Github\Schema\WebhookPullRequestReviewThreadUnresolved\PullRequest\AutoMerge' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewThreadUnresolved⚡️PullRequest⚡️AutoMerge($payload), + 'ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentDeleted\PullRequest\Head' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewCommentDeleted⚡️PullRequest⚡️Head($payload), 'ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Links\Comments' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links⚡️Comments($payload), 'ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Base\Repo' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Base⚡️Repo($payload), 'ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Head\Repo' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Head⚡️Repo($payload), 'ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner($payload), 'ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Permissions($payload), + 'ApiClients\Client\Github\Schema\WebhookPullRequestAutoMergeDisabled\PullRequest\Base\Repo' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAutoMergeDisabled⚡️PullRequest⚡️Base⚡️Repo($payload), + 'ApiClients\Client\Github\Schema\WebhookPullRequestDemilestoned\PullRequest\Base\Repo' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestDemilestoned⚡️PullRequest⚡️Base⚡️Repo($payload), + 'ApiClients\Client\Github\Schema\WebhookDiscussionCommentEdited\Changes\Body' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionCommentEdited⚡️Changes⚡️Body($payload), + 'ApiClients\Client\Github\Schema\WebhookPullRequestEnqueued\PullRequest\Base\Repo' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestEnqueued⚡️PullRequest⚡️Base⚡️Repo($payload), + 'ApiClients\Client\Github\Schema\WebhookPullRequestSynchronize\PullRequest\Head\Repo' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestSynchronize⚡️PullRequest⚡️Head⚡️Repo($payload), + 'ApiClients\Client\Github\Schema\WebhookPullRequestUnlabeled\PullRequest\Head\Repo' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestUnlabeled⚡️PullRequest⚡️Head⚡️Repo($payload), 'ApiClients\Client\Github\Schema\WebhookDiscussionTransferred\Changes\NewRepository\License' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionTransferred⚡️Changes⚡️NewRepository⚡️License($payload), 'ApiClients\Client\Github\Schema\WebhookDiscussionTransferred\Changes\NewRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionTransferred⚡️Changes⚡️NewRepository⚡️Permissions($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), @@ -50,7 +101,7 @@ public function hydrateObject(string $className, array $payload): object } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestUnlocked(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestUnlocked + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestAssigned { $properties = []; $missingFields = []; @@ -67,6 +118,26 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh after_action: + $value = $payload['assignee'] ?? null; + + if ($value === null) { + $missingFields[] = 'assignee'; + goto after_assignee; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'assignee'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['assignee'] = $value; + + after_assignee: + $value = $payload['enterprise'] ?? null; if ($value === null) { @@ -148,7 +219,7 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'pull_request'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestUnlocked⚡️PullRequest($value); + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest($value); } finally { array_pop($this->hydrationStack); } @@ -199,793 +270,901 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh after_sender: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestUnlocked', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAssigned', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestUnlocked::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestAssigned::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\WebhookPullRequestUnlocked(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookPullRequestAssigned(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestUnlocked', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAssigned', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise(array $payload): \ApiClients\Client\Github\Schema\Enterprise + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAutoMergeDisabled(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestAutoMergeDisabled { $properties = []; $missingFields = []; try { - $value = $payload['description'] ?? null; + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'description'; - goto after_description; + $missingFields[] = 'action'; + goto after_action; } - $properties['description'] = $value; + $properties['action'] = $value; - after_description: + after_action: - $value = $payload['html_url'] ?? null; + $value = $payload['enterprise'] ?? null; if ($value === null) { - $missingFields[] = 'html_url'; - goto after_html_url; + $missingFields[] = 'enterprise'; + goto after_enterprise; } - $properties['html_url'] = $value; - - after_html_url: - - $value = $payload['website_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'website_url'; - goto after_website_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['website_url'] = $value; + $properties['enterprise'] = $value; - after_website_url: + after_enterprise: - $value = $payload['id'] ?? null; + $value = $payload['installation'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'installation'; + goto after_installation; } - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['node_id'] = $value; + $properties['installation'] = $value; - after_node_id: + after_installation: - $value = $payload['name'] ?? null; + $value = $payload['number'] ?? null; if ($value === null) { - $missingFields[] = 'name'; - goto after_name; + $missingFields[] = 'number'; + goto after_number; } - $properties['name'] = $value; + $properties['number'] = $value; - after_name: + after_number: - $value = $payload['slug'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'slug'; - goto after_slug; + $missingFields[] = 'organization'; + goto after_organization; } - $properties['slug'] = $value; - - after_slug: - - $value = $payload['created_at'] ?? null; - - if ($value === null) { - $missingFields[] = 'created_at'; - goto after_created_at; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['created_at'] = $value; + $properties['organization'] = $value; - after_created_at: + after_organization: - $value = $payload['updated_at'] ?? null; + $value = $payload['pull_request'] ?? null; if ($value === null) { - $missingFields[] = 'updated_at'; - goto after_updated_at; + $missingFields[] = 'pull_request'; + goto after_pull_request; } - $properties['updated_at'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'pull_request'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAutoMergeDisabled⚡️PullRequest($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['pull_request'] = $value; - after_updated_at: + after_pull_request: - $value = $payload['avatar_url'] ?? null; + $value = $payload['reason'] ?? null; if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatar_url; + $missingFields[] = 'reason'; + goto after_reason; } - $properties['avatar_url'] = $value; + $properties['reason'] = $value; - after_avatar_url: - - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Enterprise', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Enterprise::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\Enterprise(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Enterprise', $exception, stack: $this->hydrationStack); - } - } + after_reason: - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation(array $payload): \ApiClients\Client\Github\Schema\SimpleInstallation - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['id'] ?? null; + $value = $payload['repository'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'repository'; + goto after_repository; } - $properties['id'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repository'] = $value; - after_id: + after_repository: - $value = $payload['node_id'] ?? null; + $value = $payload['sender'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $missingFields[] = 'sender'; + goto after_sender; } - $properties['node_id'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; - after_node_id: + after_sender: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleInstallation', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAutoMergeDisabled', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\SimpleInstallation::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestAutoMergeDisabled::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\SimpleInstallation(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookPullRequestAutoMergeDisabled(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleInstallation', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAutoMergeDisabled', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple(array $payload): \ApiClients\Client\Github\Schema\OrganizationSimple + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAutoMergeEnabled(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestAutoMergeEnabled { $properties = []; $missingFields = []; try { - $value = $payload['login'] ?? null; + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'login'; - goto after_login; + $missingFields[] = 'action'; + goto after_action; } - $properties['login'] = $value; + $properties['action'] = $value; - after_login: + after_action: - $value = $payload['id'] ?? null; + $value = $payload['enterprise'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'enterprise'; + goto after_enterprise; } - $properties['id'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['enterprise'] = $value; - after_id: + after_enterprise: - $value = $payload['node_id'] ?? null; + $value = $payload['installation'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $missingFields[] = 'installation'; + goto after_installation; } - $properties['node_id'] = $value; - - after_node_id: - - $value = $payload['url'] ?? null; - - if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['url'] = $value; + $properties['installation'] = $value; - after_url: + after_installation: - $value = $payload['repos_url'] ?? null; + $value = $payload['number'] ?? null; if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_repos_url; + $missingFields[] = 'number'; + goto after_number; } - $properties['repos_url'] = $value; + $properties['number'] = $value; - after_repos_url: + after_number: - $value = $payload['events_url'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'events_url'; - goto after_events_url; + $missingFields[] = 'organization'; + goto after_organization; } - $properties['events_url'] = $value; - - after_events_url: - - $value = $payload['hooks_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'hooks_url'; - goto after_hooks_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['hooks_url'] = $value; + $properties['organization'] = $value; - after_hooks_url: + after_organization: - $value = $payload['issues_url'] ?? null; + $value = $payload['pull_request'] ?? null; if ($value === null) { - $missingFields[] = 'issues_url'; - goto after_issues_url; + $missingFields[] = 'pull_request'; + goto after_pull_request; } - $properties['issues_url'] = $value; - - after_issues_url: - - $value = $payload['members_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'members_url'; - goto after_members_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'pull_request'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAutoMergeEnabled⚡️PullRequest($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['members_url'] = $value; + $properties['pull_request'] = $value; - after_members_url: + after_pull_request: - $value = $payload['public_members_url'] ?? null; + $value = $payload['reason'] ?? null; if ($value === null) { - $missingFields[] = 'public_members_url'; - goto after_public_members_url; + $missingFields[] = 'reason'; + goto after_reason; } - $properties['public_members_url'] = $value; + $properties['reason'] = $value; - after_public_members_url: + after_reason: - $value = $payload['avatar_url'] ?? null; + $value = $payload['repository'] ?? null; if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatar_url; + $missingFields[] = 'repository'; + goto after_repository; } - $properties['avatar_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repository'] = $value; - after_avatar_url: + after_repository: - $value = $payload['description'] ?? null; + $value = $payload['sender'] ?? null; if ($value === null) { - $missingFields[] = 'description'; - goto after_description; + $missingFields[] = 'sender'; + goto after_sender; } - $properties['description'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; - after_description: + after_sender: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\OrganizationSimple', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAutoMergeEnabled', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\OrganizationSimple::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestAutoMergeEnabled::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\OrganizationSimple(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookPullRequestAutoMergeEnabled(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\OrganizationSimple', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAutoMergeEnabled', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestUnlocked⚡️PullRequest(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestUnlocked\PullRequest + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestClosed(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestClosed { $properties = []; $missingFields = []; try { - $value = $payload['_links'] ?? null; + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = '_links'; - goto after__links; + $missingFields[] = 'action'; + goto after_action; + } + + $properties['action'] = $value; + + after_action: + + $value = $payload['enterprise'] ?? null; + + if ($value === null) { + $missingFields[] = 'enterprise'; + goto after_enterprise; } if (is_array($value)) { try { - $this->hydrationStack[] = '_links'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links($value); + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); } finally { array_pop($this->hydrationStack); } } - $properties['_links'] = $value; + $properties['enterprise'] = $value; - after__links: + after_enterprise: - $value = $payload['active_lock_reason'] ?? null; + $value = $payload['installation'] ?? null; if ($value === null) { - $missingFields[] = 'active_lock_reason'; - goto after_active_lock_reason; + $missingFields[] = 'installation'; + goto after_installation; } - $properties['active_lock_reason'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; - after_active_lock_reason: + after_installation: - $value = $payload['additions'] ?? null; + $value = $payload['number'] ?? null; if ($value === null) { - $missingFields[] = 'additions'; - goto after_additions; + $missingFields[] = 'number'; + goto after_number; } - $properties['additions'] = $value; + $properties['number'] = $value; - after_additions: + after_number: - $value = $payload['assignee'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'assignee'; - goto after_assignee; + $missingFields[] = 'organization'; + goto after_organization; } if (is_array($value)) { try { - $this->hydrationStack[] = 'assignee'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); } finally { array_pop($this->hydrationStack); } } - $properties['assignee'] = $value; - - after_assignee: - - $value = $payload['assignees'] ?? null; - - if ($value === null) { - $missingFields[] = 'assignees'; - goto after_assignees; - } - - $properties['assignees'] = $value; + $properties['organization'] = $value; - after_assignees: + after_organization: - $value = $payload['author_association'] ?? null; + $value = $payload['pull_request'] ?? null; if ($value === null) { - $missingFields[] = 'author_association'; - goto after_author_association; + $properties['pull_request'] = null; + goto after_pull_request; } - $properties['author_association'] = $value; + $properties['pull_request'] = $value; - after_author_association: + after_pull_request: - $value = $payload['auto_merge'] ?? null; + $value = $payload['repository'] ?? null; if ($value === null) { - $missingFields[] = 'auto_merge'; - goto after_auto_merge; + $missingFields[] = 'repository'; + goto after_repository; } if (is_array($value)) { try { - $this->hydrationStack[] = 'auto_merge'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewThreadUnresolved⚡️PullRequest⚡️AutoMerge($value); + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); } finally { array_pop($this->hydrationStack); } } - $properties['auto_merge'] = $value; + $properties['repository'] = $value; - after_auto_merge: + after_repository: - $value = $payload['base'] ?? null; + $value = $payload['sender'] ?? null; if ($value === null) { - $missingFields[] = 'base'; - goto after_base; + $missingFields[] = 'sender'; + goto after_sender; } if (is_array($value)) { try { - $this->hydrationStack[] = 'base'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Base($value); + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } } - $properties['base'] = $value; - - after_base: - - $value = $payload['body'] ?? null; + $properties['sender'] = $value; - if ($value === null) { - $missingFields[] = 'body'; - goto after_body; - } + after_sender: - $properties['body'] = $value; - - after_body: + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestClosed', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestClosed::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookPullRequestClosed(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestClosed', $exception, stack: $this->hydrationStack); + } + } - $value = $payload['changed_files'] ?? null; + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestConvertedToDraft(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestConvertedToDraft + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'changed_files'; - goto after_changed_files; + $missingFields[] = 'action'; + goto after_action; } - $properties['changed_files'] = $value; + $properties['action'] = $value; - after_changed_files: + after_action: - $value = $payload['closed_at'] ?? null; + $value = $payload['enterprise'] ?? null; if ($value === null) { - $missingFields[] = 'closed_at'; - goto after_closed_at; + $missingFields[] = 'enterprise'; + goto after_enterprise; } - $properties['closed_at'] = $value; - - after_closed_at: - - $value = $payload['comments'] ?? null; - - if ($value === null) { - $missingFields[] = 'comments'; - goto after_comments; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['comments'] = $value; + $properties['enterprise'] = $value; - after_comments: + after_enterprise: - $value = $payload['comments_url'] ?? null; + $value = $payload['installation'] ?? null; if ($value === null) { - $missingFields[] = 'comments_url'; - goto after_comments_url; + $missingFields[] = 'installation'; + goto after_installation; } - $properties['comments_url'] = $value; - - after_comments_url: - - $value = $payload['commits'] ?? null; - - if ($value === null) { - $missingFields[] = 'commits'; - goto after_commits; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['commits'] = $value; + $properties['installation'] = $value; - after_commits: + after_installation: - $value = $payload['commits_url'] ?? null; + $value = $payload['number'] ?? null; if ($value === null) { - $missingFields[] = 'commits_url'; - goto after_commits_url; + $missingFields[] = 'number'; + goto after_number; } - $properties['commits_url'] = $value; + $properties['number'] = $value; - after_commits_url: + after_number: - $value = $payload['created_at'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'created_at'; - goto after_created_at; + $missingFields[] = 'organization'; + goto after_organization; } - $properties['created_at'] = $value; - - after_created_at: - - $value = $payload['deletions'] ?? null; - - if ($value === null) { - $missingFields[] = 'deletions'; - goto after_deletions; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['deletions'] = $value; + $properties['organization'] = $value; - after_deletions: + after_organization: - $value = $payload['diff_url'] ?? null; + $value = $payload['pull_request'] ?? null; if ($value === null) { - $missingFields[] = 'diff_url'; - goto after_diff_url; + $properties['pull_request'] = null; + goto after_pull_request; } - $properties['diff_url'] = $value; + $properties['pull_request'] = $value; - after_diff_url: + after_pull_request: - $value = $payload['draft'] ?? null; + $value = $payload['repository'] ?? null; if ($value === null) { - $missingFields[] = 'draft'; - goto after_draft; + $missingFields[] = 'repository'; + goto after_repository; } - $properties['draft'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repository'] = $value; - after_draft: + after_repository: - $value = $payload['head'] ?? null; + $value = $payload['sender'] ?? null; if ($value === null) { - $missingFields[] = 'head'; - goto after_head; + $missingFields[] = 'sender'; + goto after_sender; } if (is_array($value)) { try { - $this->hydrationStack[] = 'head'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewCommentDeleted⚡️PullRequest⚡️Head($value); + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } } - $properties['head'] = $value; + $properties['sender'] = $value; - after_head: + after_sender: - $value = $payload['html_url'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestConvertedToDraft', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestConvertedToDraft::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookPullRequestConvertedToDraft(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestConvertedToDraft', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestDemilestoned(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestDemilestoned + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'html_url'; - goto after_html_url; + $missingFields[] = 'action'; + goto after_action; } - $properties['html_url'] = $value; + $properties['action'] = $value; - after_html_url: + after_action: - $value = $payload['id'] ?? null; + $value = $payload['enterprise'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'enterprise'; + goto after_enterprise; } - $properties['id'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['enterprise'] = $value; - after_id: + after_enterprise: - $value = $payload['issue_url'] ?? null; + $value = $payload['milestone'] ?? null; if ($value === null) { - $missingFields[] = 'issue_url'; - goto after_issue_url; + $missingFields[] = 'milestone'; + goto after_milestone; } - $properties['issue_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'milestone'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Milestone($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['milestone'] = $value; - after_issue_url: + after_milestone: - $value = $payload['labels'] ?? null; + $value = $payload['number'] ?? null; if ($value === null) { - $missingFields[] = 'labels'; - goto after_labels; + $missingFields[] = 'number'; + goto after_number; } - $properties['labels'] = $value; + $properties['number'] = $value; - after_labels: + after_number: - $value = $payload['locked'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'locked'; - goto after_locked; + $missingFields[] = 'organization'; + goto after_organization; } - $properties['locked'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; - after_locked: + after_organization: - $value = $payload['maintainer_can_modify'] ?? null; + $value = $payload['pull_request'] ?? null; if ($value === null) { - $missingFields[] = 'maintainer_can_modify'; - goto after_maintainer_can_modify; + $missingFields[] = 'pull_request'; + goto after_pull_request; } - $properties['maintainer_can_modify'] = $value; - - after_maintainer_can_modify: - - $value = $payload['merge_commit_sha'] ?? null; - - if ($value === null) { - $missingFields[] = 'merge_commit_sha'; - goto after_merge_commit_sha; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'pull_request'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestDemilestoned⚡️PullRequest($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['merge_commit_sha'] = $value; + $properties['pull_request'] = $value; - after_merge_commit_sha: + after_pull_request: - $value = $payload['mergeable'] ?? null; + $value = $payload['repository'] ?? null; if ($value === null) { - $missingFields[] = 'mergeable'; - goto after_mergeable; + $missingFields[] = 'repository'; + goto after_repository; } - $properties['mergeable'] = $value; - - after_mergeable: - - $value = $payload['mergeable_state'] ?? null; - - if ($value === null) { - $missingFields[] = 'mergeable_state'; - goto after_mergeable_state; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['mergeable_state'] = $value; + $properties['repository'] = $value; - after_mergeable_state: + after_repository: - $value = $payload['merged'] ?? null; + $value = $payload['sender'] ?? null; if ($value === null) { - $missingFields[] = 'merged'; - goto after_merged; + $missingFields[] = 'sender'; + goto after_sender; } - $properties['merged'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; - after_merged: + after_sender: - $value = $payload['merged_at'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestDemilestoned', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestDemilestoned::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookPullRequestDemilestoned(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestDemilestoned', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestDequeued(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestDequeued + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'merged_at'; - goto after_merged_at; + $missingFields[] = 'action'; + goto after_action; } - $properties['merged_at'] = $value; + $properties['action'] = $value; - after_merged_at: + after_action: - $value = $payload['merged_by'] ?? null; + $value = $payload['enterprise'] ?? null; if ($value === null) { - $missingFields[] = 'merged_by'; - goto after_merged_by; + $missingFields[] = 'enterprise'; + goto after_enterprise; } if (is_array($value)) { try { - $this->hydrationStack[] = 'merged_by'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); } finally { array_pop($this->hydrationStack); } } - $properties['merged_by'] = $value; + $properties['enterprise'] = $value; - after_merged_by: + after_enterprise: - $value = $payload['milestone'] ?? null; + $value = $payload['installation'] ?? null; if ($value === null) { - $missingFields[] = 'milestone'; - goto after_milestone; + $missingFields[] = 'installation'; + goto after_installation; } if (is_array($value)) { try { - $this->hydrationStack[] = 'milestone'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesDeleted⚡️Issue⚡️Milestone($value); + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); } finally { array_pop($this->hydrationStack); } } - $properties['milestone'] = $value; - - after_milestone: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; - } - - $properties['node_id'] = $value; + $properties['installation'] = $value; - after_node_id: + after_installation: $value = $payload['number'] ?? null; @@ -998,1743 +1177,2152 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh after_number: - $value = $payload['patch_url'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'patch_url'; - goto after_patch_url; + $missingFields[] = 'organization'; + goto after_organization; } - $properties['patch_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; - after_patch_url: + after_organization: - $value = $payload['rebaseable'] ?? null; + $value = $payload['pull_request'] ?? null; if ($value === null) { - $missingFields[] = 'rebaseable'; - goto after_rebaseable; + $missingFields[] = 'pull_request'; + goto after_pull_request; } - $properties['rebaseable'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'pull_request'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestDequeued⚡️PullRequest($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['pull_request'] = $value; - after_rebaseable: + after_pull_request: - $value = $payload['requested_reviewers'] ?? null; + $value = $payload['reason'] ?? null; if ($value === null) { - $missingFields[] = 'requested_reviewers'; - goto after_requested_reviewers; + $missingFields[] = 'reason'; + goto after_reason; } - $properties['requested_reviewers'] = $value; + $properties['reason'] = $value; - after_requested_reviewers: + after_reason: - $value = $payload['requested_teams'] ?? null; + $value = $payload['repository'] ?? null; if ($value === null) { - $missingFields[] = 'requested_teams'; - goto after_requested_teams; + $missingFields[] = 'repository'; + goto after_repository; } - $properties['requested_teams'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repository'] = $value; - after_requested_teams: + after_repository: - $value = $payload['review_comment_url'] ?? null; + $value = $payload['sender'] ?? null; if ($value === null) { - $missingFields[] = 'review_comment_url'; - goto after_review_comment_url; + $missingFields[] = 'sender'; + goto after_sender; } - $properties['review_comment_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; - after_review_comment_url: + after_sender: - $value = $payload['review_comments'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestDequeued', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestDequeued::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookPullRequestDequeued(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestDequeued', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestEdited(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestEdited + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'review_comments'; - goto after_review_comments; + $missingFields[] = 'action'; + goto after_action; } - $properties['review_comments'] = $value; + $properties['action'] = $value; - after_review_comments: + after_action: - $value = $payload['review_comments_url'] ?? null; + $value = $payload['changes'] ?? null; if ($value === null) { - $missingFields[] = 'review_comments_url'; - goto after_review_comments_url; + $missingFields[] = 'changes'; + goto after_changes; } - $properties['review_comments_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'changes'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestEdited⚡️Changes($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['changes'] = $value; - after_review_comments_url: + after_changes: - $value = $payload['state'] ?? null; + $value = $payload['enterprise'] ?? null; if ($value === null) { - $missingFields[] = 'state'; - goto after_state; + $missingFields[] = 'enterprise'; + goto after_enterprise; } - $properties['state'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['enterprise'] = $value; - after_state: + after_enterprise: - $value = $payload['statuses_url'] ?? null; + $value = $payload['installation'] ?? null; if ($value === null) { - $missingFields[] = 'statuses_url'; - goto after_statuses_url; + $missingFields[] = 'installation'; + goto after_installation; } - $properties['statuses_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; - after_statuses_url: + after_installation: - $value = $payload['title'] ?? null; + $value = $payload['number'] ?? null; if ($value === null) { - $missingFields[] = 'title'; - goto after_title; + $missingFields[] = 'number'; + goto after_number; } - $properties['title'] = $value; + $properties['number'] = $value; - after_title: + after_number: - $value = $payload['updated_at'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'updated_at'; - goto after_updated_at; + $missingFields[] = 'organization'; + goto after_organization; } - $properties['updated_at'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; - after_updated_at: + after_organization: - $value = $payload['url'] ?? null; + $value = $payload['pull_request'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $missingFields[] = 'pull_request'; + goto after_pull_request; } - $properties['url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'pull_request'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestEdited⚡️PullRequest($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['pull_request'] = $value; - after_url: + after_pull_request: - $value = $payload['user'] ?? null; + $value = $payload['repository'] ?? null; if ($value === null) { - $missingFields[] = 'user'; - goto after_user; + $missingFields[] = 'repository'; + goto after_repository; } if (is_array($value)) { try { - $this->hydrationStack[] = 'user'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); } finally { array_pop($this->hydrationStack); } } - $properties['user'] = $value; + $properties['repository'] = $value; - after_user: + after_repository: + + $value = $payload['sender'] ?? null; + + if ($value === null) { + $missingFields[] = 'sender'; + goto after_sender; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; + + after_sender: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestUnlocked\PullRequest', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestEdited', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestUnlocked\PullRequest::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestEdited::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\WebhookPullRequestUnlocked\PullRequest(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookPullRequestEdited(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestUnlocked\PullRequest', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestEdited', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository(array $payload): \ApiClients\Client\Github\Schema\Repository + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestEnqueued(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestEnqueued { $properties = []; $missingFields = []; try { - $value = $payload['id'] ?? null; + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'action'; + goto after_action; } - $properties['id'] = $value; + $properties['action'] = $value; - after_id: + after_action: - $value = $payload['node_id'] ?? null; + $value = $payload['enterprise'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $missingFields[] = 'enterprise'; + goto after_enterprise; } - $properties['node_id'] = $value; - - after_node_id: - - $value = $payload['name'] ?? null; - - if ($value === null) { - $missingFields[] = 'name'; - goto after_name; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['name'] = $value; + $properties['enterprise'] = $value; - after_name: + after_enterprise: - $value = $payload['full_name'] ?? null; + $value = $payload['installation'] ?? null; if ($value === null) { - $missingFields[] = 'full_name'; - goto after_full_name; + $missingFields[] = 'installation'; + goto after_installation; } - $properties['full_name'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; - after_full_name: + after_installation: - $value = $payload['license'] ?? null; + $value = $payload['number'] ?? null; if ($value === null) { - $properties['license'] = null; - goto after_license; + $missingFields[] = 'number'; + goto after_number; } - $properties['license'] = $value; + $properties['number'] = $value; - after_license: + after_number: $value = $payload['organization'] ?? null; if ($value === null) { - $properties['organization'] = null; + $missingFields[] = 'organization'; goto after_organization; } + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + $properties['organization'] = $value; after_organization: - $value = $payload['forks'] ?? null; + $value = $payload['pull_request'] ?? null; if ($value === null) { - $missingFields[] = 'forks'; - goto after_forks; + $missingFields[] = 'pull_request'; + goto after_pull_request; } - $properties['forks'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'pull_request'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestEnqueued⚡️PullRequest($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['pull_request'] = $value; - after_forks: + after_pull_request: - $value = $payload['permissions'] ?? null; + $value = $payload['repository'] ?? null; if ($value === null) { - $missingFields[] = 'permissions'; - goto after_permissions; + $missingFields[] = 'repository'; + goto after_repository; } if (is_array($value)) { try { - $this->hydrationStack[] = 'permissions'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️Permissions($value); + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); } finally { array_pop($this->hydrationStack); } } - $properties['permissions'] = $value; + $properties['repository'] = $value; - after_permissions: + after_repository: - $value = $payload['owner'] ?? null; + $value = $payload['sender'] ?? null; if ($value === null) { - $missingFields[] = 'owner'; - goto after_owner; + $missingFields[] = 'sender'; + goto after_sender; } if (is_array($value)) { try { - $this->hydrationStack[] = 'owner'; + $this->hydrationStack[] = 'sender'; $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } } - $properties['owner'] = $value; + $properties['sender'] = $value; - after_owner: + after_sender: - $value = $payload['private'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestEnqueued', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestEnqueued::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookPullRequestEnqueued(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestEnqueued', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestLabeled(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestLabeled + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'private'; - goto after_private; + $missingFields[] = 'action'; + goto after_action; } - $properties['private'] = $value; + $properties['action'] = $value; - after_private: + after_action: - $value = $payload['html_url'] ?? null; + $value = $payload['enterprise'] ?? null; if ($value === null) { - $missingFields[] = 'html_url'; - goto after_html_url; + $missingFields[] = 'enterprise'; + goto after_enterprise; } - $properties['html_url'] = $value; - - after_html_url: - - $value = $payload['description'] ?? null; - - if ($value === null) { - $missingFields[] = 'description'; - goto after_description; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['description'] = $value; + $properties['enterprise'] = $value; - after_description: + after_enterprise: - $value = $payload['fork'] ?? null; + $value = $payload['installation'] ?? null; if ($value === null) { - $missingFields[] = 'fork'; - goto after_fork; + $missingFields[] = 'installation'; + goto after_installation; } - $properties['fork'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; - after_fork: + after_installation: - $value = $payload['url'] ?? null; + $value = $payload['label'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $missingFields[] = 'label'; + goto after_label; } - $properties['url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'label'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionLabeled⚡️Label($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['label'] = $value; - after_url: + after_label: - $value = $payload['archive_url'] ?? null; + $value = $payload['number'] ?? null; if ($value === null) { - $missingFields[] = 'archive_url'; - goto after_archive_url; + $missingFields[] = 'number'; + goto after_number; } - $properties['archive_url'] = $value; + $properties['number'] = $value; - after_archive_url: + after_number: - $value = $payload['assignees_url'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'assignees_url'; - goto after_assignees_url; + $missingFields[] = 'organization'; + goto after_organization; } - $properties['assignees_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; - after_assignees_url: + after_organization: - $value = $payload['blobs_url'] ?? null; + $value = $payload['pull_request'] ?? null; if ($value === null) { - $missingFields[] = 'blobs_url'; - goto after_blobs_url; + $missingFields[] = 'pull_request'; + goto after_pull_request; } - $properties['blobs_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'pull_request'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestEdited⚡️PullRequest($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['pull_request'] = $value; - after_blobs_url: + after_pull_request: - $value = $payload['branches_url'] ?? null; + $value = $payload['repository'] ?? null; if ($value === null) { - $missingFields[] = 'branches_url'; - goto after_branches_url; + $missingFields[] = 'repository'; + goto after_repository; } - $properties['branches_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repository'] = $value; - after_branches_url: + after_repository: - $value = $payload['collaborators_url'] ?? null; + $value = $payload['sender'] ?? null; if ($value === null) { - $missingFields[] = 'collaborators_url'; - goto after_collaborators_url; + $missingFields[] = 'sender'; + goto after_sender; } - $properties['collaborators_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; - after_collaborators_url: + after_sender: - $value = $payload['comments_url'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestLabeled', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestLabeled::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookPullRequestLabeled(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestLabeled', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestLocked(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestLocked + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'comments_url'; - goto after_comments_url; + $missingFields[] = 'action'; + goto after_action; } - $properties['comments_url'] = $value; + $properties['action'] = $value; - after_comments_url: + after_action: - $value = $payload['commits_url'] ?? null; + $value = $payload['enterprise'] ?? null; if ($value === null) { - $missingFields[] = 'commits_url'; - goto after_commits_url; + $missingFields[] = 'enterprise'; + goto after_enterprise; } - $properties['commits_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['enterprise'] = $value; - after_commits_url: + after_enterprise: - $value = $payload['compare_url'] ?? null; + $value = $payload['installation'] ?? null; if ($value === null) { - $missingFields[] = 'compare_url'; - goto after_compare_url; + $missingFields[] = 'installation'; + goto after_installation; } - $properties['compare_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; - after_compare_url: + after_installation: - $value = $payload['contents_url'] ?? null; + $value = $payload['number'] ?? null; if ($value === null) { - $missingFields[] = 'contents_url'; - goto after_contents_url; + $missingFields[] = 'number'; + goto after_number; } - $properties['contents_url'] = $value; + $properties['number'] = $value; - after_contents_url: + after_number: - $value = $payload['contributors_url'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'contributors_url'; - goto after_contributors_url; + $missingFields[] = 'organization'; + goto after_organization; } - $properties['contributors_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; - after_contributors_url: + after_organization: - $value = $payload['deployments_url'] ?? null; + $value = $payload['pull_request'] ?? null; if ($value === null) { - $missingFields[] = 'deployments_url'; - goto after_deployments_url; + $missingFields[] = 'pull_request'; + goto after_pull_request; } - $properties['deployments_url'] = $value; - - after_deployments_url: - - $value = $payload['downloads_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'downloads_url'; - goto after_downloads_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'pull_request'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestLocked⚡️PullRequest($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['downloads_url'] = $value; + $properties['pull_request'] = $value; - after_downloads_url: + after_pull_request: - $value = $payload['events_url'] ?? null; + $value = $payload['repository'] ?? null; if ($value === null) { - $missingFields[] = 'events_url'; - goto after_events_url; + $missingFields[] = 'repository'; + goto after_repository; } - $properties['events_url'] = $value; - - after_events_url: - - $value = $payload['forks_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'forks_url'; - goto after_forks_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['forks_url'] = $value; + $properties['repository'] = $value; - after_forks_url: + after_repository: - $value = $payload['git_commits_url'] ?? null; + $value = $payload['sender'] ?? null; if ($value === null) { - $missingFields[] = 'git_commits_url'; - goto after_git_commits_url; + $missingFields[] = 'sender'; + goto after_sender; } - $properties['git_commits_url'] = $value; - - after_git_commits_url: - - $value = $payload['git_refs_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'git_refs_url'; - goto after_git_refs_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['git_refs_url'] = $value; + $properties['sender'] = $value; - after_git_refs_url: + after_sender: - $value = $payload['git_tags_url'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestLocked', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestLocked::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookPullRequestLocked(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestLocked', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestMilestoned(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestMilestoned + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'git_tags_url'; - goto after_git_tags_url; + $missingFields[] = 'action'; + goto after_action; } - $properties['git_tags_url'] = $value; + $properties['action'] = $value; - after_git_tags_url: + after_action: - $value = $payload['git_url'] ?? null; + $value = $payload['enterprise'] ?? null; if ($value === null) { - $missingFields[] = 'git_url'; - goto after_git_url; + $missingFields[] = 'enterprise'; + goto after_enterprise; } - $properties['git_url'] = $value; - - after_git_url: - - $value = $payload['issue_comment_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'issue_comment_url'; - goto after_issue_comment_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['issue_comment_url'] = $value; + $properties['enterprise'] = $value; - after_issue_comment_url: + after_enterprise: - $value = $payload['issue_events_url'] ?? null; + $value = $payload['milestone'] ?? null; if ($value === null) { - $missingFields[] = 'issue_events_url'; - goto after_issue_events_url; + $missingFields[] = 'milestone'; + goto after_milestone; } - $properties['issue_events_url'] = $value; - - after_issue_events_url: - - $value = $payload['issues_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'issues_url'; - goto after_issues_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'milestone'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Milestone($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['issues_url'] = $value; + $properties['milestone'] = $value; - after_issues_url: + after_milestone: - $value = $payload['keys_url'] ?? null; + $value = $payload['number'] ?? null; if ($value === null) { - $missingFields[] = 'keys_url'; - goto after_keys_url; + $missingFields[] = 'number'; + goto after_number; } - $properties['keys_url'] = $value; + $properties['number'] = $value; - after_keys_url: + after_number: - $value = $payload['labels_url'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'labels_url'; - goto after_labels_url; + $missingFields[] = 'organization'; + goto after_organization; } - $properties['labels_url'] = $value; - - after_labels_url: - - $value = $payload['languages_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'languages_url'; - goto after_languages_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['languages_url'] = $value; + $properties['organization'] = $value; - after_languages_url: + after_organization: - $value = $payload['merges_url'] ?? null; + $value = $payload['pull_request'] ?? null; if ($value === null) { - $missingFields[] = 'merges_url'; - goto after_merges_url; + $missingFields[] = 'pull_request'; + goto after_pull_request; } - $properties['merges_url'] = $value; - - after_merges_url: - - $value = $payload['milestones_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'milestones_url'; - goto after_milestones_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'pull_request'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestDemilestoned⚡️PullRequest($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['milestones_url'] = $value; + $properties['pull_request'] = $value; - after_milestones_url: + after_pull_request: - $value = $payload['notifications_url'] ?? null; + $value = $payload['repository'] ?? null; if ($value === null) { - $missingFields[] = 'notifications_url'; - goto after_notifications_url; + $missingFields[] = 'repository'; + goto after_repository; } - $properties['notifications_url'] = $value; - - after_notifications_url: - - $value = $payload['pulls_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'pulls_url'; - goto after_pulls_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['pulls_url'] = $value; + $properties['repository'] = $value; - after_pulls_url: + after_repository: - $value = $payload['releases_url'] ?? null; + $value = $payload['sender'] ?? null; if ($value === null) { - $missingFields[] = 'releases_url'; - goto after_releases_url; + $missingFields[] = 'sender'; + goto after_sender; } - $properties['releases_url'] = $value; - - after_releases_url: + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } - $value = $payload['ssh_url'] ?? null; + $properties['sender'] = $value; - if ($value === null) { - $missingFields[] = 'ssh_url'; - goto after_ssh_url; - } + after_sender: - $properties['ssh_url'] = $value; - - after_ssh_url: + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestMilestoned', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestMilestoned::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookPullRequestMilestoned(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestMilestoned', $exception, stack: $this->hydrationStack); + } + } - $value = $payload['stargazers_url'] ?? null; + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestOpened(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestOpened + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'stargazers_url'; - goto after_stargazers_url; + $missingFields[] = 'action'; + goto after_action; } - $properties['stargazers_url'] = $value; + $properties['action'] = $value; - after_stargazers_url: + after_action: - $value = $payload['statuses_url'] ?? null; + $value = $payload['enterprise'] ?? null; if ($value === null) { - $missingFields[] = 'statuses_url'; - goto after_statuses_url; + $missingFields[] = 'enterprise'; + goto after_enterprise; } - $properties['statuses_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['enterprise'] = $value; - after_statuses_url: + after_enterprise: - $value = $payload['subscribers_url'] ?? null; + $value = $payload['installation'] ?? null; if ($value === null) { - $missingFields[] = 'subscribers_url'; - goto after_subscribers_url; + $missingFields[] = 'installation'; + goto after_installation; } - $properties['subscribers_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; - after_subscribers_url: + after_installation: - $value = $payload['subscription_url'] ?? null; + $value = $payload['number'] ?? null; if ($value === null) { - $missingFields[] = 'subscription_url'; - goto after_subscription_url; + $missingFields[] = 'number'; + goto after_number; } - $properties['subscription_url'] = $value; + $properties['number'] = $value; - after_subscription_url: + after_number: - $value = $payload['tags_url'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'tags_url'; - goto after_tags_url; + $missingFields[] = 'organization'; + goto after_organization; } - $properties['tags_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; - after_tags_url: + after_organization: - $value = $payload['teams_url'] ?? null; + $value = $payload['pull_request'] ?? null; if ($value === null) { - $missingFields[] = 'teams_url'; - goto after_teams_url; + $properties['pull_request'] = null; + goto after_pull_request; } - $properties['teams_url'] = $value; + $properties['pull_request'] = $value; - after_teams_url: + after_pull_request: - $value = $payload['trees_url'] ?? null; + $value = $payload['repository'] ?? null; if ($value === null) { - $missingFields[] = 'trees_url'; - goto after_trees_url; + $missingFields[] = 'repository'; + goto after_repository; } - $properties['trees_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repository'] = $value; - after_trees_url: + after_repository: - $value = $payload['clone_url'] ?? null; + $value = $payload['sender'] ?? null; if ($value === null) { - $missingFields[] = 'clone_url'; - goto after_clone_url; + $missingFields[] = 'sender'; + goto after_sender; } - $properties['clone_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; - after_clone_url: + after_sender: - $value = $payload['mirror_url'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestOpened', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestOpened::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookPullRequestOpened(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestOpened', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReadyForReview(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestReadyForReview + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'mirror_url'; - goto after_mirror_url; + $missingFields[] = 'action'; + goto after_action; } - $properties['mirror_url'] = $value; + $properties['action'] = $value; - after_mirror_url: + after_action: - $value = $payload['hooks_url'] ?? null; + $value = $payload['enterprise'] ?? null; if ($value === null) { - $missingFields[] = 'hooks_url'; - goto after_hooks_url; + $missingFields[] = 'enterprise'; + goto after_enterprise; } - $properties['hooks_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['enterprise'] = $value; - after_hooks_url: + after_enterprise: - $value = $payload['svn_url'] ?? null; + $value = $payload['installation'] ?? null; if ($value === null) { - $missingFields[] = 'svn_url'; - goto after_svn_url; + $missingFields[] = 'installation'; + goto after_installation; } - $properties['svn_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; - after_svn_url: + after_installation: - $value = $payload['homepage'] ?? null; + $value = $payload['number'] ?? null; if ($value === null) { - $missingFields[] = 'homepage'; - goto after_homepage; + $missingFields[] = 'number'; + goto after_number; } - $properties['homepage'] = $value; + $properties['number'] = $value; - after_homepage: + after_number: - $value = $payload['language'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'language'; - goto after_language; + $missingFields[] = 'organization'; + goto after_organization; } - $properties['language'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; - after_language: + after_organization: - $value = $payload['forks_count'] ?? null; + $value = $payload['pull_request'] ?? null; if ($value === null) { - $missingFields[] = 'forks_count'; - goto after_forks_count; + $properties['pull_request'] = null; + goto after_pull_request; } - $properties['forks_count'] = $value; + $properties['pull_request'] = $value; - after_forks_count: + after_pull_request: - $value = $payload['stargazers_count'] ?? null; + $value = $payload['repository'] ?? null; if ($value === null) { - $missingFields[] = 'stargazers_count'; - goto after_stargazers_count; + $missingFields[] = 'repository'; + goto after_repository; } - $properties['stargazers_count'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repository'] = $value; - after_stargazers_count: + after_repository: - $value = $payload['watchers_count'] ?? null; + $value = $payload['sender'] ?? null; if ($value === null) { - $missingFields[] = 'watchers_count'; - goto after_watchers_count; + $missingFields[] = 'sender'; + goto after_sender; } - $properties['watchers_count'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; - after_watchers_count: + after_sender: - $value = $payload['size'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReadyForReview', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestReadyForReview::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookPullRequestReadyForReview(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReadyForReview', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReopened(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestReopened + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'size'; - goto after_size; + $missingFields[] = 'action'; + goto after_action; } - $properties['size'] = $value; + $properties['action'] = $value; - after_size: + after_action: - $value = $payload['default_branch'] ?? null; + $value = $payload['enterprise'] ?? null; if ($value === null) { - $missingFields[] = 'default_branch'; - goto after_default_branch; + $missingFields[] = 'enterprise'; + goto after_enterprise; } - $properties['default_branch'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['enterprise'] = $value; - after_default_branch: + after_enterprise: - $value = $payload['open_issues_count'] ?? null; + $value = $payload['installation'] ?? null; if ($value === null) { - $missingFields[] = 'open_issues_count'; - goto after_open_issues_count; + $missingFields[] = 'installation'; + goto after_installation; } - $properties['open_issues_count'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; - after_open_issues_count: + after_installation: - $value = $payload['is_template'] ?? null; + $value = $payload['number'] ?? null; if ($value === null) { - $missingFields[] = 'is_template'; - goto after_is_template; + $missingFields[] = 'number'; + goto after_number; } - $properties['is_template'] = $value; + $properties['number'] = $value; - after_is_template: + after_number: - $value = $payload['topics'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'topics'; - goto after_topics; + $missingFields[] = 'organization'; + goto after_organization; } - $properties['topics'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; - after_topics: + after_organization: - $value = $payload['has_issues'] ?? null; + $value = $payload['pull_request'] ?? null; if ($value === null) { - $missingFields[] = 'has_issues'; - goto after_has_issues; + $properties['pull_request'] = null; + goto after_pull_request; } - $properties['has_issues'] = $value; + $properties['pull_request'] = $value; - after_has_issues: + after_pull_request: - $value = $payload['has_projects'] ?? null; + $value = $payload['repository'] ?? null; if ($value === null) { - $missingFields[] = 'has_projects'; - goto after_has_projects; + $missingFields[] = 'repository'; + goto after_repository; } - $properties['has_projects'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repository'] = $value; - after_has_projects: + after_repository: - $value = $payload['has_wiki'] ?? null; + $value = $payload['sender'] ?? null; if ($value === null) { - $missingFields[] = 'has_wiki'; - goto after_has_wiki; + $missingFields[] = 'sender'; + goto after_sender; } - $properties['has_wiki'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; - after_has_wiki: + after_sender: - $value = $payload['has_pages'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReopened', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestReopened::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookPullRequestReopened(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReopened', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestSynchronize(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestSynchronize + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'has_pages'; - goto after_has_pages; + $missingFields[] = 'action'; + goto after_action; } - $properties['has_pages'] = $value; + $properties['action'] = $value; - after_has_pages: + after_action: - $value = $payload['has_downloads'] ?? null; + $value = $payload['after'] ?? null; if ($value === null) { - $missingFields[] = 'has_downloads'; - goto after_has_downloads; + $missingFields[] = 'after'; + goto after_after; } - $properties['has_downloads'] = $value; + $properties['after'] = $value; - after_has_downloads: + after_after: - $value = $payload['has_discussions'] ?? null; + $value = $payload['before'] ?? null; if ($value === null) { - $missingFields[] = 'has_discussions'; - goto after_has_discussions; + $missingFields[] = 'before'; + goto after_before; } - $properties['has_discussions'] = $value; + $properties['before'] = $value; - after_has_discussions: + after_before: - $value = $payload['archived'] ?? null; + $value = $payload['enterprise'] ?? null; if ($value === null) { - $missingFields[] = 'archived'; - goto after_archived; + $missingFields[] = 'enterprise'; + goto after_enterprise; } - $properties['archived'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['enterprise'] = $value; - after_archived: + after_enterprise: - $value = $payload['disabled'] ?? null; + $value = $payload['installation'] ?? null; if ($value === null) { - $missingFields[] = 'disabled'; - goto after_disabled; + $missingFields[] = 'installation'; + goto after_installation; } - $properties['disabled'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; - after_disabled: + after_installation: - $value = $payload['visibility'] ?? null; + $value = $payload['number'] ?? null; if ($value === null) { - $missingFields[] = 'visibility'; - goto after_visibility; + $missingFields[] = 'number'; + goto after_number; } - $properties['visibility'] = $value; + $properties['number'] = $value; - after_visibility: + after_number: - $value = $payload['pushed_at'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'pushed_at'; - goto after_pushed_at; + $missingFields[] = 'organization'; + goto after_organization; } - $properties['pushed_at'] = $value; - - after_pushed_at: - - $value = $payload['created_at'] ?? null; - - if ($value === null) { - $missingFields[] = 'created_at'; - goto after_created_at; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['created_at'] = $value; + $properties['organization'] = $value; - after_created_at: + after_organization: - $value = $payload['updated_at'] ?? null; + $value = $payload['pull_request'] ?? null; if ($value === null) { - $missingFields[] = 'updated_at'; - goto after_updated_at; + $missingFields[] = 'pull_request'; + goto after_pull_request; } - $properties['updated_at'] = $value; - - after_updated_at: - - $value = $payload['allow_rebase_merge'] ?? null; - - if ($value === null) { - $missingFields[] = 'allow_rebase_merge'; - goto after_allow_rebase_merge; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'pull_request'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestSynchronize⚡️PullRequest($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['allow_rebase_merge'] = $value; + $properties['pull_request'] = $value; - after_allow_rebase_merge: + after_pull_request: - $value = $payload['template_repository'] ?? null; + $value = $payload['repository'] ?? null; if ($value === null) { - $missingFields[] = 'template_repository'; - goto after_template_repository; + $missingFields[] = 'repository'; + goto after_repository; } if (is_array($value)) { try { - $this->hydrationStack[] = 'template_repository'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository($value); + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); } finally { array_pop($this->hydrationStack); } } - $properties['template_repository'] = $value; + $properties['repository'] = $value; - after_template_repository: + after_repository: - $value = $payload['temp_clone_token'] ?? null; + $value = $payload['sender'] ?? null; if ($value === null) { - $missingFields[] = 'temp_clone_token'; - goto after_temp_clone_token; + $missingFields[] = 'sender'; + goto after_sender; } - $properties['temp_clone_token'] = $value; - - after_temp_clone_token: - - $value = $payload['allow_squash_merge'] ?? null; - - if ($value === null) { - $missingFields[] = 'allow_squash_merge'; - goto after_allow_squash_merge; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['allow_squash_merge'] = $value; + $properties['sender'] = $value; - after_allow_squash_merge: + after_sender: - $value = $payload['allow_auto_merge'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestSynchronize', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestSynchronize::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookPullRequestSynchronize(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestSynchronize', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestUnassigned(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestUnassigned + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'allow_auto_merge'; - goto after_allow_auto_merge; + $missingFields[] = 'action'; + goto after_action; } - $properties['allow_auto_merge'] = $value; + $properties['action'] = $value; - after_allow_auto_merge: + after_action: - $value = $payload['delete_branch_on_merge'] ?? null; + $value = $payload['assignee'] ?? null; if ($value === null) { - $missingFields[] = 'delete_branch_on_merge'; - goto after_delete_branch_on_merge; + $missingFields[] = 'assignee'; + goto after_assignee; } - $properties['delete_branch_on_merge'] = $value; - - after_delete_branch_on_merge: - - $value = $payload['allow_update_branch'] ?? null; - - if ($value === null) { - $missingFields[] = 'allow_update_branch'; - goto after_allow_update_branch; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'assignee'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Comment⚡️User($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['allow_update_branch'] = $value; + $properties['assignee'] = $value; - after_allow_update_branch: + after_assignee: - $value = $payload['use_squash_pr_title_as_default'] ?? null; + $value = $payload['enterprise'] ?? null; if ($value === null) { - $missingFields[] = 'use_squash_pr_title_as_default'; - goto after_use_squash_pr_title_as_default; + $missingFields[] = 'enterprise'; + goto after_enterprise; } - $properties['use_squash_pr_title_as_default'] = $value; - - after_use_squash_pr_title_as_default: - - $value = $payload['squash_merge_commit_title'] ?? null; - - if ($value === null) { - $missingFields[] = 'squash_merge_commit_title'; - goto after_squash_merge_commit_title; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['squash_merge_commit_title'] = $value; + $properties['enterprise'] = $value; - after_squash_merge_commit_title: + after_enterprise: - $value = $payload['squash_merge_commit_message'] ?? null; + $value = $payload['installation'] ?? null; if ($value === null) { - $missingFields[] = 'squash_merge_commit_message'; - goto after_squash_merge_commit_message; + $missingFields[] = 'installation'; + goto after_installation; } - $properties['squash_merge_commit_message'] = $value; - - after_squash_merge_commit_message: - - $value = $payload['merge_commit_title'] ?? null; - - if ($value === null) { - $missingFields[] = 'merge_commit_title'; - goto after_merge_commit_title; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['merge_commit_title'] = $value; + $properties['installation'] = $value; - after_merge_commit_title: + after_installation: - $value = $payload['merge_commit_message'] ?? null; + $value = $payload['number'] ?? null; if ($value === null) { - $missingFields[] = 'merge_commit_message'; - goto after_merge_commit_message; + $missingFields[] = 'number'; + goto after_number; } - $properties['merge_commit_message'] = $value; + $properties['number'] = $value; - after_merge_commit_message: + after_number: - $value = $payload['allow_merge_commit'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'allow_merge_commit'; - goto after_allow_merge_commit; + $missingFields[] = 'organization'; + goto after_organization; } - $properties['allow_merge_commit'] = $value; - - after_allow_merge_commit: - - $value = $payload['allow_forking'] ?? null; - - if ($value === null) { - $missingFields[] = 'allow_forking'; - goto after_allow_forking; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['allow_forking'] = $value; + $properties['organization'] = $value; - after_allow_forking: + after_organization: - $value = $payload['web_commit_signoff_required'] ?? null; + $value = $payload['pull_request'] ?? null; if ($value === null) { - $missingFields[] = 'web_commit_signoff_required'; - goto after_web_commit_signoff_required; + $missingFields[] = 'pull_request'; + goto after_pull_request; } - $properties['web_commit_signoff_required'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'pull_request'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestUnassigned⚡️PullRequest($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['pull_request'] = $value; - after_web_commit_signoff_required: + after_pull_request: - $value = $payload['subscribers_count'] ?? null; + $value = $payload['repository'] ?? null; if ($value === null) { - $missingFields[] = 'subscribers_count'; - goto after_subscribers_count; + $missingFields[] = 'repository'; + goto after_repository; } - $properties['subscribers_count'] = $value; - - after_subscribers_count: - - $value = $payload['network_count'] ?? null; - - if ($value === null) { - $missingFields[] = 'network_count'; - goto after_network_count; - } - - $properties['network_count'] = $value; - - after_network_count: - - $value = $payload['open_issues'] ?? null; - - if ($value === null) { - $missingFields[] = 'open_issues'; - goto after_open_issues; - } - - $properties['open_issues'] = $value; - - after_open_issues: - - $value = $payload['watchers'] ?? null; - - if ($value === null) { - $missingFields[] = 'watchers'; - goto after_watchers; - } - - $properties['watchers'] = $value; - - after_watchers: - - $value = $payload['master_branch'] ?? null; - - if ($value === null) { - $missingFields[] = 'master_branch'; - goto after_master_branch; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['master_branch'] = $value; + $properties['repository'] = $value; - after_master_branch: + after_repository: - $value = $payload['starred_at'] ?? null; + $value = $payload['sender'] ?? null; if ($value === null) { - $missingFields[] = 'starred_at'; - goto after_starred_at; + $missingFields[] = 'sender'; + goto after_sender; } - $properties['starred_at'] = $value; - - after_starred_at: - - $value = $payload['anonymous_access_enabled'] ?? null; - - if ($value === null) { - $missingFields[] = 'anonymous_access_enabled'; - goto after_anonymous_access_enabled; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['anonymous_access_enabled'] = $value; + $properties['sender'] = $value; - after_anonymous_access_enabled: + after_sender: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestUnassigned', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestUnassigned::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\Repository(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookPullRequestUnassigned(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestUnassigned', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser(array $payload): \ApiClients\Client\Github\Schema\SimpleUser + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestUnlabeled(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestUnlabeled { $properties = []; $missingFields = []; try { - $value = $payload['name'] ?? null; + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'name'; - goto after_name; + $missingFields[] = 'action'; + goto after_action; } - $properties['name'] = $value; + $properties['action'] = $value; - after_name: + after_action: - $value = $payload['email'] ?? null; + $value = $payload['enterprise'] ?? null; if ($value === null) { - $missingFields[] = 'email'; - goto after_email; + $missingFields[] = 'enterprise'; + goto after_enterprise; } - $properties['email'] = $value; - - after_email: - - $value = $payload['login'] ?? null; - - if ($value === null) { - $missingFields[] = 'login'; - goto after_login; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['login'] = $value; + $properties['enterprise'] = $value; - after_login: + after_enterprise: - $value = $payload['id'] ?? null; + $value = $payload['installation'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'installation'; + goto after_installation; } - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['node_id'] = $value; + $properties['installation'] = $value; - after_node_id: + after_installation: - $value = $payload['avatar_url'] ?? null; + $value = $payload['label'] ?? null; if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatar_url; + $missingFields[] = 'label'; + goto after_label; } - $properties['avatar_url'] = $value; - - after_avatar_url: - - $value = $payload['gravatar_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'gravatar_id'; - goto after_gravatar_id; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'label'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionLabeled⚡️Label($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['gravatar_id'] = $value; + $properties['label'] = $value; - after_gravatar_id: + after_label: - $value = $payload['url'] ?? null; + $value = $payload['number'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $missingFields[] = 'number'; + goto after_number; } - $properties['url'] = $value; + $properties['number'] = $value; - after_url: + after_number: - $value = $payload['html_url'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'html_url'; - goto after_html_url; + $missingFields[] = 'organization'; + goto after_organization; } - $properties['html_url'] = $value; - - after_html_url: - - $value = $payload['followers_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followers_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['followers_url'] = $value; + $properties['organization'] = $value; - after_followers_url: + after_organization: - $value = $payload['following_url'] ?? null; + $value = $payload['pull_request'] ?? null; if ($value === null) { - $missingFields[] = 'following_url'; - goto after_following_url; + $missingFields[] = 'pull_request'; + goto after_pull_request; } - $properties['following_url'] = $value; - - after_following_url: - - $value = $payload['gists_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gists_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'pull_request'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestUnlabeled⚡️PullRequest($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['gists_url'] = $value; + $properties['pull_request'] = $value; - after_gists_url: + after_pull_request: - $value = $payload['starred_url'] ?? null; + $value = $payload['repository'] ?? null; if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starred_url; + $missingFields[] = 'repository'; + goto after_repository; } - $properties['starred_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repository'] = $value; - after_starred_url: + after_repository: - $value = $payload['subscriptions_url'] ?? null; + $value = $payload['sender'] ?? null; if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptions_url; + $missingFields[] = 'sender'; + goto after_sender; } - $properties['subscriptions_url'] = $value; - - after_subscriptions_url: - - $value = $payload['organizations_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizations_url; - } - - $properties['organizations_url'] = $value; - - after_organizations_url: - - $value = $payload['repos_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_repos_url; - } - - $properties['repos_url'] = $value; - - after_repos_url: - - $value = $payload['events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'events_url'; - goto after_events_url; - } - - $properties['events_url'] = $value; - - after_events_url: - - $value = $payload['received_events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_received_events_url; - } - - $properties['received_events_url'] = $value; - - after_received_events_url: - - $value = $payload['type'] ?? null; - - if ($value === null) { - $missingFields[] = 'type'; - goto after_type; - } - - $properties['type'] = $value; - - after_type: - - $value = $payload['site_admin'] ?? null; - - if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_site_admin; - } - - $properties['site_admin'] = $value; - - after_site_admin: - - $value = $payload['starred_at'] ?? null; - - if ($value === null) { - $missingFields[] = 'starred_at'; - goto after_starred_at; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['starred_at'] = $value; + $properties['sender'] = $value; - after_starred_at: + after_sender: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleUser', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestUnlabeled', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\SimpleUser::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestUnlabeled::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\SimpleUser(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookPullRequestUnlabeled(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleUser', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestUnlabeled', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Links + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestUnlocked(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestUnlocked { $properties = []; $missingFields = []; try { - $value = $payload['comments'] ?? null; + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'comments'; - goto after_comments; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'comments'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links⚡️Comments($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'action'; + goto after_action; } - $properties['comments'] = $value; + $properties['action'] = $value; - after_comments: + after_action: - $value = $payload['commits'] ?? null; + $value = $payload['enterprise'] ?? null; if ($value === null) { - $missingFields[] = 'commits'; - goto after_commits; + $missingFields[] = 'enterprise'; + goto after_enterprise; } if (is_array($value)) { try { - $this->hydrationStack[] = 'commits'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links⚡️Comments($value); + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); } finally { array_pop($this->hydrationStack); } } - $properties['commits'] = $value; + $properties['enterprise'] = $value; - after_commits: + after_enterprise: - $value = $payload['html'] ?? null; + $value = $payload['installation'] ?? null; if ($value === null) { - $missingFields[] = 'html'; - goto after_html; + $missingFields[] = 'installation'; + goto after_installation; } if (is_array($value)) { try { - $this->hydrationStack[] = 'html'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links⚡️Comments($value); + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); } finally { array_pop($this->hydrationStack); } } - $properties['html'] = $value; + $properties['installation'] = $value; - after_html: + after_installation: - $value = $payload['issue'] ?? null; + $value = $payload['number'] ?? null; if ($value === null) { - $missingFields[] = 'issue'; - goto after_issue; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'issue'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links⚡️Comments($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'number'; + goto after_number; } - $properties['issue'] = $value; + $properties['number'] = $value; - after_issue: + after_number: - $value = $payload['review_comment'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'review_comment'; - goto after_review_comment; + $missingFields[] = 'organization'; + goto after_organization; } if (is_array($value)) { try { - $this->hydrationStack[] = 'review_comment'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links⚡️Comments($value); + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); } finally { array_pop($this->hydrationStack); } } - $properties['review_comment'] = $value; + $properties['organization'] = $value; - after_review_comment: + after_organization: - $value = $payload['review_comments'] ?? null; + $value = $payload['pull_request'] ?? null; if ($value === null) { - $missingFields[] = 'review_comments'; - goto after_review_comments; + $missingFields[] = 'pull_request'; + goto after_pull_request; } if (is_array($value)) { try { - $this->hydrationStack[] = 'review_comments'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links⚡️Comments($value); + $this->hydrationStack[] = 'pull_request'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestUnlocked⚡️PullRequest($value); } finally { array_pop($this->hydrationStack); } } - $properties['review_comments'] = $value; + $properties['pull_request'] = $value; - after_review_comments: + after_pull_request: - $value = $payload['self'] ?? null; + $value = $payload['repository'] ?? null; if ($value === null) { - $missingFields[] = 'self'; - goto after_self; + $missingFields[] = 'repository'; + goto after_repository; } if (is_array($value)) { try { - $this->hydrationStack[] = 'self'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links⚡️Comments($value); + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); } finally { array_pop($this->hydrationStack); } } - $properties['self'] = $value; + $properties['repository'] = $value; - after_self: + after_repository: - $value = $payload['statuses'] ?? null; + $value = $payload['sender'] ?? null; if ($value === null) { - $missingFields[] = 'statuses'; - goto after_statuses; + $missingFields[] = 'sender'; + goto after_sender; } if (is_array($value)) { try { - $this->hydrationStack[] = 'statuses'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links⚡️Comments($value); + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } } - $properties['statuses'] = $value; + $properties['sender'] = $value; - after_statuses: + after_sender: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Links', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestUnlocked', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Links::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestUnlocked::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Links(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookPullRequestUnlocked(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Links', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestUnlocked', $exception, stack: $this->hydrationStack); } } @@ -2992,1020 +3580,877 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Disc } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewThreadUnresolved⚡️PullRequest⚡️AutoMerge(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestReviewThreadUnresolved\PullRequest\AutoMerge + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise(array $payload): \ApiClients\Client\Github\Schema\Enterprise { $properties = []; $missingFields = []; try { - $value = $payload['commit_message'] ?? null; + $value = $payload['description'] ?? null; if ($value === null) { - $missingFields[] = 'commit_message'; - goto after_commit_message; + $missingFields[] = 'description'; + goto after_description; } - $properties['commit_message'] = $value; + $properties['description'] = $value; - after_commit_message: + after_description: - $value = $payload['commit_title'] ?? null; + $value = $payload['html_url'] ?? null; if ($value === null) { - $missingFields[] = 'commit_title'; - goto after_commit_title; + $missingFields[] = 'html_url'; + goto after_html_url; } - $properties['commit_title'] = $value; + $properties['html_url'] = $value; - after_commit_title: + after_html_url: - $value = $payload['enabled_by'] ?? null; + $value = $payload['website_url'] ?? null; if ($value === null) { - $missingFields[] = 'enabled_by'; - goto after_enabled_by; + $missingFields[] = 'website_url'; + goto after_website_url; } - if (is_array($value)) { - try { - $this->hydrationStack[] = 'enabled_by'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); - } finally { - array_pop($this->hydrationStack); - } - } - - $properties['enabled_by'] = $value; + $properties['website_url'] = $value; - after_enabled_by: + after_website_url: - $value = $payload['merge_method'] ?? null; + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'merge_method'; - goto after_merge_method; + $missingFields[] = 'id'; + goto after_id; } - $properties['merge_method'] = $value; + $properties['id'] = $value; - after_merge_method: - - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewThreadUnresolved\PullRequest\AutoMerge', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestReviewThreadUnresolved\PullRequest\AutoMerge::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\WebhookPullRequestReviewThreadUnresolved\PullRequest\AutoMerge(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewThreadUnresolved\PullRequest\AutoMerge', $exception, stack: $this->hydrationStack); - } - } + after_id: - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Base(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Base - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['label'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $missingFields[] = 'label'; - goto after_label; + $missingFields[] = 'node_id'; + goto after_node_id; } - $properties['label'] = $value; + $properties['node_id'] = $value; - after_label: + after_node_id: - $value = $payload['ref'] ?? null; + $value = $payload['name'] ?? null; if ($value === null) { - $missingFields[] = 'ref'; - goto after_ref; + $missingFields[] = 'name'; + goto after_name; } - $properties['ref'] = $value; + $properties['name'] = $value; - after_ref: + after_name: - $value = $payload['repo'] ?? null; + $value = $payload['slug'] ?? null; if ($value === null) { - $missingFields[] = 'repo'; - goto after_repo; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'repo'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Base⚡️Repo($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'slug'; + goto after_slug; } - $properties['repo'] = $value; + $properties['slug'] = $value; - after_repo: + after_slug: - $value = $payload['sha'] ?? null; + $value = $payload['created_at'] ?? null; if ($value === null) { - $missingFields[] = 'sha'; - goto after_sha; + $missingFields[] = 'created_at'; + goto after_created_at; } - $properties['sha'] = $value; + $properties['created_at'] = $value; - after_sha: + after_created_at: - $value = $payload['user'] ?? null; + $value = $payload['updated_at'] ?? null; if ($value === null) { - $missingFields[] = 'user'; - goto after_user; + $missingFields[] = 'updated_at'; + goto after_updated_at; } - if (is_array($value)) { - try { - $this->hydrationStack[] = 'user'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); - } finally { - array_pop($this->hydrationStack); - } + $properties['updated_at'] = $value; + + after_updated_at: + + $value = $payload['avatar_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'avatar_url'; + goto after_avatar_url; } - $properties['user'] = $value; + $properties['avatar_url'] = $value; - after_user: + after_avatar_url: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Base', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Enterprise', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Base::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Enterprise::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Base(...$properties); + return new \ApiClients\Client\Github\Schema\Enterprise(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Base', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Enterprise', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewCommentDeleted⚡️PullRequest⚡️Head(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentDeleted\PullRequest\Head + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation(array $payload): \ApiClients\Client\Github\Schema\SimpleInstallation { $properties = []; $missingFields = []; try { - $value = $payload['label'] ?? null; - - if ($value === null) { - $missingFields[] = 'label'; - goto after_label; - } - - $properties['label'] = $value; - - after_label: - - $value = $payload['ref'] ?? null; - - if ($value === null) { - $missingFields[] = 'ref'; - goto after_ref; - } - - $properties['ref'] = $value; - - after_ref: - - $value = $payload['repo'] ?? null; - - if ($value === null) { - $missingFields[] = 'repo'; - goto after_repo; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'repo'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Head⚡️Repo($value); - } finally { - array_pop($this->hydrationStack); - } - } - - $properties['repo'] = $value; - - after_repo: - - $value = $payload['sha'] ?? null; + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'sha'; - goto after_sha; + $missingFields[] = 'id'; + goto after_id; } - $properties['sha'] = $value; + $properties['id'] = $value; - after_sha: + after_id: - $value = $payload['user'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $missingFields[] = 'user'; - goto after_user; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'user'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'node_id'; + goto after_node_id; } - $properties['user'] = $value; + $properties['node_id'] = $value; - after_user: + after_node_id: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentDeleted\PullRequest\Head', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleInstallation', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentDeleted\PullRequest\Head::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\SimpleInstallation::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentDeleted\PullRequest\Head(...$properties); + return new \ApiClients\Client\Github\Schema\SimpleInstallation(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentDeleted\PullRequest\Head', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleInstallation', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesDeleted⚡️Issue⚡️Milestone(array $payload): \ApiClients\Client\Github\Schema\WebhookIssuesDeleted\Issue\Milestone + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple(array $payload): \ApiClients\Client\Github\Schema\OrganizationSimple { $properties = []; $missingFields = []; try { - $value = $payload['closed_at'] ?? null; + $value = $payload['login'] ?? null; if ($value === null) { - $missingFields[] = 'closed_at'; - goto after_closed_at; + $missingFields[] = 'login'; + goto after_login; } - $properties['closed_at'] = $value; + $properties['login'] = $value; - after_closed_at: + after_login: - $value = $payload['closed_issues'] ?? null; + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'closed_issues'; - goto after_closed_issues; + $missingFields[] = 'id'; + goto after_id; } - $properties['closed_issues'] = $value; + $properties['id'] = $value; - after_closed_issues: + after_id: - $value = $payload['created_at'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $missingFields[] = 'created_at'; - goto after_created_at; + $missingFields[] = 'node_id'; + goto after_node_id; } - $properties['created_at'] = $value; + $properties['node_id'] = $value; - after_created_at: + after_node_id: - $value = $payload['creator'] ?? null; + $value = $payload['url'] ?? null; if ($value === null) { - $missingFields[] = 'creator'; - goto after_creator; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'creator'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'url'; + goto after_url; } - $properties['creator'] = $value; + $properties['url'] = $value; - after_creator: + after_url: - $value = $payload['description'] ?? null; + $value = $payload['repos_url'] ?? null; if ($value === null) { - $missingFields[] = 'description'; - goto after_description; - } - - $properties['description'] = $value; - - after_description: - - $value = $payload['due_on'] ?? null; - - if ($value === null) { - $missingFields[] = 'due_on'; - goto after_due_on; - } - - $properties['due_on'] = $value; - - after_due_on: - - $value = $payload['html_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'html_url'; - goto after_html_url; - } - - $properties['html_url'] = $value; - - after_html_url: - - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; - } - - $properties['id'] = $value; - - after_id: - - $value = $payload['labels_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'labels_url'; - goto after_labels_url; + $missingFields[] = 'repos_url'; + goto after_repos_url; } - $properties['labels_url'] = $value; + $properties['repos_url'] = $value; - after_labels_url: + after_repos_url: - $value = $payload['node_id'] ?? null; + $value = $payload['events_url'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $missingFields[] = 'events_url'; + goto after_events_url; } - $properties['node_id'] = $value; + $properties['events_url'] = $value; - after_node_id: + after_events_url: - $value = $payload['number'] ?? null; + $value = $payload['hooks_url'] ?? null; if ($value === null) { - $missingFields[] = 'number'; - goto after_number; + $missingFields[] = 'hooks_url'; + goto after_hooks_url; } - $properties['number'] = $value; + $properties['hooks_url'] = $value; - after_number: + after_hooks_url: - $value = $payload['open_issues'] ?? null; + $value = $payload['issues_url'] ?? null; if ($value === null) { - $missingFields[] = 'open_issues'; - goto after_open_issues; + $missingFields[] = 'issues_url'; + goto after_issues_url; } - $properties['open_issues'] = $value; + $properties['issues_url'] = $value; - after_open_issues: + after_issues_url: - $value = $payload['state'] ?? null; + $value = $payload['members_url'] ?? null; if ($value === null) { - $missingFields[] = 'state'; - goto after_state; + $missingFields[] = 'members_url'; + goto after_members_url; } - $properties['state'] = $value; + $properties['members_url'] = $value; - after_state: + after_members_url: - $value = $payload['title'] ?? null; + $value = $payload['public_members_url'] ?? null; if ($value === null) { - $missingFields[] = 'title'; - goto after_title; + $missingFields[] = 'public_members_url'; + goto after_public_members_url; } - $properties['title'] = $value; + $properties['public_members_url'] = $value; - after_title: + after_public_members_url: - $value = $payload['updated_at'] ?? null; + $value = $payload['avatar_url'] ?? null; if ($value === null) { - $missingFields[] = 'updated_at'; - goto after_updated_at; + $missingFields[] = 'avatar_url'; + goto after_avatar_url; } - $properties['updated_at'] = $value; + $properties['avatar_url'] = $value; - after_updated_at: + after_avatar_url: - $value = $payload['url'] ?? null; + $value = $payload['description'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $missingFields[] = 'description'; + goto after_description; } - $properties['url'] = $value; + $properties['description'] = $value; - after_url: + after_description: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesDeleted\Issue\Milestone', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\OrganizationSimple', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookIssuesDeleted\Issue\Milestone::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\OrganizationSimple::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\WebhookIssuesDeleted\Issue\Milestone(...$properties); + return new \ApiClients\Client\Github\Schema\OrganizationSimple(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesDeleted\Issue\Milestone', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\OrganizationSimple', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️Permissions(array $payload): \ApiClients\Client\Github\Schema\Repository\Permissions + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest { $properties = []; $missingFields = []; try { - $value = $payload['admin'] ?? null; + $value = $payload['_links'] ?? null; if ($value === null) { - $missingFields[] = 'admin'; - goto after_admin; + $missingFields[] = '_links'; + goto after__links; } - $properties['admin'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = '_links'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['_links'] = $value; - after_admin: + after__links: - $value = $payload['pull'] ?? null; + $value = $payload['active_lock_reason'] ?? null; if ($value === null) { - $missingFields[] = 'pull'; - goto after_pull; + $missingFields[] = 'active_lock_reason'; + goto after_active_lock_reason; } - $properties['pull'] = $value; + $properties['active_lock_reason'] = $value; - after_pull: + after_active_lock_reason: - $value = $payload['triage'] ?? null; + $value = $payload['additions'] ?? null; if ($value === null) { - $missingFields[] = 'triage'; - goto after_triage; + $missingFields[] = 'additions'; + goto after_additions; } - $properties['triage'] = $value; + $properties['additions'] = $value; - after_triage: + after_additions: - $value = $payload['push'] ?? null; + $value = $payload['assignee'] ?? null; if ($value === null) { - $missingFields[] = 'push'; - goto after_push; + $missingFields[] = 'assignee'; + goto after_assignee; } - $properties['push'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'assignee'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Comment⚡️User($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['assignee'] = $value; - after_push: + after_assignee: - $value = $payload['maintain'] ?? null; + $value = $payload['assignees'] ?? null; if ($value === null) { - $missingFields[] = 'maintain'; - goto after_maintain; + $missingFields[] = 'assignees'; + goto after_assignees; } - $properties['maintain'] = $value; + $properties['assignees'] = $value; - after_maintain: - - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\Permissions', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\Permissions::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\Repository\Permissions(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\Permissions', $exception, stack: $this->hydrationStack); - } - } + after_assignees: - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository(array $payload): \ApiClients\Client\Github\Schema\Repository\TemplateRepository - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['id'] ?? null; + $value = $payload['author_association'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'author_association'; + goto after_author_association; } - $properties['id'] = $value; + $properties['author_association'] = $value; - after_id: + after_author_association: - $value = $payload['node_id'] ?? null; + $value = $payload['auto_merge'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $missingFields[] = 'auto_merge'; + goto after_auto_merge; } - $properties['node_id'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'auto_merge'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️AutoMerge($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['auto_merge'] = $value; - after_node_id: + after_auto_merge: - $value = $payload['name'] ?? null; + $value = $payload['base'] ?? null; if ($value === null) { - $missingFields[] = 'name'; - goto after_name; - } - - $properties['name'] = $value; - - after_name: - - $value = $payload['full_name'] ?? null; - - if ($value === null) { - $missingFields[] = 'full_name'; - goto after_full_name; - } - - $properties['full_name'] = $value; - - after_full_name: - - $value = $payload['owner'] ?? null; - - if ($value === null) { - $missingFields[] = 'owner'; - goto after_owner; + $missingFields[] = 'base'; + goto after_base; } if (is_array($value)) { try { - $this->hydrationStack[] = 'owner'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner($value); + $this->hydrationStack[] = 'base'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Base($value); } finally { array_pop($this->hydrationStack); } } - $properties['owner'] = $value; + $properties['base'] = $value; - after_owner: + after_base: - $value = $payload['private'] ?? null; + $value = $payload['body'] ?? null; if ($value === null) { - $missingFields[] = 'private'; - goto after_private; + $missingFields[] = 'body'; + goto after_body; } - $properties['private'] = $value; + $properties['body'] = $value; - after_private: + after_body: - $value = $payload['html_url'] ?? null; + $value = $payload['changed_files'] ?? null; if ($value === null) { - $missingFields[] = 'html_url'; - goto after_html_url; + $missingFields[] = 'changed_files'; + goto after_changed_files; } - $properties['html_url'] = $value; + $properties['changed_files'] = $value; - after_html_url: + after_changed_files: - $value = $payload['description'] ?? null; + $value = $payload['closed_at'] ?? null; if ($value === null) { - $missingFields[] = 'description'; - goto after_description; + $missingFields[] = 'closed_at'; + goto after_closed_at; } - $properties['description'] = $value; + $properties['closed_at'] = $value; - after_description: + after_closed_at: - $value = $payload['fork'] ?? null; + $value = $payload['comments'] ?? null; if ($value === null) { - $missingFields[] = 'fork'; - goto after_fork; + $missingFields[] = 'comments'; + goto after_comments; } - $properties['fork'] = $value; + $properties['comments'] = $value; - after_fork: + after_comments: - $value = $payload['url'] ?? null; + $value = $payload['comments_url'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $missingFields[] = 'comments_url'; + goto after_comments_url; } - $properties['url'] = $value; + $properties['comments_url'] = $value; - after_url: + after_comments_url: - $value = $payload['archive_url'] ?? null; + $value = $payload['commits'] ?? null; if ($value === null) { - $missingFields[] = 'archive_url'; - goto after_archive_url; + $missingFields[] = 'commits'; + goto after_commits; } - $properties['archive_url'] = $value; + $properties['commits'] = $value; - after_archive_url: + after_commits: - $value = $payload['assignees_url'] ?? null; + $value = $payload['commits_url'] ?? null; if ($value === null) { - $missingFields[] = 'assignees_url'; - goto after_assignees_url; + $missingFields[] = 'commits_url'; + goto after_commits_url; } - $properties['assignees_url'] = $value; + $properties['commits_url'] = $value; - after_assignees_url: + after_commits_url: - $value = $payload['blobs_url'] ?? null; + $value = $payload['created_at'] ?? null; if ($value === null) { - $missingFields[] = 'blobs_url'; - goto after_blobs_url; + $missingFields[] = 'created_at'; + goto after_created_at; } - $properties['blobs_url'] = $value; + $properties['created_at'] = $value; - after_blobs_url: + after_created_at: - $value = $payload['branches_url'] ?? null; + $value = $payload['deletions'] ?? null; if ($value === null) { - $missingFields[] = 'branches_url'; - goto after_branches_url; + $missingFields[] = 'deletions'; + goto after_deletions; } - $properties['branches_url'] = $value; + $properties['deletions'] = $value; - after_branches_url: + after_deletions: - $value = $payload['collaborators_url'] ?? null; + $value = $payload['diff_url'] ?? null; if ($value === null) { - $missingFields[] = 'collaborators_url'; - goto after_collaborators_url; + $missingFields[] = 'diff_url'; + goto after_diff_url; } - $properties['collaborators_url'] = $value; + $properties['diff_url'] = $value; - after_collaborators_url: + after_diff_url: - $value = $payload['comments_url'] ?? null; + $value = $payload['draft'] ?? null; if ($value === null) { - $missingFields[] = 'comments_url'; - goto after_comments_url; + $missingFields[] = 'draft'; + goto after_draft; } - $properties['comments_url'] = $value; + $properties['draft'] = $value; - after_comments_url: + after_draft: - $value = $payload['commits_url'] ?? null; + $value = $payload['head'] ?? null; if ($value === null) { - $missingFields[] = 'commits_url'; - goto after_commits_url; + $missingFields[] = 'head'; + goto after_head; } - $properties['commits_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'head'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Head($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['head'] = $value; - after_commits_url: + after_head: - $value = $payload['compare_url'] ?? null; + $value = $payload['html_url'] ?? null; if ($value === null) { - $missingFields[] = 'compare_url'; - goto after_compare_url; + $missingFields[] = 'html_url'; + goto after_html_url; } - $properties['compare_url'] = $value; + $properties['html_url'] = $value; - after_compare_url: + after_html_url: - $value = $payload['contents_url'] ?? null; + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'contents_url'; - goto after_contents_url; + $missingFields[] = 'id'; + goto after_id; } - $properties['contents_url'] = $value; + $properties['id'] = $value; - after_contents_url: + after_id: - $value = $payload['contributors_url'] ?? null; + $value = $payload['issue_url'] ?? null; if ($value === null) { - $missingFields[] = 'contributors_url'; - goto after_contributors_url; + $missingFields[] = 'issue_url'; + goto after_issue_url; } - $properties['contributors_url'] = $value; + $properties['issue_url'] = $value; - after_contributors_url: + after_issue_url: - $value = $payload['deployments_url'] ?? null; + $value = $payload['labels'] ?? null; if ($value === null) { - $missingFields[] = 'deployments_url'; - goto after_deployments_url; + $missingFields[] = 'labels'; + goto after_labels; } - $properties['deployments_url'] = $value; + $properties['labels'] = $value; - after_deployments_url: + after_labels: - $value = $payload['downloads_url'] ?? null; + $value = $payload['locked'] ?? null; if ($value === null) { - $missingFields[] = 'downloads_url'; - goto after_downloads_url; + $missingFields[] = 'locked'; + goto after_locked; } - $properties['downloads_url'] = $value; + $properties['locked'] = $value; - after_downloads_url: + after_locked: - $value = $payload['events_url'] ?? null; + $value = $payload['maintainer_can_modify'] ?? null; if ($value === null) { - $missingFields[] = 'events_url'; - goto after_events_url; + $missingFields[] = 'maintainer_can_modify'; + goto after_maintainer_can_modify; } - $properties['events_url'] = $value; + $properties['maintainer_can_modify'] = $value; - after_events_url: + after_maintainer_can_modify: - $value = $payload['forks_url'] ?? null; + $value = $payload['merge_commit_sha'] ?? null; if ($value === null) { - $missingFields[] = 'forks_url'; - goto after_forks_url; + $missingFields[] = 'merge_commit_sha'; + goto after_merge_commit_sha; } - $properties['forks_url'] = $value; + $properties['merge_commit_sha'] = $value; - after_forks_url: + after_merge_commit_sha: - $value = $payload['git_commits_url'] ?? null; + $value = $payload['mergeable'] ?? null; if ($value === null) { - $missingFields[] = 'git_commits_url'; - goto after_git_commits_url; + $missingFields[] = 'mergeable'; + goto after_mergeable; } - $properties['git_commits_url'] = $value; + $properties['mergeable'] = $value; - after_git_commits_url: + after_mergeable: - $value = $payload['git_refs_url'] ?? null; + $value = $payload['mergeable_state'] ?? null; if ($value === null) { - $missingFields[] = 'git_refs_url'; - goto after_git_refs_url; + $missingFields[] = 'mergeable_state'; + goto after_mergeable_state; } - $properties['git_refs_url'] = $value; + $properties['mergeable_state'] = $value; - after_git_refs_url: + after_mergeable_state: - $value = $payload['git_tags_url'] ?? null; + $value = $payload['merged'] ?? null; if ($value === null) { - $missingFields[] = 'git_tags_url'; - goto after_git_tags_url; + $missingFields[] = 'merged'; + goto after_merged; } - $properties['git_tags_url'] = $value; + $properties['merged'] = $value; - after_git_tags_url: + after_merged: - $value = $payload['git_url'] ?? null; + $value = $payload['merged_at'] ?? null; if ($value === null) { - $missingFields[] = 'git_url'; - goto after_git_url; + $missingFields[] = 'merged_at'; + goto after_merged_at; } - $properties['git_url'] = $value; + $properties['merged_at'] = $value; - after_git_url: + after_merged_at: - $value = $payload['issue_comment_url'] ?? null; + $value = $payload['merged_by'] ?? null; if ($value === null) { - $missingFields[] = 'issue_comment_url'; - goto after_issue_comment_url; + $missingFields[] = 'merged_by'; + goto after_merged_by; } - $properties['issue_comment_url'] = $value; - - after_issue_comment_url: - - $value = $payload['issue_events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'issue_events_url'; - goto after_issue_events_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'merged_by'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['issue_events_url'] = $value; + $properties['merged_by'] = $value; - after_issue_events_url: + after_merged_by: - $value = $payload['issues_url'] ?? null; + $value = $payload['milestone'] ?? null; if ($value === null) { - $missingFields[] = 'issues_url'; - goto after_issues_url; + $missingFields[] = 'milestone'; + goto after_milestone; } - $properties['issues_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'milestone'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesAssigned⚡️Issue⚡️Milestone($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['milestone'] = $value; - after_issues_url: + after_milestone: - $value = $payload['keys_url'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $missingFields[] = 'keys_url'; - goto after_keys_url; + $missingFields[] = 'node_id'; + goto after_node_id; } - $properties['keys_url'] = $value; + $properties['node_id'] = $value; - after_keys_url: + after_node_id: - $value = $payload['labels_url'] ?? null; + $value = $payload['number'] ?? null; if ($value === null) { - $missingFields[] = 'labels_url'; - goto after_labels_url; + $missingFields[] = 'number'; + goto after_number; } - $properties['labels_url'] = $value; + $properties['number'] = $value; - after_labels_url: + after_number: - $value = $payload['languages_url'] ?? null; + $value = $payload['patch_url'] ?? null; if ($value === null) { - $missingFields[] = 'languages_url'; - goto after_languages_url; + $missingFields[] = 'patch_url'; + goto after_patch_url; } - $properties['languages_url'] = $value; + $properties['patch_url'] = $value; - after_languages_url: + after_patch_url: - $value = $payload['merges_url'] ?? null; + $value = $payload['rebaseable'] ?? null; if ($value === null) { - $missingFields[] = 'merges_url'; - goto after_merges_url; + $missingFields[] = 'rebaseable'; + goto after_rebaseable; } - $properties['merges_url'] = $value; + $properties['rebaseable'] = $value; - after_merges_url: + after_rebaseable: - $value = $payload['milestones_url'] ?? null; + $value = $payload['requested_reviewers'] ?? null; if ($value === null) { - $missingFields[] = 'milestones_url'; - goto after_milestones_url; + $missingFields[] = 'requested_reviewers'; + goto after_requested_reviewers; } - $properties['milestones_url'] = $value; + $properties['requested_reviewers'] = $value; - after_milestones_url: + after_requested_reviewers: - $value = $payload['notifications_url'] ?? null; + $value = $payload['requested_teams'] ?? null; if ($value === null) { - $missingFields[] = 'notifications_url'; - goto after_notifications_url; + $missingFields[] = 'requested_teams'; + goto after_requested_teams; } - $properties['notifications_url'] = $value; + $properties['requested_teams'] = $value; - after_notifications_url: + after_requested_teams: - $value = $payload['pulls_url'] ?? null; + $value = $payload['review_comment_url'] ?? null; if ($value === null) { - $missingFields[] = 'pulls_url'; - goto after_pulls_url; + $missingFields[] = 'review_comment_url'; + goto after_review_comment_url; } - $properties['pulls_url'] = $value; + $properties['review_comment_url'] = $value; - after_pulls_url: + after_review_comment_url: - $value = $payload['releases_url'] ?? null; + $value = $payload['review_comments'] ?? null; if ($value === null) { - $missingFields[] = 'releases_url'; - goto after_releases_url; + $missingFields[] = 'review_comments'; + goto after_review_comments; } - $properties['releases_url'] = $value; + $properties['review_comments'] = $value; - after_releases_url: + after_review_comments: - $value = $payload['ssh_url'] ?? null; + $value = $payload['review_comments_url'] ?? null; if ($value === null) { - $missingFields[] = 'ssh_url'; - goto after_ssh_url; + $missingFields[] = 'review_comments_url'; + goto after_review_comments_url; } - $properties['ssh_url'] = $value; + $properties['review_comments_url'] = $value; - after_ssh_url: + after_review_comments_url: - $value = $payload['stargazers_url'] ?? null; + $value = $payload['state'] ?? null; if ($value === null) { - $missingFields[] = 'stargazers_url'; - goto after_stargazers_url; + $missingFields[] = 'state'; + goto after_state; } - $properties['stargazers_url'] = $value; + $properties['state'] = $value; - after_stargazers_url: + after_state: $value = $payload['statuses_url'] ?? null; @@ -4018,773 +4463,769 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repo after_statuses_url: - $value = $payload['subscribers_url'] ?? null; + $value = $payload['title'] ?? null; if ($value === null) { - $missingFields[] = 'subscribers_url'; - goto after_subscribers_url; + $missingFields[] = 'title'; + goto after_title; } - $properties['subscribers_url'] = $value; + $properties['title'] = $value; - after_subscribers_url: + after_title: - $value = $payload['subscription_url'] ?? null; + $value = $payload['updated_at'] ?? null; if ($value === null) { - $missingFields[] = 'subscription_url'; - goto after_subscription_url; + $missingFields[] = 'updated_at'; + goto after_updated_at; } - $properties['subscription_url'] = $value; + $properties['updated_at'] = $value; - after_subscription_url: + after_updated_at: - $value = $payload['tags_url'] ?? null; + $value = $payload['url'] ?? null; if ($value === null) { - $missingFields[] = 'tags_url'; - goto after_tags_url; + $missingFields[] = 'url'; + goto after_url; } - $properties['tags_url'] = $value; + $properties['url'] = $value; - after_tags_url: + after_url: - $value = $payload['teams_url'] ?? null; + $value = $payload['user'] ?? null; if ($value === null) { - $missingFields[] = 'teams_url'; - goto after_teams_url; + $missingFields[] = 'user'; + goto after_user; } - $properties['teams_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'user'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Comment⚡️User($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['user'] = $value; - after_teams_url: + after_user: - $value = $payload['trees_url'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository(array $payload): \ApiClients\Client\Github\Schema\Repository + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'trees_url'; - goto after_trees_url; + $missingFields[] = 'id'; + goto after_id; } - $properties['trees_url'] = $value; + $properties['id'] = $value; - after_trees_url: + after_id: - $value = $payload['clone_url'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $missingFields[] = 'clone_url'; - goto after_clone_url; + $missingFields[] = 'node_id'; + goto after_node_id; } - $properties['clone_url'] = $value; + $properties['node_id'] = $value; - after_clone_url: + after_node_id: - $value = $payload['mirror_url'] ?? null; + $value = $payload['name'] ?? null; if ($value === null) { - $missingFields[] = 'mirror_url'; - goto after_mirror_url; + $missingFields[] = 'name'; + goto after_name; } - $properties['mirror_url'] = $value; + $properties['name'] = $value; - after_mirror_url: + after_name: - $value = $payload['hooks_url'] ?? null; + $value = $payload['full_name'] ?? null; if ($value === null) { - $missingFields[] = 'hooks_url'; - goto after_hooks_url; + $missingFields[] = 'full_name'; + goto after_full_name; } - $properties['hooks_url'] = $value; + $properties['full_name'] = $value; - after_hooks_url: + after_full_name: - $value = $payload['svn_url'] ?? null; + $value = $payload['license'] ?? null; if ($value === null) { - $missingFields[] = 'svn_url'; - goto after_svn_url; + $properties['license'] = null; + goto after_license; } - $properties['svn_url'] = $value; + $properties['license'] = $value; - after_svn_url: + after_license: - $value = $payload['homepage'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'homepage'; - goto after_homepage; + $properties['organization'] = null; + goto after_organization; } - $properties['homepage'] = $value; + $properties['organization'] = $value; - after_homepage: + after_organization: - $value = $payload['language'] ?? null; + $value = $payload['forks'] ?? null; if ($value === null) { - $missingFields[] = 'language'; - goto after_language; + $missingFields[] = 'forks'; + goto after_forks; } - $properties['language'] = $value; + $properties['forks'] = $value; - after_language: + after_forks: - $value = $payload['forks_count'] ?? null; + $value = $payload['permissions'] ?? null; if ($value === null) { - $missingFields[] = 'forks_count'; - goto after_forks_count; + $missingFields[] = 'permissions'; + goto after_permissions; } - $properties['forks_count'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'permissions'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️Permissions($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['permissions'] = $value; - after_forks_count: + after_permissions: - $value = $payload['stargazers_count'] ?? null; + $value = $payload['owner'] ?? null; if ($value === null) { - $missingFields[] = 'stargazers_count'; - goto after_stargazers_count; + $missingFields[] = 'owner'; + goto after_owner; } - $properties['stargazers_count'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'owner'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['owner'] = $value; - after_stargazers_count: + after_owner: - $value = $payload['watchers_count'] ?? null; + $value = $payload['private'] ?? null; if ($value === null) { - $missingFields[] = 'watchers_count'; - goto after_watchers_count; + $missingFields[] = 'private'; + goto after_private; } - $properties['watchers_count'] = $value; + $properties['private'] = $value; - after_watchers_count: + after_private: - $value = $payload['size'] ?? null; + $value = $payload['html_url'] ?? null; if ($value === null) { - $missingFields[] = 'size'; - goto after_size; + $missingFields[] = 'html_url'; + goto after_html_url; } - $properties['size'] = $value; + $properties['html_url'] = $value; - after_size: + after_html_url: - $value = $payload['default_branch'] ?? null; + $value = $payload['description'] ?? null; if ($value === null) { - $missingFields[] = 'default_branch'; - goto after_default_branch; + $missingFields[] = 'description'; + goto after_description; } - $properties['default_branch'] = $value; + $properties['description'] = $value; - after_default_branch: + after_description: - $value = $payload['open_issues_count'] ?? null; + $value = $payload['fork'] ?? null; if ($value === null) { - $missingFields[] = 'open_issues_count'; - goto after_open_issues_count; + $missingFields[] = 'fork'; + goto after_fork; } - $properties['open_issues_count'] = $value; + $properties['fork'] = $value; - after_open_issues_count: + after_fork: - $value = $payload['is_template'] ?? null; + $value = $payload['url'] ?? null; if ($value === null) { - $missingFields[] = 'is_template'; - goto after_is_template; + $missingFields[] = 'url'; + goto after_url; } - $properties['is_template'] = $value; + $properties['url'] = $value; - after_is_template: + after_url: - $value = $payload['topics'] ?? null; + $value = $payload['archive_url'] ?? null; if ($value === null) { - $missingFields[] = 'topics'; - goto after_topics; + $missingFields[] = 'archive_url'; + goto after_archive_url; } - $properties['topics'] = $value; + $properties['archive_url'] = $value; - after_topics: + after_archive_url: - $value = $payload['has_issues'] ?? null; + $value = $payload['assignees_url'] ?? null; if ($value === null) { - $missingFields[] = 'has_issues'; - goto after_has_issues; + $missingFields[] = 'assignees_url'; + goto after_assignees_url; } - $properties['has_issues'] = $value; + $properties['assignees_url'] = $value; - after_has_issues: + after_assignees_url: - $value = $payload['has_projects'] ?? null; + $value = $payload['blobs_url'] ?? null; if ($value === null) { - $missingFields[] = 'has_projects'; - goto after_has_projects; + $missingFields[] = 'blobs_url'; + goto after_blobs_url; } - $properties['has_projects'] = $value; + $properties['blobs_url'] = $value; - after_has_projects: + after_blobs_url: - $value = $payload['has_wiki'] ?? null; + $value = $payload['branches_url'] ?? null; if ($value === null) { - $missingFields[] = 'has_wiki'; - goto after_has_wiki; + $missingFields[] = 'branches_url'; + goto after_branches_url; } - $properties['has_wiki'] = $value; + $properties['branches_url'] = $value; - after_has_wiki: + after_branches_url: - $value = $payload['has_pages'] ?? null; + $value = $payload['collaborators_url'] ?? null; if ($value === null) { - $missingFields[] = 'has_pages'; - goto after_has_pages; + $missingFields[] = 'collaborators_url'; + goto after_collaborators_url; } - $properties['has_pages'] = $value; + $properties['collaborators_url'] = $value; - after_has_pages: + after_collaborators_url: - $value = $payload['has_downloads'] ?? null; + $value = $payload['comments_url'] ?? null; if ($value === null) { - $missingFields[] = 'has_downloads'; - goto after_has_downloads; + $missingFields[] = 'comments_url'; + goto after_comments_url; } - $properties['has_downloads'] = $value; + $properties['comments_url'] = $value; - after_has_downloads: + after_comments_url: - $value = $payload['archived'] ?? null; + $value = $payload['commits_url'] ?? null; if ($value === null) { - $missingFields[] = 'archived'; - goto after_archived; + $missingFields[] = 'commits_url'; + goto after_commits_url; } - $properties['archived'] = $value; + $properties['commits_url'] = $value; - after_archived: + after_commits_url: - $value = $payload['disabled'] ?? null; + $value = $payload['compare_url'] ?? null; if ($value === null) { - $missingFields[] = 'disabled'; - goto after_disabled; + $missingFields[] = 'compare_url'; + goto after_compare_url; } - $properties['disabled'] = $value; + $properties['compare_url'] = $value; - after_disabled: + after_compare_url: - $value = $payload['visibility'] ?? null; + $value = $payload['contents_url'] ?? null; if ($value === null) { - $missingFields[] = 'visibility'; - goto after_visibility; + $missingFields[] = 'contents_url'; + goto after_contents_url; } - $properties['visibility'] = $value; + $properties['contents_url'] = $value; - after_visibility: + after_contents_url: - $value = $payload['pushed_at'] ?? null; + $value = $payload['contributors_url'] ?? null; if ($value === null) { - $missingFields[] = 'pushed_at'; - goto after_pushed_at; + $missingFields[] = 'contributors_url'; + goto after_contributors_url; } - $properties['pushed_at'] = $value; + $properties['contributors_url'] = $value; - after_pushed_at: + after_contributors_url: - $value = $payload['created_at'] ?? null; + $value = $payload['deployments_url'] ?? null; if ($value === null) { - $missingFields[] = 'created_at'; - goto after_created_at; + $missingFields[] = 'deployments_url'; + goto after_deployments_url; } - $properties['created_at'] = $value; + $properties['deployments_url'] = $value; - after_created_at: + after_deployments_url: - $value = $payload['updated_at'] ?? null; + $value = $payload['downloads_url'] ?? null; if ($value === null) { - $missingFields[] = 'updated_at'; - goto after_updated_at; + $missingFields[] = 'downloads_url'; + goto after_downloads_url; } - $properties['updated_at'] = $value; + $properties['downloads_url'] = $value; - after_updated_at: + after_downloads_url: - $value = $payload['permissions'] ?? null; + $value = $payload['events_url'] ?? null; if ($value === null) { - $missingFields[] = 'permissions'; - goto after_permissions; + $missingFields[] = 'events_url'; + goto after_events_url; } - if (is_array($value)) { - try { - $this->hydrationStack[] = 'permissions'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Permissions($value); - } finally { - array_pop($this->hydrationStack); - } - } - - $properties['permissions'] = $value; + $properties['events_url'] = $value; - after_permissions: + after_events_url: - $value = $payload['allow_rebase_merge'] ?? null; + $value = $payload['forks_url'] ?? null; if ($value === null) { - $missingFields[] = 'allow_rebase_merge'; - goto after_allow_rebase_merge; + $missingFields[] = 'forks_url'; + goto after_forks_url; } - $properties['allow_rebase_merge'] = $value; + $properties['forks_url'] = $value; - after_allow_rebase_merge: + after_forks_url: - $value = $payload['temp_clone_token'] ?? null; + $value = $payload['git_commits_url'] ?? null; if ($value === null) { - $missingFields[] = 'temp_clone_token'; - goto after_temp_clone_token; + $missingFields[] = 'git_commits_url'; + goto after_git_commits_url; } - $properties['temp_clone_token'] = $value; + $properties['git_commits_url'] = $value; - after_temp_clone_token: + after_git_commits_url: - $value = $payload['allow_squash_merge'] ?? null; + $value = $payload['git_refs_url'] ?? null; if ($value === null) { - $missingFields[] = 'allow_squash_merge'; - goto after_allow_squash_merge; + $missingFields[] = 'git_refs_url'; + goto after_git_refs_url; } - $properties['allow_squash_merge'] = $value; + $properties['git_refs_url'] = $value; - after_allow_squash_merge: + after_git_refs_url: - $value = $payload['allow_auto_merge'] ?? null; + $value = $payload['git_tags_url'] ?? null; if ($value === null) { - $missingFields[] = 'allow_auto_merge'; - goto after_allow_auto_merge; + $missingFields[] = 'git_tags_url'; + goto after_git_tags_url; } - $properties['allow_auto_merge'] = $value; + $properties['git_tags_url'] = $value; - after_allow_auto_merge: + after_git_tags_url: - $value = $payload['delete_branch_on_merge'] ?? null; + $value = $payload['git_url'] ?? null; if ($value === null) { - $missingFields[] = 'delete_branch_on_merge'; - goto after_delete_branch_on_merge; + $missingFields[] = 'git_url'; + goto after_git_url; } - $properties['delete_branch_on_merge'] = $value; + $properties['git_url'] = $value; - after_delete_branch_on_merge: + after_git_url: - $value = $payload['allow_update_branch'] ?? null; + $value = $payload['issue_comment_url'] ?? null; if ($value === null) { - $missingFields[] = 'allow_update_branch'; - goto after_allow_update_branch; + $missingFields[] = 'issue_comment_url'; + goto after_issue_comment_url; } - $properties['allow_update_branch'] = $value; + $properties['issue_comment_url'] = $value; - after_allow_update_branch: + after_issue_comment_url: - $value = $payload['use_squash_pr_title_as_default'] ?? null; + $value = $payload['issue_events_url'] ?? null; if ($value === null) { - $missingFields[] = 'use_squash_pr_title_as_default'; - goto after_use_squash_pr_title_as_default; + $missingFields[] = 'issue_events_url'; + goto after_issue_events_url; } - $properties['use_squash_pr_title_as_default'] = $value; + $properties['issue_events_url'] = $value; - after_use_squash_pr_title_as_default: + after_issue_events_url: - $value = $payload['squash_merge_commit_title'] ?? null; + $value = $payload['issues_url'] ?? null; if ($value === null) { - $missingFields[] = 'squash_merge_commit_title'; - goto after_squash_merge_commit_title; + $missingFields[] = 'issues_url'; + goto after_issues_url; } - $properties['squash_merge_commit_title'] = $value; + $properties['issues_url'] = $value; - after_squash_merge_commit_title: + after_issues_url: - $value = $payload['squash_merge_commit_message'] ?? null; + $value = $payload['keys_url'] ?? null; if ($value === null) { - $missingFields[] = 'squash_merge_commit_message'; - goto after_squash_merge_commit_message; + $missingFields[] = 'keys_url'; + goto after_keys_url; } - $properties['squash_merge_commit_message'] = $value; + $properties['keys_url'] = $value; - after_squash_merge_commit_message: + after_keys_url: - $value = $payload['merge_commit_title'] ?? null; + $value = $payload['labels_url'] ?? null; if ($value === null) { - $missingFields[] = 'merge_commit_title'; - goto after_merge_commit_title; + $missingFields[] = 'labels_url'; + goto after_labels_url; } - $properties['merge_commit_title'] = $value; + $properties['labels_url'] = $value; - after_merge_commit_title: + after_labels_url: - $value = $payload['merge_commit_message'] ?? null; + $value = $payload['languages_url'] ?? null; if ($value === null) { - $missingFields[] = 'merge_commit_message'; - goto after_merge_commit_message; + $missingFields[] = 'languages_url'; + goto after_languages_url; } - $properties['merge_commit_message'] = $value; + $properties['languages_url'] = $value; - after_merge_commit_message: + after_languages_url: - $value = $payload['allow_merge_commit'] ?? null; + $value = $payload['merges_url'] ?? null; if ($value === null) { - $missingFields[] = 'allow_merge_commit'; - goto after_allow_merge_commit; + $missingFields[] = 'merges_url'; + goto after_merges_url; } - $properties['allow_merge_commit'] = $value; + $properties['merges_url'] = $value; - after_allow_merge_commit: + after_merges_url: - $value = $payload['subscribers_count'] ?? null; + $value = $payload['milestones_url'] ?? null; if ($value === null) { - $missingFields[] = 'subscribers_count'; - goto after_subscribers_count; + $missingFields[] = 'milestones_url'; + goto after_milestones_url; } - $properties['subscribers_count'] = $value; + $properties['milestones_url'] = $value; - after_subscribers_count: + after_milestones_url: - $value = $payload['network_count'] ?? null; + $value = $payload['notifications_url'] ?? null; if ($value === null) { - $missingFields[] = 'network_count'; - goto after_network_count; + $missingFields[] = 'notifications_url'; + goto after_notifications_url; } - $properties['network_count'] = $value; + $properties['notifications_url'] = $value; - after_network_count: - - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\TemplateRepository::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\Repository\TemplateRepository(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository', $exception, stack: $this->hydrationStack); - } - } + after_notifications_url: - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links⚡️Comments(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Links\Comments - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['href'] ?? null; + $value = $payload['pulls_url'] ?? null; if ($value === null) { - $missingFields[] = 'href'; - goto after_href; + $missingFields[] = 'pulls_url'; + goto after_pulls_url; } - $properties['href'] = $value; + $properties['pulls_url'] = $value; - after_href: - - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Links\Comments', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Links\Comments::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Links\Comments(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Links\Comments', $exception, stack: $this->hydrationStack); - } - } + after_pulls_url: - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Base⚡️Repo(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Base\Repo - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['allow_auto_merge'] ?? null; + $value = $payload['releases_url'] ?? null; if ($value === null) { - $missingFields[] = 'allow_auto_merge'; - goto after_allow_auto_merge; + $missingFields[] = 'releases_url'; + goto after_releases_url; } - $properties['allow_auto_merge'] = $value; + $properties['releases_url'] = $value; - after_allow_auto_merge: + after_releases_url: - $value = $payload['allow_forking'] ?? null; + $value = $payload['ssh_url'] ?? null; if ($value === null) { - $missingFields[] = 'allow_forking'; - goto after_allow_forking; + $missingFields[] = 'ssh_url'; + goto after_ssh_url; } - $properties['allow_forking'] = $value; + $properties['ssh_url'] = $value; - after_allow_forking: + after_ssh_url: - $value = $payload['allow_merge_commit'] ?? null; + $value = $payload['stargazers_url'] ?? null; if ($value === null) { - $missingFields[] = 'allow_merge_commit'; - goto after_allow_merge_commit; + $missingFields[] = 'stargazers_url'; + goto after_stargazers_url; } - $properties['allow_merge_commit'] = $value; + $properties['stargazers_url'] = $value; - after_allow_merge_commit: + after_stargazers_url: - $value = $payload['allow_rebase_merge'] ?? null; + $value = $payload['statuses_url'] ?? null; if ($value === null) { - $missingFields[] = 'allow_rebase_merge'; - goto after_allow_rebase_merge; + $missingFields[] = 'statuses_url'; + goto after_statuses_url; } - $properties['allow_rebase_merge'] = $value; + $properties['statuses_url'] = $value; - after_allow_rebase_merge: + after_statuses_url: - $value = $payload['allow_squash_merge'] ?? null; + $value = $payload['subscribers_url'] ?? null; if ($value === null) { - $missingFields[] = 'allow_squash_merge'; - goto after_allow_squash_merge; + $missingFields[] = 'subscribers_url'; + goto after_subscribers_url; } - $properties['allow_squash_merge'] = $value; + $properties['subscribers_url'] = $value; - after_allow_squash_merge: + after_subscribers_url: - $value = $payload['allow_update_branch'] ?? null; + $value = $payload['subscription_url'] ?? null; if ($value === null) { - $missingFields[] = 'allow_update_branch'; - goto after_allow_update_branch; + $missingFields[] = 'subscription_url'; + goto after_subscription_url; } - $properties['allow_update_branch'] = $value; + $properties['subscription_url'] = $value; - after_allow_update_branch: + after_subscription_url: - $value = $payload['archive_url'] ?? null; + $value = $payload['tags_url'] ?? null; if ($value === null) { - $missingFields[] = 'archive_url'; - goto after_archive_url; + $missingFields[] = 'tags_url'; + goto after_tags_url; } - $properties['archive_url'] = $value; + $properties['tags_url'] = $value; - after_archive_url: + after_tags_url: - $value = $payload['archived'] ?? null; + $value = $payload['teams_url'] ?? null; if ($value === null) { - $missingFields[] = 'archived'; - goto after_archived; + $missingFields[] = 'teams_url'; + goto after_teams_url; } - $properties['archived'] = $value; + $properties['teams_url'] = $value; - after_archived: + after_teams_url: - $value = $payload['assignees_url'] ?? null; + $value = $payload['trees_url'] ?? null; if ($value === null) { - $missingFields[] = 'assignees_url'; - goto after_assignees_url; + $missingFields[] = 'trees_url'; + goto after_trees_url; } - $properties['assignees_url'] = $value; + $properties['trees_url'] = $value; - after_assignees_url: + after_trees_url: - $value = $payload['blobs_url'] ?? null; + $value = $payload['clone_url'] ?? null; if ($value === null) { - $missingFields[] = 'blobs_url'; - goto after_blobs_url; + $missingFields[] = 'clone_url'; + goto after_clone_url; } - $properties['blobs_url'] = $value; + $properties['clone_url'] = $value; - after_blobs_url: + after_clone_url: - $value = $payload['branches_url'] ?? null; + $value = $payload['mirror_url'] ?? null; if ($value === null) { - $missingFields[] = 'branches_url'; - goto after_branches_url; + $missingFields[] = 'mirror_url'; + goto after_mirror_url; } - $properties['branches_url'] = $value; + $properties['mirror_url'] = $value; - after_branches_url: + after_mirror_url: - $value = $payload['clone_url'] ?? null; + $value = $payload['hooks_url'] ?? null; if ($value === null) { - $missingFields[] = 'clone_url'; - goto after_clone_url; + $missingFields[] = 'hooks_url'; + goto after_hooks_url; } - $properties['clone_url'] = $value; + $properties['hooks_url'] = $value; - after_clone_url: + after_hooks_url: - $value = $payload['collaborators_url'] ?? null; + $value = $payload['svn_url'] ?? null; if ($value === null) { - $missingFields[] = 'collaborators_url'; - goto after_collaborators_url; + $missingFields[] = 'svn_url'; + goto after_svn_url; } - $properties['collaborators_url'] = $value; + $properties['svn_url'] = $value; - after_collaborators_url: + after_svn_url: - $value = $payload['comments_url'] ?? null; + $value = $payload['homepage'] ?? null; if ($value === null) { - $missingFields[] = 'comments_url'; - goto after_comments_url; + $missingFields[] = 'homepage'; + goto after_homepage; } - $properties['comments_url'] = $value; + $properties['homepage'] = $value; - after_comments_url: + after_homepage: - $value = $payload['commits_url'] ?? null; + $value = $payload['language'] ?? null; if ($value === null) { - $missingFields[] = 'commits_url'; - goto after_commits_url; + $missingFields[] = 'language'; + goto after_language; } - $properties['commits_url'] = $value; + $properties['language'] = $value; - after_commits_url: + after_language: - $value = $payload['compare_url'] ?? null; + $value = $payload['forks_count'] ?? null; if ($value === null) { - $missingFields[] = 'compare_url'; - goto after_compare_url; + $missingFields[] = 'forks_count'; + goto after_forks_count; } - $properties['compare_url'] = $value; + $properties['forks_count'] = $value; - after_compare_url: + after_forks_count: - $value = $payload['contents_url'] ?? null; + $value = $payload['stargazers_count'] ?? null; if ($value === null) { - $missingFields[] = 'contents_url'; - goto after_contents_url; + $missingFields[] = 'stargazers_count'; + goto after_stargazers_count; } - $properties['contents_url'] = $value; + $properties['stargazers_count'] = $value; - after_contents_url: + after_stargazers_count: - $value = $payload['contributors_url'] ?? null; + $value = $payload['watchers_count'] ?? null; if ($value === null) { - $missingFields[] = 'contributors_url'; - goto after_contributors_url; + $missingFields[] = 'watchers_count'; + goto after_watchers_count; } - $properties['contributors_url'] = $value; + $properties['watchers_count'] = $value; - after_contributors_url: + after_watchers_count: - $value = $payload['created_at'] ?? null; + $value = $payload['size'] ?? null; if ($value === null) { - $properties['created_at'] = null; - goto after_created_at; + $missingFields[] = 'size'; + goto after_size; } - $properties['created_at'] = $value; + $properties['size'] = $value; - after_created_at: + after_size: $value = $payload['default_branch'] ?? null; @@ -4797,388 +5238,388 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh after_default_branch: - $value = $payload['delete_branch_on_merge'] ?? null; + $value = $payload['open_issues_count'] ?? null; if ($value === null) { - $missingFields[] = 'delete_branch_on_merge'; - goto after_delete_branch_on_merge; + $missingFields[] = 'open_issues_count'; + goto after_open_issues_count; } - $properties['delete_branch_on_merge'] = $value; + $properties['open_issues_count'] = $value; - after_delete_branch_on_merge: + after_open_issues_count: - $value = $payload['deployments_url'] ?? null; + $value = $payload['is_template'] ?? null; if ($value === null) { - $missingFields[] = 'deployments_url'; - goto after_deployments_url; + $missingFields[] = 'is_template'; + goto after_is_template; } - $properties['deployments_url'] = $value; + $properties['is_template'] = $value; - after_deployments_url: + after_is_template: - $value = $payload['description'] ?? null; + $value = $payload['topics'] ?? null; if ($value === null) { - $missingFields[] = 'description'; - goto after_description; + $missingFields[] = 'topics'; + goto after_topics; } - $properties['description'] = $value; + $properties['topics'] = $value; - after_description: + after_topics: - $value = $payload['disabled'] ?? null; + $value = $payload['has_issues'] ?? null; if ($value === null) { - $missingFields[] = 'disabled'; - goto after_disabled; + $missingFields[] = 'has_issues'; + goto after_has_issues; } - $properties['disabled'] = $value; + $properties['has_issues'] = $value; - after_disabled: + after_has_issues: - $value = $payload['downloads_url'] ?? null; + $value = $payload['has_projects'] ?? null; if ($value === null) { - $missingFields[] = 'downloads_url'; - goto after_downloads_url; + $missingFields[] = 'has_projects'; + goto after_has_projects; } - $properties['downloads_url'] = $value; + $properties['has_projects'] = $value; - after_downloads_url: + after_has_projects: - $value = $payload['events_url'] ?? null; + $value = $payload['has_wiki'] ?? null; if ($value === null) { - $missingFields[] = 'events_url'; - goto after_events_url; + $missingFields[] = 'has_wiki'; + goto after_has_wiki; } - $properties['events_url'] = $value; + $properties['has_wiki'] = $value; - after_events_url: + after_has_wiki: - $value = $payload['fork'] ?? null; + $value = $payload['has_pages'] ?? null; if ($value === null) { - $missingFields[] = 'fork'; - goto after_fork; + $missingFields[] = 'has_pages'; + goto after_has_pages; } - $properties['fork'] = $value; + $properties['has_pages'] = $value; - after_fork: + after_has_pages: - $value = $payload['forks'] ?? null; + $value = $payload['has_downloads'] ?? null; if ($value === null) { - $missingFields[] = 'forks'; - goto after_forks; + $missingFields[] = 'has_downloads'; + goto after_has_downloads; } - $properties['forks'] = $value; + $properties['has_downloads'] = $value; - after_forks: + after_has_downloads: - $value = $payload['forks_count'] ?? null; + $value = $payload['has_discussions'] ?? null; if ($value === null) { - $missingFields[] = 'forks_count'; - goto after_forks_count; + $missingFields[] = 'has_discussions'; + goto after_has_discussions; } - $properties['forks_count'] = $value; + $properties['has_discussions'] = $value; - after_forks_count: + after_has_discussions: - $value = $payload['forks_url'] ?? null; + $value = $payload['archived'] ?? null; if ($value === null) { - $missingFields[] = 'forks_url'; - goto after_forks_url; + $missingFields[] = 'archived'; + goto after_archived; } - $properties['forks_url'] = $value; + $properties['archived'] = $value; - after_forks_url: + after_archived: - $value = $payload['full_name'] ?? null; + $value = $payload['disabled'] ?? null; if ($value === null) { - $missingFields[] = 'full_name'; - goto after_full_name; + $missingFields[] = 'disabled'; + goto after_disabled; } - $properties['full_name'] = $value; + $properties['disabled'] = $value; - after_full_name: + after_disabled: - $value = $payload['git_commits_url'] ?? null; + $value = $payload['visibility'] ?? null; if ($value === null) { - $missingFields[] = 'git_commits_url'; - goto after_git_commits_url; + $missingFields[] = 'visibility'; + goto after_visibility; } - $properties['git_commits_url'] = $value; + $properties['visibility'] = $value; - after_git_commits_url: + after_visibility: - $value = $payload['git_refs_url'] ?? null; + $value = $payload['pushed_at'] ?? null; if ($value === null) { - $missingFields[] = 'git_refs_url'; - goto after_git_refs_url; + $missingFields[] = 'pushed_at'; + goto after_pushed_at; } - $properties['git_refs_url'] = $value; + $properties['pushed_at'] = $value; - after_git_refs_url: + after_pushed_at: - $value = $payload['git_tags_url'] ?? null; + $value = $payload['created_at'] ?? null; if ($value === null) { - $missingFields[] = 'git_tags_url'; - goto after_git_tags_url; + $missingFields[] = 'created_at'; + goto after_created_at; } - $properties['git_tags_url'] = $value; + $properties['created_at'] = $value; - after_git_tags_url: + after_created_at: - $value = $payload['git_url'] ?? null; + $value = $payload['updated_at'] ?? null; if ($value === null) { - $missingFields[] = 'git_url'; - goto after_git_url; + $missingFields[] = 'updated_at'; + goto after_updated_at; } - $properties['git_url'] = $value; + $properties['updated_at'] = $value; - after_git_url: + after_updated_at: - $value = $payload['has_downloads'] ?? null; + $value = $payload['allow_rebase_merge'] ?? null; if ($value === null) { - $missingFields[] = 'has_downloads'; - goto after_has_downloads; + $missingFields[] = 'allow_rebase_merge'; + goto after_allow_rebase_merge; } - $properties['has_downloads'] = $value; + $properties['allow_rebase_merge'] = $value; - after_has_downloads: + after_allow_rebase_merge: - $value = $payload['has_issues'] ?? null; + $value = $payload['template_repository'] ?? null; if ($value === null) { - $missingFields[] = 'has_issues'; - goto after_has_issues; + $missingFields[] = 'template_repository'; + goto after_template_repository; } - $properties['has_issues'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'template_repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['template_repository'] = $value; - after_has_issues: + after_template_repository: - $value = $payload['has_pages'] ?? null; + $value = $payload['temp_clone_token'] ?? null; if ($value === null) { - $missingFields[] = 'has_pages'; - goto after_has_pages; + $missingFields[] = 'temp_clone_token'; + goto after_temp_clone_token; } - $properties['has_pages'] = $value; + $properties['temp_clone_token'] = $value; - after_has_pages: + after_temp_clone_token: - $value = $payload['has_projects'] ?? null; + $value = $payload['allow_squash_merge'] ?? null; if ($value === null) { - $missingFields[] = 'has_projects'; - goto after_has_projects; + $missingFields[] = 'allow_squash_merge'; + goto after_allow_squash_merge; } - $properties['has_projects'] = $value; + $properties['allow_squash_merge'] = $value; - after_has_projects: + after_allow_squash_merge: - $value = $payload['has_wiki'] ?? null; + $value = $payload['allow_auto_merge'] ?? null; if ($value === null) { - $missingFields[] = 'has_wiki'; - goto after_has_wiki; + $missingFields[] = 'allow_auto_merge'; + goto after_allow_auto_merge; } - $properties['has_wiki'] = $value; + $properties['allow_auto_merge'] = $value; - after_has_wiki: + after_allow_auto_merge: - $value = $payload['has_discussions'] ?? null; + $value = $payload['delete_branch_on_merge'] ?? null; if ($value === null) { - $missingFields[] = 'has_discussions'; - goto after_has_discussions; + $missingFields[] = 'delete_branch_on_merge'; + goto after_delete_branch_on_merge; } - $properties['has_discussions'] = $value; + $properties['delete_branch_on_merge'] = $value; - after_has_discussions: + after_delete_branch_on_merge: - $value = $payload['homepage'] ?? null; + $value = $payload['allow_update_branch'] ?? null; if ($value === null) { - $missingFields[] = 'homepage'; - goto after_homepage; + $missingFields[] = 'allow_update_branch'; + goto after_allow_update_branch; } - $properties['homepage'] = $value; + $properties['allow_update_branch'] = $value; - after_homepage: + after_allow_update_branch: - $value = $payload['hooks_url'] ?? null; + $value = $payload['use_squash_pr_title_as_default'] ?? null; if ($value === null) { - $missingFields[] = 'hooks_url'; - goto after_hooks_url; + $missingFields[] = 'use_squash_pr_title_as_default'; + goto after_use_squash_pr_title_as_default; } - $properties['hooks_url'] = $value; + $properties['use_squash_pr_title_as_default'] = $value; - after_hooks_url: + after_use_squash_pr_title_as_default: - $value = $payload['html_url'] ?? null; + $value = $payload['squash_merge_commit_title'] ?? null; if ($value === null) { - $missingFields[] = 'html_url'; - goto after_html_url; + $missingFields[] = 'squash_merge_commit_title'; + goto after_squash_merge_commit_title; } - $properties['html_url'] = $value; + $properties['squash_merge_commit_title'] = $value; - after_html_url: + after_squash_merge_commit_title: - $value = $payload['id'] ?? null; + $value = $payload['squash_merge_commit_message'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'squash_merge_commit_message'; + goto after_squash_merge_commit_message; } - $properties['id'] = $value; + $properties['squash_merge_commit_message'] = $value; - after_id: + after_squash_merge_commit_message: - $value = $payload['is_template'] ?? null; + $value = $payload['merge_commit_title'] ?? null; if ($value === null) { - $missingFields[] = 'is_template'; - goto after_is_template; + $missingFields[] = 'merge_commit_title'; + goto after_merge_commit_title; } - $properties['is_template'] = $value; + $properties['merge_commit_title'] = $value; - after_is_template: + after_merge_commit_title: - $value = $payload['issue_comment_url'] ?? null; + $value = $payload['merge_commit_message'] ?? null; if ($value === null) { - $missingFields[] = 'issue_comment_url'; - goto after_issue_comment_url; + $missingFields[] = 'merge_commit_message'; + goto after_merge_commit_message; } - $properties['issue_comment_url'] = $value; + $properties['merge_commit_message'] = $value; - after_issue_comment_url: + after_merge_commit_message: - $value = $payload['issue_events_url'] ?? null; + $value = $payload['allow_merge_commit'] ?? null; if ($value === null) { - $missingFields[] = 'issue_events_url'; - goto after_issue_events_url; + $missingFields[] = 'allow_merge_commit'; + goto after_allow_merge_commit; } - $properties['issue_events_url'] = $value; + $properties['allow_merge_commit'] = $value; - after_issue_events_url: + after_allow_merge_commit: - $value = $payload['issues_url'] ?? null; + $value = $payload['allow_forking'] ?? null; if ($value === null) { - $missingFields[] = 'issues_url'; - goto after_issues_url; + $missingFields[] = 'allow_forking'; + goto after_allow_forking; } - $properties['issues_url'] = $value; + $properties['allow_forking'] = $value; - after_issues_url: + after_allow_forking: - $value = $payload['keys_url'] ?? null; + $value = $payload['web_commit_signoff_required'] ?? null; if ($value === null) { - $missingFields[] = 'keys_url'; - goto after_keys_url; + $missingFields[] = 'web_commit_signoff_required'; + goto after_web_commit_signoff_required; } - $properties['keys_url'] = $value; + $properties['web_commit_signoff_required'] = $value; - after_keys_url: + after_web_commit_signoff_required: - $value = $payload['labels_url'] ?? null; + $value = $payload['subscribers_count'] ?? null; if ($value === null) { - $missingFields[] = 'labels_url'; - goto after_labels_url; + $missingFields[] = 'subscribers_count'; + goto after_subscribers_count; } - $properties['labels_url'] = $value; + $properties['subscribers_count'] = $value; - after_labels_url: + after_subscribers_count: - $value = $payload['language'] ?? null; + $value = $payload['network_count'] ?? null; if ($value === null) { - $missingFields[] = 'language'; - goto after_language; + $missingFields[] = 'network_count'; + goto after_network_count; } - $properties['language'] = $value; + $properties['network_count'] = $value; - after_language: + after_network_count: - $value = $payload['languages_url'] ?? null; + $value = $payload['open_issues'] ?? null; if ($value === null) { - $missingFields[] = 'languages_url'; - goto after_languages_url; + $missingFields[] = 'open_issues'; + goto after_open_issues; } - $properties['languages_url'] = $value; + $properties['open_issues'] = $value; - after_languages_url: + after_open_issues: - $value = $payload['license'] ?? null; + $value = $payload['watchers'] ?? null; if ($value === null) { - $missingFields[] = 'license'; - goto after_license; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'license'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionTransferred⚡️Changes⚡️NewRepository⚡️License($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'watchers'; + goto after_watchers; } - $properties['license'] = $value; + $properties['watchers'] = $value; - after_license: + after_watchers: $value = $payload['master_branch'] ?? null; @@ -5191,71 +5632,93 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh after_master_branch: - $value = $payload['merge_commit_message'] ?? null; + $value = $payload['starred_at'] ?? null; if ($value === null) { - $missingFields[] = 'merge_commit_message'; - goto after_merge_commit_message; + $missingFields[] = 'starred_at'; + goto after_starred_at; } - $properties['merge_commit_message'] = $value; + $properties['starred_at'] = $value; - after_merge_commit_message: + after_starred_at: - $value = $payload['merge_commit_title'] ?? null; + $value = $payload['anonymous_access_enabled'] ?? null; if ($value === null) { - $missingFields[] = 'merge_commit_title'; - goto after_merge_commit_title; + $missingFields[] = 'anonymous_access_enabled'; + goto after_anonymous_access_enabled; } - $properties['merge_commit_title'] = $value; + $properties['anonymous_access_enabled'] = $value; - after_merge_commit_title: + after_anonymous_access_enabled: - $value = $payload['merges_url'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\Repository(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser(array $payload): \ApiClients\Client\Github\Schema\SimpleUser + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['name'] ?? null; if ($value === null) { - $missingFields[] = 'merges_url'; - goto after_merges_url; + $missingFields[] = 'name'; + goto after_name; } - $properties['merges_url'] = $value; + $properties['name'] = $value; - after_merges_url: + after_name: - $value = $payload['milestones_url'] ?? null; + $value = $payload['email'] ?? null; if ($value === null) { - $missingFields[] = 'milestones_url'; - goto after_milestones_url; + $missingFields[] = 'email'; + goto after_email; } - $properties['milestones_url'] = $value; + $properties['email'] = $value; - after_milestones_url: + after_email: - $value = $payload['mirror_url'] ?? null; + $value = $payload['login'] ?? null; if ($value === null) { - $missingFields[] = 'mirror_url'; - goto after_mirror_url; + $missingFields[] = 'login'; + goto after_login; } - $properties['mirror_url'] = $value; + $properties['login'] = $value; - after_mirror_url: + after_login: - $value = $payload['name'] ?? null; + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'name'; - goto after_name; + $missingFields[] = 'id'; + goto after_id; } - $properties['name'] = $value; + $properties['id'] = $value; - after_name: + after_id: $value = $payload['node_id'] ?? null; @@ -5268,2051 +5731,20084 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh after_node_id: - $value = $payload['notifications_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'notifications_url'; - goto after_notifications_url; - } - - $properties['notifications_url'] = $value; - - after_notifications_url: - - $value = $payload['open_issues'] ?? null; + $value = $payload['avatar_url'] ?? null; if ($value === null) { - $missingFields[] = 'open_issues'; - goto after_open_issues; + $missingFields[] = 'avatar_url'; + goto after_avatar_url; } - $properties['open_issues'] = $value; + $properties['avatar_url'] = $value; - after_open_issues: + after_avatar_url: - $value = $payload['open_issues_count'] ?? null; + $value = $payload['gravatar_id'] ?? null; if ($value === null) { - $missingFields[] = 'open_issues_count'; - goto after_open_issues_count; + $missingFields[] = 'gravatar_id'; + goto after_gravatar_id; } - $properties['open_issues_count'] = $value; + $properties['gravatar_id'] = $value; - after_open_issues_count: + after_gravatar_id: - $value = $payload['organization'] ?? null; + $value = $payload['url'] ?? null; if ($value === null) { - $missingFields[] = 'organization'; - goto after_organization; + $missingFields[] = 'url'; + goto after_url; } - $properties['organization'] = $value; + $properties['url'] = $value; - after_organization: + after_url: - $value = $payload['owner'] ?? null; + $value = $payload['html_url'] ?? null; if ($value === null) { - $missingFields[] = 'owner'; - goto after_owner; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'owner'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'html_url'; + goto after_html_url; } - $properties['owner'] = $value; + $properties['html_url'] = $value; - after_owner: + after_html_url: - $value = $payload['permissions'] ?? null; + $value = $payload['followers_url'] ?? null; if ($value === null) { - $missingFields[] = 'permissions'; - goto after_permissions; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'permissions'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionTransferred⚡️Changes⚡️NewRepository⚡️Permissions($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'followers_url'; + goto after_followers_url; } - $properties['permissions'] = $value; + $properties['followers_url'] = $value; - after_permissions: + after_followers_url: - $value = $payload['private'] ?? null; + $value = $payload['following_url'] ?? null; if ($value === null) { - $missingFields[] = 'private'; - goto after_private; + $missingFields[] = 'following_url'; + goto after_following_url; } - $properties['private'] = $value; + $properties['following_url'] = $value; - after_private: + after_following_url: - $value = $payload['public'] ?? null; + $value = $payload['gists_url'] ?? null; if ($value === null) { - $missingFields[] = 'public'; - goto after_public; + $missingFields[] = 'gists_url'; + goto after_gists_url; } - $properties['public'] = $value; + $properties['gists_url'] = $value; - after_public: + after_gists_url: - $value = $payload['pulls_url'] ?? null; + $value = $payload['starred_url'] ?? null; if ($value === null) { - $missingFields[] = 'pulls_url'; - goto after_pulls_url; + $missingFields[] = 'starred_url'; + goto after_starred_url; } - $properties['pulls_url'] = $value; + $properties['starred_url'] = $value; - after_pulls_url: + after_starred_url: - $value = $payload['pushed_at'] ?? null; + $value = $payload['subscriptions_url'] ?? null; if ($value === null) { - $properties['pushed_at'] = null; - goto after_pushed_at; + $missingFields[] = 'subscriptions_url'; + goto after_subscriptions_url; } - $properties['pushed_at'] = $value; + $properties['subscriptions_url'] = $value; - after_pushed_at: + after_subscriptions_url: - $value = $payload['releases_url'] ?? null; + $value = $payload['organizations_url'] ?? null; if ($value === null) { - $missingFields[] = 'releases_url'; - goto after_releases_url; + $missingFields[] = 'organizations_url'; + goto after_organizations_url; } - $properties['releases_url'] = $value; + $properties['organizations_url'] = $value; - after_releases_url: + after_organizations_url: - $value = $payload['role_name'] ?? null; + $value = $payload['repos_url'] ?? null; if ($value === null) { - $missingFields[] = 'role_name'; - goto after_role_name; + $missingFields[] = 'repos_url'; + goto after_repos_url; } - $properties['role_name'] = $value; + $properties['repos_url'] = $value; - after_role_name: + after_repos_url: - $value = $payload['size'] ?? null; + $value = $payload['events_url'] ?? null; if ($value === null) { - $missingFields[] = 'size'; - goto after_size; + $missingFields[] = 'events_url'; + goto after_events_url; } - $properties['size'] = $value; + $properties['events_url'] = $value; - after_size: + after_events_url: - $value = $payload['squash_merge_commit_message'] ?? null; + $value = $payload['received_events_url'] ?? null; if ($value === null) { - $missingFields[] = 'squash_merge_commit_message'; - goto after_squash_merge_commit_message; + $missingFields[] = 'received_events_url'; + goto after_received_events_url; } - $properties['squash_merge_commit_message'] = $value; + $properties['received_events_url'] = $value; - after_squash_merge_commit_message: + after_received_events_url: - $value = $payload['squash_merge_commit_title'] ?? null; + $value = $payload['type'] ?? null; if ($value === null) { - $missingFields[] = 'squash_merge_commit_title'; - goto after_squash_merge_commit_title; + $missingFields[] = 'type'; + goto after_type; } - $properties['squash_merge_commit_title'] = $value; + $properties['type'] = $value; - after_squash_merge_commit_title: + after_type: - $value = $payload['ssh_url'] ?? null; + $value = $payload['site_admin'] ?? null; if ($value === null) { - $missingFields[] = 'ssh_url'; - goto after_ssh_url; + $missingFields[] = 'site_admin'; + goto after_site_admin; } - $properties['ssh_url'] = $value; + $properties['site_admin'] = $value; - after_ssh_url: + after_site_admin: - $value = $payload['stargazers'] ?? null; + $value = $payload['starred_at'] ?? null; if ($value === null) { - $missingFields[] = 'stargazers'; - goto after_stargazers; + $missingFields[] = 'starred_at'; + goto after_starred_at; } - $properties['stargazers'] = $value; + $properties['starred_at'] = $value; - after_stargazers: + after_starred_at: - $value = $payload['stargazers_count'] ?? null; - - if ($value === null) { - $missingFields[] = 'stargazers_count'; - goto after_stargazers_count; - } - - $properties['stargazers_count'] = $value; - - after_stargazers_count: + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleUser', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\SimpleUser::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\SimpleUser(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleUser', $exception, stack: $this->hydrationStack); + } + } - $value = $payload['stargazers_url'] ?? null; + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAutoMergeDisabled⚡️PullRequest(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestAutoMergeDisabled\PullRequest + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['_links'] ?? null; if ($value === null) { - $missingFields[] = 'stargazers_url'; - goto after_stargazers_url; + $missingFields[] = '_links'; + goto after__links; } - $properties['stargazers_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = '_links'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['_links'] = $value; - after_stargazers_url: + after__links: - $value = $payload['statuses_url'] ?? null; + $value = $payload['active_lock_reason'] ?? null; if ($value === null) { - $missingFields[] = 'statuses_url'; - goto after_statuses_url; + $missingFields[] = 'active_lock_reason'; + goto after_active_lock_reason; } - $properties['statuses_url'] = $value; + $properties['active_lock_reason'] = $value; - after_statuses_url: + after_active_lock_reason: - $value = $payload['subscribers_url'] ?? null; + $value = $payload['additions'] ?? null; if ($value === null) { - $missingFields[] = 'subscribers_url'; - goto after_subscribers_url; + $missingFields[] = 'additions'; + goto after_additions; } - $properties['subscribers_url'] = $value; + $properties['additions'] = $value; - after_subscribers_url: + after_additions: - $value = $payload['subscription_url'] ?? null; + $value = $payload['assignee'] ?? null; if ($value === null) { - $missingFields[] = 'subscription_url'; - goto after_subscription_url; + $missingFields[] = 'assignee'; + goto after_assignee; } - $properties['subscription_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'assignee'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['assignee'] = $value; - after_subscription_url: + after_assignee: - $value = $payload['svn_url'] ?? null; + $value = $payload['assignees'] ?? null; if ($value === null) { - $missingFields[] = 'svn_url'; - goto after_svn_url; + $missingFields[] = 'assignees'; + goto after_assignees; } - $properties['svn_url'] = $value; + $properties['assignees'] = $value; - after_svn_url: + after_assignees: - $value = $payload['tags_url'] ?? null; + $value = $payload['author_association'] ?? null; if ($value === null) { - $missingFields[] = 'tags_url'; - goto after_tags_url; + $missingFields[] = 'author_association'; + goto after_author_association; } - $properties['tags_url'] = $value; + $properties['author_association'] = $value; - after_tags_url: + after_author_association: - $value = $payload['teams_url'] ?? null; + $value = $payload['auto_merge'] ?? null; if ($value === null) { - $missingFields[] = 'teams_url'; - goto after_teams_url; + $missingFields[] = 'auto_merge'; + goto after_auto_merge; } - $properties['teams_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'auto_merge'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️AutoMerge($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['auto_merge'] = $value; - after_teams_url: + after_auto_merge: - $value = $payload['topics'] ?? null; + $value = $payload['base'] ?? null; if ($value === null) { - $missingFields[] = 'topics'; - goto after_topics; + $missingFields[] = 'base'; + goto after_base; } - $properties['topics'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'base'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAutoMergeDisabled⚡️PullRequest⚡️Base($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['base'] = $value; - after_topics: + after_base: - $value = $payload['trees_url'] ?? null; + $value = $payload['body'] ?? null; if ($value === null) { - $missingFields[] = 'trees_url'; - goto after_trees_url; + $missingFields[] = 'body'; + goto after_body; } - $properties['trees_url'] = $value; + $properties['body'] = $value; - after_trees_url: + after_body: - $value = $payload['updated_at'] ?? null; + $value = $payload['changed_files'] ?? null; if ($value === null) { - $missingFields[] = 'updated_at'; - goto after_updated_at; + $missingFields[] = 'changed_files'; + goto after_changed_files; } - $properties['updated_at'] = $value; + $properties['changed_files'] = $value; - after_updated_at: + after_changed_files: - $value = $payload['url'] ?? null; + $value = $payload['closed_at'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $missingFields[] = 'closed_at'; + goto after_closed_at; } - $properties['url'] = $value; + $properties['closed_at'] = $value; - after_url: + after_closed_at: - $value = $payload['use_squash_pr_title_as_default'] ?? null; + $value = $payload['comments'] ?? null; if ($value === null) { - $missingFields[] = 'use_squash_pr_title_as_default'; - goto after_use_squash_pr_title_as_default; + $missingFields[] = 'comments'; + goto after_comments; } - $properties['use_squash_pr_title_as_default'] = $value; + $properties['comments'] = $value; - after_use_squash_pr_title_as_default: + after_comments: - $value = $payload['visibility'] ?? null; + $value = $payload['comments_url'] ?? null; if ($value === null) { - $missingFields[] = 'visibility'; - goto after_visibility; + $missingFields[] = 'comments_url'; + goto after_comments_url; } - $properties['visibility'] = $value; + $properties['comments_url'] = $value; - after_visibility: + after_comments_url: - $value = $payload['watchers'] ?? null; + $value = $payload['commits'] ?? null; if ($value === null) { - $missingFields[] = 'watchers'; - goto after_watchers; + $missingFields[] = 'commits'; + goto after_commits; } - $properties['watchers'] = $value; + $properties['commits'] = $value; - after_watchers: + after_commits: - $value = $payload['watchers_count'] ?? null; + $value = $payload['commits_url'] ?? null; if ($value === null) { - $missingFields[] = 'watchers_count'; - goto after_watchers_count; + $missingFields[] = 'commits_url'; + goto after_commits_url; } - $properties['watchers_count'] = $value; + $properties['commits_url'] = $value; - after_watchers_count: + after_commits_url: - $value = $payload['web_commit_signoff_required'] ?? null; + $value = $payload['created_at'] ?? null; if ($value === null) { - $missingFields[] = 'web_commit_signoff_required'; - goto after_web_commit_signoff_required; + $missingFields[] = 'created_at'; + goto after_created_at; } - $properties['web_commit_signoff_required'] = $value; + $properties['created_at'] = $value; - after_web_commit_signoff_required: - - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Base\Repo', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Base\Repo::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Base\Repo(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Base\Repo', $exception, stack: $this->hydrationStack); - } - } + after_created_at: - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Head⚡️Repo(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Head\Repo - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['allow_auto_merge'] ?? null; + $value = $payload['deletions'] ?? null; if ($value === null) { - $missingFields[] = 'allow_auto_merge'; - goto after_allow_auto_merge; + $missingFields[] = 'deletions'; + goto after_deletions; } - $properties['allow_auto_merge'] = $value; + $properties['deletions'] = $value; - after_allow_auto_merge: + after_deletions: - $value = $payload['allow_forking'] ?? null; + $value = $payload['diff_url'] ?? null; if ($value === null) { - $missingFields[] = 'allow_forking'; - goto after_allow_forking; + $missingFields[] = 'diff_url'; + goto after_diff_url; } - $properties['allow_forking'] = $value; + $properties['diff_url'] = $value; - after_allow_forking: + after_diff_url: - $value = $payload['allow_merge_commit'] ?? null; + $value = $payload['draft'] ?? null; if ($value === null) { - $missingFields[] = 'allow_merge_commit'; - goto after_allow_merge_commit; + $missingFields[] = 'draft'; + goto after_draft; } - $properties['allow_merge_commit'] = $value; + $properties['draft'] = $value; - after_allow_merge_commit: + after_draft: - $value = $payload['allow_rebase_merge'] ?? null; + $value = $payload['head'] ?? null; if ($value === null) { - $missingFields[] = 'allow_rebase_merge'; - goto after_allow_rebase_merge; + $missingFields[] = 'head'; + goto after_head; } - $properties['allow_rebase_merge'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'head'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Base($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['head'] = $value; - after_allow_rebase_merge: + after_head: - $value = $payload['allow_squash_merge'] ?? null; + $value = $payload['html_url'] ?? null; if ($value === null) { - $missingFields[] = 'allow_squash_merge'; - goto after_allow_squash_merge; + $missingFields[] = 'html_url'; + goto after_html_url; } - $properties['allow_squash_merge'] = $value; + $properties['html_url'] = $value; - after_allow_squash_merge: + after_html_url: - $value = $payload['allow_update_branch'] ?? null; + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'allow_update_branch'; - goto after_allow_update_branch; + $missingFields[] = 'id'; + goto after_id; } - $properties['allow_update_branch'] = $value; + $properties['id'] = $value; - after_allow_update_branch: + after_id: - $value = $payload['archive_url'] ?? null; + $value = $payload['issue_url'] ?? null; if ($value === null) { - $missingFields[] = 'archive_url'; - goto after_archive_url; + $missingFields[] = 'issue_url'; + goto after_issue_url; } - $properties['archive_url'] = $value; + $properties['issue_url'] = $value; - after_archive_url: + after_issue_url: - $value = $payload['archived'] ?? null; + $value = $payload['labels'] ?? null; if ($value === null) { - $missingFields[] = 'archived'; - goto after_archived; + $missingFields[] = 'labels'; + goto after_labels; } - $properties['archived'] = $value; + $properties['labels'] = $value; - after_archived: + after_labels: - $value = $payload['assignees_url'] ?? null; + $value = $payload['locked'] ?? null; if ($value === null) { - $missingFields[] = 'assignees_url'; - goto after_assignees_url; + $missingFields[] = 'locked'; + goto after_locked; } - $properties['assignees_url'] = $value; + $properties['locked'] = $value; - after_assignees_url: + after_locked: - $value = $payload['blobs_url'] ?? null; + $value = $payload['maintainer_can_modify'] ?? null; if ($value === null) { - $missingFields[] = 'blobs_url'; - goto after_blobs_url; + $missingFields[] = 'maintainer_can_modify'; + goto after_maintainer_can_modify; } - $properties['blobs_url'] = $value; + $properties['maintainer_can_modify'] = $value; - after_blobs_url: + after_maintainer_can_modify: - $value = $payload['branches_url'] ?? null; + $value = $payload['merge_commit_sha'] ?? null; if ($value === null) { - $missingFields[] = 'branches_url'; - goto after_branches_url; + $missingFields[] = 'merge_commit_sha'; + goto after_merge_commit_sha; } - $properties['branches_url'] = $value; + $properties['merge_commit_sha'] = $value; - after_branches_url: + after_merge_commit_sha: - $value = $payload['clone_url'] ?? null; + $value = $payload['mergeable'] ?? null; if ($value === null) { - $missingFields[] = 'clone_url'; - goto after_clone_url; + $missingFields[] = 'mergeable'; + goto after_mergeable; } - $properties['clone_url'] = $value; + $properties['mergeable'] = $value; - after_clone_url: + after_mergeable: - $value = $payload['collaborators_url'] ?? null; + $value = $payload['mergeable_state'] ?? null; if ($value === null) { - $missingFields[] = 'collaborators_url'; - goto after_collaborators_url; + $missingFields[] = 'mergeable_state'; + goto after_mergeable_state; } - $properties['collaborators_url'] = $value; + $properties['mergeable_state'] = $value; - after_collaborators_url: + after_mergeable_state: - $value = $payload['comments_url'] ?? null; + $value = $payload['merged'] ?? null; if ($value === null) { - $missingFields[] = 'comments_url'; - goto after_comments_url; + $missingFields[] = 'merged'; + goto after_merged; } - $properties['comments_url'] = $value; + $properties['merged'] = $value; - after_comments_url: + after_merged: - $value = $payload['commits_url'] ?? null; + $value = $payload['merged_at'] ?? null; if ($value === null) { - $missingFields[] = 'commits_url'; - goto after_commits_url; + $missingFields[] = 'merged_at'; + goto after_merged_at; } - $properties['commits_url'] = $value; + $properties['merged_at'] = $value; - after_commits_url: + after_merged_at: - $value = $payload['compare_url'] ?? null; + $value = $payload['merged_by'] ?? null; if ($value === null) { - $missingFields[] = 'compare_url'; - goto after_compare_url; + $missingFields[] = 'merged_by'; + goto after_merged_by; } - $properties['compare_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'merged_by'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['merged_by'] = $value; - after_compare_url: + after_merged_by: - $value = $payload['contents_url'] ?? null; + $value = $payload['milestone'] ?? null; if ($value === null) { - $missingFields[] = 'contents_url'; - goto after_contents_url; + $missingFields[] = 'milestone'; + goto after_milestone; } - $properties['contents_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'milestone'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesDeleted⚡️Issue⚡️Milestone($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['milestone'] = $value; - after_contents_url: + after_milestone: - $value = $payload['contributors_url'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $missingFields[] = 'contributors_url'; - goto after_contributors_url; + $missingFields[] = 'node_id'; + goto after_node_id; } - $properties['contributors_url'] = $value; + $properties['node_id'] = $value; - after_contributors_url: + after_node_id: - $value = $payload['created_at'] ?? null; + $value = $payload['number'] ?? null; if ($value === null) { - $properties['created_at'] = null; - goto after_created_at; + $missingFields[] = 'number'; + goto after_number; } - $properties['created_at'] = $value; + $properties['number'] = $value; - after_created_at: + after_number: - $value = $payload['default_branch'] ?? null; + $value = $payload['patch_url'] ?? null; if ($value === null) { - $missingFields[] = 'default_branch'; - goto after_default_branch; + $missingFields[] = 'patch_url'; + goto after_patch_url; } - $properties['default_branch'] = $value; + $properties['patch_url'] = $value; - after_default_branch: + after_patch_url: - $value = $payload['delete_branch_on_merge'] ?? null; + $value = $payload['rebaseable'] ?? null; if ($value === null) { - $missingFields[] = 'delete_branch_on_merge'; - goto after_delete_branch_on_merge; + $missingFields[] = 'rebaseable'; + goto after_rebaseable; } - $properties['delete_branch_on_merge'] = $value; + $properties['rebaseable'] = $value; - after_delete_branch_on_merge: + after_rebaseable: - $value = $payload['deployments_url'] ?? null; + $value = $payload['requested_reviewers'] ?? null; if ($value === null) { - $missingFields[] = 'deployments_url'; - goto after_deployments_url; + $missingFields[] = 'requested_reviewers'; + goto after_requested_reviewers; } - $properties['deployments_url'] = $value; + $properties['requested_reviewers'] = $value; - after_deployments_url: + after_requested_reviewers: - $value = $payload['description'] ?? null; + $value = $payload['requested_teams'] ?? null; if ($value === null) { - $missingFields[] = 'description'; - goto after_description; + $missingFields[] = 'requested_teams'; + goto after_requested_teams; } - $properties['description'] = $value; + $properties['requested_teams'] = $value; - after_description: + after_requested_teams: - $value = $payload['disabled'] ?? null; + $value = $payload['review_comment_url'] ?? null; if ($value === null) { - $missingFields[] = 'disabled'; - goto after_disabled; + $missingFields[] = 'review_comment_url'; + goto after_review_comment_url; } - $properties['disabled'] = $value; + $properties['review_comment_url'] = $value; - after_disabled: + after_review_comment_url: - $value = $payload['downloads_url'] ?? null; + $value = $payload['review_comments'] ?? null; if ($value === null) { - $missingFields[] = 'downloads_url'; - goto after_downloads_url; - } + $missingFields[] = 'review_comments'; + goto after_review_comments; + } - $properties['downloads_url'] = $value; + $properties['review_comments'] = $value; - after_downloads_url: + after_review_comments: - $value = $payload['events_url'] ?? null; + $value = $payload['review_comments_url'] ?? null; if ($value === null) { - $missingFields[] = 'events_url'; - goto after_events_url; + $missingFields[] = 'review_comments_url'; + goto after_review_comments_url; } - $properties['events_url'] = $value; + $properties['review_comments_url'] = $value; - after_events_url: + after_review_comments_url: - $value = $payload['fork'] ?? null; + $value = $payload['state'] ?? null; if ($value === null) { - $missingFields[] = 'fork'; - goto after_fork; + $missingFields[] = 'state'; + goto after_state; } - $properties['fork'] = $value; + $properties['state'] = $value; - after_fork: + after_state: - $value = $payload['forks'] ?? null; + $value = $payload['statuses_url'] ?? null; if ($value === null) { - $missingFields[] = 'forks'; - goto after_forks; + $missingFields[] = 'statuses_url'; + goto after_statuses_url; } - $properties['forks'] = $value; + $properties['statuses_url'] = $value; - after_forks: + after_statuses_url: - $value = $payload['forks_count'] ?? null; + $value = $payload['title'] ?? null; if ($value === null) { - $missingFields[] = 'forks_count'; - goto after_forks_count; + $missingFields[] = 'title'; + goto after_title; } - $properties['forks_count'] = $value; + $properties['title'] = $value; - after_forks_count: + after_title: - $value = $payload['forks_url'] ?? null; + $value = $payload['updated_at'] ?? null; if ($value === null) { - $missingFields[] = 'forks_url'; - goto after_forks_url; + $missingFields[] = 'updated_at'; + goto after_updated_at; } - $properties['forks_url'] = $value; + $properties['updated_at'] = $value; - after_forks_url: + after_updated_at: - $value = $payload['full_name'] ?? null; + $value = $payload['url'] ?? null; if ($value === null) { - $missingFields[] = 'full_name'; - goto after_full_name; + $missingFields[] = 'url'; + goto after_url; } - $properties['full_name'] = $value; + $properties['url'] = $value; - after_full_name: + after_url: - $value = $payload['git_commits_url'] ?? null; + $value = $payload['user'] ?? null; if ($value === null) { - $missingFields[] = 'git_commits_url'; - goto after_git_commits_url; + $missingFields[] = 'user'; + goto after_user; } - $properties['git_commits_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'user'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Comment⚡️User($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['user'] = $value; - after_git_commits_url: + after_user: - $value = $payload['git_refs_url'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAutoMergeDisabled\PullRequest', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestAutoMergeDisabled\PullRequest::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookPullRequestAutoMergeDisabled\PullRequest(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAutoMergeDisabled\PullRequest', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAutoMergeEnabled⚡️PullRequest(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestAutoMergeEnabled\PullRequest + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['_links'] ?? null; if ($value === null) { - $missingFields[] = 'git_refs_url'; - goto after_git_refs_url; + $missingFields[] = '_links'; + goto after__links; } - $properties['git_refs_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = '_links'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['_links'] = $value; - after_git_refs_url: + after__links: - $value = $payload['git_tags_url'] ?? null; + $value = $payload['active_lock_reason'] ?? null; if ($value === null) { - $missingFields[] = 'git_tags_url'; - goto after_git_tags_url; + $missingFields[] = 'active_lock_reason'; + goto after_active_lock_reason; } - $properties['git_tags_url'] = $value; + $properties['active_lock_reason'] = $value; - after_git_tags_url: + after_active_lock_reason: - $value = $payload['git_url'] ?? null; + $value = $payload['additions'] ?? null; if ($value === null) { - $missingFields[] = 'git_url'; - goto after_git_url; + $missingFields[] = 'additions'; + goto after_additions; } - $properties['git_url'] = $value; + $properties['additions'] = $value; - after_git_url: + after_additions: - $value = $payload['has_downloads'] ?? null; + $value = $payload['assignee'] ?? null; if ($value === null) { - $missingFields[] = 'has_downloads'; - goto after_has_downloads; + $missingFields[] = 'assignee'; + goto after_assignee; } - $properties['has_downloads'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'assignee'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['assignee'] = $value; - after_has_downloads: + after_assignee: - $value = $payload['has_issues'] ?? null; + $value = $payload['assignees'] ?? null; if ($value === null) { - $missingFields[] = 'has_issues'; - goto after_has_issues; + $missingFields[] = 'assignees'; + goto after_assignees; } - $properties['has_issues'] = $value; + $properties['assignees'] = $value; - after_has_issues: + after_assignees: - $value = $payload['has_pages'] ?? null; + $value = $payload['author_association'] ?? null; if ($value === null) { - $missingFields[] = 'has_pages'; - goto after_has_pages; + $missingFields[] = 'author_association'; + goto after_author_association; } - $properties['has_pages'] = $value; + $properties['author_association'] = $value; - after_has_pages: + after_author_association: - $value = $payload['has_projects'] ?? null; + $value = $payload['auto_merge'] ?? null; if ($value === null) { - $missingFields[] = 'has_projects'; - goto after_has_projects; + $missingFields[] = 'auto_merge'; + goto after_auto_merge; } - $properties['has_projects'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'auto_merge'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️AutoMerge($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['auto_merge'] = $value; - after_has_projects: + after_auto_merge: - $value = $payload['has_wiki'] ?? null; + $value = $payload['base'] ?? null; if ($value === null) { - $missingFields[] = 'has_wiki'; - goto after_has_wiki; + $missingFields[] = 'base'; + goto after_base; } - $properties['has_wiki'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'base'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Base($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['base'] = $value; - after_has_wiki: + after_base: - $value = $payload['has_discussions'] ?? null; + $value = $payload['body'] ?? null; if ($value === null) { - $missingFields[] = 'has_discussions'; - goto after_has_discussions; + $missingFields[] = 'body'; + goto after_body; } - $properties['has_discussions'] = $value; + $properties['body'] = $value; - after_has_discussions: + after_body: - $value = $payload['homepage'] ?? null; + $value = $payload['changed_files'] ?? null; if ($value === null) { - $missingFields[] = 'homepage'; - goto after_homepage; + $missingFields[] = 'changed_files'; + goto after_changed_files; } - $properties['homepage'] = $value; + $properties['changed_files'] = $value; - after_homepage: + after_changed_files: - $value = $payload['hooks_url'] ?? null; + $value = $payload['closed_at'] ?? null; if ($value === null) { - $missingFields[] = 'hooks_url'; - goto after_hooks_url; + $missingFields[] = 'closed_at'; + goto after_closed_at; } - $properties['hooks_url'] = $value; + $properties['closed_at'] = $value; - after_hooks_url: + after_closed_at: - $value = $payload['html_url'] ?? null; + $value = $payload['comments'] ?? null; if ($value === null) { - $missingFields[] = 'html_url'; - goto after_html_url; + $missingFields[] = 'comments'; + goto after_comments; } - $properties['html_url'] = $value; + $properties['comments'] = $value; - after_html_url: - - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; - } - - $properties['id'] = $value; - - after_id: - - $value = $payload['is_template'] ?? null; - - if ($value === null) { - $missingFields[] = 'is_template'; - goto after_is_template; - } - - $properties['is_template'] = $value; - - after_is_template: + after_comments: - $value = $payload['issue_comment_url'] ?? null; + $value = $payload['comments_url'] ?? null; if ($value === null) { - $missingFields[] = 'issue_comment_url'; - goto after_issue_comment_url; + $missingFields[] = 'comments_url'; + goto after_comments_url; } - $properties['issue_comment_url'] = $value; + $properties['comments_url'] = $value; - after_issue_comment_url: + after_comments_url: - $value = $payload['issue_events_url'] ?? null; + $value = $payload['commits'] ?? null; if ($value === null) { - $missingFields[] = 'issue_events_url'; - goto after_issue_events_url; + $missingFields[] = 'commits'; + goto after_commits; } - $properties['issue_events_url'] = $value; + $properties['commits'] = $value; - after_issue_events_url: + after_commits: - $value = $payload['issues_url'] ?? null; + $value = $payload['commits_url'] ?? null; if ($value === null) { - $missingFields[] = 'issues_url'; - goto after_issues_url; + $missingFields[] = 'commits_url'; + goto after_commits_url; } - $properties['issues_url'] = $value; + $properties['commits_url'] = $value; - after_issues_url: + after_commits_url: - $value = $payload['keys_url'] ?? null; + $value = $payload['created_at'] ?? null; if ($value === null) { - $missingFields[] = 'keys_url'; - goto after_keys_url; + $missingFields[] = 'created_at'; + goto after_created_at; } - $properties['keys_url'] = $value; + $properties['created_at'] = $value; - after_keys_url: + after_created_at: - $value = $payload['labels_url'] ?? null; + $value = $payload['deletions'] ?? null; if ($value === null) { - $missingFields[] = 'labels_url'; - goto after_labels_url; + $missingFields[] = 'deletions'; + goto after_deletions; } - $properties['labels_url'] = $value; + $properties['deletions'] = $value; - after_labels_url: + after_deletions: - $value = $payload['language'] ?? null; + $value = $payload['diff_url'] ?? null; if ($value === null) { - $missingFields[] = 'language'; - goto after_language; + $missingFields[] = 'diff_url'; + goto after_diff_url; } - $properties['language'] = $value; + $properties['diff_url'] = $value; - after_language: + after_diff_url: - $value = $payload['languages_url'] ?? null; + $value = $payload['draft'] ?? null; if ($value === null) { - $missingFields[] = 'languages_url'; - goto after_languages_url; + $missingFields[] = 'draft'; + goto after_draft; } - $properties['languages_url'] = $value; + $properties['draft'] = $value; - after_languages_url: + after_draft: - $value = $payload['license'] ?? null; + $value = $payload['head'] ?? null; if ($value === null) { - $missingFields[] = 'license'; - goto after_license; + $missingFields[] = 'head'; + goto after_head; } if (is_array($value)) { try { - $this->hydrationStack[] = 'license'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionTransferred⚡️Changes⚡️NewRepository⚡️License($value); + $this->hydrationStack[] = 'head'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Base($value); } finally { array_pop($this->hydrationStack); } } - $properties['license'] = $value; - - after_license: - - $value = $payload['master_branch'] ?? null; - - if ($value === null) { - $missingFields[] = 'master_branch'; - goto after_master_branch; - } - - $properties['master_branch'] = $value; + $properties['head'] = $value; - after_master_branch: + after_head: - $value = $payload['merge_commit_message'] ?? null; + $value = $payload['html_url'] ?? null; if ($value === null) { - $missingFields[] = 'merge_commit_message'; - goto after_merge_commit_message; + $missingFields[] = 'html_url'; + goto after_html_url; } - $properties['merge_commit_message'] = $value; + $properties['html_url'] = $value; - after_merge_commit_message: + after_html_url: - $value = $payload['merge_commit_title'] ?? null; + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'merge_commit_title'; - goto after_merge_commit_title; + $missingFields[] = 'id'; + goto after_id; } - $properties['merge_commit_title'] = $value; + $properties['id'] = $value; - after_merge_commit_title: + after_id: - $value = $payload['merges_url'] ?? null; + $value = $payload['issue_url'] ?? null; if ($value === null) { - $missingFields[] = 'merges_url'; - goto after_merges_url; + $missingFields[] = 'issue_url'; + goto after_issue_url; } - $properties['merges_url'] = $value; + $properties['issue_url'] = $value; - after_merges_url: + after_issue_url: - $value = $payload['milestones_url'] ?? null; + $value = $payload['labels'] ?? null; if ($value === null) { - $missingFields[] = 'milestones_url'; - goto after_milestones_url; + $missingFields[] = 'labels'; + goto after_labels; } - $properties['milestones_url'] = $value; + $properties['labels'] = $value; - after_milestones_url: + after_labels: - $value = $payload['mirror_url'] ?? null; + $value = $payload['locked'] ?? null; if ($value === null) { - $missingFields[] = 'mirror_url'; - goto after_mirror_url; + $missingFields[] = 'locked'; + goto after_locked; } - $properties['mirror_url'] = $value; + $properties['locked'] = $value; - after_mirror_url: + after_locked: - $value = $payload['name'] ?? null; + $value = $payload['maintainer_can_modify'] ?? null; if ($value === null) { - $missingFields[] = 'name'; - goto after_name; + $missingFields[] = 'maintainer_can_modify'; + goto after_maintainer_can_modify; } - $properties['name'] = $value; + $properties['maintainer_can_modify'] = $value; - after_name: + after_maintainer_can_modify: - $value = $payload['node_id'] ?? null; + $value = $payload['merge_commit_sha'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $missingFields[] = 'merge_commit_sha'; + goto after_merge_commit_sha; } - $properties['node_id'] = $value; + $properties['merge_commit_sha'] = $value; - after_node_id: + after_merge_commit_sha: - $value = $payload['notifications_url'] ?? null; + $value = $payload['mergeable'] ?? null; if ($value === null) { - $missingFields[] = 'notifications_url'; - goto after_notifications_url; + $missingFields[] = 'mergeable'; + goto after_mergeable; } - $properties['notifications_url'] = $value; + $properties['mergeable'] = $value; - after_notifications_url: + after_mergeable: - $value = $payload['open_issues'] ?? null; + $value = $payload['mergeable_state'] ?? null; if ($value === null) { - $missingFields[] = 'open_issues'; - goto after_open_issues; + $missingFields[] = 'mergeable_state'; + goto after_mergeable_state; } - $properties['open_issues'] = $value; + $properties['mergeable_state'] = $value; - after_open_issues: + after_mergeable_state: - $value = $payload['open_issues_count'] ?? null; + $value = $payload['merged'] ?? null; if ($value === null) { - $missingFields[] = 'open_issues_count'; - goto after_open_issues_count; + $missingFields[] = 'merged'; + goto after_merged; } - $properties['open_issues_count'] = $value; + $properties['merged'] = $value; - after_open_issues_count: + after_merged: - $value = $payload['organization'] ?? null; + $value = $payload['merged_at'] ?? null; if ($value === null) { - $missingFields[] = 'organization'; - goto after_organization; + $missingFields[] = 'merged_at'; + goto after_merged_at; } - $properties['organization'] = $value; + $properties['merged_at'] = $value; - after_organization: + after_merged_at: - $value = $payload['owner'] ?? null; + $value = $payload['merged_by'] ?? null; if ($value === null) { - $missingFields[] = 'owner'; - goto after_owner; + $missingFields[] = 'merged_by'; + goto after_merged_by; } if (is_array($value)) { try { - $this->hydrationStack[] = 'owner'; + $this->hydrationStack[] = 'merged_by'; $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); } finally { array_pop($this->hydrationStack); } } - $properties['owner'] = $value; + $properties['merged_by'] = $value; - after_owner: + after_merged_by: - $value = $payload['permissions'] ?? null; + $value = $payload['milestone'] ?? null; if ($value === null) { - $missingFields[] = 'permissions'; - goto after_permissions; + $missingFields[] = 'milestone'; + goto after_milestone; } if (is_array($value)) { try { - $this->hydrationStack[] = 'permissions'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionTransferred⚡️Changes⚡️NewRepository⚡️Permissions($value); + $this->hydrationStack[] = 'milestone'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesAssigned⚡️Issue⚡️Milestone($value); } finally { array_pop($this->hydrationStack); } } - $properties['permissions'] = $value; + $properties['milestone'] = $value; - after_permissions: + after_milestone: - $value = $payload['private'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $missingFields[] = 'private'; - goto after_private; + $missingFields[] = 'node_id'; + goto after_node_id; } - $properties['private'] = $value; + $properties['node_id'] = $value; - after_private: + after_node_id: - $value = $payload['public'] ?? null; + $value = $payload['number'] ?? null; if ($value === null) { - $missingFields[] = 'public'; - goto after_public; + $missingFields[] = 'number'; + goto after_number; } - $properties['public'] = $value; + $properties['number'] = $value; - after_public: + after_number: - $value = $payload['pulls_url'] ?? null; + $value = $payload['patch_url'] ?? null; if ($value === null) { - $missingFields[] = 'pulls_url'; - goto after_pulls_url; + $missingFields[] = 'patch_url'; + goto after_patch_url; } - $properties['pulls_url'] = $value; + $properties['patch_url'] = $value; - after_pulls_url: + after_patch_url: - $value = $payload['pushed_at'] ?? null; + $value = $payload['rebaseable'] ?? null; if ($value === null) { - $properties['pushed_at'] = null; - goto after_pushed_at; + $missingFields[] = 'rebaseable'; + goto after_rebaseable; } - $properties['pushed_at'] = $value; + $properties['rebaseable'] = $value; - after_pushed_at: + after_rebaseable: - $value = $payload['releases_url'] ?? null; + $value = $payload['requested_reviewers'] ?? null; if ($value === null) { - $missingFields[] = 'releases_url'; - goto after_releases_url; + $missingFields[] = 'requested_reviewers'; + goto after_requested_reviewers; } - $properties['releases_url'] = $value; + $properties['requested_reviewers'] = $value; - after_releases_url: + after_requested_reviewers: - $value = $payload['role_name'] ?? null; + $value = $payload['requested_teams'] ?? null; if ($value === null) { - $missingFields[] = 'role_name'; - goto after_role_name; + $missingFields[] = 'requested_teams'; + goto after_requested_teams; } - $properties['role_name'] = $value; + $properties['requested_teams'] = $value; - after_role_name: + after_requested_teams: - $value = $payload['size'] ?? null; + $value = $payload['review_comment_url'] ?? null; if ($value === null) { - $missingFields[] = 'size'; - goto after_size; + $missingFields[] = 'review_comment_url'; + goto after_review_comment_url; } - $properties['size'] = $value; + $properties['review_comment_url'] = $value; - after_size: + after_review_comment_url: - $value = $payload['squash_merge_commit_message'] ?? null; + $value = $payload['review_comments'] ?? null; if ($value === null) { - $missingFields[] = 'squash_merge_commit_message'; - goto after_squash_merge_commit_message; + $missingFields[] = 'review_comments'; + goto after_review_comments; } - $properties['squash_merge_commit_message'] = $value; + $properties['review_comments'] = $value; - after_squash_merge_commit_message: + after_review_comments: - $value = $payload['squash_merge_commit_title'] ?? null; + $value = $payload['review_comments_url'] ?? null; if ($value === null) { - $missingFields[] = 'squash_merge_commit_title'; - goto after_squash_merge_commit_title; + $missingFields[] = 'review_comments_url'; + goto after_review_comments_url; } - $properties['squash_merge_commit_title'] = $value; + $properties['review_comments_url'] = $value; - after_squash_merge_commit_title: + after_review_comments_url: - $value = $payload['ssh_url'] ?? null; + $value = $payload['state'] ?? null; if ($value === null) { - $missingFields[] = 'ssh_url'; - goto after_ssh_url; + $missingFields[] = 'state'; + goto after_state; } - $properties['ssh_url'] = $value; + $properties['state'] = $value; - after_ssh_url: + after_state: - $value = $payload['stargazers'] ?? null; + $value = $payload['statuses_url'] ?? null; if ($value === null) { - $missingFields[] = 'stargazers'; - goto after_stargazers; + $missingFields[] = 'statuses_url'; + goto after_statuses_url; } - $properties['stargazers'] = $value; + $properties['statuses_url'] = $value; - after_stargazers: + after_statuses_url: - $value = $payload['stargazers_count'] ?? null; + $value = $payload['title'] ?? null; if ($value === null) { - $missingFields[] = 'stargazers_count'; - goto after_stargazers_count; + $missingFields[] = 'title'; + goto after_title; } - $properties['stargazers_count'] = $value; + $properties['title'] = $value; - after_stargazers_count: + after_title: - $value = $payload['stargazers_url'] ?? null; + $value = $payload['updated_at'] ?? null; if ($value === null) { - $missingFields[] = 'stargazers_url'; - goto after_stargazers_url; + $missingFields[] = 'updated_at'; + goto after_updated_at; } - $properties['stargazers_url'] = $value; + $properties['updated_at'] = $value; - after_stargazers_url: + after_updated_at: - $value = $payload['statuses_url'] ?? null; + $value = $payload['url'] ?? null; if ($value === null) { - $missingFields[] = 'statuses_url'; - goto after_statuses_url; + $missingFields[] = 'url'; + goto after_url; } - $properties['statuses_url'] = $value; + $properties['url'] = $value; - after_statuses_url: + after_url: - $value = $payload['subscribers_url'] ?? null; + $value = $payload['user'] ?? null; if ($value === null) { - $missingFields[] = 'subscribers_url'; - goto after_subscribers_url; + $missingFields[] = 'user'; + goto after_user; } - $properties['subscribers_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'user'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Comment⚡️User($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['user'] = $value; - after_subscribers_url: + after_user: - $value = $payload['subscription_url'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAutoMergeEnabled\PullRequest', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestAutoMergeEnabled\PullRequest::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookPullRequestAutoMergeEnabled\PullRequest(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAutoMergeEnabled\PullRequest', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Milestone(array $payload): \ApiClients\Client\Github\Schema\Milestone + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['url'] ?? null; if ($value === null) { - $missingFields[] = 'subscription_url'; - goto after_subscription_url; + $missingFields[] = 'url'; + goto after_url; } - $properties['subscription_url'] = $value; + $properties['url'] = $value; - after_subscription_url: + after_url: - $value = $payload['svn_url'] ?? null; + $value = $payload['html_url'] ?? null; if ($value === null) { - $missingFields[] = 'svn_url'; - goto after_svn_url; + $missingFields[] = 'html_url'; + goto after_html_url; } - $properties['svn_url'] = $value; + $properties['html_url'] = $value; - after_svn_url: + after_html_url: - $value = $payload['tags_url'] ?? null; + $value = $payload['labels_url'] ?? null; if ($value === null) { - $missingFields[] = 'tags_url'; - goto after_tags_url; + $missingFields[] = 'labels_url'; + goto after_labels_url; } - $properties['tags_url'] = $value; + $properties['labels_url'] = $value; - after_tags_url: + after_labels_url: - $value = $payload['teams_url'] ?? null; + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'teams_url'; - goto after_teams_url; + $missingFields[] = 'id'; + goto after_id; } - $properties['teams_url'] = $value; + $properties['id'] = $value; - after_teams_url: + after_id: - $value = $payload['topics'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $missingFields[] = 'topics'; - goto after_topics; + $missingFields[] = 'node_id'; + goto after_node_id; } - $properties['topics'] = $value; + $properties['node_id'] = $value; - after_topics: + after_node_id: - $value = $payload['trees_url'] ?? null; + $value = $payload['number'] ?? null; if ($value === null) { - $missingFields[] = 'trees_url'; - goto after_trees_url; + $missingFields[] = 'number'; + goto after_number; } - $properties['trees_url'] = $value; + $properties['number'] = $value; - after_trees_url: + after_number: - $value = $payload['updated_at'] ?? null; + $value = $payload['state'] ?? null; if ($value === null) { - $missingFields[] = 'updated_at'; - goto after_updated_at; + $missingFields[] = 'state'; + goto after_state; } - $properties['updated_at'] = $value; + $properties['state'] = $value; - after_updated_at: + after_state: - $value = $payload['url'] ?? null; + $value = $payload['title'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $missingFields[] = 'title'; + goto after_title; } - $properties['url'] = $value; + $properties['title'] = $value; - after_url: + after_title: - $value = $payload['use_squash_pr_title_as_default'] ?? null; + $value = $payload['description'] ?? null; if ($value === null) { - $missingFields[] = 'use_squash_pr_title_as_default'; - goto after_use_squash_pr_title_as_default; + $missingFields[] = 'description'; + goto after_description; } - $properties['use_squash_pr_title_as_default'] = $value; + $properties['description'] = $value; - after_use_squash_pr_title_as_default: + after_description: - $value = $payload['visibility'] ?? null; + $value = $payload['creator'] ?? null; if ($value === null) { - $missingFields[] = 'visibility'; - goto after_visibility; + $properties['creator'] = null; + goto after_creator; } - $properties['visibility'] = $value; + $properties['creator'] = $value; - after_visibility: + after_creator: - $value = $payload['watchers'] ?? null; + $value = $payload['open_issues'] ?? null; if ($value === null) { - $missingFields[] = 'watchers'; - goto after_watchers; + $missingFields[] = 'open_issues'; + goto after_open_issues; } - $properties['watchers'] = $value; + $properties['open_issues'] = $value; - after_watchers: + after_open_issues: - $value = $payload['watchers_count'] ?? null; + $value = $payload['closed_issues'] ?? null; if ($value === null) { - $missingFields[] = 'watchers_count'; - goto after_watchers_count; + $missingFields[] = 'closed_issues'; + goto after_closed_issues; } - $properties['watchers_count'] = $value; + $properties['closed_issues'] = $value; - after_watchers_count: + after_closed_issues: - $value = $payload['web_commit_signoff_required'] ?? null; + $value = $payload['created_at'] ?? null; if ($value === null) { - $missingFields[] = 'web_commit_signoff_required'; - goto after_web_commit_signoff_required; + $missingFields[] = 'created_at'; + goto after_created_at; } - $properties['web_commit_signoff_required'] = $value; + $properties['created_at'] = $value; - after_web_commit_signoff_required: + after_created_at: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'updated_at'; + goto after_updated_at; + } + + $properties['updated_at'] = $value; + + after_updated_at: + + $value = $payload['closed_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'closed_at'; + goto after_closed_at; + } + + $properties['closed_at'] = $value; + + after_closed_at: + + $value = $payload['due_on'] ?? null; + + if ($value === null) { + $missingFields[] = 'due_on'; + goto after_due_on; + } + + $properties['due_on'] = $value; + + after_due_on: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Head\Repo', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Milestone', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Head\Repo::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Milestone::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Head\Repo(...$properties); + return new \ApiClients\Client\Github\Schema\Milestone(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Head\Repo', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Milestone', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner(array $payload): \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestDemilestoned⚡️PullRequest(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestDemilestoned\PullRequest { $properties = []; $missingFields = []; try { - $value = $payload['login'] ?? null; + $value = $payload['_links'] ?? null; if ($value === null) { - $missingFields[] = 'login'; - goto after_login; + $missingFields[] = '_links'; + goto after__links; } - $properties['login'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = '_links'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['_links'] = $value; - after_login: + after__links: - $value = $payload['id'] ?? null; + $value = $payload['active_lock_reason'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'active_lock_reason'; + goto after_active_lock_reason; } - $properties['id'] = $value; + $properties['active_lock_reason'] = $value; - after_id: + after_active_lock_reason: - $value = $payload['node_id'] ?? null; + $value = $payload['additions'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $missingFields[] = 'additions'; + goto after_additions; } - $properties['node_id'] = $value; + $properties['additions'] = $value; - after_node_id: + after_additions: - $value = $payload['avatar_url'] ?? null; + $value = $payload['assignee'] ?? null; if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatar_url; + $missingFields[] = 'assignee'; + goto after_assignee; } - $properties['avatar_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'assignee'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Comment⚡️User($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['assignee'] = $value; - after_avatar_url: + after_assignee: - $value = $payload['gravatar_id'] ?? null; + $value = $payload['assignees'] ?? null; if ($value === null) { - $missingFields[] = 'gravatar_id'; - goto after_gravatar_id; + $missingFields[] = 'assignees'; + goto after_assignees; } - $properties['gravatar_id'] = $value; + $properties['assignees'] = $value; - after_gravatar_id: + after_assignees: - $value = $payload['url'] ?? null; + $value = $payload['author_association'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $missingFields[] = 'author_association'; + goto after_author_association; } - $properties['url'] = $value; + $properties['author_association'] = $value; - after_url: + after_author_association: - $value = $payload['html_url'] ?? null; + $value = $payload['auto_merge'] ?? null; if ($value === null) { - $missingFields[] = 'html_url'; - goto after_html_url; + $missingFields[] = 'auto_merge'; + goto after_auto_merge; } - $properties['html_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'auto_merge'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️AutoMerge($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['auto_merge'] = $value; - after_html_url: + after_auto_merge: - $value = $payload['followers_url'] ?? null; + $value = $payload['base'] ?? null; if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followers_url; + $missingFields[] = 'base'; + goto after_base; } - $properties['followers_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'base'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestDemilestoned⚡️PullRequest⚡️Base($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['base'] = $value; - after_followers_url: + after_base: - $value = $payload['following_url'] ?? null; + $value = $payload['body'] ?? null; if ($value === null) { - $missingFields[] = 'following_url'; - goto after_following_url; + $missingFields[] = 'body'; + goto after_body; } - $properties['following_url'] = $value; + $properties['body'] = $value; - after_following_url: + after_body: - $value = $payload['gists_url'] ?? null; + $value = $payload['changed_files'] ?? null; if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gists_url; + $missingFields[] = 'changed_files'; + goto after_changed_files; } - $properties['gists_url'] = $value; + $properties['changed_files'] = $value; - after_gists_url: + after_changed_files: - $value = $payload['starred_url'] ?? null; + $value = $payload['closed_at'] ?? null; if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starred_url; + $missingFields[] = 'closed_at'; + goto after_closed_at; } - $properties['starred_url'] = $value; + $properties['closed_at'] = $value; - after_starred_url: + after_closed_at: - $value = $payload['subscriptions_url'] ?? null; + $value = $payload['comments'] ?? null; if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptions_url; + $missingFields[] = 'comments'; + goto after_comments; } - $properties['subscriptions_url'] = $value; + $properties['comments'] = $value; - after_subscriptions_url: + after_comments: - $value = $payload['organizations_url'] ?? null; + $value = $payload['comments_url'] ?? null; if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizations_url; + $missingFields[] = 'comments_url'; + goto after_comments_url; } - $properties['organizations_url'] = $value; + $properties['comments_url'] = $value; - after_organizations_url: + after_comments_url: - $value = $payload['repos_url'] ?? null; + $value = $payload['commits'] ?? null; if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_repos_url; + $missingFields[] = 'commits'; + goto after_commits; } - $properties['repos_url'] = $value; + $properties['commits'] = $value; - after_repos_url: + after_commits: - $value = $payload['events_url'] ?? null; + $value = $payload['commits_url'] ?? null; if ($value === null) { - $missingFields[] = 'events_url'; - goto after_events_url; + $missingFields[] = 'commits_url'; + goto after_commits_url; } - $properties['events_url'] = $value; + $properties['commits_url'] = $value; - after_events_url: + after_commits_url: - $value = $payload['received_events_url'] ?? null; + $value = $payload['created_at'] ?? null; if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_received_events_url; + $missingFields[] = 'created_at'; + goto after_created_at; } - $properties['received_events_url'] = $value; + $properties['created_at'] = $value; - after_received_events_url: + after_created_at: - $value = $payload['type'] ?? null; + $value = $payload['deletions'] ?? null; if ($value === null) { - $missingFields[] = 'type'; - goto after_type; + $missingFields[] = 'deletions'; + goto after_deletions; } - $properties['type'] = $value; + $properties['deletions'] = $value; - after_type: + after_deletions: - $value = $payload['site_admin'] ?? null; + $value = $payload['diff_url'] ?? null; if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_site_admin; + $missingFields[] = 'diff_url'; + goto after_diff_url; } - $properties['site_admin'] = $value; + $properties['diff_url'] = $value; - after_site_admin: - - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner', $exception, stack: $this->hydrationStack); - } - } + after_diff_url: - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Permissions(array $payload): \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['admin'] ?? null; + $value = $payload['draft'] ?? null; if ($value === null) { - $missingFields[] = 'admin'; - goto after_admin; + $missingFields[] = 'draft'; + goto after_draft; } - $properties['admin'] = $value; + $properties['draft'] = $value; - after_admin: + after_draft: - $value = $payload['maintain'] ?? null; + $value = $payload['head'] ?? null; if ($value === null) { - $missingFields[] = 'maintain'; - goto after_maintain; + $missingFields[] = 'head'; + goto after_head; } - $properties['maintain'] = $value; - - after_maintain: - - $value = $payload['push'] ?? null; - - if ($value === null) { - $missingFields[] = 'push'; - goto after_push; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'head'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestDemilestoned⚡️PullRequest⚡️Base($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['push'] = $value; + $properties['head'] = $value; - after_push: + after_head: - $value = $payload['triage'] ?? null; + $value = $payload['html_url'] ?? null; if ($value === null) { - $missingFields[] = 'triage'; - goto after_triage; + $missingFields[] = 'html_url'; + goto after_html_url; } - $properties['triage'] = $value; + $properties['html_url'] = $value; - after_triage: + after_html_url: - $value = $payload['pull'] ?? null; + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'pull'; - goto after_pull; + $missingFields[] = 'id'; + goto after_id; } - $properties['pull'] = $value; + $properties['id'] = $value; - after_pull: - - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions', $exception, stack: $this->hydrationStack); - } - } + after_id: - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionTransferred⚡️Changes⚡️NewRepository⚡️License(array $payload): \ApiClients\Client\Github\Schema\WebhookDiscussionTransferred\Changes\NewRepository\License - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['key'] ?? null; + $value = $payload['issue_url'] ?? null; if ($value === null) { - $missingFields[] = 'key'; - goto after_key; + $missingFields[] = 'issue_url'; + goto after_issue_url; } - $properties['key'] = $value; + $properties['issue_url'] = $value; - after_key: + after_issue_url: - $value = $payload['name'] ?? null; + $value = $payload['labels'] ?? null; if ($value === null) { - $missingFields[] = 'name'; - goto after_name; + $missingFields[] = 'labels'; + goto after_labels; } - $properties['name'] = $value; + $properties['labels'] = $value; - after_name: + after_labels: - $value = $payload['node_id'] ?? null; + $value = $payload['locked'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $missingFields[] = 'locked'; + goto after_locked; } - $properties['node_id'] = $value; + $properties['locked'] = $value; - after_node_id: + after_locked: - $value = $payload['spdx_id'] ?? null; + $value = $payload['maintainer_can_modify'] ?? null; if ($value === null) { - $missingFields[] = 'spdx_id'; - goto after_spdx_id; + $missingFields[] = 'maintainer_can_modify'; + goto after_maintainer_can_modify; } - $properties['spdx_id'] = $value; + $properties['maintainer_can_modify'] = $value; - after_spdx_id: + after_maintainer_can_modify: - $value = $payload['url'] ?? null; + $value = $payload['merge_commit_sha'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $missingFields[] = 'merge_commit_sha'; + goto after_merge_commit_sha; } - $properties['url'] = $value; + $properties['merge_commit_sha'] = $value; - after_url: - - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDiscussionTransferred\Changes\NewRepository\License', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookDiscussionTransferred\Changes\NewRepository\License::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\WebhookDiscussionTransferred\Changes\NewRepository\License(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDiscussionTransferred\Changes\NewRepository\License', $exception, stack: $this->hydrationStack); - } - } + after_merge_commit_sha: - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionTransferred⚡️Changes⚡️NewRepository⚡️Permissions(array $payload): \ApiClients\Client\Github\Schema\WebhookDiscussionTransferred\Changes\NewRepository\Permissions - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['admin'] ?? null; + $value = $payload['mergeable'] ?? null; if ($value === null) { - $missingFields[] = 'admin'; - goto after_admin; + $missingFields[] = 'mergeable'; + goto after_mergeable; } - $properties['admin'] = $value; + $properties['mergeable'] = $value; - after_admin: + after_mergeable: - $value = $payload['maintain'] ?? null; + $value = $payload['mergeable_state'] ?? null; if ($value === null) { - $missingFields[] = 'maintain'; - goto after_maintain; + $missingFields[] = 'mergeable_state'; + goto after_mergeable_state; } - $properties['maintain'] = $value; + $properties['mergeable_state'] = $value; - after_maintain: + after_mergeable_state: - $value = $payload['pull'] ?? null; + $value = $payload['merged'] ?? null; if ($value === null) { - $missingFields[] = 'pull'; - goto after_pull; + $missingFields[] = 'merged'; + goto after_merged; } - $properties['pull'] = $value; + $properties['merged'] = $value; - after_pull: + after_merged: - $value = $payload['push'] ?? null; + $value = $payload['merged_at'] ?? null; if ($value === null) { - $missingFields[] = 'push'; - goto after_push; + $missingFields[] = 'merged_at'; + goto after_merged_at; } - $properties['push'] = $value; + $properties['merged_at'] = $value; - after_push: + after_merged_at: - $value = $payload['triage'] ?? null; + $value = $payload['merged_by'] ?? null; if ($value === null) { - $missingFields[] = 'triage'; - goto after_triage; - } + $missingFields[] = 'merged_by'; + goto after_merged_by; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'merged_by'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Comment⚡️User($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['merged_by'] = $value; + + after_merged_by: + + $value = $payload['milestone'] ?? null; + + if ($value === null) { + $missingFields[] = 'milestone'; + goto after_milestone; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'milestone'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesAssigned⚡️Issue⚡️Milestone($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['milestone'] = $value; + + after_milestone: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['number'] ?? null; + + if ($value === null) { + $missingFields[] = 'number'; + goto after_number; + } + + $properties['number'] = $value; + + after_number: + + $value = $payload['patch_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'patch_url'; + goto after_patch_url; + } + + $properties['patch_url'] = $value; + + after_patch_url: + + $value = $payload['rebaseable'] ?? null; + + if ($value === null) { + $missingFields[] = 'rebaseable'; + goto after_rebaseable; + } + + $properties['rebaseable'] = $value; + + after_rebaseable: + + $value = $payload['requested_reviewers'] ?? null; + + if ($value === null) { + $missingFields[] = 'requested_reviewers'; + goto after_requested_reviewers; + } + + $properties['requested_reviewers'] = $value; + + after_requested_reviewers: + + $value = $payload['requested_teams'] ?? null; + + if ($value === null) { + $missingFields[] = 'requested_teams'; + goto after_requested_teams; + } + + $properties['requested_teams'] = $value; + + after_requested_teams: + + $value = $payload['review_comment_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'review_comment_url'; + goto after_review_comment_url; + } + + $properties['review_comment_url'] = $value; + + after_review_comment_url: + + $value = $payload['review_comments'] ?? null; + + if ($value === null) { + $missingFields[] = 'review_comments'; + goto after_review_comments; + } + + $properties['review_comments'] = $value; + + after_review_comments: + + $value = $payload['review_comments_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'review_comments_url'; + goto after_review_comments_url; + } + + $properties['review_comments_url'] = $value; + + after_review_comments_url: + + $value = $payload['state'] ?? null; + + if ($value === null) { + $missingFields[] = 'state'; + goto after_state; + } + + $properties['state'] = $value; + + after_state: + + $value = $payload['statuses_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'statuses_url'; + goto after_statuses_url; + } + + $properties['statuses_url'] = $value; + + after_statuses_url: + + $value = $payload['title'] ?? null; + + if ($value === null) { + $missingFields[] = 'title'; + goto after_title; + } + + $properties['title'] = $value; + + after_title: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'updated_at'; + goto after_updated_at; + } + + $properties['updated_at'] = $value; + + after_updated_at: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['user'] ?? null; + + if ($value === null) { + $missingFields[] = 'user'; + goto after_user; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'user'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Comment⚡️User($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['user'] = $value; + + after_user: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestDemilestoned\PullRequest', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestDemilestoned\PullRequest::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookPullRequestDemilestoned\PullRequest(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestDemilestoned\PullRequest', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestDequeued⚡️PullRequest(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestDequeued\PullRequest + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['_links'] ?? null; + + if ($value === null) { + $missingFields[] = '_links'; + goto after__links; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = '_links'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['_links'] = $value; + + after__links: + + $value = $payload['active_lock_reason'] ?? null; + + if ($value === null) { + $missingFields[] = 'active_lock_reason'; + goto after_active_lock_reason; + } + + $properties['active_lock_reason'] = $value; + + after_active_lock_reason: + + $value = $payload['additions'] ?? null; + + if ($value === null) { + $missingFields[] = 'additions'; + goto after_additions; + } + + $properties['additions'] = $value; + + after_additions: + + $value = $payload['assignee'] ?? null; + + if ($value === null) { + $missingFields[] = 'assignee'; + goto after_assignee; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'assignee'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['assignee'] = $value; + + after_assignee: + + $value = $payload['assignees'] ?? null; + + if ($value === null) { + $missingFields[] = 'assignees'; + goto after_assignees; + } + + $properties['assignees'] = $value; + + after_assignees: + + $value = $payload['author_association'] ?? null; + + if ($value === null) { + $missingFields[] = 'author_association'; + goto after_author_association; + } + + $properties['author_association'] = $value; + + after_author_association: + + $value = $payload['auto_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'auto_merge'; + goto after_auto_merge; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'auto_merge'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️AutoMerge($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['auto_merge'] = $value; + + after_auto_merge: + + $value = $payload['base'] ?? null; + + if ($value === null) { + $missingFields[] = 'base'; + goto after_base; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'base'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Base($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['base'] = $value; + + after_base: + + $value = $payload['body'] ?? null; + + if ($value === null) { + $missingFields[] = 'body'; + goto after_body; + } + + $properties['body'] = $value; + + after_body: + + $value = $payload['changed_files'] ?? null; + + if ($value === null) { + $missingFields[] = 'changed_files'; + goto after_changed_files; + } + + $properties['changed_files'] = $value; + + after_changed_files: + + $value = $payload['closed_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'closed_at'; + goto after_closed_at; + } + + $properties['closed_at'] = $value; + + after_closed_at: + + $value = $payload['comments'] ?? null; + + if ($value === null) { + $missingFields[] = 'comments'; + goto after_comments; + } + + $properties['comments'] = $value; + + after_comments: + + $value = $payload['comments_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'comments_url'; + goto after_comments_url; + } + + $properties['comments_url'] = $value; + + after_comments_url: + + $value = $payload['commits'] ?? null; + + if ($value === null) { + $missingFields[] = 'commits'; + goto after_commits; + } + + $properties['commits'] = $value; + + after_commits: + + $value = $payload['commits_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'commits_url'; + goto after_commits_url; + } + + $properties['commits_url'] = $value; + + after_commits_url: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'created_at'; + goto after_created_at; + } + + $properties['created_at'] = $value; + + after_created_at: + + $value = $payload['deletions'] ?? null; + + if ($value === null) { + $missingFields[] = 'deletions'; + goto after_deletions; + } + + $properties['deletions'] = $value; + + after_deletions: + + $value = $payload['diff_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'diff_url'; + goto after_diff_url; + } + + $properties['diff_url'] = $value; + + after_diff_url: + + $value = $payload['draft'] ?? null; + + if ($value === null) { + $missingFields[] = 'draft'; + goto after_draft; + } + + $properties['draft'] = $value; + + after_draft: + + $value = $payload['head'] ?? null; + + if ($value === null) { + $missingFields[] = 'head'; + goto after_head; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'head'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Base($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['head'] = $value; + + after_head: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } + + $properties['html_url'] = $value; + + after_html_url: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['issue_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issue_url'; + goto after_issue_url; + } + + $properties['issue_url'] = $value; + + after_issue_url: + + $value = $payload['labels'] ?? null; + + if ($value === null) { + $missingFields[] = 'labels'; + goto after_labels; + } + + $properties['labels'] = $value; + + after_labels: + + $value = $payload['locked'] ?? null; + + if ($value === null) { + $missingFields[] = 'locked'; + goto after_locked; + } + + $properties['locked'] = $value; + + after_locked: + + $value = $payload['maintainer_can_modify'] ?? null; + + if ($value === null) { + $missingFields[] = 'maintainer_can_modify'; + goto after_maintainer_can_modify; + } + + $properties['maintainer_can_modify'] = $value; + + after_maintainer_can_modify: + + $value = $payload['merge_commit_sha'] ?? null; + + if ($value === null) { + $missingFields[] = 'merge_commit_sha'; + goto after_merge_commit_sha; + } + + $properties['merge_commit_sha'] = $value; + + after_merge_commit_sha: + + $value = $payload['mergeable'] ?? null; + + if ($value === null) { + $missingFields[] = 'mergeable'; + goto after_mergeable; + } + + $properties['mergeable'] = $value; + + after_mergeable: + + $value = $payload['mergeable_state'] ?? null; + + if ($value === null) { + $missingFields[] = 'mergeable_state'; + goto after_mergeable_state; + } + + $properties['mergeable_state'] = $value; + + after_mergeable_state: + + $value = $payload['merged'] ?? null; + + if ($value === null) { + $missingFields[] = 'merged'; + goto after_merged; + } + + $properties['merged'] = $value; + + after_merged: + + $value = $payload['merged_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'merged_at'; + goto after_merged_at; + } + + $properties['merged_at'] = $value; + + after_merged_at: + + $value = $payload['merged_by'] ?? null; + + if ($value === null) { + $missingFields[] = 'merged_by'; + goto after_merged_by; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'merged_by'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['merged_by'] = $value; + + after_merged_by: + + $value = $payload['milestone'] ?? null; + + if ($value === null) { + $missingFields[] = 'milestone'; + goto after_milestone; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'milestone'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesAssigned⚡️Issue⚡️Milestone($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['milestone'] = $value; + + after_milestone: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['number'] ?? null; + + if ($value === null) { + $missingFields[] = 'number'; + goto after_number; + } + + $properties['number'] = $value; + + after_number: + + $value = $payload['patch_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'patch_url'; + goto after_patch_url; + } + + $properties['patch_url'] = $value; + + after_patch_url: + + $value = $payload['rebaseable'] ?? null; + + if ($value === null) { + $missingFields[] = 'rebaseable'; + goto after_rebaseable; + } + + $properties['rebaseable'] = $value; + + after_rebaseable: + + $value = $payload['requested_reviewers'] ?? null; + + if ($value === null) { + $missingFields[] = 'requested_reviewers'; + goto after_requested_reviewers; + } + + $properties['requested_reviewers'] = $value; + + after_requested_reviewers: + + $value = $payload['requested_teams'] ?? null; + + if ($value === null) { + $missingFields[] = 'requested_teams'; + goto after_requested_teams; + } + + $properties['requested_teams'] = $value; + + after_requested_teams: + + $value = $payload['review_comment_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'review_comment_url'; + goto after_review_comment_url; + } + + $properties['review_comment_url'] = $value; + + after_review_comment_url: + + $value = $payload['review_comments'] ?? null; + + if ($value === null) { + $missingFields[] = 'review_comments'; + goto after_review_comments; + } + + $properties['review_comments'] = $value; + + after_review_comments: + + $value = $payload['review_comments_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'review_comments_url'; + goto after_review_comments_url; + } + + $properties['review_comments_url'] = $value; + + after_review_comments_url: + + $value = $payload['state'] ?? null; + + if ($value === null) { + $missingFields[] = 'state'; + goto after_state; + } + + $properties['state'] = $value; + + after_state: + + $value = $payload['statuses_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'statuses_url'; + goto after_statuses_url; + } + + $properties['statuses_url'] = $value; + + after_statuses_url: + + $value = $payload['title'] ?? null; + + if ($value === null) { + $missingFields[] = 'title'; + goto after_title; + } + + $properties['title'] = $value; + + after_title: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'updated_at'; + goto after_updated_at; + } + + $properties['updated_at'] = $value; + + after_updated_at: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['user'] ?? null; + + if ($value === null) { + $missingFields[] = 'user'; + goto after_user; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'user'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Comment⚡️User($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['user'] = $value; + + after_user: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestDequeued\PullRequest', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestDequeued\PullRequest::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookPullRequestDequeued\PullRequest(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestDequeued\PullRequest', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestEdited⚡️Changes(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestEdited\Changes + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['base'] ?? null; + + if ($value === null) { + $missingFields[] = 'base'; + goto after_base; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'base'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestEdited⚡️Changes⚡️Base($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['base'] = $value; + + after_base: + + $value = $payload['body'] ?? null; + + if ($value === null) { + $missingFields[] = 'body'; + goto after_body; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'body'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectEdited⚡️Changes⚡️Body($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['body'] = $value; + + after_body: + + $value = $payload['title'] ?? null; + + if ($value === null) { + $missingFields[] = 'title'; + goto after_title; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'title'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMilestoneEdited⚡️Changes⚡️Title($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['title'] = $value; + + after_title: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestEdited\Changes', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestEdited\Changes::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookPullRequestEdited\Changes(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestEdited\Changes', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestEdited⚡️PullRequest(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestEdited\PullRequest + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['_links'] ?? null; + + if ($value === null) { + $missingFields[] = '_links'; + goto after__links; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = '_links'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['_links'] = $value; + + after__links: + + $value = $payload['active_lock_reason'] ?? null; + + if ($value === null) { + $missingFields[] = 'active_lock_reason'; + goto after_active_lock_reason; + } + + $properties['active_lock_reason'] = $value; + + after_active_lock_reason: + + $value = $payload['additions'] ?? null; + + if ($value === null) { + $missingFields[] = 'additions'; + goto after_additions; + } + + $properties['additions'] = $value; + + after_additions: + + $value = $payload['assignee'] ?? null; + + if ($value === null) { + $missingFields[] = 'assignee'; + goto after_assignee; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'assignee'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Comment⚡️User($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['assignee'] = $value; + + after_assignee: + + $value = $payload['assignees'] ?? null; + + if ($value === null) { + $missingFields[] = 'assignees'; + goto after_assignees; + } + + $properties['assignees'] = $value; + + after_assignees: + + $value = $payload['author_association'] ?? null; + + if ($value === null) { + $missingFields[] = 'author_association'; + goto after_author_association; + } + + $properties['author_association'] = $value; + + after_author_association: + + $value = $payload['auto_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'auto_merge'; + goto after_auto_merge; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'auto_merge'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️AutoMerge($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['auto_merge'] = $value; + + after_auto_merge: + + $value = $payload['base'] ?? null; + + if ($value === null) { + $missingFields[] = 'base'; + goto after_base; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'base'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Base($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['base'] = $value; + + after_base: + + $value = $payload['body'] ?? null; + + if ($value === null) { + $missingFields[] = 'body'; + goto after_body; + } + + $properties['body'] = $value; + + after_body: + + $value = $payload['changed_files'] ?? null; + + if ($value === null) { + $missingFields[] = 'changed_files'; + goto after_changed_files; + } + + $properties['changed_files'] = $value; + + after_changed_files: + + $value = $payload['closed_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'closed_at'; + goto after_closed_at; + } + + $properties['closed_at'] = $value; + + after_closed_at: + + $value = $payload['comments'] ?? null; + + if ($value === null) { + $missingFields[] = 'comments'; + goto after_comments; + } + + $properties['comments'] = $value; + + after_comments: + + $value = $payload['comments_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'comments_url'; + goto after_comments_url; + } + + $properties['comments_url'] = $value; + + after_comments_url: + + $value = $payload['commits'] ?? null; + + if ($value === null) { + $missingFields[] = 'commits'; + goto after_commits; + } + + $properties['commits'] = $value; + + after_commits: + + $value = $payload['commits_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'commits_url'; + goto after_commits_url; + } + + $properties['commits_url'] = $value; + + after_commits_url: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'created_at'; + goto after_created_at; + } + + $properties['created_at'] = $value; + + after_created_at: + + $value = $payload['deletions'] ?? null; + + if ($value === null) { + $missingFields[] = 'deletions'; + goto after_deletions; + } + + $properties['deletions'] = $value; + + after_deletions: + + $value = $payload['diff_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'diff_url'; + goto after_diff_url; + } + + $properties['diff_url'] = $value; + + after_diff_url: + + $value = $payload['draft'] ?? null; + + if ($value === null) { + $missingFields[] = 'draft'; + goto after_draft; + } + + $properties['draft'] = $value; + + after_draft: + + $value = $payload['head'] ?? null; + + if ($value === null) { + $missingFields[] = 'head'; + goto after_head; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'head'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Head($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['head'] = $value; + + after_head: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } + + $properties['html_url'] = $value; + + after_html_url: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['issue_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issue_url'; + goto after_issue_url; + } + + $properties['issue_url'] = $value; + + after_issue_url: + + $value = $payload['labels'] ?? null; + + if ($value === null) { + $missingFields[] = 'labels'; + goto after_labels; + } + + $properties['labels'] = $value; + + after_labels: + + $value = $payload['locked'] ?? null; + + if ($value === null) { + $missingFields[] = 'locked'; + goto after_locked; + } + + $properties['locked'] = $value; + + after_locked: + + $value = $payload['maintainer_can_modify'] ?? null; + + if ($value === null) { + $missingFields[] = 'maintainer_can_modify'; + goto after_maintainer_can_modify; + } + + $properties['maintainer_can_modify'] = $value; + + after_maintainer_can_modify: + + $value = $payload['merge_commit_sha'] ?? null; + + if ($value === null) { + $missingFields[] = 'merge_commit_sha'; + goto after_merge_commit_sha; + } + + $properties['merge_commit_sha'] = $value; + + after_merge_commit_sha: + + $value = $payload['mergeable'] ?? null; + + if ($value === null) { + $missingFields[] = 'mergeable'; + goto after_mergeable; + } + + $properties['mergeable'] = $value; + + after_mergeable: + + $value = $payload['mergeable_state'] ?? null; + + if ($value === null) { + $missingFields[] = 'mergeable_state'; + goto after_mergeable_state; + } + + $properties['mergeable_state'] = $value; + + after_mergeable_state: + + $value = $payload['merged'] ?? null; + + if ($value === null) { + $missingFields[] = 'merged'; + goto after_merged; + } + + $properties['merged'] = $value; + + after_merged: + + $value = $payload['merged_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'merged_at'; + goto after_merged_at; + } + + $properties['merged_at'] = $value; + + after_merged_at: + + $value = $payload['merged_by'] ?? null; + + if ($value === null) { + $missingFields[] = 'merged_by'; + goto after_merged_by; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'merged_by'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Comment⚡️User($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['merged_by'] = $value; + + after_merged_by: + + $value = $payload['milestone'] ?? null; + + if ($value === null) { + $missingFields[] = 'milestone'; + goto after_milestone; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'milestone'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesAssigned⚡️Issue⚡️Milestone($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['milestone'] = $value; + + after_milestone: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['number'] ?? null; + + if ($value === null) { + $missingFields[] = 'number'; + goto after_number; + } + + $properties['number'] = $value; + + after_number: + + $value = $payload['patch_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'patch_url'; + goto after_patch_url; + } + + $properties['patch_url'] = $value; + + after_patch_url: + + $value = $payload['rebaseable'] ?? null; + + if ($value === null) { + $missingFields[] = 'rebaseable'; + goto after_rebaseable; + } + + $properties['rebaseable'] = $value; + + after_rebaseable: + + $value = $payload['requested_reviewers'] ?? null; + + if ($value === null) { + $missingFields[] = 'requested_reviewers'; + goto after_requested_reviewers; + } + + $properties['requested_reviewers'] = $value; + + after_requested_reviewers: + + $value = $payload['requested_teams'] ?? null; + + if ($value === null) { + $missingFields[] = 'requested_teams'; + goto after_requested_teams; + } + + $properties['requested_teams'] = $value; + + after_requested_teams: + + $value = $payload['review_comment_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'review_comment_url'; + goto after_review_comment_url; + } + + $properties['review_comment_url'] = $value; + + after_review_comment_url: + + $value = $payload['review_comments'] ?? null; + + if ($value === null) { + $missingFields[] = 'review_comments'; + goto after_review_comments; + } + + $properties['review_comments'] = $value; + + after_review_comments: + + $value = $payload['review_comments_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'review_comments_url'; + goto after_review_comments_url; + } + + $properties['review_comments_url'] = $value; + + after_review_comments_url: + + $value = $payload['state'] ?? null; + + if ($value === null) { + $missingFields[] = 'state'; + goto after_state; + } + + $properties['state'] = $value; + + after_state: + + $value = $payload['statuses_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'statuses_url'; + goto after_statuses_url; + } + + $properties['statuses_url'] = $value; + + after_statuses_url: + + $value = $payload['title'] ?? null; + + if ($value === null) { + $missingFields[] = 'title'; + goto after_title; + } + + $properties['title'] = $value; + + after_title: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'updated_at'; + goto after_updated_at; + } + + $properties['updated_at'] = $value; + + after_updated_at: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['user'] ?? null; + + if ($value === null) { + $missingFields[] = 'user'; + goto after_user; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'user'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Comment⚡️User($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['user'] = $value; + + after_user: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestEdited\PullRequest', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestEdited\PullRequest::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookPullRequestEdited\PullRequest(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestEdited\PullRequest', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestEnqueued⚡️PullRequest(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestEnqueued\PullRequest + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['_links'] ?? null; + + if ($value === null) { + $missingFields[] = '_links'; + goto after__links; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = '_links'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['_links'] = $value; + + after__links: + + $value = $payload['active_lock_reason'] ?? null; + + if ($value === null) { + $missingFields[] = 'active_lock_reason'; + goto after_active_lock_reason; + } + + $properties['active_lock_reason'] = $value; + + after_active_lock_reason: + + $value = $payload['additions'] ?? null; + + if ($value === null) { + $missingFields[] = 'additions'; + goto after_additions; + } + + $properties['additions'] = $value; + + after_additions: + + $value = $payload['assignee'] ?? null; + + if ($value === null) { + $missingFields[] = 'assignee'; + goto after_assignee; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'assignee'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['assignee'] = $value; + + after_assignee: + + $value = $payload['assignees'] ?? null; + + if ($value === null) { + $missingFields[] = 'assignees'; + goto after_assignees; + } + + $properties['assignees'] = $value; + + after_assignees: + + $value = $payload['author_association'] ?? null; + + if ($value === null) { + $missingFields[] = 'author_association'; + goto after_author_association; + } + + $properties['author_association'] = $value; + + after_author_association: + + $value = $payload['auto_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'auto_merge'; + goto after_auto_merge; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'auto_merge'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️AutoMerge($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['auto_merge'] = $value; + + after_auto_merge: + + $value = $payload['base'] ?? null; + + if ($value === null) { + $missingFields[] = 'base'; + goto after_base; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'base'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestEnqueued⚡️PullRequest⚡️Base($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['base'] = $value; + + after_base: + + $value = $payload['body'] ?? null; + + if ($value === null) { + $missingFields[] = 'body'; + goto after_body; + } + + $properties['body'] = $value; + + after_body: + + $value = $payload['changed_files'] ?? null; + + if ($value === null) { + $missingFields[] = 'changed_files'; + goto after_changed_files; + } + + $properties['changed_files'] = $value; + + after_changed_files: + + $value = $payload['closed_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'closed_at'; + goto after_closed_at; + } + + $properties['closed_at'] = $value; + + after_closed_at: + + $value = $payload['comments'] ?? null; + + if ($value === null) { + $missingFields[] = 'comments'; + goto after_comments; + } + + $properties['comments'] = $value; + + after_comments: + + $value = $payload['comments_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'comments_url'; + goto after_comments_url; + } + + $properties['comments_url'] = $value; + + after_comments_url: + + $value = $payload['commits'] ?? null; + + if ($value === null) { + $missingFields[] = 'commits'; + goto after_commits; + } + + $properties['commits'] = $value; + + after_commits: + + $value = $payload['commits_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'commits_url'; + goto after_commits_url; + } + + $properties['commits_url'] = $value; + + after_commits_url: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'created_at'; + goto after_created_at; + } + + $properties['created_at'] = $value; + + after_created_at: + + $value = $payload['deletions'] ?? null; + + if ($value === null) { + $missingFields[] = 'deletions'; + goto after_deletions; + } + + $properties['deletions'] = $value; + + after_deletions: + + $value = $payload['diff_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'diff_url'; + goto after_diff_url; + } + + $properties['diff_url'] = $value; + + after_diff_url: + + $value = $payload['draft'] ?? null; + + if ($value === null) { + $missingFields[] = 'draft'; + goto after_draft; + } + + $properties['draft'] = $value; + + after_draft: + + $value = $payload['head'] ?? null; + + if ($value === null) { + $missingFields[] = 'head'; + goto after_head; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'head'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Base($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['head'] = $value; + + after_head: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } + + $properties['html_url'] = $value; + + after_html_url: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['issue_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issue_url'; + goto after_issue_url; + } + + $properties['issue_url'] = $value; + + after_issue_url: + + $value = $payload['labels'] ?? null; + + if ($value === null) { + $missingFields[] = 'labels'; + goto after_labels; + } + + $properties['labels'] = $value; + + after_labels: + + $value = $payload['locked'] ?? null; + + if ($value === null) { + $missingFields[] = 'locked'; + goto after_locked; + } + + $properties['locked'] = $value; + + after_locked: + + $value = $payload['maintainer_can_modify'] ?? null; + + if ($value === null) { + $missingFields[] = 'maintainer_can_modify'; + goto after_maintainer_can_modify; + } + + $properties['maintainer_can_modify'] = $value; + + after_maintainer_can_modify: + + $value = $payload['merge_commit_sha'] ?? null; + + if ($value === null) { + $missingFields[] = 'merge_commit_sha'; + goto after_merge_commit_sha; + } + + $properties['merge_commit_sha'] = $value; + + after_merge_commit_sha: + + $value = $payload['mergeable'] ?? null; + + if ($value === null) { + $missingFields[] = 'mergeable'; + goto after_mergeable; + } + + $properties['mergeable'] = $value; + + after_mergeable: + + $value = $payload['mergeable_state'] ?? null; + + if ($value === null) { + $missingFields[] = 'mergeable_state'; + goto after_mergeable_state; + } + + $properties['mergeable_state'] = $value; + + after_mergeable_state: + + $value = $payload['merged'] ?? null; + + if ($value === null) { + $missingFields[] = 'merged'; + goto after_merged; + } + + $properties['merged'] = $value; + + after_merged: + + $value = $payload['merged_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'merged_at'; + goto after_merged_at; + } + + $properties['merged_at'] = $value; + + after_merged_at: + + $value = $payload['merged_by'] ?? null; + + if ($value === null) { + $missingFields[] = 'merged_by'; + goto after_merged_by; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'merged_by'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['merged_by'] = $value; + + after_merged_by: + + $value = $payload['milestone'] ?? null; + + if ($value === null) { + $missingFields[] = 'milestone'; + goto after_milestone; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'milestone'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesAssigned⚡️Issue⚡️Milestone($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['milestone'] = $value; + + after_milestone: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['number'] ?? null; + + if ($value === null) { + $missingFields[] = 'number'; + goto after_number; + } + + $properties['number'] = $value; + + after_number: + + $value = $payload['patch_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'patch_url'; + goto after_patch_url; + } + + $properties['patch_url'] = $value; + + after_patch_url: + + $value = $payload['rebaseable'] ?? null; + + if ($value === null) { + $missingFields[] = 'rebaseable'; + goto after_rebaseable; + } + + $properties['rebaseable'] = $value; + + after_rebaseable: + + $value = $payload['requested_reviewers'] ?? null; + + if ($value === null) { + $missingFields[] = 'requested_reviewers'; + goto after_requested_reviewers; + } + + $properties['requested_reviewers'] = $value; + + after_requested_reviewers: + + $value = $payload['requested_teams'] ?? null; + + if ($value === null) { + $missingFields[] = 'requested_teams'; + goto after_requested_teams; + } + + $properties['requested_teams'] = $value; + + after_requested_teams: + + $value = $payload['review_comment_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'review_comment_url'; + goto after_review_comment_url; + } + + $properties['review_comment_url'] = $value; + + after_review_comment_url: + + $value = $payload['review_comments'] ?? null; + + if ($value === null) { + $missingFields[] = 'review_comments'; + goto after_review_comments; + } + + $properties['review_comments'] = $value; + + after_review_comments: + + $value = $payload['review_comments_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'review_comments_url'; + goto after_review_comments_url; + } + + $properties['review_comments_url'] = $value; + + after_review_comments_url: + + $value = $payload['state'] ?? null; + + if ($value === null) { + $missingFields[] = 'state'; + goto after_state; + } + + $properties['state'] = $value; + + after_state: + + $value = $payload['statuses_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'statuses_url'; + goto after_statuses_url; + } + + $properties['statuses_url'] = $value; + + after_statuses_url: + + $value = $payload['title'] ?? null; + + if ($value === null) { + $missingFields[] = 'title'; + goto after_title; + } + + $properties['title'] = $value; + + after_title: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'updated_at'; + goto after_updated_at; + } + + $properties['updated_at'] = $value; + + after_updated_at: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['user'] ?? null; + + if ($value === null) { + $missingFields[] = 'user'; + goto after_user; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'user'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Comment⚡️User($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['user'] = $value; + + after_user: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestEnqueued\PullRequest', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestEnqueued\PullRequest::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookPullRequestEnqueued\PullRequest(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestEnqueued\PullRequest', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionLabeled⚡️Label(array $payload): \ApiClients\Client\Github\Schema\WebhookDiscussionLabeled\Label + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['color'] ?? null; + + if ($value === null) { + $missingFields[] = 'color'; + goto after_color; + } + + $properties['color'] = $value; + + after_color: + + $value = $payload['default'] ?? null; + + if ($value === null) { + $missingFields[] = 'default'; + goto after_default; + } + + $properties['default'] = $value; + + after_default: + + $value = $payload['description'] ?? null; + + if ($value === null) { + $missingFields[] = 'description'; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDiscussionLabeled\Label', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookDiscussionLabeled\Label::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookDiscussionLabeled\Label(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDiscussionLabeled\Label', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestLocked⚡️PullRequest(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestLocked\PullRequest + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['_links'] ?? null; + + if ($value === null) { + $missingFields[] = '_links'; + goto after__links; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = '_links'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['_links'] = $value; + + after__links: + + $value = $payload['active_lock_reason'] ?? null; + + if ($value === null) { + $missingFields[] = 'active_lock_reason'; + goto after_active_lock_reason; + } + + $properties['active_lock_reason'] = $value; + + after_active_lock_reason: + + $value = $payload['additions'] ?? null; + + if ($value === null) { + $missingFields[] = 'additions'; + goto after_additions; + } + + $properties['additions'] = $value; + + after_additions: + + $value = $payload['assignee'] ?? null; + + if ($value === null) { + $missingFields[] = 'assignee'; + goto after_assignee; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'assignee'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['assignee'] = $value; + + after_assignee: + + $value = $payload['assignees'] ?? null; + + if ($value === null) { + $missingFields[] = 'assignees'; + goto after_assignees; + } + + $properties['assignees'] = $value; + + after_assignees: + + $value = $payload['author_association'] ?? null; + + if ($value === null) { + $missingFields[] = 'author_association'; + goto after_author_association; + } + + $properties['author_association'] = $value; + + after_author_association: + + $value = $payload['auto_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'auto_merge'; + goto after_auto_merge; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'auto_merge'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️AutoMerge($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['auto_merge'] = $value; + + after_auto_merge: + + $value = $payload['base'] ?? null; + + if ($value === null) { + $missingFields[] = 'base'; + goto after_base; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'base'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Base($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['base'] = $value; + + after_base: + + $value = $payload['body'] ?? null; + + if ($value === null) { + $missingFields[] = 'body'; + goto after_body; + } + + $properties['body'] = $value; + + after_body: + + $value = $payload['changed_files'] ?? null; + + if ($value === null) { + $missingFields[] = 'changed_files'; + goto after_changed_files; + } + + $properties['changed_files'] = $value; + + after_changed_files: + + $value = $payload['closed_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'closed_at'; + goto after_closed_at; + } + + $properties['closed_at'] = $value; + + after_closed_at: + + $value = $payload['comments'] ?? null; + + if ($value === null) { + $missingFields[] = 'comments'; + goto after_comments; + } + + $properties['comments'] = $value; + + after_comments: + + $value = $payload['comments_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'comments_url'; + goto after_comments_url; + } + + $properties['comments_url'] = $value; + + after_comments_url: + + $value = $payload['commits'] ?? null; + + if ($value === null) { + $missingFields[] = 'commits'; + goto after_commits; + } + + $properties['commits'] = $value; + + after_commits: + + $value = $payload['commits_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'commits_url'; + goto after_commits_url; + } + + $properties['commits_url'] = $value; + + after_commits_url: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'created_at'; + goto after_created_at; + } + + $properties['created_at'] = $value; + + after_created_at: + + $value = $payload['deletions'] ?? null; + + if ($value === null) { + $missingFields[] = 'deletions'; + goto after_deletions; + } + + $properties['deletions'] = $value; + + after_deletions: + + $value = $payload['diff_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'diff_url'; + goto after_diff_url; + } + + $properties['diff_url'] = $value; + + after_diff_url: + + $value = $payload['draft'] ?? null; + + if ($value === null) { + $missingFields[] = 'draft'; + goto after_draft; + } + + $properties['draft'] = $value; + + after_draft: + + $value = $payload['head'] ?? null; + + if ($value === null) { + $missingFields[] = 'head'; + goto after_head; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'head'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Head($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['head'] = $value; + + after_head: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } + + $properties['html_url'] = $value; + + after_html_url: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['issue_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issue_url'; + goto after_issue_url; + } + + $properties['issue_url'] = $value; + + after_issue_url: + + $value = $payload['labels'] ?? null; + + if ($value === null) { + $missingFields[] = 'labels'; + goto after_labels; + } + + $properties['labels'] = $value; + + after_labels: + + $value = $payload['locked'] ?? null; + + if ($value === null) { + $missingFields[] = 'locked'; + goto after_locked; + } + + $properties['locked'] = $value; + + after_locked: + + $value = $payload['maintainer_can_modify'] ?? null; + + if ($value === null) { + $missingFields[] = 'maintainer_can_modify'; + goto after_maintainer_can_modify; + } + + $properties['maintainer_can_modify'] = $value; + + after_maintainer_can_modify: + + $value = $payload['merge_commit_sha'] ?? null; + + if ($value === null) { + $missingFields[] = 'merge_commit_sha'; + goto after_merge_commit_sha; + } + + $properties['merge_commit_sha'] = $value; + + after_merge_commit_sha: + + $value = $payload['mergeable'] ?? null; + + if ($value === null) { + $missingFields[] = 'mergeable'; + goto after_mergeable; + } + + $properties['mergeable'] = $value; + + after_mergeable: + + $value = $payload['mergeable_state'] ?? null; + + if ($value === null) { + $missingFields[] = 'mergeable_state'; + goto after_mergeable_state; + } + + $properties['mergeable_state'] = $value; + + after_mergeable_state: + + $value = $payload['merged'] ?? null; + + if ($value === null) { + $missingFields[] = 'merged'; + goto after_merged; + } + + $properties['merged'] = $value; + + after_merged: + + $value = $payload['merged_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'merged_at'; + goto after_merged_at; + } + + $properties['merged_at'] = $value; + + after_merged_at: + + $value = $payload['merged_by'] ?? null; + + if ($value === null) { + $missingFields[] = 'merged_by'; + goto after_merged_by; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'merged_by'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Comment⚡️User($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['merged_by'] = $value; + + after_merged_by: + + $value = $payload['milestone'] ?? null; + + if ($value === null) { + $missingFields[] = 'milestone'; + goto after_milestone; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'milestone'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesDeleted⚡️Issue⚡️Milestone($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['milestone'] = $value; + + after_milestone: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['number'] ?? null; + + if ($value === null) { + $missingFields[] = 'number'; + goto after_number; + } + + $properties['number'] = $value; + + after_number: + + $value = $payload['patch_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'patch_url'; + goto after_patch_url; + } + + $properties['patch_url'] = $value; + + after_patch_url: + + $value = $payload['rebaseable'] ?? null; + + if ($value === null) { + $missingFields[] = 'rebaseable'; + goto after_rebaseable; + } + + $properties['rebaseable'] = $value; + + after_rebaseable: + + $value = $payload['requested_reviewers'] ?? null; + + if ($value === null) { + $missingFields[] = 'requested_reviewers'; + goto after_requested_reviewers; + } + + $properties['requested_reviewers'] = $value; + + after_requested_reviewers: + + $value = $payload['requested_teams'] ?? null; + + if ($value === null) { + $missingFields[] = 'requested_teams'; + goto after_requested_teams; + } + + $properties['requested_teams'] = $value; + + after_requested_teams: + + $value = $payload['review_comment_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'review_comment_url'; + goto after_review_comment_url; + } + + $properties['review_comment_url'] = $value; + + after_review_comment_url: + + $value = $payload['review_comments'] ?? null; + + if ($value === null) { + $missingFields[] = 'review_comments'; + goto after_review_comments; + } + + $properties['review_comments'] = $value; + + after_review_comments: + + $value = $payload['review_comments_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'review_comments_url'; + goto after_review_comments_url; + } + + $properties['review_comments_url'] = $value; + + after_review_comments_url: + + $value = $payload['state'] ?? null; + + if ($value === null) { + $missingFields[] = 'state'; + goto after_state; + } + + $properties['state'] = $value; + + after_state: + + $value = $payload['statuses_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'statuses_url'; + goto after_statuses_url; + } + + $properties['statuses_url'] = $value; + + after_statuses_url: + + $value = $payload['title'] ?? null; + + if ($value === null) { + $missingFields[] = 'title'; + goto after_title; + } + + $properties['title'] = $value; + + after_title: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'updated_at'; + goto after_updated_at; + } + + $properties['updated_at'] = $value; + + after_updated_at: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['user'] ?? null; + + if ($value === null) { + $missingFields[] = 'user'; + goto after_user; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'user'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Comment⚡️User($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['user'] = $value; + + after_user: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestLocked\PullRequest', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestLocked\PullRequest::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookPullRequestLocked\PullRequest(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestLocked\PullRequest', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestSynchronize⚡️PullRequest(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestSynchronize\PullRequest + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['_links'] ?? null; + + if ($value === null) { + $missingFields[] = '_links'; + goto after__links; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = '_links'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['_links'] = $value; + + after__links: + + $value = $payload['active_lock_reason'] ?? null; + + if ($value === null) { + $missingFields[] = 'active_lock_reason'; + goto after_active_lock_reason; + } + + $properties['active_lock_reason'] = $value; + + after_active_lock_reason: + + $value = $payload['additions'] ?? null; + + if ($value === null) { + $missingFields[] = 'additions'; + goto after_additions; + } + + $properties['additions'] = $value; + + after_additions: + + $value = $payload['assignee'] ?? null; + + if ($value === null) { + $missingFields[] = 'assignee'; + goto after_assignee; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'assignee'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Comment⚡️User($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['assignee'] = $value; + + after_assignee: + + $value = $payload['assignees'] ?? null; + + if ($value === null) { + $missingFields[] = 'assignees'; + goto after_assignees; + } + + $properties['assignees'] = $value; + + after_assignees: + + $value = $payload['author_association'] ?? null; + + if ($value === null) { + $missingFields[] = 'author_association'; + goto after_author_association; + } + + $properties['author_association'] = $value; + + after_author_association: + + $value = $payload['auto_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'auto_merge'; + goto after_auto_merge; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'auto_merge'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️AutoMerge($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['auto_merge'] = $value; + + after_auto_merge: + + $value = $payload['base'] ?? null; + + if ($value === null) { + $missingFields[] = 'base'; + goto after_base; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'base'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Base($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['base'] = $value; + + after_base: + + $value = $payload['body'] ?? null; + + if ($value === null) { + $missingFields[] = 'body'; + goto after_body; + } + + $properties['body'] = $value; + + after_body: + + $value = $payload['changed_files'] ?? null; + + if ($value === null) { + $missingFields[] = 'changed_files'; + goto after_changed_files; + } + + $properties['changed_files'] = $value; + + after_changed_files: + + $value = $payload['closed_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'closed_at'; + goto after_closed_at; + } + + $properties['closed_at'] = $value; + + after_closed_at: + + $value = $payload['comments'] ?? null; + + if ($value === null) { + $missingFields[] = 'comments'; + goto after_comments; + } + + $properties['comments'] = $value; + + after_comments: + + $value = $payload['comments_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'comments_url'; + goto after_comments_url; + } + + $properties['comments_url'] = $value; + + after_comments_url: + + $value = $payload['commits'] ?? null; + + if ($value === null) { + $missingFields[] = 'commits'; + goto after_commits; + } + + $properties['commits'] = $value; + + after_commits: + + $value = $payload['commits_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'commits_url'; + goto after_commits_url; + } + + $properties['commits_url'] = $value; + + after_commits_url: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'created_at'; + goto after_created_at; + } + + $properties['created_at'] = $value; + + after_created_at: + + $value = $payload['deletions'] ?? null; + + if ($value === null) { + $missingFields[] = 'deletions'; + goto after_deletions; + } + + $properties['deletions'] = $value; + + after_deletions: + + $value = $payload['diff_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'diff_url'; + goto after_diff_url; + } + + $properties['diff_url'] = $value; + + after_diff_url: + + $value = $payload['draft'] ?? null; + + if ($value === null) { + $missingFields[] = 'draft'; + goto after_draft; + } + + $properties['draft'] = $value; + + after_draft: + + $value = $payload['head'] ?? null; + + if ($value === null) { + $missingFields[] = 'head'; + goto after_head; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'head'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestSynchronize⚡️PullRequest⚡️Head($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['head'] = $value; + + after_head: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } + + $properties['html_url'] = $value; + + after_html_url: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['issue_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issue_url'; + goto after_issue_url; + } + + $properties['issue_url'] = $value; + + after_issue_url: + + $value = $payload['labels'] ?? null; + + if ($value === null) { + $missingFields[] = 'labels'; + goto after_labels; + } + + $properties['labels'] = $value; + + after_labels: + + $value = $payload['locked'] ?? null; + + if ($value === null) { + $missingFields[] = 'locked'; + goto after_locked; + } + + $properties['locked'] = $value; + + after_locked: + + $value = $payload['maintainer_can_modify'] ?? null; + + if ($value === null) { + $missingFields[] = 'maintainer_can_modify'; + goto after_maintainer_can_modify; + } + + $properties['maintainer_can_modify'] = $value; + + after_maintainer_can_modify: + + $value = $payload['merge_commit_sha'] ?? null; + + if ($value === null) { + $missingFields[] = 'merge_commit_sha'; + goto after_merge_commit_sha; + } + + $properties['merge_commit_sha'] = $value; + + after_merge_commit_sha: + + $value = $payload['mergeable'] ?? null; + + if ($value === null) { + $missingFields[] = 'mergeable'; + goto after_mergeable; + } + + $properties['mergeable'] = $value; + + after_mergeable: + + $value = $payload['mergeable_state'] ?? null; + + if ($value === null) { + $missingFields[] = 'mergeable_state'; + goto after_mergeable_state; + } + + $properties['mergeable_state'] = $value; + + after_mergeable_state: + + $value = $payload['merged'] ?? null; + + if ($value === null) { + $missingFields[] = 'merged'; + goto after_merged; + } + + $properties['merged'] = $value; + + after_merged: + + $value = $payload['merged_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'merged_at'; + goto after_merged_at; + } + + $properties['merged_at'] = $value; + + after_merged_at: + + $value = $payload['merged_by'] ?? null; + + if ($value === null) { + $missingFields[] = 'merged_by'; + goto after_merged_by; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'merged_by'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['merged_by'] = $value; + + after_merged_by: + + $value = $payload['milestone'] ?? null; + + if ($value === null) { + $missingFields[] = 'milestone'; + goto after_milestone; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'milestone'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesAssigned⚡️Issue⚡️Milestone($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['milestone'] = $value; + + after_milestone: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['number'] ?? null; + + if ($value === null) { + $missingFields[] = 'number'; + goto after_number; + } + + $properties['number'] = $value; + + after_number: + + $value = $payload['patch_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'patch_url'; + goto after_patch_url; + } + + $properties['patch_url'] = $value; + + after_patch_url: + + $value = $payload['rebaseable'] ?? null; + + if ($value === null) { + $missingFields[] = 'rebaseable'; + goto after_rebaseable; + } + + $properties['rebaseable'] = $value; + + after_rebaseable: + + $value = $payload['requested_reviewers'] ?? null; + + if ($value === null) { + $missingFields[] = 'requested_reviewers'; + goto after_requested_reviewers; + } + + $properties['requested_reviewers'] = $value; + + after_requested_reviewers: + + $value = $payload['requested_teams'] ?? null; + + if ($value === null) { + $missingFields[] = 'requested_teams'; + goto after_requested_teams; + } + + $properties['requested_teams'] = $value; + + after_requested_teams: + + $value = $payload['review_comment_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'review_comment_url'; + goto after_review_comment_url; + } + + $properties['review_comment_url'] = $value; + + after_review_comment_url: + + $value = $payload['review_comments'] ?? null; + + if ($value === null) { + $missingFields[] = 'review_comments'; + goto after_review_comments; + } + + $properties['review_comments'] = $value; + + after_review_comments: + + $value = $payload['review_comments_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'review_comments_url'; + goto after_review_comments_url; + } + + $properties['review_comments_url'] = $value; + + after_review_comments_url: + + $value = $payload['state'] ?? null; + + if ($value === null) { + $missingFields[] = 'state'; + goto after_state; + } + + $properties['state'] = $value; + + after_state: + + $value = $payload['statuses_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'statuses_url'; + goto after_statuses_url; + } + + $properties['statuses_url'] = $value; + + after_statuses_url: + + $value = $payload['title'] ?? null; + + if ($value === null) { + $missingFields[] = 'title'; + goto after_title; + } + + $properties['title'] = $value; + + after_title: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'updated_at'; + goto after_updated_at; + } + + $properties['updated_at'] = $value; + + after_updated_at: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['user'] ?? null; + + if ($value === null) { + $missingFields[] = 'user'; + goto after_user; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'user'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Comment⚡️User($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['user'] = $value; + + after_user: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestSynchronize\PullRequest', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestSynchronize\PullRequest::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookPullRequestSynchronize\PullRequest(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestSynchronize\PullRequest', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Comment⚡️User(array $payload): \ApiClients\Client\Github\Schema\WebhookIssueCommentDeleted\Comment\User + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['avatar_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'avatar_url'; + goto after_avatar_url; + } + + $properties['avatar_url'] = $value; + + after_avatar_url: + + $value = $payload['deleted'] ?? null; + + if ($value === null) { + $missingFields[] = 'deleted'; + goto after_deleted; + } + + $properties['deleted'] = $value; + + after_deleted: + + $value = $payload['email'] ?? null; + + if ($value === null) { + $missingFields[] = 'email'; + goto after_email; + } + + $properties['email'] = $value; + + after_email: + + $value = $payload['events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'events_url'; + goto after_events_url; + } + + $properties['events_url'] = $value; + + after_events_url: + + $value = $payload['followers_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'followers_url'; + goto after_followers_url; + } + + $properties['followers_url'] = $value; + + after_followers_url: + + $value = $payload['following_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'following_url'; + goto after_following_url; + } + + $properties['following_url'] = $value; + + after_following_url: + + $value = $payload['gists_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'gists_url'; + goto after_gists_url; + } + + $properties['gists_url'] = $value; + + after_gists_url: + + $value = $payload['gravatar_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'gravatar_id'; + goto after_gravatar_id; + } + + $properties['gravatar_id'] = $value; + + after_gravatar_id: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } + + $properties['html_url'] = $value; + + after_html_url: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['login'] ?? null; + + if ($value === null) { + $missingFields[] = 'login'; + goto after_login; + } + + $properties['login'] = $value; + + after_login: + + $value = $payload['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['organizations_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'organizations_url'; + goto after_organizations_url; + } + + $properties['organizations_url'] = $value; + + after_organizations_url: + + $value = $payload['received_events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'received_events_url'; + goto after_received_events_url; + } + + $properties['received_events_url'] = $value; + + after_received_events_url: + + $value = $payload['repos_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'repos_url'; + goto after_repos_url; + } + + $properties['repos_url'] = $value; + + after_repos_url: + + $value = $payload['site_admin'] ?? null; + + if ($value === null) { + $missingFields[] = 'site_admin'; + goto after_site_admin; + } + + $properties['site_admin'] = $value; + + after_site_admin: + + $value = $payload['starred_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'starred_url'; + goto after_starred_url; + } + + $properties['starred_url'] = $value; + + after_starred_url: + + $value = $payload['subscriptions_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscriptions_url'; + goto after_subscriptions_url; + } + + $properties['subscriptions_url'] = $value; + + after_subscriptions_url: + + $value = $payload['type'] ?? null; + + if ($value === null) { + $missingFields[] = 'type'; + goto after_type; + } + + $properties['type'] = $value; + + after_type: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssueCommentDeleted\Comment\User', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookIssueCommentDeleted\Comment\User::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookIssueCommentDeleted\Comment\User(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssueCommentDeleted\Comment\User', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestUnassigned⚡️PullRequest(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestUnassigned\PullRequest + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['_links'] ?? null; + + if ($value === null) { + $missingFields[] = '_links'; + goto after__links; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = '_links'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['_links'] = $value; + + after__links: + + $value = $payload['active_lock_reason'] ?? null; + + if ($value === null) { + $missingFields[] = 'active_lock_reason'; + goto after_active_lock_reason; + } + + $properties['active_lock_reason'] = $value; + + after_active_lock_reason: + + $value = $payload['additions'] ?? null; + + if ($value === null) { + $missingFields[] = 'additions'; + goto after_additions; + } + + $properties['additions'] = $value; + + after_additions: + + $value = $payload['assignee'] ?? null; + + if ($value === null) { + $missingFields[] = 'assignee'; + goto after_assignee; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'assignee'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Comment⚡️User($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['assignee'] = $value; + + after_assignee: + + $value = $payload['assignees'] ?? null; + + if ($value === null) { + $missingFields[] = 'assignees'; + goto after_assignees; + } + + $properties['assignees'] = $value; + + after_assignees: + + $value = $payload['author_association'] ?? null; + + if ($value === null) { + $missingFields[] = 'author_association'; + goto after_author_association; + } + + $properties['author_association'] = $value; + + after_author_association: + + $value = $payload['auto_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'auto_merge'; + goto after_auto_merge; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'auto_merge'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️AutoMerge($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['auto_merge'] = $value; + + after_auto_merge: + + $value = $payload['base'] ?? null; + + if ($value === null) { + $missingFields[] = 'base'; + goto after_base; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'base'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestUnassigned⚡️PullRequest⚡️Base($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['base'] = $value; + + after_base: + + $value = $payload['body'] ?? null; + + if ($value === null) { + $missingFields[] = 'body'; + goto after_body; + } + + $properties['body'] = $value; + + after_body: + + $value = $payload['changed_files'] ?? null; + + if ($value === null) { + $missingFields[] = 'changed_files'; + goto after_changed_files; + } + + $properties['changed_files'] = $value; + + after_changed_files: + + $value = $payload['closed_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'closed_at'; + goto after_closed_at; + } + + $properties['closed_at'] = $value; + + after_closed_at: + + $value = $payload['comments'] ?? null; + + if ($value === null) { + $missingFields[] = 'comments'; + goto after_comments; + } + + $properties['comments'] = $value; + + after_comments: + + $value = $payload['comments_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'comments_url'; + goto after_comments_url; + } + + $properties['comments_url'] = $value; + + after_comments_url: + + $value = $payload['commits'] ?? null; + + if ($value === null) { + $missingFields[] = 'commits'; + goto after_commits; + } + + $properties['commits'] = $value; + + after_commits: + + $value = $payload['commits_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'commits_url'; + goto after_commits_url; + } + + $properties['commits_url'] = $value; + + after_commits_url: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'created_at'; + goto after_created_at; + } + + $properties['created_at'] = $value; + + after_created_at: + + $value = $payload['deletions'] ?? null; + + if ($value === null) { + $missingFields[] = 'deletions'; + goto after_deletions; + } + + $properties['deletions'] = $value; + + after_deletions: + + $value = $payload['diff_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'diff_url'; + goto after_diff_url; + } + + $properties['diff_url'] = $value; + + after_diff_url: + + $value = $payload['draft'] ?? null; + + if ($value === null) { + $missingFields[] = 'draft'; + goto after_draft; + } + + $properties['draft'] = $value; + + after_draft: + + $value = $payload['head'] ?? null; + + if ($value === null) { + $missingFields[] = 'head'; + goto after_head; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'head'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Head($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['head'] = $value; + + after_head: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } + + $properties['html_url'] = $value; + + after_html_url: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['issue_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issue_url'; + goto after_issue_url; + } + + $properties['issue_url'] = $value; + + after_issue_url: + + $value = $payload['labels'] ?? null; + + if ($value === null) { + $missingFields[] = 'labels'; + goto after_labels; + } + + $properties['labels'] = $value; + + after_labels: + + $value = $payload['locked'] ?? null; + + if ($value === null) { + $missingFields[] = 'locked'; + goto after_locked; + } + + $properties['locked'] = $value; + + after_locked: + + $value = $payload['maintainer_can_modify'] ?? null; + + if ($value === null) { + $missingFields[] = 'maintainer_can_modify'; + goto after_maintainer_can_modify; + } + + $properties['maintainer_can_modify'] = $value; + + after_maintainer_can_modify: + + $value = $payload['merge_commit_sha'] ?? null; + + if ($value === null) { + $missingFields[] = 'merge_commit_sha'; + goto after_merge_commit_sha; + } + + $properties['merge_commit_sha'] = $value; + + after_merge_commit_sha: + + $value = $payload['mergeable'] ?? null; + + if ($value === null) { + $missingFields[] = 'mergeable'; + goto after_mergeable; + } + + $properties['mergeable'] = $value; + + after_mergeable: + + $value = $payload['mergeable_state'] ?? null; + + if ($value === null) { + $missingFields[] = 'mergeable_state'; + goto after_mergeable_state; + } + + $properties['mergeable_state'] = $value; + + after_mergeable_state: + + $value = $payload['merged'] ?? null; + + if ($value === null) { + $missingFields[] = 'merged'; + goto after_merged; + } + + $properties['merged'] = $value; + + after_merged: + + $value = $payload['merged_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'merged_at'; + goto after_merged_at; + } + + $properties['merged_at'] = $value; + + after_merged_at: + + $value = $payload['merged_by'] ?? null; + + if ($value === null) { + $missingFields[] = 'merged_by'; + goto after_merged_by; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'merged_by'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Comment⚡️User($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['merged_by'] = $value; + + after_merged_by: + + $value = $payload['milestone'] ?? null; + + if ($value === null) { + $missingFields[] = 'milestone'; + goto after_milestone; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'milestone'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesAssigned⚡️Issue⚡️Milestone($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['milestone'] = $value; + + after_milestone: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['number'] ?? null; + + if ($value === null) { + $missingFields[] = 'number'; + goto after_number; + } + + $properties['number'] = $value; + + after_number: + + $value = $payload['patch_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'patch_url'; + goto after_patch_url; + } + + $properties['patch_url'] = $value; + + after_patch_url: + + $value = $payload['rebaseable'] ?? null; + + if ($value === null) { + $missingFields[] = 'rebaseable'; + goto after_rebaseable; + } + + $properties['rebaseable'] = $value; + + after_rebaseable: + + $value = $payload['requested_reviewers'] ?? null; + + if ($value === null) { + $missingFields[] = 'requested_reviewers'; + goto after_requested_reviewers; + } + + $properties['requested_reviewers'] = $value; + + after_requested_reviewers: + + $value = $payload['requested_teams'] ?? null; + + if ($value === null) { + $missingFields[] = 'requested_teams'; + goto after_requested_teams; + } + + $properties['requested_teams'] = $value; + + after_requested_teams: + + $value = $payload['review_comment_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'review_comment_url'; + goto after_review_comment_url; + } + + $properties['review_comment_url'] = $value; + + after_review_comment_url: + + $value = $payload['review_comments'] ?? null; + + if ($value === null) { + $missingFields[] = 'review_comments'; + goto after_review_comments; + } + + $properties['review_comments'] = $value; + + after_review_comments: + + $value = $payload['review_comments_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'review_comments_url'; + goto after_review_comments_url; + } + + $properties['review_comments_url'] = $value; + + after_review_comments_url: + + $value = $payload['state'] ?? null; + + if ($value === null) { + $missingFields[] = 'state'; + goto after_state; + } + + $properties['state'] = $value; + + after_state: + + $value = $payload['statuses_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'statuses_url'; + goto after_statuses_url; + } + + $properties['statuses_url'] = $value; + + after_statuses_url: + + $value = $payload['title'] ?? null; + + if ($value === null) { + $missingFields[] = 'title'; + goto after_title; + } + + $properties['title'] = $value; + + after_title: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'updated_at'; + goto after_updated_at; + } + + $properties['updated_at'] = $value; + + after_updated_at: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['user'] ?? null; + + if ($value === null) { + $missingFields[] = 'user'; + goto after_user; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'user'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Comment⚡️User($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['user'] = $value; + + after_user: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestUnassigned\PullRequest', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestUnassigned\PullRequest::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookPullRequestUnassigned\PullRequest(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestUnassigned\PullRequest', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestUnlabeled⚡️PullRequest(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestUnlabeled\PullRequest + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['_links'] ?? null; + + if ($value === null) { + $missingFields[] = '_links'; + goto after__links; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = '_links'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['_links'] = $value; + + after__links: + + $value = $payload['active_lock_reason'] ?? null; + + if ($value === null) { + $missingFields[] = 'active_lock_reason'; + goto after_active_lock_reason; + } + + $properties['active_lock_reason'] = $value; + + after_active_lock_reason: + + $value = $payload['additions'] ?? null; + + if ($value === null) { + $missingFields[] = 'additions'; + goto after_additions; + } + + $properties['additions'] = $value; + + after_additions: + + $value = $payload['assignee'] ?? null; + + if ($value === null) { + $missingFields[] = 'assignee'; + goto after_assignee; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'assignee'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Comment⚡️User($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['assignee'] = $value; + + after_assignee: + + $value = $payload['assignees'] ?? null; + + if ($value === null) { + $missingFields[] = 'assignees'; + goto after_assignees; + } + + $properties['assignees'] = $value; + + after_assignees: + + $value = $payload['author_association'] ?? null; + + if ($value === null) { + $missingFields[] = 'author_association'; + goto after_author_association; + } + + $properties['author_association'] = $value; + + after_author_association: + + $value = $payload['auto_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'auto_merge'; + goto after_auto_merge; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'auto_merge'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️AutoMerge($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['auto_merge'] = $value; + + after_auto_merge: + + $value = $payload['base'] ?? null; + + if ($value === null) { + $missingFields[] = 'base'; + goto after_base; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'base'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Base($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['base'] = $value; + + after_base: + + $value = $payload['body'] ?? null; + + if ($value === null) { + $missingFields[] = 'body'; + goto after_body; + } + + $properties['body'] = $value; + + after_body: + + $value = $payload['changed_files'] ?? null; + + if ($value === null) { + $missingFields[] = 'changed_files'; + goto after_changed_files; + } + + $properties['changed_files'] = $value; + + after_changed_files: + + $value = $payload['closed_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'closed_at'; + goto after_closed_at; + } + + $properties['closed_at'] = $value; + + after_closed_at: + + $value = $payload['comments'] ?? null; + + if ($value === null) { + $missingFields[] = 'comments'; + goto after_comments; + } + + $properties['comments'] = $value; + + after_comments: + + $value = $payload['comments_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'comments_url'; + goto after_comments_url; + } + + $properties['comments_url'] = $value; + + after_comments_url: + + $value = $payload['commits'] ?? null; + + if ($value === null) { + $missingFields[] = 'commits'; + goto after_commits; + } + + $properties['commits'] = $value; + + after_commits: + + $value = $payload['commits_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'commits_url'; + goto after_commits_url; + } + + $properties['commits_url'] = $value; + + after_commits_url: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'created_at'; + goto after_created_at; + } + + $properties['created_at'] = $value; + + after_created_at: + + $value = $payload['deletions'] ?? null; + + if ($value === null) { + $missingFields[] = 'deletions'; + goto after_deletions; + } + + $properties['deletions'] = $value; + + after_deletions: + + $value = $payload['diff_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'diff_url'; + goto after_diff_url; + } + + $properties['diff_url'] = $value; + + after_diff_url: + + $value = $payload['draft'] ?? null; + + if ($value === null) { + $missingFields[] = 'draft'; + goto after_draft; + } + + $properties['draft'] = $value; + + after_draft: + + $value = $payload['head'] ?? null; + + if ($value === null) { + $missingFields[] = 'head'; + goto after_head; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'head'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestUnlabeled⚡️PullRequest⚡️Head($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['head'] = $value; + + after_head: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } + + $properties['html_url'] = $value; + + after_html_url: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['issue_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issue_url'; + goto after_issue_url; + } + + $properties['issue_url'] = $value; + + after_issue_url: + + $value = $payload['labels'] ?? null; + + if ($value === null) { + $missingFields[] = 'labels'; + goto after_labels; + } + + $properties['labels'] = $value; + + after_labels: + + $value = $payload['locked'] ?? null; + + if ($value === null) { + $missingFields[] = 'locked'; + goto after_locked; + } + + $properties['locked'] = $value; + + after_locked: + + $value = $payload['maintainer_can_modify'] ?? null; + + if ($value === null) { + $missingFields[] = 'maintainer_can_modify'; + goto after_maintainer_can_modify; + } + + $properties['maintainer_can_modify'] = $value; + + after_maintainer_can_modify: + + $value = $payload['merge_commit_sha'] ?? null; + + if ($value === null) { + $missingFields[] = 'merge_commit_sha'; + goto after_merge_commit_sha; + } + + $properties['merge_commit_sha'] = $value; + + after_merge_commit_sha: + + $value = $payload['mergeable'] ?? null; + + if ($value === null) { + $missingFields[] = 'mergeable'; + goto after_mergeable; + } + + $properties['mergeable'] = $value; + + after_mergeable: + + $value = $payload['mergeable_state'] ?? null; + + if ($value === null) { + $missingFields[] = 'mergeable_state'; + goto after_mergeable_state; + } + + $properties['mergeable_state'] = $value; + + after_mergeable_state: + + $value = $payload['merged'] ?? null; + + if ($value === null) { + $missingFields[] = 'merged'; + goto after_merged; + } + + $properties['merged'] = $value; + + after_merged: + + $value = $payload['merged_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'merged_at'; + goto after_merged_at; + } + + $properties['merged_at'] = $value; + + after_merged_at: + + $value = $payload['merged_by'] ?? null; + + if ($value === null) { + $missingFields[] = 'merged_by'; + goto after_merged_by; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'merged_by'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['merged_by'] = $value; + + after_merged_by: + + $value = $payload['milestone'] ?? null; + + if ($value === null) { + $missingFields[] = 'milestone'; + goto after_milestone; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'milestone'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesAssigned⚡️Issue⚡️Milestone($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['milestone'] = $value; + + after_milestone: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['number'] ?? null; + + if ($value === null) { + $missingFields[] = 'number'; + goto after_number; + } + + $properties['number'] = $value; + + after_number: + + $value = $payload['patch_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'patch_url'; + goto after_patch_url; + } + + $properties['patch_url'] = $value; + + after_patch_url: + + $value = $payload['rebaseable'] ?? null; + + if ($value === null) { + $missingFields[] = 'rebaseable'; + goto after_rebaseable; + } + + $properties['rebaseable'] = $value; + + after_rebaseable: + + $value = $payload['requested_reviewers'] ?? null; + + if ($value === null) { + $missingFields[] = 'requested_reviewers'; + goto after_requested_reviewers; + } + + $properties['requested_reviewers'] = $value; + + after_requested_reviewers: + + $value = $payload['requested_teams'] ?? null; + + if ($value === null) { + $missingFields[] = 'requested_teams'; + goto after_requested_teams; + } + + $properties['requested_teams'] = $value; + + after_requested_teams: + + $value = $payload['review_comment_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'review_comment_url'; + goto after_review_comment_url; + } + + $properties['review_comment_url'] = $value; + + after_review_comment_url: + + $value = $payload['review_comments'] ?? null; + + if ($value === null) { + $missingFields[] = 'review_comments'; + goto after_review_comments; + } + + $properties['review_comments'] = $value; + + after_review_comments: + + $value = $payload['review_comments_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'review_comments_url'; + goto after_review_comments_url; + } + + $properties['review_comments_url'] = $value; + + after_review_comments_url: + + $value = $payload['state'] ?? null; + + if ($value === null) { + $missingFields[] = 'state'; + goto after_state; + } + + $properties['state'] = $value; + + after_state: + + $value = $payload['statuses_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'statuses_url'; + goto after_statuses_url; + } + + $properties['statuses_url'] = $value; + + after_statuses_url: + + $value = $payload['title'] ?? null; + + if ($value === null) { + $missingFields[] = 'title'; + goto after_title; + } + + $properties['title'] = $value; + + after_title: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'updated_at'; + goto after_updated_at; + } + + $properties['updated_at'] = $value; + + after_updated_at: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['user'] ?? null; + + if ($value === null) { + $missingFields[] = 'user'; + goto after_user; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'user'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Comment⚡️User($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['user'] = $value; + + after_user: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestUnlabeled\PullRequest', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestUnlabeled\PullRequest::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookPullRequestUnlabeled\PullRequest(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestUnlabeled\PullRequest', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestUnlocked⚡️PullRequest(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestUnlocked\PullRequest + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['_links'] ?? null; + + if ($value === null) { + $missingFields[] = '_links'; + goto after__links; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = '_links'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['_links'] = $value; + + after__links: + + $value = $payload['active_lock_reason'] ?? null; + + if ($value === null) { + $missingFields[] = 'active_lock_reason'; + goto after_active_lock_reason; + } + + $properties['active_lock_reason'] = $value; + + after_active_lock_reason: + + $value = $payload['additions'] ?? null; + + if ($value === null) { + $missingFields[] = 'additions'; + goto after_additions; + } + + $properties['additions'] = $value; + + after_additions: + + $value = $payload['assignee'] ?? null; + + if ($value === null) { + $missingFields[] = 'assignee'; + goto after_assignee; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'assignee'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['assignee'] = $value; + + after_assignee: + + $value = $payload['assignees'] ?? null; + + if ($value === null) { + $missingFields[] = 'assignees'; + goto after_assignees; + } + + $properties['assignees'] = $value; + + after_assignees: + + $value = $payload['author_association'] ?? null; + + if ($value === null) { + $missingFields[] = 'author_association'; + goto after_author_association; + } + + $properties['author_association'] = $value; + + after_author_association: + + $value = $payload['auto_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'auto_merge'; + goto after_auto_merge; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'auto_merge'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewThreadUnresolved⚡️PullRequest⚡️AutoMerge($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['auto_merge'] = $value; + + after_auto_merge: + + $value = $payload['base'] ?? null; + + if ($value === null) { + $missingFields[] = 'base'; + goto after_base; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'base'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Base($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['base'] = $value; + + after_base: + + $value = $payload['body'] ?? null; + + if ($value === null) { + $missingFields[] = 'body'; + goto after_body; + } + + $properties['body'] = $value; + + after_body: + + $value = $payload['changed_files'] ?? null; + + if ($value === null) { + $missingFields[] = 'changed_files'; + goto after_changed_files; + } + + $properties['changed_files'] = $value; + + after_changed_files: + + $value = $payload['closed_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'closed_at'; + goto after_closed_at; + } + + $properties['closed_at'] = $value; + + after_closed_at: + + $value = $payload['comments'] ?? null; + + if ($value === null) { + $missingFields[] = 'comments'; + goto after_comments; + } + + $properties['comments'] = $value; + + after_comments: + + $value = $payload['comments_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'comments_url'; + goto after_comments_url; + } + + $properties['comments_url'] = $value; + + after_comments_url: + + $value = $payload['commits'] ?? null; + + if ($value === null) { + $missingFields[] = 'commits'; + goto after_commits; + } + + $properties['commits'] = $value; + + after_commits: + + $value = $payload['commits_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'commits_url'; + goto after_commits_url; + } + + $properties['commits_url'] = $value; + + after_commits_url: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'created_at'; + goto after_created_at; + } + + $properties['created_at'] = $value; + + after_created_at: + + $value = $payload['deletions'] ?? null; + + if ($value === null) { + $missingFields[] = 'deletions'; + goto after_deletions; + } + + $properties['deletions'] = $value; + + after_deletions: + + $value = $payload['diff_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'diff_url'; + goto after_diff_url; + } + + $properties['diff_url'] = $value; + + after_diff_url: + + $value = $payload['draft'] ?? null; + + if ($value === null) { + $missingFields[] = 'draft'; + goto after_draft; + } + + $properties['draft'] = $value; + + after_draft: + + $value = $payload['head'] ?? null; + + if ($value === null) { + $missingFields[] = 'head'; + goto after_head; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'head'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewCommentDeleted⚡️PullRequest⚡️Head($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['head'] = $value; + + after_head: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } + + $properties['html_url'] = $value; + + after_html_url: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['issue_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issue_url'; + goto after_issue_url; + } + + $properties['issue_url'] = $value; + + after_issue_url: + + $value = $payload['labels'] ?? null; + + if ($value === null) { + $missingFields[] = 'labels'; + goto after_labels; + } + + $properties['labels'] = $value; + + after_labels: + + $value = $payload['locked'] ?? null; + + if ($value === null) { + $missingFields[] = 'locked'; + goto after_locked; + } + + $properties['locked'] = $value; + + after_locked: + + $value = $payload['maintainer_can_modify'] ?? null; + + if ($value === null) { + $missingFields[] = 'maintainer_can_modify'; + goto after_maintainer_can_modify; + } + + $properties['maintainer_can_modify'] = $value; + + after_maintainer_can_modify: + + $value = $payload['merge_commit_sha'] ?? null; + + if ($value === null) { + $missingFields[] = 'merge_commit_sha'; + goto after_merge_commit_sha; + } + + $properties['merge_commit_sha'] = $value; + + after_merge_commit_sha: + + $value = $payload['mergeable'] ?? null; + + if ($value === null) { + $missingFields[] = 'mergeable'; + goto after_mergeable; + } + + $properties['mergeable'] = $value; + + after_mergeable: + + $value = $payload['mergeable_state'] ?? null; + + if ($value === null) { + $missingFields[] = 'mergeable_state'; + goto after_mergeable_state; + } + + $properties['mergeable_state'] = $value; + + after_mergeable_state: + + $value = $payload['merged'] ?? null; + + if ($value === null) { + $missingFields[] = 'merged'; + goto after_merged; + } + + $properties['merged'] = $value; + + after_merged: + + $value = $payload['merged_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'merged_at'; + goto after_merged_at; + } + + $properties['merged_at'] = $value; + + after_merged_at: + + $value = $payload['merged_by'] ?? null; + + if ($value === null) { + $missingFields[] = 'merged_by'; + goto after_merged_by; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'merged_by'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['merged_by'] = $value; + + after_merged_by: + + $value = $payload['milestone'] ?? null; + + if ($value === null) { + $missingFields[] = 'milestone'; + goto after_milestone; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'milestone'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesDeleted⚡️Issue⚡️Milestone($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['milestone'] = $value; + + after_milestone: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['number'] ?? null; + + if ($value === null) { + $missingFields[] = 'number'; + goto after_number; + } + + $properties['number'] = $value; + + after_number: + + $value = $payload['patch_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'patch_url'; + goto after_patch_url; + } + + $properties['patch_url'] = $value; + + after_patch_url: + + $value = $payload['rebaseable'] ?? null; + + if ($value === null) { + $missingFields[] = 'rebaseable'; + goto after_rebaseable; + } + + $properties['rebaseable'] = $value; + + after_rebaseable: + + $value = $payload['requested_reviewers'] ?? null; + + if ($value === null) { + $missingFields[] = 'requested_reviewers'; + goto after_requested_reviewers; + } + + $properties['requested_reviewers'] = $value; + + after_requested_reviewers: + + $value = $payload['requested_teams'] ?? null; + + if ($value === null) { + $missingFields[] = 'requested_teams'; + goto after_requested_teams; + } + + $properties['requested_teams'] = $value; + + after_requested_teams: + + $value = $payload['review_comment_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'review_comment_url'; + goto after_review_comment_url; + } + + $properties['review_comment_url'] = $value; + + after_review_comment_url: + + $value = $payload['review_comments'] ?? null; + + if ($value === null) { + $missingFields[] = 'review_comments'; + goto after_review_comments; + } + + $properties['review_comments'] = $value; + + after_review_comments: + + $value = $payload['review_comments_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'review_comments_url'; + goto after_review_comments_url; + } + + $properties['review_comments_url'] = $value; + + after_review_comments_url: + + $value = $payload['state'] ?? null; + + if ($value === null) { + $missingFields[] = 'state'; + goto after_state; + } + + $properties['state'] = $value; + + after_state: + + $value = $payload['statuses_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'statuses_url'; + goto after_statuses_url; + } + + $properties['statuses_url'] = $value; + + after_statuses_url: + + $value = $payload['title'] ?? null; + + if ($value === null) { + $missingFields[] = 'title'; + goto after_title; + } + + $properties['title'] = $value; + + after_title: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'updated_at'; + goto after_updated_at; + } + + $properties['updated_at'] = $value; + + after_updated_at: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['user'] ?? null; + + if ($value === null) { + $missingFields[] = 'user'; + goto after_user; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'user'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['user'] = $value; + + after_user: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestUnlocked\PullRequest', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestUnlocked\PullRequest::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookPullRequestUnlocked\PullRequest(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestUnlocked\PullRequest', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Links + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['comments'] ?? null; + + if ($value === null) { + $missingFields[] = 'comments'; + goto after_comments; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'comments'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links⚡️Comments($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['comments'] = $value; + + after_comments: + + $value = $payload['commits'] ?? null; + + if ($value === null) { + $missingFields[] = 'commits'; + goto after_commits; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'commits'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links⚡️Comments($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['commits'] = $value; + + after_commits: + + $value = $payload['html'] ?? null; + + if ($value === null) { + $missingFields[] = 'html'; + goto after_html; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'html'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links⚡️Comments($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['html'] = $value; + + after_html: + + $value = $payload['issue'] ?? null; + + if ($value === null) { + $missingFields[] = 'issue'; + goto after_issue; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'issue'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links⚡️Comments($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['issue'] = $value; + + after_issue: + + $value = $payload['review_comment'] ?? null; + + if ($value === null) { + $missingFields[] = 'review_comment'; + goto after_review_comment; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'review_comment'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links⚡️Comments($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['review_comment'] = $value; + + after_review_comment: + + $value = $payload['review_comments'] ?? null; + + if ($value === null) { + $missingFields[] = 'review_comments'; + goto after_review_comments; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'review_comments'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links⚡️Comments($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['review_comments'] = $value; + + after_review_comments: + + $value = $payload['self'] ?? null; + + if ($value === null) { + $missingFields[] = 'self'; + goto after_self; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'self'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links⚡️Comments($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['self'] = $value; + + after_self: + + $value = $payload['statuses'] ?? null; + + if ($value === null) { + $missingFields[] = 'statuses'; + goto after_statuses; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'statuses'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links⚡️Comments($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['statuses'] = $value; + + after_statuses: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Links', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Links::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Links(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Links', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️AutoMerge(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\AutoMerge + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['commit_message'] ?? null; + + if ($value === null) { + $missingFields[] = 'commit_message'; + goto after_commit_message; + } + + $properties['commit_message'] = $value; + + after_commit_message: + + $value = $payload['commit_title'] ?? null; + + if ($value === null) { + $missingFields[] = 'commit_title'; + goto after_commit_title; + } + + $properties['commit_title'] = $value; + + after_commit_title: + + $value = $payload['enabled_by'] ?? null; + + if ($value === null) { + $missingFields[] = 'enabled_by'; + goto after_enabled_by; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enabled_by'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['enabled_by'] = $value; + + after_enabled_by: + + $value = $payload['merge_method'] ?? null; + + if ($value === null) { + $missingFields[] = 'merge_method'; + goto after_merge_method; + } + + $properties['merge_method'] = $value; + + after_merge_method: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\AutoMerge', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\AutoMerge::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\AutoMerge(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\AutoMerge', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Base(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Base + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['label'] ?? null; + + if ($value === null) { + $missingFields[] = 'label'; + goto after_label; + } + + $properties['label'] = $value; + + after_label: + + $value = $payload['ref'] ?? null; + + if ($value === null) { + $missingFields[] = 'ref'; + goto after_ref; + } + + $properties['ref'] = $value; + + after_ref: + + $value = $payload['repo'] ?? null; + + if ($value === null) { + $missingFields[] = 'repo'; + goto after_repo; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repo'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Base⚡️Repo($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repo'] = $value; + + after_repo: + + $value = $payload['sha'] ?? null; + + if ($value === null) { + $missingFields[] = 'sha'; + goto after_sha; + } + + $properties['sha'] = $value; + + after_sha: + + $value = $payload['user'] ?? null; + + if ($value === null) { + $missingFields[] = 'user'; + goto after_user; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'user'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['user'] = $value; + + after_user: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Base', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Base::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Base(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Base', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Head(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Head + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['label'] ?? null; + + if ($value === null) { + $missingFields[] = 'label'; + goto after_label; + } + + $properties['label'] = $value; + + after_label: + + $value = $payload['ref'] ?? null; + + if ($value === null) { + $missingFields[] = 'ref'; + goto after_ref; + } + + $properties['ref'] = $value; + + after_ref: + + $value = $payload['repo'] ?? null; + + if ($value === null) { + $missingFields[] = 'repo'; + goto after_repo; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repo'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Head⚡️Repo($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repo'] = $value; + + after_repo: + + $value = $payload['sha'] ?? null; + + if ($value === null) { + $missingFields[] = 'sha'; + goto after_sha; + } + + $properties['sha'] = $value; + + after_sha: + + $value = $payload['user'] ?? null; + + if ($value === null) { + $missingFields[] = 'user'; + goto after_user; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'user'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['user'] = $value; + + after_user: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Head', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Head::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Head(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Head', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesAssigned⚡️Issue⚡️Milestone(array $payload): \ApiClients\Client\Github\Schema\WebhookIssuesAssigned\Issue\Milestone + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['closed_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'closed_at'; + goto after_closed_at; + } + + $properties['closed_at'] = $value; + + after_closed_at: + + $value = $payload['closed_issues'] ?? null; + + if ($value === null) { + $missingFields[] = 'closed_issues'; + goto after_closed_issues; + } + + $properties['closed_issues'] = $value; + + after_closed_issues: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'created_at'; + goto after_created_at; + } + + $properties['created_at'] = $value; + + after_created_at: + + $value = $payload['creator'] ?? null; + + if ($value === null) { + $missingFields[] = 'creator'; + goto after_creator; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'creator'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Comment⚡️User($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['creator'] = $value; + + after_creator: + + $value = $payload['description'] ?? null; + + if ($value === null) { + $missingFields[] = 'description'; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['due_on'] ?? null; + + if ($value === null) { + $missingFields[] = 'due_on'; + goto after_due_on; + } + + $properties['due_on'] = $value; + + after_due_on: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } + + $properties['html_url'] = $value; + + after_html_url: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['labels_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'labels_url'; + goto after_labels_url; + } + + $properties['labels_url'] = $value; + + after_labels_url: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['number'] ?? null; + + if ($value === null) { + $missingFields[] = 'number'; + goto after_number; + } + + $properties['number'] = $value; + + after_number: + + $value = $payload['open_issues'] ?? null; + + if ($value === null) { + $missingFields[] = 'open_issues'; + goto after_open_issues; + } + + $properties['open_issues'] = $value; + + after_open_issues: + + $value = $payload['state'] ?? null; + + if ($value === null) { + $missingFields[] = 'state'; + goto after_state; + } + + $properties['state'] = $value; + + after_state: + + $value = $payload['title'] ?? null; + + if ($value === null) { + $missingFields[] = 'title'; + goto after_title; + } + + $properties['title'] = $value; + + after_title: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'updated_at'; + goto after_updated_at; + } + + $properties['updated_at'] = $value; + + after_updated_at: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesAssigned\Issue\Milestone', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookIssuesAssigned\Issue\Milestone::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookIssuesAssigned\Issue\Milestone(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesAssigned\Issue\Milestone', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️Permissions(array $payload): \ApiClients\Client\Github\Schema\Repository\Permissions + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['admin'] ?? null; + + if ($value === null) { + $missingFields[] = 'admin'; + goto after_admin; + } + + $properties['admin'] = $value; + + after_admin: + + $value = $payload['pull'] ?? null; + + if ($value === null) { + $missingFields[] = 'pull'; + goto after_pull; + } + + $properties['pull'] = $value; + + after_pull: + + $value = $payload['triage'] ?? null; + + if ($value === null) { + $missingFields[] = 'triage'; + goto after_triage; + } + + $properties['triage'] = $value; + + after_triage: + + $value = $payload['push'] ?? null; + + if ($value === null) { + $missingFields[] = 'push'; + goto after_push; + } + + $properties['push'] = $value; + + after_push: + + $value = $payload['maintain'] ?? null; + + if ($value === null) { + $missingFields[] = 'maintain'; + goto after_maintain; + } + + $properties['maintain'] = $value; + + after_maintain: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\Permissions', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\Permissions::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\Repository\Permissions(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\Permissions', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository(array $payload): \ApiClients\Client\Github\Schema\Repository\TemplateRepository + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['full_name'] ?? null; + + if ($value === null) { + $missingFields[] = 'full_name'; + goto after_full_name; + } + + $properties['full_name'] = $value; + + after_full_name: + + $value = $payload['owner'] ?? null; + + if ($value === null) { + $missingFields[] = 'owner'; + goto after_owner; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'owner'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['owner'] = $value; + + after_owner: + + $value = $payload['private'] ?? null; + + if ($value === null) { + $missingFields[] = 'private'; + goto after_private; + } + + $properties['private'] = $value; + + after_private: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } + + $properties['html_url'] = $value; + + after_html_url: + + $value = $payload['description'] ?? null; + + if ($value === null) { + $missingFields[] = 'description'; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['fork'] ?? null; + + if ($value === null) { + $missingFields[] = 'fork'; + goto after_fork; + } + + $properties['fork'] = $value; + + after_fork: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['archive_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'archive_url'; + goto after_archive_url; + } + + $properties['archive_url'] = $value; + + after_archive_url: + + $value = $payload['assignees_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'assignees_url'; + goto after_assignees_url; + } + + $properties['assignees_url'] = $value; + + after_assignees_url: + + $value = $payload['blobs_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'blobs_url'; + goto after_blobs_url; + } + + $properties['blobs_url'] = $value; + + after_blobs_url: + + $value = $payload['branches_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'branches_url'; + goto after_branches_url; + } + + $properties['branches_url'] = $value; + + after_branches_url: + + $value = $payload['collaborators_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'collaborators_url'; + goto after_collaborators_url; + } + + $properties['collaborators_url'] = $value; + + after_collaborators_url: + + $value = $payload['comments_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'comments_url'; + goto after_comments_url; + } + + $properties['comments_url'] = $value; + + after_comments_url: + + $value = $payload['commits_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'commits_url'; + goto after_commits_url; + } + + $properties['commits_url'] = $value; + + after_commits_url: + + $value = $payload['compare_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'compare_url'; + goto after_compare_url; + } + + $properties['compare_url'] = $value; + + after_compare_url: + + $value = $payload['contents_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'contents_url'; + goto after_contents_url; + } + + $properties['contents_url'] = $value; + + after_contents_url: + + $value = $payload['contributors_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'contributors_url'; + goto after_contributors_url; + } + + $properties['contributors_url'] = $value; + + after_contributors_url: + + $value = $payload['deployments_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'deployments_url'; + goto after_deployments_url; + } + + $properties['deployments_url'] = $value; + + after_deployments_url: + + $value = $payload['downloads_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'downloads_url'; + goto after_downloads_url; + } + + $properties['downloads_url'] = $value; + + after_downloads_url: + + $value = $payload['events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'events_url'; + goto after_events_url; + } + + $properties['events_url'] = $value; + + after_events_url: + + $value = $payload['forks_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'forks_url'; + goto after_forks_url; + } + + $properties['forks_url'] = $value; + + after_forks_url: + + $value = $payload['git_commits_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_commits_url'; + goto after_git_commits_url; + } + + $properties['git_commits_url'] = $value; + + after_git_commits_url: + + $value = $payload['git_refs_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_refs_url'; + goto after_git_refs_url; + } + + $properties['git_refs_url'] = $value; + + after_git_refs_url: + + $value = $payload['git_tags_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_tags_url'; + goto after_git_tags_url; + } + + $properties['git_tags_url'] = $value; + + after_git_tags_url: + + $value = $payload['git_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_url'; + goto after_git_url; + } + + $properties['git_url'] = $value; + + after_git_url: + + $value = $payload['issue_comment_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issue_comment_url'; + goto after_issue_comment_url; + } + + $properties['issue_comment_url'] = $value; + + after_issue_comment_url: + + $value = $payload['issue_events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issue_events_url'; + goto after_issue_events_url; + } + + $properties['issue_events_url'] = $value; + + after_issue_events_url: + + $value = $payload['issues_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issues_url'; + goto after_issues_url; + } + + $properties['issues_url'] = $value; + + after_issues_url: + + $value = $payload['keys_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'keys_url'; + goto after_keys_url; + } + + $properties['keys_url'] = $value; + + after_keys_url: + + $value = $payload['labels_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'labels_url'; + goto after_labels_url; + } + + $properties['labels_url'] = $value; + + after_labels_url: + + $value = $payload['languages_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'languages_url'; + goto after_languages_url; + } + + $properties['languages_url'] = $value; + + after_languages_url: + + $value = $payload['merges_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'merges_url'; + goto after_merges_url; + } + + $properties['merges_url'] = $value; + + after_merges_url: + + $value = $payload['milestones_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'milestones_url'; + goto after_milestones_url; + } + + $properties['milestones_url'] = $value; + + after_milestones_url: + + $value = $payload['notifications_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'notifications_url'; + goto after_notifications_url; + } + + $properties['notifications_url'] = $value; + + after_notifications_url: + + $value = $payload['pulls_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'pulls_url'; + goto after_pulls_url; + } + + $properties['pulls_url'] = $value; + + after_pulls_url: + + $value = $payload['releases_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'releases_url'; + goto after_releases_url; + } + + $properties['releases_url'] = $value; + + after_releases_url: + + $value = $payload['ssh_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'ssh_url'; + goto after_ssh_url; + } + + $properties['ssh_url'] = $value; + + after_ssh_url: + + $value = $payload['stargazers_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'stargazers_url'; + goto after_stargazers_url; + } + + $properties['stargazers_url'] = $value; + + after_stargazers_url: + + $value = $payload['statuses_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'statuses_url'; + goto after_statuses_url; + } + + $properties['statuses_url'] = $value; + + after_statuses_url: + + $value = $payload['subscribers_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscribers_url'; + goto after_subscribers_url; + } + + $properties['subscribers_url'] = $value; + + after_subscribers_url: + + $value = $payload['subscription_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscription_url'; + goto after_subscription_url; + } + + $properties['subscription_url'] = $value; + + after_subscription_url: + + $value = $payload['tags_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'tags_url'; + goto after_tags_url; + } + + $properties['tags_url'] = $value; + + after_tags_url: + + $value = $payload['teams_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'teams_url'; + goto after_teams_url; + } + + $properties['teams_url'] = $value; + + after_teams_url: + + $value = $payload['trees_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'trees_url'; + goto after_trees_url; + } + + $properties['trees_url'] = $value; + + after_trees_url: + + $value = $payload['clone_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'clone_url'; + goto after_clone_url; + } + + $properties['clone_url'] = $value; + + after_clone_url: + + $value = $payload['mirror_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'mirror_url'; + goto after_mirror_url; + } + + $properties['mirror_url'] = $value; + + after_mirror_url: + + $value = $payload['hooks_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'hooks_url'; + goto after_hooks_url; + } + + $properties['hooks_url'] = $value; + + after_hooks_url: + + $value = $payload['svn_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'svn_url'; + goto after_svn_url; + } + + $properties['svn_url'] = $value; + + after_svn_url: + + $value = $payload['homepage'] ?? null; + + if ($value === null) { + $missingFields[] = 'homepage'; + goto after_homepage; + } + + $properties['homepage'] = $value; + + after_homepage: + + $value = $payload['language'] ?? null; + + if ($value === null) { + $missingFields[] = 'language'; + goto after_language; + } + + $properties['language'] = $value; + + after_language: + + $value = $payload['forks_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'forks_count'; + goto after_forks_count; + } + + $properties['forks_count'] = $value; + + after_forks_count: + + $value = $payload['stargazers_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'stargazers_count'; + goto after_stargazers_count; + } + + $properties['stargazers_count'] = $value; + + after_stargazers_count: + + $value = $payload['watchers_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'watchers_count'; + goto after_watchers_count; + } + + $properties['watchers_count'] = $value; + + after_watchers_count: + + $value = $payload['size'] ?? null; + + if ($value === null) { + $missingFields[] = 'size'; + goto after_size; + } + + $properties['size'] = $value; + + after_size: + + $value = $payload['default_branch'] ?? null; + + if ($value === null) { + $missingFields[] = 'default_branch'; + goto after_default_branch; + } + + $properties['default_branch'] = $value; + + after_default_branch: + + $value = $payload['open_issues_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'open_issues_count'; + goto after_open_issues_count; + } + + $properties['open_issues_count'] = $value; + + after_open_issues_count: + + $value = $payload['is_template'] ?? null; + + if ($value === null) { + $missingFields[] = 'is_template'; + goto after_is_template; + } + + $properties['is_template'] = $value; + + after_is_template: + + $value = $payload['topics'] ?? null; + + if ($value === null) { + $missingFields[] = 'topics'; + goto after_topics; + } + + $properties['topics'] = $value; + + after_topics: + + $value = $payload['has_issues'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_issues'; + goto after_has_issues; + } + + $properties['has_issues'] = $value; + + after_has_issues: + + $value = $payload['has_projects'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_projects'; + goto after_has_projects; + } + + $properties['has_projects'] = $value; + + after_has_projects: + + $value = $payload['has_wiki'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_wiki'; + goto after_has_wiki; + } + + $properties['has_wiki'] = $value; + + after_has_wiki: + + $value = $payload['has_pages'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_pages'; + goto after_has_pages; + } + + $properties['has_pages'] = $value; + + after_has_pages: + + $value = $payload['has_downloads'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_downloads'; + goto after_has_downloads; + } + + $properties['has_downloads'] = $value; + + after_has_downloads: + + $value = $payload['archived'] ?? null; + + if ($value === null) { + $missingFields[] = 'archived'; + goto after_archived; + } + + $properties['archived'] = $value; + + after_archived: + + $value = $payload['disabled'] ?? null; + + if ($value === null) { + $missingFields[] = 'disabled'; + goto after_disabled; + } + + $properties['disabled'] = $value; + + after_disabled: + + $value = $payload['visibility'] ?? null; + + if ($value === null) { + $missingFields[] = 'visibility'; + goto after_visibility; + } + + $properties['visibility'] = $value; + + after_visibility: + + $value = $payload['pushed_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'pushed_at'; + goto after_pushed_at; + } + + $properties['pushed_at'] = $value; + + after_pushed_at: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'created_at'; + goto after_created_at; + } + + $properties['created_at'] = $value; + + after_created_at: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'updated_at'; + goto after_updated_at; + } + + $properties['updated_at'] = $value; + + after_updated_at: + + $value = $payload['permissions'] ?? null; + + if ($value === null) { + $missingFields[] = 'permissions'; + goto after_permissions; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'permissions'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Permissions($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['permissions'] = $value; + + after_permissions: + + $value = $payload['allow_rebase_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_rebase_merge'; + goto after_allow_rebase_merge; + } + + $properties['allow_rebase_merge'] = $value; + + after_allow_rebase_merge: + + $value = $payload['temp_clone_token'] ?? null; + + if ($value === null) { + $missingFields[] = 'temp_clone_token'; + goto after_temp_clone_token; + } + + $properties['temp_clone_token'] = $value; + + after_temp_clone_token: + + $value = $payload['allow_squash_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_squash_merge'; + goto after_allow_squash_merge; + } + + $properties['allow_squash_merge'] = $value; + + after_allow_squash_merge: + + $value = $payload['allow_auto_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_auto_merge'; + goto after_allow_auto_merge; + } + + $properties['allow_auto_merge'] = $value; + + after_allow_auto_merge: + + $value = $payload['delete_branch_on_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'delete_branch_on_merge'; + goto after_delete_branch_on_merge; + } + + $properties['delete_branch_on_merge'] = $value; + + after_delete_branch_on_merge: + + $value = $payload['allow_update_branch'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_update_branch'; + goto after_allow_update_branch; + } + + $properties['allow_update_branch'] = $value; + + after_allow_update_branch: + + $value = $payload['use_squash_pr_title_as_default'] ?? null; + + if ($value === null) { + $missingFields[] = 'use_squash_pr_title_as_default'; + goto after_use_squash_pr_title_as_default; + } + + $properties['use_squash_pr_title_as_default'] = $value; + + after_use_squash_pr_title_as_default: + + $value = $payload['squash_merge_commit_title'] ?? null; + + if ($value === null) { + $missingFields[] = 'squash_merge_commit_title'; + goto after_squash_merge_commit_title; + } + + $properties['squash_merge_commit_title'] = $value; + + after_squash_merge_commit_title: + + $value = $payload['squash_merge_commit_message'] ?? null; + + if ($value === null) { + $missingFields[] = 'squash_merge_commit_message'; + goto after_squash_merge_commit_message; + } + + $properties['squash_merge_commit_message'] = $value; + + after_squash_merge_commit_message: + + $value = $payload['merge_commit_title'] ?? null; + + if ($value === null) { + $missingFields[] = 'merge_commit_title'; + goto after_merge_commit_title; + } + + $properties['merge_commit_title'] = $value; + + after_merge_commit_title: + + $value = $payload['merge_commit_message'] ?? null; + + if ($value === null) { + $missingFields[] = 'merge_commit_message'; + goto after_merge_commit_message; + } + + $properties['merge_commit_message'] = $value; + + after_merge_commit_message: + + $value = $payload['allow_merge_commit'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_merge_commit'; + goto after_allow_merge_commit; + } + + $properties['allow_merge_commit'] = $value; + + after_allow_merge_commit: + + $value = $payload['subscribers_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscribers_count'; + goto after_subscribers_count; + } + + $properties['subscribers_count'] = $value; + + after_subscribers_count: + + $value = $payload['network_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'network_count'; + goto after_network_count; + } + + $properties['network_count'] = $value; + + after_network_count: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\TemplateRepository::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\Repository\TemplateRepository(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAutoMergeDisabled⚡️PullRequest⚡️Base(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestAutoMergeDisabled\PullRequest\Base + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['label'] ?? null; + + if ($value === null) { + $missingFields[] = 'label'; + goto after_label; + } + + $properties['label'] = $value; + + after_label: + + $value = $payload['ref'] ?? null; + + if ($value === null) { + $missingFields[] = 'ref'; + goto after_ref; + } + + $properties['ref'] = $value; + + after_ref: + + $value = $payload['repo'] ?? null; + + if ($value === null) { + $missingFields[] = 'repo'; + goto after_repo; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repo'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAutoMergeDisabled⚡️PullRequest⚡️Base⚡️Repo($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repo'] = $value; + + after_repo: + + $value = $payload['sha'] ?? null; + + if ($value === null) { + $missingFields[] = 'sha'; + goto after_sha; + } + + $properties['sha'] = $value; + + after_sha: + + $value = $payload['user'] ?? null; + + if ($value === null) { + $missingFields[] = 'user'; + goto after_user; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'user'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['user'] = $value; + + after_user: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAutoMergeDisabled\PullRequest\Base', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestAutoMergeDisabled\PullRequest\Base::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookPullRequestAutoMergeDisabled\PullRequest\Base(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAutoMergeDisabled\PullRequest\Base', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesDeleted⚡️Issue⚡️Milestone(array $payload): \ApiClients\Client\Github\Schema\WebhookIssuesDeleted\Issue\Milestone + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['closed_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'closed_at'; + goto after_closed_at; + } + + $properties['closed_at'] = $value; + + after_closed_at: + + $value = $payload['closed_issues'] ?? null; + + if ($value === null) { + $missingFields[] = 'closed_issues'; + goto after_closed_issues; + } + + $properties['closed_issues'] = $value; + + after_closed_issues: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'created_at'; + goto after_created_at; + } + + $properties['created_at'] = $value; + + after_created_at: + + $value = $payload['creator'] ?? null; + + if ($value === null) { + $missingFields[] = 'creator'; + goto after_creator; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'creator'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['creator'] = $value; + + after_creator: + + $value = $payload['description'] ?? null; + + if ($value === null) { + $missingFields[] = 'description'; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['due_on'] ?? null; + + if ($value === null) { + $missingFields[] = 'due_on'; + goto after_due_on; + } + + $properties['due_on'] = $value; + + after_due_on: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } + + $properties['html_url'] = $value; + + after_html_url: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['labels_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'labels_url'; + goto after_labels_url; + } + + $properties['labels_url'] = $value; + + after_labels_url: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['number'] ?? null; + + if ($value === null) { + $missingFields[] = 'number'; + goto after_number; + } + + $properties['number'] = $value; + + after_number: + + $value = $payload['open_issues'] ?? null; + + if ($value === null) { + $missingFields[] = 'open_issues'; + goto after_open_issues; + } + + $properties['open_issues'] = $value; + + after_open_issues: + + $value = $payload['state'] ?? null; + + if ($value === null) { + $missingFields[] = 'state'; + goto after_state; + } + + $properties['state'] = $value; + + after_state: + + $value = $payload['title'] ?? null; + + if ($value === null) { + $missingFields[] = 'title'; + goto after_title; + } + + $properties['title'] = $value; + + after_title: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'updated_at'; + goto after_updated_at; + } + + $properties['updated_at'] = $value; + + after_updated_at: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesDeleted\Issue\Milestone', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookIssuesDeleted\Issue\Milestone::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookIssuesDeleted\Issue\Milestone(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesDeleted\Issue\Milestone', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestDemilestoned⚡️PullRequest⚡️Base(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestDemilestoned\PullRequest\Base + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['label'] ?? null; + + if ($value === null) { + $missingFields[] = 'label'; + goto after_label; + } + + $properties['label'] = $value; + + after_label: + + $value = $payload['ref'] ?? null; + + if ($value === null) { + $missingFields[] = 'ref'; + goto after_ref; + } + + $properties['ref'] = $value; + + after_ref: + + $value = $payload['repo'] ?? null; + + if ($value === null) { + $missingFields[] = 'repo'; + goto after_repo; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repo'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestDemilestoned⚡️PullRequest⚡️Base⚡️Repo($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repo'] = $value; + + after_repo: + + $value = $payload['sha'] ?? null; + + if ($value === null) { + $missingFields[] = 'sha'; + goto after_sha; + } + + $properties['sha'] = $value; + + after_sha: + + $value = $payload['user'] ?? null; + + if ($value === null) { + $missingFields[] = 'user'; + goto after_user; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'user'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['user'] = $value; + + after_user: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestDemilestoned\PullRequest\Base', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestDemilestoned\PullRequest\Base::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookPullRequestDemilestoned\PullRequest\Base(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestDemilestoned\PullRequest\Base', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestEdited⚡️Changes⚡️Base(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestEdited\Changes\Base + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['ref'] ?? null; + + if ($value === null) { + $missingFields[] = 'ref'; + goto after_ref; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'ref'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionCommentEdited⚡️Changes⚡️Body($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['ref'] = $value; + + after_ref: + + $value = $payload['sha'] ?? null; + + if ($value === null) { + $missingFields[] = 'sha'; + goto after_sha; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sha'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionCommentEdited⚡️Changes⚡️Body($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sha'] = $value; + + after_sha: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestEdited\Changes\Base', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestEdited\Changes\Base::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookPullRequestEdited\Changes\Base(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestEdited\Changes\Base', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectEdited⚡️Changes⚡️Body(array $payload): \ApiClients\Client\Github\Schema\WebhookProjectEdited\Changes\Body + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['from'] ?? null; + + if ($value === null) { + $missingFields[] = 'from'; + goto after_from; + } + + $properties['from'] = $value; + + after_from: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectEdited\Changes\Body', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookProjectEdited\Changes\Body::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookProjectEdited\Changes\Body(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectEdited\Changes\Body', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMilestoneEdited⚡️Changes⚡️Title(array $payload): \ApiClients\Client\Github\Schema\WebhookMilestoneEdited\Changes\Title + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['from'] ?? null; + + if ($value === null) { + $missingFields[] = 'from'; + goto after_from; + } + + $properties['from'] = $value; + + after_from: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookMilestoneEdited\Changes\Title', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookMilestoneEdited\Changes\Title::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookMilestoneEdited\Changes\Title(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookMilestoneEdited\Changes\Title', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestEnqueued⚡️PullRequest⚡️Base(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestEnqueued\PullRequest\Base + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['label'] ?? null; + + if ($value === null) { + $missingFields[] = 'label'; + goto after_label; + } + + $properties['label'] = $value; + + after_label: + + $value = $payload['ref'] ?? null; + + if ($value === null) { + $missingFields[] = 'ref'; + goto after_ref; + } + + $properties['ref'] = $value; + + after_ref: + + $value = $payload['repo'] ?? null; + + if ($value === null) { + $missingFields[] = 'repo'; + goto after_repo; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repo'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestEnqueued⚡️PullRequest⚡️Base⚡️Repo($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repo'] = $value; + + after_repo: + + $value = $payload['sha'] ?? null; + + if ($value === null) { + $missingFields[] = 'sha'; + goto after_sha; + } + + $properties['sha'] = $value; + + after_sha: + + $value = $payload['user'] ?? null; + + if ($value === null) { + $missingFields[] = 'user'; + goto after_user; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'user'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['user'] = $value; + + after_user: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestEnqueued\PullRequest\Base', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestEnqueued\PullRequest\Base::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookPullRequestEnqueued\PullRequest\Base(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestEnqueued\PullRequest\Base', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestSynchronize⚡️PullRequest⚡️Head(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestSynchronize\PullRequest\Head + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['label'] ?? null; + + if ($value === null) { + $missingFields[] = 'label'; + goto after_label; + } + + $properties['label'] = $value; + + after_label: + + $value = $payload['ref'] ?? null; + + if ($value === null) { + $missingFields[] = 'ref'; + goto after_ref; + } + + $properties['ref'] = $value; + + after_ref: + + $value = $payload['repo'] ?? null; + + if ($value === null) { + $missingFields[] = 'repo'; + goto after_repo; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repo'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestSynchronize⚡️PullRequest⚡️Head⚡️Repo($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repo'] = $value; + + after_repo: + + $value = $payload['sha'] ?? null; + + if ($value === null) { + $missingFields[] = 'sha'; + goto after_sha; + } + + $properties['sha'] = $value; + + after_sha: + + $value = $payload['user'] ?? null; + + if ($value === null) { + $missingFields[] = 'user'; + goto after_user; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'user'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['user'] = $value; + + after_user: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestSynchronize\PullRequest\Head', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestSynchronize\PullRequest\Head::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookPullRequestSynchronize\PullRequest\Head(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestSynchronize\PullRequest\Head', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestUnassigned⚡️PullRequest⚡️Base(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestUnassigned\PullRequest\Base + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['label'] ?? null; + + if ($value === null) { + $missingFields[] = 'label'; + goto after_label; + } + + $properties['label'] = $value; + + after_label: + + $value = $payload['ref'] ?? null; + + if ($value === null) { + $missingFields[] = 'ref'; + goto after_ref; + } + + $properties['ref'] = $value; + + after_ref: + + $value = $payload['repo'] ?? null; + + if ($value === null) { + $missingFields[] = 'repo'; + goto after_repo; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repo'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Base⚡️Repo($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repo'] = $value; + + after_repo: + + $value = $payload['sha'] ?? null; + + if ($value === null) { + $missingFields[] = 'sha'; + goto after_sha; + } + + $properties['sha'] = $value; + + after_sha: + + $value = $payload['user'] ?? null; + + if ($value === null) { + $missingFields[] = 'user'; + goto after_user; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'user'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['user'] = $value; + + after_user: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestUnassigned\PullRequest\Base', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestUnassigned\PullRequest\Base::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookPullRequestUnassigned\PullRequest\Base(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestUnassigned\PullRequest\Base', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestUnlabeled⚡️PullRequest⚡️Head(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestUnlabeled\PullRequest\Head + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['label'] ?? null; + + if ($value === null) { + $missingFields[] = 'label'; + goto after_label; + } + + $properties['label'] = $value; + + after_label: + + $value = $payload['ref'] ?? null; + + if ($value === null) { + $missingFields[] = 'ref'; + goto after_ref; + } + + $properties['ref'] = $value; + + after_ref: + + $value = $payload['repo'] ?? null; + + if ($value === null) { + $missingFields[] = 'repo'; + goto after_repo; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repo'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestUnlabeled⚡️PullRequest⚡️Head⚡️Repo($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repo'] = $value; + + after_repo: + + $value = $payload['sha'] ?? null; + + if ($value === null) { + $missingFields[] = 'sha'; + goto after_sha; + } + + $properties['sha'] = $value; + + after_sha: + + $value = $payload['user'] ?? null; + + if ($value === null) { + $missingFields[] = 'user'; + goto after_user; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'user'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['user'] = $value; + + after_user: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestUnlabeled\PullRequest\Head', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestUnlabeled\PullRequest\Head::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookPullRequestUnlabeled\PullRequest\Head(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestUnlabeled\PullRequest\Head', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewThreadUnresolved⚡️PullRequest⚡️AutoMerge(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestReviewThreadUnresolved\PullRequest\AutoMerge + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['commit_message'] ?? null; + + if ($value === null) { + $missingFields[] = 'commit_message'; + goto after_commit_message; + } + + $properties['commit_message'] = $value; + + after_commit_message: + + $value = $payload['commit_title'] ?? null; + + if ($value === null) { + $missingFields[] = 'commit_title'; + goto after_commit_title; + } + + $properties['commit_title'] = $value; + + after_commit_title: + + $value = $payload['enabled_by'] ?? null; + + if ($value === null) { + $missingFields[] = 'enabled_by'; + goto after_enabled_by; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enabled_by'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['enabled_by'] = $value; + + after_enabled_by: + + $value = $payload['merge_method'] ?? null; + + if ($value === null) { + $missingFields[] = 'merge_method'; + goto after_merge_method; + } + + $properties['merge_method'] = $value; + + after_merge_method: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewThreadUnresolved\PullRequest\AutoMerge', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestReviewThreadUnresolved\PullRequest\AutoMerge::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookPullRequestReviewThreadUnresolved\PullRequest\AutoMerge(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewThreadUnresolved\PullRequest\AutoMerge', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewCommentDeleted⚡️PullRequest⚡️Head(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentDeleted\PullRequest\Head + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['label'] ?? null; + + if ($value === null) { + $missingFields[] = 'label'; + goto after_label; + } + + $properties['label'] = $value; + + after_label: + + $value = $payload['ref'] ?? null; + + if ($value === null) { + $missingFields[] = 'ref'; + goto after_ref; + } + + $properties['ref'] = $value; + + after_ref: + + $value = $payload['repo'] ?? null; + + if ($value === null) { + $missingFields[] = 'repo'; + goto after_repo; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repo'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Head⚡️Repo($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repo'] = $value; + + after_repo: + + $value = $payload['sha'] ?? null; + + if ($value === null) { + $missingFields[] = 'sha'; + goto after_sha; + } + + $properties['sha'] = $value; + + after_sha: + + $value = $payload['user'] ?? null; + + if ($value === null) { + $missingFields[] = 'user'; + goto after_user; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'user'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['user'] = $value; + + after_user: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentDeleted\PullRequest\Head', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentDeleted\PullRequest\Head::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentDeleted\PullRequest\Head(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentDeleted\PullRequest\Head', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links⚡️Comments(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Links\Comments + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['href'] ?? null; + + if ($value === null) { + $missingFields[] = 'href'; + goto after_href; + } + + $properties['href'] = $value; + + after_href: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Links\Comments', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Links\Comments::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Links\Comments(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Links\Comments', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Base⚡️Repo(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Base\Repo + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['allow_auto_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_auto_merge'; + goto after_allow_auto_merge; + } + + $properties['allow_auto_merge'] = $value; + + after_allow_auto_merge: + + $value = $payload['allow_forking'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_forking'; + goto after_allow_forking; + } + + $properties['allow_forking'] = $value; + + after_allow_forking: + + $value = $payload['allow_merge_commit'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_merge_commit'; + goto after_allow_merge_commit; + } + + $properties['allow_merge_commit'] = $value; + + after_allow_merge_commit: + + $value = $payload['allow_rebase_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_rebase_merge'; + goto after_allow_rebase_merge; + } + + $properties['allow_rebase_merge'] = $value; + + after_allow_rebase_merge: + + $value = $payload['allow_squash_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_squash_merge'; + goto after_allow_squash_merge; + } + + $properties['allow_squash_merge'] = $value; + + after_allow_squash_merge: + + $value = $payload['allow_update_branch'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_update_branch'; + goto after_allow_update_branch; + } + + $properties['allow_update_branch'] = $value; + + after_allow_update_branch: + + $value = $payload['archive_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'archive_url'; + goto after_archive_url; + } + + $properties['archive_url'] = $value; + + after_archive_url: + + $value = $payload['archived'] ?? null; + + if ($value === null) { + $missingFields[] = 'archived'; + goto after_archived; + } + + $properties['archived'] = $value; + + after_archived: + + $value = $payload['assignees_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'assignees_url'; + goto after_assignees_url; + } + + $properties['assignees_url'] = $value; + + after_assignees_url: + + $value = $payload['blobs_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'blobs_url'; + goto after_blobs_url; + } + + $properties['blobs_url'] = $value; + + after_blobs_url: + + $value = $payload['branches_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'branches_url'; + goto after_branches_url; + } + + $properties['branches_url'] = $value; + + after_branches_url: + + $value = $payload['clone_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'clone_url'; + goto after_clone_url; + } + + $properties['clone_url'] = $value; + + after_clone_url: + + $value = $payload['collaborators_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'collaborators_url'; + goto after_collaborators_url; + } + + $properties['collaborators_url'] = $value; + + after_collaborators_url: + + $value = $payload['comments_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'comments_url'; + goto after_comments_url; + } + + $properties['comments_url'] = $value; + + after_comments_url: + + $value = $payload['commits_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'commits_url'; + goto after_commits_url; + } + + $properties['commits_url'] = $value; + + after_commits_url: + + $value = $payload['compare_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'compare_url'; + goto after_compare_url; + } + + $properties['compare_url'] = $value; + + after_compare_url: + + $value = $payload['contents_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'contents_url'; + goto after_contents_url; + } + + $properties['contents_url'] = $value; + + after_contents_url: + + $value = $payload['contributors_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'contributors_url'; + goto after_contributors_url; + } + + $properties['contributors_url'] = $value; + + after_contributors_url: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $properties['created_at'] = null; + goto after_created_at; + } + + $properties['created_at'] = $value; + + after_created_at: + + $value = $payload['default_branch'] ?? null; + + if ($value === null) { + $missingFields[] = 'default_branch'; + goto after_default_branch; + } + + $properties['default_branch'] = $value; + + after_default_branch: + + $value = $payload['delete_branch_on_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'delete_branch_on_merge'; + goto after_delete_branch_on_merge; + } + + $properties['delete_branch_on_merge'] = $value; + + after_delete_branch_on_merge: + + $value = $payload['deployments_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'deployments_url'; + goto after_deployments_url; + } + + $properties['deployments_url'] = $value; + + after_deployments_url: + + $value = $payload['description'] ?? null; + + if ($value === null) { + $missingFields[] = 'description'; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['disabled'] ?? null; + + if ($value === null) { + $missingFields[] = 'disabled'; + goto after_disabled; + } + + $properties['disabled'] = $value; + + after_disabled: + + $value = $payload['downloads_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'downloads_url'; + goto after_downloads_url; + } + + $properties['downloads_url'] = $value; + + after_downloads_url: + + $value = $payload['events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'events_url'; + goto after_events_url; + } + + $properties['events_url'] = $value; + + after_events_url: + + $value = $payload['fork'] ?? null; + + if ($value === null) { + $missingFields[] = 'fork'; + goto after_fork; + } + + $properties['fork'] = $value; + + after_fork: + + $value = $payload['forks'] ?? null; + + if ($value === null) { + $missingFields[] = 'forks'; + goto after_forks; + } + + $properties['forks'] = $value; + + after_forks: + + $value = $payload['forks_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'forks_count'; + goto after_forks_count; + } + + $properties['forks_count'] = $value; + + after_forks_count: + + $value = $payload['forks_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'forks_url'; + goto after_forks_url; + } + + $properties['forks_url'] = $value; + + after_forks_url: + + $value = $payload['full_name'] ?? null; + + if ($value === null) { + $missingFields[] = 'full_name'; + goto after_full_name; + } + + $properties['full_name'] = $value; + + after_full_name: + + $value = $payload['git_commits_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_commits_url'; + goto after_git_commits_url; + } + + $properties['git_commits_url'] = $value; + + after_git_commits_url: + + $value = $payload['git_refs_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_refs_url'; + goto after_git_refs_url; + } + + $properties['git_refs_url'] = $value; + + after_git_refs_url: + + $value = $payload['git_tags_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_tags_url'; + goto after_git_tags_url; + } + + $properties['git_tags_url'] = $value; + + after_git_tags_url: + + $value = $payload['git_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_url'; + goto after_git_url; + } + + $properties['git_url'] = $value; + + after_git_url: + + $value = $payload['has_downloads'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_downloads'; + goto after_has_downloads; + } + + $properties['has_downloads'] = $value; + + after_has_downloads: + + $value = $payload['has_issues'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_issues'; + goto after_has_issues; + } + + $properties['has_issues'] = $value; + + after_has_issues: + + $value = $payload['has_pages'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_pages'; + goto after_has_pages; + } + + $properties['has_pages'] = $value; + + after_has_pages: + + $value = $payload['has_projects'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_projects'; + goto after_has_projects; + } + + $properties['has_projects'] = $value; + + after_has_projects: + + $value = $payload['has_wiki'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_wiki'; + goto after_has_wiki; + } + + $properties['has_wiki'] = $value; + + after_has_wiki: + + $value = $payload['has_discussions'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_discussions'; + goto after_has_discussions; + } + + $properties['has_discussions'] = $value; + + after_has_discussions: + + $value = $payload['homepage'] ?? null; + + if ($value === null) { + $missingFields[] = 'homepage'; + goto after_homepage; + } + + $properties['homepage'] = $value; + + after_homepage: + + $value = $payload['hooks_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'hooks_url'; + goto after_hooks_url; + } + + $properties['hooks_url'] = $value; + + after_hooks_url: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } + + $properties['html_url'] = $value; + + after_html_url: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['is_template'] ?? null; + + if ($value === null) { + $missingFields[] = 'is_template'; + goto after_is_template; + } + + $properties['is_template'] = $value; + + after_is_template: + + $value = $payload['issue_comment_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issue_comment_url'; + goto after_issue_comment_url; + } + + $properties['issue_comment_url'] = $value; + + after_issue_comment_url: + + $value = $payload['issue_events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issue_events_url'; + goto after_issue_events_url; + } + + $properties['issue_events_url'] = $value; + + after_issue_events_url: + + $value = $payload['issues_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issues_url'; + goto after_issues_url; + } + + $properties['issues_url'] = $value; + + after_issues_url: + + $value = $payload['keys_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'keys_url'; + goto after_keys_url; + } + + $properties['keys_url'] = $value; + + after_keys_url: + + $value = $payload['labels_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'labels_url'; + goto after_labels_url; + } + + $properties['labels_url'] = $value; + + after_labels_url: + + $value = $payload['language'] ?? null; + + if ($value === null) { + $missingFields[] = 'language'; + goto after_language; + } + + $properties['language'] = $value; + + after_language: + + $value = $payload['languages_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'languages_url'; + goto after_languages_url; + } + + $properties['languages_url'] = $value; + + after_languages_url: + + $value = $payload['license'] ?? null; + + if ($value === null) { + $missingFields[] = 'license'; + goto after_license; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'license'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionTransferred⚡️Changes⚡️NewRepository⚡️License($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['license'] = $value; + + after_license: + + $value = $payload['master_branch'] ?? null; + + if ($value === null) { + $missingFields[] = 'master_branch'; + goto after_master_branch; + } + + $properties['master_branch'] = $value; + + after_master_branch: + + $value = $payload['merge_commit_message'] ?? null; + + if ($value === null) { + $missingFields[] = 'merge_commit_message'; + goto after_merge_commit_message; + } + + $properties['merge_commit_message'] = $value; + + after_merge_commit_message: + + $value = $payload['merge_commit_title'] ?? null; + + if ($value === null) { + $missingFields[] = 'merge_commit_title'; + goto after_merge_commit_title; + } + + $properties['merge_commit_title'] = $value; + + after_merge_commit_title: + + $value = $payload['merges_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'merges_url'; + goto after_merges_url; + } + + $properties['merges_url'] = $value; + + after_merges_url: + + $value = $payload['milestones_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'milestones_url'; + goto after_milestones_url; + } + + $properties['milestones_url'] = $value; + + after_milestones_url: + + $value = $payload['mirror_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'mirror_url'; + goto after_mirror_url; + } + + $properties['mirror_url'] = $value; + + after_mirror_url: + + $value = $payload['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['notifications_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'notifications_url'; + goto after_notifications_url; + } + + $properties['notifications_url'] = $value; + + after_notifications_url: + + $value = $payload['open_issues'] ?? null; + + if ($value === null) { + $missingFields[] = 'open_issues'; + goto after_open_issues; + } + + $properties['open_issues'] = $value; + + after_open_issues: + + $value = $payload['open_issues_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'open_issues_count'; + goto after_open_issues_count; + } + + $properties['open_issues_count'] = $value; + + after_open_issues_count: + + $value = $payload['organization'] ?? null; + + if ($value === null) { + $missingFields[] = 'organization'; + goto after_organization; + } + + $properties['organization'] = $value; + + after_organization: + + $value = $payload['owner'] ?? null; + + if ($value === null) { + $missingFields[] = 'owner'; + goto after_owner; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'owner'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['owner'] = $value; + + after_owner: + + $value = $payload['permissions'] ?? null; + + if ($value === null) { + $missingFields[] = 'permissions'; + goto after_permissions; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'permissions'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionTransferred⚡️Changes⚡️NewRepository⚡️Permissions($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['permissions'] = $value; + + after_permissions: + + $value = $payload['private'] ?? null; + + if ($value === null) { + $missingFields[] = 'private'; + goto after_private; + } + + $properties['private'] = $value; + + after_private: + + $value = $payload['public'] ?? null; + + if ($value === null) { + $missingFields[] = 'public'; + goto after_public; + } + + $properties['public'] = $value; + + after_public: + + $value = $payload['pulls_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'pulls_url'; + goto after_pulls_url; + } + + $properties['pulls_url'] = $value; + + after_pulls_url: + + $value = $payload['pushed_at'] ?? null; + + if ($value === null) { + $properties['pushed_at'] = null; + goto after_pushed_at; + } + + $properties['pushed_at'] = $value; + + after_pushed_at: + + $value = $payload['releases_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'releases_url'; + goto after_releases_url; + } + + $properties['releases_url'] = $value; + + after_releases_url: + + $value = $payload['role_name'] ?? null; + + if ($value === null) { + $missingFields[] = 'role_name'; + goto after_role_name; + } + + $properties['role_name'] = $value; + + after_role_name: + + $value = $payload['size'] ?? null; + + if ($value === null) { + $missingFields[] = 'size'; + goto after_size; + } + + $properties['size'] = $value; + + after_size: + + $value = $payload['squash_merge_commit_message'] ?? null; + + if ($value === null) { + $missingFields[] = 'squash_merge_commit_message'; + goto after_squash_merge_commit_message; + } + + $properties['squash_merge_commit_message'] = $value; + + after_squash_merge_commit_message: + + $value = $payload['squash_merge_commit_title'] ?? null; + + if ($value === null) { + $missingFields[] = 'squash_merge_commit_title'; + goto after_squash_merge_commit_title; + } + + $properties['squash_merge_commit_title'] = $value; + + after_squash_merge_commit_title: + + $value = $payload['ssh_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'ssh_url'; + goto after_ssh_url; + } + + $properties['ssh_url'] = $value; + + after_ssh_url: + + $value = $payload['stargazers'] ?? null; + + if ($value === null) { + $missingFields[] = 'stargazers'; + goto after_stargazers; + } + + $properties['stargazers'] = $value; + + after_stargazers: + + $value = $payload['stargazers_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'stargazers_count'; + goto after_stargazers_count; + } + + $properties['stargazers_count'] = $value; + + after_stargazers_count: + + $value = $payload['stargazers_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'stargazers_url'; + goto after_stargazers_url; + } + + $properties['stargazers_url'] = $value; + + after_stargazers_url: + + $value = $payload['statuses_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'statuses_url'; + goto after_statuses_url; + } + + $properties['statuses_url'] = $value; + + after_statuses_url: + + $value = $payload['subscribers_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscribers_url'; + goto after_subscribers_url; + } + + $properties['subscribers_url'] = $value; + + after_subscribers_url: + + $value = $payload['subscription_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscription_url'; + goto after_subscription_url; + } + + $properties['subscription_url'] = $value; + + after_subscription_url: + + $value = $payload['svn_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'svn_url'; + goto after_svn_url; + } + + $properties['svn_url'] = $value; + + after_svn_url: + + $value = $payload['tags_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'tags_url'; + goto after_tags_url; + } + + $properties['tags_url'] = $value; + + after_tags_url: + + $value = $payload['teams_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'teams_url'; + goto after_teams_url; + } + + $properties['teams_url'] = $value; + + after_teams_url: + + $value = $payload['topics'] ?? null; + + if ($value === null) { + $missingFields[] = 'topics'; + goto after_topics; + } + + $properties['topics'] = $value; + + after_topics: + + $value = $payload['trees_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'trees_url'; + goto after_trees_url; + } + + $properties['trees_url'] = $value; + + after_trees_url: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'updated_at'; + goto after_updated_at; + } + + $properties['updated_at'] = $value; + + after_updated_at: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['use_squash_pr_title_as_default'] ?? null; + + if ($value === null) { + $missingFields[] = 'use_squash_pr_title_as_default'; + goto after_use_squash_pr_title_as_default; + } + + $properties['use_squash_pr_title_as_default'] = $value; + + after_use_squash_pr_title_as_default: + + $value = $payload['visibility'] ?? null; + + if ($value === null) { + $missingFields[] = 'visibility'; + goto after_visibility; + } + + $properties['visibility'] = $value; + + after_visibility: + + $value = $payload['watchers'] ?? null; + + if ($value === null) { + $missingFields[] = 'watchers'; + goto after_watchers; + } + + $properties['watchers'] = $value; + + after_watchers: + + $value = $payload['watchers_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'watchers_count'; + goto after_watchers_count; + } + + $properties['watchers_count'] = $value; + + after_watchers_count: + + $value = $payload['web_commit_signoff_required'] ?? null; + + if ($value === null) { + $missingFields[] = 'web_commit_signoff_required'; + goto after_web_commit_signoff_required; + } + + $properties['web_commit_signoff_required'] = $value; + + after_web_commit_signoff_required: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Base\Repo', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Base\Repo::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Base\Repo(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Base\Repo', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Head⚡️Repo(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Head\Repo + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['allow_auto_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_auto_merge'; + goto after_allow_auto_merge; + } + + $properties['allow_auto_merge'] = $value; + + after_allow_auto_merge: + + $value = $payload['allow_forking'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_forking'; + goto after_allow_forking; + } + + $properties['allow_forking'] = $value; + + after_allow_forking: + + $value = $payload['allow_merge_commit'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_merge_commit'; + goto after_allow_merge_commit; + } + + $properties['allow_merge_commit'] = $value; + + after_allow_merge_commit: + + $value = $payload['allow_rebase_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_rebase_merge'; + goto after_allow_rebase_merge; + } + + $properties['allow_rebase_merge'] = $value; + + after_allow_rebase_merge: + + $value = $payload['allow_squash_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_squash_merge'; + goto after_allow_squash_merge; + } + + $properties['allow_squash_merge'] = $value; + + after_allow_squash_merge: + + $value = $payload['allow_update_branch'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_update_branch'; + goto after_allow_update_branch; + } + + $properties['allow_update_branch'] = $value; + + after_allow_update_branch: + + $value = $payload['archive_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'archive_url'; + goto after_archive_url; + } + + $properties['archive_url'] = $value; + + after_archive_url: + + $value = $payload['archived'] ?? null; + + if ($value === null) { + $missingFields[] = 'archived'; + goto after_archived; + } + + $properties['archived'] = $value; + + after_archived: + + $value = $payload['assignees_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'assignees_url'; + goto after_assignees_url; + } + + $properties['assignees_url'] = $value; + + after_assignees_url: + + $value = $payload['blobs_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'blobs_url'; + goto after_blobs_url; + } + + $properties['blobs_url'] = $value; + + after_blobs_url: + + $value = $payload['branches_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'branches_url'; + goto after_branches_url; + } + + $properties['branches_url'] = $value; + + after_branches_url: + + $value = $payload['clone_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'clone_url'; + goto after_clone_url; + } + + $properties['clone_url'] = $value; + + after_clone_url: + + $value = $payload['collaborators_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'collaborators_url'; + goto after_collaborators_url; + } + + $properties['collaborators_url'] = $value; + + after_collaborators_url: + + $value = $payload['comments_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'comments_url'; + goto after_comments_url; + } + + $properties['comments_url'] = $value; + + after_comments_url: + + $value = $payload['commits_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'commits_url'; + goto after_commits_url; + } + + $properties['commits_url'] = $value; + + after_commits_url: + + $value = $payload['compare_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'compare_url'; + goto after_compare_url; + } + + $properties['compare_url'] = $value; + + after_compare_url: + + $value = $payload['contents_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'contents_url'; + goto after_contents_url; + } + + $properties['contents_url'] = $value; + + after_contents_url: + + $value = $payload['contributors_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'contributors_url'; + goto after_contributors_url; + } + + $properties['contributors_url'] = $value; + + after_contributors_url: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $properties['created_at'] = null; + goto after_created_at; + } + + $properties['created_at'] = $value; + + after_created_at: + + $value = $payload['default_branch'] ?? null; + + if ($value === null) { + $missingFields[] = 'default_branch'; + goto after_default_branch; + } + + $properties['default_branch'] = $value; + + after_default_branch: + + $value = $payload['delete_branch_on_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'delete_branch_on_merge'; + goto after_delete_branch_on_merge; + } + + $properties['delete_branch_on_merge'] = $value; + + after_delete_branch_on_merge: + + $value = $payload['deployments_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'deployments_url'; + goto after_deployments_url; + } + + $properties['deployments_url'] = $value; + + after_deployments_url: + + $value = $payload['description'] ?? null; + + if ($value === null) { + $missingFields[] = 'description'; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['disabled'] ?? null; + + if ($value === null) { + $missingFields[] = 'disabled'; + goto after_disabled; + } + + $properties['disabled'] = $value; + + after_disabled: + + $value = $payload['downloads_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'downloads_url'; + goto after_downloads_url; + } + + $properties['downloads_url'] = $value; + + after_downloads_url: + + $value = $payload['events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'events_url'; + goto after_events_url; + } + + $properties['events_url'] = $value; + + after_events_url: + + $value = $payload['fork'] ?? null; + + if ($value === null) { + $missingFields[] = 'fork'; + goto after_fork; + } + + $properties['fork'] = $value; + + after_fork: + + $value = $payload['forks'] ?? null; + + if ($value === null) { + $missingFields[] = 'forks'; + goto after_forks; + } + + $properties['forks'] = $value; + + after_forks: + + $value = $payload['forks_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'forks_count'; + goto after_forks_count; + } + + $properties['forks_count'] = $value; + + after_forks_count: + + $value = $payload['forks_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'forks_url'; + goto after_forks_url; + } + + $properties['forks_url'] = $value; + + after_forks_url: + + $value = $payload['full_name'] ?? null; + + if ($value === null) { + $missingFields[] = 'full_name'; + goto after_full_name; + } + + $properties['full_name'] = $value; + + after_full_name: + + $value = $payload['git_commits_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_commits_url'; + goto after_git_commits_url; + } + + $properties['git_commits_url'] = $value; + + after_git_commits_url: + + $value = $payload['git_refs_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_refs_url'; + goto after_git_refs_url; + } + + $properties['git_refs_url'] = $value; + + after_git_refs_url: + + $value = $payload['git_tags_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_tags_url'; + goto after_git_tags_url; + } + + $properties['git_tags_url'] = $value; + + after_git_tags_url: + + $value = $payload['git_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_url'; + goto after_git_url; + } + + $properties['git_url'] = $value; + + after_git_url: + + $value = $payload['has_downloads'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_downloads'; + goto after_has_downloads; + } + + $properties['has_downloads'] = $value; + + after_has_downloads: + + $value = $payload['has_issues'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_issues'; + goto after_has_issues; + } + + $properties['has_issues'] = $value; + + after_has_issues: + + $value = $payload['has_pages'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_pages'; + goto after_has_pages; + } + + $properties['has_pages'] = $value; + + after_has_pages: + + $value = $payload['has_projects'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_projects'; + goto after_has_projects; + } + + $properties['has_projects'] = $value; + + after_has_projects: + + $value = $payload['has_wiki'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_wiki'; + goto after_has_wiki; + } + + $properties['has_wiki'] = $value; + + after_has_wiki: + + $value = $payload['has_discussions'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_discussions'; + goto after_has_discussions; + } + + $properties['has_discussions'] = $value; + + after_has_discussions: + + $value = $payload['homepage'] ?? null; + + if ($value === null) { + $missingFields[] = 'homepage'; + goto after_homepage; + } + + $properties['homepage'] = $value; + + after_homepage: + + $value = $payload['hooks_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'hooks_url'; + goto after_hooks_url; + } + + $properties['hooks_url'] = $value; + + after_hooks_url: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } + + $properties['html_url'] = $value; + + after_html_url: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['is_template'] ?? null; + + if ($value === null) { + $missingFields[] = 'is_template'; + goto after_is_template; + } + + $properties['is_template'] = $value; + + after_is_template: + + $value = $payload['issue_comment_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issue_comment_url'; + goto after_issue_comment_url; + } + + $properties['issue_comment_url'] = $value; + + after_issue_comment_url: + + $value = $payload['issue_events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issue_events_url'; + goto after_issue_events_url; + } + + $properties['issue_events_url'] = $value; + + after_issue_events_url: + + $value = $payload['issues_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issues_url'; + goto after_issues_url; + } + + $properties['issues_url'] = $value; + + after_issues_url: + + $value = $payload['keys_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'keys_url'; + goto after_keys_url; + } + + $properties['keys_url'] = $value; + + after_keys_url: + + $value = $payload['labels_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'labels_url'; + goto after_labels_url; + } + + $properties['labels_url'] = $value; + + after_labels_url: + + $value = $payload['language'] ?? null; + + if ($value === null) { + $missingFields[] = 'language'; + goto after_language; + } + + $properties['language'] = $value; + + after_language: + + $value = $payload['languages_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'languages_url'; + goto after_languages_url; + } + + $properties['languages_url'] = $value; + + after_languages_url: + + $value = $payload['license'] ?? null; + + if ($value === null) { + $missingFields[] = 'license'; + goto after_license; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'license'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionTransferred⚡️Changes⚡️NewRepository⚡️License($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['license'] = $value; + + after_license: + + $value = $payload['master_branch'] ?? null; + + if ($value === null) { + $missingFields[] = 'master_branch'; + goto after_master_branch; + } + + $properties['master_branch'] = $value; + + after_master_branch: + + $value = $payload['merge_commit_message'] ?? null; + + if ($value === null) { + $missingFields[] = 'merge_commit_message'; + goto after_merge_commit_message; + } + + $properties['merge_commit_message'] = $value; + + after_merge_commit_message: + + $value = $payload['merge_commit_title'] ?? null; + + if ($value === null) { + $missingFields[] = 'merge_commit_title'; + goto after_merge_commit_title; + } + + $properties['merge_commit_title'] = $value; + + after_merge_commit_title: + + $value = $payload['merges_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'merges_url'; + goto after_merges_url; + } + + $properties['merges_url'] = $value; + + after_merges_url: + + $value = $payload['milestones_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'milestones_url'; + goto after_milestones_url; + } + + $properties['milestones_url'] = $value; + + after_milestones_url: + + $value = $payload['mirror_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'mirror_url'; + goto after_mirror_url; + } + + $properties['mirror_url'] = $value; + + after_mirror_url: + + $value = $payload['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['notifications_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'notifications_url'; + goto after_notifications_url; + } + + $properties['notifications_url'] = $value; + + after_notifications_url: + + $value = $payload['open_issues'] ?? null; + + if ($value === null) { + $missingFields[] = 'open_issues'; + goto after_open_issues; + } + + $properties['open_issues'] = $value; + + after_open_issues: + + $value = $payload['open_issues_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'open_issues_count'; + goto after_open_issues_count; + } + + $properties['open_issues_count'] = $value; + + after_open_issues_count: + + $value = $payload['organization'] ?? null; + + if ($value === null) { + $missingFields[] = 'organization'; + goto after_organization; + } + + $properties['organization'] = $value; + + after_organization: + + $value = $payload['owner'] ?? null; + + if ($value === null) { + $missingFields[] = 'owner'; + goto after_owner; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'owner'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['owner'] = $value; + + after_owner: + + $value = $payload['permissions'] ?? null; + + if ($value === null) { + $missingFields[] = 'permissions'; + goto after_permissions; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'permissions'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionTransferred⚡️Changes⚡️NewRepository⚡️Permissions($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['permissions'] = $value; + + after_permissions: + + $value = $payload['private'] ?? null; + + if ($value === null) { + $missingFields[] = 'private'; + goto after_private; + } + + $properties['private'] = $value; + + after_private: + + $value = $payload['public'] ?? null; + + if ($value === null) { + $missingFields[] = 'public'; + goto after_public; + } + + $properties['public'] = $value; + + after_public: + + $value = $payload['pulls_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'pulls_url'; + goto after_pulls_url; + } + + $properties['pulls_url'] = $value; + + after_pulls_url: + + $value = $payload['pushed_at'] ?? null; + + if ($value === null) { + $properties['pushed_at'] = null; + goto after_pushed_at; + } + + $properties['pushed_at'] = $value; + + after_pushed_at: + + $value = $payload['releases_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'releases_url'; + goto after_releases_url; + } + + $properties['releases_url'] = $value; + + after_releases_url: + + $value = $payload['role_name'] ?? null; + + if ($value === null) { + $missingFields[] = 'role_name'; + goto after_role_name; + } + + $properties['role_name'] = $value; + + after_role_name: + + $value = $payload['size'] ?? null; + + if ($value === null) { + $missingFields[] = 'size'; + goto after_size; + } + + $properties['size'] = $value; + + after_size: + + $value = $payload['squash_merge_commit_message'] ?? null; + + if ($value === null) { + $missingFields[] = 'squash_merge_commit_message'; + goto after_squash_merge_commit_message; + } + + $properties['squash_merge_commit_message'] = $value; + + after_squash_merge_commit_message: + + $value = $payload['squash_merge_commit_title'] ?? null; + + if ($value === null) { + $missingFields[] = 'squash_merge_commit_title'; + goto after_squash_merge_commit_title; + } + + $properties['squash_merge_commit_title'] = $value; + + after_squash_merge_commit_title: + + $value = $payload['ssh_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'ssh_url'; + goto after_ssh_url; + } + + $properties['ssh_url'] = $value; + + after_ssh_url: + + $value = $payload['stargazers'] ?? null; + + if ($value === null) { + $missingFields[] = 'stargazers'; + goto after_stargazers; + } + + $properties['stargazers'] = $value; + + after_stargazers: + + $value = $payload['stargazers_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'stargazers_count'; + goto after_stargazers_count; + } + + $properties['stargazers_count'] = $value; + + after_stargazers_count: + + $value = $payload['stargazers_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'stargazers_url'; + goto after_stargazers_url; + } + + $properties['stargazers_url'] = $value; + + after_stargazers_url: + + $value = $payload['statuses_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'statuses_url'; + goto after_statuses_url; + } + + $properties['statuses_url'] = $value; + + after_statuses_url: + + $value = $payload['subscribers_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscribers_url'; + goto after_subscribers_url; + } + + $properties['subscribers_url'] = $value; + + after_subscribers_url: + + $value = $payload['subscription_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscription_url'; + goto after_subscription_url; + } + + $properties['subscription_url'] = $value; + + after_subscription_url: + + $value = $payload['svn_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'svn_url'; + goto after_svn_url; + } + + $properties['svn_url'] = $value; + + after_svn_url: + + $value = $payload['tags_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'tags_url'; + goto after_tags_url; + } + + $properties['tags_url'] = $value; + + after_tags_url: + + $value = $payload['teams_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'teams_url'; + goto after_teams_url; + } + + $properties['teams_url'] = $value; + + after_teams_url: + + $value = $payload['topics'] ?? null; + + if ($value === null) { + $missingFields[] = 'topics'; + goto after_topics; + } + + $properties['topics'] = $value; + + after_topics: + + $value = $payload['trees_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'trees_url'; + goto after_trees_url; + } + + $properties['trees_url'] = $value; + + after_trees_url: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'updated_at'; + goto after_updated_at; + } + + $properties['updated_at'] = $value; + + after_updated_at: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['use_squash_pr_title_as_default'] ?? null; + + if ($value === null) { + $missingFields[] = 'use_squash_pr_title_as_default'; + goto after_use_squash_pr_title_as_default; + } + + $properties['use_squash_pr_title_as_default'] = $value; + + after_use_squash_pr_title_as_default: + + $value = $payload['visibility'] ?? null; + + if ($value === null) { + $missingFields[] = 'visibility'; + goto after_visibility; + } + + $properties['visibility'] = $value; + + after_visibility: + + $value = $payload['watchers'] ?? null; + + if ($value === null) { + $missingFields[] = 'watchers'; + goto after_watchers; + } + + $properties['watchers'] = $value; + + after_watchers: + + $value = $payload['watchers_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'watchers_count'; + goto after_watchers_count; + } + + $properties['watchers_count'] = $value; + + after_watchers_count: + + $value = $payload['web_commit_signoff_required'] ?? null; + + if ($value === null) { + $missingFields[] = 'web_commit_signoff_required'; + goto after_web_commit_signoff_required; + } + + $properties['web_commit_signoff_required'] = $value; + + after_web_commit_signoff_required: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Head\Repo', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Head\Repo::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Head\Repo(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Head\Repo', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner(array $payload): \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['login'] ?? null; + + if ($value === null) { + $missingFields[] = 'login'; + goto after_login; + } + + $properties['login'] = $value; + + after_login: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['avatar_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'avatar_url'; + goto after_avatar_url; + } + + $properties['avatar_url'] = $value; + + after_avatar_url: + + $value = $payload['gravatar_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'gravatar_id'; + goto after_gravatar_id; + } + + $properties['gravatar_id'] = $value; + + after_gravatar_id: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } + + $properties['html_url'] = $value; + + after_html_url: + + $value = $payload['followers_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'followers_url'; + goto after_followers_url; + } + + $properties['followers_url'] = $value; + + after_followers_url: + + $value = $payload['following_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'following_url'; + goto after_following_url; + } + + $properties['following_url'] = $value; + + after_following_url: + + $value = $payload['gists_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'gists_url'; + goto after_gists_url; + } + + $properties['gists_url'] = $value; + + after_gists_url: + + $value = $payload['starred_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'starred_url'; + goto after_starred_url; + } + + $properties['starred_url'] = $value; + + after_starred_url: + + $value = $payload['subscriptions_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscriptions_url'; + goto after_subscriptions_url; + } + + $properties['subscriptions_url'] = $value; + + after_subscriptions_url: + + $value = $payload['organizations_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'organizations_url'; + goto after_organizations_url; + } + + $properties['organizations_url'] = $value; + + after_organizations_url: + + $value = $payload['repos_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'repos_url'; + goto after_repos_url; + } + + $properties['repos_url'] = $value; + + after_repos_url: + + $value = $payload['events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'events_url'; + goto after_events_url; + } + + $properties['events_url'] = $value; + + after_events_url: + + $value = $payload['received_events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'received_events_url'; + goto after_received_events_url; + } + + $properties['received_events_url'] = $value; + + after_received_events_url: + + $value = $payload['type'] ?? null; + + if ($value === null) { + $missingFields[] = 'type'; + goto after_type; + } + + $properties['type'] = $value; + + after_type: + + $value = $payload['site_admin'] ?? null; + + if ($value === null) { + $missingFields[] = 'site_admin'; + goto after_site_admin; + } + + $properties['site_admin'] = $value; + + after_site_admin: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Permissions(array $payload): \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['admin'] ?? null; + + if ($value === null) { + $missingFields[] = 'admin'; + goto after_admin; + } + + $properties['admin'] = $value; + + after_admin: + + $value = $payload['maintain'] ?? null; + + if ($value === null) { + $missingFields[] = 'maintain'; + goto after_maintain; + } + + $properties['maintain'] = $value; + + after_maintain: + + $value = $payload['push'] ?? null; + + if ($value === null) { + $missingFields[] = 'push'; + goto after_push; + } + + $properties['push'] = $value; + + after_push: + + $value = $payload['triage'] ?? null; + + if ($value === null) { + $missingFields[] = 'triage'; + goto after_triage; + } + + $properties['triage'] = $value; + + after_triage: + + $value = $payload['pull'] ?? null; + + if ($value === null) { + $missingFields[] = 'pull'; + goto after_pull; + } + + $properties['pull'] = $value; + + after_pull: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAutoMergeDisabled⚡️PullRequest⚡️Base⚡️Repo(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestAutoMergeDisabled\PullRequest\Base\Repo + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['allow_auto_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_auto_merge'; + goto after_allow_auto_merge; + } + + $properties['allow_auto_merge'] = $value; + + after_allow_auto_merge: + + $value = $payload['allow_forking'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_forking'; + goto after_allow_forking; + } + + $properties['allow_forking'] = $value; + + after_allow_forking: + + $value = $payload['allow_merge_commit'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_merge_commit'; + goto after_allow_merge_commit; + } + + $properties['allow_merge_commit'] = $value; + + after_allow_merge_commit: + + $value = $payload['allow_rebase_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_rebase_merge'; + goto after_allow_rebase_merge; + } + + $properties['allow_rebase_merge'] = $value; + + after_allow_rebase_merge: + + $value = $payload['allow_squash_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_squash_merge'; + goto after_allow_squash_merge; + } + + $properties['allow_squash_merge'] = $value; + + after_allow_squash_merge: + + $value = $payload['allow_update_branch'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_update_branch'; + goto after_allow_update_branch; + } + + $properties['allow_update_branch'] = $value; + + after_allow_update_branch: + + $value = $payload['archive_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'archive_url'; + goto after_archive_url; + } + + $properties['archive_url'] = $value; + + after_archive_url: + + $value = $payload['archived'] ?? null; + + if ($value === null) { + $missingFields[] = 'archived'; + goto after_archived; + } + + $properties['archived'] = $value; + + after_archived: + + $value = $payload['assignees_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'assignees_url'; + goto after_assignees_url; + } + + $properties['assignees_url'] = $value; + + after_assignees_url: + + $value = $payload['blobs_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'blobs_url'; + goto after_blobs_url; + } + + $properties['blobs_url'] = $value; + + after_blobs_url: + + $value = $payload['branches_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'branches_url'; + goto after_branches_url; + } + + $properties['branches_url'] = $value; + + after_branches_url: + + $value = $payload['clone_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'clone_url'; + goto after_clone_url; + } + + $properties['clone_url'] = $value; + + after_clone_url: + + $value = $payload['collaborators_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'collaborators_url'; + goto after_collaborators_url; + } + + $properties['collaborators_url'] = $value; + + after_collaborators_url: + + $value = $payload['comments_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'comments_url'; + goto after_comments_url; + } + + $properties['comments_url'] = $value; + + after_comments_url: + + $value = $payload['commits_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'commits_url'; + goto after_commits_url; + } + + $properties['commits_url'] = $value; + + after_commits_url: + + $value = $payload['compare_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'compare_url'; + goto after_compare_url; + } + + $properties['compare_url'] = $value; + + after_compare_url: + + $value = $payload['contents_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'contents_url'; + goto after_contents_url; + } + + $properties['contents_url'] = $value; + + after_contents_url: + + $value = $payload['contributors_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'contributors_url'; + goto after_contributors_url; + } + + $properties['contributors_url'] = $value; + + after_contributors_url: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $properties['created_at'] = null; + goto after_created_at; + } + + $properties['created_at'] = $value; + + after_created_at: + + $value = $payload['default_branch'] ?? null; + + if ($value === null) { + $missingFields[] = 'default_branch'; + goto after_default_branch; + } + + $properties['default_branch'] = $value; + + after_default_branch: + + $value = $payload['delete_branch_on_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'delete_branch_on_merge'; + goto after_delete_branch_on_merge; + } + + $properties['delete_branch_on_merge'] = $value; + + after_delete_branch_on_merge: + + $value = $payload['deployments_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'deployments_url'; + goto after_deployments_url; + } + + $properties['deployments_url'] = $value; + + after_deployments_url: + + $value = $payload['description'] ?? null; + + if ($value === null) { + $missingFields[] = 'description'; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['disabled'] ?? null; + + if ($value === null) { + $missingFields[] = 'disabled'; + goto after_disabled; + } + + $properties['disabled'] = $value; + + after_disabled: + + $value = $payload['downloads_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'downloads_url'; + goto after_downloads_url; + } + + $properties['downloads_url'] = $value; + + after_downloads_url: + + $value = $payload['events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'events_url'; + goto after_events_url; + } + + $properties['events_url'] = $value; + + after_events_url: + + $value = $payload['fork'] ?? null; + + if ($value === null) { + $missingFields[] = 'fork'; + goto after_fork; + } + + $properties['fork'] = $value; + + after_fork: + + $value = $payload['forks'] ?? null; + + if ($value === null) { + $missingFields[] = 'forks'; + goto after_forks; + } + + $properties['forks'] = $value; + + after_forks: + + $value = $payload['forks_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'forks_count'; + goto after_forks_count; + } + + $properties['forks_count'] = $value; + + after_forks_count: + + $value = $payload['forks_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'forks_url'; + goto after_forks_url; + } + + $properties['forks_url'] = $value; + + after_forks_url: + + $value = $payload['full_name'] ?? null; + + if ($value === null) { + $missingFields[] = 'full_name'; + goto after_full_name; + } + + $properties['full_name'] = $value; + + after_full_name: + + $value = $payload['git_commits_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_commits_url'; + goto after_git_commits_url; + } + + $properties['git_commits_url'] = $value; + + after_git_commits_url: + + $value = $payload['git_refs_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_refs_url'; + goto after_git_refs_url; + } + + $properties['git_refs_url'] = $value; + + after_git_refs_url: + + $value = $payload['git_tags_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_tags_url'; + goto after_git_tags_url; + } + + $properties['git_tags_url'] = $value; + + after_git_tags_url: + + $value = $payload['git_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_url'; + goto after_git_url; + } + + $properties['git_url'] = $value; + + after_git_url: + + $value = $payload['has_downloads'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_downloads'; + goto after_has_downloads; + } + + $properties['has_downloads'] = $value; + + after_has_downloads: + + $value = $payload['has_issues'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_issues'; + goto after_has_issues; + } + + $properties['has_issues'] = $value; + + after_has_issues: + + $value = $payload['has_discussions'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_discussions'; + goto after_has_discussions; + } + + $properties['has_discussions'] = $value; + + after_has_discussions: + + $value = $payload['has_pages'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_pages'; + goto after_has_pages; + } + + $properties['has_pages'] = $value; + + after_has_pages: + + $value = $payload['has_projects'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_projects'; + goto after_has_projects; + } + + $properties['has_projects'] = $value; + + after_has_projects: + + $value = $payload['has_wiki'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_wiki'; + goto after_has_wiki; + } + + $properties['has_wiki'] = $value; + + after_has_wiki: + + $value = $payload['homepage'] ?? null; + + if ($value === null) { + $missingFields[] = 'homepage'; + goto after_homepage; + } + + $properties['homepage'] = $value; + + after_homepage: + + $value = $payload['hooks_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'hooks_url'; + goto after_hooks_url; + } + + $properties['hooks_url'] = $value; + + after_hooks_url: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } + + $properties['html_url'] = $value; + + after_html_url: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['is_template'] ?? null; + + if ($value === null) { + $missingFields[] = 'is_template'; + goto after_is_template; + } + + $properties['is_template'] = $value; + + after_is_template: + + $value = $payload['issue_comment_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issue_comment_url'; + goto after_issue_comment_url; + } + + $properties['issue_comment_url'] = $value; + + after_issue_comment_url: + + $value = $payload['issue_events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issue_events_url'; + goto after_issue_events_url; + } + + $properties['issue_events_url'] = $value; + + after_issue_events_url: + + $value = $payload['issues_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issues_url'; + goto after_issues_url; + } + + $properties['issues_url'] = $value; + + after_issues_url: + + $value = $payload['keys_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'keys_url'; + goto after_keys_url; + } + + $properties['keys_url'] = $value; + + after_keys_url: + + $value = $payload['labels_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'labels_url'; + goto after_labels_url; + } + + $properties['labels_url'] = $value; + + after_labels_url: + + $value = $payload['language'] ?? null; + + if ($value === null) { + $missingFields[] = 'language'; + goto after_language; + } + + $properties['language'] = $value; + + after_language: + + $value = $payload['languages_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'languages_url'; + goto after_languages_url; + } + + $properties['languages_url'] = $value; + + after_languages_url: + + $value = $payload['license'] ?? null; + + if ($value === null) { + $missingFields[] = 'license'; + goto after_license; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'license'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionTransferred⚡️Changes⚡️NewRepository⚡️License($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['license'] = $value; + + after_license: + + $value = $payload['master_branch'] ?? null; + + if ($value === null) { + $missingFields[] = 'master_branch'; + goto after_master_branch; + } + + $properties['master_branch'] = $value; + + after_master_branch: + + $value = $payload['merge_commit_message'] ?? null; + + if ($value === null) { + $missingFields[] = 'merge_commit_message'; + goto after_merge_commit_message; + } + + $properties['merge_commit_message'] = $value; + + after_merge_commit_message: + + $value = $payload['merge_commit_title'] ?? null; + + if ($value === null) { + $missingFields[] = 'merge_commit_title'; + goto after_merge_commit_title; + } + + $properties['merge_commit_title'] = $value; + + after_merge_commit_title: + + $value = $payload['merges_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'merges_url'; + goto after_merges_url; + } + + $properties['merges_url'] = $value; + + after_merges_url: + + $value = $payload['milestones_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'milestones_url'; + goto after_milestones_url; + } + + $properties['milestones_url'] = $value; + + after_milestones_url: + + $value = $payload['mirror_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'mirror_url'; + goto after_mirror_url; + } + + $properties['mirror_url'] = $value; + + after_mirror_url: + + $value = $payload['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['notifications_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'notifications_url'; + goto after_notifications_url; + } + + $properties['notifications_url'] = $value; + + after_notifications_url: + + $value = $payload['open_issues'] ?? null; + + if ($value === null) { + $missingFields[] = 'open_issues'; + goto after_open_issues; + } + + $properties['open_issues'] = $value; + + after_open_issues: + + $value = $payload['open_issues_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'open_issues_count'; + goto after_open_issues_count; + } + + $properties['open_issues_count'] = $value; + + after_open_issues_count: + + $value = $payload['organization'] ?? null; + + if ($value === null) { + $missingFields[] = 'organization'; + goto after_organization; + } + + $properties['organization'] = $value; + + after_organization: + + $value = $payload['owner'] ?? null; + + if ($value === null) { + $missingFields[] = 'owner'; + goto after_owner; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'owner'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['owner'] = $value; + + after_owner: + + $value = $payload['permissions'] ?? null; + + if ($value === null) { + $missingFields[] = 'permissions'; + goto after_permissions; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'permissions'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionTransferred⚡️Changes⚡️NewRepository⚡️Permissions($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['permissions'] = $value; + + after_permissions: + + $value = $payload['private'] ?? null; + + if ($value === null) { + $missingFields[] = 'private'; + goto after_private; + } + + $properties['private'] = $value; + + after_private: + + $value = $payload['public'] ?? null; + + if ($value === null) { + $missingFields[] = 'public'; + goto after_public; + } + + $properties['public'] = $value; + + after_public: + + $value = $payload['pulls_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'pulls_url'; + goto after_pulls_url; + } + + $properties['pulls_url'] = $value; + + after_pulls_url: + + $value = $payload['pushed_at'] ?? null; + + if ($value === null) { + $properties['pushed_at'] = null; + goto after_pushed_at; + } + + $properties['pushed_at'] = $value; + + after_pushed_at: + + $value = $payload['releases_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'releases_url'; + goto after_releases_url; + } + + $properties['releases_url'] = $value; + + after_releases_url: + + $value = $payload['role_name'] ?? null; + + if ($value === null) { + $missingFields[] = 'role_name'; + goto after_role_name; + } + + $properties['role_name'] = $value; + + after_role_name: + + $value = $payload['size'] ?? null; + + if ($value === null) { + $missingFields[] = 'size'; + goto after_size; + } + + $properties['size'] = $value; + + after_size: + + $value = $payload['squash_merge_commit_message'] ?? null; + + if ($value === null) { + $missingFields[] = 'squash_merge_commit_message'; + goto after_squash_merge_commit_message; + } + + $properties['squash_merge_commit_message'] = $value; + + after_squash_merge_commit_message: + + $value = $payload['squash_merge_commit_title'] ?? null; + + if ($value === null) { + $missingFields[] = 'squash_merge_commit_title'; + goto after_squash_merge_commit_title; + } + + $properties['squash_merge_commit_title'] = $value; + + after_squash_merge_commit_title: + + $value = $payload['ssh_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'ssh_url'; + goto after_ssh_url; + } + + $properties['ssh_url'] = $value; + + after_ssh_url: + + $value = $payload['stargazers'] ?? null; + + if ($value === null) { + $missingFields[] = 'stargazers'; + goto after_stargazers; + } + + $properties['stargazers'] = $value; + + after_stargazers: + + $value = $payload['stargazers_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'stargazers_count'; + goto after_stargazers_count; + } + + $properties['stargazers_count'] = $value; + + after_stargazers_count: + + $value = $payload['stargazers_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'stargazers_url'; + goto after_stargazers_url; + } + + $properties['stargazers_url'] = $value; + + after_stargazers_url: + + $value = $payload['statuses_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'statuses_url'; + goto after_statuses_url; + } + + $properties['statuses_url'] = $value; + + after_statuses_url: + + $value = $payload['subscribers_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscribers_url'; + goto after_subscribers_url; + } + + $properties['subscribers_url'] = $value; + + after_subscribers_url: + + $value = $payload['subscription_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscription_url'; + goto after_subscription_url; + } + + $properties['subscription_url'] = $value; + + after_subscription_url: + + $value = $payload['svn_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'svn_url'; + goto after_svn_url; + } + + $properties['svn_url'] = $value; + + after_svn_url: + + $value = $payload['tags_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'tags_url'; + goto after_tags_url; + } + + $properties['tags_url'] = $value; + + after_tags_url: + + $value = $payload['teams_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'teams_url'; + goto after_teams_url; + } + + $properties['teams_url'] = $value; + + after_teams_url: + + $value = $payload['topics'] ?? null; + + if ($value === null) { + $missingFields[] = 'topics'; + goto after_topics; + } + + $properties['topics'] = $value; + + after_topics: + + $value = $payload['trees_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'trees_url'; + goto after_trees_url; + } + + $properties['trees_url'] = $value; + + after_trees_url: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'updated_at'; + goto after_updated_at; + } + + $properties['updated_at'] = $value; + + after_updated_at: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['use_squash_pr_title_as_default'] ?? null; + + if ($value === null) { + $missingFields[] = 'use_squash_pr_title_as_default'; + goto after_use_squash_pr_title_as_default; + } + + $properties['use_squash_pr_title_as_default'] = $value; + + after_use_squash_pr_title_as_default: + + $value = $payload['visibility'] ?? null; + + if ($value === null) { + $missingFields[] = 'visibility'; + goto after_visibility; + } + + $properties['visibility'] = $value; + + after_visibility: + + $value = $payload['watchers'] ?? null; + + if ($value === null) { + $missingFields[] = 'watchers'; + goto after_watchers; + } + + $properties['watchers'] = $value; + + after_watchers: + + $value = $payload['watchers_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'watchers_count'; + goto after_watchers_count; + } + + $properties['watchers_count'] = $value; + + after_watchers_count: + + $value = $payload['web_commit_signoff_required'] ?? null; + + if ($value === null) { + $missingFields[] = 'web_commit_signoff_required'; + goto after_web_commit_signoff_required; + } + + $properties['web_commit_signoff_required'] = $value; + + after_web_commit_signoff_required: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAutoMergeDisabled\PullRequest\Base\Repo', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestAutoMergeDisabled\PullRequest\Base\Repo::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookPullRequestAutoMergeDisabled\PullRequest\Base\Repo(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAutoMergeDisabled\PullRequest\Base\Repo', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestDemilestoned⚡️PullRequest⚡️Base⚡️Repo(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestDemilestoned\PullRequest\Base\Repo + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['allow_auto_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_auto_merge'; + goto after_allow_auto_merge; + } + + $properties['allow_auto_merge'] = $value; + + after_allow_auto_merge: + + $value = $payload['allow_forking'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_forking'; + goto after_allow_forking; + } + + $properties['allow_forking'] = $value; + + after_allow_forking: + + $value = $payload['allow_merge_commit'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_merge_commit'; + goto after_allow_merge_commit; + } + + $properties['allow_merge_commit'] = $value; + + after_allow_merge_commit: + + $value = $payload['allow_rebase_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_rebase_merge'; + goto after_allow_rebase_merge; + } + + $properties['allow_rebase_merge'] = $value; + + after_allow_rebase_merge: + + $value = $payload['allow_squash_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_squash_merge'; + goto after_allow_squash_merge; + } + + $properties['allow_squash_merge'] = $value; + + after_allow_squash_merge: + + $value = $payload['allow_update_branch'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_update_branch'; + goto after_allow_update_branch; + } + + $properties['allow_update_branch'] = $value; + + after_allow_update_branch: + + $value = $payload['archive_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'archive_url'; + goto after_archive_url; + } + + $properties['archive_url'] = $value; + + after_archive_url: + + $value = $payload['archived'] ?? null; + + if ($value === null) { + $missingFields[] = 'archived'; + goto after_archived; + } + + $properties['archived'] = $value; + + after_archived: + + $value = $payload['assignees_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'assignees_url'; + goto after_assignees_url; + } + + $properties['assignees_url'] = $value; + + after_assignees_url: + + $value = $payload['blobs_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'blobs_url'; + goto after_blobs_url; + } + + $properties['blobs_url'] = $value; + + after_blobs_url: + + $value = $payload['branches_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'branches_url'; + goto after_branches_url; + } + + $properties['branches_url'] = $value; + + after_branches_url: + + $value = $payload['clone_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'clone_url'; + goto after_clone_url; + } + + $properties['clone_url'] = $value; + + after_clone_url: + + $value = $payload['collaborators_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'collaborators_url'; + goto after_collaborators_url; + } + + $properties['collaborators_url'] = $value; + + after_collaborators_url: + + $value = $payload['comments_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'comments_url'; + goto after_comments_url; + } + + $properties['comments_url'] = $value; + + after_comments_url: + + $value = $payload['commits_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'commits_url'; + goto after_commits_url; + } + + $properties['commits_url'] = $value; + + after_commits_url: + + $value = $payload['compare_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'compare_url'; + goto after_compare_url; + } + + $properties['compare_url'] = $value; + + after_compare_url: + + $value = $payload['contents_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'contents_url'; + goto after_contents_url; + } + + $properties['contents_url'] = $value; + + after_contents_url: + + $value = $payload['contributors_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'contributors_url'; + goto after_contributors_url; + } + + $properties['contributors_url'] = $value; + + after_contributors_url: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $properties['created_at'] = null; + goto after_created_at; + } + + $properties['created_at'] = $value; + + after_created_at: + + $value = $payload['default_branch'] ?? null; + + if ($value === null) { + $missingFields[] = 'default_branch'; + goto after_default_branch; + } + + $properties['default_branch'] = $value; + + after_default_branch: + + $value = $payload['delete_branch_on_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'delete_branch_on_merge'; + goto after_delete_branch_on_merge; + } + + $properties['delete_branch_on_merge'] = $value; + + after_delete_branch_on_merge: + + $value = $payload['deployments_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'deployments_url'; + goto after_deployments_url; + } + + $properties['deployments_url'] = $value; + + after_deployments_url: + + $value = $payload['description'] ?? null; + + if ($value === null) { + $missingFields[] = 'description'; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['disabled'] ?? null; + + if ($value === null) { + $missingFields[] = 'disabled'; + goto after_disabled; + } + + $properties['disabled'] = $value; + + after_disabled: + + $value = $payload['downloads_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'downloads_url'; + goto after_downloads_url; + } + + $properties['downloads_url'] = $value; + + after_downloads_url: + + $value = $payload['events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'events_url'; + goto after_events_url; + } + + $properties['events_url'] = $value; + + after_events_url: + + $value = $payload['fork'] ?? null; + + if ($value === null) { + $missingFields[] = 'fork'; + goto after_fork; + } + + $properties['fork'] = $value; + + after_fork: + + $value = $payload['forks'] ?? null; + + if ($value === null) { + $missingFields[] = 'forks'; + goto after_forks; + } + + $properties['forks'] = $value; + + after_forks: + + $value = $payload['forks_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'forks_count'; + goto after_forks_count; + } + + $properties['forks_count'] = $value; + + after_forks_count: + + $value = $payload['forks_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'forks_url'; + goto after_forks_url; + } + + $properties['forks_url'] = $value; + + after_forks_url: + + $value = $payload['full_name'] ?? null; + + if ($value === null) { + $missingFields[] = 'full_name'; + goto after_full_name; + } + + $properties['full_name'] = $value; + + after_full_name: + + $value = $payload['git_commits_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_commits_url'; + goto after_git_commits_url; + } + + $properties['git_commits_url'] = $value; + + after_git_commits_url: + + $value = $payload['git_refs_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_refs_url'; + goto after_git_refs_url; + } + + $properties['git_refs_url'] = $value; + + after_git_refs_url: + + $value = $payload['git_tags_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_tags_url'; + goto after_git_tags_url; + } + + $properties['git_tags_url'] = $value; + + after_git_tags_url: + + $value = $payload['git_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_url'; + goto after_git_url; + } + + $properties['git_url'] = $value; + + after_git_url: + + $value = $payload['has_downloads'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_downloads'; + goto after_has_downloads; + } + + $properties['has_downloads'] = $value; + + after_has_downloads: + + $value = $payload['has_issues'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_issues'; + goto after_has_issues; + } + + $properties['has_issues'] = $value; + + after_has_issues: + + $value = $payload['has_pages'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_pages'; + goto after_has_pages; + } + + $properties['has_pages'] = $value; + + after_has_pages: + + $value = $payload['has_projects'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_projects'; + goto after_has_projects; + } + + $properties['has_projects'] = $value; + + after_has_projects: + + $value = $payload['has_wiki'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_wiki'; + goto after_has_wiki; + } + + $properties['has_wiki'] = $value; + + after_has_wiki: + + $value = $payload['has_discussions'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_discussions'; + goto after_has_discussions; + } + + $properties['has_discussions'] = $value; + + after_has_discussions: + + $value = $payload['homepage'] ?? null; + + if ($value === null) { + $missingFields[] = 'homepage'; + goto after_homepage; + } + + $properties['homepage'] = $value; + + after_homepage: + + $value = $payload['hooks_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'hooks_url'; + goto after_hooks_url; + } + + $properties['hooks_url'] = $value; + + after_hooks_url: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } + + $properties['html_url'] = $value; + + after_html_url: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['is_template'] ?? null; + + if ($value === null) { + $missingFields[] = 'is_template'; + goto after_is_template; + } + + $properties['is_template'] = $value; + + after_is_template: + + $value = $payload['issue_comment_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issue_comment_url'; + goto after_issue_comment_url; + } + + $properties['issue_comment_url'] = $value; + + after_issue_comment_url: + + $value = $payload['issue_events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issue_events_url'; + goto after_issue_events_url; + } + + $properties['issue_events_url'] = $value; + + after_issue_events_url: + + $value = $payload['issues_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issues_url'; + goto after_issues_url; + } + + $properties['issues_url'] = $value; + + after_issues_url: + + $value = $payload['keys_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'keys_url'; + goto after_keys_url; + } + + $properties['keys_url'] = $value; + + after_keys_url: + + $value = $payload['labels_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'labels_url'; + goto after_labels_url; + } + + $properties['labels_url'] = $value; + + after_labels_url: + + $value = $payload['language'] ?? null; + + if ($value === null) { + $missingFields[] = 'language'; + goto after_language; + } + + $properties['language'] = $value; + + after_language: + + $value = $payload['languages_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'languages_url'; + goto after_languages_url; + } + + $properties['languages_url'] = $value; + + after_languages_url: + + $value = $payload['license'] ?? null; + + if ($value === null) { + $missingFields[] = 'license'; + goto after_license; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'license'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionTransferred⚡️Changes⚡️NewRepository⚡️License($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['license'] = $value; + + after_license: + + $value = $payload['master_branch'] ?? null; + + if ($value === null) { + $missingFields[] = 'master_branch'; + goto after_master_branch; + } + + $properties['master_branch'] = $value; + + after_master_branch: + + $value = $payload['merge_commit_message'] ?? null; + + if ($value === null) { + $missingFields[] = 'merge_commit_message'; + goto after_merge_commit_message; + } + + $properties['merge_commit_message'] = $value; + + after_merge_commit_message: + + $value = $payload['merge_commit_title'] ?? null; + + if ($value === null) { + $missingFields[] = 'merge_commit_title'; + goto after_merge_commit_title; + } + + $properties['merge_commit_title'] = $value; + + after_merge_commit_title: + + $value = $payload['merges_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'merges_url'; + goto after_merges_url; + } + + $properties['merges_url'] = $value; + + after_merges_url: + + $value = $payload['milestones_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'milestones_url'; + goto after_milestones_url; + } + + $properties['milestones_url'] = $value; + + after_milestones_url: + + $value = $payload['mirror_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'mirror_url'; + goto after_mirror_url; + } + + $properties['mirror_url'] = $value; + + after_mirror_url: + + $value = $payload['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['notifications_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'notifications_url'; + goto after_notifications_url; + } + + $properties['notifications_url'] = $value; + + after_notifications_url: + + $value = $payload['open_issues'] ?? null; + + if ($value === null) { + $missingFields[] = 'open_issues'; + goto after_open_issues; + } + + $properties['open_issues'] = $value; + + after_open_issues: + + $value = $payload['open_issues_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'open_issues_count'; + goto after_open_issues_count; + } + + $properties['open_issues_count'] = $value; + + after_open_issues_count: + + $value = $payload['organization'] ?? null; + + if ($value === null) { + $missingFields[] = 'organization'; + goto after_organization; + } + + $properties['organization'] = $value; + + after_organization: + + $value = $payload['owner'] ?? null; + + if ($value === null) { + $missingFields[] = 'owner'; + goto after_owner; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'owner'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['owner'] = $value; + + after_owner: + + $value = $payload['permissions'] ?? null; + + if ($value === null) { + $missingFields[] = 'permissions'; + goto after_permissions; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'permissions'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionTransferred⚡️Changes⚡️NewRepository⚡️Permissions($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['permissions'] = $value; + + after_permissions: + + $value = $payload['private'] ?? null; + + if ($value === null) { + $missingFields[] = 'private'; + goto after_private; + } + + $properties['private'] = $value; + + after_private: + + $value = $payload['public'] ?? null; + + if ($value === null) { + $missingFields[] = 'public'; + goto after_public; + } + + $properties['public'] = $value; + + after_public: + + $value = $payload['pulls_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'pulls_url'; + goto after_pulls_url; + } + + $properties['pulls_url'] = $value; + + after_pulls_url: + + $value = $payload['pushed_at'] ?? null; + + if ($value === null) { + $properties['pushed_at'] = null; + goto after_pushed_at; + } + + $properties['pushed_at'] = $value; + + after_pushed_at: + + $value = $payload['releases_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'releases_url'; + goto after_releases_url; + } + + $properties['releases_url'] = $value; + + after_releases_url: + + $value = $payload['role_name'] ?? null; + + if ($value === null) { + $missingFields[] = 'role_name'; + goto after_role_name; + } + + $properties['role_name'] = $value; + + after_role_name: + + $value = $payload['size'] ?? null; + + if ($value === null) { + $missingFields[] = 'size'; + goto after_size; + } + + $properties['size'] = $value; + + after_size: + + $value = $payload['squash_merge_commit_message'] ?? null; + + if ($value === null) { + $missingFields[] = 'squash_merge_commit_message'; + goto after_squash_merge_commit_message; + } + + $properties['squash_merge_commit_message'] = $value; + + after_squash_merge_commit_message: + + $value = $payload['squash_merge_commit_title'] ?? null; + + if ($value === null) { + $missingFields[] = 'squash_merge_commit_title'; + goto after_squash_merge_commit_title; + } + + $properties['squash_merge_commit_title'] = $value; + + after_squash_merge_commit_title: + + $value = $payload['ssh_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'ssh_url'; + goto after_ssh_url; + } + + $properties['ssh_url'] = $value; + + after_ssh_url: + + $value = $payload['stargazers'] ?? null; + + if ($value === null) { + $missingFields[] = 'stargazers'; + goto after_stargazers; + } + + $properties['stargazers'] = $value; + + after_stargazers: + + $value = $payload['stargazers_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'stargazers_count'; + goto after_stargazers_count; + } + + $properties['stargazers_count'] = $value; + + after_stargazers_count: + + $value = $payload['stargazers_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'stargazers_url'; + goto after_stargazers_url; + } + + $properties['stargazers_url'] = $value; + + after_stargazers_url: + + $value = $payload['statuses_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'statuses_url'; + goto after_statuses_url; + } + + $properties['statuses_url'] = $value; + + after_statuses_url: + + $value = $payload['subscribers_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscribers_url'; + goto after_subscribers_url; + } + + $properties['subscribers_url'] = $value; + + after_subscribers_url: + + $value = $payload['subscription_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscription_url'; + goto after_subscription_url; + } + + $properties['subscription_url'] = $value; + + after_subscription_url: + + $value = $payload['svn_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'svn_url'; + goto after_svn_url; + } + + $properties['svn_url'] = $value; + + after_svn_url: + + $value = $payload['tags_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'tags_url'; + goto after_tags_url; + } + + $properties['tags_url'] = $value; + + after_tags_url: + + $value = $payload['teams_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'teams_url'; + goto after_teams_url; + } + + $properties['teams_url'] = $value; + + after_teams_url: + + $value = $payload['topics'] ?? null; + + if ($value === null) { + $missingFields[] = 'topics'; + goto after_topics; + } + + $properties['topics'] = $value; + + after_topics: + + $value = $payload['trees_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'trees_url'; + goto after_trees_url; + } + + $properties['trees_url'] = $value; + + after_trees_url: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'updated_at'; + goto after_updated_at; + } + + $properties['updated_at'] = $value; + + after_updated_at: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['use_squash_pr_title_as_default'] ?? null; + + if ($value === null) { + $missingFields[] = 'use_squash_pr_title_as_default'; + goto after_use_squash_pr_title_as_default; + } + + $properties['use_squash_pr_title_as_default'] = $value; + + after_use_squash_pr_title_as_default: + + $value = $payload['visibility'] ?? null; + + if ($value === null) { + $missingFields[] = 'visibility'; + goto after_visibility; + } + + $properties['visibility'] = $value; + + after_visibility: + + $value = $payload['watchers'] ?? null; + + if ($value === null) { + $missingFields[] = 'watchers'; + goto after_watchers; + } + + $properties['watchers'] = $value; + + after_watchers: + + $value = $payload['watchers_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'watchers_count'; + goto after_watchers_count; + } + + $properties['watchers_count'] = $value; + + after_watchers_count: + + $value = $payload['web_commit_signoff_required'] ?? null; + + if ($value === null) { + $missingFields[] = 'web_commit_signoff_required'; + goto after_web_commit_signoff_required; + } + + $properties['web_commit_signoff_required'] = $value; + + after_web_commit_signoff_required: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestDemilestoned\PullRequest\Base\Repo', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestDemilestoned\PullRequest\Base\Repo::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookPullRequestDemilestoned\PullRequest\Base\Repo(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestDemilestoned\PullRequest\Base\Repo', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionCommentEdited⚡️Changes⚡️Body(array $payload): \ApiClients\Client\Github\Schema\WebhookDiscussionCommentEdited\Changes\Body + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['from'] ?? null; + + if ($value === null) { + $missingFields[] = 'from'; + goto after_from; + } + + $properties['from'] = $value; + + after_from: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDiscussionCommentEdited\Changes\Body', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookDiscussionCommentEdited\Changes\Body::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookDiscussionCommentEdited\Changes\Body(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDiscussionCommentEdited\Changes\Body', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestEnqueued⚡️PullRequest⚡️Base⚡️Repo(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestEnqueued\PullRequest\Base\Repo + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['allow_auto_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_auto_merge'; + goto after_allow_auto_merge; + } + + $properties['allow_auto_merge'] = $value; + + after_allow_auto_merge: + + $value = $payload['allow_forking'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_forking'; + goto after_allow_forking; + } + + $properties['allow_forking'] = $value; + + after_allow_forking: + + $value = $payload['allow_merge_commit'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_merge_commit'; + goto after_allow_merge_commit; + } + + $properties['allow_merge_commit'] = $value; + + after_allow_merge_commit: + + $value = $payload['allow_rebase_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_rebase_merge'; + goto after_allow_rebase_merge; + } + + $properties['allow_rebase_merge'] = $value; + + after_allow_rebase_merge: + + $value = $payload['allow_squash_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_squash_merge'; + goto after_allow_squash_merge; + } + + $properties['allow_squash_merge'] = $value; + + after_allow_squash_merge: + + $value = $payload['allow_update_branch'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_update_branch'; + goto after_allow_update_branch; + } + + $properties['allow_update_branch'] = $value; + + after_allow_update_branch: + + $value = $payload['archive_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'archive_url'; + goto after_archive_url; + } + + $properties['archive_url'] = $value; + + after_archive_url: + + $value = $payload['archived'] ?? null; + + if ($value === null) { + $missingFields[] = 'archived'; + goto after_archived; + } + + $properties['archived'] = $value; + + after_archived: + + $value = $payload['assignees_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'assignees_url'; + goto after_assignees_url; + } + + $properties['assignees_url'] = $value; + + after_assignees_url: + + $value = $payload['blobs_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'blobs_url'; + goto after_blobs_url; + } + + $properties['blobs_url'] = $value; + + after_blobs_url: + + $value = $payload['branches_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'branches_url'; + goto after_branches_url; + } + + $properties['branches_url'] = $value; + + after_branches_url: + + $value = $payload['clone_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'clone_url'; + goto after_clone_url; + } + + $properties['clone_url'] = $value; + + after_clone_url: + + $value = $payload['collaborators_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'collaborators_url'; + goto after_collaborators_url; + } + + $properties['collaborators_url'] = $value; + + after_collaborators_url: + + $value = $payload['comments_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'comments_url'; + goto after_comments_url; + } + + $properties['comments_url'] = $value; + + after_comments_url: + + $value = $payload['commits_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'commits_url'; + goto after_commits_url; + } + + $properties['commits_url'] = $value; + + after_commits_url: + + $value = $payload['compare_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'compare_url'; + goto after_compare_url; + } + + $properties['compare_url'] = $value; + + after_compare_url: + + $value = $payload['contents_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'contents_url'; + goto after_contents_url; + } + + $properties['contents_url'] = $value; + + after_contents_url: + + $value = $payload['contributors_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'contributors_url'; + goto after_contributors_url; + } + + $properties['contributors_url'] = $value; + + after_contributors_url: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $properties['created_at'] = null; + goto after_created_at; + } + + $properties['created_at'] = $value; + + after_created_at: + + $value = $payload['default_branch'] ?? null; + + if ($value === null) { + $missingFields[] = 'default_branch'; + goto after_default_branch; + } + + $properties['default_branch'] = $value; + + after_default_branch: + + $value = $payload['delete_branch_on_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'delete_branch_on_merge'; + goto after_delete_branch_on_merge; + } + + $properties['delete_branch_on_merge'] = $value; + + after_delete_branch_on_merge: + + $value = $payload['deployments_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'deployments_url'; + goto after_deployments_url; + } + + $properties['deployments_url'] = $value; + + after_deployments_url: + + $value = $payload['description'] ?? null; + + if ($value === null) { + $missingFields[] = 'description'; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['disabled'] ?? null; + + if ($value === null) { + $missingFields[] = 'disabled'; + goto after_disabled; + } + + $properties['disabled'] = $value; + + after_disabled: + + $value = $payload['downloads_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'downloads_url'; + goto after_downloads_url; + } + + $properties['downloads_url'] = $value; + + after_downloads_url: + + $value = $payload['events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'events_url'; + goto after_events_url; + } + + $properties['events_url'] = $value; + + after_events_url: + + $value = $payload['fork'] ?? null; + + if ($value === null) { + $missingFields[] = 'fork'; + goto after_fork; + } + + $properties['fork'] = $value; + + after_fork: + + $value = $payload['forks'] ?? null; + + if ($value === null) { + $missingFields[] = 'forks'; + goto after_forks; + } + + $properties['forks'] = $value; + + after_forks: + + $value = $payload['forks_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'forks_count'; + goto after_forks_count; + } + + $properties['forks_count'] = $value; + + after_forks_count: + + $value = $payload['forks_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'forks_url'; + goto after_forks_url; + } + + $properties['forks_url'] = $value; + + after_forks_url: + + $value = $payload['full_name'] ?? null; + + if ($value === null) { + $missingFields[] = 'full_name'; + goto after_full_name; + } + + $properties['full_name'] = $value; + + after_full_name: + + $value = $payload['git_commits_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_commits_url'; + goto after_git_commits_url; + } + + $properties['git_commits_url'] = $value; + + after_git_commits_url: + + $value = $payload['git_refs_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_refs_url'; + goto after_git_refs_url; + } + + $properties['git_refs_url'] = $value; + + after_git_refs_url: + + $value = $payload['git_tags_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_tags_url'; + goto after_git_tags_url; + } + + $properties['git_tags_url'] = $value; + + after_git_tags_url: + + $value = $payload['git_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_url'; + goto after_git_url; + } + + $properties['git_url'] = $value; + + after_git_url: + + $value = $payload['has_downloads'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_downloads'; + goto after_has_downloads; + } + + $properties['has_downloads'] = $value; + + after_has_downloads: + + $value = $payload['has_issues'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_issues'; + goto after_has_issues; + } + + $properties['has_issues'] = $value; + + after_has_issues: + + $value = $payload['has_pages'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_pages'; + goto after_has_pages; + } + + $properties['has_pages'] = $value; + + after_has_pages: + + $value = $payload['has_projects'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_projects'; + goto after_has_projects; + } + + $properties['has_projects'] = $value; + + after_has_projects: + + $value = $payload['has_wiki'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_wiki'; + goto after_has_wiki; + } + + $properties['has_wiki'] = $value; + + after_has_wiki: + + $value = $payload['has_discussions'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_discussions'; + goto after_has_discussions; + } + + $properties['has_discussions'] = $value; + + after_has_discussions: + + $value = $payload['homepage'] ?? null; + + if ($value === null) { + $missingFields[] = 'homepage'; + goto after_homepage; + } + + $properties['homepage'] = $value; + + after_homepage: + + $value = $payload['hooks_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'hooks_url'; + goto after_hooks_url; + } + + $properties['hooks_url'] = $value; + + after_hooks_url: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } + + $properties['html_url'] = $value; + + after_html_url: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['is_template'] ?? null; + + if ($value === null) { + $missingFields[] = 'is_template'; + goto after_is_template; + } + + $properties['is_template'] = $value; + + after_is_template: + + $value = $payload['issue_comment_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issue_comment_url'; + goto after_issue_comment_url; + } + + $properties['issue_comment_url'] = $value; + + after_issue_comment_url: + + $value = $payload['issue_events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issue_events_url'; + goto after_issue_events_url; + } + + $properties['issue_events_url'] = $value; + + after_issue_events_url: + + $value = $payload['issues_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issues_url'; + goto after_issues_url; + } + + $properties['issues_url'] = $value; + + after_issues_url: + + $value = $payload['keys_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'keys_url'; + goto after_keys_url; + } + + $properties['keys_url'] = $value; + + after_keys_url: + + $value = $payload['labels_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'labels_url'; + goto after_labels_url; + } + + $properties['labels_url'] = $value; + + after_labels_url: + + $value = $payload['language'] ?? null; + + if ($value === null) { + $missingFields[] = 'language'; + goto after_language; + } + + $properties['language'] = $value; + + after_language: + + $value = $payload['languages_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'languages_url'; + goto after_languages_url; + } + + $properties['languages_url'] = $value; + + after_languages_url: + + $value = $payload['license'] ?? null; + + if ($value === null) { + $missingFields[] = 'license'; + goto after_license; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'license'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionTransferred⚡️Changes⚡️NewRepository⚡️License($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['license'] = $value; + + after_license: + + $value = $payload['master_branch'] ?? null; + + if ($value === null) { + $missingFields[] = 'master_branch'; + goto after_master_branch; + } + + $properties['master_branch'] = $value; + + after_master_branch: + + $value = $payload['merge_commit_message'] ?? null; + + if ($value === null) { + $missingFields[] = 'merge_commit_message'; + goto after_merge_commit_message; + } + + $properties['merge_commit_message'] = $value; + + after_merge_commit_message: + + $value = $payload['merge_commit_title'] ?? null; + + if ($value === null) { + $missingFields[] = 'merge_commit_title'; + goto after_merge_commit_title; + } + + $properties['merge_commit_title'] = $value; + + after_merge_commit_title: + + $value = $payload['merges_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'merges_url'; + goto after_merges_url; + } + + $properties['merges_url'] = $value; + + after_merges_url: + + $value = $payload['milestones_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'milestones_url'; + goto after_milestones_url; + } + + $properties['milestones_url'] = $value; + + after_milestones_url: + + $value = $payload['mirror_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'mirror_url'; + goto after_mirror_url; + } + + $properties['mirror_url'] = $value; + + after_mirror_url: + + $value = $payload['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['notifications_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'notifications_url'; + goto after_notifications_url; + } + + $properties['notifications_url'] = $value; + + after_notifications_url: + + $value = $payload['open_issues'] ?? null; + + if ($value === null) { + $missingFields[] = 'open_issues'; + goto after_open_issues; + } + + $properties['open_issues'] = $value; + + after_open_issues: + + $value = $payload['open_issues_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'open_issues_count'; + goto after_open_issues_count; + } + + $properties['open_issues_count'] = $value; + + after_open_issues_count: + + $value = $payload['organization'] ?? null; + + if ($value === null) { + $missingFields[] = 'organization'; + goto after_organization; + } + + $properties['organization'] = $value; + + after_organization: + + $value = $payload['owner'] ?? null; + + if ($value === null) { + $missingFields[] = 'owner'; + goto after_owner; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'owner'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['owner'] = $value; + + after_owner: + + $value = $payload['permissions'] ?? null; + + if ($value === null) { + $missingFields[] = 'permissions'; + goto after_permissions; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'permissions'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionTransferred⚡️Changes⚡️NewRepository⚡️Permissions($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['permissions'] = $value; + + after_permissions: + + $value = $payload['private'] ?? null; + + if ($value === null) { + $missingFields[] = 'private'; + goto after_private; + } + + $properties['private'] = $value; + + after_private: + + $value = $payload['public'] ?? null; + + if ($value === null) { + $missingFields[] = 'public'; + goto after_public; + } + + $properties['public'] = $value; + + after_public: + + $value = $payload['pulls_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'pulls_url'; + goto after_pulls_url; + } + + $properties['pulls_url'] = $value; + + after_pulls_url: + + $value = $payload['pushed_at'] ?? null; + + if ($value === null) { + $properties['pushed_at'] = null; + goto after_pushed_at; + } + + $properties['pushed_at'] = $value; + + after_pushed_at: + + $value = $payload['releases_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'releases_url'; + goto after_releases_url; + } + + $properties['releases_url'] = $value; + + after_releases_url: + + $value = $payload['role_name'] ?? null; + + if ($value === null) { + $missingFields[] = 'role_name'; + goto after_role_name; + } + + $properties['role_name'] = $value; + + after_role_name: + + $value = $payload['size'] ?? null; + + if ($value === null) { + $missingFields[] = 'size'; + goto after_size; + } + + $properties['size'] = $value; + + after_size: + + $value = $payload['squash_merge_commit_message'] ?? null; + + if ($value === null) { + $missingFields[] = 'squash_merge_commit_message'; + goto after_squash_merge_commit_message; + } + + $properties['squash_merge_commit_message'] = $value; + + after_squash_merge_commit_message: + + $value = $payload['squash_merge_commit_title'] ?? null; + + if ($value === null) { + $missingFields[] = 'squash_merge_commit_title'; + goto after_squash_merge_commit_title; + } + + $properties['squash_merge_commit_title'] = $value; + + after_squash_merge_commit_title: + + $value = $payload['ssh_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'ssh_url'; + goto after_ssh_url; + } + + $properties['ssh_url'] = $value; + + after_ssh_url: + + $value = $payload['stargazers'] ?? null; + + if ($value === null) { + $missingFields[] = 'stargazers'; + goto after_stargazers; + } + + $properties['stargazers'] = $value; + + after_stargazers: + + $value = $payload['stargazers_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'stargazers_count'; + goto after_stargazers_count; + } + + $properties['stargazers_count'] = $value; + + after_stargazers_count: + + $value = $payload['stargazers_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'stargazers_url'; + goto after_stargazers_url; + } + + $properties['stargazers_url'] = $value; + + after_stargazers_url: + + $value = $payload['statuses_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'statuses_url'; + goto after_statuses_url; + } + + $properties['statuses_url'] = $value; + + after_statuses_url: + + $value = $payload['subscribers_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscribers_url'; + goto after_subscribers_url; + } + + $properties['subscribers_url'] = $value; + + after_subscribers_url: + + $value = $payload['subscription_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscription_url'; + goto after_subscription_url; + } + + $properties['subscription_url'] = $value; + + after_subscription_url: + + $value = $payload['svn_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'svn_url'; + goto after_svn_url; + } + + $properties['svn_url'] = $value; + + after_svn_url: + + $value = $payload['tags_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'tags_url'; + goto after_tags_url; + } + + $properties['tags_url'] = $value; + + after_tags_url: + + $value = $payload['teams_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'teams_url'; + goto after_teams_url; + } + + $properties['teams_url'] = $value; + + after_teams_url: + + $value = $payload['topics'] ?? null; + + if ($value === null) { + $missingFields[] = 'topics'; + goto after_topics; + } + + $properties['topics'] = $value; + + after_topics: + + $value = $payload['trees_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'trees_url'; + goto after_trees_url; + } + + $properties['trees_url'] = $value; + + after_trees_url: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'updated_at'; + goto after_updated_at; + } + + $properties['updated_at'] = $value; + + after_updated_at: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['use_squash_pr_title_as_default'] ?? null; + + if ($value === null) { + $missingFields[] = 'use_squash_pr_title_as_default'; + goto after_use_squash_pr_title_as_default; + } + + $properties['use_squash_pr_title_as_default'] = $value; + + after_use_squash_pr_title_as_default: + + $value = $payload['visibility'] ?? null; + + if ($value === null) { + $missingFields[] = 'visibility'; + goto after_visibility; + } + + $properties['visibility'] = $value; + + after_visibility: + + $value = $payload['watchers'] ?? null; + + if ($value === null) { + $missingFields[] = 'watchers'; + goto after_watchers; + } + + $properties['watchers'] = $value; + + after_watchers: + + $value = $payload['watchers_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'watchers_count'; + goto after_watchers_count; + } + + $properties['watchers_count'] = $value; + + after_watchers_count: + + $value = $payload['web_commit_signoff_required'] ?? null; + + if ($value === null) { + $missingFields[] = 'web_commit_signoff_required'; + goto after_web_commit_signoff_required; + } + + $properties['web_commit_signoff_required'] = $value; + + after_web_commit_signoff_required: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestEnqueued\PullRequest\Base\Repo', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestEnqueued\PullRequest\Base\Repo::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookPullRequestEnqueued\PullRequest\Base\Repo(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestEnqueued\PullRequest\Base\Repo', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestSynchronize⚡️PullRequest⚡️Head⚡️Repo(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestSynchronize\PullRequest\Head\Repo + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['allow_auto_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_auto_merge'; + goto after_allow_auto_merge; + } + + $properties['allow_auto_merge'] = $value; + + after_allow_auto_merge: + + $value = $payload['allow_forking'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_forking'; + goto after_allow_forking; + } + + $properties['allow_forking'] = $value; + + after_allow_forking: + + $value = $payload['allow_merge_commit'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_merge_commit'; + goto after_allow_merge_commit; + } + + $properties['allow_merge_commit'] = $value; + + after_allow_merge_commit: + + $value = $payload['allow_rebase_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_rebase_merge'; + goto after_allow_rebase_merge; + } + + $properties['allow_rebase_merge'] = $value; + + after_allow_rebase_merge: + + $value = $payload['allow_squash_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_squash_merge'; + goto after_allow_squash_merge; + } + + $properties['allow_squash_merge'] = $value; + + after_allow_squash_merge: + + $value = $payload['allow_update_branch'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_update_branch'; + goto after_allow_update_branch; + } + + $properties['allow_update_branch'] = $value; + + after_allow_update_branch: + + $value = $payload['archive_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'archive_url'; + goto after_archive_url; + } + + $properties['archive_url'] = $value; + + after_archive_url: + + $value = $payload['archived'] ?? null; + + if ($value === null) { + $missingFields[] = 'archived'; + goto after_archived; + } + + $properties['archived'] = $value; + + after_archived: + + $value = $payload['assignees_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'assignees_url'; + goto after_assignees_url; + } + + $properties['assignees_url'] = $value; + + after_assignees_url: + + $value = $payload['blobs_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'blobs_url'; + goto after_blobs_url; + } + + $properties['blobs_url'] = $value; + + after_blobs_url: + + $value = $payload['branches_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'branches_url'; + goto after_branches_url; + } + + $properties['branches_url'] = $value; + + after_branches_url: + + $value = $payload['clone_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'clone_url'; + goto after_clone_url; + } + + $properties['clone_url'] = $value; + + after_clone_url: + + $value = $payload['collaborators_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'collaborators_url'; + goto after_collaborators_url; + } + + $properties['collaborators_url'] = $value; + + after_collaborators_url: + + $value = $payload['comments_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'comments_url'; + goto after_comments_url; + } + + $properties['comments_url'] = $value; + + after_comments_url: + + $value = $payload['commits_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'commits_url'; + goto after_commits_url; + } + + $properties['commits_url'] = $value; + + after_commits_url: + + $value = $payload['compare_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'compare_url'; + goto after_compare_url; + } + + $properties['compare_url'] = $value; + + after_compare_url: + + $value = $payload['contents_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'contents_url'; + goto after_contents_url; + } + + $properties['contents_url'] = $value; + + after_contents_url: + + $value = $payload['contributors_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'contributors_url'; + goto after_contributors_url; + } + + $properties['contributors_url'] = $value; + + after_contributors_url: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $properties['created_at'] = null; + goto after_created_at; + } + + $properties['created_at'] = $value; + + after_created_at: + + $value = $payload['default_branch'] ?? null; + + if ($value === null) { + $missingFields[] = 'default_branch'; + goto after_default_branch; + } + + $properties['default_branch'] = $value; + + after_default_branch: + + $value = $payload['delete_branch_on_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'delete_branch_on_merge'; + goto after_delete_branch_on_merge; + } + + $properties['delete_branch_on_merge'] = $value; + + after_delete_branch_on_merge: + + $value = $payload['deployments_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'deployments_url'; + goto after_deployments_url; + } + + $properties['deployments_url'] = $value; + + after_deployments_url: + + $value = $payload['description'] ?? null; + + if ($value === null) { + $missingFields[] = 'description'; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['disabled'] ?? null; + + if ($value === null) { + $missingFields[] = 'disabled'; + goto after_disabled; + } + + $properties['disabled'] = $value; + + after_disabled: + + $value = $payload['downloads_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'downloads_url'; + goto after_downloads_url; + } + + $properties['downloads_url'] = $value; + + after_downloads_url: + + $value = $payload['events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'events_url'; + goto after_events_url; + } + + $properties['events_url'] = $value; + + after_events_url: + + $value = $payload['fork'] ?? null; + + if ($value === null) { + $missingFields[] = 'fork'; + goto after_fork; + } + + $properties['fork'] = $value; + + after_fork: + + $value = $payload['forks'] ?? null; + + if ($value === null) { + $missingFields[] = 'forks'; + goto after_forks; + } + + $properties['forks'] = $value; + + after_forks: + + $value = $payload['forks_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'forks_count'; + goto after_forks_count; + } + + $properties['forks_count'] = $value; + + after_forks_count: + + $value = $payload['forks_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'forks_url'; + goto after_forks_url; + } + + $properties['forks_url'] = $value; + + after_forks_url: + + $value = $payload['full_name'] ?? null; + + if ($value === null) { + $missingFields[] = 'full_name'; + goto after_full_name; + } + + $properties['full_name'] = $value; + + after_full_name: + + $value = $payload['git_commits_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_commits_url'; + goto after_git_commits_url; + } + + $properties['git_commits_url'] = $value; + + after_git_commits_url: + + $value = $payload['git_refs_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_refs_url'; + goto after_git_refs_url; + } + + $properties['git_refs_url'] = $value; + + after_git_refs_url: + + $value = $payload['git_tags_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_tags_url'; + goto after_git_tags_url; + } + + $properties['git_tags_url'] = $value; + + after_git_tags_url: + + $value = $payload['git_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_url'; + goto after_git_url; + } + + $properties['git_url'] = $value; + + after_git_url: + + $value = $payload['has_downloads'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_downloads'; + goto after_has_downloads; + } + + $properties['has_downloads'] = $value; + + after_has_downloads: + + $value = $payload['has_issues'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_issues'; + goto after_has_issues; + } + + $properties['has_issues'] = $value; + + after_has_issues: + + $value = $payload['has_pages'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_pages'; + goto after_has_pages; + } + + $properties['has_pages'] = $value; + + after_has_pages: + + $value = $payload['has_projects'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_projects'; + goto after_has_projects; + } + + $properties['has_projects'] = $value; + + after_has_projects: + + $value = $payload['has_wiki'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_wiki'; + goto after_has_wiki; + } + + $properties['has_wiki'] = $value; + + after_has_wiki: + + $value = $payload['has_discussions'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_discussions'; + goto after_has_discussions; + } + + $properties['has_discussions'] = $value; + + after_has_discussions: + + $value = $payload['homepage'] ?? null; + + if ($value === null) { + $missingFields[] = 'homepage'; + goto after_homepage; + } + + $properties['homepage'] = $value; + + after_homepage: + + $value = $payload['hooks_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'hooks_url'; + goto after_hooks_url; + } + + $properties['hooks_url'] = $value; + + after_hooks_url: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } + + $properties['html_url'] = $value; + + after_html_url: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['is_template'] ?? null; + + if ($value === null) { + $missingFields[] = 'is_template'; + goto after_is_template; + } + + $properties['is_template'] = $value; + + after_is_template: + + $value = $payload['issue_comment_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issue_comment_url'; + goto after_issue_comment_url; + } + + $properties['issue_comment_url'] = $value; + + after_issue_comment_url: + + $value = $payload['issue_events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issue_events_url'; + goto after_issue_events_url; + } + + $properties['issue_events_url'] = $value; + + after_issue_events_url: + + $value = $payload['issues_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issues_url'; + goto after_issues_url; + } + + $properties['issues_url'] = $value; + + after_issues_url: + + $value = $payload['keys_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'keys_url'; + goto after_keys_url; + } + + $properties['keys_url'] = $value; + + after_keys_url: + + $value = $payload['labels_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'labels_url'; + goto after_labels_url; + } + + $properties['labels_url'] = $value; + + after_labels_url: + + $value = $payload['language'] ?? null; + + if ($value === null) { + $missingFields[] = 'language'; + goto after_language; + } + + $properties['language'] = $value; + + after_language: + + $value = $payload['languages_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'languages_url'; + goto after_languages_url; + } + + $properties['languages_url'] = $value; + + after_languages_url: + + $value = $payload['license'] ?? null; + + if ($value === null) { + $missingFields[] = 'license'; + goto after_license; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'license'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionTransferred⚡️Changes⚡️NewRepository⚡️License($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['license'] = $value; + + after_license: + + $value = $payload['master_branch'] ?? null; + + if ($value === null) { + $missingFields[] = 'master_branch'; + goto after_master_branch; + } + + $properties['master_branch'] = $value; + + after_master_branch: + + $value = $payload['merge_commit_message'] ?? null; + + if ($value === null) { + $missingFields[] = 'merge_commit_message'; + goto after_merge_commit_message; + } + + $properties['merge_commit_message'] = $value; + + after_merge_commit_message: + + $value = $payload['merge_commit_title'] ?? null; + + if ($value === null) { + $missingFields[] = 'merge_commit_title'; + goto after_merge_commit_title; + } + + $properties['merge_commit_title'] = $value; + + after_merge_commit_title: + + $value = $payload['merges_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'merges_url'; + goto after_merges_url; + } + + $properties['merges_url'] = $value; + + after_merges_url: + + $value = $payload['milestones_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'milestones_url'; + goto after_milestones_url; + } + + $properties['milestones_url'] = $value; + + after_milestones_url: + + $value = $payload['mirror_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'mirror_url'; + goto after_mirror_url; + } + + $properties['mirror_url'] = $value; + + after_mirror_url: + + $value = $payload['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['notifications_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'notifications_url'; + goto after_notifications_url; + } + + $properties['notifications_url'] = $value; + + after_notifications_url: + + $value = $payload['open_issues'] ?? null; + + if ($value === null) { + $missingFields[] = 'open_issues'; + goto after_open_issues; + } + + $properties['open_issues'] = $value; + + after_open_issues: + + $value = $payload['open_issues_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'open_issues_count'; + goto after_open_issues_count; + } + + $properties['open_issues_count'] = $value; + + after_open_issues_count: + + $value = $payload['organization'] ?? null; + + if ($value === null) { + $missingFields[] = 'organization'; + goto after_organization; + } + + $properties['organization'] = $value; + + after_organization: + + $value = $payload['owner'] ?? null; + + if ($value === null) { + $missingFields[] = 'owner'; + goto after_owner; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'owner'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['owner'] = $value; + + after_owner: + + $value = $payload['permissions'] ?? null; + + if ($value === null) { + $missingFields[] = 'permissions'; + goto after_permissions; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'permissions'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionTransferred⚡️Changes⚡️NewRepository⚡️Permissions($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['permissions'] = $value; + + after_permissions: + + $value = $payload['private'] ?? null; + + if ($value === null) { + $missingFields[] = 'private'; + goto after_private; + } + + $properties['private'] = $value; + + after_private: + + $value = $payload['public'] ?? null; + + if ($value === null) { + $missingFields[] = 'public'; + goto after_public; + } + + $properties['public'] = $value; + + after_public: + + $value = $payload['pulls_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'pulls_url'; + goto after_pulls_url; + } + + $properties['pulls_url'] = $value; + + after_pulls_url: + + $value = $payload['pushed_at'] ?? null; + + if ($value === null) { + $properties['pushed_at'] = null; + goto after_pushed_at; + } + + $properties['pushed_at'] = $value; + + after_pushed_at: + + $value = $payload['releases_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'releases_url'; + goto after_releases_url; + } + + $properties['releases_url'] = $value; + + after_releases_url: + + $value = $payload['role_name'] ?? null; + + if ($value === null) { + $missingFields[] = 'role_name'; + goto after_role_name; + } + + $properties['role_name'] = $value; + + after_role_name: + + $value = $payload['size'] ?? null; + + if ($value === null) { + $missingFields[] = 'size'; + goto after_size; + } + + $properties['size'] = $value; + + after_size: + + $value = $payload['squash_merge_commit_message'] ?? null; + + if ($value === null) { + $missingFields[] = 'squash_merge_commit_message'; + goto after_squash_merge_commit_message; + } + + $properties['squash_merge_commit_message'] = $value; + + after_squash_merge_commit_message: + + $value = $payload['squash_merge_commit_title'] ?? null; + + if ($value === null) { + $missingFields[] = 'squash_merge_commit_title'; + goto after_squash_merge_commit_title; + } + + $properties['squash_merge_commit_title'] = $value; + + after_squash_merge_commit_title: + + $value = $payload['ssh_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'ssh_url'; + goto after_ssh_url; + } + + $properties['ssh_url'] = $value; + + after_ssh_url: + + $value = $payload['stargazers'] ?? null; + + if ($value === null) { + $missingFields[] = 'stargazers'; + goto after_stargazers; + } + + $properties['stargazers'] = $value; + + after_stargazers: + + $value = $payload['stargazers_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'stargazers_count'; + goto after_stargazers_count; + } + + $properties['stargazers_count'] = $value; + + after_stargazers_count: + + $value = $payload['stargazers_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'stargazers_url'; + goto after_stargazers_url; + } + + $properties['stargazers_url'] = $value; + + after_stargazers_url: + + $value = $payload['statuses_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'statuses_url'; + goto after_statuses_url; + } + + $properties['statuses_url'] = $value; + + after_statuses_url: + + $value = $payload['subscribers_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscribers_url'; + goto after_subscribers_url; + } + + $properties['subscribers_url'] = $value; + + after_subscribers_url: + + $value = $payload['subscription_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscription_url'; + goto after_subscription_url; + } + + $properties['subscription_url'] = $value; + + after_subscription_url: + + $value = $payload['svn_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'svn_url'; + goto after_svn_url; + } + + $properties['svn_url'] = $value; + + after_svn_url: + + $value = $payload['tags_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'tags_url'; + goto after_tags_url; + } + + $properties['tags_url'] = $value; + + after_tags_url: + + $value = $payload['teams_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'teams_url'; + goto after_teams_url; + } + + $properties['teams_url'] = $value; + + after_teams_url: + + $value = $payload['topics'] ?? null; + + if ($value === null) { + $missingFields[] = 'topics'; + goto after_topics; + } + + $properties['topics'] = $value; + + after_topics: + + $value = $payload['trees_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'trees_url'; + goto after_trees_url; + } + + $properties['trees_url'] = $value; + + after_trees_url: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'updated_at'; + goto after_updated_at; + } + + $properties['updated_at'] = $value; + + after_updated_at: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['use_squash_pr_title_as_default'] ?? null; + + if ($value === null) { + $missingFields[] = 'use_squash_pr_title_as_default'; + goto after_use_squash_pr_title_as_default; + } + + $properties['use_squash_pr_title_as_default'] = $value; + + after_use_squash_pr_title_as_default: + + $value = $payload['visibility'] ?? null; + + if ($value === null) { + $missingFields[] = 'visibility'; + goto after_visibility; + } + + $properties['visibility'] = $value; + + after_visibility: + + $value = $payload['watchers'] ?? null; + + if ($value === null) { + $missingFields[] = 'watchers'; + goto after_watchers; + } + + $properties['watchers'] = $value; + + after_watchers: + + $value = $payload['watchers_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'watchers_count'; + goto after_watchers_count; + } + + $properties['watchers_count'] = $value; + + after_watchers_count: + + $value = $payload['web_commit_signoff_required'] ?? null; + + if ($value === null) { + $missingFields[] = 'web_commit_signoff_required'; + goto after_web_commit_signoff_required; + } + + $properties['web_commit_signoff_required'] = $value; + + after_web_commit_signoff_required: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestSynchronize\PullRequest\Head\Repo', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestSynchronize\PullRequest\Head\Repo::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookPullRequestSynchronize\PullRequest\Head\Repo(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestSynchronize\PullRequest\Head\Repo', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestUnlabeled⚡️PullRequest⚡️Head⚡️Repo(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestUnlabeled\PullRequest\Head\Repo + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['allow_auto_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_auto_merge'; + goto after_allow_auto_merge; + } + + $properties['allow_auto_merge'] = $value; + + after_allow_auto_merge: + + $value = $payload['allow_forking'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_forking'; + goto after_allow_forking; + } + + $properties['allow_forking'] = $value; + + after_allow_forking: + + $value = $payload['allow_merge_commit'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_merge_commit'; + goto after_allow_merge_commit; + } + + $properties['allow_merge_commit'] = $value; + + after_allow_merge_commit: + + $value = $payload['allow_rebase_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_rebase_merge'; + goto after_allow_rebase_merge; + } + + $properties['allow_rebase_merge'] = $value; + + after_allow_rebase_merge: + + $value = $payload['allow_squash_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_squash_merge'; + goto after_allow_squash_merge; + } + + $properties['allow_squash_merge'] = $value; + + after_allow_squash_merge: + + $value = $payload['allow_update_branch'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_update_branch'; + goto after_allow_update_branch; + } + + $properties['allow_update_branch'] = $value; + + after_allow_update_branch: + + $value = $payload['archive_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'archive_url'; + goto after_archive_url; + } + + $properties['archive_url'] = $value; + + after_archive_url: + + $value = $payload['archived'] ?? null; + + if ($value === null) { + $missingFields[] = 'archived'; + goto after_archived; + } + + $properties['archived'] = $value; + + after_archived: + + $value = $payload['assignees_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'assignees_url'; + goto after_assignees_url; + } + + $properties['assignees_url'] = $value; + + after_assignees_url: + + $value = $payload['blobs_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'blobs_url'; + goto after_blobs_url; + } + + $properties['blobs_url'] = $value; + + after_blobs_url: + + $value = $payload['branches_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'branches_url'; + goto after_branches_url; + } + + $properties['branches_url'] = $value; + + after_branches_url: + + $value = $payload['clone_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'clone_url'; + goto after_clone_url; + } + + $properties['clone_url'] = $value; + + after_clone_url: + + $value = $payload['collaborators_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'collaborators_url'; + goto after_collaborators_url; + } + + $properties['collaborators_url'] = $value; + + after_collaborators_url: + + $value = $payload['comments_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'comments_url'; + goto after_comments_url; + } + + $properties['comments_url'] = $value; + + after_comments_url: + + $value = $payload['commits_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'commits_url'; + goto after_commits_url; + } + + $properties['commits_url'] = $value; + + after_commits_url: + + $value = $payload['compare_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'compare_url'; + goto after_compare_url; + } + + $properties['compare_url'] = $value; + + after_compare_url: + + $value = $payload['contents_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'contents_url'; + goto after_contents_url; + } + + $properties['contents_url'] = $value; + + after_contents_url: + + $value = $payload['contributors_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'contributors_url'; + goto after_contributors_url; + } + + $properties['contributors_url'] = $value; + + after_contributors_url: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $properties['created_at'] = null; + goto after_created_at; + } + + $properties['created_at'] = $value; + + after_created_at: + + $value = $payload['default_branch'] ?? null; + + if ($value === null) { + $missingFields[] = 'default_branch'; + goto after_default_branch; + } + + $properties['default_branch'] = $value; + + after_default_branch: + + $value = $payload['delete_branch_on_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'delete_branch_on_merge'; + goto after_delete_branch_on_merge; + } + + $properties['delete_branch_on_merge'] = $value; + + after_delete_branch_on_merge: + + $value = $payload['deployments_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'deployments_url'; + goto after_deployments_url; + } + + $properties['deployments_url'] = $value; + + after_deployments_url: + + $value = $payload['description'] ?? null; + + if ($value === null) { + $missingFields[] = 'description'; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['disabled'] ?? null; + + if ($value === null) { + $missingFields[] = 'disabled'; + goto after_disabled; + } + + $properties['disabled'] = $value; + + after_disabled: + + $value = $payload['downloads_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'downloads_url'; + goto after_downloads_url; + } + + $properties['downloads_url'] = $value; + + after_downloads_url: + + $value = $payload['events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'events_url'; + goto after_events_url; + } + + $properties['events_url'] = $value; + + after_events_url: + + $value = $payload['fork'] ?? null; + + if ($value === null) { + $missingFields[] = 'fork'; + goto after_fork; + } + + $properties['fork'] = $value; + + after_fork: + + $value = $payload['forks'] ?? null; + + if ($value === null) { + $missingFields[] = 'forks'; + goto after_forks; + } + + $properties['forks'] = $value; + + after_forks: + + $value = $payload['forks_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'forks_count'; + goto after_forks_count; + } + + $properties['forks_count'] = $value; + + after_forks_count: + + $value = $payload['forks_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'forks_url'; + goto after_forks_url; + } + + $properties['forks_url'] = $value; + + after_forks_url: + + $value = $payload['full_name'] ?? null; + + if ($value === null) { + $missingFields[] = 'full_name'; + goto after_full_name; + } + + $properties['full_name'] = $value; + + after_full_name: + + $value = $payload['git_commits_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_commits_url'; + goto after_git_commits_url; + } + + $properties['git_commits_url'] = $value; + + after_git_commits_url: + + $value = $payload['git_refs_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_refs_url'; + goto after_git_refs_url; + } + + $properties['git_refs_url'] = $value; + + after_git_refs_url: + + $value = $payload['git_tags_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_tags_url'; + goto after_git_tags_url; + } + + $properties['git_tags_url'] = $value; + + after_git_tags_url: + + $value = $payload['git_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_url'; + goto after_git_url; + } + + $properties['git_url'] = $value; + + after_git_url: + + $value = $payload['has_downloads'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_downloads'; + goto after_has_downloads; + } + + $properties['has_downloads'] = $value; + + after_has_downloads: + + $value = $payload['has_issues'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_issues'; + goto after_has_issues; + } + + $properties['has_issues'] = $value; + + after_has_issues: + + $value = $payload['has_pages'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_pages'; + goto after_has_pages; + } + + $properties['has_pages'] = $value; + + after_has_pages: + + $value = $payload['has_projects'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_projects'; + goto after_has_projects; + } + + $properties['has_projects'] = $value; + + after_has_projects: + + $value = $payload['has_wiki'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_wiki'; + goto after_has_wiki; + } + + $properties['has_wiki'] = $value; + + after_has_wiki: + + $value = $payload['has_discussions'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_discussions'; + goto after_has_discussions; + } + + $properties['has_discussions'] = $value; + + after_has_discussions: + + $value = $payload['homepage'] ?? null; + + if ($value === null) { + $missingFields[] = 'homepage'; + goto after_homepage; + } + + $properties['homepage'] = $value; + + after_homepage: + + $value = $payload['hooks_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'hooks_url'; + goto after_hooks_url; + } + + $properties['hooks_url'] = $value; + + after_hooks_url: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } + + $properties['html_url'] = $value; + + after_html_url: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['is_template'] ?? null; + + if ($value === null) { + $missingFields[] = 'is_template'; + goto after_is_template; + } + + $properties['is_template'] = $value; + + after_is_template: + + $value = $payload['issue_comment_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issue_comment_url'; + goto after_issue_comment_url; + } + + $properties['issue_comment_url'] = $value; + + after_issue_comment_url: + + $value = $payload['issue_events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issue_events_url'; + goto after_issue_events_url; + } + + $properties['issue_events_url'] = $value; + + after_issue_events_url: + + $value = $payload['issues_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issues_url'; + goto after_issues_url; + } + + $properties['issues_url'] = $value; + + after_issues_url: + + $value = $payload['keys_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'keys_url'; + goto after_keys_url; + } + + $properties['keys_url'] = $value; + + after_keys_url: + + $value = $payload['labels_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'labels_url'; + goto after_labels_url; + } + + $properties['labels_url'] = $value; + + after_labels_url: + + $value = $payload['language'] ?? null; + + if ($value === null) { + $missingFields[] = 'language'; + goto after_language; + } + + $properties['language'] = $value; + + after_language: + + $value = $payload['languages_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'languages_url'; + goto after_languages_url; + } + + $properties['languages_url'] = $value; + + after_languages_url: + + $value = $payload['license'] ?? null; + + if ($value === null) { + $missingFields[] = 'license'; + goto after_license; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'license'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionTransferred⚡️Changes⚡️NewRepository⚡️License($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['license'] = $value; + + after_license: + + $value = $payload['master_branch'] ?? null; + + if ($value === null) { + $missingFields[] = 'master_branch'; + goto after_master_branch; + } + + $properties['master_branch'] = $value; + + after_master_branch: + + $value = $payload['merge_commit_message'] ?? null; + + if ($value === null) { + $missingFields[] = 'merge_commit_message'; + goto after_merge_commit_message; + } + + $properties['merge_commit_message'] = $value; + + after_merge_commit_message: + + $value = $payload['merge_commit_title'] ?? null; + + if ($value === null) { + $missingFields[] = 'merge_commit_title'; + goto after_merge_commit_title; + } + + $properties['merge_commit_title'] = $value; + + after_merge_commit_title: + + $value = $payload['merges_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'merges_url'; + goto after_merges_url; + } + + $properties['merges_url'] = $value; + + after_merges_url: + + $value = $payload['milestones_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'milestones_url'; + goto after_milestones_url; + } + + $properties['milestones_url'] = $value; + + after_milestones_url: + + $value = $payload['mirror_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'mirror_url'; + goto after_mirror_url; + } + + $properties['mirror_url'] = $value; + + after_mirror_url: + + $value = $payload['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['notifications_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'notifications_url'; + goto after_notifications_url; + } + + $properties['notifications_url'] = $value; + + after_notifications_url: + + $value = $payload['open_issues'] ?? null; + + if ($value === null) { + $missingFields[] = 'open_issues'; + goto after_open_issues; + } + + $properties['open_issues'] = $value; + + after_open_issues: + + $value = $payload['open_issues_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'open_issues_count'; + goto after_open_issues_count; + } + + $properties['open_issues_count'] = $value; + + after_open_issues_count: + + $value = $payload['organization'] ?? null; + + if ($value === null) { + $missingFields[] = 'organization'; + goto after_organization; + } + + $properties['organization'] = $value; + + after_organization: + + $value = $payload['owner'] ?? null; + + if ($value === null) { + $missingFields[] = 'owner'; + goto after_owner; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'owner'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['owner'] = $value; + + after_owner: + + $value = $payload['permissions'] ?? null; + + if ($value === null) { + $missingFields[] = 'permissions'; + goto after_permissions; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'permissions'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionTransferred⚡️Changes⚡️NewRepository⚡️Permissions($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['permissions'] = $value; + + after_permissions: + + $value = $payload['private'] ?? null; + + if ($value === null) { + $missingFields[] = 'private'; + goto after_private; + } + + $properties['private'] = $value; + + after_private: + + $value = $payload['public'] ?? null; + + if ($value === null) { + $missingFields[] = 'public'; + goto after_public; + } + + $properties['public'] = $value; + + after_public: + + $value = $payload['pulls_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'pulls_url'; + goto after_pulls_url; + } + + $properties['pulls_url'] = $value; + + after_pulls_url: + + $value = $payload['pushed_at'] ?? null; + + if ($value === null) { + $properties['pushed_at'] = null; + goto after_pushed_at; + } + + $properties['pushed_at'] = $value; + + after_pushed_at: + + $value = $payload['releases_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'releases_url'; + goto after_releases_url; + } + + $properties['releases_url'] = $value; + + after_releases_url: + + $value = $payload['role_name'] ?? null; + + if ($value === null) { + $missingFields[] = 'role_name'; + goto after_role_name; + } + + $properties['role_name'] = $value; + + after_role_name: + + $value = $payload['size'] ?? null; + + if ($value === null) { + $missingFields[] = 'size'; + goto after_size; + } + + $properties['size'] = $value; + + after_size: + + $value = $payload['squash_merge_commit_message'] ?? null; + + if ($value === null) { + $missingFields[] = 'squash_merge_commit_message'; + goto after_squash_merge_commit_message; + } + + $properties['squash_merge_commit_message'] = $value; + + after_squash_merge_commit_message: + + $value = $payload['squash_merge_commit_title'] ?? null; + + if ($value === null) { + $missingFields[] = 'squash_merge_commit_title'; + goto after_squash_merge_commit_title; + } + + $properties['squash_merge_commit_title'] = $value; + + after_squash_merge_commit_title: + + $value = $payload['ssh_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'ssh_url'; + goto after_ssh_url; + } + + $properties['ssh_url'] = $value; + + after_ssh_url: + + $value = $payload['stargazers'] ?? null; + + if ($value === null) { + $missingFields[] = 'stargazers'; + goto after_stargazers; + } + + $properties['stargazers'] = $value; + + after_stargazers: + + $value = $payload['stargazers_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'stargazers_count'; + goto after_stargazers_count; + } + + $properties['stargazers_count'] = $value; + + after_stargazers_count: + + $value = $payload['stargazers_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'stargazers_url'; + goto after_stargazers_url; + } + + $properties['stargazers_url'] = $value; + + after_stargazers_url: + + $value = $payload['statuses_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'statuses_url'; + goto after_statuses_url; + } + + $properties['statuses_url'] = $value; + + after_statuses_url: + + $value = $payload['subscribers_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscribers_url'; + goto after_subscribers_url; + } + + $properties['subscribers_url'] = $value; + + after_subscribers_url: + + $value = $payload['subscription_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscription_url'; + goto after_subscription_url; + } + + $properties['subscription_url'] = $value; + + after_subscription_url: + + $value = $payload['svn_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'svn_url'; + goto after_svn_url; + } + + $properties['svn_url'] = $value; + + after_svn_url: + + $value = $payload['tags_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'tags_url'; + goto after_tags_url; + } + + $properties['tags_url'] = $value; + + after_tags_url: + + $value = $payload['teams_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'teams_url'; + goto after_teams_url; + } + + $properties['teams_url'] = $value; + + after_teams_url: + + $value = $payload['topics'] ?? null; + + if ($value === null) { + $missingFields[] = 'topics'; + goto after_topics; + } + + $properties['topics'] = $value; + + after_topics: + + $value = $payload['trees_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'trees_url'; + goto after_trees_url; + } + + $properties['trees_url'] = $value; + + after_trees_url: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'updated_at'; + goto after_updated_at; + } + + $properties['updated_at'] = $value; + + after_updated_at: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['use_squash_pr_title_as_default'] ?? null; + + if ($value === null) { + $missingFields[] = 'use_squash_pr_title_as_default'; + goto after_use_squash_pr_title_as_default; + } + + $properties['use_squash_pr_title_as_default'] = $value; + + after_use_squash_pr_title_as_default: + + $value = $payload['visibility'] ?? null; + + if ($value === null) { + $missingFields[] = 'visibility'; + goto after_visibility; + } + + $properties['visibility'] = $value; + + after_visibility: + + $value = $payload['watchers'] ?? null; + + if ($value === null) { + $missingFields[] = 'watchers'; + goto after_watchers; + } + + $properties['watchers'] = $value; + + after_watchers: + + $value = $payload['watchers_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'watchers_count'; + goto after_watchers_count; + } + + $properties['watchers_count'] = $value; + + after_watchers_count: + + $value = $payload['web_commit_signoff_required'] ?? null; + + if ($value === null) { + $missingFields[] = 'web_commit_signoff_required'; + goto after_web_commit_signoff_required; + } + + $properties['web_commit_signoff_required'] = $value; + + after_web_commit_signoff_required: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestUnlabeled\PullRequest\Head\Repo', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestUnlabeled\PullRequest\Head\Repo::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookPullRequestUnlabeled\PullRequest\Head\Repo(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestUnlabeled\PullRequest\Head\Repo', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionTransferred⚡️Changes⚡️NewRepository⚡️License(array $payload): \ApiClients\Client\Github\Schema\WebhookDiscussionTransferred\Changes\NewRepository\License + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['key'] ?? null; + + if ($value === null) { + $missingFields[] = 'key'; + goto after_key; + } + + $properties['key'] = $value; + + after_key: + + $value = $payload['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['spdx_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'spdx_id'; + goto after_spdx_id; + } + + $properties['spdx_id'] = $value; + + after_spdx_id: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDiscussionTransferred\Changes\NewRepository\License', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookDiscussionTransferred\Changes\NewRepository\License::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookDiscussionTransferred\Changes\NewRepository\License(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDiscussionTransferred\Changes\NewRepository\License', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionTransferred⚡️Changes⚡️NewRepository⚡️Permissions(array $payload): \ApiClients\Client\Github\Schema\WebhookDiscussionTransferred\Changes\NewRepository\Permissions + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['admin'] ?? null; + + if ($value === null) { + $missingFields[] = 'admin'; + goto after_admin; + } + + $properties['admin'] = $value; + + after_admin: + + $value = $payload['maintain'] ?? null; + + if ($value === null) { + $missingFields[] = 'maintain'; + goto after_maintain; + } + + $properties['maintain'] = $value; + + after_maintain: + + $value = $payload['pull'] ?? null; + + if ($value === null) { + $missingFields[] = 'pull'; + goto after_pull; + } + + $properties['pull'] = $value; + + after_pull: + + $value = $payload['push'] ?? null; + + if ($value === null) { + $missingFields[] = 'push'; + goto after_push; + } + + $properties['push'] = $value; + + after_push: + + $value = $payload['triage'] ?? null; + + if ($value === null) { + $missingFields[] = 'triage'; + goto after_triage; + } + + $properties['triage'] = $value; + + after_triage: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDiscussionTransferred\Changes\NewRepository\Permissions', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookDiscussionTransferred\Changes\NewRepository\Permissions::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookDiscussionTransferred\Changes\NewRepository\Permissions(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDiscussionTransferred\Changes\NewRepository\Permissions', $exception, stack: $this->hydrationStack); + } + } + + public function serializeObject(object $object): mixed + { + try { + $className = get_class($object); + + return match($className) { + 'array' => $this->serializeValuearray($object), + 'Ramsey\Uuid\UuidInterface' => $this->serializeValueRamsey⚡️Uuid⚡️UuidInterface($object), + 'DateTime' => $this->serializeValueDateTime($object), + 'DateTimeImmutable' => $this->serializeValueDateTimeImmutable($object), + 'DateTimeInterface' => $this->serializeValueDateTimeInterface($object), + 'ApiClients\Client\Github\Schema\WebhookPullRequestAssigned' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned($object), + 'ApiClients\Client\Github\Schema\WebhookPullRequestAutoMergeDisabled' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAutoMergeDisabled($object), + 'ApiClients\Client\Github\Schema\WebhookPullRequestAutoMergeEnabled' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAutoMergeEnabled($object), + 'ApiClients\Client\Github\Schema\WebhookPullRequestClosed' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestClosed($object), + 'ApiClients\Client\Github\Schema\WebhookPullRequestConvertedToDraft' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestConvertedToDraft($object), + 'ApiClients\Client\Github\Schema\WebhookPullRequestDemilestoned' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestDemilestoned($object), + 'ApiClients\Client\Github\Schema\WebhookPullRequestDequeued' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestDequeued($object), + 'ApiClients\Client\Github\Schema\WebhookPullRequestEdited' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestEdited($object), + 'ApiClients\Client\Github\Schema\WebhookPullRequestEnqueued' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestEnqueued($object), + 'ApiClients\Client\Github\Schema\WebhookPullRequestLabeled' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestLabeled($object), + 'ApiClients\Client\Github\Schema\WebhookPullRequestLocked' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestLocked($object), + 'ApiClients\Client\Github\Schema\WebhookPullRequestMilestoned' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestMilestoned($object), + 'ApiClients\Client\Github\Schema\WebhookPullRequestOpened' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestOpened($object), + 'ApiClients\Client\Github\Schema\WebhookPullRequestReadyForReview' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReadyForReview($object), + 'ApiClients\Client\Github\Schema\WebhookPullRequestReopened' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReopened($object), + 'ApiClients\Client\Github\Schema\WebhookPullRequestSynchronize' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestSynchronize($object), + 'ApiClients\Client\Github\Schema\WebhookPullRequestUnassigned' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestUnassigned($object), + 'ApiClients\Client\Github\Schema\WebhookPullRequestUnlabeled' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestUnlabeled($object), + 'ApiClients\Client\Github\Schema\WebhookPullRequestUnlocked' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestUnlocked($object), + default => throw new \LogicException('No serialization defined for $className'), + }; + } catch (\Throwable $exception) { + throw UnableToSerializeObject::dueToError($className, $exception); + } + } + + + private function serializeValuearray(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeArrayItems(...array ( +)); + } + + return $serializer->serialize($value, $this); + } + + + private function serializeValueRamsey⚡️Uuid⚡️UuidInterface(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeUuidToString(...array ( +)); + } + + return $serializer->serialize($value, $this); + } + + + private function serializeValueDateTime(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeDateTime(...array ( +)); + } + + return $serializer->serialize($value, $this); + } + + + private function serializeValueDateTimeImmutable(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeDateTime(...array ( +)); + } + + return $serializer->serialize($value, $this); + } + + + private function serializeValueDateTimeInterface(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeDateTime(...array ( +)); + } + + return $serializer->serialize($value, $this); + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookPullRequestAssigned); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $assignee = $object->assignee; + + if ($assignee === null) { + goto after_assignee; + } + $assignee = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($assignee); + after_assignee: $result['assignee'] = $assignee; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $number = $object->number; + + if ($number === null) { + goto after_number; + } + after_number: $result['number'] = $number; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $pull_request = $object->pull_request; + + if ($pull_request === null) { + goto after_pull_request; + } + $pull_request = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest($pull_request); + after_pull_request: $result['pull_request'] = $pull_request; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAutoMergeDisabled(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookPullRequestAutoMergeDisabled); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $number = $object->number; + + if ($number === null) { + goto after_number; + } + after_number: $result['number'] = $number; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $pull_request = $object->pull_request; + + if ($pull_request === null) { + goto after_pull_request; + } + $pull_request = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAutoMergeDisabled⚡️PullRequest($pull_request); + after_pull_request: $result['pull_request'] = $pull_request; + + + $reason = $object->reason; + + if ($reason === null) { + goto after_reason; + } + after_reason: $result['reason'] = $reason; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAutoMergeEnabled(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookPullRequestAutoMergeEnabled); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $number = $object->number; + + if ($number === null) { + goto after_number; + } + after_number: $result['number'] = $number; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $pull_request = $object->pull_request; + + if ($pull_request === null) { + goto after_pull_request; + } + $pull_request = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAutoMergeEnabled⚡️PullRequest($pull_request); + after_pull_request: $result['pull_request'] = $pull_request; + + + $reason = $object->reason; + after_reason: $result['reason'] = $reason; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestClosed(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookPullRequestClosed); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $number = $object->number; + + if ($number === null) { + goto after_number; + } + after_number: $result['number'] = $number; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $pull_request = $object->pull_request; + + if ($pull_request === null) { + goto after_pull_request; + } + after_pull_request: $result['pull_request'] = $pull_request; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestConvertedToDraft(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookPullRequestConvertedToDraft); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $number = $object->number; + + if ($number === null) { + goto after_number; + } + after_number: $result['number'] = $number; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $pull_request = $object->pull_request; + + if ($pull_request === null) { + goto after_pull_request; + } + after_pull_request: $result['pull_request'] = $pull_request; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestDemilestoned(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookPullRequestDemilestoned); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $milestone = $object->milestone; + $milestone = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Milestone($milestone); + after_milestone: $result['milestone'] = $milestone; + + + $number = $object->number; + + if ($number === null) { + goto after_number; + } + after_number: $result['number'] = $number; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $pull_request = $object->pull_request; + + if ($pull_request === null) { + goto after_pull_request; + } + $pull_request = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestDemilestoned⚡️PullRequest($pull_request); + after_pull_request: $result['pull_request'] = $pull_request; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestDequeued(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookPullRequestDequeued); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $number = $object->number; + + if ($number === null) { + goto after_number; + } + after_number: $result['number'] = $number; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $pull_request = $object->pull_request; + + if ($pull_request === null) { + goto after_pull_request; + } + $pull_request = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestDequeued⚡️PullRequest($pull_request); + after_pull_request: $result['pull_request'] = $pull_request; + + + $reason = $object->reason; + + if ($reason === null) { + goto after_reason; + } + after_reason: $result['reason'] = $reason; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestEdited(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookPullRequestEdited); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $changes = $object->changes; + + if ($changes === null) { + goto after_changes; + } + $changes = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestEdited⚡️Changes($changes); + after_changes: $result['changes'] = $changes; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $number = $object->number; + + if ($number === null) { + goto after_number; + } + after_number: $result['number'] = $number; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $pull_request = $object->pull_request; + + if ($pull_request === null) { + goto after_pull_request; + } + $pull_request = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestEdited⚡️PullRequest($pull_request); + after_pull_request: $result['pull_request'] = $pull_request; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestEnqueued(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookPullRequestEnqueued); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $number = $object->number; + + if ($number === null) { + goto after_number; + } + after_number: $result['number'] = $number; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $pull_request = $object->pull_request; + + if ($pull_request === null) { + goto after_pull_request; + } + $pull_request = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestEnqueued⚡️PullRequest($pull_request); + after_pull_request: $result['pull_request'] = $pull_request; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestLabeled(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookPullRequestLabeled); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $label = $object->label; + $label = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionLabeled⚡️Label($label); + after_label: $result['label'] = $label; + + + $number = $object->number; + + if ($number === null) { + goto after_number; + } + after_number: $result['number'] = $number; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $pull_request = $object->pull_request; + + if ($pull_request === null) { + goto after_pull_request; + } + $pull_request = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestEdited⚡️PullRequest($pull_request); + after_pull_request: $result['pull_request'] = $pull_request; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestLocked(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookPullRequestLocked); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $number = $object->number; + + if ($number === null) { + goto after_number; + } + after_number: $result['number'] = $number; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $pull_request = $object->pull_request; + + if ($pull_request === null) { + goto after_pull_request; + } + $pull_request = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestLocked⚡️PullRequest($pull_request); + after_pull_request: $result['pull_request'] = $pull_request; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestMilestoned(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookPullRequestMilestoned); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $milestone = $object->milestone; + $milestone = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Milestone($milestone); + after_milestone: $result['milestone'] = $milestone; + + + $number = $object->number; + + if ($number === null) { + goto after_number; + } + after_number: $result['number'] = $number; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $pull_request = $object->pull_request; + + if ($pull_request === null) { + goto after_pull_request; + } + $pull_request = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestDemilestoned⚡️PullRequest($pull_request); + after_pull_request: $result['pull_request'] = $pull_request; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestOpened(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookPullRequestOpened); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $number = $object->number; + + if ($number === null) { + goto after_number; + } + after_number: $result['number'] = $number; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $pull_request = $object->pull_request; + + if ($pull_request === null) { + goto after_pull_request; + } + after_pull_request: $result['pull_request'] = $pull_request; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReadyForReview(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookPullRequestReadyForReview); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $number = $object->number; + + if ($number === null) { + goto after_number; + } + after_number: $result['number'] = $number; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $pull_request = $object->pull_request; + + if ($pull_request === null) { + goto after_pull_request; + } + after_pull_request: $result['pull_request'] = $pull_request; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReopened(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookPullRequestReopened); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $number = $object->number; + + if ($number === null) { + goto after_number; + } + after_number: $result['number'] = $number; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $pull_request = $object->pull_request; + + if ($pull_request === null) { + goto after_pull_request; + } + after_pull_request: $result['pull_request'] = $pull_request; + + + $repository = $object->repository; - $properties['triage'] = $value; - - after_triage: + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDiscussionTransferred\Changes\NewRepository\Permissions', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookDiscussionTransferred\Changes\NewRepository\Permissions::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\WebhookDiscussionTransferred\Changes\NewRepository\Permissions(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDiscussionTransferred\Changes\NewRepository\Permissions', $exception, stack: $this->hydrationStack); - } + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + - public function serializeObject(object $object): mixed + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestSynchronize(mixed $object): mixed { - try { - $className = get_class($object); + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookPullRequestSynchronize); + $result = []; + + $action = $object->action; - return match($className) { - 'array' => $this->serializeValuearray($object), - 'Ramsey\Uuid\UuidInterface' => $this->serializeValueRamsey⚡️Uuid⚡️UuidInterface($object), - 'DateTime' => $this->serializeValueDateTime($object), - 'DateTimeImmutable' => $this->serializeValueDateTimeImmutable($object), - 'DateTimeInterface' => $this->serializeValueDateTimeInterface($object), - 'ApiClients\Client\Github\Schema\WebhookPullRequestUnlocked' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestUnlocked($object), - default => throw new \LogicException('No serialization defined for $className'), - }; - } catch (\Throwable $exception) { - throw UnableToSerializeObject::dueToError($className, $exception); + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $after = $object->after; + + if ($after === null) { + goto after_after; + } + after_after: $result['after'] = $after; + + + $before = $object->before; + + if ($before === null) { + goto after_before; + } + after_before: $result['before'] = $before; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $number = $object->number; + + if ($number === null) { + goto after_number; + } + after_number: $result['number'] = $number; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $pull_request = $object->pull_request; + + if ($pull_request === null) { + goto after_pull_request; + } + $pull_request = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestSynchronize⚡️PullRequest($pull_request); + after_pull_request: $result['pull_request'] = $pull_request; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; } + - - private function serializeValuearray(mixed $value): mixed + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestUnassigned(mixed $object): mixed { - static $serializer; + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookPullRequestUnassigned); + $result = []; - if ($serializer === null) { - $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeArrayItems(...array ( -)); + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $assignee = $object->assignee; + + if ($assignee === null) { + goto after_assignee; } + $assignee = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Comment⚡️User($assignee); + after_assignee: $result['assignee'] = $assignee; + - return $serializer->serialize($value, $this); - } + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; - private function serializeValueRamsey⚡️Uuid⚡️UuidInterface(mixed $value): mixed - { - static $serializer; - if ($serializer === null) { - $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeUuidToString(...array ( -)); + $number = $object->number; + + if ($number === null) { + goto after_number; } + after_number: $result['number'] = $number; + - return $serializer->serialize($value, $this); - } + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $pull_request = $object->pull_request; + if ($pull_request === null) { + goto after_pull_request; + } + $pull_request = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestUnassigned⚡️PullRequest($pull_request); + after_pull_request: $result['pull_request'] = $pull_request; - private function serializeValueDateTime(mixed $value): mixed - { - static $serializer; - if ($serializer === null) { - $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeDateTime(...array ( -)); + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + - return $serializer->serialize($value, $this); - } + $sender = $object->sender; + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; - private function serializeValueDateTimeImmutable(mixed $value): mixed + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestUnlabeled(mixed $object): mixed { - static $serializer; + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookPullRequestUnlabeled); + $result = []; - if ($serializer === null) { - $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeDateTime(...array ( -)); + $action = $object->action; + + if ($action === null) { + goto after_action; } + after_action: $result['action'] = $action; + - return $serializer->serialize($value, $this); - } + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + $label = $object->label; + $label = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionLabeled⚡️Label($label); + after_label: $result['label'] = $label; - private function serializeValueDateTimeInterface(mixed $value): mixed - { - static $serializer; - if ($serializer === null) { - $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeDateTime(...array ( -)); + $number = $object->number; + + if ($number === null) { + goto after_number; } + after_number: $result['number'] = $number; + - return $serializer->serialize($value, $this); + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $pull_request = $object->pull_request; + + if ($pull_request === null) { + goto after_pull_request; + } + $pull_request = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestUnlabeled⚡️PullRequest($pull_request); + after_pull_request: $result['pull_request'] = $pull_request; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; } diff --git a/src/Hydrator/WebHook/PullRequestReview.php b/src/Hydrator/WebHook/PullRequestReview.php index ae76b7f8ce..0a995e5117 100644 --- a/src/Hydrator/WebHook/PullRequestReview.php +++ b/src/Hydrator/WebHook/PullRequestReview.php @@ -23,29 +23,42 @@ public function __construct() {} public function hydrateObject(string $className, array $payload): object { return match($className) { - 'ApiClients\Client\Github\Schema\WebhookPullRequestReviewSubmitted' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewSubmitted($payload), + 'ApiClients\Client\Github\Schema\WebhookPullRequestReviewDismissed' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewDismissed($payload), + 'ApiClients\Client\Github\Schema\WebhookPullRequestReviewEdited' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewEdited($payload), + 'ApiClients\Client\Github\Schema\WebhookPullRequestReviewSubmitted' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewSubmitted($payload), 'ApiClients\Client\Github\Schema\Enterprise' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($payload), 'ApiClients\Client\Github\Schema\SimpleInstallation' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($payload), 'ApiClients\Client\Github\Schema\OrganizationSimple' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($payload), - 'ApiClients\Client\Github\Schema\WebhookPullRequestReviewSubmitted\PullRequest' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewSubmitted⚡️PullRequest($payload), + 'ApiClients\Client\Github\Schema\WebhookPullRequestReviewDismissed\PullRequest' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewDismissed⚡️PullRequest($payload), 'ApiClients\Client\Github\Schema\Repository' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($payload), - 'ApiClients\Client\Github\Schema\WebhookPullRequestReviewEdited\Review' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewEdited⚡️Review($payload), + 'ApiClients\Client\Github\Schema\WebhookPullRequestReviewDismissed\Review' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewDismissed⚡️Review($payload), 'ApiClients\Client\Github\Schema\SimpleUser' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($payload), + 'ApiClients\Client\Github\Schema\WebhookPullRequestReviewEdited\Changes' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewEdited⚡️Changes($payload), + 'ApiClients\Client\Github\Schema\WebhookPullRequestReviewEdited\PullRequest' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewEdited⚡️PullRequest($payload), + 'ApiClients\Client\Github\Schema\WebhookPullRequestReviewEdited\Review' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewEdited⚡️Review($payload), + 'ApiClients\Client\Github\Schema\WebhookPullRequestReviewSubmitted\PullRequest' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewSubmitted⚡️PullRequest($payload), 'ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Links' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links($payload), 'ApiClients\Client\Github\Schema\WebhookIssueCommentDeleted\Comment\User' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Comment⚡️User($payload), 'ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\AutoMerge' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️AutoMerge($payload), 'ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Base' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Base($payload), - 'ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Head' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Head($payload), - 'ApiClients\Client\Github\Schema\WebhookIssuesAssigned\Issue\Milestone' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesAssigned⚡️Issue⚡️Milestone($payload), + 'ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentDeleted\PullRequest\Head' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewCommentDeleted⚡️PullRequest⚡️Head($payload), + 'ApiClients\Client\Github\Schema\WebhookIssuesDeleted\Issue\Milestone' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesDeleted⚡️Issue⚡️Milestone($payload), 'ApiClients\Client\Github\Schema\Repository\Permissions' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️Permissions($payload), 'ApiClients\Client\Github\Schema\Repository\TemplateRepository' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository($payload), 'ApiClients\Client\Github\Schema\WebhookPullRequestReviewDismissed\Review\Links' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewDismissed⚡️Review⚡️Links($payload), + 'ApiClients\Client\Github\Schema\WebhookProjectEdited\Changes\Body' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectEdited⚡️Changes⚡️Body($payload), + 'ApiClients\Client\Github\Schema\WebhookPullRequestReviewEdited\PullRequest\Base' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewEdited⚡️PullRequest⚡️Base($payload), + 'ApiClients\Client\Github\Schema\WebhookPullRequestReviewEdited\PullRequest\Head' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewEdited⚡️PullRequest⚡️Head($payload), + 'ApiClients\Client\Github\Schema\WebhookIssuesAssigned\Issue\Milestone' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesAssigned⚡️Issue⚡️Milestone($payload), 'ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($payload), + 'ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Head' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Head($payload), 'ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Links\Comments' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links⚡️Comments($payload), 'ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Base\Repo' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Base⚡️Repo($payload), 'ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Head\Repo' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Head⚡️Repo($payload), 'ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner($payload), 'ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Permissions($payload), + 'ApiClients\Client\Github\Schema\WebhookIssuesOpened\Changes\OldRepository' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesOpened⚡️Changes⚡️OldRepository($payload), + 'ApiClients\Client\Github\Schema\WebhookPullRequestReviewEdited\PullRequest\Head\Repo' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewEdited⚡️PullRequest⚡️Head⚡️Repo($payload), 'ApiClients\Client\Github\Schema\WebhookDiscussionTransferred\Changes\NewRepository\License' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionTransferred⚡️Changes⚡️NewRepository⚡️License($payload), 'ApiClients\Client\Github\Schema\WebhookDiscussionTransferred\Changes\NewRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionTransferred⚡️Changes⚡️NewRepository⚡️Permissions($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), @@ -53,7 +66,7 @@ public function hydrateObject(string $className, array $payload): object } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewSubmitted(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestReviewSubmitted + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewDismissed(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestReviewDismissed { $properties = []; $missingFields = []; @@ -140,7 +153,7 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'pull_request'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewSubmitted⚡️PullRequest($value); + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewDismissed⚡️PullRequest($value); } finally { array_pop($this->hydrationStack); } @@ -180,7 +193,7 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'review'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewEdited⚡️Review($value); + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewDismissed⚡️Review($value); } finally { array_pop($this->hydrationStack); } @@ -211,577 +224,579 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh after_sender: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewSubmitted', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewDismissed', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestReviewSubmitted::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestReviewDismissed::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\WebhookPullRequestReviewSubmitted(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookPullRequestReviewDismissed(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewSubmitted', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewDismissed', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise(array $payload): \ApiClients\Client\Github\Schema\Enterprise + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewEdited(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestReviewEdited { $properties = []; $missingFields = []; try { - $value = $payload['description'] ?? null; + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'description'; - goto after_description; + $missingFields[] = 'action'; + goto after_action; } - $properties['description'] = $value; + $properties['action'] = $value; - after_description: + after_action: - $value = $payload['html_url'] ?? null; + $value = $payload['changes'] ?? null; if ($value === null) { - $missingFields[] = 'html_url'; - goto after_html_url; + $missingFields[] = 'changes'; + goto after_changes; } - $properties['html_url'] = $value; - - after_html_url: - - $value = $payload['website_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'website_url'; - goto after_website_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'changes'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewEdited⚡️Changes($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['website_url'] = $value; + $properties['changes'] = $value; - after_website_url: + after_changes: - $value = $payload['id'] ?? null; + $value = $payload['enterprise'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'enterprise'; + goto after_enterprise; } - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['node_id'] = $value; + $properties['enterprise'] = $value; - after_node_id: + after_enterprise: - $value = $payload['name'] ?? null; + $value = $payload['installation'] ?? null; if ($value === null) { - $missingFields[] = 'name'; - goto after_name; + $missingFields[] = 'installation'; + goto after_installation; } - $properties['name'] = $value; - - after_name: - - $value = $payload['slug'] ?? null; - - if ($value === null) { - $missingFields[] = 'slug'; - goto after_slug; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['slug'] = $value; + $properties['installation'] = $value; - after_slug: + after_installation: - $value = $payload['created_at'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'created_at'; - goto after_created_at; + $missingFields[] = 'organization'; + goto after_organization; } - $properties['created_at'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; - after_created_at: + after_organization: - $value = $payload['updated_at'] ?? null; + $value = $payload['pull_request'] ?? null; if ($value === null) { - $missingFields[] = 'updated_at'; - goto after_updated_at; + $missingFields[] = 'pull_request'; + goto after_pull_request; } - $properties['updated_at'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'pull_request'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewEdited⚡️PullRequest($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['pull_request'] = $value; - after_updated_at: + after_pull_request: - $value = $payload['avatar_url'] ?? null; + $value = $payload['repository'] ?? null; if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatar_url; + $missingFields[] = 'repository'; + goto after_repository; } - $properties['avatar_url'] = $value; - - after_avatar_url: + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } + } - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Enterprise', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Enterprise::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\Enterprise(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Enterprise', $exception, stack: $this->hydrationStack); - } - } + $properties['repository'] = $value; + + after_repository: - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation(array $payload): \ApiClients\Client\Github\Schema\SimpleInstallation - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['id'] ?? null; + $value = $payload['review'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'review'; + goto after_review; } - $properties['id'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'review'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewEdited⚡️Review($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['review'] = $value; - after_id: + after_review: - $value = $payload['node_id'] ?? null; + $value = $payload['sender'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $missingFields[] = 'sender'; + goto after_sender; } - $properties['node_id'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; - after_node_id: + after_sender: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleInstallation', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewEdited', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\SimpleInstallation::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestReviewEdited::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\SimpleInstallation(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookPullRequestReviewEdited(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleInstallation', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewEdited', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple(array $payload): \ApiClients\Client\Github\Schema\OrganizationSimple + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewSubmitted(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestReviewSubmitted { $properties = []; $missingFields = []; try { - $value = $payload['login'] ?? null; + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'login'; - goto after_login; + $missingFields[] = 'action'; + goto after_action; } - $properties['login'] = $value; + $properties['action'] = $value; - after_login: + after_action: - $value = $payload['id'] ?? null; + $value = $payload['enterprise'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'enterprise'; + goto after_enterprise; } - $properties['id'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['enterprise'] = $value; - after_id: + after_enterprise: - $value = $payload['node_id'] ?? null; + $value = $payload['installation'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $missingFields[] = 'installation'; + goto after_installation; } - $properties['node_id'] = $value; - - after_node_id: - - $value = $payload['url'] ?? null; - - if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['url'] = $value; + $properties['installation'] = $value; - after_url: + after_installation: - $value = $payload['repos_url'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_repos_url; + $missingFields[] = 'organization'; + goto after_organization; } - $properties['repos_url'] = $value; - - after_repos_url: - - $value = $payload['events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'events_url'; - goto after_events_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['events_url'] = $value; + $properties['organization'] = $value; - after_events_url: + after_organization: - $value = $payload['hooks_url'] ?? null; + $value = $payload['pull_request'] ?? null; if ($value === null) { - $missingFields[] = 'hooks_url'; - goto after_hooks_url; + $missingFields[] = 'pull_request'; + goto after_pull_request; } - $properties['hooks_url'] = $value; - - after_hooks_url: - - $value = $payload['issues_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'issues_url'; - goto after_issues_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'pull_request'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewSubmitted⚡️PullRequest($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['issues_url'] = $value; + $properties['pull_request'] = $value; - after_issues_url: + after_pull_request: - $value = $payload['members_url'] ?? null; + $value = $payload['repository'] ?? null; if ($value === null) { - $missingFields[] = 'members_url'; - goto after_members_url; + $missingFields[] = 'repository'; + goto after_repository; } - $properties['members_url'] = $value; - - after_members_url: - - $value = $payload['public_members_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'public_members_url'; - goto after_public_members_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['public_members_url'] = $value; + $properties['repository'] = $value; - after_public_members_url: + after_repository: - $value = $payload['avatar_url'] ?? null; + $value = $payload['review'] ?? null; if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatar_url; + $missingFields[] = 'review'; + goto after_review; } - $properties['avatar_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'review'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewEdited⚡️Review($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['review'] = $value; - after_avatar_url: + after_review: - $value = $payload['description'] ?? null; + $value = $payload['sender'] ?? null; if ($value === null) { - $missingFields[] = 'description'; - goto after_description; + $missingFields[] = 'sender'; + goto after_sender; } - $properties['description'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; - after_description: + after_sender: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\OrganizationSimple', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewSubmitted', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\OrganizationSimple::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestReviewSubmitted::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\OrganizationSimple(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookPullRequestReviewSubmitted(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\OrganizationSimple', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewSubmitted', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewSubmitted⚡️PullRequest(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestReviewSubmitted\PullRequest + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise(array $payload): \ApiClients\Client\Github\Schema\Enterprise { $properties = []; $missingFields = []; try { - $value = $payload['_links'] ?? null; + $value = $payload['description'] ?? null; if ($value === null) { - $missingFields[] = '_links'; - goto after__links; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = '_links'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'description'; + goto after_description; } - $properties['_links'] = $value; + $properties['description'] = $value; - after__links: + after_description: - $value = $payload['active_lock_reason'] ?? null; + $value = $payload['html_url'] ?? null; if ($value === null) { - $missingFields[] = 'active_lock_reason'; - goto after_active_lock_reason; + $missingFields[] = 'html_url'; + goto after_html_url; } - $properties['active_lock_reason'] = $value; + $properties['html_url'] = $value; - after_active_lock_reason: + after_html_url: - $value = $payload['assignee'] ?? null; + $value = $payload['website_url'] ?? null; if ($value === null) { - $missingFields[] = 'assignee'; - goto after_assignee; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'assignee'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Comment⚡️User($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'website_url'; + goto after_website_url; } - $properties['assignee'] = $value; + $properties['website_url'] = $value; - after_assignee: + after_website_url: - $value = $payload['assignees'] ?? null; + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'assignees'; - goto after_assignees; + $missingFields[] = 'id'; + goto after_id; } - $properties['assignees'] = $value; + $properties['id'] = $value; - after_assignees: + after_id: - $value = $payload['author_association'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $missingFields[] = 'author_association'; - goto after_author_association; + $missingFields[] = 'node_id'; + goto after_node_id; } - $properties['author_association'] = $value; + $properties['node_id'] = $value; - after_author_association: + after_node_id: - $value = $payload['auto_merge'] ?? null; + $value = $payload['name'] ?? null; if ($value === null) { - $missingFields[] = 'auto_merge'; - goto after_auto_merge; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'auto_merge'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️AutoMerge($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'name'; + goto after_name; } - $properties['auto_merge'] = $value; + $properties['name'] = $value; - after_auto_merge: + after_name: - $value = $payload['base'] ?? null; + $value = $payload['slug'] ?? null; if ($value === null) { - $missingFields[] = 'base'; - goto after_base; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'base'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Base($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'slug'; + goto after_slug; } - $properties['base'] = $value; + $properties['slug'] = $value; - after_base: + after_slug: - $value = $payload['body'] ?? null; + $value = $payload['created_at'] ?? null; if ($value === null) { - $missingFields[] = 'body'; - goto after_body; + $missingFields[] = 'created_at'; + goto after_created_at; } - $properties['body'] = $value; - - after_body: - - $value = $payload['closed_at'] ?? null; - - if ($value === null) { - $missingFields[] = 'closed_at'; - goto after_closed_at; - } - - $properties['closed_at'] = $value; + $properties['created_at'] = $value; - after_closed_at: + after_created_at: - $value = $payload['comments_url'] ?? null; + $value = $payload['updated_at'] ?? null; if ($value === null) { - $missingFields[] = 'comments_url'; - goto after_comments_url; + $missingFields[] = 'updated_at'; + goto after_updated_at; } - $properties['comments_url'] = $value; + $properties['updated_at'] = $value; - after_comments_url: + after_updated_at: - $value = $payload['commits_url'] ?? null; + $value = $payload['avatar_url'] ?? null; if ($value === null) { - $missingFields[] = 'commits_url'; - goto after_commits_url; + $missingFields[] = 'avatar_url'; + goto after_avatar_url; } - $properties['commits_url'] = $value; - - after_commits_url: - - $value = $payload['created_at'] ?? null; + $properties['avatar_url'] = $value; - if ($value === null) { - $missingFields[] = 'created_at'; - goto after_created_at; - } + after_avatar_url: - $properties['created_at'] = $value; - - after_created_at: + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Enterprise', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Enterprise::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\Enterprise(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Enterprise', $exception, stack: $this->hydrationStack); + } + } - $value = $payload['diff_url'] ?? null; + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation(array $payload): \ApiClients\Client\Github\Schema\SimpleInstallation + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'diff_url'; - goto after_diff_url; + $missingFields[] = 'id'; + goto after_id; } - $properties['diff_url'] = $value; + $properties['id'] = $value; - after_diff_url: + after_id: - $value = $payload['draft'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $missingFields[] = 'draft'; - goto after_draft; + $missingFields[] = 'node_id'; + goto after_node_id; } - $properties['draft'] = $value; - - after_draft: - - $value = $payload['head'] ?? null; + $properties['node_id'] = $value; - if ($value === null) { - $missingFields[] = 'head'; - goto after_head; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'head'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Head($value); - } finally { - array_pop($this->hydrationStack); - } - } + after_node_id: - $properties['head'] = $value; - - after_head: + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleInstallation', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\SimpleInstallation::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\SimpleInstallation(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleInstallation', $exception, stack: $this->hydrationStack); + } + } - $value = $payload['html_url'] ?? null; + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple(array $payload): \ApiClients\Client\Github\Schema\OrganizationSimple + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['login'] ?? null; if ($value === null) { - $missingFields[] = 'html_url'; - goto after_html_url; + $missingFields[] = 'login'; + goto after_login; } - $properties['html_url'] = $value; + $properties['login'] = $value; - after_html_url: + after_login: $value = $payload['id'] ?? null; @@ -794,2065 +809,1983 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh after_id: - $value = $payload['issue_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'issue_url'; - goto after_issue_url; - } - - $properties['issue_url'] = $value; - - after_issue_url: - - $value = $payload['labels'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $missingFields[] = 'labels'; - goto after_labels; + $missingFields[] = 'node_id'; + goto after_node_id; } - $properties['labels'] = $value; + $properties['node_id'] = $value; - after_labels: + after_node_id: - $value = $payload['locked'] ?? null; + $value = $payload['url'] ?? null; if ($value === null) { - $missingFields[] = 'locked'; - goto after_locked; + $missingFields[] = 'url'; + goto after_url; } - $properties['locked'] = $value; + $properties['url'] = $value; - after_locked: + after_url: - $value = $payload['merge_commit_sha'] ?? null; + $value = $payload['repos_url'] ?? null; if ($value === null) { - $missingFields[] = 'merge_commit_sha'; - goto after_merge_commit_sha; + $missingFields[] = 'repos_url'; + goto after_repos_url; } - $properties['merge_commit_sha'] = $value; + $properties['repos_url'] = $value; - after_merge_commit_sha: + after_repos_url: - $value = $payload['merged_at'] ?? null; + $value = $payload['events_url'] ?? null; if ($value === null) { - $missingFields[] = 'merged_at'; - goto after_merged_at; + $missingFields[] = 'events_url'; + goto after_events_url; } - $properties['merged_at'] = $value; + $properties['events_url'] = $value; - after_merged_at: + after_events_url: - $value = $payload['milestone'] ?? null; + $value = $payload['hooks_url'] ?? null; if ($value === null) { - $missingFields[] = 'milestone'; - goto after_milestone; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'milestone'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesAssigned⚡️Issue⚡️Milestone($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'hooks_url'; + goto after_hooks_url; } - $properties['milestone'] = $value; + $properties['hooks_url'] = $value; - after_milestone: + after_hooks_url: - $value = $payload['node_id'] ?? null; + $value = $payload['issues_url'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $missingFields[] = 'issues_url'; + goto after_issues_url; } - $properties['node_id'] = $value; + $properties['issues_url'] = $value; - after_node_id: + after_issues_url: - $value = $payload['number'] ?? null; + $value = $payload['members_url'] ?? null; if ($value === null) { - $missingFields[] = 'number'; - goto after_number; + $missingFields[] = 'members_url'; + goto after_members_url; } - $properties['number'] = $value; + $properties['members_url'] = $value; - after_number: + after_members_url: - $value = $payload['patch_url'] ?? null; + $value = $payload['public_members_url'] ?? null; if ($value === null) { - $missingFields[] = 'patch_url'; - goto after_patch_url; + $missingFields[] = 'public_members_url'; + goto after_public_members_url; } - $properties['patch_url'] = $value; + $properties['public_members_url'] = $value; - after_patch_url: + after_public_members_url: - $value = $payload['requested_reviewers'] ?? null; + $value = $payload['avatar_url'] ?? null; if ($value === null) { - $missingFields[] = 'requested_reviewers'; - goto after_requested_reviewers; + $missingFields[] = 'avatar_url'; + goto after_avatar_url; } - $properties['requested_reviewers'] = $value; + $properties['avatar_url'] = $value; - after_requested_reviewers: + after_avatar_url: - $value = $payload['requested_teams'] ?? null; + $value = $payload['description'] ?? null; if ($value === null) { - $missingFields[] = 'requested_teams'; - goto after_requested_teams; + $missingFields[] = 'description'; + goto after_description; } - $properties['requested_teams'] = $value; + $properties['description'] = $value; - after_requested_teams: + after_description: - $value = $payload['review_comment_url'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\OrganizationSimple', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\OrganizationSimple::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\OrganizationSimple(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\OrganizationSimple', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewDismissed⚡️PullRequest(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestReviewDismissed\PullRequest + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['_links'] ?? null; if ($value === null) { - $missingFields[] = 'review_comment_url'; - goto after_review_comment_url; + $missingFields[] = '_links'; + goto after__links; } - $properties['review_comment_url'] = $value; - - after_review_comment_url: - - $value = $payload['review_comments_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'review_comments_url'; - goto after_review_comments_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = '_links'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['review_comments_url'] = $value; + $properties['_links'] = $value; - after_review_comments_url: + after__links: - $value = $payload['state'] ?? null; + $value = $payload['active_lock_reason'] ?? null; if ($value === null) { - $missingFields[] = 'state'; - goto after_state; + $missingFields[] = 'active_lock_reason'; + goto after_active_lock_reason; } - $properties['state'] = $value; + $properties['active_lock_reason'] = $value; - after_state: + after_active_lock_reason: - $value = $payload['statuses_url'] ?? null; + $value = $payload['assignee'] ?? null; if ($value === null) { - $missingFields[] = 'statuses_url'; - goto after_statuses_url; + $missingFields[] = 'assignee'; + goto after_assignee; } - $properties['statuses_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'assignee'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Comment⚡️User($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['assignee'] = $value; - after_statuses_url: + after_assignee: - $value = $payload['title'] ?? null; + $value = $payload['assignees'] ?? null; if ($value === null) { - $missingFields[] = 'title'; - goto after_title; + $missingFields[] = 'assignees'; + goto after_assignees; } - $properties['title'] = $value; + $properties['assignees'] = $value; - after_title: + after_assignees: - $value = $payload['updated_at'] ?? null; + $value = $payload['author_association'] ?? null; if ($value === null) { - $missingFields[] = 'updated_at'; - goto after_updated_at; + $missingFields[] = 'author_association'; + goto after_author_association; } - $properties['updated_at'] = $value; + $properties['author_association'] = $value; - after_updated_at: + after_author_association: - $value = $payload['url'] ?? null; + $value = $payload['auto_merge'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $missingFields[] = 'auto_merge'; + goto after_auto_merge; } - $properties['url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'auto_merge'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️AutoMerge($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['auto_merge'] = $value; - after_url: + after_auto_merge: - $value = $payload['user'] ?? null; + $value = $payload['base'] ?? null; if ($value === null) { - $missingFields[] = 'user'; - goto after_user; + $missingFields[] = 'base'; + goto after_base; } if (is_array($value)) { try { - $this->hydrationStack[] = 'user'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Comment⚡️User($value); + $this->hydrationStack[] = 'base'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Base($value); } finally { array_pop($this->hydrationStack); } } - $properties['user'] = $value; + $properties['base'] = $value; - after_user: - - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewSubmitted\PullRequest', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestReviewSubmitted\PullRequest::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\WebhookPullRequestReviewSubmitted\PullRequest(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewSubmitted\PullRequest', $exception, stack: $this->hydrationStack); - } - } + after_base: - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository(array $payload): \ApiClients\Client\Github\Schema\Repository - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['id'] ?? null; + $value = $payload['body'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'body'; + goto after_body; } - $properties['id'] = $value; + $properties['body'] = $value; - after_id: + after_body: - $value = $payload['node_id'] ?? null; + $value = $payload['closed_at'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $missingFields[] = 'closed_at'; + goto after_closed_at; } - $properties['node_id'] = $value; + $properties['closed_at'] = $value; - after_node_id: + after_closed_at: - $value = $payload['name'] ?? null; + $value = $payload['comments_url'] ?? null; if ($value === null) { - $missingFields[] = 'name'; - goto after_name; + $missingFields[] = 'comments_url'; + goto after_comments_url; } - $properties['name'] = $value; + $properties['comments_url'] = $value; - after_name: + after_comments_url: - $value = $payload['full_name'] ?? null; + $value = $payload['commits_url'] ?? null; if ($value === null) { - $missingFields[] = 'full_name'; - goto after_full_name; + $missingFields[] = 'commits_url'; + goto after_commits_url; } - $properties['full_name'] = $value; + $properties['commits_url'] = $value; - after_full_name: + after_commits_url: - $value = $payload['license'] ?? null; + $value = $payload['created_at'] ?? null; if ($value === null) { - $properties['license'] = null; - goto after_license; + $missingFields[] = 'created_at'; + goto after_created_at; } - $properties['license'] = $value; + $properties['created_at'] = $value; - after_license: + after_created_at: - $value = $payload['organization'] ?? null; + $value = $payload['diff_url'] ?? null; if ($value === null) { - $properties['organization'] = null; - goto after_organization; + $missingFields[] = 'diff_url'; + goto after_diff_url; } - $properties['organization'] = $value; + $properties['diff_url'] = $value; - after_organization: + after_diff_url: - $value = $payload['forks'] ?? null; + $value = $payload['draft'] ?? null; if ($value === null) { - $missingFields[] = 'forks'; - goto after_forks; + $missingFields[] = 'draft'; + goto after_draft; } - $properties['forks'] = $value; + $properties['draft'] = $value; - after_forks: + after_draft: - $value = $payload['permissions'] ?? null; + $value = $payload['head'] ?? null; if ($value === null) { - $missingFields[] = 'permissions'; - goto after_permissions; + $missingFields[] = 'head'; + goto after_head; } if (is_array($value)) { try { - $this->hydrationStack[] = 'permissions'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️Permissions($value); + $this->hydrationStack[] = 'head'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewCommentDeleted⚡️PullRequest⚡️Head($value); } finally { array_pop($this->hydrationStack); } } - $properties['permissions'] = $value; + $properties['head'] = $value; - after_permissions: + after_head: - $value = $payload['owner'] ?? null; + $value = $payload['html_url'] ?? null; if ($value === null) { - $missingFields[] = 'owner'; - goto after_owner; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'owner'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'html_url'; + goto after_html_url; } - $properties['owner'] = $value; + $properties['html_url'] = $value; - after_owner: + after_html_url: - $value = $payload['private'] ?? null; + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'private'; - goto after_private; + $missingFields[] = 'id'; + goto after_id; } - $properties['private'] = $value; + $properties['id'] = $value; - after_private: + after_id: - $value = $payload['html_url'] ?? null; + $value = $payload['issue_url'] ?? null; if ($value === null) { - $missingFields[] = 'html_url'; - goto after_html_url; + $missingFields[] = 'issue_url'; + goto after_issue_url; } - $properties['html_url'] = $value; + $properties['issue_url'] = $value; - after_html_url: + after_issue_url: - $value = $payload['description'] ?? null; + $value = $payload['labels'] ?? null; if ($value === null) { - $missingFields[] = 'description'; - goto after_description; + $missingFields[] = 'labels'; + goto after_labels; } - $properties['description'] = $value; + $properties['labels'] = $value; - after_description: + after_labels: - $value = $payload['fork'] ?? null; + $value = $payload['locked'] ?? null; if ($value === null) { - $missingFields[] = 'fork'; - goto after_fork; + $missingFields[] = 'locked'; + goto after_locked; } - $properties['fork'] = $value; + $properties['locked'] = $value; - after_fork: + after_locked: - $value = $payload['url'] ?? null; + $value = $payload['merge_commit_sha'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $missingFields[] = 'merge_commit_sha'; + goto after_merge_commit_sha; } - $properties['url'] = $value; + $properties['merge_commit_sha'] = $value; - after_url: + after_merge_commit_sha: - $value = $payload['archive_url'] ?? null; + $value = $payload['merged_at'] ?? null; if ($value === null) { - $missingFields[] = 'archive_url'; - goto after_archive_url; + $missingFields[] = 'merged_at'; + goto after_merged_at; } - $properties['archive_url'] = $value; + $properties['merged_at'] = $value; - after_archive_url: + after_merged_at: - $value = $payload['assignees_url'] ?? null; + $value = $payload['milestone'] ?? null; if ($value === null) { - $missingFields[] = 'assignees_url'; - goto after_assignees_url; + $missingFields[] = 'milestone'; + goto after_milestone; } - $properties['assignees_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'milestone'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesDeleted⚡️Issue⚡️Milestone($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['milestone'] = $value; - after_assignees_url: + after_milestone: - $value = $payload['blobs_url'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $missingFields[] = 'blobs_url'; - goto after_blobs_url; + $missingFields[] = 'node_id'; + goto after_node_id; } - $properties['blobs_url'] = $value; + $properties['node_id'] = $value; - after_blobs_url: + after_node_id: - $value = $payload['branches_url'] ?? null; + $value = $payload['number'] ?? null; if ($value === null) { - $missingFields[] = 'branches_url'; - goto after_branches_url; + $missingFields[] = 'number'; + goto after_number; } - $properties['branches_url'] = $value; + $properties['number'] = $value; - after_branches_url: + after_number: - $value = $payload['collaborators_url'] ?? null; + $value = $payload['patch_url'] ?? null; if ($value === null) { - $missingFields[] = 'collaborators_url'; - goto after_collaborators_url; + $missingFields[] = 'patch_url'; + goto after_patch_url; } - $properties['collaborators_url'] = $value; + $properties['patch_url'] = $value; - after_collaborators_url: + after_patch_url: - $value = $payload['comments_url'] ?? null; + $value = $payload['requested_reviewers'] ?? null; if ($value === null) { - $missingFields[] = 'comments_url'; - goto after_comments_url; + $missingFields[] = 'requested_reviewers'; + goto after_requested_reviewers; } - $properties['comments_url'] = $value; + $properties['requested_reviewers'] = $value; - after_comments_url: + after_requested_reviewers: - $value = $payload['commits_url'] ?? null; + $value = $payload['requested_teams'] ?? null; if ($value === null) { - $missingFields[] = 'commits_url'; - goto after_commits_url; + $missingFields[] = 'requested_teams'; + goto after_requested_teams; } - $properties['commits_url'] = $value; + $properties['requested_teams'] = $value; - after_commits_url: + after_requested_teams: - $value = $payload['compare_url'] ?? null; + $value = $payload['review_comment_url'] ?? null; if ($value === null) { - $missingFields[] = 'compare_url'; - goto after_compare_url; + $missingFields[] = 'review_comment_url'; + goto after_review_comment_url; } - $properties['compare_url'] = $value; + $properties['review_comment_url'] = $value; - after_compare_url: + after_review_comment_url: - $value = $payload['contents_url'] ?? null; + $value = $payload['review_comments_url'] ?? null; if ($value === null) { - $missingFields[] = 'contents_url'; - goto after_contents_url; + $missingFields[] = 'review_comments_url'; + goto after_review_comments_url; } - $properties['contents_url'] = $value; + $properties['review_comments_url'] = $value; - after_contents_url: + after_review_comments_url: - $value = $payload['contributors_url'] ?? null; + $value = $payload['state'] ?? null; if ($value === null) { - $missingFields[] = 'contributors_url'; - goto after_contributors_url; + $missingFields[] = 'state'; + goto after_state; } - $properties['contributors_url'] = $value; + $properties['state'] = $value; - after_contributors_url: + after_state: - $value = $payload['deployments_url'] ?? null; + $value = $payload['statuses_url'] ?? null; if ($value === null) { - $missingFields[] = 'deployments_url'; - goto after_deployments_url; + $missingFields[] = 'statuses_url'; + goto after_statuses_url; } - $properties['deployments_url'] = $value; + $properties['statuses_url'] = $value; - after_deployments_url: + after_statuses_url: - $value = $payload['downloads_url'] ?? null; + $value = $payload['title'] ?? null; if ($value === null) { - $missingFields[] = 'downloads_url'; - goto after_downloads_url; + $missingFields[] = 'title'; + goto after_title; } - $properties['downloads_url'] = $value; + $properties['title'] = $value; - after_downloads_url: + after_title: - $value = $payload['events_url'] ?? null; + $value = $payload['updated_at'] ?? null; if ($value === null) { - $missingFields[] = 'events_url'; - goto after_events_url; + $missingFields[] = 'updated_at'; + goto after_updated_at; } - $properties['events_url'] = $value; + $properties['updated_at'] = $value; - after_events_url: + after_updated_at: - $value = $payload['forks_url'] ?? null; + $value = $payload['url'] ?? null; if ($value === null) { - $missingFields[] = 'forks_url'; - goto after_forks_url; + $missingFields[] = 'url'; + goto after_url; } - $properties['forks_url'] = $value; + $properties['url'] = $value; - after_forks_url: + after_url: - $value = $payload['git_commits_url'] ?? null; + $value = $payload['user'] ?? null; if ($value === null) { - $missingFields[] = 'git_commits_url'; - goto after_git_commits_url; + $missingFields[] = 'user'; + goto after_user; } - $properties['git_commits_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'user'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Comment⚡️User($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['user'] = $value; - after_git_commits_url: + after_user: - $value = $payload['git_refs_url'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewDismissed\PullRequest', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestReviewDismissed\PullRequest::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookPullRequestReviewDismissed\PullRequest(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewDismissed\PullRequest', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository(array $payload): \ApiClients\Client\Github\Schema\Repository + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'git_refs_url'; - goto after_git_refs_url; + $missingFields[] = 'id'; + goto after_id; } - $properties['git_refs_url'] = $value; + $properties['id'] = $value; - after_git_refs_url: + after_id: - $value = $payload['git_tags_url'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $missingFields[] = 'git_tags_url'; - goto after_git_tags_url; + $missingFields[] = 'node_id'; + goto after_node_id; } - $properties['git_tags_url'] = $value; + $properties['node_id'] = $value; - after_git_tags_url: + after_node_id: - $value = $payload['git_url'] ?? null; + $value = $payload['name'] ?? null; if ($value === null) { - $missingFields[] = 'git_url'; - goto after_git_url; + $missingFields[] = 'name'; + goto after_name; } - $properties['git_url'] = $value; + $properties['name'] = $value; - after_git_url: + after_name: - $value = $payload['issue_comment_url'] ?? null; + $value = $payload['full_name'] ?? null; if ($value === null) { - $missingFields[] = 'issue_comment_url'; - goto after_issue_comment_url; + $missingFields[] = 'full_name'; + goto after_full_name; } - $properties['issue_comment_url'] = $value; + $properties['full_name'] = $value; - after_issue_comment_url: + after_full_name: - $value = $payload['issue_events_url'] ?? null; + $value = $payload['license'] ?? null; if ($value === null) { - $missingFields[] = 'issue_events_url'; - goto after_issue_events_url; + $properties['license'] = null; + goto after_license; } - $properties['issue_events_url'] = $value; + $properties['license'] = $value; - after_issue_events_url: + after_license: - $value = $payload['issues_url'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'issues_url'; - goto after_issues_url; + $properties['organization'] = null; + goto after_organization; } - $properties['issues_url'] = $value; + $properties['organization'] = $value; - after_issues_url: + after_organization: - $value = $payload['keys_url'] ?? null; + $value = $payload['forks'] ?? null; if ($value === null) { - $missingFields[] = 'keys_url'; - goto after_keys_url; + $missingFields[] = 'forks'; + goto after_forks; } - $properties['keys_url'] = $value; + $properties['forks'] = $value; - after_keys_url: + after_forks: - $value = $payload['labels_url'] ?? null; + $value = $payload['permissions'] ?? null; if ($value === null) { - $missingFields[] = 'labels_url'; - goto after_labels_url; + $missingFields[] = 'permissions'; + goto after_permissions; } - $properties['labels_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'permissions'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️Permissions($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['permissions'] = $value; - after_labels_url: + after_permissions: - $value = $payload['languages_url'] ?? null; + $value = $payload['owner'] ?? null; if ($value === null) { - $missingFields[] = 'languages_url'; - goto after_languages_url; + $missingFields[] = 'owner'; + goto after_owner; } - $properties['languages_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'owner'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['owner'] = $value; - after_languages_url: + after_owner: - $value = $payload['merges_url'] ?? null; + $value = $payload['private'] ?? null; if ($value === null) { - $missingFields[] = 'merges_url'; - goto after_merges_url; + $missingFields[] = 'private'; + goto after_private; } - $properties['merges_url'] = $value; + $properties['private'] = $value; - after_merges_url: + after_private: - $value = $payload['milestones_url'] ?? null; + $value = $payload['html_url'] ?? null; if ($value === null) { - $missingFields[] = 'milestones_url'; - goto after_milestones_url; + $missingFields[] = 'html_url'; + goto after_html_url; } - $properties['milestones_url'] = $value; + $properties['html_url'] = $value; - after_milestones_url: + after_html_url: - $value = $payload['notifications_url'] ?? null; + $value = $payload['description'] ?? null; if ($value === null) { - $missingFields[] = 'notifications_url'; - goto after_notifications_url; + $missingFields[] = 'description'; + goto after_description; } - $properties['notifications_url'] = $value; + $properties['description'] = $value; - after_notifications_url: + after_description: - $value = $payload['pulls_url'] ?? null; + $value = $payload['fork'] ?? null; if ($value === null) { - $missingFields[] = 'pulls_url'; - goto after_pulls_url; + $missingFields[] = 'fork'; + goto after_fork; } - $properties['pulls_url'] = $value; + $properties['fork'] = $value; - after_pulls_url: + after_fork: - $value = $payload['releases_url'] ?? null; + $value = $payload['url'] ?? null; if ($value === null) { - $missingFields[] = 'releases_url'; - goto after_releases_url; + $missingFields[] = 'url'; + goto after_url; } - $properties['releases_url'] = $value; + $properties['url'] = $value; - after_releases_url: + after_url: - $value = $payload['ssh_url'] ?? null; + $value = $payload['archive_url'] ?? null; if ($value === null) { - $missingFields[] = 'ssh_url'; - goto after_ssh_url; + $missingFields[] = 'archive_url'; + goto after_archive_url; } - $properties['ssh_url'] = $value; + $properties['archive_url'] = $value; - after_ssh_url: + after_archive_url: - $value = $payload['stargazers_url'] ?? null; + $value = $payload['assignees_url'] ?? null; if ($value === null) { - $missingFields[] = 'stargazers_url'; - goto after_stargazers_url; + $missingFields[] = 'assignees_url'; + goto after_assignees_url; } - $properties['stargazers_url'] = $value; + $properties['assignees_url'] = $value; - after_stargazers_url: + after_assignees_url: - $value = $payload['statuses_url'] ?? null; + $value = $payload['blobs_url'] ?? null; if ($value === null) { - $missingFields[] = 'statuses_url'; - goto after_statuses_url; + $missingFields[] = 'blobs_url'; + goto after_blobs_url; } - $properties['statuses_url'] = $value; + $properties['blobs_url'] = $value; - after_statuses_url: + after_blobs_url: - $value = $payload['subscribers_url'] ?? null; + $value = $payload['branches_url'] ?? null; if ($value === null) { - $missingFields[] = 'subscribers_url'; - goto after_subscribers_url; + $missingFields[] = 'branches_url'; + goto after_branches_url; } - $properties['subscribers_url'] = $value; + $properties['branches_url'] = $value; - after_subscribers_url: + after_branches_url: - $value = $payload['subscription_url'] ?? null; + $value = $payload['collaborators_url'] ?? null; if ($value === null) { - $missingFields[] = 'subscription_url'; - goto after_subscription_url; + $missingFields[] = 'collaborators_url'; + goto after_collaborators_url; } - $properties['subscription_url'] = $value; + $properties['collaborators_url'] = $value; - after_subscription_url: + after_collaborators_url: - $value = $payload['tags_url'] ?? null; + $value = $payload['comments_url'] ?? null; if ($value === null) { - $missingFields[] = 'tags_url'; - goto after_tags_url; + $missingFields[] = 'comments_url'; + goto after_comments_url; } - $properties['tags_url'] = $value; + $properties['comments_url'] = $value; - after_tags_url: + after_comments_url: - $value = $payload['teams_url'] ?? null; + $value = $payload['commits_url'] ?? null; if ($value === null) { - $missingFields[] = 'teams_url'; - goto after_teams_url; + $missingFields[] = 'commits_url'; + goto after_commits_url; } - $properties['teams_url'] = $value; + $properties['commits_url'] = $value; - after_teams_url: + after_commits_url: - $value = $payload['trees_url'] ?? null; + $value = $payload['compare_url'] ?? null; if ($value === null) { - $missingFields[] = 'trees_url'; - goto after_trees_url; + $missingFields[] = 'compare_url'; + goto after_compare_url; } - $properties['trees_url'] = $value; + $properties['compare_url'] = $value; - after_trees_url: + after_compare_url: - $value = $payload['clone_url'] ?? null; + $value = $payload['contents_url'] ?? null; if ($value === null) { - $missingFields[] = 'clone_url'; - goto after_clone_url; + $missingFields[] = 'contents_url'; + goto after_contents_url; } - $properties['clone_url'] = $value; + $properties['contents_url'] = $value; - after_clone_url: + after_contents_url: - $value = $payload['mirror_url'] ?? null; + $value = $payload['contributors_url'] ?? null; if ($value === null) { - $missingFields[] = 'mirror_url'; - goto after_mirror_url; + $missingFields[] = 'contributors_url'; + goto after_contributors_url; } - $properties['mirror_url'] = $value; + $properties['contributors_url'] = $value; - after_mirror_url: + after_contributors_url: - $value = $payload['hooks_url'] ?? null; + $value = $payload['deployments_url'] ?? null; if ($value === null) { - $missingFields[] = 'hooks_url'; - goto after_hooks_url; + $missingFields[] = 'deployments_url'; + goto after_deployments_url; } - $properties['hooks_url'] = $value; + $properties['deployments_url'] = $value; - after_hooks_url: + after_deployments_url: - $value = $payload['svn_url'] ?? null; + $value = $payload['downloads_url'] ?? null; if ($value === null) { - $missingFields[] = 'svn_url'; - goto after_svn_url; + $missingFields[] = 'downloads_url'; + goto after_downloads_url; } - $properties['svn_url'] = $value; + $properties['downloads_url'] = $value; - after_svn_url: + after_downloads_url: - $value = $payload['homepage'] ?? null; + $value = $payload['events_url'] ?? null; if ($value === null) { - $missingFields[] = 'homepage'; - goto after_homepage; + $missingFields[] = 'events_url'; + goto after_events_url; } - $properties['homepage'] = $value; + $properties['events_url'] = $value; - after_homepage: + after_events_url: - $value = $payload['language'] ?? null; + $value = $payload['forks_url'] ?? null; if ($value === null) { - $missingFields[] = 'language'; - goto after_language; + $missingFields[] = 'forks_url'; + goto after_forks_url; } - $properties['language'] = $value; + $properties['forks_url'] = $value; - after_language: + after_forks_url: - $value = $payload['forks_count'] ?? null; + $value = $payload['git_commits_url'] ?? null; if ($value === null) { - $missingFields[] = 'forks_count'; - goto after_forks_count; + $missingFields[] = 'git_commits_url'; + goto after_git_commits_url; } - $properties['forks_count'] = $value; + $properties['git_commits_url'] = $value; - after_forks_count: + after_git_commits_url: - $value = $payload['stargazers_count'] ?? null; + $value = $payload['git_refs_url'] ?? null; if ($value === null) { - $missingFields[] = 'stargazers_count'; - goto after_stargazers_count; + $missingFields[] = 'git_refs_url'; + goto after_git_refs_url; } - $properties['stargazers_count'] = $value; + $properties['git_refs_url'] = $value; - after_stargazers_count: + after_git_refs_url: - $value = $payload['watchers_count'] ?? null; + $value = $payload['git_tags_url'] ?? null; if ($value === null) { - $missingFields[] = 'watchers_count'; - goto after_watchers_count; + $missingFields[] = 'git_tags_url'; + goto after_git_tags_url; } - $properties['watchers_count'] = $value; + $properties['git_tags_url'] = $value; - after_watchers_count: + after_git_tags_url: - $value = $payload['size'] ?? null; + $value = $payload['git_url'] ?? null; if ($value === null) { - $missingFields[] = 'size'; - goto after_size; + $missingFields[] = 'git_url'; + goto after_git_url; } - $properties['size'] = $value; + $properties['git_url'] = $value; - after_size: + after_git_url: - $value = $payload['default_branch'] ?? null; + $value = $payload['issue_comment_url'] ?? null; if ($value === null) { - $missingFields[] = 'default_branch'; - goto after_default_branch; + $missingFields[] = 'issue_comment_url'; + goto after_issue_comment_url; } - $properties['default_branch'] = $value; + $properties['issue_comment_url'] = $value; - after_default_branch: + after_issue_comment_url: - $value = $payload['open_issues_count'] ?? null; + $value = $payload['issue_events_url'] ?? null; if ($value === null) { - $missingFields[] = 'open_issues_count'; - goto after_open_issues_count; + $missingFields[] = 'issue_events_url'; + goto after_issue_events_url; } - $properties['open_issues_count'] = $value; + $properties['issue_events_url'] = $value; - after_open_issues_count: + after_issue_events_url: - $value = $payload['is_template'] ?? null; + $value = $payload['issues_url'] ?? null; if ($value === null) { - $missingFields[] = 'is_template'; - goto after_is_template; + $missingFields[] = 'issues_url'; + goto after_issues_url; } - $properties['is_template'] = $value; + $properties['issues_url'] = $value; - after_is_template: + after_issues_url: - $value = $payload['topics'] ?? null; + $value = $payload['keys_url'] ?? null; if ($value === null) { - $missingFields[] = 'topics'; - goto after_topics; + $missingFields[] = 'keys_url'; + goto after_keys_url; } - $properties['topics'] = $value; + $properties['keys_url'] = $value; - after_topics: + after_keys_url: - $value = $payload['has_issues'] ?? null; + $value = $payload['labels_url'] ?? null; if ($value === null) { - $missingFields[] = 'has_issues'; - goto after_has_issues; + $missingFields[] = 'labels_url'; + goto after_labels_url; } - $properties['has_issues'] = $value; + $properties['labels_url'] = $value; - after_has_issues: + after_labels_url: - $value = $payload['has_projects'] ?? null; + $value = $payload['languages_url'] ?? null; if ($value === null) { - $missingFields[] = 'has_projects'; - goto after_has_projects; + $missingFields[] = 'languages_url'; + goto after_languages_url; } - $properties['has_projects'] = $value; + $properties['languages_url'] = $value; - after_has_projects: + after_languages_url: - $value = $payload['has_wiki'] ?? null; + $value = $payload['merges_url'] ?? null; if ($value === null) { - $missingFields[] = 'has_wiki'; - goto after_has_wiki; + $missingFields[] = 'merges_url'; + goto after_merges_url; } - $properties['has_wiki'] = $value; + $properties['merges_url'] = $value; - after_has_wiki: + after_merges_url: - $value = $payload['has_pages'] ?? null; + $value = $payload['milestones_url'] ?? null; if ($value === null) { - $missingFields[] = 'has_pages'; - goto after_has_pages; + $missingFields[] = 'milestones_url'; + goto after_milestones_url; } - $properties['has_pages'] = $value; + $properties['milestones_url'] = $value; - after_has_pages: + after_milestones_url: - $value = $payload['has_downloads'] ?? null; + $value = $payload['notifications_url'] ?? null; if ($value === null) { - $missingFields[] = 'has_downloads'; - goto after_has_downloads; + $missingFields[] = 'notifications_url'; + goto after_notifications_url; } - $properties['has_downloads'] = $value; + $properties['notifications_url'] = $value; - after_has_downloads: + after_notifications_url: - $value = $payload['has_discussions'] ?? null; + $value = $payload['pulls_url'] ?? null; if ($value === null) { - $missingFields[] = 'has_discussions'; - goto after_has_discussions; + $missingFields[] = 'pulls_url'; + goto after_pulls_url; } - $properties['has_discussions'] = $value; + $properties['pulls_url'] = $value; - after_has_discussions: + after_pulls_url: - $value = $payload['archived'] ?? null; + $value = $payload['releases_url'] ?? null; if ($value === null) { - $missingFields[] = 'archived'; - goto after_archived; + $missingFields[] = 'releases_url'; + goto after_releases_url; } - $properties['archived'] = $value; + $properties['releases_url'] = $value; - after_archived: + after_releases_url: - $value = $payload['disabled'] ?? null; + $value = $payload['ssh_url'] ?? null; if ($value === null) { - $missingFields[] = 'disabled'; - goto after_disabled; + $missingFields[] = 'ssh_url'; + goto after_ssh_url; } - $properties['disabled'] = $value; + $properties['ssh_url'] = $value; - after_disabled: + after_ssh_url: - $value = $payload['visibility'] ?? null; + $value = $payload['stargazers_url'] ?? null; if ($value === null) { - $missingFields[] = 'visibility'; - goto after_visibility; + $missingFields[] = 'stargazers_url'; + goto after_stargazers_url; } - $properties['visibility'] = $value; + $properties['stargazers_url'] = $value; - after_visibility: + after_stargazers_url: - $value = $payload['pushed_at'] ?? null; + $value = $payload['statuses_url'] ?? null; if ($value === null) { - $missingFields[] = 'pushed_at'; - goto after_pushed_at; + $missingFields[] = 'statuses_url'; + goto after_statuses_url; } - $properties['pushed_at'] = $value; + $properties['statuses_url'] = $value; - after_pushed_at: + after_statuses_url: - $value = $payload['created_at'] ?? null; + $value = $payload['subscribers_url'] ?? null; if ($value === null) { - $missingFields[] = 'created_at'; - goto after_created_at; + $missingFields[] = 'subscribers_url'; + goto after_subscribers_url; } - $properties['created_at'] = $value; + $properties['subscribers_url'] = $value; - after_created_at: + after_subscribers_url: - $value = $payload['updated_at'] ?? null; + $value = $payload['subscription_url'] ?? null; if ($value === null) { - $missingFields[] = 'updated_at'; - goto after_updated_at; + $missingFields[] = 'subscription_url'; + goto after_subscription_url; } - $properties['updated_at'] = $value; + $properties['subscription_url'] = $value; - after_updated_at: + after_subscription_url: - $value = $payload['allow_rebase_merge'] ?? null; + $value = $payload['tags_url'] ?? null; if ($value === null) { - $missingFields[] = 'allow_rebase_merge'; - goto after_allow_rebase_merge; + $missingFields[] = 'tags_url'; + goto after_tags_url; } - $properties['allow_rebase_merge'] = $value; + $properties['tags_url'] = $value; - after_allow_rebase_merge: + after_tags_url: - $value = $payload['template_repository'] ?? null; + $value = $payload['teams_url'] ?? null; if ($value === null) { - $missingFields[] = 'template_repository'; - goto after_template_repository; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'template_repository'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'teams_url'; + goto after_teams_url; } - $properties['template_repository'] = $value; + $properties['teams_url'] = $value; - after_template_repository: + after_teams_url: - $value = $payload['temp_clone_token'] ?? null; + $value = $payload['trees_url'] ?? null; if ($value === null) { - $missingFields[] = 'temp_clone_token'; - goto after_temp_clone_token; + $missingFields[] = 'trees_url'; + goto after_trees_url; } - $properties['temp_clone_token'] = $value; + $properties['trees_url'] = $value; - after_temp_clone_token: + after_trees_url: - $value = $payload['allow_squash_merge'] ?? null; + $value = $payload['clone_url'] ?? null; if ($value === null) { - $missingFields[] = 'allow_squash_merge'; - goto after_allow_squash_merge; + $missingFields[] = 'clone_url'; + goto after_clone_url; } - $properties['allow_squash_merge'] = $value; + $properties['clone_url'] = $value; - after_allow_squash_merge: + after_clone_url: - $value = $payload['allow_auto_merge'] ?? null; + $value = $payload['mirror_url'] ?? null; if ($value === null) { - $missingFields[] = 'allow_auto_merge'; - goto after_allow_auto_merge; + $missingFields[] = 'mirror_url'; + goto after_mirror_url; } - $properties['allow_auto_merge'] = $value; + $properties['mirror_url'] = $value; - after_allow_auto_merge: + after_mirror_url: - $value = $payload['delete_branch_on_merge'] ?? null; + $value = $payload['hooks_url'] ?? null; if ($value === null) { - $missingFields[] = 'delete_branch_on_merge'; - goto after_delete_branch_on_merge; + $missingFields[] = 'hooks_url'; + goto after_hooks_url; } - $properties['delete_branch_on_merge'] = $value; + $properties['hooks_url'] = $value; - after_delete_branch_on_merge: + after_hooks_url: - $value = $payload['allow_update_branch'] ?? null; + $value = $payload['svn_url'] ?? null; if ($value === null) { - $missingFields[] = 'allow_update_branch'; - goto after_allow_update_branch; + $missingFields[] = 'svn_url'; + goto after_svn_url; } - $properties['allow_update_branch'] = $value; + $properties['svn_url'] = $value; - after_allow_update_branch: + after_svn_url: - $value = $payload['use_squash_pr_title_as_default'] ?? null; + $value = $payload['homepage'] ?? null; if ($value === null) { - $missingFields[] = 'use_squash_pr_title_as_default'; - goto after_use_squash_pr_title_as_default; + $missingFields[] = 'homepage'; + goto after_homepage; } - $properties['use_squash_pr_title_as_default'] = $value; + $properties['homepage'] = $value; - after_use_squash_pr_title_as_default: + after_homepage: - $value = $payload['squash_merge_commit_title'] ?? null; + $value = $payload['language'] ?? null; if ($value === null) { - $missingFields[] = 'squash_merge_commit_title'; - goto after_squash_merge_commit_title; + $missingFields[] = 'language'; + goto after_language; } - $properties['squash_merge_commit_title'] = $value; + $properties['language'] = $value; - after_squash_merge_commit_title: + after_language: - $value = $payload['squash_merge_commit_message'] ?? null; + $value = $payload['forks_count'] ?? null; if ($value === null) { - $missingFields[] = 'squash_merge_commit_message'; - goto after_squash_merge_commit_message; + $missingFields[] = 'forks_count'; + goto after_forks_count; } - $properties['squash_merge_commit_message'] = $value; + $properties['forks_count'] = $value; - after_squash_merge_commit_message: + after_forks_count: - $value = $payload['merge_commit_title'] ?? null; + $value = $payload['stargazers_count'] ?? null; if ($value === null) { - $missingFields[] = 'merge_commit_title'; - goto after_merge_commit_title; + $missingFields[] = 'stargazers_count'; + goto after_stargazers_count; } - $properties['merge_commit_title'] = $value; + $properties['stargazers_count'] = $value; - after_merge_commit_title: + after_stargazers_count: - $value = $payload['merge_commit_message'] ?? null; + $value = $payload['watchers_count'] ?? null; if ($value === null) { - $missingFields[] = 'merge_commit_message'; - goto after_merge_commit_message; + $missingFields[] = 'watchers_count'; + goto after_watchers_count; } - $properties['merge_commit_message'] = $value; + $properties['watchers_count'] = $value; - after_merge_commit_message: + after_watchers_count: - $value = $payload['allow_merge_commit'] ?? null; + $value = $payload['size'] ?? null; if ($value === null) { - $missingFields[] = 'allow_merge_commit'; - goto after_allow_merge_commit; + $missingFields[] = 'size'; + goto after_size; } - $properties['allow_merge_commit'] = $value; + $properties['size'] = $value; - after_allow_merge_commit: + after_size: - $value = $payload['allow_forking'] ?? null; + $value = $payload['default_branch'] ?? null; if ($value === null) { - $missingFields[] = 'allow_forking'; - goto after_allow_forking; + $missingFields[] = 'default_branch'; + goto after_default_branch; } - $properties['allow_forking'] = $value; + $properties['default_branch'] = $value; - after_allow_forking: + after_default_branch: - $value = $payload['web_commit_signoff_required'] ?? null; + $value = $payload['open_issues_count'] ?? null; if ($value === null) { - $missingFields[] = 'web_commit_signoff_required'; - goto after_web_commit_signoff_required; + $missingFields[] = 'open_issues_count'; + goto after_open_issues_count; } - $properties['web_commit_signoff_required'] = $value; + $properties['open_issues_count'] = $value; - after_web_commit_signoff_required: + after_open_issues_count: - $value = $payload['subscribers_count'] ?? null; + $value = $payload['is_template'] ?? null; if ($value === null) { - $missingFields[] = 'subscribers_count'; - goto after_subscribers_count; + $missingFields[] = 'is_template'; + goto after_is_template; } - $properties['subscribers_count'] = $value; + $properties['is_template'] = $value; - after_subscribers_count: + after_is_template: - $value = $payload['network_count'] ?? null; + $value = $payload['topics'] ?? null; if ($value === null) { - $missingFields[] = 'network_count'; - goto after_network_count; + $missingFields[] = 'topics'; + goto after_topics; } - $properties['network_count'] = $value; + $properties['topics'] = $value; - after_network_count: + after_topics: - $value = $payload['open_issues'] ?? null; + $value = $payload['has_issues'] ?? null; if ($value === null) { - $missingFields[] = 'open_issues'; - goto after_open_issues; + $missingFields[] = 'has_issues'; + goto after_has_issues; } - $properties['open_issues'] = $value; + $properties['has_issues'] = $value; - after_open_issues: + after_has_issues: - $value = $payload['watchers'] ?? null; + $value = $payload['has_projects'] ?? null; if ($value === null) { - $missingFields[] = 'watchers'; - goto after_watchers; + $missingFields[] = 'has_projects'; + goto after_has_projects; } - $properties['watchers'] = $value; + $properties['has_projects'] = $value; - after_watchers: + after_has_projects: - $value = $payload['master_branch'] ?? null; + $value = $payload['has_wiki'] ?? null; if ($value === null) { - $missingFields[] = 'master_branch'; - goto after_master_branch; + $missingFields[] = 'has_wiki'; + goto after_has_wiki; } - $properties['master_branch'] = $value; + $properties['has_wiki'] = $value; - after_master_branch: + after_has_wiki: - $value = $payload['starred_at'] ?? null; + $value = $payload['has_pages'] ?? null; if ($value === null) { - $missingFields[] = 'starred_at'; - goto after_starred_at; + $missingFields[] = 'has_pages'; + goto after_has_pages; } - $properties['starred_at'] = $value; + $properties['has_pages'] = $value; - after_starred_at: + after_has_pages: - $value = $payload['anonymous_access_enabled'] ?? null; + $value = $payload['has_downloads'] ?? null; if ($value === null) { - $missingFields[] = 'anonymous_access_enabled'; - goto after_anonymous_access_enabled; + $missingFields[] = 'has_downloads'; + goto after_has_downloads; } - $properties['anonymous_access_enabled'] = $value; + $properties['has_downloads'] = $value; - after_anonymous_access_enabled: - - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\Repository(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository', $exception, stack: $this->hydrationStack); - } - } + after_has_downloads: - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewEdited⚡️Review(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestReviewEdited\Review - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['_links'] ?? null; + $value = $payload['has_discussions'] ?? null; if ($value === null) { - $missingFields[] = '_links'; - goto after__links; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = '_links'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewDismissed⚡️Review⚡️Links($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'has_discussions'; + goto after_has_discussions; } - $properties['_links'] = $value; + $properties['has_discussions'] = $value; - after__links: + after_has_discussions: - $value = $payload['author_association'] ?? null; + $value = $payload['archived'] ?? null; if ($value === null) { - $missingFields[] = 'author_association'; - goto after_author_association; + $missingFields[] = 'archived'; + goto after_archived; } - $properties['author_association'] = $value; + $properties['archived'] = $value; - after_author_association: + after_archived: - $value = $payload['body'] ?? null; + $value = $payload['disabled'] ?? null; if ($value === null) { - $missingFields[] = 'body'; - goto after_body; + $missingFields[] = 'disabled'; + goto after_disabled; } - $properties['body'] = $value; + $properties['disabled'] = $value; - after_body: + after_disabled: - $value = $payload['commit_id'] ?? null; + $value = $payload['visibility'] ?? null; if ($value === null) { - $missingFields[] = 'commit_id'; - goto after_commit_id; - } - - $properties['commit_id'] = $value; - - after_commit_id: - - $value = $payload['html_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'html_url'; - goto after_html_url; - } - - $properties['html_url'] = $value; - - after_html_url: - - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'visibility'; + goto after_visibility; } - $properties['id'] = $value; + $properties['visibility'] = $value; - after_id: + after_visibility: - $value = $payload['node_id'] ?? null; + $value = $payload['pushed_at'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $missingFields[] = 'pushed_at'; + goto after_pushed_at; } - $properties['node_id'] = $value; + $properties['pushed_at'] = $value; - after_node_id: + after_pushed_at: - $value = $payload['pull_request_url'] ?? null; + $value = $payload['created_at'] ?? null; if ($value === null) { - $missingFields[] = 'pull_request_url'; - goto after_pull_request_url; + $missingFields[] = 'created_at'; + goto after_created_at; } - $properties['pull_request_url'] = $value; + $properties['created_at'] = $value; - after_pull_request_url: + after_created_at: - $value = $payload['state'] ?? null; + $value = $payload['updated_at'] ?? null; if ($value === null) { - $missingFields[] = 'state'; - goto after_state; + $missingFields[] = 'updated_at'; + goto after_updated_at; } - $properties['state'] = $value; + $properties['updated_at'] = $value; - after_state: + after_updated_at: - $value = $payload['submitted_at'] ?? null; + $value = $payload['allow_rebase_merge'] ?? null; if ($value === null) { - $missingFields[] = 'submitted_at'; - goto after_submitted_at; + $missingFields[] = 'allow_rebase_merge'; + goto after_allow_rebase_merge; } - $properties['submitted_at'] = $value; + $properties['allow_rebase_merge'] = $value; - after_submitted_at: + after_allow_rebase_merge: - $value = $payload['user'] ?? null; + $value = $payload['template_repository'] ?? null; if ($value === null) { - $missingFields[] = 'user'; - goto after_user; + $missingFields[] = 'template_repository'; + goto after_template_repository; } if (is_array($value)) { try { - $this->hydrationStack[] = 'user'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + $this->hydrationStack[] = 'template_repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository($value); } finally { array_pop($this->hydrationStack); } } - $properties['user'] = $value; + $properties['template_repository'] = $value; - after_user: - - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewEdited\Review', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestReviewEdited\Review::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\WebhookPullRequestReviewEdited\Review(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewEdited\Review', $exception, stack: $this->hydrationStack); - } - } + after_template_repository: - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser(array $payload): \ApiClients\Client\Github\Schema\SimpleUser - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['name'] ?? null; + $value = $payload['temp_clone_token'] ?? null; if ($value === null) { - $missingFields[] = 'name'; - goto after_name; + $missingFields[] = 'temp_clone_token'; + goto after_temp_clone_token; } - $properties['name'] = $value; + $properties['temp_clone_token'] = $value; - after_name: + after_temp_clone_token: - $value = $payload['email'] ?? null; + $value = $payload['allow_squash_merge'] ?? null; if ($value === null) { - $missingFields[] = 'email'; - goto after_email; + $missingFields[] = 'allow_squash_merge'; + goto after_allow_squash_merge; } - $properties['email'] = $value; + $properties['allow_squash_merge'] = $value; - after_email: + after_allow_squash_merge: - $value = $payload['login'] ?? null; + $value = $payload['allow_auto_merge'] ?? null; if ($value === null) { - $missingFields[] = 'login'; - goto after_login; + $missingFields[] = 'allow_auto_merge'; + goto after_allow_auto_merge; } - $properties['login'] = $value; + $properties['allow_auto_merge'] = $value; - after_login: + after_allow_auto_merge: - $value = $payload['id'] ?? null; + $value = $payload['delete_branch_on_merge'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'delete_branch_on_merge'; + goto after_delete_branch_on_merge; } - $properties['id'] = $value; + $properties['delete_branch_on_merge'] = $value; - after_id: + after_delete_branch_on_merge: - $value = $payload['node_id'] ?? null; + $value = $payload['allow_update_branch'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $missingFields[] = 'allow_update_branch'; + goto after_allow_update_branch; } - $properties['node_id'] = $value; + $properties['allow_update_branch'] = $value; - after_node_id: + after_allow_update_branch: - $value = $payload['avatar_url'] ?? null; + $value = $payload['use_squash_pr_title_as_default'] ?? null; if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatar_url; + $missingFields[] = 'use_squash_pr_title_as_default'; + goto after_use_squash_pr_title_as_default; } - $properties['avatar_url'] = $value; + $properties['use_squash_pr_title_as_default'] = $value; - after_avatar_url: + after_use_squash_pr_title_as_default: - $value = $payload['gravatar_id'] ?? null; + $value = $payload['squash_merge_commit_title'] ?? null; if ($value === null) { - $missingFields[] = 'gravatar_id'; - goto after_gravatar_id; + $missingFields[] = 'squash_merge_commit_title'; + goto after_squash_merge_commit_title; } - $properties['gravatar_id'] = $value; + $properties['squash_merge_commit_title'] = $value; - after_gravatar_id: + after_squash_merge_commit_title: - $value = $payload['url'] ?? null; + $value = $payload['squash_merge_commit_message'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $missingFields[] = 'squash_merge_commit_message'; + goto after_squash_merge_commit_message; } - $properties['url'] = $value; + $properties['squash_merge_commit_message'] = $value; - after_url: + after_squash_merge_commit_message: - $value = $payload['html_url'] ?? null; + $value = $payload['merge_commit_title'] ?? null; if ($value === null) { - $missingFields[] = 'html_url'; - goto after_html_url; + $missingFields[] = 'merge_commit_title'; + goto after_merge_commit_title; } - $properties['html_url'] = $value; + $properties['merge_commit_title'] = $value; - after_html_url: + after_merge_commit_title: - $value = $payload['followers_url'] ?? null; + $value = $payload['merge_commit_message'] ?? null; if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followers_url; + $missingFields[] = 'merge_commit_message'; + goto after_merge_commit_message; } - $properties['followers_url'] = $value; + $properties['merge_commit_message'] = $value; - after_followers_url: + after_merge_commit_message: - $value = $payload['following_url'] ?? null; + $value = $payload['allow_merge_commit'] ?? null; if ($value === null) { - $missingFields[] = 'following_url'; - goto after_following_url; + $missingFields[] = 'allow_merge_commit'; + goto after_allow_merge_commit; } - $properties['following_url'] = $value; + $properties['allow_merge_commit'] = $value; - after_following_url: + after_allow_merge_commit: - $value = $payload['gists_url'] ?? null; + $value = $payload['allow_forking'] ?? null; if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gists_url; + $missingFields[] = 'allow_forking'; + goto after_allow_forking; } - $properties['gists_url'] = $value; + $properties['allow_forking'] = $value; - after_gists_url: + after_allow_forking: - $value = $payload['starred_url'] ?? null; + $value = $payload['web_commit_signoff_required'] ?? null; if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starred_url; + $missingFields[] = 'web_commit_signoff_required'; + goto after_web_commit_signoff_required; } - $properties['starred_url'] = $value; + $properties['web_commit_signoff_required'] = $value; - after_starred_url: + after_web_commit_signoff_required: - $value = $payload['subscriptions_url'] ?? null; + $value = $payload['subscribers_count'] ?? null; if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptions_url; + $missingFields[] = 'subscribers_count'; + goto after_subscribers_count; } - $properties['subscriptions_url'] = $value; + $properties['subscribers_count'] = $value; - after_subscriptions_url: + after_subscribers_count: - $value = $payload['organizations_url'] ?? null; + $value = $payload['network_count'] ?? null; if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizations_url; + $missingFields[] = 'network_count'; + goto after_network_count; } - $properties['organizations_url'] = $value; + $properties['network_count'] = $value; - after_organizations_url: + after_network_count: - $value = $payload['repos_url'] ?? null; + $value = $payload['open_issues'] ?? null; if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_repos_url; - } - - $properties['repos_url'] = $value; - - after_repos_url: - - $value = $payload['events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'events_url'; - goto after_events_url; + $missingFields[] = 'open_issues'; + goto after_open_issues; } - $properties['events_url'] = $value; + $properties['open_issues'] = $value; - after_events_url: + after_open_issues: - $value = $payload['received_events_url'] ?? null; + $value = $payload['watchers'] ?? null; if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_received_events_url; + $missingFields[] = 'watchers'; + goto after_watchers; } - $properties['received_events_url'] = $value; + $properties['watchers'] = $value; - after_received_events_url: + after_watchers: - $value = $payload['type'] ?? null; + $value = $payload['master_branch'] ?? null; if ($value === null) { - $missingFields[] = 'type'; - goto after_type; + $missingFields[] = 'master_branch'; + goto after_master_branch; } - $properties['type'] = $value; + $properties['master_branch'] = $value; - after_type: + after_master_branch: - $value = $payload['site_admin'] ?? null; + $value = $payload['starred_at'] ?? null; if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_site_admin; + $missingFields[] = 'starred_at'; + goto after_starred_at; } - $properties['site_admin'] = $value; + $properties['starred_at'] = $value; - after_site_admin: + after_starred_at: - $value = $payload['starred_at'] ?? null; + $value = $payload['anonymous_access_enabled'] ?? null; if ($value === null) { - $missingFields[] = 'starred_at'; - goto after_starred_at; + $missingFields[] = 'anonymous_access_enabled'; + goto after_anonymous_access_enabled; } - $properties['starred_at'] = $value; + $properties['anonymous_access_enabled'] = $value; - after_starred_at: + after_anonymous_access_enabled: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleUser', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\SimpleUser::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\SimpleUser(...$properties); + return new \ApiClients\Client\Github\Schema\Repository(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleUser', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Links + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewDismissed⚡️Review(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestReviewDismissed\Review { $properties = []; $missingFields = []; try { - $value = $payload['comments'] ?? null; + $value = $payload['_links'] ?? null; if ($value === null) { - $missingFields[] = 'comments'; - goto after_comments; + $missingFields[] = '_links'; + goto after__links; } if (is_array($value)) { try { - $this->hydrationStack[] = 'comments'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links⚡️Comments($value); + $this->hydrationStack[] = '_links'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewDismissed⚡️Review⚡️Links($value); } finally { array_pop($this->hydrationStack); } } - $properties['comments'] = $value; + $properties['_links'] = $value; - after_comments: + after__links: - $value = $payload['commits'] ?? null; + $value = $payload['author_association'] ?? null; if ($value === null) { - $missingFields[] = 'commits'; - goto after_commits; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'commits'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links⚡️Comments($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'author_association'; + goto after_author_association; } - $properties['commits'] = $value; + $properties['author_association'] = $value; - after_commits: + after_author_association: - $value = $payload['html'] ?? null; + $value = $payload['body'] ?? null; if ($value === null) { - $missingFields[] = 'html'; - goto after_html; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'html'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links⚡️Comments($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'body'; + goto after_body; } - $properties['html'] = $value; + $properties['body'] = $value; - after_html: + after_body: - $value = $payload['issue'] ?? null; + $value = $payload['commit_id'] ?? null; if ($value === null) { - $missingFields[] = 'issue'; - goto after_issue; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'issue'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links⚡️Comments($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'commit_id'; + goto after_commit_id; } - $properties['issue'] = $value; + $properties['commit_id'] = $value; - after_issue: + after_commit_id: - $value = $payload['review_comment'] ?? null; + $value = $payload['html_url'] ?? null; if ($value === null) { - $missingFields[] = 'review_comment'; - goto after_review_comment; + $missingFields[] = 'html_url'; + goto after_html_url; } - if (is_array($value)) { - try { - $this->hydrationStack[] = 'review_comment'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links⚡️Comments($value); - } finally { - array_pop($this->hydrationStack); - } + $properties['html_url'] = $value; + + after_html_url: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; } - $properties['review_comment'] = $value; + $properties['id'] = $value; - after_review_comment: + after_id: - $value = $payload['review_comments'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $missingFields[] = 'review_comments'; - goto after_review_comments; + $missingFields[] = 'node_id'; + goto after_node_id; } - if (is_array($value)) { - try { - $this->hydrationStack[] = 'review_comments'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links⚡️Comments($value); - } finally { - array_pop($this->hydrationStack); - } + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['pull_request_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'pull_request_url'; + goto after_pull_request_url; } - $properties['review_comments'] = $value; + $properties['pull_request_url'] = $value; - after_review_comments: + after_pull_request_url: - $value = $payload['self'] ?? null; + $value = $payload['state'] ?? null; if ($value === null) { - $missingFields[] = 'self'; - goto after_self; + $missingFields[] = 'state'; + goto after_state; } - if (is_array($value)) { - try { - $this->hydrationStack[] = 'self'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links⚡️Comments($value); - } finally { - array_pop($this->hydrationStack); - } + $properties['state'] = $value; + + after_state: + + $value = $payload['submitted_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'submitted_at'; + goto after_submitted_at; } - $properties['self'] = $value; + $properties['submitted_at'] = $value; - after_self: + after_submitted_at: - $value = $payload['statuses'] ?? null; + $value = $payload['user'] ?? null; if ($value === null) { - $missingFields[] = 'statuses'; - goto after_statuses; + $missingFields[] = 'user'; + goto after_user; } if (is_array($value)) { try { - $this->hydrationStack[] = 'statuses'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links⚡️Comments($value); + $this->hydrationStack[] = 'user'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Comment⚡️User($value); } finally { array_pop($this->hydrationStack); } } - $properties['statuses'] = $value; + $properties['user'] = $value; - after_statuses: + after_user: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Links', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewDismissed\Review', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Links::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestReviewDismissed\Review::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Links(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookPullRequestReviewDismissed\Review(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Links', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewDismissed\Review', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Comment⚡️User(array $payload): \ApiClients\Client\Github\Schema\WebhookIssueCommentDeleted\Comment\User + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser(array $payload): \ApiClients\Client\Github\Schema\SimpleUser { $properties = []; $missingFields = []; try { - $value = $payload['avatar_url'] ?? null; + $value = $payload['name'] ?? null; if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatar_url; + $missingFields[] = 'name'; + goto after_name; } - $properties['avatar_url'] = $value; + $properties['name'] = $value; - after_avatar_url: + after_name: - $value = $payload['deleted'] ?? null; + $value = $payload['email'] ?? null; if ($value === null) { - $missingFields[] = 'deleted'; - goto after_deleted; + $missingFields[] = 'email'; + goto after_email; } - $properties['deleted'] = $value; - - after_deleted: - - $value = $payload['email'] ?? null; - - if ($value === null) { - $missingFields[] = 'email'; - goto after_email; - } - - $properties['email'] = $value; + $properties['email'] = $value; after_email: - $value = $payload['events_url'] ?? null; + $value = $payload['login'] ?? null; if ($value === null) { - $missingFields[] = 'events_url'; - goto after_events_url; + $missingFields[] = 'login'; + goto after_login; } - $properties['events_url'] = $value; + $properties['login'] = $value; - after_events_url: + after_login: - $value = $payload['followers_url'] ?? null; + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followers_url; + $missingFields[] = 'id'; + goto after_id; } - $properties['followers_url'] = $value; + $properties['id'] = $value; - after_followers_url: + after_id: - $value = $payload['following_url'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $missingFields[] = 'following_url'; - goto after_following_url; + $missingFields[] = 'node_id'; + goto after_node_id; } - $properties['following_url'] = $value; + $properties['node_id'] = $value; - after_following_url: + after_node_id: - $value = $payload['gists_url'] ?? null; + $value = $payload['avatar_url'] ?? null; if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gists_url; + $missingFields[] = 'avatar_url'; + goto after_avatar_url; } - $properties['gists_url'] = $value; + $properties['avatar_url'] = $value; - after_gists_url: + after_avatar_url: $value = $payload['gravatar_id'] ?? null; @@ -2865,6 +2798,17 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh after_gravatar_id: + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + $value = $payload['html_url'] ?? null; if ($value === null) { @@ -2876,71 +2820,71 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh after_html_url: - $value = $payload['id'] ?? null; + $value = $payload['followers_url'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'followers_url'; + goto after_followers_url; } - $properties['id'] = $value; + $properties['followers_url'] = $value; - after_id: + after_followers_url: - $value = $payload['login'] ?? null; + $value = $payload['following_url'] ?? null; if ($value === null) { - $missingFields[] = 'login'; - goto after_login; + $missingFields[] = 'following_url'; + goto after_following_url; } - $properties['login'] = $value; + $properties['following_url'] = $value; - after_login: + after_following_url: - $value = $payload['name'] ?? null; + $value = $payload['gists_url'] ?? null; if ($value === null) { - $missingFields[] = 'name'; - goto after_name; + $missingFields[] = 'gists_url'; + goto after_gists_url; } - $properties['name'] = $value; + $properties['gists_url'] = $value; - after_name: + after_gists_url: - $value = $payload['node_id'] ?? null; + $value = $payload['starred_url'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $missingFields[] = 'starred_url'; + goto after_starred_url; } - $properties['node_id'] = $value; + $properties['starred_url'] = $value; - after_node_id: + after_starred_url: - $value = $payload['organizations_url'] ?? null; + $value = $payload['subscriptions_url'] ?? null; if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizations_url; + $missingFields[] = 'subscriptions_url'; + goto after_subscriptions_url; } - $properties['organizations_url'] = $value; + $properties['subscriptions_url'] = $value; - after_organizations_url: + after_subscriptions_url: - $value = $payload['received_events_url'] ?? null; + $value = $payload['organizations_url'] ?? null; if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_received_events_url; + $missingFields[] = 'organizations_url'; + goto after_organizations_url; } - $properties['received_events_url'] = $value; + $properties['organizations_url'] = $value; - after_received_events_url: + after_organizations_url: $value = $payload['repos_url'] ?? null; @@ -2953,422 +2897,4574 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh after_repos_url: - $value = $payload['site_admin'] ?? null; + $value = $payload['events_url'] ?? null; if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_site_admin; + $missingFields[] = 'events_url'; + goto after_events_url; } - $properties['site_admin'] = $value; + $properties['events_url'] = $value; - after_site_admin: + after_events_url: - $value = $payload['starred_url'] ?? null; + $value = $payload['received_events_url'] ?? null; if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starred_url; + $missingFields[] = 'received_events_url'; + goto after_received_events_url; } - $properties['starred_url'] = $value; + $properties['received_events_url'] = $value; - after_starred_url: + after_received_events_url: - $value = $payload['subscriptions_url'] ?? null; + $value = $payload['type'] ?? null; if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptions_url; + $missingFields[] = 'type'; + goto after_type; } - $properties['subscriptions_url'] = $value; + $properties['type'] = $value; - after_subscriptions_url: + after_type: - $value = $payload['type'] ?? null; + $value = $payload['site_admin'] ?? null; if ($value === null) { - $missingFields[] = 'type'; - goto after_type; + $missingFields[] = 'site_admin'; + goto after_site_admin; } - $properties['type'] = $value; + $properties['site_admin'] = $value; - after_type: + after_site_admin: - $value = $payload['url'] ?? null; + $value = $payload['starred_at'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $missingFields[] = 'starred_at'; + goto after_starred_at; } - $properties['url'] = $value; + $properties['starred_at'] = $value; - after_url: + after_starred_at: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssueCommentDeleted\Comment\User', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleUser', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookIssueCommentDeleted\Comment\User::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\SimpleUser::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\WebhookIssueCommentDeleted\Comment\User(...$properties); + return new \ApiClients\Client\Github\Schema\SimpleUser(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssueCommentDeleted\Comment\User', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleUser', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️AutoMerge(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\AutoMerge + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewEdited⚡️Changes(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestReviewEdited\Changes { $properties = []; $missingFields = []; try { - $value = $payload['commit_message'] ?? null; - - if ($value === null) { - $missingFields[] = 'commit_message'; - goto after_commit_message; - } - - $properties['commit_message'] = $value; - - after_commit_message: - - $value = $payload['commit_title'] ?? null; - - if ($value === null) { - $missingFields[] = 'commit_title'; - goto after_commit_title; - } - - $properties['commit_title'] = $value; - - after_commit_title: - - $value = $payload['enabled_by'] ?? null; + $value = $payload['body'] ?? null; if ($value === null) { - $missingFields[] = 'enabled_by'; - goto after_enabled_by; + $missingFields[] = 'body'; + goto after_body; } if (is_array($value)) { try { - $this->hydrationStack[] = 'enabled_by'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + $this->hydrationStack[] = 'body'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectEdited⚡️Changes⚡️Body($value); } finally { array_pop($this->hydrationStack); } } - $properties['enabled_by'] = $value; - - after_enabled_by: - - $value = $payload['merge_method'] ?? null; - - if ($value === null) { - $missingFields[] = 'merge_method'; - goto after_merge_method; - } - - $properties['merge_method'] = $value; + $properties['body'] = $value; - after_merge_method: + after_body: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\AutoMerge', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewEdited\Changes', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\AutoMerge::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestReviewEdited\Changes::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\AutoMerge(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookPullRequestReviewEdited\Changes(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\AutoMerge', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewEdited\Changes', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Base(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Base + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewEdited⚡️PullRequest(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestReviewEdited\PullRequest { $properties = []; $missingFields = []; try { - $value = $payload['label'] ?? null; + $value = $payload['_links'] ?? null; if ($value === null) { - $missingFields[] = 'label'; - goto after_label; + $missingFields[] = '_links'; + goto after__links; } - $properties['label'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = '_links'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['_links'] = $value; - after_label: + after__links: - $value = $payload['ref'] ?? null; + $value = $payload['active_lock_reason'] ?? null; if ($value === null) { - $missingFields[] = 'ref'; - goto after_ref; + $missingFields[] = 'active_lock_reason'; + goto after_active_lock_reason; } - $properties['ref'] = $value; + $properties['active_lock_reason'] = $value; - after_ref: + after_active_lock_reason: - $value = $payload['repo'] ?? null; + $value = $payload['assignee'] ?? null; if ($value === null) { - $missingFields[] = 'repo'; - goto after_repo; + $missingFields[] = 'assignee'; + goto after_assignee; } if (is_array($value)) { try { - $this->hydrationStack[] = 'repo'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Base⚡️Repo($value); + $this->hydrationStack[] = 'assignee'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Comment⚡️User($value); } finally { array_pop($this->hydrationStack); } } - $properties['repo'] = $value; + $properties['assignee'] = $value; - after_repo: + after_assignee: - $value = $payload['sha'] ?? null; + $value = $payload['assignees'] ?? null; if ($value === null) { - $missingFields[] = 'sha'; - goto after_sha; + $missingFields[] = 'assignees'; + goto after_assignees; } - $properties['sha'] = $value; + $properties['assignees'] = $value; - after_sha: + after_assignees: - $value = $payload['user'] ?? null; + $value = $payload['author_association'] ?? null; if ($value === null) { - $missingFields[] = 'user'; - goto after_user; + $missingFields[] = 'author_association'; + goto after_author_association; + } + + $properties['author_association'] = $value; + + after_author_association: + + $value = $payload['auto_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'auto_merge'; + goto after_auto_merge; } if (is_array($value)) { try { - $this->hydrationStack[] = 'user'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + $this->hydrationStack[] = 'auto_merge'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️AutoMerge($value); } finally { array_pop($this->hydrationStack); } } - $properties['user'] = $value; + $properties['auto_merge'] = $value; - after_user: + after_auto_merge: - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Base', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Base::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Base(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Base', $exception, stack: $this->hydrationStack); - } - } + $value = $payload['base'] ?? null; + + if ($value === null) { + $missingFields[] = 'base'; + goto after_base; + } - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Head(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Head - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['label'] ?? null; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'base'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewEdited⚡️PullRequest⚡️Base($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['base'] = $value; + + after_base: + + $value = $payload['body'] ?? null; if ($value === null) { - $missingFields[] = 'label'; - goto after_label; + $missingFields[] = 'body'; + goto after_body; } - $properties['label'] = $value; + $properties['body'] = $value; - after_label: + after_body: - $value = $payload['ref'] ?? null; + $value = $payload['closed_at'] ?? null; if ($value === null) { - $missingFields[] = 'ref'; - goto after_ref; + $missingFields[] = 'closed_at'; + goto after_closed_at; } - $properties['ref'] = $value; + $properties['closed_at'] = $value; - after_ref: + after_closed_at: - $value = $payload['repo'] ?? null; + $value = $payload['comments_url'] ?? null; if ($value === null) { - $missingFields[] = 'repo'; - goto after_repo; + $missingFields[] = 'comments_url'; + goto after_comments_url; } - if (is_array($value)) { - try { - $this->hydrationStack[] = 'repo'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Head⚡️Repo($value); - } finally { - array_pop($this->hydrationStack); - } + $properties['comments_url'] = $value; + + after_comments_url: + + $value = $payload['commits_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'commits_url'; + goto after_commits_url; } - $properties['repo'] = $value; + $properties['commits_url'] = $value; - after_repo: + after_commits_url: - $value = $payload['sha'] ?? null; + $value = $payload['created_at'] ?? null; if ($value === null) { - $missingFields[] = 'sha'; - goto after_sha; + $missingFields[] = 'created_at'; + goto after_created_at; } - $properties['sha'] = $value; + $properties['created_at'] = $value; - after_sha: + after_created_at: - $value = $payload['user'] ?? null; + $value = $payload['diff_url'] ?? null; if ($value === null) { - $missingFields[] = 'user'; - goto after_user; + $missingFields[] = 'diff_url'; + goto after_diff_url; + } + + $properties['diff_url'] = $value; + + after_diff_url: + + $value = $payload['draft'] ?? null; + + if ($value === null) { + $missingFields[] = 'draft'; + goto after_draft; + } + + $properties['draft'] = $value; + + after_draft: + + $value = $payload['head'] ?? null; + + if ($value === null) { + $missingFields[] = 'head'; + goto after_head; } if (is_array($value)) { try { - $this->hydrationStack[] = 'user'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + $this->hydrationStack[] = 'head'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewEdited⚡️PullRequest⚡️Head($value); } finally { array_pop($this->hydrationStack); } } - $properties['user'] = $value; + $properties['head'] = $value; - after_user: + after_head: - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Head', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Head::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Head(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Head', $exception, stack: $this->hydrationStack); - } - } + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesAssigned⚡️Issue⚡️Milestone(array $payload): \ApiClients\Client\Github\Schema\WebhookIssuesAssigned\Issue\Milestone - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['closed_at'] ?? null; + $properties['html_url'] = $value; + + after_html_url: + + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'closed_at'; - goto after_closed_at; + $missingFields[] = 'id'; + goto after_id; } - $properties['closed_at'] = $value; + $properties['id'] = $value; - after_closed_at: + after_id: - $value = $payload['closed_issues'] ?? null; + $value = $payload['issue_url'] ?? null; if ($value === null) { - $missingFields[] = 'closed_issues'; - goto after_closed_issues; + $missingFields[] = 'issue_url'; + goto after_issue_url; } - $properties['closed_issues'] = $value; + $properties['issue_url'] = $value; - after_closed_issues: + after_issue_url: - $value = $payload['created_at'] ?? null; + $value = $payload['labels'] ?? null; if ($value === null) { - $missingFields[] = 'created_at'; - goto after_created_at; + $missingFields[] = 'labels'; + goto after_labels; } - $properties['created_at'] = $value; + $properties['labels'] = $value; - after_created_at: + after_labels: - $value = $payload['creator'] ?? null; + $value = $payload['locked'] ?? null; if ($value === null) { - $missingFields[] = 'creator'; - goto after_creator; + $missingFields[] = 'locked'; + goto after_locked; } - if (is_array($value)) { - try { - $this->hydrationStack[] = 'creator'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Comment⚡️User($value); - } finally { - array_pop($this->hydrationStack); - } + $properties['locked'] = $value; + + after_locked: + + $value = $payload['merge_commit_sha'] ?? null; + + if ($value === null) { + $missingFields[] = 'merge_commit_sha'; + goto after_merge_commit_sha; + } + + $properties['merge_commit_sha'] = $value; + + after_merge_commit_sha: + + $value = $payload['merged_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'merged_at'; + goto after_merged_at; + } + + $properties['merged_at'] = $value; + + after_merged_at: + + $value = $payload['milestone'] ?? null; + + if ($value === null) { + $missingFields[] = 'milestone'; + goto after_milestone; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'milestone'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesAssigned⚡️Issue⚡️Milestone($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['milestone'] = $value; + + after_milestone: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['number'] ?? null; + + if ($value === null) { + $missingFields[] = 'number'; + goto after_number; + } + + $properties['number'] = $value; + + after_number: + + $value = $payload['patch_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'patch_url'; + goto after_patch_url; + } + + $properties['patch_url'] = $value; + + after_patch_url: + + $value = $payload['requested_reviewers'] ?? null; + + if ($value === null) { + $missingFields[] = 'requested_reviewers'; + goto after_requested_reviewers; + } + + $properties['requested_reviewers'] = $value; + + after_requested_reviewers: + + $value = $payload['requested_teams'] ?? null; + + if ($value === null) { + $missingFields[] = 'requested_teams'; + goto after_requested_teams; + } + + $properties['requested_teams'] = $value; + + after_requested_teams: + + $value = $payload['review_comment_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'review_comment_url'; + goto after_review_comment_url; + } + + $properties['review_comment_url'] = $value; + + after_review_comment_url: + + $value = $payload['review_comments_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'review_comments_url'; + goto after_review_comments_url; + } + + $properties['review_comments_url'] = $value; + + after_review_comments_url: + + $value = $payload['state'] ?? null; + + if ($value === null) { + $missingFields[] = 'state'; + goto after_state; + } + + $properties['state'] = $value; + + after_state: + + $value = $payload['statuses_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'statuses_url'; + goto after_statuses_url; + } + + $properties['statuses_url'] = $value; + + after_statuses_url: + + $value = $payload['title'] ?? null; + + if ($value === null) { + $missingFields[] = 'title'; + goto after_title; + } + + $properties['title'] = $value; + + after_title: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'updated_at'; + goto after_updated_at; + } + + $properties['updated_at'] = $value; + + after_updated_at: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['user'] ?? null; + + if ($value === null) { + $missingFields[] = 'user'; + goto after_user; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'user'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Comment⚡️User($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['user'] = $value; + + after_user: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewEdited\PullRequest', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestReviewEdited\PullRequest::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookPullRequestReviewEdited\PullRequest(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewEdited\PullRequest', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewEdited⚡️Review(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestReviewEdited\Review + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['_links'] ?? null; + + if ($value === null) { + $missingFields[] = '_links'; + goto after__links; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = '_links'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewDismissed⚡️Review⚡️Links($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['_links'] = $value; + + after__links: + + $value = $payload['author_association'] ?? null; + + if ($value === null) { + $missingFields[] = 'author_association'; + goto after_author_association; + } + + $properties['author_association'] = $value; + + after_author_association: + + $value = $payload['body'] ?? null; + + if ($value === null) { + $missingFields[] = 'body'; + goto after_body; + } + + $properties['body'] = $value; + + after_body: + + $value = $payload['commit_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'commit_id'; + goto after_commit_id; + } + + $properties['commit_id'] = $value; + + after_commit_id: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } + + $properties['html_url'] = $value; + + after_html_url: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['pull_request_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'pull_request_url'; + goto after_pull_request_url; + } + + $properties['pull_request_url'] = $value; + + after_pull_request_url: + + $value = $payload['state'] ?? null; + + if ($value === null) { + $missingFields[] = 'state'; + goto after_state; + } + + $properties['state'] = $value; + + after_state: + + $value = $payload['submitted_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'submitted_at'; + goto after_submitted_at; + } + + $properties['submitted_at'] = $value; + + after_submitted_at: + + $value = $payload['user'] ?? null; + + if ($value === null) { + $missingFields[] = 'user'; + goto after_user; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'user'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['user'] = $value; + + after_user: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewEdited\Review', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestReviewEdited\Review::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookPullRequestReviewEdited\Review(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewEdited\Review', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewSubmitted⚡️PullRequest(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestReviewSubmitted\PullRequest + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['_links'] ?? null; + + if ($value === null) { + $missingFields[] = '_links'; + goto after__links; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = '_links'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['_links'] = $value; + + after__links: + + $value = $payload['active_lock_reason'] ?? null; + + if ($value === null) { + $missingFields[] = 'active_lock_reason'; + goto after_active_lock_reason; + } + + $properties['active_lock_reason'] = $value; + + after_active_lock_reason: + + $value = $payload['assignee'] ?? null; + + if ($value === null) { + $missingFields[] = 'assignee'; + goto after_assignee; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'assignee'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Comment⚡️User($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['assignee'] = $value; + + after_assignee: + + $value = $payload['assignees'] ?? null; + + if ($value === null) { + $missingFields[] = 'assignees'; + goto after_assignees; + } + + $properties['assignees'] = $value; + + after_assignees: + + $value = $payload['author_association'] ?? null; + + if ($value === null) { + $missingFields[] = 'author_association'; + goto after_author_association; + } + + $properties['author_association'] = $value; + + after_author_association: + + $value = $payload['auto_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'auto_merge'; + goto after_auto_merge; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'auto_merge'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️AutoMerge($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['auto_merge'] = $value; + + after_auto_merge: + + $value = $payload['base'] ?? null; + + if ($value === null) { + $missingFields[] = 'base'; + goto after_base; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'base'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Base($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['base'] = $value; + + after_base: + + $value = $payload['body'] ?? null; + + if ($value === null) { + $missingFields[] = 'body'; + goto after_body; + } + + $properties['body'] = $value; + + after_body: + + $value = $payload['closed_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'closed_at'; + goto after_closed_at; + } + + $properties['closed_at'] = $value; + + after_closed_at: + + $value = $payload['comments_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'comments_url'; + goto after_comments_url; + } + + $properties['comments_url'] = $value; + + after_comments_url: + + $value = $payload['commits_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'commits_url'; + goto after_commits_url; + } + + $properties['commits_url'] = $value; + + after_commits_url: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'created_at'; + goto after_created_at; + } + + $properties['created_at'] = $value; + + after_created_at: + + $value = $payload['diff_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'diff_url'; + goto after_diff_url; + } + + $properties['diff_url'] = $value; + + after_diff_url: + + $value = $payload['draft'] ?? null; + + if ($value === null) { + $missingFields[] = 'draft'; + goto after_draft; + } + + $properties['draft'] = $value; + + after_draft: + + $value = $payload['head'] ?? null; + + if ($value === null) { + $missingFields[] = 'head'; + goto after_head; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'head'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Head($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['head'] = $value; + + after_head: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } + + $properties['html_url'] = $value; + + after_html_url: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['issue_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issue_url'; + goto after_issue_url; + } + + $properties['issue_url'] = $value; + + after_issue_url: + + $value = $payload['labels'] ?? null; + + if ($value === null) { + $missingFields[] = 'labels'; + goto after_labels; + } + + $properties['labels'] = $value; + + after_labels: + + $value = $payload['locked'] ?? null; + + if ($value === null) { + $missingFields[] = 'locked'; + goto after_locked; + } + + $properties['locked'] = $value; + + after_locked: + + $value = $payload['merge_commit_sha'] ?? null; + + if ($value === null) { + $missingFields[] = 'merge_commit_sha'; + goto after_merge_commit_sha; + } + + $properties['merge_commit_sha'] = $value; + + after_merge_commit_sha: + + $value = $payload['merged_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'merged_at'; + goto after_merged_at; + } + + $properties['merged_at'] = $value; + + after_merged_at: + + $value = $payload['milestone'] ?? null; + + if ($value === null) { + $missingFields[] = 'milestone'; + goto after_milestone; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'milestone'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesAssigned⚡️Issue⚡️Milestone($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['milestone'] = $value; + + after_milestone: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['number'] ?? null; + + if ($value === null) { + $missingFields[] = 'number'; + goto after_number; + } + + $properties['number'] = $value; + + after_number: + + $value = $payload['patch_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'patch_url'; + goto after_patch_url; + } + + $properties['patch_url'] = $value; + + after_patch_url: + + $value = $payload['requested_reviewers'] ?? null; + + if ($value === null) { + $missingFields[] = 'requested_reviewers'; + goto after_requested_reviewers; + } + + $properties['requested_reviewers'] = $value; + + after_requested_reviewers: + + $value = $payload['requested_teams'] ?? null; + + if ($value === null) { + $missingFields[] = 'requested_teams'; + goto after_requested_teams; + } + + $properties['requested_teams'] = $value; + + after_requested_teams: + + $value = $payload['review_comment_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'review_comment_url'; + goto after_review_comment_url; + } + + $properties['review_comment_url'] = $value; + + after_review_comment_url: + + $value = $payload['review_comments_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'review_comments_url'; + goto after_review_comments_url; + } + + $properties['review_comments_url'] = $value; + + after_review_comments_url: + + $value = $payload['state'] ?? null; + + if ($value === null) { + $missingFields[] = 'state'; + goto after_state; + } + + $properties['state'] = $value; + + after_state: + + $value = $payload['statuses_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'statuses_url'; + goto after_statuses_url; + } + + $properties['statuses_url'] = $value; + + after_statuses_url: + + $value = $payload['title'] ?? null; + + if ($value === null) { + $missingFields[] = 'title'; + goto after_title; + } + + $properties['title'] = $value; + + after_title: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'updated_at'; + goto after_updated_at; + } + + $properties['updated_at'] = $value; + + after_updated_at: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['user'] ?? null; + + if ($value === null) { + $missingFields[] = 'user'; + goto after_user; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'user'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Comment⚡️User($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['user'] = $value; + + after_user: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewSubmitted\PullRequest', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestReviewSubmitted\PullRequest::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookPullRequestReviewSubmitted\PullRequest(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewSubmitted\PullRequest', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Links + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['comments'] ?? null; + + if ($value === null) { + $missingFields[] = 'comments'; + goto after_comments; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'comments'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links⚡️Comments($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['comments'] = $value; + + after_comments: + + $value = $payload['commits'] ?? null; + + if ($value === null) { + $missingFields[] = 'commits'; + goto after_commits; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'commits'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links⚡️Comments($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['commits'] = $value; + + after_commits: + + $value = $payload['html'] ?? null; + + if ($value === null) { + $missingFields[] = 'html'; + goto after_html; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'html'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links⚡️Comments($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['html'] = $value; + + after_html: + + $value = $payload['issue'] ?? null; + + if ($value === null) { + $missingFields[] = 'issue'; + goto after_issue; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'issue'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links⚡️Comments($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['issue'] = $value; + + after_issue: + + $value = $payload['review_comment'] ?? null; + + if ($value === null) { + $missingFields[] = 'review_comment'; + goto after_review_comment; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'review_comment'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links⚡️Comments($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['review_comment'] = $value; + + after_review_comment: + + $value = $payload['review_comments'] ?? null; + + if ($value === null) { + $missingFields[] = 'review_comments'; + goto after_review_comments; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'review_comments'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links⚡️Comments($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['review_comments'] = $value; + + after_review_comments: + + $value = $payload['self'] ?? null; + + if ($value === null) { + $missingFields[] = 'self'; + goto after_self; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'self'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links⚡️Comments($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['self'] = $value; + + after_self: + + $value = $payload['statuses'] ?? null; + + if ($value === null) { + $missingFields[] = 'statuses'; + goto after_statuses; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'statuses'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links⚡️Comments($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['statuses'] = $value; + + after_statuses: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Links', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Links::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Links(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Links', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Comment⚡️User(array $payload): \ApiClients\Client\Github\Schema\WebhookIssueCommentDeleted\Comment\User + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['avatar_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'avatar_url'; + goto after_avatar_url; + } + + $properties['avatar_url'] = $value; + + after_avatar_url: + + $value = $payload['deleted'] ?? null; + + if ($value === null) { + $missingFields[] = 'deleted'; + goto after_deleted; + } + + $properties['deleted'] = $value; + + after_deleted: + + $value = $payload['email'] ?? null; + + if ($value === null) { + $missingFields[] = 'email'; + goto after_email; + } + + $properties['email'] = $value; + + after_email: + + $value = $payload['events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'events_url'; + goto after_events_url; + } + + $properties['events_url'] = $value; + + after_events_url: + + $value = $payload['followers_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'followers_url'; + goto after_followers_url; + } + + $properties['followers_url'] = $value; + + after_followers_url: + + $value = $payload['following_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'following_url'; + goto after_following_url; + } + + $properties['following_url'] = $value; + + after_following_url: + + $value = $payload['gists_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'gists_url'; + goto after_gists_url; + } + + $properties['gists_url'] = $value; + + after_gists_url: + + $value = $payload['gravatar_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'gravatar_id'; + goto after_gravatar_id; + } + + $properties['gravatar_id'] = $value; + + after_gravatar_id: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } + + $properties['html_url'] = $value; + + after_html_url: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['login'] ?? null; + + if ($value === null) { + $missingFields[] = 'login'; + goto after_login; + } + + $properties['login'] = $value; + + after_login: + + $value = $payload['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['organizations_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'organizations_url'; + goto after_organizations_url; + } + + $properties['organizations_url'] = $value; + + after_organizations_url: + + $value = $payload['received_events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'received_events_url'; + goto after_received_events_url; + } + + $properties['received_events_url'] = $value; + + after_received_events_url: + + $value = $payload['repos_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'repos_url'; + goto after_repos_url; + } + + $properties['repos_url'] = $value; + + after_repos_url: + + $value = $payload['site_admin'] ?? null; + + if ($value === null) { + $missingFields[] = 'site_admin'; + goto after_site_admin; + } + + $properties['site_admin'] = $value; + + after_site_admin: + + $value = $payload['starred_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'starred_url'; + goto after_starred_url; + } + + $properties['starred_url'] = $value; + + after_starred_url: + + $value = $payload['subscriptions_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscriptions_url'; + goto after_subscriptions_url; + } + + $properties['subscriptions_url'] = $value; + + after_subscriptions_url: + + $value = $payload['type'] ?? null; + + if ($value === null) { + $missingFields[] = 'type'; + goto after_type; + } + + $properties['type'] = $value; + + after_type: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssueCommentDeleted\Comment\User', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookIssueCommentDeleted\Comment\User::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookIssueCommentDeleted\Comment\User(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssueCommentDeleted\Comment\User', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️AutoMerge(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\AutoMerge + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['commit_message'] ?? null; + + if ($value === null) { + $missingFields[] = 'commit_message'; + goto after_commit_message; + } + + $properties['commit_message'] = $value; + + after_commit_message: + + $value = $payload['commit_title'] ?? null; + + if ($value === null) { + $missingFields[] = 'commit_title'; + goto after_commit_title; + } + + $properties['commit_title'] = $value; + + after_commit_title: + + $value = $payload['enabled_by'] ?? null; + + if ($value === null) { + $missingFields[] = 'enabled_by'; + goto after_enabled_by; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enabled_by'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['enabled_by'] = $value; + + after_enabled_by: + + $value = $payload['merge_method'] ?? null; + + if ($value === null) { + $missingFields[] = 'merge_method'; + goto after_merge_method; + } + + $properties['merge_method'] = $value; + + after_merge_method: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\AutoMerge', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\AutoMerge::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\AutoMerge(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\AutoMerge', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Base(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Base + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['label'] ?? null; + + if ($value === null) { + $missingFields[] = 'label'; + goto after_label; + } + + $properties['label'] = $value; + + after_label: + + $value = $payload['ref'] ?? null; + + if ($value === null) { + $missingFields[] = 'ref'; + goto after_ref; + } + + $properties['ref'] = $value; + + after_ref: + + $value = $payload['repo'] ?? null; + + if ($value === null) { + $missingFields[] = 'repo'; + goto after_repo; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repo'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Base⚡️Repo($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repo'] = $value; + + after_repo: + + $value = $payload['sha'] ?? null; + + if ($value === null) { + $missingFields[] = 'sha'; + goto after_sha; + } + + $properties['sha'] = $value; + + after_sha: + + $value = $payload['user'] ?? null; + + if ($value === null) { + $missingFields[] = 'user'; + goto after_user; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'user'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['user'] = $value; + + after_user: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Base', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Base::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Base(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Base', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewCommentDeleted⚡️PullRequest⚡️Head(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentDeleted\PullRequest\Head + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['label'] ?? null; + + if ($value === null) { + $missingFields[] = 'label'; + goto after_label; + } + + $properties['label'] = $value; + + after_label: + + $value = $payload['ref'] ?? null; + + if ($value === null) { + $missingFields[] = 'ref'; + goto after_ref; + } + + $properties['ref'] = $value; + + after_ref: + + $value = $payload['repo'] ?? null; + + if ($value === null) { + $missingFields[] = 'repo'; + goto after_repo; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repo'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Head⚡️Repo($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repo'] = $value; + + after_repo: + + $value = $payload['sha'] ?? null; + + if ($value === null) { + $missingFields[] = 'sha'; + goto after_sha; + } + + $properties['sha'] = $value; + + after_sha: + + $value = $payload['user'] ?? null; + + if ($value === null) { + $missingFields[] = 'user'; + goto after_user; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'user'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['user'] = $value; + + after_user: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentDeleted\PullRequest\Head', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentDeleted\PullRequest\Head::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentDeleted\PullRequest\Head(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentDeleted\PullRequest\Head', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesDeleted⚡️Issue⚡️Milestone(array $payload): \ApiClients\Client\Github\Schema\WebhookIssuesDeleted\Issue\Milestone + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['closed_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'closed_at'; + goto after_closed_at; + } + + $properties['closed_at'] = $value; + + after_closed_at: + + $value = $payload['closed_issues'] ?? null; + + if ($value === null) { + $missingFields[] = 'closed_issues'; + goto after_closed_issues; + } + + $properties['closed_issues'] = $value; + + after_closed_issues: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'created_at'; + goto after_created_at; + } + + $properties['created_at'] = $value; + + after_created_at: + + $value = $payload['creator'] ?? null; + + if ($value === null) { + $missingFields[] = 'creator'; + goto after_creator; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'creator'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['creator'] = $value; + + after_creator: + + $value = $payload['description'] ?? null; + + if ($value === null) { + $missingFields[] = 'description'; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['due_on'] ?? null; + + if ($value === null) { + $missingFields[] = 'due_on'; + goto after_due_on; + } + + $properties['due_on'] = $value; + + after_due_on: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } + + $properties['html_url'] = $value; + + after_html_url: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['labels_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'labels_url'; + goto after_labels_url; + } + + $properties['labels_url'] = $value; + + after_labels_url: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['number'] ?? null; + + if ($value === null) { + $missingFields[] = 'number'; + goto after_number; + } + + $properties['number'] = $value; + + after_number: + + $value = $payload['open_issues'] ?? null; + + if ($value === null) { + $missingFields[] = 'open_issues'; + goto after_open_issues; + } + + $properties['open_issues'] = $value; + + after_open_issues: + + $value = $payload['state'] ?? null; + + if ($value === null) { + $missingFields[] = 'state'; + goto after_state; + } + + $properties['state'] = $value; + + after_state: + + $value = $payload['title'] ?? null; + + if ($value === null) { + $missingFields[] = 'title'; + goto after_title; + } + + $properties['title'] = $value; + + after_title: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'updated_at'; + goto after_updated_at; + } + + $properties['updated_at'] = $value; + + after_updated_at: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesDeleted\Issue\Milestone', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookIssuesDeleted\Issue\Milestone::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookIssuesDeleted\Issue\Milestone(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesDeleted\Issue\Milestone', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️Permissions(array $payload): \ApiClients\Client\Github\Schema\Repository\Permissions + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['admin'] ?? null; + + if ($value === null) { + $missingFields[] = 'admin'; + goto after_admin; + } + + $properties['admin'] = $value; + + after_admin: + + $value = $payload['pull'] ?? null; + + if ($value === null) { + $missingFields[] = 'pull'; + goto after_pull; + } + + $properties['pull'] = $value; + + after_pull: + + $value = $payload['triage'] ?? null; + + if ($value === null) { + $missingFields[] = 'triage'; + goto after_triage; + } + + $properties['triage'] = $value; + + after_triage: + + $value = $payload['push'] ?? null; + + if ($value === null) { + $missingFields[] = 'push'; + goto after_push; + } + + $properties['push'] = $value; + + after_push: + + $value = $payload['maintain'] ?? null; + + if ($value === null) { + $missingFields[] = 'maintain'; + goto after_maintain; + } + + $properties['maintain'] = $value; + + after_maintain: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\Permissions', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\Permissions::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\Repository\Permissions(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\Permissions', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository(array $payload): \ApiClients\Client\Github\Schema\Repository\TemplateRepository + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['full_name'] ?? null; + + if ($value === null) { + $missingFields[] = 'full_name'; + goto after_full_name; + } + + $properties['full_name'] = $value; + + after_full_name: + + $value = $payload['owner'] ?? null; + + if ($value === null) { + $missingFields[] = 'owner'; + goto after_owner; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'owner'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['owner'] = $value; + + after_owner: + + $value = $payload['private'] ?? null; + + if ($value === null) { + $missingFields[] = 'private'; + goto after_private; + } + + $properties['private'] = $value; + + after_private: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } + + $properties['html_url'] = $value; + + after_html_url: + + $value = $payload['description'] ?? null; + + if ($value === null) { + $missingFields[] = 'description'; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['fork'] ?? null; + + if ($value === null) { + $missingFields[] = 'fork'; + goto after_fork; + } + + $properties['fork'] = $value; + + after_fork: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['archive_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'archive_url'; + goto after_archive_url; + } + + $properties['archive_url'] = $value; + + after_archive_url: + + $value = $payload['assignees_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'assignees_url'; + goto after_assignees_url; + } + + $properties['assignees_url'] = $value; + + after_assignees_url: + + $value = $payload['blobs_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'blobs_url'; + goto after_blobs_url; + } + + $properties['blobs_url'] = $value; + + after_blobs_url: + + $value = $payload['branches_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'branches_url'; + goto after_branches_url; + } + + $properties['branches_url'] = $value; + + after_branches_url: + + $value = $payload['collaborators_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'collaborators_url'; + goto after_collaborators_url; + } + + $properties['collaborators_url'] = $value; + + after_collaborators_url: + + $value = $payload['comments_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'comments_url'; + goto after_comments_url; + } + + $properties['comments_url'] = $value; + + after_comments_url: + + $value = $payload['commits_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'commits_url'; + goto after_commits_url; + } + + $properties['commits_url'] = $value; + + after_commits_url: + + $value = $payload['compare_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'compare_url'; + goto after_compare_url; + } + + $properties['compare_url'] = $value; + + after_compare_url: + + $value = $payload['contents_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'contents_url'; + goto after_contents_url; + } + + $properties['contents_url'] = $value; + + after_contents_url: + + $value = $payload['contributors_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'contributors_url'; + goto after_contributors_url; + } + + $properties['contributors_url'] = $value; + + after_contributors_url: + + $value = $payload['deployments_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'deployments_url'; + goto after_deployments_url; + } + + $properties['deployments_url'] = $value; + + after_deployments_url: + + $value = $payload['downloads_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'downloads_url'; + goto after_downloads_url; + } + + $properties['downloads_url'] = $value; + + after_downloads_url: + + $value = $payload['events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'events_url'; + goto after_events_url; + } + + $properties['events_url'] = $value; + + after_events_url: + + $value = $payload['forks_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'forks_url'; + goto after_forks_url; + } + + $properties['forks_url'] = $value; + + after_forks_url: + + $value = $payload['git_commits_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_commits_url'; + goto after_git_commits_url; + } + + $properties['git_commits_url'] = $value; + + after_git_commits_url: + + $value = $payload['git_refs_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_refs_url'; + goto after_git_refs_url; + } + + $properties['git_refs_url'] = $value; + + after_git_refs_url: + + $value = $payload['git_tags_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_tags_url'; + goto after_git_tags_url; + } + + $properties['git_tags_url'] = $value; + + after_git_tags_url: + + $value = $payload['git_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_url'; + goto after_git_url; + } + + $properties['git_url'] = $value; + + after_git_url: + + $value = $payload['issue_comment_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issue_comment_url'; + goto after_issue_comment_url; + } + + $properties['issue_comment_url'] = $value; + + after_issue_comment_url: + + $value = $payload['issue_events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issue_events_url'; + goto after_issue_events_url; + } + + $properties['issue_events_url'] = $value; + + after_issue_events_url: + + $value = $payload['issues_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issues_url'; + goto after_issues_url; + } + + $properties['issues_url'] = $value; + + after_issues_url: + + $value = $payload['keys_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'keys_url'; + goto after_keys_url; + } + + $properties['keys_url'] = $value; + + after_keys_url: + + $value = $payload['labels_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'labels_url'; + goto after_labels_url; + } + + $properties['labels_url'] = $value; + + after_labels_url: + + $value = $payload['languages_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'languages_url'; + goto after_languages_url; + } + + $properties['languages_url'] = $value; + + after_languages_url: + + $value = $payload['merges_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'merges_url'; + goto after_merges_url; + } + + $properties['merges_url'] = $value; + + after_merges_url: + + $value = $payload['milestones_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'milestones_url'; + goto after_milestones_url; + } + + $properties['milestones_url'] = $value; + + after_milestones_url: + + $value = $payload['notifications_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'notifications_url'; + goto after_notifications_url; + } + + $properties['notifications_url'] = $value; + + after_notifications_url: + + $value = $payload['pulls_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'pulls_url'; + goto after_pulls_url; + } + + $properties['pulls_url'] = $value; + + after_pulls_url: + + $value = $payload['releases_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'releases_url'; + goto after_releases_url; + } + + $properties['releases_url'] = $value; + + after_releases_url: + + $value = $payload['ssh_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'ssh_url'; + goto after_ssh_url; + } + + $properties['ssh_url'] = $value; + + after_ssh_url: + + $value = $payload['stargazers_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'stargazers_url'; + goto after_stargazers_url; + } + + $properties['stargazers_url'] = $value; + + after_stargazers_url: + + $value = $payload['statuses_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'statuses_url'; + goto after_statuses_url; + } + + $properties['statuses_url'] = $value; + + after_statuses_url: + + $value = $payload['subscribers_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscribers_url'; + goto after_subscribers_url; + } + + $properties['subscribers_url'] = $value; + + after_subscribers_url: + + $value = $payload['subscription_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscription_url'; + goto after_subscription_url; + } + + $properties['subscription_url'] = $value; + + after_subscription_url: + + $value = $payload['tags_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'tags_url'; + goto after_tags_url; + } + + $properties['tags_url'] = $value; + + after_tags_url: + + $value = $payload['teams_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'teams_url'; + goto after_teams_url; + } + + $properties['teams_url'] = $value; + + after_teams_url: + + $value = $payload['trees_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'trees_url'; + goto after_trees_url; + } + + $properties['trees_url'] = $value; + + after_trees_url: + + $value = $payload['clone_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'clone_url'; + goto after_clone_url; + } + + $properties['clone_url'] = $value; + + after_clone_url: + + $value = $payload['mirror_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'mirror_url'; + goto after_mirror_url; + } + + $properties['mirror_url'] = $value; + + after_mirror_url: + + $value = $payload['hooks_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'hooks_url'; + goto after_hooks_url; + } + + $properties['hooks_url'] = $value; + + after_hooks_url: + + $value = $payload['svn_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'svn_url'; + goto after_svn_url; + } + + $properties['svn_url'] = $value; + + after_svn_url: + + $value = $payload['homepage'] ?? null; + + if ($value === null) { + $missingFields[] = 'homepage'; + goto after_homepage; + } + + $properties['homepage'] = $value; + + after_homepage: + + $value = $payload['language'] ?? null; + + if ($value === null) { + $missingFields[] = 'language'; + goto after_language; + } + + $properties['language'] = $value; + + after_language: + + $value = $payload['forks_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'forks_count'; + goto after_forks_count; + } + + $properties['forks_count'] = $value; + + after_forks_count: + + $value = $payload['stargazers_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'stargazers_count'; + goto after_stargazers_count; + } + + $properties['stargazers_count'] = $value; + + after_stargazers_count: + + $value = $payload['watchers_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'watchers_count'; + goto after_watchers_count; + } + + $properties['watchers_count'] = $value; + + after_watchers_count: + + $value = $payload['size'] ?? null; + + if ($value === null) { + $missingFields[] = 'size'; + goto after_size; + } + + $properties['size'] = $value; + + after_size: + + $value = $payload['default_branch'] ?? null; + + if ($value === null) { + $missingFields[] = 'default_branch'; + goto after_default_branch; + } + + $properties['default_branch'] = $value; + + after_default_branch: + + $value = $payload['open_issues_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'open_issues_count'; + goto after_open_issues_count; + } + + $properties['open_issues_count'] = $value; + + after_open_issues_count: + + $value = $payload['is_template'] ?? null; + + if ($value === null) { + $missingFields[] = 'is_template'; + goto after_is_template; + } + + $properties['is_template'] = $value; + + after_is_template: + + $value = $payload['topics'] ?? null; + + if ($value === null) { + $missingFields[] = 'topics'; + goto after_topics; + } + + $properties['topics'] = $value; + + after_topics: + + $value = $payload['has_issues'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_issues'; + goto after_has_issues; + } + + $properties['has_issues'] = $value; + + after_has_issues: + + $value = $payload['has_projects'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_projects'; + goto after_has_projects; + } + + $properties['has_projects'] = $value; + + after_has_projects: + + $value = $payload['has_wiki'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_wiki'; + goto after_has_wiki; + } + + $properties['has_wiki'] = $value; + + after_has_wiki: + + $value = $payload['has_pages'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_pages'; + goto after_has_pages; + } + + $properties['has_pages'] = $value; + + after_has_pages: + + $value = $payload['has_downloads'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_downloads'; + goto after_has_downloads; + } + + $properties['has_downloads'] = $value; + + after_has_downloads: + + $value = $payload['archived'] ?? null; + + if ($value === null) { + $missingFields[] = 'archived'; + goto after_archived; + } + + $properties['archived'] = $value; + + after_archived: + + $value = $payload['disabled'] ?? null; + + if ($value === null) { + $missingFields[] = 'disabled'; + goto after_disabled; + } + + $properties['disabled'] = $value; + + after_disabled: + + $value = $payload['visibility'] ?? null; + + if ($value === null) { + $missingFields[] = 'visibility'; + goto after_visibility; + } + + $properties['visibility'] = $value; + + after_visibility: + + $value = $payload['pushed_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'pushed_at'; + goto after_pushed_at; + } + + $properties['pushed_at'] = $value; + + after_pushed_at: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'created_at'; + goto after_created_at; + } + + $properties['created_at'] = $value; + + after_created_at: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'updated_at'; + goto after_updated_at; + } + + $properties['updated_at'] = $value; + + after_updated_at: + + $value = $payload['permissions'] ?? null; + + if ($value === null) { + $missingFields[] = 'permissions'; + goto after_permissions; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'permissions'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Permissions($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['permissions'] = $value; + + after_permissions: + + $value = $payload['allow_rebase_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_rebase_merge'; + goto after_allow_rebase_merge; + } + + $properties['allow_rebase_merge'] = $value; + + after_allow_rebase_merge: + + $value = $payload['temp_clone_token'] ?? null; + + if ($value === null) { + $missingFields[] = 'temp_clone_token'; + goto after_temp_clone_token; + } + + $properties['temp_clone_token'] = $value; + + after_temp_clone_token: + + $value = $payload['allow_squash_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_squash_merge'; + goto after_allow_squash_merge; + } + + $properties['allow_squash_merge'] = $value; + + after_allow_squash_merge: + + $value = $payload['allow_auto_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_auto_merge'; + goto after_allow_auto_merge; + } + + $properties['allow_auto_merge'] = $value; + + after_allow_auto_merge: + + $value = $payload['delete_branch_on_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'delete_branch_on_merge'; + goto after_delete_branch_on_merge; + } + + $properties['delete_branch_on_merge'] = $value; + + after_delete_branch_on_merge: + + $value = $payload['allow_update_branch'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_update_branch'; + goto after_allow_update_branch; + } + + $properties['allow_update_branch'] = $value; + + after_allow_update_branch: + + $value = $payload['use_squash_pr_title_as_default'] ?? null; + + if ($value === null) { + $missingFields[] = 'use_squash_pr_title_as_default'; + goto after_use_squash_pr_title_as_default; + } + + $properties['use_squash_pr_title_as_default'] = $value; + + after_use_squash_pr_title_as_default: + + $value = $payload['squash_merge_commit_title'] ?? null; + + if ($value === null) { + $missingFields[] = 'squash_merge_commit_title'; + goto after_squash_merge_commit_title; + } + + $properties['squash_merge_commit_title'] = $value; + + after_squash_merge_commit_title: + + $value = $payload['squash_merge_commit_message'] ?? null; + + if ($value === null) { + $missingFields[] = 'squash_merge_commit_message'; + goto after_squash_merge_commit_message; + } + + $properties['squash_merge_commit_message'] = $value; + + after_squash_merge_commit_message: + + $value = $payload['merge_commit_title'] ?? null; + + if ($value === null) { + $missingFields[] = 'merge_commit_title'; + goto after_merge_commit_title; + } + + $properties['merge_commit_title'] = $value; + + after_merge_commit_title: + + $value = $payload['merge_commit_message'] ?? null; + + if ($value === null) { + $missingFields[] = 'merge_commit_message'; + goto after_merge_commit_message; + } + + $properties['merge_commit_message'] = $value; + + after_merge_commit_message: + + $value = $payload['allow_merge_commit'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_merge_commit'; + goto after_allow_merge_commit; + } + + $properties['allow_merge_commit'] = $value; + + after_allow_merge_commit: + + $value = $payload['subscribers_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscribers_count'; + goto after_subscribers_count; + } + + $properties['subscribers_count'] = $value; + + after_subscribers_count: + + $value = $payload['network_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'network_count'; + goto after_network_count; + } + + $properties['network_count'] = $value; + + after_network_count: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\TemplateRepository::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\Repository\TemplateRepository(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewDismissed⚡️Review⚡️Links(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestReviewDismissed\Review\Links + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['html'] ?? null; + + if ($value === null) { + $missingFields[] = 'html'; + goto after_html; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'html'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links⚡️Comments($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['html'] = $value; + + after_html: + + $value = $payload['pull_request'] ?? null; + + if ($value === null) { + $missingFields[] = 'pull_request'; + goto after_pull_request; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'pull_request'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links⚡️Comments($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['pull_request'] = $value; + + after_pull_request: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewDismissed\Review\Links', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestReviewDismissed\Review\Links::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookPullRequestReviewDismissed\Review\Links(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewDismissed\Review\Links', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectEdited⚡️Changes⚡️Body(array $payload): \ApiClients\Client\Github\Schema\WebhookProjectEdited\Changes\Body + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['from'] ?? null; + + if ($value === null) { + $missingFields[] = 'from'; + goto after_from; + } + + $properties['from'] = $value; + + after_from: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectEdited\Changes\Body', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookProjectEdited\Changes\Body::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookProjectEdited\Changes\Body(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectEdited\Changes\Body', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewEdited⚡️PullRequest⚡️Base(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestReviewEdited\PullRequest\Base + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['label'] ?? null; + + if ($value === null) { + $missingFields[] = 'label'; + goto after_label; + } + + $properties['label'] = $value; + + after_label: + + $value = $payload['ref'] ?? null; + + if ($value === null) { + $missingFields[] = 'ref'; + goto after_ref; + } + + $properties['ref'] = $value; + + after_ref: + + $value = $payload['repo'] ?? null; + + if ($value === null) { + $missingFields[] = 'repo'; + goto after_repo; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repo'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesOpened⚡️Changes⚡️OldRepository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repo'] = $value; + + after_repo: + + $value = $payload['sha'] ?? null; + + if ($value === null) { + $missingFields[] = 'sha'; + goto after_sha; + } + + $properties['sha'] = $value; + + after_sha: + + $value = $payload['user'] ?? null; + + if ($value === null) { + $missingFields[] = 'user'; + goto after_user; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'user'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['user'] = $value; + + after_user: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewEdited\PullRequest\Base', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestReviewEdited\PullRequest\Base::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookPullRequestReviewEdited\PullRequest\Base(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewEdited\PullRequest\Base', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewEdited⚡️PullRequest⚡️Head(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestReviewEdited\PullRequest\Head + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['label'] ?? null; + + if ($value === null) { + $missingFields[] = 'label'; + goto after_label; + } + + $properties['label'] = $value; + + after_label: + + $value = $payload['ref'] ?? null; + + if ($value === null) { + $missingFields[] = 'ref'; + goto after_ref; + } + + $properties['ref'] = $value; + + after_ref: + + $value = $payload['repo'] ?? null; + + if ($value === null) { + $missingFields[] = 'repo'; + goto after_repo; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repo'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewEdited⚡️PullRequest⚡️Head⚡️Repo($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repo'] = $value; + + after_repo: + + $value = $payload['sha'] ?? null; + + if ($value === null) { + $missingFields[] = 'sha'; + goto after_sha; + } + + $properties['sha'] = $value; + + after_sha: + + $value = $payload['user'] ?? null; + + if ($value === null) { + $missingFields[] = 'user'; + goto after_user; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'user'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['user'] = $value; + + after_user: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewEdited\PullRequest\Head', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestReviewEdited\PullRequest\Head::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookPullRequestReviewEdited\PullRequest\Head(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewEdited\PullRequest\Head', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesAssigned⚡️Issue⚡️Milestone(array $payload): \ApiClients\Client\Github\Schema\WebhookIssuesAssigned\Issue\Milestone + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['closed_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'closed_at'; + goto after_closed_at; + } + + $properties['closed_at'] = $value; + + after_closed_at: + + $value = $payload['closed_issues'] ?? null; + + if ($value === null) { + $missingFields[] = 'closed_issues'; + goto after_closed_issues; + } + + $properties['closed_issues'] = $value; + + after_closed_issues: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'created_at'; + goto after_created_at; + } + + $properties['created_at'] = $value; + + after_created_at: + + $value = $payload['creator'] ?? null; + + if ($value === null) { + $missingFields[] = 'creator'; + goto after_creator; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'creator'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Comment⚡️User($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['creator'] = $value; + + after_creator: + + $value = $payload['description'] ?? null; + + if ($value === null) { + $missingFields[] = 'description'; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['due_on'] ?? null; + + if ($value === null) { + $missingFields[] = 'due_on'; + goto after_due_on; + } + + $properties['due_on'] = $value; + + after_due_on: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } + + $properties['html_url'] = $value; + + after_html_url: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['labels_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'labels_url'; + goto after_labels_url; + } + + $properties['labels_url'] = $value; + + after_labels_url: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['number'] ?? null; + + if ($value === null) { + $missingFields[] = 'number'; + goto after_number; + } + + $properties['number'] = $value; + + after_number: + + $value = $payload['open_issues'] ?? null; + + if ($value === null) { + $missingFields[] = 'open_issues'; + goto after_open_issues; + } + + $properties['open_issues'] = $value; + + after_open_issues: + + $value = $payload['state'] ?? null; + + if ($value === null) { + $missingFields[] = 'state'; + goto after_state; + } + + $properties['state'] = $value; + + after_state: + + $value = $payload['title'] ?? null; + + if ($value === null) { + $missingFields[] = 'title'; + goto after_title; + } + + $properties['title'] = $value; + + after_title: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'updated_at'; + goto after_updated_at; + } + + $properties['updated_at'] = $value; + + after_updated_at: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesAssigned\Issue\Milestone', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookIssuesAssigned\Issue\Milestone::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookIssuesAssigned\Issue\Milestone(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesAssigned\Issue\Milestone', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy(array $payload): \ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['avatar_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'avatar_url'; + goto after_avatar_url; + } + + $properties['avatar_url'] = $value; + + after_avatar_url: + + $value = $payload['deleted'] ?? null; + + if ($value === null) { + $missingFields[] = 'deleted'; + goto after_deleted; + } + + $properties['deleted'] = $value; + + after_deleted: + + $value = $payload['email'] ?? null; + + if ($value === null) { + $missingFields[] = 'email'; + goto after_email; + } + + $properties['email'] = $value; + + after_email: + + $value = $payload['events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'events_url'; + goto after_events_url; + } + + $properties['events_url'] = $value; + + after_events_url: + + $value = $payload['followers_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'followers_url'; + goto after_followers_url; + } + + $properties['followers_url'] = $value; + + after_followers_url: + + $value = $payload['following_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'following_url'; + goto after_following_url; + } + + $properties['following_url'] = $value; + + after_following_url: + + $value = $payload['gists_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'gists_url'; + goto after_gists_url; + } + + $properties['gists_url'] = $value; + + after_gists_url: + + $value = $payload['gravatar_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'gravatar_id'; + goto after_gravatar_id; + } + + $properties['gravatar_id'] = $value; + + after_gravatar_id: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } + + $properties['html_url'] = $value; + + after_html_url: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['login'] ?? null; + + if ($value === null) { + $missingFields[] = 'login'; + goto after_login; + } + + $properties['login'] = $value; + + after_login: + + $value = $payload['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['organizations_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'organizations_url'; + goto after_organizations_url; + } + + $properties['organizations_url'] = $value; + + after_organizations_url: + + $value = $payload['received_events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'received_events_url'; + goto after_received_events_url; + } + + $properties['received_events_url'] = $value; + + after_received_events_url: + + $value = $payload['repos_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'repos_url'; + goto after_repos_url; + } + + $properties['repos_url'] = $value; + + after_repos_url: + + $value = $payload['site_admin'] ?? null; + + if ($value === null) { + $missingFields[] = 'site_admin'; + goto after_site_admin; + } + + $properties['site_admin'] = $value; + + after_site_admin: + + $value = $payload['starred_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'starred_url'; + goto after_starred_url; + } + + $properties['starred_url'] = $value; + + after_starred_url: + + $value = $payload['subscriptions_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscriptions_url'; + goto after_subscriptions_url; + } + + $properties['subscriptions_url'] = $value; + + after_subscriptions_url: + + $value = $payload['type'] ?? null; + + if ($value === null) { + $missingFields[] = 'type'; + goto after_type; + } + + $properties['type'] = $value; + + after_type: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Head(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Head + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['label'] ?? null; + + if ($value === null) { + $missingFields[] = 'label'; + goto after_label; + } + + $properties['label'] = $value; + + after_label: + + $value = $payload['ref'] ?? null; + + if ($value === null) { + $missingFields[] = 'ref'; + goto after_ref; + } + + $properties['ref'] = $value; + + after_ref: + + $value = $payload['repo'] ?? null; + + if ($value === null) { + $missingFields[] = 'repo'; + goto after_repo; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repo'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Head⚡️Repo($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repo'] = $value; + + after_repo: + + $value = $payload['sha'] ?? null; + + if ($value === null) { + $missingFields[] = 'sha'; + goto after_sha; + } + + $properties['sha'] = $value; + + after_sha: + + $value = $payload['user'] ?? null; + + if ($value === null) { + $missingFields[] = 'user'; + goto after_user; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'user'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['user'] = $value; + + after_user: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Head', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Head::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Head(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Head', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links⚡️Comments(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Links\Comments + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['href'] ?? null; + + if ($value === null) { + $missingFields[] = 'href'; + goto after_href; + } + + $properties['href'] = $value; + + after_href: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Links\Comments', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Links\Comments::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Links\Comments(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Links\Comments', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Base⚡️Repo(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Base\Repo + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['allow_auto_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_auto_merge'; + goto after_allow_auto_merge; + } + + $properties['allow_auto_merge'] = $value; + + after_allow_auto_merge: + + $value = $payload['allow_forking'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_forking'; + goto after_allow_forking; + } + + $properties['allow_forking'] = $value; + + after_allow_forking: + + $value = $payload['allow_merge_commit'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_merge_commit'; + goto after_allow_merge_commit; + } + + $properties['allow_merge_commit'] = $value; + + after_allow_merge_commit: + + $value = $payload['allow_rebase_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_rebase_merge'; + goto after_allow_rebase_merge; + } + + $properties['allow_rebase_merge'] = $value; + + after_allow_rebase_merge: + + $value = $payload['allow_squash_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_squash_merge'; + goto after_allow_squash_merge; + } + + $properties['allow_squash_merge'] = $value; + + after_allow_squash_merge: + + $value = $payload['allow_update_branch'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_update_branch'; + goto after_allow_update_branch; + } + + $properties['allow_update_branch'] = $value; + + after_allow_update_branch: + + $value = $payload['archive_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'archive_url'; + goto after_archive_url; + } + + $properties['archive_url'] = $value; + + after_archive_url: + + $value = $payload['archived'] ?? null; + + if ($value === null) { + $missingFields[] = 'archived'; + goto after_archived; + } + + $properties['archived'] = $value; + + after_archived: + + $value = $payload['assignees_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'assignees_url'; + goto after_assignees_url; + } + + $properties['assignees_url'] = $value; + + after_assignees_url: + + $value = $payload['blobs_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'blobs_url'; + goto after_blobs_url; + } + + $properties['blobs_url'] = $value; + + after_blobs_url: + + $value = $payload['branches_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'branches_url'; + goto after_branches_url; + } + + $properties['branches_url'] = $value; + + after_branches_url: + + $value = $payload['clone_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'clone_url'; + goto after_clone_url; + } + + $properties['clone_url'] = $value; + + after_clone_url: + + $value = $payload['collaborators_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'collaborators_url'; + goto after_collaborators_url; + } + + $properties['collaborators_url'] = $value; + + after_collaborators_url: + + $value = $payload['comments_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'comments_url'; + goto after_comments_url; + } + + $properties['comments_url'] = $value; + + after_comments_url: + + $value = $payload['commits_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'commits_url'; + goto after_commits_url; + } + + $properties['commits_url'] = $value; + + after_commits_url: + + $value = $payload['compare_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'compare_url'; + goto after_compare_url; + } + + $properties['compare_url'] = $value; + + after_compare_url: + + $value = $payload['contents_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'contents_url'; + goto after_contents_url; + } + + $properties['contents_url'] = $value; + + after_contents_url: + + $value = $payload['contributors_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'contributors_url'; + goto after_contributors_url; + } + + $properties['contributors_url'] = $value; + + after_contributors_url: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $properties['created_at'] = null; + goto after_created_at; + } + + $properties['created_at'] = $value; + + after_created_at: + + $value = $payload['default_branch'] ?? null; + + if ($value === null) { + $missingFields[] = 'default_branch'; + goto after_default_branch; + } + + $properties['default_branch'] = $value; + + after_default_branch: + + $value = $payload['delete_branch_on_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'delete_branch_on_merge'; + goto after_delete_branch_on_merge; + } + + $properties['delete_branch_on_merge'] = $value; + + after_delete_branch_on_merge: + + $value = $payload['deployments_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'deployments_url'; + goto after_deployments_url; + } + + $properties['deployments_url'] = $value; + + after_deployments_url: + + $value = $payload['description'] ?? null; + + if ($value === null) { + $missingFields[] = 'description'; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['disabled'] ?? null; + + if ($value === null) { + $missingFields[] = 'disabled'; + goto after_disabled; + } + + $properties['disabled'] = $value; + + after_disabled: + + $value = $payload['downloads_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'downloads_url'; + goto after_downloads_url; + } + + $properties['downloads_url'] = $value; + + after_downloads_url: + + $value = $payload['events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'events_url'; + goto after_events_url; + } + + $properties['events_url'] = $value; + + after_events_url: + + $value = $payload['fork'] ?? null; + + if ($value === null) { + $missingFields[] = 'fork'; + goto after_fork; + } + + $properties['fork'] = $value; + + after_fork: + + $value = $payload['forks'] ?? null; + + if ($value === null) { + $missingFields[] = 'forks'; + goto after_forks; + } + + $properties['forks'] = $value; + + after_forks: + + $value = $payload['forks_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'forks_count'; + goto after_forks_count; + } + + $properties['forks_count'] = $value; + + after_forks_count: + + $value = $payload['forks_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'forks_url'; + goto after_forks_url; + } + + $properties['forks_url'] = $value; + + after_forks_url: + + $value = $payload['full_name'] ?? null; + + if ($value === null) { + $missingFields[] = 'full_name'; + goto after_full_name; + } + + $properties['full_name'] = $value; + + after_full_name: + + $value = $payload['git_commits_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_commits_url'; + goto after_git_commits_url; + } + + $properties['git_commits_url'] = $value; + + after_git_commits_url: + + $value = $payload['git_refs_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_refs_url'; + goto after_git_refs_url; + } + + $properties['git_refs_url'] = $value; + + after_git_refs_url: + + $value = $payload['git_tags_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_tags_url'; + goto after_git_tags_url; + } + + $properties['git_tags_url'] = $value; + + after_git_tags_url: + + $value = $payload['git_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_url'; + goto after_git_url; + } + + $properties['git_url'] = $value; + + after_git_url: + + $value = $payload['has_downloads'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_downloads'; + goto after_has_downloads; + } + + $properties['has_downloads'] = $value; + + after_has_downloads: + + $value = $payload['has_issues'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_issues'; + goto after_has_issues; + } + + $properties['has_issues'] = $value; + + after_has_issues: + + $value = $payload['has_pages'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_pages'; + goto after_has_pages; + } + + $properties['has_pages'] = $value; + + after_has_pages: + + $value = $payload['has_projects'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_projects'; + goto after_has_projects; + } + + $properties['has_projects'] = $value; + + after_has_projects: + + $value = $payload['has_wiki'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_wiki'; + goto after_has_wiki; + } + + $properties['has_wiki'] = $value; + + after_has_wiki: + + $value = $payload['has_discussions'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_discussions'; + goto after_has_discussions; } - $properties['creator'] = $value; + $properties['has_discussions'] = $value; - after_creator: + after_has_discussions: - $value = $payload['description'] ?? null; + $value = $payload['homepage'] ?? null; if ($value === null) { - $missingFields[] = 'description'; - goto after_description; + $missingFields[] = 'homepage'; + goto after_homepage; } - $properties['description'] = $value; + $properties['homepage'] = $value; - after_description: + after_homepage: - $value = $payload['due_on'] ?? null; + $value = $payload['hooks_url'] ?? null; if ($value === null) { - $missingFields[] = 'due_on'; - goto after_due_on; + $missingFields[] = 'hooks_url'; + goto after_hooks_url; } - $properties['due_on'] = $value; + $properties['hooks_url'] = $value; - after_due_on: + after_hooks_url: $value = $payload['html_url'] ?? null; @@ -3392,203 +7488,190 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh after_id: - $value = $payload['labels_url'] ?? null; + $value = $payload['is_template'] ?? null; if ($value === null) { - $missingFields[] = 'labels_url'; - goto after_labels_url; + $missingFields[] = 'is_template'; + goto after_is_template; } - $properties['labels_url'] = $value; + $properties['is_template'] = $value; - after_labels_url: + after_is_template: - $value = $payload['node_id'] ?? null; + $value = $payload['issue_comment_url'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $missingFields[] = 'issue_comment_url'; + goto after_issue_comment_url; } - $properties['node_id'] = $value; + $properties['issue_comment_url'] = $value; - after_node_id: + after_issue_comment_url: - $value = $payload['number'] ?? null; + $value = $payload['issue_events_url'] ?? null; if ($value === null) { - $missingFields[] = 'number'; - goto after_number; + $missingFields[] = 'issue_events_url'; + goto after_issue_events_url; } - $properties['number'] = $value; + $properties['issue_events_url'] = $value; - after_number: + after_issue_events_url: - $value = $payload['open_issues'] ?? null; + $value = $payload['issues_url'] ?? null; if ($value === null) { - $missingFields[] = 'open_issues'; - goto after_open_issues; + $missingFields[] = 'issues_url'; + goto after_issues_url; } - $properties['open_issues'] = $value; + $properties['issues_url'] = $value; - after_open_issues: + after_issues_url: - $value = $payload['state'] ?? null; + $value = $payload['keys_url'] ?? null; if ($value === null) { - $missingFields[] = 'state'; - goto after_state; + $missingFields[] = 'keys_url'; + goto after_keys_url; } - $properties['state'] = $value; + $properties['keys_url'] = $value; - after_state: + after_keys_url: - $value = $payload['title'] ?? null; + $value = $payload['labels_url'] ?? null; if ($value === null) { - $missingFields[] = 'title'; - goto after_title; + $missingFields[] = 'labels_url'; + goto after_labels_url; } - $properties['title'] = $value; + $properties['labels_url'] = $value; - after_title: + after_labels_url: - $value = $payload['updated_at'] ?? null; + $value = $payload['language'] ?? null; if ($value === null) { - $missingFields[] = 'updated_at'; - goto after_updated_at; + $missingFields[] = 'language'; + goto after_language; } - $properties['updated_at'] = $value; + $properties['language'] = $value; - after_updated_at: + after_language: - $value = $payload['url'] ?? null; + $value = $payload['languages_url'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $missingFields[] = 'languages_url'; + goto after_languages_url; } - $properties['url'] = $value; + $properties['languages_url'] = $value; - after_url: + after_languages_url: - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesAssigned\Issue\Milestone', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookIssuesAssigned\Issue\Milestone::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\WebhookIssuesAssigned\Issue\Milestone(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesAssigned\Issue\Milestone', $exception, stack: $this->hydrationStack); - } - } + $value = $payload['license'] ?? null; + + if ($value === null) { + $missingFields[] = 'license'; + goto after_license; + } - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️Permissions(array $payload): \ApiClients\Client\Github\Schema\Repository\Permissions - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['admin'] ?? null; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'license'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionTransferred⚡️Changes⚡️NewRepository⚡️License($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['license'] = $value; + + after_license: + + $value = $payload['master_branch'] ?? null; if ($value === null) { - $missingFields[] = 'admin'; - goto after_admin; + $missingFields[] = 'master_branch'; + goto after_master_branch; } - $properties['admin'] = $value; + $properties['master_branch'] = $value; - after_admin: + after_master_branch: - $value = $payload['pull'] ?? null; + $value = $payload['merge_commit_message'] ?? null; if ($value === null) { - $missingFields[] = 'pull'; - goto after_pull; + $missingFields[] = 'merge_commit_message'; + goto after_merge_commit_message; } - $properties['pull'] = $value; + $properties['merge_commit_message'] = $value; - after_pull: + after_merge_commit_message: - $value = $payload['triage'] ?? null; + $value = $payload['merge_commit_title'] ?? null; if ($value === null) { - $missingFields[] = 'triage'; - goto after_triage; + $missingFields[] = 'merge_commit_title'; + goto after_merge_commit_title; } - $properties['triage'] = $value; + $properties['merge_commit_title'] = $value; - after_triage: + after_merge_commit_title: - $value = $payload['push'] ?? null; + $value = $payload['merges_url'] ?? null; if ($value === null) { - $missingFields[] = 'push'; - goto after_push; + $missingFields[] = 'merges_url'; + goto after_merges_url; } - $properties['push'] = $value; + $properties['merges_url'] = $value; - after_push: + after_merges_url: - $value = $payload['maintain'] ?? null; + $value = $payload['milestones_url'] ?? null; if ($value === null) { - $missingFields[] = 'maintain'; - goto after_maintain; + $missingFields[] = 'milestones_url'; + goto after_milestones_url; } - $properties['maintain'] = $value; + $properties['milestones_url'] = $value; - after_maintain: + after_milestones_url: - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\Permissions', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\Permissions::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\Repository\Permissions(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\Permissions', $exception, stack: $this->hydrationStack); - } - } + $value = $payload['mirror_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'mirror_url'; + goto after_mirror_url; + } - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository(array $payload): \ApiClients\Client\Github\Schema\Repository\TemplateRepository - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['id'] ?? null; + $properties['mirror_url'] = $value; + + after_mirror_url: + + $value = $payload['name'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'name'; + goto after_name; } - $properties['id'] = $value; + $properties['name'] = $value; - after_id: + after_name: $value = $payload['node_id'] ?? null; @@ -3597,31 +7680,53 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repo goto after_node_id; } - $properties['node_id'] = $value; + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['notifications_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'notifications_url'; + goto after_notifications_url; + } + + $properties['notifications_url'] = $value; + + after_notifications_url: + + $value = $payload['open_issues'] ?? null; + + if ($value === null) { + $missingFields[] = 'open_issues'; + goto after_open_issues; + } + + $properties['open_issues'] = $value; - after_node_id: + after_open_issues: - $value = $payload['name'] ?? null; + $value = $payload['open_issues_count'] ?? null; if ($value === null) { - $missingFields[] = 'name'; - goto after_name; + $missingFields[] = 'open_issues_count'; + goto after_open_issues_count; } - $properties['name'] = $value; + $properties['open_issues_count'] = $value; - after_name: + after_open_issues_count: - $value = $payload['full_name'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'full_name'; - goto after_full_name; + $missingFields[] = 'organization'; + goto after_organization; } - $properties['full_name'] = $value; + $properties['organization'] = $value; - after_full_name: + after_organization: $value = $payload['owner'] ?? null; @@ -3633,7 +7738,7 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repo if (is_array($value)) { try { $this->hydrationStack[] = 'owner'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner($value); + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); } finally { array_pop($this->hydrationStack); } @@ -3643,6 +7748,26 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repo after_owner: + $value = $payload['permissions'] ?? null; + + if ($value === null) { + $missingFields[] = 'permissions'; + goto after_permissions; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'permissions'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionTransferred⚡️Changes⚡️NewRepository⚡️Permissions($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['permissions'] = $value; + + after_permissions: + $value = $payload['private'] ?? null; if ($value === null) { @@ -3654,654 +7779,709 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repo after_private: - $value = $payload['html_url'] ?? null; + $value = $payload['public'] ?? null; if ($value === null) { - $missingFields[] = 'html_url'; - goto after_html_url; + $missingFields[] = 'public'; + goto after_public; } - $properties['html_url'] = $value; + $properties['public'] = $value; - after_html_url: + after_public: - $value = $payload['description'] ?? null; + $value = $payload['pulls_url'] ?? null; if ($value === null) { - $missingFields[] = 'description'; - goto after_description; + $missingFields[] = 'pulls_url'; + goto after_pulls_url; } - $properties['description'] = $value; + $properties['pulls_url'] = $value; - after_description: + after_pulls_url: - $value = $payload['fork'] ?? null; + $value = $payload['pushed_at'] ?? null; if ($value === null) { - $missingFields[] = 'fork'; - goto after_fork; + $properties['pushed_at'] = null; + goto after_pushed_at; } - $properties['fork'] = $value; + $properties['pushed_at'] = $value; - after_fork: + after_pushed_at: - $value = $payload['url'] ?? null; + $value = $payload['releases_url'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $missingFields[] = 'releases_url'; + goto after_releases_url; } - $properties['url'] = $value; + $properties['releases_url'] = $value; - after_url: + after_releases_url: - $value = $payload['archive_url'] ?? null; + $value = $payload['role_name'] ?? null; if ($value === null) { - $missingFields[] = 'archive_url'; - goto after_archive_url; + $missingFields[] = 'role_name'; + goto after_role_name; } - $properties['archive_url'] = $value; + $properties['role_name'] = $value; - after_archive_url: + after_role_name: - $value = $payload['assignees_url'] ?? null; + $value = $payload['size'] ?? null; if ($value === null) { - $missingFields[] = 'assignees_url'; - goto after_assignees_url; + $missingFields[] = 'size'; + goto after_size; } - $properties['assignees_url'] = $value; + $properties['size'] = $value; - after_assignees_url: + after_size: - $value = $payload['blobs_url'] ?? null; + $value = $payload['squash_merge_commit_message'] ?? null; if ($value === null) { - $missingFields[] = 'blobs_url'; - goto after_blobs_url; + $missingFields[] = 'squash_merge_commit_message'; + goto after_squash_merge_commit_message; } - $properties['blobs_url'] = $value; + $properties['squash_merge_commit_message'] = $value; - after_blobs_url: + after_squash_merge_commit_message: - $value = $payload['branches_url'] ?? null; + $value = $payload['squash_merge_commit_title'] ?? null; if ($value === null) { - $missingFields[] = 'branches_url'; - goto after_branches_url; + $missingFields[] = 'squash_merge_commit_title'; + goto after_squash_merge_commit_title; } - $properties['branches_url'] = $value; + $properties['squash_merge_commit_title'] = $value; - after_branches_url: + after_squash_merge_commit_title: - $value = $payload['collaborators_url'] ?? null; + $value = $payload['ssh_url'] ?? null; if ($value === null) { - $missingFields[] = 'collaborators_url'; - goto after_collaborators_url; + $missingFields[] = 'ssh_url'; + goto after_ssh_url; } - $properties['collaborators_url'] = $value; + $properties['ssh_url'] = $value; - after_collaborators_url: + after_ssh_url: - $value = $payload['comments_url'] ?? null; + $value = $payload['stargazers'] ?? null; if ($value === null) { - $missingFields[] = 'comments_url'; - goto after_comments_url; + $missingFields[] = 'stargazers'; + goto after_stargazers; } - $properties['comments_url'] = $value; + $properties['stargazers'] = $value; - after_comments_url: + after_stargazers: - $value = $payload['commits_url'] ?? null; + $value = $payload['stargazers_count'] ?? null; if ($value === null) { - $missingFields[] = 'commits_url'; - goto after_commits_url; + $missingFields[] = 'stargazers_count'; + goto after_stargazers_count; } - $properties['commits_url'] = $value; + $properties['stargazers_count'] = $value; - after_commits_url: + after_stargazers_count: - $value = $payload['compare_url'] ?? null; + $value = $payload['stargazers_url'] ?? null; if ($value === null) { - $missingFields[] = 'compare_url'; - goto after_compare_url; + $missingFields[] = 'stargazers_url'; + goto after_stargazers_url; } - $properties['compare_url'] = $value; + $properties['stargazers_url'] = $value; - after_compare_url: + after_stargazers_url: - $value = $payload['contents_url'] ?? null; + $value = $payload['statuses_url'] ?? null; if ($value === null) { - $missingFields[] = 'contents_url'; - goto after_contents_url; + $missingFields[] = 'statuses_url'; + goto after_statuses_url; } - $properties['contents_url'] = $value; + $properties['statuses_url'] = $value; - after_contents_url: + after_statuses_url: - $value = $payload['contributors_url'] ?? null; + $value = $payload['subscribers_url'] ?? null; if ($value === null) { - $missingFields[] = 'contributors_url'; - goto after_contributors_url; + $missingFields[] = 'subscribers_url'; + goto after_subscribers_url; } - $properties['contributors_url'] = $value; + $properties['subscribers_url'] = $value; - after_contributors_url: + after_subscribers_url: - $value = $payload['deployments_url'] ?? null; + $value = $payload['subscription_url'] ?? null; if ($value === null) { - $missingFields[] = 'deployments_url'; - goto after_deployments_url; + $missingFields[] = 'subscription_url'; + goto after_subscription_url; } - $properties['deployments_url'] = $value; + $properties['subscription_url'] = $value; - after_deployments_url: + after_subscription_url: - $value = $payload['downloads_url'] ?? null; + $value = $payload['svn_url'] ?? null; if ($value === null) { - $missingFields[] = 'downloads_url'; - goto after_downloads_url; + $missingFields[] = 'svn_url'; + goto after_svn_url; } - $properties['downloads_url'] = $value; + $properties['svn_url'] = $value; - after_downloads_url: + after_svn_url: - $value = $payload['events_url'] ?? null; + $value = $payload['tags_url'] ?? null; if ($value === null) { - $missingFields[] = 'events_url'; - goto after_events_url; + $missingFields[] = 'tags_url'; + goto after_tags_url; } - $properties['events_url'] = $value; + $properties['tags_url'] = $value; - after_events_url: + after_tags_url: - $value = $payload['forks_url'] ?? null; + $value = $payload['teams_url'] ?? null; if ($value === null) { - $missingFields[] = 'forks_url'; - goto after_forks_url; + $missingFields[] = 'teams_url'; + goto after_teams_url; + } + + $properties['teams_url'] = $value; + + after_teams_url: + + $value = $payload['topics'] ?? null; + + if ($value === null) { + $missingFields[] = 'topics'; + goto after_topics; + } + + $properties['topics'] = $value; + + after_topics: + + $value = $payload['trees_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'trees_url'; + goto after_trees_url; + } + + $properties['trees_url'] = $value; + + after_trees_url: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'updated_at'; + goto after_updated_at; } - $properties['forks_url'] = $value; + $properties['updated_at'] = $value; - after_forks_url: + after_updated_at: - $value = $payload['git_commits_url'] ?? null; + $value = $payload['url'] ?? null; if ($value === null) { - $missingFields[] = 'git_commits_url'; - goto after_git_commits_url; + $missingFields[] = 'url'; + goto after_url; } - $properties['git_commits_url'] = $value; + $properties['url'] = $value; - after_git_commits_url: + after_url: - $value = $payload['git_refs_url'] ?? null; + $value = $payload['use_squash_pr_title_as_default'] ?? null; if ($value === null) { - $missingFields[] = 'git_refs_url'; - goto after_git_refs_url; + $missingFields[] = 'use_squash_pr_title_as_default'; + goto after_use_squash_pr_title_as_default; } - $properties['git_refs_url'] = $value; + $properties['use_squash_pr_title_as_default'] = $value; - after_git_refs_url: + after_use_squash_pr_title_as_default: - $value = $payload['git_tags_url'] ?? null; + $value = $payload['visibility'] ?? null; if ($value === null) { - $missingFields[] = 'git_tags_url'; - goto after_git_tags_url; + $missingFields[] = 'visibility'; + goto after_visibility; } - $properties['git_tags_url'] = $value; + $properties['visibility'] = $value; - after_git_tags_url: + after_visibility: - $value = $payload['git_url'] ?? null; + $value = $payload['watchers'] ?? null; if ($value === null) { - $missingFields[] = 'git_url'; - goto after_git_url; + $missingFields[] = 'watchers'; + goto after_watchers; } - $properties['git_url'] = $value; + $properties['watchers'] = $value; - after_git_url: + after_watchers: - $value = $payload['issue_comment_url'] ?? null; + $value = $payload['watchers_count'] ?? null; if ($value === null) { - $missingFields[] = 'issue_comment_url'; - goto after_issue_comment_url; + $missingFields[] = 'watchers_count'; + goto after_watchers_count; } - $properties['issue_comment_url'] = $value; + $properties['watchers_count'] = $value; - after_issue_comment_url: + after_watchers_count: - $value = $payload['issue_events_url'] ?? null; + $value = $payload['web_commit_signoff_required'] ?? null; if ($value === null) { - $missingFields[] = 'issue_events_url'; - goto after_issue_events_url; + $missingFields[] = 'web_commit_signoff_required'; + goto after_web_commit_signoff_required; } - $properties['issue_events_url'] = $value; + $properties['web_commit_signoff_required'] = $value; - after_issue_events_url: + after_web_commit_signoff_required: - $value = $payload['issues_url'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Base\Repo', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Base\Repo::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Base\Repo(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Base\Repo', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Head⚡️Repo(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Head\Repo + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['allow_auto_merge'] ?? null; if ($value === null) { - $missingFields[] = 'issues_url'; - goto after_issues_url; + $missingFields[] = 'allow_auto_merge'; + goto after_allow_auto_merge; } - $properties['issues_url'] = $value; + $properties['allow_auto_merge'] = $value; - after_issues_url: + after_allow_auto_merge: - $value = $payload['keys_url'] ?? null; + $value = $payload['allow_forking'] ?? null; if ($value === null) { - $missingFields[] = 'keys_url'; - goto after_keys_url; + $missingFields[] = 'allow_forking'; + goto after_allow_forking; } - $properties['keys_url'] = $value; + $properties['allow_forking'] = $value; - after_keys_url: + after_allow_forking: - $value = $payload['labels_url'] ?? null; + $value = $payload['allow_merge_commit'] ?? null; if ($value === null) { - $missingFields[] = 'labels_url'; - goto after_labels_url; + $missingFields[] = 'allow_merge_commit'; + goto after_allow_merge_commit; } - $properties['labels_url'] = $value; + $properties['allow_merge_commit'] = $value; - after_labels_url: + after_allow_merge_commit: - $value = $payload['languages_url'] ?? null; + $value = $payload['allow_rebase_merge'] ?? null; if ($value === null) { - $missingFields[] = 'languages_url'; - goto after_languages_url; + $missingFields[] = 'allow_rebase_merge'; + goto after_allow_rebase_merge; } - $properties['languages_url'] = $value; + $properties['allow_rebase_merge'] = $value; - after_languages_url: + after_allow_rebase_merge: - $value = $payload['merges_url'] ?? null; + $value = $payload['allow_squash_merge'] ?? null; if ($value === null) { - $missingFields[] = 'merges_url'; - goto after_merges_url; + $missingFields[] = 'allow_squash_merge'; + goto after_allow_squash_merge; } - $properties['merges_url'] = $value; + $properties['allow_squash_merge'] = $value; - after_merges_url: + after_allow_squash_merge: - $value = $payload['milestones_url'] ?? null; + $value = $payload['allow_update_branch'] ?? null; if ($value === null) { - $missingFields[] = 'milestones_url'; - goto after_milestones_url; + $missingFields[] = 'allow_update_branch'; + goto after_allow_update_branch; } - $properties['milestones_url'] = $value; + $properties['allow_update_branch'] = $value; - after_milestones_url: + after_allow_update_branch: - $value = $payload['notifications_url'] ?? null; + $value = $payload['archive_url'] ?? null; if ($value === null) { - $missingFields[] = 'notifications_url'; - goto after_notifications_url; + $missingFields[] = 'archive_url'; + goto after_archive_url; } - $properties['notifications_url'] = $value; + $properties['archive_url'] = $value; - after_notifications_url: + after_archive_url: - $value = $payload['pulls_url'] ?? null; + $value = $payload['archived'] ?? null; if ($value === null) { - $missingFields[] = 'pulls_url'; - goto after_pulls_url; + $missingFields[] = 'archived'; + goto after_archived; } - $properties['pulls_url'] = $value; + $properties['archived'] = $value; - after_pulls_url: + after_archived: - $value = $payload['releases_url'] ?? null; + $value = $payload['assignees_url'] ?? null; if ($value === null) { - $missingFields[] = 'releases_url'; - goto after_releases_url; + $missingFields[] = 'assignees_url'; + goto after_assignees_url; } - $properties['releases_url'] = $value; + $properties['assignees_url'] = $value; - after_releases_url: + after_assignees_url: - $value = $payload['ssh_url'] ?? null; + $value = $payload['blobs_url'] ?? null; if ($value === null) { - $missingFields[] = 'ssh_url'; - goto after_ssh_url; + $missingFields[] = 'blobs_url'; + goto after_blobs_url; } - $properties['ssh_url'] = $value; + $properties['blobs_url'] = $value; - after_ssh_url: + after_blobs_url: - $value = $payload['stargazers_url'] ?? null; + $value = $payload['branches_url'] ?? null; if ($value === null) { - $missingFields[] = 'stargazers_url'; - goto after_stargazers_url; + $missingFields[] = 'branches_url'; + goto after_branches_url; } - $properties['stargazers_url'] = $value; + $properties['branches_url'] = $value; - after_stargazers_url: + after_branches_url: - $value = $payload['statuses_url'] ?? null; + $value = $payload['clone_url'] ?? null; if ($value === null) { - $missingFields[] = 'statuses_url'; - goto after_statuses_url; + $missingFields[] = 'clone_url'; + goto after_clone_url; } - $properties['statuses_url'] = $value; + $properties['clone_url'] = $value; - after_statuses_url: + after_clone_url: - $value = $payload['subscribers_url'] ?? null; + $value = $payload['collaborators_url'] ?? null; if ($value === null) { - $missingFields[] = 'subscribers_url'; - goto after_subscribers_url; + $missingFields[] = 'collaborators_url'; + goto after_collaborators_url; } - $properties['subscribers_url'] = $value; + $properties['collaborators_url'] = $value; - after_subscribers_url: + after_collaborators_url: - $value = $payload['subscription_url'] ?? null; + $value = $payload['comments_url'] ?? null; if ($value === null) { - $missingFields[] = 'subscription_url'; - goto after_subscription_url; + $missingFields[] = 'comments_url'; + goto after_comments_url; } - $properties['subscription_url'] = $value; + $properties['comments_url'] = $value; - after_subscription_url: + after_comments_url: - $value = $payload['tags_url'] ?? null; + $value = $payload['commits_url'] ?? null; if ($value === null) { - $missingFields[] = 'tags_url'; - goto after_tags_url; + $missingFields[] = 'commits_url'; + goto after_commits_url; } - $properties['tags_url'] = $value; + $properties['commits_url'] = $value; - after_tags_url: + after_commits_url: - $value = $payload['teams_url'] ?? null; + $value = $payload['compare_url'] ?? null; if ($value === null) { - $missingFields[] = 'teams_url'; - goto after_teams_url; + $missingFields[] = 'compare_url'; + goto after_compare_url; } - $properties['teams_url'] = $value; + $properties['compare_url'] = $value; - after_teams_url: + after_compare_url: - $value = $payload['trees_url'] ?? null; + $value = $payload['contents_url'] ?? null; if ($value === null) { - $missingFields[] = 'trees_url'; - goto after_trees_url; + $missingFields[] = 'contents_url'; + goto after_contents_url; } - $properties['trees_url'] = $value; + $properties['contents_url'] = $value; - after_trees_url: + after_contents_url: - $value = $payload['clone_url'] ?? null; + $value = $payload['contributors_url'] ?? null; if ($value === null) { - $missingFields[] = 'clone_url'; - goto after_clone_url; + $missingFields[] = 'contributors_url'; + goto after_contributors_url; } - $properties['clone_url'] = $value; + $properties['contributors_url'] = $value; - after_clone_url: + after_contributors_url: - $value = $payload['mirror_url'] ?? null; + $value = $payload['created_at'] ?? null; if ($value === null) { - $missingFields[] = 'mirror_url'; - goto after_mirror_url; + $properties['created_at'] = null; + goto after_created_at; } - $properties['mirror_url'] = $value; + $properties['created_at'] = $value; - after_mirror_url: + after_created_at: - $value = $payload['hooks_url'] ?? null; + $value = $payload['default_branch'] ?? null; if ($value === null) { - $missingFields[] = 'hooks_url'; - goto after_hooks_url; + $missingFields[] = 'default_branch'; + goto after_default_branch; } - $properties['hooks_url'] = $value; + $properties['default_branch'] = $value; - after_hooks_url: + after_default_branch: - $value = $payload['svn_url'] ?? null; + $value = $payload['delete_branch_on_merge'] ?? null; if ($value === null) { - $missingFields[] = 'svn_url'; - goto after_svn_url; + $missingFields[] = 'delete_branch_on_merge'; + goto after_delete_branch_on_merge; } - $properties['svn_url'] = $value; + $properties['delete_branch_on_merge'] = $value; - after_svn_url: + after_delete_branch_on_merge: - $value = $payload['homepage'] ?? null; + $value = $payload['deployments_url'] ?? null; if ($value === null) { - $missingFields[] = 'homepage'; - goto after_homepage; + $missingFields[] = 'deployments_url'; + goto after_deployments_url; } - $properties['homepage'] = $value; + $properties['deployments_url'] = $value; - after_homepage: + after_deployments_url: - $value = $payload['language'] ?? null; + $value = $payload['description'] ?? null; if ($value === null) { - $missingFields[] = 'language'; - goto after_language; + $missingFields[] = 'description'; + goto after_description; } - $properties['language'] = $value; + $properties['description'] = $value; - after_language: + after_description: - $value = $payload['forks_count'] ?? null; + $value = $payload['disabled'] ?? null; if ($value === null) { - $missingFields[] = 'forks_count'; - goto after_forks_count; + $missingFields[] = 'disabled'; + goto after_disabled; } - $properties['forks_count'] = $value; + $properties['disabled'] = $value; - after_forks_count: + after_disabled: - $value = $payload['stargazers_count'] ?? null; + $value = $payload['downloads_url'] ?? null; if ($value === null) { - $missingFields[] = 'stargazers_count'; - goto after_stargazers_count; + $missingFields[] = 'downloads_url'; + goto after_downloads_url; } - $properties['stargazers_count'] = $value; + $properties['downloads_url'] = $value; - after_stargazers_count: + after_downloads_url: - $value = $payload['watchers_count'] ?? null; + $value = $payload['events_url'] ?? null; if ($value === null) { - $missingFields[] = 'watchers_count'; - goto after_watchers_count; + $missingFields[] = 'events_url'; + goto after_events_url; } - $properties['watchers_count'] = $value; + $properties['events_url'] = $value; - after_watchers_count: + after_events_url: - $value = $payload['size'] ?? null; + $value = $payload['fork'] ?? null; if ($value === null) { - $missingFields[] = 'size'; - goto after_size; + $missingFields[] = 'fork'; + goto after_fork; } - $properties['size'] = $value; + $properties['fork'] = $value; - after_size: + after_fork: - $value = $payload['default_branch'] ?? null; + $value = $payload['forks'] ?? null; if ($value === null) { - $missingFields[] = 'default_branch'; - goto after_default_branch; + $missingFields[] = 'forks'; + goto after_forks; } - $properties['default_branch'] = $value; + $properties['forks'] = $value; - after_default_branch: + after_forks: - $value = $payload['open_issues_count'] ?? null; + $value = $payload['forks_count'] ?? null; if ($value === null) { - $missingFields[] = 'open_issues_count'; - goto after_open_issues_count; + $missingFields[] = 'forks_count'; + goto after_forks_count; } - $properties['open_issues_count'] = $value; + $properties['forks_count'] = $value; - after_open_issues_count: + after_forks_count: - $value = $payload['is_template'] ?? null; + $value = $payload['forks_url'] ?? null; if ($value === null) { - $missingFields[] = 'is_template'; - goto after_is_template; + $missingFields[] = 'forks_url'; + goto after_forks_url; } - $properties['is_template'] = $value; + $properties['forks_url'] = $value; - after_is_template: + after_forks_url: - $value = $payload['topics'] ?? null; + $value = $payload['full_name'] ?? null; if ($value === null) { - $missingFields[] = 'topics'; - goto after_topics; + $missingFields[] = 'full_name'; + goto after_full_name; } - $properties['topics'] = $value; + $properties['full_name'] = $value; - after_topics: + after_full_name: - $value = $payload['has_issues'] ?? null; + $value = $payload['git_commits_url'] ?? null; if ($value === null) { - $missingFields[] = 'has_issues'; - goto after_has_issues; + $missingFields[] = 'git_commits_url'; + goto after_git_commits_url; } - $properties['has_issues'] = $value; + $properties['git_commits_url'] = $value; - after_has_issues: + after_git_commits_url: - $value = $payload['has_projects'] ?? null; + $value = $payload['git_refs_url'] ?? null; if ($value === null) { - $missingFields[] = 'has_projects'; - goto after_has_projects; + $missingFields[] = 'git_refs_url'; + goto after_git_refs_url; } - $properties['has_projects'] = $value; + $properties['git_refs_url'] = $value; - after_has_projects: + after_git_refs_url: - $value = $payload['has_wiki'] ?? null; + $value = $payload['git_tags_url'] ?? null; if ($value === null) { - $missingFields[] = 'has_wiki'; - goto after_has_wiki; + $missingFields[] = 'git_tags_url'; + goto after_git_tags_url; } - $properties['has_wiki'] = $value; + $properties['git_tags_url'] = $value; - after_has_wiki: + after_git_tags_url: - $value = $payload['has_pages'] ?? null; + $value = $payload['git_url'] ?? null; if ($value === null) { - $missingFields[] = 'has_pages'; - goto after_has_pages; + $missingFields[] = 'git_url'; + goto after_git_url; } - $properties['has_pages'] = $value; + $properties['git_url'] = $value; - after_has_pages: + after_git_url: $value = $payload['has_downloads'] ?? null; @@ -4314,3113 +8494,3058 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repo after_has_downloads: - $value = $payload['archived'] ?? null; + $value = $payload['has_issues'] ?? null; if ($value === null) { - $missingFields[] = 'archived'; - goto after_archived; + $missingFields[] = 'has_issues'; + goto after_has_issues; } - $properties['archived'] = $value; + $properties['has_issues'] = $value; - after_archived: + after_has_issues: - $value = $payload['disabled'] ?? null; + $value = $payload['has_pages'] ?? null; if ($value === null) { - $missingFields[] = 'disabled'; - goto after_disabled; + $missingFields[] = 'has_pages'; + goto after_has_pages; } - $properties['disabled'] = $value; + $properties['has_pages'] = $value; - after_disabled: + after_has_pages: - $value = $payload['visibility'] ?? null; + $value = $payload['has_projects'] ?? null; if ($value === null) { - $missingFields[] = 'visibility'; - goto after_visibility; + $missingFields[] = 'has_projects'; + goto after_has_projects; } - $properties['visibility'] = $value; + $properties['has_projects'] = $value; - after_visibility: + after_has_projects: - $value = $payload['pushed_at'] ?? null; + $value = $payload['has_wiki'] ?? null; if ($value === null) { - $missingFields[] = 'pushed_at'; - goto after_pushed_at; + $missingFields[] = 'has_wiki'; + goto after_has_wiki; } - $properties['pushed_at'] = $value; + $properties['has_wiki'] = $value; - after_pushed_at: + after_has_wiki: - $value = $payload['created_at'] ?? null; + $value = $payload['has_discussions'] ?? null; if ($value === null) { - $missingFields[] = 'created_at'; - goto after_created_at; + $missingFields[] = 'has_discussions'; + goto after_has_discussions; } - $properties['created_at'] = $value; + $properties['has_discussions'] = $value; - after_created_at: + after_has_discussions: - $value = $payload['updated_at'] ?? null; + $value = $payload['homepage'] ?? null; if ($value === null) { - $missingFields[] = 'updated_at'; - goto after_updated_at; + $missingFields[] = 'homepage'; + goto after_homepage; } - $properties['updated_at'] = $value; + $properties['homepage'] = $value; - after_updated_at: + after_homepage: - $value = $payload['permissions'] ?? null; + $value = $payload['hooks_url'] ?? null; if ($value === null) { - $missingFields[] = 'permissions'; - goto after_permissions; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'permissions'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Permissions($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'hooks_url'; + goto after_hooks_url; } - $properties['permissions'] = $value; + $properties['hooks_url'] = $value; - after_permissions: + after_hooks_url: - $value = $payload['allow_rebase_merge'] ?? null; + $value = $payload['html_url'] ?? null; if ($value === null) { - $missingFields[] = 'allow_rebase_merge'; - goto after_allow_rebase_merge; + $missingFields[] = 'html_url'; + goto after_html_url; } - $properties['allow_rebase_merge'] = $value; + $properties['html_url'] = $value; - after_allow_rebase_merge: + after_html_url: - $value = $payload['temp_clone_token'] ?? null; + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'temp_clone_token'; - goto after_temp_clone_token; + $missingFields[] = 'id'; + goto after_id; } - $properties['temp_clone_token'] = $value; + $properties['id'] = $value; - after_temp_clone_token: + after_id: - $value = $payload['allow_squash_merge'] ?? null; + $value = $payload['is_template'] ?? null; if ($value === null) { - $missingFields[] = 'allow_squash_merge'; - goto after_allow_squash_merge; + $missingFields[] = 'is_template'; + goto after_is_template; } - $properties['allow_squash_merge'] = $value; + $properties['is_template'] = $value; - after_allow_squash_merge: + after_is_template: - $value = $payload['allow_auto_merge'] ?? null; + $value = $payload['issue_comment_url'] ?? null; if ($value === null) { - $missingFields[] = 'allow_auto_merge'; - goto after_allow_auto_merge; + $missingFields[] = 'issue_comment_url'; + goto after_issue_comment_url; } - $properties['allow_auto_merge'] = $value; + $properties['issue_comment_url'] = $value; - after_allow_auto_merge: + after_issue_comment_url: - $value = $payload['delete_branch_on_merge'] ?? null; + $value = $payload['issue_events_url'] ?? null; if ($value === null) { - $missingFields[] = 'delete_branch_on_merge'; - goto after_delete_branch_on_merge; + $missingFields[] = 'issue_events_url'; + goto after_issue_events_url; } - $properties['delete_branch_on_merge'] = $value; + $properties['issue_events_url'] = $value; - after_delete_branch_on_merge: + after_issue_events_url: - $value = $payload['allow_update_branch'] ?? null; + $value = $payload['issues_url'] ?? null; if ($value === null) { - $missingFields[] = 'allow_update_branch'; - goto after_allow_update_branch; + $missingFields[] = 'issues_url'; + goto after_issues_url; } - $properties['allow_update_branch'] = $value; + $properties['issues_url'] = $value; - after_allow_update_branch: + after_issues_url: - $value = $payload['use_squash_pr_title_as_default'] ?? null; + $value = $payload['keys_url'] ?? null; if ($value === null) { - $missingFields[] = 'use_squash_pr_title_as_default'; - goto after_use_squash_pr_title_as_default; + $missingFields[] = 'keys_url'; + goto after_keys_url; } - $properties['use_squash_pr_title_as_default'] = $value; + $properties['keys_url'] = $value; - after_use_squash_pr_title_as_default: + after_keys_url: - $value = $payload['squash_merge_commit_title'] ?? null; + $value = $payload['labels_url'] ?? null; if ($value === null) { - $missingFields[] = 'squash_merge_commit_title'; - goto after_squash_merge_commit_title; + $missingFields[] = 'labels_url'; + goto after_labels_url; } - $properties['squash_merge_commit_title'] = $value; + $properties['labels_url'] = $value; - after_squash_merge_commit_title: + after_labels_url: - $value = $payload['squash_merge_commit_message'] ?? null; + $value = $payload['language'] ?? null; if ($value === null) { - $missingFields[] = 'squash_merge_commit_message'; - goto after_squash_merge_commit_message; + $missingFields[] = 'language'; + goto after_language; } - $properties['squash_merge_commit_message'] = $value; + $properties['language'] = $value; - after_squash_merge_commit_message: + after_language: - $value = $payload['merge_commit_title'] ?? null; + $value = $payload['languages_url'] ?? null; if ($value === null) { - $missingFields[] = 'merge_commit_title'; - goto after_merge_commit_title; + $missingFields[] = 'languages_url'; + goto after_languages_url; } - $properties['merge_commit_title'] = $value; + $properties['languages_url'] = $value; - after_merge_commit_title: + after_languages_url: - $value = $payload['merge_commit_message'] ?? null; + $value = $payload['license'] ?? null; if ($value === null) { - $missingFields[] = 'merge_commit_message'; - goto after_merge_commit_message; + $missingFields[] = 'license'; + goto after_license; } - $properties['merge_commit_message'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'license'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionTransferred⚡️Changes⚡️NewRepository⚡️License($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['license'] = $value; - after_merge_commit_message: + after_license: - $value = $payload['allow_merge_commit'] ?? null; + $value = $payload['master_branch'] ?? null; if ($value === null) { - $missingFields[] = 'allow_merge_commit'; - goto after_allow_merge_commit; + $missingFields[] = 'master_branch'; + goto after_master_branch; } - $properties['allow_merge_commit'] = $value; + $properties['master_branch'] = $value; - after_allow_merge_commit: + after_master_branch: - $value = $payload['subscribers_count'] ?? null; + $value = $payload['merge_commit_message'] ?? null; if ($value === null) { - $missingFields[] = 'subscribers_count'; - goto after_subscribers_count; + $missingFields[] = 'merge_commit_message'; + goto after_merge_commit_message; } - $properties['subscribers_count'] = $value; + $properties['merge_commit_message'] = $value; - after_subscribers_count: + after_merge_commit_message: - $value = $payload['network_count'] ?? null; + $value = $payload['merge_commit_title'] ?? null; if ($value === null) { - $missingFields[] = 'network_count'; - goto after_network_count; + $missingFields[] = 'merge_commit_title'; + goto after_merge_commit_title; } - $properties['network_count'] = $value; + $properties['merge_commit_title'] = $value; - after_network_count: - - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\TemplateRepository::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\Repository\TemplateRepository(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository', $exception, stack: $this->hydrationStack); - } - } + after_merge_commit_title: - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewDismissed⚡️Review⚡️Links(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestReviewDismissed\Review\Links - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['html'] ?? null; + $value = $payload['merges_url'] ?? null; if ($value === null) { - $missingFields[] = 'html'; - goto after_html; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'html'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links⚡️Comments($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'merges_url'; + goto after_merges_url; } - $properties['html'] = $value; + $properties['merges_url'] = $value; - after_html: + after_merges_url: - $value = $payload['pull_request'] ?? null; + $value = $payload['milestones_url'] ?? null; if ($value === null) { - $missingFields[] = 'pull_request'; - goto after_pull_request; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'pull_request'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links⚡️Comments($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'milestones_url'; + goto after_milestones_url; } - $properties['pull_request'] = $value; + $properties['milestones_url'] = $value; - after_pull_request: - - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewDismissed\Review\Links', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestReviewDismissed\Review\Links::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\WebhookPullRequestReviewDismissed\Review\Links(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewDismissed\Review\Links', $exception, stack: $this->hydrationStack); - } - } + after_milestones_url: - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy(array $payload): \ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['avatar_url'] ?? null; + $value = $payload['mirror_url'] ?? null; if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatar_url; + $missingFields[] = 'mirror_url'; + goto after_mirror_url; } - $properties['avatar_url'] = $value; + $properties['mirror_url'] = $value; - after_avatar_url: + after_mirror_url: - $value = $payload['deleted'] ?? null; + $value = $payload['name'] ?? null; if ($value === null) { - $missingFields[] = 'deleted'; - goto after_deleted; + $missingFields[] = 'name'; + goto after_name; } - $properties['deleted'] = $value; + $properties['name'] = $value; - after_deleted: + after_name: - $value = $payload['email'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $missingFields[] = 'email'; - goto after_email; + $missingFields[] = 'node_id'; + goto after_node_id; } - $properties['email'] = $value; + $properties['node_id'] = $value; - after_email: + after_node_id: - $value = $payload['events_url'] ?? null; + $value = $payload['notifications_url'] ?? null; if ($value === null) { - $missingFields[] = 'events_url'; - goto after_events_url; + $missingFields[] = 'notifications_url'; + goto after_notifications_url; } - $properties['events_url'] = $value; + $properties['notifications_url'] = $value; - after_events_url: + after_notifications_url: - $value = $payload['followers_url'] ?? null; + $value = $payload['open_issues'] ?? null; if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followers_url; + $missingFields[] = 'open_issues'; + goto after_open_issues; } - $properties['followers_url'] = $value; + $properties['open_issues'] = $value; - after_followers_url: + after_open_issues: - $value = $payload['following_url'] ?? null; + $value = $payload['open_issues_count'] ?? null; if ($value === null) { - $missingFields[] = 'following_url'; - goto after_following_url; + $missingFields[] = 'open_issues_count'; + goto after_open_issues_count; } - $properties['following_url'] = $value; + $properties['open_issues_count'] = $value; - after_following_url: + after_open_issues_count: - $value = $payload['gists_url'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gists_url; + $missingFields[] = 'organization'; + goto after_organization; } - $properties['gists_url'] = $value; + $properties['organization'] = $value; - after_gists_url: + after_organization: - $value = $payload['gravatar_id'] ?? null; + $value = $payload['owner'] ?? null; if ($value === null) { - $missingFields[] = 'gravatar_id'; - goto after_gravatar_id; + $missingFields[] = 'owner'; + goto after_owner; } - $properties['gravatar_id'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'owner'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['owner'] = $value; - after_gravatar_id: + after_owner: - $value = $payload['html_url'] ?? null; + $value = $payload['permissions'] ?? null; if ($value === null) { - $missingFields[] = 'html_url'; - goto after_html_url; + $missingFields[] = 'permissions'; + goto after_permissions; } - $properties['html_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'permissions'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionTransferred⚡️Changes⚡️NewRepository⚡️Permissions($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['permissions'] = $value; - after_html_url: + after_permissions: - $value = $payload['id'] ?? null; + $value = $payload['private'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'private'; + goto after_private; } - $properties['id'] = $value; + $properties['private'] = $value; - after_id: + after_private: - $value = $payload['login'] ?? null; + $value = $payload['public'] ?? null; if ($value === null) { - $missingFields[] = 'login'; - goto after_login; + $missingFields[] = 'public'; + goto after_public; } - $properties['login'] = $value; + $properties['public'] = $value; - after_login: + after_public: - $value = $payload['name'] ?? null; + $value = $payload['pulls_url'] ?? null; if ($value === null) { - $missingFields[] = 'name'; - goto after_name; + $missingFields[] = 'pulls_url'; + goto after_pulls_url; } - $properties['name'] = $value; + $properties['pulls_url'] = $value; - after_name: + after_pulls_url: - $value = $payload['node_id'] ?? null; + $value = $payload['pushed_at'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $properties['pushed_at'] = null; + goto after_pushed_at; } - $properties['node_id'] = $value; + $properties['pushed_at'] = $value; - after_node_id: + after_pushed_at: - $value = $payload['organizations_url'] ?? null; + $value = $payload['releases_url'] ?? null; if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizations_url; + $missingFields[] = 'releases_url'; + goto after_releases_url; } - $properties['organizations_url'] = $value; + $properties['releases_url'] = $value; - after_organizations_url: + after_releases_url: - $value = $payload['received_events_url'] ?? null; + $value = $payload['role_name'] ?? null; if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_received_events_url; + $missingFields[] = 'role_name'; + goto after_role_name; } - $properties['received_events_url'] = $value; + $properties['role_name'] = $value; - after_received_events_url: + after_role_name: - $value = $payload['repos_url'] ?? null; + $value = $payload['size'] ?? null; if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_repos_url; + $missingFields[] = 'size'; + goto after_size; } - $properties['repos_url'] = $value; + $properties['size'] = $value; - after_repos_url: + after_size: - $value = $payload['site_admin'] ?? null; + $value = $payload['squash_merge_commit_message'] ?? null; if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_site_admin; + $missingFields[] = 'squash_merge_commit_message'; + goto after_squash_merge_commit_message; } - $properties['site_admin'] = $value; + $properties['squash_merge_commit_message'] = $value; - after_site_admin: + after_squash_merge_commit_message: - $value = $payload['starred_url'] ?? null; + $value = $payload['squash_merge_commit_title'] ?? null; if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starred_url; + $missingFields[] = 'squash_merge_commit_title'; + goto after_squash_merge_commit_title; } - $properties['starred_url'] = $value; + $properties['squash_merge_commit_title'] = $value; - after_starred_url: + after_squash_merge_commit_title: - $value = $payload['subscriptions_url'] ?? null; + $value = $payload['ssh_url'] ?? null; if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptions_url; + $missingFields[] = 'ssh_url'; + goto after_ssh_url; } - $properties['subscriptions_url'] = $value; + $properties['ssh_url'] = $value; - after_subscriptions_url: + after_ssh_url: - $value = $payload['type'] ?? null; + $value = $payload['stargazers'] ?? null; if ($value === null) { - $missingFields[] = 'type'; - goto after_type; + $missingFields[] = 'stargazers'; + goto after_stargazers; } - $properties['type'] = $value; + $properties['stargazers'] = $value; - after_type: + after_stargazers: - $value = $payload['url'] ?? null; + $value = $payload['stargazers_count'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $missingFields[] = 'stargazers_count'; + goto after_stargazers_count; } - $properties['url'] = $value; + $properties['stargazers_count'] = $value; - after_url: - - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy', $exception, stack: $this->hydrationStack); - } - } + after_stargazers_count: - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links⚡️Comments(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Links\Comments - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['href'] ?? null; + $value = $payload['stargazers_url'] ?? null; if ($value === null) { - $missingFields[] = 'href'; - goto after_href; + $missingFields[] = 'stargazers_url'; + goto after_stargazers_url; } - $properties['href'] = $value; + $properties['stargazers_url'] = $value; - after_href: + after_stargazers_url: - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Links\Comments', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Links\Comments::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Links\Comments(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Links\Comments', $exception, stack: $this->hydrationStack); - } - } + $value = $payload['statuses_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'statuses_url'; + goto after_statuses_url; + } - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Base⚡️Repo(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Base\Repo - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['allow_auto_merge'] ?? null; + $properties['statuses_url'] = $value; + + after_statuses_url: + + $value = $payload['subscribers_url'] ?? null; if ($value === null) { - $missingFields[] = 'allow_auto_merge'; - goto after_allow_auto_merge; + $missingFields[] = 'subscribers_url'; + goto after_subscribers_url; } - $properties['allow_auto_merge'] = $value; + $properties['subscribers_url'] = $value; - after_allow_auto_merge: + after_subscribers_url: - $value = $payload['allow_forking'] ?? null; + $value = $payload['subscription_url'] ?? null; if ($value === null) { - $missingFields[] = 'allow_forking'; - goto after_allow_forking; + $missingFields[] = 'subscription_url'; + goto after_subscription_url; } - $properties['allow_forking'] = $value; + $properties['subscription_url'] = $value; - after_allow_forking: + after_subscription_url: - $value = $payload['allow_merge_commit'] ?? null; + $value = $payload['svn_url'] ?? null; if ($value === null) { - $missingFields[] = 'allow_merge_commit'; - goto after_allow_merge_commit; + $missingFields[] = 'svn_url'; + goto after_svn_url; } - $properties['allow_merge_commit'] = $value; + $properties['svn_url'] = $value; - after_allow_merge_commit: + after_svn_url: - $value = $payload['allow_rebase_merge'] ?? null; + $value = $payload['tags_url'] ?? null; if ($value === null) { - $missingFields[] = 'allow_rebase_merge'; - goto after_allow_rebase_merge; + $missingFields[] = 'tags_url'; + goto after_tags_url; } - $properties['allow_rebase_merge'] = $value; + $properties['tags_url'] = $value; - after_allow_rebase_merge: + after_tags_url: - $value = $payload['allow_squash_merge'] ?? null; + $value = $payload['teams_url'] ?? null; if ($value === null) { - $missingFields[] = 'allow_squash_merge'; - goto after_allow_squash_merge; + $missingFields[] = 'teams_url'; + goto after_teams_url; } - $properties['allow_squash_merge'] = $value; + $properties['teams_url'] = $value; - after_allow_squash_merge: + after_teams_url: - $value = $payload['allow_update_branch'] ?? null; + $value = $payload['topics'] ?? null; if ($value === null) { - $missingFields[] = 'allow_update_branch'; - goto after_allow_update_branch; + $missingFields[] = 'topics'; + goto after_topics; } - $properties['allow_update_branch'] = $value; + $properties['topics'] = $value; - after_allow_update_branch: + after_topics: - $value = $payload['archive_url'] ?? null; + $value = $payload['trees_url'] ?? null; if ($value === null) { - $missingFields[] = 'archive_url'; - goto after_archive_url; + $missingFields[] = 'trees_url'; + goto after_trees_url; } - $properties['archive_url'] = $value; + $properties['trees_url'] = $value; - after_archive_url: + after_trees_url: - $value = $payload['archived'] ?? null; + $value = $payload['updated_at'] ?? null; if ($value === null) { - $missingFields[] = 'archived'; - goto after_archived; + $missingFields[] = 'updated_at'; + goto after_updated_at; } - $properties['archived'] = $value; + $properties['updated_at'] = $value; - after_archived: + after_updated_at: - $value = $payload['assignees_url'] ?? null; + $value = $payload['url'] ?? null; if ($value === null) { - $missingFields[] = 'assignees_url'; - goto after_assignees_url; + $missingFields[] = 'url'; + goto after_url; } - $properties['assignees_url'] = $value; + $properties['url'] = $value; - after_assignees_url: + after_url: - $value = $payload['blobs_url'] ?? null; + $value = $payload['use_squash_pr_title_as_default'] ?? null; if ($value === null) { - $missingFields[] = 'blobs_url'; - goto after_blobs_url; + $missingFields[] = 'use_squash_pr_title_as_default'; + goto after_use_squash_pr_title_as_default; } - $properties['blobs_url'] = $value; + $properties['use_squash_pr_title_as_default'] = $value; - after_blobs_url: + after_use_squash_pr_title_as_default: - $value = $payload['branches_url'] ?? null; + $value = $payload['visibility'] ?? null; if ($value === null) { - $missingFields[] = 'branches_url'; - goto after_branches_url; + $missingFields[] = 'visibility'; + goto after_visibility; } - $properties['branches_url'] = $value; + $properties['visibility'] = $value; - after_branches_url: + after_visibility: - $value = $payload['clone_url'] ?? null; + $value = $payload['watchers'] ?? null; if ($value === null) { - $missingFields[] = 'clone_url'; - goto after_clone_url; + $missingFields[] = 'watchers'; + goto after_watchers; } - $properties['clone_url'] = $value; + $properties['watchers'] = $value; - after_clone_url: + after_watchers: - $value = $payload['collaborators_url'] ?? null; + $value = $payload['watchers_count'] ?? null; if ($value === null) { - $missingFields[] = 'collaborators_url'; - goto after_collaborators_url; + $missingFields[] = 'watchers_count'; + goto after_watchers_count; } - $properties['collaborators_url'] = $value; + $properties['watchers_count'] = $value; - after_collaborators_url: + after_watchers_count: - $value = $payload['comments_url'] ?? null; + $value = $payload['web_commit_signoff_required'] ?? null; if ($value === null) { - $missingFields[] = 'comments_url'; - goto after_comments_url; + $missingFields[] = 'web_commit_signoff_required'; + goto after_web_commit_signoff_required; } - $properties['comments_url'] = $value; + $properties['web_commit_signoff_required'] = $value; - after_comments_url: + after_web_commit_signoff_required: - $value = $payload['commits_url'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Head\Repo', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Head\Repo::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Head\Repo(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Head\Repo', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner(array $payload): \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['login'] ?? null; if ($value === null) { - $missingFields[] = 'commits_url'; - goto after_commits_url; + $missingFields[] = 'login'; + goto after_login; } - $properties['commits_url'] = $value; + $properties['login'] = $value; - after_commits_url: + after_login: - $value = $payload['compare_url'] ?? null; + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'compare_url'; - goto after_compare_url; + $missingFields[] = 'id'; + goto after_id; } - $properties['compare_url'] = $value; + $properties['id'] = $value; - after_compare_url: + after_id: - $value = $payload['contents_url'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $missingFields[] = 'contents_url'; - goto after_contents_url; + $missingFields[] = 'node_id'; + goto after_node_id; } - $properties['contents_url'] = $value; + $properties['node_id'] = $value; - after_contents_url: + after_node_id: - $value = $payload['contributors_url'] ?? null; + $value = $payload['avatar_url'] ?? null; if ($value === null) { - $missingFields[] = 'contributors_url'; - goto after_contributors_url; + $missingFields[] = 'avatar_url'; + goto after_avatar_url; } - $properties['contributors_url'] = $value; + $properties['avatar_url'] = $value; - after_contributors_url: + after_avatar_url: - $value = $payload['created_at'] ?? null; + $value = $payload['gravatar_id'] ?? null; if ($value === null) { - $properties['created_at'] = null; - goto after_created_at; + $missingFields[] = 'gravatar_id'; + goto after_gravatar_id; } - $properties['created_at'] = $value; + $properties['gravatar_id'] = $value; - after_created_at: + after_gravatar_id: - $value = $payload['default_branch'] ?? null; + $value = $payload['url'] ?? null; if ($value === null) { - $missingFields[] = 'default_branch'; - goto after_default_branch; + $missingFields[] = 'url'; + goto after_url; } - $properties['default_branch'] = $value; + $properties['url'] = $value; - after_default_branch: + after_url: - $value = $payload['delete_branch_on_merge'] ?? null; + $value = $payload['html_url'] ?? null; if ($value === null) { - $missingFields[] = 'delete_branch_on_merge'; - goto after_delete_branch_on_merge; + $missingFields[] = 'html_url'; + goto after_html_url; } - $properties['delete_branch_on_merge'] = $value; + $properties['html_url'] = $value; - after_delete_branch_on_merge: + after_html_url: - $value = $payload['deployments_url'] ?? null; + $value = $payload['followers_url'] ?? null; if ($value === null) { - $missingFields[] = 'deployments_url'; - goto after_deployments_url; + $missingFields[] = 'followers_url'; + goto after_followers_url; } - $properties['deployments_url'] = $value; + $properties['followers_url'] = $value; - after_deployments_url: + after_followers_url: - $value = $payload['description'] ?? null; + $value = $payload['following_url'] ?? null; if ($value === null) { - $missingFields[] = 'description'; - goto after_description; + $missingFields[] = 'following_url'; + goto after_following_url; } - $properties['description'] = $value; + $properties['following_url'] = $value; - after_description: + after_following_url: - $value = $payload['disabled'] ?? null; + $value = $payload['gists_url'] ?? null; if ($value === null) { - $missingFields[] = 'disabled'; - goto after_disabled; + $missingFields[] = 'gists_url'; + goto after_gists_url; } - $properties['disabled'] = $value; + $properties['gists_url'] = $value; - after_disabled: + after_gists_url: - $value = $payload['downloads_url'] ?? null; + $value = $payload['starred_url'] ?? null; if ($value === null) { - $missingFields[] = 'downloads_url'; - goto after_downloads_url; + $missingFields[] = 'starred_url'; + goto after_starred_url; } - $properties['downloads_url'] = $value; + $properties['starred_url'] = $value; - after_downloads_url: + after_starred_url: - $value = $payload['events_url'] ?? null; + $value = $payload['subscriptions_url'] ?? null; if ($value === null) { - $missingFields[] = 'events_url'; - goto after_events_url; + $missingFields[] = 'subscriptions_url'; + goto after_subscriptions_url; } - $properties['events_url'] = $value; + $properties['subscriptions_url'] = $value; - after_events_url: + after_subscriptions_url: - $value = $payload['fork'] ?? null; + $value = $payload['organizations_url'] ?? null; if ($value === null) { - $missingFields[] = 'fork'; - goto after_fork; + $missingFields[] = 'organizations_url'; + goto after_organizations_url; } - $properties['fork'] = $value; + $properties['organizations_url'] = $value; - after_fork: + after_organizations_url: - $value = $payload['forks'] ?? null; + $value = $payload['repos_url'] ?? null; if ($value === null) { - $missingFields[] = 'forks'; - goto after_forks; + $missingFields[] = 'repos_url'; + goto after_repos_url; } - $properties['forks'] = $value; + $properties['repos_url'] = $value; - after_forks: + after_repos_url: - $value = $payload['forks_count'] ?? null; + $value = $payload['events_url'] ?? null; if ($value === null) { - $missingFields[] = 'forks_count'; - goto after_forks_count; + $missingFields[] = 'events_url'; + goto after_events_url; } - $properties['forks_count'] = $value; + $properties['events_url'] = $value; - after_forks_count: + after_events_url: - $value = $payload['forks_url'] ?? null; + $value = $payload['received_events_url'] ?? null; if ($value === null) { - $missingFields[] = 'forks_url'; - goto after_forks_url; + $missingFields[] = 'received_events_url'; + goto after_received_events_url; } - $properties['forks_url'] = $value; + $properties['received_events_url'] = $value; - after_forks_url: + after_received_events_url: - $value = $payload['full_name'] ?? null; + $value = $payload['type'] ?? null; if ($value === null) { - $missingFields[] = 'full_name'; - goto after_full_name; + $missingFields[] = 'type'; + goto after_type; } - $properties['full_name'] = $value; + $properties['type'] = $value; - after_full_name: + after_type: - $value = $payload['git_commits_url'] ?? null; + $value = $payload['site_admin'] ?? null; if ($value === null) { - $missingFields[] = 'git_commits_url'; - goto after_git_commits_url; + $missingFields[] = 'site_admin'; + goto after_site_admin; } - $properties['git_commits_url'] = $value; + $properties['site_admin'] = $value; - after_git_commits_url: + after_site_admin: - $value = $payload['git_refs_url'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Permissions(array $payload): \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['admin'] ?? null; if ($value === null) { - $missingFields[] = 'git_refs_url'; - goto after_git_refs_url; + $missingFields[] = 'admin'; + goto after_admin; } - $properties['git_refs_url'] = $value; + $properties['admin'] = $value; - after_git_refs_url: + after_admin: - $value = $payload['git_tags_url'] ?? null; + $value = $payload['maintain'] ?? null; if ($value === null) { - $missingFields[] = 'git_tags_url'; - goto after_git_tags_url; + $missingFields[] = 'maintain'; + goto after_maintain; } - $properties['git_tags_url'] = $value; + $properties['maintain'] = $value; - after_git_tags_url: + after_maintain: - $value = $payload['git_url'] ?? null; + $value = $payload['push'] ?? null; if ($value === null) { - $missingFields[] = 'git_url'; - goto after_git_url; + $missingFields[] = 'push'; + goto after_push; } - $properties['git_url'] = $value; + $properties['push'] = $value; - after_git_url: + after_push: - $value = $payload['has_downloads'] ?? null; + $value = $payload['triage'] ?? null; if ($value === null) { - $missingFields[] = 'has_downloads'; - goto after_has_downloads; + $missingFields[] = 'triage'; + goto after_triage; } - $properties['has_downloads'] = $value; + $properties['triage'] = $value; - after_has_downloads: + after_triage: - $value = $payload['has_issues'] ?? null; + $value = $payload['pull'] ?? null; if ($value === null) { - $missingFields[] = 'has_issues'; - goto after_has_issues; + $missingFields[] = 'pull'; + goto after_pull; } - $properties['has_issues'] = $value; + $properties['pull'] = $value; - after_has_issues: + after_pull: - $value = $payload['has_pages'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesOpened⚡️Changes⚡️OldRepository(array $payload): \ApiClients\Client\Github\Schema\WebhookIssuesOpened\Changes\OldRepository + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['allow_auto_merge'] ?? null; if ($value === null) { - $missingFields[] = 'has_pages'; - goto after_has_pages; + $missingFields[] = 'allow_auto_merge'; + goto after_allow_auto_merge; } - $properties['has_pages'] = $value; + $properties['allow_auto_merge'] = $value; - after_has_pages: + after_allow_auto_merge: - $value = $payload['has_projects'] ?? null; + $value = $payload['allow_forking'] ?? null; if ($value === null) { - $missingFields[] = 'has_projects'; - goto after_has_projects; + $missingFields[] = 'allow_forking'; + goto after_allow_forking; } - $properties['has_projects'] = $value; + $properties['allow_forking'] = $value; - after_has_projects: + after_allow_forking: - $value = $payload['has_wiki'] ?? null; + $value = $payload['allow_merge_commit'] ?? null; if ($value === null) { - $missingFields[] = 'has_wiki'; - goto after_has_wiki; + $missingFields[] = 'allow_merge_commit'; + goto after_allow_merge_commit; } - $properties['has_wiki'] = $value; + $properties['allow_merge_commit'] = $value; - after_has_wiki: + after_allow_merge_commit: - $value = $payload['has_discussions'] ?? null; + $value = $payload['allow_rebase_merge'] ?? null; if ($value === null) { - $missingFields[] = 'has_discussions'; - goto after_has_discussions; + $missingFields[] = 'allow_rebase_merge'; + goto after_allow_rebase_merge; } - $properties['has_discussions'] = $value; + $properties['allow_rebase_merge'] = $value; - after_has_discussions: + after_allow_rebase_merge: - $value = $payload['homepage'] ?? null; + $value = $payload['allow_squash_merge'] ?? null; if ($value === null) { - $missingFields[] = 'homepage'; - goto after_homepage; + $missingFields[] = 'allow_squash_merge'; + goto after_allow_squash_merge; } - $properties['homepage'] = $value; + $properties['allow_squash_merge'] = $value; - after_homepage: + after_allow_squash_merge: - $value = $payload['hooks_url'] ?? null; + $value = $payload['allow_update_branch'] ?? null; if ($value === null) { - $missingFields[] = 'hooks_url'; - goto after_hooks_url; + $missingFields[] = 'allow_update_branch'; + goto after_allow_update_branch; } - $properties['hooks_url'] = $value; + $properties['allow_update_branch'] = $value; - after_hooks_url: + after_allow_update_branch: - $value = $payload['html_url'] ?? null; + $value = $payload['archive_url'] ?? null; if ($value === null) { - $missingFields[] = 'html_url'; - goto after_html_url; + $missingFields[] = 'archive_url'; + goto after_archive_url; } - $properties['html_url'] = $value; + $properties['archive_url'] = $value; - after_html_url: + after_archive_url: - $value = $payload['id'] ?? null; + $value = $payload['archived'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'archived'; + goto after_archived; } - $properties['id'] = $value; + $properties['archived'] = $value; - after_id: + after_archived: - $value = $payload['is_template'] ?? null; + $value = $payload['assignees_url'] ?? null; if ($value === null) { - $missingFields[] = 'is_template'; - goto after_is_template; + $missingFields[] = 'assignees_url'; + goto after_assignees_url; } - $properties['is_template'] = $value; + $properties['assignees_url'] = $value; - after_is_template: + after_assignees_url: - $value = $payload['issue_comment_url'] ?? null; + $value = $payload['blobs_url'] ?? null; if ($value === null) { - $missingFields[] = 'issue_comment_url'; - goto after_issue_comment_url; + $missingFields[] = 'blobs_url'; + goto after_blobs_url; } - $properties['issue_comment_url'] = $value; + $properties['blobs_url'] = $value; - after_issue_comment_url: + after_blobs_url: - $value = $payload['issue_events_url'] ?? null; + $value = $payload['branches_url'] ?? null; if ($value === null) { - $missingFields[] = 'issue_events_url'; - goto after_issue_events_url; + $missingFields[] = 'branches_url'; + goto after_branches_url; } - $properties['issue_events_url'] = $value; + $properties['branches_url'] = $value; - after_issue_events_url: + after_branches_url: - $value = $payload['issues_url'] ?? null; + $value = $payload['clone_url'] ?? null; if ($value === null) { - $missingFields[] = 'issues_url'; - goto after_issues_url; + $missingFields[] = 'clone_url'; + goto after_clone_url; } - $properties['issues_url'] = $value; + $properties['clone_url'] = $value; - after_issues_url: + after_clone_url: - $value = $payload['keys_url'] ?? null; + $value = $payload['collaborators_url'] ?? null; if ($value === null) { - $missingFields[] = 'keys_url'; - goto after_keys_url; + $missingFields[] = 'collaborators_url'; + goto after_collaborators_url; } - $properties['keys_url'] = $value; + $properties['collaborators_url'] = $value; - after_keys_url: + after_collaborators_url: - $value = $payload['labels_url'] ?? null; + $value = $payload['comments_url'] ?? null; if ($value === null) { - $missingFields[] = 'labels_url'; - goto after_labels_url; + $missingFields[] = 'comments_url'; + goto after_comments_url; } - $properties['labels_url'] = $value; + $properties['comments_url'] = $value; - after_labels_url: + after_comments_url: - $value = $payload['language'] ?? null; + $value = $payload['commits_url'] ?? null; if ($value === null) { - $missingFields[] = 'language'; - goto after_language; + $missingFields[] = 'commits_url'; + goto after_commits_url; } - $properties['language'] = $value; + $properties['commits_url'] = $value; - after_language: + after_commits_url: - $value = $payload['languages_url'] ?? null; + $value = $payload['compare_url'] ?? null; if ($value === null) { - $missingFields[] = 'languages_url'; - goto after_languages_url; + $missingFields[] = 'compare_url'; + goto after_compare_url; } - $properties['languages_url'] = $value; + $properties['compare_url'] = $value; - after_languages_url: + after_compare_url: - $value = $payload['license'] ?? null; + $value = $payload['contents_url'] ?? null; if ($value === null) { - $missingFields[] = 'license'; - goto after_license; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'license'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionTransferred⚡️Changes⚡️NewRepository⚡️License($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'contents_url'; + goto after_contents_url; } - $properties['license'] = $value; + $properties['contents_url'] = $value; - after_license: + after_contents_url: - $value = $payload['master_branch'] ?? null; + $value = $payload['contributors_url'] ?? null; if ($value === null) { - $missingFields[] = 'master_branch'; - goto after_master_branch; + $missingFields[] = 'contributors_url'; + goto after_contributors_url; } - $properties['master_branch'] = $value; + $properties['contributors_url'] = $value; - after_master_branch: + after_contributors_url: - $value = $payload['merge_commit_message'] ?? null; + $value = $payload['created_at'] ?? null; if ($value === null) { - $missingFields[] = 'merge_commit_message'; - goto after_merge_commit_message; + $properties['created_at'] = null; + goto after_created_at; } - $properties['merge_commit_message'] = $value; + $properties['created_at'] = $value; - after_merge_commit_message: + after_created_at: - $value = $payload['merge_commit_title'] ?? null; + $value = $payload['default_branch'] ?? null; if ($value === null) { - $missingFields[] = 'merge_commit_title'; - goto after_merge_commit_title; + $missingFields[] = 'default_branch'; + goto after_default_branch; } - $properties['merge_commit_title'] = $value; + $properties['default_branch'] = $value; - after_merge_commit_title: + after_default_branch: - $value = $payload['merges_url'] ?? null; + $value = $payload['delete_branch_on_merge'] ?? null; if ($value === null) { - $missingFields[] = 'merges_url'; - goto after_merges_url; + $missingFields[] = 'delete_branch_on_merge'; + goto after_delete_branch_on_merge; } - $properties['merges_url'] = $value; + $properties['delete_branch_on_merge'] = $value; - after_merges_url: + after_delete_branch_on_merge: - $value = $payload['milestones_url'] ?? null; + $value = $payload['deployments_url'] ?? null; if ($value === null) { - $missingFields[] = 'milestones_url'; - goto after_milestones_url; + $missingFields[] = 'deployments_url'; + goto after_deployments_url; } - $properties['milestones_url'] = $value; + $properties['deployments_url'] = $value; - after_milestones_url: + after_deployments_url: - $value = $payload['mirror_url'] ?? null; + $value = $payload['description'] ?? null; if ($value === null) { - $missingFields[] = 'mirror_url'; - goto after_mirror_url; + $missingFields[] = 'description'; + goto after_description; } - $properties['mirror_url'] = $value; + $properties['description'] = $value; - after_mirror_url: + after_description: - $value = $payload['name'] ?? null; + $value = $payload['disabled'] ?? null; if ($value === null) { - $missingFields[] = 'name'; - goto after_name; + $missingFields[] = 'disabled'; + goto after_disabled; } - $properties['name'] = $value; + $properties['disabled'] = $value; - after_name: + after_disabled: - $value = $payload['node_id'] ?? null; + $value = $payload['downloads_url'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $missingFields[] = 'downloads_url'; + goto after_downloads_url; } - $properties['node_id'] = $value; + $properties['downloads_url'] = $value; - after_node_id: + after_downloads_url: - $value = $payload['notifications_url'] ?? null; + $value = $payload['events_url'] ?? null; if ($value === null) { - $missingFields[] = 'notifications_url'; - goto after_notifications_url; + $missingFields[] = 'events_url'; + goto after_events_url; } - $properties['notifications_url'] = $value; + $properties['events_url'] = $value; - after_notifications_url: + after_events_url: - $value = $payload['open_issues'] ?? null; + $value = $payload['fork'] ?? null; if ($value === null) { - $missingFields[] = 'open_issues'; - goto after_open_issues; + $missingFields[] = 'fork'; + goto after_fork; } - $properties['open_issues'] = $value; + $properties['fork'] = $value; - after_open_issues: + after_fork: - $value = $payload['open_issues_count'] ?? null; + $value = $payload['forks'] ?? null; if ($value === null) { - $missingFields[] = 'open_issues_count'; - goto after_open_issues_count; + $missingFields[] = 'forks'; + goto after_forks; } - $properties['open_issues_count'] = $value; + $properties['forks'] = $value; - after_open_issues_count: + after_forks: - $value = $payload['organization'] ?? null; + $value = $payload['forks_count'] ?? null; if ($value === null) { - $missingFields[] = 'organization'; - goto after_organization; + $missingFields[] = 'forks_count'; + goto after_forks_count; } - $properties['organization'] = $value; + $properties['forks_count'] = $value; - after_organization: + after_forks_count: - $value = $payload['owner'] ?? null; + $value = $payload['forks_url'] ?? null; if ($value === null) { - $missingFields[] = 'owner'; - goto after_owner; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'owner'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'forks_url'; + goto after_forks_url; } - $properties['owner'] = $value; + $properties['forks_url'] = $value; - after_owner: + after_forks_url: - $value = $payload['permissions'] ?? null; + $value = $payload['full_name'] ?? null; if ($value === null) { - $missingFields[] = 'permissions'; - goto after_permissions; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'permissions'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionTransferred⚡️Changes⚡️NewRepository⚡️Permissions($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'full_name'; + goto after_full_name; } - $properties['permissions'] = $value; + $properties['full_name'] = $value; - after_permissions: + after_full_name: - $value = $payload['private'] ?? null; + $value = $payload['git_commits_url'] ?? null; if ($value === null) { - $missingFields[] = 'private'; - goto after_private; + $missingFields[] = 'git_commits_url'; + goto after_git_commits_url; } - $properties['private'] = $value; + $properties['git_commits_url'] = $value; - after_private: + after_git_commits_url: - $value = $payload['public'] ?? null; + $value = $payload['git_refs_url'] ?? null; if ($value === null) { - $missingFields[] = 'public'; - goto after_public; + $missingFields[] = 'git_refs_url'; + goto after_git_refs_url; } - $properties['public'] = $value; + $properties['git_refs_url'] = $value; - after_public: + after_git_refs_url: - $value = $payload['pulls_url'] ?? null; + $value = $payload['git_tags_url'] ?? null; if ($value === null) { - $missingFields[] = 'pulls_url'; - goto after_pulls_url; + $missingFields[] = 'git_tags_url'; + goto after_git_tags_url; } - $properties['pulls_url'] = $value; + $properties['git_tags_url'] = $value; - after_pulls_url: + after_git_tags_url: - $value = $payload['pushed_at'] ?? null; + $value = $payload['git_url'] ?? null; if ($value === null) { - $properties['pushed_at'] = null; - goto after_pushed_at; + $missingFields[] = 'git_url'; + goto after_git_url; } - $properties['pushed_at'] = $value; + $properties['git_url'] = $value; - after_pushed_at: + after_git_url: - $value = $payload['releases_url'] ?? null; + $value = $payload['has_downloads'] ?? null; if ($value === null) { - $missingFields[] = 'releases_url'; - goto after_releases_url; + $missingFields[] = 'has_downloads'; + goto after_has_downloads; } - $properties['releases_url'] = $value; + $properties['has_downloads'] = $value; - after_releases_url: + after_has_downloads: - $value = $payload['role_name'] ?? null; + $value = $payload['has_issues'] ?? null; if ($value === null) { - $missingFields[] = 'role_name'; - goto after_role_name; + $missingFields[] = 'has_issues'; + goto after_has_issues; } - $properties['role_name'] = $value; + $properties['has_issues'] = $value; - after_role_name: + after_has_issues: - $value = $payload['size'] ?? null; + $value = $payload['has_pages'] ?? null; if ($value === null) { - $missingFields[] = 'size'; - goto after_size; + $missingFields[] = 'has_pages'; + goto after_has_pages; } - $properties['size'] = $value; + $properties['has_pages'] = $value; - after_size: + after_has_pages: - $value = $payload['squash_merge_commit_message'] ?? null; + $value = $payload['has_projects'] ?? null; if ($value === null) { - $missingFields[] = 'squash_merge_commit_message'; - goto after_squash_merge_commit_message; + $missingFields[] = 'has_projects'; + goto after_has_projects; } - $properties['squash_merge_commit_message'] = $value; + $properties['has_projects'] = $value; - after_squash_merge_commit_message: + after_has_projects: - $value = $payload['squash_merge_commit_title'] ?? null; + $value = $payload['has_wiki'] ?? null; if ($value === null) { - $missingFields[] = 'squash_merge_commit_title'; - goto after_squash_merge_commit_title; + $missingFields[] = 'has_wiki'; + goto after_has_wiki; } - $properties['squash_merge_commit_title'] = $value; + $properties['has_wiki'] = $value; - after_squash_merge_commit_title: + after_has_wiki: - $value = $payload['ssh_url'] ?? null; + $value = $payload['homepage'] ?? null; if ($value === null) { - $missingFields[] = 'ssh_url'; - goto after_ssh_url; + $missingFields[] = 'homepage'; + goto after_homepage; } - $properties['ssh_url'] = $value; + $properties['homepage'] = $value; - after_ssh_url: + after_homepage: - $value = $payload['stargazers'] ?? null; + $value = $payload['hooks_url'] ?? null; if ($value === null) { - $missingFields[] = 'stargazers'; - goto after_stargazers; + $missingFields[] = 'hooks_url'; + goto after_hooks_url; } - $properties['stargazers'] = $value; + $properties['hooks_url'] = $value; - after_stargazers: + after_hooks_url: - $value = $payload['stargazers_count'] ?? null; + $value = $payload['html_url'] ?? null; if ($value === null) { - $missingFields[] = 'stargazers_count'; - goto after_stargazers_count; + $missingFields[] = 'html_url'; + goto after_html_url; } - $properties['stargazers_count'] = $value; + $properties['html_url'] = $value; - after_stargazers_count: + after_html_url: - $value = $payload['stargazers_url'] ?? null; + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'stargazers_url'; - goto after_stargazers_url; + $missingFields[] = 'id'; + goto after_id; } - $properties['stargazers_url'] = $value; + $properties['id'] = $value; - after_stargazers_url: + after_id: - $value = $payload['statuses_url'] ?? null; + $value = $payload['is_template'] ?? null; if ($value === null) { - $missingFields[] = 'statuses_url'; - goto after_statuses_url; + $missingFields[] = 'is_template'; + goto after_is_template; } - $properties['statuses_url'] = $value; + $properties['is_template'] = $value; - after_statuses_url: + after_is_template: - $value = $payload['subscribers_url'] ?? null; + $value = $payload['issue_comment_url'] ?? null; if ($value === null) { - $missingFields[] = 'subscribers_url'; - goto after_subscribers_url; + $missingFields[] = 'issue_comment_url'; + goto after_issue_comment_url; } - $properties['subscribers_url'] = $value; + $properties['issue_comment_url'] = $value; - after_subscribers_url: + after_issue_comment_url: - $value = $payload['subscription_url'] ?? null; + $value = $payload['issue_events_url'] ?? null; if ($value === null) { - $missingFields[] = 'subscription_url'; - goto after_subscription_url; + $missingFields[] = 'issue_events_url'; + goto after_issue_events_url; } - $properties['subscription_url'] = $value; + $properties['issue_events_url'] = $value; - after_subscription_url: + after_issue_events_url: - $value = $payload['svn_url'] ?? null; + $value = $payload['issues_url'] ?? null; if ($value === null) { - $missingFields[] = 'svn_url'; - goto after_svn_url; + $missingFields[] = 'issues_url'; + goto after_issues_url; } - $properties['svn_url'] = $value; + $properties['issues_url'] = $value; - after_svn_url: + after_issues_url: - $value = $payload['tags_url'] ?? null; + $value = $payload['keys_url'] ?? null; if ($value === null) { - $missingFields[] = 'tags_url'; - goto after_tags_url; + $missingFields[] = 'keys_url'; + goto after_keys_url; } - $properties['tags_url'] = $value; + $properties['keys_url'] = $value; - after_tags_url: + after_keys_url: - $value = $payload['teams_url'] ?? null; + $value = $payload['labels_url'] ?? null; if ($value === null) { - $missingFields[] = 'teams_url'; - goto after_teams_url; + $missingFields[] = 'labels_url'; + goto after_labels_url; } - $properties['teams_url'] = $value; + $properties['labels_url'] = $value; - after_teams_url: + after_labels_url: - $value = $payload['topics'] ?? null; + $value = $payload['language'] ?? null; if ($value === null) { - $missingFields[] = 'topics'; - goto after_topics; + $missingFields[] = 'language'; + goto after_language; } - $properties['topics'] = $value; + $properties['language'] = $value; - after_topics: + after_language: - $value = $payload['trees_url'] ?? null; + $value = $payload['languages_url'] ?? null; if ($value === null) { - $missingFields[] = 'trees_url'; - goto after_trees_url; + $missingFields[] = 'languages_url'; + goto after_languages_url; } - $properties['trees_url'] = $value; + $properties['languages_url'] = $value; - after_trees_url: + after_languages_url: - $value = $payload['updated_at'] ?? null; + $value = $payload['license'] ?? null; if ($value === null) { - $missingFields[] = 'updated_at'; - goto after_updated_at; + $missingFields[] = 'license'; + goto after_license; } - $properties['updated_at'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'license'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionTransferred⚡️Changes⚡️NewRepository⚡️License($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['license'] = $value; - after_updated_at: + after_license: - $value = $payload['url'] ?? null; + $value = $payload['master_branch'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $missingFields[] = 'master_branch'; + goto after_master_branch; } - $properties['url'] = $value; + $properties['master_branch'] = $value; - after_url: + after_master_branch: - $value = $payload['use_squash_pr_title_as_default'] ?? null; + $value = $payload['merges_url'] ?? null; if ($value === null) { - $missingFields[] = 'use_squash_pr_title_as_default'; - goto after_use_squash_pr_title_as_default; + $missingFields[] = 'merges_url'; + goto after_merges_url; } - $properties['use_squash_pr_title_as_default'] = $value; + $properties['merges_url'] = $value; - after_use_squash_pr_title_as_default: + after_merges_url: - $value = $payload['visibility'] ?? null; + $value = $payload['milestones_url'] ?? null; if ($value === null) { - $missingFields[] = 'visibility'; - goto after_visibility; + $missingFields[] = 'milestones_url'; + goto after_milestones_url; } - $properties['visibility'] = $value; + $properties['milestones_url'] = $value; - after_visibility: + after_milestones_url: - $value = $payload['watchers'] ?? null; + $value = $payload['mirror_url'] ?? null; if ($value === null) { - $missingFields[] = 'watchers'; - goto after_watchers; + $missingFields[] = 'mirror_url'; + goto after_mirror_url; } - $properties['watchers'] = $value; + $properties['mirror_url'] = $value; - after_watchers: + after_mirror_url: - $value = $payload['watchers_count'] ?? null; + $value = $payload['name'] ?? null; if ($value === null) { - $missingFields[] = 'watchers_count'; - goto after_watchers_count; + $missingFields[] = 'name'; + goto after_name; } - $properties['watchers_count'] = $value; + $properties['name'] = $value; - after_watchers_count: + after_name: - $value = $payload['web_commit_signoff_required'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $missingFields[] = 'web_commit_signoff_required'; - goto after_web_commit_signoff_required; + $missingFields[] = 'node_id'; + goto after_node_id; } - $properties['web_commit_signoff_required'] = $value; + $properties['node_id'] = $value; - after_web_commit_signoff_required: - - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Base\Repo', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Base\Repo::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Base\Repo(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Base\Repo', $exception, stack: $this->hydrationStack); - } - } + after_node_id: - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Head⚡️Repo(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Head\Repo - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['allow_auto_merge'] ?? null; + $value = $payload['notifications_url'] ?? null; if ($value === null) { - $missingFields[] = 'allow_auto_merge'; - goto after_allow_auto_merge; + $missingFields[] = 'notifications_url'; + goto after_notifications_url; } - $properties['allow_auto_merge'] = $value; + $properties['notifications_url'] = $value; - after_allow_auto_merge: + after_notifications_url: - $value = $payload['allow_forking'] ?? null; + $value = $payload['open_issues'] ?? null; if ($value === null) { - $missingFields[] = 'allow_forking'; - goto after_allow_forking; + $missingFields[] = 'open_issues'; + goto after_open_issues; } - $properties['allow_forking'] = $value; + $properties['open_issues'] = $value; - after_allow_forking: + after_open_issues: - $value = $payload['allow_merge_commit'] ?? null; + $value = $payload['open_issues_count'] ?? null; if ($value === null) { - $missingFields[] = 'allow_merge_commit'; - goto after_allow_merge_commit; + $missingFields[] = 'open_issues_count'; + goto after_open_issues_count; } - $properties['allow_merge_commit'] = $value; + $properties['open_issues_count'] = $value; - after_allow_merge_commit: + after_open_issues_count: - $value = $payload['allow_rebase_merge'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'allow_rebase_merge'; - goto after_allow_rebase_merge; + $missingFields[] = 'organization'; + goto after_organization; } - $properties['allow_rebase_merge'] = $value; + $properties['organization'] = $value; - after_allow_rebase_merge: + after_organization: - $value = $payload['allow_squash_merge'] ?? null; + $value = $payload['owner'] ?? null; if ($value === null) { - $missingFields[] = 'allow_squash_merge'; - goto after_allow_squash_merge; + $missingFields[] = 'owner'; + goto after_owner; } - $properties['allow_squash_merge'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'owner'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['owner'] = $value; - after_allow_squash_merge: + after_owner: - $value = $payload['allow_update_branch'] ?? null; + $value = $payload['permissions'] ?? null; if ($value === null) { - $missingFields[] = 'allow_update_branch'; - goto after_allow_update_branch; + $missingFields[] = 'permissions'; + goto after_permissions; } - $properties['allow_update_branch'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'permissions'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionTransferred⚡️Changes⚡️NewRepository⚡️Permissions($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['permissions'] = $value; - after_allow_update_branch: + after_permissions: - $value = $payload['archive_url'] ?? null; + $value = $payload['private'] ?? null; if ($value === null) { - $missingFields[] = 'archive_url'; - goto after_archive_url; + $missingFields[] = 'private'; + goto after_private; } - $properties['archive_url'] = $value; + $properties['private'] = $value; - after_archive_url: + after_private: - $value = $payload['archived'] ?? null; + $value = $payload['public'] ?? null; if ($value === null) { - $missingFields[] = 'archived'; - goto after_archived; + $missingFields[] = 'public'; + goto after_public; } - $properties['archived'] = $value; + $properties['public'] = $value; - after_archived: + after_public: - $value = $payload['assignees_url'] ?? null; + $value = $payload['pulls_url'] ?? null; if ($value === null) { - $missingFields[] = 'assignees_url'; - goto after_assignees_url; + $missingFields[] = 'pulls_url'; + goto after_pulls_url; } - $properties['assignees_url'] = $value; + $properties['pulls_url'] = $value; - after_assignees_url: + after_pulls_url: - $value = $payload['blobs_url'] ?? null; + $value = $payload['pushed_at'] ?? null; if ($value === null) { - $missingFields[] = 'blobs_url'; - goto after_blobs_url; + $properties['pushed_at'] = null; + goto after_pushed_at; } - $properties['blobs_url'] = $value; + $properties['pushed_at'] = $value; - after_blobs_url: + after_pushed_at: - $value = $payload['branches_url'] ?? null; + $value = $payload['releases_url'] ?? null; if ($value === null) { - $missingFields[] = 'branches_url'; - goto after_branches_url; + $missingFields[] = 'releases_url'; + goto after_releases_url; } - $properties['branches_url'] = $value; + $properties['releases_url'] = $value; - after_branches_url: + after_releases_url: - $value = $payload['clone_url'] ?? null; + $value = $payload['role_name'] ?? null; if ($value === null) { - $missingFields[] = 'clone_url'; - goto after_clone_url; + $missingFields[] = 'role_name'; + goto after_role_name; } - $properties['clone_url'] = $value; + $properties['role_name'] = $value; - after_clone_url: + after_role_name: - $value = $payload['collaborators_url'] ?? null; + $value = $payload['size'] ?? null; if ($value === null) { - $missingFields[] = 'collaborators_url'; - goto after_collaborators_url; + $missingFields[] = 'size'; + goto after_size; } - $properties['collaborators_url'] = $value; + $properties['size'] = $value; - after_collaborators_url: + after_size: - $value = $payload['comments_url'] ?? null; + $value = $payload['ssh_url'] ?? null; if ($value === null) { - $missingFields[] = 'comments_url'; - goto after_comments_url; + $missingFields[] = 'ssh_url'; + goto after_ssh_url; } - $properties['comments_url'] = $value; + $properties['ssh_url'] = $value; - after_comments_url: + after_ssh_url: - $value = $payload['commits_url'] ?? null; + $value = $payload['stargazers'] ?? null; if ($value === null) { - $missingFields[] = 'commits_url'; - goto after_commits_url; + $missingFields[] = 'stargazers'; + goto after_stargazers; } - $properties['commits_url'] = $value; + $properties['stargazers'] = $value; - after_commits_url: + after_stargazers: - $value = $payload['compare_url'] ?? null; + $value = $payload['stargazers_count'] ?? null; if ($value === null) { - $missingFields[] = 'compare_url'; - goto after_compare_url; + $missingFields[] = 'stargazers_count'; + goto after_stargazers_count; } - $properties['compare_url'] = $value; + $properties['stargazers_count'] = $value; - after_compare_url: + after_stargazers_count: - $value = $payload['contents_url'] ?? null; + $value = $payload['stargazers_url'] ?? null; if ($value === null) { - $missingFields[] = 'contents_url'; - goto after_contents_url; + $missingFields[] = 'stargazers_url'; + goto after_stargazers_url; } - $properties['contents_url'] = $value; + $properties['stargazers_url'] = $value; - after_contents_url: + after_stargazers_url: - $value = $payload['contributors_url'] ?? null; + $value = $payload['statuses_url'] ?? null; if ($value === null) { - $missingFields[] = 'contributors_url'; - goto after_contributors_url; + $missingFields[] = 'statuses_url'; + goto after_statuses_url; } - $properties['contributors_url'] = $value; + $properties['statuses_url'] = $value; - after_contributors_url: + after_statuses_url: - $value = $payload['created_at'] ?? null; + $value = $payload['subscribers_url'] ?? null; if ($value === null) { - $properties['created_at'] = null; - goto after_created_at; + $missingFields[] = 'subscribers_url'; + goto after_subscribers_url; } - $properties['created_at'] = $value; + $properties['subscribers_url'] = $value; - after_created_at: + after_subscribers_url: - $value = $payload['default_branch'] ?? null; + $value = $payload['subscription_url'] ?? null; if ($value === null) { - $missingFields[] = 'default_branch'; - goto after_default_branch; + $missingFields[] = 'subscription_url'; + goto after_subscription_url; } - $properties['default_branch'] = $value; + $properties['subscription_url'] = $value; - after_default_branch: + after_subscription_url: - $value = $payload['delete_branch_on_merge'] ?? null; + $value = $payload['svn_url'] ?? null; if ($value === null) { - $missingFields[] = 'delete_branch_on_merge'; - goto after_delete_branch_on_merge; + $missingFields[] = 'svn_url'; + goto after_svn_url; } - $properties['delete_branch_on_merge'] = $value; + $properties['svn_url'] = $value; - after_delete_branch_on_merge: + after_svn_url: - $value = $payload['deployments_url'] ?? null; + $value = $payload['tags_url'] ?? null; if ($value === null) { - $missingFields[] = 'deployments_url'; - goto after_deployments_url; + $missingFields[] = 'tags_url'; + goto after_tags_url; } - $properties['deployments_url'] = $value; + $properties['tags_url'] = $value; - after_deployments_url: + after_tags_url: - $value = $payload['description'] ?? null; + $value = $payload['teams_url'] ?? null; if ($value === null) { - $missingFields[] = 'description'; - goto after_description; + $missingFields[] = 'teams_url'; + goto after_teams_url; } - $properties['description'] = $value; + $properties['teams_url'] = $value; - after_description: + after_teams_url: - $value = $payload['disabled'] ?? null; + $value = $payload['topics'] ?? null; if ($value === null) { - $missingFields[] = 'disabled'; - goto after_disabled; + $missingFields[] = 'topics'; + goto after_topics; } - $properties['disabled'] = $value; + $properties['topics'] = $value; - after_disabled: + after_topics: - $value = $payload['downloads_url'] ?? null; + $value = $payload['trees_url'] ?? null; if ($value === null) { - $missingFields[] = 'downloads_url'; - goto after_downloads_url; + $missingFields[] = 'trees_url'; + goto after_trees_url; } - $properties['downloads_url'] = $value; + $properties['trees_url'] = $value; - after_downloads_url: + after_trees_url: - $value = $payload['events_url'] ?? null; + $value = $payload['updated_at'] ?? null; if ($value === null) { - $missingFields[] = 'events_url'; - goto after_events_url; + $missingFields[] = 'updated_at'; + goto after_updated_at; } - $properties['events_url'] = $value; + $properties['updated_at'] = $value; - after_events_url: + after_updated_at: - $value = $payload['fork'] ?? null; + $value = $payload['url'] ?? null; if ($value === null) { - $missingFields[] = 'fork'; - goto after_fork; + $missingFields[] = 'url'; + goto after_url; } - $properties['fork'] = $value; + $properties['url'] = $value; - after_fork: + after_url: - $value = $payload['forks'] ?? null; + $value = $payload['visibility'] ?? null; if ($value === null) { - $missingFields[] = 'forks'; - goto after_forks; + $missingFields[] = 'visibility'; + goto after_visibility; } - $properties['forks'] = $value; + $properties['visibility'] = $value; - after_forks: + after_visibility: - $value = $payload['forks_count'] ?? null; + $value = $payload['watchers'] ?? null; if ($value === null) { - $missingFields[] = 'forks_count'; - goto after_forks_count; + $missingFields[] = 'watchers'; + goto after_watchers; } - $properties['forks_count'] = $value; + $properties['watchers'] = $value; - after_forks_count: + after_watchers: - $value = $payload['forks_url'] ?? null; + $value = $payload['watchers_count'] ?? null; if ($value === null) { - $missingFields[] = 'forks_url'; - goto after_forks_url; + $missingFields[] = 'watchers_count'; + goto after_watchers_count; } - $properties['forks_url'] = $value; + $properties['watchers_count'] = $value; - after_forks_url: + after_watchers_count: - $value = $payload['full_name'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesOpened\Changes\OldRepository', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookIssuesOpened\Changes\OldRepository::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookIssuesOpened\Changes\OldRepository(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesOpened\Changes\OldRepository', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewEdited⚡️PullRequest⚡️Head⚡️Repo(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestReviewEdited\PullRequest\Head\Repo + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['allow_auto_merge'] ?? null; if ($value === null) { - $missingFields[] = 'full_name'; - goto after_full_name; + $missingFields[] = 'allow_auto_merge'; + goto after_allow_auto_merge; } - $properties['full_name'] = $value; + $properties['allow_auto_merge'] = $value; - after_full_name: + after_allow_auto_merge: - $value = $payload['git_commits_url'] ?? null; + $value = $payload['allow_forking'] ?? null; if ($value === null) { - $missingFields[] = 'git_commits_url'; - goto after_git_commits_url; + $missingFields[] = 'allow_forking'; + goto after_allow_forking; } - $properties['git_commits_url'] = $value; + $properties['allow_forking'] = $value; - after_git_commits_url: + after_allow_forking: - $value = $payload['git_refs_url'] ?? null; + $value = $payload['allow_merge_commit'] ?? null; if ($value === null) { - $missingFields[] = 'git_refs_url'; - goto after_git_refs_url; + $missingFields[] = 'allow_merge_commit'; + goto after_allow_merge_commit; } - $properties['git_refs_url'] = $value; + $properties['allow_merge_commit'] = $value; - after_git_refs_url: + after_allow_merge_commit: - $value = $payload['git_tags_url'] ?? null; + $value = $payload['allow_rebase_merge'] ?? null; if ($value === null) { - $missingFields[] = 'git_tags_url'; - goto after_git_tags_url; + $missingFields[] = 'allow_rebase_merge'; + goto after_allow_rebase_merge; } - $properties['git_tags_url'] = $value; + $properties['allow_rebase_merge'] = $value; - after_git_tags_url: + after_allow_rebase_merge: - $value = $payload['git_url'] ?? null; + $value = $payload['allow_squash_merge'] ?? null; if ($value === null) { - $missingFields[] = 'git_url'; - goto after_git_url; + $missingFields[] = 'allow_squash_merge'; + goto after_allow_squash_merge; } - $properties['git_url'] = $value; + $properties['allow_squash_merge'] = $value; - after_git_url: + after_allow_squash_merge: - $value = $payload['has_downloads'] ?? null; + $value = $payload['allow_update_branch'] ?? null; if ($value === null) { - $missingFields[] = 'has_downloads'; - goto after_has_downloads; + $missingFields[] = 'allow_update_branch'; + goto after_allow_update_branch; } - $properties['has_downloads'] = $value; + $properties['allow_update_branch'] = $value; - after_has_downloads: + after_allow_update_branch: - $value = $payload['has_issues'] ?? null; + $value = $payload['archive_url'] ?? null; if ($value === null) { - $missingFields[] = 'has_issues'; - goto after_has_issues; + $missingFields[] = 'archive_url'; + goto after_archive_url; } - $properties['has_issues'] = $value; + $properties['archive_url'] = $value; - after_has_issues: + after_archive_url: - $value = $payload['has_pages'] ?? null; + $value = $payload['archived'] ?? null; if ($value === null) { - $missingFields[] = 'has_pages'; - goto after_has_pages; + $missingFields[] = 'archived'; + goto after_archived; } - $properties['has_pages'] = $value; + $properties['archived'] = $value; - after_has_pages: + after_archived: - $value = $payload['has_projects'] ?? null; + $value = $payload['assignees_url'] ?? null; if ($value === null) { - $missingFields[] = 'has_projects'; - goto after_has_projects; + $missingFields[] = 'assignees_url'; + goto after_assignees_url; } - $properties['has_projects'] = $value; + $properties['assignees_url'] = $value; - after_has_projects: + after_assignees_url: - $value = $payload['has_wiki'] ?? null; + $value = $payload['blobs_url'] ?? null; if ($value === null) { - $missingFields[] = 'has_wiki'; - goto after_has_wiki; + $missingFields[] = 'blobs_url'; + goto after_blobs_url; } - $properties['has_wiki'] = $value; + $properties['blobs_url'] = $value; - after_has_wiki: + after_blobs_url: - $value = $payload['has_discussions'] ?? null; + $value = $payload['branches_url'] ?? null; - if ($value === null) { - $missingFields[] = 'has_discussions'; - goto after_has_discussions; + if ($value === null) { + $missingFields[] = 'branches_url'; + goto after_branches_url; } - $properties['has_discussions'] = $value; + $properties['branches_url'] = $value; - after_has_discussions: + after_branches_url: - $value = $payload['homepage'] ?? null; + $value = $payload['clone_url'] ?? null; if ($value === null) { - $missingFields[] = 'homepage'; - goto after_homepage; + $missingFields[] = 'clone_url'; + goto after_clone_url; } - $properties['homepage'] = $value; + $properties['clone_url'] = $value; - after_homepage: + after_clone_url: - $value = $payload['hooks_url'] ?? null; + $value = $payload['collaborators_url'] ?? null; if ($value === null) { - $missingFields[] = 'hooks_url'; - goto after_hooks_url; + $missingFields[] = 'collaborators_url'; + goto after_collaborators_url; } - $properties['hooks_url'] = $value; + $properties['collaborators_url'] = $value; - after_hooks_url: + after_collaborators_url: - $value = $payload['html_url'] ?? null; + $value = $payload['comments_url'] ?? null; if ($value === null) { - $missingFields[] = 'html_url'; - goto after_html_url; + $missingFields[] = 'comments_url'; + goto after_comments_url; } - $properties['html_url'] = $value; + $properties['comments_url'] = $value; - after_html_url: + after_comments_url: - $value = $payload['id'] ?? null; + $value = $payload['commits_url'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'commits_url'; + goto after_commits_url; } - $properties['id'] = $value; + $properties['commits_url'] = $value; - after_id: + after_commits_url: - $value = $payload['is_template'] ?? null; + $value = $payload['compare_url'] ?? null; if ($value === null) { - $missingFields[] = 'is_template'; - goto after_is_template; + $missingFields[] = 'compare_url'; + goto after_compare_url; } - $properties['is_template'] = $value; + $properties['compare_url'] = $value; - after_is_template: + after_compare_url: - $value = $payload['issue_comment_url'] ?? null; + $value = $payload['contents_url'] ?? null; if ($value === null) { - $missingFields[] = 'issue_comment_url'; - goto after_issue_comment_url; + $missingFields[] = 'contents_url'; + goto after_contents_url; } - $properties['issue_comment_url'] = $value; + $properties['contents_url'] = $value; - after_issue_comment_url: + after_contents_url: - $value = $payload['issue_events_url'] ?? null; + $value = $payload['contributors_url'] ?? null; if ($value === null) { - $missingFields[] = 'issue_events_url'; - goto after_issue_events_url; + $missingFields[] = 'contributors_url'; + goto after_contributors_url; } - $properties['issue_events_url'] = $value; + $properties['contributors_url'] = $value; - after_issue_events_url: + after_contributors_url: - $value = $payload['issues_url'] ?? null; + $value = $payload['created_at'] ?? null; if ($value === null) { - $missingFields[] = 'issues_url'; - goto after_issues_url; + $properties['created_at'] = null; + goto after_created_at; } - $properties['issues_url'] = $value; + $properties['created_at'] = $value; - after_issues_url: + after_created_at: - $value = $payload['keys_url'] ?? null; + $value = $payload['default_branch'] ?? null; if ($value === null) { - $missingFields[] = 'keys_url'; - goto after_keys_url; + $missingFields[] = 'default_branch'; + goto after_default_branch; } - $properties['keys_url'] = $value; + $properties['default_branch'] = $value; - after_keys_url: + after_default_branch: - $value = $payload['labels_url'] ?? null; + $value = $payload['delete_branch_on_merge'] ?? null; if ($value === null) { - $missingFields[] = 'labels_url'; - goto after_labels_url; + $missingFields[] = 'delete_branch_on_merge'; + goto after_delete_branch_on_merge; } - $properties['labels_url'] = $value; + $properties['delete_branch_on_merge'] = $value; - after_labels_url: + after_delete_branch_on_merge: - $value = $payload['language'] ?? null; + $value = $payload['deployments_url'] ?? null; if ($value === null) { - $missingFields[] = 'language'; - goto after_language; + $missingFields[] = 'deployments_url'; + goto after_deployments_url; } - $properties['language'] = $value; + $properties['deployments_url'] = $value; - after_language: + after_deployments_url: - $value = $payload['languages_url'] ?? null; + $value = $payload['description'] ?? null; if ($value === null) { - $missingFields[] = 'languages_url'; - goto after_languages_url; + $missingFields[] = 'description'; + goto after_description; } - $properties['languages_url'] = $value; + $properties['description'] = $value; - after_languages_url: + after_description: - $value = $payload['license'] ?? null; + $value = $payload['disabled'] ?? null; if ($value === null) { - $missingFields[] = 'license'; - goto after_license; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'license'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionTransferred⚡️Changes⚡️NewRepository⚡️License($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'disabled'; + goto after_disabled; } - $properties['license'] = $value; + $properties['disabled'] = $value; - after_license: + after_disabled: - $value = $payload['master_branch'] ?? null; + $value = $payload['downloads_url'] ?? null; if ($value === null) { - $missingFields[] = 'master_branch'; - goto after_master_branch; + $missingFields[] = 'downloads_url'; + goto after_downloads_url; } - $properties['master_branch'] = $value; + $properties['downloads_url'] = $value; - after_master_branch: + after_downloads_url: - $value = $payload['merge_commit_message'] ?? null; + $value = $payload['events_url'] ?? null; if ($value === null) { - $missingFields[] = 'merge_commit_message'; - goto after_merge_commit_message; + $missingFields[] = 'events_url'; + goto after_events_url; } - $properties['merge_commit_message'] = $value; + $properties['events_url'] = $value; - after_merge_commit_message: + after_events_url: - $value = $payload['merge_commit_title'] ?? null; + $value = $payload['fork'] ?? null; if ($value === null) { - $missingFields[] = 'merge_commit_title'; - goto after_merge_commit_title; + $missingFields[] = 'fork'; + goto after_fork; } - $properties['merge_commit_title'] = $value; + $properties['fork'] = $value; - after_merge_commit_title: + after_fork: - $value = $payload['merges_url'] ?? null; + $value = $payload['forks'] ?? null; if ($value === null) { - $missingFields[] = 'merges_url'; - goto after_merges_url; + $missingFields[] = 'forks'; + goto after_forks; } - $properties['merges_url'] = $value; + $properties['forks'] = $value; - after_merges_url: + after_forks: - $value = $payload['milestones_url'] ?? null; + $value = $payload['forks_count'] ?? null; if ($value === null) { - $missingFields[] = 'milestones_url'; - goto after_milestones_url; + $missingFields[] = 'forks_count'; + goto after_forks_count; } - $properties['milestones_url'] = $value; + $properties['forks_count'] = $value; - after_milestones_url: + after_forks_count: - $value = $payload['mirror_url'] ?? null; + $value = $payload['forks_url'] ?? null; if ($value === null) { - $missingFields[] = 'mirror_url'; - goto after_mirror_url; + $missingFields[] = 'forks_url'; + goto after_forks_url; } - $properties['mirror_url'] = $value; + $properties['forks_url'] = $value; - after_mirror_url: + after_forks_url: - $value = $payload['name'] ?? null; + $value = $payload['full_name'] ?? null; if ($value === null) { - $missingFields[] = 'name'; - goto after_name; + $missingFields[] = 'full_name'; + goto after_full_name; } - $properties['name'] = $value; + $properties['full_name'] = $value; - after_name: + after_full_name: - $value = $payload['node_id'] ?? null; + $value = $payload['git_commits_url'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $missingFields[] = 'git_commits_url'; + goto after_git_commits_url; } - $properties['node_id'] = $value; + $properties['git_commits_url'] = $value; - after_node_id: + after_git_commits_url: - $value = $payload['notifications_url'] ?? null; + $value = $payload['git_refs_url'] ?? null; if ($value === null) { - $missingFields[] = 'notifications_url'; - goto after_notifications_url; + $missingFields[] = 'git_refs_url'; + goto after_git_refs_url; } - $properties['notifications_url'] = $value; + $properties['git_refs_url'] = $value; - after_notifications_url: + after_git_refs_url: - $value = $payload['open_issues'] ?? null; + $value = $payload['git_tags_url'] ?? null; if ($value === null) { - $missingFields[] = 'open_issues'; - goto after_open_issues; + $missingFields[] = 'git_tags_url'; + goto after_git_tags_url; } - $properties['open_issues'] = $value; + $properties['git_tags_url'] = $value; - after_open_issues: + after_git_tags_url: - $value = $payload['open_issues_count'] ?? null; + $value = $payload['git_url'] ?? null; if ($value === null) { - $missingFields[] = 'open_issues_count'; - goto after_open_issues_count; + $missingFields[] = 'git_url'; + goto after_git_url; } - $properties['open_issues_count'] = $value; + $properties['git_url'] = $value; - after_open_issues_count: + after_git_url: - $value = $payload['organization'] ?? null; + $value = $payload['has_downloads'] ?? null; if ($value === null) { - $missingFields[] = 'organization'; - goto after_organization; + $missingFields[] = 'has_downloads'; + goto after_has_downloads; } - $properties['organization'] = $value; + $properties['has_downloads'] = $value; - after_organization: + after_has_downloads: - $value = $payload['owner'] ?? null; + $value = $payload['has_issues'] ?? null; if ($value === null) { - $missingFields[] = 'owner'; - goto after_owner; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'owner'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'has_issues'; + goto after_has_issues; } - $properties['owner'] = $value; + $properties['has_issues'] = $value; - after_owner: + after_has_issues: - $value = $payload['permissions'] ?? null; + $value = $payload['has_pages'] ?? null; if ($value === null) { - $missingFields[] = 'permissions'; - goto after_permissions; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'permissions'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionTransferred⚡️Changes⚡️NewRepository⚡️Permissions($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'has_pages'; + goto after_has_pages; } - $properties['permissions'] = $value; + $properties['has_pages'] = $value; - after_permissions: + after_has_pages: - $value = $payload['private'] ?? null; + $value = $payload['has_projects'] ?? null; if ($value === null) { - $missingFields[] = 'private'; - goto after_private; + $missingFields[] = 'has_projects'; + goto after_has_projects; } - $properties['private'] = $value; + $properties['has_projects'] = $value; - after_private: + after_has_projects: - $value = $payload['public'] ?? null; + $value = $payload['has_wiki'] ?? null; if ($value === null) { - $missingFields[] = 'public'; - goto after_public; + $missingFields[] = 'has_wiki'; + goto after_has_wiki; } - $properties['public'] = $value; + $properties['has_wiki'] = $value; - after_public: + after_has_wiki: - $value = $payload['pulls_url'] ?? null; + $value = $payload['homepage'] ?? null; if ($value === null) { - $missingFields[] = 'pulls_url'; - goto after_pulls_url; + $missingFields[] = 'homepage'; + goto after_homepage; } - $properties['pulls_url'] = $value; + $properties['homepage'] = $value; - after_pulls_url: + after_homepage: - $value = $payload['pushed_at'] ?? null; + $value = $payload['hooks_url'] ?? null; if ($value === null) { - $properties['pushed_at'] = null; - goto after_pushed_at; + $missingFields[] = 'hooks_url'; + goto after_hooks_url; } - $properties['pushed_at'] = $value; + $properties['hooks_url'] = $value; - after_pushed_at: + after_hooks_url: - $value = $payload['releases_url'] ?? null; + $value = $payload['html_url'] ?? null; if ($value === null) { - $missingFields[] = 'releases_url'; - goto after_releases_url; + $missingFields[] = 'html_url'; + goto after_html_url; } - $properties['releases_url'] = $value; + $properties['html_url'] = $value; - after_releases_url: + after_html_url: - $value = $payload['role_name'] ?? null; + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'role_name'; - goto after_role_name; + $missingFields[] = 'id'; + goto after_id; } - $properties['role_name'] = $value; + $properties['id'] = $value; - after_role_name: + after_id: - $value = $payload['size'] ?? null; + $value = $payload['is_template'] ?? null; if ($value === null) { - $missingFields[] = 'size'; - goto after_size; + $missingFields[] = 'is_template'; + goto after_is_template; } - $properties['size'] = $value; + $properties['is_template'] = $value; - after_size: + after_is_template: - $value = $payload['squash_merge_commit_message'] ?? null; + $value = $payload['issue_comment_url'] ?? null; if ($value === null) { - $missingFields[] = 'squash_merge_commit_message'; - goto after_squash_merge_commit_message; + $missingFields[] = 'issue_comment_url'; + goto after_issue_comment_url; } - $properties['squash_merge_commit_message'] = $value; + $properties['issue_comment_url'] = $value; - after_squash_merge_commit_message: + after_issue_comment_url: - $value = $payload['squash_merge_commit_title'] ?? null; + $value = $payload['issue_events_url'] ?? null; if ($value === null) { - $missingFields[] = 'squash_merge_commit_title'; - goto after_squash_merge_commit_title; + $missingFields[] = 'issue_events_url'; + goto after_issue_events_url; } - $properties['squash_merge_commit_title'] = $value; + $properties['issue_events_url'] = $value; - after_squash_merge_commit_title: + after_issue_events_url: - $value = $payload['ssh_url'] ?? null; + $value = $payload['issues_url'] ?? null; if ($value === null) { - $missingFields[] = 'ssh_url'; - goto after_ssh_url; + $missingFields[] = 'issues_url'; + goto after_issues_url; } - $properties['ssh_url'] = $value; + $properties['issues_url'] = $value; - after_ssh_url: + after_issues_url: - $value = $payload['stargazers'] ?? null; + $value = $payload['keys_url'] ?? null; if ($value === null) { - $missingFields[] = 'stargazers'; - goto after_stargazers; + $missingFields[] = 'keys_url'; + goto after_keys_url; } - $properties['stargazers'] = $value; + $properties['keys_url'] = $value; - after_stargazers: + after_keys_url: - $value = $payload['stargazers_count'] ?? null; + $value = $payload['labels_url'] ?? null; if ($value === null) { - $missingFields[] = 'stargazers_count'; - goto after_stargazers_count; + $missingFields[] = 'labels_url'; + goto after_labels_url; } - $properties['stargazers_count'] = $value; + $properties['labels_url'] = $value; - after_stargazers_count: + after_labels_url: - $value = $payload['stargazers_url'] ?? null; + $value = $payload['language'] ?? null; if ($value === null) { - $missingFields[] = 'stargazers_url'; - goto after_stargazers_url; + $missingFields[] = 'language'; + goto after_language; } - $properties['stargazers_url'] = $value; + $properties['language'] = $value; - after_stargazers_url: + after_language: - $value = $payload['statuses_url'] ?? null; + $value = $payload['languages_url'] ?? null; if ($value === null) { - $missingFields[] = 'statuses_url'; - goto after_statuses_url; + $missingFields[] = 'languages_url'; + goto after_languages_url; } - $properties['statuses_url'] = $value; + $properties['languages_url'] = $value; - after_statuses_url: + after_languages_url: - $value = $payload['subscribers_url'] ?? null; + $value = $payload['license'] ?? null; if ($value === null) { - $missingFields[] = 'subscribers_url'; - goto after_subscribers_url; + $missingFields[] = 'license'; + goto after_license; } - $properties['subscribers_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'license'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionTransferred⚡️Changes⚡️NewRepository⚡️License($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['license'] = $value; - after_subscribers_url: + after_license: - $value = $payload['subscription_url'] ?? null; + $value = $payload['master_branch'] ?? null; if ($value === null) { - $missingFields[] = 'subscription_url'; - goto after_subscription_url; + $missingFields[] = 'master_branch'; + goto after_master_branch; } - $properties['subscription_url'] = $value; + $properties['master_branch'] = $value; - after_subscription_url: + after_master_branch: - $value = $payload['svn_url'] ?? null; + $value = $payload['merges_url'] ?? null; if ($value === null) { - $missingFields[] = 'svn_url'; - goto after_svn_url; + $missingFields[] = 'merges_url'; + goto after_merges_url; } - $properties['svn_url'] = $value; + $properties['merges_url'] = $value; - after_svn_url: + after_merges_url: - $value = $payload['tags_url'] ?? null; + $value = $payload['milestones_url'] ?? null; if ($value === null) { - $missingFields[] = 'tags_url'; - goto after_tags_url; + $missingFields[] = 'milestones_url'; + goto after_milestones_url; } - $properties['tags_url'] = $value; + $properties['milestones_url'] = $value; - after_tags_url: + after_milestones_url: - $value = $payload['teams_url'] ?? null; + $value = $payload['mirror_url'] ?? null; if ($value === null) { - $missingFields[] = 'teams_url'; - goto after_teams_url; + $missingFields[] = 'mirror_url'; + goto after_mirror_url; } - $properties['teams_url'] = $value; + $properties['mirror_url'] = $value; - after_teams_url: + after_mirror_url: - $value = $payload['topics'] ?? null; + $value = $payload['name'] ?? null; if ($value === null) { - $missingFields[] = 'topics'; - goto after_topics; + $missingFields[] = 'name'; + goto after_name; } - $properties['topics'] = $value; + $properties['name'] = $value; - after_topics: + after_name: - $value = $payload['trees_url'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $missingFields[] = 'trees_url'; - goto after_trees_url; + $missingFields[] = 'node_id'; + goto after_node_id; } - $properties['trees_url'] = $value; + $properties['node_id'] = $value; - after_trees_url: + after_node_id: - $value = $payload['updated_at'] ?? null; + $value = $payload['notifications_url'] ?? null; if ($value === null) { - $missingFields[] = 'updated_at'; - goto after_updated_at; + $missingFields[] = 'notifications_url'; + goto after_notifications_url; } - $properties['updated_at'] = $value; + $properties['notifications_url'] = $value; - after_updated_at: + after_notifications_url: - $value = $payload['url'] ?? null; + $value = $payload['open_issues'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $missingFields[] = 'open_issues'; + goto after_open_issues; } - $properties['url'] = $value; + $properties['open_issues'] = $value; - after_url: + after_open_issues: - $value = $payload['use_squash_pr_title_as_default'] ?? null; + $value = $payload['open_issues_count'] ?? null; if ($value === null) { - $missingFields[] = 'use_squash_pr_title_as_default'; - goto after_use_squash_pr_title_as_default; + $missingFields[] = 'open_issues_count'; + goto after_open_issues_count; } - $properties['use_squash_pr_title_as_default'] = $value; + $properties['open_issues_count'] = $value; - after_use_squash_pr_title_as_default: + after_open_issues_count: - $value = $payload['visibility'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'visibility'; - goto after_visibility; + $missingFields[] = 'organization'; + goto after_organization; } - $properties['visibility'] = $value; + $properties['organization'] = $value; - after_visibility: + after_organization: - $value = $payload['watchers'] ?? null; + $value = $payload['owner'] ?? null; if ($value === null) { - $missingFields[] = 'watchers'; - goto after_watchers; + $missingFields[] = 'owner'; + goto after_owner; } - $properties['watchers'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'owner'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['owner'] = $value; - after_watchers: + after_owner: - $value = $payload['watchers_count'] ?? null; + $value = $payload['permissions'] ?? null; if ($value === null) { - $missingFields[] = 'watchers_count'; - goto after_watchers_count; + $missingFields[] = 'permissions'; + goto after_permissions; } - $properties['watchers_count'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'permissions'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionTransferred⚡️Changes⚡️NewRepository⚡️Permissions($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['permissions'] = $value; - after_watchers_count: + after_permissions: - $value = $payload['web_commit_signoff_required'] ?? null; + $value = $payload['private'] ?? null; if ($value === null) { - $missingFields[] = 'web_commit_signoff_required'; - goto after_web_commit_signoff_required; + $missingFields[] = 'private'; + goto after_private; } - $properties['web_commit_signoff_required'] = $value; + $properties['private'] = $value; - after_web_commit_signoff_required: - - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Head\Repo', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Head\Repo::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Head\Repo(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Head\Repo', $exception, stack: $this->hydrationStack); - } - } + after_private: - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner(array $payload): \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['login'] ?? null; + $value = $payload['public'] ?? null; if ($value === null) { - $missingFields[] = 'login'; - goto after_login; + $missingFields[] = 'public'; + goto after_public; } - $properties['login'] = $value; + $properties['public'] = $value; - after_login: + after_public: - $value = $payload['id'] ?? null; + $value = $payload['pulls_url'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'pulls_url'; + goto after_pulls_url; } - $properties['id'] = $value; + $properties['pulls_url'] = $value; - after_id: + after_pulls_url: - $value = $payload['node_id'] ?? null; + $value = $payload['pushed_at'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $properties['pushed_at'] = null; + goto after_pushed_at; } - $properties['node_id'] = $value; + $properties['pushed_at'] = $value; - after_node_id: + after_pushed_at: - $value = $payload['avatar_url'] ?? null; + $value = $payload['releases_url'] ?? null; if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatar_url; + $missingFields[] = 'releases_url'; + goto after_releases_url; } - $properties['avatar_url'] = $value; + $properties['releases_url'] = $value; - after_avatar_url: + after_releases_url: - $value = $payload['gravatar_id'] ?? null; + $value = $payload['role_name'] ?? null; if ($value === null) { - $missingFields[] = 'gravatar_id'; - goto after_gravatar_id; + $missingFields[] = 'role_name'; + goto after_role_name; } - $properties['gravatar_id'] = $value; + $properties['role_name'] = $value; - after_gravatar_id: + after_role_name: - $value = $payload['url'] ?? null; + $value = $payload['size'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $missingFields[] = 'size'; + goto after_size; } - $properties['url'] = $value; + $properties['size'] = $value; - after_url: + after_size: - $value = $payload['html_url'] ?? null; + $value = $payload['ssh_url'] ?? null; if ($value === null) { - $missingFields[] = 'html_url'; - goto after_html_url; + $missingFields[] = 'ssh_url'; + goto after_ssh_url; } - $properties['html_url'] = $value; + $properties['ssh_url'] = $value; - after_html_url: + after_ssh_url: - $value = $payload['followers_url'] ?? null; + $value = $payload['stargazers'] ?? null; if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followers_url; + $missingFields[] = 'stargazers'; + goto after_stargazers; } - $properties['followers_url'] = $value; + $properties['stargazers'] = $value; - after_followers_url: + after_stargazers: - $value = $payload['following_url'] ?? null; + $value = $payload['stargazers_count'] ?? null; if ($value === null) { - $missingFields[] = 'following_url'; - goto after_following_url; + $missingFields[] = 'stargazers_count'; + goto after_stargazers_count; } - $properties['following_url'] = $value; + $properties['stargazers_count'] = $value; - after_following_url: + after_stargazers_count: - $value = $payload['gists_url'] ?? null; + $value = $payload['stargazers_url'] ?? null; if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gists_url; + $missingFields[] = 'stargazers_url'; + goto after_stargazers_url; } - $properties['gists_url'] = $value; + $properties['stargazers_url'] = $value; - after_gists_url: + after_stargazers_url: - $value = $payload['starred_url'] ?? null; + $value = $payload['statuses_url'] ?? null; if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starred_url; + $missingFields[] = 'statuses_url'; + goto after_statuses_url; } - $properties['starred_url'] = $value; + $properties['statuses_url'] = $value; - after_starred_url: + after_statuses_url: - $value = $payload['subscriptions_url'] ?? null; + $value = $payload['subscribers_url'] ?? null; if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptions_url; + $missingFields[] = 'subscribers_url'; + goto after_subscribers_url; } - $properties['subscriptions_url'] = $value; + $properties['subscribers_url'] = $value; - after_subscriptions_url: + after_subscribers_url: - $value = $payload['organizations_url'] ?? null; + $value = $payload['subscription_url'] ?? null; if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizations_url; + $missingFields[] = 'subscription_url'; + goto after_subscription_url; } - $properties['organizations_url'] = $value; + $properties['subscription_url'] = $value; - after_organizations_url: + after_subscription_url: - $value = $payload['repos_url'] ?? null; + $value = $payload['svn_url'] ?? null; - if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_repos_url; + if ($value === null) { + $missingFields[] = 'svn_url'; + goto after_svn_url; } - $properties['repos_url'] = $value; + $properties['svn_url'] = $value; - after_repos_url: + after_svn_url: - $value = $payload['events_url'] ?? null; + $value = $payload['tags_url'] ?? null; if ($value === null) { - $missingFields[] = 'events_url'; - goto after_events_url; + $missingFields[] = 'tags_url'; + goto after_tags_url; } - $properties['events_url'] = $value; + $properties['tags_url'] = $value; - after_events_url: + after_tags_url: - $value = $payload['received_events_url'] ?? null; + $value = $payload['teams_url'] ?? null; if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_received_events_url; + $missingFields[] = 'teams_url'; + goto after_teams_url; } - $properties['received_events_url'] = $value; + $properties['teams_url'] = $value; - after_received_events_url: + after_teams_url: - $value = $payload['type'] ?? null; + $value = $payload['topics'] ?? null; if ($value === null) { - $missingFields[] = 'type'; - goto after_type; + $missingFields[] = 'topics'; + goto after_topics; } - $properties['type'] = $value; + $properties['topics'] = $value; - after_type: + after_topics: - $value = $payload['site_admin'] ?? null; + $value = $payload['trees_url'] ?? null; if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_site_admin; + $missingFields[] = 'trees_url'; + goto after_trees_url; } - $properties['site_admin'] = $value; + $properties['trees_url'] = $value; - after_site_admin: - - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner', $exception, stack: $this->hydrationStack); - } - } + after_trees_url: - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Permissions(array $payload): \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['admin'] ?? null; + $value = $payload['updated_at'] ?? null; if ($value === null) { - $missingFields[] = 'admin'; - goto after_admin; + $missingFields[] = 'updated_at'; + goto after_updated_at; } - $properties['admin'] = $value; + $properties['updated_at'] = $value; - after_admin: + after_updated_at: - $value = $payload['maintain'] ?? null; + $value = $payload['url'] ?? null; if ($value === null) { - $missingFields[] = 'maintain'; - goto after_maintain; + $missingFields[] = 'url'; + goto after_url; } - $properties['maintain'] = $value; + $properties['url'] = $value; - after_maintain: + after_url: - $value = $payload['push'] ?? null; + $value = $payload['visibility'] ?? null; if ($value === null) { - $missingFields[] = 'push'; - goto after_push; + $missingFields[] = 'visibility'; + goto after_visibility; } - $properties['push'] = $value; + $properties['visibility'] = $value; - after_push: + after_visibility: - $value = $payload['triage'] ?? null; + $value = $payload['watchers'] ?? null; if ($value === null) { - $missingFields[] = 'triage'; - goto after_triage; + $missingFields[] = 'watchers'; + goto after_watchers; } - $properties['triage'] = $value; + $properties['watchers'] = $value; - after_triage: + after_watchers: - $value = $payload['pull'] ?? null; + $value = $payload['watchers_count'] ?? null; if ($value === null) { - $missingFields[] = 'pull'; - goto after_pull; + $missingFields[] = 'watchers_count'; + goto after_watchers_count; } - $properties['pull'] = $value; + $properties['watchers_count'] = $value; - after_pull: + after_watchers_count: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewEdited\PullRequest\Head\Repo', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestReviewEdited\PullRequest\Head\Repo::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookPullRequestReviewEdited\PullRequest\Head\Repo(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewEdited\PullRequest\Head\Repo', $exception, stack: $this->hydrationStack); } } @@ -7589,6 +11714,8 @@ public function serializeObject(object $object): mixed 'DateTime' => $this->serializeValueDateTime($object), 'DateTimeImmutable' => $this->serializeValueDateTimeImmutable($object), 'DateTimeInterface' => $this->serializeValueDateTimeInterface($object), + 'ApiClients\Client\Github\Schema\WebhookPullRequestReviewDismissed' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewDismissed($object), + 'ApiClients\Client\Github\Schema\WebhookPullRequestReviewEdited' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewEdited($object), 'ApiClients\Client\Github\Schema\WebhookPullRequestReviewSubmitted' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewSubmitted($object), default => throw new \LogicException('No serialization defined for $className'), }; @@ -7663,6 +11790,151 @@ private function serializeValueDateTimeInterface(mixed $value): mixed } + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewDismissed(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookPullRequestReviewDismissed); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $pull_request = $object->pull_request; + + if ($pull_request === null) { + goto after_pull_request; + } + $pull_request = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewDismissed⚡️PullRequest($pull_request); + after_pull_request: $result['pull_request'] = $pull_request; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $review = $object->review; + + if ($review === null) { + goto after_review; + } + $review = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewDismissed⚡️Review($review); + after_review: $result['review'] = $review; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewEdited(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookPullRequestReviewEdited); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $changes = $object->changes; + + if ($changes === null) { + goto after_changes; + } + $changes = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewEdited⚡️Changes($changes); + after_changes: $result['changes'] = $changes; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $pull_request = $object->pull_request; + + if ($pull_request === null) { + goto after_pull_request; + } + $pull_request = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewEdited⚡️PullRequest($pull_request); + after_pull_request: $result['pull_request'] = $pull_request; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $review = $object->review; + + if ($review === null) { + goto after_review; + } + $review = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewEdited⚡️Review($review); + after_review: $result['review'] = $review; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewSubmitted(mixed $object): mixed { \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookPullRequestReviewSubmitted); diff --git a/src/Hydrator/WebHook/PullRequestReviewComment.php b/src/Hydrator/WebHook/PullRequestReviewComment.php index 00e87c8f09..ca7453a302 100644 --- a/src/Hydrator/WebHook/PullRequestReviewComment.php +++ b/src/Hydrator/WebHook/PullRequestReviewComment.php @@ -23,32 +23,40 @@ public function __construct() {} public function hydrateObject(string $className, array $payload): object { return match($className) { - 'ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentEdited' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewCommentEdited($payload), - 'ApiClients\Client\Github\Schema\WebhookIssueCommentEdited\Changes' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentEdited⚡️Changes($payload), - 'ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentDeleted\Comment' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewCommentDeleted⚡️Comment($payload), + 'ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentCreated' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewCommentCreated($payload), + 'ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentDeleted' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewCommentDeleted($payload), + 'ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentEdited' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewCommentEdited($payload), + 'ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentCreated\Comment' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewCommentCreated⚡️Comment($payload), 'ApiClients\Client\Github\Schema\Enterprise' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($payload), 'ApiClients\Client\Github\Schema\SimpleInstallation' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($payload), 'ApiClients\Client\Github\Schema\OrganizationSimple' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($payload), - 'ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentEdited\PullRequest' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewCommentEdited⚡️PullRequest($payload), + 'ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentCreated\PullRequest' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewCommentCreated⚡️PullRequest($payload), 'ApiClients\Client\Github\Schema\Repository' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($payload), 'ApiClients\Client\Github\Schema\SimpleUser' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($payload), - 'ApiClients\Client\Github\Schema\WebhookIssueCommentEdited\Changes\Body' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentEdited⚡️Changes⚡️Body($payload), + 'ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentDeleted\Comment' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewCommentDeleted⚡️Comment($payload), + 'ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentDeleted\PullRequest' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewCommentDeleted⚡️PullRequest($payload), + 'ApiClients\Client\Github\Schema\WebhookIssueCommentEdited\Changes' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentEdited⚡️Changes($payload), + 'ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentEdited\PullRequest' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewCommentEdited⚡️PullRequest($payload), 'ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentCreated\Comment\Links' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewCommentCreated⚡️Comment⚡️Links($payload), 'ApiClients\Client\Github\Schema\Discussion\Reactions' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️Reactions($payload), 'ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($payload), 'ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Links' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links($payload), + 'ApiClients\Client\Github\Schema\WebhookIssueCommentDeleted\Comment\User' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Comment⚡️User($payload), 'ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\AutoMerge' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️AutoMerge($payload), 'ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Base' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Base($payload), - 'ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentDeleted\PullRequest\Head' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewCommentDeleted⚡️PullRequest⚡️Head($payload), + 'ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentCreated\PullRequest\Head' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewCommentCreated⚡️PullRequest⚡️Head($payload), 'ApiClients\Client\Github\Schema\WebhookIssuesAssigned\Issue\Milestone' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesAssigned⚡️Issue⚡️Milestone($payload), - 'ApiClients\Client\Github\Schema\WebhookIssueCommentDeleted\Comment\User' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Comment⚡️User($payload), 'ApiClients\Client\Github\Schema\Repository\Permissions' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️Permissions($payload), 'ApiClients\Client\Github\Schema\Repository\TemplateRepository' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository($payload), + 'ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentDeleted\PullRequest\Head' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewCommentDeleted⚡️PullRequest⚡️Head($payload), + 'ApiClients\Client\Github\Schema\WebhookIssuesDeleted\Issue\Milestone' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesDeleted⚡️Issue⚡️Milestone($payload), + 'ApiClients\Client\Github\Schema\WebhookIssueCommentEdited\Changes\Body' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentEdited⚡️Changes⚡️Body($payload), 'ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Links\Comments' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links⚡️Comments($payload), 'ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Base\Repo' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Base⚡️Repo($payload), - 'ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Head\Repo' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Head⚡️Repo($payload), + 'ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentCreated\PullRequest\Head\Repo' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewCommentCreated⚡️PullRequest⚡️Head⚡️Repo($payload), 'ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner($payload), 'ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Permissions($payload), + 'ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Head\Repo' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Head⚡️Repo($payload), 'ApiClients\Client\Github\Schema\WebhookDiscussionTransferred\Changes\NewRepository\License' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionTransferred⚡️Changes⚡️NewRepository⚡️License($payload), 'ApiClients\Client\Github\Schema\WebhookDiscussionTransferred\Changes\NewRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionTransferred⚡️Changes⚡️NewRepository⚡️Permissions($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), @@ -56,7 +64,7 @@ public function hydrateObject(string $className, array $payload): object } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewCommentEdited(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentEdited + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewCommentCreated(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentCreated { $properties = []; $missingFields = []; @@ -73,26 +81,6 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh after_action: - $value = $payload['changes'] ?? null; - - if ($value === null) { - $missingFields[] = 'changes'; - goto after_changes; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'changes'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentEdited⚡️Changes($value); - } finally { - array_pop($this->hydrationStack); - } - } - - $properties['changes'] = $value; - - after_changes: - $value = $payload['comment'] ?? null; if ($value === null) { @@ -103,7 +91,7 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'comment'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewCommentDeleted⚡️Comment($value); + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewCommentCreated⚡️Comment($value); } finally { array_pop($this->hydrationStack); } @@ -183,7 +171,7 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'pull_request'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewCommentEdited⚡️PullRequest($value); + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewCommentCreated⚡️PullRequest($value); } finally { array_pop($this->hydrationStack); } @@ -234,1657 +222,1981 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh after_sender: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentEdited', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentCreated', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentEdited::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentCreated::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentEdited(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentCreated(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentEdited', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentCreated', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentEdited⚡️Changes(array $payload): \ApiClients\Client\Github\Schema\WebhookIssueCommentEdited\Changes + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewCommentDeleted(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentDeleted { $properties = []; $missingFields = []; try { - $value = $payload['body'] ?? null; + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'body'; - goto after_body; + $missingFields[] = 'action'; + goto after_action; + } + + $properties['action'] = $value; + + after_action: + + $value = $payload['comment'] ?? null; + + if ($value === null) { + $missingFields[] = 'comment'; + goto after_comment; } if (is_array($value)) { try { - $this->hydrationStack[] = 'body'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentEdited⚡️Changes⚡️Body($value); + $this->hydrationStack[] = 'comment'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewCommentDeleted⚡️Comment($value); } finally { array_pop($this->hydrationStack); } } - $properties['body'] = $value; + $properties['comment'] = $value; - after_body: - - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssueCommentEdited\Changes', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookIssueCommentEdited\Changes::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\WebhookIssueCommentEdited\Changes(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssueCommentEdited\Changes', $exception, stack: $this->hydrationStack); - } - } + after_comment: - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewCommentDeleted⚡️Comment(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentDeleted\Comment - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['_links'] ?? null; + $value = $payload['enterprise'] ?? null; if ($value === null) { - $missingFields[] = '_links'; - goto after__links; + $missingFields[] = 'enterprise'; + goto after_enterprise; } if (is_array($value)) { try { - $this->hydrationStack[] = '_links'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewCommentCreated⚡️Comment⚡️Links($value); + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); } finally { array_pop($this->hydrationStack); } } - $properties['_links'] = $value; + $properties['enterprise'] = $value; - after__links: + after_enterprise: - $value = $payload['author_association'] ?? null; + $value = $payload['installation'] ?? null; if ($value === null) { - $missingFields[] = 'author_association'; - goto after_author_association; + $missingFields[] = 'installation'; + goto after_installation; } - $properties['author_association'] = $value; - - after_author_association: - - $value = $payload['body'] ?? null; - - if ($value === null) { - $missingFields[] = 'body'; - goto after_body; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['body'] = $value; + $properties['installation'] = $value; - after_body: + after_installation: - $value = $payload['commit_id'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'commit_id'; - goto after_commit_id; + $missingFields[] = 'organization'; + goto after_organization; } - $properties['commit_id'] = $value; - - after_commit_id: - - $value = $payload['created_at'] ?? null; - - if ($value === null) { - $missingFields[] = 'created_at'; - goto after_created_at; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['created_at'] = $value; + $properties['organization'] = $value; - after_created_at: + after_organization: - $value = $payload['diff_hunk'] ?? null; + $value = $payload['pull_request'] ?? null; if ($value === null) { - $missingFields[] = 'diff_hunk'; - goto after_diff_hunk; + $missingFields[] = 'pull_request'; + goto after_pull_request; } - $properties['diff_hunk'] = $value; - - after_diff_hunk: - - $value = $payload['html_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'html_url'; - goto after_html_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'pull_request'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewCommentDeleted⚡️PullRequest($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['html_url'] = $value; + $properties['pull_request'] = $value; - after_html_url: + after_pull_request: - $value = $payload['id'] ?? null; + $value = $payload['repository'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'repository'; + goto after_repository; } - $properties['id'] = $value; - - after_id: - - $value = $payload['in_reply_to_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'in_reply_to_id'; - goto after_in_reply_to_id; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['in_reply_to_id'] = $value; + $properties['repository'] = $value; - after_in_reply_to_id: + after_repository: - $value = $payload['line'] ?? null; + $value = $payload['sender'] ?? null; if ($value === null) { - $missingFields[] = 'line'; - goto after_line; + $missingFields[] = 'sender'; + goto after_sender; } - $properties['line'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; - after_line: + after_sender: - $value = $payload['node_id'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentDeleted', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentDeleted::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentDeleted(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentDeleted', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewCommentEdited(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentEdited + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $missingFields[] = 'action'; + goto after_action; } - $properties['node_id'] = $value; + $properties['action'] = $value; - after_node_id: + after_action: - $value = $payload['original_commit_id'] ?? null; + $value = $payload['changes'] ?? null; if ($value === null) { - $missingFields[] = 'original_commit_id'; - goto after_original_commit_id; + $missingFields[] = 'changes'; + goto after_changes; } - $properties['original_commit_id'] = $value; - - after_original_commit_id: - - $value = $payload['original_line'] ?? null; - - if ($value === null) { - $missingFields[] = 'original_line'; - goto after_original_line; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'changes'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentEdited⚡️Changes($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['original_line'] = $value; + $properties['changes'] = $value; - after_original_line: + after_changes: - $value = $payload['original_position'] ?? null; + $value = $payload['comment'] ?? null; if ($value === null) { - $missingFields[] = 'original_position'; - goto after_original_position; + $missingFields[] = 'comment'; + goto after_comment; } - $properties['original_position'] = $value; - - after_original_position: - - $value = $payload['original_start_line'] ?? null; - - if ($value === null) { - $missingFields[] = 'original_start_line'; - goto after_original_start_line; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'comment'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewCommentDeleted⚡️Comment($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['original_start_line'] = $value; + $properties['comment'] = $value; - after_original_start_line: + after_comment: - $value = $payload['path'] ?? null; + $value = $payload['enterprise'] ?? null; if ($value === null) { - $missingFields[] = 'path'; - goto after_path; + $missingFields[] = 'enterprise'; + goto after_enterprise; } - $properties['path'] = $value; - - after_path: - - $value = $payload['position'] ?? null; - - if ($value === null) { - $missingFields[] = 'position'; - goto after_position; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['position'] = $value; + $properties['enterprise'] = $value; - after_position: + after_enterprise: - $value = $payload['pull_request_review_id'] ?? null; + $value = $payload['installation'] ?? null; if ($value === null) { - $missingFields[] = 'pull_request_review_id'; - goto after_pull_request_review_id; + $missingFields[] = 'installation'; + goto after_installation; } - $properties['pull_request_review_id'] = $value; - - after_pull_request_review_id: - - $value = $payload['pull_request_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'pull_request_url'; - goto after_pull_request_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['pull_request_url'] = $value; + $properties['installation'] = $value; - after_pull_request_url: + after_installation: - $value = $payload['reactions'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'reactions'; - goto after_reactions; + $missingFields[] = 'organization'; + goto after_organization; } if (is_array($value)) { try { - $this->hydrationStack[] = 'reactions'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️Reactions($value); + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); } finally { array_pop($this->hydrationStack); } } - $properties['reactions'] = $value; - - after_reactions: - - $value = $payload['side'] ?? null; - - if ($value === null) { - $missingFields[] = 'side'; - goto after_side; - } - - $properties['side'] = $value; + $properties['organization'] = $value; - after_side: + after_organization: - $value = $payload['start_line'] ?? null; + $value = $payload['pull_request'] ?? null; if ($value === null) { - $missingFields[] = 'start_line'; - goto after_start_line; + $missingFields[] = 'pull_request'; + goto after_pull_request; } - $properties['start_line'] = $value; - - after_start_line: - - $value = $payload['start_side'] ?? null; - - if ($value === null) { - $missingFields[] = 'start_side'; - goto after_start_side; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'pull_request'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewCommentEdited⚡️PullRequest($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['start_side'] = $value; + $properties['pull_request'] = $value; - after_start_side: + after_pull_request: - $value = $payload['updated_at'] ?? null; + $value = $payload['repository'] ?? null; if ($value === null) { - $missingFields[] = 'updated_at'; - goto after_updated_at; + $missingFields[] = 'repository'; + goto after_repository; } - $properties['updated_at'] = $value; - - after_updated_at: - - $value = $payload['url'] ?? null; - - if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['url'] = $value; + $properties['repository'] = $value; - after_url: + after_repository: - $value = $payload['user'] ?? null; + $value = $payload['sender'] ?? null; if ($value === null) { - $missingFields[] = 'user'; - goto after_user; + $missingFields[] = 'sender'; + goto after_sender; } if (is_array($value)) { try { - $this->hydrationStack[] = 'user'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } } - $properties['user'] = $value; + $properties['sender'] = $value; - after_user: + after_sender: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentDeleted\Comment', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentEdited', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentDeleted\Comment::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentEdited::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentDeleted\Comment(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentEdited(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentDeleted\Comment', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentEdited', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise(array $payload): \ApiClients\Client\Github\Schema\Enterprise + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewCommentCreated⚡️Comment(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentCreated\Comment { $properties = []; $missingFields = []; try { - $value = $payload['description'] ?? null; + $value = $payload['_links'] ?? null; if ($value === null) { - $missingFields[] = 'description'; - goto after_description; + $missingFields[] = '_links'; + goto after__links; } - $properties['description'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = '_links'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewCommentCreated⚡️Comment⚡️Links($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['_links'] = $value; - after_description: + after__links: - $value = $payload['html_url'] ?? null; + $value = $payload['author_association'] ?? null; if ($value === null) { - $missingFields[] = 'html_url'; - goto after_html_url; + $missingFields[] = 'author_association'; + goto after_author_association; } - $properties['html_url'] = $value; + $properties['author_association'] = $value; - after_html_url: + after_author_association: - $value = $payload['website_url'] ?? null; + $value = $payload['body'] ?? null; if ($value === null) { - $missingFields[] = 'website_url'; - goto after_website_url; + $missingFields[] = 'body'; + goto after_body; } - $properties['website_url'] = $value; + $properties['body'] = $value; - after_website_url: + after_body: - $value = $payload['id'] ?? null; + $value = $payload['commit_id'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'commit_id'; + goto after_commit_id; } - $properties['id'] = $value; + $properties['commit_id'] = $value; - after_id: + after_commit_id: - $value = $payload['node_id'] ?? null; + $value = $payload['created_at'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $missingFields[] = 'created_at'; + goto after_created_at; } - $properties['node_id'] = $value; + $properties['created_at'] = $value; - after_node_id: + after_created_at: - $value = $payload['name'] ?? null; + $value = $payload['diff_hunk'] ?? null; if ($value === null) { - $missingFields[] = 'name'; - goto after_name; + $missingFields[] = 'diff_hunk'; + goto after_diff_hunk; } - $properties['name'] = $value; + $properties['diff_hunk'] = $value; - after_name: + after_diff_hunk: - $value = $payload['slug'] ?? null; + $value = $payload['html_url'] ?? null; if ($value === null) { - $missingFields[] = 'slug'; - goto after_slug; + $missingFields[] = 'html_url'; + goto after_html_url; } - $properties['slug'] = $value; + $properties['html_url'] = $value; - after_slug: + after_html_url: - $value = $payload['created_at'] ?? null; + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'created_at'; - goto after_created_at; + $missingFields[] = 'id'; + goto after_id; } - $properties['created_at'] = $value; + $properties['id'] = $value; - after_created_at: + after_id: - $value = $payload['updated_at'] ?? null; + $value = $payload['in_reply_to_id'] ?? null; if ($value === null) { - $missingFields[] = 'updated_at'; - goto after_updated_at; + $missingFields[] = 'in_reply_to_id'; + goto after_in_reply_to_id; } - $properties['updated_at'] = $value; + $properties['in_reply_to_id'] = $value; - after_updated_at: + after_in_reply_to_id: - $value = $payload['avatar_url'] ?? null; + $value = $payload['line'] ?? null; if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatar_url; + $missingFields[] = 'line'; + goto after_line; } - $properties['avatar_url'] = $value; + $properties['line'] = $value; - after_avatar_url: - - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Enterprise', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Enterprise::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\Enterprise(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Enterprise', $exception, stack: $this->hydrationStack); - } - } + after_line: - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation(array $payload): \ApiClients\Client\Github\Schema\SimpleInstallation - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['id'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'node_id'; + goto after_node_id; } - $properties['id'] = $value; + $properties['node_id'] = $value; - after_id: + after_node_id: - $value = $payload['node_id'] ?? null; + $value = $payload['original_commit_id'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $missingFields[] = 'original_commit_id'; + goto after_original_commit_id; } - $properties['node_id'] = $value; + $properties['original_commit_id'] = $value; - after_node_id: + after_original_commit_id: - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleInstallation', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\SimpleInstallation::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\SimpleInstallation(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleInstallation', $exception, stack: $this->hydrationStack); - } - } + $value = $payload['original_line'] ?? null; + + if ($value === null) { + $missingFields[] = 'original_line'; + goto after_original_line; + } - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple(array $payload): \ApiClients\Client\Github\Schema\OrganizationSimple - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['login'] ?? null; + $properties['original_line'] = $value; + + after_original_line: + + $value = $payload['original_position'] ?? null; if ($value === null) { - $missingFields[] = 'login'; - goto after_login; + $missingFields[] = 'original_position'; + goto after_original_position; } - $properties['login'] = $value; + $properties['original_position'] = $value; - after_login: + after_original_position: - $value = $payload['id'] ?? null; + $value = $payload['original_start_line'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'original_start_line'; + goto after_original_start_line; } - $properties['id'] = $value; + $properties['original_start_line'] = $value; - after_id: + after_original_start_line: - $value = $payload['node_id'] ?? null; + $value = $payload['path'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $missingFields[] = 'path'; + goto after_path; } - $properties['node_id'] = $value; + $properties['path'] = $value; - after_node_id: + after_path: - $value = $payload['url'] ?? null; + $value = $payload['position'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $missingFields[] = 'position'; + goto after_position; } - $properties['url'] = $value; + $properties['position'] = $value; - after_url: + after_position: - $value = $payload['repos_url'] ?? null; + $value = $payload['pull_request_review_id'] ?? null; if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_repos_url; + $missingFields[] = 'pull_request_review_id'; + goto after_pull_request_review_id; } - $properties['repos_url'] = $value; + $properties['pull_request_review_id'] = $value; - after_repos_url: + after_pull_request_review_id: - $value = $payload['events_url'] ?? null; + $value = $payload['pull_request_url'] ?? null; if ($value === null) { - $missingFields[] = 'events_url'; - goto after_events_url; + $missingFields[] = 'pull_request_url'; + goto after_pull_request_url; } - $properties['events_url'] = $value; + $properties['pull_request_url'] = $value; - after_events_url: + after_pull_request_url: - $value = $payload['hooks_url'] ?? null; + $value = $payload['reactions'] ?? null; if ($value === null) { - $missingFields[] = 'hooks_url'; - goto after_hooks_url; + $missingFields[] = 'reactions'; + goto after_reactions; } - $properties['hooks_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'reactions'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️Reactions($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['reactions'] = $value; - after_hooks_url: + after_reactions: - $value = $payload['issues_url'] ?? null; + $value = $payload['side'] ?? null; if ($value === null) { - $missingFields[] = 'issues_url'; - goto after_issues_url; + $missingFields[] = 'side'; + goto after_side; } - $properties['issues_url'] = $value; + $properties['side'] = $value; - after_issues_url: + after_side: - $value = $payload['members_url'] ?? null; + $value = $payload['start_line'] ?? null; if ($value === null) { - $missingFields[] = 'members_url'; - goto after_members_url; + $missingFields[] = 'start_line'; + goto after_start_line; } - $properties['members_url'] = $value; + $properties['start_line'] = $value; - after_members_url: + after_start_line: - $value = $payload['public_members_url'] ?? null; + $value = $payload['start_side'] ?? null; if ($value === null) { - $missingFields[] = 'public_members_url'; - goto after_public_members_url; + $missingFields[] = 'start_side'; + goto after_start_side; } - $properties['public_members_url'] = $value; + $properties['start_side'] = $value; - after_public_members_url: + after_start_side: - $value = $payload['avatar_url'] ?? null; + $value = $payload['updated_at'] ?? null; if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatar_url; + $missingFields[] = 'updated_at'; + goto after_updated_at; } - $properties['avatar_url'] = $value; + $properties['updated_at'] = $value; - after_avatar_url: + after_updated_at: - $value = $payload['description'] ?? null; + $value = $payload['url'] ?? null; if ($value === null) { - $missingFields[] = 'description'; - goto after_description; + $missingFields[] = 'url'; + goto after_url; } - $properties['description'] = $value; + $properties['url'] = $value; - after_description: + after_url: + + $value = $payload['user'] ?? null; + + if ($value === null) { + $missingFields[] = 'user'; + goto after_user; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'user'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['user'] = $value; + + after_user: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\OrganizationSimple', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentCreated\Comment', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\OrganizationSimple::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentCreated\Comment::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\OrganizationSimple(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentCreated\Comment(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\OrganizationSimple', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentCreated\Comment', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewCommentEdited⚡️PullRequest(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentEdited\PullRequest + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise(array $payload): \ApiClients\Client\Github\Schema\Enterprise { $properties = []; $missingFields = []; try { - $value = $payload['_links'] ?? null; + $value = $payload['description'] ?? null; if ($value === null) { - $missingFields[] = '_links'; - goto after__links; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = '_links'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'description'; + goto after_description; } - $properties['_links'] = $value; + $properties['description'] = $value; - after__links: + after_description: - $value = $payload['active_lock_reason'] ?? null; + $value = $payload['html_url'] ?? null; if ($value === null) { - $missingFields[] = 'active_lock_reason'; - goto after_active_lock_reason; + $missingFields[] = 'html_url'; + goto after_html_url; } - $properties['active_lock_reason'] = $value; + $properties['html_url'] = $value; - after_active_lock_reason: + after_html_url: - $value = $payload['assignee'] ?? null; + $value = $payload['website_url'] ?? null; if ($value === null) { - $missingFields[] = 'assignee'; - goto after_assignee; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'assignee'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'website_url'; + goto after_website_url; } - $properties['assignee'] = $value; + $properties['website_url'] = $value; - after_assignee: + after_website_url: - $value = $payload['assignees'] ?? null; + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'assignees'; - goto after_assignees; + $missingFields[] = 'id'; + goto after_id; } - $properties['assignees'] = $value; + $properties['id'] = $value; - after_assignees: + after_id: - $value = $payload['author_association'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $missingFields[] = 'author_association'; - goto after_author_association; + $missingFields[] = 'node_id'; + goto after_node_id; } - $properties['author_association'] = $value; + $properties['node_id'] = $value; - after_author_association: + after_node_id: - $value = $payload['auto_merge'] ?? null; + $value = $payload['name'] ?? null; if ($value === null) { - $missingFields[] = 'auto_merge'; - goto after_auto_merge; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'auto_merge'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️AutoMerge($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'name'; + goto after_name; } - $properties['auto_merge'] = $value; + $properties['name'] = $value; - after_auto_merge: + after_name: - $value = $payload['base'] ?? null; + $value = $payload['slug'] ?? null; if ($value === null) { - $missingFields[] = 'base'; - goto after_base; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'base'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Base($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'slug'; + goto after_slug; } - $properties['base'] = $value; + $properties['slug'] = $value; - after_base: + after_slug: - $value = $payload['body'] ?? null; + $value = $payload['created_at'] ?? null; if ($value === null) { - $missingFields[] = 'body'; - goto after_body; + $missingFields[] = 'created_at'; + goto after_created_at; } - $properties['body'] = $value; + $properties['created_at'] = $value; - after_body: + after_created_at: - $value = $payload['closed_at'] ?? null; + $value = $payload['updated_at'] ?? null; if ($value === null) { - $missingFields[] = 'closed_at'; - goto after_closed_at; + $missingFields[] = 'updated_at'; + goto after_updated_at; } - $properties['closed_at'] = $value; + $properties['updated_at'] = $value; - after_closed_at: + after_updated_at: - $value = $payload['comments_url'] ?? null; + $value = $payload['avatar_url'] ?? null; if ($value === null) { - $missingFields[] = 'comments_url'; - goto after_comments_url; + $missingFields[] = 'avatar_url'; + goto after_avatar_url; } - $properties['comments_url'] = $value; + $properties['avatar_url'] = $value; - after_comments_url: + after_avatar_url: - $value = $payload['commits_url'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Enterprise', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Enterprise::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\Enterprise(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Enterprise', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation(array $payload): \ApiClients\Client\Github\Schema\SimpleInstallation + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'commits_url'; - goto after_commits_url; + $missingFields[] = 'id'; + goto after_id; } - $properties['commits_url'] = $value; + $properties['id'] = $value; - after_commits_url: + after_id: - $value = $payload['created_at'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $missingFields[] = 'created_at'; - goto after_created_at; + $missingFields[] = 'node_id'; + goto after_node_id; } - $properties['created_at'] = $value; + $properties['node_id'] = $value; - after_created_at: + after_node_id: - $value = $payload['diff_url'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleInstallation', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\SimpleInstallation::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\SimpleInstallation(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleInstallation', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple(array $payload): \ApiClients\Client\Github\Schema\OrganizationSimple + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['login'] ?? null; if ($value === null) { - $missingFields[] = 'diff_url'; - goto after_diff_url; + $missingFields[] = 'login'; + goto after_login; } - $properties['diff_url'] = $value; + $properties['login'] = $value; - after_diff_url: + after_login: - $value = $payload['draft'] ?? null; + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'draft'; - goto after_draft; + $missingFields[] = 'id'; + goto after_id; } - $properties['draft'] = $value; + $properties['id'] = $value; - after_draft: + after_id: - $value = $payload['head'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $missingFields[] = 'head'; - goto after_head; + $missingFields[] = 'node_id'; + goto after_node_id; } - if (is_array($value)) { - try { - $this->hydrationStack[] = 'head'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewCommentDeleted⚡️PullRequest⚡️Head($value); - } finally { - array_pop($this->hydrationStack); - } + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; } - $properties['head'] = $value; + $properties['url'] = $value; - after_head: + after_url: - $value = $payload['html_url'] ?? null; + $value = $payload['repos_url'] ?? null; if ($value === null) { - $missingFields[] = 'html_url'; - goto after_html_url; + $missingFields[] = 'repos_url'; + goto after_repos_url; } - $properties['html_url'] = $value; + $properties['repos_url'] = $value; - after_html_url: + after_repos_url: - $value = $payload['id'] ?? null; + $value = $payload['events_url'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'events_url'; + goto after_events_url; } - $properties['id'] = $value; + $properties['events_url'] = $value; - after_id: + after_events_url: - $value = $payload['issue_url'] ?? null; + $value = $payload['hooks_url'] ?? null; if ($value === null) { - $missingFields[] = 'issue_url'; - goto after_issue_url; + $missingFields[] = 'hooks_url'; + goto after_hooks_url; } - $properties['issue_url'] = $value; + $properties['hooks_url'] = $value; - after_issue_url: + after_hooks_url: - $value = $payload['labels'] ?? null; + $value = $payload['issues_url'] ?? null; if ($value === null) { - $missingFields[] = 'labels'; - goto after_labels; + $missingFields[] = 'issues_url'; + goto after_issues_url; } - $properties['labels'] = $value; + $properties['issues_url'] = $value; - after_labels: + after_issues_url: - $value = $payload['locked'] ?? null; + $value = $payload['members_url'] ?? null; if ($value === null) { - $missingFields[] = 'locked'; - goto after_locked; + $missingFields[] = 'members_url'; + goto after_members_url; } - $properties['locked'] = $value; + $properties['members_url'] = $value; - after_locked: + after_members_url: - $value = $payload['merge_commit_sha'] ?? null; + $value = $payload['public_members_url'] ?? null; if ($value === null) { - $missingFields[] = 'merge_commit_sha'; - goto after_merge_commit_sha; + $missingFields[] = 'public_members_url'; + goto after_public_members_url; } - $properties['merge_commit_sha'] = $value; + $properties['public_members_url'] = $value; - after_merge_commit_sha: + after_public_members_url: - $value = $payload['merged_at'] ?? null; + $value = $payload['avatar_url'] ?? null; if ($value === null) { - $missingFields[] = 'merged_at'; - goto after_merged_at; + $missingFields[] = 'avatar_url'; + goto after_avatar_url; } - $properties['merged_at'] = $value; + $properties['avatar_url'] = $value; - after_merged_at: + after_avatar_url: - $value = $payload['milestone'] ?? null; + $value = $payload['description'] ?? null; if ($value === null) { - $missingFields[] = 'milestone'; - goto after_milestone; + $missingFields[] = 'description'; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\OrganizationSimple', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\OrganizationSimple::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\OrganizationSimple(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\OrganizationSimple', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewCommentCreated⚡️PullRequest(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentCreated\PullRequest + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['_links'] ?? null; + + if ($value === null) { + $missingFields[] = '_links'; + goto after__links; } if (is_array($value)) { try { - $this->hydrationStack[] = 'milestone'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesAssigned⚡️Issue⚡️Milestone($value); + $this->hydrationStack[] = '_links'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links($value); } finally { array_pop($this->hydrationStack); } } - $properties['milestone'] = $value; + $properties['_links'] = $value; - after_milestone: + after__links: - $value = $payload['node_id'] ?? null; + $value = $payload['active_lock_reason'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $missingFields[] = 'active_lock_reason'; + goto after_active_lock_reason; } - $properties['node_id'] = $value; + $properties['active_lock_reason'] = $value; - after_node_id: + after_active_lock_reason: - $value = $payload['number'] ?? null; + $value = $payload['assignee'] ?? null; if ($value === null) { - $missingFields[] = 'number'; - goto after_number; + $missingFields[] = 'assignee'; + goto after_assignee; } - $properties['number'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'assignee'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Comment⚡️User($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['assignee'] = $value; - after_number: + after_assignee: - $value = $payload['patch_url'] ?? null; + $value = $payload['assignees'] ?? null; if ($value === null) { - $missingFields[] = 'patch_url'; - goto after_patch_url; + $missingFields[] = 'assignees'; + goto after_assignees; } - $properties['patch_url'] = $value; + $properties['assignees'] = $value; - after_patch_url: + after_assignees: - $value = $payload['requested_reviewers'] ?? null; + $value = $payload['author_association'] ?? null; if ($value === null) { - $missingFields[] = 'requested_reviewers'; - goto after_requested_reviewers; + $missingFields[] = 'author_association'; + goto after_author_association; } - $properties['requested_reviewers'] = $value; + $properties['author_association'] = $value; - after_requested_reviewers: + after_author_association: - $value = $payload['requested_teams'] ?? null; + $value = $payload['auto_merge'] ?? null; if ($value === null) { - $missingFields[] = 'requested_teams'; - goto after_requested_teams; + $missingFields[] = 'auto_merge'; + goto after_auto_merge; } - $properties['requested_teams'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'auto_merge'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️AutoMerge($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['auto_merge'] = $value; - after_requested_teams: + after_auto_merge: - $value = $payload['review_comment_url'] ?? null; + $value = $payload['base'] ?? null; if ($value === null) { - $missingFields[] = 'review_comment_url'; - goto after_review_comment_url; + $missingFields[] = 'base'; + goto after_base; } - $properties['review_comment_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'base'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Base($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['base'] = $value; - after_review_comment_url: + after_base: - $value = $payload['review_comments_url'] ?? null; + $value = $payload['body'] ?? null; if ($value === null) { - $missingFields[] = 'review_comments_url'; - goto after_review_comments_url; + $missingFields[] = 'body'; + goto after_body; } - $properties['review_comments_url'] = $value; + $properties['body'] = $value; - after_review_comments_url: + after_body: - $value = $payload['state'] ?? null; + $value = $payload['closed_at'] ?? null; if ($value === null) { - $missingFields[] = 'state'; - goto after_state; + $missingFields[] = 'closed_at'; + goto after_closed_at; } - $properties['state'] = $value; + $properties['closed_at'] = $value; - after_state: + after_closed_at: - $value = $payload['statuses_url'] ?? null; + $value = $payload['comments_url'] ?? null; if ($value === null) { - $missingFields[] = 'statuses_url'; - goto after_statuses_url; + $missingFields[] = 'comments_url'; + goto after_comments_url; } - $properties['statuses_url'] = $value; + $properties['comments_url'] = $value; - after_statuses_url: + after_comments_url: - $value = $payload['title'] ?? null; + $value = $payload['commits_url'] ?? null; if ($value === null) { - $missingFields[] = 'title'; - goto after_title; + $missingFields[] = 'commits_url'; + goto after_commits_url; } - $properties['title'] = $value; + $properties['commits_url'] = $value; - after_title: + after_commits_url: - $value = $payload['updated_at'] ?? null; + $value = $payload['created_at'] ?? null; if ($value === null) { - $missingFields[] = 'updated_at'; - goto after_updated_at; + $missingFields[] = 'created_at'; + goto after_created_at; } - $properties['updated_at'] = $value; + $properties['created_at'] = $value; - after_updated_at: + after_created_at: - $value = $payload['url'] ?? null; + $value = $payload['diff_url'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $missingFields[] = 'diff_url'; + goto after_diff_url; } - $properties['url'] = $value; + $properties['diff_url'] = $value; - after_url: + after_diff_url: - $value = $payload['user'] ?? null; + $value = $payload['draft'] ?? null; if ($value === null) { - $missingFields[] = 'user'; - goto after_user; + $missingFields[] = 'draft'; + goto after_draft; + } + + $properties['draft'] = $value; + + after_draft: + + $value = $payload['head'] ?? null; + + if ($value === null) { + $missingFields[] = 'head'; + goto after_head; } if (is_array($value)) { try { - $this->hydrationStack[] = 'user'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Comment⚡️User($value); + $this->hydrationStack[] = 'head'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewCommentCreated⚡️PullRequest⚡️Head($value); } finally { array_pop($this->hydrationStack); } } - $properties['user'] = $value; + $properties['head'] = $value; - after_user: - - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentEdited\PullRequest', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentEdited\PullRequest::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentEdited\PullRequest(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentEdited\PullRequest', $exception, stack: $this->hydrationStack); - } - } + after_head: - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository(array $payload): \ApiClients\Client\Github\Schema\Repository - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['id'] ?? null; + $value = $payload['html_url'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'html_url'; + goto after_html_url; } - $properties['id'] = $value; + $properties['html_url'] = $value; - after_id: + after_html_url: - $value = $payload['node_id'] ?? null; + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $missingFields[] = 'id'; + goto after_id; } - $properties['node_id'] = $value; + $properties['id'] = $value; - after_node_id: + after_id: - $value = $payload['name'] ?? null; + $value = $payload['issue_url'] ?? null; if ($value === null) { - $missingFields[] = 'name'; - goto after_name; + $missingFields[] = 'issue_url'; + goto after_issue_url; } - $properties['name'] = $value; + $properties['issue_url'] = $value; - after_name: + after_issue_url: - $value = $payload['full_name'] ?? null; + $value = $payload['labels'] ?? null; if ($value === null) { - $missingFields[] = 'full_name'; - goto after_full_name; + $missingFields[] = 'labels'; + goto after_labels; } - $properties['full_name'] = $value; + $properties['labels'] = $value; - after_full_name: + after_labels: - $value = $payload['license'] ?? null; + $value = $payload['locked'] ?? null; if ($value === null) { - $properties['license'] = null; - goto after_license; + $missingFields[] = 'locked'; + goto after_locked; } - $properties['license'] = $value; + $properties['locked'] = $value; - after_license: + after_locked: - $value = $payload['organization'] ?? null; + $value = $payload['merge_commit_sha'] ?? null; if ($value === null) { - $properties['organization'] = null; - goto after_organization; + $missingFields[] = 'merge_commit_sha'; + goto after_merge_commit_sha; } - $properties['organization'] = $value; + $properties['merge_commit_sha'] = $value; - after_organization: + after_merge_commit_sha: - $value = $payload['forks'] ?? null; + $value = $payload['merged_at'] ?? null; if ($value === null) { - $missingFields[] = 'forks'; - goto after_forks; + $missingFields[] = 'merged_at'; + goto after_merged_at; } - $properties['forks'] = $value; + $properties['merged_at'] = $value; - after_forks: + after_merged_at: - $value = $payload['permissions'] ?? null; + $value = $payload['milestone'] ?? null; if ($value === null) { - $missingFields[] = 'permissions'; - goto after_permissions; + $missingFields[] = 'milestone'; + goto after_milestone; } if (is_array($value)) { try { - $this->hydrationStack[] = 'permissions'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️Permissions($value); + $this->hydrationStack[] = 'milestone'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesAssigned⚡️Issue⚡️Milestone($value); } finally { array_pop($this->hydrationStack); } } - $properties['permissions'] = $value; + $properties['milestone'] = $value; - after_permissions: + after_milestone: - $value = $payload['owner'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $missingFields[] = 'owner'; - goto after_owner; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'owner'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'node_id'; + goto after_node_id; } - $properties['owner'] = $value; + $properties['node_id'] = $value; - after_owner: + after_node_id: - $value = $payload['private'] ?? null; + $value = $payload['number'] ?? null; if ($value === null) { - $missingFields[] = 'private'; - goto after_private; + $missingFields[] = 'number'; + goto after_number; } - $properties['private'] = $value; + $properties['number'] = $value; - after_private: + after_number: - $value = $payload['html_url'] ?? null; + $value = $payload['patch_url'] ?? null; if ($value === null) { - $missingFields[] = 'html_url'; - goto after_html_url; + $missingFields[] = 'patch_url'; + goto after_patch_url; } - $properties['html_url'] = $value; + $properties['patch_url'] = $value; - after_html_url: + after_patch_url: - $value = $payload['description'] ?? null; + $value = $payload['requested_reviewers'] ?? null; if ($value === null) { - $missingFields[] = 'description'; - goto after_description; + $missingFields[] = 'requested_reviewers'; + goto after_requested_reviewers; } - $properties['description'] = $value; + $properties['requested_reviewers'] = $value; - after_description: + after_requested_reviewers: - $value = $payload['fork'] ?? null; + $value = $payload['requested_teams'] ?? null; if ($value === null) { - $missingFields[] = 'fork'; - goto after_fork; + $missingFields[] = 'requested_teams'; + goto after_requested_teams; } - $properties['fork'] = $value; + $properties['requested_teams'] = $value; - after_fork: + after_requested_teams: - $value = $payload['url'] ?? null; + $value = $payload['review_comment_url'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $missingFields[] = 'review_comment_url'; + goto after_review_comment_url; } - $properties['url'] = $value; + $properties['review_comment_url'] = $value; - after_url: + after_review_comment_url: - $value = $payload['archive_url'] ?? null; + $value = $payload['review_comments_url'] ?? null; if ($value === null) { - $missingFields[] = 'archive_url'; - goto after_archive_url; + $missingFields[] = 'review_comments_url'; + goto after_review_comments_url; } - $properties['archive_url'] = $value; + $properties['review_comments_url'] = $value; - after_archive_url: + after_review_comments_url: - $value = $payload['assignees_url'] ?? null; + $value = $payload['state'] ?? null; if ($value === null) { - $missingFields[] = 'assignees_url'; - goto after_assignees_url; + $missingFields[] = 'state'; + goto after_state; } - $properties['assignees_url'] = $value; + $properties['state'] = $value; - after_assignees_url: + after_state: - $value = $payload['blobs_url'] ?? null; + $value = $payload['statuses_url'] ?? null; if ($value === null) { - $missingFields[] = 'blobs_url'; - goto after_blobs_url; + $missingFields[] = 'statuses_url'; + goto after_statuses_url; } - $properties['blobs_url'] = $value; + $properties['statuses_url'] = $value; - after_blobs_url: + after_statuses_url: - $value = $payload['branches_url'] ?? null; + $value = $payload['title'] ?? null; if ($value === null) { - $missingFields[] = 'branches_url'; - goto after_branches_url; + $missingFields[] = 'title'; + goto after_title; } - $properties['branches_url'] = $value; + $properties['title'] = $value; - after_branches_url: + after_title: - $value = $payload['collaborators_url'] ?? null; + $value = $payload['updated_at'] ?? null; if ($value === null) { - $missingFields[] = 'collaborators_url'; - goto after_collaborators_url; + $missingFields[] = 'updated_at'; + goto after_updated_at; } - $properties['collaborators_url'] = $value; + $properties['updated_at'] = $value; - after_collaborators_url: + after_updated_at: - $value = $payload['comments_url'] ?? null; + $value = $payload['url'] ?? null; if ($value === null) { - $missingFields[] = 'comments_url'; - goto after_comments_url; + $missingFields[] = 'url'; + goto after_url; } - $properties['comments_url'] = $value; + $properties['url'] = $value; - after_comments_url: + after_url: - $value = $payload['commits_url'] ?? null; + $value = $payload['user'] ?? null; if ($value === null) { - $missingFields[] = 'commits_url'; - goto after_commits_url; + $missingFields[] = 'user'; + goto after_user; } - $properties['commits_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'user'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Comment⚡️User($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['user'] = $value; - after_commits_url: + after_user: - $value = $payload['compare_url'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentCreated\PullRequest', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentCreated\PullRequest::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentCreated\PullRequest(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentCreated\PullRequest', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository(array $payload): \ApiClients\Client\Github\Schema\Repository + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'compare_url'; - goto after_compare_url; + $missingFields[] = 'id'; + goto after_id; } - $properties['compare_url'] = $value; + $properties['id'] = $value; - after_compare_url: + after_id: - $value = $payload['contents_url'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $missingFields[] = 'contents_url'; - goto after_contents_url; + $missingFields[] = 'node_id'; + goto after_node_id; } - $properties['contents_url'] = $value; + $properties['node_id'] = $value; - after_contents_url: + after_node_id: - $value = $payload['contributors_url'] ?? null; + $value = $payload['name'] ?? null; if ($value === null) { - $missingFields[] = 'contributors_url'; - goto after_contributors_url; + $missingFields[] = 'name'; + goto after_name; } - $properties['contributors_url'] = $value; + $properties['name'] = $value; - after_contributors_url: + after_name: - $value = $payload['deployments_url'] ?? null; + $value = $payload['full_name'] ?? null; if ($value === null) { - $missingFields[] = 'deployments_url'; - goto after_deployments_url; + $missingFields[] = 'full_name'; + goto after_full_name; } - $properties['deployments_url'] = $value; + $properties['full_name'] = $value; - after_deployments_url: + after_full_name: - $value = $payload['downloads_url'] ?? null; + $value = $payload['license'] ?? null; if ($value === null) { - $missingFields[] = 'downloads_url'; - goto after_downloads_url; + $properties['license'] = null; + goto after_license; } - $properties['downloads_url'] = $value; + $properties['license'] = $value; - after_downloads_url: + after_license: - $value = $payload['events_url'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'events_url'; - goto after_events_url; + $properties['organization'] = null; + goto after_organization; } - $properties['events_url'] = $value; + $properties['organization'] = $value; - after_events_url: + after_organization: - $value = $payload['forks_url'] ?? null; + $value = $payload['forks'] ?? null; if ($value === null) { - $missingFields[] = 'forks_url'; - goto after_forks_url; + $missingFields[] = 'forks'; + goto after_forks; } - $properties['forks_url'] = $value; + $properties['forks'] = $value; - after_forks_url: + after_forks: - $value = $payload['git_commits_url'] ?? null; + $value = $payload['permissions'] ?? null; if ($value === null) { - $missingFields[] = 'git_commits_url'; - goto after_git_commits_url; + $missingFields[] = 'permissions'; + goto after_permissions; } - $properties['git_commits_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'permissions'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️Permissions($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['permissions'] = $value; - after_git_commits_url: + after_permissions: - $value = $payload['git_refs_url'] ?? null; + $value = $payload['owner'] ?? null; if ($value === null) { - $missingFields[] = 'git_refs_url'; - goto after_git_refs_url; + $missingFields[] = 'owner'; + goto after_owner; } - $properties['git_refs_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'owner'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['owner'] = $value; - after_git_refs_url: + after_owner: - $value = $payload['git_tags_url'] ?? null; + $value = $payload['private'] ?? null; if ($value === null) { - $missingFields[] = 'git_tags_url'; - goto after_git_tags_url; + $missingFields[] = 'private'; + goto after_private; } - $properties['git_tags_url'] = $value; + $properties['private'] = $value; - after_git_tags_url: + after_private: - $value = $payload['git_url'] ?? null; + $value = $payload['html_url'] ?? null; if ($value === null) { - $missingFields[] = 'git_url'; - goto after_git_url; + $missingFields[] = 'html_url'; + goto after_html_url; } - $properties['git_url'] = $value; + $properties['html_url'] = $value; - after_git_url: + after_html_url: - $value = $payload['issue_comment_url'] ?? null; + $value = $payload['description'] ?? null; if ($value === null) { - $missingFields[] = 'issue_comment_url'; - goto after_issue_comment_url; + $missingFields[] = 'description'; + goto after_description; } - $properties['issue_comment_url'] = $value; + $properties['description'] = $value; - after_issue_comment_url: + after_description: - $value = $payload['issue_events_url'] ?? null; + $value = $payload['fork'] ?? null; if ($value === null) { - $missingFields[] = 'issue_events_url'; - goto after_issue_events_url; + $missingFields[] = 'fork'; + goto after_fork; } - $properties['issue_events_url'] = $value; + $properties['fork'] = $value; - after_issue_events_url: + after_fork: - $value = $payload['issues_url'] ?? null; + $value = $payload['url'] ?? null; if ($value === null) { - $missingFields[] = 'issues_url'; - goto after_issues_url; + $missingFields[] = 'url'; + goto after_url; } - $properties['issues_url'] = $value; + $properties['url'] = $value; - after_issues_url: + after_url: - $value = $payload['keys_url'] ?? null; + $value = $payload['archive_url'] ?? null; if ($value === null) { - $missingFields[] = 'keys_url'; - goto after_keys_url; + $missingFields[] = 'archive_url'; + goto after_archive_url; } - $properties['keys_url'] = $value; + $properties['archive_url'] = $value; - after_keys_url: + after_archive_url: - $value = $payload['labels_url'] ?? null; + $value = $payload['assignees_url'] ?? null; if ($value === null) { - $missingFields[] = 'labels_url'; - goto after_labels_url; + $missingFields[] = 'assignees_url'; + goto after_assignees_url; } - $properties['labels_url'] = $value; + $properties['assignees_url'] = $value; - after_labels_url: + after_assignees_url: - $value = $payload['languages_url'] ?? null; + $value = $payload['blobs_url'] ?? null; if ($value === null) { - $missingFields[] = 'languages_url'; - goto after_languages_url; + $missingFields[] = 'blobs_url'; + goto after_blobs_url; } - $properties['languages_url'] = $value; + $properties['blobs_url'] = $value; - after_languages_url: + after_blobs_url: - $value = $payload['merges_url'] ?? null; + $value = $payload['branches_url'] ?? null; if ($value === null) { - $missingFields[] = 'merges_url'; - goto after_merges_url; - } + $missingFields[] = 'branches_url'; + goto after_branches_url; + } + + $properties['branches_url'] = $value; + + after_branches_url: + + $value = $payload['collaborators_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'collaborators_url'; + goto after_collaborators_url; + } + + $properties['collaborators_url'] = $value; + + after_collaborators_url: + + $value = $payload['comments_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'comments_url'; + goto after_comments_url; + } + + $properties['comments_url'] = $value; + + after_comments_url: + + $value = $payload['commits_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'commits_url'; + goto after_commits_url; + } + + $properties['commits_url'] = $value; + + after_commits_url: + + $value = $payload['compare_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'compare_url'; + goto after_compare_url; + } + + $properties['compare_url'] = $value; + + after_compare_url: + + $value = $payload['contents_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'contents_url'; + goto after_contents_url; + } + + $properties['contents_url'] = $value; + + after_contents_url: + + $value = $payload['contributors_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'contributors_url'; + goto after_contributors_url; + } + + $properties['contributors_url'] = $value; + + after_contributors_url: + + $value = $payload['deployments_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'deployments_url'; + goto after_deployments_url; + } + + $properties['deployments_url'] = $value; + + after_deployments_url: + + $value = $payload['downloads_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'downloads_url'; + goto after_downloads_url; + } + + $properties['downloads_url'] = $value; + + after_downloads_url: + + $value = $payload['events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'events_url'; + goto after_events_url; + } + + $properties['events_url'] = $value; + + after_events_url: + + $value = $payload['forks_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'forks_url'; + goto after_forks_url; + } + + $properties['forks_url'] = $value; + + after_forks_url: + + $value = $payload['git_commits_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_commits_url'; + goto after_git_commits_url; + } + + $properties['git_commits_url'] = $value; + + after_git_commits_url: + + $value = $payload['git_refs_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_refs_url'; + goto after_git_refs_url; + } + + $properties['git_refs_url'] = $value; + + after_git_refs_url: + + $value = $payload['git_tags_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_tags_url'; + goto after_git_tags_url; + } + + $properties['git_tags_url'] = $value; + + after_git_tags_url: + + $value = $payload['git_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_url'; + goto after_git_url; + } + + $properties['git_url'] = $value; + + after_git_url: + + $value = $payload['issue_comment_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issue_comment_url'; + goto after_issue_comment_url; + } + + $properties['issue_comment_url'] = $value; + + after_issue_comment_url: + + $value = $payload['issue_events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issue_events_url'; + goto after_issue_events_url; + } + + $properties['issue_events_url'] = $value; + + after_issue_events_url: + + $value = $payload['issues_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issues_url'; + goto after_issues_url; + } + + $properties['issues_url'] = $value; + + after_issues_url: + + $value = $payload['keys_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'keys_url'; + goto after_keys_url; + } + + $properties['keys_url'] = $value; + + after_keys_url: + + $value = $payload['labels_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'labels_url'; + goto after_labels_url; + } + + $properties['labels_url'] = $value; + + after_labels_url: + + $value = $payload['languages_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'languages_url'; + goto after_languages_url; + } + + $properties['languages_url'] = $value; + + after_languages_url: + + $value = $payload['merges_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'merges_url'; + goto after_merges_url; + } $properties['merges_url'] = $value; @@ -2828,833 +3140,797 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Simp } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentEdited⚡️Changes⚡️Body(array $payload): \ApiClients\Client\Github\Schema\WebhookIssueCommentEdited\Changes\Body + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewCommentDeleted⚡️Comment(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentDeleted\Comment { $properties = []; $missingFields = []; try { - $value = $payload['from'] ?? null; + $value = $payload['_links'] ?? null; if ($value === null) { - $missingFields[] = 'from'; - goto after_from; + $missingFields[] = '_links'; + goto after__links; } - $properties['from'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = '_links'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewCommentCreated⚡️Comment⚡️Links($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['_links'] = $value; - after_from: + after__links: - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssueCommentEdited\Changes\Body', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookIssueCommentEdited\Changes\Body::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\WebhookIssueCommentEdited\Changes\Body(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssueCommentEdited\Changes\Body', $exception, stack: $this->hydrationStack); - } - } - - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewCommentCreated⚡️Comment⚡️Links(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentCreated\Comment\Links - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['html'] ?? null; + $value = $payload['author_association'] ?? null; if ($value === null) { - $missingFields[] = 'html'; - goto after_html; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'html'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links⚡️Comments($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'author_association'; + goto after_author_association; } - $properties['html'] = $value; + $properties['author_association'] = $value; - after_html: + after_author_association: - $value = $payload['pull_request'] ?? null; + $value = $payload['body'] ?? null; if ($value === null) { - $missingFields[] = 'pull_request'; - goto after_pull_request; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'pull_request'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links⚡️Comments($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'body'; + goto after_body; } - $properties['pull_request'] = $value; + $properties['body'] = $value; - after_pull_request: + after_body: - $value = $payload['self'] ?? null; + $value = $payload['commit_id'] ?? null; if ($value === null) { - $missingFields[] = 'self'; - goto after_self; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'self'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links⚡️Comments($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'commit_id'; + goto after_commit_id; } - $properties['self'] = $value; + $properties['commit_id'] = $value; - after_self: - - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentCreated\Comment\Links', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentCreated\Comment\Links::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentCreated\Comment\Links(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentCreated\Comment\Links', $exception, stack: $this->hydrationStack); - } - } + after_commit_id: - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️Reactions(array $payload): \ApiClients\Client\Github\Schema\Discussion\Reactions - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['__p_l_u_s_e_s_1'] ?? null; + $value = $payload['created_at'] ?? null; if ($value === null) { - $missingFields[] = '__p_l_u_s_e_s_1'; - goto after__PLUSES_1; + $missingFields[] = 'created_at'; + goto after_created_at; } - $properties['_PLUSES_1'] = $value; + $properties['created_at'] = $value; - after__PLUSES_1: + after_created_at: - $value = $payload['__m_i_n_u_s_1'] ?? null; + $value = $payload['diff_hunk'] ?? null; if ($value === null) { - $missingFields[] = '__m_i_n_u_s_1'; - goto after__MINUS_1; + $missingFields[] = 'diff_hunk'; + goto after_diff_hunk; } - $properties['_MINUS_1'] = $value; + $properties['diff_hunk'] = $value; - after__MINUS_1: + after_diff_hunk: - $value = $payload['confused'] ?? null; + $value = $payload['html_url'] ?? null; if ($value === null) { - $missingFields[] = 'confused'; - goto after_confused; + $missingFields[] = 'html_url'; + goto after_html_url; } - $properties['confused'] = $value; + $properties['html_url'] = $value; - after_confused: + after_html_url: - $value = $payload['eyes'] ?? null; + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'eyes'; - goto after_eyes; + $missingFields[] = 'id'; + goto after_id; } - $properties['eyes'] = $value; + $properties['id'] = $value; - after_eyes: + after_id: - $value = $payload['heart'] ?? null; + $value = $payload['in_reply_to_id'] ?? null; if ($value === null) { - $missingFields[] = 'heart'; - goto after_heart; + $missingFields[] = 'in_reply_to_id'; + goto after_in_reply_to_id; } - $properties['heart'] = $value; + $properties['in_reply_to_id'] = $value; - after_heart: + after_in_reply_to_id: - $value = $payload['hooray'] ?? null; + $value = $payload['line'] ?? null; if ($value === null) { - $missingFields[] = 'hooray'; - goto after_hooray; + $missingFields[] = 'line'; + goto after_line; } - $properties['hooray'] = $value; + $properties['line'] = $value; - after_hooray: + after_line: - $value = $payload['laugh'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $missingFields[] = 'laugh'; - goto after_laugh; + $missingFields[] = 'node_id'; + goto after_node_id; } - $properties['laugh'] = $value; + $properties['node_id'] = $value; - after_laugh: + after_node_id: - $value = $payload['rocket'] ?? null; + $value = $payload['original_commit_id'] ?? null; if ($value === null) { - $missingFields[] = 'rocket'; - goto after_rocket; + $missingFields[] = 'original_commit_id'; + goto after_original_commit_id; } - $properties['rocket'] = $value; + $properties['original_commit_id'] = $value; - after_rocket: + after_original_commit_id: - $value = $payload['total_count'] ?? null; + $value = $payload['original_line'] ?? null; if ($value === null) { - $missingFields[] = 'total_count'; - goto after_total_count; + $missingFields[] = 'original_line'; + goto after_original_line; } - $properties['total_count'] = $value; + $properties['original_line'] = $value; - after_total_count: + after_original_line: - $value = $payload['url'] ?? null; + $value = $payload['original_position'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $missingFields[] = 'original_position'; + goto after_original_position; } - $properties['url'] = $value; + $properties['original_position'] = $value; - after_url: - - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Discussion\Reactions', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Discussion\Reactions::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\Discussion\Reactions(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Discussion\Reactions', $exception, stack: $this->hydrationStack); - } - } + after_original_position: - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy(array $payload): \ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['avatar_url'] ?? null; + $value = $payload['original_start_line'] ?? null; if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatar_url; + $missingFields[] = 'original_start_line'; + goto after_original_start_line; } - $properties['avatar_url'] = $value; + $properties['original_start_line'] = $value; - after_avatar_url: + after_original_start_line: - $value = $payload['deleted'] ?? null; + $value = $payload['path'] ?? null; if ($value === null) { - $missingFields[] = 'deleted'; - goto after_deleted; + $missingFields[] = 'path'; + goto after_path; } - $properties['deleted'] = $value; + $properties['path'] = $value; - after_deleted: + after_path: - $value = $payload['email'] ?? null; + $value = $payload['position'] ?? null; if ($value === null) { - $missingFields[] = 'email'; - goto after_email; + $missingFields[] = 'position'; + goto after_position; } - $properties['email'] = $value; + $properties['position'] = $value; - after_email: + after_position: - $value = $payload['events_url'] ?? null; + $value = $payload['pull_request_review_id'] ?? null; if ($value === null) { - $missingFields[] = 'events_url'; - goto after_events_url; - } - - $properties['events_url'] = $value; - - after_events_url: - - $value = $payload['followers_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followers_url; - } - - $properties['followers_url'] = $value; - - after_followers_url: - - $value = $payload['following_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'following_url'; - goto after_following_url; - } - - $properties['following_url'] = $value; - - after_following_url: - - $value = $payload['gists_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gists_url; - } - - $properties['gists_url'] = $value; - - after_gists_url: - - $value = $payload['gravatar_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'gravatar_id'; - goto after_gravatar_id; - } - - $properties['gravatar_id'] = $value; - - after_gravatar_id: - - $value = $payload['html_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'html_url'; - goto after_html_url; - } - - $properties['html_url'] = $value; - - after_html_url: - - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; - } - - $properties['id'] = $value; - - after_id: - - $value = $payload['login'] ?? null; - - if ($value === null) { - $missingFields[] = 'login'; - goto after_login; + $missingFields[] = 'pull_request_review_id'; + goto after_pull_request_review_id; } - $properties['login'] = $value; + $properties['pull_request_review_id'] = $value; - after_login: + after_pull_request_review_id: - $value = $payload['name'] ?? null; + $value = $payload['pull_request_url'] ?? null; if ($value === null) { - $missingFields[] = 'name'; - goto after_name; + $missingFields[] = 'pull_request_url'; + goto after_pull_request_url; } - $properties['name'] = $value; + $properties['pull_request_url'] = $value; - after_name: + after_pull_request_url: - $value = $payload['node_id'] ?? null; + $value = $payload['reactions'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $missingFields[] = 'reactions'; + goto after_reactions; } - $properties['node_id'] = $value; - - after_node_id: - - $value = $payload['organizations_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizations_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'reactions'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️Reactions($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['organizations_url'] = $value; + $properties['reactions'] = $value; - after_organizations_url: + after_reactions: - $value = $payload['received_events_url'] ?? null; + $value = $payload['side'] ?? null; if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_received_events_url; + $missingFields[] = 'side'; + goto after_side; } - $properties['received_events_url'] = $value; + $properties['side'] = $value; - after_received_events_url: + after_side: - $value = $payload['repos_url'] ?? null; + $value = $payload['start_line'] ?? null; if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_repos_url; + $missingFields[] = 'start_line'; + goto after_start_line; } - $properties['repos_url'] = $value; + $properties['start_line'] = $value; - after_repos_url: + after_start_line: - $value = $payload['site_admin'] ?? null; + $value = $payload['start_side'] ?? null; if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_site_admin; + $missingFields[] = 'start_side'; + goto after_start_side; } - $properties['site_admin'] = $value; + $properties['start_side'] = $value; - after_site_admin: + after_start_side: - $value = $payload['starred_url'] ?? null; + $value = $payload['updated_at'] ?? null; if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starred_url; + $missingFields[] = 'updated_at'; + goto after_updated_at; } - $properties['starred_url'] = $value; + $properties['updated_at'] = $value; - after_starred_url: + after_updated_at: - $value = $payload['subscriptions_url'] ?? null; + $value = $payload['url'] ?? null; if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptions_url; + $missingFields[] = 'url'; + goto after_url; } - $properties['subscriptions_url'] = $value; + $properties['url'] = $value; - after_subscriptions_url: + after_url: - $value = $payload['type'] ?? null; + $value = $payload['user'] ?? null; if ($value === null) { - $missingFields[] = 'type'; - goto after_type; + $missingFields[] = 'user'; + goto after_user; } - $properties['type'] = $value; - - after_type: - - $value = $payload['url'] ?? null; - - if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'user'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['url'] = $value; + $properties['user'] = $value; - after_url: + after_user: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentDeleted\Comment', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentDeleted\Comment::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentDeleted\Comment(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentDeleted\Comment', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Links + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewCommentDeleted⚡️PullRequest(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentDeleted\PullRequest { $properties = []; $missingFields = []; try { - $value = $payload['comments'] ?? null; + $value = $payload['_links'] ?? null; if ($value === null) { - $missingFields[] = 'comments'; - goto after_comments; + $missingFields[] = '_links'; + goto after__links; } if (is_array($value)) { try { - $this->hydrationStack[] = 'comments'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links⚡️Comments($value); + $this->hydrationStack[] = '_links'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links($value); } finally { array_pop($this->hydrationStack); } } - $properties['comments'] = $value; + $properties['_links'] = $value; - after_comments: + after__links: - $value = $payload['commits'] ?? null; + $value = $payload['active_lock_reason'] ?? null; if ($value === null) { - $missingFields[] = 'commits'; - goto after_commits; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'commits'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links⚡️Comments($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'active_lock_reason'; + goto after_active_lock_reason; } - $properties['commits'] = $value; + $properties['active_lock_reason'] = $value; - after_commits: + after_active_lock_reason: - $value = $payload['html'] ?? null; + $value = $payload['assignee'] ?? null; if ($value === null) { - $missingFields[] = 'html'; - goto after_html; + $missingFields[] = 'assignee'; + goto after_assignee; } if (is_array($value)) { try { - $this->hydrationStack[] = 'html'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links⚡️Comments($value); + $this->hydrationStack[] = 'assignee'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); } finally { array_pop($this->hydrationStack); } } - $properties['html'] = $value; + $properties['assignee'] = $value; - after_html: + after_assignee: - $value = $payload['issue'] ?? null; + $value = $payload['assignees'] ?? null; if ($value === null) { - $missingFields[] = 'issue'; - goto after_issue; - } + $missingFields[] = 'assignees'; + goto after_assignees; + } - if (is_array($value)) { - try { - $this->hydrationStack[] = 'issue'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links⚡️Comments($value); - } finally { - array_pop($this->hydrationStack); - } + $properties['assignees'] = $value; + + after_assignees: + + $value = $payload['author_association'] ?? null; + + if ($value === null) { + $missingFields[] = 'author_association'; + goto after_author_association; } - $properties['issue'] = $value; + $properties['author_association'] = $value; - after_issue: + after_author_association: - $value = $payload['review_comment'] ?? null; + $value = $payload['auto_merge'] ?? null; if ($value === null) { - $missingFields[] = 'review_comment'; - goto after_review_comment; + $missingFields[] = 'auto_merge'; + goto after_auto_merge; } if (is_array($value)) { try { - $this->hydrationStack[] = 'review_comment'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links⚡️Comments($value); + $this->hydrationStack[] = 'auto_merge'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️AutoMerge($value); } finally { array_pop($this->hydrationStack); } } - $properties['review_comment'] = $value; + $properties['auto_merge'] = $value; - after_review_comment: + after_auto_merge: - $value = $payload['review_comments'] ?? null; + $value = $payload['base'] ?? null; if ($value === null) { - $missingFields[] = 'review_comments'; - goto after_review_comments; + $missingFields[] = 'base'; + goto after_base; } if (is_array($value)) { try { - $this->hydrationStack[] = 'review_comments'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links⚡️Comments($value); + $this->hydrationStack[] = 'base'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Base($value); } finally { array_pop($this->hydrationStack); } } - $properties['review_comments'] = $value; + $properties['base'] = $value; - after_review_comments: + after_base: - $value = $payload['self'] ?? null; + $value = $payload['body'] ?? null; if ($value === null) { - $missingFields[] = 'self'; - goto after_self; + $missingFields[] = 'body'; + goto after_body; } - if (is_array($value)) { - try { - $this->hydrationStack[] = 'self'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links⚡️Comments($value); - } finally { - array_pop($this->hydrationStack); - } + $properties['body'] = $value; + + after_body: + + $value = $payload['closed_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'closed_at'; + goto after_closed_at; } - $properties['self'] = $value; + $properties['closed_at'] = $value; - after_self: + after_closed_at: - $value = $payload['statuses'] ?? null; + $value = $payload['comments_url'] ?? null; if ($value === null) { - $missingFields[] = 'statuses'; - goto after_statuses; + $missingFields[] = 'comments_url'; + goto after_comments_url; } - if (is_array($value)) { - try { - $this->hydrationStack[] = 'statuses'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links⚡️Comments($value); - } finally { - array_pop($this->hydrationStack); - } + $properties['comments_url'] = $value; + + after_comments_url: + + $value = $payload['commits_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'commits_url'; + goto after_commits_url; } - $properties['statuses'] = $value; + $properties['commits_url'] = $value; - after_statuses: + after_commits_url: - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Links', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Links::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Links(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Links', $exception, stack: $this->hydrationStack); - } - } + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'created_at'; + goto after_created_at; + } - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️AutoMerge(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\AutoMerge - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['commit_message'] ?? null; + $properties['created_at'] = $value; + + after_created_at: + + $value = $payload['diff_url'] ?? null; if ($value === null) { - $missingFields[] = 'commit_message'; - goto after_commit_message; + $missingFields[] = 'diff_url'; + goto after_diff_url; } - $properties['commit_message'] = $value; + $properties['diff_url'] = $value; - after_commit_message: + after_diff_url: - $value = $payload['commit_title'] ?? null; + $value = $payload['draft'] ?? null; if ($value === null) { - $missingFields[] = 'commit_title'; - goto after_commit_title; + $missingFields[] = 'draft'; + goto after_draft; } - $properties['commit_title'] = $value; + $properties['draft'] = $value; - after_commit_title: + after_draft: - $value = $payload['enabled_by'] ?? null; + $value = $payload['head'] ?? null; if ($value === null) { - $missingFields[] = 'enabled_by'; - goto after_enabled_by; + $missingFields[] = 'head'; + goto after_head; } if (is_array($value)) { try { - $this->hydrationStack[] = 'enabled_by'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + $this->hydrationStack[] = 'head'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewCommentDeleted⚡️PullRequest⚡️Head($value); } finally { array_pop($this->hydrationStack); } } - $properties['enabled_by'] = $value; + $properties['head'] = $value; - after_enabled_by: + after_head: - $value = $payload['merge_method'] ?? null; + $value = $payload['html_url'] ?? null; if ($value === null) { - $missingFields[] = 'merge_method'; - goto after_merge_method; + $missingFields[] = 'html_url'; + goto after_html_url; } - $properties['merge_method'] = $value; + $properties['html_url'] = $value; - after_merge_method: - - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\AutoMerge', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\AutoMerge::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\AutoMerge(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\AutoMerge', $exception, stack: $this->hydrationStack); - } - } + after_html_url: - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Base(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Base - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['label'] ?? null; + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'label'; - goto after_label; + $missingFields[] = 'id'; + goto after_id; } - $properties['label'] = $value; + $properties['id'] = $value; - after_label: + after_id: - $value = $payload['ref'] ?? null; + $value = $payload['issue_url'] ?? null; if ($value === null) { - $missingFields[] = 'ref'; - goto after_ref; + $missingFields[] = 'issue_url'; + goto after_issue_url; } - $properties['ref'] = $value; + $properties['issue_url'] = $value; - after_ref: + after_issue_url: - $value = $payload['repo'] ?? null; + $value = $payload['labels'] ?? null; if ($value === null) { - $missingFields[] = 'repo'; - goto after_repo; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'repo'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Base⚡️Repo($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'labels'; + goto after_labels; } - $properties['repo'] = $value; + $properties['labels'] = $value; - after_repo: + after_labels: - $value = $payload['sha'] ?? null; + $value = $payload['locked'] ?? null; if ($value === null) { - $missingFields[] = 'sha'; - goto after_sha; + $missingFields[] = 'locked'; + goto after_locked; } - $properties['sha'] = $value; + $properties['locked'] = $value; - after_sha: + after_locked: - $value = $payload['user'] ?? null; + $value = $payload['merge_commit_sha'] ?? null; if ($value === null) { - $missingFields[] = 'user'; - goto after_user; + $missingFields[] = 'merge_commit_sha'; + goto after_merge_commit_sha; } - if (is_array($value)) { + $properties['merge_commit_sha'] = $value; + + after_merge_commit_sha: + + $value = $payload['merged_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'merged_at'; + goto after_merged_at; + } + + $properties['merged_at'] = $value; + + after_merged_at: + + $value = $payload['milestone'] ?? null; + + if ($value === null) { + $missingFields[] = 'milestone'; + goto after_milestone; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'milestone'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesDeleted⚡️Issue⚡️Milestone($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['milestone'] = $value; + + after_milestone: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['number'] ?? null; + + if ($value === null) { + $missingFields[] = 'number'; + goto after_number; + } + + $properties['number'] = $value; + + after_number: + + $value = $payload['patch_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'patch_url'; + goto after_patch_url; + } + + $properties['patch_url'] = $value; + + after_patch_url: + + $value = $payload['requested_reviewers'] ?? null; + + if ($value === null) { + $missingFields[] = 'requested_reviewers'; + goto after_requested_reviewers; + } + + $properties['requested_reviewers'] = $value; + + after_requested_reviewers: + + $value = $payload['requested_teams'] ?? null; + + if ($value === null) { + $missingFields[] = 'requested_teams'; + goto after_requested_teams; + } + + $properties['requested_teams'] = $value; + + after_requested_teams: + + $value = $payload['review_comment_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'review_comment_url'; + goto after_review_comment_url; + } + + $properties['review_comment_url'] = $value; + + after_review_comment_url: + + $value = $payload['review_comments_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'review_comments_url'; + goto after_review_comments_url; + } + + $properties['review_comments_url'] = $value; + + after_review_comments_url: + + $value = $payload['state'] ?? null; + + if ($value === null) { + $missingFields[] = 'state'; + goto after_state; + } + + $properties['state'] = $value; + + after_state: + + $value = $payload['statuses_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'statuses_url'; + goto after_statuses_url; + } + + $properties['statuses_url'] = $value; + + after_statuses_url: + + $value = $payload['title'] ?? null; + + if ($value === null) { + $missingFields[] = 'title'; + goto after_title; + } + + $properties['title'] = $value; + + after_title: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'updated_at'; + goto after_updated_at; + } + + $properties['updated_at'] = $value; + + after_updated_at: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['user'] ?? null; + + if ($value === null) { + $missingFields[] = 'user'; + goto after_user; + } + + if (is_array($value)) { try { $this->hydrationStack[] = 'user'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Comment⚡️User($value); } finally { array_pop($this->hydrationStack); } @@ -3665,416 +3941,3167 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh after_user: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Base', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentDeleted\PullRequest', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Base::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentDeleted\PullRequest::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Base(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentDeleted\PullRequest(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Base', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentDeleted\PullRequest', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewCommentDeleted⚡️PullRequest⚡️Head(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentDeleted\PullRequest\Head + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentEdited⚡️Changes(array $payload): \ApiClients\Client\Github\Schema\WebhookIssueCommentEdited\Changes { $properties = []; $missingFields = []; try { - $value = $payload['label'] ?? null; + $value = $payload['body'] ?? null; if ($value === null) { - $missingFields[] = 'label'; - goto after_label; + $missingFields[] = 'body'; + goto after_body; } - $properties['label'] = $value; - - after_label: - - $value = $payload['ref'] ?? null; - - if ($value === null) { - $missingFields[] = 'ref'; - goto after_ref; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'body'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentEdited⚡️Changes⚡️Body($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['ref'] = $value; + $properties['body'] = $value; - after_ref: + after_body: - $value = $payload['repo'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssueCommentEdited\Changes', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookIssueCommentEdited\Changes::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookIssueCommentEdited\Changes(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssueCommentEdited\Changes', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewCommentEdited⚡️PullRequest(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentEdited\PullRequest + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['_links'] ?? null; if ($value === null) { - $missingFields[] = 'repo'; - goto after_repo; + $missingFields[] = '_links'; + goto after__links; } if (is_array($value)) { try { - $this->hydrationStack[] = 'repo'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Head⚡️Repo($value); + $this->hydrationStack[] = '_links'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links($value); } finally { array_pop($this->hydrationStack); } } - $properties['repo'] = $value; + $properties['_links'] = $value; - after_repo: + after__links: - $value = $payload['sha'] ?? null; + $value = $payload['active_lock_reason'] ?? null; + + if ($value === null) { + $missingFields[] = 'active_lock_reason'; + goto after_active_lock_reason; + } + + $properties['active_lock_reason'] = $value; + + after_active_lock_reason: + + $value = $payload['assignee'] ?? null; + + if ($value === null) { + $missingFields[] = 'assignee'; + goto after_assignee; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'assignee'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['assignee'] = $value; + + after_assignee: + + $value = $payload['assignees'] ?? null; + + if ($value === null) { + $missingFields[] = 'assignees'; + goto after_assignees; + } + + $properties['assignees'] = $value; + + after_assignees: + + $value = $payload['author_association'] ?? null; + + if ($value === null) { + $missingFields[] = 'author_association'; + goto after_author_association; + } + + $properties['author_association'] = $value; + + after_author_association: + + $value = $payload['auto_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'auto_merge'; + goto after_auto_merge; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'auto_merge'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️AutoMerge($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['auto_merge'] = $value; + + after_auto_merge: + + $value = $payload['base'] ?? null; + + if ($value === null) { + $missingFields[] = 'base'; + goto after_base; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'base'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Base($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['base'] = $value; + + after_base: + + $value = $payload['body'] ?? null; + + if ($value === null) { + $missingFields[] = 'body'; + goto after_body; + } + + $properties['body'] = $value; + + after_body: + + $value = $payload['closed_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'closed_at'; + goto after_closed_at; + } + + $properties['closed_at'] = $value; + + after_closed_at: + + $value = $payload['comments_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'comments_url'; + goto after_comments_url; + } + + $properties['comments_url'] = $value; + + after_comments_url: + + $value = $payload['commits_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'commits_url'; + goto after_commits_url; + } + + $properties['commits_url'] = $value; + + after_commits_url: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'created_at'; + goto after_created_at; + } + + $properties['created_at'] = $value; + + after_created_at: + + $value = $payload['diff_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'diff_url'; + goto after_diff_url; + } + + $properties['diff_url'] = $value; + + after_diff_url: + + $value = $payload['draft'] ?? null; + + if ($value === null) { + $missingFields[] = 'draft'; + goto after_draft; + } + + $properties['draft'] = $value; + + after_draft: + + $value = $payload['head'] ?? null; + + if ($value === null) { + $missingFields[] = 'head'; + goto after_head; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'head'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewCommentDeleted⚡️PullRequest⚡️Head($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['head'] = $value; + + after_head: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } + + $properties['html_url'] = $value; + + after_html_url: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['issue_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issue_url'; + goto after_issue_url; + } + + $properties['issue_url'] = $value; + + after_issue_url: + + $value = $payload['labels'] ?? null; + + if ($value === null) { + $missingFields[] = 'labels'; + goto after_labels; + } + + $properties['labels'] = $value; + + after_labels: + + $value = $payload['locked'] ?? null; + + if ($value === null) { + $missingFields[] = 'locked'; + goto after_locked; + } + + $properties['locked'] = $value; + + after_locked: + + $value = $payload['merge_commit_sha'] ?? null; + + if ($value === null) { + $missingFields[] = 'merge_commit_sha'; + goto after_merge_commit_sha; + } + + $properties['merge_commit_sha'] = $value; + + after_merge_commit_sha: + + $value = $payload['merged_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'merged_at'; + goto after_merged_at; + } + + $properties['merged_at'] = $value; + + after_merged_at: + + $value = $payload['milestone'] ?? null; + + if ($value === null) { + $missingFields[] = 'milestone'; + goto after_milestone; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'milestone'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesAssigned⚡️Issue⚡️Milestone($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['milestone'] = $value; + + after_milestone: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['number'] ?? null; + + if ($value === null) { + $missingFields[] = 'number'; + goto after_number; + } + + $properties['number'] = $value; + + after_number: + + $value = $payload['patch_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'patch_url'; + goto after_patch_url; + } + + $properties['patch_url'] = $value; + + after_patch_url: + + $value = $payload['requested_reviewers'] ?? null; + + if ($value === null) { + $missingFields[] = 'requested_reviewers'; + goto after_requested_reviewers; + } + + $properties['requested_reviewers'] = $value; + + after_requested_reviewers: + + $value = $payload['requested_teams'] ?? null; + + if ($value === null) { + $missingFields[] = 'requested_teams'; + goto after_requested_teams; + } + + $properties['requested_teams'] = $value; + + after_requested_teams: + + $value = $payload['review_comment_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'review_comment_url'; + goto after_review_comment_url; + } + + $properties['review_comment_url'] = $value; + + after_review_comment_url: + + $value = $payload['review_comments_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'review_comments_url'; + goto after_review_comments_url; + } + + $properties['review_comments_url'] = $value; + + after_review_comments_url: + + $value = $payload['state'] ?? null; + + if ($value === null) { + $missingFields[] = 'state'; + goto after_state; + } + + $properties['state'] = $value; + + after_state: + + $value = $payload['statuses_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'statuses_url'; + goto after_statuses_url; + } + + $properties['statuses_url'] = $value; + + after_statuses_url: + + $value = $payload['title'] ?? null; + + if ($value === null) { + $missingFields[] = 'title'; + goto after_title; + } + + $properties['title'] = $value; + + after_title: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'updated_at'; + goto after_updated_at; + } + + $properties['updated_at'] = $value; + + after_updated_at: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['user'] ?? null; + + if ($value === null) { + $missingFields[] = 'user'; + goto after_user; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'user'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Comment⚡️User($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['user'] = $value; + + after_user: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentEdited\PullRequest', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentEdited\PullRequest::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentEdited\PullRequest(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentEdited\PullRequest', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewCommentCreated⚡️Comment⚡️Links(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentCreated\Comment\Links + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['html'] ?? null; + + if ($value === null) { + $missingFields[] = 'html'; + goto after_html; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'html'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links⚡️Comments($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['html'] = $value; + + after_html: + + $value = $payload['pull_request'] ?? null; + + if ($value === null) { + $missingFields[] = 'pull_request'; + goto after_pull_request; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'pull_request'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links⚡️Comments($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['pull_request'] = $value; + + after_pull_request: + + $value = $payload['self'] ?? null; + + if ($value === null) { + $missingFields[] = 'self'; + goto after_self; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'self'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links⚡️Comments($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['self'] = $value; + + after_self: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentCreated\Comment\Links', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentCreated\Comment\Links::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentCreated\Comment\Links(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentCreated\Comment\Links', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️Reactions(array $payload): \ApiClients\Client\Github\Schema\Discussion\Reactions + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['__p_l_u_s_e_s_1'] ?? null; + + if ($value === null) { + $missingFields[] = '__p_l_u_s_e_s_1'; + goto after__PLUSES_1; + } + + $properties['_PLUSES_1'] = $value; + + after__PLUSES_1: + + $value = $payload['__m_i_n_u_s_1'] ?? null; + + if ($value === null) { + $missingFields[] = '__m_i_n_u_s_1'; + goto after__MINUS_1; + } + + $properties['_MINUS_1'] = $value; + + after__MINUS_1: + + $value = $payload['confused'] ?? null; + + if ($value === null) { + $missingFields[] = 'confused'; + goto after_confused; + } + + $properties['confused'] = $value; + + after_confused: + + $value = $payload['eyes'] ?? null; + + if ($value === null) { + $missingFields[] = 'eyes'; + goto after_eyes; + } + + $properties['eyes'] = $value; + + after_eyes: + + $value = $payload['heart'] ?? null; + + if ($value === null) { + $missingFields[] = 'heart'; + goto after_heart; + } + + $properties['heart'] = $value; + + after_heart: + + $value = $payload['hooray'] ?? null; + + if ($value === null) { + $missingFields[] = 'hooray'; + goto after_hooray; + } + + $properties['hooray'] = $value; + + after_hooray: + + $value = $payload['laugh'] ?? null; + + if ($value === null) { + $missingFields[] = 'laugh'; + goto after_laugh; + } + + $properties['laugh'] = $value; + + after_laugh: + + $value = $payload['rocket'] ?? null; + + if ($value === null) { + $missingFields[] = 'rocket'; + goto after_rocket; + } + + $properties['rocket'] = $value; + + after_rocket: + + $value = $payload['total_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'total_count'; + goto after_total_count; + } + + $properties['total_count'] = $value; + + after_total_count: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Discussion\Reactions', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Discussion\Reactions::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\Discussion\Reactions(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Discussion\Reactions', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy(array $payload): \ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['avatar_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'avatar_url'; + goto after_avatar_url; + } + + $properties['avatar_url'] = $value; + + after_avatar_url: + + $value = $payload['deleted'] ?? null; + + if ($value === null) { + $missingFields[] = 'deleted'; + goto after_deleted; + } + + $properties['deleted'] = $value; + + after_deleted: + + $value = $payload['email'] ?? null; + + if ($value === null) { + $missingFields[] = 'email'; + goto after_email; + } + + $properties['email'] = $value; + + after_email: + + $value = $payload['events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'events_url'; + goto after_events_url; + } + + $properties['events_url'] = $value; + + after_events_url: + + $value = $payload['followers_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'followers_url'; + goto after_followers_url; + } + + $properties['followers_url'] = $value; + + after_followers_url: + + $value = $payload['following_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'following_url'; + goto after_following_url; + } + + $properties['following_url'] = $value; + + after_following_url: + + $value = $payload['gists_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'gists_url'; + goto after_gists_url; + } + + $properties['gists_url'] = $value; + + after_gists_url: + + $value = $payload['gravatar_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'gravatar_id'; + goto after_gravatar_id; + } + + $properties['gravatar_id'] = $value; + + after_gravatar_id: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } + + $properties['html_url'] = $value; + + after_html_url: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['login'] ?? null; + + if ($value === null) { + $missingFields[] = 'login'; + goto after_login; + } + + $properties['login'] = $value; + + after_login: + + $value = $payload['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['organizations_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'organizations_url'; + goto after_organizations_url; + } + + $properties['organizations_url'] = $value; + + after_organizations_url: + + $value = $payload['received_events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'received_events_url'; + goto after_received_events_url; + } + + $properties['received_events_url'] = $value; + + after_received_events_url: + + $value = $payload['repos_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'repos_url'; + goto after_repos_url; + } + + $properties['repos_url'] = $value; + + after_repos_url: + + $value = $payload['site_admin'] ?? null; + + if ($value === null) { + $missingFields[] = 'site_admin'; + goto after_site_admin; + } + + $properties['site_admin'] = $value; + + after_site_admin: + + $value = $payload['starred_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'starred_url'; + goto after_starred_url; + } + + $properties['starred_url'] = $value; + + after_starred_url: + + $value = $payload['subscriptions_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscriptions_url'; + goto after_subscriptions_url; + } + + $properties['subscriptions_url'] = $value; + + after_subscriptions_url: + + $value = $payload['type'] ?? null; + + if ($value === null) { + $missingFields[] = 'type'; + goto after_type; + } + + $properties['type'] = $value; + + after_type: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Links + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['comments'] ?? null; + + if ($value === null) { + $missingFields[] = 'comments'; + goto after_comments; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'comments'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links⚡️Comments($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['comments'] = $value; + + after_comments: + + $value = $payload['commits'] ?? null; + + if ($value === null) { + $missingFields[] = 'commits'; + goto after_commits; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'commits'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links⚡️Comments($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['commits'] = $value; + + after_commits: + + $value = $payload['html'] ?? null; + + if ($value === null) { + $missingFields[] = 'html'; + goto after_html; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'html'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links⚡️Comments($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['html'] = $value; + + after_html: + + $value = $payload['issue'] ?? null; + + if ($value === null) { + $missingFields[] = 'issue'; + goto after_issue; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'issue'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links⚡️Comments($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['issue'] = $value; + + after_issue: + + $value = $payload['review_comment'] ?? null; + + if ($value === null) { + $missingFields[] = 'review_comment'; + goto after_review_comment; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'review_comment'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links⚡️Comments($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['review_comment'] = $value; + + after_review_comment: + + $value = $payload['review_comments'] ?? null; + + if ($value === null) { + $missingFields[] = 'review_comments'; + goto after_review_comments; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'review_comments'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links⚡️Comments($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['review_comments'] = $value; + + after_review_comments: + + $value = $payload['self'] ?? null; + + if ($value === null) { + $missingFields[] = 'self'; + goto after_self; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'self'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links⚡️Comments($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['self'] = $value; + + after_self: + + $value = $payload['statuses'] ?? null; + + if ($value === null) { + $missingFields[] = 'statuses'; + goto after_statuses; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'statuses'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links⚡️Comments($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['statuses'] = $value; + + after_statuses: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Links', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Links::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Links(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Links', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Comment⚡️User(array $payload): \ApiClients\Client\Github\Schema\WebhookIssueCommentDeleted\Comment\User + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['avatar_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'avatar_url'; + goto after_avatar_url; + } + + $properties['avatar_url'] = $value; + + after_avatar_url: + + $value = $payload['deleted'] ?? null; + + if ($value === null) { + $missingFields[] = 'deleted'; + goto after_deleted; + } + + $properties['deleted'] = $value; + + after_deleted: + + $value = $payload['email'] ?? null; + + if ($value === null) { + $missingFields[] = 'email'; + goto after_email; + } + + $properties['email'] = $value; + + after_email: + + $value = $payload['events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'events_url'; + goto after_events_url; + } + + $properties['events_url'] = $value; + + after_events_url: + + $value = $payload['followers_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'followers_url'; + goto after_followers_url; + } + + $properties['followers_url'] = $value; + + after_followers_url: + + $value = $payload['following_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'following_url'; + goto after_following_url; + } + + $properties['following_url'] = $value; + + after_following_url: + + $value = $payload['gists_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'gists_url'; + goto after_gists_url; + } + + $properties['gists_url'] = $value; + + after_gists_url: + + $value = $payload['gravatar_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'gravatar_id'; + goto after_gravatar_id; + } + + $properties['gravatar_id'] = $value; + + after_gravatar_id: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } + + $properties['html_url'] = $value; + + after_html_url: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['login'] ?? null; + + if ($value === null) { + $missingFields[] = 'login'; + goto after_login; + } + + $properties['login'] = $value; + + after_login: + + $value = $payload['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['organizations_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'organizations_url'; + goto after_organizations_url; + } + + $properties['organizations_url'] = $value; + + after_organizations_url: + + $value = $payload['received_events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'received_events_url'; + goto after_received_events_url; + } + + $properties['received_events_url'] = $value; + + after_received_events_url: + + $value = $payload['repos_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'repos_url'; + goto after_repos_url; + } + + $properties['repos_url'] = $value; + + after_repos_url: + + $value = $payload['site_admin'] ?? null; + + if ($value === null) { + $missingFields[] = 'site_admin'; + goto after_site_admin; + } + + $properties['site_admin'] = $value; + + after_site_admin: + + $value = $payload['starred_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'starred_url'; + goto after_starred_url; + } + + $properties['starred_url'] = $value; + + after_starred_url: + + $value = $payload['subscriptions_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscriptions_url'; + goto after_subscriptions_url; + } + + $properties['subscriptions_url'] = $value; + + after_subscriptions_url: + + $value = $payload['type'] ?? null; + + if ($value === null) { + $missingFields[] = 'type'; + goto after_type; + } + + $properties['type'] = $value; + + after_type: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssueCommentDeleted\Comment\User', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookIssueCommentDeleted\Comment\User::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookIssueCommentDeleted\Comment\User(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssueCommentDeleted\Comment\User', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️AutoMerge(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\AutoMerge + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['commit_message'] ?? null; + + if ($value === null) { + $missingFields[] = 'commit_message'; + goto after_commit_message; + } + + $properties['commit_message'] = $value; + + after_commit_message: + + $value = $payload['commit_title'] ?? null; + + if ($value === null) { + $missingFields[] = 'commit_title'; + goto after_commit_title; + } + + $properties['commit_title'] = $value; + + after_commit_title: + + $value = $payload['enabled_by'] ?? null; + + if ($value === null) { + $missingFields[] = 'enabled_by'; + goto after_enabled_by; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enabled_by'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['enabled_by'] = $value; + + after_enabled_by: + + $value = $payload['merge_method'] ?? null; + + if ($value === null) { + $missingFields[] = 'merge_method'; + goto after_merge_method; + } + + $properties['merge_method'] = $value; + + after_merge_method: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\AutoMerge', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\AutoMerge::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\AutoMerge(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\AutoMerge', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Base(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Base + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['label'] ?? null; + + if ($value === null) { + $missingFields[] = 'label'; + goto after_label; + } + + $properties['label'] = $value; + + after_label: + + $value = $payload['ref'] ?? null; + + if ($value === null) { + $missingFields[] = 'ref'; + goto after_ref; + } + + $properties['ref'] = $value; + + after_ref: + + $value = $payload['repo'] ?? null; + + if ($value === null) { + $missingFields[] = 'repo'; + goto after_repo; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repo'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Base⚡️Repo($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repo'] = $value; + + after_repo: + + $value = $payload['sha'] ?? null; + + if ($value === null) { + $missingFields[] = 'sha'; + goto after_sha; + } + + $properties['sha'] = $value; + + after_sha: + + $value = $payload['user'] ?? null; + + if ($value === null) { + $missingFields[] = 'user'; + goto after_user; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'user'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['user'] = $value; + + after_user: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Base', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Base::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Base(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Base', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewCommentCreated⚡️PullRequest⚡️Head(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentCreated\PullRequest\Head + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['label'] ?? null; + + if ($value === null) { + $missingFields[] = 'label'; + goto after_label; + } + + $properties['label'] = $value; + + after_label: + + $value = $payload['ref'] ?? null; + + if ($value === null) { + $missingFields[] = 'ref'; + goto after_ref; + } + + $properties['ref'] = $value; + + after_ref: + + $value = $payload['repo'] ?? null; + + if ($value === null) { + $missingFields[] = 'repo'; + goto after_repo; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repo'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewCommentCreated⚡️PullRequest⚡️Head⚡️Repo($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repo'] = $value; + + after_repo: + + $value = $payload['sha'] ?? null; + + if ($value === null) { + $missingFields[] = 'sha'; + goto after_sha; + } + + $properties['sha'] = $value; + + after_sha: + + $value = $payload['user'] ?? null; + + if ($value === null) { + $missingFields[] = 'user'; + goto after_user; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'user'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['user'] = $value; + + after_user: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentCreated\PullRequest\Head', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentCreated\PullRequest\Head::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentCreated\PullRequest\Head(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentCreated\PullRequest\Head', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesAssigned⚡️Issue⚡️Milestone(array $payload): \ApiClients\Client\Github\Schema\WebhookIssuesAssigned\Issue\Milestone + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['closed_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'closed_at'; + goto after_closed_at; + } + + $properties['closed_at'] = $value; + + after_closed_at: + + $value = $payload['closed_issues'] ?? null; + + if ($value === null) { + $missingFields[] = 'closed_issues'; + goto after_closed_issues; + } + + $properties['closed_issues'] = $value; + + after_closed_issues: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'created_at'; + goto after_created_at; + } + + $properties['created_at'] = $value; + + after_created_at: + + $value = $payload['creator'] ?? null; + + if ($value === null) { + $missingFields[] = 'creator'; + goto after_creator; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'creator'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Comment⚡️User($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['creator'] = $value; + + after_creator: + + $value = $payload['description'] ?? null; + + if ($value === null) { + $missingFields[] = 'description'; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['due_on'] ?? null; + + if ($value === null) { + $missingFields[] = 'due_on'; + goto after_due_on; + } + + $properties['due_on'] = $value; + + after_due_on: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } + + $properties['html_url'] = $value; + + after_html_url: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['labels_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'labels_url'; + goto after_labels_url; + } + + $properties['labels_url'] = $value; + + after_labels_url: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['number'] ?? null; + + if ($value === null) { + $missingFields[] = 'number'; + goto after_number; + } + + $properties['number'] = $value; + + after_number: + + $value = $payload['open_issues'] ?? null; + + if ($value === null) { + $missingFields[] = 'open_issues'; + goto after_open_issues; + } + + $properties['open_issues'] = $value; + + after_open_issues: + + $value = $payload['state'] ?? null; + + if ($value === null) { + $missingFields[] = 'state'; + goto after_state; + } + + $properties['state'] = $value; + + after_state: + + $value = $payload['title'] ?? null; + + if ($value === null) { + $missingFields[] = 'title'; + goto after_title; + } + + $properties['title'] = $value; + + after_title: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'updated_at'; + goto after_updated_at; + } + + $properties['updated_at'] = $value; + + after_updated_at: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesAssigned\Issue\Milestone', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookIssuesAssigned\Issue\Milestone::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookIssuesAssigned\Issue\Milestone(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesAssigned\Issue\Milestone', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️Permissions(array $payload): \ApiClients\Client\Github\Schema\Repository\Permissions + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['admin'] ?? null; + + if ($value === null) { + $missingFields[] = 'admin'; + goto after_admin; + } + + $properties['admin'] = $value; + + after_admin: + + $value = $payload['pull'] ?? null; + + if ($value === null) { + $missingFields[] = 'pull'; + goto after_pull; + } + + $properties['pull'] = $value; + + after_pull: + + $value = $payload['triage'] ?? null; + + if ($value === null) { + $missingFields[] = 'triage'; + goto after_triage; + } + + $properties['triage'] = $value; + + after_triage: + + $value = $payload['push'] ?? null; + + if ($value === null) { + $missingFields[] = 'push'; + goto after_push; + } + + $properties['push'] = $value; + + after_push: + + $value = $payload['maintain'] ?? null; + + if ($value === null) { + $missingFields[] = 'maintain'; + goto after_maintain; + } + + $properties['maintain'] = $value; + + after_maintain: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\Permissions', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\Permissions::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\Repository\Permissions(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\Permissions', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository(array $payload): \ApiClients\Client\Github\Schema\Repository\TemplateRepository + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['full_name'] ?? null; + + if ($value === null) { + $missingFields[] = 'full_name'; + goto after_full_name; + } + + $properties['full_name'] = $value; + + after_full_name: + + $value = $payload['owner'] ?? null; + + if ($value === null) { + $missingFields[] = 'owner'; + goto after_owner; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'owner'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['owner'] = $value; + + after_owner: + + $value = $payload['private'] ?? null; + + if ($value === null) { + $missingFields[] = 'private'; + goto after_private; + } + + $properties['private'] = $value; + + after_private: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } + + $properties['html_url'] = $value; + + after_html_url: + + $value = $payload['description'] ?? null; + + if ($value === null) { + $missingFields[] = 'description'; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['fork'] ?? null; + + if ($value === null) { + $missingFields[] = 'fork'; + goto after_fork; + } + + $properties['fork'] = $value; + + after_fork: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['archive_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'archive_url'; + goto after_archive_url; + } + + $properties['archive_url'] = $value; + + after_archive_url: + + $value = $payload['assignees_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'assignees_url'; + goto after_assignees_url; + } + + $properties['assignees_url'] = $value; + + after_assignees_url: + + $value = $payload['blobs_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'blobs_url'; + goto after_blobs_url; + } + + $properties['blobs_url'] = $value; + + after_blobs_url: + + $value = $payload['branches_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'branches_url'; + goto after_branches_url; + } + + $properties['branches_url'] = $value; + + after_branches_url: + + $value = $payload['collaborators_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'collaborators_url'; + goto after_collaborators_url; + } + + $properties['collaborators_url'] = $value; + + after_collaborators_url: + + $value = $payload['comments_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'comments_url'; + goto after_comments_url; + } + + $properties['comments_url'] = $value; + + after_comments_url: + + $value = $payload['commits_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'commits_url'; + goto after_commits_url; + } + + $properties['commits_url'] = $value; + + after_commits_url: + + $value = $payload['compare_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'compare_url'; + goto after_compare_url; + } + + $properties['compare_url'] = $value; + + after_compare_url: + + $value = $payload['contents_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'contents_url'; + goto after_contents_url; + } + + $properties['contents_url'] = $value; + + after_contents_url: + + $value = $payload['contributors_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'contributors_url'; + goto after_contributors_url; + } + + $properties['contributors_url'] = $value; + + after_contributors_url: + + $value = $payload['deployments_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'deployments_url'; + goto after_deployments_url; + } + + $properties['deployments_url'] = $value; + + after_deployments_url: + + $value = $payload['downloads_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'downloads_url'; + goto after_downloads_url; + } + + $properties['downloads_url'] = $value; + + after_downloads_url: + + $value = $payload['events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'events_url'; + goto after_events_url; + } + + $properties['events_url'] = $value; + + after_events_url: + + $value = $payload['forks_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'forks_url'; + goto after_forks_url; + } + + $properties['forks_url'] = $value; + + after_forks_url: + + $value = $payload['git_commits_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_commits_url'; + goto after_git_commits_url; + } + + $properties['git_commits_url'] = $value; + + after_git_commits_url: + + $value = $payload['git_refs_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_refs_url'; + goto after_git_refs_url; + } + + $properties['git_refs_url'] = $value; + + after_git_refs_url: + + $value = $payload['git_tags_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_tags_url'; + goto after_git_tags_url; + } + + $properties['git_tags_url'] = $value; + + after_git_tags_url: + + $value = $payload['git_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_url'; + goto after_git_url; + } + + $properties['git_url'] = $value; + + after_git_url: + + $value = $payload['issue_comment_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issue_comment_url'; + goto after_issue_comment_url; + } + + $properties['issue_comment_url'] = $value; + + after_issue_comment_url: + + $value = $payload['issue_events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issue_events_url'; + goto after_issue_events_url; + } + + $properties['issue_events_url'] = $value; + + after_issue_events_url: + + $value = $payload['issues_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issues_url'; + goto after_issues_url; + } + + $properties['issues_url'] = $value; + + after_issues_url: + + $value = $payload['keys_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'keys_url'; + goto after_keys_url; + } + + $properties['keys_url'] = $value; + + after_keys_url: + + $value = $payload['labels_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'labels_url'; + goto after_labels_url; + } + + $properties['labels_url'] = $value; + + after_labels_url: + + $value = $payload['languages_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'languages_url'; + goto after_languages_url; + } + + $properties['languages_url'] = $value; + + after_languages_url: + + $value = $payload['merges_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'merges_url'; + goto after_merges_url; + } + + $properties['merges_url'] = $value; + + after_merges_url: + + $value = $payload['milestones_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'milestones_url'; + goto after_milestones_url; + } + + $properties['milestones_url'] = $value; + + after_milestones_url: + + $value = $payload['notifications_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'notifications_url'; + goto after_notifications_url; + } + + $properties['notifications_url'] = $value; + + after_notifications_url: + + $value = $payload['pulls_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'pulls_url'; + goto after_pulls_url; + } + + $properties['pulls_url'] = $value; + + after_pulls_url: + + $value = $payload['releases_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'releases_url'; + goto after_releases_url; + } + + $properties['releases_url'] = $value; + + after_releases_url: + + $value = $payload['ssh_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'ssh_url'; + goto after_ssh_url; + } + + $properties['ssh_url'] = $value; + + after_ssh_url: + + $value = $payload['stargazers_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'stargazers_url'; + goto after_stargazers_url; + } + + $properties['stargazers_url'] = $value; + + after_stargazers_url: + + $value = $payload['statuses_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'statuses_url'; + goto after_statuses_url; + } + + $properties['statuses_url'] = $value; + + after_statuses_url: + + $value = $payload['subscribers_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscribers_url'; + goto after_subscribers_url; + } + + $properties['subscribers_url'] = $value; + + after_subscribers_url: + + $value = $payload['subscription_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscription_url'; + goto after_subscription_url; + } + + $properties['subscription_url'] = $value; + + after_subscription_url: + + $value = $payload['tags_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'tags_url'; + goto after_tags_url; + } + + $properties['tags_url'] = $value; + + after_tags_url: + + $value = $payload['teams_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'teams_url'; + goto after_teams_url; + } + + $properties['teams_url'] = $value; + + after_teams_url: + + $value = $payload['trees_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'trees_url'; + goto after_trees_url; + } + + $properties['trees_url'] = $value; + + after_trees_url: + + $value = $payload['clone_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'clone_url'; + goto after_clone_url; + } + + $properties['clone_url'] = $value; + + after_clone_url: + + $value = $payload['mirror_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'mirror_url'; + goto after_mirror_url; + } + + $properties['mirror_url'] = $value; + + after_mirror_url: + + $value = $payload['hooks_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'hooks_url'; + goto after_hooks_url; + } + + $properties['hooks_url'] = $value; + + after_hooks_url: + + $value = $payload['svn_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'svn_url'; + goto after_svn_url; + } + + $properties['svn_url'] = $value; + + after_svn_url: + + $value = $payload['homepage'] ?? null; + + if ($value === null) { + $missingFields[] = 'homepage'; + goto after_homepage; + } + + $properties['homepage'] = $value; + + after_homepage: + + $value = $payload['language'] ?? null; + + if ($value === null) { + $missingFields[] = 'language'; + goto after_language; + } + + $properties['language'] = $value; + + after_language: + + $value = $payload['forks_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'forks_count'; + goto after_forks_count; + } + + $properties['forks_count'] = $value; + + after_forks_count: + + $value = $payload['stargazers_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'stargazers_count'; + goto after_stargazers_count; + } + + $properties['stargazers_count'] = $value; + + after_stargazers_count: + + $value = $payload['watchers_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'watchers_count'; + goto after_watchers_count; + } + + $properties['watchers_count'] = $value; + + after_watchers_count: + + $value = $payload['size'] ?? null; + + if ($value === null) { + $missingFields[] = 'size'; + goto after_size; + } + + $properties['size'] = $value; + + after_size: + + $value = $payload['default_branch'] ?? null; + + if ($value === null) { + $missingFields[] = 'default_branch'; + goto after_default_branch; + } + + $properties['default_branch'] = $value; + + after_default_branch: + + $value = $payload['open_issues_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'open_issues_count'; + goto after_open_issues_count; + } + + $properties['open_issues_count'] = $value; + + after_open_issues_count: + + $value = $payload['is_template'] ?? null; + + if ($value === null) { + $missingFields[] = 'is_template'; + goto after_is_template; + } + + $properties['is_template'] = $value; + + after_is_template: + + $value = $payload['topics'] ?? null; + + if ($value === null) { + $missingFields[] = 'topics'; + goto after_topics; + } + + $properties['topics'] = $value; + + after_topics: + + $value = $payload['has_issues'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_issues'; + goto after_has_issues; + } + + $properties['has_issues'] = $value; + + after_has_issues: + + $value = $payload['has_projects'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_projects'; + goto after_has_projects; + } + + $properties['has_projects'] = $value; + + after_has_projects: + + $value = $payload['has_wiki'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_wiki'; + goto after_has_wiki; + } + + $properties['has_wiki'] = $value; + + after_has_wiki: + + $value = $payload['has_pages'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_pages'; + goto after_has_pages; + } + + $properties['has_pages'] = $value; + + after_has_pages: + + $value = $payload['has_downloads'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_downloads'; + goto after_has_downloads; + } + + $properties['has_downloads'] = $value; + + after_has_downloads: + + $value = $payload['archived'] ?? null; + + if ($value === null) { + $missingFields[] = 'archived'; + goto after_archived; + } + + $properties['archived'] = $value; + + after_archived: + + $value = $payload['disabled'] ?? null; + + if ($value === null) { + $missingFields[] = 'disabled'; + goto after_disabled; + } + + $properties['disabled'] = $value; + + after_disabled: + + $value = $payload['visibility'] ?? null; + + if ($value === null) { + $missingFields[] = 'visibility'; + goto after_visibility; + } + + $properties['visibility'] = $value; + + after_visibility: + + $value = $payload['pushed_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'pushed_at'; + goto after_pushed_at; + } + + $properties['pushed_at'] = $value; + + after_pushed_at: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'created_at'; + goto after_created_at; + } + + $properties['created_at'] = $value; + + after_created_at: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'updated_at'; + goto after_updated_at; + } + + $properties['updated_at'] = $value; + + after_updated_at: + + $value = $payload['permissions'] ?? null; + + if ($value === null) { + $missingFields[] = 'permissions'; + goto after_permissions; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'permissions'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Permissions($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['permissions'] = $value; + + after_permissions: + + $value = $payload['allow_rebase_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_rebase_merge'; + goto after_allow_rebase_merge; + } + + $properties['allow_rebase_merge'] = $value; + + after_allow_rebase_merge: + + $value = $payload['temp_clone_token'] ?? null; if ($value === null) { - $missingFields[] = 'sha'; - goto after_sha; + $missingFields[] = 'temp_clone_token'; + goto after_temp_clone_token; } - $properties['sha'] = $value; + $properties['temp_clone_token'] = $value; - after_sha: + after_temp_clone_token: - $value = $payload['user'] ?? null; + $value = $payload['allow_squash_merge'] ?? null; if ($value === null) { - $missingFields[] = 'user'; - goto after_user; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'user'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'allow_squash_merge'; + goto after_allow_squash_merge; } - $properties['user'] = $value; + $properties['allow_squash_merge'] = $value; - after_user: - - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentDeleted\PullRequest\Head', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentDeleted\PullRequest\Head::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentDeleted\PullRequest\Head(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentDeleted\PullRequest\Head', $exception, stack: $this->hydrationStack); - } - } + after_allow_squash_merge: - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesAssigned⚡️Issue⚡️Milestone(array $payload): \ApiClients\Client\Github\Schema\WebhookIssuesAssigned\Issue\Milestone - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['closed_at'] ?? null; + $value = $payload['allow_auto_merge'] ?? null; if ($value === null) { - $missingFields[] = 'closed_at'; - goto after_closed_at; + $missingFields[] = 'allow_auto_merge'; + goto after_allow_auto_merge; } - $properties['closed_at'] = $value; + $properties['allow_auto_merge'] = $value; - after_closed_at: + after_allow_auto_merge: - $value = $payload['closed_issues'] ?? null; + $value = $payload['delete_branch_on_merge'] ?? null; if ($value === null) { - $missingFields[] = 'closed_issues'; - goto after_closed_issues; + $missingFields[] = 'delete_branch_on_merge'; + goto after_delete_branch_on_merge; } - $properties['closed_issues'] = $value; + $properties['delete_branch_on_merge'] = $value; - after_closed_issues: + after_delete_branch_on_merge: - $value = $payload['created_at'] ?? null; + $value = $payload['allow_update_branch'] ?? null; if ($value === null) { - $missingFields[] = 'created_at'; - goto after_created_at; + $missingFields[] = 'allow_update_branch'; + goto after_allow_update_branch; } - $properties['created_at'] = $value; + $properties['allow_update_branch'] = $value; - after_created_at: + after_allow_update_branch: - $value = $payload['creator'] ?? null; + $value = $payload['use_squash_pr_title_as_default'] ?? null; if ($value === null) { - $missingFields[] = 'creator'; - goto after_creator; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'creator'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Comment⚡️User($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'use_squash_pr_title_as_default'; + goto after_use_squash_pr_title_as_default; } - $properties['creator'] = $value; + $properties['use_squash_pr_title_as_default'] = $value; - after_creator: + after_use_squash_pr_title_as_default: - $value = $payload['description'] ?? null; + $value = $payload['squash_merge_commit_title'] ?? null; if ($value === null) { - $missingFields[] = 'description'; - goto after_description; + $missingFields[] = 'squash_merge_commit_title'; + goto after_squash_merge_commit_title; } - $properties['description'] = $value; + $properties['squash_merge_commit_title'] = $value; - after_description: + after_squash_merge_commit_title: - $value = $payload['due_on'] ?? null; + $value = $payload['squash_merge_commit_message'] ?? null; if ($value === null) { - $missingFields[] = 'due_on'; - goto after_due_on; + $missingFields[] = 'squash_merge_commit_message'; + goto after_squash_merge_commit_message; } - $properties['due_on'] = $value; + $properties['squash_merge_commit_message'] = $value; - after_due_on: + after_squash_merge_commit_message: - $value = $payload['html_url'] ?? null; + $value = $payload['merge_commit_title'] ?? null; if ($value === null) { - $missingFields[] = 'html_url'; - goto after_html_url; + $missingFields[] = 'merge_commit_title'; + goto after_merge_commit_title; } - $properties['html_url'] = $value; + $properties['merge_commit_title'] = $value; - after_html_url: + after_merge_commit_title: - $value = $payload['id'] ?? null; + $value = $payload['merge_commit_message'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'merge_commit_message'; + goto after_merge_commit_message; } - $properties['id'] = $value; + $properties['merge_commit_message'] = $value; - after_id: + after_merge_commit_message: - $value = $payload['labels_url'] ?? null; + $value = $payload['allow_merge_commit'] ?? null; if ($value === null) { - $missingFields[] = 'labels_url'; - goto after_labels_url; + $missingFields[] = 'allow_merge_commit'; + goto after_allow_merge_commit; } - $properties['labels_url'] = $value; + $properties['allow_merge_commit'] = $value; - after_labels_url: + after_allow_merge_commit: - $value = $payload['node_id'] ?? null; + $value = $payload['subscribers_count'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $missingFields[] = 'subscribers_count'; + goto after_subscribers_count; } - $properties['node_id'] = $value; + $properties['subscribers_count'] = $value; - after_node_id: + after_subscribers_count: - $value = $payload['number'] ?? null; + $value = $payload['network_count'] ?? null; if ($value === null) { - $missingFields[] = 'number'; - goto after_number; + $missingFields[] = 'network_count'; + goto after_network_count; } - $properties['number'] = $value; + $properties['network_count'] = $value; - after_number: + after_network_count: - $value = $payload['open_issues'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\TemplateRepository::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\Repository\TemplateRepository(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewCommentDeleted⚡️PullRequest⚡️Head(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentDeleted\PullRequest\Head + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['label'] ?? null; if ($value === null) { - $missingFields[] = 'open_issues'; - goto after_open_issues; + $missingFields[] = 'label'; + goto after_label; } - $properties['open_issues'] = $value; + $properties['label'] = $value; - after_open_issues: + after_label: - $value = $payload['state'] ?? null; + $value = $payload['ref'] ?? null; if ($value === null) { - $missingFields[] = 'state'; - goto after_state; + $missingFields[] = 'ref'; + goto after_ref; } - $properties['state'] = $value; + $properties['ref'] = $value; - after_state: + after_ref: - $value = $payload['title'] ?? null; + $value = $payload['repo'] ?? null; if ($value === null) { - $missingFields[] = 'title'; - goto after_title; + $missingFields[] = 'repo'; + goto after_repo; } - $properties['title'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repo'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Head⚡️Repo($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repo'] = $value; - after_title: + after_repo: - $value = $payload['updated_at'] ?? null; + $value = $payload['sha'] ?? null; if ($value === null) { - $missingFields[] = 'updated_at'; - goto after_updated_at; + $missingFields[] = 'sha'; + goto after_sha; } - $properties['updated_at'] = $value; + $properties['sha'] = $value; - after_updated_at: + after_sha: - $value = $payload['url'] ?? null; + $value = $payload['user'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $missingFields[] = 'user'; + goto after_user; } - $properties['url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'user'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['user'] = $value; - after_url: + after_user: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesAssigned\Issue\Milestone', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentDeleted\PullRequest\Head', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookIssuesAssigned\Issue\Milestone::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentDeleted\PullRequest\Head::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\WebhookIssuesAssigned\Issue\Milestone(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentDeleted\PullRequest\Head(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesAssigned\Issue\Milestone', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentDeleted\PullRequest\Head', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Comment⚡️User(array $payload): \ApiClients\Client\Github\Schema\WebhookIssueCommentDeleted\Comment\User + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesDeleted⚡️Issue⚡️Milestone(array $payload): \ApiClients\Client\Github\Schema\WebhookIssuesDeleted\Issue\Milestone { $properties = []; $missingFields = []; try { - $value = $payload['avatar_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatar_url; - } - - $properties['avatar_url'] = $value; - - after_avatar_url: - - $value = $payload['deleted'] ?? null; + $value = $payload['closed_at'] ?? null; if ($value === null) { - $missingFields[] = 'deleted'; - goto after_deleted; + $missingFields[] = 'closed_at'; + goto after_closed_at; } - $properties['deleted'] = $value; + $properties['closed_at'] = $value; - after_deleted: + after_closed_at: - $value = $payload['email'] ?? null; + $value = $payload['closed_issues'] ?? null; if ($value === null) { - $missingFields[] = 'email'; - goto after_email; + $missingFields[] = 'closed_issues'; + goto after_closed_issues; } - $properties['email'] = $value; + $properties['closed_issues'] = $value; - after_email: + after_closed_issues: - $value = $payload['events_url'] ?? null; + $value = $payload['created_at'] ?? null; if ($value === null) { - $missingFields[] = 'events_url'; - goto after_events_url; + $missingFields[] = 'created_at'; + goto after_created_at; } - $properties['events_url'] = $value; + $properties['created_at'] = $value; - after_events_url: + after_created_at: - $value = $payload['followers_url'] ?? null; + $value = $payload['creator'] ?? null; if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followers_url; + $missingFields[] = 'creator'; + goto after_creator; } - $properties['followers_url'] = $value; - - after_followers_url: - - $value = $payload['following_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'following_url'; - goto after_following_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'creator'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['following_url'] = $value; + $properties['creator'] = $value; - after_following_url: + after_creator: - $value = $payload['gists_url'] ?? null; + $value = $payload['description'] ?? null; if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gists_url; + $missingFields[] = 'description'; + goto after_description; } - $properties['gists_url'] = $value; + $properties['description'] = $value; - after_gists_url: + after_description: - $value = $payload['gravatar_id'] ?? null; + $value = $payload['due_on'] ?? null; if ($value === null) { - $missingFields[] = 'gravatar_id'; - goto after_gravatar_id; + $missingFields[] = 'due_on'; + goto after_due_on; } - $properties['gravatar_id'] = $value; + $properties['due_on'] = $value; - after_gravatar_id: + after_due_on: $value = $payload['html_url'] ?? null; @@ -4098,27 +7125,16 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh after_id: - $value = $payload['login'] ?? null; - - if ($value === null) { - $missingFields[] = 'login'; - goto after_login; - } - - $properties['login'] = $value; - - after_login: - - $value = $payload['name'] ?? null; + $value = $payload['labels_url'] ?? null; if ($value === null) { - $missingFields[] = 'name'; - goto after_name; + $missingFields[] = 'labels_url'; + goto after_labels_url; } - $properties['name'] = $value; + $properties['labels_url'] = $value; - after_name: + after_labels_url: $value = $payload['node_id'] ?? null; @@ -4131,311 +7147,225 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh after_node_id: - $value = $payload['organizations_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizations_url; - } - - $properties['organizations_url'] = $value; - - after_organizations_url: - - $value = $payload['received_events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_received_events_url; - } - - $properties['received_events_url'] = $value; - - after_received_events_url: - - $value = $payload['repos_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_repos_url; - } - - $properties['repos_url'] = $value; - - after_repos_url: - - $value = $payload['site_admin'] ?? null; - - if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_site_admin; - } - - $properties['site_admin'] = $value; - - after_site_admin: - - $value = $payload['starred_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starred_url; - } - - $properties['starred_url'] = $value; - - after_starred_url: - - $value = $payload['subscriptions_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptions_url; - } - - $properties['subscriptions_url'] = $value; - - after_subscriptions_url: - - $value = $payload['type'] ?? null; - - if ($value === null) { - $missingFields[] = 'type'; - goto after_type; - } - - $properties['type'] = $value; - - after_type: - - $value = $payload['url'] ?? null; + $value = $payload['number'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $missingFields[] = 'number'; + goto after_number; } - $properties['url'] = $value; + $properties['number'] = $value; - after_url: - - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssueCommentDeleted\Comment\User', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookIssueCommentDeleted\Comment\User::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\WebhookIssueCommentDeleted\Comment\User(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssueCommentDeleted\Comment\User', $exception, stack: $this->hydrationStack); - } - } + after_number: - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️Permissions(array $payload): \ApiClients\Client\Github\Schema\Repository\Permissions - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['admin'] ?? null; + $value = $payload['open_issues'] ?? null; if ($value === null) { - $missingFields[] = 'admin'; - goto after_admin; + $missingFields[] = 'open_issues'; + goto after_open_issues; } - $properties['admin'] = $value; + $properties['open_issues'] = $value; - after_admin: + after_open_issues: - $value = $payload['pull'] ?? null; + $value = $payload['state'] ?? null; if ($value === null) { - $missingFields[] = 'pull'; - goto after_pull; + $missingFields[] = 'state'; + goto after_state; } - $properties['pull'] = $value; + $properties['state'] = $value; - after_pull: + after_state: - $value = $payload['triage'] ?? null; + $value = $payload['title'] ?? null; if ($value === null) { - $missingFields[] = 'triage'; - goto after_triage; + $missingFields[] = 'title'; + goto after_title; } - $properties['triage'] = $value; + $properties['title'] = $value; - after_triage: + after_title: - $value = $payload['push'] ?? null; + $value = $payload['updated_at'] ?? null; if ($value === null) { - $missingFields[] = 'push'; - goto after_push; + $missingFields[] = 'updated_at'; + goto after_updated_at; } - $properties['push'] = $value; + $properties['updated_at'] = $value; - after_push: + after_updated_at: - $value = $payload['maintain'] ?? null; + $value = $payload['url'] ?? null; if ($value === null) { - $missingFields[] = 'maintain'; - goto after_maintain; + $missingFields[] = 'url'; + goto after_url; } - $properties['maintain'] = $value; + $properties['url'] = $value; - after_maintain: + after_url: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\Permissions', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesDeleted\Issue\Milestone', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\Permissions::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookIssuesDeleted\Issue\Milestone::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\Repository\Permissions(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookIssuesDeleted\Issue\Milestone(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\Permissions', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesDeleted\Issue\Milestone', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository(array $payload): \ApiClients\Client\Github\Schema\Repository\TemplateRepository + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentEdited⚡️Changes⚡️Body(array $payload): \ApiClients\Client\Github\Schema\WebhookIssueCommentEdited\Changes\Body { $properties = []; $missingFields = []; try { - $value = $payload['id'] ?? null; + $value = $payload['from'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'from'; + goto after_from; } - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; + $properties['from'] = $value; - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; - } + after_from: - $properties['node_id'] = $value; - - after_node_id: + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssueCommentEdited\Changes\Body', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookIssueCommentEdited\Changes\Body::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookIssueCommentEdited\Changes\Body(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssueCommentEdited\Changes\Body', $exception, stack: $this->hydrationStack); + } + } - $value = $payload['name'] ?? null; + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links⚡️Comments(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Links\Comments + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['href'] ?? null; if ($value === null) { - $missingFields[] = 'name'; - goto after_name; + $missingFields[] = 'href'; + goto after_href; } - $properties['name'] = $value; - - after_name: - - $value = $payload['full_name'] ?? null; + $properties['href'] = $value; - if ($value === null) { - $missingFields[] = 'full_name'; - goto after_full_name; - } + after_href: - $properties['full_name'] = $value; - - after_full_name: + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Links\Comments', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Links\Comments::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Links\Comments(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Links\Comments', $exception, stack: $this->hydrationStack); + } + } - $value = $payload['owner'] ?? null; + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Base⚡️Repo(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Base\Repo + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['allow_auto_merge'] ?? null; if ($value === null) { - $missingFields[] = 'owner'; - goto after_owner; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'owner'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'allow_auto_merge'; + goto after_allow_auto_merge; } - $properties['owner'] = $value; + $properties['allow_auto_merge'] = $value; - after_owner: + after_allow_auto_merge: - $value = $payload['private'] ?? null; + $value = $payload['allow_forking'] ?? null; if ($value === null) { - $missingFields[] = 'private'; - goto after_private; + $missingFields[] = 'allow_forking'; + goto after_allow_forking; } - $properties['private'] = $value; + $properties['allow_forking'] = $value; - after_private: + after_allow_forking: - $value = $payload['html_url'] ?? null; + $value = $payload['allow_merge_commit'] ?? null; if ($value === null) { - $missingFields[] = 'html_url'; - goto after_html_url; + $missingFields[] = 'allow_merge_commit'; + goto after_allow_merge_commit; } - $properties['html_url'] = $value; + $properties['allow_merge_commit'] = $value; - after_html_url: + after_allow_merge_commit: - $value = $payload['description'] ?? null; + $value = $payload['allow_rebase_merge'] ?? null; if ($value === null) { - $missingFields[] = 'description'; - goto after_description; + $missingFields[] = 'allow_rebase_merge'; + goto after_allow_rebase_merge; } - $properties['description'] = $value; + $properties['allow_rebase_merge'] = $value; - after_description: + after_allow_rebase_merge: - $value = $payload['fork'] ?? null; + $value = $payload['allow_squash_merge'] ?? null; if ($value === null) { - $missingFields[] = 'fork'; - goto after_fork; + $missingFields[] = 'allow_squash_merge'; + goto after_allow_squash_merge; } - $properties['fork'] = $value; + $properties['allow_squash_merge'] = $value; - after_fork: + after_allow_squash_merge: - $value = $payload['url'] ?? null; + $value = $payload['allow_update_branch'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $missingFields[] = 'allow_update_branch'; + goto after_allow_update_branch; } - $properties['url'] = $value; + $properties['allow_update_branch'] = $value; - after_url: + after_allow_update_branch: $value = $payload['archive_url'] ?? null; @@ -4448,6 +7378,17 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repo after_archive_url: + $value = $payload['archived'] ?? null; + + if ($value === null) { + $missingFields[] = 'archived'; + goto after_archived; + } + + $properties['archived'] = $value; + + after_archived: + $value = $payload['assignees_url'] ?? null; if ($value === null) { @@ -4481,6 +7422,17 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repo after_branches_url: + $value = $payload['clone_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'clone_url'; + goto after_clone_url; + } + + $properties['clone_url'] = $value; + + after_clone_url: + $value = $payload['collaborators_url'] ?? null; if ($value === null) { @@ -4506,57 +7458,112 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repo $value = $payload['commits_url'] ?? null; if ($value === null) { - $missingFields[] = 'commits_url'; - goto after_commits_url; + $missingFields[] = 'commits_url'; + goto after_commits_url; + } + + $properties['commits_url'] = $value; + + after_commits_url: + + $value = $payload['compare_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'compare_url'; + goto after_compare_url; + } + + $properties['compare_url'] = $value; + + after_compare_url: + + $value = $payload['contents_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'contents_url'; + goto after_contents_url; + } + + $properties['contents_url'] = $value; + + after_contents_url: + + $value = $payload['contributors_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'contributors_url'; + goto after_contributors_url; + } + + $properties['contributors_url'] = $value; + + after_contributors_url: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $properties['created_at'] = null; + goto after_created_at; + } + + $properties['created_at'] = $value; + + after_created_at: + + $value = $payload['default_branch'] ?? null; + + if ($value === null) { + $missingFields[] = 'default_branch'; + goto after_default_branch; } - $properties['commits_url'] = $value; + $properties['default_branch'] = $value; - after_commits_url: + after_default_branch: - $value = $payload['compare_url'] ?? null; + $value = $payload['delete_branch_on_merge'] ?? null; if ($value === null) { - $missingFields[] = 'compare_url'; - goto after_compare_url; + $missingFields[] = 'delete_branch_on_merge'; + goto after_delete_branch_on_merge; } - $properties['compare_url'] = $value; + $properties['delete_branch_on_merge'] = $value; - after_compare_url: + after_delete_branch_on_merge: - $value = $payload['contents_url'] ?? null; + $value = $payload['deployments_url'] ?? null; if ($value === null) { - $missingFields[] = 'contents_url'; - goto after_contents_url; + $missingFields[] = 'deployments_url'; + goto after_deployments_url; } - $properties['contents_url'] = $value; + $properties['deployments_url'] = $value; - after_contents_url: + after_deployments_url: - $value = $payload['contributors_url'] ?? null; + $value = $payload['description'] ?? null; if ($value === null) { - $missingFields[] = 'contributors_url'; - goto after_contributors_url; + $missingFields[] = 'description'; + goto after_description; } - $properties['contributors_url'] = $value; + $properties['description'] = $value; - after_contributors_url: + after_description: - $value = $payload['deployments_url'] ?? null; + $value = $payload['disabled'] ?? null; if ($value === null) { - $missingFields[] = 'deployments_url'; - goto after_deployments_url; + $missingFields[] = 'disabled'; + goto after_disabled; } - $properties['deployments_url'] = $value; + $properties['disabled'] = $value; - after_deployments_url: + after_disabled: $value = $payload['downloads_url'] ?? null; @@ -4580,6 +7587,39 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repo after_events_url: + $value = $payload['fork'] ?? null; + + if ($value === null) { + $missingFields[] = 'fork'; + goto after_fork; + } + + $properties['fork'] = $value; + + after_fork: + + $value = $payload['forks'] ?? null; + + if ($value === null) { + $missingFields[] = 'forks'; + goto after_forks; + } + + $properties['forks'] = $value; + + after_forks: + + $value = $payload['forks_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'forks_count'; + goto after_forks_count; + } + + $properties['forks_count'] = $value; + + after_forks_count: + $value = $payload['forks_url'] ?? null; if ($value === null) { @@ -4591,6 +7631,17 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repo after_forks_url: + $value = $payload['full_name'] ?? null; + + if ($value === null) { + $missingFields[] = 'full_name'; + goto after_full_name; + } + + $properties['full_name'] = $value; + + after_full_name: + $value = $payload['git_commits_url'] ?? null; if ($value === null) { @@ -4635,714 +7686,721 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repo after_git_url: - $value = $payload['issue_comment_url'] ?? null; + $value = $payload['has_downloads'] ?? null; if ($value === null) { - $missingFields[] = 'issue_comment_url'; - goto after_issue_comment_url; + $missingFields[] = 'has_downloads'; + goto after_has_downloads; } - $properties['issue_comment_url'] = $value; + $properties['has_downloads'] = $value; - after_issue_comment_url: + after_has_downloads: - $value = $payload['issue_events_url'] ?? null; + $value = $payload['has_issues'] ?? null; if ($value === null) { - $missingFields[] = 'issue_events_url'; - goto after_issue_events_url; + $missingFields[] = 'has_issues'; + goto after_has_issues; } - $properties['issue_events_url'] = $value; + $properties['has_issues'] = $value; - after_issue_events_url: + after_has_issues: - $value = $payload['issues_url'] ?? null; + $value = $payload['has_pages'] ?? null; if ($value === null) { - $missingFields[] = 'issues_url'; - goto after_issues_url; + $missingFields[] = 'has_pages'; + goto after_has_pages; } - $properties['issues_url'] = $value; + $properties['has_pages'] = $value; - after_issues_url: + after_has_pages: - $value = $payload['keys_url'] ?? null; + $value = $payload['has_projects'] ?? null; if ($value === null) { - $missingFields[] = 'keys_url'; - goto after_keys_url; + $missingFields[] = 'has_projects'; + goto after_has_projects; } - $properties['keys_url'] = $value; + $properties['has_projects'] = $value; - after_keys_url: + after_has_projects: - $value = $payload['labels_url'] ?? null; + $value = $payload['has_wiki'] ?? null; if ($value === null) { - $missingFields[] = 'labels_url'; - goto after_labels_url; + $missingFields[] = 'has_wiki'; + goto after_has_wiki; } - $properties['labels_url'] = $value; + $properties['has_wiki'] = $value; - after_labels_url: + after_has_wiki: - $value = $payload['languages_url'] ?? null; + $value = $payload['has_discussions'] ?? null; if ($value === null) { - $missingFields[] = 'languages_url'; - goto after_languages_url; + $missingFields[] = 'has_discussions'; + goto after_has_discussions; } - $properties['languages_url'] = $value; + $properties['has_discussions'] = $value; - after_languages_url: + after_has_discussions: - $value = $payload['merges_url'] ?? null; + $value = $payload['homepage'] ?? null; if ($value === null) { - $missingFields[] = 'merges_url'; - goto after_merges_url; + $missingFields[] = 'homepage'; + goto after_homepage; } - $properties['merges_url'] = $value; + $properties['homepage'] = $value; - after_merges_url: + after_homepage: - $value = $payload['milestones_url'] ?? null; + $value = $payload['hooks_url'] ?? null; if ($value === null) { - $missingFields[] = 'milestones_url'; - goto after_milestones_url; + $missingFields[] = 'hooks_url'; + goto after_hooks_url; } - $properties['milestones_url'] = $value; + $properties['hooks_url'] = $value; - after_milestones_url: + after_hooks_url: - $value = $payload['notifications_url'] ?? null; + $value = $payload['html_url'] ?? null; if ($value === null) { - $missingFields[] = 'notifications_url'; - goto after_notifications_url; + $missingFields[] = 'html_url'; + goto after_html_url; } - $properties['notifications_url'] = $value; + $properties['html_url'] = $value; - after_notifications_url: + after_html_url: - $value = $payload['pulls_url'] ?? null; + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'pulls_url'; - goto after_pulls_url; + $missingFields[] = 'id'; + goto after_id; } - $properties['pulls_url'] = $value; + $properties['id'] = $value; - after_pulls_url: + after_id: - $value = $payload['releases_url'] ?? null; + $value = $payload['is_template'] ?? null; if ($value === null) { - $missingFields[] = 'releases_url'; - goto after_releases_url; + $missingFields[] = 'is_template'; + goto after_is_template; } - $properties['releases_url'] = $value; + $properties['is_template'] = $value; - after_releases_url: + after_is_template: - $value = $payload['ssh_url'] ?? null; + $value = $payload['issue_comment_url'] ?? null; if ($value === null) { - $missingFields[] = 'ssh_url'; - goto after_ssh_url; + $missingFields[] = 'issue_comment_url'; + goto after_issue_comment_url; } - $properties['ssh_url'] = $value; + $properties['issue_comment_url'] = $value; - after_ssh_url: + after_issue_comment_url: - $value = $payload['stargazers_url'] ?? null; + $value = $payload['issue_events_url'] ?? null; if ($value === null) { - $missingFields[] = 'stargazers_url'; - goto after_stargazers_url; + $missingFields[] = 'issue_events_url'; + goto after_issue_events_url; } - $properties['stargazers_url'] = $value; + $properties['issue_events_url'] = $value; - after_stargazers_url: + after_issue_events_url: - $value = $payload['statuses_url'] ?? null; + $value = $payload['issues_url'] ?? null; if ($value === null) { - $missingFields[] = 'statuses_url'; - goto after_statuses_url; + $missingFields[] = 'issues_url'; + goto after_issues_url; } - $properties['statuses_url'] = $value; + $properties['issues_url'] = $value; - after_statuses_url: + after_issues_url: - $value = $payload['subscribers_url'] ?? null; + $value = $payload['keys_url'] ?? null; if ($value === null) { - $missingFields[] = 'subscribers_url'; - goto after_subscribers_url; + $missingFields[] = 'keys_url'; + goto after_keys_url; } - $properties['subscribers_url'] = $value; + $properties['keys_url'] = $value; - after_subscribers_url: + after_keys_url: - $value = $payload['subscription_url'] ?? null; + $value = $payload['labels_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'labels_url'; + goto after_labels_url; + } + + $properties['labels_url'] = $value; + + after_labels_url: + + $value = $payload['language'] ?? null; if ($value === null) { - $missingFields[] = 'subscription_url'; - goto after_subscription_url; + $missingFields[] = 'language'; + goto after_language; } - $properties['subscription_url'] = $value; + $properties['language'] = $value; - after_subscription_url: + after_language: - $value = $payload['tags_url'] ?? null; + $value = $payload['languages_url'] ?? null; if ($value === null) { - $missingFields[] = 'tags_url'; - goto after_tags_url; + $missingFields[] = 'languages_url'; + goto after_languages_url; } - $properties['tags_url'] = $value; + $properties['languages_url'] = $value; - after_tags_url: + after_languages_url: - $value = $payload['teams_url'] ?? null; + $value = $payload['license'] ?? null; if ($value === null) { - $missingFields[] = 'teams_url'; - goto after_teams_url; + $missingFields[] = 'license'; + goto after_license; } - $properties['teams_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'license'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionTransferred⚡️Changes⚡️NewRepository⚡️License($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['license'] = $value; - after_teams_url: + after_license: - $value = $payload['trees_url'] ?? null; + $value = $payload['master_branch'] ?? null; if ($value === null) { - $missingFields[] = 'trees_url'; - goto after_trees_url; + $missingFields[] = 'master_branch'; + goto after_master_branch; } - $properties['trees_url'] = $value; + $properties['master_branch'] = $value; - after_trees_url: + after_master_branch: - $value = $payload['clone_url'] ?? null; + $value = $payload['merge_commit_message'] ?? null; if ($value === null) { - $missingFields[] = 'clone_url'; - goto after_clone_url; + $missingFields[] = 'merge_commit_message'; + goto after_merge_commit_message; } - $properties['clone_url'] = $value; + $properties['merge_commit_message'] = $value; - after_clone_url: + after_merge_commit_message: - $value = $payload['mirror_url'] ?? null; + $value = $payload['merge_commit_title'] ?? null; if ($value === null) { - $missingFields[] = 'mirror_url'; - goto after_mirror_url; + $missingFields[] = 'merge_commit_title'; + goto after_merge_commit_title; } - $properties['mirror_url'] = $value; + $properties['merge_commit_title'] = $value; - after_mirror_url: + after_merge_commit_title: - $value = $payload['hooks_url'] ?? null; + $value = $payload['merges_url'] ?? null; if ($value === null) { - $missingFields[] = 'hooks_url'; - goto after_hooks_url; + $missingFields[] = 'merges_url'; + goto after_merges_url; } - $properties['hooks_url'] = $value; + $properties['merges_url'] = $value; - after_hooks_url: + after_merges_url: - $value = $payload['svn_url'] ?? null; + $value = $payload['milestones_url'] ?? null; if ($value === null) { - $missingFields[] = 'svn_url'; - goto after_svn_url; + $missingFields[] = 'milestones_url'; + goto after_milestones_url; } - $properties['svn_url'] = $value; + $properties['milestones_url'] = $value; - after_svn_url: + after_milestones_url: - $value = $payload['homepage'] ?? null; + $value = $payload['mirror_url'] ?? null; if ($value === null) { - $missingFields[] = 'homepage'; - goto after_homepage; + $missingFields[] = 'mirror_url'; + goto after_mirror_url; } - $properties['homepage'] = $value; + $properties['mirror_url'] = $value; - after_homepage: + after_mirror_url: - $value = $payload['language'] ?? null; + $value = $payload['name'] ?? null; if ($value === null) { - $missingFields[] = 'language'; - goto after_language; + $missingFields[] = 'name'; + goto after_name; } - $properties['language'] = $value; + $properties['name'] = $value; - after_language: + after_name: - $value = $payload['forks_count'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $missingFields[] = 'forks_count'; - goto after_forks_count; + $missingFields[] = 'node_id'; + goto after_node_id; } - $properties['forks_count'] = $value; + $properties['node_id'] = $value; - after_forks_count: + after_node_id: - $value = $payload['stargazers_count'] ?? null; + $value = $payload['notifications_url'] ?? null; if ($value === null) { - $missingFields[] = 'stargazers_count'; - goto after_stargazers_count; + $missingFields[] = 'notifications_url'; + goto after_notifications_url; } - $properties['stargazers_count'] = $value; + $properties['notifications_url'] = $value; - after_stargazers_count: + after_notifications_url: - $value = $payload['watchers_count'] ?? null; + $value = $payload['open_issues'] ?? null; if ($value === null) { - $missingFields[] = 'watchers_count'; - goto after_watchers_count; + $missingFields[] = 'open_issues'; + goto after_open_issues; } - $properties['watchers_count'] = $value; + $properties['open_issues'] = $value; - after_watchers_count: + after_open_issues: - $value = $payload['size'] ?? null; + $value = $payload['open_issues_count'] ?? null; if ($value === null) { - $missingFields[] = 'size'; - goto after_size; + $missingFields[] = 'open_issues_count'; + goto after_open_issues_count; } - $properties['size'] = $value; + $properties['open_issues_count'] = $value; - after_size: + after_open_issues_count: - $value = $payload['default_branch'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'default_branch'; - goto after_default_branch; + $missingFields[] = 'organization'; + goto after_organization; } - $properties['default_branch'] = $value; + $properties['organization'] = $value; - after_default_branch: + after_organization: - $value = $payload['open_issues_count'] ?? null; + $value = $payload['owner'] ?? null; if ($value === null) { - $missingFields[] = 'open_issues_count'; - goto after_open_issues_count; + $missingFields[] = 'owner'; + goto after_owner; } - $properties['open_issues_count'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'owner'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['owner'] = $value; - after_open_issues_count: + after_owner: - $value = $payload['is_template'] ?? null; + $value = $payload['permissions'] ?? null; if ($value === null) { - $missingFields[] = 'is_template'; - goto after_is_template; + $missingFields[] = 'permissions'; + goto after_permissions; } - $properties['is_template'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'permissions'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionTransferred⚡️Changes⚡️NewRepository⚡️Permissions($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['permissions'] = $value; - after_is_template: + after_permissions: - $value = $payload['topics'] ?? null; + $value = $payload['private'] ?? null; if ($value === null) { - $missingFields[] = 'topics'; - goto after_topics; + $missingFields[] = 'private'; + goto after_private; } - $properties['topics'] = $value; + $properties['private'] = $value; - after_topics: + after_private: - $value = $payload['has_issues'] ?? null; + $value = $payload['public'] ?? null; if ($value === null) { - $missingFields[] = 'has_issues'; - goto after_has_issues; + $missingFields[] = 'public'; + goto after_public; } - $properties['has_issues'] = $value; + $properties['public'] = $value; - after_has_issues: + after_public: - $value = $payload['has_projects'] ?? null; + $value = $payload['pulls_url'] ?? null; if ($value === null) { - $missingFields[] = 'has_projects'; - goto after_has_projects; + $missingFields[] = 'pulls_url'; + goto after_pulls_url; } - $properties['has_projects'] = $value; + $properties['pulls_url'] = $value; - after_has_projects: + after_pulls_url: - $value = $payload['has_wiki'] ?? null; + $value = $payload['pushed_at'] ?? null; if ($value === null) { - $missingFields[] = 'has_wiki'; - goto after_has_wiki; + $properties['pushed_at'] = null; + goto after_pushed_at; } - $properties['has_wiki'] = $value; + $properties['pushed_at'] = $value; - after_has_wiki: + after_pushed_at: - $value = $payload['has_pages'] ?? null; + $value = $payload['releases_url'] ?? null; if ($value === null) { - $missingFields[] = 'has_pages'; - goto after_has_pages; + $missingFields[] = 'releases_url'; + goto after_releases_url; } - $properties['has_pages'] = $value; + $properties['releases_url'] = $value; - after_has_pages: + after_releases_url: - $value = $payload['has_downloads'] ?? null; + $value = $payload['role_name'] ?? null; if ($value === null) { - $missingFields[] = 'has_downloads'; - goto after_has_downloads; + $missingFields[] = 'role_name'; + goto after_role_name; } - $properties['has_downloads'] = $value; + $properties['role_name'] = $value; - after_has_downloads: + after_role_name: - $value = $payload['archived'] ?? null; + $value = $payload['size'] ?? null; if ($value === null) { - $missingFields[] = 'archived'; - goto after_archived; + $missingFields[] = 'size'; + goto after_size; } - $properties['archived'] = $value; + $properties['size'] = $value; - after_archived: + after_size: - $value = $payload['disabled'] ?? null; + $value = $payload['squash_merge_commit_message'] ?? null; if ($value === null) { - $missingFields[] = 'disabled'; - goto after_disabled; + $missingFields[] = 'squash_merge_commit_message'; + goto after_squash_merge_commit_message; } - $properties['disabled'] = $value; + $properties['squash_merge_commit_message'] = $value; - after_disabled: + after_squash_merge_commit_message: - $value = $payload['visibility'] ?? null; + $value = $payload['squash_merge_commit_title'] ?? null; if ($value === null) { - $missingFields[] = 'visibility'; - goto after_visibility; + $missingFields[] = 'squash_merge_commit_title'; + goto after_squash_merge_commit_title; } - $properties['visibility'] = $value; + $properties['squash_merge_commit_title'] = $value; - after_visibility: + after_squash_merge_commit_title: - $value = $payload['pushed_at'] ?? null; + $value = $payload['ssh_url'] ?? null; if ($value === null) { - $missingFields[] = 'pushed_at'; - goto after_pushed_at; + $missingFields[] = 'ssh_url'; + goto after_ssh_url; } - $properties['pushed_at'] = $value; + $properties['ssh_url'] = $value; - after_pushed_at: + after_ssh_url: - $value = $payload['created_at'] ?? null; + $value = $payload['stargazers'] ?? null; if ($value === null) { - $missingFields[] = 'created_at'; - goto after_created_at; + $missingFields[] = 'stargazers'; + goto after_stargazers; } - $properties['created_at'] = $value; + $properties['stargazers'] = $value; - after_created_at: + after_stargazers: - $value = $payload['updated_at'] ?? null; + $value = $payload['stargazers_count'] ?? null; if ($value === null) { - $missingFields[] = 'updated_at'; - goto after_updated_at; + $missingFields[] = 'stargazers_count'; + goto after_stargazers_count; } - $properties['updated_at'] = $value; + $properties['stargazers_count'] = $value; - after_updated_at: + after_stargazers_count: - $value = $payload['permissions'] ?? null; + $value = $payload['stargazers_url'] ?? null; if ($value === null) { - $missingFields[] = 'permissions'; - goto after_permissions; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'permissions'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Permissions($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'stargazers_url'; + goto after_stargazers_url; } - $properties['permissions'] = $value; + $properties['stargazers_url'] = $value; - after_permissions: + after_stargazers_url: - $value = $payload['allow_rebase_merge'] ?? null; + $value = $payload['statuses_url'] ?? null; if ($value === null) { - $missingFields[] = 'allow_rebase_merge'; - goto after_allow_rebase_merge; + $missingFields[] = 'statuses_url'; + goto after_statuses_url; } - $properties['allow_rebase_merge'] = $value; + $properties['statuses_url'] = $value; - after_allow_rebase_merge: + after_statuses_url: - $value = $payload['temp_clone_token'] ?? null; + $value = $payload['subscribers_url'] ?? null; if ($value === null) { - $missingFields[] = 'temp_clone_token'; - goto after_temp_clone_token; + $missingFields[] = 'subscribers_url'; + goto after_subscribers_url; } - $properties['temp_clone_token'] = $value; + $properties['subscribers_url'] = $value; - after_temp_clone_token: + after_subscribers_url: - $value = $payload['allow_squash_merge'] ?? null; + $value = $payload['subscription_url'] ?? null; if ($value === null) { - $missingFields[] = 'allow_squash_merge'; - goto after_allow_squash_merge; + $missingFields[] = 'subscription_url'; + goto after_subscription_url; } - $properties['allow_squash_merge'] = $value; + $properties['subscription_url'] = $value; - after_allow_squash_merge: + after_subscription_url: - $value = $payload['allow_auto_merge'] ?? null; + $value = $payload['svn_url'] ?? null; if ($value === null) { - $missingFields[] = 'allow_auto_merge'; - goto after_allow_auto_merge; + $missingFields[] = 'svn_url'; + goto after_svn_url; } - $properties['allow_auto_merge'] = $value; + $properties['svn_url'] = $value; - after_allow_auto_merge: + after_svn_url: - $value = $payload['delete_branch_on_merge'] ?? null; + $value = $payload['tags_url'] ?? null; if ($value === null) { - $missingFields[] = 'delete_branch_on_merge'; - goto after_delete_branch_on_merge; + $missingFields[] = 'tags_url'; + goto after_tags_url; } - $properties['delete_branch_on_merge'] = $value; + $properties['tags_url'] = $value; - after_delete_branch_on_merge: + after_tags_url: - $value = $payload['allow_update_branch'] ?? null; + $value = $payload['teams_url'] ?? null; if ($value === null) { - $missingFields[] = 'allow_update_branch'; - goto after_allow_update_branch; + $missingFields[] = 'teams_url'; + goto after_teams_url; } - $properties['allow_update_branch'] = $value; + $properties['teams_url'] = $value; - after_allow_update_branch: + after_teams_url: - $value = $payload['use_squash_pr_title_as_default'] ?? null; + $value = $payload['topics'] ?? null; if ($value === null) { - $missingFields[] = 'use_squash_pr_title_as_default'; - goto after_use_squash_pr_title_as_default; + $missingFields[] = 'topics'; + goto after_topics; } - $properties['use_squash_pr_title_as_default'] = $value; + $properties['topics'] = $value; - after_use_squash_pr_title_as_default: + after_topics: - $value = $payload['squash_merge_commit_title'] ?? null; + $value = $payload['trees_url'] ?? null; if ($value === null) { - $missingFields[] = 'squash_merge_commit_title'; - goto after_squash_merge_commit_title; + $missingFields[] = 'trees_url'; + goto after_trees_url; } - $properties['squash_merge_commit_title'] = $value; + $properties['trees_url'] = $value; - after_squash_merge_commit_title: + after_trees_url: - $value = $payload['squash_merge_commit_message'] ?? null; + $value = $payload['updated_at'] ?? null; if ($value === null) { - $missingFields[] = 'squash_merge_commit_message'; - goto after_squash_merge_commit_message; + $missingFields[] = 'updated_at'; + goto after_updated_at; } - $properties['squash_merge_commit_message'] = $value; + $properties['updated_at'] = $value; - after_squash_merge_commit_message: + after_updated_at: - $value = $payload['merge_commit_title'] ?? null; + $value = $payload['url'] ?? null; if ($value === null) { - $missingFields[] = 'merge_commit_title'; - goto after_merge_commit_title; + $missingFields[] = 'url'; + goto after_url; } - $properties['merge_commit_title'] = $value; + $properties['url'] = $value; - after_merge_commit_title: + after_url: - $value = $payload['merge_commit_message'] ?? null; + $value = $payload['use_squash_pr_title_as_default'] ?? null; if ($value === null) { - $missingFields[] = 'merge_commit_message'; - goto after_merge_commit_message; + $missingFields[] = 'use_squash_pr_title_as_default'; + goto after_use_squash_pr_title_as_default; } - $properties['merge_commit_message'] = $value; + $properties['use_squash_pr_title_as_default'] = $value; - after_merge_commit_message: + after_use_squash_pr_title_as_default: - $value = $payload['allow_merge_commit'] ?? null; + $value = $payload['visibility'] ?? null; if ($value === null) { - $missingFields[] = 'allow_merge_commit'; - goto after_allow_merge_commit; + $missingFields[] = 'visibility'; + goto after_visibility; } - $properties['allow_merge_commit'] = $value; + $properties['visibility'] = $value; - after_allow_merge_commit: + after_visibility: - $value = $payload['subscribers_count'] ?? null; + $value = $payload['watchers'] ?? null; if ($value === null) { - $missingFields[] = 'subscribers_count'; - goto after_subscribers_count; + $missingFields[] = 'watchers'; + goto after_watchers; } - $properties['subscribers_count'] = $value; + $properties['watchers'] = $value; - after_subscribers_count: + after_watchers: - $value = $payload['network_count'] ?? null; + $value = $payload['watchers_count'] ?? null; if ($value === null) { - $missingFields[] = 'network_count'; - goto after_network_count; + $missingFields[] = 'watchers_count'; + goto after_watchers_count; } - $properties['network_count'] = $value; + $properties['watchers_count'] = $value; - after_network_count: - - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\TemplateRepository::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\Repository\TemplateRepository(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository', $exception, stack: $this->hydrationStack); - } - } + after_watchers_count: - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links⚡️Comments(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Links\Comments - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['href'] ?? null; + $value = $payload['web_commit_signoff_required'] ?? null; if ($value === null) { - $missingFields[] = 'href'; - goto after_href; + $missingFields[] = 'web_commit_signoff_required'; + goto after_web_commit_signoff_required; } - $properties['href'] = $value; + $properties['web_commit_signoff_required'] = $value; - after_href: + after_web_commit_signoff_required: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Links\Comments', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Base\Repo', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Links\Comments::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Base\Repo::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Links\Comments(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Base\Repo(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Links\Comments', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Base\Repo', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Base⚡️Repo(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Base\Repo + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewCommentCreated⚡️PullRequest⚡️Head⚡️Repo(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentCreated\PullRequest\Head\Repo { $properties = []; $missingFields = []; @@ -5674,775 +8732,1072 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh goto after_forks_url; } - $properties['forks_url'] = $value; + $properties['forks_url'] = $value; + + after_forks_url: + + $value = $payload['full_name'] ?? null; + + if ($value === null) { + $missingFields[] = 'full_name'; + goto after_full_name; + } + + $properties['full_name'] = $value; + + after_full_name: + + $value = $payload['git_commits_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_commits_url'; + goto after_git_commits_url; + } + + $properties['git_commits_url'] = $value; + + after_git_commits_url: + + $value = $payload['git_refs_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_refs_url'; + goto after_git_refs_url; + } + + $properties['git_refs_url'] = $value; + + after_git_refs_url: + + $value = $payload['git_tags_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_tags_url'; + goto after_git_tags_url; + } + + $properties['git_tags_url'] = $value; + + after_git_tags_url: + + $value = $payload['git_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_url'; + goto after_git_url; + } + + $properties['git_url'] = $value; + + after_git_url: + + $value = $payload['has_downloads'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_downloads'; + goto after_has_downloads; + } + + $properties['has_downloads'] = $value; + + after_has_downloads: + + $value = $payload['has_issues'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_issues'; + goto after_has_issues; + } + + $properties['has_issues'] = $value; + + after_has_issues: + + $value = $payload['has_pages'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_pages'; + goto after_has_pages; + } + + $properties['has_pages'] = $value; + + after_has_pages: + + $value = $payload['has_projects'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_projects'; + goto after_has_projects; + } + + $properties['has_projects'] = $value; + + after_has_projects: + + $value = $payload['has_wiki'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_wiki'; + goto after_has_wiki; + } + + $properties['has_wiki'] = $value; + + after_has_wiki: + + $value = $payload['has_discussions'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_discussions'; + goto after_has_discussions; + } + + $properties['has_discussions'] = $value; + + after_has_discussions: + + $value = $payload['homepage'] ?? null; + + if ($value === null) { + $missingFields[] = 'homepage'; + goto after_homepage; + } + + $properties['homepage'] = $value; + + after_homepage: + + $value = $payload['hooks_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'hooks_url'; + goto after_hooks_url; + } + + $properties['hooks_url'] = $value; + + after_hooks_url: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } + + $properties['html_url'] = $value; + + after_html_url: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['is_template'] ?? null; + + if ($value === null) { + $missingFields[] = 'is_template'; + goto after_is_template; + } + + $properties['is_template'] = $value; + + after_is_template: + + $value = $payload['issue_comment_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issue_comment_url'; + goto after_issue_comment_url; + } + + $properties['issue_comment_url'] = $value; + + after_issue_comment_url: + + $value = $payload['issue_events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issue_events_url'; + goto after_issue_events_url; + } + + $properties['issue_events_url'] = $value; + + after_issue_events_url: + + $value = $payload['issues_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issues_url'; + goto after_issues_url; + } + + $properties['issues_url'] = $value; + + after_issues_url: + + $value = $payload['keys_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'keys_url'; + goto after_keys_url; + } + + $properties['keys_url'] = $value; + + after_keys_url: + + $value = $payload['labels_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'labels_url'; + goto after_labels_url; + } + + $properties['labels_url'] = $value; + + after_labels_url: + + $value = $payload['language'] ?? null; + + if ($value === null) { + $missingFields[] = 'language'; + goto after_language; + } + + $properties['language'] = $value; + + after_language: + + $value = $payload['languages_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'languages_url'; + goto after_languages_url; + } + + $properties['languages_url'] = $value; - after_forks_url: + after_languages_url: - $value = $payload['full_name'] ?? null; + $value = $payload['license'] ?? null; if ($value === null) { - $missingFields[] = 'full_name'; - goto after_full_name; + $missingFields[] = 'license'; + goto after_license; } - $properties['full_name'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'license'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionTransferred⚡️Changes⚡️NewRepository⚡️License($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['license'] = $value; - after_full_name: + after_license: - $value = $payload['git_commits_url'] ?? null; + $value = $payload['master_branch'] ?? null; if ($value === null) { - $missingFields[] = 'git_commits_url'; - goto after_git_commits_url; + $missingFields[] = 'master_branch'; + goto after_master_branch; } - $properties['git_commits_url'] = $value; + $properties['master_branch'] = $value; - after_git_commits_url: + after_master_branch: - $value = $payload['git_refs_url'] ?? null; + $value = $payload['merge_commit_message'] ?? null; if ($value === null) { - $missingFields[] = 'git_refs_url'; - goto after_git_refs_url; + $missingFields[] = 'merge_commit_message'; + goto after_merge_commit_message; } - $properties['git_refs_url'] = $value; + $properties['merge_commit_message'] = $value; - after_git_refs_url: + after_merge_commit_message: - $value = $payload['git_tags_url'] ?? null; + $value = $payload['merge_commit_title'] ?? null; if ($value === null) { - $missingFields[] = 'git_tags_url'; - goto after_git_tags_url; + $missingFields[] = 'merge_commit_title'; + goto after_merge_commit_title; } - $properties['git_tags_url'] = $value; + $properties['merge_commit_title'] = $value; - after_git_tags_url: + after_merge_commit_title: - $value = $payload['git_url'] ?? null; + $value = $payload['merges_url'] ?? null; if ($value === null) { - $missingFields[] = 'git_url'; - goto after_git_url; + $missingFields[] = 'merges_url'; + goto after_merges_url; } - $properties['git_url'] = $value; + $properties['merges_url'] = $value; - after_git_url: + after_merges_url: - $value = $payload['has_downloads'] ?? null; + $value = $payload['milestones_url'] ?? null; if ($value === null) { - $missingFields[] = 'has_downloads'; - goto after_has_downloads; + $missingFields[] = 'milestones_url'; + goto after_milestones_url; } - $properties['has_downloads'] = $value; + $properties['milestones_url'] = $value; - after_has_downloads: + after_milestones_url: - $value = $payload['has_issues'] ?? null; + $value = $payload['mirror_url'] ?? null; if ($value === null) { - $missingFields[] = 'has_issues'; - goto after_has_issues; + $missingFields[] = 'mirror_url'; + goto after_mirror_url; } - $properties['has_issues'] = $value; + $properties['mirror_url'] = $value; - after_has_issues: + after_mirror_url: - $value = $payload['has_pages'] ?? null; + $value = $payload['name'] ?? null; if ($value === null) { - $missingFields[] = 'has_pages'; - goto after_has_pages; + $missingFields[] = 'name'; + goto after_name; } - $properties['has_pages'] = $value; + $properties['name'] = $value; - after_has_pages: + after_name: - $value = $payload['has_projects'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $missingFields[] = 'has_projects'; - goto after_has_projects; + $missingFields[] = 'node_id'; + goto after_node_id; } - $properties['has_projects'] = $value; + $properties['node_id'] = $value; - after_has_projects: + after_node_id: - $value = $payload['has_wiki'] ?? null; + $value = $payload['notifications_url'] ?? null; if ($value === null) { - $missingFields[] = 'has_wiki'; - goto after_has_wiki; + $missingFields[] = 'notifications_url'; + goto after_notifications_url; } - $properties['has_wiki'] = $value; + $properties['notifications_url'] = $value; - after_has_wiki: + after_notifications_url: - $value = $payload['has_discussions'] ?? null; + $value = $payload['open_issues'] ?? null; if ($value === null) { - $missingFields[] = 'has_discussions'; - goto after_has_discussions; + $missingFields[] = 'open_issues'; + goto after_open_issues; } - $properties['has_discussions'] = $value; + $properties['open_issues'] = $value; - after_has_discussions: + after_open_issues: - $value = $payload['homepage'] ?? null; + $value = $payload['open_issues_count'] ?? null; if ($value === null) { - $missingFields[] = 'homepage'; - goto after_homepage; + $missingFields[] = 'open_issues_count'; + goto after_open_issues_count; } - $properties['homepage'] = $value; + $properties['open_issues_count'] = $value; - after_homepage: + after_open_issues_count: - $value = $payload['hooks_url'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'hooks_url'; - goto after_hooks_url; + $missingFields[] = 'organization'; + goto after_organization; } - $properties['hooks_url'] = $value; + $properties['organization'] = $value; - after_hooks_url: + after_organization: - $value = $payload['html_url'] ?? null; + $value = $payload['owner'] ?? null; if ($value === null) { - $missingFields[] = 'html_url'; - goto after_html_url; + $missingFields[] = 'owner'; + goto after_owner; } - $properties['html_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'owner'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['owner'] = $value; - after_html_url: + after_owner: - $value = $payload['id'] ?? null; + $value = $payload['permissions'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'permissions'; + goto after_permissions; } - $properties['id'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'permissions'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionTransferred⚡️Changes⚡️NewRepository⚡️Permissions($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['permissions'] = $value; - after_id: + after_permissions: - $value = $payload['is_template'] ?? null; + $value = $payload['private'] ?? null; if ($value === null) { - $missingFields[] = 'is_template'; - goto after_is_template; + $missingFields[] = 'private'; + goto after_private; } - $properties['is_template'] = $value; + $properties['private'] = $value; - after_is_template: + after_private: - $value = $payload['issue_comment_url'] ?? null; + $value = $payload['public'] ?? null; if ($value === null) { - $missingFields[] = 'issue_comment_url'; - goto after_issue_comment_url; + $missingFields[] = 'public'; + goto after_public; } - $properties['issue_comment_url'] = $value; + $properties['public'] = $value; - after_issue_comment_url: + after_public: - $value = $payload['issue_events_url'] ?? null; + $value = $payload['pulls_url'] ?? null; if ($value === null) { - $missingFields[] = 'issue_events_url'; - goto after_issue_events_url; + $missingFields[] = 'pulls_url'; + goto after_pulls_url; } - $properties['issue_events_url'] = $value; + $properties['pulls_url'] = $value; - after_issue_events_url: + after_pulls_url: - $value = $payload['issues_url'] ?? null; + $value = $payload['pushed_at'] ?? null; if ($value === null) { - $missingFields[] = 'issues_url'; - goto after_issues_url; + $properties['pushed_at'] = null; + goto after_pushed_at; } - $properties['issues_url'] = $value; + $properties['pushed_at'] = $value; - after_issues_url: + after_pushed_at: - $value = $payload['keys_url'] ?? null; + $value = $payload['releases_url'] ?? null; if ($value === null) { - $missingFields[] = 'keys_url'; - goto after_keys_url; + $missingFields[] = 'releases_url'; + goto after_releases_url; } - $properties['keys_url'] = $value; + $properties['releases_url'] = $value; - after_keys_url: + after_releases_url: - $value = $payload['labels_url'] ?? null; + $value = $payload['role_name'] ?? null; if ($value === null) { - $missingFields[] = 'labels_url'; - goto after_labels_url; + $missingFields[] = 'role_name'; + goto after_role_name; } - $properties['labels_url'] = $value; + $properties['role_name'] = $value; - after_labels_url: + after_role_name: - $value = $payload['language'] ?? null; + $value = $payload['size'] ?? null; if ($value === null) { - $missingFields[] = 'language'; - goto after_language; + $missingFields[] = 'size'; + goto after_size; } - $properties['language'] = $value; + $properties['size'] = $value; - after_language: + after_size: - $value = $payload['languages_url'] ?? null; + $value = $payload['squash_merge_commit_message'] ?? null; - if ($value === null) { - $missingFields[] = 'languages_url'; - goto after_languages_url; + if ($value === null) { + $missingFields[] = 'squash_merge_commit_message'; + goto after_squash_merge_commit_message; } - $properties['languages_url'] = $value; + $properties['squash_merge_commit_message'] = $value; - after_languages_url: + after_squash_merge_commit_message: - $value = $payload['license'] ?? null; + $value = $payload['squash_merge_commit_title'] ?? null; if ($value === null) { - $missingFields[] = 'license'; - goto after_license; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'license'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionTransferred⚡️Changes⚡️NewRepository⚡️License($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'squash_merge_commit_title'; + goto after_squash_merge_commit_title; } - $properties['license'] = $value; + $properties['squash_merge_commit_title'] = $value; - after_license: + after_squash_merge_commit_title: - $value = $payload['master_branch'] ?? null; + $value = $payload['ssh_url'] ?? null; if ($value === null) { - $missingFields[] = 'master_branch'; - goto after_master_branch; + $missingFields[] = 'ssh_url'; + goto after_ssh_url; } - $properties['master_branch'] = $value; + $properties['ssh_url'] = $value; - after_master_branch: + after_ssh_url: - $value = $payload['merge_commit_message'] ?? null; + $value = $payload['stargazers'] ?? null; if ($value === null) { - $missingFields[] = 'merge_commit_message'; - goto after_merge_commit_message; + $missingFields[] = 'stargazers'; + goto after_stargazers; } - $properties['merge_commit_message'] = $value; + $properties['stargazers'] = $value; - after_merge_commit_message: + after_stargazers: - $value = $payload['merge_commit_title'] ?? null; + $value = $payload['stargazers_count'] ?? null; if ($value === null) { - $missingFields[] = 'merge_commit_title'; - goto after_merge_commit_title; + $missingFields[] = 'stargazers_count'; + goto after_stargazers_count; } - $properties['merge_commit_title'] = $value; + $properties['stargazers_count'] = $value; - after_merge_commit_title: + after_stargazers_count: - $value = $payload['merges_url'] ?? null; + $value = $payload['stargazers_url'] ?? null; if ($value === null) { - $missingFields[] = 'merges_url'; - goto after_merges_url; + $missingFields[] = 'stargazers_url'; + goto after_stargazers_url; } - $properties['merges_url'] = $value; + $properties['stargazers_url'] = $value; - after_merges_url: + after_stargazers_url: - $value = $payload['milestones_url'] ?? null; + $value = $payload['statuses_url'] ?? null; if ($value === null) { - $missingFields[] = 'milestones_url'; - goto after_milestones_url; + $missingFields[] = 'statuses_url'; + goto after_statuses_url; } - $properties['milestones_url'] = $value; + $properties['statuses_url'] = $value; - after_milestones_url: + after_statuses_url: - $value = $payload['mirror_url'] ?? null; + $value = $payload['subscribers_url'] ?? null; if ($value === null) { - $missingFields[] = 'mirror_url'; - goto after_mirror_url; + $missingFields[] = 'subscribers_url'; + goto after_subscribers_url; } - $properties['mirror_url'] = $value; + $properties['subscribers_url'] = $value; - after_mirror_url: + after_subscribers_url: - $value = $payload['name'] ?? null; + $value = $payload['subscription_url'] ?? null; if ($value === null) { - $missingFields[] = 'name'; - goto after_name; + $missingFields[] = 'subscription_url'; + goto after_subscription_url; } - $properties['name'] = $value; + $properties['subscription_url'] = $value; - after_name: + after_subscription_url: - $value = $payload['node_id'] ?? null; + $value = $payload['svn_url'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $missingFields[] = 'svn_url'; + goto after_svn_url; } - $properties['node_id'] = $value; + $properties['svn_url'] = $value; - after_node_id: + after_svn_url: - $value = $payload['notifications_url'] ?? null; + $value = $payload['tags_url'] ?? null; if ($value === null) { - $missingFields[] = 'notifications_url'; - goto after_notifications_url; + $missingFields[] = 'tags_url'; + goto after_tags_url; } - $properties['notifications_url'] = $value; + $properties['tags_url'] = $value; - after_notifications_url: + after_tags_url: - $value = $payload['open_issues'] ?? null; + $value = $payload['teams_url'] ?? null; if ($value === null) { - $missingFields[] = 'open_issues'; - goto after_open_issues; + $missingFields[] = 'teams_url'; + goto after_teams_url; } - $properties['open_issues'] = $value; + $properties['teams_url'] = $value; - after_open_issues: + after_teams_url: - $value = $payload['open_issues_count'] ?? null; + $value = $payload['topics'] ?? null; if ($value === null) { - $missingFields[] = 'open_issues_count'; - goto after_open_issues_count; + $missingFields[] = 'topics'; + goto after_topics; } - $properties['open_issues_count'] = $value; + $properties['topics'] = $value; - after_open_issues_count: + after_topics: - $value = $payload['organization'] ?? null; + $value = $payload['trees_url'] ?? null; if ($value === null) { - $missingFields[] = 'organization'; - goto after_organization; + $missingFields[] = 'trees_url'; + goto after_trees_url; } - $properties['organization'] = $value; + $properties['trees_url'] = $value; - after_organization: + after_trees_url: - $value = $payload['owner'] ?? null; + $value = $payload['updated_at'] ?? null; if ($value === null) { - $missingFields[] = 'owner'; - goto after_owner; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'owner'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'updated_at'; + goto after_updated_at; } - $properties['owner'] = $value; + $properties['updated_at'] = $value; - after_owner: + after_updated_at: - $value = $payload['permissions'] ?? null; + $value = $payload['url'] ?? null; if ($value === null) { - $missingFields[] = 'permissions'; - goto after_permissions; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'permissions'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionTransferred⚡️Changes⚡️NewRepository⚡️Permissions($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'url'; + goto after_url; } - $properties['permissions'] = $value; + $properties['url'] = $value; - after_permissions: + after_url: - $value = $payload['private'] ?? null; + $value = $payload['use_squash_pr_title_as_default'] ?? null; if ($value === null) { - $missingFields[] = 'private'; - goto after_private; + $missingFields[] = 'use_squash_pr_title_as_default'; + goto after_use_squash_pr_title_as_default; } - $properties['private'] = $value; + $properties['use_squash_pr_title_as_default'] = $value; - after_private: + after_use_squash_pr_title_as_default: - $value = $payload['public'] ?? null; + $value = $payload['visibility'] ?? null; if ($value === null) { - $missingFields[] = 'public'; - goto after_public; + $missingFields[] = 'visibility'; + goto after_visibility; } - $properties['public'] = $value; + $properties['visibility'] = $value; - after_public: + after_visibility: - $value = $payload['pulls_url'] ?? null; + $value = $payload['watchers'] ?? null; if ($value === null) { - $missingFields[] = 'pulls_url'; - goto after_pulls_url; + $missingFields[] = 'watchers'; + goto after_watchers; } - $properties['pulls_url'] = $value; + $properties['watchers'] = $value; - after_pulls_url: + after_watchers: - $value = $payload['pushed_at'] ?? null; + $value = $payload['watchers_count'] ?? null; if ($value === null) { - $properties['pushed_at'] = null; - goto after_pushed_at; + $missingFields[] = 'watchers_count'; + goto after_watchers_count; } - $properties['pushed_at'] = $value; + $properties['watchers_count'] = $value; - after_pushed_at: + after_watchers_count: - $value = $payload['releases_url'] ?? null; + $value = $payload['web_commit_signoff_required'] ?? null; if ($value === null) { - $missingFields[] = 'releases_url'; - goto after_releases_url; + $missingFields[] = 'web_commit_signoff_required'; + goto after_web_commit_signoff_required; } - $properties['releases_url'] = $value; + $properties['web_commit_signoff_required'] = $value; - after_releases_url: + after_web_commit_signoff_required: - $value = $payload['role_name'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentCreated\PullRequest\Head\Repo', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentCreated\PullRequest\Head\Repo::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentCreated\PullRequest\Head\Repo(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentCreated\PullRequest\Head\Repo', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner(array $payload): \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['login'] ?? null; if ($value === null) { - $missingFields[] = 'role_name'; - goto after_role_name; + $missingFields[] = 'login'; + goto after_login; } - $properties['role_name'] = $value; + $properties['login'] = $value; - after_role_name: + after_login: - $value = $payload['size'] ?? null; + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'size'; - goto after_size; + $missingFields[] = 'id'; + goto after_id; } - $properties['size'] = $value; + $properties['id'] = $value; - after_size: + after_id: - $value = $payload['squash_merge_commit_message'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $missingFields[] = 'squash_merge_commit_message'; - goto after_squash_merge_commit_message; + $missingFields[] = 'node_id'; + goto after_node_id; } - $properties['squash_merge_commit_message'] = $value; + $properties['node_id'] = $value; - after_squash_merge_commit_message: + after_node_id: - $value = $payload['squash_merge_commit_title'] ?? null; + $value = $payload['avatar_url'] ?? null; if ($value === null) { - $missingFields[] = 'squash_merge_commit_title'; - goto after_squash_merge_commit_title; + $missingFields[] = 'avatar_url'; + goto after_avatar_url; } - $properties['squash_merge_commit_title'] = $value; + $properties['avatar_url'] = $value; - after_squash_merge_commit_title: + after_avatar_url: - $value = $payload['ssh_url'] ?? null; + $value = $payload['gravatar_id'] ?? null; if ($value === null) { - $missingFields[] = 'ssh_url'; - goto after_ssh_url; + $missingFields[] = 'gravatar_id'; + goto after_gravatar_id; } - $properties['ssh_url'] = $value; + $properties['gravatar_id'] = $value; - after_ssh_url: + after_gravatar_id: - $value = $payload['stargazers'] ?? null; + $value = $payload['url'] ?? null; if ($value === null) { - $missingFields[] = 'stargazers'; - goto after_stargazers; + $missingFields[] = 'url'; + goto after_url; } - $properties['stargazers'] = $value; + $properties['url'] = $value; - after_stargazers: + after_url: - $value = $payload['stargazers_count'] ?? null; + $value = $payload['html_url'] ?? null; if ($value === null) { - $missingFields[] = 'stargazers_count'; - goto after_stargazers_count; + $missingFields[] = 'html_url'; + goto after_html_url; } - $properties['stargazers_count'] = $value; + $properties['html_url'] = $value; - after_stargazers_count: + after_html_url: - $value = $payload['stargazers_url'] ?? null; + $value = $payload['followers_url'] ?? null; if ($value === null) { - $missingFields[] = 'stargazers_url'; - goto after_stargazers_url; + $missingFields[] = 'followers_url'; + goto after_followers_url; } - $properties['stargazers_url'] = $value; + $properties['followers_url'] = $value; - after_stargazers_url: + after_followers_url: - $value = $payload['statuses_url'] ?? null; + $value = $payload['following_url'] ?? null; if ($value === null) { - $missingFields[] = 'statuses_url'; - goto after_statuses_url; + $missingFields[] = 'following_url'; + goto after_following_url; } - $properties['statuses_url'] = $value; + $properties['following_url'] = $value; - after_statuses_url: + after_following_url: - $value = $payload['subscribers_url'] ?? null; + $value = $payload['gists_url'] ?? null; if ($value === null) { - $missingFields[] = 'subscribers_url'; - goto after_subscribers_url; + $missingFields[] = 'gists_url'; + goto after_gists_url; } - $properties['subscribers_url'] = $value; + $properties['gists_url'] = $value; - after_subscribers_url: + after_gists_url: - $value = $payload['subscription_url'] ?? null; + $value = $payload['starred_url'] ?? null; if ($value === null) { - $missingFields[] = 'subscription_url'; - goto after_subscription_url; + $missingFields[] = 'starred_url'; + goto after_starred_url; } - $properties['subscription_url'] = $value; + $properties['starred_url'] = $value; - after_subscription_url: + after_starred_url: - $value = $payload['svn_url'] ?? null; + $value = $payload['subscriptions_url'] ?? null; if ($value === null) { - $missingFields[] = 'svn_url'; - goto after_svn_url; + $missingFields[] = 'subscriptions_url'; + goto after_subscriptions_url; } - $properties['svn_url'] = $value; + $properties['subscriptions_url'] = $value; - after_svn_url: + after_subscriptions_url: - $value = $payload['tags_url'] ?? null; + $value = $payload['organizations_url'] ?? null; if ($value === null) { - $missingFields[] = 'tags_url'; - goto after_tags_url; + $missingFields[] = 'organizations_url'; + goto after_organizations_url; } - $properties['tags_url'] = $value; + $properties['organizations_url'] = $value; - after_tags_url: + after_organizations_url: - $value = $payload['teams_url'] ?? null; + $value = $payload['repos_url'] ?? null; if ($value === null) { - $missingFields[] = 'teams_url'; - goto after_teams_url; + $missingFields[] = 'repos_url'; + goto after_repos_url; } - $properties['teams_url'] = $value; + $properties['repos_url'] = $value; - after_teams_url: + after_repos_url: - $value = $payload['topics'] ?? null; + $value = $payload['events_url'] ?? null; if ($value === null) { - $missingFields[] = 'topics'; - goto after_topics; + $missingFields[] = 'events_url'; + goto after_events_url; } - $properties['topics'] = $value; + $properties['events_url'] = $value; - after_topics: + after_events_url: - $value = $payload['trees_url'] ?? null; + $value = $payload['received_events_url'] ?? null; if ($value === null) { - $missingFields[] = 'trees_url'; - goto after_trees_url; + $missingFields[] = 'received_events_url'; + goto after_received_events_url; } - $properties['trees_url'] = $value; + $properties['received_events_url'] = $value; - after_trees_url: + after_received_events_url: - $value = $payload['updated_at'] ?? null; + $value = $payload['type'] ?? null; if ($value === null) { - $missingFields[] = 'updated_at'; - goto after_updated_at; + $missingFields[] = 'type'; + goto after_type; } - $properties['updated_at'] = $value; + $properties['type'] = $value; - after_updated_at: + after_type: - $value = $payload['url'] ?? null; + $value = $payload['site_admin'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $missingFields[] = 'site_admin'; + goto after_site_admin; } - $properties['url'] = $value; + $properties['site_admin'] = $value; - after_url: + after_site_admin: - $value = $payload['use_squash_pr_title_as_default'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Permissions(array $payload): \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['admin'] ?? null; if ($value === null) { - $missingFields[] = 'use_squash_pr_title_as_default'; - goto after_use_squash_pr_title_as_default; + $missingFields[] = 'admin'; + goto after_admin; } - $properties['use_squash_pr_title_as_default'] = $value; + $properties['admin'] = $value; - after_use_squash_pr_title_as_default: + after_admin: - $value = $payload['visibility'] ?? null; + $value = $payload['maintain'] ?? null; if ($value === null) { - $missingFields[] = 'visibility'; - goto after_visibility; + $missingFields[] = 'maintain'; + goto after_maintain; } - $properties['visibility'] = $value; + $properties['maintain'] = $value; - after_visibility: + after_maintain: - $value = $payload['watchers'] ?? null; + $value = $payload['push'] ?? null; if ($value === null) { - $missingFields[] = 'watchers'; - goto after_watchers; + $missingFields[] = 'push'; + goto after_push; } - $properties['watchers'] = $value; + $properties['push'] = $value; - after_watchers: + after_push: - $value = $payload['watchers_count'] ?? null; + $value = $payload['triage'] ?? null; if ($value === null) { - $missingFields[] = 'watchers_count'; - goto after_watchers_count; + $missingFields[] = 'triage'; + goto after_triage; } - $properties['watchers_count'] = $value; + $properties['triage'] = $value; - after_watchers_count: + after_triage: - $value = $payload['web_commit_signoff_required'] ?? null; + $value = $payload['pull'] ?? null; if ($value === null) { - $missingFields[] = 'web_commit_signoff_required'; - goto after_web_commit_signoff_required; + $missingFields[] = 'pull'; + goto after_pull; } - $properties['web_commit_signoff_required'] = $value; + $properties['pull'] = $value; - after_web_commit_signoff_required: + after_pull: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Base\Repo', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Base\Repo::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Base\Repo(...$properties); + return new \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Base\Repo', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions', $exception, stack: $this->hydrationStack); } } @@ -6642,1209 +9997,912 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh $value = $payload['contributors_url'] ?? null; - if ($value === null) { - $missingFields[] = 'contributors_url'; - goto after_contributors_url; - } - - $properties['contributors_url'] = $value; - - after_contributors_url: - - $value = $payload['created_at'] ?? null; - - if ($value === null) { - $properties['created_at'] = null; - goto after_created_at; - } - - $properties['created_at'] = $value; - - after_created_at: - - $value = $payload['default_branch'] ?? null; - - if ($value === null) { - $missingFields[] = 'default_branch'; - goto after_default_branch; - } - - $properties['default_branch'] = $value; - - after_default_branch: - - $value = $payload['delete_branch_on_merge'] ?? null; - - if ($value === null) { - $missingFields[] = 'delete_branch_on_merge'; - goto after_delete_branch_on_merge; - } - - $properties['delete_branch_on_merge'] = $value; - - after_delete_branch_on_merge: - - $value = $payload['deployments_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'deployments_url'; - goto after_deployments_url; - } - - $properties['deployments_url'] = $value; - - after_deployments_url: - - $value = $payload['description'] ?? null; - - if ($value === null) { - $missingFields[] = 'description'; - goto after_description; - } - - $properties['description'] = $value; - - after_description: - - $value = $payload['disabled'] ?? null; - - if ($value === null) { - $missingFields[] = 'disabled'; - goto after_disabled; - } - - $properties['disabled'] = $value; - - after_disabled: - - $value = $payload['downloads_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'downloads_url'; - goto after_downloads_url; - } - - $properties['downloads_url'] = $value; - - after_downloads_url: - - $value = $payload['events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'events_url'; - goto after_events_url; - } - - $properties['events_url'] = $value; - - after_events_url: - - $value = $payload['fork'] ?? null; - - if ($value === null) { - $missingFields[] = 'fork'; - goto after_fork; - } - - $properties['fork'] = $value; - - after_fork: - - $value = $payload['forks'] ?? null; - - if ($value === null) { - $missingFields[] = 'forks'; - goto after_forks; - } - - $properties['forks'] = $value; - - after_forks: - - $value = $payload['forks_count'] ?? null; - - if ($value === null) { - $missingFields[] = 'forks_count'; - goto after_forks_count; - } - - $properties['forks_count'] = $value; - - after_forks_count: - - $value = $payload['forks_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'forks_url'; - goto after_forks_url; - } - - $properties['forks_url'] = $value; - - after_forks_url: - - $value = $payload['full_name'] ?? null; - - if ($value === null) { - $missingFields[] = 'full_name'; - goto after_full_name; - } - - $properties['full_name'] = $value; - - after_full_name: - - $value = $payload['git_commits_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'git_commits_url'; - goto after_git_commits_url; - } - - $properties['git_commits_url'] = $value; - - after_git_commits_url: - - $value = $payload['git_refs_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'git_refs_url'; - goto after_git_refs_url; - } - - $properties['git_refs_url'] = $value; - - after_git_refs_url: - - $value = $payload['git_tags_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'git_tags_url'; - goto after_git_tags_url; - } - - $properties['git_tags_url'] = $value; - - after_git_tags_url: - - $value = $payload['git_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'git_url'; - goto after_git_url; - } - - $properties['git_url'] = $value; - - after_git_url: - - $value = $payload['has_downloads'] ?? null; - - if ($value === null) { - $missingFields[] = 'has_downloads'; - goto after_has_downloads; - } - - $properties['has_downloads'] = $value; - - after_has_downloads: - - $value = $payload['has_issues'] ?? null; - - if ($value === null) { - $missingFields[] = 'has_issues'; - goto after_has_issues; - } - - $properties['has_issues'] = $value; - - after_has_issues: - - $value = $payload['has_pages'] ?? null; - - if ($value === null) { - $missingFields[] = 'has_pages'; - goto after_has_pages; - } - - $properties['has_pages'] = $value; - - after_has_pages: - - $value = $payload['has_projects'] ?? null; - - if ($value === null) { - $missingFields[] = 'has_projects'; - goto after_has_projects; - } - - $properties['has_projects'] = $value; - - after_has_projects: - - $value = $payload['has_wiki'] ?? null; - - if ($value === null) { - $missingFields[] = 'has_wiki'; - goto after_has_wiki; - } - - $properties['has_wiki'] = $value; - - after_has_wiki: - - $value = $payload['has_discussions'] ?? null; - - if ($value === null) { - $missingFields[] = 'has_discussions'; - goto after_has_discussions; + if ($value === null) { + $missingFields[] = 'contributors_url'; + goto after_contributors_url; } - $properties['has_discussions'] = $value; + $properties['contributors_url'] = $value; - after_has_discussions: + after_contributors_url: - $value = $payload['homepage'] ?? null; + $value = $payload['created_at'] ?? null; if ($value === null) { - $missingFields[] = 'homepage'; - goto after_homepage; + $properties['created_at'] = null; + goto after_created_at; } - $properties['homepage'] = $value; + $properties['created_at'] = $value; - after_homepage: + after_created_at: - $value = $payload['hooks_url'] ?? null; + $value = $payload['default_branch'] ?? null; if ($value === null) { - $missingFields[] = 'hooks_url'; - goto after_hooks_url; + $missingFields[] = 'default_branch'; + goto after_default_branch; } - $properties['hooks_url'] = $value; + $properties['default_branch'] = $value; - after_hooks_url: + after_default_branch: - $value = $payload['html_url'] ?? null; + $value = $payload['delete_branch_on_merge'] ?? null; if ($value === null) { - $missingFields[] = 'html_url'; - goto after_html_url; + $missingFields[] = 'delete_branch_on_merge'; + goto after_delete_branch_on_merge; } - $properties['html_url'] = $value; + $properties['delete_branch_on_merge'] = $value; - after_html_url: + after_delete_branch_on_merge: - $value = $payload['id'] ?? null; + $value = $payload['deployments_url'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'deployments_url'; + goto after_deployments_url; } - $properties['id'] = $value; + $properties['deployments_url'] = $value; - after_id: + after_deployments_url: - $value = $payload['is_template'] ?? null; + $value = $payload['description'] ?? null; if ($value === null) { - $missingFields[] = 'is_template'; - goto after_is_template; + $missingFields[] = 'description'; + goto after_description; } - $properties['is_template'] = $value; + $properties['description'] = $value; - after_is_template: + after_description: - $value = $payload['issue_comment_url'] ?? null; + $value = $payload['disabled'] ?? null; if ($value === null) { - $missingFields[] = 'issue_comment_url'; - goto after_issue_comment_url; + $missingFields[] = 'disabled'; + goto after_disabled; } - $properties['issue_comment_url'] = $value; + $properties['disabled'] = $value; - after_issue_comment_url: + after_disabled: - $value = $payload['issue_events_url'] ?? null; + $value = $payload['downloads_url'] ?? null; if ($value === null) { - $missingFields[] = 'issue_events_url'; - goto after_issue_events_url; + $missingFields[] = 'downloads_url'; + goto after_downloads_url; } - $properties['issue_events_url'] = $value; + $properties['downloads_url'] = $value; - after_issue_events_url: + after_downloads_url: - $value = $payload['issues_url'] ?? null; + $value = $payload['events_url'] ?? null; if ($value === null) { - $missingFields[] = 'issues_url'; - goto after_issues_url; + $missingFields[] = 'events_url'; + goto after_events_url; } - $properties['issues_url'] = $value; + $properties['events_url'] = $value; - after_issues_url: + after_events_url: - $value = $payload['keys_url'] ?? null; + $value = $payload['fork'] ?? null; if ($value === null) { - $missingFields[] = 'keys_url'; - goto after_keys_url; + $missingFields[] = 'fork'; + goto after_fork; } - $properties['keys_url'] = $value; + $properties['fork'] = $value; - after_keys_url: + after_fork: - $value = $payload['labels_url'] ?? null; + $value = $payload['forks'] ?? null; if ($value === null) { - $missingFields[] = 'labels_url'; - goto after_labels_url; + $missingFields[] = 'forks'; + goto after_forks; } - $properties['labels_url'] = $value; + $properties['forks'] = $value; - after_labels_url: + after_forks: - $value = $payload['language'] ?? null; + $value = $payload['forks_count'] ?? null; if ($value === null) { - $missingFields[] = 'language'; - goto after_language; + $missingFields[] = 'forks_count'; + goto after_forks_count; } - $properties['language'] = $value; + $properties['forks_count'] = $value; - after_language: + after_forks_count: - $value = $payload['languages_url'] ?? null; + $value = $payload['forks_url'] ?? null; if ($value === null) { - $missingFields[] = 'languages_url'; - goto after_languages_url; + $missingFields[] = 'forks_url'; + goto after_forks_url; } - $properties['languages_url'] = $value; + $properties['forks_url'] = $value; - after_languages_url: + after_forks_url: - $value = $payload['license'] ?? null; + $value = $payload['full_name'] ?? null; if ($value === null) { - $missingFields[] = 'license'; - goto after_license; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'license'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionTransferred⚡️Changes⚡️NewRepository⚡️License($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'full_name'; + goto after_full_name; } - $properties['license'] = $value; + $properties['full_name'] = $value; - after_license: + after_full_name: - $value = $payload['master_branch'] ?? null; + $value = $payload['git_commits_url'] ?? null; if ($value === null) { - $missingFields[] = 'master_branch'; - goto after_master_branch; + $missingFields[] = 'git_commits_url'; + goto after_git_commits_url; } - $properties['master_branch'] = $value; + $properties['git_commits_url'] = $value; - after_master_branch: + after_git_commits_url: - $value = $payload['merge_commit_message'] ?? null; + $value = $payload['git_refs_url'] ?? null; if ($value === null) { - $missingFields[] = 'merge_commit_message'; - goto after_merge_commit_message; + $missingFields[] = 'git_refs_url'; + goto after_git_refs_url; } - $properties['merge_commit_message'] = $value; + $properties['git_refs_url'] = $value; - after_merge_commit_message: + after_git_refs_url: - $value = $payload['merge_commit_title'] ?? null; + $value = $payload['git_tags_url'] ?? null; if ($value === null) { - $missingFields[] = 'merge_commit_title'; - goto after_merge_commit_title; + $missingFields[] = 'git_tags_url'; + goto after_git_tags_url; } - $properties['merge_commit_title'] = $value; + $properties['git_tags_url'] = $value; - after_merge_commit_title: + after_git_tags_url: - $value = $payload['merges_url'] ?? null; + $value = $payload['git_url'] ?? null; if ($value === null) { - $missingFields[] = 'merges_url'; - goto after_merges_url; + $missingFields[] = 'git_url'; + goto after_git_url; } - $properties['merges_url'] = $value; + $properties['git_url'] = $value; - after_merges_url: + after_git_url: - $value = $payload['milestones_url'] ?? null; + $value = $payload['has_downloads'] ?? null; if ($value === null) { - $missingFields[] = 'milestones_url'; - goto after_milestones_url; + $missingFields[] = 'has_downloads'; + goto after_has_downloads; } - $properties['milestones_url'] = $value; + $properties['has_downloads'] = $value; - after_milestones_url: + after_has_downloads: - $value = $payload['mirror_url'] ?? null; + $value = $payload['has_issues'] ?? null; if ($value === null) { - $missingFields[] = 'mirror_url'; - goto after_mirror_url; + $missingFields[] = 'has_issues'; + goto after_has_issues; } - $properties['mirror_url'] = $value; + $properties['has_issues'] = $value; - after_mirror_url: + after_has_issues: - $value = $payload['name'] ?? null; + $value = $payload['has_pages'] ?? null; if ($value === null) { - $missingFields[] = 'name'; - goto after_name; + $missingFields[] = 'has_pages'; + goto after_has_pages; } - $properties['name'] = $value; + $properties['has_pages'] = $value; - after_name: + after_has_pages: - $value = $payload['node_id'] ?? null; + $value = $payload['has_projects'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $missingFields[] = 'has_projects'; + goto after_has_projects; } - $properties['node_id'] = $value; + $properties['has_projects'] = $value; - after_node_id: + after_has_projects: - $value = $payload['notifications_url'] ?? null; + $value = $payload['has_wiki'] ?? null; if ($value === null) { - $missingFields[] = 'notifications_url'; - goto after_notifications_url; + $missingFields[] = 'has_wiki'; + goto after_has_wiki; } - $properties['notifications_url'] = $value; + $properties['has_wiki'] = $value; - after_notifications_url: + after_has_wiki: - $value = $payload['open_issues'] ?? null; + $value = $payload['has_discussions'] ?? null; if ($value === null) { - $missingFields[] = 'open_issues'; - goto after_open_issues; + $missingFields[] = 'has_discussions'; + goto after_has_discussions; } - $properties['open_issues'] = $value; + $properties['has_discussions'] = $value; - after_open_issues: + after_has_discussions: - $value = $payload['open_issues_count'] ?? null; + $value = $payload['homepage'] ?? null; if ($value === null) { - $missingFields[] = 'open_issues_count'; - goto after_open_issues_count; + $missingFields[] = 'homepage'; + goto after_homepage; } - $properties['open_issues_count'] = $value; + $properties['homepage'] = $value; - after_open_issues_count: + after_homepage: - $value = $payload['organization'] ?? null; + $value = $payload['hooks_url'] ?? null; if ($value === null) { - $missingFields[] = 'organization'; - goto after_organization; + $missingFields[] = 'hooks_url'; + goto after_hooks_url; } - $properties['organization'] = $value; + $properties['hooks_url'] = $value; - after_organization: + after_hooks_url: - $value = $payload['owner'] ?? null; + $value = $payload['html_url'] ?? null; if ($value === null) { - $missingFields[] = 'owner'; - goto after_owner; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'owner'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'html_url'; + goto after_html_url; } - $properties['owner'] = $value; + $properties['html_url'] = $value; - after_owner: + after_html_url: - $value = $payload['permissions'] ?? null; + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'permissions'; - goto after_permissions; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'permissions'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionTransferred⚡️Changes⚡️NewRepository⚡️Permissions($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'id'; + goto after_id; } - $properties['permissions'] = $value; + $properties['id'] = $value; - after_permissions: + after_id: - $value = $payload['private'] ?? null; + $value = $payload['is_template'] ?? null; if ($value === null) { - $missingFields[] = 'private'; - goto after_private; + $missingFields[] = 'is_template'; + goto after_is_template; } - $properties['private'] = $value; + $properties['is_template'] = $value; - after_private: + after_is_template: - $value = $payload['public'] ?? null; + $value = $payload['issue_comment_url'] ?? null; if ($value === null) { - $missingFields[] = 'public'; - goto after_public; + $missingFields[] = 'issue_comment_url'; + goto after_issue_comment_url; } - $properties['public'] = $value; + $properties['issue_comment_url'] = $value; - after_public: + after_issue_comment_url: - $value = $payload['pulls_url'] ?? null; + $value = $payload['issue_events_url'] ?? null; if ($value === null) { - $missingFields[] = 'pulls_url'; - goto after_pulls_url; + $missingFields[] = 'issue_events_url'; + goto after_issue_events_url; } - $properties['pulls_url'] = $value; + $properties['issue_events_url'] = $value; - after_pulls_url: + after_issue_events_url: - $value = $payload['pushed_at'] ?? null; + $value = $payload['issues_url'] ?? null; if ($value === null) { - $properties['pushed_at'] = null; - goto after_pushed_at; + $missingFields[] = 'issues_url'; + goto after_issues_url; } - $properties['pushed_at'] = $value; + $properties['issues_url'] = $value; - after_pushed_at: + after_issues_url: - $value = $payload['releases_url'] ?? null; + $value = $payload['keys_url'] ?? null; if ($value === null) { - $missingFields[] = 'releases_url'; - goto after_releases_url; + $missingFields[] = 'keys_url'; + goto after_keys_url; } - $properties['releases_url'] = $value; + $properties['keys_url'] = $value; - after_releases_url: + after_keys_url: - $value = $payload['role_name'] ?? null; + $value = $payload['labels_url'] ?? null; if ($value === null) { - $missingFields[] = 'role_name'; - goto after_role_name; + $missingFields[] = 'labels_url'; + goto after_labels_url; } - $properties['role_name'] = $value; + $properties['labels_url'] = $value; - after_role_name: + after_labels_url: - $value = $payload['size'] ?? null; + $value = $payload['language'] ?? null; if ($value === null) { - $missingFields[] = 'size'; - goto after_size; + $missingFields[] = 'language'; + goto after_language; } - $properties['size'] = $value; + $properties['language'] = $value; - after_size: + after_language: - $value = $payload['squash_merge_commit_message'] ?? null; + $value = $payload['languages_url'] ?? null; if ($value === null) { - $missingFields[] = 'squash_merge_commit_message'; - goto after_squash_merge_commit_message; + $missingFields[] = 'languages_url'; + goto after_languages_url; } - $properties['squash_merge_commit_message'] = $value; + $properties['languages_url'] = $value; - after_squash_merge_commit_message: + after_languages_url: - $value = $payload['squash_merge_commit_title'] ?? null; + $value = $payload['license'] ?? null; if ($value === null) { - $missingFields[] = 'squash_merge_commit_title'; - goto after_squash_merge_commit_title; + $missingFields[] = 'license'; + goto after_license; } - $properties['squash_merge_commit_title'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'license'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionTransferred⚡️Changes⚡️NewRepository⚡️License($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['license'] = $value; - after_squash_merge_commit_title: + after_license: - $value = $payload['ssh_url'] ?? null; + $value = $payload['master_branch'] ?? null; if ($value === null) { - $missingFields[] = 'ssh_url'; - goto after_ssh_url; + $missingFields[] = 'master_branch'; + goto after_master_branch; } - $properties['ssh_url'] = $value; + $properties['master_branch'] = $value; - after_ssh_url: + after_master_branch: - $value = $payload['stargazers'] ?? null; + $value = $payload['merge_commit_message'] ?? null; if ($value === null) { - $missingFields[] = 'stargazers'; - goto after_stargazers; + $missingFields[] = 'merge_commit_message'; + goto after_merge_commit_message; } - $properties['stargazers'] = $value; + $properties['merge_commit_message'] = $value; - after_stargazers: + after_merge_commit_message: - $value = $payload['stargazers_count'] ?? null; + $value = $payload['merge_commit_title'] ?? null; if ($value === null) { - $missingFields[] = 'stargazers_count'; - goto after_stargazers_count; + $missingFields[] = 'merge_commit_title'; + goto after_merge_commit_title; } - $properties['stargazers_count'] = $value; + $properties['merge_commit_title'] = $value; - after_stargazers_count: + after_merge_commit_title: - $value = $payload['stargazers_url'] ?? null; + $value = $payload['merges_url'] ?? null; if ($value === null) { - $missingFields[] = 'stargazers_url'; - goto after_stargazers_url; + $missingFields[] = 'merges_url'; + goto after_merges_url; } - $properties['stargazers_url'] = $value; + $properties['merges_url'] = $value; - after_stargazers_url: + after_merges_url: - $value = $payload['statuses_url'] ?? null; + $value = $payload['milestones_url'] ?? null; if ($value === null) { - $missingFields[] = 'statuses_url'; - goto after_statuses_url; + $missingFields[] = 'milestones_url'; + goto after_milestones_url; } - $properties['statuses_url'] = $value; + $properties['milestones_url'] = $value; - after_statuses_url: + after_milestones_url: - $value = $payload['subscribers_url'] ?? null; + $value = $payload['mirror_url'] ?? null; if ($value === null) { - $missingFields[] = 'subscribers_url'; - goto after_subscribers_url; + $missingFields[] = 'mirror_url'; + goto after_mirror_url; } - $properties['subscribers_url'] = $value; + $properties['mirror_url'] = $value; - after_subscribers_url: + after_mirror_url: - $value = $payload['subscription_url'] ?? null; + $value = $payload['name'] ?? null; if ($value === null) { - $missingFields[] = 'subscription_url'; - goto after_subscription_url; + $missingFields[] = 'name'; + goto after_name; } - $properties['subscription_url'] = $value; + $properties['name'] = $value; - after_subscription_url: + after_name: - $value = $payload['svn_url'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $missingFields[] = 'svn_url'; - goto after_svn_url; + $missingFields[] = 'node_id'; + goto after_node_id; } - $properties['svn_url'] = $value; + $properties['node_id'] = $value; - after_svn_url: + after_node_id: - $value = $payload['tags_url'] ?? null; + $value = $payload['notifications_url'] ?? null; if ($value === null) { - $missingFields[] = 'tags_url'; - goto after_tags_url; + $missingFields[] = 'notifications_url'; + goto after_notifications_url; } - $properties['tags_url'] = $value; + $properties['notifications_url'] = $value; - after_tags_url: + after_notifications_url: - $value = $payload['teams_url'] ?? null; + $value = $payload['open_issues'] ?? null; if ($value === null) { - $missingFields[] = 'teams_url'; - goto after_teams_url; + $missingFields[] = 'open_issues'; + goto after_open_issues; } - $properties['teams_url'] = $value; + $properties['open_issues'] = $value; - after_teams_url: + after_open_issues: - $value = $payload['topics'] ?? null; + $value = $payload['open_issues_count'] ?? null; if ($value === null) { - $missingFields[] = 'topics'; - goto after_topics; + $missingFields[] = 'open_issues_count'; + goto after_open_issues_count; } - $properties['topics'] = $value; + $properties['open_issues_count'] = $value; - after_topics: + after_open_issues_count: - $value = $payload['trees_url'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'trees_url'; - goto after_trees_url; + $missingFields[] = 'organization'; + goto after_organization; } - $properties['trees_url'] = $value; + $properties['organization'] = $value; - after_trees_url: + after_organization: - $value = $payload['updated_at'] ?? null; + $value = $payload['owner'] ?? null; if ($value === null) { - $missingFields[] = 'updated_at'; - goto after_updated_at; + $missingFields[] = 'owner'; + goto after_owner; } - $properties['updated_at'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'owner'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['owner'] = $value; - after_updated_at: + after_owner: - $value = $payload['url'] ?? null; + $value = $payload['permissions'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $missingFields[] = 'permissions'; + goto after_permissions; } - $properties['url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'permissions'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionTransferred⚡️Changes⚡️NewRepository⚡️Permissions($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['permissions'] = $value; - after_url: + after_permissions: - $value = $payload['use_squash_pr_title_as_default'] ?? null; + $value = $payload['private'] ?? null; if ($value === null) { - $missingFields[] = 'use_squash_pr_title_as_default'; - goto after_use_squash_pr_title_as_default; + $missingFields[] = 'private'; + goto after_private; } - $properties['use_squash_pr_title_as_default'] = $value; + $properties['private'] = $value; - after_use_squash_pr_title_as_default: + after_private: - $value = $payload['visibility'] ?? null; + $value = $payload['public'] ?? null; if ($value === null) { - $missingFields[] = 'visibility'; - goto after_visibility; + $missingFields[] = 'public'; + goto after_public; } - $properties['visibility'] = $value; + $properties['public'] = $value; - after_visibility: + after_public: - $value = $payload['watchers'] ?? null; + $value = $payload['pulls_url'] ?? null; if ($value === null) { - $missingFields[] = 'watchers'; - goto after_watchers; + $missingFields[] = 'pulls_url'; + goto after_pulls_url; } - $properties['watchers'] = $value; + $properties['pulls_url'] = $value; - after_watchers: + after_pulls_url: - $value = $payload['watchers_count'] ?? null; + $value = $payload['pushed_at'] ?? null; if ($value === null) { - $missingFields[] = 'watchers_count'; - goto after_watchers_count; + $properties['pushed_at'] = null; + goto after_pushed_at; } - $properties['watchers_count'] = $value; + $properties['pushed_at'] = $value; - after_watchers_count: + after_pushed_at: - $value = $payload['web_commit_signoff_required'] ?? null; + $value = $payload['releases_url'] ?? null; if ($value === null) { - $missingFields[] = 'web_commit_signoff_required'; - goto after_web_commit_signoff_required; + $missingFields[] = 'releases_url'; + goto after_releases_url; } - $properties['web_commit_signoff_required'] = $value; + $properties['releases_url'] = $value; - after_web_commit_signoff_required: - - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Head\Repo', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Head\Repo::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Head\Repo(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Head\Repo', $exception, stack: $this->hydrationStack); - } - } + after_releases_url: - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner(array $payload): \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['login'] ?? null; + $value = $payload['role_name'] ?? null; if ($value === null) { - $missingFields[] = 'login'; - goto after_login; + $missingFields[] = 'role_name'; + goto after_role_name; } - $properties['login'] = $value; + $properties['role_name'] = $value; - after_login: + after_role_name: - $value = $payload['id'] ?? null; + $value = $payload['size'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'size'; + goto after_size; } - $properties['id'] = $value; + $properties['size'] = $value; - after_id: + after_size: - $value = $payload['node_id'] ?? null; + $value = $payload['squash_merge_commit_message'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $missingFields[] = 'squash_merge_commit_message'; + goto after_squash_merge_commit_message; } - $properties['node_id'] = $value; + $properties['squash_merge_commit_message'] = $value; - after_node_id: + after_squash_merge_commit_message: - $value = $payload['avatar_url'] ?? null; + $value = $payload['squash_merge_commit_title'] ?? null; if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatar_url; + $missingFields[] = 'squash_merge_commit_title'; + goto after_squash_merge_commit_title; } - $properties['avatar_url'] = $value; + $properties['squash_merge_commit_title'] = $value; - after_avatar_url: + after_squash_merge_commit_title: - $value = $payload['gravatar_id'] ?? null; + $value = $payload['ssh_url'] ?? null; if ($value === null) { - $missingFields[] = 'gravatar_id'; - goto after_gravatar_id; + $missingFields[] = 'ssh_url'; + goto after_ssh_url; } - $properties['gravatar_id'] = $value; + $properties['ssh_url'] = $value; - after_gravatar_id: + after_ssh_url: - $value = $payload['url'] ?? null; + $value = $payload['stargazers'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $missingFields[] = 'stargazers'; + goto after_stargazers; } - $properties['url'] = $value; + $properties['stargazers'] = $value; - after_url: + after_stargazers: - $value = $payload['html_url'] ?? null; + $value = $payload['stargazers_count'] ?? null; if ($value === null) { - $missingFields[] = 'html_url'; - goto after_html_url; + $missingFields[] = 'stargazers_count'; + goto after_stargazers_count; } - $properties['html_url'] = $value; + $properties['stargazers_count'] = $value; - after_html_url: + after_stargazers_count: - $value = $payload['followers_url'] ?? null; + $value = $payload['stargazers_url'] ?? null; if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followers_url; + $missingFields[] = 'stargazers_url'; + goto after_stargazers_url; } - $properties['followers_url'] = $value; + $properties['stargazers_url'] = $value; - after_followers_url: + after_stargazers_url: - $value = $payload['following_url'] ?? null; + $value = $payload['statuses_url'] ?? null; if ($value === null) { - $missingFields[] = 'following_url'; - goto after_following_url; + $missingFields[] = 'statuses_url'; + goto after_statuses_url; } - $properties['following_url'] = $value; + $properties['statuses_url'] = $value; - after_following_url: + after_statuses_url: - $value = $payload['gists_url'] ?? null; + $value = $payload['subscribers_url'] ?? null; if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gists_url; + $missingFields[] = 'subscribers_url'; + goto after_subscribers_url; } - $properties['gists_url'] = $value; + $properties['subscribers_url'] = $value; - after_gists_url: + after_subscribers_url: - $value = $payload['starred_url'] ?? null; + $value = $payload['subscription_url'] ?? null; if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starred_url; + $missingFields[] = 'subscription_url'; + goto after_subscription_url; } - $properties['starred_url'] = $value; + $properties['subscription_url'] = $value; - after_starred_url: + after_subscription_url: - $value = $payload['subscriptions_url'] ?? null; + $value = $payload['svn_url'] ?? null; if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptions_url; + $missingFields[] = 'svn_url'; + goto after_svn_url; } - $properties['subscriptions_url'] = $value; + $properties['svn_url'] = $value; - after_subscriptions_url: + after_svn_url: - $value = $payload['organizations_url'] ?? null; + $value = $payload['tags_url'] ?? null; if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizations_url; + $missingFields[] = 'tags_url'; + goto after_tags_url; } - $properties['organizations_url'] = $value; + $properties['tags_url'] = $value; - after_organizations_url: + after_tags_url: - $value = $payload['repos_url'] ?? null; + $value = $payload['teams_url'] ?? null; - if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_repos_url; + if ($value === null) { + $missingFields[] = 'teams_url'; + goto after_teams_url; } - $properties['repos_url'] = $value; + $properties['teams_url'] = $value; - after_repos_url: + after_teams_url: - $value = $payload['events_url'] ?? null; + $value = $payload['topics'] ?? null; if ($value === null) { - $missingFields[] = 'events_url'; - goto after_events_url; + $missingFields[] = 'topics'; + goto after_topics; } - $properties['events_url'] = $value; + $properties['topics'] = $value; - after_events_url: + after_topics: - $value = $payload['received_events_url'] ?? null; + $value = $payload['trees_url'] ?? null; if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_received_events_url; + $missingFields[] = 'trees_url'; + goto after_trees_url; } - $properties['received_events_url'] = $value; + $properties['trees_url'] = $value; - after_received_events_url: + after_trees_url: - $value = $payload['type'] ?? null; + $value = $payload['updated_at'] ?? null; if ($value === null) { - $missingFields[] = 'type'; - goto after_type; + $missingFields[] = 'updated_at'; + goto after_updated_at; } - $properties['type'] = $value; + $properties['updated_at'] = $value; - after_type: + after_updated_at: - $value = $payload['site_admin'] ?? null; + $value = $payload['url'] ?? null; if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_site_admin; + $missingFields[] = 'url'; + goto after_url; } - $properties['site_admin'] = $value; + $properties['url'] = $value; - after_site_admin: - - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner', $exception, stack: $this->hydrationStack); - } - } + after_url: - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Permissions(array $payload): \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['admin'] ?? null; + $value = $payload['use_squash_pr_title_as_default'] ?? null; if ($value === null) { - $missingFields[] = 'admin'; - goto after_admin; + $missingFields[] = 'use_squash_pr_title_as_default'; + goto after_use_squash_pr_title_as_default; } - $properties['admin'] = $value; + $properties['use_squash_pr_title_as_default'] = $value; - after_admin: + after_use_squash_pr_title_as_default: - $value = $payload['maintain'] ?? null; + $value = $payload['visibility'] ?? null; if ($value === null) { - $missingFields[] = 'maintain'; - goto after_maintain; + $missingFields[] = 'visibility'; + goto after_visibility; } - $properties['maintain'] = $value; + $properties['visibility'] = $value; - after_maintain: + after_visibility: - $value = $payload['push'] ?? null; + $value = $payload['watchers'] ?? null; if ($value === null) { - $missingFields[] = 'push'; - goto after_push; + $missingFields[] = 'watchers'; + goto after_watchers; } - $properties['push'] = $value; + $properties['watchers'] = $value; - after_push: + after_watchers: - $value = $payload['triage'] ?? null; + $value = $payload['watchers_count'] ?? null; if ($value === null) { - $missingFields[] = 'triage'; - goto after_triage; + $missingFields[] = 'watchers_count'; + goto after_watchers_count; } - $properties['triage'] = $value; + $properties['watchers_count'] = $value; - after_triage: + after_watchers_count: - $value = $payload['pull'] ?? null; + $value = $payload['web_commit_signoff_required'] ?? null; if ($value === null) { - $missingFields[] = 'pull'; - goto after_pull; + $missingFields[] = 'web_commit_signoff_required'; + goto after_web_commit_signoff_required; } - $properties['pull'] = $value; + $properties['web_commit_signoff_required'] = $value; - after_pull: + after_web_commit_signoff_required: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Head\Repo', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Head\Repo::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Head\Repo(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Head\Repo', $exception, stack: $this->hydrationStack); } } @@ -8013,6 +11071,8 @@ public function serializeObject(object $object): mixed 'DateTime' => $this->serializeValueDateTime($object), 'DateTimeImmutable' => $this->serializeValueDateTimeImmutable($object), 'DateTimeInterface' => $this->serializeValueDateTimeInterface($object), + 'ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentCreated' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewCommentCreated($object), + 'ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentDeleted' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewCommentDeleted($object), 'ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentEdited' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewCommentEdited($object), default => throw new \LogicException('No serialization defined for $className'), }; @@ -8087,6 +11147,142 @@ private function serializeValueDateTimeInterface(mixed $value): mixed } + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewCommentCreated(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentCreated); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $comment = $object->comment; + + if ($comment === null) { + goto after_comment; + } + $comment = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewCommentCreated⚡️Comment($comment); + after_comment: $result['comment'] = $comment; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $pull_request = $object->pull_request; + + if ($pull_request === null) { + goto after_pull_request; + } + $pull_request = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewCommentCreated⚡️PullRequest($pull_request); + after_pull_request: $result['pull_request'] = $pull_request; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewCommentDeleted(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentDeleted); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $comment = $object->comment; + + if ($comment === null) { + goto after_comment; + } + $comment = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewCommentDeleted⚡️Comment($comment); + after_comment: $result['comment'] = $comment; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $pull_request = $object->pull_request; + + if ($pull_request === null) { + goto after_pull_request; + } + $pull_request = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewCommentDeleted⚡️PullRequest($pull_request); + after_pull_request: $result['pull_request'] = $pull_request; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewCommentEdited(mixed $object): mixed { \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookPullRequestReviewCommentEdited); diff --git a/src/Hydrator/WebHook/PullRequestReviewThread.php b/src/Hydrator/WebHook/PullRequestReviewThread.php index d106409068..1332963e7d 100644 --- a/src/Hydrator/WebHook/PullRequestReviewThread.php +++ b/src/Hydrator/WebHook/PullRequestReviewThread.php @@ -23,23 +23,30 @@ public function __construct() {} public function hydrateObject(string $className, array $payload): object { return match($className) { - 'ApiClients\Client\Github\Schema\WebhookPullRequestReviewThreadUnresolved' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewThreadUnresolved($payload), + 'ApiClients\Client\Github\Schema\WebhookPullRequestReviewThreadResolved' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewThreadResolved($payload), + 'ApiClients\Client\Github\Schema\WebhookPullRequestReviewThreadUnresolved' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewThreadUnresolved($payload), 'ApiClients\Client\Github\Schema\Enterprise' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($payload), 'ApiClients\Client\Github\Schema\SimpleInstallation' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($payload), 'ApiClients\Client\Github\Schema\OrganizationSimple' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($payload), - 'ApiClients\Client\Github\Schema\WebhookPullRequestReviewThreadUnresolved\PullRequest' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewThreadUnresolved⚡️PullRequest($payload), + 'ApiClients\Client\Github\Schema\WebhookPullRequestReviewThreadResolved\PullRequest' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewThreadResolved⚡️PullRequest($payload), 'ApiClients\Client\Github\Schema\Repository' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($payload), 'ApiClients\Client\Github\Schema\SimpleUser' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($payload), + 'ApiClients\Client\Github\Schema\WebhookPullRequestReviewThreadResolved\Thread' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewThreadResolved⚡️Thread($payload), + 'ApiClients\Client\Github\Schema\WebhookPullRequestReviewThreadUnresolved\PullRequest' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewThreadUnresolved⚡️PullRequest($payload), 'ApiClients\Client\Github\Schema\WebhookPullRequestReviewThreadUnresolved\Thread' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewThreadUnresolved⚡️Thread($payload), 'ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Links' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links($payload), 'ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($payload), - 'ApiClients\Client\Github\Schema\WebhookPullRequestReviewThreadUnresolved\PullRequest\AutoMerge' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewThreadUnresolved⚡️PullRequest⚡️AutoMerge($payload), + 'ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\AutoMerge' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️AutoMerge($payload), 'ApiClients\Client\Github\Schema\WebhookPullRequestReviewThreadResolved\PullRequest\Base' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewThreadResolved⚡️PullRequest⚡️Base($payload), + 'ApiClients\Client\Github\Schema\WebhookPullRequestReviewThreadResolved\PullRequest\Head' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewThreadResolved⚡️PullRequest⚡️Head($payload), 'ApiClients\Client\Github\Schema\WebhookIssuesDeleted\Issue\Milestone' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesDeleted⚡️Issue⚡️Milestone($payload), + 'ApiClients\Client\Github\Schema\WebhookIssueCommentDeleted\Comment\User' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Comment⚡️User($payload), 'ApiClients\Client\Github\Schema\Repository\Permissions' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️Permissions($payload), 'ApiClients\Client\Github\Schema\Repository\TemplateRepository' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository($payload), + 'ApiClients\Client\Github\Schema\WebhookPullRequestReviewThreadUnresolved\PullRequest\AutoMerge' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewThreadUnresolved⚡️PullRequest⚡️AutoMerge($payload), 'ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Links\Comments' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links⚡️Comments($payload), 'ApiClients\Client\Github\Schema\WebhookDiscussionTransferred\Changes\NewRepository' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionTransferred⚡️Changes⚡️NewRepository($payload), + 'ApiClients\Client\Github\Schema\WebhookPullRequestReviewThreadResolved\PullRequest\Head\Repo' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewThreadResolved⚡️PullRequest⚡️Head⚡️Repo($payload), 'ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner($payload), 'ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Permissions($payload), 'ApiClients\Client\Github\Schema\WebhookDiscussionTransferred\Changes\NewRepository\License' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionTransferred⚡️Changes⚡️NewRepository⚡️License($payload), @@ -49,6 +56,179 @@ public function hydrateObject(string $className, array $payload): object } + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewThreadResolved(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestReviewThreadResolved + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; + + if ($value === null) { + $missingFields[] = 'action'; + goto after_action; + } + + $properties['action'] = $value; + + after_action: + + $value = $payload['enterprise'] ?? null; + + if ($value === null) { + $missingFields[] = 'enterprise'; + goto after_enterprise; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['enterprise'] = $value; + + after_enterprise: + + $value = $payload['installation'] ?? null; + + if ($value === null) { + $missingFields[] = 'installation'; + goto after_installation; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; + + after_installation: + + $value = $payload['organization'] ?? null; + + if ($value === null) { + $missingFields[] = 'organization'; + goto after_organization; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; + + after_organization: + + $value = $payload['pull_request'] ?? null; + + if ($value === null) { + $missingFields[] = 'pull_request'; + goto after_pull_request; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'pull_request'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewThreadResolved⚡️PullRequest($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['pull_request'] = $value; + + after_pull_request: + + $value = $payload['repository'] ?? null; + + if ($value === null) { + $missingFields[] = 'repository'; + goto after_repository; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repository'] = $value; + + after_repository: + + $value = $payload['sender'] ?? null; + + if ($value === null) { + $missingFields[] = 'sender'; + goto after_sender; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; + + after_sender: + + $value = $payload['thread'] ?? null; + + if ($value === null) { + $missingFields[] = 'thread'; + goto after_thread; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'thread'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewThreadResolved⚡️Thread($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['thread'] = $value; + + after_thread: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewThreadResolved', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestReviewThreadResolved::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookPullRequestReviewThreadResolved(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewThreadResolved', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewThreadUnresolved(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestReviewThreadUnresolved { $properties = []; @@ -552,7 +732,7 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Orga } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewThreadUnresolved⚡️PullRequest(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestReviewThreadUnresolved\PullRequest + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewThreadResolved⚡️PullRequest(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestReviewThreadResolved\PullRequest { $properties = []; $missingFields = []; @@ -641,7 +821,7 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'auto_merge'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewThreadUnresolved⚡️PullRequest⚡️AutoMerge($value); + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️AutoMerge($value); } finally { array_pop($this->hydrationStack); } @@ -758,7 +938,7 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'head'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewThreadResolved⚡️PullRequest⚡️Base($value); + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewThreadResolved⚡️PullRequest⚡️Head($value); } finally { array_pop($this->hydrationStack); } @@ -1007,7 +1187,7 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'user'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Comment⚡️User($value); } finally { array_pop($this->hydrationStack); } @@ -1018,17 +1198,17 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh after_user: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewThreadUnresolved\PullRequest', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewThreadResolved\PullRequest', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestReviewThreadUnresolved\PullRequest::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestReviewThreadResolved\PullRequest::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\WebhookPullRequestReviewThreadUnresolved\PullRequest(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookPullRequestReviewThreadResolved\PullRequest(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewThreadUnresolved\PullRequest', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewThreadResolved\PullRequest', $exception, stack: $this->hydrationStack); } } @@ -2424,7 +2604,7 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Simp } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewThreadUnresolved⚡️Thread(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestReviewThreadUnresolved\Thread + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewThreadResolved⚡️Thread(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestReviewThreadResolved\Thread { $properties = []; $missingFields = []; @@ -2453,296 +2633,236 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh after_node_id: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewThreadUnresolved\Thread', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewThreadResolved\Thread', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestReviewThreadUnresolved\Thread::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestReviewThreadResolved\Thread::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\WebhookPullRequestReviewThreadUnresolved\Thread(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookPullRequestReviewThreadResolved\Thread(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewThreadUnresolved\Thread', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewThreadResolved\Thread', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Links + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewThreadUnresolved⚡️PullRequest(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestReviewThreadUnresolved\PullRequest { $properties = []; $missingFields = []; try { - $value = $payload['comments'] ?? null; + $value = $payload['_links'] ?? null; if ($value === null) { - $missingFields[] = 'comments'; - goto after_comments; + $missingFields[] = '_links'; + goto after__links; } if (is_array($value)) { try { - $this->hydrationStack[] = 'comments'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links⚡️Comments($value); + $this->hydrationStack[] = '_links'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links($value); } finally { array_pop($this->hydrationStack); } } - $properties['comments'] = $value; + $properties['_links'] = $value; - after_comments: + after__links: - $value = $payload['commits'] ?? null; + $value = $payload['active_lock_reason'] ?? null; if ($value === null) { - $missingFields[] = 'commits'; - goto after_commits; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'commits'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links⚡️Comments($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'active_lock_reason'; + goto after_active_lock_reason; } - $properties['commits'] = $value; + $properties['active_lock_reason'] = $value; - after_commits: + after_active_lock_reason: - $value = $payload['html'] ?? null; + $value = $payload['assignee'] ?? null; if ($value === null) { - $missingFields[] = 'html'; - goto after_html; + $missingFields[] = 'assignee'; + goto after_assignee; } if (is_array($value)) { try { - $this->hydrationStack[] = 'html'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links⚡️Comments($value); + $this->hydrationStack[] = 'assignee'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); } finally { array_pop($this->hydrationStack); } } - $properties['html'] = $value; + $properties['assignee'] = $value; - after_html: + after_assignee: - $value = $payload['issue'] ?? null; + $value = $payload['assignees'] ?? null; if ($value === null) { - $missingFields[] = 'issue'; - goto after_issue; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'issue'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links⚡️Comments($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'assignees'; + goto after_assignees; } - $properties['issue'] = $value; + $properties['assignees'] = $value; - after_issue: + after_assignees: - $value = $payload['review_comment'] ?? null; + $value = $payload['author_association'] ?? null; if ($value === null) { - $missingFields[] = 'review_comment'; - goto after_review_comment; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'review_comment'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links⚡️Comments($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'author_association'; + goto after_author_association; } - $properties['review_comment'] = $value; + $properties['author_association'] = $value; - after_review_comment: + after_author_association: - $value = $payload['review_comments'] ?? null; + $value = $payload['auto_merge'] ?? null; if ($value === null) { - $missingFields[] = 'review_comments'; - goto after_review_comments; + $missingFields[] = 'auto_merge'; + goto after_auto_merge; } if (is_array($value)) { try { - $this->hydrationStack[] = 'review_comments'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links⚡️Comments($value); + $this->hydrationStack[] = 'auto_merge'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewThreadUnresolved⚡️PullRequest⚡️AutoMerge($value); } finally { array_pop($this->hydrationStack); } } - $properties['review_comments'] = $value; + $properties['auto_merge'] = $value; - after_review_comments: + after_auto_merge: - $value = $payload['self'] ?? null; + $value = $payload['base'] ?? null; if ($value === null) { - $missingFields[] = 'self'; - goto after_self; + $missingFields[] = 'base'; + goto after_base; } if (is_array($value)) { try { - $this->hydrationStack[] = 'self'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links⚡️Comments($value); + $this->hydrationStack[] = 'base'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewThreadResolved⚡️PullRequest⚡️Base($value); } finally { array_pop($this->hydrationStack); } } - $properties['self'] = $value; + $properties['base'] = $value; - after_self: + after_base: - $value = $payload['statuses'] ?? null; + $value = $payload['body'] ?? null; if ($value === null) { - $missingFields[] = 'statuses'; - goto after_statuses; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'statuses'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links⚡️Comments($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'body'; + goto after_body; } - $properties['statuses'] = $value; + $properties['body'] = $value; - after_statuses: - - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Links', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Links::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Links(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Links', $exception, stack: $this->hydrationStack); - } - } + after_body: - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy(array $payload): \ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['avatar_url'] ?? null; + $value = $payload['closed_at'] ?? null; if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatar_url; + $missingFields[] = 'closed_at'; + goto after_closed_at; } - $properties['avatar_url'] = $value; + $properties['closed_at'] = $value; - after_avatar_url: + after_closed_at: - $value = $payload['deleted'] ?? null; + $value = $payload['comments_url'] ?? null; if ($value === null) { - $missingFields[] = 'deleted'; - goto after_deleted; + $missingFields[] = 'comments_url'; + goto after_comments_url; } - $properties['deleted'] = $value; + $properties['comments_url'] = $value; - after_deleted: + after_comments_url: - $value = $payload['email'] ?? null; + $value = $payload['commits_url'] ?? null; if ($value === null) { - $missingFields[] = 'email'; - goto after_email; + $missingFields[] = 'commits_url'; + goto after_commits_url; } - $properties['email'] = $value; + $properties['commits_url'] = $value; - after_email: + after_commits_url: - $value = $payload['events_url'] ?? null; + $value = $payload['created_at'] ?? null; if ($value === null) { - $missingFields[] = 'events_url'; - goto after_events_url; + $missingFields[] = 'created_at'; + goto after_created_at; } - $properties['events_url'] = $value; + $properties['created_at'] = $value; - after_events_url: + after_created_at: - $value = $payload['followers_url'] ?? null; + $value = $payload['diff_url'] ?? null; if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followers_url; + $missingFields[] = 'diff_url'; + goto after_diff_url; } - $properties['followers_url'] = $value; + $properties['diff_url'] = $value; - after_followers_url: + after_diff_url: - $value = $payload['following_url'] ?? null; + $value = $payload['draft'] ?? null; if ($value === null) { - $missingFields[] = 'following_url'; - goto after_following_url; + $missingFields[] = 'draft'; + goto after_draft; } - $properties['following_url'] = $value; + $properties['draft'] = $value; - after_following_url: + after_draft: - $value = $payload['gists_url'] ?? null; + $value = $payload['head'] ?? null; if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gists_url; + $missingFields[] = 'head'; + goto after_head; } - $properties['gists_url'] = $value; - - after_gists_url: - - $value = $payload['gravatar_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'gravatar_id'; - goto after_gravatar_id; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'head'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewThreadResolved⚡️PullRequest⚡️Base($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['gravatar_id'] = $value; + $properties['head'] = $value; - after_gravatar_id: + after_head: $value = $payload['html_url'] ?? null; @@ -2766,340 +2886,2314 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Disc after_id: - $value = $payload['login'] ?? null; + $value = $payload['issue_url'] ?? null; if ($value === null) { - $missingFields[] = 'login'; - goto after_login; + $missingFields[] = 'issue_url'; + goto after_issue_url; } - $properties['login'] = $value; + $properties['issue_url'] = $value; - after_login: + after_issue_url: - $value = $payload['name'] ?? null; + $value = $payload['labels'] ?? null; if ($value === null) { - $missingFields[] = 'name'; - goto after_name; + $missingFields[] = 'labels'; + goto after_labels; } - $properties['name'] = $value; + $properties['labels'] = $value; - after_name: + after_labels: - $value = $payload['node_id'] ?? null; + $value = $payload['locked'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $missingFields[] = 'locked'; + goto after_locked; } - $properties['node_id'] = $value; + $properties['locked'] = $value; - after_node_id: + after_locked: - $value = $payload['organizations_url'] ?? null; + $value = $payload['merge_commit_sha'] ?? null; if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizations_url; + $missingFields[] = 'merge_commit_sha'; + goto after_merge_commit_sha; } - $properties['organizations_url'] = $value; + $properties['merge_commit_sha'] = $value; - after_organizations_url: + after_merge_commit_sha: - $value = $payload['received_events_url'] ?? null; + $value = $payload['merged_at'] ?? null; if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_received_events_url; + $missingFields[] = 'merged_at'; + goto after_merged_at; } - $properties['received_events_url'] = $value; + $properties['merged_at'] = $value; - after_received_events_url: + after_merged_at: - $value = $payload['repos_url'] ?? null; + $value = $payload['milestone'] ?? null; if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_repos_url; + $missingFields[] = 'milestone'; + goto after_milestone; } - $properties['repos_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'milestone'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesDeleted⚡️Issue⚡️Milestone($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['milestone'] = $value; - after_repos_url: + after_milestone: - $value = $payload['site_admin'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_site_admin; + $missingFields[] = 'node_id'; + goto after_node_id; } - $properties['site_admin'] = $value; + $properties['node_id'] = $value; - after_site_admin: + after_node_id: - $value = $payload['starred_url'] ?? null; + $value = $payload['number'] ?? null; if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starred_url; + $missingFields[] = 'number'; + goto after_number; } - $properties['starred_url'] = $value; + $properties['number'] = $value; - after_starred_url: + after_number: - $value = $payload['subscriptions_url'] ?? null; + $value = $payload['patch_url'] ?? null; if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptions_url; + $missingFields[] = 'patch_url'; + goto after_patch_url; } - $properties['subscriptions_url'] = $value; + $properties['patch_url'] = $value; - after_subscriptions_url: + after_patch_url: - $value = $payload['type'] ?? null; + $value = $payload['requested_reviewers'] ?? null; if ($value === null) { - $missingFields[] = 'type'; - goto after_type; + $missingFields[] = 'requested_reviewers'; + goto after_requested_reviewers; } - $properties['type'] = $value; + $properties['requested_reviewers'] = $value; - after_type: + after_requested_reviewers: - $value = $payload['url'] ?? null; + $value = $payload['requested_teams'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $missingFields[] = 'requested_teams'; + goto after_requested_teams; } - $properties['url'] = $value; + $properties['requested_teams'] = $value; - after_url: + after_requested_teams: - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy', $exception, stack: $this->hydrationStack); - } - } + $value = $payload['review_comment_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'review_comment_url'; + goto after_review_comment_url; + } - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewThreadUnresolved⚡️PullRequest⚡️AutoMerge(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestReviewThreadUnresolved\PullRequest\AutoMerge - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['commit_message'] ?? null; + $properties['review_comment_url'] = $value; + + after_review_comment_url: + + $value = $payload['review_comments_url'] ?? null; if ($value === null) { - $missingFields[] = 'commit_message'; - goto after_commit_message; + $missingFields[] = 'review_comments_url'; + goto after_review_comments_url; } - $properties['commit_message'] = $value; + $properties['review_comments_url'] = $value; - after_commit_message: + after_review_comments_url: - $value = $payload['commit_title'] ?? null; + $value = $payload['state'] ?? null; if ($value === null) { - $missingFields[] = 'commit_title'; - goto after_commit_title; + $missingFields[] = 'state'; + goto after_state; } - $properties['commit_title'] = $value; + $properties['state'] = $value; - after_commit_title: + after_state: - $value = $payload['enabled_by'] ?? null; + $value = $payload['statuses_url'] ?? null; if ($value === null) { - $missingFields[] = 'enabled_by'; - goto after_enabled_by; + $missingFields[] = 'statuses_url'; + goto after_statuses_url; } - if (is_array($value)) { - try { - $this->hydrationStack[] = 'enabled_by'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); - } finally { - array_pop($this->hydrationStack); - } + $properties['statuses_url'] = $value; + + after_statuses_url: + + $value = $payload['title'] ?? null; + + if ($value === null) { + $missingFields[] = 'title'; + goto after_title; } - $properties['enabled_by'] = $value; + $properties['title'] = $value; - after_enabled_by: + after_title: - $value = $payload['merge_method'] ?? null; + $value = $payload['updated_at'] ?? null; if ($value === null) { - $missingFields[] = 'merge_method'; - goto after_merge_method; + $missingFields[] = 'updated_at'; + goto after_updated_at; } - $properties['merge_method'] = $value; + $properties['updated_at'] = $value; - after_merge_method: + after_updated_at: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['user'] ?? null; + + if ($value === null) { + $missingFields[] = 'user'; + goto after_user; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'user'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['user'] = $value; + + after_user: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewThreadUnresolved\PullRequest\AutoMerge', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewThreadUnresolved\PullRequest', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestReviewThreadUnresolved\PullRequest\AutoMerge::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestReviewThreadUnresolved\PullRequest::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\WebhookPullRequestReviewThreadUnresolved\PullRequest\AutoMerge(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookPullRequestReviewThreadUnresolved\PullRequest(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewThreadUnresolved\PullRequest\AutoMerge', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewThreadUnresolved\PullRequest', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewThreadResolved⚡️PullRequest⚡️Base(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestReviewThreadResolved\PullRequest\Base + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewThreadUnresolved⚡️Thread(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestReviewThreadUnresolved\Thread { $properties = []; $missingFields = []; try { - $value = $payload['label'] ?? null; + $value = $payload['comments'] ?? null; if ($value === null) { - $missingFields[] = 'label'; - goto after_label; + $missingFields[] = 'comments'; + goto after_comments; } - $properties['label'] = $value; + $properties['comments'] = $value; - after_label: + after_comments: - $value = $payload['ref'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $missingFields[] = 'ref'; - goto after_ref; + $missingFields[] = 'node_id'; + goto after_node_id; } - $properties['ref'] = $value; + $properties['node_id'] = $value; - after_ref: + after_node_id: - $value = $payload['repo'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewThreadUnresolved\Thread', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestReviewThreadUnresolved\Thread::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookPullRequestReviewThreadUnresolved\Thread(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewThreadUnresolved\Thread', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Links + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['comments'] ?? null; if ($value === null) { - $missingFields[] = 'repo'; - goto after_repo; + $missingFields[] = 'comments'; + goto after_comments; } if (is_array($value)) { try { - $this->hydrationStack[] = 'repo'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionTransferred⚡️Changes⚡️NewRepository($value); + $this->hydrationStack[] = 'comments'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links⚡️Comments($value); } finally { array_pop($this->hydrationStack); } } - $properties['repo'] = $value; + $properties['comments'] = $value; - after_repo: + after_comments: - $value = $payload['sha'] ?? null; + $value = $payload['commits'] ?? null; if ($value === null) { - $missingFields[] = 'sha'; - goto after_sha; + $missingFields[] = 'commits'; + goto after_commits; } - $properties['sha'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'commits'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links⚡️Comments($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['commits'] = $value; - after_sha: + after_commits: - $value = $payload['user'] ?? null; + $value = $payload['html'] ?? null; if ($value === null) { - $missingFields[] = 'user'; - goto after_user; + $missingFields[] = 'html'; + goto after_html; } if (is_array($value)) { try { - $this->hydrationStack[] = 'user'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + $this->hydrationStack[] = 'html'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links⚡️Comments($value); } finally { array_pop($this->hydrationStack); } } - $properties['user'] = $value; + $properties['html'] = $value; - after_user: + after_html: - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewThreadResolved\PullRequest\Base', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestReviewThreadResolved\PullRequest\Base::class, $missingFields, stack: $this->hydrationStack); - } + $value = $payload['issue'] ?? null; + + if ($value === null) { + $missingFields[] = 'issue'; + goto after_issue; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'issue'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links⚡️Comments($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['issue'] = $value; + + after_issue: + + $value = $payload['review_comment'] ?? null; + + if ($value === null) { + $missingFields[] = 'review_comment'; + goto after_review_comment; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'review_comment'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links⚡️Comments($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['review_comment'] = $value; + + after_review_comment: + + $value = $payload['review_comments'] ?? null; + + if ($value === null) { + $missingFields[] = 'review_comments'; + goto after_review_comments; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'review_comments'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links⚡️Comments($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['review_comments'] = $value; + + after_review_comments: + + $value = $payload['self'] ?? null; + + if ($value === null) { + $missingFields[] = 'self'; + goto after_self; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'self'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links⚡️Comments($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['self'] = $value; + + after_self: + + $value = $payload['statuses'] ?? null; + + if ($value === null) { + $missingFields[] = 'statuses'; + goto after_statuses; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'statuses'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links⚡️Comments($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['statuses'] = $value; + + after_statuses: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Links', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Links::class, $missingFields, stack: $this->hydrationStack); + } try { - return new \ApiClients\Client\Github\Schema\WebhookPullRequestReviewThreadResolved\PullRequest\Base(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Links(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewThreadResolved\PullRequest\Base', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Links', $exception, stack: $this->hydrationStack); } } - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesDeleted⚡️Issue⚡️Milestone(array $payload): \ApiClients\Client\Github\Schema\WebhookIssuesDeleted\Issue\Milestone - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['closed_at'] ?? null; + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy(array $payload): \ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['avatar_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'avatar_url'; + goto after_avatar_url; + } + + $properties['avatar_url'] = $value; + + after_avatar_url: + + $value = $payload['deleted'] ?? null; + + if ($value === null) { + $missingFields[] = 'deleted'; + goto after_deleted; + } + + $properties['deleted'] = $value; + + after_deleted: + + $value = $payload['email'] ?? null; + + if ($value === null) { + $missingFields[] = 'email'; + goto after_email; + } + + $properties['email'] = $value; + + after_email: + + $value = $payload['events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'events_url'; + goto after_events_url; + } + + $properties['events_url'] = $value; + + after_events_url: + + $value = $payload['followers_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'followers_url'; + goto after_followers_url; + } + + $properties['followers_url'] = $value; + + after_followers_url: + + $value = $payload['following_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'following_url'; + goto after_following_url; + } + + $properties['following_url'] = $value; + + after_following_url: + + $value = $payload['gists_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'gists_url'; + goto after_gists_url; + } + + $properties['gists_url'] = $value; + + after_gists_url: + + $value = $payload['gravatar_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'gravatar_id'; + goto after_gravatar_id; + } + + $properties['gravatar_id'] = $value; + + after_gravatar_id: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } + + $properties['html_url'] = $value; + + after_html_url: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['login'] ?? null; + + if ($value === null) { + $missingFields[] = 'login'; + goto after_login; + } + + $properties['login'] = $value; + + after_login: + + $value = $payload['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['organizations_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'organizations_url'; + goto after_organizations_url; + } + + $properties['organizations_url'] = $value; + + after_organizations_url: + + $value = $payload['received_events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'received_events_url'; + goto after_received_events_url; + } + + $properties['received_events_url'] = $value; + + after_received_events_url: + + $value = $payload['repos_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'repos_url'; + goto after_repos_url; + } + + $properties['repos_url'] = $value; + + after_repos_url: + + $value = $payload['site_admin'] ?? null; + + if ($value === null) { + $missingFields[] = 'site_admin'; + goto after_site_admin; + } + + $properties['site_admin'] = $value; + + after_site_admin: + + $value = $payload['starred_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'starred_url'; + goto after_starred_url; + } + + $properties['starred_url'] = $value; + + after_starred_url: + + $value = $payload['subscriptions_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscriptions_url'; + goto after_subscriptions_url; + } + + $properties['subscriptions_url'] = $value; + + after_subscriptions_url: + + $value = $payload['type'] ?? null; + + if ($value === null) { + $missingFields[] = 'type'; + goto after_type; + } + + $properties['type'] = $value; + + after_type: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️AutoMerge(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\AutoMerge + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['commit_message'] ?? null; + + if ($value === null) { + $missingFields[] = 'commit_message'; + goto after_commit_message; + } + + $properties['commit_message'] = $value; + + after_commit_message: + + $value = $payload['commit_title'] ?? null; + + if ($value === null) { + $missingFields[] = 'commit_title'; + goto after_commit_title; + } + + $properties['commit_title'] = $value; + + after_commit_title: + + $value = $payload['enabled_by'] ?? null; + + if ($value === null) { + $missingFields[] = 'enabled_by'; + goto after_enabled_by; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enabled_by'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['enabled_by'] = $value; + + after_enabled_by: + + $value = $payload['merge_method'] ?? null; + + if ($value === null) { + $missingFields[] = 'merge_method'; + goto after_merge_method; + } + + $properties['merge_method'] = $value; + + after_merge_method: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\AutoMerge', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\AutoMerge::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\AutoMerge(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\AutoMerge', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewThreadResolved⚡️PullRequest⚡️Base(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestReviewThreadResolved\PullRequest\Base + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['label'] ?? null; + + if ($value === null) { + $missingFields[] = 'label'; + goto after_label; + } + + $properties['label'] = $value; + + after_label: + + $value = $payload['ref'] ?? null; + + if ($value === null) { + $missingFields[] = 'ref'; + goto after_ref; + } + + $properties['ref'] = $value; + + after_ref: + + $value = $payload['repo'] ?? null; + + if ($value === null) { + $missingFields[] = 'repo'; + goto after_repo; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repo'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionTransferred⚡️Changes⚡️NewRepository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repo'] = $value; + + after_repo: + + $value = $payload['sha'] ?? null; + + if ($value === null) { + $missingFields[] = 'sha'; + goto after_sha; + } + + $properties['sha'] = $value; + + after_sha: + + $value = $payload['user'] ?? null; + + if ($value === null) { + $missingFields[] = 'user'; + goto after_user; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'user'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['user'] = $value; + + after_user: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewThreadResolved\PullRequest\Base', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestReviewThreadResolved\PullRequest\Base::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookPullRequestReviewThreadResolved\PullRequest\Base(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewThreadResolved\PullRequest\Base', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewThreadResolved⚡️PullRequest⚡️Head(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestReviewThreadResolved\PullRequest\Head + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['label'] ?? null; + + if ($value === null) { + $missingFields[] = 'label'; + goto after_label; + } + + $properties['label'] = $value; + + after_label: + + $value = $payload['ref'] ?? null; + + if ($value === null) { + $missingFields[] = 'ref'; + goto after_ref; + } + + $properties['ref'] = $value; + + after_ref: + + $value = $payload['repo'] ?? null; + + if ($value === null) { + $missingFields[] = 'repo'; + goto after_repo; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repo'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewThreadResolved⚡️PullRequest⚡️Head⚡️Repo($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repo'] = $value; + + after_repo: + + $value = $payload['sha'] ?? null; + + if ($value === null) { + $missingFields[] = 'sha'; + goto after_sha; + } + + $properties['sha'] = $value; + + after_sha: + + $value = $payload['user'] ?? null; + + if ($value === null) { + $missingFields[] = 'user'; + goto after_user; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'user'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['user'] = $value; + + after_user: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewThreadResolved\PullRequest\Head', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestReviewThreadResolved\PullRequest\Head::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookPullRequestReviewThreadResolved\PullRequest\Head(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewThreadResolved\PullRequest\Head', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesDeleted⚡️Issue⚡️Milestone(array $payload): \ApiClients\Client\Github\Schema\WebhookIssuesDeleted\Issue\Milestone + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['closed_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'closed_at'; + goto after_closed_at; + } + + $properties['closed_at'] = $value; + + after_closed_at: + + $value = $payload['closed_issues'] ?? null; + + if ($value === null) { + $missingFields[] = 'closed_issues'; + goto after_closed_issues; + } + + $properties['closed_issues'] = $value; + + after_closed_issues: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'created_at'; + goto after_created_at; + } + + $properties['created_at'] = $value; + + after_created_at: + + $value = $payload['creator'] ?? null; + + if ($value === null) { + $missingFields[] = 'creator'; + goto after_creator; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'creator'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['creator'] = $value; + + after_creator: + + $value = $payload['description'] ?? null; + + if ($value === null) { + $missingFields[] = 'description'; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['due_on'] ?? null; + + if ($value === null) { + $missingFields[] = 'due_on'; + goto after_due_on; + } + + $properties['due_on'] = $value; + + after_due_on: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } + + $properties['html_url'] = $value; + + after_html_url: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['labels_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'labels_url'; + goto after_labels_url; + } + + $properties['labels_url'] = $value; + + after_labels_url: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['number'] ?? null; + + if ($value === null) { + $missingFields[] = 'number'; + goto after_number; + } + + $properties['number'] = $value; + + after_number: + + $value = $payload['open_issues'] ?? null; + + if ($value === null) { + $missingFields[] = 'open_issues'; + goto after_open_issues; + } + + $properties['open_issues'] = $value; + + after_open_issues: + + $value = $payload['state'] ?? null; + + if ($value === null) { + $missingFields[] = 'state'; + goto after_state; + } + + $properties['state'] = $value; + + after_state: + + $value = $payload['title'] ?? null; + + if ($value === null) { + $missingFields[] = 'title'; + goto after_title; + } + + $properties['title'] = $value; + + after_title: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'updated_at'; + goto after_updated_at; + } + + $properties['updated_at'] = $value; + + after_updated_at: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesDeleted\Issue\Milestone', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookIssuesDeleted\Issue\Milestone::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookIssuesDeleted\Issue\Milestone(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesDeleted\Issue\Milestone', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Comment⚡️User(array $payload): \ApiClients\Client\Github\Schema\WebhookIssueCommentDeleted\Comment\User + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['avatar_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'avatar_url'; + goto after_avatar_url; + } + + $properties['avatar_url'] = $value; + + after_avatar_url: + + $value = $payload['deleted'] ?? null; + + if ($value === null) { + $missingFields[] = 'deleted'; + goto after_deleted; + } + + $properties['deleted'] = $value; + + after_deleted: + + $value = $payload['email'] ?? null; + + if ($value === null) { + $missingFields[] = 'email'; + goto after_email; + } + + $properties['email'] = $value; + + after_email: + + $value = $payload['events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'events_url'; + goto after_events_url; + } + + $properties['events_url'] = $value; + + after_events_url: + + $value = $payload['followers_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'followers_url'; + goto after_followers_url; + } + + $properties['followers_url'] = $value; + + after_followers_url: + + $value = $payload['following_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'following_url'; + goto after_following_url; + } + + $properties['following_url'] = $value; + + after_following_url: + + $value = $payload['gists_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'gists_url'; + goto after_gists_url; + } + + $properties['gists_url'] = $value; + + after_gists_url: + + $value = $payload['gravatar_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'gravatar_id'; + goto after_gravatar_id; + } + + $properties['gravatar_id'] = $value; + + after_gravatar_id: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } + + $properties['html_url'] = $value; + + after_html_url: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['login'] ?? null; + + if ($value === null) { + $missingFields[] = 'login'; + goto after_login; + } + + $properties['login'] = $value; + + after_login: + + $value = $payload['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['organizations_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'organizations_url'; + goto after_organizations_url; + } + + $properties['organizations_url'] = $value; + + after_organizations_url: + + $value = $payload['received_events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'received_events_url'; + goto after_received_events_url; + } + + $properties['received_events_url'] = $value; + + after_received_events_url: + + $value = $payload['repos_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'repos_url'; + goto after_repos_url; + } + + $properties['repos_url'] = $value; + + after_repos_url: + + $value = $payload['site_admin'] ?? null; + + if ($value === null) { + $missingFields[] = 'site_admin'; + goto after_site_admin; + } + + $properties['site_admin'] = $value; + + after_site_admin: + + $value = $payload['starred_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'starred_url'; + goto after_starred_url; + } + + $properties['starred_url'] = $value; + + after_starred_url: + + $value = $payload['subscriptions_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscriptions_url'; + goto after_subscriptions_url; + } + + $properties['subscriptions_url'] = $value; + + after_subscriptions_url: + + $value = $payload['type'] ?? null; + + if ($value === null) { + $missingFields[] = 'type'; + goto after_type; + } + + $properties['type'] = $value; + + after_type: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssueCommentDeleted\Comment\User', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookIssueCommentDeleted\Comment\User::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookIssueCommentDeleted\Comment\User(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssueCommentDeleted\Comment\User', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️Permissions(array $payload): \ApiClients\Client\Github\Schema\Repository\Permissions + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['admin'] ?? null; + + if ($value === null) { + $missingFields[] = 'admin'; + goto after_admin; + } + + $properties['admin'] = $value; + + after_admin: + + $value = $payload['pull'] ?? null; + + if ($value === null) { + $missingFields[] = 'pull'; + goto after_pull; + } + + $properties['pull'] = $value; + + after_pull: + + $value = $payload['triage'] ?? null; + + if ($value === null) { + $missingFields[] = 'triage'; + goto after_triage; + } + + $properties['triage'] = $value; + + after_triage: + + $value = $payload['push'] ?? null; + + if ($value === null) { + $missingFields[] = 'push'; + goto after_push; + } + + $properties['push'] = $value; + + after_push: + + $value = $payload['maintain'] ?? null; + + if ($value === null) { + $missingFields[] = 'maintain'; + goto after_maintain; + } + + $properties['maintain'] = $value; + + after_maintain: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\Permissions', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\Permissions::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\Repository\Permissions(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\Permissions', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository(array $payload): \ApiClients\Client\Github\Schema\Repository\TemplateRepository + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['full_name'] ?? null; + + if ($value === null) { + $missingFields[] = 'full_name'; + goto after_full_name; + } + + $properties['full_name'] = $value; + + after_full_name: + + $value = $payload['owner'] ?? null; + + if ($value === null) { + $missingFields[] = 'owner'; + goto after_owner; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'owner'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['owner'] = $value; + + after_owner: + + $value = $payload['private'] ?? null; + + if ($value === null) { + $missingFields[] = 'private'; + goto after_private; + } + + $properties['private'] = $value; + + after_private: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } + + $properties['html_url'] = $value; + + after_html_url: + + $value = $payload['description'] ?? null; + + if ($value === null) { + $missingFields[] = 'description'; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['fork'] ?? null; + + if ($value === null) { + $missingFields[] = 'fork'; + goto after_fork; + } + + $properties['fork'] = $value; + + after_fork: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['archive_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'archive_url'; + goto after_archive_url; + } + + $properties['archive_url'] = $value; + + after_archive_url: + + $value = $payload['assignees_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'assignees_url'; + goto after_assignees_url; + } + + $properties['assignees_url'] = $value; + + after_assignees_url: + + $value = $payload['blobs_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'blobs_url'; + goto after_blobs_url; + } + + $properties['blobs_url'] = $value; + + after_blobs_url: + + $value = $payload['branches_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'branches_url'; + goto after_branches_url; + } + + $properties['branches_url'] = $value; + + after_branches_url: + + $value = $payload['collaborators_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'collaborators_url'; + goto after_collaborators_url; + } + + $properties['collaborators_url'] = $value; + + after_collaborators_url: + + $value = $payload['comments_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'comments_url'; + goto after_comments_url; + } + + $properties['comments_url'] = $value; + + after_comments_url: + + $value = $payload['commits_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'commits_url'; + goto after_commits_url; + } + + $properties['commits_url'] = $value; + + after_commits_url: + + $value = $payload['compare_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'compare_url'; + goto after_compare_url; + } + + $properties['compare_url'] = $value; + + after_compare_url: + + $value = $payload['contents_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'contents_url'; + goto after_contents_url; + } + + $properties['contents_url'] = $value; + + after_contents_url: + + $value = $payload['contributors_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'contributors_url'; + goto after_contributors_url; + } + + $properties['contributors_url'] = $value; + + after_contributors_url: + + $value = $payload['deployments_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'deployments_url'; + goto after_deployments_url; + } + + $properties['deployments_url'] = $value; + + after_deployments_url: + + $value = $payload['downloads_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'downloads_url'; + goto after_downloads_url; + } + + $properties['downloads_url'] = $value; + + after_downloads_url: + + $value = $payload['events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'events_url'; + goto after_events_url; + } + + $properties['events_url'] = $value; + + after_events_url: + + $value = $payload['forks_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'forks_url'; + goto after_forks_url; + } + + $properties['forks_url'] = $value; + + after_forks_url: + + $value = $payload['git_commits_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_commits_url'; + goto after_git_commits_url; + } + + $properties['git_commits_url'] = $value; + + after_git_commits_url: + + $value = $payload['git_refs_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_refs_url'; + goto after_git_refs_url; + } + + $properties['git_refs_url'] = $value; + + after_git_refs_url: + + $value = $payload['git_tags_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_tags_url'; + goto after_git_tags_url; + } + + $properties['git_tags_url'] = $value; + + after_git_tags_url: + + $value = $payload['git_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_url'; + goto after_git_url; + } + + $properties['git_url'] = $value; + + after_git_url: + + $value = $payload['issue_comment_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issue_comment_url'; + goto after_issue_comment_url; + } + + $properties['issue_comment_url'] = $value; + + after_issue_comment_url: + + $value = $payload['issue_events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issue_events_url'; + goto after_issue_events_url; + } + + $properties['issue_events_url'] = $value; + + after_issue_events_url: + + $value = $payload['issues_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issues_url'; + goto after_issues_url; + } + + $properties['issues_url'] = $value; + + after_issues_url: + + $value = $payload['keys_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'keys_url'; + goto after_keys_url; + } + + $properties['keys_url'] = $value; + + after_keys_url: + + $value = $payload['labels_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'labels_url'; + goto after_labels_url; + } + + $properties['labels_url'] = $value; + + after_labels_url: + + $value = $payload['languages_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'languages_url'; + goto after_languages_url; + } + + $properties['languages_url'] = $value; + + after_languages_url: + + $value = $payload['merges_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'merges_url'; + goto after_merges_url; + } + + $properties['merges_url'] = $value; + + after_merges_url: + + $value = $payload['milestones_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'milestones_url'; + goto after_milestones_url; + } + + $properties['milestones_url'] = $value; + + after_milestones_url: + + $value = $payload['notifications_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'notifications_url'; + goto after_notifications_url; + } + + $properties['notifications_url'] = $value; + + after_notifications_url: + + $value = $payload['pulls_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'pulls_url'; + goto after_pulls_url; + } + + $properties['pulls_url'] = $value; + + after_pulls_url: + + $value = $payload['releases_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'releases_url'; + goto after_releases_url; + } + + $properties['releases_url'] = $value; + + after_releases_url: + + $value = $payload['ssh_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'ssh_url'; + goto after_ssh_url; + } + + $properties['ssh_url'] = $value; + + after_ssh_url: + + $value = $payload['stargazers_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'stargazers_url'; + goto after_stargazers_url; + } + + $properties['stargazers_url'] = $value; + + after_stargazers_url: + + $value = $payload['statuses_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'statuses_url'; + goto after_statuses_url; + } + + $properties['statuses_url'] = $value; + + after_statuses_url: + + $value = $payload['subscribers_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscribers_url'; + goto after_subscribers_url; + } + + $properties['subscribers_url'] = $value; + + after_subscribers_url: + + $value = $payload['subscription_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscription_url'; + goto after_subscription_url; + } + + $properties['subscription_url'] = $value; + + after_subscription_url: + + $value = $payload['tags_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'tags_url'; + goto after_tags_url; + } + + $properties['tags_url'] = $value; + + after_tags_url: + + $value = $payload['teams_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'teams_url'; + goto after_teams_url; + } + + $properties['teams_url'] = $value; + + after_teams_url: + + $value = $payload['trees_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'trees_url'; + goto after_trees_url; + } + + $properties['trees_url'] = $value; + + after_trees_url: + + $value = $payload['clone_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'clone_url'; + goto after_clone_url; + } + + $properties['clone_url'] = $value; + + after_clone_url: + + $value = $payload['mirror_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'mirror_url'; + goto after_mirror_url; + } + + $properties['mirror_url'] = $value; + + after_mirror_url: + + $value = $payload['hooks_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'hooks_url'; + goto after_hooks_url; + } + + $properties['hooks_url'] = $value; + + after_hooks_url: + + $value = $payload['svn_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'svn_url'; + goto after_svn_url; + } + + $properties['svn_url'] = $value; + + after_svn_url: + + $value = $payload['homepage'] ?? null; + + if ($value === null) { + $missingFields[] = 'homepage'; + goto after_homepage; + } + + $properties['homepage'] = $value; + + after_homepage: + + $value = $payload['language'] ?? null; + + if ($value === null) { + $missingFields[] = 'language'; + goto after_language; + } + + $properties['language'] = $value; + + after_language: + + $value = $payload['forks_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'forks_count'; + goto after_forks_count; + } + + $properties['forks_count'] = $value; + + after_forks_count: + + $value = $payload['stargazers_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'stargazers_count'; + goto after_stargazers_count; + } + + $properties['stargazers_count'] = $value; + + after_stargazers_count: + + $value = $payload['watchers_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'watchers_count'; + goto after_watchers_count; + } + + $properties['watchers_count'] = $value; + + after_watchers_count: + + $value = $payload['size'] ?? null; + + if ($value === null) { + $missingFields[] = 'size'; + goto after_size; + } + + $properties['size'] = $value; + + after_size: + + $value = $payload['default_branch'] ?? null; + + if ($value === null) { + $missingFields[] = 'default_branch'; + goto after_default_branch; + } + + $properties['default_branch'] = $value; + + after_default_branch: + + $value = $payload['open_issues_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'open_issues_count'; + goto after_open_issues_count; + } + + $properties['open_issues_count'] = $value; + + after_open_issues_count: + + $value = $payload['is_template'] ?? null; + + if ($value === null) { + $missingFields[] = 'is_template'; + goto after_is_template; + } + + $properties['is_template'] = $value; + + after_is_template: + + $value = $payload['topics'] ?? null; + + if ($value === null) { + $missingFields[] = 'topics'; + goto after_topics; + } + + $properties['topics'] = $value; + + after_topics: + + $value = $payload['has_issues'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_issues'; + goto after_has_issues; + } + + $properties['has_issues'] = $value; + + after_has_issues: + + $value = $payload['has_projects'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_projects'; + goto after_has_projects; + } + + $properties['has_projects'] = $value; + + after_has_projects: + + $value = $payload['has_wiki'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_wiki'; + goto after_has_wiki; + } + + $properties['has_wiki'] = $value; + + after_has_wiki: + + $value = $payload['has_pages'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_pages'; + goto after_has_pages; + } + + $properties['has_pages'] = $value; + + after_has_pages: + + $value = $payload['has_downloads'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_downloads'; + goto after_has_downloads; + } + + $properties['has_downloads'] = $value; + + after_has_downloads: + + $value = $payload['archived'] ?? null; + + if ($value === null) { + $missingFields[] = 'archived'; + goto after_archived; + } + + $properties['archived'] = $value; + + after_archived: + + $value = $payload['disabled'] ?? null; + + if ($value === null) { + $missingFields[] = 'disabled'; + goto after_disabled; + } + + $properties['disabled'] = $value; + + after_disabled: + + $value = $payload['visibility'] ?? null; if ($value === null) { - $missingFields[] = 'closed_at'; - goto after_closed_at; + $missingFields[] = 'visibility'; + goto after_visibility; } - $properties['closed_at'] = $value; + $properties['visibility'] = $value; - after_closed_at: + after_visibility: - $value = $payload['closed_issues'] ?? null; + $value = $payload['pushed_at'] ?? null; if ($value === null) { - $missingFields[] = 'closed_issues'; - goto after_closed_issues; + $missingFields[] = 'pushed_at'; + goto after_pushed_at; } - $properties['closed_issues'] = $value; + $properties['pushed_at'] = $value; - after_closed_issues: + after_pushed_at: $value = $payload['created_at'] ?? null; @@ -3112,386 +5206,408 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh after_created_at: - $value = $payload['creator'] ?? null; + $value = $payload['updated_at'] ?? null; if ($value === null) { - $missingFields[] = 'creator'; - goto after_creator; + $missingFields[] = 'updated_at'; + goto after_updated_at; + } + + $properties['updated_at'] = $value; + + after_updated_at: + + $value = $payload['permissions'] ?? null; + + if ($value === null) { + $missingFields[] = 'permissions'; + goto after_permissions; } if (is_array($value)) { try { - $this->hydrationStack[] = 'creator'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + $this->hydrationStack[] = 'permissions'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Permissions($value); } finally { array_pop($this->hydrationStack); } } - $properties['creator'] = $value; + $properties['permissions'] = $value; - after_creator: + after_permissions: - $value = $payload['description'] ?? null; + $value = $payload['allow_rebase_merge'] ?? null; if ($value === null) { - $missingFields[] = 'description'; - goto after_description; + $missingFields[] = 'allow_rebase_merge'; + goto after_allow_rebase_merge; } - $properties['description'] = $value; + $properties['allow_rebase_merge'] = $value; - after_description: + after_allow_rebase_merge: - $value = $payload['due_on'] ?? null; + $value = $payload['temp_clone_token'] ?? null; if ($value === null) { - $missingFields[] = 'due_on'; - goto after_due_on; + $missingFields[] = 'temp_clone_token'; + goto after_temp_clone_token; } - $properties['due_on'] = $value; + $properties['temp_clone_token'] = $value; - after_due_on: + after_temp_clone_token: - $value = $payload['html_url'] ?? null; + $value = $payload['allow_squash_merge'] ?? null; if ($value === null) { - $missingFields[] = 'html_url'; - goto after_html_url; + $missingFields[] = 'allow_squash_merge'; + goto after_allow_squash_merge; } - $properties['html_url'] = $value; + $properties['allow_squash_merge'] = $value; - after_html_url: + after_allow_squash_merge: - $value = $payload['id'] ?? null; + $value = $payload['allow_auto_merge'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'allow_auto_merge'; + goto after_allow_auto_merge; } - $properties['id'] = $value; + $properties['allow_auto_merge'] = $value; - after_id: + after_allow_auto_merge: - $value = $payload['labels_url'] ?? null; + $value = $payload['delete_branch_on_merge'] ?? null; if ($value === null) { - $missingFields[] = 'labels_url'; - goto after_labels_url; + $missingFields[] = 'delete_branch_on_merge'; + goto after_delete_branch_on_merge; } - $properties['labels_url'] = $value; + $properties['delete_branch_on_merge'] = $value; - after_labels_url: + after_delete_branch_on_merge: - $value = $payload['node_id'] ?? null; + $value = $payload['allow_update_branch'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $missingFields[] = 'allow_update_branch'; + goto after_allow_update_branch; } - $properties['node_id'] = $value; + $properties['allow_update_branch'] = $value; - after_node_id: + after_allow_update_branch: - $value = $payload['number'] ?? null; + $value = $payload['use_squash_pr_title_as_default'] ?? null; if ($value === null) { - $missingFields[] = 'number'; - goto after_number; + $missingFields[] = 'use_squash_pr_title_as_default'; + goto after_use_squash_pr_title_as_default; } - $properties['number'] = $value; + $properties['use_squash_pr_title_as_default'] = $value; - after_number: + after_use_squash_pr_title_as_default: - $value = $payload['open_issues'] ?? null; + $value = $payload['squash_merge_commit_title'] ?? null; if ($value === null) { - $missingFields[] = 'open_issues'; - goto after_open_issues; + $missingFields[] = 'squash_merge_commit_title'; + goto after_squash_merge_commit_title; } - $properties['open_issues'] = $value; + $properties['squash_merge_commit_title'] = $value; - after_open_issues: + after_squash_merge_commit_title: - $value = $payload['state'] ?? null; + $value = $payload['squash_merge_commit_message'] ?? null; if ($value === null) { - $missingFields[] = 'state'; - goto after_state; + $missingFields[] = 'squash_merge_commit_message'; + goto after_squash_merge_commit_message; } - $properties['state'] = $value; + $properties['squash_merge_commit_message'] = $value; - after_state: + after_squash_merge_commit_message: - $value = $payload['title'] ?? null; + $value = $payload['merge_commit_title'] ?? null; if ($value === null) { - $missingFields[] = 'title'; - goto after_title; + $missingFields[] = 'merge_commit_title'; + goto after_merge_commit_title; } - $properties['title'] = $value; + $properties['merge_commit_title'] = $value; - after_title: + after_merge_commit_title: - $value = $payload['updated_at'] ?? null; + $value = $payload['merge_commit_message'] ?? null; if ($value === null) { - $missingFields[] = 'updated_at'; - goto after_updated_at; + $missingFields[] = 'merge_commit_message'; + goto after_merge_commit_message; } - $properties['updated_at'] = $value; + $properties['merge_commit_message'] = $value; - after_updated_at: + after_merge_commit_message: - $value = $payload['url'] ?? null; + $value = $payload['allow_merge_commit'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $missingFields[] = 'allow_merge_commit'; + goto after_allow_merge_commit; } - $properties['url'] = $value; + $properties['allow_merge_commit'] = $value; - after_url: + after_allow_merge_commit: + + $value = $payload['subscribers_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscribers_count'; + goto after_subscribers_count; + } + + $properties['subscribers_count'] = $value; + + after_subscribers_count: + + $value = $payload['network_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'network_count'; + goto after_network_count; + } + + $properties['network_count'] = $value; + + after_network_count: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesDeleted\Issue\Milestone', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookIssuesDeleted\Issue\Milestone::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\TemplateRepository::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\WebhookIssuesDeleted\Issue\Milestone(...$properties); + return new \ApiClients\Client\Github\Schema\Repository\TemplateRepository(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookIssuesDeleted\Issue\Milestone', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️Permissions(array $payload): \ApiClients\Client\Github\Schema\Repository\Permissions + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewThreadUnresolved⚡️PullRequest⚡️AutoMerge(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestReviewThreadUnresolved\PullRequest\AutoMerge { $properties = []; $missingFields = []; try { - $value = $payload['admin'] ?? null; + $value = $payload['commit_message'] ?? null; if ($value === null) { - $missingFields[] = 'admin'; - goto after_admin; + $missingFields[] = 'commit_message'; + goto after_commit_message; } - $properties['admin'] = $value; + $properties['commit_message'] = $value; - after_admin: + after_commit_message: - $value = $payload['pull'] ?? null; + $value = $payload['commit_title'] ?? null; if ($value === null) { - $missingFields[] = 'pull'; - goto after_pull; + $missingFields[] = 'commit_title'; + goto after_commit_title; } - $properties['pull'] = $value; + $properties['commit_title'] = $value; - after_pull: + after_commit_title: - $value = $payload['triage'] ?? null; + $value = $payload['enabled_by'] ?? null; if ($value === null) { - $missingFields[] = 'triage'; - goto after_triage; + $missingFields[] = 'enabled_by'; + goto after_enabled_by; } - $properties['triage'] = $value; - - after_triage: - - $value = $payload['push'] ?? null; - - if ($value === null) { - $missingFields[] = 'push'; - goto after_push; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enabled_by'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['push'] = $value; + $properties['enabled_by'] = $value; - after_push: + after_enabled_by: - $value = $payload['maintain'] ?? null; + $value = $payload['merge_method'] ?? null; if ($value === null) { - $missingFields[] = 'maintain'; - goto after_maintain; + $missingFields[] = 'merge_method'; + goto after_merge_method; } - $properties['maintain'] = $value; + $properties['merge_method'] = $value; - after_maintain: + after_merge_method: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\Permissions', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewThreadUnresolved\PullRequest\AutoMerge', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\Permissions::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestReviewThreadUnresolved\PullRequest\AutoMerge::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\Repository\Permissions(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookPullRequestReviewThreadUnresolved\PullRequest\AutoMerge(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\Permissions', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewThreadUnresolved\PullRequest\AutoMerge', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository(array $payload): \ApiClients\Client\Github\Schema\Repository\TemplateRepository + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links⚡️Comments(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Links\Comments { $properties = []; $missingFields = []; try { - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; - } - - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; + $value = $payload['href'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $missingFields[] = 'href'; + goto after_href; } - $properties['node_id'] = $value; - - after_node_id: - - $value = $payload['name'] ?? null; + $properties['href'] = $value; - if ($value === null) { - $missingFields[] = 'name'; - goto after_name; - } + after_href: - $properties['name'] = $value; - - after_name: + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Links\Comments', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Links\Comments::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Links\Comments(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Links\Comments', $exception, stack: $this->hydrationStack); + } + } - $value = $payload['full_name'] ?? null; + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionTransferred⚡️Changes⚡️NewRepository(array $payload): \ApiClients\Client\Github\Schema\WebhookDiscussionTransferred\Changes\NewRepository + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['allow_auto_merge'] ?? null; if ($value === null) { - $missingFields[] = 'full_name'; - goto after_full_name; + $missingFields[] = 'allow_auto_merge'; + goto after_allow_auto_merge; } - $properties['full_name'] = $value; + $properties['allow_auto_merge'] = $value; - after_full_name: + after_allow_auto_merge: - $value = $payload['owner'] ?? null; + $value = $payload['allow_forking'] ?? null; if ($value === null) { - $missingFields[] = 'owner'; - goto after_owner; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'owner'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'allow_forking'; + goto after_allow_forking; } - $properties['owner'] = $value; + $properties['allow_forking'] = $value; - after_owner: + after_allow_forking: - $value = $payload['private'] ?? null; + $value = $payload['allow_merge_commit'] ?? null; if ($value === null) { - $missingFields[] = 'private'; - goto after_private; + $missingFields[] = 'allow_merge_commit'; + goto after_allow_merge_commit; } - $properties['private'] = $value; + $properties['allow_merge_commit'] = $value; - after_private: + after_allow_merge_commit: - $value = $payload['html_url'] ?? null; + $value = $payload['allow_rebase_merge'] ?? null; if ($value === null) { - $missingFields[] = 'html_url'; - goto after_html_url; + $missingFields[] = 'allow_rebase_merge'; + goto after_allow_rebase_merge; } - $properties['html_url'] = $value; + $properties['allow_rebase_merge'] = $value; - after_html_url: + after_allow_rebase_merge: - $value = $payload['description'] ?? null; + $value = $payload['allow_squash_merge'] ?? null; if ($value === null) { - $missingFields[] = 'description'; - goto after_description; + $missingFields[] = 'allow_squash_merge'; + goto after_allow_squash_merge; } - $properties['description'] = $value; + $properties['allow_squash_merge'] = $value; - after_description: + after_allow_squash_merge: - $value = $payload['fork'] ?? null; + $value = $payload['allow_update_branch'] ?? null; if ($value === null) { - $missingFields[] = 'fork'; - goto after_fork; + $missingFields[] = 'allow_update_branch'; + goto after_allow_update_branch; } - $properties['fork'] = $value; + $properties['allow_update_branch'] = $value; - after_fork: + after_allow_update_branch: - $value = $payload['url'] ?? null; + $value = $payload['archive_url'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $missingFields[] = 'archive_url'; + goto after_archive_url; } - $properties['url'] = $value; + $properties['archive_url'] = $value; - after_url: + after_archive_url: - $value = $payload['archive_url'] ?? null; + $value = $payload['archived'] ?? null; if ($value === null) { - $missingFields[] = 'archive_url'; - goto after_archive_url; + $missingFields[] = 'archived'; + goto after_archived; } - $properties['archive_url'] = $value; + $properties['archived'] = $value; - after_archive_url: + after_archived: $value = $payload['assignees_url'] ?? null; @@ -3526,6 +5642,17 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repo after_branches_url: + $value = $payload['clone_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'clone_url'; + goto after_clone_url; + } + + $properties['clone_url'] = $value; + + after_clone_url: + $value = $payload['collaborators_url'] ?? null; if ($value === null) { @@ -3590,40 +5717,128 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repo $properties['contributors_url'] = $value; - after_contributors_url: + after_contributors_url: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $properties['created_at'] = null; + goto after_created_at; + } + + $properties['created_at'] = $value; + + after_created_at: + + $value = $payload['default_branch'] ?? null; + + if ($value === null) { + $missingFields[] = 'default_branch'; + goto after_default_branch; + } + + $properties['default_branch'] = $value; + + after_default_branch: + + $value = $payload['delete_branch_on_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'delete_branch_on_merge'; + goto after_delete_branch_on_merge; + } + + $properties['delete_branch_on_merge'] = $value; + + after_delete_branch_on_merge: + + $value = $payload['deployments_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'deployments_url'; + goto after_deployments_url; + } + + $properties['deployments_url'] = $value; + + after_deployments_url: + + $value = $payload['description'] ?? null; + + if ($value === null) { + $missingFields[] = 'description'; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['disabled'] ?? null; + + if ($value === null) { + $missingFields[] = 'disabled'; + goto after_disabled; + } + + $properties['disabled'] = $value; + + after_disabled: + + $value = $payload['downloads_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'downloads_url'; + goto after_downloads_url; + } + + $properties['downloads_url'] = $value; + + after_downloads_url: + + $value = $payload['events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'events_url'; + goto after_events_url; + } + + $properties['events_url'] = $value; + + after_events_url: - $value = $payload['deployments_url'] ?? null; + $value = $payload['fork'] ?? null; if ($value === null) { - $missingFields[] = 'deployments_url'; - goto after_deployments_url; + $missingFields[] = 'fork'; + goto after_fork; } - $properties['deployments_url'] = $value; + $properties['fork'] = $value; - after_deployments_url: + after_fork: - $value = $payload['downloads_url'] ?? null; + $value = $payload['forks'] ?? null; if ($value === null) { - $missingFields[] = 'downloads_url'; - goto after_downloads_url; + $missingFields[] = 'forks'; + goto after_forks; } - $properties['downloads_url'] = $value; + $properties['forks'] = $value; - after_downloads_url: + after_forks: - $value = $payload['events_url'] ?? null; + $value = $payload['forks_count'] ?? null; if ($value === null) { - $missingFields[] = 'events_url'; - goto after_events_url; + $missingFields[] = 'forks_count'; + goto after_forks_count; } - $properties['events_url'] = $value; + $properties['forks_count'] = $value; - after_events_url: + after_forks_count: $value = $payload['forks_url'] ?? null; @@ -3636,6 +5851,17 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repo after_forks_url: + $value = $payload['full_name'] ?? null; + + if ($value === null) { + $missingFields[] = 'full_name'; + goto after_full_name; + } + + $properties['full_name'] = $value; + + after_full_name: + $value = $payload['git_commits_url'] ?? null; if ($value === null) { @@ -3680,335 +5906,311 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repo after_git_url: - $value = $payload['issue_comment_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'issue_comment_url'; - goto after_issue_comment_url; - } - - $properties['issue_comment_url'] = $value; - - after_issue_comment_url: - - $value = $payload['issue_events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'issue_events_url'; - goto after_issue_events_url; - } - - $properties['issue_events_url'] = $value; - - after_issue_events_url: - - $value = $payload['issues_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'issues_url'; - goto after_issues_url; - } - - $properties['issues_url'] = $value; - - after_issues_url: - - $value = $payload['keys_url'] ?? null; + $value = $payload['has_downloads'] ?? null; if ($value === null) { - $missingFields[] = 'keys_url'; - goto after_keys_url; + $missingFields[] = 'has_downloads'; + goto after_has_downloads; } - $properties['keys_url'] = $value; + $properties['has_downloads'] = $value; - after_keys_url: + after_has_downloads: - $value = $payload['labels_url'] ?? null; + $value = $payload['has_issues'] ?? null; if ($value === null) { - $missingFields[] = 'labels_url'; - goto after_labels_url; + $missingFields[] = 'has_issues'; + goto after_has_issues; } - $properties['labels_url'] = $value; + $properties['has_issues'] = $value; - after_labels_url: + after_has_issues: - $value = $payload['languages_url'] ?? null; + $value = $payload['has_pages'] ?? null; if ($value === null) { - $missingFields[] = 'languages_url'; - goto after_languages_url; + $missingFields[] = 'has_pages'; + goto after_has_pages; } - $properties['languages_url'] = $value; + $properties['has_pages'] = $value; - after_languages_url: + after_has_pages: - $value = $payload['merges_url'] ?? null; + $value = $payload['has_projects'] ?? null; if ($value === null) { - $missingFields[] = 'merges_url'; - goto after_merges_url; + $missingFields[] = 'has_projects'; + goto after_has_projects; } - $properties['merges_url'] = $value; + $properties['has_projects'] = $value; - after_merges_url: + after_has_projects: - $value = $payload['milestones_url'] ?? null; + $value = $payload['has_wiki'] ?? null; if ($value === null) { - $missingFields[] = 'milestones_url'; - goto after_milestones_url; + $missingFields[] = 'has_wiki'; + goto after_has_wiki; } - $properties['milestones_url'] = $value; + $properties['has_wiki'] = $value; - after_milestones_url: + after_has_wiki: - $value = $payload['notifications_url'] ?? null; + $value = $payload['has_discussions'] ?? null; if ($value === null) { - $missingFields[] = 'notifications_url'; - goto after_notifications_url; + $missingFields[] = 'has_discussions'; + goto after_has_discussions; } - $properties['notifications_url'] = $value; + $properties['has_discussions'] = $value; - after_notifications_url: + after_has_discussions: - $value = $payload['pulls_url'] ?? null; + $value = $payload['homepage'] ?? null; if ($value === null) { - $missingFields[] = 'pulls_url'; - goto after_pulls_url; + $missingFields[] = 'homepage'; + goto after_homepage; } - $properties['pulls_url'] = $value; + $properties['homepage'] = $value; - after_pulls_url: + after_homepage: - $value = $payload['releases_url'] ?? null; + $value = $payload['hooks_url'] ?? null; if ($value === null) { - $missingFields[] = 'releases_url'; - goto after_releases_url; + $missingFields[] = 'hooks_url'; + goto after_hooks_url; } - $properties['releases_url'] = $value; + $properties['hooks_url'] = $value; - after_releases_url: + after_hooks_url: - $value = $payload['ssh_url'] ?? null; + $value = $payload['html_url'] ?? null; if ($value === null) { - $missingFields[] = 'ssh_url'; - goto after_ssh_url; + $missingFields[] = 'html_url'; + goto after_html_url; } - $properties['ssh_url'] = $value; + $properties['html_url'] = $value; - after_ssh_url: + after_html_url: - $value = $payload['stargazers_url'] ?? null; + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'stargazers_url'; - goto after_stargazers_url; + $missingFields[] = 'id'; + goto after_id; } - $properties['stargazers_url'] = $value; + $properties['id'] = $value; - after_stargazers_url: + after_id: - $value = $payload['statuses_url'] ?? null; + $value = $payload['is_template'] ?? null; if ($value === null) { - $missingFields[] = 'statuses_url'; - goto after_statuses_url; + $missingFields[] = 'is_template'; + goto after_is_template; } - $properties['statuses_url'] = $value; + $properties['is_template'] = $value; - after_statuses_url: + after_is_template: - $value = $payload['subscribers_url'] ?? null; + $value = $payload['issue_comment_url'] ?? null; if ($value === null) { - $missingFields[] = 'subscribers_url'; - goto after_subscribers_url; + $missingFields[] = 'issue_comment_url'; + goto after_issue_comment_url; } - $properties['subscribers_url'] = $value; + $properties['issue_comment_url'] = $value; - after_subscribers_url: + after_issue_comment_url: - $value = $payload['subscription_url'] ?? null; + $value = $payload['issue_events_url'] ?? null; if ($value === null) { - $missingFields[] = 'subscription_url'; - goto after_subscription_url; + $missingFields[] = 'issue_events_url'; + goto after_issue_events_url; } - $properties['subscription_url'] = $value; + $properties['issue_events_url'] = $value; - after_subscription_url: + after_issue_events_url: - $value = $payload['tags_url'] ?? null; + $value = $payload['issues_url'] ?? null; if ($value === null) { - $missingFields[] = 'tags_url'; - goto after_tags_url; + $missingFields[] = 'issues_url'; + goto after_issues_url; } - $properties['tags_url'] = $value; + $properties['issues_url'] = $value; - after_tags_url: + after_issues_url: - $value = $payload['teams_url'] ?? null; + $value = $payload['keys_url'] ?? null; if ($value === null) { - $missingFields[] = 'teams_url'; - goto after_teams_url; + $missingFields[] = 'keys_url'; + goto after_keys_url; } - $properties['teams_url'] = $value; + $properties['keys_url'] = $value; - after_teams_url: + after_keys_url: - $value = $payload['trees_url'] ?? null; + $value = $payload['labels_url'] ?? null; if ($value === null) { - $missingFields[] = 'trees_url'; - goto after_trees_url; + $missingFields[] = 'labels_url'; + goto after_labels_url; } - $properties['trees_url'] = $value; + $properties['labels_url'] = $value; - after_trees_url: + after_labels_url: - $value = $payload['clone_url'] ?? null; + $value = $payload['language'] ?? null; if ($value === null) { - $missingFields[] = 'clone_url'; - goto after_clone_url; + $missingFields[] = 'language'; + goto after_language; } - $properties['clone_url'] = $value; + $properties['language'] = $value; - after_clone_url: + after_language: - $value = $payload['mirror_url'] ?? null; + $value = $payload['languages_url'] ?? null; if ($value === null) { - $missingFields[] = 'mirror_url'; - goto after_mirror_url; + $missingFields[] = 'languages_url'; + goto after_languages_url; } - $properties['mirror_url'] = $value; + $properties['languages_url'] = $value; - after_mirror_url: + after_languages_url: - $value = $payload['hooks_url'] ?? null; + $value = $payload['license'] ?? null; if ($value === null) { - $missingFields[] = 'hooks_url'; - goto after_hooks_url; + $missingFields[] = 'license'; + goto after_license; } - $properties['hooks_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'license'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionTransferred⚡️Changes⚡️NewRepository⚡️License($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['license'] = $value; - after_hooks_url: + after_license: - $value = $payload['svn_url'] ?? null; + $value = $payload['master_branch'] ?? null; if ($value === null) { - $missingFields[] = 'svn_url'; - goto after_svn_url; + $missingFields[] = 'master_branch'; + goto after_master_branch; } - $properties['svn_url'] = $value; + $properties['master_branch'] = $value; - after_svn_url: + after_master_branch: - $value = $payload['homepage'] ?? null; + $value = $payload['merges_url'] ?? null; if ($value === null) { - $missingFields[] = 'homepage'; - goto after_homepage; + $missingFields[] = 'merges_url'; + goto after_merges_url; } - $properties['homepage'] = $value; + $properties['merges_url'] = $value; - after_homepage: + after_merges_url: - $value = $payload['language'] ?? null; + $value = $payload['milestones_url'] ?? null; if ($value === null) { - $missingFields[] = 'language'; - goto after_language; + $missingFields[] = 'milestones_url'; + goto after_milestones_url; } - $properties['language'] = $value; + $properties['milestones_url'] = $value; - after_language: + after_milestones_url: - $value = $payload['forks_count'] ?? null; + $value = $payload['mirror_url'] ?? null; if ($value === null) { - $missingFields[] = 'forks_count'; - goto after_forks_count; + $missingFields[] = 'mirror_url'; + goto after_mirror_url; } - $properties['forks_count'] = $value; + $properties['mirror_url'] = $value; - after_forks_count: + after_mirror_url: - $value = $payload['stargazers_count'] ?? null; + $value = $payload['name'] ?? null; if ($value === null) { - $missingFields[] = 'stargazers_count'; - goto after_stargazers_count; + $missingFields[] = 'name'; + goto after_name; } - $properties['stargazers_count'] = $value; + $properties['name'] = $value; - after_stargazers_count: + after_name: - $value = $payload['watchers_count'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $missingFields[] = 'watchers_count'; - goto after_watchers_count; + $missingFields[] = 'node_id'; + goto after_node_id; } - $properties['watchers_count'] = $value; + $properties['node_id'] = $value; - after_watchers_count: + after_node_id: - $value = $payload['size'] ?? null; + $value = $payload['notifications_url'] ?? null; if ($value === null) { - $missingFields[] = 'size'; - goto after_size; + $missingFields[] = 'notifications_url'; + goto after_notifications_url; } - $properties['size'] = $value; + $properties['notifications_url'] = $value; - after_size: + after_notifications_url: - $value = $payload['default_branch'] ?? null; + $value = $payload['open_issues'] ?? null; if ($value === null) { - $missingFields[] = 'default_branch'; - goto after_default_branch; + $missingFields[] = 'open_issues'; + goto after_open_issues; } - $properties['default_branch'] = $value; + $properties['open_issues'] = $value; - after_default_branch: + after_open_issues: $value = $payload['open_issues_count'] ?? null; @@ -4021,373 +6223,349 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repo after_open_issues_count: - $value = $payload['is_template'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'is_template'; - goto after_is_template; + $missingFields[] = 'organization'; + goto after_organization; } - $properties['is_template'] = $value; + $properties['organization'] = $value; - after_is_template: + after_organization: - $value = $payload['topics'] ?? null; + $value = $payload['owner'] ?? null; if ($value === null) { - $missingFields[] = 'topics'; - goto after_topics; + $missingFields[] = 'owner'; + goto after_owner; } - $properties['topics'] = $value; - - after_topics: - - $value = $payload['has_issues'] ?? null; - - if ($value === null) { - $missingFields[] = 'has_issues'; - goto after_has_issues; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'owner'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['has_issues'] = $value; + $properties['owner'] = $value; - after_has_issues: + after_owner: - $value = $payload['has_projects'] ?? null; + $value = $payload['permissions'] ?? null; if ($value === null) { - $missingFields[] = 'has_projects'; - goto after_has_projects; + $missingFields[] = 'permissions'; + goto after_permissions; } - $properties['has_projects'] = $value; - - after_has_projects: - - $value = $payload['has_wiki'] ?? null; - - if ($value === null) { - $missingFields[] = 'has_wiki'; - goto after_has_wiki; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'permissions'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionTransferred⚡️Changes⚡️NewRepository⚡️Permissions($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['has_wiki'] = $value; + $properties['permissions'] = $value; - after_has_wiki: + after_permissions: - $value = $payload['has_pages'] ?? null; + $value = $payload['private'] ?? null; if ($value === null) { - $missingFields[] = 'has_pages'; - goto after_has_pages; + $missingFields[] = 'private'; + goto after_private; } - $properties['has_pages'] = $value; + $properties['private'] = $value; - after_has_pages: + after_private: - $value = $payload['has_downloads'] ?? null; + $value = $payload['public'] ?? null; if ($value === null) { - $missingFields[] = 'has_downloads'; - goto after_has_downloads; + $missingFields[] = 'public'; + goto after_public; } - $properties['has_downloads'] = $value; + $properties['public'] = $value; - after_has_downloads: + after_public: - $value = $payload['archived'] ?? null; + $value = $payload['pulls_url'] ?? null; if ($value === null) { - $missingFields[] = 'archived'; - goto after_archived; + $missingFields[] = 'pulls_url'; + goto after_pulls_url; } - $properties['archived'] = $value; + $properties['pulls_url'] = $value; - after_archived: + after_pulls_url: - $value = $payload['disabled'] ?? null; + $value = $payload['pushed_at'] ?? null; if ($value === null) { - $missingFields[] = 'disabled'; - goto after_disabled; + $properties['pushed_at'] = null; + goto after_pushed_at; } - $properties['disabled'] = $value; + $properties['pushed_at'] = $value; - after_disabled: + after_pushed_at: - $value = $payload['visibility'] ?? null; + $value = $payload['releases_url'] ?? null; if ($value === null) { - $missingFields[] = 'visibility'; - goto after_visibility; + $missingFields[] = 'releases_url'; + goto after_releases_url; } - $properties['visibility'] = $value; + $properties['releases_url'] = $value; - after_visibility: + after_releases_url: - $value = $payload['pushed_at'] ?? null; + $value = $payload['role_name'] ?? null; if ($value === null) { - $missingFields[] = 'pushed_at'; - goto after_pushed_at; + $missingFields[] = 'role_name'; + goto after_role_name; } - $properties['pushed_at'] = $value; + $properties['role_name'] = $value; - after_pushed_at: + after_role_name: - $value = $payload['created_at'] ?? null; + $value = $payload['size'] ?? null; if ($value === null) { - $missingFields[] = 'created_at'; - goto after_created_at; + $missingFields[] = 'size'; + goto after_size; } - $properties['created_at'] = $value; + $properties['size'] = $value; - after_created_at: + after_size: - $value = $payload['updated_at'] ?? null; + $value = $payload['ssh_url'] ?? null; if ($value === null) { - $missingFields[] = 'updated_at'; - goto after_updated_at; + $missingFields[] = 'ssh_url'; + goto after_ssh_url; } - $properties['updated_at'] = $value; + $properties['ssh_url'] = $value; - after_updated_at: + after_ssh_url: - $value = $payload['permissions'] ?? null; + $value = $payload['stargazers'] ?? null; if ($value === null) { - $missingFields[] = 'permissions'; - goto after_permissions; + $missingFields[] = 'stargazers'; + goto after_stargazers; } - if (is_array($value)) { - try { - $this->hydrationStack[] = 'permissions'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Permissions($value); - } finally { - array_pop($this->hydrationStack); - } + $properties['stargazers'] = $value; + + after_stargazers: + + $value = $payload['stargazers_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'stargazers_count'; + goto after_stargazers_count; } - $properties['permissions'] = $value; + $properties['stargazers_count'] = $value; - after_permissions: + after_stargazers_count: - $value = $payload['allow_rebase_merge'] ?? null; + $value = $payload['stargazers_url'] ?? null; if ($value === null) { - $missingFields[] = 'allow_rebase_merge'; - goto after_allow_rebase_merge; + $missingFields[] = 'stargazers_url'; + goto after_stargazers_url; } - $properties['allow_rebase_merge'] = $value; + $properties['stargazers_url'] = $value; - after_allow_rebase_merge: + after_stargazers_url: - $value = $payload['temp_clone_token'] ?? null; + $value = $payload['statuses_url'] ?? null; if ($value === null) { - $missingFields[] = 'temp_clone_token'; - goto after_temp_clone_token; + $missingFields[] = 'statuses_url'; + goto after_statuses_url; } - $properties['temp_clone_token'] = $value; + $properties['statuses_url'] = $value; - after_temp_clone_token: + after_statuses_url: - $value = $payload['allow_squash_merge'] ?? null; + $value = $payload['subscribers_url'] ?? null; if ($value === null) { - $missingFields[] = 'allow_squash_merge'; - goto after_allow_squash_merge; + $missingFields[] = 'subscribers_url'; + goto after_subscribers_url; } - $properties['allow_squash_merge'] = $value; + $properties['subscribers_url'] = $value; - after_allow_squash_merge: + after_subscribers_url: - $value = $payload['allow_auto_merge'] ?? null; + $value = $payload['subscription_url'] ?? null; if ($value === null) { - $missingFields[] = 'allow_auto_merge'; - goto after_allow_auto_merge; + $missingFields[] = 'subscription_url'; + goto after_subscription_url; } - $properties['allow_auto_merge'] = $value; + $properties['subscription_url'] = $value; - after_allow_auto_merge: + after_subscription_url: - $value = $payload['delete_branch_on_merge'] ?? null; + $value = $payload['svn_url'] ?? null; if ($value === null) { - $missingFields[] = 'delete_branch_on_merge'; - goto after_delete_branch_on_merge; + $missingFields[] = 'svn_url'; + goto after_svn_url; } - $properties['delete_branch_on_merge'] = $value; + $properties['svn_url'] = $value; - after_delete_branch_on_merge: + after_svn_url: - $value = $payload['allow_update_branch'] ?? null; + $value = $payload['tags_url'] ?? null; if ($value === null) { - $missingFields[] = 'allow_update_branch'; - goto after_allow_update_branch; + $missingFields[] = 'tags_url'; + goto after_tags_url; } - $properties['allow_update_branch'] = $value; + $properties['tags_url'] = $value; - after_allow_update_branch: + after_tags_url: - $value = $payload['use_squash_pr_title_as_default'] ?? null; + $value = $payload['teams_url'] ?? null; if ($value === null) { - $missingFields[] = 'use_squash_pr_title_as_default'; - goto after_use_squash_pr_title_as_default; + $missingFields[] = 'teams_url'; + goto after_teams_url; } - $properties['use_squash_pr_title_as_default'] = $value; + $properties['teams_url'] = $value; - after_use_squash_pr_title_as_default: + after_teams_url: - $value = $payload['squash_merge_commit_title'] ?? null; + $value = $payload['topics'] ?? null; if ($value === null) { - $missingFields[] = 'squash_merge_commit_title'; - goto after_squash_merge_commit_title; + $missingFields[] = 'topics'; + goto after_topics; } - $properties['squash_merge_commit_title'] = $value; + $properties['topics'] = $value; - after_squash_merge_commit_title: + after_topics: - $value = $payload['squash_merge_commit_message'] ?? null; + $value = $payload['trees_url'] ?? null; if ($value === null) { - $missingFields[] = 'squash_merge_commit_message'; - goto after_squash_merge_commit_message; + $missingFields[] = 'trees_url'; + goto after_trees_url; } - $properties['squash_merge_commit_message'] = $value; + $properties['trees_url'] = $value; - after_squash_merge_commit_message: + after_trees_url: - $value = $payload['merge_commit_title'] ?? null; + $value = $payload['updated_at'] ?? null; if ($value === null) { - $missingFields[] = 'merge_commit_title'; - goto after_merge_commit_title; + $missingFields[] = 'updated_at'; + goto after_updated_at; } - $properties['merge_commit_title'] = $value; + $properties['updated_at'] = $value; - after_merge_commit_title: + after_updated_at: - $value = $payload['merge_commit_message'] ?? null; + $value = $payload['url'] ?? null; if ($value === null) { - $missingFields[] = 'merge_commit_message'; - goto after_merge_commit_message; + $missingFields[] = 'url'; + goto after_url; } - $properties['merge_commit_message'] = $value; + $properties['url'] = $value; - after_merge_commit_message: + after_url: - $value = $payload['allow_merge_commit'] ?? null; + $value = $payload['visibility'] ?? null; if ($value === null) { - $missingFields[] = 'allow_merge_commit'; - goto after_allow_merge_commit; + $missingFields[] = 'visibility'; + goto after_visibility; } - $properties['allow_merge_commit'] = $value; + $properties['visibility'] = $value; - after_allow_merge_commit: + after_visibility: - $value = $payload['subscribers_count'] ?? null; + $value = $payload['watchers'] ?? null; if ($value === null) { - $missingFields[] = 'subscribers_count'; - goto after_subscribers_count; + $missingFields[] = 'watchers'; + goto after_watchers; } - $properties['subscribers_count'] = $value; + $properties['watchers'] = $value; - after_subscribers_count: + after_watchers: - $value = $payload['network_count'] ?? null; + $value = $payload['watchers_count'] ?? null; if ($value === null) { - $missingFields[] = 'network_count'; - goto after_network_count; + $missingFields[] = 'watchers_count'; + goto after_watchers_count; } - $properties['network_count'] = $value; + $properties['watchers_count'] = $value; - after_network_count: - - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\TemplateRepository::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\Repository\TemplateRepository(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository', $exception, stack: $this->hydrationStack); - } - } + after_watchers_count: - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestAssigned⚡️PullRequest⚡️Links⚡️Comments(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Links\Comments - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['href'] ?? null; + $value = $payload['web_commit_signoff_required'] ?? null; if ($value === null) { - $missingFields[] = 'href'; - goto after_href; + $missingFields[] = 'web_commit_signoff_required'; + goto after_web_commit_signoff_required; } - $properties['href'] = $value; + $properties['web_commit_signoff_required'] = $value; - after_href: + after_web_commit_signoff_required: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Links\Comments', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDiscussionTransferred\Changes\NewRepository', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Links\Comments::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookDiscussionTransferred\Changes\NewRepository::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Links\Comments(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookDiscussionTransferred\Changes\NewRepository(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestAssigned\PullRequest\Links\Comments', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDiscussionTransferred\Changes\NewRepository', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionTransferred⚡️Changes⚡️NewRepository(array $payload): \ApiClients\Client\Github\Schema\WebhookDiscussionTransferred\Changes\NewRepository + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewThreadResolved⚡️PullRequest⚡️Head⚡️Repo(array $payload): \ApiClients\Client\Github\Schema\WebhookPullRequestReviewThreadResolved\PullRequest\Head\Repo { $properties = []; $missingFields = []; @@ -5422,17 +7600,17 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh after_web_commit_signoff_required: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDiscussionTransferred\Changes\NewRepository', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewThreadResolved\PullRequest\Head\Repo', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookDiscussionTransferred\Changes\NewRepository::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPullRequestReviewThreadResolved\PullRequest\Head\Repo::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\WebhookDiscussionTransferred\Changes\NewRepository(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookPullRequestReviewThreadResolved\PullRequest\Head\Repo(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDiscussionTransferred\Changes\NewRepository', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPullRequestReviewThreadResolved\PullRequest\Head\Repo', $exception, stack: $this->hydrationStack); } } @@ -5898,6 +8076,7 @@ public function serializeObject(object $object): mixed 'DateTime' => $this->serializeValueDateTime($object), 'DateTimeImmutable' => $this->serializeValueDateTimeImmutable($object), 'DateTimeInterface' => $this->serializeValueDateTimeInterface($object), + 'ApiClients\Client\Github\Schema\WebhookPullRequestReviewThreadResolved' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewThreadResolved($object), 'ApiClients\Client\Github\Schema\WebhookPullRequestReviewThreadUnresolved' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewThreadUnresolved($object), default => throw new \LogicException('No serialization defined for $className'), }; @@ -5972,6 +8151,70 @@ private function serializeValueDateTimeInterface(mixed $value): mixed } + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewThreadResolved(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookPullRequestReviewThreadResolved); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $pull_request = $object->pull_request; + + if ($pull_request === null) { + goto after_pull_request; + } + $pull_request = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewThreadResolved⚡️PullRequest($pull_request); + after_pull_request: $result['pull_request'] = $pull_request; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + $thread = $object->thread; + + if ($thread === null) { + goto after_thread; + } + $thread = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewThreadResolved⚡️Thread($thread); + after_thread: $result['thread'] = $thread; + + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPullRequestReviewThreadUnresolved(mixed $object): mixed { \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookPullRequestReviewThreadUnresolved); diff --git a/src/Hydrator/WebHook/RegistryPackage.php b/src/Hydrator/WebHook/RegistryPackage.php index 5cf3b01200..288648a42d 100644 --- a/src/Hydrator/WebHook/RegistryPackage.php +++ b/src/Hydrator/WebHook/RegistryPackage.php @@ -23,26 +23,189 @@ public function __construct() {} public function hydrateObject(string $className, array $payload): object { return match($className) { - 'ApiClients\Client\Github\Schema\WebhookRegistryPackageUpdated' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRegistryPackageUpdated($payload), + 'ApiClients\Client\Github\Schema\WebhookRegistryPackagePublished' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRegistryPackagePublished($payload), + 'ApiClients\Client\Github\Schema\WebhookRegistryPackageUpdated' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRegistryPackageUpdated($payload), 'ApiClients\Client\Github\Schema\Enterprise' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($payload), 'ApiClients\Client\Github\Schema\SimpleInstallation' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($payload), 'ApiClients\Client\Github\Schema\OrganizationSimple' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($payload), - 'ApiClients\Client\Github\Schema\WebhookRegistryPackageUpdated\RegistryPackage' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRegistryPackageUpdated⚡️RegistryPackage($payload), + 'ApiClients\Client\Github\Schema\WebhookRegistryPackagePublished\RegistryPackage' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRegistryPackagePublished⚡️RegistryPackage($payload), 'ApiClients\Client\Github\Schema\Repository' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($payload), 'ApiClients\Client\Github\Schema\SimpleUser' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($payload), + 'ApiClients\Client\Github\Schema\WebhookRegistryPackageUpdated\RegistryPackage' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRegistryPackageUpdated⚡️RegistryPackage($payload), 'ApiClients\Client\Github\Schema\WebhookRegistryPackagePublished\RegistryPackage\Owner' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRegistryPackagePublished⚡️RegistryPackage⚡️Owner($payload), - 'ApiClients\Client\Github\Schema\WebhookRegistryPackageUpdated\RegistryPackage\PackageVersion' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRegistryPackageUpdated⚡️RegistryPackage⚡️PackageVersion($payload), - 'ApiClients\Client\Github\Schema\WebhookCheckSuiteCompleted\ActionsMeta' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckSuiteCompleted⚡️ActionsMeta($payload), + 'ApiClients\Client\Github\Schema\WebhookRegistryPackagePublished\RegistryPackage\PackageVersion' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRegistryPackagePublished⚡️RegistryPackage⚡️PackageVersion($payload), + 'ApiClients\Client\Github\Schema\WebhookRegistryPackagePublished\RegistryPackage\Registry' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRegistryPackagePublished⚡️RegistryPackage⚡️Registry($payload), 'ApiClients\Client\Github\Schema\Repository\Permissions' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️Permissions($payload), 'ApiClients\Client\Github\Schema\Repository\TemplateRepository' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository($payload), - 'ApiClients\Client\Github\Schema\WebhookRegistryPackageUpdated\RegistryPackage\PackageVersion\Release' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRegistryPackageUpdated⚡️RegistryPackage⚡️PackageVersion⚡️Release($payload), + 'ApiClients\Client\Github\Schema\WebhookRegistryPackageUpdated\RegistryPackage\PackageVersion' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRegistryPackageUpdated⚡️RegistryPackage⚡️PackageVersion($payload), + 'ApiClients\Client\Github\Schema\WebhookCheckSuiteCompleted\ActionsMeta' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckSuiteCompleted⚡️ActionsMeta($payload), + 'ApiClients\Client\Github\Schema\WebhookRegistryPackagePublished\RegistryPackage\PackageVersion\ContainerMetadata' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRegistryPackagePublished⚡️RegistryPackage⚡️PackageVersion⚡️ContainerMetadata($payload), + 'ApiClients\Client\Github\Schema\WebhookRegistryPackagePublished\RegistryPackage\PackageVersion\NpmMetadata' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRegistryPackagePublished⚡️RegistryPackage⚡️PackageVersion⚡️NpmMetadata($payload), + 'ApiClients\Client\Github\Schema\WebhookRegistryPackagePublished\RegistryPackage\PackageVersion\Release' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRegistryPackagePublished⚡️RegistryPackage⚡️PackageVersion⚡️Release($payload), 'ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner($payload), 'ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Permissions($payload), + 'ApiClients\Client\Github\Schema\WebhookRegistryPackageUpdated\RegistryPackage\PackageVersion\Release' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRegistryPackageUpdated⚡️RegistryPackage⚡️PackageVersion⚡️Release($payload), + 'ApiClients\Client\Github\Schema\WebhookPackagePublished\Package\PackageVersion\ContainerMetadata\Tag' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPackagePublished⚡️Package⚡️PackageVersion⚡️ContainerMetadata⚡️Tag($payload), + 'ApiClients\Client\Github\Schema\WebhookPackagePublished\Package\PackageVersion\NpmMetadata\Dependencies' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPackagePublished⚡️Package⚡️PackageVersion⚡️NpmMetadata⚡️Dependencies($payload), + 'ApiClients\Client\Github\Schema\WebhookDeploymentCreated\WorkflowRun\HeadRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDeploymentCreated⚡️WorkflowRun⚡️HeadRepository⚡️Owner($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), }; } + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRegistryPackagePublished(array $payload): \ApiClients\Client\Github\Schema\WebhookRegistryPackagePublished + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; + + if ($value === null) { + $missingFields[] = 'action'; + goto after_action; + } + + $properties['action'] = $value; + + after_action: + + $value = $payload['enterprise'] ?? null; + + if ($value === null) { + $missingFields[] = 'enterprise'; + goto after_enterprise; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['enterprise'] = $value; + + after_enterprise: + + $value = $payload['installation'] ?? null; + + if ($value === null) { + $missingFields[] = 'installation'; + goto after_installation; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; + + after_installation: + + $value = $payload['organization'] ?? null; + + if ($value === null) { + $missingFields[] = 'organization'; + goto after_organization; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; + + after_organization: + + $value = $payload['registry_package'] ?? null; + + if ($value === null) { + $missingFields[] = 'registry_package'; + goto after_registry_package; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'registry_package'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRegistryPackagePublished⚡️RegistryPackage($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['registry_package'] = $value; + + after_registry_package: + + $value = $payload['repository'] ?? null; + + if ($value === null) { + $missingFields[] = 'repository'; + goto after_repository; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repository'] = $value; + + after_repository: + + $value = $payload['sender'] ?? null; + + if ($value === null) { + $missingFields[] = 'sender'; + goto after_sender; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; + + after_sender: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookRegistryPackagePublished', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookRegistryPackagePublished::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookRegistryPackagePublished(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookRegistryPackagePublished', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRegistryPackageUpdated(array $payload): \ApiClients\Client\Github\Schema\WebhookRegistryPackageUpdated { $properties = []; @@ -526,7 +689,7 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Orga } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRegistryPackageUpdated⚡️RegistryPackage(array $payload): \ApiClients\Client\Github\Schema\WebhookRegistryPackageUpdated\RegistryPackage + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRegistryPackagePublished⚡️RegistryPackage(array $payload): \ApiClients\Client\Github\Schema\WebhookRegistryPackagePublished\RegistryPackage { $properties = []; $missingFields = []; @@ -546,7 +709,7 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh $value = $payload['description'] ?? null; if ($value === null) { - $properties['description'] = null; + $missingFields[] = 'description'; goto after_description; } @@ -650,7 +813,7 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'package_version'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRegistryPackageUpdated⚡️RegistryPackage⚡️PackageVersion($value); + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRegistryPackagePublished⚡️RegistryPackage⚡️PackageVersion($value); } finally { array_pop($this->hydrationStack); } @@ -670,7 +833,7 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'registry'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckSuiteCompleted⚡️ActionsMeta($value); + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRegistryPackagePublished⚡️RegistryPackage⚡️Registry($value); } finally { array_pop($this->hydrationStack); } @@ -692,17 +855,17 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh after_updated_at: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookRegistryPackageUpdated\RegistryPackage', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookRegistryPackagePublished\RegistryPackage', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookRegistryPackageUpdated\RegistryPackage::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookRegistryPackagePublished\RegistryPackage::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\WebhookRegistryPackageUpdated\RegistryPackage(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookRegistryPackagePublished\RegistryPackage(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookRegistryPackageUpdated\RegistryPackage', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookRegistryPackagePublished\RegistryPackage', $exception, stack: $this->hydrationStack); } } @@ -2098,77 +2261,44 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Simp } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRegistryPackagePublished⚡️RegistryPackage⚡️Owner(array $payload): \ApiClients\Client\Github\Schema\WebhookRegistryPackagePublished\RegistryPackage\Owner + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRegistryPackageUpdated⚡️RegistryPackage(array $payload): \ApiClients\Client\Github\Schema\WebhookRegistryPackageUpdated\RegistryPackage { $properties = []; $missingFields = []; try { - $value = $payload['avatar_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatar_url; - } - - $properties['avatar_url'] = $value; - - after_avatar_url: - - $value = $payload['events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'events_url'; - goto after_events_url; - } - - $properties['events_url'] = $value; - - after_events_url: - - $value = $payload['followers_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followers_url; - } - - $properties['followers_url'] = $value; - - after_followers_url: - - $value = $payload['following_url'] ?? null; + $value = $payload['created_at'] ?? null; if ($value === null) { - $missingFields[] = 'following_url'; - goto after_following_url; + $missingFields[] = 'created_at'; + goto after_created_at; } - $properties['following_url'] = $value; + $properties['created_at'] = $value; - after_following_url: + after_created_at: - $value = $payload['gists_url'] ?? null; + $value = $payload['description'] ?? null; if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gists_url; + $properties['description'] = null; + goto after_description; } - $properties['gists_url'] = $value; + $properties['description'] = $value; - after_gists_url: + after_description: - $value = $payload['gravatar_id'] ?? null; + $value = $payload['ecosystem'] ?? null; if ($value === null) { - $missingFields[] = 'gravatar_id'; - goto after_gravatar_id; + $missingFields[] = 'ecosystem'; + goto after_ecosystem; } - $properties['gravatar_id'] = $value; + $properties['ecosystem'] = $value; - after_gravatar_id: + after_ecosystem: $value = $payload['html_url'] ?? null; @@ -2192,36 +2322,250 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh after_id: - $value = $payload['login'] ?? null; + $value = $payload['name'] ?? null; if ($value === null) { - $missingFields[] = 'login'; - goto after_login; + $missingFields[] = 'name'; + goto after_name; } - $properties['login'] = $value; + $properties['name'] = $value; - after_login: + after_name: - $value = $payload['node_id'] ?? null; + $value = $payload['namespace'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $missingFields[] = 'namespace'; + goto after_namespace; } - $properties['node_id'] = $value; + $properties['namespace'] = $value; - after_node_id: + after_namespace: - $value = $payload['organizations_url'] ?? null; + $value = $payload['owner'] ?? null; if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizations_url; + $missingFields[] = 'owner'; + goto after_owner; } - $properties['organizations_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'owner'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRegistryPackagePublished⚡️RegistryPackage⚡️Owner($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['owner'] = $value; + + after_owner: + + $value = $payload['package_type'] ?? null; + + if ($value === null) { + $missingFields[] = 'package_type'; + goto after_package_type; + } + + $properties['package_type'] = $value; + + after_package_type: + + $value = $payload['package_version'] ?? null; + + if ($value === null) { + $missingFields[] = 'package_version'; + goto after_package_version; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'package_version'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRegistryPackageUpdated⚡️RegistryPackage⚡️PackageVersion($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['package_version'] = $value; + + after_package_version: + + $value = $payload['registry'] ?? null; + + if ($value === null) { + $missingFields[] = 'registry'; + goto after_registry; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'registry'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckSuiteCompleted⚡️ActionsMeta($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['registry'] = $value; + + after_registry: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'updated_at'; + goto after_updated_at; + } + + $properties['updated_at'] = $value; + + after_updated_at: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookRegistryPackageUpdated\RegistryPackage', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookRegistryPackageUpdated\RegistryPackage::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookRegistryPackageUpdated\RegistryPackage(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookRegistryPackageUpdated\RegistryPackage', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRegistryPackagePublished⚡️RegistryPackage⚡️Owner(array $payload): \ApiClients\Client\Github\Schema\WebhookRegistryPackagePublished\RegistryPackage\Owner + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['avatar_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'avatar_url'; + goto after_avatar_url; + } + + $properties['avatar_url'] = $value; + + after_avatar_url: + + $value = $payload['events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'events_url'; + goto after_events_url; + } + + $properties['events_url'] = $value; + + after_events_url: + + $value = $payload['followers_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'followers_url'; + goto after_followers_url; + } + + $properties['followers_url'] = $value; + + after_followers_url: + + $value = $payload['following_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'following_url'; + goto after_following_url; + } + + $properties['following_url'] = $value; + + after_following_url: + + $value = $payload['gists_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'gists_url'; + goto after_gists_url; + } + + $properties['gists_url'] = $value; + + after_gists_url: + + $value = $payload['gravatar_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'gravatar_id'; + goto after_gravatar_id; + } + + $properties['gravatar_id'] = $value; + + after_gravatar_id: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } + + $properties['html_url'] = $value; + + after_html_url: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['login'] ?? null; + + if ($value === null) { + $missingFields[] = 'login'; + goto after_login; + } + + $properties['login'] = $value; + + after_login: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['organizations_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'organizations_url'; + goto after_organizations_url; + } + + $properties['organizations_url'] = $value; after_organizations_url: @@ -2318,7 +2662,7 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRegistryPackageUpdated⚡️RegistryPackage⚡️PackageVersion(array $payload): \ApiClients\Client\Github\Schema\WebhookRegistryPackageUpdated\RegistryPackage\PackageVersion + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRegistryPackagePublished⚡️RegistryPackage⚡️PackageVersion(array $payload): \ApiClients\Client\Github\Schema\WebhookRegistryPackagePublished\RegistryPackage\PackageVersion { $properties = []; $missingFields = []; @@ -2347,7 +2691,7 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh $value = $payload['body'] ?? null; if ($value === null) { - $missingFields[] = 'body'; + $properties['body'] = null; goto after_body; } @@ -2366,6 +2710,26 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh after_body_html: + $value = $payload['container_metadata'] ?? null; + + if ($value === null) { + $missingFields[] = 'container_metadata'; + goto after_container_metadata; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'container_metadata'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRegistryPackagePublished⚡️RegistryPackage⚡️PackageVersion⚡️ContainerMetadata($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['container_metadata'] = $value; + + after_container_metadata: + $value = $payload['created_at'] ?? null; if ($value === null) { @@ -2476,6 +2840,37 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh after_name: + $value = $payload['npm_metadata'] ?? null; + + if ($value === null) { + $missingFields[] = 'npm_metadata'; + goto after_npm_metadata; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'npm_metadata'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRegistryPackagePublished⚡️RegistryPackage⚡️PackageVersion⚡️NpmMetadata($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['npm_metadata'] = $value; + + after_npm_metadata: + + $value = $payload['nuget_metadata'] ?? null; + + if ($value === null) { + $missingFields[] = 'nuget_metadata'; + goto after_nuget_metadata; + } + + $properties['nuget_metadata'] = $value; + + after_nuget_metadata: + $value = $payload['package_files'] ?? null; if ($value === null) { @@ -2519,7 +2914,7 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh if (is_array($value)) { try { $this->hydrationStack[] = 'release'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRegistryPackageUpdated⚡️RegistryPackage⚡️PackageVersion⚡️Release($value); + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRegistryPackagePublished⚡️RegistryPackage⚡️PackageVersion⚡️Release($value); } finally { array_pop($this->hydrationStack); } @@ -2607,39 +3002,94 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh after_version: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookRegistryPackageUpdated\RegistryPackage\PackageVersion', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookRegistryPackagePublished\RegistryPackage\PackageVersion', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookRegistryPackageUpdated\RegistryPackage\PackageVersion::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookRegistryPackagePublished\RegistryPackage\PackageVersion::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\WebhookRegistryPackageUpdated\RegistryPackage\PackageVersion(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookRegistryPackagePublished\RegistryPackage\PackageVersion(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookRegistryPackageUpdated\RegistryPackage\PackageVersion', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookRegistryPackagePublished\RegistryPackage\PackageVersion', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckSuiteCompleted⚡️ActionsMeta(array $payload): \ApiClients\Client\Github\Schema\WebhookCheckSuiteCompleted\ActionsMeta + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRegistryPackagePublished⚡️RegistryPackage⚡️Registry(array $payload): \ApiClients\Client\Github\Schema\WebhookRegistryPackagePublished\RegistryPackage\Registry { $properties = []; $missingFields = []; try { - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCheckSuiteCompleted\ActionsMeta', $exception, stack: $this->hydrationStack); + $value = $payload['about_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'about_url'; + goto after_about_url; + } + + $properties['about_url'] = $value; + + after_about_url: + + $value = $payload['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['type'] ?? null; + + if ($value === null) { + $missingFields[] = 'type'; + goto after_type; + } + + $properties['type'] = $value; + + after_type: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['vendor'] ?? null; + + if ($value === null) { + $missingFields[] = 'vendor'; + goto after_vendor; + } + + $properties['vendor'] = $value; + + after_vendor: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookRegistryPackagePublished\RegistryPackage\Registry', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookCheckSuiteCompleted\ActionsMeta::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookRegistryPackagePublished\RegistryPackage\Registry::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\WebhookCheckSuiteCompleted\ActionsMeta(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookRegistryPackagePublished\RegistryPackage\Registry(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCheckSuiteCompleted\ActionsMeta', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookRegistryPackagePublished\RegistryPackage\Registry', $exception, stack: $this->hydrationStack); } } @@ -3718,7 +4168,7 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repo } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRegistryPackageUpdated⚡️RegistryPackage⚡️PackageVersion⚡️Release(array $payload): \ApiClients\Client\Github\Schema\WebhookRegistryPackageUpdated\RegistryPackage\PackageVersion\Release + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRegistryPackageUpdated⚡️RegistryPackage⚡️PackageVersion(array $payload): \ApiClients\Client\Github\Schema\WebhookRegistryPackageUpdated\RegistryPackage\PackageVersion { $properties = []; $missingFields = []; @@ -3744,6 +4194,28 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh after_author: + $value = $payload['body'] ?? null; + + if ($value === null) { + $missingFields[] = 'body'; + goto after_body; + } + + $properties['body'] = $value; + + after_body: + + $value = $payload['body_html'] ?? null; + + if ($value === null) { + $missingFields[] = 'body_html'; + goto after_body_html; + } + + $properties['body_html'] = $value; + + after_body_html: + $value = $payload['created_at'] ?? null; if ($value === null) { @@ -3755,6 +4227,28 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh after_created_at: + $value = $payload['description'] ?? null; + + if ($value === null) { + $missingFields[] = 'description'; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['docker_metadata'] ?? null; + + if ($value === null) { + $missingFields[] = 'docker_metadata'; + goto after_docker_metadata; + } + + $properties['docker_metadata'] = $value; + + after_docker_metadata: + $value = $payload['draft'] ?? null; if ($value === null) { @@ -3788,170 +4282,1495 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh after_id: - $value = $payload['name'] ?? null; + $value = $payload['installation_command'] ?? null; if ($value === null) { - $missingFields[] = 'name'; - goto after_name; + $missingFields[] = 'installation_command'; + goto after_installation_command; } - $properties['name'] = $value; + $properties['installation_command'] = $value; - after_name: + after_installation_command: - $value = $payload['prerelease'] ?? null; + $value = $payload['manifest'] ?? null; if ($value === null) { - $missingFields[] = 'prerelease'; - goto after_prerelease; + $missingFields[] = 'manifest'; + goto after_manifest; } - $properties['prerelease'] = $value; + $properties['manifest'] = $value; - after_prerelease: + after_manifest: - $value = $payload['published_at'] ?? null; + $value = $payload['metadata'] ?? null; if ($value === null) { - $missingFields[] = 'published_at'; - goto after_published_at; + $missingFields[] = 'metadata'; + goto after_metadata; } - $properties['published_at'] = $value; + $properties['metadata'] = $value; - after_published_at: + after_metadata: - $value = $payload['tag_name'] ?? null; + $value = $payload['name'] ?? null; if ($value === null) { - $missingFields[] = 'tag_name'; - goto after_tag_name; + $missingFields[] = 'name'; + goto after_name; } - $properties['tag_name'] = $value; + $properties['name'] = $value; - after_tag_name: + after_name: - $value = $payload['target_commitish'] ?? null; + $value = $payload['package_files'] ?? null; if ($value === null) { - $missingFields[] = 'target_commitish'; - goto after_target_commitish; + $missingFields[] = 'package_files'; + goto after_package_files; } - $properties['target_commitish'] = $value; + $properties['package_files'] = $value; - after_target_commitish: + after_package_files: - $value = $payload['url'] ?? null; + $value = $payload['package_url'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $missingFields[] = 'package_url'; + goto after_package_url; } - $properties['url'] = $value; + $properties['package_url'] = $value; - after_url: - - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookRegistryPackageUpdated\RegistryPackage\PackageVersion\Release', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookRegistryPackageUpdated\RegistryPackage\PackageVersion\Release::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\WebhookRegistryPackageUpdated\RegistryPackage\PackageVersion\Release(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookRegistryPackageUpdated\RegistryPackage\PackageVersion\Release', $exception, stack: $this->hydrationStack); - } - } + after_package_url: - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner(array $payload): \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['login'] ?? null; + $value = $payload['prerelease'] ?? null; if ($value === null) { - $missingFields[] = 'login'; - goto after_login; + $missingFields[] = 'prerelease'; + goto after_prerelease; } - $properties['login'] = $value; + $properties['prerelease'] = $value; - after_login: + after_prerelease: - $value = $payload['id'] ?? null; + $value = $payload['release'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'release'; + goto after_release; } - $properties['id'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'release'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRegistryPackageUpdated⚡️RegistryPackage⚡️PackageVersion⚡️Release($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['release'] = $value; - after_id: + after_release: - $value = $payload['node_id'] ?? null; + $value = $payload['rubygems_metadata'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $missingFields[] = 'rubygems_metadata'; + goto after_rubygems_metadata; } - $properties['node_id'] = $value; + $properties['rubygems_metadata'] = $value; - after_node_id: + after_rubygems_metadata: - $value = $payload['avatar_url'] ?? null; + $value = $payload['summary'] ?? null; if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatar_url; + $missingFields[] = 'summary'; + goto after_summary; } - $properties['avatar_url'] = $value; + $properties['summary'] = $value; - after_avatar_url: + after_summary: - $value = $payload['gravatar_id'] ?? null; + $value = $payload['tag_name'] ?? null; if ($value === null) { - $missingFields[] = 'gravatar_id'; - goto after_gravatar_id; + $missingFields[] = 'tag_name'; + goto after_tag_name; } - $properties['gravatar_id'] = $value; + $properties['tag_name'] = $value; - after_gravatar_id: + after_tag_name: - $value = $payload['url'] ?? null; + $value = $payload['target_commitish'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $missingFields[] = 'target_commitish'; + goto after_target_commitish; } - $properties['url'] = $value; + $properties['target_commitish'] = $value; - after_url: + after_target_commitish: - $value = $payload['html_url'] ?? null; + $value = $payload['target_oid'] ?? null; if ($value === null) { - $missingFields[] = 'html_url'; - goto after_html_url; + $missingFields[] = 'target_oid'; + goto after_target_oid; } - $properties['html_url'] = $value; + $properties['target_oid'] = $value; - after_html_url: + after_target_oid: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'updated_at'; + goto after_updated_at; + } + + $properties['updated_at'] = $value; + + after_updated_at: + + $value = $payload['version'] ?? null; + + if ($value === null) { + $missingFields[] = 'version'; + goto after_version; + } + + $properties['version'] = $value; + + after_version: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookRegistryPackageUpdated\RegistryPackage\PackageVersion', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookRegistryPackageUpdated\RegistryPackage\PackageVersion::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookRegistryPackageUpdated\RegistryPackage\PackageVersion(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookRegistryPackageUpdated\RegistryPackage\PackageVersion', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckSuiteCompleted⚡️ActionsMeta(array $payload): \ApiClients\Client\Github\Schema\WebhookCheckSuiteCompleted\ActionsMeta + { + $properties = []; + $missingFields = []; + try { + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCheckSuiteCompleted\ActionsMeta', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookCheckSuiteCompleted\ActionsMeta::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookCheckSuiteCompleted\ActionsMeta(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookCheckSuiteCompleted\ActionsMeta', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRegistryPackagePublished⚡️RegistryPackage⚡️PackageVersion⚡️ContainerMetadata(array $payload): \ApiClients\Client\Github\Schema\WebhookRegistryPackagePublished\RegistryPackage\PackageVersion\ContainerMetadata + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['labels'] ?? null; + + if ($value === null) { + $missingFields[] = 'labels'; + goto after_labels; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'labels'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckSuiteCompleted⚡️ActionsMeta($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['labels'] = $value; + + after_labels: + + $value = $payload['manifest'] ?? null; + + if ($value === null) { + $missingFields[] = 'manifest'; + goto after_manifest; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'manifest'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookCheckSuiteCompleted⚡️ActionsMeta($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['manifest'] = $value; + + after_manifest: + + $value = $payload['tag'] ?? null; + + if ($value === null) { + $missingFields[] = 'tag'; + goto after_tag; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'tag'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPackagePublished⚡️Package⚡️PackageVersion⚡️ContainerMetadata⚡️Tag($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['tag'] = $value; + + after_tag: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookRegistryPackagePublished\RegistryPackage\PackageVersion\ContainerMetadata', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookRegistryPackagePublished\RegistryPackage\PackageVersion\ContainerMetadata::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookRegistryPackagePublished\RegistryPackage\PackageVersion\ContainerMetadata(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookRegistryPackagePublished\RegistryPackage\PackageVersion\ContainerMetadata', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRegistryPackagePublished⚡️RegistryPackage⚡️PackageVersion⚡️NpmMetadata(array $payload): \ApiClients\Client\Github\Schema\WebhookRegistryPackagePublished\RegistryPackage\PackageVersion\NpmMetadata + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['version'] ?? null; + + if ($value === null) { + $missingFields[] = 'version'; + goto after_version; + } + + $properties['version'] = $value; + + after_version: + + $value = $payload['npm_user'] ?? null; + + if ($value === null) { + $missingFields[] = 'npm_user'; + goto after_npm_user; + } + + $properties['npm_user'] = $value; + + after_npm_user: + + $value = $payload['author'] ?? null; + + if ($value === null) { + $properties['author'] = null; + goto after_author; + } + + $properties['author'] = $value; + + after_author: + + $value = $payload['bugs'] ?? null; + + if ($value === null) { + $properties['bugs'] = null; + goto after_bugs; + } + + $properties['bugs'] = $value; + + after_bugs: + + $value = $payload['dependencies'] ?? null; + + if ($value === null) { + $missingFields[] = 'dependencies'; + goto after_dependencies; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'dependencies'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPackagePublished⚡️Package⚡️PackageVersion⚡️NpmMetadata⚡️Dependencies($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['dependencies'] = $value; + + after_dependencies: + + $value = $payload['dev_dependencies'] ?? null; + + if ($value === null) { + $missingFields[] = 'dev_dependencies'; + goto after_dev_dependencies; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'dev_dependencies'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPackagePublished⚡️Package⚡️PackageVersion⚡️NpmMetadata⚡️Dependencies($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['dev_dependencies'] = $value; + + after_dev_dependencies: + + $value = $payload['peer_dependencies'] ?? null; + + if ($value === null) { + $missingFields[] = 'peer_dependencies'; + goto after_peer_dependencies; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'peer_dependencies'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPackagePublished⚡️Package⚡️PackageVersion⚡️NpmMetadata⚡️Dependencies($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['peer_dependencies'] = $value; + + after_peer_dependencies: + + $value = $payload['optional_dependencies'] ?? null; + + if ($value === null) { + $missingFields[] = 'optional_dependencies'; + goto after_optional_dependencies; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'optional_dependencies'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPackagePublished⚡️Package⚡️PackageVersion⚡️NpmMetadata⚡️Dependencies($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['optional_dependencies'] = $value; + + after_optional_dependencies: + + $value = $payload['description'] ?? null; + + if ($value === null) { + $missingFields[] = 'description'; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['dist'] ?? null; + + if ($value === null) { + $properties['dist'] = null; + goto after_dist; + } + + $properties['dist'] = $value; + + after_dist: + + $value = $payload['git_head'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_head'; + goto after_git_head; + } + + $properties['git_head'] = $value; + + after_git_head: + + $value = $payload['homepage'] ?? null; + + if ($value === null) { + $missingFields[] = 'homepage'; + goto after_homepage; + } + + $properties['homepage'] = $value; + + after_homepage: + + $value = $payload['license'] ?? null; + + if ($value === null) { + $missingFields[] = 'license'; + goto after_license; + } + + $properties['license'] = $value; + + after_license: + + $value = $payload['main'] ?? null; + + if ($value === null) { + $missingFields[] = 'main'; + goto after_main; + } + + $properties['main'] = $value; + + after_main: + + $value = $payload['repository'] ?? null; + + if ($value === null) { + $properties['repository'] = null; + goto after_repository; + } + + $properties['repository'] = $value; + + after_repository: + + $value = $payload['scripts'] ?? null; + + if ($value === null) { + $missingFields[] = 'scripts'; + goto after_scripts; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'scripts'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPackagePublished⚡️Package⚡️PackageVersion⚡️NpmMetadata⚡️Dependencies($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['scripts'] = $value; + + after_scripts: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['node_version'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_version'; + goto after_node_version; + } + + $properties['node_version'] = $value; + + after_node_version: + + $value = $payload['npm_version'] ?? null; + + if ($value === null) { + $missingFields[] = 'npm_version'; + goto after_npm_version; + } + + $properties['npm_version'] = $value; + + after_npm_version: + + $value = $payload['has_shrinkwrap'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_shrinkwrap'; + goto after_has_shrinkwrap; + } + + $properties['has_shrinkwrap'] = $value; + + after_has_shrinkwrap: + + $value = $payload['maintainers'] ?? null; + + if ($value === null) { + $missingFields[] = 'maintainers'; + goto after_maintainers; + } + + $properties['maintainers'] = $value; + + after_maintainers: + + $value = $payload['contributors'] ?? null; + + if ($value === null) { + $missingFields[] = 'contributors'; + goto after_contributors; + } + + $properties['contributors'] = $value; + + after_contributors: + + $value = $payload['engines'] ?? null; + + if ($value === null) { + $missingFields[] = 'engines'; + goto after_engines; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'engines'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPackagePublished⚡️Package⚡️PackageVersion⚡️NpmMetadata⚡️Dependencies($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['engines'] = $value; + + after_engines: + + $value = $payload['keywords'] ?? null; + + if ($value === null) { + $missingFields[] = 'keywords'; + goto after_keywords; + } + + $properties['keywords'] = $value; + + after_keywords: + + $value = $payload['files'] ?? null; + + if ($value === null) { + $missingFields[] = 'files'; + goto after_files; + } + + $properties['files'] = $value; + + after_files: + + $value = $payload['bin'] ?? null; + + if ($value === null) { + $missingFields[] = 'bin'; + goto after_bin; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'bin'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPackagePublished⚡️Package⚡️PackageVersion⚡️NpmMetadata⚡️Dependencies($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['bin'] = $value; + + after_bin: + + $value = $payload['man'] ?? null; + + if ($value === null) { + $missingFields[] = 'man'; + goto after_man; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'man'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPackagePublished⚡️Package⚡️PackageVersion⚡️NpmMetadata⚡️Dependencies($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['man'] = $value; + + after_man: + + $value = $payload['directories'] ?? null; + + if ($value === null) { + $properties['directories'] = null; + goto after_directories; + } + + $properties['directories'] = $value; + + after_directories: + + $value = $payload['os'] ?? null; + + if ($value === null) { + $missingFields[] = 'os'; + goto after_os; + } + + $properties['os'] = $value; + + after_os: + + $value = $payload['cpu'] ?? null; + + if ($value === null) { + $missingFields[] = 'cpu'; + goto after_cpu; + } + + $properties['cpu'] = $value; + + after_cpu: + + $value = $payload['readme'] ?? null; + + if ($value === null) { + $missingFields[] = 'readme'; + goto after_readme; + } + + $properties['readme'] = $value; + + after_readme: + + $value = $payload['installation_command'] ?? null; + + if ($value === null) { + $missingFields[] = 'installation_command'; + goto after_installation_command; + } + + $properties['installation_command'] = $value; + + after_installation_command: + + $value = $payload['release_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'release_id'; + goto after_release_id; + } + + $properties['release_id'] = $value; + + after_release_id: + + $value = $payload['commit_oid'] ?? null; + + if ($value === null) { + $missingFields[] = 'commit_oid'; + goto after_commit_oid; + } + + $properties['commit_oid'] = $value; + + after_commit_oid: + + $value = $payload['published_via_actions'] ?? null; + + if ($value === null) { + $missingFields[] = 'published_via_actions'; + goto after_published_via_actions; + } + + $properties['published_via_actions'] = $value; + + after_published_via_actions: + + $value = $payload['deleted_by_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'deleted_by_id'; + goto after_deleted_by_id; + } + + $properties['deleted_by_id'] = $value; + + after_deleted_by_id: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookRegistryPackagePublished\RegistryPackage\PackageVersion\NpmMetadata', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookRegistryPackagePublished\RegistryPackage\PackageVersion\NpmMetadata::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookRegistryPackagePublished\RegistryPackage\PackageVersion\NpmMetadata(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookRegistryPackagePublished\RegistryPackage\PackageVersion\NpmMetadata', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRegistryPackagePublished⚡️RegistryPackage⚡️PackageVersion⚡️Release(array $payload): \ApiClients\Client\Github\Schema\WebhookRegistryPackagePublished\RegistryPackage\PackageVersion\Release + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['author'] ?? null; + + if ($value === null) { + $missingFields[] = 'author'; + goto after_author; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'author'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDeploymentCreated⚡️WorkflowRun⚡️HeadRepository⚡️Owner($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['author'] = $value; + + after_author: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'created_at'; + goto after_created_at; + } + + $properties['created_at'] = $value; + + after_created_at: + + $value = $payload['draft'] ?? null; + + if ($value === null) { + $missingFields[] = 'draft'; + goto after_draft; + } + + $properties['draft'] = $value; + + after_draft: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } + + $properties['html_url'] = $value; + + after_html_url: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['prerelease'] ?? null; + + if ($value === null) { + $missingFields[] = 'prerelease'; + goto after_prerelease; + } + + $properties['prerelease'] = $value; + + after_prerelease: + + $value = $payload['published_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'published_at'; + goto after_published_at; + } + + $properties['published_at'] = $value; + + after_published_at: + + $value = $payload['tag_name'] ?? null; + + if ($value === null) { + $missingFields[] = 'tag_name'; + goto after_tag_name; + } + + $properties['tag_name'] = $value; + + after_tag_name: + + $value = $payload['target_commitish'] ?? null; + + if ($value === null) { + $missingFields[] = 'target_commitish'; + goto after_target_commitish; + } + + $properties['target_commitish'] = $value; + + after_target_commitish: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookRegistryPackagePublished\RegistryPackage\PackageVersion\Release', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookRegistryPackagePublished\RegistryPackage\PackageVersion\Release::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookRegistryPackagePublished\RegistryPackage\PackageVersion\Release(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookRegistryPackagePublished\RegistryPackage\PackageVersion\Release', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner(array $payload): \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['login'] ?? null; + + if ($value === null) { + $missingFields[] = 'login'; + goto after_login; + } + + $properties['login'] = $value; + + after_login: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['avatar_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'avatar_url'; + goto after_avatar_url; + } + + $properties['avatar_url'] = $value; + + after_avatar_url: + + $value = $payload['gravatar_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'gravatar_id'; + goto after_gravatar_id; + } + + $properties['gravatar_id'] = $value; + + after_gravatar_id: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } + + $properties['html_url'] = $value; + + after_html_url: + + $value = $payload['followers_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'followers_url'; + goto after_followers_url; + } + + $properties['followers_url'] = $value; + + after_followers_url: + + $value = $payload['following_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'following_url'; + goto after_following_url; + } + + $properties['following_url'] = $value; + + after_following_url: + + $value = $payload['gists_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'gists_url'; + goto after_gists_url; + } + + $properties['gists_url'] = $value; + + after_gists_url: + + $value = $payload['starred_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'starred_url'; + goto after_starred_url; + } + + $properties['starred_url'] = $value; + + after_starred_url: + + $value = $payload['subscriptions_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscriptions_url'; + goto after_subscriptions_url; + } + + $properties['subscriptions_url'] = $value; + + after_subscriptions_url: + + $value = $payload['organizations_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'organizations_url'; + goto after_organizations_url; + } + + $properties['organizations_url'] = $value; + + after_organizations_url: + + $value = $payload['repos_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'repos_url'; + goto after_repos_url; + } + + $properties['repos_url'] = $value; + + after_repos_url: + + $value = $payload['events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'events_url'; + goto after_events_url; + } + + $properties['events_url'] = $value; + + after_events_url: + + $value = $payload['received_events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'received_events_url'; + goto after_received_events_url; + } + + $properties['received_events_url'] = $value; + + after_received_events_url: + + $value = $payload['type'] ?? null; + + if ($value === null) { + $missingFields[] = 'type'; + goto after_type; + } + + $properties['type'] = $value; + + after_type: + + $value = $payload['site_admin'] ?? null; + + if ($value === null) { + $missingFields[] = 'site_admin'; + goto after_site_admin; + } + + $properties['site_admin'] = $value; + + after_site_admin: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Permissions(array $payload): \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['admin'] ?? null; + + if ($value === null) { + $missingFields[] = 'admin'; + goto after_admin; + } + + $properties['admin'] = $value; + + after_admin: + + $value = $payload['maintain'] ?? null; + + if ($value === null) { + $missingFields[] = 'maintain'; + goto after_maintain; + } + + $properties['maintain'] = $value; + + after_maintain: + + $value = $payload['push'] ?? null; + + if ($value === null) { + $missingFields[] = 'push'; + goto after_push; + } + + $properties['push'] = $value; + + after_push: + + $value = $payload['triage'] ?? null; + + if ($value === null) { + $missingFields[] = 'triage'; + goto after_triage; + } + + $properties['triage'] = $value; + + after_triage: + + $value = $payload['pull'] ?? null; + + if ($value === null) { + $missingFields[] = 'pull'; + goto after_pull; + } + + $properties['pull'] = $value; + + after_pull: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRegistryPackageUpdated⚡️RegistryPackage⚡️PackageVersion⚡️Release(array $payload): \ApiClients\Client\Github\Schema\WebhookRegistryPackageUpdated\RegistryPackage\PackageVersion\Release + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['author'] ?? null; + + if ($value === null) { + $missingFields[] = 'author'; + goto after_author; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'author'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRegistryPackagePublished⚡️RegistryPackage⚡️Owner($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['author'] = $value; + + after_author: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'created_at'; + goto after_created_at; + } + + $properties['created_at'] = $value; + + after_created_at: + + $value = $payload['draft'] ?? null; + + if ($value === null) { + $missingFields[] = 'draft'; + goto after_draft; + } + + $properties['draft'] = $value; + + after_draft: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } + + $properties['html_url'] = $value; + + after_html_url: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['prerelease'] ?? null; + + if ($value === null) { + $missingFields[] = 'prerelease'; + goto after_prerelease; + } + + $properties['prerelease'] = $value; + + after_prerelease: + + $value = $payload['published_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'published_at'; + goto after_published_at; + } + + $properties['published_at'] = $value; + + after_published_at: + + $value = $payload['tag_name'] ?? null; + + if ($value === null) { + $missingFields[] = 'tag_name'; + goto after_tag_name; + } + + $properties['tag_name'] = $value; + + after_tag_name: + + $value = $payload['target_commitish'] ?? null; + + if ($value === null) { + $missingFields[] = 'target_commitish'; + goto after_target_commitish; + } + + $properties['target_commitish'] = $value; + + after_target_commitish: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookRegistryPackageUpdated\RegistryPackage\PackageVersion\Release', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookRegistryPackageUpdated\RegistryPackage\PackageVersion\Release::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookRegistryPackageUpdated\RegistryPackage\PackageVersion\Release(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookRegistryPackageUpdated\RegistryPackage\PackageVersion\Release', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPackagePublished⚡️Package⚡️PackageVersion⚡️ContainerMetadata⚡️Tag(array $payload): \ApiClients\Client\Github\Schema\WebhookPackagePublished\Package\PackageVersion\ContainerMetadata\Tag + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['digest'] ?? null; + + if ($value === null) { + $missingFields[] = 'digest'; + goto after_digest; + } + + $properties['digest'] = $value; + + after_digest: + + $value = $payload['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPackagePublished\Package\PackageVersion\ContainerMetadata\Tag', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPackagePublished\Package\PackageVersion\ContainerMetadata\Tag::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookPackagePublished\Package\PackageVersion\ContainerMetadata\Tag(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPackagePublished\Package\PackageVersion\ContainerMetadata\Tag', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookPackagePublished⚡️Package⚡️PackageVersion⚡️NpmMetadata⚡️Dependencies(array $payload): \ApiClients\Client\Github\Schema\WebhookPackagePublished\Package\PackageVersion\NpmMetadata\Dependencies + { + $properties = []; + $missingFields = []; + try { + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPackagePublished\Package\PackageVersion\NpmMetadata\Dependencies', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookPackagePublished\Package\PackageVersion\NpmMetadata\Dependencies::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookPackagePublished\Package\PackageVersion\NpmMetadata\Dependencies(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookPackagePublished\Package\PackageVersion\NpmMetadata\Dependencies', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDeploymentCreated⚡️WorkflowRun⚡️HeadRepository⚡️Owner(array $payload): \ApiClients\Client\Github\Schema\WebhookDeploymentCreated\WorkflowRun\HeadRepository\Owner + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['avatar_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'avatar_url'; + goto after_avatar_url; + } + + $properties['avatar_url'] = $value; + + after_avatar_url: + + $value = $payload['events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'events_url'; + goto after_events_url; + } + + $properties['events_url'] = $value; + + after_events_url: $value = $payload['followers_url'] ?? null; @@ -3986,60 +5805,71 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repo after_gists_url: - $value = $payload['starred_url'] ?? null; + $value = $payload['gravatar_id'] ?? null; if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starred_url; + $missingFields[] = 'gravatar_id'; + goto after_gravatar_id; } - $properties['starred_url'] = $value; + $properties['gravatar_id'] = $value; - after_starred_url: + after_gravatar_id: - $value = $payload['subscriptions_url'] ?? null; + $value = $payload['html_url'] ?? null; if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptions_url; + $missingFields[] = 'html_url'; + goto after_html_url; } - $properties['subscriptions_url'] = $value; + $properties['html_url'] = $value; - after_subscriptions_url: + after_html_url: - $value = $payload['organizations_url'] ?? null; + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizations_url; + $missingFields[] = 'id'; + goto after_id; } - $properties['organizations_url'] = $value; + $properties['id'] = $value; - after_organizations_url: + after_id: - $value = $payload['repos_url'] ?? null; + $value = $payload['login'] ?? null; if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_repos_url; + $missingFields[] = 'login'; + goto after_login; } - $properties['repos_url'] = $value; + $properties['login'] = $value; - after_repos_url: + after_login: - $value = $payload['events_url'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $missingFields[] = 'events_url'; - goto after_events_url; + $missingFields[] = 'node_id'; + goto after_node_id; } - $properties['events_url'] = $value; + $properties['node_id'] = $value; - after_events_url: + after_node_id: + + $value = $payload['organizations_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'organizations_url'; + goto after_organizations_url; + } + + $properties['organizations_url'] = $value; + + after_organizations_url: $value = $payload['received_events_url'] ?? null; @@ -4052,16 +5882,16 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repo after_received_events_url: - $value = $payload['type'] ?? null; + $value = $payload['repos_url'] ?? null; if ($value === null) { - $missingFields[] = 'type'; - goto after_type; + $missingFields[] = 'repos_url'; + goto after_repos_url; } - $properties['type'] = $value; + $properties['repos_url'] = $value; - after_type: + after_repos_url: $value = $payload['site_admin'] ?? null; @@ -4074,95 +5904,62 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repo after_site_admin: - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner', $exception, stack: $this->hydrationStack); - } - } - - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Permissions(array $payload): \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['admin'] ?? null; - - if ($value === null) { - $missingFields[] = 'admin'; - goto after_admin; - } - - $properties['admin'] = $value; - - after_admin: - - $value = $payload['maintain'] ?? null; + $value = $payload['starred_url'] ?? null; if ($value === null) { - $missingFields[] = 'maintain'; - goto after_maintain; + $missingFields[] = 'starred_url'; + goto after_starred_url; } - $properties['maintain'] = $value; + $properties['starred_url'] = $value; - after_maintain: + after_starred_url: - $value = $payload['push'] ?? null; + $value = $payload['subscriptions_url'] ?? null; if ($value === null) { - $missingFields[] = 'push'; - goto after_push; + $missingFields[] = 'subscriptions_url'; + goto after_subscriptions_url; } - $properties['push'] = $value; + $properties['subscriptions_url'] = $value; - after_push: + after_subscriptions_url: - $value = $payload['triage'] ?? null; + $value = $payload['type'] ?? null; if ($value === null) { - $missingFields[] = 'triage'; - goto after_triage; + $missingFields[] = 'type'; + goto after_type; } - $properties['triage'] = $value; + $properties['type'] = $value; - after_triage: + after_type: - $value = $payload['pull'] ?? null; + $value = $payload['url'] ?? null; if ($value === null) { - $missingFields[] = 'pull'; - goto after_pull; + $missingFields[] = 'url'; + goto after_url; } - $properties['pull'] = $value; + $properties['url'] = $value; - after_pull: + after_url: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDeploymentCreated\WorkflowRun\HeadRepository\Owner', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookDeploymentCreated\WorkflowRun\HeadRepository\Owner::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookDeploymentCreated\WorkflowRun\HeadRepository\Owner(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDeploymentCreated\WorkflowRun\HeadRepository\Owner', $exception, stack: $this->hydrationStack); } } @@ -4177,6 +5974,7 @@ public function serializeObject(object $object): mixed 'DateTime' => $this->serializeValueDateTime($object), 'DateTimeImmutable' => $this->serializeValueDateTimeImmutable($object), 'DateTimeInterface' => $this->serializeValueDateTimeInterface($object), + 'ApiClients\Client\Github\Schema\WebhookRegistryPackagePublished' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRegistryPackagePublished($object), 'ApiClients\Client\Github\Schema\WebhookRegistryPackageUpdated' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRegistryPackageUpdated($object), default => throw new \LogicException('No serialization defined for $className'), }; @@ -4251,6 +6049,61 @@ private function serializeValueDateTimeInterface(mixed $value): mixed } + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRegistryPackagePublished(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookRegistryPackagePublished); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $registry_package = $object->registry_package; + + if ($registry_package === null) { + goto after_registry_package; + } + $registry_package = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRegistryPackagePublished⚡️RegistryPackage($registry_package); + after_registry_package: $result['registry_package'] = $registry_package; + + + $repository = $object->repository; + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRegistryPackageUpdated(mixed $object): mixed { \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookRegistryPackageUpdated); diff --git a/src/Hydrator/WebHook/Release.php b/src/Hydrator/WebHook/Release.php index f59adabe99..af172a570a 100644 --- a/src/Hydrator/WebHook/Release.php +++ b/src/Hydrator/WebHook/Release.php @@ -23,14 +23,26 @@ public function __construct() {} public function hydrateObject(string $className, array $payload): object { return match($className) { - 'ApiClients\Client\Github\Schema\WebhookReleaseUnpublished' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookReleaseUnpublished($payload), + 'ApiClients\Client\Github\Schema\WebhookReleaseCreated' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookReleaseCreated($payload), + 'ApiClients\Client\Github\Schema\WebhookReleaseDeleted' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookReleaseDeleted($payload), + 'ApiClients\Client\Github\Schema\WebhookReleaseEdited' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookReleaseEdited($payload), + 'ApiClients\Client\Github\Schema\WebhookReleasePrereleased' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookReleasePrereleased($payload), + 'ApiClients\Client\Github\Schema\WebhookReleasePublished' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookReleasePublished($payload), + 'ApiClients\Client\Github\Schema\WebhookReleaseReleased' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookReleaseReleased($payload), + 'ApiClients\Client\Github\Schema\WebhookReleaseUnpublished' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookReleaseUnpublished($payload), 'ApiClients\Client\Github\Schema\Enterprise' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($payload), 'ApiClients\Client\Github\Schema\SimpleInstallation' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($payload), 'ApiClients\Client\Github\Schema\OrganizationSimple' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($payload), + 'ApiClients\Client\Github\Schema\WebhookReleaseCreated\Release' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookReleaseCreated⚡️Release($payload), 'ApiClients\Client\Github\Schema\Repository' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($payload), 'ApiClients\Client\Github\Schema\SimpleUser' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($payload), + 'ApiClients\Client\Github\Schema\WebhookReleaseEdited\Changes' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookReleaseEdited⚡️Changes($payload), + 'ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($payload), + 'ApiClients\Client\Github\Schema\Discussion\Reactions' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️Reactions($payload), 'ApiClients\Client\Github\Schema\Repository\Permissions' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️Permissions($payload), 'ApiClients\Client\Github\Schema\Repository\TemplateRepository' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository($payload), + 'ApiClients\Client\Github\Schema\WebhookProjectEdited\Changes\Body' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectEdited⚡️Changes⚡️Body($payload), + 'ApiClients\Client\Github\Schema\WebhookLabelEdited\Changes\Name' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookLabelEdited⚡️Changes⚡️Name($payload), 'ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner($payload), 'ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Permissions($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), @@ -38,7 +50,7 @@ public function hydrateObject(string $className, array $payload): object } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookReleaseUnpublished(array $payload): \ApiClients\Client\Github\Schema\WebhookReleaseUnpublished + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookReleaseCreated(array $payload): \ApiClients\Client\Github\Schema\WebhookReleaseCreated { $properties = []; $missingFields = []; @@ -118,10 +130,19 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh $value = $payload['release'] ?? null; if ($value === null) { - $properties['release'] = null; + $missingFields[] = 'release'; goto after_release; } + if (is_array($value)) { + try { + $this->hydrationStack[] = 'release'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookReleaseCreated⚡️Release($value); + } finally { + array_pop($this->hydrationStack); + } + } + $properties['release'] = $value; after_release: @@ -167,957 +188,1179 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh after_sender: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookReleaseUnpublished', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookReleaseCreated', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookReleaseUnpublished::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookReleaseCreated::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\WebhookReleaseUnpublished(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookReleaseCreated(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookReleaseUnpublished', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookReleaseCreated', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise(array $payload): \ApiClients\Client\Github\Schema\Enterprise + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookReleaseDeleted(array $payload): \ApiClients\Client\Github\Schema\WebhookReleaseDeleted { $properties = []; $missingFields = []; try { - $value = $payload['description'] ?? null; + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'description'; - goto after_description; + $missingFields[] = 'action'; + goto after_action; } - $properties['description'] = $value; + $properties['action'] = $value; - after_description: + after_action: - $value = $payload['html_url'] ?? null; + $value = $payload['enterprise'] ?? null; if ($value === null) { - $missingFields[] = 'html_url'; - goto after_html_url; + $missingFields[] = 'enterprise'; + goto after_enterprise; } - $properties['html_url'] = $value; - - after_html_url: - - $value = $payload['website_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'website_url'; - goto after_website_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['website_url'] = $value; + $properties['enterprise'] = $value; - after_website_url: + after_enterprise: - $value = $payload['id'] ?? null; + $value = $payload['installation'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'installation'; + goto after_installation; } - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['node_id'] = $value; + $properties['installation'] = $value; - after_node_id: + after_installation: - $value = $payload['name'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'name'; - goto after_name; + $missingFields[] = 'organization'; + goto after_organization; } - $properties['name'] = $value; - - after_name: - - $value = $payload['slug'] ?? null; - - if ($value === null) { - $missingFields[] = 'slug'; - goto after_slug; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['slug'] = $value; + $properties['organization'] = $value; - after_slug: + after_organization: - $value = $payload['created_at'] ?? null; + $value = $payload['release'] ?? null; if ($value === null) { - $missingFields[] = 'created_at'; - goto after_created_at; + $missingFields[] = 'release'; + goto after_release; } - $properties['created_at'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'release'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookReleaseCreated⚡️Release($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['release'] = $value; - after_created_at: + after_release: - $value = $payload['updated_at'] ?? null; + $value = $payload['repository'] ?? null; if ($value === null) { - $missingFields[] = 'updated_at'; - goto after_updated_at; + $missingFields[] = 'repository'; + goto after_repository; } - $properties['updated_at'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repository'] = $value; - after_updated_at: + after_repository: - $value = $payload['avatar_url'] ?? null; + $value = $payload['sender'] ?? null; if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatar_url; + $missingFields[] = 'sender'; + goto after_sender; } - $properties['avatar_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; - after_avatar_url: + after_sender: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Enterprise', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookReleaseDeleted', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Enterprise::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookReleaseDeleted::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\Enterprise(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookReleaseDeleted(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Enterprise', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookReleaseDeleted', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation(array $payload): \ApiClients\Client\Github\Schema\SimpleInstallation + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookReleaseEdited(array $payload): \ApiClients\Client\Github\Schema\WebhookReleaseEdited { $properties = []; $missingFields = []; try { - $value = $payload['id'] ?? null; + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'action'; + goto after_action; } - $properties['id'] = $value; + $properties['action'] = $value; - after_id: + after_action: - $value = $payload['node_id'] ?? null; + $value = $payload['changes'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $missingFields[] = 'changes'; + goto after_changes; } - $properties['node_id'] = $value; - - after_node_id: - - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleInstallation', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\SimpleInstallation::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\SimpleInstallation(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleInstallation', $exception, stack: $this->hydrationStack); - } - } - - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple(array $payload): \ApiClients\Client\Github\Schema\OrganizationSimple - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['login'] ?? null; - - if ($value === null) { - $missingFields[] = 'login'; - goto after_login; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'changes'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookReleaseEdited⚡️Changes($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['login'] = $value; + $properties['changes'] = $value; - after_login: + after_changes: - $value = $payload['id'] ?? null; + $value = $payload['enterprise'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'enterprise'; + goto after_enterprise; } - $properties['id'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['enterprise'] = $value; - after_id: + after_enterprise: - $value = $payload['node_id'] ?? null; + $value = $payload['installation'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $missingFields[] = 'installation'; + goto after_installation; } - $properties['node_id'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; - after_node_id: + after_installation: - $value = $payload['url'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $missingFields[] = 'organization'; + goto after_organization; } - $properties['url'] = $value; - - after_url: - - $value = $payload['repos_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_repos_url; - } - - $properties['repos_url'] = $value; - - after_repos_url: - - $value = $payload['events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'events_url'; - goto after_events_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['events_url'] = $value; + $properties['organization'] = $value; - after_events_url: + after_organization: - $value = $payload['hooks_url'] ?? null; + $value = $payload['release'] ?? null; if ($value === null) { - $missingFields[] = 'hooks_url'; - goto after_hooks_url; + $missingFields[] = 'release'; + goto after_release; } - $properties['hooks_url'] = $value; - - after_hooks_url: - - $value = $payload['issues_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'issues_url'; - goto after_issues_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'release'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookReleaseCreated⚡️Release($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['issues_url'] = $value; + $properties['release'] = $value; - after_issues_url: + after_release: - $value = $payload['members_url'] ?? null; + $value = $payload['repository'] ?? null; if ($value === null) { - $missingFields[] = 'members_url'; - goto after_members_url; + $missingFields[] = 'repository'; + goto after_repository; } - $properties['members_url'] = $value; - - after_members_url: - - $value = $payload['public_members_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'public_members_url'; - goto after_public_members_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['public_members_url'] = $value; + $properties['repository'] = $value; - after_public_members_url: + after_repository: - $value = $payload['avatar_url'] ?? null; + $value = $payload['sender'] ?? null; if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatar_url; + $missingFields[] = 'sender'; + goto after_sender; } - $properties['avatar_url'] = $value; - - after_avatar_url: - - $value = $payload['description'] ?? null; - - if ($value === null) { - $missingFields[] = 'description'; - goto after_description; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['description'] = $value; + $properties['sender'] = $value; - after_description: + after_sender: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\OrganizationSimple', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookReleaseEdited', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\OrganizationSimple::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookReleaseEdited::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\OrganizationSimple(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookReleaseEdited(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\OrganizationSimple', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookReleaseEdited', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository(array $payload): \ApiClients\Client\Github\Schema\Repository + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookReleasePrereleased(array $payload): \ApiClients\Client\Github\Schema\WebhookReleasePrereleased { $properties = []; $missingFields = []; try { - $value = $payload['id'] ?? null; + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'action'; + goto after_action; } - $properties['id'] = $value; + $properties['action'] = $value; - after_id: + after_action: - $value = $payload['node_id'] ?? null; + $value = $payload['enterprise'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $missingFields[] = 'enterprise'; + goto after_enterprise; } - $properties['node_id'] = $value; - - after_node_id: - - $value = $payload['name'] ?? null; - - if ($value === null) { - $missingFields[] = 'name'; - goto after_name; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['name'] = $value; + $properties['enterprise'] = $value; - after_name: + after_enterprise: - $value = $payload['full_name'] ?? null; + $value = $payload['installation'] ?? null; if ($value === null) { - $missingFields[] = 'full_name'; - goto after_full_name; + $missingFields[] = 'installation'; + goto after_installation; } - $properties['full_name'] = $value; - - after_full_name: - - $value = $payload['license'] ?? null; - - if ($value === null) { - $properties['license'] = null; - goto after_license; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['license'] = $value; + $properties['installation'] = $value; - after_license: + after_installation: $value = $payload['organization'] ?? null; if ($value === null) { - $properties['organization'] = null; + $missingFields[] = 'organization'; goto after_organization; } + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + $properties['organization'] = $value; after_organization: - $value = $payload['forks'] ?? null; + $value = $payload['release'] ?? null; if ($value === null) { - $missingFields[] = 'forks'; - goto after_forks; + $properties['release'] = null; + goto after_release; } - $properties['forks'] = $value; + $properties['release'] = $value; - after_forks: + after_release: - $value = $payload['permissions'] ?? null; + $value = $payload['repository'] ?? null; if ($value === null) { - $missingFields[] = 'permissions'; - goto after_permissions; + $missingFields[] = 'repository'; + goto after_repository; } if (is_array($value)) { try { - $this->hydrationStack[] = 'permissions'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️Permissions($value); + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); } finally { array_pop($this->hydrationStack); } } - $properties['permissions'] = $value; + $properties['repository'] = $value; - after_permissions: + after_repository: - $value = $payload['owner'] ?? null; + $value = $payload['sender'] ?? null; if ($value === null) { - $missingFields[] = 'owner'; - goto after_owner; + $missingFields[] = 'sender'; + goto after_sender; } if (is_array($value)) { try { - $this->hydrationStack[] = 'owner'; + $this->hydrationStack[] = 'sender'; $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } } - $properties['owner'] = $value; + $properties['sender'] = $value; - after_owner: + after_sender: - $value = $payload['private'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookReleasePrereleased', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookReleasePrereleased::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookReleasePrereleased(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookReleasePrereleased', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookReleasePublished(array $payload): \ApiClients\Client\Github\Schema\WebhookReleasePublished + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'private'; - goto after_private; + $missingFields[] = 'action'; + goto after_action; } - $properties['private'] = $value; + $properties['action'] = $value; - after_private: + after_action: - $value = $payload['html_url'] ?? null; + $value = $payload['enterprise'] ?? null; if ($value === null) { - $missingFields[] = 'html_url'; - goto after_html_url; + $missingFields[] = 'enterprise'; + goto after_enterprise; } - $properties['html_url'] = $value; - - after_html_url: - - $value = $payload['description'] ?? null; - - if ($value === null) { - $missingFields[] = 'description'; - goto after_description; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['description'] = $value; + $properties['enterprise'] = $value; - after_description: + after_enterprise: - $value = $payload['fork'] ?? null; + $value = $payload['installation'] ?? null; if ($value === null) { - $missingFields[] = 'fork'; - goto after_fork; + $missingFields[] = 'installation'; + goto after_installation; } - $properties['fork'] = $value; - - after_fork: - - $value = $payload['url'] ?? null; - - if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['url'] = $value; + $properties['installation'] = $value; - after_url: + after_installation: - $value = $payload['archive_url'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'archive_url'; - goto after_archive_url; + $missingFields[] = 'organization'; + goto after_organization; } - $properties['archive_url'] = $value; - - after_archive_url: - - $value = $payload['assignees_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'assignees_url'; - goto after_assignees_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['assignees_url'] = $value; + $properties['organization'] = $value; - after_assignees_url: + after_organization: - $value = $payload['blobs_url'] ?? null; + $value = $payload['release'] ?? null; if ($value === null) { - $missingFields[] = 'blobs_url'; - goto after_blobs_url; + $properties['release'] = null; + goto after_release; } - $properties['blobs_url'] = $value; + $properties['release'] = $value; - after_blobs_url: + after_release: - $value = $payload['branches_url'] ?? null; + $value = $payload['repository'] ?? null; if ($value === null) { - $missingFields[] = 'branches_url'; - goto after_branches_url; + $missingFields[] = 'repository'; + goto after_repository; } - $properties['branches_url'] = $value; - - after_branches_url: - - $value = $payload['collaborators_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'collaborators_url'; - goto after_collaborators_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['collaborators_url'] = $value; + $properties['repository'] = $value; - after_collaborators_url: + after_repository: - $value = $payload['comments_url'] ?? null; + $value = $payload['sender'] ?? null; if ($value === null) { - $missingFields[] = 'comments_url'; - goto after_comments_url; + $missingFields[] = 'sender'; + goto after_sender; } - $properties['comments_url'] = $value; - - after_comments_url: - - $value = $payload['commits_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'commits_url'; - goto after_commits_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['commits_url'] = $value; + $properties['sender'] = $value; - after_commits_url: + after_sender: - $value = $payload['compare_url'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookReleasePublished', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookReleasePublished::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookReleasePublished(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookReleasePublished', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookReleaseReleased(array $payload): \ApiClients\Client\Github\Schema\WebhookReleaseReleased + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'compare_url'; - goto after_compare_url; + $missingFields[] = 'action'; + goto after_action; } - $properties['compare_url'] = $value; + $properties['action'] = $value; - after_compare_url: + after_action: - $value = $payload['contents_url'] ?? null; + $value = $payload['enterprise'] ?? null; if ($value === null) { - $missingFields[] = 'contents_url'; - goto after_contents_url; + $missingFields[] = 'enterprise'; + goto after_enterprise; } - $properties['contents_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['enterprise'] = $value; - after_contents_url: + after_enterprise: - $value = $payload['contributors_url'] ?? null; + $value = $payload['installation'] ?? null; if ($value === null) { - $missingFields[] = 'contributors_url'; - goto after_contributors_url; + $missingFields[] = 'installation'; + goto after_installation; } - $properties['contributors_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; - after_contributors_url: + after_installation: - $value = $payload['deployments_url'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'deployments_url'; - goto after_deployments_url; + $missingFields[] = 'organization'; + goto after_organization; } - $properties['deployments_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; - after_deployments_url: + after_organization: - $value = $payload['downloads_url'] ?? null; + $value = $payload['release'] ?? null; if ($value === null) { - $missingFields[] = 'downloads_url'; - goto after_downloads_url; + $missingFields[] = 'release'; + goto after_release; } - $properties['downloads_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'release'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookReleaseCreated⚡️Release($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['release'] = $value; - after_downloads_url: + after_release: - $value = $payload['events_url'] ?? null; + $value = $payload['repository'] ?? null; if ($value === null) { - $missingFields[] = 'events_url'; - goto after_events_url; + $missingFields[] = 'repository'; + goto after_repository; } - $properties['events_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repository'] = $value; - after_events_url: + after_repository: - $value = $payload['forks_url'] ?? null; + $value = $payload['sender'] ?? null; if ($value === null) { - $missingFields[] = 'forks_url'; - goto after_forks_url; + $missingFields[] = 'sender'; + goto after_sender; } - $properties['forks_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; - after_forks_url: + after_sender: - $value = $payload['git_commits_url'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookReleaseReleased', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookReleaseReleased::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookReleaseReleased(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookReleaseReleased', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookReleaseUnpublished(array $payload): \ApiClients\Client\Github\Schema\WebhookReleaseUnpublished + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'git_commits_url'; - goto after_git_commits_url; + $missingFields[] = 'action'; + goto after_action; } - $properties['git_commits_url'] = $value; + $properties['action'] = $value; - after_git_commits_url: + after_action: - $value = $payload['git_refs_url'] ?? null; + $value = $payload['enterprise'] ?? null; if ($value === null) { - $missingFields[] = 'git_refs_url'; - goto after_git_refs_url; + $missingFields[] = 'enterprise'; + goto after_enterprise; } - $properties['git_refs_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['enterprise'] = $value; - after_git_refs_url: + after_enterprise: - $value = $payload['git_tags_url'] ?? null; + $value = $payload['installation'] ?? null; if ($value === null) { - $missingFields[] = 'git_tags_url'; - goto after_git_tags_url; + $missingFields[] = 'installation'; + goto after_installation; } - $properties['git_tags_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; - after_git_tags_url: + after_installation: - $value = $payload['git_url'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'git_url'; - goto after_git_url; + $missingFields[] = 'organization'; + goto after_organization; } - $properties['git_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; - after_git_url: + after_organization: - $value = $payload['issue_comment_url'] ?? null; + $value = $payload['release'] ?? null; if ($value === null) { - $missingFields[] = 'issue_comment_url'; - goto after_issue_comment_url; + $properties['release'] = null; + goto after_release; } - $properties['issue_comment_url'] = $value; + $properties['release'] = $value; - after_issue_comment_url: + after_release: - $value = $payload['issue_events_url'] ?? null; + $value = $payload['repository'] ?? null; if ($value === null) { - $missingFields[] = 'issue_events_url'; - goto after_issue_events_url; + $missingFields[] = 'repository'; + goto after_repository; } - $properties['issue_events_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repository'] = $value; - after_issue_events_url: + after_repository: - $value = $payload['issues_url'] ?? null; + $value = $payload['sender'] ?? null; if ($value === null) { - $missingFields[] = 'issues_url'; - goto after_issues_url; + $missingFields[] = 'sender'; + goto after_sender; } - $properties['issues_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; - after_issues_url: + after_sender: - $value = $payload['keys_url'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookReleaseUnpublished', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookReleaseUnpublished::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookReleaseUnpublished(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookReleaseUnpublished', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise(array $payload): \ApiClients\Client\Github\Schema\Enterprise + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['description'] ?? null; if ($value === null) { - $missingFields[] = 'keys_url'; - goto after_keys_url; + $missingFields[] = 'description'; + goto after_description; } - $properties['keys_url'] = $value; + $properties['description'] = $value; - after_keys_url: + after_description: - $value = $payload['labels_url'] ?? null; + $value = $payload['html_url'] ?? null; if ($value === null) { - $missingFields[] = 'labels_url'; - goto after_labels_url; + $missingFields[] = 'html_url'; + goto after_html_url; } - $properties['labels_url'] = $value; + $properties['html_url'] = $value; - after_labels_url: + after_html_url: - $value = $payload['languages_url'] ?? null; + $value = $payload['website_url'] ?? null; if ($value === null) { - $missingFields[] = 'languages_url'; - goto after_languages_url; + $missingFields[] = 'website_url'; + goto after_website_url; } - $properties['languages_url'] = $value; + $properties['website_url'] = $value; - after_languages_url: + after_website_url: - $value = $payload['merges_url'] ?? null; + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'merges_url'; - goto after_merges_url; + $missingFields[] = 'id'; + goto after_id; } - $properties['merges_url'] = $value; + $properties['id'] = $value; - after_merges_url: + after_id: - $value = $payload['milestones_url'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $missingFields[] = 'milestones_url'; - goto after_milestones_url; + $missingFields[] = 'node_id'; + goto after_node_id; } - $properties['milestones_url'] = $value; + $properties['node_id'] = $value; - after_milestones_url: + after_node_id: - $value = $payload['notifications_url'] ?? null; + $value = $payload['name'] ?? null; if ($value === null) { - $missingFields[] = 'notifications_url'; - goto after_notifications_url; + $missingFields[] = 'name'; + goto after_name; } - $properties['notifications_url'] = $value; + $properties['name'] = $value; - after_notifications_url: + after_name: - $value = $payload['pulls_url'] ?? null; + $value = $payload['slug'] ?? null; if ($value === null) { - $missingFields[] = 'pulls_url'; - goto after_pulls_url; + $missingFields[] = 'slug'; + goto after_slug; } - $properties['pulls_url'] = $value; + $properties['slug'] = $value; - after_pulls_url: + after_slug: - $value = $payload['releases_url'] ?? null; + $value = $payload['created_at'] ?? null; if ($value === null) { - $missingFields[] = 'releases_url'; - goto after_releases_url; + $missingFields[] = 'created_at'; + goto after_created_at; } - $properties['releases_url'] = $value; + $properties['created_at'] = $value; - after_releases_url: + after_created_at: - $value = $payload['ssh_url'] ?? null; + $value = $payload['updated_at'] ?? null; if ($value === null) { - $missingFields[] = 'ssh_url'; - goto after_ssh_url; + $missingFields[] = 'updated_at'; + goto after_updated_at; } - $properties['ssh_url'] = $value; + $properties['updated_at'] = $value; - after_ssh_url: + after_updated_at: - $value = $payload['stargazers_url'] ?? null; + $value = $payload['avatar_url'] ?? null; if ($value === null) { - $missingFields[] = 'stargazers_url'; - goto after_stargazers_url; + $missingFields[] = 'avatar_url'; + goto after_avatar_url; } - $properties['stargazers_url'] = $value; + $properties['avatar_url'] = $value; - after_stargazers_url: + after_avatar_url: - $value = $payload['statuses_url'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Enterprise', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Enterprise::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\Enterprise(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Enterprise', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation(array $payload): \ApiClients\Client\Github\Schema\SimpleInstallation + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'statuses_url'; - goto after_statuses_url; + $missingFields[] = 'id'; + goto after_id; } - $properties['statuses_url'] = $value; + $properties['id'] = $value; - after_statuses_url: + after_id: - $value = $payload['subscribers_url'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $missingFields[] = 'subscribers_url'; - goto after_subscribers_url; + $missingFields[] = 'node_id'; + goto after_node_id; } - $properties['subscribers_url'] = $value; + $properties['node_id'] = $value; - after_subscribers_url: + after_node_id: - $value = $payload['subscription_url'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleInstallation', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\SimpleInstallation::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\SimpleInstallation(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleInstallation', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple(array $payload): \ApiClients\Client\Github\Schema\OrganizationSimple + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['login'] ?? null; if ($value === null) { - $missingFields[] = 'subscription_url'; - goto after_subscription_url; + $missingFields[] = 'login'; + goto after_login; } - $properties['subscription_url'] = $value; + $properties['login'] = $value; - after_subscription_url: + after_login: - $value = $payload['tags_url'] ?? null; + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'tags_url'; - goto after_tags_url; + $missingFields[] = 'id'; + goto after_id; } - $properties['tags_url'] = $value; + $properties['id'] = $value; - after_tags_url: + after_id: - $value = $payload['teams_url'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $missingFields[] = 'teams_url'; - goto after_teams_url; + $missingFields[] = 'node_id'; + goto after_node_id; } - $properties['teams_url'] = $value; + $properties['node_id'] = $value; - after_teams_url: + after_node_id: - $value = $payload['trees_url'] ?? null; + $value = $payload['url'] ?? null; if ($value === null) { - $missingFields[] = 'trees_url'; - goto after_trees_url; + $missingFields[] = 'url'; + goto after_url; } - $properties['trees_url'] = $value; + $properties['url'] = $value; - after_trees_url: + after_url: - $value = $payload['clone_url'] ?? null; + $value = $payload['repos_url'] ?? null; if ($value === null) { - $missingFields[] = 'clone_url'; - goto after_clone_url; + $missingFields[] = 'repos_url'; + goto after_repos_url; } - $properties['clone_url'] = $value; + $properties['repos_url'] = $value; - after_clone_url: + after_repos_url: - $value = $payload['mirror_url'] ?? null; + $value = $payload['events_url'] ?? null; if ($value === null) { - $missingFields[] = 'mirror_url'; - goto after_mirror_url; + $missingFields[] = 'events_url'; + goto after_events_url; } - $properties['mirror_url'] = $value; + $properties['events_url'] = $value; - after_mirror_url: + after_events_url: $value = $payload['hooks_url'] ?? null; @@ -1130,1913 +1373,2015 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repo after_hooks_url: - $value = $payload['svn_url'] ?? null; + $value = $payload['issues_url'] ?? null; if ($value === null) { - $missingFields[] = 'svn_url'; - goto after_svn_url; + $missingFields[] = 'issues_url'; + goto after_issues_url; } - $properties['svn_url'] = $value; + $properties['issues_url'] = $value; - after_svn_url: + after_issues_url: - $value = $payload['homepage'] ?? null; + $value = $payload['members_url'] ?? null; if ($value === null) { - $missingFields[] = 'homepage'; - goto after_homepage; + $missingFields[] = 'members_url'; + goto after_members_url; } - $properties['homepage'] = $value; + $properties['members_url'] = $value; - after_homepage: + after_members_url: - $value = $payload['language'] ?? null; + $value = $payload['public_members_url'] ?? null; if ($value === null) { - $missingFields[] = 'language'; - goto after_language; + $missingFields[] = 'public_members_url'; + goto after_public_members_url; } - $properties['language'] = $value; + $properties['public_members_url'] = $value; - after_language: + after_public_members_url: - $value = $payload['forks_count'] ?? null; + $value = $payload['avatar_url'] ?? null; if ($value === null) { - $missingFields[] = 'forks_count'; - goto after_forks_count; + $missingFields[] = 'avatar_url'; + goto after_avatar_url; } - $properties['forks_count'] = $value; + $properties['avatar_url'] = $value; - after_forks_count: + after_avatar_url: - $value = $payload['stargazers_count'] ?? null; + $value = $payload['description'] ?? null; if ($value === null) { - $missingFields[] = 'stargazers_count'; - goto after_stargazers_count; + $missingFields[] = 'description'; + goto after_description; } - $properties['stargazers_count'] = $value; + $properties['description'] = $value; - after_stargazers_count: + after_description: - $value = $payload['watchers_count'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\OrganizationSimple', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\OrganizationSimple::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\OrganizationSimple(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\OrganizationSimple', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookReleaseCreated⚡️Release(array $payload): \ApiClients\Client\Github\Schema\WebhookReleaseCreated\Release + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['assets'] ?? null; if ($value === null) { - $missingFields[] = 'watchers_count'; - goto after_watchers_count; + $missingFields[] = 'assets'; + goto after_assets; } - $properties['watchers_count'] = $value; + $properties['assets'] = $value; - after_watchers_count: + after_assets: - $value = $payload['size'] ?? null; + $value = $payload['assets_url'] ?? null; if ($value === null) { - $missingFields[] = 'size'; - goto after_size; + $missingFields[] = 'assets_url'; + goto after_assets_url; } - $properties['size'] = $value; + $properties['assets_url'] = $value; - after_size: + after_assets_url: - $value = $payload['default_branch'] ?? null; + $value = $payload['author'] ?? null; if ($value === null) { - $missingFields[] = 'default_branch'; - goto after_default_branch; + $missingFields[] = 'author'; + goto after_author; } - $properties['default_branch'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'author'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['author'] = $value; - after_default_branch: + after_author: - $value = $payload['open_issues_count'] ?? null; + $value = $payload['body'] ?? null; if ($value === null) { - $missingFields[] = 'open_issues_count'; - goto after_open_issues_count; + $missingFields[] = 'body'; + goto after_body; } - $properties['open_issues_count'] = $value; + $properties['body'] = $value; - after_open_issues_count: + after_body: - $value = $payload['is_template'] ?? null; + $value = $payload['created_at'] ?? null; if ($value === null) { - $missingFields[] = 'is_template'; - goto after_is_template; + $missingFields[] = 'created_at'; + goto after_created_at; } - $properties['is_template'] = $value; + $properties['created_at'] = $value; - after_is_template: + after_created_at: - $value = $payload['topics'] ?? null; + $value = $payload['discussion_url'] ?? null; if ($value === null) { - $missingFields[] = 'topics'; - goto after_topics; + $missingFields[] = 'discussion_url'; + goto after_discussion_url; } - $properties['topics'] = $value; + $properties['discussion_url'] = $value; - after_topics: + after_discussion_url: - $value = $payload['has_issues'] ?? null; + $value = $payload['draft'] ?? null; if ($value === null) { - $missingFields[] = 'has_issues'; - goto after_has_issues; + $missingFields[] = 'draft'; + goto after_draft; } - $properties['has_issues'] = $value; + $properties['draft'] = $value; - after_has_issues: + after_draft: - $value = $payload['has_projects'] ?? null; + $value = $payload['html_url'] ?? null; if ($value === null) { - $missingFields[] = 'has_projects'; - goto after_has_projects; + $missingFields[] = 'html_url'; + goto after_html_url; } - $properties['has_projects'] = $value; + $properties['html_url'] = $value; - after_has_projects: + after_html_url: - $value = $payload['has_wiki'] ?? null; + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'has_wiki'; - goto after_has_wiki; + $missingFields[] = 'id'; + goto after_id; } - $properties['has_wiki'] = $value; + $properties['id'] = $value; - after_has_wiki: + after_id: - $value = $payload['has_pages'] ?? null; + $value = $payload['name'] ?? null; if ($value === null) { - $missingFields[] = 'has_pages'; - goto after_has_pages; + $missingFields[] = 'name'; + goto after_name; } - $properties['has_pages'] = $value; + $properties['name'] = $value; - after_has_pages: + after_name: - $value = $payload['has_downloads'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $missingFields[] = 'has_downloads'; - goto after_has_downloads; + $missingFields[] = 'node_id'; + goto after_node_id; } - $properties['has_downloads'] = $value; + $properties['node_id'] = $value; - after_has_downloads: + after_node_id: - $value = $payload['has_discussions'] ?? null; + $value = $payload['prerelease'] ?? null; if ($value === null) { - $missingFields[] = 'has_discussions'; - goto after_has_discussions; + $missingFields[] = 'prerelease'; + goto after_prerelease; } - $properties['has_discussions'] = $value; + $properties['prerelease'] = $value; - after_has_discussions: + after_prerelease: - $value = $payload['archived'] ?? null; + $value = $payload['published_at'] ?? null; if ($value === null) { - $missingFields[] = 'archived'; - goto after_archived; + $missingFields[] = 'published_at'; + goto after_published_at; } - $properties['archived'] = $value; + $properties['published_at'] = $value; - after_archived: + after_published_at: - $value = $payload['disabled'] ?? null; + $value = $payload['reactions'] ?? null; if ($value === null) { - $missingFields[] = 'disabled'; - goto after_disabled; + $missingFields[] = 'reactions'; + goto after_reactions; } - $properties['disabled'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'reactions'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️Reactions($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['reactions'] = $value; - after_disabled: + after_reactions: - $value = $payload['visibility'] ?? null; + $value = $payload['tag_name'] ?? null; if ($value === null) { - $missingFields[] = 'visibility'; - goto after_visibility; + $missingFields[] = 'tag_name'; + goto after_tag_name; } - $properties['visibility'] = $value; + $properties['tag_name'] = $value; - after_visibility: + after_tag_name: - $value = $payload['pushed_at'] ?? null; + $value = $payload['tarball_url'] ?? null; if ($value === null) { - $missingFields[] = 'pushed_at'; - goto after_pushed_at; + $missingFields[] = 'tarball_url'; + goto after_tarball_url; } - $properties['pushed_at'] = $value; + $properties['tarball_url'] = $value; - after_pushed_at: + after_tarball_url: - $value = $payload['created_at'] ?? null; + $value = $payload['target_commitish'] ?? null; if ($value === null) { - $missingFields[] = 'created_at'; - goto after_created_at; + $missingFields[] = 'target_commitish'; + goto after_target_commitish; } - $properties['created_at'] = $value; + $properties['target_commitish'] = $value; - after_created_at: + after_target_commitish: - $value = $payload['updated_at'] ?? null; + $value = $payload['upload_url'] ?? null; if ($value === null) { - $missingFields[] = 'updated_at'; - goto after_updated_at; + $missingFields[] = 'upload_url'; + goto after_upload_url; } - $properties['updated_at'] = $value; + $properties['upload_url'] = $value; - after_updated_at: + after_upload_url: - $value = $payload['allow_rebase_merge'] ?? null; + $value = $payload['url'] ?? null; if ($value === null) { - $missingFields[] = 'allow_rebase_merge'; - goto after_allow_rebase_merge; + $missingFields[] = 'url'; + goto after_url; } - $properties['allow_rebase_merge'] = $value; + $properties['url'] = $value; - after_allow_rebase_merge: + after_url: - $value = $payload['template_repository'] ?? null; + $value = $payload['zipball_url'] ?? null; if ($value === null) { - $missingFields[] = 'template_repository'; - goto after_template_repository; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'template_repository'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'zipball_url'; + goto after_zipball_url; } - $properties['template_repository'] = $value; + $properties['zipball_url'] = $value; - after_template_repository: + after_zipball_url: - $value = $payload['temp_clone_token'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookReleaseCreated\Release', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookReleaseCreated\Release::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookReleaseCreated\Release(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookReleaseCreated\Release', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository(array $payload): \ApiClients\Client\Github\Schema\Repository + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'temp_clone_token'; - goto after_temp_clone_token; + $missingFields[] = 'id'; + goto after_id; } - $properties['temp_clone_token'] = $value; + $properties['id'] = $value; - after_temp_clone_token: + after_id: - $value = $payload['allow_squash_merge'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $missingFields[] = 'allow_squash_merge'; - goto after_allow_squash_merge; + $missingFields[] = 'node_id'; + goto after_node_id; } - $properties['allow_squash_merge'] = $value; + $properties['node_id'] = $value; - after_allow_squash_merge: + after_node_id: - $value = $payload['allow_auto_merge'] ?? null; + $value = $payload['name'] ?? null; if ($value === null) { - $missingFields[] = 'allow_auto_merge'; - goto after_allow_auto_merge; + $missingFields[] = 'name'; + goto after_name; } - $properties['allow_auto_merge'] = $value; + $properties['name'] = $value; - after_allow_auto_merge: + after_name: - $value = $payload['delete_branch_on_merge'] ?? null; + $value = $payload['full_name'] ?? null; if ($value === null) { - $missingFields[] = 'delete_branch_on_merge'; - goto after_delete_branch_on_merge; + $missingFields[] = 'full_name'; + goto after_full_name; } - $properties['delete_branch_on_merge'] = $value; + $properties['full_name'] = $value; - after_delete_branch_on_merge: + after_full_name: - $value = $payload['allow_update_branch'] ?? null; + $value = $payload['license'] ?? null; if ($value === null) { - $missingFields[] = 'allow_update_branch'; - goto after_allow_update_branch; + $properties['license'] = null; + goto after_license; } - $properties['allow_update_branch'] = $value; + $properties['license'] = $value; - after_allow_update_branch: + after_license: - $value = $payload['use_squash_pr_title_as_default'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'use_squash_pr_title_as_default'; - goto after_use_squash_pr_title_as_default; + $properties['organization'] = null; + goto after_organization; } - $properties['use_squash_pr_title_as_default'] = $value; + $properties['organization'] = $value; - after_use_squash_pr_title_as_default: + after_organization: - $value = $payload['squash_merge_commit_title'] ?? null; + $value = $payload['forks'] ?? null; if ($value === null) { - $missingFields[] = 'squash_merge_commit_title'; - goto after_squash_merge_commit_title; + $missingFields[] = 'forks'; + goto after_forks; } - $properties['squash_merge_commit_title'] = $value; + $properties['forks'] = $value; - after_squash_merge_commit_title: + after_forks: - $value = $payload['squash_merge_commit_message'] ?? null; + $value = $payload['permissions'] ?? null; if ($value === null) { - $missingFields[] = 'squash_merge_commit_message'; - goto after_squash_merge_commit_message; + $missingFields[] = 'permissions'; + goto after_permissions; } - $properties['squash_merge_commit_message'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'permissions'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️Permissions($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['permissions'] = $value; - after_squash_merge_commit_message: + after_permissions: - $value = $payload['merge_commit_title'] ?? null; + $value = $payload['owner'] ?? null; if ($value === null) { - $missingFields[] = 'merge_commit_title'; - goto after_merge_commit_title; + $missingFields[] = 'owner'; + goto after_owner; } - $properties['merge_commit_title'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'owner'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['owner'] = $value; - after_merge_commit_title: + after_owner: - $value = $payload['merge_commit_message'] ?? null; + $value = $payload['private'] ?? null; if ($value === null) { - $missingFields[] = 'merge_commit_message'; - goto after_merge_commit_message; + $missingFields[] = 'private'; + goto after_private; } - $properties['merge_commit_message'] = $value; + $properties['private'] = $value; - after_merge_commit_message: + after_private: - $value = $payload['allow_merge_commit'] ?? null; + $value = $payload['html_url'] ?? null; if ($value === null) { - $missingFields[] = 'allow_merge_commit'; - goto after_allow_merge_commit; + $missingFields[] = 'html_url'; + goto after_html_url; } - $properties['allow_merge_commit'] = $value; + $properties['html_url'] = $value; - after_allow_merge_commit: + after_html_url: - $value = $payload['allow_forking'] ?? null; + $value = $payload['description'] ?? null; if ($value === null) { - $missingFields[] = 'allow_forking'; - goto after_allow_forking; + $missingFields[] = 'description'; + goto after_description; } - $properties['allow_forking'] = $value; + $properties['description'] = $value; - after_allow_forking: + after_description: - $value = $payload['web_commit_signoff_required'] ?? null; + $value = $payload['fork'] ?? null; if ($value === null) { - $missingFields[] = 'web_commit_signoff_required'; - goto after_web_commit_signoff_required; + $missingFields[] = 'fork'; + goto after_fork; } - $properties['web_commit_signoff_required'] = $value; + $properties['fork'] = $value; - after_web_commit_signoff_required: + after_fork: - $value = $payload['subscribers_count'] ?? null; + $value = $payload['url'] ?? null; if ($value === null) { - $missingFields[] = 'subscribers_count'; - goto after_subscribers_count; + $missingFields[] = 'url'; + goto after_url; } - $properties['subscribers_count'] = $value; + $properties['url'] = $value; - after_subscribers_count: + after_url: - $value = $payload['network_count'] ?? null; + $value = $payload['archive_url'] ?? null; if ($value === null) { - $missingFields[] = 'network_count'; - goto after_network_count; + $missingFields[] = 'archive_url'; + goto after_archive_url; } - $properties['network_count'] = $value; + $properties['archive_url'] = $value; - after_network_count: + after_archive_url: - $value = $payload['open_issues'] ?? null; + $value = $payload['assignees_url'] ?? null; if ($value === null) { - $missingFields[] = 'open_issues'; - goto after_open_issues; + $missingFields[] = 'assignees_url'; + goto after_assignees_url; } - $properties['open_issues'] = $value; + $properties['assignees_url'] = $value; - after_open_issues: + after_assignees_url: - $value = $payload['watchers'] ?? null; + $value = $payload['blobs_url'] ?? null; if ($value === null) { - $missingFields[] = 'watchers'; - goto after_watchers; + $missingFields[] = 'blobs_url'; + goto after_blobs_url; } - $properties['watchers'] = $value; + $properties['blobs_url'] = $value; - after_watchers: + after_blobs_url: - $value = $payload['master_branch'] ?? null; + $value = $payload['branches_url'] ?? null; if ($value === null) { - $missingFields[] = 'master_branch'; - goto after_master_branch; + $missingFields[] = 'branches_url'; + goto after_branches_url; } - $properties['master_branch'] = $value; + $properties['branches_url'] = $value; - after_master_branch: + after_branches_url: - $value = $payload['starred_at'] ?? null; + $value = $payload['collaborators_url'] ?? null; if ($value === null) { - $missingFields[] = 'starred_at'; - goto after_starred_at; + $missingFields[] = 'collaborators_url'; + goto after_collaborators_url; } - $properties['starred_at'] = $value; + $properties['collaborators_url'] = $value; - after_starred_at: + after_collaborators_url: - $value = $payload['anonymous_access_enabled'] ?? null; + $value = $payload['comments_url'] ?? null; if ($value === null) { - $missingFields[] = 'anonymous_access_enabled'; - goto after_anonymous_access_enabled; + $missingFields[] = 'comments_url'; + goto after_comments_url; } - $properties['anonymous_access_enabled'] = $value; + $properties['comments_url'] = $value; - after_anonymous_access_enabled: - - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\Repository(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository', $exception, stack: $this->hydrationStack); - } - } + after_comments_url: - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser(array $payload): \ApiClients\Client\Github\Schema\SimpleUser - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['name'] ?? null; + $value = $payload['commits_url'] ?? null; if ($value === null) { - $missingFields[] = 'name'; - goto after_name; + $missingFields[] = 'commits_url'; + goto after_commits_url; } - $properties['name'] = $value; + $properties['commits_url'] = $value; - after_name: + after_commits_url: - $value = $payload['email'] ?? null; + $value = $payload['compare_url'] ?? null; if ($value === null) { - $missingFields[] = 'email'; - goto after_email; + $missingFields[] = 'compare_url'; + goto after_compare_url; } - $properties['email'] = $value; + $properties['compare_url'] = $value; - after_email: + after_compare_url: - $value = $payload['login'] ?? null; + $value = $payload['contents_url'] ?? null; if ($value === null) { - $missingFields[] = 'login'; - goto after_login; + $missingFields[] = 'contents_url'; + goto after_contents_url; } - $properties['login'] = $value; + $properties['contents_url'] = $value; - after_login: + after_contents_url: - $value = $payload['id'] ?? null; + $value = $payload['contributors_url'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'contributors_url'; + goto after_contributors_url; } - $properties['id'] = $value; + $properties['contributors_url'] = $value; - after_id: + after_contributors_url: - $value = $payload['node_id'] ?? null; + $value = $payload['deployments_url'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $missingFields[] = 'deployments_url'; + goto after_deployments_url; } - $properties['node_id'] = $value; + $properties['deployments_url'] = $value; - after_node_id: + after_deployments_url: - $value = $payload['avatar_url'] ?? null; + $value = $payload['downloads_url'] ?? null; if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatar_url; + $missingFields[] = 'downloads_url'; + goto after_downloads_url; } - $properties['avatar_url'] = $value; + $properties['downloads_url'] = $value; - after_avatar_url: + after_downloads_url: - $value = $payload['gravatar_id'] ?? null; + $value = $payload['events_url'] ?? null; if ($value === null) { - $missingFields[] = 'gravatar_id'; - goto after_gravatar_id; + $missingFields[] = 'events_url'; + goto after_events_url; } - $properties['gravatar_id'] = $value; + $properties['events_url'] = $value; - after_gravatar_id: + after_events_url: - $value = $payload['url'] ?? null; + $value = $payload['forks_url'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $missingFields[] = 'forks_url'; + goto after_forks_url; } - $properties['url'] = $value; + $properties['forks_url'] = $value; - after_url: + after_forks_url: - $value = $payload['html_url'] ?? null; + $value = $payload['git_commits_url'] ?? null; if ($value === null) { - $missingFields[] = 'html_url'; - goto after_html_url; + $missingFields[] = 'git_commits_url'; + goto after_git_commits_url; } - $properties['html_url'] = $value; + $properties['git_commits_url'] = $value; - after_html_url: + after_git_commits_url: - $value = $payload['followers_url'] ?? null; + $value = $payload['git_refs_url'] ?? null; if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followers_url; + $missingFields[] = 'git_refs_url'; + goto after_git_refs_url; } - $properties['followers_url'] = $value; + $properties['git_refs_url'] = $value; - after_followers_url: + after_git_refs_url: - $value = $payload['following_url'] ?? null; + $value = $payload['git_tags_url'] ?? null; if ($value === null) { - $missingFields[] = 'following_url'; - goto after_following_url; + $missingFields[] = 'git_tags_url'; + goto after_git_tags_url; } - $properties['following_url'] = $value; + $properties['git_tags_url'] = $value; - after_following_url: + after_git_tags_url: - $value = $payload['gists_url'] ?? null; + $value = $payload['git_url'] ?? null; if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gists_url; + $missingFields[] = 'git_url'; + goto after_git_url; } - $properties['gists_url'] = $value; + $properties['git_url'] = $value; - after_gists_url: + after_git_url: - $value = $payload['starred_url'] ?? null; + $value = $payload['issue_comment_url'] ?? null; if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starred_url; + $missingFields[] = 'issue_comment_url'; + goto after_issue_comment_url; } - $properties['starred_url'] = $value; + $properties['issue_comment_url'] = $value; - after_starred_url: + after_issue_comment_url: - $value = $payload['subscriptions_url'] ?? null; + $value = $payload['issue_events_url'] ?? null; if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptions_url; + $missingFields[] = 'issue_events_url'; + goto after_issue_events_url; } - $properties['subscriptions_url'] = $value; + $properties['issue_events_url'] = $value; - after_subscriptions_url: + after_issue_events_url: - $value = $payload['organizations_url'] ?? null; + $value = $payload['issues_url'] ?? null; if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizations_url; + $missingFields[] = 'issues_url'; + goto after_issues_url; } - $properties['organizations_url'] = $value; + $properties['issues_url'] = $value; - after_organizations_url: + after_issues_url: - $value = $payload['repos_url'] ?? null; + $value = $payload['keys_url'] ?? null; if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_repos_url; + $missingFields[] = 'keys_url'; + goto after_keys_url; } - $properties['repos_url'] = $value; + $properties['keys_url'] = $value; - after_repos_url: + after_keys_url: - $value = $payload['events_url'] ?? null; + $value = $payload['labels_url'] ?? null; if ($value === null) { - $missingFields[] = 'events_url'; - goto after_events_url; + $missingFields[] = 'labels_url'; + goto after_labels_url; } - $properties['events_url'] = $value; + $properties['labels_url'] = $value; - after_events_url: + after_labels_url: - $value = $payload['received_events_url'] ?? null; + $value = $payload['languages_url'] ?? null; if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_received_events_url; + $missingFields[] = 'languages_url'; + goto after_languages_url; } - $properties['received_events_url'] = $value; + $properties['languages_url'] = $value; - after_received_events_url: + after_languages_url: - $value = $payload['type'] ?? null; + $value = $payload['merges_url'] ?? null; if ($value === null) { - $missingFields[] = 'type'; - goto after_type; + $missingFields[] = 'merges_url'; + goto after_merges_url; } - $properties['type'] = $value; + $properties['merges_url'] = $value; - after_type: + after_merges_url: - $value = $payload['site_admin'] ?? null; + $value = $payload['milestones_url'] ?? null; if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_site_admin; + $missingFields[] = 'milestones_url'; + goto after_milestones_url; } - $properties['site_admin'] = $value; + $properties['milestones_url'] = $value; - after_site_admin: + after_milestones_url: - $value = $payload['starred_at'] ?? null; + $value = $payload['notifications_url'] ?? null; if ($value === null) { - $missingFields[] = 'starred_at'; - goto after_starred_at; + $missingFields[] = 'notifications_url'; + goto after_notifications_url; } - $properties['starred_at'] = $value; + $properties['notifications_url'] = $value; - after_starred_at: - - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleUser', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\SimpleUser::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\SimpleUser(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleUser', $exception, stack: $this->hydrationStack); - } - } + after_notifications_url: - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️Permissions(array $payload): \ApiClients\Client\Github\Schema\Repository\Permissions - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['admin'] ?? null; + $value = $payload['pulls_url'] ?? null; if ($value === null) { - $missingFields[] = 'admin'; - goto after_admin; + $missingFields[] = 'pulls_url'; + goto after_pulls_url; } - $properties['admin'] = $value; + $properties['pulls_url'] = $value; - after_admin: + after_pulls_url: - $value = $payload['pull'] ?? null; + $value = $payload['releases_url'] ?? null; if ($value === null) { - $missingFields[] = 'pull'; - goto after_pull; + $missingFields[] = 'releases_url'; + goto after_releases_url; } - $properties['pull'] = $value; + $properties['releases_url'] = $value; - after_pull: + after_releases_url: - $value = $payload['triage'] ?? null; + $value = $payload['ssh_url'] ?? null; if ($value === null) { - $missingFields[] = 'triage'; - goto after_triage; + $missingFields[] = 'ssh_url'; + goto after_ssh_url; } - $properties['triage'] = $value; + $properties['ssh_url'] = $value; - after_triage: + after_ssh_url: - $value = $payload['push'] ?? null; + $value = $payload['stargazers_url'] ?? null; if ($value === null) { - $missingFields[] = 'push'; - goto after_push; + $missingFields[] = 'stargazers_url'; + goto after_stargazers_url; } - $properties['push'] = $value; + $properties['stargazers_url'] = $value; - after_push: + after_stargazers_url: - $value = $payload['maintain'] ?? null; + $value = $payload['statuses_url'] ?? null; if ($value === null) { - $missingFields[] = 'maintain'; - goto after_maintain; + $missingFields[] = 'statuses_url'; + goto after_statuses_url; } - $properties['maintain'] = $value; + $properties['statuses_url'] = $value; - after_maintain: - - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\Permissions', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\Permissions::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\Repository\Permissions(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\Permissions', $exception, stack: $this->hydrationStack); - } - } + after_statuses_url: - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository(array $payload): \ApiClients\Client\Github\Schema\Repository\TemplateRepository - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['id'] ?? null; + $value = $payload['subscribers_url'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'subscribers_url'; + goto after_subscribers_url; } - $properties['id'] = $value; + $properties['subscribers_url'] = $value; - after_id: + after_subscribers_url: - $value = $payload['node_id'] ?? null; + $value = $payload['subscription_url'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $missingFields[] = 'subscription_url'; + goto after_subscription_url; } - $properties['node_id'] = $value; + $properties['subscription_url'] = $value; - after_node_id: + after_subscription_url: - $value = $payload['name'] ?? null; + $value = $payload['tags_url'] ?? null; if ($value === null) { - $missingFields[] = 'name'; - goto after_name; + $missingFields[] = 'tags_url'; + goto after_tags_url; } - $properties['name'] = $value; + $properties['tags_url'] = $value; - after_name: + after_tags_url: - $value = $payload['full_name'] ?? null; + $value = $payload['teams_url'] ?? null; if ($value === null) { - $missingFields[] = 'full_name'; - goto after_full_name; + $missingFields[] = 'teams_url'; + goto after_teams_url; } - $properties['full_name'] = $value; + $properties['teams_url'] = $value; - after_full_name: + after_teams_url: - $value = $payload['owner'] ?? null; + $value = $payload['trees_url'] ?? null; if ($value === null) { - $missingFields[] = 'owner'; - goto after_owner; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'owner'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'trees_url'; + goto after_trees_url; } - $properties['owner'] = $value; + $properties['trees_url'] = $value; - after_owner: + after_trees_url: - $value = $payload['private'] ?? null; + $value = $payload['clone_url'] ?? null; if ($value === null) { - $missingFields[] = 'private'; - goto after_private; + $missingFields[] = 'clone_url'; + goto after_clone_url; } - $properties['private'] = $value; + $properties['clone_url'] = $value; - after_private: + after_clone_url: - $value = $payload['html_url'] ?? null; + $value = $payload['mirror_url'] ?? null; if ($value === null) { - $missingFields[] = 'html_url'; - goto after_html_url; + $missingFields[] = 'mirror_url'; + goto after_mirror_url; } - $properties['html_url'] = $value; + $properties['mirror_url'] = $value; - after_html_url: + after_mirror_url: - $value = $payload['description'] ?? null; + $value = $payload['hooks_url'] ?? null; if ($value === null) { - $missingFields[] = 'description'; - goto after_description; + $missingFields[] = 'hooks_url'; + goto after_hooks_url; } - $properties['description'] = $value; + $properties['hooks_url'] = $value; - after_description: + after_hooks_url: - $value = $payload['fork'] ?? null; + $value = $payload['svn_url'] ?? null; if ($value === null) { - $missingFields[] = 'fork'; - goto after_fork; + $missingFields[] = 'svn_url'; + goto after_svn_url; } - $properties['fork'] = $value; + $properties['svn_url'] = $value; - after_fork: + after_svn_url: - $value = $payload['url'] ?? null; + $value = $payload['homepage'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $missingFields[] = 'homepage'; + goto after_homepage; } - $properties['url'] = $value; + $properties['homepage'] = $value; - after_url: + after_homepage: - $value = $payload['archive_url'] ?? null; + $value = $payload['language'] ?? null; if ($value === null) { - $missingFields[] = 'archive_url'; - goto after_archive_url; + $missingFields[] = 'language'; + goto after_language; } - $properties['archive_url'] = $value; + $properties['language'] = $value; - after_archive_url: + after_language: - $value = $payload['assignees_url'] ?? null; + $value = $payload['forks_count'] ?? null; if ($value === null) { - $missingFields[] = 'assignees_url'; - goto after_assignees_url; + $missingFields[] = 'forks_count'; + goto after_forks_count; } - $properties['assignees_url'] = $value; + $properties['forks_count'] = $value; - after_assignees_url: + after_forks_count: - $value = $payload['blobs_url'] ?? null; + $value = $payload['stargazers_count'] ?? null; if ($value === null) { - $missingFields[] = 'blobs_url'; - goto after_blobs_url; + $missingFields[] = 'stargazers_count'; + goto after_stargazers_count; } - $properties['blobs_url'] = $value; + $properties['stargazers_count'] = $value; - after_blobs_url: + after_stargazers_count: - $value = $payload['branches_url'] ?? null; + $value = $payload['watchers_count'] ?? null; if ($value === null) { - $missingFields[] = 'branches_url'; - goto after_branches_url; + $missingFields[] = 'watchers_count'; + goto after_watchers_count; } - $properties['branches_url'] = $value; + $properties['watchers_count'] = $value; - after_branches_url: + after_watchers_count: - $value = $payload['collaborators_url'] ?? null; + $value = $payload['size'] ?? null; if ($value === null) { - $missingFields[] = 'collaborators_url'; - goto after_collaborators_url; + $missingFields[] = 'size'; + goto after_size; } - $properties['collaborators_url'] = $value; + $properties['size'] = $value; - after_collaborators_url: + after_size: - $value = $payload['comments_url'] ?? null; + $value = $payload['default_branch'] ?? null; if ($value === null) { - $missingFields[] = 'comments_url'; - goto after_comments_url; + $missingFields[] = 'default_branch'; + goto after_default_branch; } - $properties['comments_url'] = $value; + $properties['default_branch'] = $value; - after_comments_url: + after_default_branch: - $value = $payload['commits_url'] ?? null; + $value = $payload['open_issues_count'] ?? null; if ($value === null) { - $missingFields[] = 'commits_url'; - goto after_commits_url; + $missingFields[] = 'open_issues_count'; + goto after_open_issues_count; } - $properties['commits_url'] = $value; + $properties['open_issues_count'] = $value; - after_commits_url: + after_open_issues_count: - $value = $payload['compare_url'] ?? null; + $value = $payload['is_template'] ?? null; if ($value === null) { - $missingFields[] = 'compare_url'; - goto after_compare_url; + $missingFields[] = 'is_template'; + goto after_is_template; } - $properties['compare_url'] = $value; + $properties['is_template'] = $value; - after_compare_url: + after_is_template: - $value = $payload['contents_url'] ?? null; + $value = $payload['topics'] ?? null; if ($value === null) { - $missingFields[] = 'contents_url'; - goto after_contents_url; + $missingFields[] = 'topics'; + goto after_topics; } - $properties['contents_url'] = $value; + $properties['topics'] = $value; - after_contents_url: + after_topics: - $value = $payload['contributors_url'] ?? null; + $value = $payload['has_issues'] ?? null; if ($value === null) { - $missingFields[] = 'contributors_url'; - goto after_contributors_url; + $missingFields[] = 'has_issues'; + goto after_has_issues; } - $properties['contributors_url'] = $value; + $properties['has_issues'] = $value; - after_contributors_url: + after_has_issues: - $value = $payload['deployments_url'] ?? null; + $value = $payload['has_projects'] ?? null; if ($value === null) { - $missingFields[] = 'deployments_url'; - goto after_deployments_url; + $missingFields[] = 'has_projects'; + goto after_has_projects; } - $properties['deployments_url'] = $value; + $properties['has_projects'] = $value; - after_deployments_url: + after_has_projects: - $value = $payload['downloads_url'] ?? null; + $value = $payload['has_wiki'] ?? null; if ($value === null) { - $missingFields[] = 'downloads_url'; - goto after_downloads_url; + $missingFields[] = 'has_wiki'; + goto after_has_wiki; } - $properties['downloads_url'] = $value; + $properties['has_wiki'] = $value; - after_downloads_url: + after_has_wiki: - $value = $payload['events_url'] ?? null; + $value = $payload['has_pages'] ?? null; if ($value === null) { - $missingFields[] = 'events_url'; - goto after_events_url; + $missingFields[] = 'has_pages'; + goto after_has_pages; } - $properties['events_url'] = $value; + $properties['has_pages'] = $value; - after_events_url: + after_has_pages: - $value = $payload['forks_url'] ?? null; + $value = $payload['has_downloads'] ?? null; if ($value === null) { - $missingFields[] = 'forks_url'; - goto after_forks_url; + $missingFields[] = 'has_downloads'; + goto after_has_downloads; } - $properties['forks_url'] = $value; + $properties['has_downloads'] = $value; - after_forks_url: + after_has_downloads: - $value = $payload['git_commits_url'] ?? null; + $value = $payload['has_discussions'] ?? null; if ($value === null) { - $missingFields[] = 'git_commits_url'; - goto after_git_commits_url; + $missingFields[] = 'has_discussions'; + goto after_has_discussions; } - $properties['git_commits_url'] = $value; + $properties['has_discussions'] = $value; - after_git_commits_url: + after_has_discussions: - $value = $payload['git_refs_url'] ?? null; + $value = $payload['archived'] ?? null; if ($value === null) { - $missingFields[] = 'git_refs_url'; - goto after_git_refs_url; + $missingFields[] = 'archived'; + goto after_archived; } - $properties['git_refs_url'] = $value; + $properties['archived'] = $value; - after_git_refs_url: + after_archived: - $value = $payload['git_tags_url'] ?? null; + $value = $payload['disabled'] ?? null; if ($value === null) { - $missingFields[] = 'git_tags_url'; - goto after_git_tags_url; + $missingFields[] = 'disabled'; + goto after_disabled; } - $properties['git_tags_url'] = $value; + $properties['disabled'] = $value; - after_git_tags_url: + after_disabled: - $value = $payload['git_url'] ?? null; + $value = $payload['visibility'] ?? null; if ($value === null) { - $missingFields[] = 'git_url'; - goto after_git_url; + $missingFields[] = 'visibility'; + goto after_visibility; } - $properties['git_url'] = $value; + $properties['visibility'] = $value; - after_git_url: + after_visibility: - $value = $payload['issue_comment_url'] ?? null; + $value = $payload['pushed_at'] ?? null; if ($value === null) { - $missingFields[] = 'issue_comment_url'; - goto after_issue_comment_url; + $missingFields[] = 'pushed_at'; + goto after_pushed_at; } - $properties['issue_comment_url'] = $value; + $properties['pushed_at'] = $value; - after_issue_comment_url: + after_pushed_at: - $value = $payload['issue_events_url'] ?? null; + $value = $payload['created_at'] ?? null; if ($value === null) { - $missingFields[] = 'issue_events_url'; - goto after_issue_events_url; + $missingFields[] = 'created_at'; + goto after_created_at; } - $properties['issue_events_url'] = $value; + $properties['created_at'] = $value; - after_issue_events_url: + after_created_at: - $value = $payload['issues_url'] ?? null; + $value = $payload['updated_at'] ?? null; if ($value === null) { - $missingFields[] = 'issues_url'; - goto after_issues_url; + $missingFields[] = 'updated_at'; + goto after_updated_at; } - $properties['issues_url'] = $value; + $properties['updated_at'] = $value; - after_issues_url: + after_updated_at: - $value = $payload['keys_url'] ?? null; + $value = $payload['allow_rebase_merge'] ?? null; if ($value === null) { - $missingFields[] = 'keys_url'; - goto after_keys_url; + $missingFields[] = 'allow_rebase_merge'; + goto after_allow_rebase_merge; } - $properties['keys_url'] = $value; + $properties['allow_rebase_merge'] = $value; - after_keys_url: + after_allow_rebase_merge: - $value = $payload['labels_url'] ?? null; + $value = $payload['template_repository'] ?? null; if ($value === null) { - $missingFields[] = 'labels_url'; - goto after_labels_url; + $missingFields[] = 'template_repository'; + goto after_template_repository; } - $properties['labels_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'template_repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['template_repository'] = $value; - after_labels_url: + after_template_repository: - $value = $payload['languages_url'] ?? null; + $value = $payload['temp_clone_token'] ?? null; if ($value === null) { - $missingFields[] = 'languages_url'; - goto after_languages_url; + $missingFields[] = 'temp_clone_token'; + goto after_temp_clone_token; } - $properties['languages_url'] = $value; + $properties['temp_clone_token'] = $value; - after_languages_url: + after_temp_clone_token: - $value = $payload['merges_url'] ?? null; + $value = $payload['allow_squash_merge'] ?? null; if ($value === null) { - $missingFields[] = 'merges_url'; - goto after_merges_url; + $missingFields[] = 'allow_squash_merge'; + goto after_allow_squash_merge; } - $properties['merges_url'] = $value; + $properties['allow_squash_merge'] = $value; - after_merges_url: + after_allow_squash_merge: - $value = $payload['milestones_url'] ?? null; + $value = $payload['allow_auto_merge'] ?? null; if ($value === null) { - $missingFields[] = 'milestones_url'; - goto after_milestones_url; + $missingFields[] = 'allow_auto_merge'; + goto after_allow_auto_merge; } - $properties['milestones_url'] = $value; + $properties['allow_auto_merge'] = $value; - after_milestones_url: + after_allow_auto_merge: - $value = $payload['notifications_url'] ?? null; + $value = $payload['delete_branch_on_merge'] ?? null; if ($value === null) { - $missingFields[] = 'notifications_url'; - goto after_notifications_url; + $missingFields[] = 'delete_branch_on_merge'; + goto after_delete_branch_on_merge; } - $properties['notifications_url'] = $value; + $properties['delete_branch_on_merge'] = $value; - after_notifications_url: + after_delete_branch_on_merge: - $value = $payload['pulls_url'] ?? null; + $value = $payload['allow_update_branch'] ?? null; if ($value === null) { - $missingFields[] = 'pulls_url'; - goto after_pulls_url; + $missingFields[] = 'allow_update_branch'; + goto after_allow_update_branch; } - $properties['pulls_url'] = $value; + $properties['allow_update_branch'] = $value; - after_pulls_url: + after_allow_update_branch: - $value = $payload['releases_url'] ?? null; + $value = $payload['use_squash_pr_title_as_default'] ?? null; if ($value === null) { - $missingFields[] = 'releases_url'; - goto after_releases_url; + $missingFields[] = 'use_squash_pr_title_as_default'; + goto after_use_squash_pr_title_as_default; } - $properties['releases_url'] = $value; + $properties['use_squash_pr_title_as_default'] = $value; - after_releases_url: + after_use_squash_pr_title_as_default: - $value = $payload['ssh_url'] ?? null; + $value = $payload['squash_merge_commit_title'] ?? null; if ($value === null) { - $missingFields[] = 'ssh_url'; - goto after_ssh_url; + $missingFields[] = 'squash_merge_commit_title'; + goto after_squash_merge_commit_title; } - $properties['ssh_url'] = $value; + $properties['squash_merge_commit_title'] = $value; - after_ssh_url: + after_squash_merge_commit_title: - $value = $payload['stargazers_url'] ?? null; + $value = $payload['squash_merge_commit_message'] ?? null; if ($value === null) { - $missingFields[] = 'stargazers_url'; - goto after_stargazers_url; + $missingFields[] = 'squash_merge_commit_message'; + goto after_squash_merge_commit_message; } - $properties['stargazers_url'] = $value; + $properties['squash_merge_commit_message'] = $value; - after_stargazers_url: + after_squash_merge_commit_message: - $value = $payload['statuses_url'] ?? null; + $value = $payload['merge_commit_title'] ?? null; if ($value === null) { - $missingFields[] = 'statuses_url'; - goto after_statuses_url; + $missingFields[] = 'merge_commit_title'; + goto after_merge_commit_title; } - $properties['statuses_url'] = $value; + $properties['merge_commit_title'] = $value; - after_statuses_url: + after_merge_commit_title: - $value = $payload['subscribers_url'] ?? null; + $value = $payload['merge_commit_message'] ?? null; if ($value === null) { - $missingFields[] = 'subscribers_url'; - goto after_subscribers_url; + $missingFields[] = 'merge_commit_message'; + goto after_merge_commit_message; } - $properties['subscribers_url'] = $value; + $properties['merge_commit_message'] = $value; - after_subscribers_url: + after_merge_commit_message: - $value = $payload['subscription_url'] ?? null; + $value = $payload['allow_merge_commit'] ?? null; if ($value === null) { - $missingFields[] = 'subscription_url'; - goto after_subscription_url; + $missingFields[] = 'allow_merge_commit'; + goto after_allow_merge_commit; } - $properties['subscription_url'] = $value; + $properties['allow_merge_commit'] = $value; - after_subscription_url: + after_allow_merge_commit: - $value = $payload['tags_url'] ?? null; + $value = $payload['allow_forking'] ?? null; if ($value === null) { - $missingFields[] = 'tags_url'; - goto after_tags_url; + $missingFields[] = 'allow_forking'; + goto after_allow_forking; } - $properties['tags_url'] = $value; + $properties['allow_forking'] = $value; - after_tags_url: + after_allow_forking: - $value = $payload['teams_url'] ?? null; + $value = $payload['web_commit_signoff_required'] ?? null; if ($value === null) { - $missingFields[] = 'teams_url'; - goto after_teams_url; + $missingFields[] = 'web_commit_signoff_required'; + goto after_web_commit_signoff_required; } - $properties['teams_url'] = $value; + $properties['web_commit_signoff_required'] = $value; - after_teams_url: + after_web_commit_signoff_required: - $value = $payload['trees_url'] ?? null; + $value = $payload['subscribers_count'] ?? null; if ($value === null) { - $missingFields[] = 'trees_url'; - goto after_trees_url; + $missingFields[] = 'subscribers_count'; + goto after_subscribers_count; } - $properties['trees_url'] = $value; + $properties['subscribers_count'] = $value; - after_trees_url: + after_subscribers_count: - $value = $payload['clone_url'] ?? null; + $value = $payload['network_count'] ?? null; if ($value === null) { - $missingFields[] = 'clone_url'; - goto after_clone_url; + $missingFields[] = 'network_count'; + goto after_network_count; } - $properties['clone_url'] = $value; + $properties['network_count'] = $value; - after_clone_url: + after_network_count: - $value = $payload['mirror_url'] ?? null; + $value = $payload['open_issues'] ?? null; if ($value === null) { - $missingFields[] = 'mirror_url'; - goto after_mirror_url; + $missingFields[] = 'open_issues'; + goto after_open_issues; } - $properties['mirror_url'] = $value; + $properties['open_issues'] = $value; - after_mirror_url: + after_open_issues: - $value = $payload['hooks_url'] ?? null; + $value = $payload['watchers'] ?? null; if ($value === null) { - $missingFields[] = 'hooks_url'; - goto after_hooks_url; + $missingFields[] = 'watchers'; + goto after_watchers; } - $properties['hooks_url'] = $value; + $properties['watchers'] = $value; - after_hooks_url: + after_watchers: - $value = $payload['svn_url'] ?? null; + $value = $payload['master_branch'] ?? null; if ($value === null) { - $missingFields[] = 'svn_url'; - goto after_svn_url; + $missingFields[] = 'master_branch'; + goto after_master_branch; } - $properties['svn_url'] = $value; + $properties['master_branch'] = $value; - after_svn_url: + after_master_branch: - $value = $payload['homepage'] ?? null; + $value = $payload['starred_at'] ?? null; if ($value === null) { - $missingFields[] = 'homepage'; - goto after_homepage; + $missingFields[] = 'starred_at'; + goto after_starred_at; } - $properties['homepage'] = $value; + $properties['starred_at'] = $value; - after_homepage: + after_starred_at: - $value = $payload['language'] ?? null; + $value = $payload['anonymous_access_enabled'] ?? null; if ($value === null) { - $missingFields[] = 'language'; - goto after_language; + $missingFields[] = 'anonymous_access_enabled'; + goto after_anonymous_access_enabled; } - $properties['language'] = $value; + $properties['anonymous_access_enabled'] = $value; - after_language: + after_anonymous_access_enabled: - $value = $payload['forks_count'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\Repository(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser(array $payload): \ApiClients\Client\Github\Schema\SimpleUser + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['name'] ?? null; if ($value === null) { - $missingFields[] = 'forks_count'; - goto after_forks_count; + $missingFields[] = 'name'; + goto after_name; } - $properties['forks_count'] = $value; + $properties['name'] = $value; - after_forks_count: + after_name: - $value = $payload['stargazers_count'] ?? null; + $value = $payload['email'] ?? null; if ($value === null) { - $missingFields[] = 'stargazers_count'; - goto after_stargazers_count; + $missingFields[] = 'email'; + goto after_email; } - $properties['stargazers_count'] = $value; + $properties['email'] = $value; - after_stargazers_count: + after_email: - $value = $payload['watchers_count'] ?? null; + $value = $payload['login'] ?? null; if ($value === null) { - $missingFields[] = 'watchers_count'; - goto after_watchers_count; + $missingFields[] = 'login'; + goto after_login; } - $properties['watchers_count'] = $value; + $properties['login'] = $value; - after_watchers_count: + after_login: - $value = $payload['size'] ?? null; + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'size'; - goto after_size; + $missingFields[] = 'id'; + goto after_id; } - $properties['size'] = $value; + $properties['id'] = $value; - after_size: + after_id: - $value = $payload['default_branch'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $missingFields[] = 'default_branch'; - goto after_default_branch; + $missingFields[] = 'node_id'; + goto after_node_id; } - $properties['default_branch'] = $value; + $properties['node_id'] = $value; - after_default_branch: + after_node_id: - $value = $payload['open_issues_count'] ?? null; + $value = $payload['avatar_url'] ?? null; if ($value === null) { - $missingFields[] = 'open_issues_count'; - goto after_open_issues_count; + $missingFields[] = 'avatar_url'; + goto after_avatar_url; } - $properties['open_issues_count'] = $value; + $properties['avatar_url'] = $value; - after_open_issues_count: + after_avatar_url: - $value = $payload['is_template'] ?? null; + $value = $payload['gravatar_id'] ?? null; if ($value === null) { - $missingFields[] = 'is_template'; - goto after_is_template; + $missingFields[] = 'gravatar_id'; + goto after_gravatar_id; } - $properties['is_template'] = $value; + $properties['gravatar_id'] = $value; - after_is_template: + after_gravatar_id: - $value = $payload['topics'] ?? null; + $value = $payload['url'] ?? null; if ($value === null) { - $missingFields[] = 'topics'; - goto after_topics; + $missingFields[] = 'url'; + goto after_url; } - $properties['topics'] = $value; + $properties['url'] = $value; - after_topics: + after_url: - $value = $payload['has_issues'] ?? null; + $value = $payload['html_url'] ?? null; if ($value === null) { - $missingFields[] = 'has_issues'; - goto after_has_issues; + $missingFields[] = 'html_url'; + goto after_html_url; } - $properties['has_issues'] = $value; + $properties['html_url'] = $value; - after_has_issues: + after_html_url: - $value = $payload['has_projects'] ?? null; + $value = $payload['followers_url'] ?? null; if ($value === null) { - $missingFields[] = 'has_projects'; - goto after_has_projects; + $missingFields[] = 'followers_url'; + goto after_followers_url; } - $properties['has_projects'] = $value; + $properties['followers_url'] = $value; - after_has_projects: + after_followers_url: - $value = $payload['has_wiki'] ?? null; + $value = $payload['following_url'] ?? null; if ($value === null) { - $missingFields[] = 'has_wiki'; - goto after_has_wiki; + $missingFields[] = 'following_url'; + goto after_following_url; } - $properties['has_wiki'] = $value; + $properties['following_url'] = $value; - after_has_wiki: + after_following_url: - $value = $payload['has_pages'] ?? null; + $value = $payload['gists_url'] ?? null; if ($value === null) { - $missingFields[] = 'has_pages'; - goto after_has_pages; + $missingFields[] = 'gists_url'; + goto after_gists_url; } - $properties['has_pages'] = $value; + $properties['gists_url'] = $value; - after_has_pages: + after_gists_url: - $value = $payload['has_downloads'] ?? null; + $value = $payload['starred_url'] ?? null; if ($value === null) { - $missingFields[] = 'has_downloads'; - goto after_has_downloads; + $missingFields[] = 'starred_url'; + goto after_starred_url; } - $properties['has_downloads'] = $value; + $properties['starred_url'] = $value; - after_has_downloads: + after_starred_url: - $value = $payload['archived'] ?? null; + $value = $payload['subscriptions_url'] ?? null; if ($value === null) { - $missingFields[] = 'archived'; - goto after_archived; + $missingFields[] = 'subscriptions_url'; + goto after_subscriptions_url; } - $properties['archived'] = $value; + $properties['subscriptions_url'] = $value; - after_archived: + after_subscriptions_url: - $value = $payload['disabled'] ?? null; + $value = $payload['organizations_url'] ?? null; if ($value === null) { - $missingFields[] = 'disabled'; - goto after_disabled; + $missingFields[] = 'organizations_url'; + goto after_organizations_url; } - $properties['disabled'] = $value; + $properties['organizations_url'] = $value; - after_disabled: + after_organizations_url: - $value = $payload['visibility'] ?? null; + $value = $payload['repos_url'] ?? null; if ($value === null) { - $missingFields[] = 'visibility'; - goto after_visibility; + $missingFields[] = 'repos_url'; + goto after_repos_url; } - $properties['visibility'] = $value; + $properties['repos_url'] = $value; - after_visibility: + after_repos_url: - $value = $payload['pushed_at'] ?? null; + $value = $payload['events_url'] ?? null; if ($value === null) { - $missingFields[] = 'pushed_at'; - goto after_pushed_at; + $missingFields[] = 'events_url'; + goto after_events_url; } - $properties['pushed_at'] = $value; + $properties['events_url'] = $value; - after_pushed_at: + after_events_url: - $value = $payload['created_at'] ?? null; + $value = $payload['received_events_url'] ?? null; if ($value === null) { - $missingFields[] = 'created_at'; - goto after_created_at; + $missingFields[] = 'received_events_url'; + goto after_received_events_url; } - $properties['created_at'] = $value; + $properties['received_events_url'] = $value; - after_created_at: + after_received_events_url: - $value = $payload['updated_at'] ?? null; + $value = $payload['type'] ?? null; if ($value === null) { - $missingFields[] = 'updated_at'; - goto after_updated_at; + $missingFields[] = 'type'; + goto after_type; } - $properties['updated_at'] = $value; + $properties['type'] = $value; - after_updated_at: + after_type: - $value = $payload['permissions'] ?? null; + $value = $payload['site_admin'] ?? null; if ($value === null) { - $missingFields[] = 'permissions'; - goto after_permissions; + $missingFields[] = 'site_admin'; + goto after_site_admin; + } + + $properties['site_admin'] = $value; + + after_site_admin: + + $value = $payload['starred_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'starred_at'; + goto after_starred_at; + } + + $properties['starred_at'] = $value; + + after_starred_at: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleUser', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\SimpleUser::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\SimpleUser(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleUser', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookReleaseEdited⚡️Changes(array $payload): \ApiClients\Client\Github\Schema\WebhookReleaseEdited\Changes + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['body'] ?? null; + + if ($value === null) { + $missingFields[] = 'body'; + goto after_body; } if (is_array($value)) { try { - $this->hydrationStack[] = 'permissions'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Permissions($value); + $this->hydrationStack[] = 'body'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectEdited⚡️Changes⚡️Body($value); } finally { array_pop($this->hydrationStack); } } - $properties['permissions'] = $value; + $properties['body'] = $value; - after_permissions: + after_body: - $value = $payload['allow_rebase_merge'] ?? null; + $value = $payload['name'] ?? null; if ($value === null) { - $missingFields[] = 'allow_rebase_merge'; - goto after_allow_rebase_merge; + $missingFields[] = 'name'; + goto after_name; } - $properties['allow_rebase_merge'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'name'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookLabelEdited⚡️Changes⚡️Name($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['name'] = $value; - after_allow_rebase_merge: + after_name: - $value = $payload['temp_clone_token'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookReleaseEdited\Changes', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookReleaseEdited\Changes::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookReleaseEdited\Changes(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookReleaseEdited\Changes', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy(array $payload): \ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['avatar_url'] ?? null; if ($value === null) { - $missingFields[] = 'temp_clone_token'; - goto after_temp_clone_token; + $missingFields[] = 'avatar_url'; + goto after_avatar_url; } - $properties['temp_clone_token'] = $value; + $properties['avatar_url'] = $value; - after_temp_clone_token: + after_avatar_url: - $value = $payload['allow_squash_merge'] ?? null; + $value = $payload['deleted'] ?? null; if ($value === null) { - $missingFields[] = 'allow_squash_merge'; - goto after_allow_squash_merge; + $missingFields[] = 'deleted'; + goto after_deleted; } - $properties['allow_squash_merge'] = $value; + $properties['deleted'] = $value; - after_allow_squash_merge: + after_deleted: - $value = $payload['allow_auto_merge'] ?? null; + $value = $payload['email'] ?? null; if ($value === null) { - $missingFields[] = 'allow_auto_merge'; - goto after_allow_auto_merge; + $missingFields[] = 'email'; + goto after_email; } - $properties['allow_auto_merge'] = $value; + $properties['email'] = $value; - after_allow_auto_merge: + after_email: - $value = $payload['delete_branch_on_merge'] ?? null; + $value = $payload['events_url'] ?? null; if ($value === null) { - $missingFields[] = 'delete_branch_on_merge'; - goto after_delete_branch_on_merge; + $missingFields[] = 'events_url'; + goto after_events_url; } - $properties['delete_branch_on_merge'] = $value; + $properties['events_url'] = $value; - after_delete_branch_on_merge: + after_events_url: - $value = $payload['allow_update_branch'] ?? null; + $value = $payload['followers_url'] ?? null; if ($value === null) { - $missingFields[] = 'allow_update_branch'; - goto after_allow_update_branch; + $missingFields[] = 'followers_url'; + goto after_followers_url; } - $properties['allow_update_branch'] = $value; + $properties['followers_url'] = $value; - after_allow_update_branch: + after_followers_url: - $value = $payload['use_squash_pr_title_as_default'] ?? null; + $value = $payload['following_url'] ?? null; if ($value === null) { - $missingFields[] = 'use_squash_pr_title_as_default'; - goto after_use_squash_pr_title_as_default; + $missingFields[] = 'following_url'; + goto after_following_url; } - $properties['use_squash_pr_title_as_default'] = $value; + $properties['following_url'] = $value; - after_use_squash_pr_title_as_default: + after_following_url: - $value = $payload['squash_merge_commit_title'] ?? null; + $value = $payload['gists_url'] ?? null; if ($value === null) { - $missingFields[] = 'squash_merge_commit_title'; - goto after_squash_merge_commit_title; + $missingFields[] = 'gists_url'; + goto after_gists_url; } - $properties['squash_merge_commit_title'] = $value; + $properties['gists_url'] = $value; - after_squash_merge_commit_title: + after_gists_url: - $value = $payload['squash_merge_commit_message'] ?? null; + $value = $payload['gravatar_id'] ?? null; if ($value === null) { - $missingFields[] = 'squash_merge_commit_message'; - goto after_squash_merge_commit_message; + $missingFields[] = 'gravatar_id'; + goto after_gravatar_id; } - $properties['squash_merge_commit_message'] = $value; + $properties['gravatar_id'] = $value; - after_squash_merge_commit_message: + after_gravatar_id: - $value = $payload['merge_commit_title'] ?? null; + $value = $payload['html_url'] ?? null; if ($value === null) { - $missingFields[] = 'merge_commit_title'; - goto after_merge_commit_title; + $missingFields[] = 'html_url'; + goto after_html_url; } - $properties['merge_commit_title'] = $value; + $properties['html_url'] = $value; - after_merge_commit_title: + after_html_url: - $value = $payload['merge_commit_message'] ?? null; + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'merge_commit_message'; - goto after_merge_commit_message; + $missingFields[] = 'id'; + goto after_id; } - $properties['merge_commit_message'] = $value; + $properties['id'] = $value; - after_merge_commit_message: + after_id: - $value = $payload['allow_merge_commit'] ?? null; + $value = $payload['login'] ?? null; if ($value === null) { - $missingFields[] = 'allow_merge_commit'; - goto after_allow_merge_commit; + $missingFields[] = 'login'; + goto after_login; } - $properties['allow_merge_commit'] = $value; + $properties['login'] = $value; - after_allow_merge_commit: + after_login: - $value = $payload['subscribers_count'] ?? null; + $value = $payload['name'] ?? null; if ($value === null) { - $missingFields[] = 'subscribers_count'; - goto after_subscribers_count; + $missingFields[] = 'name'; + goto after_name; } - $properties['subscribers_count'] = $value; + $properties['name'] = $value; - after_subscribers_count: + after_name: - $value = $payload['network_count'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $missingFields[] = 'network_count'; - goto after_network_count; + $missingFields[] = 'node_id'; + goto after_node_id; } - $properties['network_count'] = $value; + $properties['node_id'] = $value; - after_network_count: + after_node_id: - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\TemplateRepository::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\Repository\TemplateRepository(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository', $exception, stack: $this->hydrationStack); - } - } + $value = $payload['organizations_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'organizations_url'; + goto after_organizations_url; + } - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner(array $payload): \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['login'] ?? null; + $properties['organizations_url'] = $value; + + after_organizations_url: + + $value = $payload['received_events_url'] ?? null; if ($value === null) { - $missingFields[] = 'login'; - goto after_login; + $missingFields[] = 'received_events_url'; + goto after_received_events_url; } - $properties['login'] = $value; + $properties['received_events_url'] = $value; - after_login: + after_received_events_url: - $value = $payload['id'] ?? null; + $value = $payload['repos_url'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'repos_url'; + goto after_repos_url; } - $properties['id'] = $value; + $properties['repos_url'] = $value; - after_id: + after_repos_url: - $value = $payload['node_id'] ?? null; + $value = $payload['site_admin'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $missingFields[] = 'site_admin'; + goto after_site_admin; } - $properties['node_id'] = $value; + $properties['site_admin'] = $value; - after_node_id: + after_site_admin: - $value = $payload['avatar_url'] ?? null; + $value = $payload['starred_url'] ?? null; if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatar_url; + $missingFields[] = 'starred_url'; + goto after_starred_url; } - $properties['avatar_url'] = $value; + $properties['starred_url'] = $value; - after_avatar_url: + after_starred_url: - $value = $payload['gravatar_id'] ?? null; + $value = $payload['subscriptions_url'] ?? null; if ($value === null) { - $missingFields[] = 'gravatar_id'; - goto after_gravatar_id; + $missingFields[] = 'subscriptions_url'; + goto after_subscriptions_url; } - $properties['gravatar_id'] = $value; + $properties['subscriptions_url'] = $value; - after_gravatar_id: + after_subscriptions_url: + + $value = $payload['type'] ?? null; + + if ($value === null) { + $missingFields[] = 'type'; + goto after_type; + } + + $properties['type'] = $value; + + after_type: $value = $payload['url'] ?? null; @@ -3049,155 +3394,155 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repo after_url: - $value = $payload['html_url'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️Reactions(array $payload): \ApiClients\Client\Github\Schema\Discussion\Reactions + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['__p_l_u_s_e_s_1'] ?? null; if ($value === null) { - $missingFields[] = 'html_url'; - goto after_html_url; + $missingFields[] = '__p_l_u_s_e_s_1'; + goto after__PLUSES_1; } - $properties['html_url'] = $value; + $properties['_PLUSES_1'] = $value; - after_html_url: + after__PLUSES_1: - $value = $payload['followers_url'] ?? null; + $value = $payload['__m_i_n_u_s_1'] ?? null; if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followers_url; + $missingFields[] = '__m_i_n_u_s_1'; + goto after__MINUS_1; } - $properties['followers_url'] = $value; + $properties['_MINUS_1'] = $value; - after_followers_url: + after__MINUS_1: - $value = $payload['following_url'] ?? null; + $value = $payload['confused'] ?? null; if ($value === null) { - $missingFields[] = 'following_url'; - goto after_following_url; + $missingFields[] = 'confused'; + goto after_confused; } - $properties['following_url'] = $value; + $properties['confused'] = $value; - after_following_url: + after_confused: - $value = $payload['gists_url'] ?? null; + $value = $payload['eyes'] ?? null; if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gists_url; + $missingFields[] = 'eyes'; + goto after_eyes; } - $properties['gists_url'] = $value; + $properties['eyes'] = $value; - after_gists_url: + after_eyes: - $value = $payload['starred_url'] ?? null; + $value = $payload['heart'] ?? null; if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starred_url; + $missingFields[] = 'heart'; + goto after_heart; } - $properties['starred_url'] = $value; + $properties['heart'] = $value; - after_starred_url: + after_heart: - $value = $payload['subscriptions_url'] ?? null; + $value = $payload['hooray'] ?? null; if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptions_url; + $missingFields[] = 'hooray'; + goto after_hooray; } - $properties['subscriptions_url'] = $value; + $properties['hooray'] = $value; - after_subscriptions_url: + after_hooray: - $value = $payload['organizations_url'] ?? null; + $value = $payload['laugh'] ?? null; if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizations_url; + $missingFields[] = 'laugh'; + goto after_laugh; } - $properties['organizations_url'] = $value; + $properties['laugh'] = $value; - after_organizations_url: + after_laugh: - $value = $payload['repos_url'] ?? null; + $value = $payload['rocket'] ?? null; if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_repos_url; + $missingFields[] = 'rocket'; + goto after_rocket; } - $properties['repos_url'] = $value; + $properties['rocket'] = $value; - after_repos_url: + after_rocket: - $value = $payload['events_url'] ?? null; + $value = $payload['total_count'] ?? null; if ($value === null) { - $missingFields[] = 'events_url'; - goto after_events_url; + $missingFields[] = 'total_count'; + goto after_total_count; } - $properties['events_url'] = $value; + $properties['total_count'] = $value; - after_events_url: + after_total_count: - $value = $payload['received_events_url'] ?? null; + $value = $payload['url'] ?? null; if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_received_events_url; - } - - $properties['received_events_url'] = $value; - - after_received_events_url: - - $value = $payload['type'] ?? null; - - if ($value === null) { - $missingFields[] = 'type'; - goto after_type; - } - - $properties['type'] = $value; - - after_type: - - $value = $payload['site_admin'] ?? null; - - if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_site_admin; + $missingFields[] = 'url'; + goto after_url; } - $properties['site_admin'] = $value; + $properties['url'] = $value; - after_site_admin: + after_url: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Discussion\Reactions', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Discussion\Reactions::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner(...$properties); + return new \ApiClients\Client\Github\Schema\Discussion\Reactions(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Discussion\Reactions', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Permissions(array $payload): \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️Permissions(array $payload): \ApiClients\Client\Github\Schema\Repository\Permissions { $properties = []; $missingFields = []; @@ -3214,147 +3559,1858 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repo after_admin: - $value = $payload['maintain'] ?? null; + $value = $payload['pull'] ?? null; if ($value === null) { - $missingFields[] = 'maintain'; - goto after_maintain; + $missingFields[] = 'pull'; + goto after_pull; } - $properties['maintain'] = $value; + $properties['pull'] = $value; - after_maintain: + after_pull: - $value = $payload['push'] ?? null; + $value = $payload['triage'] ?? null; if ($value === null) { - $missingFields[] = 'push'; - goto after_push; + $missingFields[] = 'triage'; + goto after_triage; } - $properties['push'] = $value; + $properties['triage'] = $value; - after_push: + after_triage: - $value = $payload['triage'] ?? null; + $value = $payload['push'] ?? null; if ($value === null) { - $missingFields[] = 'triage'; - goto after_triage; + $missingFields[] = 'push'; + goto after_push; } - $properties['triage'] = $value; + $properties['push'] = $value; - after_triage: + after_push: - $value = $payload['pull'] ?? null; + $value = $payload['maintain'] ?? null; if ($value === null) { - $missingFields[] = 'pull'; - goto after_pull; + $missingFields[] = 'maintain'; + goto after_maintain; } - $properties['pull'] = $value; + $properties['maintain'] = $value; - after_pull: + after_maintain: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\Permissions', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\Permissions::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions(...$properties); + return new \ApiClients\Client\Github\Schema\Repository\Permissions(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\Permissions', $exception, stack: $this->hydrationStack); } } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository(array $payload): \ApiClients\Client\Github\Schema\Repository\TemplateRepository + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['id'] ?? null; - public function serializeObject(object $object): mixed - { - try { - $className = get_class($object); + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } - return match($className) { - 'array' => $this->serializeValuearray($object), - 'Ramsey\Uuid\UuidInterface' => $this->serializeValueRamsey⚡️Uuid⚡️UuidInterface($object), - 'DateTime' => $this->serializeValueDateTime($object), - 'DateTimeImmutable' => $this->serializeValueDateTimeImmutable($object), - 'DateTimeInterface' => $this->serializeValueDateTimeInterface($object), - 'ApiClients\Client\Github\Schema\WebhookReleaseUnpublished' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookReleaseUnpublished($object), - default => throw new \LogicException('No serialization defined for $className'), - }; - } catch (\Throwable $exception) { - throw UnableToSerializeObject::dueToError($className, $exception); - } - } + $properties['id'] = $value; + after_id: + + $value = $payload['node_id'] ?? null; - private function serializeValuearray(mixed $value): mixed - { - static $serializer; - - if ($serializer === null) { - $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeArrayItems(...array ( -)); - } - - return $serializer->serialize($value, $this); - } + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + $properties['node_id'] = $value; + + after_node_id: - private function serializeValueRamsey⚡️Uuid⚡️UuidInterface(mixed $value): mixed - { - static $serializer; - - if ($serializer === null) { - $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeUuidToString(...array ( -)); - } - - return $serializer->serialize($value, $this); - } + $value = $payload['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + $properties['name'] = $value; + + after_name: - private function serializeValueDateTime(mixed $value): mixed - { - static $serializer; - - if ($serializer === null) { - $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeDateTime(...array ( -)); - } - - return $serializer->serialize($value, $this); - } + $value = $payload['full_name'] ?? null; + + if ($value === null) { + $missingFields[] = 'full_name'; + goto after_full_name; + } + $properties['full_name'] = $value; + + after_full_name: - private function serializeValueDateTimeImmutable(mixed $value): mixed - { - static $serializer; - - if ($serializer === null) { - $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeDateTime(...array ( -)); - } - - return $serializer->serialize($value, $this); - } + $value = $payload['owner'] ?? null; + + if ($value === null) { + $missingFields[] = 'owner'; + goto after_owner; + } + if (is_array($value)) { + try { + $this->hydrationStack[] = 'owner'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner($value); + } finally { + array_pop($this->hydrationStack); + } + } - private function serializeValueDateTimeInterface(mixed $value): mixed - { - static $serializer; - - if ($serializer === null) { - $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeDateTime(...array ( -)); - } - - return $serializer->serialize($value, $this); + $properties['owner'] = $value; + + after_owner: + + $value = $payload['private'] ?? null; + + if ($value === null) { + $missingFields[] = 'private'; + goto after_private; + } + + $properties['private'] = $value; + + after_private: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } + + $properties['html_url'] = $value; + + after_html_url: + + $value = $payload['description'] ?? null; + + if ($value === null) { + $missingFields[] = 'description'; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['fork'] ?? null; + + if ($value === null) { + $missingFields[] = 'fork'; + goto after_fork; + } + + $properties['fork'] = $value; + + after_fork: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['archive_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'archive_url'; + goto after_archive_url; + } + + $properties['archive_url'] = $value; + + after_archive_url: + + $value = $payload['assignees_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'assignees_url'; + goto after_assignees_url; + } + + $properties['assignees_url'] = $value; + + after_assignees_url: + + $value = $payload['blobs_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'blobs_url'; + goto after_blobs_url; + } + + $properties['blobs_url'] = $value; + + after_blobs_url: + + $value = $payload['branches_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'branches_url'; + goto after_branches_url; + } + + $properties['branches_url'] = $value; + + after_branches_url: + + $value = $payload['collaborators_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'collaborators_url'; + goto after_collaborators_url; + } + + $properties['collaborators_url'] = $value; + + after_collaborators_url: + + $value = $payload['comments_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'comments_url'; + goto after_comments_url; + } + + $properties['comments_url'] = $value; + + after_comments_url: + + $value = $payload['commits_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'commits_url'; + goto after_commits_url; + } + + $properties['commits_url'] = $value; + + after_commits_url: + + $value = $payload['compare_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'compare_url'; + goto after_compare_url; + } + + $properties['compare_url'] = $value; + + after_compare_url: + + $value = $payload['contents_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'contents_url'; + goto after_contents_url; + } + + $properties['contents_url'] = $value; + + after_contents_url: + + $value = $payload['contributors_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'contributors_url'; + goto after_contributors_url; + } + + $properties['contributors_url'] = $value; + + after_contributors_url: + + $value = $payload['deployments_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'deployments_url'; + goto after_deployments_url; + } + + $properties['deployments_url'] = $value; + + after_deployments_url: + + $value = $payload['downloads_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'downloads_url'; + goto after_downloads_url; + } + + $properties['downloads_url'] = $value; + + after_downloads_url: + + $value = $payload['events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'events_url'; + goto after_events_url; + } + + $properties['events_url'] = $value; + + after_events_url: + + $value = $payload['forks_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'forks_url'; + goto after_forks_url; + } + + $properties['forks_url'] = $value; + + after_forks_url: + + $value = $payload['git_commits_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_commits_url'; + goto after_git_commits_url; + } + + $properties['git_commits_url'] = $value; + + after_git_commits_url: + + $value = $payload['git_refs_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_refs_url'; + goto after_git_refs_url; + } + + $properties['git_refs_url'] = $value; + + after_git_refs_url: + + $value = $payload['git_tags_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_tags_url'; + goto after_git_tags_url; + } + + $properties['git_tags_url'] = $value; + + after_git_tags_url: + + $value = $payload['git_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_url'; + goto after_git_url; + } + + $properties['git_url'] = $value; + + after_git_url: + + $value = $payload['issue_comment_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issue_comment_url'; + goto after_issue_comment_url; + } + + $properties['issue_comment_url'] = $value; + + after_issue_comment_url: + + $value = $payload['issue_events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issue_events_url'; + goto after_issue_events_url; + } + + $properties['issue_events_url'] = $value; + + after_issue_events_url: + + $value = $payload['issues_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issues_url'; + goto after_issues_url; + } + + $properties['issues_url'] = $value; + + after_issues_url: + + $value = $payload['keys_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'keys_url'; + goto after_keys_url; + } + + $properties['keys_url'] = $value; + + after_keys_url: + + $value = $payload['labels_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'labels_url'; + goto after_labels_url; + } + + $properties['labels_url'] = $value; + + after_labels_url: + + $value = $payload['languages_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'languages_url'; + goto after_languages_url; + } + + $properties['languages_url'] = $value; + + after_languages_url: + + $value = $payload['merges_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'merges_url'; + goto after_merges_url; + } + + $properties['merges_url'] = $value; + + after_merges_url: + + $value = $payload['milestones_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'milestones_url'; + goto after_milestones_url; + } + + $properties['milestones_url'] = $value; + + after_milestones_url: + + $value = $payload['notifications_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'notifications_url'; + goto after_notifications_url; + } + + $properties['notifications_url'] = $value; + + after_notifications_url: + + $value = $payload['pulls_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'pulls_url'; + goto after_pulls_url; + } + + $properties['pulls_url'] = $value; + + after_pulls_url: + + $value = $payload['releases_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'releases_url'; + goto after_releases_url; + } + + $properties['releases_url'] = $value; + + after_releases_url: + + $value = $payload['ssh_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'ssh_url'; + goto after_ssh_url; + } + + $properties['ssh_url'] = $value; + + after_ssh_url: + + $value = $payload['stargazers_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'stargazers_url'; + goto after_stargazers_url; + } + + $properties['stargazers_url'] = $value; + + after_stargazers_url: + + $value = $payload['statuses_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'statuses_url'; + goto after_statuses_url; + } + + $properties['statuses_url'] = $value; + + after_statuses_url: + + $value = $payload['subscribers_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscribers_url'; + goto after_subscribers_url; + } + + $properties['subscribers_url'] = $value; + + after_subscribers_url: + + $value = $payload['subscription_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscription_url'; + goto after_subscription_url; + } + + $properties['subscription_url'] = $value; + + after_subscription_url: + + $value = $payload['tags_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'tags_url'; + goto after_tags_url; + } + + $properties['tags_url'] = $value; + + after_tags_url: + + $value = $payload['teams_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'teams_url'; + goto after_teams_url; + } + + $properties['teams_url'] = $value; + + after_teams_url: + + $value = $payload['trees_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'trees_url'; + goto after_trees_url; + } + + $properties['trees_url'] = $value; + + after_trees_url: + + $value = $payload['clone_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'clone_url'; + goto after_clone_url; + } + + $properties['clone_url'] = $value; + + after_clone_url: + + $value = $payload['mirror_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'mirror_url'; + goto after_mirror_url; + } + + $properties['mirror_url'] = $value; + + after_mirror_url: + + $value = $payload['hooks_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'hooks_url'; + goto after_hooks_url; + } + + $properties['hooks_url'] = $value; + + after_hooks_url: + + $value = $payload['svn_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'svn_url'; + goto after_svn_url; + } + + $properties['svn_url'] = $value; + + after_svn_url: + + $value = $payload['homepage'] ?? null; + + if ($value === null) { + $missingFields[] = 'homepage'; + goto after_homepage; + } + + $properties['homepage'] = $value; + + after_homepage: + + $value = $payload['language'] ?? null; + + if ($value === null) { + $missingFields[] = 'language'; + goto after_language; + } + + $properties['language'] = $value; + + after_language: + + $value = $payload['forks_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'forks_count'; + goto after_forks_count; + } + + $properties['forks_count'] = $value; + + after_forks_count: + + $value = $payload['stargazers_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'stargazers_count'; + goto after_stargazers_count; + } + + $properties['stargazers_count'] = $value; + + after_stargazers_count: + + $value = $payload['watchers_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'watchers_count'; + goto after_watchers_count; + } + + $properties['watchers_count'] = $value; + + after_watchers_count: + + $value = $payload['size'] ?? null; + + if ($value === null) { + $missingFields[] = 'size'; + goto after_size; + } + + $properties['size'] = $value; + + after_size: + + $value = $payload['default_branch'] ?? null; + + if ($value === null) { + $missingFields[] = 'default_branch'; + goto after_default_branch; + } + + $properties['default_branch'] = $value; + + after_default_branch: + + $value = $payload['open_issues_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'open_issues_count'; + goto after_open_issues_count; + } + + $properties['open_issues_count'] = $value; + + after_open_issues_count: + + $value = $payload['is_template'] ?? null; + + if ($value === null) { + $missingFields[] = 'is_template'; + goto after_is_template; + } + + $properties['is_template'] = $value; + + after_is_template: + + $value = $payload['topics'] ?? null; + + if ($value === null) { + $missingFields[] = 'topics'; + goto after_topics; + } + + $properties['topics'] = $value; + + after_topics: + + $value = $payload['has_issues'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_issues'; + goto after_has_issues; + } + + $properties['has_issues'] = $value; + + after_has_issues: + + $value = $payload['has_projects'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_projects'; + goto after_has_projects; + } + + $properties['has_projects'] = $value; + + after_has_projects: + + $value = $payload['has_wiki'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_wiki'; + goto after_has_wiki; + } + + $properties['has_wiki'] = $value; + + after_has_wiki: + + $value = $payload['has_pages'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_pages'; + goto after_has_pages; + } + + $properties['has_pages'] = $value; + + after_has_pages: + + $value = $payload['has_downloads'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_downloads'; + goto after_has_downloads; + } + + $properties['has_downloads'] = $value; + + after_has_downloads: + + $value = $payload['archived'] ?? null; + + if ($value === null) { + $missingFields[] = 'archived'; + goto after_archived; + } + + $properties['archived'] = $value; + + after_archived: + + $value = $payload['disabled'] ?? null; + + if ($value === null) { + $missingFields[] = 'disabled'; + goto after_disabled; + } + + $properties['disabled'] = $value; + + after_disabled: + + $value = $payload['visibility'] ?? null; + + if ($value === null) { + $missingFields[] = 'visibility'; + goto after_visibility; + } + + $properties['visibility'] = $value; + + after_visibility: + + $value = $payload['pushed_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'pushed_at'; + goto after_pushed_at; + } + + $properties['pushed_at'] = $value; + + after_pushed_at: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'created_at'; + goto after_created_at; + } + + $properties['created_at'] = $value; + + after_created_at: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'updated_at'; + goto after_updated_at; + } + + $properties['updated_at'] = $value; + + after_updated_at: + + $value = $payload['permissions'] ?? null; + + if ($value === null) { + $missingFields[] = 'permissions'; + goto after_permissions; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'permissions'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Permissions($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['permissions'] = $value; + + after_permissions: + + $value = $payload['allow_rebase_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_rebase_merge'; + goto after_allow_rebase_merge; + } + + $properties['allow_rebase_merge'] = $value; + + after_allow_rebase_merge: + + $value = $payload['temp_clone_token'] ?? null; + + if ($value === null) { + $missingFields[] = 'temp_clone_token'; + goto after_temp_clone_token; + } + + $properties['temp_clone_token'] = $value; + + after_temp_clone_token: + + $value = $payload['allow_squash_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_squash_merge'; + goto after_allow_squash_merge; + } + + $properties['allow_squash_merge'] = $value; + + after_allow_squash_merge: + + $value = $payload['allow_auto_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_auto_merge'; + goto after_allow_auto_merge; + } + + $properties['allow_auto_merge'] = $value; + + after_allow_auto_merge: + + $value = $payload['delete_branch_on_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'delete_branch_on_merge'; + goto after_delete_branch_on_merge; + } + + $properties['delete_branch_on_merge'] = $value; + + after_delete_branch_on_merge: + + $value = $payload['allow_update_branch'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_update_branch'; + goto after_allow_update_branch; + } + + $properties['allow_update_branch'] = $value; + + after_allow_update_branch: + + $value = $payload['use_squash_pr_title_as_default'] ?? null; + + if ($value === null) { + $missingFields[] = 'use_squash_pr_title_as_default'; + goto after_use_squash_pr_title_as_default; + } + + $properties['use_squash_pr_title_as_default'] = $value; + + after_use_squash_pr_title_as_default: + + $value = $payload['squash_merge_commit_title'] ?? null; + + if ($value === null) { + $missingFields[] = 'squash_merge_commit_title'; + goto after_squash_merge_commit_title; + } + + $properties['squash_merge_commit_title'] = $value; + + after_squash_merge_commit_title: + + $value = $payload['squash_merge_commit_message'] ?? null; + + if ($value === null) { + $missingFields[] = 'squash_merge_commit_message'; + goto after_squash_merge_commit_message; + } + + $properties['squash_merge_commit_message'] = $value; + + after_squash_merge_commit_message: + + $value = $payload['merge_commit_title'] ?? null; + + if ($value === null) { + $missingFields[] = 'merge_commit_title'; + goto after_merge_commit_title; + } + + $properties['merge_commit_title'] = $value; + + after_merge_commit_title: + + $value = $payload['merge_commit_message'] ?? null; + + if ($value === null) { + $missingFields[] = 'merge_commit_message'; + goto after_merge_commit_message; + } + + $properties['merge_commit_message'] = $value; + + after_merge_commit_message: + + $value = $payload['allow_merge_commit'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_merge_commit'; + goto after_allow_merge_commit; + } + + $properties['allow_merge_commit'] = $value; + + after_allow_merge_commit: + + $value = $payload['subscribers_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscribers_count'; + goto after_subscribers_count; + } + + $properties['subscribers_count'] = $value; + + after_subscribers_count: + + $value = $payload['network_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'network_count'; + goto after_network_count; + } + + $properties['network_count'] = $value; + + after_network_count: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\TemplateRepository::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\Repository\TemplateRepository(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectEdited⚡️Changes⚡️Body(array $payload): \ApiClients\Client\Github\Schema\WebhookProjectEdited\Changes\Body + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['from'] ?? null; + + if ($value === null) { + $missingFields[] = 'from'; + goto after_from; + } + + $properties['from'] = $value; + + after_from: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectEdited\Changes\Body', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookProjectEdited\Changes\Body::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookProjectEdited\Changes\Body(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectEdited\Changes\Body', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookLabelEdited⚡️Changes⚡️Name(array $payload): \ApiClients\Client\Github\Schema\WebhookLabelEdited\Changes\Name + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['from'] ?? null; + + if ($value === null) { + $missingFields[] = 'from'; + goto after_from; + } + + $properties['from'] = $value; + + after_from: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookLabelEdited\Changes\Name', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookLabelEdited\Changes\Name::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookLabelEdited\Changes\Name(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookLabelEdited\Changes\Name', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner(array $payload): \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['login'] ?? null; + + if ($value === null) { + $missingFields[] = 'login'; + goto after_login; + } + + $properties['login'] = $value; + + after_login: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['avatar_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'avatar_url'; + goto after_avatar_url; + } + + $properties['avatar_url'] = $value; + + after_avatar_url: + + $value = $payload['gravatar_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'gravatar_id'; + goto after_gravatar_id; + } + + $properties['gravatar_id'] = $value; + + after_gravatar_id: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } + + $properties['html_url'] = $value; + + after_html_url: + + $value = $payload['followers_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'followers_url'; + goto after_followers_url; + } + + $properties['followers_url'] = $value; + + after_followers_url: + + $value = $payload['following_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'following_url'; + goto after_following_url; + } + + $properties['following_url'] = $value; + + after_following_url: + + $value = $payload['gists_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'gists_url'; + goto after_gists_url; + } + + $properties['gists_url'] = $value; + + after_gists_url: + + $value = $payload['starred_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'starred_url'; + goto after_starred_url; + } + + $properties['starred_url'] = $value; + + after_starred_url: + + $value = $payload['subscriptions_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscriptions_url'; + goto after_subscriptions_url; + } + + $properties['subscriptions_url'] = $value; + + after_subscriptions_url: + + $value = $payload['organizations_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'organizations_url'; + goto after_organizations_url; + } + + $properties['organizations_url'] = $value; + + after_organizations_url: + + $value = $payload['repos_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'repos_url'; + goto after_repos_url; + } + + $properties['repos_url'] = $value; + + after_repos_url: + + $value = $payload['events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'events_url'; + goto after_events_url; + } + + $properties['events_url'] = $value; + + after_events_url: + + $value = $payload['received_events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'received_events_url'; + goto after_received_events_url; + } + + $properties['received_events_url'] = $value; + + after_received_events_url: + + $value = $payload['type'] ?? null; + + if ($value === null) { + $missingFields[] = 'type'; + goto after_type; + } + + $properties['type'] = $value; + + after_type: + + $value = $payload['site_admin'] ?? null; + + if ($value === null) { + $missingFields[] = 'site_admin'; + goto after_site_admin; + } + + $properties['site_admin'] = $value; + + after_site_admin: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Permissions(array $payload): \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['admin'] ?? null; + + if ($value === null) { + $missingFields[] = 'admin'; + goto after_admin; + } + + $properties['admin'] = $value; + + after_admin: + + $value = $payload['maintain'] ?? null; + + if ($value === null) { + $missingFields[] = 'maintain'; + goto after_maintain; + } + + $properties['maintain'] = $value; + + after_maintain: + + $value = $payload['push'] ?? null; + + if ($value === null) { + $missingFields[] = 'push'; + goto after_push; + } + + $properties['push'] = $value; + + after_push: + + $value = $payload['triage'] ?? null; + + if ($value === null) { + $missingFields[] = 'triage'; + goto after_triage; + } + + $properties['triage'] = $value; + + after_triage: + + $value = $payload['pull'] ?? null; + + if ($value === null) { + $missingFields[] = 'pull'; + goto after_pull; + } + + $properties['pull'] = $value; + + after_pull: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions', $exception, stack: $this->hydrationStack); + } + } + + public function serializeObject(object $object): mixed + { + try { + $className = get_class($object); + + return match($className) { + 'array' => $this->serializeValuearray($object), + 'Ramsey\Uuid\UuidInterface' => $this->serializeValueRamsey⚡️Uuid⚡️UuidInterface($object), + 'DateTime' => $this->serializeValueDateTime($object), + 'DateTimeImmutable' => $this->serializeValueDateTimeImmutable($object), + 'DateTimeInterface' => $this->serializeValueDateTimeInterface($object), + 'ApiClients\Client\Github\Schema\WebhookReleaseCreated' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookReleaseCreated($object), + 'ApiClients\Client\Github\Schema\WebhookReleaseDeleted' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookReleaseDeleted($object), + 'ApiClients\Client\Github\Schema\WebhookReleaseEdited' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookReleaseEdited($object), + 'ApiClients\Client\Github\Schema\WebhookReleasePrereleased' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookReleasePrereleased($object), + 'ApiClients\Client\Github\Schema\WebhookReleasePublished' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookReleasePublished($object), + 'ApiClients\Client\Github\Schema\WebhookReleaseReleased' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookReleaseReleased($object), + 'ApiClients\Client\Github\Schema\WebhookReleaseUnpublished' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookReleaseUnpublished($object), + default => throw new \LogicException('No serialization defined for $className'), + }; + } catch (\Throwable $exception) { + throw UnableToSerializeObject::dueToError($className, $exception); + } + } + + + private function serializeValuearray(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeArrayItems(...array ( +)); + } + + return $serializer->serialize($value, $this); + } + + + private function serializeValueRamsey⚡️Uuid⚡️UuidInterface(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeUuidToString(...array ( +)); + } + + return $serializer->serialize($value, $this); + } + + + private function serializeValueDateTime(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeDateTime(...array ( +)); + } + + return $serializer->serialize($value, $this); + } + + + private function serializeValueDateTimeImmutable(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeDateTime(...array ( +)); + } + + return $serializer->serialize($value, $this); + } + + + private function serializeValueDateTimeInterface(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeDateTime(...array ( +)); + } + + return $serializer->serialize($value, $this); + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookReleaseCreated(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookReleaseCreated); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $release = $object->release; + + if ($release === null) { + goto after_release; + } + $release = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookReleaseCreated⚡️Release($release); + after_release: $result['release'] = $release; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookReleaseDeleted(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookReleaseDeleted); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $release = $object->release; + + if ($release === null) { + goto after_release; + } + $release = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookReleaseCreated⚡️Release($release); + after_release: $result['release'] = $release; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookReleaseEdited(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookReleaseEdited); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $changes = $object->changes; + + if ($changes === null) { + goto after_changes; + } + $changes = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookReleaseEdited⚡️Changes($changes); + after_changes: $result['changes'] = $changes; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $release = $object->release; + + if ($release === null) { + goto after_release; + } + $release = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookReleaseCreated⚡️Release($release); + after_release: $result['release'] = $release; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookReleasePrereleased(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookReleasePrereleased); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $release = $object->release; + + if ($release === null) { + goto after_release; + } + after_release: $result['release'] = $release; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookReleasePublished(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookReleasePublished); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $release = $object->release; + + if ($release === null) { + goto after_release; + } + after_release: $result['release'] = $release; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookReleaseReleased(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookReleaseReleased); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $release = $object->release; + + if ($release === null) { + goto after_release; + } + $release = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookReleaseCreated⚡️Release($release); + after_release: $result['release'] = $release; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; } diff --git a/src/Hydrator/WebHook/Repository.php b/src/Hydrator/WebHook/Repository.php index 17ed479bfb..d83557907a 100644 --- a/src/Hydrator/WebHook/Repository.php +++ b/src/Hydrator/WebHook/Repository.php @@ -23,22 +23,41 @@ public function __construct() {} public function hydrateObject(string $className, array $payload): object { return match($className) { - 'ApiClients\Client\Github\Schema\WebhookRepositoryUnarchived' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRepositoryUnarchived($payload), + 'ApiClients\Client\Github\Schema\WebhookRepositoryArchived' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRepositoryArchived($payload), + 'ApiClients\Client\Github\Schema\WebhookRepositoryCreated' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRepositoryCreated($payload), + 'ApiClients\Client\Github\Schema\WebhookRepositoryDeleted' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRepositoryDeleted($payload), + 'ApiClients\Client\Github\Schema\WebhookRepositoryEdited' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRepositoryEdited($payload), + 'ApiClients\Client\Github\Schema\WebhookRepositoryPrivatized' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRepositoryPrivatized($payload), + 'ApiClients\Client\Github\Schema\WebhookRepositoryPublicized' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRepositoryPublicized($payload), + 'ApiClients\Client\Github\Schema\WebhookRepositoryRenamed' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRepositoryRenamed($payload), + 'ApiClients\Client\Github\Schema\WebhookRepositoryTransferred' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRepositoryTransferred($payload), + 'ApiClients\Client\Github\Schema\WebhookRepositoryUnarchived' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRepositoryUnarchived($payload), 'ApiClients\Client\Github\Schema\Enterprise' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($payload), 'ApiClients\Client\Github\Schema\SimpleInstallation' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($payload), 'ApiClients\Client\Github\Schema\OrganizationSimple' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($payload), 'ApiClients\Client\Github\Schema\Repository' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($payload), 'ApiClients\Client\Github\Schema\SimpleUser' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($payload), + 'ApiClients\Client\Github\Schema\WebhookRepositoryEdited\Changes' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRepositoryEdited⚡️Changes($payload), + 'ApiClients\Client\Github\Schema\WebhookRepositoryRenamed\Changes' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRepositoryRenamed⚡️Changes($payload), + 'ApiClients\Client\Github\Schema\WebhookRepositoryTransferred\Changes' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRepositoryTransferred⚡️Changes($payload), 'ApiClients\Client\Github\Schema\Repository\Permissions' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️Permissions($payload), 'ApiClients\Client\Github\Schema\Repository\TemplateRepository' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository($payload), + 'ApiClients\Client\Github\Schema\WebhookDiscussionCommentEdited\Changes\Body' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionCommentEdited⚡️Changes⚡️Body($payload), + 'ApiClients\Client\Github\Schema\WebhookProjectCardEdited\Changes\Note' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectCardEdited⚡️Changes⚡️Note($payload), + 'ApiClients\Client\Github\Schema\WebhookRepositoryEdited\Changes\Topics' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRepositoryEdited⚡️Changes⚡️Topics($payload), + 'ApiClients\Client\Github\Schema\WebhookRepositoryRenamed\Changes\Repository' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRepositoryRenamed⚡️Changes⚡️Repository($payload), + 'ApiClients\Client\Github\Schema\WebhookRepositoryTransferred\Changes\Owner' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRepositoryTransferred⚡️Changes⚡️Owner($payload), 'ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner($payload), 'ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Permissions($payload), + 'ApiClients\Client\Github\Schema\WebhookRepositoryTransferred\Changes\Owner\From' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRepositoryTransferred⚡️Changes⚡️Owner⚡️From($payload), + 'ApiClients\Client\Github\Schema\WebhookRepositoryTransferred\Changes\Owner\From\Organization' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRepositoryTransferred⚡️Changes⚡️Owner⚡️From⚡️Organization($payload), + 'ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), }; } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRepositoryUnarchived(array $payload): \ApiClients\Client\Github\Schema\WebhookRepositoryUnarchived + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRepositoryArchived(array $payload): \ApiClients\Client\Github\Schema\WebhookRepositoryArchived { $properties = []; $missingFields = []; @@ -156,2833 +175,3135 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh after_sender: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookRepositoryUnarchived', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookRepositoryArchived', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookRepositoryUnarchived::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookRepositoryArchived::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\WebhookRepositoryUnarchived(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookRepositoryArchived(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookRepositoryUnarchived', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookRepositoryArchived', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise(array $payload): \ApiClients\Client\Github\Schema\Enterprise + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRepositoryCreated(array $payload): \ApiClients\Client\Github\Schema\WebhookRepositoryCreated { $properties = []; $missingFields = []; try { - $value = $payload['description'] ?? null; + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'description'; - goto after_description; + $missingFields[] = 'action'; + goto after_action; } - $properties['description'] = $value; + $properties['action'] = $value; - after_description: + after_action: - $value = $payload['html_url'] ?? null; + $value = $payload['enterprise'] ?? null; if ($value === null) { - $missingFields[] = 'html_url'; - goto after_html_url; + $missingFields[] = 'enterprise'; + goto after_enterprise; } - $properties['html_url'] = $value; - - after_html_url: - - $value = $payload['website_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'website_url'; - goto after_website_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['website_url'] = $value; + $properties['enterprise'] = $value; - after_website_url: + after_enterprise: - $value = $payload['id'] ?? null; + $value = $payload['installation'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'installation'; + goto after_installation; } - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['node_id'] = $value; + $properties['installation'] = $value; - after_node_id: + after_installation: - $value = $payload['name'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'name'; - goto after_name; + $missingFields[] = 'organization'; + goto after_organization; } - $properties['name'] = $value; - - after_name: - - $value = $payload['slug'] ?? null; - - if ($value === null) { - $missingFields[] = 'slug'; - goto after_slug; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['slug'] = $value; + $properties['organization'] = $value; - after_slug: + after_organization: - $value = $payload['created_at'] ?? null; + $value = $payload['repository'] ?? null; if ($value === null) { - $missingFields[] = 'created_at'; - goto after_created_at; + $missingFields[] = 'repository'; + goto after_repository; } - $properties['created_at'] = $value; - - after_created_at: - - $value = $payload['updated_at'] ?? null; - - if ($value === null) { - $missingFields[] = 'updated_at'; - goto after_updated_at; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['updated_at'] = $value; + $properties['repository'] = $value; - after_updated_at: + after_repository: - $value = $payload['avatar_url'] ?? null; + $value = $payload['sender'] ?? null; if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatar_url; + $missingFields[] = 'sender'; + goto after_sender; } - $properties['avatar_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; - after_avatar_url: + after_sender: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Enterprise', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookRepositoryCreated', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Enterprise::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookRepositoryCreated::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\Enterprise(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookRepositoryCreated(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Enterprise', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookRepositoryCreated', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation(array $payload): \ApiClients\Client\Github\Schema\SimpleInstallation + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRepositoryDeleted(array $payload): \ApiClients\Client\Github\Schema\WebhookRepositoryDeleted { $properties = []; $missingFields = []; try { - $value = $payload['id'] ?? null; + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'action'; + goto after_action; } - $properties['id'] = $value; + $properties['action'] = $value; - after_id: + after_action: - $value = $payload['node_id'] ?? null; + $value = $payload['enterprise'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $missingFields[] = 'enterprise'; + goto after_enterprise; } - $properties['node_id'] = $value; - - after_node_id: - - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleInstallation', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\SimpleInstallation::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\SimpleInstallation(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleInstallation', $exception, stack: $this->hydrationStack); - } - } - - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple(array $payload): \ApiClients\Client\Github\Schema\OrganizationSimple - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['login'] ?? null; - - if ($value === null) { - $missingFields[] = 'login'; - goto after_login; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['login'] = $value; + $properties['enterprise'] = $value; - after_login: + after_enterprise: - $value = $payload['id'] ?? null; + $value = $payload['installation'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'installation'; + goto after_installation; } - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['node_id'] = $value; + $properties['installation'] = $value; - after_node_id: + after_installation: - $value = $payload['url'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $missingFields[] = 'organization'; + goto after_organization; } - $properties['url'] = $value; - - after_url: - - $value = $payload['repos_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_repos_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['repos_url'] = $value; + $properties['organization'] = $value; - after_repos_url: + after_organization: - $value = $payload['events_url'] ?? null; + $value = $payload['repository'] ?? null; if ($value === null) { - $missingFields[] = 'events_url'; - goto after_events_url; - } - - $properties['events_url'] = $value; - - after_events_url: - - $value = $payload['hooks_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'hooks_url'; - goto after_hooks_url; - } - - $properties['hooks_url'] = $value; - - after_hooks_url: - - $value = $payload['issues_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'issues_url'; - goto after_issues_url; - } - - $properties['issues_url'] = $value; - - after_issues_url: - - $value = $payload['members_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'members_url'; - goto after_members_url; + $missingFields[] = 'repository'; + goto after_repository; } - $properties['members_url'] = $value; - - after_members_url: - - $value = $payload['public_members_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'public_members_url'; - goto after_public_members_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['public_members_url'] = $value; + $properties['repository'] = $value; - after_public_members_url: + after_repository: - $value = $payload['avatar_url'] ?? null; + $value = $payload['sender'] ?? null; if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatar_url; + $missingFields[] = 'sender'; + goto after_sender; } - $properties['avatar_url'] = $value; - - after_avatar_url: - - $value = $payload['description'] ?? null; - - if ($value === null) { - $missingFields[] = 'description'; - goto after_description; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['description'] = $value; + $properties['sender'] = $value; - after_description: + after_sender: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\OrganizationSimple', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookRepositoryDeleted', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\OrganizationSimple::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookRepositoryDeleted::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\OrganizationSimple(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookRepositoryDeleted(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\OrganizationSimple', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookRepositoryDeleted', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository(array $payload): \ApiClients\Client\Github\Schema\Repository + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRepositoryEdited(array $payload): \ApiClients\Client\Github\Schema\WebhookRepositoryEdited { $properties = []; $missingFields = []; try { - $value = $payload['id'] ?? null; + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'action'; + goto after_action; } - $properties['id'] = $value; + $properties['action'] = $value; - after_id: + after_action: - $value = $payload['node_id'] ?? null; + $value = $payload['changes'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $missingFields[] = 'changes'; + goto after_changes; } - $properties['node_id'] = $value; - - after_node_id: - - $value = $payload['name'] ?? null; - - if ($value === null) { - $missingFields[] = 'name'; - goto after_name; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'changes'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRepositoryEdited⚡️Changes($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['name'] = $value; + $properties['changes'] = $value; - after_name: + after_changes: - $value = $payload['full_name'] ?? null; + $value = $payload['enterprise'] ?? null; if ($value === null) { - $missingFields[] = 'full_name'; - goto after_full_name; + $missingFields[] = 'enterprise'; + goto after_enterprise; } - $properties['full_name'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['enterprise'] = $value; - after_full_name: + after_enterprise: - $value = $payload['license'] ?? null; + $value = $payload['installation'] ?? null; if ($value === null) { - $properties['license'] = null; - goto after_license; + $missingFields[] = 'installation'; + goto after_installation; } - $properties['license'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; - after_license: + after_installation: $value = $payload['organization'] ?? null; if ($value === null) { - $properties['organization'] = null; + $missingFields[] = 'organization'; goto after_organization; } - $properties['organization'] = $value; - - after_organization: - - $value = $payload['forks'] ?? null; - - if ($value === null) { - $missingFields[] = 'forks'; - goto after_forks; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['forks'] = $value; + $properties['organization'] = $value; - after_forks: + after_organization: - $value = $payload['permissions'] ?? null; + $value = $payload['repository'] ?? null; if ($value === null) { - $missingFields[] = 'permissions'; - goto after_permissions; + $missingFields[] = 'repository'; + goto after_repository; } if (is_array($value)) { try { - $this->hydrationStack[] = 'permissions'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️Permissions($value); + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); } finally { array_pop($this->hydrationStack); } } - $properties['permissions'] = $value; + $properties['repository'] = $value; - after_permissions: + after_repository: - $value = $payload['owner'] ?? null; + $value = $payload['sender'] ?? null; if ($value === null) { - $missingFields[] = 'owner'; - goto after_owner; + $missingFields[] = 'sender'; + goto after_sender; } if (is_array($value)) { try { - $this->hydrationStack[] = 'owner'; + $this->hydrationStack[] = 'sender'; $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } } - $properties['owner'] = $value; + $properties['sender'] = $value; - after_owner: + after_sender: - $value = $payload['private'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookRepositoryEdited', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookRepositoryEdited::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookRepositoryEdited(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookRepositoryEdited', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRepositoryPrivatized(array $payload): \ApiClients\Client\Github\Schema\WebhookRepositoryPrivatized + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'private'; - goto after_private; + $missingFields[] = 'action'; + goto after_action; } - $properties['private'] = $value; + $properties['action'] = $value; - after_private: + after_action: - $value = $payload['html_url'] ?? null; + $value = $payload['enterprise'] ?? null; if ($value === null) { - $missingFields[] = 'html_url'; - goto after_html_url; + $missingFields[] = 'enterprise'; + goto after_enterprise; } - $properties['html_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['enterprise'] = $value; - after_html_url: + after_enterprise: - $value = $payload['description'] ?? null; + $value = $payload['installation'] ?? null; if ($value === null) { - $missingFields[] = 'description'; - goto after_description; + $missingFields[] = 'installation'; + goto after_installation; } - $properties['description'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; - after_description: + after_installation: - $value = $payload['fork'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'fork'; - goto after_fork; + $missingFields[] = 'organization'; + goto after_organization; } - $properties['fork'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; - after_fork: + after_organization: - $value = $payload['url'] ?? null; + $value = $payload['repository'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $missingFields[] = 'repository'; + goto after_repository; } - $properties['url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repository'] = $value; - after_url: + after_repository: - $value = $payload['archive_url'] ?? null; + $value = $payload['sender'] ?? null; if ($value === null) { - $missingFields[] = 'archive_url'; - goto after_archive_url; + $missingFields[] = 'sender'; + goto after_sender; } - $properties['archive_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; - after_archive_url: + after_sender: - $value = $payload['assignees_url'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookRepositoryPrivatized', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookRepositoryPrivatized::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookRepositoryPrivatized(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookRepositoryPrivatized', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRepositoryPublicized(array $payload): \ApiClients\Client\Github\Schema\WebhookRepositoryPublicized + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'assignees_url'; - goto after_assignees_url; + $missingFields[] = 'action'; + goto after_action; } - $properties['assignees_url'] = $value; + $properties['action'] = $value; - after_assignees_url: + after_action: - $value = $payload['blobs_url'] ?? null; + $value = $payload['enterprise'] ?? null; if ($value === null) { - $missingFields[] = 'blobs_url'; - goto after_blobs_url; + $missingFields[] = 'enterprise'; + goto after_enterprise; } - $properties['blobs_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['enterprise'] = $value; - after_blobs_url: + after_enterprise: - $value = $payload['branches_url'] ?? null; + $value = $payload['installation'] ?? null; if ($value === null) { - $missingFields[] = 'branches_url'; - goto after_branches_url; + $missingFields[] = 'installation'; + goto after_installation; } - $properties['branches_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; - after_branches_url: + after_installation: - $value = $payload['collaborators_url'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'collaborators_url'; - goto after_collaborators_url; + $missingFields[] = 'organization'; + goto after_organization; } - $properties['collaborators_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; - after_collaborators_url: + after_organization: - $value = $payload['comments_url'] ?? null; + $value = $payload['repository'] ?? null; if ($value === null) { - $missingFields[] = 'comments_url'; - goto after_comments_url; + $missingFields[] = 'repository'; + goto after_repository; } - $properties['comments_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repository'] = $value; - after_comments_url: + after_repository: - $value = $payload['commits_url'] ?? null; + $value = $payload['sender'] ?? null; if ($value === null) { - $missingFields[] = 'commits_url'; - goto after_commits_url; + $missingFields[] = 'sender'; + goto after_sender; } - $properties['commits_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; - after_commits_url: + after_sender: - $value = $payload['compare_url'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookRepositoryPublicized', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookRepositoryPublicized::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookRepositoryPublicized(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookRepositoryPublicized', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRepositoryRenamed(array $payload): \ApiClients\Client\Github\Schema\WebhookRepositoryRenamed + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'compare_url'; - goto after_compare_url; + $missingFields[] = 'action'; + goto after_action; } - $properties['compare_url'] = $value; + $properties['action'] = $value; - after_compare_url: + after_action: - $value = $payload['contents_url'] ?? null; + $value = $payload['changes'] ?? null; if ($value === null) { - $missingFields[] = 'contents_url'; - goto after_contents_url; + $missingFields[] = 'changes'; + goto after_changes; } - $properties['contents_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'changes'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRepositoryRenamed⚡️Changes($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['changes'] = $value; - after_contents_url: + after_changes: - $value = $payload['contributors_url'] ?? null; + $value = $payload['enterprise'] ?? null; if ($value === null) { - $missingFields[] = 'contributors_url'; - goto after_contributors_url; + $missingFields[] = 'enterprise'; + goto after_enterprise; } - $properties['contributors_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['enterprise'] = $value; - after_contributors_url: + after_enterprise: - $value = $payload['deployments_url'] ?? null; + $value = $payload['installation'] ?? null; if ($value === null) { - $missingFields[] = 'deployments_url'; - goto after_deployments_url; + $missingFields[] = 'installation'; + goto after_installation; } - $properties['deployments_url'] = $value; - - after_deployments_url: - - $value = $payload['downloads_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'downloads_url'; - goto after_downloads_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['downloads_url'] = $value; + $properties['installation'] = $value; - after_downloads_url: + after_installation: - $value = $payload['events_url'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'events_url'; - goto after_events_url; + $missingFields[] = 'organization'; + goto after_organization; } - $properties['events_url'] = $value; - - after_events_url: - - $value = $payload['forks_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'forks_url'; - goto after_forks_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['forks_url'] = $value; + $properties['organization'] = $value; - after_forks_url: + after_organization: - $value = $payload['git_commits_url'] ?? null; + $value = $payload['repository'] ?? null; if ($value === null) { - $missingFields[] = 'git_commits_url'; - goto after_git_commits_url; + $missingFields[] = 'repository'; + goto after_repository; } - $properties['git_commits_url'] = $value; - - after_git_commits_url: - - $value = $payload['git_refs_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'git_refs_url'; - goto after_git_refs_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['git_refs_url'] = $value; + $properties['repository'] = $value; - after_git_refs_url: + after_repository: - $value = $payload['git_tags_url'] ?? null; + $value = $payload['sender'] ?? null; if ($value === null) { - $missingFields[] = 'git_tags_url'; - goto after_git_tags_url; + $missingFields[] = 'sender'; + goto after_sender; } - $properties['git_tags_url'] = $value; - - after_git_tags_url: - - $value = $payload['git_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'git_url'; - goto after_git_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['git_url'] = $value; + $properties['sender'] = $value; - after_git_url: + after_sender: - $value = $payload['issue_comment_url'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookRepositoryRenamed', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookRepositoryRenamed::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookRepositoryRenamed(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookRepositoryRenamed', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRepositoryTransferred(array $payload): \ApiClients\Client\Github\Schema\WebhookRepositoryTransferred + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'issue_comment_url'; - goto after_issue_comment_url; + $missingFields[] = 'action'; + goto after_action; } - $properties['issue_comment_url'] = $value; + $properties['action'] = $value; - after_issue_comment_url: + after_action: - $value = $payload['issue_events_url'] ?? null; + $value = $payload['changes'] ?? null; if ($value === null) { - $missingFields[] = 'issue_events_url'; - goto after_issue_events_url; + $missingFields[] = 'changes'; + goto after_changes; } - $properties['issue_events_url'] = $value; - - after_issue_events_url: - - $value = $payload['issues_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'issues_url'; - goto after_issues_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'changes'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRepositoryTransferred⚡️Changes($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['issues_url'] = $value; + $properties['changes'] = $value; - after_issues_url: + after_changes: - $value = $payload['keys_url'] ?? null; + $value = $payload['enterprise'] ?? null; if ($value === null) { - $missingFields[] = 'keys_url'; - goto after_keys_url; + $missingFields[] = 'enterprise'; + goto after_enterprise; } - $properties['keys_url'] = $value; - - after_keys_url: - - $value = $payload['labels_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'labels_url'; - goto after_labels_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['labels_url'] = $value; + $properties['enterprise'] = $value; - after_labels_url: + after_enterprise: - $value = $payload['languages_url'] ?? null; + $value = $payload['installation'] ?? null; if ($value === null) { - $missingFields[] = 'languages_url'; - goto after_languages_url; + $missingFields[] = 'installation'; + goto after_installation; } - $properties['languages_url'] = $value; - - after_languages_url: - - $value = $payload['merges_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'merges_url'; - goto after_merges_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['merges_url'] = $value; + $properties['installation'] = $value; - after_merges_url: + after_installation: - $value = $payload['milestones_url'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'milestones_url'; - goto after_milestones_url; + $missingFields[] = 'organization'; + goto after_organization; } - $properties['milestones_url'] = $value; - - after_milestones_url: - - $value = $payload['notifications_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'notifications_url'; - goto after_notifications_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['notifications_url'] = $value; + $properties['organization'] = $value; - after_notifications_url: + after_organization: - $value = $payload['pulls_url'] ?? null; + $value = $payload['repository'] ?? null; if ($value === null) { - $missingFields[] = 'pulls_url'; - goto after_pulls_url; + $missingFields[] = 'repository'; + goto after_repository; } - $properties['pulls_url'] = $value; - - after_pulls_url: - - $value = $payload['releases_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'releases_url'; - goto after_releases_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['releases_url'] = $value; + $properties['repository'] = $value; - after_releases_url: + after_repository: - $value = $payload['ssh_url'] ?? null; + $value = $payload['sender'] ?? null; if ($value === null) { - $missingFields[] = 'ssh_url'; - goto after_ssh_url; + $missingFields[] = 'sender'; + goto after_sender; } - $properties['ssh_url'] = $value; - - after_ssh_url: - - $value = $payload['stargazers_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'stargazers_url'; - goto after_stargazers_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['stargazers_url'] = $value; + $properties['sender'] = $value; - after_stargazers_url: + after_sender: - $value = $payload['statuses_url'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookRepositoryTransferred', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookRepositoryTransferred::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookRepositoryTransferred(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookRepositoryTransferred', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRepositoryUnarchived(array $payload): \ApiClients\Client\Github\Schema\WebhookRepositoryUnarchived + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'statuses_url'; - goto after_statuses_url; + $missingFields[] = 'action'; + goto after_action; } - $properties['statuses_url'] = $value; + $properties['action'] = $value; - after_statuses_url: + after_action: - $value = $payload['subscribers_url'] ?? null; + $value = $payload['enterprise'] ?? null; if ($value === null) { - $missingFields[] = 'subscribers_url'; - goto after_subscribers_url; + $missingFields[] = 'enterprise'; + goto after_enterprise; } - $properties['subscribers_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['enterprise'] = $value; - after_subscribers_url: + after_enterprise: - $value = $payload['subscription_url'] ?? null; + $value = $payload['installation'] ?? null; if ($value === null) { - $missingFields[] = 'subscription_url'; - goto after_subscription_url; + $missingFields[] = 'installation'; + goto after_installation; } - $properties['subscription_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; - after_subscription_url: + after_installation: - $value = $payload['tags_url'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'tags_url'; - goto after_tags_url; + $missingFields[] = 'organization'; + goto after_organization; } - $properties['tags_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; - after_tags_url: + after_organization: - $value = $payload['teams_url'] ?? null; + $value = $payload['repository'] ?? null; if ($value === null) { - $missingFields[] = 'teams_url'; - goto after_teams_url; + $missingFields[] = 'repository'; + goto after_repository; } - $properties['teams_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repository'] = $value; - after_teams_url: + after_repository: - $value = $payload['trees_url'] ?? null; + $value = $payload['sender'] ?? null; if ($value === null) { - $missingFields[] = 'trees_url'; - goto after_trees_url; + $missingFields[] = 'sender'; + goto after_sender; } - $properties['trees_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; - after_trees_url: + after_sender: - $value = $payload['clone_url'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookRepositoryUnarchived', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookRepositoryUnarchived::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookRepositoryUnarchived(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookRepositoryUnarchived', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise(array $payload): \ApiClients\Client\Github\Schema\Enterprise + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['description'] ?? null; if ($value === null) { - $missingFields[] = 'clone_url'; - goto after_clone_url; + $missingFields[] = 'description'; + goto after_description; } - $properties['clone_url'] = $value; + $properties['description'] = $value; - after_clone_url: + after_description: - $value = $payload['mirror_url'] ?? null; + $value = $payload['html_url'] ?? null; if ($value === null) { - $missingFields[] = 'mirror_url'; - goto after_mirror_url; + $missingFields[] = 'html_url'; + goto after_html_url; } - $properties['mirror_url'] = $value; + $properties['html_url'] = $value; - after_mirror_url: + after_html_url: - $value = $payload['hooks_url'] ?? null; + $value = $payload['website_url'] ?? null; if ($value === null) { - $missingFields[] = 'hooks_url'; - goto after_hooks_url; + $missingFields[] = 'website_url'; + goto after_website_url; } - $properties['hooks_url'] = $value; + $properties['website_url'] = $value; - after_hooks_url: + after_website_url: - $value = $payload['svn_url'] ?? null; + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'svn_url'; - goto after_svn_url; + $missingFields[] = 'id'; + goto after_id; } - $properties['svn_url'] = $value; + $properties['id'] = $value; - after_svn_url: + after_id: - $value = $payload['homepage'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $missingFields[] = 'homepage'; - goto after_homepage; + $missingFields[] = 'node_id'; + goto after_node_id; } - $properties['homepage'] = $value; + $properties['node_id'] = $value; - after_homepage: + after_node_id: - $value = $payload['language'] ?? null; + $value = $payload['name'] ?? null; if ($value === null) { - $missingFields[] = 'language'; - goto after_language; + $missingFields[] = 'name'; + goto after_name; } - $properties['language'] = $value; + $properties['name'] = $value; - after_language: + after_name: - $value = $payload['forks_count'] ?? null; + $value = $payload['slug'] ?? null; if ($value === null) { - $missingFields[] = 'forks_count'; - goto after_forks_count; + $missingFields[] = 'slug'; + goto after_slug; } - $properties['forks_count'] = $value; + $properties['slug'] = $value; - after_forks_count: + after_slug: - $value = $payload['stargazers_count'] ?? null; + $value = $payload['created_at'] ?? null; if ($value === null) { - $missingFields[] = 'stargazers_count'; - goto after_stargazers_count; + $missingFields[] = 'created_at'; + goto after_created_at; } - $properties['stargazers_count'] = $value; + $properties['created_at'] = $value; - after_stargazers_count: + after_created_at: - $value = $payload['watchers_count'] ?? null; + $value = $payload['updated_at'] ?? null; if ($value === null) { - $missingFields[] = 'watchers_count'; - goto after_watchers_count; + $missingFields[] = 'updated_at'; + goto after_updated_at; } - $properties['watchers_count'] = $value; + $properties['updated_at'] = $value; - after_watchers_count: + after_updated_at: - $value = $payload['size'] ?? null; + $value = $payload['avatar_url'] ?? null; if ($value === null) { - $missingFields[] = 'size'; - goto after_size; + $missingFields[] = 'avatar_url'; + goto after_avatar_url; } - $properties['size'] = $value; + $properties['avatar_url'] = $value; - after_size: + after_avatar_url: - $value = $payload['default_branch'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Enterprise', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Enterprise::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\Enterprise(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Enterprise', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation(array $payload): \ApiClients\Client\Github\Schema\SimpleInstallation + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'default_branch'; - goto after_default_branch; + $missingFields[] = 'id'; + goto after_id; } - $properties['default_branch'] = $value; + $properties['id'] = $value; - after_default_branch: + after_id: - $value = $payload['open_issues_count'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $missingFields[] = 'open_issues_count'; - goto after_open_issues_count; + $missingFields[] = 'node_id'; + goto after_node_id; } - $properties['open_issues_count'] = $value; + $properties['node_id'] = $value; - after_open_issues_count: + after_node_id: - $value = $payload['is_template'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleInstallation', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\SimpleInstallation::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\SimpleInstallation(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleInstallation', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple(array $payload): \ApiClients\Client\Github\Schema\OrganizationSimple + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['login'] ?? null; if ($value === null) { - $missingFields[] = 'is_template'; - goto after_is_template; + $missingFields[] = 'login'; + goto after_login; } - $properties['is_template'] = $value; + $properties['login'] = $value; - after_is_template: + after_login: - $value = $payload['topics'] ?? null; + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'topics'; - goto after_topics; + $missingFields[] = 'id'; + goto after_id; } - $properties['topics'] = $value; + $properties['id'] = $value; - after_topics: + after_id: - $value = $payload['has_issues'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $missingFields[] = 'has_issues'; - goto after_has_issues; + $missingFields[] = 'node_id'; + goto after_node_id; } - $properties['has_issues'] = $value; + $properties['node_id'] = $value; - after_has_issues: + after_node_id: - $value = $payload['has_projects'] ?? null; + $value = $payload['url'] ?? null; if ($value === null) { - $missingFields[] = 'has_projects'; - goto after_has_projects; + $missingFields[] = 'url'; + goto after_url; } - $properties['has_projects'] = $value; + $properties['url'] = $value; - after_has_projects: + after_url: - $value = $payload['has_wiki'] ?? null; + $value = $payload['repos_url'] ?? null; if ($value === null) { - $missingFields[] = 'has_wiki'; - goto after_has_wiki; + $missingFields[] = 'repos_url'; + goto after_repos_url; } - $properties['has_wiki'] = $value; + $properties['repos_url'] = $value; - after_has_wiki: + after_repos_url: - $value = $payload['has_pages'] ?? null; + $value = $payload['events_url'] ?? null; if ($value === null) { - $missingFields[] = 'has_pages'; - goto after_has_pages; + $missingFields[] = 'events_url'; + goto after_events_url; } - $properties['has_pages'] = $value; + $properties['events_url'] = $value; - after_has_pages: + after_events_url: - $value = $payload['has_downloads'] ?? null; + $value = $payload['hooks_url'] ?? null; if ($value === null) { - $missingFields[] = 'has_downloads'; - goto after_has_downloads; + $missingFields[] = 'hooks_url'; + goto after_hooks_url; } - $properties['has_downloads'] = $value; + $properties['hooks_url'] = $value; - after_has_downloads: + after_hooks_url: - $value = $payload['has_discussions'] ?? null; + $value = $payload['issues_url'] ?? null; if ($value === null) { - $missingFields[] = 'has_discussions'; - goto after_has_discussions; + $missingFields[] = 'issues_url'; + goto after_issues_url; } - $properties['has_discussions'] = $value; + $properties['issues_url'] = $value; - after_has_discussions: + after_issues_url: - $value = $payload['archived'] ?? null; + $value = $payload['members_url'] ?? null; if ($value === null) { - $missingFields[] = 'archived'; - goto after_archived; + $missingFields[] = 'members_url'; + goto after_members_url; } - $properties['archived'] = $value; + $properties['members_url'] = $value; - after_archived: + after_members_url: - $value = $payload['disabled'] ?? null; + $value = $payload['public_members_url'] ?? null; if ($value === null) { - $missingFields[] = 'disabled'; - goto after_disabled; + $missingFields[] = 'public_members_url'; + goto after_public_members_url; } - $properties['disabled'] = $value; + $properties['public_members_url'] = $value; - after_disabled: + after_public_members_url: - $value = $payload['visibility'] ?? null; + $value = $payload['avatar_url'] ?? null; if ($value === null) { - $missingFields[] = 'visibility'; - goto after_visibility; + $missingFields[] = 'avatar_url'; + goto after_avatar_url; } - $properties['visibility'] = $value; + $properties['avatar_url'] = $value; - after_visibility: + after_avatar_url: - $value = $payload['pushed_at'] ?? null; + $value = $payload['description'] ?? null; if ($value === null) { - $missingFields[] = 'pushed_at'; - goto after_pushed_at; + $missingFields[] = 'description'; + goto after_description; } - $properties['pushed_at'] = $value; + $properties['description'] = $value; - after_pushed_at: + after_description: - $value = $payload['created_at'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\OrganizationSimple', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\OrganizationSimple::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\OrganizationSimple(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\OrganizationSimple', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository(array $payload): \ApiClients\Client\Github\Schema\Repository + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'created_at'; - goto after_created_at; + $missingFields[] = 'id'; + goto after_id; } - $properties['created_at'] = $value; + $properties['id'] = $value; - after_created_at: + after_id: - $value = $payload['updated_at'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $missingFields[] = 'updated_at'; - goto after_updated_at; + $missingFields[] = 'node_id'; + goto after_node_id; } - $properties['updated_at'] = $value; + $properties['node_id'] = $value; - after_updated_at: + after_node_id: - $value = $payload['allow_rebase_merge'] ?? null; + $value = $payload['name'] ?? null; if ($value === null) { - $missingFields[] = 'allow_rebase_merge'; - goto after_allow_rebase_merge; + $missingFields[] = 'name'; + goto after_name; } - $properties['allow_rebase_merge'] = $value; + $properties['name'] = $value; - after_allow_rebase_merge: + after_name: - $value = $payload['template_repository'] ?? null; + $value = $payload['full_name'] ?? null; if ($value === null) { - $missingFields[] = 'template_repository'; - goto after_template_repository; + $missingFields[] = 'full_name'; + goto after_full_name; } - if (is_array($value)) { - try { - $this->hydrationStack[] = 'template_repository'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository($value); - } finally { - array_pop($this->hydrationStack); - } - } - - $properties['template_repository'] = $value; + $properties['full_name'] = $value; - after_template_repository: + after_full_name: - $value = $payload['temp_clone_token'] ?? null; + $value = $payload['license'] ?? null; if ($value === null) { - $missingFields[] = 'temp_clone_token'; - goto after_temp_clone_token; + $properties['license'] = null; + goto after_license; } - $properties['temp_clone_token'] = $value; + $properties['license'] = $value; - after_temp_clone_token: + after_license: - $value = $payload['allow_squash_merge'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'allow_squash_merge'; - goto after_allow_squash_merge; + $properties['organization'] = null; + goto after_organization; } - $properties['allow_squash_merge'] = $value; + $properties['organization'] = $value; - after_allow_squash_merge: + after_organization: - $value = $payload['allow_auto_merge'] ?? null; + $value = $payload['forks'] ?? null; if ($value === null) { - $missingFields[] = 'allow_auto_merge'; - goto after_allow_auto_merge; + $missingFields[] = 'forks'; + goto after_forks; } - $properties['allow_auto_merge'] = $value; + $properties['forks'] = $value; - after_allow_auto_merge: + after_forks: - $value = $payload['delete_branch_on_merge'] ?? null; + $value = $payload['permissions'] ?? null; if ($value === null) { - $missingFields[] = 'delete_branch_on_merge'; - goto after_delete_branch_on_merge; + $missingFields[] = 'permissions'; + goto after_permissions; } - $properties['delete_branch_on_merge'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'permissions'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️Permissions($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['permissions'] = $value; - after_delete_branch_on_merge: + after_permissions: - $value = $payload['allow_update_branch'] ?? null; + $value = $payload['owner'] ?? null; if ($value === null) { - $missingFields[] = 'allow_update_branch'; - goto after_allow_update_branch; + $missingFields[] = 'owner'; + goto after_owner; } - $properties['allow_update_branch'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'owner'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['owner'] = $value; - after_allow_update_branch: + after_owner: - $value = $payload['use_squash_pr_title_as_default'] ?? null; + $value = $payload['private'] ?? null; if ($value === null) { - $missingFields[] = 'use_squash_pr_title_as_default'; - goto after_use_squash_pr_title_as_default; + $missingFields[] = 'private'; + goto after_private; } - $properties['use_squash_pr_title_as_default'] = $value; + $properties['private'] = $value; - after_use_squash_pr_title_as_default: + after_private: - $value = $payload['squash_merge_commit_title'] ?? null; + $value = $payload['html_url'] ?? null; if ($value === null) { - $missingFields[] = 'squash_merge_commit_title'; - goto after_squash_merge_commit_title; + $missingFields[] = 'html_url'; + goto after_html_url; } - $properties['squash_merge_commit_title'] = $value; + $properties['html_url'] = $value; - after_squash_merge_commit_title: + after_html_url: - $value = $payload['squash_merge_commit_message'] ?? null; + $value = $payload['description'] ?? null; if ($value === null) { - $missingFields[] = 'squash_merge_commit_message'; - goto after_squash_merge_commit_message; + $missingFields[] = 'description'; + goto after_description; } - $properties['squash_merge_commit_message'] = $value; + $properties['description'] = $value; - after_squash_merge_commit_message: + after_description: - $value = $payload['merge_commit_title'] ?? null; + $value = $payload['fork'] ?? null; if ($value === null) { - $missingFields[] = 'merge_commit_title'; - goto after_merge_commit_title; + $missingFields[] = 'fork'; + goto after_fork; } - $properties['merge_commit_title'] = $value; + $properties['fork'] = $value; - after_merge_commit_title: + after_fork: - $value = $payload['merge_commit_message'] ?? null; + $value = $payload['url'] ?? null; if ($value === null) { - $missingFields[] = 'merge_commit_message'; - goto after_merge_commit_message; + $missingFields[] = 'url'; + goto after_url; } - $properties['merge_commit_message'] = $value; + $properties['url'] = $value; - after_merge_commit_message: + after_url: - $value = $payload['allow_merge_commit'] ?? null; + $value = $payload['archive_url'] ?? null; if ($value === null) { - $missingFields[] = 'allow_merge_commit'; - goto after_allow_merge_commit; + $missingFields[] = 'archive_url'; + goto after_archive_url; } - $properties['allow_merge_commit'] = $value; + $properties['archive_url'] = $value; - after_allow_merge_commit: + after_archive_url: - $value = $payload['allow_forking'] ?? null; + $value = $payload['assignees_url'] ?? null; if ($value === null) { - $missingFields[] = 'allow_forking'; - goto after_allow_forking; + $missingFields[] = 'assignees_url'; + goto after_assignees_url; } - $properties['allow_forking'] = $value; + $properties['assignees_url'] = $value; - after_allow_forking: + after_assignees_url: - $value = $payload['web_commit_signoff_required'] ?? null; + $value = $payload['blobs_url'] ?? null; if ($value === null) { - $missingFields[] = 'web_commit_signoff_required'; - goto after_web_commit_signoff_required; + $missingFields[] = 'blobs_url'; + goto after_blobs_url; } - $properties['web_commit_signoff_required'] = $value; + $properties['blobs_url'] = $value; - after_web_commit_signoff_required: + after_blobs_url: - $value = $payload['subscribers_count'] ?? null; + $value = $payload['branches_url'] ?? null; if ($value === null) { - $missingFields[] = 'subscribers_count'; - goto after_subscribers_count; + $missingFields[] = 'branches_url'; + goto after_branches_url; } - $properties['subscribers_count'] = $value; + $properties['branches_url'] = $value; - after_subscribers_count: + after_branches_url: - $value = $payload['network_count'] ?? null; + $value = $payload['collaborators_url'] ?? null; if ($value === null) { - $missingFields[] = 'network_count'; - goto after_network_count; + $missingFields[] = 'collaborators_url'; + goto after_collaborators_url; } - $properties['network_count'] = $value; + $properties['collaborators_url'] = $value; - after_network_count: + after_collaborators_url: - $value = $payload['open_issues'] ?? null; + $value = $payload['comments_url'] ?? null; if ($value === null) { - $missingFields[] = 'open_issues'; - goto after_open_issues; + $missingFields[] = 'comments_url'; + goto after_comments_url; } - $properties['open_issues'] = $value; + $properties['comments_url'] = $value; - after_open_issues: + after_comments_url: - $value = $payload['watchers'] ?? null; + $value = $payload['commits_url'] ?? null; if ($value === null) { - $missingFields[] = 'watchers'; - goto after_watchers; + $missingFields[] = 'commits_url'; + goto after_commits_url; } - $properties['watchers'] = $value; + $properties['commits_url'] = $value; - after_watchers: + after_commits_url: - $value = $payload['master_branch'] ?? null; + $value = $payload['compare_url'] ?? null; if ($value === null) { - $missingFields[] = 'master_branch'; - goto after_master_branch; + $missingFields[] = 'compare_url'; + goto after_compare_url; } - $properties['master_branch'] = $value; + $properties['compare_url'] = $value; - after_master_branch: + after_compare_url: - $value = $payload['starred_at'] ?? null; + $value = $payload['contents_url'] ?? null; if ($value === null) { - $missingFields[] = 'starred_at'; - goto after_starred_at; + $missingFields[] = 'contents_url'; + goto after_contents_url; } - $properties['starred_at'] = $value; + $properties['contents_url'] = $value; - after_starred_at: + after_contents_url: - $value = $payload['anonymous_access_enabled'] ?? null; + $value = $payload['contributors_url'] ?? null; if ($value === null) { - $missingFields[] = 'anonymous_access_enabled'; - goto after_anonymous_access_enabled; + $missingFields[] = 'contributors_url'; + goto after_contributors_url; } - $properties['anonymous_access_enabled'] = $value; + $properties['contributors_url'] = $value; - after_anonymous_access_enabled: - - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\Repository(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository', $exception, stack: $this->hydrationStack); - } - } + after_contributors_url: - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser(array $payload): \ApiClients\Client\Github\Schema\SimpleUser - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['name'] ?? null; + $value = $payload['deployments_url'] ?? null; if ($value === null) { - $missingFields[] = 'name'; - goto after_name; + $missingFields[] = 'deployments_url'; + goto after_deployments_url; } - $properties['name'] = $value; + $properties['deployments_url'] = $value; - after_name: + after_deployments_url: - $value = $payload['email'] ?? null; + $value = $payload['downloads_url'] ?? null; if ($value === null) { - $missingFields[] = 'email'; - goto after_email; + $missingFields[] = 'downloads_url'; + goto after_downloads_url; } - $properties['email'] = $value; + $properties['downloads_url'] = $value; - after_email: + after_downloads_url: - $value = $payload['login'] ?? null; + $value = $payload['events_url'] ?? null; if ($value === null) { - $missingFields[] = 'login'; - goto after_login; + $missingFields[] = 'events_url'; + goto after_events_url; } - $properties['login'] = $value; + $properties['events_url'] = $value; - after_login: + after_events_url: - $value = $payload['id'] ?? null; + $value = $payload['forks_url'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'forks_url'; + goto after_forks_url; } - $properties['id'] = $value; + $properties['forks_url'] = $value; - after_id: + after_forks_url: - $value = $payload['node_id'] ?? null; + $value = $payload['git_commits_url'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $missingFields[] = 'git_commits_url'; + goto after_git_commits_url; } - $properties['node_id'] = $value; + $properties['git_commits_url'] = $value; - after_node_id: + after_git_commits_url: - $value = $payload['avatar_url'] ?? null; + $value = $payload['git_refs_url'] ?? null; if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatar_url; + $missingFields[] = 'git_refs_url'; + goto after_git_refs_url; } - $properties['avatar_url'] = $value; + $properties['git_refs_url'] = $value; - after_avatar_url: + after_git_refs_url: - $value = $payload['gravatar_id'] ?? null; + $value = $payload['git_tags_url'] ?? null; if ($value === null) { - $missingFields[] = 'gravatar_id'; - goto after_gravatar_id; + $missingFields[] = 'git_tags_url'; + goto after_git_tags_url; } - $properties['gravatar_id'] = $value; + $properties['git_tags_url'] = $value; - after_gravatar_id: + after_git_tags_url: - $value = $payload['url'] ?? null; + $value = $payload['git_url'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $missingFields[] = 'git_url'; + goto after_git_url; } - $properties['url'] = $value; + $properties['git_url'] = $value; - after_url: + after_git_url: - $value = $payload['html_url'] ?? null; + $value = $payload['issue_comment_url'] ?? null; if ($value === null) { - $missingFields[] = 'html_url'; - goto after_html_url; + $missingFields[] = 'issue_comment_url'; + goto after_issue_comment_url; } - $properties['html_url'] = $value; + $properties['issue_comment_url'] = $value; - after_html_url: + after_issue_comment_url: - $value = $payload['followers_url'] ?? null; + $value = $payload['issue_events_url'] ?? null; if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followers_url; + $missingFields[] = 'issue_events_url'; + goto after_issue_events_url; } - $properties['followers_url'] = $value; + $properties['issue_events_url'] = $value; - after_followers_url: + after_issue_events_url: - $value = $payload['following_url'] ?? null; + $value = $payload['issues_url'] ?? null; if ($value === null) { - $missingFields[] = 'following_url'; - goto after_following_url; + $missingFields[] = 'issues_url'; + goto after_issues_url; } - $properties['following_url'] = $value; + $properties['issues_url'] = $value; - after_following_url: + after_issues_url: - $value = $payload['gists_url'] ?? null; + $value = $payload['keys_url'] ?? null; if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gists_url; + $missingFields[] = 'keys_url'; + goto after_keys_url; } - $properties['gists_url'] = $value; + $properties['keys_url'] = $value; - after_gists_url: + after_keys_url: - $value = $payload['starred_url'] ?? null; + $value = $payload['labels_url'] ?? null; if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starred_url; + $missingFields[] = 'labels_url'; + goto after_labels_url; } - $properties['starred_url'] = $value; + $properties['labels_url'] = $value; - after_starred_url: + after_labels_url: - $value = $payload['subscriptions_url'] ?? null; + $value = $payload['languages_url'] ?? null; if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptions_url; + $missingFields[] = 'languages_url'; + goto after_languages_url; } - $properties['subscriptions_url'] = $value; + $properties['languages_url'] = $value; - after_subscriptions_url: + after_languages_url: - $value = $payload['organizations_url'] ?? null; + $value = $payload['merges_url'] ?? null; if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizations_url; + $missingFields[] = 'merges_url'; + goto after_merges_url; } - $properties['organizations_url'] = $value; + $properties['merges_url'] = $value; - after_organizations_url: + after_merges_url: - $value = $payload['repos_url'] ?? null; + $value = $payload['milestones_url'] ?? null; if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_repos_url; + $missingFields[] = 'milestones_url'; + goto after_milestones_url; } - $properties['repos_url'] = $value; + $properties['milestones_url'] = $value; - after_repos_url: + after_milestones_url: - $value = $payload['events_url'] ?? null; + $value = $payload['notifications_url'] ?? null; if ($value === null) { - $missingFields[] = 'events_url'; - goto after_events_url; + $missingFields[] = 'notifications_url'; + goto after_notifications_url; } - $properties['events_url'] = $value; + $properties['notifications_url'] = $value; - after_events_url: + after_notifications_url: - $value = $payload['received_events_url'] ?? null; + $value = $payload['pulls_url'] ?? null; if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_received_events_url; + $missingFields[] = 'pulls_url'; + goto after_pulls_url; } - $properties['received_events_url'] = $value; + $properties['pulls_url'] = $value; - after_received_events_url: + after_pulls_url: - $value = $payload['type'] ?? null; + $value = $payload['releases_url'] ?? null; if ($value === null) { - $missingFields[] = 'type'; - goto after_type; + $missingFields[] = 'releases_url'; + goto after_releases_url; } - $properties['type'] = $value; + $properties['releases_url'] = $value; - after_type: + after_releases_url: - $value = $payload['site_admin'] ?? null; + $value = $payload['ssh_url'] ?? null; if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_site_admin; + $missingFields[] = 'ssh_url'; + goto after_ssh_url; } - $properties['site_admin'] = $value; + $properties['ssh_url'] = $value; - after_site_admin: + after_ssh_url: - $value = $payload['starred_at'] ?? null; + $value = $payload['stargazers_url'] ?? null; if ($value === null) { - $missingFields[] = 'starred_at'; - goto after_starred_at; + $missingFields[] = 'stargazers_url'; + goto after_stargazers_url; } - $properties['starred_at'] = $value; + $properties['stargazers_url'] = $value; - after_starred_at: - - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleUser', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\SimpleUser::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\SimpleUser(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleUser', $exception, stack: $this->hydrationStack); - } - } + after_stargazers_url: - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️Permissions(array $payload): \ApiClients\Client\Github\Schema\Repository\Permissions - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['admin'] ?? null; + $value = $payload['statuses_url'] ?? null; if ($value === null) { - $missingFields[] = 'admin'; - goto after_admin; + $missingFields[] = 'statuses_url'; + goto after_statuses_url; } - $properties['admin'] = $value; + $properties['statuses_url'] = $value; - after_admin: + after_statuses_url: - $value = $payload['pull'] ?? null; + $value = $payload['subscribers_url'] ?? null; if ($value === null) { - $missingFields[] = 'pull'; - goto after_pull; + $missingFields[] = 'subscribers_url'; + goto after_subscribers_url; } - $properties['pull'] = $value; + $properties['subscribers_url'] = $value; - after_pull: + after_subscribers_url: - $value = $payload['triage'] ?? null; + $value = $payload['subscription_url'] ?? null; if ($value === null) { - $missingFields[] = 'triage'; - goto after_triage; + $missingFields[] = 'subscription_url'; + goto after_subscription_url; } - $properties['triage'] = $value; + $properties['subscription_url'] = $value; - after_triage: + after_subscription_url: - $value = $payload['push'] ?? null; + $value = $payload['tags_url'] ?? null; if ($value === null) { - $missingFields[] = 'push'; - goto after_push; - } + $missingFields[] = 'tags_url'; + goto after_tags_url; + } - $properties['push'] = $value; + $properties['tags_url'] = $value; - after_push: + after_tags_url: - $value = $payload['maintain'] ?? null; + $value = $payload['teams_url'] ?? null; if ($value === null) { - $missingFields[] = 'maintain'; - goto after_maintain; + $missingFields[] = 'teams_url'; + goto after_teams_url; } - $properties['maintain'] = $value; + $properties['teams_url'] = $value; - after_maintain: - - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\Permissions', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\Permissions::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\Repository\Permissions(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\Permissions', $exception, stack: $this->hydrationStack); - } - } + after_teams_url: - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository(array $payload): \ApiClients\Client\Github\Schema\Repository\TemplateRepository - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['id'] ?? null; + $value = $payload['trees_url'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'trees_url'; + goto after_trees_url; } - $properties['id'] = $value; + $properties['trees_url'] = $value; - after_id: + after_trees_url: - $value = $payload['node_id'] ?? null; + $value = $payload['clone_url'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $missingFields[] = 'clone_url'; + goto after_clone_url; } - $properties['node_id'] = $value; + $properties['clone_url'] = $value; - after_node_id: + after_clone_url: - $value = $payload['name'] ?? null; + $value = $payload['mirror_url'] ?? null; if ($value === null) { - $missingFields[] = 'name'; - goto after_name; + $missingFields[] = 'mirror_url'; + goto after_mirror_url; } - $properties['name'] = $value; + $properties['mirror_url'] = $value; - after_name: + after_mirror_url: - $value = $payload['full_name'] ?? null; + $value = $payload['hooks_url'] ?? null; if ($value === null) { - $missingFields[] = 'full_name'; - goto after_full_name; + $missingFields[] = 'hooks_url'; + goto after_hooks_url; } - $properties['full_name'] = $value; + $properties['hooks_url'] = $value; - after_full_name: + after_hooks_url: - $value = $payload['owner'] ?? null; + $value = $payload['svn_url'] ?? null; if ($value === null) { - $missingFields[] = 'owner'; - goto after_owner; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'owner'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'svn_url'; + goto after_svn_url; } - $properties['owner'] = $value; + $properties['svn_url'] = $value; - after_owner: + after_svn_url: - $value = $payload['private'] ?? null; + $value = $payload['homepage'] ?? null; if ($value === null) { - $missingFields[] = 'private'; - goto after_private; + $missingFields[] = 'homepage'; + goto after_homepage; } - $properties['private'] = $value; + $properties['homepage'] = $value; - after_private: + after_homepage: - $value = $payload['html_url'] ?? null; + $value = $payload['language'] ?? null; if ($value === null) { - $missingFields[] = 'html_url'; - goto after_html_url; + $missingFields[] = 'language'; + goto after_language; } - $properties['html_url'] = $value; + $properties['language'] = $value; - after_html_url: + after_language: - $value = $payload['description'] ?? null; + $value = $payload['forks_count'] ?? null; if ($value === null) { - $missingFields[] = 'description'; - goto after_description; + $missingFields[] = 'forks_count'; + goto after_forks_count; } - $properties['description'] = $value; + $properties['forks_count'] = $value; - after_description: + after_forks_count: - $value = $payload['fork'] ?? null; + $value = $payload['stargazers_count'] ?? null; if ($value === null) { - $missingFields[] = 'fork'; - goto after_fork; + $missingFields[] = 'stargazers_count'; + goto after_stargazers_count; } - $properties['fork'] = $value; + $properties['stargazers_count'] = $value; - after_fork: + after_stargazers_count: - $value = $payload['url'] ?? null; + $value = $payload['watchers_count'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $missingFields[] = 'watchers_count'; + goto after_watchers_count; } - $properties['url'] = $value; + $properties['watchers_count'] = $value; - after_url: + after_watchers_count: - $value = $payload['archive_url'] ?? null; + $value = $payload['size'] ?? null; if ($value === null) { - $missingFields[] = 'archive_url'; - goto after_archive_url; + $missingFields[] = 'size'; + goto after_size; } - $properties['archive_url'] = $value; + $properties['size'] = $value; - after_archive_url: + after_size: - $value = $payload['assignees_url'] ?? null; + $value = $payload['default_branch'] ?? null; if ($value === null) { - $missingFields[] = 'assignees_url'; - goto after_assignees_url; + $missingFields[] = 'default_branch'; + goto after_default_branch; } - $properties['assignees_url'] = $value; + $properties['default_branch'] = $value; - after_assignees_url: + after_default_branch: - $value = $payload['blobs_url'] ?? null; + $value = $payload['open_issues_count'] ?? null; if ($value === null) { - $missingFields[] = 'blobs_url'; - goto after_blobs_url; + $missingFields[] = 'open_issues_count'; + goto after_open_issues_count; } - $properties['blobs_url'] = $value; + $properties['open_issues_count'] = $value; - after_blobs_url: + after_open_issues_count: - $value = $payload['branches_url'] ?? null; + $value = $payload['is_template'] ?? null; if ($value === null) { - $missingFields[] = 'branches_url'; - goto after_branches_url; + $missingFields[] = 'is_template'; + goto after_is_template; } - $properties['branches_url'] = $value; + $properties['is_template'] = $value; - after_branches_url: + after_is_template: - $value = $payload['collaborators_url'] ?? null; + $value = $payload['topics'] ?? null; if ($value === null) { - $missingFields[] = 'collaborators_url'; - goto after_collaborators_url; + $missingFields[] = 'topics'; + goto after_topics; } - $properties['collaborators_url'] = $value; + $properties['topics'] = $value; - after_collaborators_url: + after_topics: - $value = $payload['comments_url'] ?? null; + $value = $payload['has_issues'] ?? null; if ($value === null) { - $missingFields[] = 'comments_url'; - goto after_comments_url; + $missingFields[] = 'has_issues'; + goto after_has_issues; } - $properties['comments_url'] = $value; + $properties['has_issues'] = $value; - after_comments_url: + after_has_issues: - $value = $payload['commits_url'] ?? null; + $value = $payload['has_projects'] ?? null; if ($value === null) { - $missingFields[] = 'commits_url'; - goto after_commits_url; + $missingFields[] = 'has_projects'; + goto after_has_projects; } - $properties['commits_url'] = $value; + $properties['has_projects'] = $value; - after_commits_url: + after_has_projects: - $value = $payload['compare_url'] ?? null; + $value = $payload['has_wiki'] ?? null; if ($value === null) { - $missingFields[] = 'compare_url'; - goto after_compare_url; + $missingFields[] = 'has_wiki'; + goto after_has_wiki; } - $properties['compare_url'] = $value; + $properties['has_wiki'] = $value; - after_compare_url: + after_has_wiki: - $value = $payload['contents_url'] ?? null; + $value = $payload['has_pages'] ?? null; if ($value === null) { - $missingFields[] = 'contents_url'; - goto after_contents_url; + $missingFields[] = 'has_pages'; + goto after_has_pages; } - $properties['contents_url'] = $value; + $properties['has_pages'] = $value; - after_contents_url: + after_has_pages: - $value = $payload['contributors_url'] ?? null; + $value = $payload['has_downloads'] ?? null; if ($value === null) { - $missingFields[] = 'contributors_url'; - goto after_contributors_url; + $missingFields[] = 'has_downloads'; + goto after_has_downloads; } - $properties['contributors_url'] = $value; + $properties['has_downloads'] = $value; - after_contributors_url: + after_has_downloads: - $value = $payload['deployments_url'] ?? null; + $value = $payload['has_discussions'] ?? null; if ($value === null) { - $missingFields[] = 'deployments_url'; - goto after_deployments_url; + $missingFields[] = 'has_discussions'; + goto after_has_discussions; } - $properties['deployments_url'] = $value; + $properties['has_discussions'] = $value; - after_deployments_url: + after_has_discussions: - $value = $payload['downloads_url'] ?? null; + $value = $payload['archived'] ?? null; if ($value === null) { - $missingFields[] = 'downloads_url'; - goto after_downloads_url; + $missingFields[] = 'archived'; + goto after_archived; } - $properties['downloads_url'] = $value; + $properties['archived'] = $value; - after_downloads_url: + after_archived: - $value = $payload['events_url'] ?? null; + $value = $payload['disabled'] ?? null; if ($value === null) { - $missingFields[] = 'events_url'; - goto after_events_url; + $missingFields[] = 'disabled'; + goto after_disabled; } - $properties['events_url'] = $value; + $properties['disabled'] = $value; - after_events_url: + after_disabled: - $value = $payload['forks_url'] ?? null; + $value = $payload['visibility'] ?? null; if ($value === null) { - $missingFields[] = 'forks_url'; - goto after_forks_url; + $missingFields[] = 'visibility'; + goto after_visibility; } - $properties['forks_url'] = $value; + $properties['visibility'] = $value; - after_forks_url: + after_visibility: - $value = $payload['git_commits_url'] ?? null; + $value = $payload['pushed_at'] ?? null; if ($value === null) { - $missingFields[] = 'git_commits_url'; - goto after_git_commits_url; + $missingFields[] = 'pushed_at'; + goto after_pushed_at; } - $properties['git_commits_url'] = $value; + $properties['pushed_at'] = $value; - after_git_commits_url: + after_pushed_at: - $value = $payload['git_refs_url'] ?? null; + $value = $payload['created_at'] ?? null; if ($value === null) { - $missingFields[] = 'git_refs_url'; - goto after_git_refs_url; + $missingFields[] = 'created_at'; + goto after_created_at; } - $properties['git_refs_url'] = $value; + $properties['created_at'] = $value; - after_git_refs_url: + after_created_at: - $value = $payload['git_tags_url'] ?? null; + $value = $payload['updated_at'] ?? null; if ($value === null) { - $missingFields[] = 'git_tags_url'; - goto after_git_tags_url; + $missingFields[] = 'updated_at'; + goto after_updated_at; } - $properties['git_tags_url'] = $value; + $properties['updated_at'] = $value; - after_git_tags_url: + after_updated_at: - $value = $payload['git_url'] ?? null; + $value = $payload['allow_rebase_merge'] ?? null; if ($value === null) { - $missingFields[] = 'git_url'; - goto after_git_url; + $missingFields[] = 'allow_rebase_merge'; + goto after_allow_rebase_merge; } - $properties['git_url'] = $value; + $properties['allow_rebase_merge'] = $value; - after_git_url: + after_allow_rebase_merge: - $value = $payload['issue_comment_url'] ?? null; + $value = $payload['template_repository'] ?? null; if ($value === null) { - $missingFields[] = 'issue_comment_url'; - goto after_issue_comment_url; + $missingFields[] = 'template_repository'; + goto after_template_repository; } - $properties['issue_comment_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'template_repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['template_repository'] = $value; - after_issue_comment_url: + after_template_repository: - $value = $payload['issue_events_url'] ?? null; + $value = $payload['temp_clone_token'] ?? null; if ($value === null) { - $missingFields[] = 'issue_events_url'; - goto after_issue_events_url; + $missingFields[] = 'temp_clone_token'; + goto after_temp_clone_token; } - $properties['issue_events_url'] = $value; + $properties['temp_clone_token'] = $value; - after_issue_events_url: + after_temp_clone_token: - $value = $payload['issues_url'] ?? null; + $value = $payload['allow_squash_merge'] ?? null; if ($value === null) { - $missingFields[] = 'issues_url'; - goto after_issues_url; + $missingFields[] = 'allow_squash_merge'; + goto after_allow_squash_merge; } - $properties['issues_url'] = $value; + $properties['allow_squash_merge'] = $value; - after_issues_url: + after_allow_squash_merge: - $value = $payload['keys_url'] ?? null; + $value = $payload['allow_auto_merge'] ?? null; if ($value === null) { - $missingFields[] = 'keys_url'; - goto after_keys_url; + $missingFields[] = 'allow_auto_merge'; + goto after_allow_auto_merge; } - $properties['keys_url'] = $value; + $properties['allow_auto_merge'] = $value; - after_keys_url: + after_allow_auto_merge: - $value = $payload['labels_url'] ?? null; + $value = $payload['delete_branch_on_merge'] ?? null; if ($value === null) { - $missingFields[] = 'labels_url'; - goto after_labels_url; + $missingFields[] = 'delete_branch_on_merge'; + goto after_delete_branch_on_merge; } - $properties['labels_url'] = $value; + $properties['delete_branch_on_merge'] = $value; - after_labels_url: + after_delete_branch_on_merge: - $value = $payload['languages_url'] ?? null; + $value = $payload['allow_update_branch'] ?? null; if ($value === null) { - $missingFields[] = 'languages_url'; - goto after_languages_url; + $missingFields[] = 'allow_update_branch'; + goto after_allow_update_branch; } - $properties['languages_url'] = $value; + $properties['allow_update_branch'] = $value; - after_languages_url: + after_allow_update_branch: - $value = $payload['merges_url'] ?? null; + $value = $payload['use_squash_pr_title_as_default'] ?? null; if ($value === null) { - $missingFields[] = 'merges_url'; - goto after_merges_url; + $missingFields[] = 'use_squash_pr_title_as_default'; + goto after_use_squash_pr_title_as_default; } - $properties['merges_url'] = $value; + $properties['use_squash_pr_title_as_default'] = $value; - after_merges_url: + after_use_squash_pr_title_as_default: - $value = $payload['milestones_url'] ?? null; + $value = $payload['squash_merge_commit_title'] ?? null; if ($value === null) { - $missingFields[] = 'milestones_url'; - goto after_milestones_url; + $missingFields[] = 'squash_merge_commit_title'; + goto after_squash_merge_commit_title; } - $properties['milestones_url'] = $value; + $properties['squash_merge_commit_title'] = $value; - after_milestones_url: + after_squash_merge_commit_title: - $value = $payload['notifications_url'] ?? null; + $value = $payload['squash_merge_commit_message'] ?? null; if ($value === null) { - $missingFields[] = 'notifications_url'; - goto after_notifications_url; + $missingFields[] = 'squash_merge_commit_message'; + goto after_squash_merge_commit_message; } - $properties['notifications_url'] = $value; + $properties['squash_merge_commit_message'] = $value; - after_notifications_url: + after_squash_merge_commit_message: - $value = $payload['pulls_url'] ?? null; + $value = $payload['merge_commit_title'] ?? null; if ($value === null) { - $missingFields[] = 'pulls_url'; - goto after_pulls_url; + $missingFields[] = 'merge_commit_title'; + goto after_merge_commit_title; } - $properties['pulls_url'] = $value; + $properties['merge_commit_title'] = $value; - after_pulls_url: + after_merge_commit_title: - $value = $payload['releases_url'] ?? null; + $value = $payload['merge_commit_message'] ?? null; if ($value === null) { - $missingFields[] = 'releases_url'; - goto after_releases_url; + $missingFields[] = 'merge_commit_message'; + goto after_merge_commit_message; } - $properties['releases_url'] = $value; + $properties['merge_commit_message'] = $value; - after_releases_url: + after_merge_commit_message: - $value = $payload['ssh_url'] ?? null; + $value = $payload['allow_merge_commit'] ?? null; if ($value === null) { - $missingFields[] = 'ssh_url'; - goto after_ssh_url; + $missingFields[] = 'allow_merge_commit'; + goto after_allow_merge_commit; } - $properties['ssh_url'] = $value; + $properties['allow_merge_commit'] = $value; - after_ssh_url: + after_allow_merge_commit: - $value = $payload['stargazers_url'] ?? null; + $value = $payload['allow_forking'] ?? null; if ($value === null) { - $missingFields[] = 'stargazers_url'; - goto after_stargazers_url; + $missingFields[] = 'allow_forking'; + goto after_allow_forking; } - $properties['stargazers_url'] = $value; + $properties['allow_forking'] = $value; - after_stargazers_url: + after_allow_forking: - $value = $payload['statuses_url'] ?? null; + $value = $payload['web_commit_signoff_required'] ?? null; if ($value === null) { - $missingFields[] = 'statuses_url'; - goto after_statuses_url; + $missingFields[] = 'web_commit_signoff_required'; + goto after_web_commit_signoff_required; } - $properties['statuses_url'] = $value; + $properties['web_commit_signoff_required'] = $value; - after_statuses_url: + after_web_commit_signoff_required: - $value = $payload['subscribers_url'] ?? null; + $value = $payload['subscribers_count'] ?? null; if ($value === null) { - $missingFields[] = 'subscribers_url'; - goto after_subscribers_url; + $missingFields[] = 'subscribers_count'; + goto after_subscribers_count; } - $properties['subscribers_url'] = $value; + $properties['subscribers_count'] = $value; - after_subscribers_url: + after_subscribers_count: - $value = $payload['subscription_url'] ?? null; + $value = $payload['network_count'] ?? null; if ($value === null) { - $missingFields[] = 'subscription_url'; - goto after_subscription_url; + $missingFields[] = 'network_count'; + goto after_network_count; } - $properties['subscription_url'] = $value; + $properties['network_count'] = $value; - after_subscription_url: + after_network_count: - $value = $payload['tags_url'] ?? null; + $value = $payload['open_issues'] ?? null; if ($value === null) { - $missingFields[] = 'tags_url'; - goto after_tags_url; + $missingFields[] = 'open_issues'; + goto after_open_issues; } - $properties['tags_url'] = $value; + $properties['open_issues'] = $value; - after_tags_url: + after_open_issues: - $value = $payload['teams_url'] ?? null; + $value = $payload['watchers'] ?? null; if ($value === null) { - $missingFields[] = 'teams_url'; - goto after_teams_url; - } + $missingFields[] = 'watchers'; + goto after_watchers; + } - $properties['teams_url'] = $value; + $properties['watchers'] = $value; - after_teams_url: + after_watchers: - $value = $payload['trees_url'] ?? null; + $value = $payload['master_branch'] ?? null; if ($value === null) { - $missingFields[] = 'trees_url'; - goto after_trees_url; + $missingFields[] = 'master_branch'; + goto after_master_branch; } - $properties['trees_url'] = $value; + $properties['master_branch'] = $value; - after_trees_url: + after_master_branch: - $value = $payload['clone_url'] ?? null; + $value = $payload['starred_at'] ?? null; if ($value === null) { - $missingFields[] = 'clone_url'; - goto after_clone_url; + $missingFields[] = 'starred_at'; + goto after_starred_at; } - $properties['clone_url'] = $value; + $properties['starred_at'] = $value; - after_clone_url: + after_starred_at: - $value = $payload['mirror_url'] ?? null; + $value = $payload['anonymous_access_enabled'] ?? null; if ($value === null) { - $missingFields[] = 'mirror_url'; - goto after_mirror_url; + $missingFields[] = 'anonymous_access_enabled'; + goto after_anonymous_access_enabled; } - $properties['mirror_url'] = $value; + $properties['anonymous_access_enabled'] = $value; - after_mirror_url: + after_anonymous_access_enabled: - $value = $payload['hooks_url'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\Repository(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser(array $payload): \ApiClients\Client\Github\Schema\SimpleUser + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['name'] ?? null; if ($value === null) { - $missingFields[] = 'hooks_url'; - goto after_hooks_url; + $missingFields[] = 'name'; + goto after_name; } - $properties['hooks_url'] = $value; + $properties['name'] = $value; - after_hooks_url: + after_name: - $value = $payload['svn_url'] ?? null; + $value = $payload['email'] ?? null; if ($value === null) { - $missingFields[] = 'svn_url'; - goto after_svn_url; + $missingFields[] = 'email'; + goto after_email; } - $properties['svn_url'] = $value; + $properties['email'] = $value; - after_svn_url: + after_email: - $value = $payload['homepage'] ?? null; + $value = $payload['login'] ?? null; if ($value === null) { - $missingFields[] = 'homepage'; - goto after_homepage; + $missingFields[] = 'login'; + goto after_login; } - $properties['homepage'] = $value; + $properties['login'] = $value; - after_homepage: + after_login: - $value = $payload['language'] ?? null; + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'language'; - goto after_language; + $missingFields[] = 'id'; + goto after_id; } - $properties['language'] = $value; + $properties['id'] = $value; - after_language: + after_id: - $value = $payload['forks_count'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $missingFields[] = 'forks_count'; - goto after_forks_count; + $missingFields[] = 'node_id'; + goto after_node_id; } - $properties['forks_count'] = $value; + $properties['node_id'] = $value; - after_forks_count: + after_node_id: - $value = $payload['stargazers_count'] ?? null; + $value = $payload['avatar_url'] ?? null; if ($value === null) { - $missingFields[] = 'stargazers_count'; - goto after_stargazers_count; + $missingFields[] = 'avatar_url'; + goto after_avatar_url; } - $properties['stargazers_count'] = $value; + $properties['avatar_url'] = $value; - after_stargazers_count: + after_avatar_url: - $value = $payload['watchers_count'] ?? null; + $value = $payload['gravatar_id'] ?? null; if ($value === null) { - $missingFields[] = 'watchers_count'; - goto after_watchers_count; + $missingFields[] = 'gravatar_id'; + goto after_gravatar_id; } - $properties['watchers_count'] = $value; + $properties['gravatar_id'] = $value; - after_watchers_count: + after_gravatar_id: - $value = $payload['size'] ?? null; + $value = $payload['url'] ?? null; if ($value === null) { - $missingFields[] = 'size'; - goto after_size; + $missingFields[] = 'url'; + goto after_url; } - $properties['size'] = $value; + $properties['url'] = $value; - after_size: + after_url: - $value = $payload['default_branch'] ?? null; + $value = $payload['html_url'] ?? null; if ($value === null) { - $missingFields[] = 'default_branch'; - goto after_default_branch; + $missingFields[] = 'html_url'; + goto after_html_url; } - $properties['default_branch'] = $value; + $properties['html_url'] = $value; - after_default_branch: + after_html_url: - $value = $payload['open_issues_count'] ?? null; + $value = $payload['followers_url'] ?? null; if ($value === null) { - $missingFields[] = 'open_issues_count'; - goto after_open_issues_count; + $missingFields[] = 'followers_url'; + goto after_followers_url; } - $properties['open_issues_count'] = $value; + $properties['followers_url'] = $value; - after_open_issues_count: + after_followers_url: - $value = $payload['is_template'] ?? null; + $value = $payload['following_url'] ?? null; if ($value === null) { - $missingFields[] = 'is_template'; - goto after_is_template; + $missingFields[] = 'following_url'; + goto after_following_url; } - $properties['is_template'] = $value; + $properties['following_url'] = $value; - after_is_template: + after_following_url: - $value = $payload['topics'] ?? null; + $value = $payload['gists_url'] ?? null; if ($value === null) { - $missingFields[] = 'topics'; - goto after_topics; + $missingFields[] = 'gists_url'; + goto after_gists_url; } - $properties['topics'] = $value; + $properties['gists_url'] = $value; - after_topics: + after_gists_url: - $value = $payload['has_issues'] ?? null; + $value = $payload['starred_url'] ?? null; if ($value === null) { - $missingFields[] = 'has_issues'; - goto after_has_issues; + $missingFields[] = 'starred_url'; + goto after_starred_url; } - $properties['has_issues'] = $value; + $properties['starred_url'] = $value; - after_has_issues: + after_starred_url: - $value = $payload['has_projects'] ?? null; + $value = $payload['subscriptions_url'] ?? null; if ($value === null) { - $missingFields[] = 'has_projects'; - goto after_has_projects; + $missingFields[] = 'subscriptions_url'; + goto after_subscriptions_url; } - $properties['has_projects'] = $value; + $properties['subscriptions_url'] = $value; - after_has_projects: + after_subscriptions_url: - $value = $payload['has_wiki'] ?? null; + $value = $payload['organizations_url'] ?? null; if ($value === null) { - $missingFields[] = 'has_wiki'; - goto after_has_wiki; + $missingFields[] = 'organizations_url'; + goto after_organizations_url; } - $properties['has_wiki'] = $value; + $properties['organizations_url'] = $value; - after_has_wiki: + after_organizations_url: - $value = $payload['has_pages'] ?? null; + $value = $payload['repos_url'] ?? null; if ($value === null) { - $missingFields[] = 'has_pages'; - goto after_has_pages; + $missingFields[] = 'repos_url'; + goto after_repos_url; } - $properties['has_pages'] = $value; + $properties['repos_url'] = $value; - after_has_pages: + after_repos_url: - $value = $payload['has_downloads'] ?? null; + $value = $payload['events_url'] ?? null; if ($value === null) { - $missingFields[] = 'has_downloads'; - goto after_has_downloads; + $missingFields[] = 'events_url'; + goto after_events_url; } - $properties['has_downloads'] = $value; + $properties['events_url'] = $value; - after_has_downloads: + after_events_url: - $value = $payload['archived'] ?? null; + $value = $payload['received_events_url'] ?? null; if ($value === null) { - $missingFields[] = 'archived'; - goto after_archived; + $missingFields[] = 'received_events_url'; + goto after_received_events_url; } - $properties['archived'] = $value; + $properties['received_events_url'] = $value; - after_archived: + after_received_events_url: - $value = $payload['disabled'] ?? null; + $value = $payload['type'] ?? null; if ($value === null) { - $missingFields[] = 'disabled'; - goto after_disabled; + $missingFields[] = 'type'; + goto after_type; } - $properties['disabled'] = $value; + $properties['type'] = $value; - after_disabled: + after_type: - $value = $payload['visibility'] ?? null; + $value = $payload['site_admin'] ?? null; if ($value === null) { - $missingFields[] = 'visibility'; - goto after_visibility; + $missingFields[] = 'site_admin'; + goto after_site_admin; } - $properties['visibility'] = $value; + $properties['site_admin'] = $value; - after_visibility: + after_site_admin: - $value = $payload['pushed_at'] ?? null; + $value = $payload['starred_at'] ?? null; if ($value === null) { - $missingFields[] = 'pushed_at'; - goto after_pushed_at; + $missingFields[] = 'starred_at'; + goto after_starred_at; } - $properties['pushed_at'] = $value; + $properties['starred_at'] = $value; - after_pushed_at: + after_starred_at: - $value = $payload['created_at'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleUser', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\SimpleUser::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\SimpleUser(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleUser', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRepositoryEdited⚡️Changes(array $payload): \ApiClients\Client\Github\Schema\WebhookRepositoryEdited\Changes + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['default_branch'] ?? null; if ($value === null) { - $missingFields[] = 'created_at'; - goto after_created_at; + $missingFields[] = 'default_branch'; + goto after_default_branch; } - $properties['created_at'] = $value; - - after_created_at: - - $value = $payload['updated_at'] ?? null; - - if ($value === null) { - $missingFields[] = 'updated_at'; - goto after_updated_at; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'default_branch'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionCommentEdited⚡️Changes⚡️Body($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['updated_at'] = $value; + $properties['default_branch'] = $value; - after_updated_at: + after_default_branch: - $value = $payload['permissions'] ?? null; + $value = $payload['description'] ?? null; if ($value === null) { - $missingFields[] = 'permissions'; - goto after_permissions; + $missingFields[] = 'description'; + goto after_description; } if (is_array($value)) { try { - $this->hydrationStack[] = 'permissions'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Permissions($value); + $this->hydrationStack[] = 'description'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectCardEdited⚡️Changes⚡️Note($value); } finally { array_pop($this->hydrationStack); } } - $properties['permissions'] = $value; + $properties['description'] = $value; - after_permissions: + after_description: - $value = $payload['allow_rebase_merge'] ?? null; + $value = $payload['homepage'] ?? null; if ($value === null) { - $missingFields[] = 'allow_rebase_merge'; - goto after_allow_rebase_merge; + $missingFields[] = 'homepage'; + goto after_homepage; } - $properties['allow_rebase_merge'] = $value; - - after_allow_rebase_merge: - - $value = $payload['temp_clone_token'] ?? null; - - if ($value === null) { - $missingFields[] = 'temp_clone_token'; - goto after_temp_clone_token; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'homepage'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectCardEdited⚡️Changes⚡️Note($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['temp_clone_token'] = $value; + $properties['homepage'] = $value; - after_temp_clone_token: + after_homepage: - $value = $payload['allow_squash_merge'] ?? null; + $value = $payload['topics'] ?? null; if ($value === null) { - $missingFields[] = 'allow_squash_merge'; - goto after_allow_squash_merge; + $missingFields[] = 'topics'; + goto after_topics; } - $properties['allow_squash_merge'] = $value; - - after_allow_squash_merge: - - $value = $payload['allow_auto_merge'] ?? null; - - if ($value === null) { - $missingFields[] = 'allow_auto_merge'; - goto after_allow_auto_merge; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'topics'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRepositoryEdited⚡️Changes⚡️Topics($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['allow_auto_merge'] = $value; + $properties['topics'] = $value; - after_allow_auto_merge: + after_topics: - $value = $payload['delete_branch_on_merge'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookRepositoryEdited\Changes', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookRepositoryEdited\Changes::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookRepositoryEdited\Changes(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookRepositoryEdited\Changes', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRepositoryRenamed⚡️Changes(array $payload): \ApiClients\Client\Github\Schema\WebhookRepositoryRenamed\Changes + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['repository'] ?? null; if ($value === null) { - $missingFields[] = 'delete_branch_on_merge'; - goto after_delete_branch_on_merge; + $missingFields[] = 'repository'; + goto after_repository; } - $properties['delete_branch_on_merge'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRepositoryRenamed⚡️Changes⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repository'] = $value; - after_delete_branch_on_merge: + after_repository: - $value = $payload['allow_update_branch'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookRepositoryRenamed\Changes', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookRepositoryRenamed\Changes::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookRepositoryRenamed\Changes(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookRepositoryRenamed\Changes', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRepositoryTransferred⚡️Changes(array $payload): \ApiClients\Client\Github\Schema\WebhookRepositoryTransferred\Changes + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['owner'] ?? null; if ($value === null) { - $missingFields[] = 'allow_update_branch'; - goto after_allow_update_branch; + $missingFields[] = 'owner'; + goto after_owner; } - $properties['allow_update_branch'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'owner'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRepositoryTransferred⚡️Changes⚡️Owner($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['owner'] = $value; - after_allow_update_branch: + after_owner: - $value = $payload['use_squash_pr_title_as_default'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookRepositoryTransferred\Changes', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookRepositoryTransferred\Changes::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookRepositoryTransferred\Changes(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookRepositoryTransferred\Changes', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️Permissions(array $payload): \ApiClients\Client\Github\Schema\Repository\Permissions + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['admin'] ?? null; if ($value === null) { - $missingFields[] = 'use_squash_pr_title_as_default'; - goto after_use_squash_pr_title_as_default; + $missingFields[] = 'admin'; + goto after_admin; } - $properties['use_squash_pr_title_as_default'] = $value; + $properties['admin'] = $value; - after_use_squash_pr_title_as_default: + after_admin: - $value = $payload['squash_merge_commit_title'] ?? null; + $value = $payload['pull'] ?? null; if ($value === null) { - $missingFields[] = 'squash_merge_commit_title'; - goto after_squash_merge_commit_title; + $missingFields[] = 'pull'; + goto after_pull; } - $properties['squash_merge_commit_title'] = $value; + $properties['pull'] = $value; - after_squash_merge_commit_title: + after_pull: - $value = $payload['squash_merge_commit_message'] ?? null; + $value = $payload['triage'] ?? null; if ($value === null) { - $missingFields[] = 'squash_merge_commit_message'; - goto after_squash_merge_commit_message; + $missingFields[] = 'triage'; + goto after_triage; } - $properties['squash_merge_commit_message'] = $value; + $properties['triage'] = $value; - after_squash_merge_commit_message: + after_triage: - $value = $payload['merge_commit_title'] ?? null; + $value = $payload['push'] ?? null; if ($value === null) { - $missingFields[] = 'merge_commit_title'; - goto after_merge_commit_title; + $missingFields[] = 'push'; + goto after_push; } - $properties['merge_commit_title'] = $value; + $properties['push'] = $value; - after_merge_commit_title: + after_push: - $value = $payload['merge_commit_message'] ?? null; + $value = $payload['maintain'] ?? null; if ($value === null) { - $missingFields[] = 'merge_commit_message'; - goto after_merge_commit_message; + $missingFields[] = 'maintain'; + goto after_maintain; } - $properties['merge_commit_message'] = $value; + $properties['maintain'] = $value; - after_merge_commit_message: - - $value = $payload['allow_merge_commit'] ?? null; - - if ($value === null) { - $missingFields[] = 'allow_merge_commit'; - goto after_allow_merge_commit; - } - - $properties['allow_merge_commit'] = $value; - - after_allow_merge_commit: - - $value = $payload['subscribers_count'] ?? null; - - if ($value === null) { - $missingFields[] = 'subscribers_count'; - goto after_subscribers_count; - } - - $properties['subscribers_count'] = $value; - - after_subscribers_count: - - $value = $payload['network_count'] ?? null; - - if ($value === null) { - $missingFields[] = 'network_count'; - goto after_network_count; - } - - $properties['network_count'] = $value; - - after_network_count: + after_maintain: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\Permissions', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\TemplateRepository::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\Permissions::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\Repository\TemplateRepository(...$properties); + return new \ApiClients\Client\Github\Schema\Repository\Permissions(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\Permissions', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner(array $payload): \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository(array $payload): \ApiClients\Client\Github\Schema\Repository\TemplateRepository { $properties = []; $missingFields = []; try { - $value = $payload['login'] ?? null; - - if ($value === null) { - $missingFields[] = 'login'; - goto after_login; - } - - $properties['login'] = $value; - - after_login: - $value = $payload['id'] ?? null; if ($value === null) { @@ -3005,38 +3326,58 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repo after_node_id: - $value = $payload['avatar_url'] ?? null; + $value = $payload['name'] ?? null; if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatar_url; + $missingFields[] = 'name'; + goto after_name; } - $properties['avatar_url'] = $value; + $properties['name'] = $value; - after_avatar_url: + after_name: - $value = $payload['gravatar_id'] ?? null; + $value = $payload['full_name'] ?? null; if ($value === null) { - $missingFields[] = 'gravatar_id'; - goto after_gravatar_id; + $missingFields[] = 'full_name'; + goto after_full_name; } - $properties['gravatar_id'] = $value; + $properties['full_name'] = $value; - after_gravatar_id: + after_full_name: - $value = $payload['url'] ?? null; + $value = $payload['owner'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $missingFields[] = 'owner'; + goto after_owner; } - $properties['url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'owner'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['owner'] = $value; - after_url: + after_owner: + + $value = $payload['private'] ?? null; + + if ($value === null) { + $missingFields[] = 'private'; + goto after_private; + } + + $properties['private'] = $value; + + after_private: $value = $payload['html_url'] ?? null; @@ -3049,301 +3390,2387 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repo after_html_url: - $value = $payload['followers_url'] ?? null; + $value = $payload['description'] ?? null; if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followers_url; + $missingFields[] = 'description'; + goto after_description; } - $properties['followers_url'] = $value; + $properties['description'] = $value; - after_followers_url: + after_description: - $value = $payload['following_url'] ?? null; + $value = $payload['fork'] ?? null; if ($value === null) { - $missingFields[] = 'following_url'; - goto after_following_url; + $missingFields[] = 'fork'; + goto after_fork; } - $properties['following_url'] = $value; + $properties['fork'] = $value; - after_following_url: + after_fork: - $value = $payload['gists_url'] ?? null; + $value = $payload['url'] ?? null; if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gists_url; + $missingFields[] = 'url'; + goto after_url; } - $properties['gists_url'] = $value; + $properties['url'] = $value; - after_gists_url: + after_url: - $value = $payload['starred_url'] ?? null; + $value = $payload['archive_url'] ?? null; if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starred_url; + $missingFields[] = 'archive_url'; + goto after_archive_url; } - $properties['starred_url'] = $value; + $properties['archive_url'] = $value; - after_starred_url: + after_archive_url: - $value = $payload['subscriptions_url'] ?? null; + $value = $payload['assignees_url'] ?? null; if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptions_url; + $missingFields[] = 'assignees_url'; + goto after_assignees_url; } - $properties['subscriptions_url'] = $value; + $properties['assignees_url'] = $value; - after_subscriptions_url: + after_assignees_url: - $value = $payload['organizations_url'] ?? null; + $value = $payload['blobs_url'] ?? null; if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizations_url; + $missingFields[] = 'blobs_url'; + goto after_blobs_url; } - $properties['organizations_url'] = $value; + $properties['blobs_url'] = $value; - after_organizations_url: + after_blobs_url: - $value = $payload['repos_url'] ?? null; + $value = $payload['branches_url'] ?? null; if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_repos_url; + $missingFields[] = 'branches_url'; + goto after_branches_url; } - $properties['repos_url'] = $value; + $properties['branches_url'] = $value; - after_repos_url: + after_branches_url: - $value = $payload['events_url'] ?? null; + $value = $payload['collaborators_url'] ?? null; if ($value === null) { - $missingFields[] = 'events_url'; - goto after_events_url; + $missingFields[] = 'collaborators_url'; + goto after_collaborators_url; } - $properties['events_url'] = $value; + $properties['collaborators_url'] = $value; - after_events_url: + after_collaborators_url: - $value = $payload['received_events_url'] ?? null; + $value = $payload['comments_url'] ?? null; if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_received_events_url; + $missingFields[] = 'comments_url'; + goto after_comments_url; } - $properties['received_events_url'] = $value; + $properties['comments_url'] = $value; - after_received_events_url: + after_comments_url: - $value = $payload['type'] ?? null; + $value = $payload['commits_url'] ?? null; if ($value === null) { - $missingFields[] = 'type'; - goto after_type; + $missingFields[] = 'commits_url'; + goto after_commits_url; } - $properties['type'] = $value; + $properties['commits_url'] = $value; - after_type: + after_commits_url: - $value = $payload['site_admin'] ?? null; + $value = $payload['compare_url'] ?? null; if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_site_admin; + $missingFields[] = 'compare_url'; + goto after_compare_url; } - $properties['site_admin'] = $value; + $properties['compare_url'] = $value; - after_site_admin: - - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner', $exception, stack: $this->hydrationStack); - } - } + after_compare_url: - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Permissions(array $payload): \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['admin'] ?? null; + $value = $payload['contents_url'] ?? null; if ($value === null) { - $missingFields[] = 'admin'; - goto after_admin; + $missingFields[] = 'contents_url'; + goto after_contents_url; } - $properties['admin'] = $value; + $properties['contents_url'] = $value; - after_admin: + after_contents_url: - $value = $payload['maintain'] ?? null; + $value = $payload['contributors_url'] ?? null; if ($value === null) { - $missingFields[] = 'maintain'; - goto after_maintain; + $missingFields[] = 'contributors_url'; + goto after_contributors_url; } - $properties['maintain'] = $value; + $properties['contributors_url'] = $value; - after_maintain: + after_contributors_url: - $value = $payload['push'] ?? null; + $value = $payload['deployments_url'] ?? null; if ($value === null) { - $missingFields[] = 'push'; - goto after_push; + $missingFields[] = 'deployments_url'; + goto after_deployments_url; + } + + $properties['deployments_url'] = $value; + + after_deployments_url: + + $value = $payload['downloads_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'downloads_url'; + goto after_downloads_url; + } + + $properties['downloads_url'] = $value; + + after_downloads_url: + + $value = $payload['events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'events_url'; + goto after_events_url; + } + + $properties['events_url'] = $value; + + after_events_url: + + $value = $payload['forks_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'forks_url'; + goto after_forks_url; + } + + $properties['forks_url'] = $value; + + after_forks_url: + + $value = $payload['git_commits_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_commits_url'; + goto after_git_commits_url; + } + + $properties['git_commits_url'] = $value; + + after_git_commits_url: + + $value = $payload['git_refs_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_refs_url'; + goto after_git_refs_url; + } + + $properties['git_refs_url'] = $value; + + after_git_refs_url: + + $value = $payload['git_tags_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_tags_url'; + goto after_git_tags_url; + } + + $properties['git_tags_url'] = $value; + + after_git_tags_url: + + $value = $payload['git_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_url'; + goto after_git_url; + } + + $properties['git_url'] = $value; + + after_git_url: + + $value = $payload['issue_comment_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issue_comment_url'; + goto after_issue_comment_url; + } + + $properties['issue_comment_url'] = $value; + + after_issue_comment_url: + + $value = $payload['issue_events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issue_events_url'; + goto after_issue_events_url; + } + + $properties['issue_events_url'] = $value; + + after_issue_events_url: + + $value = $payload['issues_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issues_url'; + goto after_issues_url; + } + + $properties['issues_url'] = $value; + + after_issues_url: + + $value = $payload['keys_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'keys_url'; + goto after_keys_url; + } + + $properties['keys_url'] = $value; + + after_keys_url: + + $value = $payload['labels_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'labels_url'; + goto after_labels_url; + } + + $properties['labels_url'] = $value; + + after_labels_url: + + $value = $payload['languages_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'languages_url'; + goto after_languages_url; + } + + $properties['languages_url'] = $value; + + after_languages_url: + + $value = $payload['merges_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'merges_url'; + goto after_merges_url; + } + + $properties['merges_url'] = $value; + + after_merges_url: + + $value = $payload['milestones_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'milestones_url'; + goto after_milestones_url; + } + + $properties['milestones_url'] = $value; + + after_milestones_url: + + $value = $payload['notifications_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'notifications_url'; + goto after_notifications_url; + } + + $properties['notifications_url'] = $value; + + after_notifications_url: + + $value = $payload['pulls_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'pulls_url'; + goto after_pulls_url; + } + + $properties['pulls_url'] = $value; + + after_pulls_url: + + $value = $payload['releases_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'releases_url'; + goto after_releases_url; + } + + $properties['releases_url'] = $value; + + after_releases_url: + + $value = $payload['ssh_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'ssh_url'; + goto after_ssh_url; + } + + $properties['ssh_url'] = $value; + + after_ssh_url: + + $value = $payload['stargazers_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'stargazers_url'; + goto after_stargazers_url; + } + + $properties['stargazers_url'] = $value; + + after_stargazers_url: + + $value = $payload['statuses_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'statuses_url'; + goto after_statuses_url; + } + + $properties['statuses_url'] = $value; + + after_statuses_url: + + $value = $payload['subscribers_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscribers_url'; + goto after_subscribers_url; } - $properties['push'] = $value; - - after_push: + $properties['subscribers_url'] = $value; + + after_subscribers_url: + + $value = $payload['subscription_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscription_url'; + goto after_subscription_url; + } + + $properties['subscription_url'] = $value; + + after_subscription_url: + + $value = $payload['tags_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'tags_url'; + goto after_tags_url; + } + + $properties['tags_url'] = $value; + + after_tags_url: + + $value = $payload['teams_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'teams_url'; + goto after_teams_url; + } + + $properties['teams_url'] = $value; + + after_teams_url: + + $value = $payload['trees_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'trees_url'; + goto after_trees_url; + } + + $properties['trees_url'] = $value; + + after_trees_url: + + $value = $payload['clone_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'clone_url'; + goto after_clone_url; + } + + $properties['clone_url'] = $value; + + after_clone_url: + + $value = $payload['mirror_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'mirror_url'; + goto after_mirror_url; + } + + $properties['mirror_url'] = $value; + + after_mirror_url: + + $value = $payload['hooks_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'hooks_url'; + goto after_hooks_url; + } + + $properties['hooks_url'] = $value; + + after_hooks_url: + + $value = $payload['svn_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'svn_url'; + goto after_svn_url; + } + + $properties['svn_url'] = $value; + + after_svn_url: + + $value = $payload['homepage'] ?? null; + + if ($value === null) { + $missingFields[] = 'homepage'; + goto after_homepage; + } + + $properties['homepage'] = $value; + + after_homepage: + + $value = $payload['language'] ?? null; + + if ($value === null) { + $missingFields[] = 'language'; + goto after_language; + } + + $properties['language'] = $value; + + after_language: + + $value = $payload['forks_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'forks_count'; + goto after_forks_count; + } + + $properties['forks_count'] = $value; + + after_forks_count: + + $value = $payload['stargazers_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'stargazers_count'; + goto after_stargazers_count; + } + + $properties['stargazers_count'] = $value; + + after_stargazers_count: + + $value = $payload['watchers_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'watchers_count'; + goto after_watchers_count; + } + + $properties['watchers_count'] = $value; + + after_watchers_count: + + $value = $payload['size'] ?? null; + + if ($value === null) { + $missingFields[] = 'size'; + goto after_size; + } + + $properties['size'] = $value; + + after_size: + + $value = $payload['default_branch'] ?? null; + + if ($value === null) { + $missingFields[] = 'default_branch'; + goto after_default_branch; + } + + $properties['default_branch'] = $value; + + after_default_branch: + + $value = $payload['open_issues_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'open_issues_count'; + goto after_open_issues_count; + } + + $properties['open_issues_count'] = $value; + + after_open_issues_count: + + $value = $payload['is_template'] ?? null; + + if ($value === null) { + $missingFields[] = 'is_template'; + goto after_is_template; + } + + $properties['is_template'] = $value; + + after_is_template: + + $value = $payload['topics'] ?? null; + + if ($value === null) { + $missingFields[] = 'topics'; + goto after_topics; + } + + $properties['topics'] = $value; + + after_topics: + + $value = $payload['has_issues'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_issues'; + goto after_has_issues; + } + + $properties['has_issues'] = $value; + + after_has_issues: + + $value = $payload['has_projects'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_projects'; + goto after_has_projects; + } + + $properties['has_projects'] = $value; + + after_has_projects: + + $value = $payload['has_wiki'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_wiki'; + goto after_has_wiki; + } + + $properties['has_wiki'] = $value; + + after_has_wiki: + + $value = $payload['has_pages'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_pages'; + goto after_has_pages; + } + + $properties['has_pages'] = $value; + + after_has_pages: + + $value = $payload['has_downloads'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_downloads'; + goto after_has_downloads; + } + + $properties['has_downloads'] = $value; + + after_has_downloads: + + $value = $payload['archived'] ?? null; + + if ($value === null) { + $missingFields[] = 'archived'; + goto after_archived; + } + + $properties['archived'] = $value; + + after_archived: + + $value = $payload['disabled'] ?? null; + + if ($value === null) { + $missingFields[] = 'disabled'; + goto after_disabled; + } + + $properties['disabled'] = $value; + + after_disabled: + + $value = $payload['visibility'] ?? null; + + if ($value === null) { + $missingFields[] = 'visibility'; + goto after_visibility; + } + + $properties['visibility'] = $value; + + after_visibility: + + $value = $payload['pushed_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'pushed_at'; + goto after_pushed_at; + } + + $properties['pushed_at'] = $value; + + after_pushed_at: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'created_at'; + goto after_created_at; + } + + $properties['created_at'] = $value; + + after_created_at: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'updated_at'; + goto after_updated_at; + } + + $properties['updated_at'] = $value; + + after_updated_at: + + $value = $payload['permissions'] ?? null; + + if ($value === null) { + $missingFields[] = 'permissions'; + goto after_permissions; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'permissions'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Permissions($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['permissions'] = $value; + + after_permissions: + + $value = $payload['allow_rebase_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_rebase_merge'; + goto after_allow_rebase_merge; + } + + $properties['allow_rebase_merge'] = $value; + + after_allow_rebase_merge: + + $value = $payload['temp_clone_token'] ?? null; + + if ($value === null) { + $missingFields[] = 'temp_clone_token'; + goto after_temp_clone_token; + } + + $properties['temp_clone_token'] = $value; + + after_temp_clone_token: + + $value = $payload['allow_squash_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_squash_merge'; + goto after_allow_squash_merge; + } + + $properties['allow_squash_merge'] = $value; + + after_allow_squash_merge: + + $value = $payload['allow_auto_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_auto_merge'; + goto after_allow_auto_merge; + } + + $properties['allow_auto_merge'] = $value; + + after_allow_auto_merge: + + $value = $payload['delete_branch_on_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'delete_branch_on_merge'; + goto after_delete_branch_on_merge; + } + + $properties['delete_branch_on_merge'] = $value; + + after_delete_branch_on_merge: + + $value = $payload['allow_update_branch'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_update_branch'; + goto after_allow_update_branch; + } + + $properties['allow_update_branch'] = $value; + + after_allow_update_branch: + + $value = $payload['use_squash_pr_title_as_default'] ?? null; + + if ($value === null) { + $missingFields[] = 'use_squash_pr_title_as_default'; + goto after_use_squash_pr_title_as_default; + } + + $properties['use_squash_pr_title_as_default'] = $value; + + after_use_squash_pr_title_as_default: + + $value = $payload['squash_merge_commit_title'] ?? null; + + if ($value === null) { + $missingFields[] = 'squash_merge_commit_title'; + goto after_squash_merge_commit_title; + } + + $properties['squash_merge_commit_title'] = $value; + + after_squash_merge_commit_title: + + $value = $payload['squash_merge_commit_message'] ?? null; + + if ($value === null) { + $missingFields[] = 'squash_merge_commit_message'; + goto after_squash_merge_commit_message; + } + + $properties['squash_merge_commit_message'] = $value; + + after_squash_merge_commit_message: + + $value = $payload['merge_commit_title'] ?? null; + + if ($value === null) { + $missingFields[] = 'merge_commit_title'; + goto after_merge_commit_title; + } + + $properties['merge_commit_title'] = $value; + + after_merge_commit_title: + + $value = $payload['merge_commit_message'] ?? null; + + if ($value === null) { + $missingFields[] = 'merge_commit_message'; + goto after_merge_commit_message; + } + + $properties['merge_commit_message'] = $value; + + after_merge_commit_message: + + $value = $payload['allow_merge_commit'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_merge_commit'; + goto after_allow_merge_commit; + } + + $properties['allow_merge_commit'] = $value; + + after_allow_merge_commit: + + $value = $payload['subscribers_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscribers_count'; + goto after_subscribers_count; + } + + $properties['subscribers_count'] = $value; + + after_subscribers_count: + + $value = $payload['network_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'network_count'; + goto after_network_count; + } + + $properties['network_count'] = $value; + + after_network_count: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\TemplateRepository::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\Repository\TemplateRepository(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionCommentEdited⚡️Changes⚡️Body(array $payload): \ApiClients\Client\Github\Schema\WebhookDiscussionCommentEdited\Changes\Body + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['from'] ?? null; + + if ($value === null) { + $missingFields[] = 'from'; + goto after_from; + } + + $properties['from'] = $value; + + after_from: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDiscussionCommentEdited\Changes\Body', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookDiscussionCommentEdited\Changes\Body::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookDiscussionCommentEdited\Changes\Body(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDiscussionCommentEdited\Changes\Body', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookProjectCardEdited⚡️Changes⚡️Note(array $payload): \ApiClients\Client\Github\Schema\WebhookProjectCardEdited\Changes\Note + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['from'] ?? null; + + if ($value === null) { + $missingFields[] = 'from'; + goto after_from; + } + + $properties['from'] = $value; + + after_from: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectCardEdited\Changes\Note', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookProjectCardEdited\Changes\Note::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookProjectCardEdited\Changes\Note(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookProjectCardEdited\Changes\Note', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRepositoryEdited⚡️Changes⚡️Topics(array $payload): \ApiClients\Client\Github\Schema\WebhookRepositoryEdited\Changes\Topics + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['from'] ?? null; + + if ($value === null) { + $missingFields[] = 'from'; + goto after_from; + } + + $properties['from'] = $value; + + after_from: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookRepositoryEdited\Changes\Topics', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookRepositoryEdited\Changes\Topics::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookRepositoryEdited\Changes\Topics(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookRepositoryEdited\Changes\Topics', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRepositoryRenamed⚡️Changes⚡️Repository(array $payload): \ApiClients\Client\Github\Schema\WebhookRepositoryRenamed\Changes\Repository + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'name'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionCommentEdited⚡️Changes⚡️Body($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['name'] = $value; + + after_name: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookRepositoryRenamed\Changes\Repository', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookRepositoryRenamed\Changes\Repository::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookRepositoryRenamed\Changes\Repository(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookRepositoryRenamed\Changes\Repository', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRepositoryTransferred⚡️Changes⚡️Owner(array $payload): \ApiClients\Client\Github\Schema\WebhookRepositoryTransferred\Changes\Owner + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['from'] ?? null; + + if ($value === null) { + $missingFields[] = 'from'; + goto after_from; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'from'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRepositoryTransferred⚡️Changes⚡️Owner⚡️From($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['from'] = $value; + + after_from: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookRepositoryTransferred\Changes\Owner', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookRepositoryTransferred\Changes\Owner::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookRepositoryTransferred\Changes\Owner(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookRepositoryTransferred\Changes\Owner', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner(array $payload): \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['login'] ?? null; + + if ($value === null) { + $missingFields[] = 'login'; + goto after_login; + } + + $properties['login'] = $value; + + after_login: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['avatar_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'avatar_url'; + goto after_avatar_url; + } + + $properties['avatar_url'] = $value; + + after_avatar_url: + + $value = $payload['gravatar_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'gravatar_id'; + goto after_gravatar_id; + } + + $properties['gravatar_id'] = $value; + + after_gravatar_id: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } + + $properties['html_url'] = $value; + + after_html_url: + + $value = $payload['followers_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'followers_url'; + goto after_followers_url; + } + + $properties['followers_url'] = $value; + + after_followers_url: + + $value = $payload['following_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'following_url'; + goto after_following_url; + } + + $properties['following_url'] = $value; + + after_following_url: + + $value = $payload['gists_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'gists_url'; + goto after_gists_url; + } + + $properties['gists_url'] = $value; + + after_gists_url: + + $value = $payload['starred_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'starred_url'; + goto after_starred_url; + } + + $properties['starred_url'] = $value; + + after_starred_url: + + $value = $payload['subscriptions_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscriptions_url'; + goto after_subscriptions_url; + } + + $properties['subscriptions_url'] = $value; + + after_subscriptions_url: + + $value = $payload['organizations_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'organizations_url'; + goto after_organizations_url; + } + + $properties['organizations_url'] = $value; + + after_organizations_url: + + $value = $payload['repos_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'repos_url'; + goto after_repos_url; + } + + $properties['repos_url'] = $value; + + after_repos_url: + + $value = $payload['events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'events_url'; + goto after_events_url; + } + + $properties['events_url'] = $value; + + after_events_url: + + $value = $payload['received_events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'received_events_url'; + goto after_received_events_url; + } + + $properties['received_events_url'] = $value; + + after_received_events_url: + + $value = $payload['type'] ?? null; + + if ($value === null) { + $missingFields[] = 'type'; + goto after_type; + } + + $properties['type'] = $value; + + after_type: + + $value = $payload['site_admin'] ?? null; + + if ($value === null) { + $missingFields[] = 'site_admin'; + goto after_site_admin; + } + + $properties['site_admin'] = $value; + + after_site_admin: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Permissions(array $payload): \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['admin'] ?? null; + + if ($value === null) { + $missingFields[] = 'admin'; + goto after_admin; + } + + $properties['admin'] = $value; + + after_admin: + + $value = $payload['maintain'] ?? null; + + if ($value === null) { + $missingFields[] = 'maintain'; + goto after_maintain; + } + + $properties['maintain'] = $value; + + after_maintain: + + $value = $payload['push'] ?? null; + + if ($value === null) { + $missingFields[] = 'push'; + goto after_push; + } + + $properties['push'] = $value; + + after_push: + + $value = $payload['triage'] ?? null; + + if ($value === null) { + $missingFields[] = 'triage'; + goto after_triage; + } + + $properties['triage'] = $value; + + after_triage: + + $value = $payload['pull'] ?? null; + + if ($value === null) { + $missingFields[] = 'pull'; + goto after_pull; + } + + $properties['pull'] = $value; + + after_pull: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRepositoryTransferred⚡️Changes⚡️Owner⚡️From(array $payload): \ApiClients\Client\Github\Schema\WebhookRepositoryTransferred\Changes\Owner\From + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['organization'] ?? null; + + if ($value === null) { + $missingFields[] = 'organization'; + goto after_organization; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRepositoryTransferred⚡️Changes⚡️Owner⚡️From⚡️Organization($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; + + after_organization: + + $value = $payload['user'] ?? null; + + if ($value === null) { + $missingFields[] = 'user'; + goto after_user; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'user'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['user'] = $value; + + after_user: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookRepositoryTransferred\Changes\Owner\From', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookRepositoryTransferred\Changes\Owner\From::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookRepositoryTransferred\Changes\Owner\From(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookRepositoryTransferred\Changes\Owner\From', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRepositoryTransferred⚡️Changes⚡️Owner⚡️From⚡️Organization(array $payload): \ApiClients\Client\Github\Schema\WebhookRepositoryTransferred\Changes\Owner\From\Organization + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['avatar_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'avatar_url'; + goto after_avatar_url; + } + + $properties['avatar_url'] = $value; + + after_avatar_url: + + $value = $payload['description'] ?? null; + + if ($value === null) { + $missingFields[] = 'description'; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'events_url'; + goto after_events_url; + } + + $properties['events_url'] = $value; + + after_events_url: + + $value = $payload['hooks_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'hooks_url'; + goto after_hooks_url; + } + + $properties['hooks_url'] = $value; + + after_hooks_url: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } + + $properties['html_url'] = $value; + + after_html_url: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['issues_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issues_url'; + goto after_issues_url; + } + + $properties['issues_url'] = $value; + + after_issues_url: + + $value = $payload['login'] ?? null; + + if ($value === null) { + $missingFields[] = 'login'; + goto after_login; + } + + $properties['login'] = $value; + + after_login: + + $value = $payload['members_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'members_url'; + goto after_members_url; + } + + $properties['members_url'] = $value; + + after_members_url: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['public_members_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'public_members_url'; + goto after_public_members_url; + } + + $properties['public_members_url'] = $value; + + after_public_members_url: + + $value = $payload['repos_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'repos_url'; + goto after_repos_url; + } + + $properties['repos_url'] = $value; + + after_repos_url: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookRepositoryTransferred\Changes\Owner\From\Organization', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookRepositoryTransferred\Changes\Owner\From\Organization::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookRepositoryTransferred\Changes\Owner\From\Organization(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookRepositoryTransferred\Changes\Owner\From\Organization', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy(array $payload): \ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['avatar_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'avatar_url'; + goto after_avatar_url; + } + + $properties['avatar_url'] = $value; + + after_avatar_url: + + $value = $payload['deleted'] ?? null; + + if ($value === null) { + $missingFields[] = 'deleted'; + goto after_deleted; + } + + $properties['deleted'] = $value; + + after_deleted: + + $value = $payload['email'] ?? null; + + if ($value === null) { + $missingFields[] = 'email'; + goto after_email; + } + + $properties['email'] = $value; + + after_email: + + $value = $payload['events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'events_url'; + goto after_events_url; + } + + $properties['events_url'] = $value; + + after_events_url: + + $value = $payload['followers_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'followers_url'; + goto after_followers_url; + } + + $properties['followers_url'] = $value; + + after_followers_url: + + $value = $payload['following_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'following_url'; + goto after_following_url; + } + + $properties['following_url'] = $value; + + after_following_url: + + $value = $payload['gists_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'gists_url'; + goto after_gists_url; + } + + $properties['gists_url'] = $value; + + after_gists_url: + + $value = $payload['gravatar_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'gravatar_id'; + goto after_gravatar_id; + } + + $properties['gravatar_id'] = $value; + + after_gravatar_id: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } + + $properties['html_url'] = $value; + + after_html_url: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['login'] ?? null; + + if ($value === null) { + $missingFields[] = 'login'; + goto after_login; + } + + $properties['login'] = $value; + + after_login: + + $value = $payload['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['organizations_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'organizations_url'; + goto after_organizations_url; + } + + $properties['organizations_url'] = $value; + + after_organizations_url: + + $value = $payload['received_events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'received_events_url'; + goto after_received_events_url; + } + + $properties['received_events_url'] = $value; + + after_received_events_url: + + $value = $payload['repos_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'repos_url'; + goto after_repos_url; + } + + $properties['repos_url'] = $value; + + after_repos_url: + + $value = $payload['site_admin'] ?? null; + + if ($value === null) { + $missingFields[] = 'site_admin'; + goto after_site_admin; + } + + $properties['site_admin'] = $value; + + after_site_admin: + + $value = $payload['starred_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'starred_url'; + goto after_starred_url; + } + + $properties['starred_url'] = $value; + + after_starred_url: + + $value = $payload['subscriptions_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscriptions_url'; + goto after_subscriptions_url; + } + + $properties['subscriptions_url'] = $value; + + after_subscriptions_url: + + $value = $payload['type'] ?? null; + + if ($value === null) { + $missingFields[] = 'type'; + goto after_type; + } + + $properties['type'] = $value; + + after_type: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy', $exception, stack: $this->hydrationStack); + } + } + + public function serializeObject(object $object): mixed + { + try { + $className = get_class($object); + + return match($className) { + 'array' => $this->serializeValuearray($object), + 'Ramsey\Uuid\UuidInterface' => $this->serializeValueRamsey⚡️Uuid⚡️UuidInterface($object), + 'DateTime' => $this->serializeValueDateTime($object), + 'DateTimeImmutable' => $this->serializeValueDateTimeImmutable($object), + 'DateTimeInterface' => $this->serializeValueDateTimeInterface($object), + 'ApiClients\Client\Github\Schema\WebhookRepositoryArchived' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRepositoryArchived($object), + 'ApiClients\Client\Github\Schema\WebhookRepositoryCreated' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRepositoryCreated($object), + 'ApiClients\Client\Github\Schema\WebhookRepositoryDeleted' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRepositoryDeleted($object), + 'ApiClients\Client\Github\Schema\WebhookRepositoryEdited' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRepositoryEdited($object), + 'ApiClients\Client\Github\Schema\WebhookRepositoryPrivatized' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRepositoryPrivatized($object), + 'ApiClients\Client\Github\Schema\WebhookRepositoryPublicized' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRepositoryPublicized($object), + 'ApiClients\Client\Github\Schema\WebhookRepositoryRenamed' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRepositoryRenamed($object), + 'ApiClients\Client\Github\Schema\WebhookRepositoryTransferred' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRepositoryTransferred($object), + 'ApiClients\Client\Github\Schema\WebhookRepositoryUnarchived' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRepositoryUnarchived($object), + default => throw new \LogicException('No serialization defined for $className'), + }; + } catch (\Throwable $exception) { + throw UnableToSerializeObject::dueToError($className, $exception); + } + } + + + private function serializeValuearray(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeArrayItems(...array ( +)); + } + + return $serializer->serialize($value, $this); + } + + + private function serializeValueRamsey⚡️Uuid⚡️UuidInterface(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeUuidToString(...array ( +)); + } + + return $serializer->serialize($value, $this); + } + + + private function serializeValueDateTime(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeDateTime(...array ( +)); + } + + return $serializer->serialize($value, $this); + } + + + private function serializeValueDateTimeImmutable(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeDateTime(...array ( +)); + } + + return $serializer->serialize($value, $this); + } + + + private function serializeValueDateTimeInterface(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeDateTime(...array ( +)); + } + + return $serializer->serialize($value, $this); + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRepositoryArchived(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookRepositoryArchived); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRepositoryCreated(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookRepositoryCreated); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRepositoryDeleted(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookRepositoryDeleted); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRepositoryEdited(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookRepositoryEdited); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $changes = $object->changes; + + if ($changes === null) { + goto after_changes; + } + $changes = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRepositoryEdited⚡️Changes($changes); + after_changes: $result['changes'] = $changes; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + - $value = $payload['triage'] ?? null; - - if ($value === null) { - $missingFields[] = 'triage'; - goto after_triage; - } + return $result; + } - $properties['triage'] = $value; - after_triage: + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRepositoryPrivatized(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookRepositoryPrivatized); + $result = []; + + $action = $object->action; - $value = $payload['pull'] ?? null; - - if ($value === null) { - $missingFields[] = 'pull'; - goto after_pull; - } + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; - $properties['pull'] = $value; - - after_pull: + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions', $exception, stack: $this->hydrationStack); - } + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; } - - public function serializeObject(object $object): mixed - { - try { - $className = get_class($object); + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; - return match($className) { - 'array' => $this->serializeValuearray($object), - 'Ramsey\Uuid\UuidInterface' => $this->serializeValueRamsey⚡️Uuid⚡️UuidInterface($object), - 'DateTime' => $this->serializeValueDateTime($object), - 'DateTimeImmutable' => $this->serializeValueDateTimeImmutable($object), - 'DateTimeInterface' => $this->serializeValueDateTimeInterface($object), - 'ApiClients\Client\Github\Schema\WebhookRepositoryUnarchived' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRepositoryUnarchived($object), - default => throw new \LogicException('No serialization defined for $className'), - }; - } catch (\Throwable $exception) { - throw UnableToSerializeObject::dueToError($className, $exception); + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; } + - - private function serializeValuearray(mixed $value): mixed + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRepositoryPublicized(mixed $object): mixed { - static $serializer; + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookRepositoryPublicized); + $result = []; - if ($serializer === null) { - $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeArrayItems(...array ( -)); + $action = $object->action; + + if ($action === null) { + goto after_action; } + after_action: $result['action'] = $action; + - return $serializer->serialize($value, $this); - } + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; - private function serializeValueRamsey⚡️Uuid⚡️UuidInterface(mixed $value): mixed - { - static $serializer; - if ($serializer === null) { - $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeUuidToString(...array ( -)); + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + - return $serializer->serialize($value, $this); - } + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; - private function serializeValueDateTime(mixed $value): mixed + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRepositoryRenamed(mixed $object): mixed { - static $serializer; + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookRepositoryRenamed); + $result = []; - if ($serializer === null) { - $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeDateTime(...array ( -)); + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $changes = $object->changes; + + if ($changes === null) { + goto after_changes; } + $changes = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRepositoryRenamed⚡️Changes($changes); + after_changes: $result['changes'] = $changes; + - return $serializer->serialize($value, $this); - } + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; - private function serializeValueDateTimeImmutable(mixed $value): mixed - { - static $serializer; - if ($serializer === null) { - $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeDateTime(...array ( -)); + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + - return $serializer->serialize($value, $this); - } + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; - private function serializeValueDateTimeInterface(mixed $value): mixed + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRepositoryTransferred(mixed $object): mixed { - static $serializer; + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookRepositoryTransferred); + $result = []; - if ($serializer === null) { - $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeDateTime(...array ( -)); + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $changes = $object->changes; + + if ($changes === null) { + goto after_changes; } + $changes = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRepositoryTransferred⚡️Changes($changes); + after_changes: $result['changes'] = $changes; + - return $serializer->serialize($value, $this); + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; } diff --git a/src/Hydrator/WebHook/RepositoryVulnerabilityAlert.php b/src/Hydrator/WebHook/RepositoryVulnerabilityAlert.php index d335b86f04..99af62f8bf 100644 --- a/src/Hydrator/WebHook/RepositoryVulnerabilityAlert.php +++ b/src/Hydrator/WebHook/RepositoryVulnerabilityAlert.php @@ -23,7 +23,10 @@ public function __construct() {} public function hydrateObject(string $className, array $payload): object { return match($className) { - 'ApiClients\Client\Github\Schema\WebhookRepositoryVulnerabilityAlertResolve' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRepositoryVulnerabilityAlertResolve($payload), + 'ApiClients\Client\Github\Schema\WebhookRepositoryVulnerabilityAlertCreate' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRepositoryVulnerabilityAlertCreate($payload), + 'ApiClients\Client\Github\Schema\WebhookRepositoryVulnerabilityAlertDismiss' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRepositoryVulnerabilityAlertDismiss($payload), + 'ApiClients\Client\Github\Schema\WebhookRepositoryVulnerabilityAlertReopen' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRepositoryVulnerabilityAlertReopen($payload), + 'ApiClients\Client\Github\Schema\WebhookRepositoryVulnerabilityAlertResolve' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRepositoryVulnerabilityAlertResolve($payload), 'ApiClients\Client\Github\Schema\Enterprise' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($payload), 'ApiClients\Client\Github\Schema\SimpleInstallation' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($payload), 'ApiClients\Client\Github\Schema\OrganizationSimple' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($payload), @@ -38,6 +41,438 @@ public function hydrateObject(string $className, array $payload): object } + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRepositoryVulnerabilityAlertCreate(array $payload): \ApiClients\Client\Github\Schema\WebhookRepositoryVulnerabilityAlertCreate + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; + + if ($value === null) { + $missingFields[] = 'action'; + goto after_action; + } + + $properties['action'] = $value; + + after_action: + + $value = $payload['alert'] ?? null; + + if ($value === null) { + $properties['alert'] = null; + goto after_alert; + } + + $properties['alert'] = $value; + + after_alert: + + $value = $payload['enterprise'] ?? null; + + if ($value === null) { + $missingFields[] = 'enterprise'; + goto after_enterprise; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['enterprise'] = $value; + + after_enterprise: + + $value = $payload['installation'] ?? null; + + if ($value === null) { + $missingFields[] = 'installation'; + goto after_installation; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; + + after_installation: + + $value = $payload['organization'] ?? null; + + if ($value === null) { + $missingFields[] = 'organization'; + goto after_organization; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; + + after_organization: + + $value = $payload['repository'] ?? null; + + if ($value === null) { + $missingFields[] = 'repository'; + goto after_repository; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repository'] = $value; + + after_repository: + + $value = $payload['sender'] ?? null; + + if ($value === null) { + $missingFields[] = 'sender'; + goto after_sender; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; + + after_sender: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookRepositoryVulnerabilityAlertCreate', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookRepositoryVulnerabilityAlertCreate::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookRepositoryVulnerabilityAlertCreate(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookRepositoryVulnerabilityAlertCreate', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRepositoryVulnerabilityAlertDismiss(array $payload): \ApiClients\Client\Github\Schema\WebhookRepositoryVulnerabilityAlertDismiss + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; + + if ($value === null) { + $missingFields[] = 'action'; + goto after_action; + } + + $properties['action'] = $value; + + after_action: + + $value = $payload['alert'] ?? null; + + if ($value === null) { + $properties['alert'] = null; + goto after_alert; + } + + $properties['alert'] = $value; + + after_alert: + + $value = $payload['enterprise'] ?? null; + + if ($value === null) { + $missingFields[] = 'enterprise'; + goto after_enterprise; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['enterprise'] = $value; + + after_enterprise: + + $value = $payload['installation'] ?? null; + + if ($value === null) { + $missingFields[] = 'installation'; + goto after_installation; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; + + after_installation: + + $value = $payload['organization'] ?? null; + + if ($value === null) { + $missingFields[] = 'organization'; + goto after_organization; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; + + after_organization: + + $value = $payload['repository'] ?? null; + + if ($value === null) { + $missingFields[] = 'repository'; + goto after_repository; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repository'] = $value; + + after_repository: + + $value = $payload['sender'] ?? null; + + if ($value === null) { + $missingFields[] = 'sender'; + goto after_sender; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; + + after_sender: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookRepositoryVulnerabilityAlertDismiss', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookRepositoryVulnerabilityAlertDismiss::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookRepositoryVulnerabilityAlertDismiss(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookRepositoryVulnerabilityAlertDismiss', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRepositoryVulnerabilityAlertReopen(array $payload): \ApiClients\Client\Github\Schema\WebhookRepositoryVulnerabilityAlertReopen + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; + + if ($value === null) { + $missingFields[] = 'action'; + goto after_action; + } + + $properties['action'] = $value; + + after_action: + + $value = $payload['alert'] ?? null; + + if ($value === null) { + $properties['alert'] = null; + goto after_alert; + } + + $properties['alert'] = $value; + + after_alert: + + $value = $payload['enterprise'] ?? null; + + if ($value === null) { + $missingFields[] = 'enterprise'; + goto after_enterprise; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['enterprise'] = $value; + + after_enterprise: + + $value = $payload['installation'] ?? null; + + if ($value === null) { + $missingFields[] = 'installation'; + goto after_installation; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; + + after_installation: + + $value = $payload['organization'] ?? null; + + if ($value === null) { + $missingFields[] = 'organization'; + goto after_organization; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; + + after_organization: + + $value = $payload['repository'] ?? null; + + if ($value === null) { + $missingFields[] = 'repository'; + goto after_repository; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repository'] = $value; + + after_repository: + + $value = $payload['sender'] ?? null; + + if ($value === null) { + $missingFields[] = 'sender'; + goto after_sender; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; + + after_sender: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookRepositoryVulnerabilityAlertReopen', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookRepositoryVulnerabilityAlertReopen::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookRepositoryVulnerabilityAlertReopen(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookRepositoryVulnerabilityAlertReopen', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRepositoryVulnerabilityAlertResolve(array $payload): \ApiClients\Client\Github\Schema\WebhookRepositoryVulnerabilityAlertResolve { $properties = []; @@ -3284,6 +3719,9 @@ public function serializeObject(object $object): mixed 'DateTime' => $this->serializeValueDateTime($object), 'DateTimeImmutable' => $this->serializeValueDateTimeImmutable($object), 'DateTimeInterface' => $this->serializeValueDateTimeInterface($object), + 'ApiClients\Client\Github\Schema\WebhookRepositoryVulnerabilityAlertCreate' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRepositoryVulnerabilityAlertCreate($object), + 'ApiClients\Client\Github\Schema\WebhookRepositoryVulnerabilityAlertDismiss' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRepositoryVulnerabilityAlertDismiss($object), + 'ApiClients\Client\Github\Schema\WebhookRepositoryVulnerabilityAlertReopen' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRepositoryVulnerabilityAlertReopen($object), 'ApiClients\Client\Github\Schema\WebhookRepositoryVulnerabilityAlertResolve' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRepositoryVulnerabilityAlertResolve($object), default => throw new \LogicException('No serialization defined for $className'), }; @@ -3358,6 +3796,180 @@ private function serializeValueDateTimeInterface(mixed $value): mixed } + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRepositoryVulnerabilityAlertCreate(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookRepositoryVulnerabilityAlertCreate); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $alert = $object->alert; + + if ($alert === null) { + goto after_alert; + } + after_alert: $result['alert'] = $alert; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRepositoryVulnerabilityAlertDismiss(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookRepositoryVulnerabilityAlertDismiss); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $alert = $object->alert; + + if ($alert === null) { + goto after_alert; + } + after_alert: $result['alert'] = $alert; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRepositoryVulnerabilityAlertReopen(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookRepositoryVulnerabilityAlertReopen); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $alert = $object->alert; + + if ($alert === null) { + goto after_alert; + } + after_alert: $result['alert'] = $alert; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookRepositoryVulnerabilityAlertResolve(mixed $object): mixed { \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookRepositoryVulnerabilityAlertResolve); diff --git a/src/Hydrator/WebHook/SecretScanningAlert.php b/src/Hydrator/WebHook/SecretScanningAlert.php index 0cd8d3ebc1..7b5dfca828 100644 --- a/src/Hydrator/WebHook/SecretScanningAlert.php +++ b/src/Hydrator/WebHook/SecretScanningAlert.php @@ -23,13 +23,17 @@ public function __construct() {} public function hydrateObject(string $className, array $payload): object { return match($className) { - 'ApiClients\Client\Github\Schema\WebhookSecretScanningAlertRevoked' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSecretScanningAlertRevoked($payload), + 'ApiClients\Client\Github\Schema\WebhookSecretScanningAlertCreated' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSecretScanningAlertCreated($payload), + 'ApiClients\Client\Github\Schema\WebhookSecretScanningAlertReopened' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSecretScanningAlertReopened($payload), + 'ApiClients\Client\Github\Schema\WebhookSecretScanningAlertResolved' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSecretScanningAlertResolved($payload), + 'ApiClients\Client\Github\Schema\WebhookSecretScanningAlertRevoked' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSecretScanningAlertRevoked($payload), 'ApiClients\Client\Github\Schema\SecretScanningAlert' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SecretScanningAlert($payload), 'ApiClients\Client\Github\Schema\Enterprise' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($payload), 'ApiClients\Client\Github\Schema\SimpleInstallation' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($payload), 'ApiClients\Client\Github\Schema\OrganizationSimple' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($payload), 'ApiClients\Client\Github\Schema\Repository' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($payload), 'ApiClients\Client\Github\Schema\SimpleUser' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($payload), + 'ApiClients\Client\Github\Schema\WebhookSecretScanningAlertResolved\Alert' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSecretScanningAlertResolved⚡️Alert($payload), 'ApiClients\Client\Github\Schema\Repository\Permissions' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️Permissions($payload), 'ApiClients\Client\Github\Schema\Repository\TemplateRepository' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository($payload), 'ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner($payload), @@ -39,6 +43,465 @@ public function hydrateObject(string $className, array $payload): object } + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSecretScanningAlertCreated(array $payload): \ApiClients\Client\Github\Schema\WebhookSecretScanningAlertCreated + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; + + if ($value === null) { + $missingFields[] = 'action'; + goto after_action; + } + + $properties['action'] = $value; + + after_action: + + $value = $payload['alert'] ?? null; + + if ($value === null) { + $missingFields[] = 'alert'; + goto after_alert; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'alert'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SecretScanningAlert($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['alert'] = $value; + + after_alert: + + $value = $payload['enterprise'] ?? null; + + if ($value === null) { + $missingFields[] = 'enterprise'; + goto after_enterprise; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['enterprise'] = $value; + + after_enterprise: + + $value = $payload['installation'] ?? null; + + if ($value === null) { + $missingFields[] = 'installation'; + goto after_installation; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; + + after_installation: + + $value = $payload['organization'] ?? null; + + if ($value === null) { + $missingFields[] = 'organization'; + goto after_organization; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; + + after_organization: + + $value = $payload['repository'] ?? null; + + if ($value === null) { + $missingFields[] = 'repository'; + goto after_repository; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repository'] = $value; + + after_repository: + + $value = $payload['sender'] ?? null; + + if ($value === null) { + $missingFields[] = 'sender'; + goto after_sender; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; + + after_sender: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookSecretScanningAlertCreated', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookSecretScanningAlertCreated::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookSecretScanningAlertCreated(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookSecretScanningAlertCreated', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSecretScanningAlertReopened(array $payload): \ApiClients\Client\Github\Schema\WebhookSecretScanningAlertReopened + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; + + if ($value === null) { + $missingFields[] = 'action'; + goto after_action; + } + + $properties['action'] = $value; + + after_action: + + $value = $payload['alert'] ?? null; + + if ($value === null) { + $missingFields[] = 'alert'; + goto after_alert; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'alert'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SecretScanningAlert($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['alert'] = $value; + + after_alert: + + $value = $payload['enterprise'] ?? null; + + if ($value === null) { + $missingFields[] = 'enterprise'; + goto after_enterprise; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['enterprise'] = $value; + + after_enterprise: + + $value = $payload['installation'] ?? null; + + if ($value === null) { + $missingFields[] = 'installation'; + goto after_installation; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; + + after_installation: + + $value = $payload['organization'] ?? null; + + if ($value === null) { + $missingFields[] = 'organization'; + goto after_organization; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; + + after_organization: + + $value = $payload['repository'] ?? null; + + if ($value === null) { + $missingFields[] = 'repository'; + goto after_repository; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repository'] = $value; + + after_repository: + + $value = $payload['sender'] ?? null; + + if ($value === null) { + $missingFields[] = 'sender'; + goto after_sender; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; + + after_sender: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookSecretScanningAlertReopened', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookSecretScanningAlertReopened::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookSecretScanningAlertReopened(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookSecretScanningAlertReopened', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSecretScanningAlertResolved(array $payload): \ApiClients\Client\Github\Schema\WebhookSecretScanningAlertResolved + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; + + if ($value === null) { + $missingFields[] = 'action'; + goto after_action; + } + + $properties['action'] = $value; + + after_action: + + $value = $payload['alert'] ?? null; + + if ($value === null) { + $missingFields[] = 'alert'; + goto after_alert; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'alert'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSecretScanningAlertResolved⚡️Alert($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['alert'] = $value; + + after_alert: + + $value = $payload['enterprise'] ?? null; + + if ($value === null) { + $missingFields[] = 'enterprise'; + goto after_enterprise; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['enterprise'] = $value; + + after_enterprise: + + $value = $payload['installation'] ?? null; + + if ($value === null) { + $missingFields[] = 'installation'; + goto after_installation; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; + + after_installation: + + $value = $payload['organization'] ?? null; + + if ($value === null) { + $missingFields[] = 'organization'; + goto after_organization; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; + + after_organization: + + $value = $payload['repository'] ?? null; + + if ($value === null) { + $missingFields[] = 'repository'; + goto after_repository; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repository'] = $value; + + after_repository: + + $value = $payload['sender'] ?? null; + + if ($value === null) { + $missingFields[] = 'sender'; + goto after_sender; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; + + after_sender: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookSecretScanningAlertResolved', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookSecretScanningAlertResolved::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookSecretScanningAlertResolved(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookSecretScanningAlertResolved', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSecretScanningAlertRevoked(array $payload): \ApiClients\Client\Github\Schema\WebhookSecretScanningAlertRevoked { $properties = []; @@ -2003,121 +2466,330 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Simp goto after_gists_url; } - $properties['gists_url'] = $value; + $properties['gists_url'] = $value; + + after_gists_url: + + $value = $payload['starred_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'starred_url'; + goto after_starred_url; + } + + $properties['starred_url'] = $value; + + after_starred_url: + + $value = $payload['subscriptions_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscriptions_url'; + goto after_subscriptions_url; + } + + $properties['subscriptions_url'] = $value; + + after_subscriptions_url: + + $value = $payload['organizations_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'organizations_url'; + goto after_organizations_url; + } + + $properties['organizations_url'] = $value; + + after_organizations_url: + + $value = $payload['repos_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'repos_url'; + goto after_repos_url; + } + + $properties['repos_url'] = $value; + + after_repos_url: + + $value = $payload['events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'events_url'; + goto after_events_url; + } + + $properties['events_url'] = $value; + + after_events_url: + + $value = $payload['received_events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'received_events_url'; + goto after_received_events_url; + } + + $properties['received_events_url'] = $value; + + after_received_events_url: + + $value = $payload['type'] ?? null; + + if ($value === null) { + $missingFields[] = 'type'; + goto after_type; + } + + $properties['type'] = $value; + + after_type: + + $value = $payload['site_admin'] ?? null; + + if ($value === null) { + $missingFields[] = 'site_admin'; + goto after_site_admin; + } + + $properties['site_admin'] = $value; + + after_site_admin: + + $value = $payload['starred_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'starred_at'; + goto after_starred_at; + } + + $properties['starred_at'] = $value; + + after_starred_at: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleUser', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\SimpleUser::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\SimpleUser(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleUser', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSecretScanningAlertResolved⚡️Alert(array $payload): \ApiClients\Client\Github\Schema\WebhookSecretScanningAlertResolved\Alert + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'created_at'; + goto after_created_at; + } + + $properties['created_at'] = $value; + + after_created_at: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } + + $properties['html_url'] = $value; + + after_html_url: + + $value = $payload['locations_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'locations_url'; + goto after_locations_url; + } + + $properties['locations_url'] = $value; + + after_locations_url: + + $value = $payload['number'] ?? null; + + if ($value === null) { + $missingFields[] = 'number'; + goto after_number; + } + + $properties['number'] = $value; + + after_number: + + $value = $payload['push_protection_bypassed'] ?? null; + + if ($value === null) { + $missingFields[] = 'push_protection_bypassed'; + goto after_push_protection_bypassed; + } + + $properties['push_protection_bypassed'] = $value; + + after_push_protection_bypassed: + + $value = $payload['push_protection_bypassed_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'push_protection_bypassed_at'; + goto after_push_protection_bypassed_at; + } + + $properties['push_protection_bypassed_at'] = $value; + + after_push_protection_bypassed_at: + + $value = $payload['push_protection_bypassed_by'] ?? null; + + if ($value === null) { + $properties['push_protection_bypassed_by'] = null; + goto after_push_protection_bypassed_by; + } + + $properties['push_protection_bypassed_by'] = $value; + + after_push_protection_bypassed_by: + + $value = $payload['resolution'] ?? null; + + if ($value === null) { + $missingFields[] = 'resolution'; + goto after_resolution; + } + + $properties['resolution'] = $value; - after_gists_url: + after_resolution: - $value = $payload['starred_url'] ?? null; + $value = $payload['resolved_at'] ?? null; if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starred_url; + $missingFields[] = 'resolved_at'; + goto after_resolved_at; } - $properties['starred_url'] = $value; + $properties['resolved_at'] = $value; - after_starred_url: + after_resolved_at: - $value = $payload['subscriptions_url'] ?? null; + $value = $payload['resolved_by'] ?? null; if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptions_url; + $properties['resolved_by'] = null; + goto after_resolved_by; } - $properties['subscriptions_url'] = $value; + $properties['resolved_by'] = $value; - after_subscriptions_url: + after_resolved_by: - $value = $payload['organizations_url'] ?? null; + $value = $payload['resolution_comment'] ?? null; if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizations_url; + $missingFields[] = 'resolution_comment'; + goto after_resolution_comment; } - $properties['organizations_url'] = $value; + $properties['resolution_comment'] = $value; - after_organizations_url: + after_resolution_comment: - $value = $payload['repos_url'] ?? null; + $value = $payload['secret'] ?? null; if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_repos_url; + $missingFields[] = 'secret'; + goto after_secret; } - $properties['repos_url'] = $value; + $properties['secret'] = $value; - after_repos_url: + after_secret: - $value = $payload['events_url'] ?? null; + $value = $payload['secret_type'] ?? null; if ($value === null) { - $missingFields[] = 'events_url'; - goto after_events_url; + $missingFields[] = 'secret_type'; + goto after_secret_type; } - $properties['events_url'] = $value; + $properties['secret_type'] = $value; - after_events_url: + after_secret_type: - $value = $payload['received_events_url'] ?? null; + $value = $payload['secret_type_display_name'] ?? null; if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_received_events_url; + $missingFields[] = 'secret_type_display_name'; + goto after_secret_type_display_name; } - $properties['received_events_url'] = $value; + $properties['secret_type_display_name'] = $value; - after_received_events_url: + after_secret_type_display_name: - $value = $payload['type'] ?? null; + $value = $payload['state'] ?? null; if ($value === null) { - $missingFields[] = 'type'; - goto after_type; + $missingFields[] = 'state'; + goto after_state; } - $properties['type'] = $value; + $properties['state'] = $value; - after_type: + after_state: - $value = $payload['site_admin'] ?? null; + $value = $payload['updated_at'] ?? null; if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_site_admin; + $missingFields[] = 'updated_at'; + goto after_updated_at; } - $properties['site_admin'] = $value; + $properties['updated_at'] = $value; - after_site_admin: + after_updated_at: - $value = $payload['starred_at'] ?? null; + $value = $payload['url'] ?? null; if ($value === null) { - $missingFields[] = 'starred_at'; - goto after_starred_at; + $missingFields[] = 'url'; + goto after_url; } - $properties['starred_at'] = $value; + $properties['url'] = $value; - after_starred_at: + after_url: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleUser', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookSecretScanningAlertResolved\Alert', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\SimpleUser::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookSecretScanningAlertResolved\Alert::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\SimpleUser(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookSecretScanningAlertResolved\Alert(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleUser', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookSecretScanningAlertResolved\Alert', $exception, stack: $this->hydrationStack); } } @@ -3503,6 +4175,9 @@ public function serializeObject(object $object): mixed 'DateTime' => $this->serializeValueDateTime($object), 'DateTimeImmutable' => $this->serializeValueDateTimeImmutable($object), 'DateTimeInterface' => $this->serializeValueDateTimeInterface($object), + 'ApiClients\Client\Github\Schema\WebhookSecretScanningAlertCreated' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSecretScanningAlertCreated($object), + 'ApiClients\Client\Github\Schema\WebhookSecretScanningAlertReopened' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSecretScanningAlertReopened($object), + 'ApiClients\Client\Github\Schema\WebhookSecretScanningAlertResolved' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSecretScanningAlertResolved($object), 'ApiClients\Client\Github\Schema\WebhookSecretScanningAlertRevoked' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSecretScanningAlertRevoked($object), default => throw new \LogicException('No serialization defined for $className'), }; @@ -3577,6 +4252,171 @@ private function serializeValueDateTimeInterface(mixed $value): mixed } + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSecretScanningAlertCreated(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookSecretScanningAlertCreated); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $alert = $object->alert; + + if ($alert === null) { + goto after_alert; + } + $alert = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SecretScanningAlert($alert); + after_alert: $result['alert'] = $alert; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSecretScanningAlertReopened(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookSecretScanningAlertReopened); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $alert = $object->alert; + + if ($alert === null) { + goto after_alert; + } + $alert = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SecretScanningAlert($alert); + after_alert: $result['alert'] = $alert; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSecretScanningAlertResolved(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookSecretScanningAlertResolved); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $alert = $object->alert; + + if ($alert === null) { + goto after_alert; + } + $alert = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSecretScanningAlertResolved⚡️Alert($alert); + after_alert: $result['alert'] = $alert; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSecretScanningAlertRevoked(mixed $object): mixed { \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookSecretScanningAlertRevoked); diff --git a/src/Hydrator/WebHook/SecurityAdvisory.php b/src/Hydrator/WebHook/SecurityAdvisory.php index 3b8ef4b35d..39b3fe07e1 100644 --- a/src/Hydrator/WebHook/SecurityAdvisory.php +++ b/src/Hydrator/WebHook/SecurityAdvisory.php @@ -23,13 +23,16 @@ public function __construct() {} public function hydrateObject(string $className, array $payload): object { return match($className) { - 'ApiClients\Client\Github\Schema\WebhookSecurityAdvisoryWithdrawn' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSecurityAdvisoryWithdrawn($payload), + 'ApiClients\Client\Github\Schema\WebhookSecurityAdvisoryPublished' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSecurityAdvisoryPublished($payload), + 'ApiClients\Client\Github\Schema\WebhookSecurityAdvisoryUpdated' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSecurityAdvisoryUpdated($payload), + 'ApiClients\Client\Github\Schema\WebhookSecurityAdvisoryWithdrawn' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSecurityAdvisoryWithdrawn($payload), 'ApiClients\Client\Github\Schema\Enterprise' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($payload), 'ApiClients\Client\Github\Schema\SimpleInstallation' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($payload), 'ApiClients\Client\Github\Schema\OrganizationSimple' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($payload), 'ApiClients\Client\Github\Schema\Repository' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($payload), - 'ApiClients\Client\Github\Schema\WebhookSecurityAdvisoryWithdrawn\SecurityAdvisory' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSecurityAdvisoryWithdrawn⚡️SecurityAdvisory($payload), + 'ApiClients\Client\Github\Schema\WebhookSecurityAdvisoryPublished\SecurityAdvisory' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSecurityAdvisoryPublished⚡️SecurityAdvisory($payload), 'ApiClients\Client\Github\Schema\SimpleUser' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($payload), + 'ApiClients\Client\Github\Schema\WebhookSecurityAdvisoryWithdrawn\SecurityAdvisory' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSecurityAdvisoryWithdrawn⚡️SecurityAdvisory($payload), 'ApiClients\Client\Github\Schema\Repository\Permissions' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️Permissions($payload), 'ApiClients\Client\Github\Schema\Repository\TemplateRepository' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository($payload), 'ApiClients\Client\Github\Schema\WebhookSecurityAdvisoryPublished\SecurityAdvisory\Cvss' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSecurityAdvisoryPublished⚡️SecurityAdvisory⚡️Cvss($payload), @@ -40,6 +43,312 @@ public function hydrateObject(string $className, array $payload): object } + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSecurityAdvisoryPublished(array $payload): \ApiClients\Client\Github\Schema\WebhookSecurityAdvisoryPublished + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; + + if ($value === null) { + $missingFields[] = 'action'; + goto after_action; + } + + $properties['action'] = $value; + + after_action: + + $value = $payload['enterprise'] ?? null; + + if ($value === null) { + $missingFields[] = 'enterprise'; + goto after_enterprise; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['enterprise'] = $value; + + after_enterprise: + + $value = $payload['installation'] ?? null; + + if ($value === null) { + $missingFields[] = 'installation'; + goto after_installation; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; + + after_installation: + + $value = $payload['organization'] ?? null; + + if ($value === null) { + $missingFields[] = 'organization'; + goto after_organization; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; + + after_organization: + + $value = $payload['repository'] ?? null; + + if ($value === null) { + $missingFields[] = 'repository'; + goto after_repository; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repository'] = $value; + + after_repository: + + $value = $payload['security_advisory'] ?? null; + + if ($value === null) { + $missingFields[] = 'security_advisory'; + goto after_security_advisory; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'security_advisory'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSecurityAdvisoryPublished⚡️SecurityAdvisory($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['security_advisory'] = $value; + + after_security_advisory: + + $value = $payload['sender'] ?? null; + + if ($value === null) { + $missingFields[] = 'sender'; + goto after_sender; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; + + after_sender: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookSecurityAdvisoryPublished', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookSecurityAdvisoryPublished::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookSecurityAdvisoryPublished(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookSecurityAdvisoryPublished', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSecurityAdvisoryUpdated(array $payload): \ApiClients\Client\Github\Schema\WebhookSecurityAdvisoryUpdated + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; + + if ($value === null) { + $missingFields[] = 'action'; + goto after_action; + } + + $properties['action'] = $value; + + after_action: + + $value = $payload['enterprise'] ?? null; + + if ($value === null) { + $missingFields[] = 'enterprise'; + goto after_enterprise; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['enterprise'] = $value; + + after_enterprise: + + $value = $payload['installation'] ?? null; + + if ($value === null) { + $missingFields[] = 'installation'; + goto after_installation; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; + + after_installation: + + $value = $payload['organization'] ?? null; + + if ($value === null) { + $missingFields[] = 'organization'; + goto after_organization; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; + + after_organization: + + $value = $payload['repository'] ?? null; + + if ($value === null) { + $missingFields[] = 'repository'; + goto after_repository; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repository'] = $value; + + after_repository: + + $value = $payload['security_advisory'] ?? null; + + if ($value === null) { + $missingFields[] = 'security_advisory'; + goto after_security_advisory; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'security_advisory'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSecurityAdvisoryPublished⚡️SecurityAdvisory($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['security_advisory'] = $value; + + after_security_advisory: + + $value = $payload['sender'] ?? null; + + if ($value === null) { + $missingFields[] = 'sender'; + goto after_sender; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; + + after_sender: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookSecurityAdvisoryUpdated', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookSecurityAdvisoryUpdated::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookSecurityAdvisoryUpdated(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookSecurityAdvisoryUpdated', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSecurityAdvisoryWithdrawn(array $payload): \ApiClients\Client\Github\Schema\WebhookSecurityAdvisoryWithdrawn { $properties = []; @@ -1661,7 +1970,7 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repo } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSecurityAdvisoryWithdrawn⚡️SecurityAdvisory(array $payload): \ApiClients\Client\Github\Schema\WebhookSecurityAdvisoryWithdrawn\SecurityAdvisory + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSecurityAdvisoryPublished⚡️SecurityAdvisory(array $payload): \ApiClients\Client\Github\Schema\WebhookSecurityAdvisoryPublished\SecurityAdvisory { $properties = []; $missingFields = []; @@ -1809,17 +2118,17 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh after_withdrawn_at: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookSecurityAdvisoryWithdrawn\SecurityAdvisory', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookSecurityAdvisoryPublished\SecurityAdvisory', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookSecurityAdvisoryWithdrawn\SecurityAdvisory::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookSecurityAdvisoryPublished\SecurityAdvisory::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\WebhookSecurityAdvisoryWithdrawn\SecurityAdvisory(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookSecurityAdvisoryPublished\SecurityAdvisory(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookSecurityAdvisoryWithdrawn\SecurityAdvisory', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookSecurityAdvisoryPublished\SecurityAdvisory', $exception, stack: $this->hydrationStack); } } @@ -1918,161 +2227,324 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Simp after_url: - $value = $payload['html_url'] ?? null; + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } + + $properties['html_url'] = $value; + + after_html_url: + + $value = $payload['followers_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'followers_url'; + goto after_followers_url; + } + + $properties['followers_url'] = $value; + + after_followers_url: + + $value = $payload['following_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'following_url'; + goto after_following_url; + } + + $properties['following_url'] = $value; + + after_following_url: + + $value = $payload['gists_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'gists_url'; + goto after_gists_url; + } + + $properties['gists_url'] = $value; + + after_gists_url: + + $value = $payload['starred_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'starred_url'; + goto after_starred_url; + } + + $properties['starred_url'] = $value; + + after_starred_url: + + $value = $payload['subscriptions_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscriptions_url'; + goto after_subscriptions_url; + } + + $properties['subscriptions_url'] = $value; + + after_subscriptions_url: + + $value = $payload['organizations_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'organizations_url'; + goto after_organizations_url; + } + + $properties['organizations_url'] = $value; + + after_organizations_url: + + $value = $payload['repos_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'repos_url'; + goto after_repos_url; + } + + $properties['repos_url'] = $value; + + after_repos_url: + + $value = $payload['events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'events_url'; + goto after_events_url; + } + + $properties['events_url'] = $value; + + after_events_url: + + $value = $payload['received_events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'received_events_url'; + goto after_received_events_url; + } + + $properties['received_events_url'] = $value; + + after_received_events_url: + + $value = $payload['type'] ?? null; + + if ($value === null) { + $missingFields[] = 'type'; + goto after_type; + } + + $properties['type'] = $value; + + after_type: + + $value = $payload['site_admin'] ?? null; + + if ($value === null) { + $missingFields[] = 'site_admin'; + goto after_site_admin; + } + + $properties['site_admin'] = $value; + + after_site_admin: + + $value = $payload['starred_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'starred_at'; + goto after_starred_at; + } + + $properties['starred_at'] = $value; + + after_starred_at: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleUser', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\SimpleUser::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\SimpleUser(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleUser', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSecurityAdvisoryWithdrawn⚡️SecurityAdvisory(array $payload): \ApiClients\Client\Github\Schema\WebhookSecurityAdvisoryWithdrawn\SecurityAdvisory + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['cvss'] ?? null; if ($value === null) { - $missingFields[] = 'html_url'; - goto after_html_url; + $missingFields[] = 'cvss'; + goto after_cvss; } - $properties['html_url'] = $value; - - after_html_url: - - $value = $payload['followers_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followers_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'cvss'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSecurityAdvisoryPublished⚡️SecurityAdvisory⚡️Cvss($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['followers_url'] = $value; + $properties['cvss'] = $value; - after_followers_url: + after_cvss: - $value = $payload['following_url'] ?? null; + $value = $payload['cwes'] ?? null; if ($value === null) { - $missingFields[] = 'following_url'; - goto after_following_url; + $missingFields[] = 'cwes'; + goto after_cwes; } - $properties['following_url'] = $value; + $properties['cwes'] = $value; - after_following_url: + after_cwes: - $value = $payload['gists_url'] ?? null; + $value = $payload['description'] ?? null; if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gists_url; + $missingFields[] = 'description'; + goto after_description; } - $properties['gists_url'] = $value; + $properties['description'] = $value; - after_gists_url: + after_description: - $value = $payload['starred_url'] ?? null; + $value = $payload['ghsa_id'] ?? null; if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starred_url; + $missingFields[] = 'ghsa_id'; + goto after_ghsa_id; } - $properties['starred_url'] = $value; + $properties['ghsa_id'] = $value; - after_starred_url: + after_ghsa_id: - $value = $payload['subscriptions_url'] ?? null; + $value = $payload['identifiers'] ?? null; if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptions_url; + $missingFields[] = 'identifiers'; + goto after_identifiers; } - $properties['subscriptions_url'] = $value; + $properties['identifiers'] = $value; - after_subscriptions_url: + after_identifiers: - $value = $payload['organizations_url'] ?? null; + $value = $payload['published_at'] ?? null; if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizations_url; + $missingFields[] = 'published_at'; + goto after_published_at; } - $properties['organizations_url'] = $value; + $properties['published_at'] = $value; - after_organizations_url: + after_published_at: - $value = $payload['repos_url'] ?? null; + $value = $payload['references'] ?? null; if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_repos_url; + $missingFields[] = 'references'; + goto after_references; } - $properties['repos_url'] = $value; + $properties['references'] = $value; - after_repos_url: + after_references: - $value = $payload['events_url'] ?? null; + $value = $payload['severity'] ?? null; if ($value === null) { - $missingFields[] = 'events_url'; - goto after_events_url; + $missingFields[] = 'severity'; + goto after_severity; } - $properties['events_url'] = $value; + $properties['severity'] = $value; - after_events_url: + after_severity: - $value = $payload['received_events_url'] ?? null; + $value = $payload['summary'] ?? null; if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_received_events_url; + $missingFields[] = 'summary'; + goto after_summary; } - $properties['received_events_url'] = $value; + $properties['summary'] = $value; - after_received_events_url: + after_summary: - $value = $payload['type'] ?? null; + $value = $payload['updated_at'] ?? null; if ($value === null) { - $missingFields[] = 'type'; - goto after_type; + $missingFields[] = 'updated_at'; + goto after_updated_at; } - $properties['type'] = $value; + $properties['updated_at'] = $value; - after_type: + after_updated_at: - $value = $payload['site_admin'] ?? null; + $value = $payload['vulnerabilities'] ?? null; if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_site_admin; + $missingFields[] = 'vulnerabilities'; + goto after_vulnerabilities; } - $properties['site_admin'] = $value; + $properties['vulnerabilities'] = $value; - after_site_admin: + after_vulnerabilities: - $value = $payload['starred_at'] ?? null; + $value = $payload['withdrawn_at'] ?? null; if ($value === null) { - $missingFields[] = 'starred_at'; - goto after_starred_at; + $missingFields[] = 'withdrawn_at'; + goto after_withdrawn_at; } - $properties['starred_at'] = $value; + $properties['withdrawn_at'] = $value; - after_starred_at: + after_withdrawn_at: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleUser', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookSecurityAdvisoryWithdrawn\SecurityAdvisory', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\SimpleUser::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookSecurityAdvisoryWithdrawn\SecurityAdvisory::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\SimpleUser(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookSecurityAdvisoryWithdrawn\SecurityAdvisory(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleUser', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookSecurityAdvisoryWithdrawn\SecurityAdvisory', $exception, stack: $this->hydrationStack); } } @@ -3502,6 +3974,8 @@ public function serializeObject(object $object): mixed 'DateTime' => $this->serializeValueDateTime($object), 'DateTimeImmutable' => $this->serializeValueDateTimeImmutable($object), 'DateTimeInterface' => $this->serializeValueDateTimeInterface($object), + 'ApiClients\Client\Github\Schema\WebhookSecurityAdvisoryPublished' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSecurityAdvisoryPublished($object), + 'ApiClients\Client\Github\Schema\WebhookSecurityAdvisoryUpdated' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSecurityAdvisoryUpdated($object), 'ApiClients\Client\Github\Schema\WebhookSecurityAdvisoryWithdrawn' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSecurityAdvisoryWithdrawn($object), default => throw new \LogicException('No serialization defined for $className'), }; @@ -3576,6 +4050,108 @@ private function serializeValueDateTimeInterface(mixed $value): mixed } + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSecurityAdvisoryPublished(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookSecurityAdvisoryPublished); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $repository = $object->repository; + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $security_advisory = $object->security_advisory; + + if ($security_advisory === null) { + goto after_security_advisory; + } + $security_advisory = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSecurityAdvisoryPublished⚡️SecurityAdvisory($security_advisory); + after_security_advisory: $result['security_advisory'] = $security_advisory; + + + $sender = $object->sender; + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSecurityAdvisoryUpdated(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookSecurityAdvisoryUpdated); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $repository = $object->repository; + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $security_advisory = $object->security_advisory; + + if ($security_advisory === null) { + goto after_security_advisory; + } + $security_advisory = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSecurityAdvisoryPublished⚡️SecurityAdvisory($security_advisory); + after_security_advisory: $result['security_advisory'] = $security_advisory; + + + $sender = $object->sender; + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSecurityAdvisoryWithdrawn(mixed $object): mixed { \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookSecurityAdvisoryWithdrawn); diff --git a/src/Hydrator/WebHook/Sponsorship.php b/src/Hydrator/WebHook/Sponsorship.php index 7022d62511..6a720cc87d 100644 --- a/src/Hydrator/WebHook/Sponsorship.php +++ b/src/Hydrator/WebHook/Sponsorship.php @@ -23,20 +23,27 @@ public function __construct() {} public function hydrateObject(string $className, array $payload): object { return match($className) { - 'ApiClients\Client\Github\Schema\WebhookSponsorshipTierChanged' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSponsorshipTierChanged($payload), - 'ApiClients\Client\Github\Schema\WebhookSponsorshipPendingTierChange\Changes' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSponsorshipPendingTierChange⚡️Changes($payload), + 'ApiClients\Client\Github\Schema\WebhookSponsorshipCancelled' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSponsorshipCancelled($payload), + 'ApiClients\Client\Github\Schema\WebhookSponsorshipCreated' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSponsorshipCreated($payload), + 'ApiClients\Client\Github\Schema\WebhookSponsorshipEdited' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSponsorshipEdited($payload), + 'ApiClients\Client\Github\Schema\WebhookSponsorshipPendingCancellation' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSponsorshipPendingCancellation($payload), + 'ApiClients\Client\Github\Schema\WebhookSponsorshipPendingTierChange' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSponsorshipPendingTierChange($payload), + 'ApiClients\Client\Github\Schema\WebhookSponsorshipTierChanged' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSponsorshipTierChanged($payload), 'ApiClients\Client\Github\Schema\Enterprise' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($payload), 'ApiClients\Client\Github\Schema\SimpleInstallation' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($payload), 'ApiClients\Client\Github\Schema\OrganizationSimple' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($payload), 'ApiClients\Client\Github\Schema\Repository' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($payload), 'ApiClients\Client\Github\Schema\SimpleUser' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($payload), 'ApiClients\Client\Github\Schema\WebhookSponsorshipCancelled\Sponsorship' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSponsorshipCancelled⚡️Sponsorship($payload), - 'ApiClients\Client\Github\Schema\WebhookSponsorshipPendingTierChange\Changes\Tier' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSponsorshipPendingTierChange⚡️Changes⚡️Tier($payload), + 'ApiClients\Client\Github\Schema\WebhookSponsorshipEdited\Changes' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSponsorshipEdited⚡️Changes($payload), + 'ApiClients\Client\Github\Schema\WebhookSponsorshipPendingTierChange\Changes' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSponsorshipPendingTierChange⚡️Changes($payload), 'ApiClients\Client\Github\Schema\Repository\Permissions' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️Permissions($payload), 'ApiClients\Client\Github\Schema\Repository\TemplateRepository' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository($payload), 'ApiClients\Client\Github\Schema\WebhookDeploymentCreated\WorkflowRun\HeadRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDeploymentCreated⚡️WorkflowRun⚡️HeadRepository⚡️Owner($payload), 'ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($payload), 'ApiClients\Client\Github\Schema\WebhookSponsorshipCancelled\Sponsorship\Tier' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSponsorshipCancelled⚡️Sponsorship⚡️Tier($payload), + 'ApiClients\Client\Github\Schema\WebhookSponsorshipEdited\Changes\PrivacyLevel' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSponsorshipEdited⚡️Changes⚡️PrivacyLevel($payload), + 'ApiClients\Client\Github\Schema\WebhookSponsorshipPendingTierChange\Changes\Tier' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSponsorshipPendingTierChange⚡️Changes⚡️Tier($payload), 'ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner($payload), 'ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Permissions($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), @@ -44,7 +51,7 @@ public function hydrateObject(string $className, array $payload): object } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSponsorshipTierChanged(array $payload): \ApiClients\Client\Github\Schema\WebhookSponsorshipTierChanged + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSponsorshipCancelled(array $payload): \ApiClients\Client\Github\Schema\WebhookSponsorshipCancelled { $properties = []; $missingFields = []; @@ -61,26 +68,6 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh after_action: - $value = $payload['changes'] ?? null; - - if ($value === null) { - $missingFields[] = 'changes'; - goto after_changes; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'changes'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSponsorshipPendingTierChange⚡️Changes($value); - } finally { - array_pop($this->hydrationStack); - } - } - - $properties['changes'] = $value; - - after_changes: - $value = $payload['enterprise'] ?? null; if ($value === null) { @@ -202,3711 +189,3909 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh after_sponsorship: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookSponsorshipTierChanged', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookSponsorshipCancelled', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookSponsorshipTierChanged::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookSponsorshipCancelled::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\WebhookSponsorshipTierChanged(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookSponsorshipCancelled(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookSponsorshipTierChanged', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookSponsorshipCancelled', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSponsorshipPendingTierChange⚡️Changes(array $payload): \ApiClients\Client\Github\Schema\WebhookSponsorshipPendingTierChange\Changes + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSponsorshipCreated(array $payload): \ApiClients\Client\Github\Schema\WebhookSponsorshipCreated { $properties = []; $missingFields = []; try { - $value = $payload['tier'] ?? null; + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'tier'; - goto after_tier; + $missingFields[] = 'action'; + goto after_action; + } + + $properties['action'] = $value; + + after_action: + + $value = $payload['enterprise'] ?? null; + + if ($value === null) { + $missingFields[] = 'enterprise'; + goto after_enterprise; } if (is_array($value)) { try { - $this->hydrationStack[] = 'tier'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSponsorshipPendingTierChange⚡️Changes⚡️Tier($value); + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); } finally { array_pop($this->hydrationStack); } } - $properties['tier'] = $value; + $properties['enterprise'] = $value; - after_tier: - - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookSponsorshipPendingTierChange\Changes', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookSponsorshipPendingTierChange\Changes::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\WebhookSponsorshipPendingTierChange\Changes(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookSponsorshipPendingTierChange\Changes', $exception, stack: $this->hydrationStack); - } - } + after_enterprise: - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise(array $payload): \ApiClients\Client\Github\Schema\Enterprise - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['description'] ?? null; + $value = $payload['installation'] ?? null; if ($value === null) { - $missingFields[] = 'description'; - goto after_description; + $missingFields[] = 'installation'; + goto after_installation; } - $properties['description'] = $value; - - after_description: - - $value = $payload['html_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'html_url'; - goto after_html_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['html_url'] = $value; + $properties['installation'] = $value; - after_html_url: + after_installation: - $value = $payload['website_url'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'website_url'; - goto after_website_url; + $missingFields[] = 'organization'; + goto after_organization; } - $properties['website_url'] = $value; - - after_website_url: - - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['id'] = $value; + $properties['organization'] = $value; - after_id: + after_organization: - $value = $payload['node_id'] ?? null; + $value = $payload['repository'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $missingFields[] = 'repository'; + goto after_repository; } - $properties['node_id'] = $value; - - after_node_id: - - $value = $payload['name'] ?? null; - - if ($value === null) { - $missingFields[] = 'name'; - goto after_name; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['name'] = $value; + $properties['repository'] = $value; - after_name: + after_repository: - $value = $payload['slug'] ?? null; + $value = $payload['sender'] ?? null; if ($value === null) { - $missingFields[] = 'slug'; - goto after_slug; + $missingFields[] = 'sender'; + goto after_sender; } - $properties['slug'] = $value; - - after_slug: - - $value = $payload['created_at'] ?? null; - - if ($value === null) { - $missingFields[] = 'created_at'; - goto after_created_at; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['created_at'] = $value; + $properties['sender'] = $value; - after_created_at: + after_sender: - $value = $payload['updated_at'] ?? null; + $value = $payload['sponsorship'] ?? null; if ($value === null) { - $missingFields[] = 'updated_at'; - goto after_updated_at; + $missingFields[] = 'sponsorship'; + goto after_sponsorship; } - $properties['updated_at'] = $value; - - after_updated_at: - - $value = $payload['avatar_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatar_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sponsorship'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSponsorshipCancelled⚡️Sponsorship($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['avatar_url'] = $value; + $properties['sponsorship'] = $value; - after_avatar_url: + after_sponsorship: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Enterprise', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookSponsorshipCreated', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Enterprise::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookSponsorshipCreated::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\Enterprise(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookSponsorshipCreated(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Enterprise', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookSponsorshipCreated', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation(array $payload): \ApiClients\Client\Github\Schema\SimpleInstallation + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSponsorshipEdited(array $payload): \ApiClients\Client\Github\Schema\WebhookSponsorshipEdited { $properties = []; $missingFields = []; try { - $value = $payload['id'] ?? null; + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'action'; + goto after_action; } - $properties['id'] = $value; + $properties['action'] = $value; - after_id: + after_action: - $value = $payload['node_id'] ?? null; + $value = $payload['changes'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $missingFields[] = 'changes'; + goto after_changes; } - $properties['node_id'] = $value; - - after_node_id: + if (is_array($value)) { + try { + $this->hydrationStack[] = 'changes'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSponsorshipEdited⚡️Changes($value); + } finally { + array_pop($this->hydrationStack); + } + } - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleInstallation', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\SimpleInstallation::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\SimpleInstallation(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleInstallation', $exception, stack: $this->hydrationStack); - } - } + $properties['changes'] = $value; + + after_changes: - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple(array $payload): \ApiClients\Client\Github\Schema\OrganizationSimple - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['login'] ?? null; + $value = $payload['enterprise'] ?? null; if ($value === null) { - $missingFields[] = 'login'; - goto after_login; + $missingFields[] = 'enterprise'; + goto after_enterprise; } - $properties['login'] = $value; - - after_login: - - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['id'] = $value; + $properties['enterprise'] = $value; - after_id: + after_enterprise: - $value = $payload['node_id'] ?? null; + $value = $payload['installation'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $missingFields[] = 'installation'; + goto after_installation; } - $properties['node_id'] = $value; - - after_node_id: - - $value = $payload['url'] ?? null; - - if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['url'] = $value; + $properties['installation'] = $value; - after_url: + after_installation: - $value = $payload['repos_url'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_repos_url; + $missingFields[] = 'organization'; + goto after_organization; } - $properties['repos_url'] = $value; - - after_repos_url: - - $value = $payload['events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'events_url'; - goto after_events_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['events_url'] = $value; + $properties['organization'] = $value; - after_events_url: + after_organization: - $value = $payload['hooks_url'] ?? null; + $value = $payload['repository'] ?? null; if ($value === null) { - $missingFields[] = 'hooks_url'; - goto after_hooks_url; + $missingFields[] = 'repository'; + goto after_repository; } - $properties['hooks_url'] = $value; - - after_hooks_url: - - $value = $payload['issues_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'issues_url'; - goto after_issues_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['issues_url'] = $value; + $properties['repository'] = $value; - after_issues_url: + after_repository: - $value = $payload['members_url'] ?? null; + $value = $payload['sender'] ?? null; if ($value === null) { - $missingFields[] = 'members_url'; - goto after_members_url; + $missingFields[] = 'sender'; + goto after_sender; } - $properties['members_url'] = $value; - - after_members_url: - - $value = $payload['public_members_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'public_members_url'; - goto after_public_members_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['public_members_url'] = $value; + $properties['sender'] = $value; - after_public_members_url: + after_sender: - $value = $payload['avatar_url'] ?? null; + $value = $payload['sponsorship'] ?? null; if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatar_url; + $missingFields[] = 'sponsorship'; + goto after_sponsorship; } - $properties['avatar_url'] = $value; - - after_avatar_url: - - $value = $payload['description'] ?? null; - - if ($value === null) { - $missingFields[] = 'description'; - goto after_description; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sponsorship'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSponsorshipCancelled⚡️Sponsorship($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['description'] = $value; + $properties['sponsorship'] = $value; - after_description: + after_sponsorship: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\OrganizationSimple', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookSponsorshipEdited', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\OrganizationSimple::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookSponsorshipEdited::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\OrganizationSimple(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookSponsorshipEdited(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\OrganizationSimple', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookSponsorshipEdited', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository(array $payload): \ApiClients\Client\Github\Schema\Repository + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSponsorshipPendingCancellation(array $payload): \ApiClients\Client\Github\Schema\WebhookSponsorshipPendingCancellation { $properties = []; $missingFields = []; try { - $value = $payload['id'] ?? null; + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'action'; + goto after_action; } - $properties['id'] = $value; + $properties['action'] = $value; - after_id: + after_action: - $value = $payload['node_id'] ?? null; + $value = $payload['effective_date'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $missingFields[] = 'effective_date'; + goto after_effective_date; } - $properties['node_id'] = $value; + $properties['effective_date'] = $value; - after_node_id: + after_effective_date: - $value = $payload['name'] ?? null; + $value = $payload['enterprise'] ?? null; if ($value === null) { - $missingFields[] = 'name'; - goto after_name; + $missingFields[] = 'enterprise'; + goto after_enterprise; } - $properties['name'] = $value; - - after_name: - - $value = $payload['full_name'] ?? null; - - if ($value === null) { - $missingFields[] = 'full_name'; - goto after_full_name; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['full_name'] = $value; + $properties['enterprise'] = $value; - after_full_name: + after_enterprise: - $value = $payload['license'] ?? null; + $value = $payload['installation'] ?? null; if ($value === null) { - $properties['license'] = null; - goto after_license; + $missingFields[] = 'installation'; + goto after_installation; } - $properties['license'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; - after_license: + after_installation: $value = $payload['organization'] ?? null; if ($value === null) { - $properties['organization'] = null; + $missingFields[] = 'organization'; goto after_organization; } - $properties['organization'] = $value; - - after_organization: - - $value = $payload['forks'] ?? null; - - if ($value === null) { - $missingFields[] = 'forks'; - goto after_forks; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['forks'] = $value; + $properties['organization'] = $value; - after_forks: + after_organization: - $value = $payload['permissions'] ?? null; + $value = $payload['repository'] ?? null; if ($value === null) { - $missingFields[] = 'permissions'; - goto after_permissions; + $missingFields[] = 'repository'; + goto after_repository; } if (is_array($value)) { try { - $this->hydrationStack[] = 'permissions'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️Permissions($value); + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); } finally { array_pop($this->hydrationStack); } } - $properties['permissions'] = $value; + $properties['repository'] = $value; - after_permissions: + after_repository: - $value = $payload['owner'] ?? null; + $value = $payload['sender'] ?? null; if ($value === null) { - $missingFields[] = 'owner'; - goto after_owner; + $missingFields[] = 'sender'; + goto after_sender; } if (is_array($value)) { try { - $this->hydrationStack[] = 'owner'; + $this->hydrationStack[] = 'sender'; $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } } - $properties['owner'] = $value; + $properties['sender'] = $value; - after_owner: + after_sender: - $value = $payload['private'] ?? null; + $value = $payload['sponsorship'] ?? null; if ($value === null) { - $missingFields[] = 'private'; - goto after_private; + $missingFields[] = 'sponsorship'; + goto after_sponsorship; } - $properties['private'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sponsorship'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSponsorshipCancelled⚡️Sponsorship($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sponsorship'] = $value; - after_private: + after_sponsorship: - $value = $payload['html_url'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookSponsorshipPendingCancellation', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookSponsorshipPendingCancellation::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookSponsorshipPendingCancellation(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookSponsorshipPendingCancellation', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSponsorshipPendingTierChange(array $payload): \ApiClients\Client\Github\Schema\WebhookSponsorshipPendingTierChange + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'html_url'; - goto after_html_url; + $missingFields[] = 'action'; + goto after_action; } - $properties['html_url'] = $value; + $properties['action'] = $value; - after_html_url: + after_action: - $value = $payload['description'] ?? null; + $value = $payload['changes'] ?? null; if ($value === null) { - $missingFields[] = 'description'; - goto after_description; + $missingFields[] = 'changes'; + goto after_changes; } - $properties['description'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'changes'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSponsorshipPendingTierChange⚡️Changes($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['changes'] = $value; - after_description: + after_changes: - $value = $payload['fork'] ?? null; + $value = $payload['effective_date'] ?? null; if ($value === null) { - $missingFields[] = 'fork'; - goto after_fork; + $missingFields[] = 'effective_date'; + goto after_effective_date; } - $properties['fork'] = $value; + $properties['effective_date'] = $value; - after_fork: + after_effective_date: - $value = $payload['url'] ?? null; + $value = $payload['enterprise'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $missingFields[] = 'enterprise'; + goto after_enterprise; } - $properties['url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['enterprise'] = $value; - after_url: + after_enterprise: - $value = $payload['archive_url'] ?? null; + $value = $payload['installation'] ?? null; if ($value === null) { - $missingFields[] = 'archive_url'; - goto after_archive_url; + $missingFields[] = 'installation'; + goto after_installation; } - $properties['archive_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; - after_archive_url: + after_installation: - $value = $payload['assignees_url'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'assignees_url'; - goto after_assignees_url; + $missingFields[] = 'organization'; + goto after_organization; } - $properties['assignees_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; - after_assignees_url: + after_organization: - $value = $payload['blobs_url'] ?? null; + $value = $payload['repository'] ?? null; if ($value === null) { - $missingFields[] = 'blobs_url'; - goto after_blobs_url; + $missingFields[] = 'repository'; + goto after_repository; } - $properties['blobs_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repository'] = $value; - after_blobs_url: + after_repository: - $value = $payload['branches_url'] ?? null; + $value = $payload['sender'] ?? null; if ($value === null) { - $missingFields[] = 'branches_url'; - goto after_branches_url; + $missingFields[] = 'sender'; + goto after_sender; } - $properties['branches_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; - after_branches_url: + after_sender: - $value = $payload['collaborators_url'] ?? null; + $value = $payload['sponsorship'] ?? null; if ($value === null) { - $missingFields[] = 'collaborators_url'; - goto after_collaborators_url; + $missingFields[] = 'sponsorship'; + goto after_sponsorship; } - $properties['collaborators_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sponsorship'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSponsorshipCancelled⚡️Sponsorship($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sponsorship'] = $value; - after_collaborators_url: + after_sponsorship: - $value = $payload['comments_url'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookSponsorshipPendingTierChange', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookSponsorshipPendingTierChange::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookSponsorshipPendingTierChange(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookSponsorshipPendingTierChange', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSponsorshipTierChanged(array $payload): \ApiClients\Client\Github\Schema\WebhookSponsorshipTierChanged + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'comments_url'; - goto after_comments_url; + $missingFields[] = 'action'; + goto after_action; } - $properties['comments_url'] = $value; + $properties['action'] = $value; - after_comments_url: + after_action: - $value = $payload['commits_url'] ?? null; + $value = $payload['changes'] ?? null; if ($value === null) { - $missingFields[] = 'commits_url'; - goto after_commits_url; + $missingFields[] = 'changes'; + goto after_changes; } - $properties['commits_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'changes'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSponsorshipPendingTierChange⚡️Changes($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['changes'] = $value; - after_commits_url: + after_changes: - $value = $payload['compare_url'] ?? null; + $value = $payload['enterprise'] ?? null; if ($value === null) { - $missingFields[] = 'compare_url'; - goto after_compare_url; + $missingFields[] = 'enterprise'; + goto after_enterprise; } - $properties['compare_url'] = $value; - - after_compare_url: - - $value = $payload['contents_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'contents_url'; - goto after_contents_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['contents_url'] = $value; + $properties['enterprise'] = $value; - after_contents_url: + after_enterprise: - $value = $payload['contributors_url'] ?? null; + $value = $payload['installation'] ?? null; if ($value === null) { - $missingFields[] = 'contributors_url'; - goto after_contributors_url; + $missingFields[] = 'installation'; + goto after_installation; } - $properties['contributors_url'] = $value; - - after_contributors_url: - - $value = $payload['deployments_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'deployments_url'; - goto after_deployments_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['deployments_url'] = $value; + $properties['installation'] = $value; - after_deployments_url: + after_installation: - $value = $payload['downloads_url'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'downloads_url'; - goto after_downloads_url; + $missingFields[] = 'organization'; + goto after_organization; } - $properties['downloads_url'] = $value; - - after_downloads_url: - - $value = $payload['events_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'events_url'; - goto after_events_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['events_url'] = $value; + $properties['organization'] = $value; - after_events_url: + after_organization: - $value = $payload['forks_url'] ?? null; + $value = $payload['repository'] ?? null; if ($value === null) { - $missingFields[] = 'forks_url'; - goto after_forks_url; + $missingFields[] = 'repository'; + goto after_repository; } - $properties['forks_url'] = $value; - - after_forks_url: - - $value = $payload['git_commits_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'git_commits_url'; - goto after_git_commits_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['git_commits_url'] = $value; + $properties['repository'] = $value; - after_git_commits_url: + after_repository: - $value = $payload['git_refs_url'] ?? null; + $value = $payload['sender'] ?? null; if ($value === null) { - $missingFields[] = 'git_refs_url'; - goto after_git_refs_url; + $missingFields[] = 'sender'; + goto after_sender; } - $properties['git_refs_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; - after_git_refs_url: + after_sender: - $value = $payload['git_tags_url'] ?? null; + $value = $payload['sponsorship'] ?? null; if ($value === null) { - $missingFields[] = 'git_tags_url'; - goto after_git_tags_url; + $missingFields[] = 'sponsorship'; + goto after_sponsorship; } - $properties['git_tags_url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sponsorship'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSponsorshipCancelled⚡️Sponsorship($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sponsorship'] = $value; - after_git_tags_url: + after_sponsorship: - $value = $payload['git_url'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookSponsorshipTierChanged', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookSponsorshipTierChanged::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookSponsorshipTierChanged(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookSponsorshipTierChanged', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise(array $payload): \ApiClients\Client\Github\Schema\Enterprise + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['description'] ?? null; if ($value === null) { - $missingFields[] = 'git_url'; - goto after_git_url; + $missingFields[] = 'description'; + goto after_description; } - $properties['git_url'] = $value; + $properties['description'] = $value; - after_git_url: + after_description: - $value = $payload['issue_comment_url'] ?? null; + $value = $payload['html_url'] ?? null; if ($value === null) { - $missingFields[] = 'issue_comment_url'; - goto after_issue_comment_url; + $missingFields[] = 'html_url'; + goto after_html_url; } - $properties['issue_comment_url'] = $value; + $properties['html_url'] = $value; - after_issue_comment_url: + after_html_url: - $value = $payload['issue_events_url'] ?? null; + $value = $payload['website_url'] ?? null; if ($value === null) { - $missingFields[] = 'issue_events_url'; - goto after_issue_events_url; + $missingFields[] = 'website_url'; + goto after_website_url; } - $properties['issue_events_url'] = $value; + $properties['website_url'] = $value; - after_issue_events_url: + after_website_url: - $value = $payload['issues_url'] ?? null; + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'issues_url'; - goto after_issues_url; + $missingFields[] = 'id'; + goto after_id; } - $properties['issues_url'] = $value; + $properties['id'] = $value; - after_issues_url: + after_id: - $value = $payload['keys_url'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $missingFields[] = 'keys_url'; - goto after_keys_url; + $missingFields[] = 'node_id'; + goto after_node_id; } - $properties['keys_url'] = $value; + $properties['node_id'] = $value; - after_keys_url: + after_node_id: - $value = $payload['labels_url'] ?? null; + $value = $payload['name'] ?? null; if ($value === null) { - $missingFields[] = 'labels_url'; - goto after_labels_url; + $missingFields[] = 'name'; + goto after_name; } - $properties['labels_url'] = $value; + $properties['name'] = $value; - after_labels_url: + after_name: - $value = $payload['languages_url'] ?? null; + $value = $payload['slug'] ?? null; if ($value === null) { - $missingFields[] = 'languages_url'; - goto after_languages_url; + $missingFields[] = 'slug'; + goto after_slug; } - $properties['languages_url'] = $value; + $properties['slug'] = $value; - after_languages_url: + after_slug: - $value = $payload['merges_url'] ?? null; + $value = $payload['created_at'] ?? null; if ($value === null) { - $missingFields[] = 'merges_url'; - goto after_merges_url; + $missingFields[] = 'created_at'; + goto after_created_at; } - $properties['merges_url'] = $value; + $properties['created_at'] = $value; - after_merges_url: + after_created_at: - $value = $payload['milestones_url'] ?? null; + $value = $payload['updated_at'] ?? null; if ($value === null) { - $missingFields[] = 'milestones_url'; - goto after_milestones_url; + $missingFields[] = 'updated_at'; + goto after_updated_at; } - $properties['milestones_url'] = $value; + $properties['updated_at'] = $value; - after_milestones_url: + after_updated_at: - $value = $payload['notifications_url'] ?? null; + $value = $payload['avatar_url'] ?? null; if ($value === null) { - $missingFields[] = 'notifications_url'; - goto after_notifications_url; + $missingFields[] = 'avatar_url'; + goto after_avatar_url; } - $properties['notifications_url'] = $value; + $properties['avatar_url'] = $value; - after_notifications_url: + after_avatar_url: - $value = $payload['pulls_url'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Enterprise', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Enterprise::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\Enterprise(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Enterprise', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation(array $payload): \ApiClients\Client\Github\Schema\SimpleInstallation + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'pulls_url'; - goto after_pulls_url; + $missingFields[] = 'id'; + goto after_id; } - $properties['pulls_url'] = $value; + $properties['id'] = $value; - after_pulls_url: + after_id: - $value = $payload['releases_url'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $missingFields[] = 'releases_url'; - goto after_releases_url; + $missingFields[] = 'node_id'; + goto after_node_id; } - $properties['releases_url'] = $value; + $properties['node_id'] = $value; - after_releases_url: + after_node_id: - $value = $payload['ssh_url'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleInstallation', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\SimpleInstallation::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\SimpleInstallation(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleInstallation', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple(array $payload): \ApiClients\Client\Github\Schema\OrganizationSimple + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['login'] ?? null; if ($value === null) { - $missingFields[] = 'ssh_url'; - goto after_ssh_url; + $missingFields[] = 'login'; + goto after_login; } - $properties['ssh_url'] = $value; + $properties['login'] = $value; - after_ssh_url: + after_login: - $value = $payload['stargazers_url'] ?? null; + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'stargazers_url'; - goto after_stargazers_url; + $missingFields[] = 'id'; + goto after_id; } - $properties['stargazers_url'] = $value; + $properties['id'] = $value; - after_stargazers_url: + after_id: - $value = $payload['statuses_url'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $missingFields[] = 'statuses_url'; - goto after_statuses_url; + $missingFields[] = 'node_id'; + goto after_node_id; } - $properties['statuses_url'] = $value; + $properties['node_id'] = $value; - after_statuses_url: + after_node_id: - $value = $payload['subscribers_url'] ?? null; + $value = $payload['url'] ?? null; if ($value === null) { - $missingFields[] = 'subscribers_url'; - goto after_subscribers_url; + $missingFields[] = 'url'; + goto after_url; } - $properties['subscribers_url'] = $value; + $properties['url'] = $value; - after_subscribers_url: + after_url: - $value = $payload['subscription_url'] ?? null; + $value = $payload['repos_url'] ?? null; if ($value === null) { - $missingFields[] = 'subscription_url'; - goto after_subscription_url; + $missingFields[] = 'repos_url'; + goto after_repos_url; } - $properties['subscription_url'] = $value; + $properties['repos_url'] = $value; - after_subscription_url: + after_repos_url: - $value = $payload['tags_url'] ?? null; + $value = $payload['events_url'] ?? null; if ($value === null) { - $missingFields[] = 'tags_url'; - goto after_tags_url; + $missingFields[] = 'events_url'; + goto after_events_url; } - $properties['tags_url'] = $value; + $properties['events_url'] = $value; - after_tags_url: + after_events_url: - $value = $payload['teams_url'] ?? null; + $value = $payload['hooks_url'] ?? null; if ($value === null) { - $missingFields[] = 'teams_url'; - goto after_teams_url; + $missingFields[] = 'hooks_url'; + goto after_hooks_url; } - $properties['teams_url'] = $value; + $properties['hooks_url'] = $value; - after_teams_url: + after_hooks_url: - $value = $payload['trees_url'] ?? null; + $value = $payload['issues_url'] ?? null; if ($value === null) { - $missingFields[] = 'trees_url'; - goto after_trees_url; + $missingFields[] = 'issues_url'; + goto after_issues_url; } - $properties['trees_url'] = $value; + $properties['issues_url'] = $value; - after_trees_url: + after_issues_url: - $value = $payload['clone_url'] ?? null; + $value = $payload['members_url'] ?? null; if ($value === null) { - $missingFields[] = 'clone_url'; - goto after_clone_url; + $missingFields[] = 'members_url'; + goto after_members_url; } - $properties['clone_url'] = $value; + $properties['members_url'] = $value; - after_clone_url: + after_members_url: - $value = $payload['mirror_url'] ?? null; + $value = $payload['public_members_url'] ?? null; if ($value === null) { - $missingFields[] = 'mirror_url'; - goto after_mirror_url; + $missingFields[] = 'public_members_url'; + goto after_public_members_url; } - $properties['mirror_url'] = $value; + $properties['public_members_url'] = $value; - after_mirror_url: + after_public_members_url: - $value = $payload['hooks_url'] ?? null; + $value = $payload['avatar_url'] ?? null; if ($value === null) { - $missingFields[] = 'hooks_url'; - goto after_hooks_url; + $missingFields[] = 'avatar_url'; + goto after_avatar_url; } - $properties['hooks_url'] = $value; + $properties['avatar_url'] = $value; - after_hooks_url: + after_avatar_url: - $value = $payload['svn_url'] ?? null; + $value = $payload['description'] ?? null; if ($value === null) { - $missingFields[] = 'svn_url'; - goto after_svn_url; + $missingFields[] = 'description'; + goto after_description; } - $properties['svn_url'] = $value; + $properties['description'] = $value; - after_svn_url: + after_description: - $value = $payload['homepage'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\OrganizationSimple', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\OrganizationSimple::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\OrganizationSimple(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\OrganizationSimple', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository(array $payload): \ApiClients\Client\Github\Schema\Repository + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'homepage'; - goto after_homepage; + $missingFields[] = 'id'; + goto after_id; } - $properties['homepage'] = $value; + $properties['id'] = $value; - after_homepage: + after_id: - $value = $payload['language'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $missingFields[] = 'language'; - goto after_language; + $missingFields[] = 'node_id'; + goto after_node_id; } - $properties['language'] = $value; + $properties['node_id'] = $value; - after_language: + after_node_id: - $value = $payload['forks_count'] ?? null; + $value = $payload['name'] ?? null; if ($value === null) { - $missingFields[] = 'forks_count'; - goto after_forks_count; + $missingFields[] = 'name'; + goto after_name; } - $properties['forks_count'] = $value; + $properties['name'] = $value; - after_forks_count: + after_name: - $value = $payload['stargazers_count'] ?? null; + $value = $payload['full_name'] ?? null; if ($value === null) { - $missingFields[] = 'stargazers_count'; - goto after_stargazers_count; + $missingFields[] = 'full_name'; + goto after_full_name; } - $properties['stargazers_count'] = $value; + $properties['full_name'] = $value; - after_stargazers_count: + after_full_name: - $value = $payload['watchers_count'] ?? null; + $value = $payload['license'] ?? null; if ($value === null) { - $missingFields[] = 'watchers_count'; - goto after_watchers_count; + $properties['license'] = null; + goto after_license; } - $properties['watchers_count'] = $value; + $properties['license'] = $value; - after_watchers_count: + after_license: - $value = $payload['size'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'size'; - goto after_size; + $properties['organization'] = null; + goto after_organization; } - $properties['size'] = $value; + $properties['organization'] = $value; - after_size: + after_organization: - $value = $payload['default_branch'] ?? null; + $value = $payload['forks'] ?? null; if ($value === null) { - $missingFields[] = 'default_branch'; - goto after_default_branch; + $missingFields[] = 'forks'; + goto after_forks; } - $properties['default_branch'] = $value; + $properties['forks'] = $value; - after_default_branch: + after_forks: - $value = $payload['open_issues_count'] ?? null; + $value = $payload['permissions'] ?? null; if ($value === null) { - $missingFields[] = 'open_issues_count'; - goto after_open_issues_count; + $missingFields[] = 'permissions'; + goto after_permissions; } - $properties['open_issues_count'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'permissions'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️Permissions($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['permissions'] = $value; - after_open_issues_count: + after_permissions: - $value = $payload['is_template'] ?? null; + $value = $payload['owner'] ?? null; if ($value === null) { - $missingFields[] = 'is_template'; - goto after_is_template; + $missingFields[] = 'owner'; + goto after_owner; } - $properties['is_template'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'owner'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['owner'] = $value; - after_is_template: + after_owner: - $value = $payload['topics'] ?? null; + $value = $payload['private'] ?? null; if ($value === null) { - $missingFields[] = 'topics'; - goto after_topics; + $missingFields[] = 'private'; + goto after_private; } - $properties['topics'] = $value; + $properties['private'] = $value; - after_topics: + after_private: - $value = $payload['has_issues'] ?? null; + $value = $payload['html_url'] ?? null; if ($value === null) { - $missingFields[] = 'has_issues'; - goto after_has_issues; + $missingFields[] = 'html_url'; + goto after_html_url; } - $properties['has_issues'] = $value; + $properties['html_url'] = $value; - after_has_issues: + after_html_url: - $value = $payload['has_projects'] ?? null; + $value = $payload['description'] ?? null; if ($value === null) { - $missingFields[] = 'has_projects'; - goto after_has_projects; + $missingFields[] = 'description'; + goto after_description; } - $properties['has_projects'] = $value; + $properties['description'] = $value; - after_has_projects: + after_description: - $value = $payload['has_wiki'] ?? null; + $value = $payload['fork'] ?? null; if ($value === null) { - $missingFields[] = 'has_wiki'; - goto after_has_wiki; + $missingFields[] = 'fork'; + goto after_fork; } - $properties['has_wiki'] = $value; + $properties['fork'] = $value; - after_has_wiki: + after_fork: - $value = $payload['has_pages'] ?? null; + $value = $payload['url'] ?? null; if ($value === null) { - $missingFields[] = 'has_pages'; - goto after_has_pages; + $missingFields[] = 'url'; + goto after_url; } - $properties['has_pages'] = $value; + $properties['url'] = $value; - after_has_pages: + after_url: - $value = $payload['has_downloads'] ?? null; + $value = $payload['archive_url'] ?? null; if ($value === null) { - $missingFields[] = 'has_downloads'; - goto after_has_downloads; + $missingFields[] = 'archive_url'; + goto after_archive_url; } - $properties['has_downloads'] = $value; + $properties['archive_url'] = $value; - after_has_downloads: + after_archive_url: - $value = $payload['has_discussions'] ?? null; + $value = $payload['assignees_url'] ?? null; if ($value === null) { - $missingFields[] = 'has_discussions'; - goto after_has_discussions; + $missingFields[] = 'assignees_url'; + goto after_assignees_url; } - $properties['has_discussions'] = $value; + $properties['assignees_url'] = $value; - after_has_discussions: + after_assignees_url: - $value = $payload['archived'] ?? null; + $value = $payload['blobs_url'] ?? null; if ($value === null) { - $missingFields[] = 'archived'; - goto after_archived; + $missingFields[] = 'blobs_url'; + goto after_blobs_url; } - $properties['archived'] = $value; + $properties['blobs_url'] = $value; - after_archived: + after_blobs_url: - $value = $payload['disabled'] ?? null; + $value = $payload['branches_url'] ?? null; if ($value === null) { - $missingFields[] = 'disabled'; - goto after_disabled; + $missingFields[] = 'branches_url'; + goto after_branches_url; } - $properties['disabled'] = $value; + $properties['branches_url'] = $value; - after_disabled: + after_branches_url: - $value = $payload['visibility'] ?? null; + $value = $payload['collaborators_url'] ?? null; if ($value === null) { - $missingFields[] = 'visibility'; - goto after_visibility; + $missingFields[] = 'collaborators_url'; + goto after_collaborators_url; } - $properties['visibility'] = $value; + $properties['collaborators_url'] = $value; - after_visibility: + after_collaborators_url: - $value = $payload['pushed_at'] ?? null; + $value = $payload['comments_url'] ?? null; if ($value === null) { - $missingFields[] = 'pushed_at'; - goto after_pushed_at; + $missingFields[] = 'comments_url'; + goto after_comments_url; } - $properties['pushed_at'] = $value; + $properties['comments_url'] = $value; - after_pushed_at: + after_comments_url: - $value = $payload['created_at'] ?? null; + $value = $payload['commits_url'] ?? null; if ($value === null) { - $missingFields[] = 'created_at'; - goto after_created_at; + $missingFields[] = 'commits_url'; + goto after_commits_url; } - $properties['created_at'] = $value; + $properties['commits_url'] = $value; - after_created_at: + after_commits_url: - $value = $payload['updated_at'] ?? null; + $value = $payload['compare_url'] ?? null; if ($value === null) { - $missingFields[] = 'updated_at'; - goto after_updated_at; + $missingFields[] = 'compare_url'; + goto after_compare_url; } - $properties['updated_at'] = $value; + $properties['compare_url'] = $value; - after_updated_at: + after_compare_url: - $value = $payload['allow_rebase_merge'] ?? null; + $value = $payload['contents_url'] ?? null; if ($value === null) { - $missingFields[] = 'allow_rebase_merge'; - goto after_allow_rebase_merge; + $missingFields[] = 'contents_url'; + goto after_contents_url; } - $properties['allow_rebase_merge'] = $value; + $properties['contents_url'] = $value; - after_allow_rebase_merge: + after_contents_url: - $value = $payload['template_repository'] ?? null; + $value = $payload['contributors_url'] ?? null; if ($value === null) { - $missingFields[] = 'template_repository'; - goto after_template_repository; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'template_repository'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'contributors_url'; + goto after_contributors_url; } - $properties['template_repository'] = $value; + $properties['contributors_url'] = $value; - after_template_repository: + after_contributors_url: - $value = $payload['temp_clone_token'] ?? null; + $value = $payload['deployments_url'] ?? null; if ($value === null) { - $missingFields[] = 'temp_clone_token'; - goto after_temp_clone_token; + $missingFields[] = 'deployments_url'; + goto after_deployments_url; } - $properties['temp_clone_token'] = $value; + $properties['deployments_url'] = $value; - after_temp_clone_token: + after_deployments_url: - $value = $payload['allow_squash_merge'] ?? null; + $value = $payload['downloads_url'] ?? null; if ($value === null) { - $missingFields[] = 'allow_squash_merge'; - goto after_allow_squash_merge; + $missingFields[] = 'downloads_url'; + goto after_downloads_url; } - $properties['allow_squash_merge'] = $value; + $properties['downloads_url'] = $value; - after_allow_squash_merge: + after_downloads_url: - $value = $payload['allow_auto_merge'] ?? null; + $value = $payload['events_url'] ?? null; if ($value === null) { - $missingFields[] = 'allow_auto_merge'; - goto after_allow_auto_merge; + $missingFields[] = 'events_url'; + goto after_events_url; } - $properties['allow_auto_merge'] = $value; + $properties['events_url'] = $value; - after_allow_auto_merge: + after_events_url: - $value = $payload['delete_branch_on_merge'] ?? null; + $value = $payload['forks_url'] ?? null; if ($value === null) { - $missingFields[] = 'delete_branch_on_merge'; - goto after_delete_branch_on_merge; + $missingFields[] = 'forks_url'; + goto after_forks_url; } - $properties['delete_branch_on_merge'] = $value; + $properties['forks_url'] = $value; - after_delete_branch_on_merge: + after_forks_url: - $value = $payload['allow_update_branch'] ?? null; + $value = $payload['git_commits_url'] ?? null; if ($value === null) { - $missingFields[] = 'allow_update_branch'; - goto after_allow_update_branch; + $missingFields[] = 'git_commits_url'; + goto after_git_commits_url; } - $properties['allow_update_branch'] = $value; + $properties['git_commits_url'] = $value; - after_allow_update_branch: + after_git_commits_url: - $value = $payload['use_squash_pr_title_as_default'] ?? null; + $value = $payload['git_refs_url'] ?? null; if ($value === null) { - $missingFields[] = 'use_squash_pr_title_as_default'; - goto after_use_squash_pr_title_as_default; + $missingFields[] = 'git_refs_url'; + goto after_git_refs_url; } - $properties['use_squash_pr_title_as_default'] = $value; + $properties['git_refs_url'] = $value; - after_use_squash_pr_title_as_default: + after_git_refs_url: - $value = $payload['squash_merge_commit_title'] ?? null; + $value = $payload['git_tags_url'] ?? null; if ($value === null) { - $missingFields[] = 'squash_merge_commit_title'; - goto after_squash_merge_commit_title; + $missingFields[] = 'git_tags_url'; + goto after_git_tags_url; } - $properties['squash_merge_commit_title'] = $value; + $properties['git_tags_url'] = $value; - after_squash_merge_commit_title: + after_git_tags_url: - $value = $payload['squash_merge_commit_message'] ?? null; + $value = $payload['git_url'] ?? null; if ($value === null) { - $missingFields[] = 'squash_merge_commit_message'; - goto after_squash_merge_commit_message; + $missingFields[] = 'git_url'; + goto after_git_url; } - $properties['squash_merge_commit_message'] = $value; + $properties['git_url'] = $value; - after_squash_merge_commit_message: + after_git_url: - $value = $payload['merge_commit_title'] ?? null; + $value = $payload['issue_comment_url'] ?? null; if ($value === null) { - $missingFields[] = 'merge_commit_title'; - goto after_merge_commit_title; + $missingFields[] = 'issue_comment_url'; + goto after_issue_comment_url; } - $properties['merge_commit_title'] = $value; + $properties['issue_comment_url'] = $value; - after_merge_commit_title: + after_issue_comment_url: - $value = $payload['merge_commit_message'] ?? null; + $value = $payload['issue_events_url'] ?? null; if ($value === null) { - $missingFields[] = 'merge_commit_message'; - goto after_merge_commit_message; + $missingFields[] = 'issue_events_url'; + goto after_issue_events_url; } - $properties['merge_commit_message'] = $value; + $properties['issue_events_url'] = $value; - after_merge_commit_message: + after_issue_events_url: - $value = $payload['allow_merge_commit'] ?? null; + $value = $payload['issues_url'] ?? null; if ($value === null) { - $missingFields[] = 'allow_merge_commit'; - goto after_allow_merge_commit; + $missingFields[] = 'issues_url'; + goto after_issues_url; } - $properties['allow_merge_commit'] = $value; + $properties['issues_url'] = $value; - after_allow_merge_commit: + after_issues_url: - $value = $payload['allow_forking'] ?? null; + $value = $payload['keys_url'] ?? null; if ($value === null) { - $missingFields[] = 'allow_forking'; - goto after_allow_forking; + $missingFields[] = 'keys_url'; + goto after_keys_url; } - $properties['allow_forking'] = $value; + $properties['keys_url'] = $value; - after_allow_forking: + after_keys_url: - $value = $payload['web_commit_signoff_required'] ?? null; + $value = $payload['labels_url'] ?? null; if ($value === null) { - $missingFields[] = 'web_commit_signoff_required'; - goto after_web_commit_signoff_required; + $missingFields[] = 'labels_url'; + goto after_labels_url; } - $properties['web_commit_signoff_required'] = $value; + $properties['labels_url'] = $value; - after_web_commit_signoff_required: + after_labels_url: - $value = $payload['subscribers_count'] ?? null; + $value = $payload['languages_url'] ?? null; if ($value === null) { - $missingFields[] = 'subscribers_count'; - goto after_subscribers_count; + $missingFields[] = 'languages_url'; + goto after_languages_url; } - $properties['subscribers_count'] = $value; + $properties['languages_url'] = $value; - after_subscribers_count: + after_languages_url: - $value = $payload['network_count'] ?? null; + $value = $payload['merges_url'] ?? null; if ($value === null) { - $missingFields[] = 'network_count'; - goto after_network_count; + $missingFields[] = 'merges_url'; + goto after_merges_url; } - $properties['network_count'] = $value; + $properties['merges_url'] = $value; - after_network_count: + after_merges_url: - $value = $payload['open_issues'] ?? null; + $value = $payload['milestones_url'] ?? null; if ($value === null) { - $missingFields[] = 'open_issues'; - goto after_open_issues; + $missingFields[] = 'milestones_url'; + goto after_milestones_url; } - $properties['open_issues'] = $value; + $properties['milestones_url'] = $value; - after_open_issues: + after_milestones_url: - $value = $payload['watchers'] ?? null; + $value = $payload['notifications_url'] ?? null; if ($value === null) { - $missingFields[] = 'watchers'; - goto after_watchers; + $missingFields[] = 'notifications_url'; + goto after_notifications_url; } - $properties['watchers'] = $value; + $properties['notifications_url'] = $value; - after_watchers: + after_notifications_url: - $value = $payload['master_branch'] ?? null; + $value = $payload['pulls_url'] ?? null; if ($value === null) { - $missingFields[] = 'master_branch'; - goto after_master_branch; + $missingFields[] = 'pulls_url'; + goto after_pulls_url; } - $properties['master_branch'] = $value; + $properties['pulls_url'] = $value; - after_master_branch: + after_pulls_url: - $value = $payload['starred_at'] ?? null; + $value = $payload['releases_url'] ?? null; if ($value === null) { - $missingFields[] = 'starred_at'; - goto after_starred_at; + $missingFields[] = 'releases_url'; + goto after_releases_url; } - $properties['starred_at'] = $value; + $properties['releases_url'] = $value; - after_starred_at: + after_releases_url: - $value = $payload['anonymous_access_enabled'] ?? null; + $value = $payload['ssh_url'] ?? null; if ($value === null) { - $missingFields[] = 'anonymous_access_enabled'; - goto after_anonymous_access_enabled; + $missingFields[] = 'ssh_url'; + goto after_ssh_url; } - $properties['anonymous_access_enabled'] = $value; + $properties['ssh_url'] = $value; - after_anonymous_access_enabled: - - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\Repository(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository', $exception, stack: $this->hydrationStack); - } - } + after_ssh_url: - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser(array $payload): \ApiClients\Client\Github\Schema\SimpleUser - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['name'] ?? null; + $value = $payload['stargazers_url'] ?? null; if ($value === null) { - $missingFields[] = 'name'; - goto after_name; + $missingFields[] = 'stargazers_url'; + goto after_stargazers_url; } - $properties['name'] = $value; + $properties['stargazers_url'] = $value; - after_name: + after_stargazers_url: - $value = $payload['email'] ?? null; + $value = $payload['statuses_url'] ?? null; if ($value === null) { - $missingFields[] = 'email'; - goto after_email; + $missingFields[] = 'statuses_url'; + goto after_statuses_url; } - $properties['email'] = $value; + $properties['statuses_url'] = $value; - after_email: + after_statuses_url: - $value = $payload['login'] ?? null; + $value = $payload['subscribers_url'] ?? null; if ($value === null) { - $missingFields[] = 'login'; - goto after_login; + $missingFields[] = 'subscribers_url'; + goto after_subscribers_url; } - $properties['login'] = $value; + $properties['subscribers_url'] = $value; - after_login: + after_subscribers_url: - $value = $payload['id'] ?? null; + $value = $payload['subscription_url'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'subscription_url'; + goto after_subscription_url; } - $properties['id'] = $value; + $properties['subscription_url'] = $value; - after_id: + after_subscription_url: - $value = $payload['node_id'] ?? null; + $value = $payload['tags_url'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $missingFields[] = 'tags_url'; + goto after_tags_url; } - $properties['node_id'] = $value; + $properties['tags_url'] = $value; - after_node_id: + after_tags_url: - $value = $payload['avatar_url'] ?? null; + $value = $payload['teams_url'] ?? null; if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatar_url; + $missingFields[] = 'teams_url'; + goto after_teams_url; } - $properties['avatar_url'] = $value; + $properties['teams_url'] = $value; - after_avatar_url: + after_teams_url: - $value = $payload['gravatar_id'] ?? null; + $value = $payload['trees_url'] ?? null; if ($value === null) { - $missingFields[] = 'gravatar_id'; - goto after_gravatar_id; + $missingFields[] = 'trees_url'; + goto after_trees_url; } - $properties['gravatar_id'] = $value; + $properties['trees_url'] = $value; - after_gravatar_id: + after_trees_url: - $value = $payload['url'] ?? null; + $value = $payload['clone_url'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $missingFields[] = 'clone_url'; + goto after_clone_url; } - $properties['url'] = $value; + $properties['clone_url'] = $value; - after_url: + after_clone_url: - $value = $payload['html_url'] ?? null; + $value = $payload['mirror_url'] ?? null; if ($value === null) { - $missingFields[] = 'html_url'; - goto after_html_url; + $missingFields[] = 'mirror_url'; + goto after_mirror_url; } - $properties['html_url'] = $value; + $properties['mirror_url'] = $value; - after_html_url: + after_mirror_url: - $value = $payload['followers_url'] ?? null; + $value = $payload['hooks_url'] ?? null; if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followers_url; + $missingFields[] = 'hooks_url'; + goto after_hooks_url; } - $properties['followers_url'] = $value; + $properties['hooks_url'] = $value; - after_followers_url: + after_hooks_url: - $value = $payload['following_url'] ?? null; + $value = $payload['svn_url'] ?? null; if ($value === null) { - $missingFields[] = 'following_url'; - goto after_following_url; + $missingFields[] = 'svn_url'; + goto after_svn_url; } - $properties['following_url'] = $value; + $properties['svn_url'] = $value; - after_following_url: + after_svn_url: - $value = $payload['gists_url'] ?? null; + $value = $payload['homepage'] ?? null; if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gists_url; + $missingFields[] = 'homepage'; + goto after_homepage; } - $properties['gists_url'] = $value; + $properties['homepage'] = $value; - after_gists_url: + after_homepage: - $value = $payload['starred_url'] ?? null; + $value = $payload['language'] ?? null; if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starred_url; + $missingFields[] = 'language'; + goto after_language; } - $properties['starred_url'] = $value; + $properties['language'] = $value; - after_starred_url: + after_language: - $value = $payload['subscriptions_url'] ?? null; + $value = $payload['forks_count'] ?? null; if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptions_url; + $missingFields[] = 'forks_count'; + goto after_forks_count; } - $properties['subscriptions_url'] = $value; + $properties['forks_count'] = $value; - after_subscriptions_url: + after_forks_count: - $value = $payload['organizations_url'] ?? null; + $value = $payload['stargazers_count'] ?? null; if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizations_url; + $missingFields[] = 'stargazers_count'; + goto after_stargazers_count; } - $properties['organizations_url'] = $value; + $properties['stargazers_count'] = $value; - after_organizations_url: + after_stargazers_count: - $value = $payload['repos_url'] ?? null; + $value = $payload['watchers_count'] ?? null; if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_repos_url; + $missingFields[] = 'watchers_count'; + goto after_watchers_count; } - $properties['repos_url'] = $value; + $properties['watchers_count'] = $value; - after_repos_url: + after_watchers_count: - $value = $payload['events_url'] ?? null; + $value = $payload['size'] ?? null; if ($value === null) { - $missingFields[] = 'events_url'; - goto after_events_url; + $missingFields[] = 'size'; + goto after_size; } - $properties['events_url'] = $value; + $properties['size'] = $value; - after_events_url: + after_size: - $value = $payload['received_events_url'] ?? null; + $value = $payload['default_branch'] ?? null; if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_received_events_url; + $missingFields[] = 'default_branch'; + goto after_default_branch; } - $properties['received_events_url'] = $value; + $properties['default_branch'] = $value; - after_received_events_url: + after_default_branch: - $value = $payload['type'] ?? null; + $value = $payload['open_issues_count'] ?? null; if ($value === null) { - $missingFields[] = 'type'; - goto after_type; + $missingFields[] = 'open_issues_count'; + goto after_open_issues_count; } - $properties['type'] = $value; + $properties['open_issues_count'] = $value; - after_type: + after_open_issues_count: - $value = $payload['site_admin'] ?? null; + $value = $payload['is_template'] ?? null; if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_site_admin; + $missingFields[] = 'is_template'; + goto after_is_template; } - $properties['site_admin'] = $value; + $properties['is_template'] = $value; - after_site_admin: + after_is_template: - $value = $payload['starred_at'] ?? null; + $value = $payload['topics'] ?? null; if ($value === null) { - $missingFields[] = 'starred_at'; - goto after_starred_at; + $missingFields[] = 'topics'; + goto after_topics; } - $properties['starred_at'] = $value; + $properties['topics'] = $value; - after_starred_at: - - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleUser', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\SimpleUser::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\SimpleUser(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleUser', $exception, stack: $this->hydrationStack); - } - } + after_topics: - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSponsorshipCancelled⚡️Sponsorship(array $payload): \ApiClients\Client\Github\Schema\WebhookSponsorshipCancelled\Sponsorship - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['created_at'] ?? null; + $value = $payload['has_issues'] ?? null; if ($value === null) { - $missingFields[] = 'created_at'; - goto after_created_at; + $missingFields[] = 'has_issues'; + goto after_has_issues; } - $properties['created_at'] = $value; + $properties['has_issues'] = $value; - after_created_at: + after_has_issues: - $value = $payload['maintainer'] ?? null; + $value = $payload['has_projects'] ?? null; if ($value === null) { - $missingFields[] = 'maintainer'; - goto after_maintainer; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'maintainer'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDeploymentCreated⚡️WorkflowRun⚡️HeadRepository⚡️Owner($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'has_projects'; + goto after_has_projects; } - $properties['maintainer'] = $value; + $properties['has_projects'] = $value; - after_maintainer: + after_has_projects: - $value = $payload['node_id'] ?? null; + $value = $payload['has_wiki'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $missingFields[] = 'has_wiki'; + goto after_has_wiki; } - $properties['node_id'] = $value; + $properties['has_wiki'] = $value; - after_node_id: + after_has_wiki: - $value = $payload['privacy_level'] ?? null; + $value = $payload['has_pages'] ?? null; if ($value === null) { - $missingFields[] = 'privacy_level'; - goto after_privacy_level; + $missingFields[] = 'has_pages'; + goto after_has_pages; } - $properties['privacy_level'] = $value; + $properties['has_pages'] = $value; - after_privacy_level: + after_has_pages: - $value = $payload['sponsor'] ?? null; + $value = $payload['has_downloads'] ?? null; if ($value === null) { - $missingFields[] = 'sponsor'; - goto after_sponsor; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'sponsor'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'has_downloads'; + goto after_has_downloads; } - $properties['sponsor'] = $value; + $properties['has_downloads'] = $value; - after_sponsor: + after_has_downloads: - $value = $payload['sponsorable'] ?? null; + $value = $payload['has_discussions'] ?? null; if ($value === null) { - $missingFields[] = 'sponsorable'; - goto after_sponsorable; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'sponsorable'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'has_discussions'; + goto after_has_discussions; } - $properties['sponsorable'] = $value; + $properties['has_discussions'] = $value; - after_sponsorable: + after_has_discussions: - $value = $payload['tier'] ?? null; + $value = $payload['archived'] ?? null; if ($value === null) { - $missingFields[] = 'tier'; - goto after_tier; + $missingFields[] = 'archived'; + goto after_archived; } - if (is_array($value)) { - try { - $this->hydrationStack[] = 'tier'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSponsorshipCancelled⚡️Sponsorship⚡️Tier($value); - } finally { - array_pop($this->hydrationStack); - } - } - - $properties['tier'] = $value; + $properties['archived'] = $value; - after_tier: - - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookSponsorshipCancelled\Sponsorship', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookSponsorshipCancelled\Sponsorship::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\WebhookSponsorshipCancelled\Sponsorship(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookSponsorshipCancelled\Sponsorship', $exception, stack: $this->hydrationStack); - } - } + after_archived: - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSponsorshipPendingTierChange⚡️Changes⚡️Tier(array $payload): \ApiClients\Client\Github\Schema\WebhookSponsorshipPendingTierChange\Changes\Tier - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['from'] ?? null; + $value = $payload['disabled'] ?? null; if ($value === null) { - $missingFields[] = 'from'; - goto after_from; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'from'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSponsorshipCancelled⚡️Sponsorship⚡️Tier($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'disabled'; + goto after_disabled; } - $properties['from'] = $value; + $properties['disabled'] = $value; - after_from: - - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookSponsorshipPendingTierChange\Changes\Tier', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookSponsorshipPendingTierChange\Changes\Tier::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\WebhookSponsorshipPendingTierChange\Changes\Tier(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookSponsorshipPendingTierChange\Changes\Tier', $exception, stack: $this->hydrationStack); - } - } + after_disabled: - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️Permissions(array $payload): \ApiClients\Client\Github\Schema\Repository\Permissions - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['admin'] ?? null; + $value = $payload['visibility'] ?? null; if ($value === null) { - $missingFields[] = 'admin'; - goto after_admin; + $missingFields[] = 'visibility'; + goto after_visibility; } - $properties['admin'] = $value; + $properties['visibility'] = $value; - after_admin: + after_visibility: - $value = $payload['pull'] ?? null; + $value = $payload['pushed_at'] ?? null; if ($value === null) { - $missingFields[] = 'pull'; - goto after_pull; + $missingFields[] = 'pushed_at'; + goto after_pushed_at; } - $properties['pull'] = $value; + $properties['pushed_at'] = $value; - after_pull: + after_pushed_at: - $value = $payload['triage'] ?? null; + $value = $payload['created_at'] ?? null; if ($value === null) { - $missingFields[] = 'triage'; - goto after_triage; + $missingFields[] = 'created_at'; + goto after_created_at; } - $properties['triage'] = $value; + $properties['created_at'] = $value; - after_triage: + after_created_at: - $value = $payload['push'] ?? null; + $value = $payload['updated_at'] ?? null; if ($value === null) { - $missingFields[] = 'push'; - goto after_push; + $missingFields[] = 'updated_at'; + goto after_updated_at; } - $properties['push'] = $value; + $properties['updated_at'] = $value; - after_push: + after_updated_at: - $value = $payload['maintain'] ?? null; + $value = $payload['allow_rebase_merge'] ?? null; if ($value === null) { - $missingFields[] = 'maintain'; - goto after_maintain; + $missingFields[] = 'allow_rebase_merge'; + goto after_allow_rebase_merge; } - $properties['maintain'] = $value; + $properties['allow_rebase_merge'] = $value; - after_maintain: - - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\Permissions', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\Permissions::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\Repository\Permissions(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\Permissions', $exception, stack: $this->hydrationStack); - } - } + after_allow_rebase_merge: - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository(array $payload): \ApiClients\Client\Github\Schema\Repository\TemplateRepository - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['id'] ?? null; + $value = $payload['template_repository'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'template_repository'; + goto after_template_repository; } - $properties['id'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'template_repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['template_repository'] = $value; - after_id: + after_template_repository: - $value = $payload['node_id'] ?? null; + $value = $payload['temp_clone_token'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $missingFields[] = 'temp_clone_token'; + goto after_temp_clone_token; } - $properties['node_id'] = $value; + $properties['temp_clone_token'] = $value; - after_node_id: + after_temp_clone_token: - $value = $payload['name'] ?? null; + $value = $payload['allow_squash_merge'] ?? null; if ($value === null) { - $missingFields[] = 'name'; - goto after_name; + $missingFields[] = 'allow_squash_merge'; + goto after_allow_squash_merge; } - $properties['name'] = $value; + $properties['allow_squash_merge'] = $value; - after_name: + after_allow_squash_merge: - $value = $payload['full_name'] ?? null; + $value = $payload['allow_auto_merge'] ?? null; if ($value === null) { - $missingFields[] = 'full_name'; - goto after_full_name; + $missingFields[] = 'allow_auto_merge'; + goto after_allow_auto_merge; } - $properties['full_name'] = $value; + $properties['allow_auto_merge'] = $value; - after_full_name: + after_allow_auto_merge: - $value = $payload['owner'] ?? null; + $value = $payload['delete_branch_on_merge'] ?? null; if ($value === null) { - $missingFields[] = 'owner'; - goto after_owner; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'owner'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'delete_branch_on_merge'; + goto after_delete_branch_on_merge; } - $properties['owner'] = $value; + $properties['delete_branch_on_merge'] = $value; - after_owner: + after_delete_branch_on_merge: - $value = $payload['private'] ?? null; + $value = $payload['allow_update_branch'] ?? null; if ($value === null) { - $missingFields[] = 'private'; - goto after_private; + $missingFields[] = 'allow_update_branch'; + goto after_allow_update_branch; } - $properties['private'] = $value; + $properties['allow_update_branch'] = $value; - after_private: + after_allow_update_branch: - $value = $payload['html_url'] ?? null; + $value = $payload['use_squash_pr_title_as_default'] ?? null; if ($value === null) { - $missingFields[] = 'html_url'; - goto after_html_url; + $missingFields[] = 'use_squash_pr_title_as_default'; + goto after_use_squash_pr_title_as_default; } - $properties['html_url'] = $value; + $properties['use_squash_pr_title_as_default'] = $value; - after_html_url: + after_use_squash_pr_title_as_default: - $value = $payload['description'] ?? null; + $value = $payload['squash_merge_commit_title'] ?? null; if ($value === null) { - $missingFields[] = 'description'; - goto after_description; + $missingFields[] = 'squash_merge_commit_title'; + goto after_squash_merge_commit_title; } - $properties['description'] = $value; + $properties['squash_merge_commit_title'] = $value; - after_description: + after_squash_merge_commit_title: - $value = $payload['fork'] ?? null; + $value = $payload['squash_merge_commit_message'] ?? null; if ($value === null) { - $missingFields[] = 'fork'; - goto after_fork; + $missingFields[] = 'squash_merge_commit_message'; + goto after_squash_merge_commit_message; } - $properties['fork'] = $value; + $properties['squash_merge_commit_message'] = $value; - after_fork: + after_squash_merge_commit_message: - $value = $payload['url'] ?? null; + $value = $payload['merge_commit_title'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $missingFields[] = 'merge_commit_title'; + goto after_merge_commit_title; } - $properties['url'] = $value; + $properties['merge_commit_title'] = $value; - after_url: + after_merge_commit_title: - $value = $payload['archive_url'] ?? null; + $value = $payload['merge_commit_message'] ?? null; if ($value === null) { - $missingFields[] = 'archive_url'; - goto after_archive_url; + $missingFields[] = 'merge_commit_message'; + goto after_merge_commit_message; } - $properties['archive_url'] = $value; + $properties['merge_commit_message'] = $value; - after_archive_url: + after_merge_commit_message: - $value = $payload['assignees_url'] ?? null; + $value = $payload['allow_merge_commit'] ?? null; if ($value === null) { - $missingFields[] = 'assignees_url'; - goto after_assignees_url; + $missingFields[] = 'allow_merge_commit'; + goto after_allow_merge_commit; } - $properties['assignees_url'] = $value; + $properties['allow_merge_commit'] = $value; - after_assignees_url: + after_allow_merge_commit: - $value = $payload['blobs_url'] ?? null; + $value = $payload['allow_forking'] ?? null; if ($value === null) { - $missingFields[] = 'blobs_url'; - goto after_blobs_url; + $missingFields[] = 'allow_forking'; + goto after_allow_forking; } - $properties['blobs_url'] = $value; + $properties['allow_forking'] = $value; - after_blobs_url: + after_allow_forking: - $value = $payload['branches_url'] ?? null; + $value = $payload['web_commit_signoff_required'] ?? null; if ($value === null) { - $missingFields[] = 'branches_url'; - goto after_branches_url; + $missingFields[] = 'web_commit_signoff_required'; + goto after_web_commit_signoff_required; } - $properties['branches_url'] = $value; + $properties['web_commit_signoff_required'] = $value; - after_branches_url: + after_web_commit_signoff_required: - $value = $payload['collaborators_url'] ?? null; + $value = $payload['subscribers_count'] ?? null; if ($value === null) { - $missingFields[] = 'collaborators_url'; - goto after_collaborators_url; + $missingFields[] = 'subscribers_count'; + goto after_subscribers_count; } - $properties['collaborators_url'] = $value; + $properties['subscribers_count'] = $value; - after_collaborators_url: + after_subscribers_count: - $value = $payload['comments_url'] ?? null; + $value = $payload['network_count'] ?? null; if ($value === null) { - $missingFields[] = 'comments_url'; - goto after_comments_url; + $missingFields[] = 'network_count'; + goto after_network_count; } - $properties['comments_url'] = $value; + $properties['network_count'] = $value; - after_comments_url: + after_network_count: - $value = $payload['commits_url'] ?? null; + $value = $payload['open_issues'] ?? null; if ($value === null) { - $missingFields[] = 'commits_url'; - goto after_commits_url; + $missingFields[] = 'open_issues'; + goto after_open_issues; } - $properties['commits_url'] = $value; + $properties['open_issues'] = $value; - after_commits_url: + after_open_issues: - $value = $payload['compare_url'] ?? null; + $value = $payload['watchers'] ?? null; if ($value === null) { - $missingFields[] = 'compare_url'; - goto after_compare_url; + $missingFields[] = 'watchers'; + goto after_watchers; } - $properties['compare_url'] = $value; + $properties['watchers'] = $value; - after_compare_url: + after_watchers: - $value = $payload['contents_url'] ?? null; + $value = $payload['master_branch'] ?? null; if ($value === null) { - $missingFields[] = 'contents_url'; - goto after_contents_url; + $missingFields[] = 'master_branch'; + goto after_master_branch; } - $properties['contents_url'] = $value; + $properties['master_branch'] = $value; - after_contents_url: + after_master_branch: - $value = $payload['contributors_url'] ?? null; + $value = $payload['starred_at'] ?? null; if ($value === null) { - $missingFields[] = 'contributors_url'; - goto after_contributors_url; + $missingFields[] = 'starred_at'; + goto after_starred_at; } - $properties['contributors_url'] = $value; + $properties['starred_at'] = $value; - after_contributors_url: + after_starred_at: - $value = $payload['deployments_url'] ?? null; + $value = $payload['anonymous_access_enabled'] ?? null; if ($value === null) { - $missingFields[] = 'deployments_url'; - goto after_deployments_url; + $missingFields[] = 'anonymous_access_enabled'; + goto after_anonymous_access_enabled; } - $properties['deployments_url'] = $value; + $properties['anonymous_access_enabled'] = $value; - after_deployments_url: + after_anonymous_access_enabled: - $value = $payload['downloads_url'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\Repository(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser(array $payload): \ApiClients\Client\Github\Schema\SimpleUser + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['name'] ?? null; if ($value === null) { - $missingFields[] = 'downloads_url'; - goto after_downloads_url; + $missingFields[] = 'name'; + goto after_name; } - $properties['downloads_url'] = $value; + $properties['name'] = $value; - after_downloads_url: + after_name: - $value = $payload['events_url'] ?? null; + $value = $payload['email'] ?? null; if ($value === null) { - $missingFields[] = 'events_url'; - goto after_events_url; + $missingFields[] = 'email'; + goto after_email; } - $properties['events_url'] = $value; + $properties['email'] = $value; - after_events_url: + after_email: - $value = $payload['forks_url'] ?? null; + $value = $payload['login'] ?? null; if ($value === null) { - $missingFields[] = 'forks_url'; - goto after_forks_url; + $missingFields[] = 'login'; + goto after_login; } - $properties['forks_url'] = $value; + $properties['login'] = $value; - after_forks_url: + after_login: - $value = $payload['git_commits_url'] ?? null; + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'git_commits_url'; - goto after_git_commits_url; + $missingFields[] = 'id'; + goto after_id; } - $properties['git_commits_url'] = $value; + $properties['id'] = $value; - after_git_commits_url: + after_id: - $value = $payload['git_refs_url'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $missingFields[] = 'git_refs_url'; - goto after_git_refs_url; + $missingFields[] = 'node_id'; + goto after_node_id; } - $properties['git_refs_url'] = $value; + $properties['node_id'] = $value; - after_git_refs_url: + after_node_id: - $value = $payload['git_tags_url'] ?? null; + $value = $payload['avatar_url'] ?? null; if ($value === null) { - $missingFields[] = 'git_tags_url'; - goto after_git_tags_url; + $missingFields[] = 'avatar_url'; + goto after_avatar_url; } - $properties['git_tags_url'] = $value; + $properties['avatar_url'] = $value; - after_git_tags_url: + after_avatar_url: - $value = $payload['git_url'] ?? null; + $value = $payload['gravatar_id'] ?? null; if ($value === null) { - $missingFields[] = 'git_url'; - goto after_git_url; + $missingFields[] = 'gravatar_id'; + goto after_gravatar_id; } - $properties['git_url'] = $value; + $properties['gravatar_id'] = $value; - after_git_url: + after_gravatar_id: - $value = $payload['issue_comment_url'] ?? null; + $value = $payload['url'] ?? null; if ($value === null) { - $missingFields[] = 'issue_comment_url'; - goto after_issue_comment_url; + $missingFields[] = 'url'; + goto after_url; } - $properties['issue_comment_url'] = $value; + $properties['url'] = $value; - after_issue_comment_url: + after_url: - $value = $payload['issue_events_url'] ?? null; + $value = $payload['html_url'] ?? null; if ($value === null) { - $missingFields[] = 'issue_events_url'; - goto after_issue_events_url; + $missingFields[] = 'html_url'; + goto after_html_url; } - $properties['issue_events_url'] = $value; + $properties['html_url'] = $value; - after_issue_events_url: + after_html_url: - $value = $payload['issues_url'] ?? null; + $value = $payload['followers_url'] ?? null; if ($value === null) { - $missingFields[] = 'issues_url'; - goto after_issues_url; + $missingFields[] = 'followers_url'; + goto after_followers_url; } - $properties['issues_url'] = $value; + $properties['followers_url'] = $value; - after_issues_url: + after_followers_url: - $value = $payload['keys_url'] ?? null; + $value = $payload['following_url'] ?? null; if ($value === null) { - $missingFields[] = 'keys_url'; - goto after_keys_url; + $missingFields[] = 'following_url'; + goto after_following_url; } - $properties['keys_url'] = $value; + $properties['following_url'] = $value; - after_keys_url: + after_following_url: - $value = $payload['labels_url'] ?? null; + $value = $payload['gists_url'] ?? null; if ($value === null) { - $missingFields[] = 'labels_url'; - goto after_labels_url; + $missingFields[] = 'gists_url'; + goto after_gists_url; } - $properties['labels_url'] = $value; + $properties['gists_url'] = $value; - after_labels_url: + after_gists_url: - $value = $payload['languages_url'] ?? null; + $value = $payload['starred_url'] ?? null; if ($value === null) { - $missingFields[] = 'languages_url'; - goto after_languages_url; + $missingFields[] = 'starred_url'; + goto after_starred_url; } - $properties['languages_url'] = $value; + $properties['starred_url'] = $value; - after_languages_url: + after_starred_url: - $value = $payload['merges_url'] ?? null; + $value = $payload['subscriptions_url'] ?? null; if ($value === null) { - $missingFields[] = 'merges_url'; - goto after_merges_url; + $missingFields[] = 'subscriptions_url'; + goto after_subscriptions_url; } - $properties['merges_url'] = $value; + $properties['subscriptions_url'] = $value; - after_merges_url: + after_subscriptions_url: - $value = $payload['milestones_url'] ?? null; + $value = $payload['organizations_url'] ?? null; if ($value === null) { - $missingFields[] = 'milestones_url'; - goto after_milestones_url; + $missingFields[] = 'organizations_url'; + goto after_organizations_url; } - $properties['milestones_url'] = $value; + $properties['organizations_url'] = $value; - after_milestones_url: + after_organizations_url: - $value = $payload['notifications_url'] ?? null; + $value = $payload['repos_url'] ?? null; if ($value === null) { - $missingFields[] = 'notifications_url'; - goto after_notifications_url; + $missingFields[] = 'repos_url'; + goto after_repos_url; } - $properties['notifications_url'] = $value; + $properties['repos_url'] = $value; - after_notifications_url: + after_repos_url: - $value = $payload['pulls_url'] ?? null; + $value = $payload['events_url'] ?? null; if ($value === null) { - $missingFields[] = 'pulls_url'; - goto after_pulls_url; + $missingFields[] = 'events_url'; + goto after_events_url; } - $properties['pulls_url'] = $value; + $properties['events_url'] = $value; - after_pulls_url: + after_events_url: - $value = $payload['releases_url'] ?? null; + $value = $payload['received_events_url'] ?? null; if ($value === null) { - $missingFields[] = 'releases_url'; - goto after_releases_url; + $missingFields[] = 'received_events_url'; + goto after_received_events_url; } - $properties['releases_url'] = $value; + $properties['received_events_url'] = $value; - after_releases_url: + after_received_events_url: - $value = $payload['ssh_url'] ?? null; + $value = $payload['type'] ?? null; if ($value === null) { - $missingFields[] = 'ssh_url'; - goto after_ssh_url; + $missingFields[] = 'type'; + goto after_type; } - $properties['ssh_url'] = $value; + $properties['type'] = $value; - after_ssh_url: + after_type: - $value = $payload['stargazers_url'] ?? null; + $value = $payload['site_admin'] ?? null; if ($value === null) { - $missingFields[] = 'stargazers_url'; - goto after_stargazers_url; + $missingFields[] = 'site_admin'; + goto after_site_admin; } - $properties['stargazers_url'] = $value; + $properties['site_admin'] = $value; - after_stargazers_url: + after_site_admin: - $value = $payload['statuses_url'] ?? null; + $value = $payload['starred_at'] ?? null; if ($value === null) { - $missingFields[] = 'statuses_url'; - goto after_statuses_url; + $missingFields[] = 'starred_at'; + goto after_starred_at; } - $properties['statuses_url'] = $value; + $properties['starred_at'] = $value; - after_statuses_url: + after_starred_at: - $value = $payload['subscribers_url'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleUser', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\SimpleUser::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\SimpleUser(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleUser', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSponsorshipCancelled⚡️Sponsorship(array $payload): \ApiClients\Client\Github\Schema\WebhookSponsorshipCancelled\Sponsorship + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['created_at'] ?? null; if ($value === null) { - $missingFields[] = 'subscribers_url'; - goto after_subscribers_url; + $missingFields[] = 'created_at'; + goto after_created_at; } - $properties['subscribers_url'] = $value; + $properties['created_at'] = $value; - after_subscribers_url: + after_created_at: - $value = $payload['subscription_url'] ?? null; + $value = $payload['maintainer'] ?? null; if ($value === null) { - $missingFields[] = 'subscription_url'; - goto after_subscription_url; + $missingFields[] = 'maintainer'; + goto after_maintainer; } - $properties['subscription_url'] = $value; - - after_subscription_url: - - $value = $payload['tags_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'tags_url'; - goto after_tags_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'maintainer'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDeploymentCreated⚡️WorkflowRun⚡️HeadRepository⚡️Owner($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['tags_url'] = $value; + $properties['maintainer'] = $value; - after_tags_url: + after_maintainer: - $value = $payload['teams_url'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $missingFields[] = 'teams_url'; - goto after_teams_url; + $missingFields[] = 'node_id'; + goto after_node_id; } - $properties['teams_url'] = $value; + $properties['node_id'] = $value; - after_teams_url: + after_node_id: - $value = $payload['trees_url'] ?? null; + $value = $payload['privacy_level'] ?? null; if ($value === null) { - $missingFields[] = 'trees_url'; - goto after_trees_url; + $missingFields[] = 'privacy_level'; + goto after_privacy_level; } - $properties['trees_url'] = $value; + $properties['privacy_level'] = $value; - after_trees_url: + after_privacy_level: - $value = $payload['clone_url'] ?? null; + $value = $payload['sponsor'] ?? null; if ($value === null) { - $missingFields[] = 'clone_url'; - goto after_clone_url; + $missingFields[] = 'sponsor'; + goto after_sponsor; } - $properties['clone_url'] = $value; - - after_clone_url: - - $value = $payload['mirror_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'mirror_url'; - goto after_mirror_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sponsor'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['mirror_url'] = $value; + $properties['sponsor'] = $value; - after_mirror_url: + after_sponsor: - $value = $payload['hooks_url'] ?? null; + $value = $payload['sponsorable'] ?? null; if ($value === null) { - $missingFields[] = 'hooks_url'; - goto after_hooks_url; + $missingFields[] = 'sponsorable'; + goto after_sponsorable; } - $properties['hooks_url'] = $value; - - after_hooks_url: - - $value = $payload['svn_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'svn_url'; - goto after_svn_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sponsorable'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['svn_url'] = $value; + $properties['sponsorable'] = $value; - after_svn_url: + after_sponsorable: - $value = $payload['homepage'] ?? null; + $value = $payload['tier'] ?? null; if ($value === null) { - $missingFields[] = 'homepage'; - goto after_homepage; + $missingFields[] = 'tier'; + goto after_tier; } - $properties['homepage'] = $value; - - after_homepage: - - $value = $payload['language'] ?? null; - - if ($value === null) { - $missingFields[] = 'language'; - goto after_language; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'tier'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSponsorshipCancelled⚡️Sponsorship⚡️Tier($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['language'] = $value; + $properties['tier'] = $value; - after_language: + after_tier: - $value = $payload['forks_count'] ?? null; - - if ($value === null) { - $missingFields[] = 'forks_count'; - goto after_forks_count; - } - - $properties['forks_count'] = $value; - - after_forks_count: + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookSponsorshipCancelled\Sponsorship', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookSponsorshipCancelled\Sponsorship::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookSponsorshipCancelled\Sponsorship(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookSponsorshipCancelled\Sponsorship', $exception, stack: $this->hydrationStack); + } + } - $value = $payload['stargazers_count'] ?? null; + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSponsorshipEdited⚡️Changes(array $payload): \ApiClients\Client\Github\Schema\WebhookSponsorshipEdited\Changes + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['privacy_level'] ?? null; if ($value === null) { - $missingFields[] = 'stargazers_count'; - goto after_stargazers_count; + $missingFields[] = 'privacy_level'; + goto after_privacy_level; } - $properties['stargazers_count'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'privacy_level'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSponsorshipEdited⚡️Changes⚡️PrivacyLevel($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['privacy_level'] = $value; - after_stargazers_count: + after_privacy_level: - $value = $payload['watchers_count'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookSponsorshipEdited\Changes', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookSponsorshipEdited\Changes::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookSponsorshipEdited\Changes(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookSponsorshipEdited\Changes', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSponsorshipPendingTierChange⚡️Changes(array $payload): \ApiClients\Client\Github\Schema\WebhookSponsorshipPendingTierChange\Changes + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['tier'] ?? null; if ($value === null) { - $missingFields[] = 'watchers_count'; - goto after_watchers_count; + $missingFields[] = 'tier'; + goto after_tier; } - $properties['watchers_count'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'tier'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSponsorshipPendingTierChange⚡️Changes⚡️Tier($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['tier'] = $value; - after_watchers_count: + after_tier: - $value = $payload['size'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookSponsorshipPendingTierChange\Changes', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookSponsorshipPendingTierChange\Changes::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookSponsorshipPendingTierChange\Changes(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookSponsorshipPendingTierChange\Changes', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️Permissions(array $payload): \ApiClients\Client\Github\Schema\Repository\Permissions + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['admin'] ?? null; if ($value === null) { - $missingFields[] = 'size'; - goto after_size; + $missingFields[] = 'admin'; + goto after_admin; } - $properties['size'] = $value; + $properties['admin'] = $value; - after_size: + after_admin: - $value = $payload['default_branch'] ?? null; + $value = $payload['pull'] ?? null; if ($value === null) { - $missingFields[] = 'default_branch'; - goto after_default_branch; + $missingFields[] = 'pull'; + goto after_pull; } - $properties['default_branch'] = $value; + $properties['pull'] = $value; - after_default_branch: + after_pull: - $value = $payload['open_issues_count'] ?? null; + $value = $payload['triage'] ?? null; if ($value === null) { - $missingFields[] = 'open_issues_count'; - goto after_open_issues_count; + $missingFields[] = 'triage'; + goto after_triage; } - $properties['open_issues_count'] = $value; + $properties['triage'] = $value; - after_open_issues_count: + after_triage: - $value = $payload['is_template'] ?? null; + $value = $payload['push'] ?? null; if ($value === null) { - $missingFields[] = 'is_template'; - goto after_is_template; + $missingFields[] = 'push'; + goto after_push; } - $properties['is_template'] = $value; + $properties['push'] = $value; - after_is_template: + after_push: - $value = $payload['topics'] ?? null; + $value = $payload['maintain'] ?? null; if ($value === null) { - $missingFields[] = 'topics'; - goto after_topics; + $missingFields[] = 'maintain'; + goto after_maintain; } - $properties['topics'] = $value; + $properties['maintain'] = $value; - after_topics: + after_maintain: - $value = $payload['has_issues'] ?? null; + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\Permissions', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\Permissions::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\Repository\Permissions(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\Permissions', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository(array $payload): \ApiClients\Client\Github\Schema\Repository\TemplateRepository + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'has_issues'; - goto after_has_issues; + $missingFields[] = 'id'; + goto after_id; } - $properties['has_issues'] = $value; + $properties['id'] = $value; - after_has_issues: + after_id: - $value = $payload['has_projects'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $missingFields[] = 'has_projects'; - goto after_has_projects; + $missingFields[] = 'node_id'; + goto after_node_id; } - $properties['has_projects'] = $value; + $properties['node_id'] = $value; - after_has_projects: + after_node_id: - $value = $payload['has_wiki'] ?? null; + $value = $payload['name'] ?? null; if ($value === null) { - $missingFields[] = 'has_wiki'; - goto after_has_wiki; + $missingFields[] = 'name'; + goto after_name; } - $properties['has_wiki'] = $value; + $properties['name'] = $value; - after_has_wiki: + after_name: - $value = $payload['has_pages'] ?? null; + $value = $payload['full_name'] ?? null; if ($value === null) { - $missingFields[] = 'has_pages'; - goto after_has_pages; + $missingFields[] = 'full_name'; + goto after_full_name; } - $properties['has_pages'] = $value; + $properties['full_name'] = $value; - after_has_pages: + after_full_name: - $value = $payload['has_downloads'] ?? null; + $value = $payload['owner'] ?? null; if ($value === null) { - $missingFields[] = 'has_downloads'; - goto after_has_downloads; + $missingFields[] = 'owner'; + goto after_owner; } - $properties['has_downloads'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'owner'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['owner'] = $value; - after_has_downloads: + after_owner: - $value = $payload['archived'] ?? null; + $value = $payload['private'] ?? null; if ($value === null) { - $missingFields[] = 'archived'; - goto after_archived; + $missingFields[] = 'private'; + goto after_private; } - $properties['archived'] = $value; + $properties['private'] = $value; - after_archived: + after_private: - $value = $payload['disabled'] ?? null; + $value = $payload['html_url'] ?? null; if ($value === null) { - $missingFields[] = 'disabled'; - goto after_disabled; + $missingFields[] = 'html_url'; + goto after_html_url; } - $properties['disabled'] = $value; + $properties['html_url'] = $value; - after_disabled: + after_html_url: - $value = $payload['visibility'] ?? null; + $value = $payload['description'] ?? null; if ($value === null) { - $missingFields[] = 'visibility'; - goto after_visibility; - } + $missingFields[] = 'description'; + goto after_description; + } - $properties['visibility'] = $value; + $properties['description'] = $value; - after_visibility: + after_description: - $value = $payload['pushed_at'] ?? null; + $value = $payload['fork'] ?? null; if ($value === null) { - $missingFields[] = 'pushed_at'; - goto after_pushed_at; + $missingFields[] = 'fork'; + goto after_fork; } - $properties['pushed_at'] = $value; + $properties['fork'] = $value; - after_pushed_at: + after_fork: - $value = $payload['created_at'] ?? null; + $value = $payload['url'] ?? null; if ($value === null) { - $missingFields[] = 'created_at'; - goto after_created_at; + $missingFields[] = 'url'; + goto after_url; } - $properties['created_at'] = $value; + $properties['url'] = $value; - after_created_at: + after_url: - $value = $payload['updated_at'] ?? null; + $value = $payload['archive_url'] ?? null; if ($value === null) { - $missingFields[] = 'updated_at'; - goto after_updated_at; + $missingFields[] = 'archive_url'; + goto after_archive_url; } - $properties['updated_at'] = $value; + $properties['archive_url'] = $value; - after_updated_at: + after_archive_url: - $value = $payload['permissions'] ?? null; + $value = $payload['assignees_url'] ?? null; if ($value === null) { - $missingFields[] = 'permissions'; - goto after_permissions; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'permissions'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Permissions($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'assignees_url'; + goto after_assignees_url; } - $properties['permissions'] = $value; + $properties['assignees_url'] = $value; - after_permissions: + after_assignees_url: - $value = $payload['allow_rebase_merge'] ?? null; + $value = $payload['blobs_url'] ?? null; if ($value === null) { - $missingFields[] = 'allow_rebase_merge'; - goto after_allow_rebase_merge; + $missingFields[] = 'blobs_url'; + goto after_blobs_url; } - $properties['allow_rebase_merge'] = $value; + $properties['blobs_url'] = $value; - after_allow_rebase_merge: + after_blobs_url: - $value = $payload['temp_clone_token'] ?? null; + $value = $payload['branches_url'] ?? null; if ($value === null) { - $missingFields[] = 'temp_clone_token'; - goto after_temp_clone_token; + $missingFields[] = 'branches_url'; + goto after_branches_url; } - $properties['temp_clone_token'] = $value; + $properties['branches_url'] = $value; - after_temp_clone_token: + after_branches_url: - $value = $payload['allow_squash_merge'] ?? null; + $value = $payload['collaborators_url'] ?? null; if ($value === null) { - $missingFields[] = 'allow_squash_merge'; - goto after_allow_squash_merge; + $missingFields[] = 'collaborators_url'; + goto after_collaborators_url; } - $properties['allow_squash_merge'] = $value; + $properties['collaborators_url'] = $value; - after_allow_squash_merge: + after_collaborators_url: - $value = $payload['allow_auto_merge'] ?? null; + $value = $payload['comments_url'] ?? null; if ($value === null) { - $missingFields[] = 'allow_auto_merge'; - goto after_allow_auto_merge; + $missingFields[] = 'comments_url'; + goto after_comments_url; } - $properties['allow_auto_merge'] = $value; + $properties['comments_url'] = $value; - after_allow_auto_merge: + after_comments_url: - $value = $payload['delete_branch_on_merge'] ?? null; + $value = $payload['commits_url'] ?? null; if ($value === null) { - $missingFields[] = 'delete_branch_on_merge'; - goto after_delete_branch_on_merge; + $missingFields[] = 'commits_url'; + goto after_commits_url; } - $properties['delete_branch_on_merge'] = $value; + $properties['commits_url'] = $value; - after_delete_branch_on_merge: + after_commits_url: - $value = $payload['allow_update_branch'] ?? null; + $value = $payload['compare_url'] ?? null; if ($value === null) { - $missingFields[] = 'allow_update_branch'; - goto after_allow_update_branch; + $missingFields[] = 'compare_url'; + goto after_compare_url; } - $properties['allow_update_branch'] = $value; + $properties['compare_url'] = $value; - after_allow_update_branch: + after_compare_url: - $value = $payload['use_squash_pr_title_as_default'] ?? null; + $value = $payload['contents_url'] ?? null; if ($value === null) { - $missingFields[] = 'use_squash_pr_title_as_default'; - goto after_use_squash_pr_title_as_default; + $missingFields[] = 'contents_url'; + goto after_contents_url; } - $properties['use_squash_pr_title_as_default'] = $value; + $properties['contents_url'] = $value; - after_use_squash_pr_title_as_default: + after_contents_url: - $value = $payload['squash_merge_commit_title'] ?? null; + $value = $payload['contributors_url'] ?? null; if ($value === null) { - $missingFields[] = 'squash_merge_commit_title'; - goto after_squash_merge_commit_title; + $missingFields[] = 'contributors_url'; + goto after_contributors_url; } - $properties['squash_merge_commit_title'] = $value; + $properties['contributors_url'] = $value; - after_squash_merge_commit_title: + after_contributors_url: - $value = $payload['squash_merge_commit_message'] ?? null; + $value = $payload['deployments_url'] ?? null; if ($value === null) { - $missingFields[] = 'squash_merge_commit_message'; - goto after_squash_merge_commit_message; + $missingFields[] = 'deployments_url'; + goto after_deployments_url; } - $properties['squash_merge_commit_message'] = $value; + $properties['deployments_url'] = $value; - after_squash_merge_commit_message: + after_deployments_url: - $value = $payload['merge_commit_title'] ?? null; + $value = $payload['downloads_url'] ?? null; if ($value === null) { - $missingFields[] = 'merge_commit_title'; - goto after_merge_commit_title; + $missingFields[] = 'downloads_url'; + goto after_downloads_url; } - $properties['merge_commit_title'] = $value; + $properties['downloads_url'] = $value; - after_merge_commit_title: + after_downloads_url: - $value = $payload['merge_commit_message'] ?? null; + $value = $payload['events_url'] ?? null; if ($value === null) { - $missingFields[] = 'merge_commit_message'; - goto after_merge_commit_message; + $missingFields[] = 'events_url'; + goto after_events_url; } - $properties['merge_commit_message'] = $value; + $properties['events_url'] = $value; - after_merge_commit_message: + after_events_url: - $value = $payload['allow_merge_commit'] ?? null; + $value = $payload['forks_url'] ?? null; if ($value === null) { - $missingFields[] = 'allow_merge_commit'; - goto after_allow_merge_commit; + $missingFields[] = 'forks_url'; + goto after_forks_url; } - $properties['allow_merge_commit'] = $value; + $properties['forks_url'] = $value; - after_allow_merge_commit: + after_forks_url: - $value = $payload['subscribers_count'] ?? null; + $value = $payload['git_commits_url'] ?? null; if ($value === null) { - $missingFields[] = 'subscribers_count'; - goto after_subscribers_count; + $missingFields[] = 'git_commits_url'; + goto after_git_commits_url; } - $properties['subscribers_count'] = $value; + $properties['git_commits_url'] = $value; - after_subscribers_count: + after_git_commits_url: - $value = $payload['network_count'] ?? null; + $value = $payload['git_refs_url'] ?? null; if ($value === null) { - $missingFields[] = 'network_count'; - goto after_network_count; + $missingFields[] = 'git_refs_url'; + goto after_git_refs_url; } - $properties['network_count'] = $value; + $properties['git_refs_url'] = $value; - after_network_count: - - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\TemplateRepository::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\Repository\TemplateRepository(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository', $exception, stack: $this->hydrationStack); - } - } + after_git_refs_url: - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDeploymentCreated⚡️WorkflowRun⚡️HeadRepository⚡️Owner(array $payload): \ApiClients\Client\Github\Schema\WebhookDeploymentCreated\WorkflowRun\HeadRepository\Owner - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['avatar_url'] ?? null; + $value = $payload['git_tags_url'] ?? null; if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatar_url; + $missingFields[] = 'git_tags_url'; + goto after_git_tags_url; } - $properties['avatar_url'] = $value; + $properties['git_tags_url'] = $value; - after_avatar_url: + after_git_tags_url: - $value = $payload['events_url'] ?? null; + $value = $payload['git_url'] ?? null; if ($value === null) { - $missingFields[] = 'events_url'; - goto after_events_url; + $missingFields[] = 'git_url'; + goto after_git_url; } - $properties['events_url'] = $value; + $properties['git_url'] = $value; - after_events_url: + after_git_url: - $value = $payload['followers_url'] ?? null; + $value = $payload['issue_comment_url'] ?? null; if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followers_url; + $missingFields[] = 'issue_comment_url'; + goto after_issue_comment_url; } - $properties['followers_url'] = $value; + $properties['issue_comment_url'] = $value; - after_followers_url: + after_issue_comment_url: - $value = $payload['following_url'] ?? null; + $value = $payload['issue_events_url'] ?? null; if ($value === null) { - $missingFields[] = 'following_url'; - goto after_following_url; + $missingFields[] = 'issue_events_url'; + goto after_issue_events_url; } - $properties['following_url'] = $value; + $properties['issue_events_url'] = $value; - after_following_url: + after_issue_events_url: - $value = $payload['gists_url'] ?? null; + $value = $payload['issues_url'] ?? null; if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gists_url; + $missingFields[] = 'issues_url'; + goto after_issues_url; } - $properties['gists_url'] = $value; + $properties['issues_url'] = $value; - after_gists_url: + after_issues_url: - $value = $payload['gravatar_id'] ?? null; + $value = $payload['keys_url'] ?? null; if ($value === null) { - $missingFields[] = 'gravatar_id'; - goto after_gravatar_id; + $missingFields[] = 'keys_url'; + goto after_keys_url; } - $properties['gravatar_id'] = $value; + $properties['keys_url'] = $value; - after_gravatar_id: + after_keys_url: - $value = $payload['html_url'] ?? null; + $value = $payload['labels_url'] ?? null; if ($value === null) { - $missingFields[] = 'html_url'; - goto after_html_url; + $missingFields[] = 'labels_url'; + goto after_labels_url; } - $properties['html_url'] = $value; + $properties['labels_url'] = $value; - after_html_url: + after_labels_url: - $value = $payload['id'] ?? null; + $value = $payload['languages_url'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'languages_url'; + goto after_languages_url; } - $properties['id'] = $value; + $properties['languages_url'] = $value; - after_id: + after_languages_url: - $value = $payload['login'] ?? null; + $value = $payload['merges_url'] ?? null; if ($value === null) { - $missingFields[] = 'login'; - goto after_login; + $missingFields[] = 'merges_url'; + goto after_merges_url; } - $properties['login'] = $value; + $properties['merges_url'] = $value; - after_login: + after_merges_url: - $value = $payload['node_id'] ?? null; + $value = $payload['milestones_url'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $missingFields[] = 'milestones_url'; + goto after_milestones_url; } - $properties['node_id'] = $value; + $properties['milestones_url'] = $value; - after_node_id: + after_milestones_url: - $value = $payload['organizations_url'] ?? null; + $value = $payload['notifications_url'] ?? null; if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizations_url; + $missingFields[] = 'notifications_url'; + goto after_notifications_url; } - $properties['organizations_url'] = $value; + $properties['notifications_url'] = $value; - after_organizations_url: + after_notifications_url: - $value = $payload['received_events_url'] ?? null; + $value = $payload['pulls_url'] ?? null; if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_received_events_url; + $missingFields[] = 'pulls_url'; + goto after_pulls_url; } - $properties['received_events_url'] = $value; + $properties['pulls_url'] = $value; - after_received_events_url: + after_pulls_url: - $value = $payload['repos_url'] ?? null; + $value = $payload['releases_url'] ?? null; if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_repos_url; + $missingFields[] = 'releases_url'; + goto after_releases_url; } - $properties['repos_url'] = $value; + $properties['releases_url'] = $value; - after_repos_url: + after_releases_url: - $value = $payload['site_admin'] ?? null; + $value = $payload['ssh_url'] ?? null; if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_site_admin; + $missingFields[] = 'ssh_url'; + goto after_ssh_url; } - $properties['site_admin'] = $value; + $properties['ssh_url'] = $value; - after_site_admin: + after_ssh_url: - $value = $payload['starred_url'] ?? null; + $value = $payload['stargazers_url'] ?? null; if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starred_url; + $missingFields[] = 'stargazers_url'; + goto after_stargazers_url; } - $properties['starred_url'] = $value; + $properties['stargazers_url'] = $value; - after_starred_url: + after_stargazers_url: - $value = $payload['subscriptions_url'] ?? null; + $value = $payload['statuses_url'] ?? null; if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptions_url; + $missingFields[] = 'statuses_url'; + goto after_statuses_url; } - $properties['subscriptions_url'] = $value; + $properties['statuses_url'] = $value; - after_subscriptions_url: + after_statuses_url: - $value = $payload['type'] ?? null; + $value = $payload['subscribers_url'] ?? null; if ($value === null) { - $missingFields[] = 'type'; - goto after_type; + $missingFields[] = 'subscribers_url'; + goto after_subscribers_url; } - $properties['type'] = $value; + $properties['subscribers_url'] = $value; - after_type: + after_subscribers_url: - $value = $payload['url'] ?? null; + $value = $payload['subscription_url'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $missingFields[] = 'subscription_url'; + goto after_subscription_url; } - $properties['url'] = $value; + $properties['subscription_url'] = $value; - after_url: - - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDeploymentCreated\WorkflowRun\HeadRepository\Owner', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookDeploymentCreated\WorkflowRun\HeadRepository\Owner::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\WebhookDeploymentCreated\WorkflowRun\HeadRepository\Owner(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDeploymentCreated\WorkflowRun\HeadRepository\Owner', $exception, stack: $this->hydrationStack); - } - } + after_subscription_url: - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy(array $payload): \ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['avatar_url'] ?? null; + $value = $payload['tags_url'] ?? null; if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatar_url; + $missingFields[] = 'tags_url'; + goto after_tags_url; } - $properties['avatar_url'] = $value; + $properties['tags_url'] = $value; - after_avatar_url: + after_tags_url: - $value = $payload['deleted'] ?? null; + $value = $payload['teams_url'] ?? null; if ($value === null) { - $missingFields[] = 'deleted'; - goto after_deleted; + $missingFields[] = 'teams_url'; + goto after_teams_url; } - $properties['deleted'] = $value; + $properties['teams_url'] = $value; - after_deleted: + after_teams_url: - $value = $payload['email'] ?? null; + $value = $payload['trees_url'] ?? null; if ($value === null) { - $missingFields[] = 'email'; - goto after_email; + $missingFields[] = 'trees_url'; + goto after_trees_url; } - $properties['email'] = $value; + $properties['trees_url'] = $value; - after_email: + after_trees_url: - $value = $payload['events_url'] ?? null; + $value = $payload['clone_url'] ?? null; if ($value === null) { - $missingFields[] = 'events_url'; - goto after_events_url; + $missingFields[] = 'clone_url'; + goto after_clone_url; } - $properties['events_url'] = $value; + $properties['clone_url'] = $value; - after_events_url: + after_clone_url: - $value = $payload['followers_url'] ?? null; + $value = $payload['mirror_url'] ?? null; if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followers_url; + $missingFields[] = 'mirror_url'; + goto after_mirror_url; } - $properties['followers_url'] = $value; + $properties['mirror_url'] = $value; - after_followers_url: + after_mirror_url: - $value = $payload['following_url'] ?? null; + $value = $payload['hooks_url'] ?? null; if ($value === null) { - $missingFields[] = 'following_url'; - goto after_following_url; + $missingFields[] = 'hooks_url'; + goto after_hooks_url; } - $properties['following_url'] = $value; + $properties['hooks_url'] = $value; - after_following_url: + after_hooks_url: - $value = $payload['gists_url'] ?? null; + $value = $payload['svn_url'] ?? null; if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gists_url; + $missingFields[] = 'svn_url'; + goto after_svn_url; } - $properties['gists_url'] = $value; + $properties['svn_url'] = $value; - after_gists_url: + after_svn_url: - $value = $payload['gravatar_id'] ?? null; + $value = $payload['homepage'] ?? null; if ($value === null) { - $missingFields[] = 'gravatar_id'; - goto after_gravatar_id; + $missingFields[] = 'homepage'; + goto after_homepage; } - $properties['gravatar_id'] = $value; + $properties['homepage'] = $value; - after_gravatar_id: + after_homepage: - $value = $payload['html_url'] ?? null; + $value = $payload['language'] ?? null; if ($value === null) { - $missingFields[] = 'html_url'; - goto after_html_url; + $missingFields[] = 'language'; + goto after_language; } - $properties['html_url'] = $value; + $properties['language'] = $value; - after_html_url: + after_language: - $value = $payload['id'] ?? null; + $value = $payload['forks_count'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'forks_count'; + goto after_forks_count; } - $properties['id'] = $value; + $properties['forks_count'] = $value; - after_id: + after_forks_count: - $value = $payload['login'] ?? null; + $value = $payload['stargazers_count'] ?? null; if ($value === null) { - $missingFields[] = 'login'; - goto after_login; + $missingFields[] = 'stargazers_count'; + goto after_stargazers_count; } - $properties['login'] = $value; + $properties['stargazers_count'] = $value; - after_login: + after_stargazers_count: - $value = $payload['name'] ?? null; + $value = $payload['watchers_count'] ?? null; if ($value === null) { - $missingFields[] = 'name'; - goto after_name; + $missingFields[] = 'watchers_count'; + goto after_watchers_count; } - $properties['name'] = $value; + $properties['watchers_count'] = $value; - after_name: + after_watchers_count: - $value = $payload['node_id'] ?? null; + $value = $payload['size'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $missingFields[] = 'size'; + goto after_size; } - $properties['node_id'] = $value; + $properties['size'] = $value; - after_node_id: + after_size: - $value = $payload['organizations_url'] ?? null; + $value = $payload['default_branch'] ?? null; if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizations_url; + $missingFields[] = 'default_branch'; + goto after_default_branch; } - $properties['organizations_url'] = $value; + $properties['default_branch'] = $value; - after_organizations_url: + after_default_branch: - $value = $payload['received_events_url'] ?? null; + $value = $payload['open_issues_count'] ?? null; if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_received_events_url; + $missingFields[] = 'open_issues_count'; + goto after_open_issues_count; } - $properties['received_events_url'] = $value; + $properties['open_issues_count'] = $value; - after_received_events_url: + after_open_issues_count: - $value = $payload['repos_url'] ?? null; + $value = $payload['is_template'] ?? null; if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_repos_url; + $missingFields[] = 'is_template'; + goto after_is_template; } - $properties['repos_url'] = $value; + $properties['is_template'] = $value; - after_repos_url: + after_is_template: - $value = $payload['site_admin'] ?? null; + $value = $payload['topics'] ?? null; if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_site_admin; + $missingFields[] = 'topics'; + goto after_topics; } - $properties['site_admin'] = $value; + $properties['topics'] = $value; - after_site_admin: + after_topics: - $value = $payload['starred_url'] ?? null; + $value = $payload['has_issues'] ?? null; if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starred_url; + $missingFields[] = 'has_issues'; + goto after_has_issues; } - $properties['starred_url'] = $value; + $properties['has_issues'] = $value; - after_starred_url: + after_has_issues: - $value = $payload['subscriptions_url'] ?? null; + $value = $payload['has_projects'] ?? null; if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptions_url; + $missingFields[] = 'has_projects'; + goto after_has_projects; } - $properties['subscriptions_url'] = $value; + $properties['has_projects'] = $value; - after_subscriptions_url: + after_has_projects: - $value = $payload['type'] ?? null; + $value = $payload['has_wiki'] ?? null; if ($value === null) { - $missingFields[] = 'type'; - goto after_type; + $missingFields[] = 'has_wiki'; + goto after_has_wiki; } - $properties['type'] = $value; + $properties['has_wiki'] = $value; - after_type: + after_has_wiki: - $value = $payload['url'] ?? null; + $value = $payload['has_pages'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $missingFields[] = 'has_pages'; + goto after_has_pages; } - $properties['url'] = $value; + $properties['has_pages'] = $value; - after_url: + after_has_pages: - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy', $exception, stack: $this->hydrationStack); - } - } + $value = $payload['has_downloads'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_downloads'; + goto after_has_downloads; + } - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSponsorshipCancelled⚡️Sponsorship⚡️Tier(array $payload): \ApiClients\Client\Github\Schema\WebhookSponsorshipCancelled\Sponsorship\Tier - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['created_at'] ?? null; + $properties['has_downloads'] = $value; + + after_has_downloads: + + $value = $payload['archived'] ?? null; if ($value === null) { - $missingFields[] = 'created_at'; - goto after_created_at; + $missingFields[] = 'archived'; + goto after_archived; } - $properties['created_at'] = $value; + $properties['archived'] = $value; - after_created_at: + after_archived: - $value = $payload['description'] ?? null; + $value = $payload['disabled'] ?? null; if ($value === null) { - $missingFields[] = 'description'; - goto after_description; + $missingFields[] = 'disabled'; + goto after_disabled; } - $properties['description'] = $value; + $properties['disabled'] = $value; - after_description: + after_disabled: - $value = $payload['is_custom_ammount'] ?? null; + $value = $payload['visibility'] ?? null; if ($value === null) { - $missingFields[] = 'is_custom_ammount'; - goto after_is_custom_ammount; + $missingFields[] = 'visibility'; + goto after_visibility; } - $properties['is_custom_ammount'] = $value; + $properties['visibility'] = $value; - after_is_custom_ammount: + after_visibility: - $value = $payload['is_custom_amount'] ?? null; + $value = $payload['pushed_at'] ?? null; if ($value === null) { - $missingFields[] = 'is_custom_amount'; - goto after_is_custom_amount; + $missingFields[] = 'pushed_at'; + goto after_pushed_at; } - $properties['is_custom_amount'] = $value; + $properties['pushed_at'] = $value; - after_is_custom_amount: + after_pushed_at: - $value = $payload['is_one_time'] ?? null; + $value = $payload['created_at'] ?? null; if ($value === null) { - $missingFields[] = 'is_one_time'; - goto after_is_one_time; + $missingFields[] = 'created_at'; + goto after_created_at; } - $properties['is_one_time'] = $value; + $properties['created_at'] = $value; - after_is_one_time: + after_created_at: - $value = $payload['monthly_price_in_cents'] ?? null; + $value = $payload['updated_at'] ?? null; if ($value === null) { - $missingFields[] = 'monthly_price_in_cents'; - goto after_monthly_price_in_cents; + $missingFields[] = 'updated_at'; + goto after_updated_at; } - $properties['monthly_price_in_cents'] = $value; + $properties['updated_at'] = $value; - after_monthly_price_in_cents: + after_updated_at: - $value = $payload['monthly_price_in_dollars'] ?? null; + $value = $payload['permissions'] ?? null; if ($value === null) { - $missingFields[] = 'monthly_price_in_dollars'; - goto after_monthly_price_in_dollars; + $missingFields[] = 'permissions'; + goto after_permissions; } - $properties['monthly_price_in_dollars'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'permissions'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Permissions($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['permissions'] = $value; - after_monthly_price_in_dollars: + after_permissions: - $value = $payload['name'] ?? null; + $value = $payload['allow_rebase_merge'] ?? null; if ($value === null) { - $missingFields[] = 'name'; - goto after_name; + $missingFields[] = 'allow_rebase_merge'; + goto after_allow_rebase_merge; } - $properties['name'] = $value; + $properties['allow_rebase_merge'] = $value; - after_name: + after_allow_rebase_merge: - $value = $payload['node_id'] ?? null; + $value = $payload['temp_clone_token'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $missingFields[] = 'temp_clone_token'; + goto after_temp_clone_token; } - $properties['node_id'] = $value; + $properties['temp_clone_token'] = $value; - after_node_id: + after_temp_clone_token: - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookSponsorshipCancelled\Sponsorship\Tier', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookSponsorshipCancelled\Sponsorship\Tier::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\WebhookSponsorshipCancelled\Sponsorship\Tier(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookSponsorshipCancelled\Sponsorship\Tier', $exception, stack: $this->hydrationStack); - } - } + $value = $payload['allow_squash_merge'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_squash_merge'; + goto after_allow_squash_merge; + } - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner(array $payload): \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['login'] ?? null; + $properties['allow_squash_merge'] = $value; + + after_allow_squash_merge: + + $value = $payload['allow_auto_merge'] ?? null; if ($value === null) { - $missingFields[] = 'login'; - goto after_login; + $missingFields[] = 'allow_auto_merge'; + goto after_allow_auto_merge; } - $properties['login'] = $value; + $properties['allow_auto_merge'] = $value; - after_login: + after_allow_auto_merge: - $value = $payload['id'] ?? null; + $value = $payload['delete_branch_on_merge'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'delete_branch_on_merge'; + goto after_delete_branch_on_merge; } - $properties['id'] = $value; + $properties['delete_branch_on_merge'] = $value; - after_id: + after_delete_branch_on_merge: - $value = $payload['node_id'] ?? null; + $value = $payload['allow_update_branch'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $missingFields[] = 'allow_update_branch'; + goto after_allow_update_branch; } - $properties['node_id'] = $value; + $properties['allow_update_branch'] = $value; - after_node_id: + after_allow_update_branch: - $value = $payload['avatar_url'] ?? null; + $value = $payload['use_squash_pr_title_as_default'] ?? null; if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatar_url; + $missingFields[] = 'use_squash_pr_title_as_default'; + goto after_use_squash_pr_title_as_default; } - $properties['avatar_url'] = $value; + $properties['use_squash_pr_title_as_default'] = $value; - after_avatar_url: + after_use_squash_pr_title_as_default: - $value = $payload['gravatar_id'] ?? null; + $value = $payload['squash_merge_commit_title'] ?? null; if ($value === null) { - $missingFields[] = 'gravatar_id'; - goto after_gravatar_id; + $missingFields[] = 'squash_merge_commit_title'; + goto after_squash_merge_commit_title; } - $properties['gravatar_id'] = $value; + $properties['squash_merge_commit_title'] = $value; - after_gravatar_id: + after_squash_merge_commit_title: - $value = $payload['url'] ?? null; + $value = $payload['squash_merge_commit_message'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $missingFields[] = 'squash_merge_commit_message'; + goto after_squash_merge_commit_message; } - $properties['url'] = $value; + $properties['squash_merge_commit_message'] = $value; - after_url: + after_squash_merge_commit_message: - $value = $payload['html_url'] ?? null; + $value = $payload['merge_commit_title'] ?? null; if ($value === null) { - $missingFields[] = 'html_url'; - goto after_html_url; + $missingFields[] = 'merge_commit_title'; + goto after_merge_commit_title; } - $properties['html_url'] = $value; + $properties['merge_commit_title'] = $value; - after_html_url: + after_merge_commit_title: + + $value = $payload['merge_commit_message'] ?? null; + + if ($value === null) { + $missingFields[] = 'merge_commit_message'; + goto after_merge_commit_message; + } + + $properties['merge_commit_message'] = $value; + + after_merge_commit_message: + + $value = $payload['allow_merge_commit'] ?? null; + + if ($value === null) { + $missingFields[] = 'allow_merge_commit'; + goto after_allow_merge_commit; + } + + $properties['allow_merge_commit'] = $value; + + after_allow_merge_commit: + + $value = $payload['subscribers_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscribers_count'; + goto after_subscribers_count; + } + + $properties['subscribers_count'] = $value; + + after_subscribers_count: + + $value = $payload['network_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'network_count'; + goto after_network_count; + } + + $properties['network_count'] = $value; + + after_network_count: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\TemplateRepository::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\Repository\TemplateRepository(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDeploymentCreated⚡️WorkflowRun⚡️HeadRepository⚡️Owner(array $payload): \ApiClients\Client\Github\Schema\WebhookDeploymentCreated\WorkflowRun\HeadRepository\Owner + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['avatar_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'avatar_url'; + goto after_avatar_url; + } + + $properties['avatar_url'] = $value; + + after_avatar_url: + + $value = $payload['events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'events_url'; + goto after_events_url; + } + + $properties['events_url'] = $value; + + after_events_url: $value = $payload['followers_url'] ?? null; @@ -3941,60 +4126,71 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repo after_gists_url: - $value = $payload['starred_url'] ?? null; + $value = $payload['gravatar_id'] ?? null; if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starred_url; + $missingFields[] = 'gravatar_id'; + goto after_gravatar_id; } - $properties['starred_url'] = $value; + $properties['gravatar_id'] = $value; - after_starred_url: + after_gravatar_id: - $value = $payload['subscriptions_url'] ?? null; + $value = $payload['html_url'] ?? null; if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptions_url; + $missingFields[] = 'html_url'; + goto after_html_url; } - $properties['subscriptions_url'] = $value; + $properties['html_url'] = $value; - after_subscriptions_url: + after_html_url: - $value = $payload['organizations_url'] ?? null; + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizations_url; + $missingFields[] = 'id'; + goto after_id; } - $properties['organizations_url'] = $value; + $properties['id'] = $value; - after_organizations_url: + after_id: - $value = $payload['repos_url'] ?? null; + $value = $payload['login'] ?? null; if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_repos_url; + $missingFields[] = 'login'; + goto after_login; } - $properties['repos_url'] = $value; + $properties['login'] = $value; - after_repos_url: + after_login: - $value = $payload['events_url'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $missingFields[] = 'events_url'; - goto after_events_url; + $missingFields[] = 'node_id'; + goto after_node_id; } - $properties['events_url'] = $value; + $properties['node_id'] = $value; - after_events_url: + after_node_id: + + $value = $payload['organizations_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'organizations_url'; + goto after_organizations_url; + } + + $properties['organizations_url'] = $value; + + after_organizations_url: $value = $payload['received_events_url'] ?? null; @@ -4007,16 +4203,16 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repo after_received_events_url: - $value = $payload['type'] ?? null; + $value = $payload['repos_url'] ?? null; if ($value === null) { - $missingFields[] = 'type'; - goto after_type; + $missingFields[] = 'repos_url'; + goto after_repos_url; } - $properties['type'] = $value; + $properties['repos_url'] = $value; - after_type: + after_repos_url: $value = $payload['site_admin'] ?? null; @@ -4029,180 +4225,1199 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repo after_site_admin: - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner', $exception, stack: $this->hydrationStack); - } - + $value = $payload['starred_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'starred_url'; + goto after_starred_url; + } + + $properties['starred_url'] = $value; + + after_starred_url: + + $value = $payload['subscriptions_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscriptions_url'; + goto after_subscriptions_url; + } + + $properties['subscriptions_url'] = $value; + + after_subscriptions_url: + + $value = $payload['type'] ?? null; + + if ($value === null) { + $missingFields[] = 'type'; + goto after_type; + } + + $properties['type'] = $value; + + after_type: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDeploymentCreated\WorkflowRun\HeadRepository\Owner', $exception, stack: $this->hydrationStack); + } + if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookDeploymentCreated\WorkflowRun\HeadRepository\Owner::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookDeploymentCreated\WorkflowRun\HeadRepository\Owner(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookDeploymentCreated\WorkflowRun\HeadRepository\Owner', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Permissions(array $payload): \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy(array $payload): \ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy { $properties = []; $missingFields = []; try { - $value = $payload['admin'] ?? null; + $value = $payload['avatar_url'] ?? null; if ($value === null) { - $missingFields[] = 'admin'; - goto after_admin; + $missingFields[] = 'avatar_url'; + goto after_avatar_url; } - $properties['admin'] = $value; + $properties['avatar_url'] = $value; - after_admin: + after_avatar_url: - $value = $payload['maintain'] ?? null; + $value = $payload['deleted'] ?? null; if ($value === null) { - $missingFields[] = 'maintain'; - goto after_maintain; + $missingFields[] = 'deleted'; + goto after_deleted; } - $properties['maintain'] = $value; + $properties['deleted'] = $value; - after_maintain: + after_deleted: - $value = $payload['push'] ?? null; + $value = $payload['email'] ?? null; if ($value === null) { - $missingFields[] = 'push'; - goto after_push; + $missingFields[] = 'email'; + goto after_email; } - $properties['push'] = $value; + $properties['email'] = $value; - after_push: + after_email: - $value = $payload['triage'] ?? null; + $value = $payload['events_url'] ?? null; if ($value === null) { - $missingFields[] = 'triage'; - goto after_triage; + $missingFields[] = 'events_url'; + goto after_events_url; } - $properties['triage'] = $value; + $properties['events_url'] = $value; - after_triage: + after_events_url: - $value = $payload['pull'] ?? null; + $value = $payload['followers_url'] ?? null; if ($value === null) { - $missingFields[] = 'pull'; - goto after_pull; + $missingFields[] = 'followers_url'; + goto after_followers_url; } - $properties['pull'] = $value; + $properties['followers_url'] = $value; - after_pull: + after_followers_url: - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions', $exception, stack: $this->hydrationStack); - } - } + $value = $payload['following_url'] ?? null; - public function serializeObject(object $object): mixed - { - try { - $className = get_class($object); + if ($value === null) { + $missingFields[] = 'following_url'; + goto after_following_url; + } - return match($className) { - 'array' => $this->serializeValuearray($object), - 'Ramsey\Uuid\UuidInterface' => $this->serializeValueRamsey⚡️Uuid⚡️UuidInterface($object), - 'DateTime' => $this->serializeValueDateTime($object), - 'DateTimeImmutable' => $this->serializeValueDateTimeImmutable($object), - 'DateTimeInterface' => $this->serializeValueDateTimeInterface($object), - 'ApiClients\Client\Github\Schema\WebhookSponsorshipTierChanged' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSponsorshipTierChanged($object), - default => throw new \LogicException('No serialization defined for $className'), - }; - } catch (\Throwable $exception) { - throw UnableToSerializeObject::dueToError($className, $exception); - } - } + $properties['following_url'] = $value; + after_following_url: + + $value = $payload['gists_url'] ?? null; - private function serializeValuearray(mixed $value): mixed - { - static $serializer; - - if ($serializer === null) { - $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeArrayItems(...array ( -)); - } - - return $serializer->serialize($value, $this); - } + if ($value === null) { + $missingFields[] = 'gists_url'; + goto after_gists_url; + } + $properties['gists_url'] = $value; + + after_gists_url: - private function serializeValueRamsey⚡️Uuid⚡️UuidInterface(mixed $value): mixed - { - static $serializer; - - if ($serializer === null) { - $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeUuidToString(...array ( -)); - } - - return $serializer->serialize($value, $this); - } + $value = $payload['gravatar_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'gravatar_id'; + goto after_gravatar_id; + } + $properties['gravatar_id'] = $value; + + after_gravatar_id: - private function serializeValueDateTime(mixed $value): mixed - { - static $serializer; - - if ($serializer === null) { - $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeDateTime(...array ( -)); - } - - return $serializer->serialize($value, $this); - } + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } + $properties['html_url'] = $value; + + after_html_url: - private function serializeValueDateTimeImmutable(mixed $value): mixed - { - static $serializer; - - if ($serializer === null) { - $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeDateTime(...array ( -)); - } - - return $serializer->serialize($value, $this); - } + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + $value = $payload['login'] ?? null; + + if ($value === null) { + $missingFields[] = 'login'; + goto after_login; + } - private function serializeValueDateTimeInterface(mixed $value): mixed - { - static $serializer; - - if ($serializer === null) { - $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeDateTime(...array ( -)); - } - - return $serializer->serialize($value, $this); + $properties['login'] = $value; + + after_login: + + $value = $payload['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['organizations_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'organizations_url'; + goto after_organizations_url; + } + + $properties['organizations_url'] = $value; + + after_organizations_url: + + $value = $payload['received_events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'received_events_url'; + goto after_received_events_url; + } + + $properties['received_events_url'] = $value; + + after_received_events_url: + + $value = $payload['repos_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'repos_url'; + goto after_repos_url; + } + + $properties['repos_url'] = $value; + + after_repos_url: + + $value = $payload['site_admin'] ?? null; + + if ($value === null) { + $missingFields[] = 'site_admin'; + goto after_site_admin; + } + + $properties['site_admin'] = $value; + + after_site_admin: + + $value = $payload['starred_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'starred_url'; + goto after_starred_url; + } + + $properties['starred_url'] = $value; + + after_starred_url: + + $value = $payload['subscriptions_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscriptions_url'; + goto after_subscriptions_url; + } + + $properties['subscriptions_url'] = $value; + + after_subscriptions_url: + + $value = $payload['type'] ?? null; + + if ($value === null) { + $missingFields[] = 'type'; + goto after_type; + } + + $properties['type'] = $value; + + after_type: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSponsorshipCancelled⚡️Sponsorship⚡️Tier(array $payload): \ApiClients\Client\Github\Schema\WebhookSponsorshipCancelled\Sponsorship\Tier + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'created_at'; + goto after_created_at; + } + + $properties['created_at'] = $value; + + after_created_at: + + $value = $payload['description'] ?? null; + + if ($value === null) { + $missingFields[] = 'description'; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['is_custom_ammount'] ?? null; + + if ($value === null) { + $missingFields[] = 'is_custom_ammount'; + goto after_is_custom_ammount; + } + + $properties['is_custom_ammount'] = $value; + + after_is_custom_ammount: + + $value = $payload['is_custom_amount'] ?? null; + + if ($value === null) { + $missingFields[] = 'is_custom_amount'; + goto after_is_custom_amount; + } + + $properties['is_custom_amount'] = $value; + + after_is_custom_amount: + + $value = $payload['is_one_time'] ?? null; + + if ($value === null) { + $missingFields[] = 'is_one_time'; + goto after_is_one_time; + } + + $properties['is_one_time'] = $value; + + after_is_one_time: + + $value = $payload['monthly_price_in_cents'] ?? null; + + if ($value === null) { + $missingFields[] = 'monthly_price_in_cents'; + goto after_monthly_price_in_cents; + } + + $properties['monthly_price_in_cents'] = $value; + + after_monthly_price_in_cents: + + $value = $payload['monthly_price_in_dollars'] ?? null; + + if ($value === null) { + $missingFields[] = 'monthly_price_in_dollars'; + goto after_monthly_price_in_dollars; + } + + $properties['monthly_price_in_dollars'] = $value; + + after_monthly_price_in_dollars: + + $value = $payload['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookSponsorshipCancelled\Sponsorship\Tier', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookSponsorshipCancelled\Sponsorship\Tier::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookSponsorshipCancelled\Sponsorship\Tier(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookSponsorshipCancelled\Sponsorship\Tier', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSponsorshipEdited⚡️Changes⚡️PrivacyLevel(array $payload): \ApiClients\Client\Github\Schema\WebhookSponsorshipEdited\Changes\PrivacyLevel + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['from'] ?? null; + + if ($value === null) { + $missingFields[] = 'from'; + goto after_from; + } + + $properties['from'] = $value; + + after_from: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookSponsorshipEdited\Changes\PrivacyLevel', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookSponsorshipEdited\Changes\PrivacyLevel::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookSponsorshipEdited\Changes\PrivacyLevel(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookSponsorshipEdited\Changes\PrivacyLevel', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSponsorshipPendingTierChange⚡️Changes⚡️Tier(array $payload): \ApiClients\Client\Github\Schema\WebhookSponsorshipPendingTierChange\Changes\Tier + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['from'] ?? null; + + if ($value === null) { + $missingFields[] = 'from'; + goto after_from; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'from'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSponsorshipCancelled⚡️Sponsorship⚡️Tier($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['from'] = $value; + + after_from: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookSponsorshipPendingTierChange\Changes\Tier', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookSponsorshipPendingTierChange\Changes\Tier::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookSponsorshipPendingTierChange\Changes\Tier(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookSponsorshipPendingTierChange\Changes\Tier', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner(array $payload): \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['login'] ?? null; + + if ($value === null) { + $missingFields[] = 'login'; + goto after_login; + } + + $properties['login'] = $value; + + after_login: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['avatar_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'avatar_url'; + goto after_avatar_url; + } + + $properties['avatar_url'] = $value; + + after_avatar_url: + + $value = $payload['gravatar_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'gravatar_id'; + goto after_gravatar_id; + } + + $properties['gravatar_id'] = $value; + + after_gravatar_id: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } + + $properties['html_url'] = $value; + + after_html_url: + + $value = $payload['followers_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'followers_url'; + goto after_followers_url; + } + + $properties['followers_url'] = $value; + + after_followers_url: + + $value = $payload['following_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'following_url'; + goto after_following_url; + } + + $properties['following_url'] = $value; + + after_following_url: + + $value = $payload['gists_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'gists_url'; + goto after_gists_url; + } + + $properties['gists_url'] = $value; + + after_gists_url: + + $value = $payload['starred_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'starred_url'; + goto after_starred_url; + } + + $properties['starred_url'] = $value; + + after_starred_url: + + $value = $payload['subscriptions_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscriptions_url'; + goto after_subscriptions_url; + } + + $properties['subscriptions_url'] = $value; + + after_subscriptions_url: + + $value = $payload['organizations_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'organizations_url'; + goto after_organizations_url; + } + + $properties['organizations_url'] = $value; + + after_organizations_url: + + $value = $payload['repos_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'repos_url'; + goto after_repos_url; + } + + $properties['repos_url'] = $value; + + after_repos_url: + + $value = $payload['events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'events_url'; + goto after_events_url; + } + + $properties['events_url'] = $value; + + after_events_url: + + $value = $payload['received_events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'received_events_url'; + goto after_received_events_url; + } + + $properties['received_events_url'] = $value; + + after_received_events_url: + + $value = $payload['type'] ?? null; + + if ($value === null) { + $missingFields[] = 'type'; + goto after_type; + } + + $properties['type'] = $value; + + after_type: + + $value = $payload['site_admin'] ?? null; + + if ($value === null) { + $missingFields[] = 'site_admin'; + goto after_site_admin; + } + + $properties['site_admin'] = $value; + + after_site_admin: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Permissions(array $payload): \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['admin'] ?? null; + + if ($value === null) { + $missingFields[] = 'admin'; + goto after_admin; + } + + $properties['admin'] = $value; + + after_admin: + + $value = $payload['maintain'] ?? null; + + if ($value === null) { + $missingFields[] = 'maintain'; + goto after_maintain; + } + + $properties['maintain'] = $value; + + after_maintain: + + $value = $payload['push'] ?? null; + + if ($value === null) { + $missingFields[] = 'push'; + goto after_push; + } + + $properties['push'] = $value; + + after_push: + + $value = $payload['triage'] ?? null; + + if ($value === null) { + $missingFields[] = 'triage'; + goto after_triage; + } + + $properties['triage'] = $value; + + after_triage: + + $value = $payload['pull'] ?? null; + + if ($value === null) { + $missingFields[] = 'pull'; + goto after_pull; + } + + $properties['pull'] = $value; + + after_pull: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Repository\TemplateRepository\Permissions', $exception, stack: $this->hydrationStack); + } + } + + public function serializeObject(object $object): mixed + { + try { + $className = get_class($object); + + return match($className) { + 'array' => $this->serializeValuearray($object), + 'Ramsey\Uuid\UuidInterface' => $this->serializeValueRamsey⚡️Uuid⚡️UuidInterface($object), + 'DateTime' => $this->serializeValueDateTime($object), + 'DateTimeImmutable' => $this->serializeValueDateTimeImmutable($object), + 'DateTimeInterface' => $this->serializeValueDateTimeInterface($object), + 'ApiClients\Client\Github\Schema\WebhookSponsorshipCancelled' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSponsorshipCancelled($object), + 'ApiClients\Client\Github\Schema\WebhookSponsorshipCreated' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSponsorshipCreated($object), + 'ApiClients\Client\Github\Schema\WebhookSponsorshipEdited' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSponsorshipEdited($object), + 'ApiClients\Client\Github\Schema\WebhookSponsorshipPendingCancellation' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSponsorshipPendingCancellation($object), + 'ApiClients\Client\Github\Schema\WebhookSponsorshipPendingTierChange' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSponsorshipPendingTierChange($object), + 'ApiClients\Client\Github\Schema\WebhookSponsorshipTierChanged' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSponsorshipTierChanged($object), + default => throw new \LogicException('No serialization defined for $className'), + }; + } catch (\Throwable $exception) { + throw UnableToSerializeObject::dueToError($className, $exception); + } + } + + + private function serializeValuearray(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeArrayItems(...array ( +)); + } + + return $serializer->serialize($value, $this); + } + + + private function serializeValueRamsey⚡️Uuid⚡️UuidInterface(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeUuidToString(...array ( +)); + } + + return $serializer->serialize($value, $this); + } + + + private function serializeValueDateTime(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeDateTime(...array ( +)); + } + + return $serializer->serialize($value, $this); + } + + + private function serializeValueDateTimeImmutable(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeDateTime(...array ( +)); + } + + return $serializer->serialize($value, $this); + } + + + private function serializeValueDateTimeInterface(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeDateTime(...array ( +)); + } + + return $serializer->serialize($value, $this); + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSponsorshipCancelled(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookSponsorshipCancelled); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $repository = $object->repository; + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + $sponsorship = $object->sponsorship; + + if ($sponsorship === null) { + goto after_sponsorship; + } + $sponsorship = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSponsorshipCancelled⚡️Sponsorship($sponsorship); + after_sponsorship: $result['sponsorship'] = $sponsorship; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSponsorshipCreated(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookSponsorshipCreated); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $repository = $object->repository; + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + $sponsorship = $object->sponsorship; + + if ($sponsorship === null) { + goto after_sponsorship; + } + $sponsorship = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSponsorshipCancelled⚡️Sponsorship($sponsorship); + after_sponsorship: $result['sponsorship'] = $sponsorship; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSponsorshipEdited(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookSponsorshipEdited); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $changes = $object->changes; + + if ($changes === null) { + goto after_changes; + } + $changes = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSponsorshipEdited⚡️Changes($changes); + after_changes: $result['changes'] = $changes; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $repository = $object->repository; + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + $sponsorship = $object->sponsorship; + + if ($sponsorship === null) { + goto after_sponsorship; + } + $sponsorship = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSponsorshipCancelled⚡️Sponsorship($sponsorship); + after_sponsorship: $result['sponsorship'] = $sponsorship; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSponsorshipPendingCancellation(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookSponsorshipPendingCancellation); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $effective_date = $object->effective_date; + after_effective_date: $result['effective_date'] = $effective_date; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $repository = $object->repository; + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + $sponsorship = $object->sponsorship; + + if ($sponsorship === null) { + goto after_sponsorship; + } + $sponsorship = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSponsorshipCancelled⚡️Sponsorship($sponsorship); + after_sponsorship: $result['sponsorship'] = $sponsorship; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSponsorshipPendingTierChange(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookSponsorshipPendingTierChange); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $changes = $object->changes; + + if ($changes === null) { + goto after_changes; + } + $changes = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSponsorshipPendingTierChange⚡️Changes($changes); + after_changes: $result['changes'] = $changes; + + + $effective_date = $object->effective_date; + after_effective_date: $result['effective_date'] = $effective_date; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $repository = $object->repository; + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + $sponsorship = $object->sponsorship; + + if ($sponsorship === null) { + goto after_sponsorship; + } + $sponsorship = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookSponsorshipCancelled⚡️Sponsorship($sponsorship); + after_sponsorship: $result['sponsorship'] = $sponsorship; + + + return $result; } diff --git a/src/Hydrator/WebHook/Star.php b/src/Hydrator/WebHook/Star.php index e23fc25ca6..97b2b5a363 100644 --- a/src/Hydrator/WebHook/Star.php +++ b/src/Hydrator/WebHook/Star.php @@ -23,7 +23,8 @@ public function __construct() {} public function hydrateObject(string $className, array $payload): object { return match($className) { - 'ApiClients\Client\Github\Schema\WebhookStarDeleted' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookStarDeleted($payload), + 'ApiClients\Client\Github\Schema\WebhookStarCreated' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookStarCreated($payload), + 'ApiClients\Client\Github\Schema\WebhookStarDeleted' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookStarDeleted($payload), 'ApiClients\Client\Github\Schema\Enterprise' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($payload), 'ApiClients\Client\Github\Schema\SimpleInstallation' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($payload), 'ApiClients\Client\Github\Schema\OrganizationSimple' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($payload), @@ -38,6 +39,150 @@ public function hydrateObject(string $className, array $payload): object } + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookStarCreated(array $payload): \ApiClients\Client\Github\Schema\WebhookStarCreated + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; + + if ($value === null) { + $missingFields[] = 'action'; + goto after_action; + } + + $properties['action'] = $value; + + after_action: + + $value = $payload['enterprise'] ?? null; + + if ($value === null) { + $missingFields[] = 'enterprise'; + goto after_enterprise; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['enterprise'] = $value; + + after_enterprise: + + $value = $payload['installation'] ?? null; + + if ($value === null) { + $missingFields[] = 'installation'; + goto after_installation; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; + + after_installation: + + $value = $payload['organization'] ?? null; + + if ($value === null) { + $missingFields[] = 'organization'; + goto after_organization; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; + + after_organization: + + $value = $payload['repository'] ?? null; + + if ($value === null) { + $missingFields[] = 'repository'; + goto after_repository; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repository'] = $value; + + after_repository: + + $value = $payload['sender'] ?? null; + + if ($value === null) { + $missingFields[] = 'sender'; + goto after_sender; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; + + after_sender: + + $value = $payload['starred_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'starred_at'; + goto after_starred_at; + } + + $properties['starred_at'] = $value; + + after_starred_at: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookStarCreated', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookStarCreated::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookStarCreated(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookStarCreated', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookStarDeleted(array $payload): \ApiClients\Client\Github\Schema\WebhookStarDeleted { $properties = []; @@ -3284,6 +3429,7 @@ public function serializeObject(object $object): mixed 'DateTime' => $this->serializeValueDateTime($object), 'DateTimeImmutable' => $this->serializeValueDateTimeImmutable($object), 'DateTimeInterface' => $this->serializeValueDateTimeInterface($object), + 'ApiClients\Client\Github\Schema\WebhookStarCreated' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookStarCreated($object), 'ApiClients\Client\Github\Schema\WebhookStarDeleted' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookStarDeleted($object), default => throw new \LogicException('No serialization defined for $className'), }; @@ -3358,6 +3504,64 @@ private function serializeValueDateTimeInterface(mixed $value): mixed } + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookStarCreated(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookStarCreated); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + $starred_at = $object->starred_at; + + if ($starred_at === null) { + goto after_starred_at; + } + after_starred_at: $result['starred_at'] = $starred_at; + + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookStarDeleted(mixed $object): mixed { \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookStarDeleted); diff --git a/src/Hydrator/WebHook/Team.php b/src/Hydrator/WebHook/Team.php index ee23f3188b..1e87e63b28 100644 --- a/src/Hydrator/WebHook/Team.php +++ b/src/Hydrator/WebHook/Team.php @@ -23,23 +23,34 @@ public function __construct() {} public function hydrateObject(string $className, array $payload): object { return match($className) { - 'ApiClients\Client\Github\Schema\WebhookTeamRemovedFromRepository' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookTeamRemovedFromRepository($payload), + 'ApiClients\Client\Github\Schema\WebhookTeamAddedToRepository' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookTeamAddedToRepository($payload), + 'ApiClients\Client\Github\Schema\WebhookTeamCreated' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookTeamCreated($payload), + 'ApiClients\Client\Github\Schema\WebhookTeamDeleted' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookTeamDeleted($payload), + 'ApiClients\Client\Github\Schema\WebhookTeamEdited' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookTeamEdited($payload), + 'ApiClients\Client\Github\Schema\WebhookTeamRemovedFromRepository' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookTeamRemovedFromRepository($payload), 'ApiClients\Client\Github\Schema\Enterprise' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($payload), 'ApiClients\Client\Github\Schema\SimpleInstallation' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($payload), 'ApiClients\Client\Github\Schema\OrganizationSimple' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($payload), 'ApiClients\Client\Github\Schema\WebhookIssuesOpened\Changes\OldRepository' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesOpened⚡️Changes⚡️OldRepository($payload), 'ApiClients\Client\Github\Schema\SimpleUser' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($payload), 'ApiClients\Client\Github\Schema\WebhookMembershipAdded\Team' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMembershipAdded⚡️Team($payload), + 'ApiClients\Client\Github\Schema\WebhookTeamEdited\Changes' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookTeamEdited⚡️Changes($payload), 'ApiClients\Client\Github\Schema\WebhookDiscussionTransferred\Changes\NewRepository\License' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionTransferred⚡️Changes⚡️NewRepository⚡️License($payload), 'ApiClients\Client\Github\Schema\Discussion\AnswerChosenBy' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Discussion⚡️AnswerChosenBy($payload), 'ApiClients\Client\Github\Schema\WebhookDiscussionTransferred\Changes\NewRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDiscussionTransferred⚡️Changes⚡️NewRepository⚡️Permissions($payload), 'ApiClients\Client\Github\Schema\WebhookMembershipAdded\Team\Parent_' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMembershipAdded⚡️Team⚡️Parent_($payload), + 'ApiClients\Client\Github\Schema\WebhookLabelEdited\Changes\Description' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookLabelEdited⚡️Changes⚡️Description($payload), + 'ApiClients\Client\Github\Schema\WebhookLabelEdited\Changes\Name' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookLabelEdited⚡️Changes⚡️Name($payload), + 'ApiClients\Client\Github\Schema\WebhookTeamEdited\Changes\Privacy' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookTeamEdited⚡️Changes⚡️Privacy($payload), + 'ApiClients\Client\Github\Schema\WebhookTeamEdited\Changes\Repository' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookTeamEdited⚡️Changes⚡️Repository($payload), + 'ApiClients\Client\Github\Schema\WebhookTeamEdited\Changes\Repository\Permissions' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookTeamEdited⚡️Changes⚡️Repository⚡️Permissions($payload), + 'ApiClients\Client\Github\Schema\WebhookTeamEdited\Changes\Repository\Permissions\From' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookTeamEdited⚡️Changes⚡️Repository⚡️Permissions⚡️From($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), }; } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookTeamRemovedFromRepository(array $payload): \ApiClients\Client\Github\Schema\WebhookTeamRemovedFromRepository + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookTeamAddedToRepository(array $payload): \ApiClients\Client\Github\Schema\WebhookTeamAddedToRepository { $properties = []; $missingFields = []; @@ -177,259 +188,891 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh after_team: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookTeamRemovedFromRepository', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookTeamAddedToRepository', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookTeamRemovedFromRepository::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookTeamAddedToRepository::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\WebhookTeamRemovedFromRepository(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookTeamAddedToRepository(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookTeamRemovedFromRepository', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookTeamAddedToRepository', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise(array $payload): \ApiClients\Client\Github\Schema\Enterprise + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookTeamCreated(array $payload): \ApiClients\Client\Github\Schema\WebhookTeamCreated { $properties = []; $missingFields = []; try { - $value = $payload['description'] ?? null; + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'description'; - goto after_description; + $missingFields[] = 'action'; + goto after_action; } - $properties['description'] = $value; + $properties['action'] = $value; - after_description: + after_action: - $value = $payload['html_url'] ?? null; + $value = $payload['enterprise'] ?? null; if ($value === null) { - $missingFields[] = 'html_url'; - goto after_html_url; + $missingFields[] = 'enterprise'; + goto after_enterprise; } - $properties['html_url'] = $value; - - after_html_url: - - $value = $payload['website_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'website_url'; - goto after_website_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['website_url'] = $value; + $properties['enterprise'] = $value; - after_website_url: + after_enterprise: - $value = $payload['id'] ?? null; + $value = $payload['installation'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'installation'; + goto after_installation; } - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['node_id'] = $value; + $properties['installation'] = $value; - after_node_id: + after_installation: - $value = $payload['name'] ?? null; + $value = $payload['organization'] ?? null; if ($value === null) { - $missingFields[] = 'name'; - goto after_name; + $missingFields[] = 'organization'; + goto after_organization; } - $properties['name'] = $value; - - after_name: - - $value = $payload['slug'] ?? null; - - if ($value === null) { - $missingFields[] = 'slug'; - goto after_slug; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['slug'] = $value; + $properties['organization'] = $value; - after_slug: + after_organization: - $value = $payload['created_at'] ?? null; + $value = $payload['repository'] ?? null; if ($value === null) { - $missingFields[] = 'created_at'; - goto after_created_at; + $missingFields[] = 'repository'; + goto after_repository; } - $properties['created_at'] = $value; - - after_created_at: - - $value = $payload['updated_at'] ?? null; - - if ($value === null) { - $missingFields[] = 'updated_at'; - goto after_updated_at; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesOpened⚡️Changes⚡️OldRepository($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['updated_at'] = $value; + $properties['repository'] = $value; - after_updated_at: + after_repository: - $value = $payload['avatar_url'] ?? null; + $value = $payload['sender'] ?? null; if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatar_url; + $missingFields[] = 'sender'; + goto after_sender; } - $properties['avatar_url'] = $value; - - after_avatar_url: - - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Enterprise', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Enterprise::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\Github\Schema\Enterprise(...$properties); - } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Enterprise', $exception, stack: $this->hydrationStack); - } - } - - - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation(array $payload): \ApiClients\Client\Github\Schema\SimpleInstallation - { - $properties = []; - $missingFields = []; - try { - - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['id'] = $value; + $properties['sender'] = $value; - after_id: + after_sender: - $value = $payload['node_id'] ?? null; + $value = $payload['team'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $missingFields[] = 'team'; + goto after_team; } - $properties['node_id'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'team'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMembershipAdded⚡️Team($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['team'] = $value; - after_node_id: + after_team: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleInstallation', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookTeamCreated', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\SimpleInstallation::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookTeamCreated::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\SimpleInstallation(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookTeamCreated(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleInstallation', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookTeamCreated', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple(array $payload): \ApiClients\Client\Github\Schema\OrganizationSimple + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookTeamDeleted(array $payload): \ApiClients\Client\Github\Schema\WebhookTeamDeleted { $properties = []; $missingFields = []; try { - $value = $payload['login'] ?? null; + $value = $payload['action'] ?? null; if ($value === null) { - $missingFields[] = 'login'; - goto after_login; + $missingFields[] = 'action'; + goto after_action; } - $properties['login'] = $value; + $properties['action'] = $value; - after_login: + after_action: - $value = $payload['id'] ?? null; + $value = $payload['enterprise'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'enterprise'; + goto after_enterprise; } - $properties['id'] = $value; - - after_id: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['node_id'] = $value; + $properties['enterprise'] = $value; - after_node_id: + after_enterprise: - $value = $payload['url'] ?? null; + $value = $payload['installation'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $missingFields[] = 'installation'; + goto after_installation; } - $properties['url'] = $value; - - after_url: - - $value = $payload['repos_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_repos_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['repos_url'] = $value; + $properties['installation'] = $value; - after_repos_url: + after_installation: - $value = $payload['events_url'] ?? null; + $value = $payload['organization'] ?? null; + + if ($value === null) { + $missingFields[] = 'organization'; + goto after_organization; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; + + after_organization: + + $value = $payload['repository'] ?? null; + + if ($value === null) { + $missingFields[] = 'repository'; + goto after_repository; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesOpened⚡️Changes⚡️OldRepository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repository'] = $value; + + after_repository: + + $value = $payload['sender'] ?? null; + + if ($value === null) { + $missingFields[] = 'sender'; + goto after_sender; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; + + after_sender: + + $value = $payload['team'] ?? null; + + if ($value === null) { + $missingFields[] = 'team'; + goto after_team; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'team'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMembershipAdded⚡️Team($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['team'] = $value; + + after_team: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookTeamDeleted', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookTeamDeleted::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookTeamDeleted(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookTeamDeleted', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookTeamEdited(array $payload): \ApiClients\Client\Github\Schema\WebhookTeamEdited + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; + + if ($value === null) { + $missingFields[] = 'action'; + goto after_action; + } + + $properties['action'] = $value; + + after_action: + + $value = $payload['changes'] ?? null; + + if ($value === null) { + $missingFields[] = 'changes'; + goto after_changes; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'changes'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookTeamEdited⚡️Changes($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['changes'] = $value; + + after_changes: + + $value = $payload['enterprise'] ?? null; + + if ($value === null) { + $missingFields[] = 'enterprise'; + goto after_enterprise; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['enterprise'] = $value; + + after_enterprise: + + $value = $payload['installation'] ?? null; + + if ($value === null) { + $missingFields[] = 'installation'; + goto after_installation; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; + + after_installation: + + $value = $payload['organization'] ?? null; + + if ($value === null) { + $missingFields[] = 'organization'; + goto after_organization; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; + + after_organization: + + $value = $payload['repository'] ?? null; + + if ($value === null) { + $missingFields[] = 'repository'; + goto after_repository; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesOpened⚡️Changes⚡️OldRepository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repository'] = $value; + + after_repository: + + $value = $payload['sender'] ?? null; + + if ($value === null) { + $missingFields[] = 'sender'; + goto after_sender; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; + + after_sender: + + $value = $payload['team'] ?? null; + + if ($value === null) { + $missingFields[] = 'team'; + goto after_team; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'team'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMembershipAdded⚡️Team($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['team'] = $value; + + after_team: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookTeamEdited', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookTeamEdited::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookTeamEdited(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookTeamEdited', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookTeamRemovedFromRepository(array $payload): \ApiClients\Client\Github\Schema\WebhookTeamRemovedFromRepository + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; + + if ($value === null) { + $missingFields[] = 'action'; + goto after_action; + } + + $properties['action'] = $value; + + after_action: + + $value = $payload['enterprise'] ?? null; + + if ($value === null) { + $missingFields[] = 'enterprise'; + goto after_enterprise; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['enterprise'] = $value; + + after_enterprise: + + $value = $payload['installation'] ?? null; + + if ($value === null) { + $missingFields[] = 'installation'; + goto after_installation; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; + + after_installation: + + $value = $payload['organization'] ?? null; + + if ($value === null) { + $missingFields[] = 'organization'; + goto after_organization; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; + + after_organization: + + $value = $payload['repository'] ?? null; + + if ($value === null) { + $missingFields[] = 'repository'; + goto after_repository; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesOpened⚡️Changes⚡️OldRepository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repository'] = $value; + + after_repository: + + $value = $payload['sender'] ?? null; + + if ($value === null) { + $missingFields[] = 'sender'; + goto after_sender; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; + + after_sender: + + $value = $payload['team'] ?? null; + + if ($value === null) { + $missingFields[] = 'team'; + goto after_team; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'team'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMembershipAdded⚡️Team($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['team'] = $value; + + after_team: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookTeamRemovedFromRepository', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookTeamRemovedFromRepository::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookTeamRemovedFromRepository(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookTeamRemovedFromRepository', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise(array $payload): \ApiClients\Client\Github\Schema\Enterprise + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['description'] ?? null; + + if ($value === null) { + $missingFields[] = 'description'; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } + + $properties['html_url'] = $value; + + after_html_url: + + $value = $payload['website_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'website_url'; + goto after_website_url; + } + + $properties['website_url'] = $value; + + after_website_url: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['slug'] ?? null; + + if ($value === null) { + $missingFields[] = 'slug'; + goto after_slug; + } + + $properties['slug'] = $value; + + after_slug: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'created_at'; + goto after_created_at; + } + + $properties['created_at'] = $value; + + after_created_at: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'updated_at'; + goto after_updated_at; + } + + $properties['updated_at'] = $value; + + after_updated_at: + + $value = $payload['avatar_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'avatar_url'; + goto after_avatar_url; + } + + $properties['avatar_url'] = $value; + + after_avatar_url: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Enterprise', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Enterprise::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\Enterprise(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Enterprise', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation(array $payload): \ApiClients\Client\Github\Schema\SimpleInstallation + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleInstallation', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\SimpleInstallation::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\SimpleInstallation(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleInstallation', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple(array $payload): \ApiClients\Client\Github\Schema\OrganizationSimple + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['login'] ?? null; + + if ($value === null) { + $missingFields[] = 'login'; + goto after_login; + } + + $properties['login'] = $value; + + after_login: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['repos_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'repos_url'; + goto after_repos_url; + } + + $properties['repos_url'] = $value; + + after_repos_url: + + $value = $payload['events_url'] ?? null; if ($value === null) { $missingFields[] = 'events_url'; @@ -1895,27 +2538,133 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh if (is_array($value)) { try { - $this->hydrationStack[] = 'parent'; - $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMembershipAdded⚡️Team⚡️Parent_($value); + $this->hydrationStack[] = 'parent'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMembershipAdded⚡️Team⚡️Parent_($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['parent'] = $value; + + after_parent: + + $value = $payload['permission'] ?? null; + + if ($value === null) { + $missingFields[] = 'permission'; + goto after_permission; + } + + $properties['permission'] = $value; + + after_permission: + + $value = $payload['privacy'] ?? null; + + if ($value === null) { + $missingFields[] = 'privacy'; + goto after_privacy; + } + + $properties['privacy'] = $value; + + after_privacy: + + $value = $payload['repositories_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'repositories_url'; + goto after_repositories_url; + } + + $properties['repositories_url'] = $value; + + after_repositories_url: + + $value = $payload['slug'] ?? null; + + if ($value === null) { + $missingFields[] = 'slug'; + goto after_slug; + } + + $properties['slug'] = $value; + + after_slug: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookMembershipAdded\Team', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookMembershipAdded\Team::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookMembershipAdded\Team(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookMembershipAdded\Team', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookTeamEdited⚡️Changes(array $payload): \ApiClients\Client\Github\Schema\WebhookTeamEdited\Changes + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['description'] ?? null; + + if ($value === null) { + $missingFields[] = 'description'; + goto after_description; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'description'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookLabelEdited⚡️Changes⚡️Description($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'name'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookLabelEdited⚡️Changes⚡️Name($value); } finally { array_pop($this->hydrationStack); } } - $properties['parent'] = $value; - - after_parent: - - $value = $payload['permission'] ?? null; - - if ($value === null) { - $missingFields[] = 'permission'; - goto after_permission; - } - - $properties['permission'] = $value; + $properties['name'] = $value; - after_permission: + after_name: $value = $payload['privacy'] ?? null; @@ -1924,55 +2673,51 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh goto after_privacy; } - $properties['privacy'] = $value; - - after_privacy: - - $value = $payload['repositories_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'repositories_url'; - goto after_repositories_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'privacy'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookTeamEdited⚡️Changes⚡️Privacy($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['repositories_url'] = $value; + $properties['privacy'] = $value; - after_repositories_url: + after_privacy: - $value = $payload['slug'] ?? null; + $value = $payload['repository'] ?? null; if ($value === null) { - $missingFields[] = 'slug'; - goto after_slug; + $missingFields[] = 'repository'; + goto after_repository; } - $properties['slug'] = $value; - - after_slug: - - $value = $payload['url'] ?? null; - - if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookTeamEdited⚡️Changes⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['url'] = $value; + $properties['repository'] = $value; - after_url: + after_repository: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookMembershipAdded\Team', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookTeamEdited\Changes', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookMembershipAdded\Team::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookTeamEdited\Changes::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\WebhookMembershipAdded\Team(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookTeamEdited\Changes(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookMembershipAdded\Team', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookTeamEdited\Changes', $exception, stack: $this->hydrationStack); } } @@ -2481,48 +3226,286 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh $value = $payload['repositories_url'] ?? null; if ($value === null) { - $missingFields[] = 'repositories_url'; - goto after_repositories_url; + $missingFields[] = 'repositories_url'; + goto after_repositories_url; + } + + $properties['repositories_url'] = $value; + + after_repositories_url: + + $value = $payload['slug'] ?? null; + + if ($value === null) { + $missingFields[] = 'slug'; + goto after_slug; + } + + $properties['slug'] = $value; + + after_slug: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookMembershipAdded\Team\Parent_', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookMembershipAdded\Team\Parent_::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookMembershipAdded\Team\Parent_(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookMembershipAdded\Team\Parent_', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookLabelEdited⚡️Changes⚡️Description(array $payload): \ApiClients\Client\Github\Schema\WebhookLabelEdited\Changes\Description + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['from'] ?? null; + + if ($value === null) { + $missingFields[] = 'from'; + goto after_from; + } + + $properties['from'] = $value; + + after_from: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookLabelEdited\Changes\Description', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookLabelEdited\Changes\Description::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookLabelEdited\Changes\Description(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookLabelEdited\Changes\Description', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookLabelEdited⚡️Changes⚡️Name(array $payload): \ApiClients\Client\Github\Schema\WebhookLabelEdited\Changes\Name + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['from'] ?? null; + + if ($value === null) { + $missingFields[] = 'from'; + goto after_from; + } + + $properties['from'] = $value; + + after_from: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookLabelEdited\Changes\Name', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookLabelEdited\Changes\Name::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookLabelEdited\Changes\Name(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookLabelEdited\Changes\Name', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookTeamEdited⚡️Changes⚡️Privacy(array $payload): \ApiClients\Client\Github\Schema\WebhookTeamEdited\Changes\Privacy + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['from'] ?? null; + + if ($value === null) { + $missingFields[] = 'from'; + goto after_from; + } + + $properties['from'] = $value; + + after_from: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookTeamEdited\Changes\Privacy', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookTeamEdited\Changes\Privacy::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookTeamEdited\Changes\Privacy(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookTeamEdited\Changes\Privacy', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookTeamEdited⚡️Changes⚡️Repository(array $payload): \ApiClients\Client\Github\Schema\WebhookTeamEdited\Changes\Repository + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['permissions'] ?? null; + + if ($value === null) { + $missingFields[] = 'permissions'; + goto after_permissions; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'permissions'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookTeamEdited⚡️Changes⚡️Repository⚡️Permissions($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['permissions'] = $value; + + after_permissions: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookTeamEdited\Changes\Repository', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookTeamEdited\Changes\Repository::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookTeamEdited\Changes\Repository(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookTeamEdited\Changes\Repository', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookTeamEdited⚡️Changes⚡️Repository⚡️Permissions(array $payload): \ApiClients\Client\Github\Schema\WebhookTeamEdited\Changes\Repository\Permissions + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['from'] ?? null; + + if ($value === null) { + $missingFields[] = 'from'; + goto after_from; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'from'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookTeamEdited⚡️Changes⚡️Repository⚡️Permissions⚡️From($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['from'] = $value; + + after_from: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookTeamEdited\Changes\Repository\Permissions', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookTeamEdited\Changes\Repository\Permissions::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookTeamEdited\Changes\Repository\Permissions(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookTeamEdited\Changes\Repository\Permissions', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookTeamEdited⚡️Changes⚡️Repository⚡️Permissions⚡️From(array $payload): \ApiClients\Client\Github\Schema\WebhookTeamEdited\Changes\Repository\Permissions\From + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['admin'] ?? null; + + if ($value === null) { + $missingFields[] = 'admin'; + goto after_admin; } - $properties['repositories_url'] = $value; + $properties['admin'] = $value; - after_repositories_url: + after_admin: - $value = $payload['slug'] ?? null; + $value = $payload['pull'] ?? null; if ($value === null) { - $missingFields[] = 'slug'; - goto after_slug; + $missingFields[] = 'pull'; + goto after_pull; } - $properties['slug'] = $value; + $properties['pull'] = $value; - after_slug: + after_pull: - $value = $payload['url'] ?? null; + $value = $payload['push'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $missingFields[] = 'push'; + goto after_push; } - $properties['url'] = $value; + $properties['push'] = $value; - after_url: + after_push: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookMembershipAdded\Team\Parent_', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookTeamEdited\Changes\Repository\Permissions\From', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookMembershipAdded\Team\Parent_::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookTeamEdited\Changes\Repository\Permissions\From::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\WebhookMembershipAdded\Team\Parent_(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookTeamEdited\Changes\Repository\Permissions\From(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookMembershipAdded\Team\Parent_', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookTeamEdited\Changes\Repository\Permissions\From', $exception, stack: $this->hydrationStack); } } @@ -2537,6 +3520,10 @@ public function serializeObject(object $object): mixed 'DateTime' => $this->serializeValueDateTime($object), 'DateTimeImmutable' => $this->serializeValueDateTimeImmutable($object), 'DateTimeInterface' => $this->serializeValueDateTimeInterface($object), + 'ApiClients\Client\Github\Schema\WebhookTeamAddedToRepository' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookTeamAddedToRepository($object), + 'ApiClients\Client\Github\Schema\WebhookTeamCreated' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookTeamCreated($object), + 'ApiClients\Client\Github\Schema\WebhookTeamDeleted' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookTeamDeleted($object), + 'ApiClients\Client\Github\Schema\WebhookTeamEdited' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookTeamEdited($object), 'ApiClients\Client\Github\Schema\WebhookTeamRemovedFromRepository' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookTeamRemovedFromRepository($object), default => throw new \LogicException('No serialization defined for $className'), }; @@ -2611,6 +3598,243 @@ private function serializeValueDateTimeInterface(mixed $value): mixed } + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookTeamAddedToRepository(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookTeamAddedToRepository); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $organization = $object->organization; + + if ($organization === null) { + goto after_organization; + } + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $repository = $object->repository; + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesOpened⚡️Changes⚡️OldRepository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + $team = $object->team; + + if ($team === null) { + goto after_team; + } + $team = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMembershipAdded⚡️Team($team); + after_team: $result['team'] = $team; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookTeamCreated(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookTeamCreated); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $organization = $object->organization; + + if ($organization === null) { + goto after_organization; + } + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $repository = $object->repository; + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesOpened⚡️Changes⚡️OldRepository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + $team = $object->team; + + if ($team === null) { + goto after_team; + } + $team = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMembershipAdded⚡️Team($team); + after_team: $result['team'] = $team; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookTeamDeleted(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookTeamDeleted); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $organization = $object->organization; + + if ($organization === null) { + goto after_organization; + } + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $repository = $object->repository; + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesOpened⚡️Changes⚡️OldRepository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + $team = $object->team; + + if ($team === null) { + goto after_team; + } + $team = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMembershipAdded⚡️Team($team); + after_team: $result['team'] = $team; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookTeamEdited(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookTeamEdited); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $changes = $object->changes; + + if ($changes === null) { + goto after_changes; + } + $changes = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookTeamEdited⚡️Changes($changes); + after_changes: $result['changes'] = $changes; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $organization = $object->organization; + + if ($organization === null) { + goto after_organization; + } + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $repository = $object->repository; + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookIssuesOpened⚡️Changes⚡️OldRepository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + $team = $object->team; + + if ($team === null) { + goto after_team; + } + $team = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookMembershipAdded⚡️Team($team); + after_team: $result['team'] = $team; + + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookTeamRemovedFromRepository(mixed $object): mixed { \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookTeamRemovedFromRepository); diff --git a/src/Hydrator/WebHook/WorkflowJob.php b/src/Hydrator/WebHook/WorkflowJob.php index 6dd6baf0f7..edbf89bd05 100644 --- a/src/Hydrator/WebHook/WorkflowJob.php +++ b/src/Hydrator/WebHook/WorkflowJob.php @@ -23,14 +23,18 @@ public function __construct() {} public function hydrateObject(string $className, array $payload): object { return match($className) { - 'ApiClients\Client\Github\Schema\WebhookWorkflowJobWaiting' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookWorkflowJobWaiting($payload), + 'ApiClients\Client\Github\Schema\WebhookWorkflowJobCompleted' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookWorkflowJobCompleted($payload), + 'ApiClients\Client\Github\Schema\WebhookWorkflowJobInProgress' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookWorkflowJobInProgress($payload), + 'ApiClients\Client\Github\Schema\WebhookWorkflowJobQueued' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookWorkflowJobQueued($payload), + 'ApiClients\Client\Github\Schema\WebhookWorkflowJobWaiting' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookWorkflowJobWaiting($payload), 'ApiClients\Client\Github\Schema\Enterprise' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($payload), 'ApiClients\Client\Github\Schema\SimpleInstallation' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($payload), 'ApiClients\Client\Github\Schema\OrganizationSimple' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($payload), 'ApiClients\Client\Github\Schema\Repository' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($payload), 'ApiClients\Client\Github\Schema\SimpleUser' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($payload), - 'ApiClients\Client\Github\Schema\WebhookWorkflowJobWaiting\WorkflowJob' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookWorkflowJobWaiting⚡️WorkflowJob($payload), 'ApiClients\Client\Github\Schema\Deployment' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Deployment($payload), + 'ApiClients\Client\Github\Schema\WebhookWorkflowJobQueued\WorkflowJob' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookWorkflowJobQueued⚡️WorkflowJob($payload), + 'ApiClients\Client\Github\Schema\WebhookWorkflowJobWaiting\WorkflowJob' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookWorkflowJobWaiting⚡️WorkflowJob($payload), 'ApiClients\Client\Github\Schema\Repository\Permissions' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️Permissions($payload), 'ApiClients\Client\Github\Schema\Repository\TemplateRepository' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository($payload), 'ApiClients\Client\Github\Schema\Repository\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner($payload), @@ -40,6 +44,507 @@ public function hydrateObject(string $className, array $payload): object } + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookWorkflowJobCompleted(array $payload): \ApiClients\Client\Github\Schema\WebhookWorkflowJobCompleted + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; + + if ($value === null) { + $missingFields[] = 'action'; + goto after_action; + } + + $properties['action'] = $value; + + after_action: + + $value = $payload['enterprise'] ?? null; + + if ($value === null) { + $missingFields[] = 'enterprise'; + goto after_enterprise; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['enterprise'] = $value; + + after_enterprise: + + $value = $payload['installation'] ?? null; + + if ($value === null) { + $missingFields[] = 'installation'; + goto after_installation; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; + + after_installation: + + $value = $payload['organization'] ?? null; + + if ($value === null) { + $missingFields[] = 'organization'; + goto after_organization; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; + + after_organization: + + $value = $payload['repository'] ?? null; + + if ($value === null) { + $missingFields[] = 'repository'; + goto after_repository; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repository'] = $value; + + after_repository: + + $value = $payload['sender'] ?? null; + + if ($value === null) { + $missingFields[] = 'sender'; + goto after_sender; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; + + after_sender: + + $value = $payload['workflow_job'] ?? null; + + if ($value === null) { + $properties['workflow_job'] = null; + goto after_workflow_job; + } + + $properties['workflow_job'] = $value; + + after_workflow_job: + + $value = $payload['deployment'] ?? null; + + if ($value === null) { + $missingFields[] = 'deployment'; + goto after_deployment; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'deployment'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Deployment($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['deployment'] = $value; + + after_deployment: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookWorkflowJobCompleted', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookWorkflowJobCompleted::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookWorkflowJobCompleted(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookWorkflowJobCompleted', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookWorkflowJobInProgress(array $payload): \ApiClients\Client\Github\Schema\WebhookWorkflowJobInProgress + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; + + if ($value === null) { + $missingFields[] = 'action'; + goto after_action; + } + + $properties['action'] = $value; + + after_action: + + $value = $payload['enterprise'] ?? null; + + if ($value === null) { + $missingFields[] = 'enterprise'; + goto after_enterprise; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['enterprise'] = $value; + + after_enterprise: + + $value = $payload['installation'] ?? null; + + if ($value === null) { + $missingFields[] = 'installation'; + goto after_installation; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; + + after_installation: + + $value = $payload['organization'] ?? null; + + if ($value === null) { + $missingFields[] = 'organization'; + goto after_organization; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; + + after_organization: + + $value = $payload['repository'] ?? null; + + if ($value === null) { + $missingFields[] = 'repository'; + goto after_repository; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repository'] = $value; + + after_repository: + + $value = $payload['sender'] ?? null; + + if ($value === null) { + $missingFields[] = 'sender'; + goto after_sender; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; + + after_sender: + + $value = $payload['workflow_job'] ?? null; + + if ($value === null) { + $properties['workflow_job'] = null; + goto after_workflow_job; + } + + $properties['workflow_job'] = $value; + + after_workflow_job: + + $value = $payload['deployment'] ?? null; + + if ($value === null) { + $missingFields[] = 'deployment'; + goto after_deployment; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'deployment'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Deployment($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['deployment'] = $value; + + after_deployment: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookWorkflowJobInProgress', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookWorkflowJobInProgress::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookWorkflowJobInProgress(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookWorkflowJobInProgress', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookWorkflowJobQueued(array $payload): \ApiClients\Client\Github\Schema\WebhookWorkflowJobQueued + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; + + if ($value === null) { + $missingFields[] = 'action'; + goto after_action; + } + + $properties['action'] = $value; + + after_action: + + $value = $payload['enterprise'] ?? null; + + if ($value === null) { + $missingFields[] = 'enterprise'; + goto after_enterprise; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['enterprise'] = $value; + + after_enterprise: + + $value = $payload['installation'] ?? null; + + if ($value === null) { + $missingFields[] = 'installation'; + goto after_installation; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; + + after_installation: + + $value = $payload['organization'] ?? null; + + if ($value === null) { + $missingFields[] = 'organization'; + goto after_organization; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; + + after_organization: + + $value = $payload['repository'] ?? null; + + if ($value === null) { + $missingFields[] = 'repository'; + goto after_repository; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repository'] = $value; + + after_repository: + + $value = $payload['sender'] ?? null; + + if ($value === null) { + $missingFields[] = 'sender'; + goto after_sender; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; + + after_sender: + + $value = $payload['workflow_job'] ?? null; + + if ($value === null) { + $missingFields[] = 'workflow_job'; + goto after_workflow_job; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'workflow_job'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookWorkflowJobQueued⚡️WorkflowJob($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['workflow_job'] = $value; + + after_workflow_job: + + $value = $payload['deployment'] ?? null; + + if ($value === null) { + $missingFields[] = 'deployment'; + goto after_deployment; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'deployment'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Deployment($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['deployment'] = $value; + + after_deployment: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookWorkflowJobQueued', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookWorkflowJobQueued::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookWorkflowJobQueued(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookWorkflowJobQueued', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookWorkflowJobWaiting(array $payload): \ApiClients\Client\Github\Schema\WebhookWorkflowJobWaiting { $properties = []; @@ -1841,100 +2346,320 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Simp after_subscriptions_url: - $value = $payload['organizations_url'] ?? null; + $value = $payload['organizations_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'organizations_url'; + goto after_organizations_url; + } + + $properties['organizations_url'] = $value; + + after_organizations_url: + + $value = $payload['repos_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'repos_url'; + goto after_repos_url; + } + + $properties['repos_url'] = $value; + + after_repos_url: + + $value = $payload['events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'events_url'; + goto after_events_url; + } + + $properties['events_url'] = $value; + + after_events_url: + + $value = $payload['received_events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'received_events_url'; + goto after_received_events_url; + } + + $properties['received_events_url'] = $value; + + after_received_events_url: + + $value = $payload['type'] ?? null; + + if ($value === null) { + $missingFields[] = 'type'; + goto after_type; + } + + $properties['type'] = $value; + + after_type: + + $value = $payload['site_admin'] ?? null; + + if ($value === null) { + $missingFields[] = 'site_admin'; + goto after_site_admin; + } + + $properties['site_admin'] = $value; + + after_site_admin: + + $value = $payload['starred_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'starred_at'; + goto after_starred_at; + } + + $properties['starred_at'] = $value; + + after_starred_at: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleUser', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\SimpleUser::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\SimpleUser(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleUser', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Deployment(array $payload): \ApiClients\Client\Github\Schema\Deployment + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_node_id; + } + + $properties['node_id'] = $value; + + after_node_id: + + $value = $payload['sha'] ?? null; + + if ($value === null) { + $missingFields[] = 'sha'; + goto after_sha; + } + + $properties['sha'] = $value; + + after_sha: + + $value = $payload['ref'] ?? null; + + if ($value === null) { + $missingFields[] = 'ref'; + goto after_ref; + } + + $properties['ref'] = $value; + + after_ref: + + $value = $payload['task'] ?? null; + + if ($value === null) { + $missingFields[] = 'task'; + goto after_task; + } + + $properties['task'] = $value; + + after_task: + + $value = $payload['payload'] ?? null; + + if ($value === null) { + $properties['payload'] = null; + goto after_payload; + } + + $properties['payload'] = $value; + + after_payload: + + $value = $payload['original_environment'] ?? null; + + if ($value === null) { + $missingFields[] = 'original_environment'; + goto after_original_environment; + } + + $properties['original_environment'] = $value; + + after_original_environment: + + $value = $payload['environment'] ?? null; + + if ($value === null) { + $missingFields[] = 'environment'; + goto after_environment; + } + + $properties['environment'] = $value; + + after_environment: + + $value = $payload['description'] ?? null; + + if ($value === null) { + $missingFields[] = 'description'; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['creator'] ?? null; + + if ($value === null) { + $properties['creator'] = null; + goto after_creator; + } + + $properties['creator'] = $value; + + after_creator: + + $value = $payload['created_at'] ?? null; if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizations_url; + $missingFields[] = 'created_at'; + goto after_created_at; } - $properties['organizations_url'] = $value; + $properties['created_at'] = $value; - after_organizations_url: + after_created_at: - $value = $payload['repos_url'] ?? null; + $value = $payload['updated_at'] ?? null; if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_repos_url; + $missingFields[] = 'updated_at'; + goto after_updated_at; } - $properties['repos_url'] = $value; + $properties['updated_at'] = $value; - after_repos_url: + after_updated_at: - $value = $payload['events_url'] ?? null; + $value = $payload['statuses_url'] ?? null; if ($value === null) { - $missingFields[] = 'events_url'; - goto after_events_url; + $missingFields[] = 'statuses_url'; + goto after_statuses_url; } - $properties['events_url'] = $value; + $properties['statuses_url'] = $value; - after_events_url: + after_statuses_url: - $value = $payload['received_events_url'] ?? null; + $value = $payload['repository_url'] ?? null; if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_received_events_url; + $missingFields[] = 'repository_url'; + goto after_repository_url; } - $properties['received_events_url'] = $value; + $properties['repository_url'] = $value; - after_received_events_url: + after_repository_url: - $value = $payload['type'] ?? null; + $value = $payload['transient_environment'] ?? null; if ($value === null) { - $missingFields[] = 'type'; - goto after_type; + $missingFields[] = 'transient_environment'; + goto after_transient_environment; } - $properties['type'] = $value; + $properties['transient_environment'] = $value; - after_type: + after_transient_environment: - $value = $payload['site_admin'] ?? null; + $value = $payload['production_environment'] ?? null; if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_site_admin; + $missingFields[] = 'production_environment'; + goto after_production_environment; } - $properties['site_admin'] = $value; + $properties['production_environment'] = $value; - after_site_admin: + after_production_environment: - $value = $payload['starred_at'] ?? null; + $value = $payload['performed_via_github_app'] ?? null; if ($value === null) { - $missingFields[] = 'starred_at'; - goto after_starred_at; + $properties['performed_via_github_app'] = null; + goto after_performed_via_github_app; } - $properties['starred_at'] = $value; + $properties['performed_via_github_app'] = $value; - after_starred_at: + after_performed_via_github_app: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleUser', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Deployment', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\SimpleUser::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Deployment::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\SimpleUser(...$properties); + return new \ApiClients\Client\Github\Schema\Deployment(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\SimpleUser', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Deployment', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookWorkflowJobWaiting⚡️WorkflowJob(array $payload): \ApiClients\Client\Github\Schema\WebhookWorkflowJobWaiting\WorkflowJob + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookWorkflowJobQueued⚡️WorkflowJob(array $payload): \ApiClients\Client\Github\Schema\WebhookWorkflowJobQueued\WorkflowJob { $properties = []; $missingFields = []; @@ -2127,6 +2852,17 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh after_started_at: + $value = $payload['status'] ?? null; + + if ($value === null) { + $missingFields[] = 'status'; + goto after_status; + } + + $properties['status'] = $value; + + after_status: + $value = $payload['head_branch'] ?? null; if ($value === null) { @@ -2149,17 +2885,6 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh after_workflow_name: - $value = $payload['status'] ?? null; - - if ($value === null) { - $missingFields[] = 'status'; - goto after_status; - } - - $properties['status'] = $value; - - after_status: - $value = $payload['steps'] ?? null; if ($value === null) { @@ -2183,37 +2908,81 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Webh after_url: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookWorkflowJobWaiting\WorkflowJob', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookWorkflowJobQueued\WorkflowJob', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookWorkflowJobWaiting\WorkflowJob::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookWorkflowJobQueued\WorkflowJob::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\WebhookWorkflowJobWaiting\WorkflowJob(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookWorkflowJobQueued\WorkflowJob(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookWorkflowJobWaiting\WorkflowJob', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookWorkflowJobQueued\WorkflowJob', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Deployment(array $payload): \ApiClients\Client\Github\Schema\Deployment + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookWorkflowJobWaiting⚡️WorkflowJob(array $payload): \ApiClients\Client\Github\Schema\WebhookWorkflowJobWaiting\WorkflowJob { $properties = []; $missingFields = []; try { - $value = $payload['url'] ?? null; + $value = $payload['check_run_url'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $missingFields[] = 'check_run_url'; + goto after_check_run_url; } - $properties['url'] = $value; + $properties['check_run_url'] = $value; - after_url: + after_check_run_url: + + $value = $payload['completed_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'completed_at'; + goto after_completed_at; + } + + $properties['completed_at'] = $value; + + after_completed_at: + + $value = $payload['conclusion'] ?? null; + + if ($value === null) { + $missingFields[] = 'conclusion'; + goto after_conclusion; + } + + $properties['conclusion'] = $value; + + after_conclusion: + + $value = $payload['head_sha'] ?? null; + + if ($value === null) { + $missingFields[] = 'head_sha'; + goto after_head_sha; + } + + $properties['head_sha'] = $value; + + after_head_sha: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_html_url; + } + + $properties['html_url'] = $value; + + after_html_url: $value = $payload['id'] ?? null; @@ -2226,194 +2995,194 @@ private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Depl after_id: - $value = $payload['node_id'] ?? null; + $value = $payload['labels'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_node_id; + $missingFields[] = 'labels'; + goto after_labels; } - $properties['node_id'] = $value; + $properties['labels'] = $value; - after_node_id: + after_labels: - $value = $payload['sha'] ?? null; + $value = $payload['name'] ?? null; if ($value === null) { - $missingFields[] = 'sha'; - goto after_sha; + $missingFields[] = 'name'; + goto after_name; } - $properties['sha'] = $value; + $properties['name'] = $value; - after_sha: + after_name: - $value = $payload['ref'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $missingFields[] = 'ref'; - goto after_ref; + $missingFields[] = 'node_id'; + goto after_node_id; } - $properties['ref'] = $value; + $properties['node_id'] = $value; - after_ref: + after_node_id: - $value = $payload['task'] ?? null; + $value = $payload['run_attempt'] ?? null; if ($value === null) { - $missingFields[] = 'task'; - goto after_task; + $missingFields[] = 'run_attempt'; + goto after_run_attempt; } - $properties['task'] = $value; + $properties['run_attempt'] = $value; - after_task: + after_run_attempt: - $value = $payload['payload'] ?? null; + $value = $payload['run_id'] ?? null; if ($value === null) { - $properties['payload'] = null; - goto after_payload; + $missingFields[] = 'run_id'; + goto after_run_id; } - $properties['payload'] = $value; + $properties['run_id'] = $value; - after_payload: + after_run_id: - $value = $payload['original_environment'] ?? null; + $value = $payload['run_url'] ?? null; if ($value === null) { - $missingFields[] = 'original_environment'; - goto after_original_environment; + $missingFields[] = 'run_url'; + goto after_run_url; } - $properties['original_environment'] = $value; + $properties['run_url'] = $value; - after_original_environment: + after_run_url: - $value = $payload['environment'] ?? null; + $value = $payload['runner_group_id'] ?? null; if ($value === null) { - $missingFields[] = 'environment'; - goto after_environment; + $missingFields[] = 'runner_group_id'; + goto after_runner_group_id; } - $properties['environment'] = $value; + $properties['runner_group_id'] = $value; - after_environment: + after_runner_group_id: - $value = $payload['description'] ?? null; + $value = $payload['runner_group_name'] ?? null; if ($value === null) { - $missingFields[] = 'description'; - goto after_description; + $missingFields[] = 'runner_group_name'; + goto after_runner_group_name; } - $properties['description'] = $value; + $properties['runner_group_name'] = $value; - after_description: + after_runner_group_name: - $value = $payload['creator'] ?? null; + $value = $payload['runner_id'] ?? null; if ($value === null) { - $properties['creator'] = null; - goto after_creator; + $missingFields[] = 'runner_id'; + goto after_runner_id; } - $properties['creator'] = $value; + $properties['runner_id'] = $value; - after_creator: + after_runner_id: - $value = $payload['created_at'] ?? null; + $value = $payload['runner_name'] ?? null; if ($value === null) { - $missingFields[] = 'created_at'; - goto after_created_at; + $missingFields[] = 'runner_name'; + goto after_runner_name; } - $properties['created_at'] = $value; + $properties['runner_name'] = $value; - after_created_at: + after_runner_name: - $value = $payload['updated_at'] ?? null; + $value = $payload['started_at'] ?? null; if ($value === null) { - $missingFields[] = 'updated_at'; - goto after_updated_at; + $missingFields[] = 'started_at'; + goto after_started_at; } - $properties['updated_at'] = $value; + $properties['started_at'] = $value; - after_updated_at: + after_started_at: - $value = $payload['statuses_url'] ?? null; + $value = $payload['head_branch'] ?? null; if ($value === null) { - $missingFields[] = 'statuses_url'; - goto after_statuses_url; + $missingFields[] = 'head_branch'; + goto after_head_branch; } - $properties['statuses_url'] = $value; + $properties['head_branch'] = $value; - after_statuses_url: + after_head_branch: - $value = $payload['repository_url'] ?? null; + $value = $payload['workflow_name'] ?? null; if ($value === null) { - $missingFields[] = 'repository_url'; - goto after_repository_url; + $missingFields[] = 'workflow_name'; + goto after_workflow_name; } - $properties['repository_url'] = $value; + $properties['workflow_name'] = $value; - after_repository_url: + after_workflow_name: - $value = $payload['transient_environment'] ?? null; + $value = $payload['status'] ?? null; if ($value === null) { - $missingFields[] = 'transient_environment'; - goto after_transient_environment; + $missingFields[] = 'status'; + goto after_status; } - $properties['transient_environment'] = $value; + $properties['status'] = $value; - after_transient_environment: + after_status: - $value = $payload['production_environment'] ?? null; + $value = $payload['steps'] ?? null; if ($value === null) { - $missingFields[] = 'production_environment'; - goto after_production_environment; + $missingFields[] = 'steps'; + goto after_steps; } - $properties['production_environment'] = $value; + $properties['steps'] = $value; - after_production_environment: + after_steps: - $value = $payload['performed_via_github_app'] ?? null; + $value = $payload['url'] ?? null; if ($value === null) { - $properties['performed_via_github_app'] = null; - goto after_performed_via_github_app; + $missingFields[] = 'url'; + goto after_url; } - $properties['performed_via_github_app'] = $value; + $properties['url'] = $value; - after_performed_via_github_app: + after_url: } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Deployment', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookWorkflowJobWaiting\WorkflowJob', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\Deployment::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookWorkflowJobWaiting\WorkflowJob::class, $missingFields, stack: $this->hydrationStack); } try { - return new \ApiClients\Client\Github\Schema\Deployment(...$properties); + return new \ApiClients\Client\Github\Schema\WebhookWorkflowJobWaiting\WorkflowJob(...$properties); } catch (\Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\Deployment', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookWorkflowJobWaiting\WorkflowJob', $exception, stack: $this->hydrationStack); } } @@ -3799,6 +4568,9 @@ public function serializeObject(object $object): mixed 'DateTime' => $this->serializeValueDateTime($object), 'DateTimeImmutable' => $this->serializeValueDateTimeImmutable($object), 'DateTimeInterface' => $this->serializeValueDateTimeInterface($object), + 'ApiClients\Client\Github\Schema\WebhookWorkflowJobCompleted' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookWorkflowJobCompleted($object), + 'ApiClients\Client\Github\Schema\WebhookWorkflowJobInProgress' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookWorkflowJobInProgress($object), + 'ApiClients\Client\Github\Schema\WebhookWorkflowJobQueued' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookWorkflowJobQueued($object), 'ApiClients\Client\Github\Schema\WebhookWorkflowJobWaiting' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookWorkflowJobWaiting($object), default => throw new \LogicException('No serialization defined for $className'), }; @@ -3873,6 +4645,196 @@ private function serializeValueDateTimeInterface(mixed $value): mixed } + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookWorkflowJobCompleted(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookWorkflowJobCompleted); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + $workflow_job = $object->workflow_job; + + if ($workflow_job === null) { + goto after_workflow_job; + } + after_workflow_job: $result['workflow_job'] = $workflow_job; + + + $deployment = $object->deployment; + $deployment = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Deployment($deployment); + after_deployment: $result['deployment'] = $deployment; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookWorkflowJobInProgress(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookWorkflowJobInProgress); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + $workflow_job = $object->workflow_job; + + if ($workflow_job === null) { + goto after_workflow_job; + } + after_workflow_job: $result['workflow_job'] = $workflow_job; + + + $deployment = $object->deployment; + $deployment = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Deployment($deployment); + after_deployment: $result['deployment'] = $deployment; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookWorkflowJobQueued(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookWorkflowJobQueued); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + $workflow_job = $object->workflow_job; + + if ($workflow_job === null) { + goto after_workflow_job; + } + $workflow_job = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookWorkflowJobQueued⚡️WorkflowJob($workflow_job); + after_workflow_job: $result['workflow_job'] = $workflow_job; + + + $deployment = $object->deployment; + $deployment = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Deployment($deployment); + after_deployment: $result['deployment'] = $deployment; + + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookWorkflowJobWaiting(mixed $object): mixed { \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookWorkflowJobWaiting); diff --git a/src/Hydrator/WebHook/WorkflowRun.php b/src/Hydrator/WebHook/WorkflowRun.php index 02f31e2099..d31b6579bf 100644 --- a/src/Hydrator/WebHook/WorkflowRun.php +++ b/src/Hydrator/WebHook/WorkflowRun.php @@ -23,7 +23,9 @@ public function __construct() {} public function hydrateObject(string $className, array $payload): object { return match($className) { - 'ApiClients\Client\Github\Schema\WebhookWorkflowRunRequested' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookWorkflowRunRequested($payload), + 'ApiClients\Client\Github\Schema\WebhookWorkflowRunCompleted' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookWorkflowRunCompleted($payload), + 'ApiClients\Client\Github\Schema\WebhookWorkflowRunInProgress' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookWorkflowRunInProgress($payload), + 'ApiClients\Client\Github\Schema\WebhookWorkflowRunRequested' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookWorkflowRunRequested($payload), 'ApiClients\Client\Github\Schema\Enterprise' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($payload), 'ApiClients\Client\Github\Schema\SimpleInstallation' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($payload), 'ApiClients\Client\Github\Schema\OrganizationSimple' => $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($payload), @@ -44,6 +46,334 @@ public function hydrateObject(string $className, array $payload): object } + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookWorkflowRunCompleted(array $payload): \ApiClients\Client\Github\Schema\WebhookWorkflowRunCompleted + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; + + if ($value === null) { + $missingFields[] = 'action'; + goto after_action; + } + + $properties['action'] = $value; + + after_action: + + $value = $payload['enterprise'] ?? null; + + if ($value === null) { + $missingFields[] = 'enterprise'; + goto after_enterprise; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['enterprise'] = $value; + + after_enterprise: + + $value = $payload['installation'] ?? null; + + if ($value === null) { + $missingFields[] = 'installation'; + goto after_installation; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; + + after_installation: + + $value = $payload['organization'] ?? null; + + if ($value === null) { + $missingFields[] = 'organization'; + goto after_organization; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; + + after_organization: + + $value = $payload['repository'] ?? null; + + if ($value === null) { + $missingFields[] = 'repository'; + goto after_repository; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repository'] = $value; + + after_repository: + + $value = $payload['sender'] ?? null; + + if ($value === null) { + $missingFields[] = 'sender'; + goto after_sender; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; + + after_sender: + + $value = $payload['workflow'] ?? null; + + if ($value === null) { + $missingFields[] = 'workflow'; + goto after_workflow; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'workflow'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDeploymentCreated⚡️Workflow($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['workflow'] = $value; + + after_workflow: + + $value = $payload['workflow_run'] ?? null; + + if ($value === null) { + $properties['workflow_run'] = null; + goto after_workflow_run; + } + + $properties['workflow_run'] = $value; + + after_workflow_run: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookWorkflowRunCompleted', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookWorkflowRunCompleted::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookWorkflowRunCompleted(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookWorkflowRunCompleted', $exception, stack: $this->hydrationStack); + } + } + + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookWorkflowRunInProgress(array $payload): \ApiClients\Client\Github\Schema\WebhookWorkflowRunInProgress + { + $properties = []; + $missingFields = []; + try { + + $value = $payload['action'] ?? null; + + if ($value === null) { + $missingFields[] = 'action'; + goto after_action; + } + + $properties['action'] = $value; + + after_action: + + $value = $payload['enterprise'] ?? null; + + if ($value === null) { + $missingFields[] = 'enterprise'; + goto after_enterprise; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['enterprise'] = $value; + + after_enterprise: + + $value = $payload['installation'] ?? null; + + if ($value === null) { + $missingFields[] = 'installation'; + goto after_installation; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; + + after_installation: + + $value = $payload['organization'] ?? null; + + if ($value === null) { + $missingFields[] = 'organization'; + goto after_organization; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; + + after_organization: + + $value = $payload['repository'] ?? null; + + if ($value === null) { + $missingFields[] = 'repository'; + goto after_repository; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repository'] = $value; + + after_repository: + + $value = $payload['sender'] ?? null; + + if ($value === null) { + $missingFields[] = 'sender'; + goto after_sender; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; + + after_sender: + + $value = $payload['workflow'] ?? null; + + if ($value === null) { + $missingFields[] = 'workflow'; + goto after_workflow; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'workflow'; + $value = $this->hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDeploymentCreated⚡️Workflow($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['workflow'] = $value; + + after_workflow: + + $value = $payload['workflow_run'] ?? null; + + if ($value === null) { + $properties['workflow_run'] = null; + goto after_workflow_run; + } + + $properties['workflow_run'] = $value; + + after_workflow_run: + + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookWorkflowRunInProgress', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\Github\Schema\WebhookWorkflowRunInProgress::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\Github\Schema\WebhookWorkflowRunInProgress(...$properties); + } catch (\Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\Github\Schema\WebhookWorkflowRunInProgress', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookWorkflowRunRequested(array $payload): \ApiClients\Client\Github\Schema\WebhookWorkflowRunRequested { $properties = []; @@ -4865,6 +5195,8 @@ public function serializeObject(object $object): mixed 'DateTime' => $this->serializeValueDateTime($object), 'DateTimeImmutable' => $this->serializeValueDateTimeImmutable($object), 'DateTimeInterface' => $this->serializeValueDateTimeInterface($object), + 'ApiClients\Client\Github\Schema\WebhookWorkflowRunCompleted' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookWorkflowRunCompleted($object), + 'ApiClients\Client\Github\Schema\WebhookWorkflowRunInProgress' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookWorkflowRunInProgress($object), 'ApiClients\Client\Github\Schema\WebhookWorkflowRunRequested' => $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookWorkflowRunRequested($object), default => throw new \LogicException('No serialization defined for $className'), }; @@ -4939,6 +5271,140 @@ private function serializeValueDateTimeInterface(mixed $value): mixed } + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookWorkflowRunCompleted(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookWorkflowRunCompleted); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + $workflow = $object->workflow; + + if ($workflow === null) { + goto after_workflow; + } + $workflow = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDeploymentCreated⚡️Workflow($workflow); + after_workflow: $result['workflow'] = $workflow; + + + $workflow_run = $object->workflow_run; + + if ($workflow_run === null) { + goto after_workflow_run; + } + after_workflow_run: $result['workflow_run'] = $workflow_run; + + + return $result; + } + + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookWorkflowRunInProgress(mixed $object): mixed + { + \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookWorkflowRunInProgress); + $result = []; + + $action = $object->action; + + if ($action === null) { + goto after_action; + } + after_action: $result['action'] = $action; + + + $enterprise = $object->enterprise; + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Enterprise($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + + $installation = $object->installation; + $installation = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + + $organization = $object->organization; + $organization = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️OrganizationSimple($organization); + after_organization: $result['organization'] = $organization; + + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + $repository = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + + $sender = $object->sender; + + if ($sender === null) { + goto after_sender; + } + $sender = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + + $workflow = $object->workflow; + + if ($workflow === null) { + goto after_workflow; + } + $workflow = $this->serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookDeploymentCreated⚡️Workflow($workflow); + after_workflow: $result['workflow'] = $workflow; + + + $workflow_run = $object->workflow_run; + + if ($workflow_run === null) { + goto after_workflow_run; + } + after_workflow_run: $result['workflow_run'] = $workflow_run; + + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️Github⚡️Schema⚡️WebhookWorkflowRunRequested(mixed $object): mixed { \assert($object instanceof \ApiClients\Client\Github\Schema\WebhookWorkflowRunRequested); diff --git a/src/Hydrators.php b/src/Hydrators.php index 079e42b3bd..393ccb4789 100644 --- a/src/Hydrators.php +++ b/src/Hydrators.php @@ -312,310 +312,310 @@ final class Hydrators implements \EventSauce\ObjectHydrator\ObjectMapper public function hydrateObject(string $className, array $payload) : object { return match ($className) { - '\\ApiClients\\Client\\Github\\Schema\\Root' => $this->getObjectMapperOperation🌀Root()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\Integration' => $this->getObjectMapperOperation🌀App()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Apps\\CreateFromManifest\\Response\\Applicationjson\\H201', '\\ApiClients\\Client\\Github\\Schema\\BasicError', '\\ApiClients\\Client\\Github\\Schema\\ValidationErrorSimple' => $this->getObjectMapperOperation🌀AppManifests🌀CbCodeRcb🌀Conversions()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\WebhookConfig' => $this->getObjectMapperOperation🌀App🌀Hook🌀Config()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\HookDeliveryItem', '\\ApiClients\\Client\\Github\\Schema\\ScimError', '\\ApiClients\\Client\\Github\\Schema\\ValidationError' => $this->getObjectMapperOperation🌀App🌀Hook🌀Deliveries()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\HookDelivery' => $this->getObjectMapperOperation🌀App🌀Hook🌀Deliveries🌀CbDeliveryIdRcb()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\WebhookPackagePublished\\Package\\PackageVersion\\NpmMetadata\\Dependencies' => $this->getObjectMapperOperation🌀App🌀Hook🌀Deliveries🌀CbDeliveryIdRcb🌀Attempts()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\Installation' => $this->getObjectMapperOperation🌀App🌀Installations()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\InstallationToken' => $this->getObjectMapperOperation🌀App🌀Installations🌀CbInstallationIdRcb🌀AccessTokens()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\Authorization' => $this->getObjectMapperOperation🌀Applications🌀CbClientIdRcb🌀Token()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\CodeOfConduct' => $this->getObjectMapperOperation🌀CodesOfConduct()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Emojis\\Get\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Emojis()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\DependabotAlertWithRepository' => $this->getObjectMapperOperation🌀Enterprises🌀CbEnterpriseRcb🌀Dependabot🌀Alerts()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\OrganizationSecretScanningAlert', '\\ApiClients\\Client\\Github\\Schema\\Operation\\SecretScanning\\ListAlertsForEnterprise\\Response\\Applicationjson\\H503' => $this->getObjectMapperOperation🌀Enterprises🌀CbEnterpriseRcb🌀SecretScanning🌀Alerts()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\Event' => $this->getObjectMapperOperation🌀Events()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\Feed' => $this->getObjectMapperOperation🌀Feeds()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\BaseGist', '\\ApiClients\\Client\\Github\\Schema\\GistSimple' => $this->getObjectMapperOperation🌀Gists()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Gists\\Get\\Response\\Applicationjson\\H403' => $this->getObjectMapperOperation🌀Gists🌀CbGistIdRcb()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\GistComment' => $this->getObjectMapperOperation🌀Gists🌀CbGistIdRcb🌀Comments()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\GistCommit' => $this->getObjectMapperOperation🌀Gists🌀CbGistIdRcb🌀Commits()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Gists\\CheckIsStarred\\Response\\Applicationjson\\H404' => $this->getObjectMapperOperation🌀Gists🌀CbGistIdRcb🌀Star()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\WebHookHeader\\UserAgent' => $this->getObjectMapperOperation🌀Gitignore🌀Templates()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\GitignoreTemplate' => $this->getObjectMapperOperation🌀Gitignore🌀Templates🌀CbNameRcb()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Apps\\ListReposAccessibleToInstallation\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Installation🌀Repositories()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\Issue' => $this->getObjectMapperOperation🌀Issues()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\LicenseSimple' => $this->getObjectMapperOperation🌀Licenses()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\License' => $this->getObjectMapperOperation🌀Licenses🌀CbLicenseRcb()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\MarketplacePurchase' => $this->getObjectMapperOperation🌀MarketplaceListing🌀Accounts🌀CbAccountIdRcb()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\MarketplaceListingPlan' => $this->getObjectMapperOperation🌀MarketplaceListing🌀Plans()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\ApiOverview' => $this->getObjectMapperOperation🌀Meta()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\Thread', '\\ApiClients\\Client\\Github\\Schema\\Operation\\Activity\\MarkNotificationsAsRead\\Response\\Applicationjson\\H202' => $this->getObjectMapperOperation🌀Notifications()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\ThreadSubscription' => $this->getObjectMapperOperation🌀Notifications🌀Threads🌀CbThreadIdRcb🌀Subscription()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\OrganizationSimple' => $this->getObjectMapperOperation🌀Organizations()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\OrganizationFull', '\\ApiClients\\Client\\Github\\Schema\\Operation\\Orgs\\Update\\Response\\Applicationjson\\H422' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\ActionsCacheUsageOrgEnterprise' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Actions🌀Cache🌀Usage()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Actions\\GetActionsCacheUsageByRepoForOrg\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Actions🌀Cache🌀UsageByRepository()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\OidcCustomSub', '\\ApiClients\\Client\\Github\\Schema\\EmptyObject' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Actions🌀Oidc🌀Customization🌀Sub()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\ActionsOrganizationPermissions' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Actions🌀Permissions()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Actions\\ListSelectedRepositoriesEnabledGithubActionsOrganization\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Actions🌀Permissions🌀Repositories()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\SelectedActions' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Actions🌀Permissions🌀SelectedActions()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\ActionsGetDefaultWorkflowPermissions' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Actions🌀Permissions🌀Workflow()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Actions\\ListRequiredWorkflows\\Response\\Applicationjson\\H200', '\\ApiClients\\Client\\Github\\Schema\\RequiredWorkflow' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Actions🌀RequiredWorkflows()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Actions\\ListSelfHostedRunnersForOrg\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Actions🌀Runners()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\RunnerApplication' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Actions🌀Runners🌀Downloads()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\AuthenticationToken' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Actions🌀Runners🌀RegistrationToken()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\Runner' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Actions🌀Runners🌀CbRunnerIdRcb()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Actions\\ListLabelsForSelfHostedRunnerForOrg\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Actions🌀Runners🌀CbRunnerIdRcb🌀Labels()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Actions\\ListOrgSecrets\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Actions🌀Secrets()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\ActionsPublicKey' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Actions🌀Secrets🌀PublicKey()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\OrganizationActionsSecret' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Actions🌀Secrets🌀CbSecretNameRcb()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Actions\\ListSelectedReposForOrgSecret\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Actions🌀Secrets🌀CbSecretNameRcb🌀Repositories()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Actions\\ListOrgVariables\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Actions🌀Variables()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\OrganizationActionsVariable' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Actions🌀Variables🌀CbNameRcb()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\SimpleUser' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Blocks()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\CodeScanningOrganizationAlertItems' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀CodeScanning🌀Alerts()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Codespaces\\ListInOrganization\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Codespaces()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Codespaces\\ListOrgSecrets\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Codespaces🌀Secrets()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\CodespacesPublicKey' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Codespaces🌀Secrets🌀PublicKey()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\CodespacesOrgSecret' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Codespaces🌀Secrets🌀CbSecretNameRcb()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Dependabot\\ListOrgSecrets\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Dependabot🌀Secrets()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\DependabotPublicKey' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Dependabot🌀Secrets🌀PublicKey()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\OrganizationDependabotSecret' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Dependabot🌀Secrets🌀CbSecretNameRcb()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\OrganizationInvitation' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀FailedInvitations()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\OrgHook' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Hooks()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Orgs\\ListAppInstallations\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Installations()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Interactions\\GetRestrictionsForOrg\\Response\\Applicationjson\\H200', '\\ApiClients\\Client\\Github\\Schema\\InteractionLimitResponse' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀InteractionLimits()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\Team' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Invitations🌀CbInvitationIdRcb🌀Teams()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\Codespace' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Members🌀CbUsernameRcb🌀Codespaces🌀CbCodespaceNameRcb🌀Stop()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\OrgMembership' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Memberships🌀CbUsernameRcb()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\Migration' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Migrations()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\MinimalRepository' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Migrations🌀CbMigrationIdRcb🌀Repositories()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Orgs\\RemoveOutsideCollaborator\\Response\\Applicationjson\\H422' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀OutsideCollaborators🌀CbUsernameRcb()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\Package' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Packages()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\PackageVersion' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Packages🌀CbPackageTypeRcb🌀CbPackageNameRcb🌀Versions()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\Project' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Projects()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\Repository' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Repos()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\TeamSimple' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀SecurityManagers()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\ActionsBillingUsage' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Settings🌀Billing🌀Actions()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\PackagesBillingUsage' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Settings🌀Billing🌀Packages()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\CombinedBillingUsage' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Settings🌀Billing🌀SharedStorage()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\TeamFull' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Teams()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\TeamDiscussion' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Teams🌀CbTeamSlugRcb🌀Discussions()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\TeamDiscussionComment' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Teams🌀CbTeamSlugRcb🌀Discussions🌀CbDiscussionNumberRcb🌀Comments()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\Reaction' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Teams🌀CbTeamSlugRcb🌀Discussions🌀CbDiscussionNumberRcb🌀Comments🌀CbCommentNumberRcb🌀Reactions()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\TeamMembership' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Teams🌀CbTeamSlugRcb🌀Memberships🌀CbUsernameRcb()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\TeamProject' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Teams🌀CbTeamSlugRcb🌀Projects()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\TeamRepository' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Teams🌀CbTeamSlugRcb🌀Repos🌀CbOwnerRcb🌀CbRepoRcb()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\ProjectCard', '\\ApiClients\\Client\\Github\\Schema\\Operation\\Projects\\DeleteCard\\Response\\Applicationjson\\H403' => $this->getObjectMapperOperation🌀Projects🌀Columns🌀Cards🌀CbCardIdRcb()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Projects\\MoveCard\\Response\\Applicationjson\\H403', '\\ApiClients\\Client\\Github\\Schema\\Operation\\Projects\\MoveCard\\Response\\Applicationjson\\H503' => $this->getObjectMapperOperation🌀Projects🌀Columns🌀Cards🌀CbCardIdRcb🌀Moves()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\ProjectColumn' => $this->getObjectMapperOperation🌀Projects🌀Columns🌀CbColumnIdRcb()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\ProjectCollaboratorPermission' => $this->getObjectMapperOperation🌀Projects🌀CbProjectIdRcb🌀Collaborators🌀CbUsernameRcb🌀Permission()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\RateLimitOverview' => $this->getObjectMapperOperation🌀RateLimit()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Actions\\ListRepoRequiredWorkflows\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Repos🌀CbOrgRcb🌀CbRepoRcb🌀Actions🌀RequiredWorkflows()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\RepoRequiredWorkflow' => $this->getObjectMapperOperation🌀Repos🌀CbOrgRcb🌀CbRepoRcb🌀Actions🌀RequiredWorkflows🌀CbRequiredWorkflowIdForRepoRcb()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\WorkflowUsage' => $this->getObjectMapperOperation🌀Repos🌀CbOrgRcb🌀CbRepoRcb🌀Actions🌀RequiredWorkflows🌀CbRequiredWorkflowIdForRepoRcb🌀Timing()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\FullRepository' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Actions\\ListArtifactsForRepo\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Actions🌀Artifacts()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\Artifact' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Actions🌀Artifacts🌀CbArtifactIdRcb()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\ActionsCacheUsageByRepository' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Actions🌀Cache🌀Usage()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\ActionsCacheList' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Actions🌀Caches()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\Job' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Actions🌀Jobs🌀CbJobIdRcb()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\OidcCustomSubRepo' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Actions🌀Oidc🌀Customization🌀Sub()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\ActionsRepositoryPermissions' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Actions🌀Permissions()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\ActionsWorkflowAccessToRepository' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Actions🌀Permissions🌀Access()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Actions\\ListRequiredWorkflowRuns\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Actions🌀RequiredWorkflows🌀CbRequiredWorkflowIdForRepoRcb🌀Runs()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\WorkflowRun' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Actions🌀Runs🌀CbRunIdRcb()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\EnvironmentApprovals' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Actions🌀Runs🌀CbRunIdRcb🌀Approvals()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Actions\\ListJobsForWorkflowRunAttempt\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Actions🌀Runs🌀CbRunIdRcb🌀Attempts🌀CbAttemptNumberRcb🌀Jobs()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\PendingDeployment', '\\ApiClients\\Client\\Github\\Schema\\Deployment' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Actions🌀Runs🌀CbRunIdRcb🌀PendingDeployments()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\WorkflowRunUsage' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Actions🌀Runs🌀CbRunIdRcb🌀Timing()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Actions\\ListRepoSecrets\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Actions🌀Secrets()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\ActionsSecret' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Actions🌀Secrets🌀CbSecretNameRcb()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Actions\\ListRepoVariables\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Actions🌀Variables()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\ActionsVariable' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Actions🌀Variables🌀CbNameRcb()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Actions\\ListRepoWorkflows\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Actions🌀Workflows()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\Workflow' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Actions🌀Workflows🌀CbWorkflowIdRcb()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\Autolink' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Autolinks()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\ShortBranch' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Branches()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\BranchWithProtection' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Branches🌀CbBranchRcb()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\BranchProtection', '\\ApiClients\\Client\\Github\\Schema\\ProtectedBranch' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Branches🌀CbBranchRcb🌀Protection()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\ProtectedBranchAdminEnforced' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Branches🌀CbBranchRcb🌀Protection🌀EnforceAdmins()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\ProtectedBranchPullRequestReview' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Branches🌀CbBranchRcb🌀Protection🌀RequiredPullRequestReviews()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\StatusCheckPolicy' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Branches🌀CbBranchRcb🌀Protection🌀RequiredStatusChecks()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\BranchRestrictionPolicy' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Branches🌀CbBranchRcb🌀Protection🌀Restrictions()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\CheckRun' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀CheckRuns()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\CheckAnnotation' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀CheckDashRuns🌀CbCheckRunIdRcb🌀Annotations()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\CheckSuite' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀CheckSuites()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\CheckSuitePreference' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀CheckSuites🌀Preferences()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Checks\\ListForSuite\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀CheckDashSuites🌀CbCheckSuiteIdRcb🌀CheckDashRuns()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\CodeScanningAlertItems' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀CodeScanning🌀Alerts()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\CodeScanningAlert' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀CodeDashScanning🌀Alerts🌀CbAlertNumberRcb()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\CodeScanningAlertInstance' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀CodeDashScanning🌀Alerts🌀CbAlertNumberRcb🌀Instances()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\CodeScanningAnalysis' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀CodeScanning🌀Analyses()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\CodeScanning\\GetAnalysis\\Response\\ApplicationjsonPlusSarif\\H200', '\\ApiClients\\Client\\Github\\Schema\\CodeScanningAnalysisDeletion' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀CodeDashScanning🌀Analyses🌀CbAnalysisIdRcb()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\CodeScanningCodeqlDatabase' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀CodeScanning🌀Codeql🌀Databases()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\CodeScanningSarifsReceipt' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀CodeScanning🌀Sarifs()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\CodeScanningSarifsStatus' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀CodeDashScanning🌀Sarifs🌀CbSarifIdRcb()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\CodeownersErrors' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Codeowners🌀Errors()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Codespaces\\ListDevcontainersInRepositoryForAuthenticatedUser\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Codespaces🌀Devcontainers()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Codespaces\\RepoMachinesForAuthenticatedUser\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Codespaces🌀Machines()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Codespaces\\PreFlightWithRepoForAuthenticatedUser\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Codespaces🌀New_()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Codespaces\\ListRepoSecrets\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Codespaces🌀Secrets()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\RepoCodespacesSecret' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Codespaces🌀Secrets🌀CbSecretNameRcb()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\Collaborator' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Collaborators()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\RepositoryInvitation' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Collaborators🌀CbUsernameRcb()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\RepositoryCollaboratorPermission' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Collaborators🌀CbUsernameRcb🌀Permission()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\CommitComment' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Comments()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\Commit' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Commits()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\BranchShort' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Commits🌀CbCommitShaRcb🌀BranchesDashWhereDashHead()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\PullRequestSimple' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Commits🌀CbCommitShaRcb🌀Pulls()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Checks\\ListSuitesForRef\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Commits🌀CbRefRcb🌀CheckSuites()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\CombinedCommitStatus' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Commits🌀CbRefRcb🌀Status()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\Status' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Commits🌀CbRefRcb🌀Statuses()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\CommunityProfile' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Community🌀Profile()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\CommitComparison' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Compare🌀CbBaseheadRcb()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\ContentTree', '\\ApiClients\\Client\\Github\\Schema\\Operation\\Repos\\GetContent\\Response\\Applicationjson\\H200', '\\ApiClients\\Client\\Github\\Schema\\FileCommit' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Contents🌀CbPathRcb()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\Contributor' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Contributors()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\DependabotAlert' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Dependabot🌀Alerts()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Dependabot\\ListRepoSecrets\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Dependabot🌀Secrets()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\DependabotSecret' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Dependabot🌀Secrets🌀CbSecretNameRcb()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\DependencyGraphDiff' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀DependencyGraph🌀Compare🌀CbBaseheadRcb()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\DependencyGraph\\CreateRepositorySnapshot\\Response\\Applicationjson\\H201' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀DependencyGraph🌀Snapshots()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\DeploymentStatus' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Deployments🌀CbDeploymentIdRcb🌀Statuses()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Repos\\GetAllEnvironments\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Environments()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\Environment' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Environments🌀CbEnvironmentNameRcb()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Repos\\ListDeploymentBranchPolicies\\Response\\Applicationjson\\H200', '\\ApiClients\\Client\\Github\\Schema\\DeploymentBranchPolicy' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Environments🌀CbEnvironmentNameRcb🌀DeploymentDashBranchDashPolicies()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\ShortBlob' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Git🌀Blobs()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\Blob' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Git🌀Blobs🌀CbFileShaRcb()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\GitCommit' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Git🌀Commits()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\GitRef' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Git🌀MatchingRefs🌀CbRefRcb()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\GitTag' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Git🌀Tags()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\GitTree' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Git🌀Trees()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\Hook' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Hooks()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\Import' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Import()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\PorterAuthor' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Import🌀Authors()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\PorterLargeFile' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Import🌀LargeFiles()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\IssueComment' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Issues🌀Comments()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\IssueEvent' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Issues🌀Events()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\IssueEventForIssue' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Issues🌀CbIssueNumberRcb🌀Events()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\Label' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Issues🌀CbIssueNumberRcb🌀Labels()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\TimelineIssueEvents' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Issues🌀CbIssueNumberRcb🌀Timeline()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\DeployKey' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Keys()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\Language' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Languages()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\LicenseContent' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀License()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\MergedUpstream' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀MergeUpstream()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\Milestone' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Milestones()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Activity\\MarkRepoNotificationsAsRead\\Response\\Applicationjson\\H202' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Notifications()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\Page' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Pages()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\PageBuild', '\\ApiClients\\Client\\Github\\Schema\\PageBuildStatus' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Pages🌀Builds()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\PageDeployment' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Pages🌀Deployment()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\PagesHealthCheck' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Pages🌀Health()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\PullRequest' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Pulls()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\PullRequestReviewComment' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Pulls🌀Comments()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\DiffEntry' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Pulls🌀CbPullNumberRcb🌀Files()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\PullRequestMergeResult' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Pulls🌀CbPullNumberRcb🌀Merge()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\PullRequestReviewRequest' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Pulls🌀CbPullNumberRcb🌀RequestedReviewers()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\PullRequestReview' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Pulls🌀CbPullNumberRcb🌀Reviews()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\ReviewComment' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Pulls🌀CbPullNumberRcb🌀Reviews🌀CbReviewIdRcb🌀Comments()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\ContentFile' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Readme()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\Release' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Releases()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\ReleaseAsset' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Releases🌀Assets🌀CbAssetIdRcb()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\ReleaseNotesContent' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Releases🌀GenerateNotes()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\SecretScanningAlert' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀SecretScanning🌀Alerts()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\SecretScanningLocation' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀SecretDashScanning🌀Alerts🌀CbAlertNumberRcb🌀Locations()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Activity\\ListStargazersForRepo\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Stargazers()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Repos\\GetCodeFrequencyStats\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Stats🌀CodeFrequency()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\CommitActivity' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Stats🌀CommitActivity()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\ContributorActivity' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Stats🌀Contributors()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\ParticipationStats' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Stats🌀Participation()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\RepositorySubscription' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Subscription()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\Tag' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Tags()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\TagProtection' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Tags🌀Protection()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\Topic' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Topics()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\CloneTraffic' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Traffic🌀Clones()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\ContentTraffic' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Traffic🌀Popular🌀Paths()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\ReferrerTraffic' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Traffic🌀Popular🌀Referrers()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\ViewTraffic' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Traffic🌀Views()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Search\\Code\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Search🌀Code()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Search\\Commits\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Search🌀Commits()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Search\\IssuesAndPullRequests\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Search🌀Issues()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Search\\Labels\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Search🌀Labels()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Search\\Repos\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Search🌀Repositories()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Search\\Topics\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Search🌀Topics()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Search\\Users\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Search🌀Users()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Users\\GetAuthenticated\\Response\\Applicationjson\\H200', '\\ApiClients\\Client\\Github\\Schema\\PrivateUser' => $this->getObjectMapperOperation🌀User()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Codespaces\\ListSecretsForAuthenticatedUser\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀User🌀Codespaces🌀Secrets()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\CodespacesUserPublicKey' => $this->getObjectMapperOperation🌀User🌀Codespaces🌀Secrets🌀PublicKey()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\CodespacesSecret' => $this->getObjectMapperOperation🌀User🌀Codespaces🌀Secrets🌀CbSecretNameRcb()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\CodespaceExportDetails' => $this->getObjectMapperOperation🌀User🌀Codespaces🌀CbCodespaceNameRcb🌀Exports()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\CodespaceWithFullRepository' => $this->getObjectMapperOperation🌀User🌀Codespaces🌀CbCodespaceNameRcb🌀Publish()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\Email' => $this->getObjectMapperOperation🌀User🌀Email🌀Visibility()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\GpgKey' => $this->getObjectMapperOperation🌀User🌀GpgKeys()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Apps\\ListInstallationReposForAuthenticatedUser\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀User🌀Installations🌀CbInstallationIdRcb🌀Repositories()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\Key' => $this->getObjectMapperOperation🌀User🌀Keys()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\UserMarketplacePurchase' => $this->getObjectMapperOperation🌀User🌀MarketplacePurchases()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\SshSigningKey' => $this->getObjectMapperOperation🌀User🌀SshSigningKeys()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\StarredRepository' => $this->getObjectMapperOperation🌀User🌀Starred()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\Hovercard' => $this->getObjectMapperOperation🌀Users🌀CbUsernameRcb🌀Hovercard()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\KeySimple' => $this->getObjectMapperOperation🌀Users🌀CbUsernameRcb🌀Keys()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Activity\\ListReposStarredByUser\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Users🌀CbUsernameRcb🌀Starred()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Meta\\GetAllVersions\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Versions()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\WebhookBranchProtectionRuleEdited' => $this->getObjectMapperWebHook🌀BranchProtectionRule()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\WebhookCheckRunRerequested', '\\ApiClients\\Client\\Github\\Schema\\WebhookCheckRunRerequestedFormEncoded' => $this->getObjectMapperWebHook🌀CheckRun()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\WebhookCheckSuiteRerequested' => $this->getObjectMapperWebHook🌀CheckSuite()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\WebhookCodeScanningAlertReopenedByUser' => $this->getObjectMapperWebHook🌀CodeScanningAlert()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\WebhookCommitCommentCreated' => $this->getObjectMapperWebHook🌀CommitComment()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\WebhookCreate' => $this->getObjectMapperWebHook🌀Create()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\WebhookDelete' => $this->getObjectMapperWebHook🌀Delete()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\WebhookDependabotAlertReopened' => $this->getObjectMapperWebHook🌀DependabotAlert()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\WebhookDeployKeyDeleted' => $this->getObjectMapperWebHook🌀DeployKey()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\WebhookDeploymentCreated' => $this->getObjectMapperWebHook🌀Deployment()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\WebhookDeploymentStatusCreated' => $this->getObjectMapperWebHook🌀DeploymentStatus()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\WebhookDiscussionUnpinned' => $this->getObjectMapperWebHook🌀Discussion()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\WebhookDiscussionCommentEdited' => $this->getObjectMapperWebHook🌀DiscussionComment()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\WebhookFork' => $this->getObjectMapperWebHook🌀Fork()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\WebhookGithubAppAuthorizationRevoked' => $this->getObjectMapperWebHook🌀GithubAppAuthorization()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\WebhookGollum' => $this->getObjectMapperWebHook🌀Gollum()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\WebhookInstallationUnsuspend' => $this->getObjectMapperWebHook🌀Installation()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\WebhookInstallationRepositoriesRemoved' => $this->getObjectMapperWebHook🌀InstallationRepositories()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\WebhookInstallationTargetRenamed' => $this->getObjectMapperWebHook🌀InstallationTarget()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\WebhookIssueCommentEdited' => $this->getObjectMapperWebHook🌀IssueComment()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\WebhookIssuesUnpinned' => $this->getObjectMapperWebHook🌀Issues()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\WebhookLabelEdited' => $this->getObjectMapperWebHook🌀Label()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\WebhookMarketplacePurchasePurchased' => $this->getObjectMapperWebHook🌀MarketplacePurchase()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\WebhookMemberRemoved' => $this->getObjectMapperWebHook🌀Member()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\WebhookMembershipRemoved' => $this->getObjectMapperWebHook🌀Membership()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\WebhookMergeGroupChecksRequested' => $this->getObjectMapperWebHook🌀MergeGroup()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\WebhookMetaDeleted' => $this->getObjectMapperWebHook🌀Meta()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\WebhookMilestoneOpened' => $this->getObjectMapperWebHook🌀Milestone()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\WebhookOrgBlockUnblocked' => $this->getObjectMapperWebHook🌀OrgBlock()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\WebhookOrganizationRenamed' => $this->getObjectMapperWebHook🌀Organization()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\WebhookPackageUpdated' => $this->getObjectMapperWebHook🌀Package()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\WebhookPageBuild' => $this->getObjectMapperWebHook🌀PageBuild()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\WebhookPing', '\\ApiClients\\Client\\Github\\Schema\\WebhookPingFormEncoded' => $this->getObjectMapperWebHook🌀Ping()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\WebhookProjectCardMoved' => $this->getObjectMapperWebHook🌀ProjectCard()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\WebhookProjectReopened' => $this->getObjectMapperWebHook🌀Project()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\WebhookProjectColumnMoved' => $this->getObjectMapperWebHook🌀ProjectColumn()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\WebhookProjectsV2ProjectReopened' => $this->getObjectMapperWebHook🌀ProjectsV2()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\WebhookProjectsV2ItemRestored' => $this->getObjectMapperWebHook🌀ProjectsV2Item()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\WebhookPublic' => $this->getObjectMapperWebHook🌀Public_()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\WebhookPullRequestUnlocked' => $this->getObjectMapperWebHook🌀PullRequest()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\WebhookPullRequestReviewCommentEdited' => $this->getObjectMapperWebHook🌀PullRequestReviewComment()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\WebhookPullRequestReviewSubmitted' => $this->getObjectMapperWebHook🌀PullRequestReview()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\WebhookPullRequestReviewThreadUnresolved' => $this->getObjectMapperWebHook🌀PullRequestReviewThread()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\WebhookPush' => $this->getObjectMapperWebHook🌀Push()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\WebhookRegistryPackageUpdated' => $this->getObjectMapperWebHook🌀RegistryPackage()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\WebhookReleaseUnpublished' => $this->getObjectMapperWebHook🌀Release()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\WebhookRepositoryUnarchived' => $this->getObjectMapperWebHook🌀Repository()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\WebhookRepositoryDispatchSample' => $this->getObjectMapperWebHook🌀RepositoryDispatch()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\WebhookRepositoryImport' => $this->getObjectMapperWebHook🌀RepositoryImport()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\WebhookRepositoryVulnerabilityAlertResolve' => $this->getObjectMapperWebHook🌀RepositoryVulnerabilityAlert()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\WebhookSecretScanningAlertRevoked' => $this->getObjectMapperWebHook🌀SecretScanningAlert()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\WebhookSecretScanningAlertLocationCreated', '\\ApiClients\\Client\\Github\\Schema\\WebhookSecretScanningAlertLocationCreatedFormEncoded' => $this->getObjectMapperWebHook🌀SecretScanningAlertLocation()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\WebhookSecurityAdvisoryWithdrawn' => $this->getObjectMapperWebHook🌀SecurityAdvisory()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\WebhookSecurityAndAnalysis' => $this->getObjectMapperWebHook🌀SecurityAndAnalysis()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\WebhookSponsorshipTierChanged' => $this->getObjectMapperWebHook🌀Sponsorship()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\WebhookStarDeleted' => $this->getObjectMapperWebHook🌀Star()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\WebhookStatus' => $this->getObjectMapperWebHook🌀Status()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\WebhookTeamAdd' => $this->getObjectMapperWebHook🌀TeamAdd()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\WebhookTeamRemovedFromRepository' => $this->getObjectMapperWebHook🌀Team()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\WebhookWatchStarted' => $this->getObjectMapperWebHook🌀Watch()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\WebhookWorkflowDispatch' => $this->getObjectMapperWebHook🌀WorkflowDispatch()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\WebhookWorkflowJobWaiting' => $this->getObjectMapperWebHook🌀WorkflowJob()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\Github\\Schema\\WebhookWorkflowRunRequested' => $this->getObjectMapperWebHook🌀WorkflowRun()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\Root' => $this->getObjectMapperOperation🌀Root()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\Integration' => $this->getObjectMapperOperation🌀App()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Apps\\CreateFromManifest\\Response\\Applicationjson\\H201', 'ApiClients\\Client\\Github\\Schema\\BasicError', 'ApiClients\\Client\\Github\\Schema\\ValidationErrorSimple' => $this->getObjectMapperOperation🌀AppManifests🌀CbCodeRcb🌀Conversions()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\WebhookConfig' => $this->getObjectMapperOperation🌀App🌀Hook🌀Config()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\HookDeliveryItem', 'ApiClients\\Client\\Github\\Schema\\ScimError', 'ApiClients\\Client\\Github\\Schema\\ValidationError' => $this->getObjectMapperOperation🌀App🌀Hook🌀Deliveries()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\HookDelivery' => $this->getObjectMapperOperation🌀App🌀Hook🌀Deliveries🌀CbDeliveryIdRcb()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\WebhookPackagePublished\\Package\\PackageVersion\\NpmMetadata\\Dependencies' => $this->getObjectMapperOperation🌀App🌀Hook🌀Deliveries🌀CbDeliveryIdRcb🌀Attempts()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\Installation' => $this->getObjectMapperOperation🌀App🌀Installations()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\InstallationToken' => $this->getObjectMapperOperation🌀App🌀Installations🌀CbInstallationIdRcb🌀AccessTokens()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\Authorization' => $this->getObjectMapperOperation🌀Applications🌀CbClientIdRcb🌀Token()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\CodeOfConduct' => $this->getObjectMapperOperation🌀CodesOfConduct()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Emojis\\Get\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Emojis()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\DependabotAlertWithRepository' => $this->getObjectMapperOperation🌀Enterprises🌀CbEnterpriseRcb🌀Dependabot🌀Alerts()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\OrganizationSecretScanningAlert', 'ApiClients\\Client\\Github\\Schema\\Operation\\SecretScanning\\ListAlertsForEnterprise\\Response\\Applicationjson\\H503' => $this->getObjectMapperOperation🌀Enterprises🌀CbEnterpriseRcb🌀SecretScanning🌀Alerts()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\Event' => $this->getObjectMapperOperation🌀Events()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\Feed' => $this->getObjectMapperOperation🌀Feeds()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\BaseGist', 'ApiClients\\Client\\Github\\Schema\\GistSimple' => $this->getObjectMapperOperation🌀Gists()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Gists\\Get\\Response\\Applicationjson\\H403' => $this->getObjectMapperOperation🌀Gists🌀CbGistIdRcb()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\GistComment' => $this->getObjectMapperOperation🌀Gists🌀CbGistIdRcb🌀Comments()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\GistCommit' => $this->getObjectMapperOperation🌀Gists🌀CbGistIdRcb🌀Commits()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Gists\\CheckIsStarred\\Response\\Applicationjson\\H404' => $this->getObjectMapperOperation🌀Gists🌀CbGistIdRcb🌀Star()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\WebHookHeader\\UserAgent' => $this->getObjectMapperOperation🌀Gitignore🌀Templates()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\GitignoreTemplate' => $this->getObjectMapperOperation🌀Gitignore🌀Templates🌀CbNameRcb()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Apps\\ListReposAccessibleToInstallation\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Installation🌀Repositories()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\Issue' => $this->getObjectMapperOperation🌀Issues()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\LicenseSimple' => $this->getObjectMapperOperation🌀Licenses()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\License' => $this->getObjectMapperOperation🌀Licenses🌀CbLicenseRcb()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\MarketplacePurchase' => $this->getObjectMapperOperation🌀MarketplaceListing🌀Accounts🌀CbAccountIdRcb()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\MarketplaceListingPlan' => $this->getObjectMapperOperation🌀MarketplaceListing🌀Plans()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\ApiOverview' => $this->getObjectMapperOperation🌀Meta()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\Thread', 'ApiClients\\Client\\Github\\Schema\\Operation\\Activity\\MarkNotificationsAsRead\\Response\\Applicationjson\\H202' => $this->getObjectMapperOperation🌀Notifications()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\ThreadSubscription' => $this->getObjectMapperOperation🌀Notifications🌀Threads🌀CbThreadIdRcb🌀Subscription()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\OrganizationSimple' => $this->getObjectMapperOperation🌀Organizations()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\OrganizationFull', 'ApiClients\\Client\\Github\\Schema\\Operation\\Orgs\\Update\\Response\\Applicationjson\\H422' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\ActionsCacheUsageOrgEnterprise' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Actions🌀Cache🌀Usage()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Actions\\GetActionsCacheUsageByRepoForOrg\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Actions🌀Cache🌀UsageByRepository()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\OidcCustomSub', 'ApiClients\\Client\\Github\\Schema\\EmptyObject' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Actions🌀Oidc🌀Customization🌀Sub()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\ActionsOrganizationPermissions' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Actions🌀Permissions()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Actions\\ListSelectedRepositoriesEnabledGithubActionsOrganization\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Actions🌀Permissions🌀Repositories()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\SelectedActions' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Actions🌀Permissions🌀SelectedActions()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\ActionsGetDefaultWorkflowPermissions' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Actions🌀Permissions🌀Workflow()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Actions\\ListRequiredWorkflows\\Response\\Applicationjson\\H200', 'ApiClients\\Client\\Github\\Schema\\RequiredWorkflow' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Actions🌀RequiredWorkflows()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Actions\\ListSelfHostedRunnersForOrg\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Actions🌀Runners()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\RunnerApplication' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Actions🌀Runners🌀Downloads()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\AuthenticationToken' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Actions🌀Runners🌀RegistrationToken()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\Runner' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Actions🌀Runners🌀CbRunnerIdRcb()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Actions\\ListLabelsForSelfHostedRunnerForOrg\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Actions🌀Runners🌀CbRunnerIdRcb🌀Labels()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Actions\\ListOrgSecrets\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Actions🌀Secrets()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\ActionsPublicKey' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Actions🌀Secrets🌀PublicKey()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\OrganizationActionsSecret' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Actions🌀Secrets🌀CbSecretNameRcb()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Actions\\ListSelectedReposForOrgSecret\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Actions🌀Secrets🌀CbSecretNameRcb🌀Repositories()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Actions\\ListOrgVariables\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Actions🌀Variables()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\OrganizationActionsVariable' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Actions🌀Variables🌀CbNameRcb()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\SimpleUser' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Blocks()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\CodeScanningOrganizationAlertItems' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀CodeScanning🌀Alerts()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Codespaces\\ListInOrganization\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Codespaces()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Codespaces\\ListOrgSecrets\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Codespaces🌀Secrets()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\CodespacesPublicKey' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Codespaces🌀Secrets🌀PublicKey()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\CodespacesOrgSecret' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Codespaces🌀Secrets🌀CbSecretNameRcb()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Dependabot\\ListOrgSecrets\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Dependabot🌀Secrets()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\DependabotPublicKey' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Dependabot🌀Secrets🌀PublicKey()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\OrganizationDependabotSecret' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Dependabot🌀Secrets🌀CbSecretNameRcb()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\OrganizationInvitation' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀FailedInvitations()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\OrgHook' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Hooks()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Orgs\\ListAppInstallations\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Installations()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Interactions\\GetRestrictionsForOrg\\Response\\Applicationjson\\H200', 'ApiClients\\Client\\Github\\Schema\\InteractionLimitResponse' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀InteractionLimits()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\Team' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Invitations🌀CbInvitationIdRcb🌀Teams()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\Codespace' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Members🌀CbUsernameRcb🌀Codespaces🌀CbCodespaceNameRcb🌀Stop()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\OrgMembership' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Memberships🌀CbUsernameRcb()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\Migration' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Migrations()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\MinimalRepository' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Migrations🌀CbMigrationIdRcb🌀Repositories()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Orgs\\RemoveOutsideCollaborator\\Response\\Applicationjson\\H422' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀OutsideCollaborators🌀CbUsernameRcb()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\Package' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Packages()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\PackageVersion' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Packages🌀CbPackageTypeRcb🌀CbPackageNameRcb🌀Versions()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\Project' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Projects()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\Repository' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Repos()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\TeamSimple' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀SecurityManagers()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\ActionsBillingUsage' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Settings🌀Billing🌀Actions()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\PackagesBillingUsage' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Settings🌀Billing🌀Packages()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\CombinedBillingUsage' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Settings🌀Billing🌀SharedStorage()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\TeamFull' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Teams()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\TeamDiscussion' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Teams🌀CbTeamSlugRcb🌀Discussions()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\TeamDiscussionComment' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Teams🌀CbTeamSlugRcb🌀Discussions🌀CbDiscussionNumberRcb🌀Comments()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\Reaction' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Teams🌀CbTeamSlugRcb🌀Discussions🌀CbDiscussionNumberRcb🌀Comments🌀CbCommentNumberRcb🌀Reactions()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\TeamMembership' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Teams🌀CbTeamSlugRcb🌀Memberships🌀CbUsernameRcb()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\TeamProject' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Teams🌀CbTeamSlugRcb🌀Projects()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\TeamRepository' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Teams🌀CbTeamSlugRcb🌀Repos🌀CbOwnerRcb🌀CbRepoRcb()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\ProjectCard', 'ApiClients\\Client\\Github\\Schema\\Operation\\Projects\\DeleteCard\\Response\\Applicationjson\\H403' => $this->getObjectMapperOperation🌀Projects🌀Columns🌀Cards🌀CbCardIdRcb()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Projects\\MoveCard\\Response\\Applicationjson\\H403', 'ApiClients\\Client\\Github\\Schema\\Operation\\Projects\\MoveCard\\Response\\Applicationjson\\H503' => $this->getObjectMapperOperation🌀Projects🌀Columns🌀Cards🌀CbCardIdRcb🌀Moves()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\ProjectColumn' => $this->getObjectMapperOperation🌀Projects🌀Columns🌀CbColumnIdRcb()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\ProjectCollaboratorPermission' => $this->getObjectMapperOperation🌀Projects🌀CbProjectIdRcb🌀Collaborators🌀CbUsernameRcb🌀Permission()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\RateLimitOverview' => $this->getObjectMapperOperation🌀RateLimit()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Actions\\ListRepoRequiredWorkflows\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Repos🌀CbOrgRcb🌀CbRepoRcb🌀Actions🌀RequiredWorkflows()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\RepoRequiredWorkflow' => $this->getObjectMapperOperation🌀Repos🌀CbOrgRcb🌀CbRepoRcb🌀Actions🌀RequiredWorkflows🌀CbRequiredWorkflowIdForRepoRcb()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\WorkflowUsage' => $this->getObjectMapperOperation🌀Repos🌀CbOrgRcb🌀CbRepoRcb🌀Actions🌀RequiredWorkflows🌀CbRequiredWorkflowIdForRepoRcb🌀Timing()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\FullRepository' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Actions\\ListArtifactsForRepo\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Actions🌀Artifacts()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\Artifact' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Actions🌀Artifacts🌀CbArtifactIdRcb()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\ActionsCacheUsageByRepository' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Actions🌀Cache🌀Usage()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\ActionsCacheList' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Actions🌀Caches()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\Job' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Actions🌀Jobs🌀CbJobIdRcb()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\OidcCustomSubRepo' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Actions🌀Oidc🌀Customization🌀Sub()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\ActionsRepositoryPermissions' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Actions🌀Permissions()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\ActionsWorkflowAccessToRepository' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Actions🌀Permissions🌀Access()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Actions\\ListRequiredWorkflowRuns\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Actions🌀RequiredWorkflows🌀CbRequiredWorkflowIdForRepoRcb🌀Runs()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\WorkflowRun' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Actions🌀Runs🌀CbRunIdRcb()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\EnvironmentApprovals' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Actions🌀Runs🌀CbRunIdRcb🌀Approvals()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Actions\\ListJobsForWorkflowRunAttempt\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Actions🌀Runs🌀CbRunIdRcb🌀Attempts🌀CbAttemptNumberRcb🌀Jobs()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\PendingDeployment', 'ApiClients\\Client\\Github\\Schema\\Deployment' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Actions🌀Runs🌀CbRunIdRcb🌀PendingDeployments()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\WorkflowRunUsage' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Actions🌀Runs🌀CbRunIdRcb🌀Timing()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Actions\\ListRepoSecrets\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Actions🌀Secrets()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\ActionsSecret' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Actions🌀Secrets🌀CbSecretNameRcb()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Actions\\ListRepoVariables\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Actions🌀Variables()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\ActionsVariable' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Actions🌀Variables🌀CbNameRcb()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Actions\\ListRepoWorkflows\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Actions🌀Workflows()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\Workflow' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Actions🌀Workflows🌀CbWorkflowIdRcb()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\Autolink' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Autolinks()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\ShortBranch' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Branches()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\BranchWithProtection' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Branches🌀CbBranchRcb()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\BranchProtection', 'ApiClients\\Client\\Github\\Schema\\ProtectedBranch' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Branches🌀CbBranchRcb🌀Protection()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\ProtectedBranchAdminEnforced' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Branches🌀CbBranchRcb🌀Protection🌀EnforceAdmins()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\ProtectedBranchPullRequestReview' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Branches🌀CbBranchRcb🌀Protection🌀RequiredPullRequestReviews()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\StatusCheckPolicy' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Branches🌀CbBranchRcb🌀Protection🌀RequiredStatusChecks()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\BranchRestrictionPolicy' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Branches🌀CbBranchRcb🌀Protection🌀Restrictions()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\CheckRun' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀CheckRuns()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\CheckAnnotation' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀CheckDashRuns🌀CbCheckRunIdRcb🌀Annotations()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\CheckSuite' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀CheckSuites()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\CheckSuitePreference' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀CheckSuites🌀Preferences()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Checks\\ListForSuite\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀CheckDashSuites🌀CbCheckSuiteIdRcb🌀CheckDashRuns()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\CodeScanningAlertItems' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀CodeScanning🌀Alerts()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\CodeScanningAlert' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀CodeDashScanning🌀Alerts🌀CbAlertNumberRcb()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\CodeScanningAlertInstance' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀CodeDashScanning🌀Alerts🌀CbAlertNumberRcb🌀Instances()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\CodeScanningAnalysis' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀CodeScanning🌀Analyses()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\Operation\\CodeScanning\\GetAnalysis\\Response\\ApplicationjsonPlusSarif\\H200', 'ApiClients\\Client\\Github\\Schema\\CodeScanningAnalysisDeletion' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀CodeDashScanning🌀Analyses🌀CbAnalysisIdRcb()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\CodeScanningCodeqlDatabase' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀CodeScanning🌀Codeql🌀Databases()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\CodeScanningSarifsReceipt' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀CodeScanning🌀Sarifs()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\CodeScanningSarifsStatus' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀CodeDashScanning🌀Sarifs🌀CbSarifIdRcb()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\CodeownersErrors' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Codeowners🌀Errors()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Codespaces\\ListDevcontainersInRepositoryForAuthenticatedUser\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Codespaces🌀Devcontainers()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Codespaces\\RepoMachinesForAuthenticatedUser\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Codespaces🌀Machines()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Codespaces\\PreFlightWithRepoForAuthenticatedUser\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Codespaces🌀New_()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Codespaces\\ListRepoSecrets\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Codespaces🌀Secrets()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\RepoCodespacesSecret' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Codespaces🌀Secrets🌀CbSecretNameRcb()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\Collaborator' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Collaborators()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\RepositoryInvitation' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Collaborators🌀CbUsernameRcb()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\RepositoryCollaboratorPermission' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Collaborators🌀CbUsernameRcb🌀Permission()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\CommitComment' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Comments()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\Commit' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Commits()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\BranchShort' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Commits🌀CbCommitShaRcb🌀BranchesDashWhereDashHead()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\PullRequestSimple' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Commits🌀CbCommitShaRcb🌀Pulls()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Checks\\ListSuitesForRef\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Commits🌀CbRefRcb🌀CheckSuites()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\CombinedCommitStatus' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Commits🌀CbRefRcb🌀Status()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\Status' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Commits🌀CbRefRcb🌀Statuses()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\CommunityProfile' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Community🌀Profile()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\CommitComparison' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Compare🌀CbBaseheadRcb()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\ContentTree', 'ApiClients\\Client\\Github\\Schema\\Operation\\Repos\\GetContent\\Response\\Applicationjson\\H200', 'ApiClients\\Client\\Github\\Schema\\FileCommit' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Contents🌀CbPathRcb()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\Contributor' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Contributors()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\DependabotAlert' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Dependabot🌀Alerts()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Dependabot\\ListRepoSecrets\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Dependabot🌀Secrets()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\DependabotSecret' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Dependabot🌀Secrets🌀CbSecretNameRcb()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\DependencyGraphDiff' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀DependencyGraph🌀Compare🌀CbBaseheadRcb()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\Operation\\DependencyGraph\\CreateRepositorySnapshot\\Response\\Applicationjson\\H201' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀DependencyGraph🌀Snapshots()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\DeploymentStatus' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Deployments🌀CbDeploymentIdRcb🌀Statuses()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Repos\\GetAllEnvironments\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Environments()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\Environment' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Environments🌀CbEnvironmentNameRcb()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Repos\\ListDeploymentBranchPolicies\\Response\\Applicationjson\\H200', 'ApiClients\\Client\\Github\\Schema\\DeploymentBranchPolicy' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Environments🌀CbEnvironmentNameRcb🌀DeploymentDashBranchDashPolicies()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\ShortBlob' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Git🌀Blobs()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\Blob' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Git🌀Blobs🌀CbFileShaRcb()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\GitCommit' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Git🌀Commits()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\GitRef' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Git🌀MatchingRefs🌀CbRefRcb()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\GitTag' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Git🌀Tags()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\GitTree' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Git🌀Trees()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\Hook' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Hooks()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\Import' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Import()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\PorterAuthor' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Import🌀Authors()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\PorterLargeFile' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Import🌀LargeFiles()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\IssueComment' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Issues🌀Comments()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\IssueEvent' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Issues🌀Events()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\IssueEventForIssue' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Issues🌀CbIssueNumberRcb🌀Events()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\Label' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Issues🌀CbIssueNumberRcb🌀Labels()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\TimelineIssueEvents' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Issues🌀CbIssueNumberRcb🌀Timeline()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\DeployKey' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Keys()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\Language' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Languages()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\LicenseContent' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀License()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\MergedUpstream' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀MergeUpstream()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\Milestone' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Milestones()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Activity\\MarkRepoNotificationsAsRead\\Response\\Applicationjson\\H202' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Notifications()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\Page' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Pages()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\PageBuild', 'ApiClients\\Client\\Github\\Schema\\PageBuildStatus' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Pages🌀Builds()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\PageDeployment' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Pages🌀Deployment()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\PagesHealthCheck' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Pages🌀Health()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\PullRequest' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Pulls()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\PullRequestReviewComment' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Pulls🌀Comments()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\DiffEntry' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Pulls🌀CbPullNumberRcb🌀Files()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\PullRequestMergeResult' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Pulls🌀CbPullNumberRcb🌀Merge()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\PullRequestReviewRequest' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Pulls🌀CbPullNumberRcb🌀RequestedReviewers()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\PullRequestReview' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Pulls🌀CbPullNumberRcb🌀Reviews()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\ReviewComment' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Pulls🌀CbPullNumberRcb🌀Reviews🌀CbReviewIdRcb🌀Comments()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\ContentFile' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Readme()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\Release' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Releases()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\ReleaseAsset' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Releases🌀Assets🌀CbAssetIdRcb()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\ReleaseNotesContent' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Releases🌀GenerateNotes()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\SecretScanningAlert' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀SecretScanning🌀Alerts()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\SecretScanningLocation' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀SecretDashScanning🌀Alerts🌀CbAlertNumberRcb🌀Locations()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Activity\\ListStargazersForRepo\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Stargazers()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Repos\\GetCodeFrequencyStats\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Stats🌀CodeFrequency()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\CommitActivity' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Stats🌀CommitActivity()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\ContributorActivity' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Stats🌀Contributors()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\ParticipationStats' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Stats🌀Participation()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\RepositorySubscription' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Subscription()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\Tag' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Tags()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\TagProtection' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Tags🌀Protection()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\Topic' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Topics()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\CloneTraffic' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Traffic🌀Clones()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\ContentTraffic' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Traffic🌀Popular🌀Paths()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\ReferrerTraffic' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Traffic🌀Popular🌀Referrers()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\ViewTraffic' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Traffic🌀Views()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Search\\Code\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Search🌀Code()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Search\\Commits\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Search🌀Commits()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Search\\IssuesAndPullRequests\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Search🌀Issues()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Search\\Labels\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Search🌀Labels()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Search\\Repos\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Search🌀Repositories()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Search\\Topics\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Search🌀Topics()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Search\\Users\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Search🌀Users()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Users\\GetAuthenticated\\Response\\Applicationjson\\H200', 'ApiClients\\Client\\Github\\Schema\\PrivateUser' => $this->getObjectMapperOperation🌀User()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Codespaces\\ListSecretsForAuthenticatedUser\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀User🌀Codespaces🌀Secrets()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\CodespacesUserPublicKey' => $this->getObjectMapperOperation🌀User🌀Codespaces🌀Secrets🌀PublicKey()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\CodespacesSecret' => $this->getObjectMapperOperation🌀User🌀Codespaces🌀Secrets🌀CbSecretNameRcb()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\CodespaceExportDetails' => $this->getObjectMapperOperation🌀User🌀Codespaces🌀CbCodespaceNameRcb🌀Exports()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\CodespaceWithFullRepository' => $this->getObjectMapperOperation🌀User🌀Codespaces🌀CbCodespaceNameRcb🌀Publish()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\Email' => $this->getObjectMapperOperation🌀User🌀Email🌀Visibility()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\GpgKey' => $this->getObjectMapperOperation🌀User🌀GpgKeys()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Apps\\ListInstallationReposForAuthenticatedUser\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀User🌀Installations🌀CbInstallationIdRcb🌀Repositories()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\Key' => $this->getObjectMapperOperation🌀User🌀Keys()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\UserMarketplacePurchase' => $this->getObjectMapperOperation🌀User🌀MarketplacePurchases()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\SshSigningKey' => $this->getObjectMapperOperation🌀User🌀SshSigningKeys()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\StarredRepository' => $this->getObjectMapperOperation🌀User🌀Starred()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\Hovercard' => $this->getObjectMapperOperation🌀Users🌀CbUsernameRcb🌀Hovercard()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\KeySimple' => $this->getObjectMapperOperation🌀Users🌀CbUsernameRcb🌀Keys()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Activity\\ListReposStarredByUser\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Users🌀CbUsernameRcb🌀Starred()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Meta\\GetAllVersions\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Versions()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\WebhookBranchProtectionRuleCreated', 'ApiClients\\Client\\Github\\Schema\\WebhookBranchProtectionRuleDeleted', 'ApiClients\\Client\\Github\\Schema\\WebhookBranchProtectionRuleEdited' => $this->getObjectMapperWebHook🌀BranchProtectionRule()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\WebhookCheckRunCompleted', 'ApiClients\\Client\\Github\\Schema\\WebhookCheckRunCompletedFormEncoded', 'ApiClients\\Client\\Github\\Schema\\WebhookCheckRunCreated', 'ApiClients\\Client\\Github\\Schema\\WebhookCheckRunCreatedFormEncoded', 'ApiClients\\Client\\Github\\Schema\\WebhookCheckRunRequestedAction', 'ApiClients\\Client\\Github\\Schema\\WebhookCheckRunRequestedActionFormEncoded', 'ApiClients\\Client\\Github\\Schema\\WebhookCheckRunRerequested', 'ApiClients\\Client\\Github\\Schema\\WebhookCheckRunRerequestedFormEncoded' => $this->getObjectMapperWebHook🌀CheckRun()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\WebhookCheckSuiteCompleted', 'ApiClients\\Client\\Github\\Schema\\WebhookCheckSuiteRequested', 'ApiClients\\Client\\Github\\Schema\\WebhookCheckSuiteRerequested' => $this->getObjectMapperWebHook🌀CheckSuite()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\WebhookCodeScanningAlertAppearedInBranch', 'ApiClients\\Client\\Github\\Schema\\WebhookCodeScanningAlertClosedByUser', 'ApiClients\\Client\\Github\\Schema\\WebhookCodeScanningAlertCreated', 'ApiClients\\Client\\Github\\Schema\\WebhookCodeScanningAlertFixed', 'ApiClients\\Client\\Github\\Schema\\WebhookCodeScanningAlertReopened', 'ApiClients\\Client\\Github\\Schema\\WebhookCodeScanningAlertReopenedByUser' => $this->getObjectMapperWebHook🌀CodeScanningAlert()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\WebhookCommitCommentCreated' => $this->getObjectMapperWebHook🌀CommitComment()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\WebhookCreate' => $this->getObjectMapperWebHook🌀Create()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\WebhookDelete' => $this->getObjectMapperWebHook🌀Delete()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\WebhookDependabotAlertCreated', 'ApiClients\\Client\\Github\\Schema\\WebhookDependabotAlertDismissed', 'ApiClients\\Client\\Github\\Schema\\WebhookDependabotAlertFixed', 'ApiClients\\Client\\Github\\Schema\\WebhookDependabotAlertReintroduced', 'ApiClients\\Client\\Github\\Schema\\WebhookDependabotAlertReopened' => $this->getObjectMapperWebHook🌀DependabotAlert()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\WebhookDeployKeyCreated', 'ApiClients\\Client\\Github\\Schema\\WebhookDeployKeyDeleted' => $this->getObjectMapperWebHook🌀DeployKey()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\WebhookDeploymentCreated' => $this->getObjectMapperWebHook🌀Deployment()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\WebhookDeploymentStatusCreated' => $this->getObjectMapperWebHook🌀DeploymentStatus()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\WebhookDiscussionAnswered', 'ApiClients\\Client\\Github\\Schema\\WebhookDiscussionCategoryChanged', 'ApiClients\\Client\\Github\\Schema\\WebhookDiscussionCreated', 'ApiClients\\Client\\Github\\Schema\\WebhookDiscussionDeleted', 'ApiClients\\Client\\Github\\Schema\\WebhookDiscussionEdited', 'ApiClients\\Client\\Github\\Schema\\WebhookDiscussionLabeled', 'ApiClients\\Client\\Github\\Schema\\WebhookDiscussionLocked', 'ApiClients\\Client\\Github\\Schema\\WebhookDiscussionPinned', 'ApiClients\\Client\\Github\\Schema\\WebhookDiscussionTransferred', 'ApiClients\\Client\\Github\\Schema\\WebhookDiscussionUnanswered', 'ApiClients\\Client\\Github\\Schema\\WebhookDiscussionUnlabeled', 'ApiClients\\Client\\Github\\Schema\\WebhookDiscussionUnlocked', 'ApiClients\\Client\\Github\\Schema\\WebhookDiscussionUnpinned' => $this->getObjectMapperWebHook🌀Discussion()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\WebhookDiscussionCommentCreated', 'ApiClients\\Client\\Github\\Schema\\WebhookDiscussionCommentDeleted', 'ApiClients\\Client\\Github\\Schema\\WebhookDiscussionCommentEdited' => $this->getObjectMapperWebHook🌀DiscussionComment()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\WebhookFork' => $this->getObjectMapperWebHook🌀Fork()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\WebhookGithubAppAuthorizationRevoked' => $this->getObjectMapperWebHook🌀GithubAppAuthorization()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\WebhookGollum' => $this->getObjectMapperWebHook🌀Gollum()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\WebhookInstallationCreated', 'ApiClients\\Client\\Github\\Schema\\WebhookInstallationDeleted', 'ApiClients\\Client\\Github\\Schema\\WebhookInstallationNewPermissionsAccepted', 'ApiClients\\Client\\Github\\Schema\\WebhookInstallationSuspend', 'ApiClients\\Client\\Github\\Schema\\WebhookInstallationUnsuspend' => $this->getObjectMapperWebHook🌀Installation()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\WebhookInstallationRepositoriesAdded', 'ApiClients\\Client\\Github\\Schema\\WebhookInstallationRepositoriesRemoved' => $this->getObjectMapperWebHook🌀InstallationRepositories()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\WebhookInstallationTargetRenamed' => $this->getObjectMapperWebHook🌀InstallationTarget()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\WebhookIssueCommentCreated', 'ApiClients\\Client\\Github\\Schema\\WebhookIssueCommentDeleted', 'ApiClients\\Client\\Github\\Schema\\WebhookIssueCommentEdited' => $this->getObjectMapperWebHook🌀IssueComment()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\WebhookIssuesAssigned', 'ApiClients\\Client\\Github\\Schema\\WebhookIssuesClosed', 'ApiClients\\Client\\Github\\Schema\\WebhookIssuesDeleted', 'ApiClients\\Client\\Github\\Schema\\WebhookIssuesDemilestoned', 'ApiClients\\Client\\Github\\Schema\\WebhookIssuesEdited', 'ApiClients\\Client\\Github\\Schema\\WebhookIssuesLabeled', 'ApiClients\\Client\\Github\\Schema\\WebhookIssuesLocked', 'ApiClients\\Client\\Github\\Schema\\WebhookIssuesMilestoned', 'ApiClients\\Client\\Github\\Schema\\WebhookIssuesOpened', 'ApiClients\\Client\\Github\\Schema\\WebhookIssuesPinned', 'ApiClients\\Client\\Github\\Schema\\WebhookIssuesReopened', 'ApiClients\\Client\\Github\\Schema\\WebhookIssuesTransferred', 'ApiClients\\Client\\Github\\Schema\\WebhookIssuesUnassigned', 'ApiClients\\Client\\Github\\Schema\\WebhookIssuesUnlabeled', 'ApiClients\\Client\\Github\\Schema\\WebhookIssuesUnlocked', 'ApiClients\\Client\\Github\\Schema\\WebhookIssuesUnpinned' => $this->getObjectMapperWebHook🌀Issues()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\WebhookLabelCreated', 'ApiClients\\Client\\Github\\Schema\\WebhookLabelDeleted', 'ApiClients\\Client\\Github\\Schema\\WebhookLabelEdited' => $this->getObjectMapperWebHook🌀Label()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\WebhookMarketplacePurchaseCancelled', 'ApiClients\\Client\\Github\\Schema\\WebhookMarketplacePurchaseChanged', 'ApiClients\\Client\\Github\\Schema\\WebhookMarketplacePurchasePendingChange', 'ApiClients\\Client\\Github\\Schema\\WebhookMarketplacePurchasePendingChangeCancelled', 'ApiClients\\Client\\Github\\Schema\\WebhookMarketplacePurchasePurchased' => $this->getObjectMapperWebHook🌀MarketplacePurchase()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\WebhookMemberAdded', 'ApiClients\\Client\\Github\\Schema\\WebhookMemberEdited', 'ApiClients\\Client\\Github\\Schema\\WebhookMemberRemoved' => $this->getObjectMapperWebHook🌀Member()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\WebhookMembershipAdded', 'ApiClients\\Client\\Github\\Schema\\WebhookMembershipRemoved' => $this->getObjectMapperWebHook🌀Membership()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\WebhookMergeGroupChecksRequested' => $this->getObjectMapperWebHook🌀MergeGroup()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\WebhookMetaDeleted' => $this->getObjectMapperWebHook🌀Meta()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\WebhookMilestoneClosed', 'ApiClients\\Client\\Github\\Schema\\WebhookMilestoneCreated', 'ApiClients\\Client\\Github\\Schema\\WebhookMilestoneDeleted', 'ApiClients\\Client\\Github\\Schema\\WebhookMilestoneEdited', 'ApiClients\\Client\\Github\\Schema\\WebhookMilestoneOpened' => $this->getObjectMapperWebHook🌀Milestone()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\WebhookOrgBlockBlocked', 'ApiClients\\Client\\Github\\Schema\\WebhookOrgBlockUnblocked' => $this->getObjectMapperWebHook🌀OrgBlock()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\WebhookOrganizationDeleted', 'ApiClients\\Client\\Github\\Schema\\WebhookOrganizationMemberAdded', 'ApiClients\\Client\\Github\\Schema\\WebhookOrganizationMemberInvited', 'ApiClients\\Client\\Github\\Schema\\WebhookOrganizationMemberRemoved', 'ApiClients\\Client\\Github\\Schema\\WebhookOrganizationRenamed' => $this->getObjectMapperWebHook🌀Organization()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\WebhookPackagePublished', 'ApiClients\\Client\\Github\\Schema\\WebhookPackageUpdated' => $this->getObjectMapperWebHook🌀Package()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\WebhookPageBuild' => $this->getObjectMapperWebHook🌀PageBuild()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\WebhookPing', 'ApiClients\\Client\\Github\\Schema\\WebhookPingFormEncoded' => $this->getObjectMapperWebHook🌀Ping()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\WebhookProjectCardConverted', 'ApiClients\\Client\\Github\\Schema\\WebhookProjectCardCreated', 'ApiClients\\Client\\Github\\Schema\\WebhookProjectCardDeleted', 'ApiClients\\Client\\Github\\Schema\\WebhookProjectCardEdited', 'ApiClients\\Client\\Github\\Schema\\WebhookProjectCardMoved' => $this->getObjectMapperWebHook🌀ProjectCard()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\WebhookProjectClosed', 'ApiClients\\Client\\Github\\Schema\\WebhookProjectCreated', 'ApiClients\\Client\\Github\\Schema\\WebhookProjectDeleted', 'ApiClients\\Client\\Github\\Schema\\WebhookProjectEdited', 'ApiClients\\Client\\Github\\Schema\\WebhookProjectReopened' => $this->getObjectMapperWebHook🌀Project()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\WebhookProjectColumnCreated', 'ApiClients\\Client\\Github\\Schema\\WebhookProjectColumnDeleted', 'ApiClients\\Client\\Github\\Schema\\WebhookProjectColumnEdited', 'ApiClients\\Client\\Github\\Schema\\WebhookProjectColumnMoved' => $this->getObjectMapperWebHook🌀ProjectColumn()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\WebhookProjectsV2ProjectClosed', 'ApiClients\\Client\\Github\\Schema\\WebhookProjectsV2ProjectCreated', 'ApiClients\\Client\\Github\\Schema\\WebhookProjectsV2ProjectEdited', 'ApiClients\\Client\\Github\\Schema\\WebhookProjectsV2ProjectReopened' => $this->getObjectMapperWebHook🌀ProjectsV2()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\WebhookProjectsV2ItemArchived', 'ApiClients\\Client\\Github\\Schema\\WebhookProjectsV2ItemConverted', 'ApiClients\\Client\\Github\\Schema\\WebhookProjectsV2ItemCreated', 'ApiClients\\Client\\Github\\Schema\\WebhookProjectsV2ItemDeleted', 'ApiClients\\Client\\Github\\Schema\\WebhookProjectsV2ItemEdited', 'ApiClients\\Client\\Github\\Schema\\WebhookProjectsV2ItemReordered', 'ApiClients\\Client\\Github\\Schema\\WebhookProjectsV2ItemRestored' => $this->getObjectMapperWebHook🌀ProjectsV2Item()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\WebhookPublic' => $this->getObjectMapperWebHook🌀Public_()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\WebhookPullRequestAssigned', 'ApiClients\\Client\\Github\\Schema\\WebhookPullRequestAutoMergeDisabled', 'ApiClients\\Client\\Github\\Schema\\WebhookPullRequestAutoMergeEnabled', 'ApiClients\\Client\\Github\\Schema\\WebhookPullRequestClosed', 'ApiClients\\Client\\Github\\Schema\\WebhookPullRequestConvertedToDraft', 'ApiClients\\Client\\Github\\Schema\\WebhookPullRequestDemilestoned', 'ApiClients\\Client\\Github\\Schema\\WebhookPullRequestDequeued', 'ApiClients\\Client\\Github\\Schema\\WebhookPullRequestEdited', 'ApiClients\\Client\\Github\\Schema\\WebhookPullRequestEnqueued', 'ApiClients\\Client\\Github\\Schema\\WebhookPullRequestLabeled', 'ApiClients\\Client\\Github\\Schema\\WebhookPullRequestLocked', 'ApiClients\\Client\\Github\\Schema\\WebhookPullRequestMilestoned', 'ApiClients\\Client\\Github\\Schema\\WebhookPullRequestOpened', 'ApiClients\\Client\\Github\\Schema\\WebhookPullRequestReadyForReview', 'ApiClients\\Client\\Github\\Schema\\WebhookPullRequestReopened', 'ApiClients\\Client\\Github\\Schema\\WebhookPullRequestReviewRequestRemoved', 'ApiClients\\Client\\Github\\Schema\\WebhookPullRequestReviewRequested', 'ApiClients\\Client\\Github\\Schema\\WebhookPullRequestSynchronize', 'ApiClients\\Client\\Github\\Schema\\WebhookPullRequestUnassigned', 'ApiClients\\Client\\Github\\Schema\\WebhookPullRequestUnlabeled', 'ApiClients\\Client\\Github\\Schema\\WebhookPullRequestUnlocked' => $this->getObjectMapperWebHook🌀PullRequest()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\WebhookPullRequestReviewCommentCreated', 'ApiClients\\Client\\Github\\Schema\\WebhookPullRequestReviewCommentDeleted', 'ApiClients\\Client\\Github\\Schema\\WebhookPullRequestReviewCommentEdited' => $this->getObjectMapperWebHook🌀PullRequestReviewComment()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\WebhookPullRequestReviewDismissed', 'ApiClients\\Client\\Github\\Schema\\WebhookPullRequestReviewEdited', 'ApiClients\\Client\\Github\\Schema\\WebhookPullRequestReviewSubmitted' => $this->getObjectMapperWebHook🌀PullRequestReview()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\WebhookPullRequestReviewThreadResolved', 'ApiClients\\Client\\Github\\Schema\\WebhookPullRequestReviewThreadUnresolved' => $this->getObjectMapperWebHook🌀PullRequestReviewThread()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\WebhookPush' => $this->getObjectMapperWebHook🌀Push()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\WebhookRegistryPackagePublished', 'ApiClients\\Client\\Github\\Schema\\WebhookRegistryPackageUpdated' => $this->getObjectMapperWebHook🌀RegistryPackage()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\WebhookReleaseCreated', 'ApiClients\\Client\\Github\\Schema\\WebhookReleaseDeleted', 'ApiClients\\Client\\Github\\Schema\\WebhookReleaseEdited', 'ApiClients\\Client\\Github\\Schema\\WebhookReleasePrereleased', 'ApiClients\\Client\\Github\\Schema\\WebhookReleasePublished', 'ApiClients\\Client\\Github\\Schema\\WebhookReleaseReleased', 'ApiClients\\Client\\Github\\Schema\\WebhookReleaseUnpublished' => $this->getObjectMapperWebHook🌀Release()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\WebhookRepositoryArchived', 'ApiClients\\Client\\Github\\Schema\\WebhookRepositoryCreated', 'ApiClients\\Client\\Github\\Schema\\WebhookRepositoryDeleted', 'ApiClients\\Client\\Github\\Schema\\WebhookRepositoryEdited', 'ApiClients\\Client\\Github\\Schema\\WebhookRepositoryPrivatized', 'ApiClients\\Client\\Github\\Schema\\WebhookRepositoryPublicized', 'ApiClients\\Client\\Github\\Schema\\WebhookRepositoryRenamed', 'ApiClients\\Client\\Github\\Schema\\WebhookRepositoryTransferred', 'ApiClients\\Client\\Github\\Schema\\WebhookRepositoryUnarchived' => $this->getObjectMapperWebHook🌀Repository()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\WebhookRepositoryDispatchSample' => $this->getObjectMapperWebHook🌀RepositoryDispatch()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\WebhookRepositoryImport' => $this->getObjectMapperWebHook🌀RepositoryImport()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\WebhookRepositoryVulnerabilityAlertCreate', 'ApiClients\\Client\\Github\\Schema\\WebhookRepositoryVulnerabilityAlertDismiss', 'ApiClients\\Client\\Github\\Schema\\WebhookRepositoryVulnerabilityAlertReopen', 'ApiClients\\Client\\Github\\Schema\\WebhookRepositoryVulnerabilityAlertResolve' => $this->getObjectMapperWebHook🌀RepositoryVulnerabilityAlert()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\WebhookSecretScanningAlertCreated', 'ApiClients\\Client\\Github\\Schema\\WebhookSecretScanningAlertReopened', 'ApiClients\\Client\\Github\\Schema\\WebhookSecretScanningAlertResolved', 'ApiClients\\Client\\Github\\Schema\\WebhookSecretScanningAlertRevoked' => $this->getObjectMapperWebHook🌀SecretScanningAlert()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\WebhookSecretScanningAlertLocationCreated', 'ApiClients\\Client\\Github\\Schema\\WebhookSecretScanningAlertLocationCreatedFormEncoded' => $this->getObjectMapperWebHook🌀SecretScanningAlertLocation()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\WebhookSecurityAdvisoryPublished', 'ApiClients\\Client\\Github\\Schema\\WebhookSecurityAdvisoryUpdated', 'ApiClients\\Client\\Github\\Schema\\WebhookSecurityAdvisoryWithdrawn' => $this->getObjectMapperWebHook🌀SecurityAdvisory()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\WebhookSecurityAndAnalysis' => $this->getObjectMapperWebHook🌀SecurityAndAnalysis()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\WebhookSponsorshipCancelled', 'ApiClients\\Client\\Github\\Schema\\WebhookSponsorshipCreated', 'ApiClients\\Client\\Github\\Schema\\WebhookSponsorshipEdited', 'ApiClients\\Client\\Github\\Schema\\WebhookSponsorshipPendingCancellation', 'ApiClients\\Client\\Github\\Schema\\WebhookSponsorshipPendingTierChange', 'ApiClients\\Client\\Github\\Schema\\WebhookSponsorshipTierChanged' => $this->getObjectMapperWebHook🌀Sponsorship()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\WebhookStarCreated', 'ApiClients\\Client\\Github\\Schema\\WebhookStarDeleted' => $this->getObjectMapperWebHook🌀Star()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\WebhookStatus' => $this->getObjectMapperWebHook🌀Status()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\WebhookTeamAdd' => $this->getObjectMapperWebHook🌀TeamAdd()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\WebhookTeamAddedToRepository', 'ApiClients\\Client\\Github\\Schema\\WebhookTeamCreated', 'ApiClients\\Client\\Github\\Schema\\WebhookTeamDeleted', 'ApiClients\\Client\\Github\\Schema\\WebhookTeamEdited', 'ApiClients\\Client\\Github\\Schema\\WebhookTeamRemovedFromRepository' => $this->getObjectMapperWebHook🌀Team()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\WebhookWatchStarted' => $this->getObjectMapperWebHook🌀Watch()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\WebhookWorkflowDispatch' => $this->getObjectMapperWebHook🌀WorkflowDispatch()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\WebhookWorkflowJobCompleted', 'ApiClients\\Client\\Github\\Schema\\WebhookWorkflowJobInProgress', 'ApiClients\\Client\\Github\\Schema\\WebhookWorkflowJobQueued', 'ApiClients\\Client\\Github\\Schema\\WebhookWorkflowJobWaiting' => $this->getObjectMapperWebHook🌀WorkflowJob()->hydrateObject($className, $payload), + 'ApiClients\\Client\\Github\\Schema\\WebhookWorkflowRunCompleted', 'ApiClients\\Client\\Github\\Schema\\WebhookWorkflowRunInProgress', 'ApiClients\\Client\\Github\\Schema\\WebhookWorkflowRunRequested' => $this->getObjectMapperWebHook🌀WorkflowRun()->hydrateObject($className, $payload), }; } public function hydrateObjects(string $className, iterable $payloads) : \EventSauce\ObjectHydrator\IterableList @@ -631,310 +631,310 @@ private function doHydrateObjects(string $className, iterable $payloads) : \Gene public function serializeObject(object $object) : mixed { return match ($object::class) { - '\\ApiClients\\Client\\Github\\Schema\\Root' => $this->getObjectMapperOperation🌀Root()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\Integration' => $this->getObjectMapperOperation🌀App()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Apps\\CreateFromManifest\\Response\\Applicationjson\\H201', '\\ApiClients\\Client\\Github\\Schema\\BasicError', '\\ApiClients\\Client\\Github\\Schema\\ValidationErrorSimple' => $this->getObjectMapperOperation🌀AppManifests🌀CbCodeRcb🌀Conversions()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\WebhookConfig' => $this->getObjectMapperOperation🌀App🌀Hook🌀Config()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\HookDeliveryItem', '\\ApiClients\\Client\\Github\\Schema\\ScimError', '\\ApiClients\\Client\\Github\\Schema\\ValidationError' => $this->getObjectMapperOperation🌀App🌀Hook🌀Deliveries()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\HookDelivery' => $this->getObjectMapperOperation🌀App🌀Hook🌀Deliveries🌀CbDeliveryIdRcb()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\WebhookPackagePublished\\Package\\PackageVersion\\NpmMetadata\\Dependencies' => $this->getObjectMapperOperation🌀App🌀Hook🌀Deliveries🌀CbDeliveryIdRcb🌀Attempts()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\Installation' => $this->getObjectMapperOperation🌀App🌀Installations()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\InstallationToken' => $this->getObjectMapperOperation🌀App🌀Installations🌀CbInstallationIdRcb🌀AccessTokens()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\Authorization' => $this->getObjectMapperOperation🌀Applications🌀CbClientIdRcb🌀Token()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\CodeOfConduct' => $this->getObjectMapperOperation🌀CodesOfConduct()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Emojis\\Get\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Emojis()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\DependabotAlertWithRepository' => $this->getObjectMapperOperation🌀Enterprises🌀CbEnterpriseRcb🌀Dependabot🌀Alerts()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\OrganizationSecretScanningAlert', '\\ApiClients\\Client\\Github\\Schema\\Operation\\SecretScanning\\ListAlertsForEnterprise\\Response\\Applicationjson\\H503' => $this->getObjectMapperOperation🌀Enterprises🌀CbEnterpriseRcb🌀SecretScanning🌀Alerts()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\Event' => $this->getObjectMapperOperation🌀Events()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\Feed' => $this->getObjectMapperOperation🌀Feeds()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\BaseGist', '\\ApiClients\\Client\\Github\\Schema\\GistSimple' => $this->getObjectMapperOperation🌀Gists()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Gists\\Get\\Response\\Applicationjson\\H403' => $this->getObjectMapperOperation🌀Gists🌀CbGistIdRcb()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\GistComment' => $this->getObjectMapperOperation🌀Gists🌀CbGistIdRcb🌀Comments()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\GistCommit' => $this->getObjectMapperOperation🌀Gists🌀CbGistIdRcb🌀Commits()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Gists\\CheckIsStarred\\Response\\Applicationjson\\H404' => $this->getObjectMapperOperation🌀Gists🌀CbGistIdRcb🌀Star()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\WebHookHeader\\UserAgent' => $this->getObjectMapperOperation🌀Gitignore🌀Templates()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\GitignoreTemplate' => $this->getObjectMapperOperation🌀Gitignore🌀Templates🌀CbNameRcb()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Apps\\ListReposAccessibleToInstallation\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Installation🌀Repositories()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\Issue' => $this->getObjectMapperOperation🌀Issues()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\LicenseSimple' => $this->getObjectMapperOperation🌀Licenses()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\License' => $this->getObjectMapperOperation🌀Licenses🌀CbLicenseRcb()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\MarketplacePurchase' => $this->getObjectMapperOperation🌀MarketplaceListing🌀Accounts🌀CbAccountIdRcb()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\MarketplaceListingPlan' => $this->getObjectMapperOperation🌀MarketplaceListing🌀Plans()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\ApiOverview' => $this->getObjectMapperOperation🌀Meta()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\Thread', '\\ApiClients\\Client\\Github\\Schema\\Operation\\Activity\\MarkNotificationsAsRead\\Response\\Applicationjson\\H202' => $this->getObjectMapperOperation🌀Notifications()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\ThreadSubscription' => $this->getObjectMapperOperation🌀Notifications🌀Threads🌀CbThreadIdRcb🌀Subscription()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\OrganizationSimple' => $this->getObjectMapperOperation🌀Organizations()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\OrganizationFull', '\\ApiClients\\Client\\Github\\Schema\\Operation\\Orgs\\Update\\Response\\Applicationjson\\H422' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\ActionsCacheUsageOrgEnterprise' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Actions🌀Cache🌀Usage()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Actions\\GetActionsCacheUsageByRepoForOrg\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Actions🌀Cache🌀UsageByRepository()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\OidcCustomSub', '\\ApiClients\\Client\\Github\\Schema\\EmptyObject' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Actions🌀Oidc🌀Customization🌀Sub()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\ActionsOrganizationPermissions' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Actions🌀Permissions()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Actions\\ListSelectedRepositoriesEnabledGithubActionsOrganization\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Actions🌀Permissions🌀Repositories()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\SelectedActions' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Actions🌀Permissions🌀SelectedActions()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\ActionsGetDefaultWorkflowPermissions' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Actions🌀Permissions🌀Workflow()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Actions\\ListRequiredWorkflows\\Response\\Applicationjson\\H200', '\\ApiClients\\Client\\Github\\Schema\\RequiredWorkflow' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Actions🌀RequiredWorkflows()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Actions\\ListSelfHostedRunnersForOrg\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Actions🌀Runners()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\RunnerApplication' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Actions🌀Runners🌀Downloads()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\AuthenticationToken' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Actions🌀Runners🌀RegistrationToken()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\Runner' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Actions🌀Runners🌀CbRunnerIdRcb()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Actions\\ListLabelsForSelfHostedRunnerForOrg\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Actions🌀Runners🌀CbRunnerIdRcb🌀Labels()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Actions\\ListOrgSecrets\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Actions🌀Secrets()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\ActionsPublicKey' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Actions🌀Secrets🌀PublicKey()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\OrganizationActionsSecret' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Actions🌀Secrets🌀CbSecretNameRcb()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Actions\\ListSelectedReposForOrgSecret\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Actions🌀Secrets🌀CbSecretNameRcb🌀Repositories()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Actions\\ListOrgVariables\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Actions🌀Variables()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\OrganizationActionsVariable' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Actions🌀Variables🌀CbNameRcb()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\SimpleUser' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Blocks()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\CodeScanningOrganizationAlertItems' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀CodeScanning🌀Alerts()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Codespaces\\ListInOrganization\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Codespaces()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Codespaces\\ListOrgSecrets\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Codespaces🌀Secrets()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\CodespacesPublicKey' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Codespaces🌀Secrets🌀PublicKey()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\CodespacesOrgSecret' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Codespaces🌀Secrets🌀CbSecretNameRcb()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Dependabot\\ListOrgSecrets\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Dependabot🌀Secrets()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\DependabotPublicKey' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Dependabot🌀Secrets🌀PublicKey()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\OrganizationDependabotSecret' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Dependabot🌀Secrets🌀CbSecretNameRcb()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\OrganizationInvitation' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀FailedInvitations()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\OrgHook' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Hooks()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Orgs\\ListAppInstallations\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Installations()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Interactions\\GetRestrictionsForOrg\\Response\\Applicationjson\\H200', '\\ApiClients\\Client\\Github\\Schema\\InteractionLimitResponse' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀InteractionLimits()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\Team' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Invitations🌀CbInvitationIdRcb🌀Teams()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\Codespace' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Members🌀CbUsernameRcb🌀Codespaces🌀CbCodespaceNameRcb🌀Stop()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\OrgMembership' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Memberships🌀CbUsernameRcb()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\Migration' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Migrations()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\MinimalRepository' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Migrations🌀CbMigrationIdRcb🌀Repositories()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Orgs\\RemoveOutsideCollaborator\\Response\\Applicationjson\\H422' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀OutsideCollaborators🌀CbUsernameRcb()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\Package' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Packages()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\PackageVersion' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Packages🌀CbPackageTypeRcb🌀CbPackageNameRcb🌀Versions()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\Project' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Projects()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\Repository' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Repos()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\TeamSimple' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀SecurityManagers()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\ActionsBillingUsage' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Settings🌀Billing🌀Actions()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\PackagesBillingUsage' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Settings🌀Billing🌀Packages()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\CombinedBillingUsage' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Settings🌀Billing🌀SharedStorage()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\TeamFull' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Teams()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\TeamDiscussion' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Teams🌀CbTeamSlugRcb🌀Discussions()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\TeamDiscussionComment' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Teams🌀CbTeamSlugRcb🌀Discussions🌀CbDiscussionNumberRcb🌀Comments()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\Reaction' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Teams🌀CbTeamSlugRcb🌀Discussions🌀CbDiscussionNumberRcb🌀Comments🌀CbCommentNumberRcb🌀Reactions()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\TeamMembership' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Teams🌀CbTeamSlugRcb🌀Memberships🌀CbUsernameRcb()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\TeamProject' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Teams🌀CbTeamSlugRcb🌀Projects()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\TeamRepository' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Teams🌀CbTeamSlugRcb🌀Repos🌀CbOwnerRcb🌀CbRepoRcb()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\ProjectCard', '\\ApiClients\\Client\\Github\\Schema\\Operation\\Projects\\DeleteCard\\Response\\Applicationjson\\H403' => $this->getObjectMapperOperation🌀Projects🌀Columns🌀Cards🌀CbCardIdRcb()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Projects\\MoveCard\\Response\\Applicationjson\\H403', '\\ApiClients\\Client\\Github\\Schema\\Operation\\Projects\\MoveCard\\Response\\Applicationjson\\H503' => $this->getObjectMapperOperation🌀Projects🌀Columns🌀Cards🌀CbCardIdRcb🌀Moves()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\ProjectColumn' => $this->getObjectMapperOperation🌀Projects🌀Columns🌀CbColumnIdRcb()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\ProjectCollaboratorPermission' => $this->getObjectMapperOperation🌀Projects🌀CbProjectIdRcb🌀Collaborators🌀CbUsernameRcb🌀Permission()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\RateLimitOverview' => $this->getObjectMapperOperation🌀RateLimit()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Actions\\ListRepoRequiredWorkflows\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Repos🌀CbOrgRcb🌀CbRepoRcb🌀Actions🌀RequiredWorkflows()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\RepoRequiredWorkflow' => $this->getObjectMapperOperation🌀Repos🌀CbOrgRcb🌀CbRepoRcb🌀Actions🌀RequiredWorkflows🌀CbRequiredWorkflowIdForRepoRcb()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\WorkflowUsage' => $this->getObjectMapperOperation🌀Repos🌀CbOrgRcb🌀CbRepoRcb🌀Actions🌀RequiredWorkflows🌀CbRequiredWorkflowIdForRepoRcb🌀Timing()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\FullRepository' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Actions\\ListArtifactsForRepo\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Actions🌀Artifacts()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\Artifact' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Actions🌀Artifacts🌀CbArtifactIdRcb()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\ActionsCacheUsageByRepository' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Actions🌀Cache🌀Usage()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\ActionsCacheList' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Actions🌀Caches()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\Job' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Actions🌀Jobs🌀CbJobIdRcb()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\OidcCustomSubRepo' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Actions🌀Oidc🌀Customization🌀Sub()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\ActionsRepositoryPermissions' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Actions🌀Permissions()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\ActionsWorkflowAccessToRepository' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Actions🌀Permissions🌀Access()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Actions\\ListRequiredWorkflowRuns\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Actions🌀RequiredWorkflows🌀CbRequiredWorkflowIdForRepoRcb🌀Runs()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\WorkflowRun' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Actions🌀Runs🌀CbRunIdRcb()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\EnvironmentApprovals' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Actions🌀Runs🌀CbRunIdRcb🌀Approvals()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Actions\\ListJobsForWorkflowRunAttempt\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Actions🌀Runs🌀CbRunIdRcb🌀Attempts🌀CbAttemptNumberRcb🌀Jobs()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\PendingDeployment', '\\ApiClients\\Client\\Github\\Schema\\Deployment' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Actions🌀Runs🌀CbRunIdRcb🌀PendingDeployments()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\WorkflowRunUsage' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Actions🌀Runs🌀CbRunIdRcb🌀Timing()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Actions\\ListRepoSecrets\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Actions🌀Secrets()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\ActionsSecret' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Actions🌀Secrets🌀CbSecretNameRcb()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Actions\\ListRepoVariables\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Actions🌀Variables()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\ActionsVariable' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Actions🌀Variables🌀CbNameRcb()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Actions\\ListRepoWorkflows\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Actions🌀Workflows()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\Workflow' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Actions🌀Workflows🌀CbWorkflowIdRcb()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\Autolink' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Autolinks()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\ShortBranch' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Branches()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\BranchWithProtection' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Branches🌀CbBranchRcb()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\BranchProtection', '\\ApiClients\\Client\\Github\\Schema\\ProtectedBranch' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Branches🌀CbBranchRcb🌀Protection()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\ProtectedBranchAdminEnforced' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Branches🌀CbBranchRcb🌀Protection🌀EnforceAdmins()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\ProtectedBranchPullRequestReview' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Branches🌀CbBranchRcb🌀Protection🌀RequiredPullRequestReviews()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\StatusCheckPolicy' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Branches🌀CbBranchRcb🌀Protection🌀RequiredStatusChecks()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\BranchRestrictionPolicy' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Branches🌀CbBranchRcb🌀Protection🌀Restrictions()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\CheckRun' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀CheckRuns()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\CheckAnnotation' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀CheckDashRuns🌀CbCheckRunIdRcb🌀Annotations()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\CheckSuite' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀CheckSuites()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\CheckSuitePreference' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀CheckSuites🌀Preferences()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Checks\\ListForSuite\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀CheckDashSuites🌀CbCheckSuiteIdRcb🌀CheckDashRuns()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\CodeScanningAlertItems' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀CodeScanning🌀Alerts()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\CodeScanningAlert' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀CodeDashScanning🌀Alerts🌀CbAlertNumberRcb()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\CodeScanningAlertInstance' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀CodeDashScanning🌀Alerts🌀CbAlertNumberRcb🌀Instances()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\CodeScanningAnalysis' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀CodeScanning🌀Analyses()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\CodeScanning\\GetAnalysis\\Response\\ApplicationjsonPlusSarif\\H200', '\\ApiClients\\Client\\Github\\Schema\\CodeScanningAnalysisDeletion' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀CodeDashScanning🌀Analyses🌀CbAnalysisIdRcb()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\CodeScanningCodeqlDatabase' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀CodeScanning🌀Codeql🌀Databases()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\CodeScanningSarifsReceipt' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀CodeScanning🌀Sarifs()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\CodeScanningSarifsStatus' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀CodeDashScanning🌀Sarifs🌀CbSarifIdRcb()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\CodeownersErrors' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Codeowners🌀Errors()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Codespaces\\ListDevcontainersInRepositoryForAuthenticatedUser\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Codespaces🌀Devcontainers()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Codespaces\\RepoMachinesForAuthenticatedUser\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Codespaces🌀Machines()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Codespaces\\PreFlightWithRepoForAuthenticatedUser\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Codespaces🌀New_()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Codespaces\\ListRepoSecrets\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Codespaces🌀Secrets()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\RepoCodespacesSecret' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Codespaces🌀Secrets🌀CbSecretNameRcb()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\Collaborator' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Collaborators()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\RepositoryInvitation' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Collaborators🌀CbUsernameRcb()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\RepositoryCollaboratorPermission' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Collaborators🌀CbUsernameRcb🌀Permission()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\CommitComment' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Comments()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\Commit' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Commits()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\BranchShort' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Commits🌀CbCommitShaRcb🌀BranchesDashWhereDashHead()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\PullRequestSimple' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Commits🌀CbCommitShaRcb🌀Pulls()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Checks\\ListSuitesForRef\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Commits🌀CbRefRcb🌀CheckSuites()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\CombinedCommitStatus' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Commits🌀CbRefRcb🌀Status()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\Status' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Commits🌀CbRefRcb🌀Statuses()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\CommunityProfile' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Community🌀Profile()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\CommitComparison' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Compare🌀CbBaseheadRcb()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\ContentTree', '\\ApiClients\\Client\\Github\\Schema\\Operation\\Repos\\GetContent\\Response\\Applicationjson\\H200', '\\ApiClients\\Client\\Github\\Schema\\FileCommit' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Contents🌀CbPathRcb()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\Contributor' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Contributors()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\DependabotAlert' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Dependabot🌀Alerts()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Dependabot\\ListRepoSecrets\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Dependabot🌀Secrets()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\DependabotSecret' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Dependabot🌀Secrets🌀CbSecretNameRcb()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\DependencyGraphDiff' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀DependencyGraph🌀Compare🌀CbBaseheadRcb()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\DependencyGraph\\CreateRepositorySnapshot\\Response\\Applicationjson\\H201' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀DependencyGraph🌀Snapshots()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\DeploymentStatus' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Deployments🌀CbDeploymentIdRcb🌀Statuses()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Repos\\GetAllEnvironments\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Environments()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\Environment' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Environments🌀CbEnvironmentNameRcb()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Repos\\ListDeploymentBranchPolicies\\Response\\Applicationjson\\H200', '\\ApiClients\\Client\\Github\\Schema\\DeploymentBranchPolicy' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Environments🌀CbEnvironmentNameRcb🌀DeploymentDashBranchDashPolicies()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\ShortBlob' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Git🌀Blobs()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\Blob' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Git🌀Blobs🌀CbFileShaRcb()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\GitCommit' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Git🌀Commits()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\GitRef' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Git🌀MatchingRefs🌀CbRefRcb()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\GitTag' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Git🌀Tags()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\GitTree' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Git🌀Trees()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\Hook' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Hooks()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\Import' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Import()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\PorterAuthor' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Import🌀Authors()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\PorterLargeFile' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Import🌀LargeFiles()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\IssueComment' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Issues🌀Comments()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\IssueEvent' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Issues🌀Events()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\IssueEventForIssue' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Issues🌀CbIssueNumberRcb🌀Events()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\Label' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Issues🌀CbIssueNumberRcb🌀Labels()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\TimelineIssueEvents' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Issues🌀CbIssueNumberRcb🌀Timeline()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\DeployKey' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Keys()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\Language' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Languages()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\LicenseContent' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀License()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\MergedUpstream' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀MergeUpstream()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\Milestone' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Milestones()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Activity\\MarkRepoNotificationsAsRead\\Response\\Applicationjson\\H202' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Notifications()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\Page' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Pages()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\PageBuild', '\\ApiClients\\Client\\Github\\Schema\\PageBuildStatus' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Pages🌀Builds()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\PageDeployment' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Pages🌀Deployment()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\PagesHealthCheck' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Pages🌀Health()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\PullRequest' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Pulls()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\PullRequestReviewComment' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Pulls🌀Comments()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\DiffEntry' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Pulls🌀CbPullNumberRcb🌀Files()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\PullRequestMergeResult' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Pulls🌀CbPullNumberRcb🌀Merge()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\PullRequestReviewRequest' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Pulls🌀CbPullNumberRcb🌀RequestedReviewers()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\PullRequestReview' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Pulls🌀CbPullNumberRcb🌀Reviews()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\ReviewComment' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Pulls🌀CbPullNumberRcb🌀Reviews🌀CbReviewIdRcb🌀Comments()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\ContentFile' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Readme()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\Release' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Releases()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\ReleaseAsset' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Releases🌀Assets🌀CbAssetIdRcb()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\ReleaseNotesContent' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Releases🌀GenerateNotes()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\SecretScanningAlert' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀SecretScanning🌀Alerts()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\SecretScanningLocation' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀SecretDashScanning🌀Alerts🌀CbAlertNumberRcb🌀Locations()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Activity\\ListStargazersForRepo\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Stargazers()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Repos\\GetCodeFrequencyStats\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Stats🌀CodeFrequency()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\CommitActivity' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Stats🌀CommitActivity()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\ContributorActivity' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Stats🌀Contributors()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\ParticipationStats' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Stats🌀Participation()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\RepositorySubscription' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Subscription()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\Tag' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Tags()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\TagProtection' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Tags🌀Protection()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\Topic' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Topics()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\CloneTraffic' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Traffic🌀Clones()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\ContentTraffic' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Traffic🌀Popular🌀Paths()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\ReferrerTraffic' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Traffic🌀Popular🌀Referrers()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\ViewTraffic' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Traffic🌀Views()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Search\\Code\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Search🌀Code()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Search\\Commits\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Search🌀Commits()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Search\\IssuesAndPullRequests\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Search🌀Issues()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Search\\Labels\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Search🌀Labels()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Search\\Repos\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Search🌀Repositories()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Search\\Topics\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Search🌀Topics()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Search\\Users\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Search🌀Users()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Users\\GetAuthenticated\\Response\\Applicationjson\\H200', '\\ApiClients\\Client\\Github\\Schema\\PrivateUser' => $this->getObjectMapperOperation🌀User()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Codespaces\\ListSecretsForAuthenticatedUser\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀User🌀Codespaces🌀Secrets()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\CodespacesUserPublicKey' => $this->getObjectMapperOperation🌀User🌀Codespaces🌀Secrets🌀PublicKey()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\CodespacesSecret' => $this->getObjectMapperOperation🌀User🌀Codespaces🌀Secrets🌀CbSecretNameRcb()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\CodespaceExportDetails' => $this->getObjectMapperOperation🌀User🌀Codespaces🌀CbCodespaceNameRcb🌀Exports()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\CodespaceWithFullRepository' => $this->getObjectMapperOperation🌀User🌀Codespaces🌀CbCodespaceNameRcb🌀Publish()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\Email' => $this->getObjectMapperOperation🌀User🌀Email🌀Visibility()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\GpgKey' => $this->getObjectMapperOperation🌀User🌀GpgKeys()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Apps\\ListInstallationReposForAuthenticatedUser\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀User🌀Installations🌀CbInstallationIdRcb🌀Repositories()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\Key' => $this->getObjectMapperOperation🌀User🌀Keys()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\UserMarketplacePurchase' => $this->getObjectMapperOperation🌀User🌀MarketplacePurchases()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\SshSigningKey' => $this->getObjectMapperOperation🌀User🌀SshSigningKeys()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\StarredRepository' => $this->getObjectMapperOperation🌀User🌀Starred()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\Hovercard' => $this->getObjectMapperOperation🌀Users🌀CbUsernameRcb🌀Hovercard()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\KeySimple' => $this->getObjectMapperOperation🌀Users🌀CbUsernameRcb🌀Keys()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Activity\\ListReposStarredByUser\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Users🌀CbUsernameRcb🌀Starred()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\Operation\\Meta\\GetAllVersions\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Versions()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\WebhookBranchProtectionRuleEdited' => $this->getObjectMapperWebHook🌀BranchProtectionRule()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\WebhookCheckRunRerequested', '\\ApiClients\\Client\\Github\\Schema\\WebhookCheckRunRerequestedFormEncoded' => $this->getObjectMapperWebHook🌀CheckRun()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\WebhookCheckSuiteRerequested' => $this->getObjectMapperWebHook🌀CheckSuite()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\WebhookCodeScanningAlertReopenedByUser' => $this->getObjectMapperWebHook🌀CodeScanningAlert()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\WebhookCommitCommentCreated' => $this->getObjectMapperWebHook🌀CommitComment()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\WebhookCreate' => $this->getObjectMapperWebHook🌀Create()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\WebhookDelete' => $this->getObjectMapperWebHook🌀Delete()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\WebhookDependabotAlertReopened' => $this->getObjectMapperWebHook🌀DependabotAlert()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\WebhookDeployKeyDeleted' => $this->getObjectMapperWebHook🌀DeployKey()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\WebhookDeploymentCreated' => $this->getObjectMapperWebHook🌀Deployment()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\WebhookDeploymentStatusCreated' => $this->getObjectMapperWebHook🌀DeploymentStatus()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\WebhookDiscussionUnpinned' => $this->getObjectMapperWebHook🌀Discussion()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\WebhookDiscussionCommentEdited' => $this->getObjectMapperWebHook🌀DiscussionComment()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\WebhookFork' => $this->getObjectMapperWebHook🌀Fork()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\WebhookGithubAppAuthorizationRevoked' => $this->getObjectMapperWebHook🌀GithubAppAuthorization()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\WebhookGollum' => $this->getObjectMapperWebHook🌀Gollum()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\WebhookInstallationUnsuspend' => $this->getObjectMapperWebHook🌀Installation()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\WebhookInstallationRepositoriesRemoved' => $this->getObjectMapperWebHook🌀InstallationRepositories()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\WebhookInstallationTargetRenamed' => $this->getObjectMapperWebHook🌀InstallationTarget()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\WebhookIssueCommentEdited' => $this->getObjectMapperWebHook🌀IssueComment()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\WebhookIssuesUnpinned' => $this->getObjectMapperWebHook🌀Issues()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\WebhookLabelEdited' => $this->getObjectMapperWebHook🌀Label()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\WebhookMarketplacePurchasePurchased' => $this->getObjectMapperWebHook🌀MarketplacePurchase()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\WebhookMemberRemoved' => $this->getObjectMapperWebHook🌀Member()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\WebhookMembershipRemoved' => $this->getObjectMapperWebHook🌀Membership()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\WebhookMergeGroupChecksRequested' => $this->getObjectMapperWebHook🌀MergeGroup()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\WebhookMetaDeleted' => $this->getObjectMapperWebHook🌀Meta()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\WebhookMilestoneOpened' => $this->getObjectMapperWebHook🌀Milestone()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\WebhookOrgBlockUnblocked' => $this->getObjectMapperWebHook🌀OrgBlock()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\WebhookOrganizationRenamed' => $this->getObjectMapperWebHook🌀Organization()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\WebhookPackageUpdated' => $this->getObjectMapperWebHook🌀Package()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\WebhookPageBuild' => $this->getObjectMapperWebHook🌀PageBuild()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\WebhookPing', '\\ApiClients\\Client\\Github\\Schema\\WebhookPingFormEncoded' => $this->getObjectMapperWebHook🌀Ping()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\WebhookProjectCardMoved' => $this->getObjectMapperWebHook🌀ProjectCard()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\WebhookProjectReopened' => $this->getObjectMapperWebHook🌀Project()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\WebhookProjectColumnMoved' => $this->getObjectMapperWebHook🌀ProjectColumn()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\WebhookProjectsV2ProjectReopened' => $this->getObjectMapperWebHook🌀ProjectsV2()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\WebhookProjectsV2ItemRestored' => $this->getObjectMapperWebHook🌀ProjectsV2Item()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\WebhookPublic' => $this->getObjectMapperWebHook🌀Public_()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\WebhookPullRequestUnlocked' => $this->getObjectMapperWebHook🌀PullRequest()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\WebhookPullRequestReviewCommentEdited' => $this->getObjectMapperWebHook🌀PullRequestReviewComment()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\WebhookPullRequestReviewSubmitted' => $this->getObjectMapperWebHook🌀PullRequestReview()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\WebhookPullRequestReviewThreadUnresolved' => $this->getObjectMapperWebHook🌀PullRequestReviewThread()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\WebhookPush' => $this->getObjectMapperWebHook🌀Push()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\WebhookRegistryPackageUpdated' => $this->getObjectMapperWebHook🌀RegistryPackage()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\WebhookReleaseUnpublished' => $this->getObjectMapperWebHook🌀Release()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\WebhookRepositoryUnarchived' => $this->getObjectMapperWebHook🌀Repository()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\WebhookRepositoryDispatchSample' => $this->getObjectMapperWebHook🌀RepositoryDispatch()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\WebhookRepositoryImport' => $this->getObjectMapperWebHook🌀RepositoryImport()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\WebhookRepositoryVulnerabilityAlertResolve' => $this->getObjectMapperWebHook🌀RepositoryVulnerabilityAlert()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\WebhookSecretScanningAlertRevoked' => $this->getObjectMapperWebHook🌀SecretScanningAlert()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\WebhookSecretScanningAlertLocationCreated', '\\ApiClients\\Client\\Github\\Schema\\WebhookSecretScanningAlertLocationCreatedFormEncoded' => $this->getObjectMapperWebHook🌀SecretScanningAlertLocation()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\WebhookSecurityAdvisoryWithdrawn' => $this->getObjectMapperWebHook🌀SecurityAdvisory()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\WebhookSecurityAndAnalysis' => $this->getObjectMapperWebHook🌀SecurityAndAnalysis()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\WebhookSponsorshipTierChanged' => $this->getObjectMapperWebHook🌀Sponsorship()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\WebhookStarDeleted' => $this->getObjectMapperWebHook🌀Star()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\WebhookStatus' => $this->getObjectMapperWebHook🌀Status()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\WebhookTeamAdd' => $this->getObjectMapperWebHook🌀TeamAdd()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\WebhookTeamRemovedFromRepository' => $this->getObjectMapperWebHook🌀Team()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\WebhookWatchStarted' => $this->getObjectMapperWebHook🌀Watch()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\WebhookWorkflowDispatch' => $this->getObjectMapperWebHook🌀WorkflowDispatch()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\WebhookWorkflowJobWaiting' => $this->getObjectMapperWebHook🌀WorkflowJob()->serializeObject($object), - '\\ApiClients\\Client\\Github\\Schema\\WebhookWorkflowRunRequested' => $this->getObjectMapperWebHook🌀WorkflowRun()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\Root' => $this->getObjectMapperOperation🌀Root()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\Integration' => $this->getObjectMapperOperation🌀App()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Apps\\CreateFromManifest\\Response\\Applicationjson\\H201', 'ApiClients\\Client\\Github\\Schema\\BasicError', 'ApiClients\\Client\\Github\\Schema\\ValidationErrorSimple' => $this->getObjectMapperOperation🌀AppManifests🌀CbCodeRcb🌀Conversions()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\WebhookConfig' => $this->getObjectMapperOperation🌀App🌀Hook🌀Config()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\HookDeliveryItem', 'ApiClients\\Client\\Github\\Schema\\ScimError', 'ApiClients\\Client\\Github\\Schema\\ValidationError' => $this->getObjectMapperOperation🌀App🌀Hook🌀Deliveries()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\HookDelivery' => $this->getObjectMapperOperation🌀App🌀Hook🌀Deliveries🌀CbDeliveryIdRcb()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\WebhookPackagePublished\\Package\\PackageVersion\\NpmMetadata\\Dependencies' => $this->getObjectMapperOperation🌀App🌀Hook🌀Deliveries🌀CbDeliveryIdRcb🌀Attempts()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\Installation' => $this->getObjectMapperOperation🌀App🌀Installations()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\InstallationToken' => $this->getObjectMapperOperation🌀App🌀Installations🌀CbInstallationIdRcb🌀AccessTokens()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\Authorization' => $this->getObjectMapperOperation🌀Applications🌀CbClientIdRcb🌀Token()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\CodeOfConduct' => $this->getObjectMapperOperation🌀CodesOfConduct()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Emojis\\Get\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Emojis()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\DependabotAlertWithRepository' => $this->getObjectMapperOperation🌀Enterprises🌀CbEnterpriseRcb🌀Dependabot🌀Alerts()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\OrganizationSecretScanningAlert', 'ApiClients\\Client\\Github\\Schema\\Operation\\SecretScanning\\ListAlertsForEnterprise\\Response\\Applicationjson\\H503' => $this->getObjectMapperOperation🌀Enterprises🌀CbEnterpriseRcb🌀SecretScanning🌀Alerts()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\Event' => $this->getObjectMapperOperation🌀Events()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\Feed' => $this->getObjectMapperOperation🌀Feeds()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\BaseGist', 'ApiClients\\Client\\Github\\Schema\\GistSimple' => $this->getObjectMapperOperation🌀Gists()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Gists\\Get\\Response\\Applicationjson\\H403' => $this->getObjectMapperOperation🌀Gists🌀CbGistIdRcb()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\GistComment' => $this->getObjectMapperOperation🌀Gists🌀CbGistIdRcb🌀Comments()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\GistCommit' => $this->getObjectMapperOperation🌀Gists🌀CbGistIdRcb🌀Commits()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Gists\\CheckIsStarred\\Response\\Applicationjson\\H404' => $this->getObjectMapperOperation🌀Gists🌀CbGistIdRcb🌀Star()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\WebHookHeader\\UserAgent' => $this->getObjectMapperOperation🌀Gitignore🌀Templates()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\GitignoreTemplate' => $this->getObjectMapperOperation🌀Gitignore🌀Templates🌀CbNameRcb()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Apps\\ListReposAccessibleToInstallation\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Installation🌀Repositories()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\Issue' => $this->getObjectMapperOperation🌀Issues()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\LicenseSimple' => $this->getObjectMapperOperation🌀Licenses()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\License' => $this->getObjectMapperOperation🌀Licenses🌀CbLicenseRcb()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\MarketplacePurchase' => $this->getObjectMapperOperation🌀MarketplaceListing🌀Accounts🌀CbAccountIdRcb()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\MarketplaceListingPlan' => $this->getObjectMapperOperation🌀MarketplaceListing🌀Plans()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\ApiOverview' => $this->getObjectMapperOperation🌀Meta()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\Thread', 'ApiClients\\Client\\Github\\Schema\\Operation\\Activity\\MarkNotificationsAsRead\\Response\\Applicationjson\\H202' => $this->getObjectMapperOperation🌀Notifications()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\ThreadSubscription' => $this->getObjectMapperOperation🌀Notifications🌀Threads🌀CbThreadIdRcb🌀Subscription()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\OrganizationSimple' => $this->getObjectMapperOperation🌀Organizations()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\OrganizationFull', 'ApiClients\\Client\\Github\\Schema\\Operation\\Orgs\\Update\\Response\\Applicationjson\\H422' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\ActionsCacheUsageOrgEnterprise' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Actions🌀Cache🌀Usage()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Actions\\GetActionsCacheUsageByRepoForOrg\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Actions🌀Cache🌀UsageByRepository()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\OidcCustomSub', 'ApiClients\\Client\\Github\\Schema\\EmptyObject' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Actions🌀Oidc🌀Customization🌀Sub()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\ActionsOrganizationPermissions' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Actions🌀Permissions()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Actions\\ListSelectedRepositoriesEnabledGithubActionsOrganization\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Actions🌀Permissions🌀Repositories()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\SelectedActions' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Actions🌀Permissions🌀SelectedActions()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\ActionsGetDefaultWorkflowPermissions' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Actions🌀Permissions🌀Workflow()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Actions\\ListRequiredWorkflows\\Response\\Applicationjson\\H200', 'ApiClients\\Client\\Github\\Schema\\RequiredWorkflow' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Actions🌀RequiredWorkflows()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Actions\\ListSelfHostedRunnersForOrg\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Actions🌀Runners()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\RunnerApplication' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Actions🌀Runners🌀Downloads()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\AuthenticationToken' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Actions🌀Runners🌀RegistrationToken()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\Runner' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Actions🌀Runners🌀CbRunnerIdRcb()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Actions\\ListLabelsForSelfHostedRunnerForOrg\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Actions🌀Runners🌀CbRunnerIdRcb🌀Labels()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Actions\\ListOrgSecrets\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Actions🌀Secrets()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\ActionsPublicKey' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Actions🌀Secrets🌀PublicKey()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\OrganizationActionsSecret' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Actions🌀Secrets🌀CbSecretNameRcb()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Actions\\ListSelectedReposForOrgSecret\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Actions🌀Secrets🌀CbSecretNameRcb🌀Repositories()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Actions\\ListOrgVariables\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Actions🌀Variables()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\OrganizationActionsVariable' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Actions🌀Variables🌀CbNameRcb()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\SimpleUser' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Blocks()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\CodeScanningOrganizationAlertItems' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀CodeScanning🌀Alerts()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Codespaces\\ListInOrganization\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Codespaces()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Codespaces\\ListOrgSecrets\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Codespaces🌀Secrets()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\CodespacesPublicKey' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Codespaces🌀Secrets🌀PublicKey()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\CodespacesOrgSecret' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Codespaces🌀Secrets🌀CbSecretNameRcb()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Dependabot\\ListOrgSecrets\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Dependabot🌀Secrets()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\DependabotPublicKey' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Dependabot🌀Secrets🌀PublicKey()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\OrganizationDependabotSecret' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Dependabot🌀Secrets🌀CbSecretNameRcb()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\OrganizationInvitation' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀FailedInvitations()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\OrgHook' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Hooks()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Orgs\\ListAppInstallations\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Installations()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Interactions\\GetRestrictionsForOrg\\Response\\Applicationjson\\H200', 'ApiClients\\Client\\Github\\Schema\\InteractionLimitResponse' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀InteractionLimits()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\Team' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Invitations🌀CbInvitationIdRcb🌀Teams()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\Codespace' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Members🌀CbUsernameRcb🌀Codespaces🌀CbCodespaceNameRcb🌀Stop()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\OrgMembership' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Memberships🌀CbUsernameRcb()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\Migration' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Migrations()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\MinimalRepository' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Migrations🌀CbMigrationIdRcb🌀Repositories()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Orgs\\RemoveOutsideCollaborator\\Response\\Applicationjson\\H422' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀OutsideCollaborators🌀CbUsernameRcb()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\Package' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Packages()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\PackageVersion' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Packages🌀CbPackageTypeRcb🌀CbPackageNameRcb🌀Versions()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\Project' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Projects()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\Repository' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Repos()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\TeamSimple' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀SecurityManagers()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\ActionsBillingUsage' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Settings🌀Billing🌀Actions()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\PackagesBillingUsage' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Settings🌀Billing🌀Packages()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\CombinedBillingUsage' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Settings🌀Billing🌀SharedStorage()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\TeamFull' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Teams()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\TeamDiscussion' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Teams🌀CbTeamSlugRcb🌀Discussions()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\TeamDiscussionComment' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Teams🌀CbTeamSlugRcb🌀Discussions🌀CbDiscussionNumberRcb🌀Comments()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\Reaction' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Teams🌀CbTeamSlugRcb🌀Discussions🌀CbDiscussionNumberRcb🌀Comments🌀CbCommentNumberRcb🌀Reactions()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\TeamMembership' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Teams🌀CbTeamSlugRcb🌀Memberships🌀CbUsernameRcb()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\TeamProject' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Teams🌀CbTeamSlugRcb🌀Projects()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\TeamRepository' => $this->getObjectMapperOperation🌀Orgs🌀CbOrgRcb🌀Teams🌀CbTeamSlugRcb🌀Repos🌀CbOwnerRcb🌀CbRepoRcb()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\ProjectCard', 'ApiClients\\Client\\Github\\Schema\\Operation\\Projects\\DeleteCard\\Response\\Applicationjson\\H403' => $this->getObjectMapperOperation🌀Projects🌀Columns🌀Cards🌀CbCardIdRcb()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Projects\\MoveCard\\Response\\Applicationjson\\H403', 'ApiClients\\Client\\Github\\Schema\\Operation\\Projects\\MoveCard\\Response\\Applicationjson\\H503' => $this->getObjectMapperOperation🌀Projects🌀Columns🌀Cards🌀CbCardIdRcb🌀Moves()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\ProjectColumn' => $this->getObjectMapperOperation🌀Projects🌀Columns🌀CbColumnIdRcb()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\ProjectCollaboratorPermission' => $this->getObjectMapperOperation🌀Projects🌀CbProjectIdRcb🌀Collaborators🌀CbUsernameRcb🌀Permission()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\RateLimitOverview' => $this->getObjectMapperOperation🌀RateLimit()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Actions\\ListRepoRequiredWorkflows\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Repos🌀CbOrgRcb🌀CbRepoRcb🌀Actions🌀RequiredWorkflows()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\RepoRequiredWorkflow' => $this->getObjectMapperOperation🌀Repos🌀CbOrgRcb🌀CbRepoRcb🌀Actions🌀RequiredWorkflows🌀CbRequiredWorkflowIdForRepoRcb()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\WorkflowUsage' => $this->getObjectMapperOperation🌀Repos🌀CbOrgRcb🌀CbRepoRcb🌀Actions🌀RequiredWorkflows🌀CbRequiredWorkflowIdForRepoRcb🌀Timing()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\FullRepository' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Actions\\ListArtifactsForRepo\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Actions🌀Artifacts()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\Artifact' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Actions🌀Artifacts🌀CbArtifactIdRcb()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\ActionsCacheUsageByRepository' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Actions🌀Cache🌀Usage()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\ActionsCacheList' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Actions🌀Caches()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\Job' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Actions🌀Jobs🌀CbJobIdRcb()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\OidcCustomSubRepo' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Actions🌀Oidc🌀Customization🌀Sub()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\ActionsRepositoryPermissions' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Actions🌀Permissions()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\ActionsWorkflowAccessToRepository' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Actions🌀Permissions🌀Access()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Actions\\ListRequiredWorkflowRuns\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Actions🌀RequiredWorkflows🌀CbRequiredWorkflowIdForRepoRcb🌀Runs()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\WorkflowRun' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Actions🌀Runs🌀CbRunIdRcb()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\EnvironmentApprovals' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Actions🌀Runs🌀CbRunIdRcb🌀Approvals()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Actions\\ListJobsForWorkflowRunAttempt\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Actions🌀Runs🌀CbRunIdRcb🌀Attempts🌀CbAttemptNumberRcb🌀Jobs()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\PendingDeployment', 'ApiClients\\Client\\Github\\Schema\\Deployment' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Actions🌀Runs🌀CbRunIdRcb🌀PendingDeployments()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\WorkflowRunUsage' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Actions🌀Runs🌀CbRunIdRcb🌀Timing()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Actions\\ListRepoSecrets\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Actions🌀Secrets()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\ActionsSecret' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Actions🌀Secrets🌀CbSecretNameRcb()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Actions\\ListRepoVariables\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Actions🌀Variables()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\ActionsVariable' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Actions🌀Variables🌀CbNameRcb()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Actions\\ListRepoWorkflows\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Actions🌀Workflows()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\Workflow' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Actions🌀Workflows🌀CbWorkflowIdRcb()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\Autolink' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Autolinks()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\ShortBranch' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Branches()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\BranchWithProtection' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Branches🌀CbBranchRcb()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\BranchProtection', 'ApiClients\\Client\\Github\\Schema\\ProtectedBranch' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Branches🌀CbBranchRcb🌀Protection()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\ProtectedBranchAdminEnforced' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Branches🌀CbBranchRcb🌀Protection🌀EnforceAdmins()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\ProtectedBranchPullRequestReview' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Branches🌀CbBranchRcb🌀Protection🌀RequiredPullRequestReviews()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\StatusCheckPolicy' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Branches🌀CbBranchRcb🌀Protection🌀RequiredStatusChecks()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\BranchRestrictionPolicy' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Branches🌀CbBranchRcb🌀Protection🌀Restrictions()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\CheckRun' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀CheckRuns()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\CheckAnnotation' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀CheckDashRuns🌀CbCheckRunIdRcb🌀Annotations()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\CheckSuite' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀CheckSuites()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\CheckSuitePreference' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀CheckSuites🌀Preferences()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Checks\\ListForSuite\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀CheckDashSuites🌀CbCheckSuiteIdRcb🌀CheckDashRuns()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\CodeScanningAlertItems' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀CodeScanning🌀Alerts()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\CodeScanningAlert' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀CodeDashScanning🌀Alerts🌀CbAlertNumberRcb()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\CodeScanningAlertInstance' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀CodeDashScanning🌀Alerts🌀CbAlertNumberRcb🌀Instances()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\CodeScanningAnalysis' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀CodeScanning🌀Analyses()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\Operation\\CodeScanning\\GetAnalysis\\Response\\ApplicationjsonPlusSarif\\H200', 'ApiClients\\Client\\Github\\Schema\\CodeScanningAnalysisDeletion' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀CodeDashScanning🌀Analyses🌀CbAnalysisIdRcb()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\CodeScanningCodeqlDatabase' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀CodeScanning🌀Codeql🌀Databases()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\CodeScanningSarifsReceipt' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀CodeScanning🌀Sarifs()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\CodeScanningSarifsStatus' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀CodeDashScanning🌀Sarifs🌀CbSarifIdRcb()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\CodeownersErrors' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Codeowners🌀Errors()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Codespaces\\ListDevcontainersInRepositoryForAuthenticatedUser\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Codespaces🌀Devcontainers()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Codespaces\\RepoMachinesForAuthenticatedUser\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Codespaces🌀Machines()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Codespaces\\PreFlightWithRepoForAuthenticatedUser\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Codespaces🌀New_()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Codespaces\\ListRepoSecrets\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Codespaces🌀Secrets()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\RepoCodespacesSecret' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Codespaces🌀Secrets🌀CbSecretNameRcb()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\Collaborator' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Collaborators()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\RepositoryInvitation' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Collaborators🌀CbUsernameRcb()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\RepositoryCollaboratorPermission' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Collaborators🌀CbUsernameRcb🌀Permission()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\CommitComment' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Comments()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\Commit' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Commits()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\BranchShort' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Commits🌀CbCommitShaRcb🌀BranchesDashWhereDashHead()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\PullRequestSimple' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Commits🌀CbCommitShaRcb🌀Pulls()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Checks\\ListSuitesForRef\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Commits🌀CbRefRcb🌀CheckSuites()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\CombinedCommitStatus' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Commits🌀CbRefRcb🌀Status()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\Status' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Commits🌀CbRefRcb🌀Statuses()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\CommunityProfile' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Community🌀Profile()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\CommitComparison' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Compare🌀CbBaseheadRcb()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\ContentTree', 'ApiClients\\Client\\Github\\Schema\\Operation\\Repos\\GetContent\\Response\\Applicationjson\\H200', 'ApiClients\\Client\\Github\\Schema\\FileCommit' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Contents🌀CbPathRcb()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\Contributor' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Contributors()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\DependabotAlert' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Dependabot🌀Alerts()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Dependabot\\ListRepoSecrets\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Dependabot🌀Secrets()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\DependabotSecret' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Dependabot🌀Secrets🌀CbSecretNameRcb()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\DependencyGraphDiff' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀DependencyGraph🌀Compare🌀CbBaseheadRcb()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\Operation\\DependencyGraph\\CreateRepositorySnapshot\\Response\\Applicationjson\\H201' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀DependencyGraph🌀Snapshots()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\DeploymentStatus' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Deployments🌀CbDeploymentIdRcb🌀Statuses()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Repos\\GetAllEnvironments\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Environments()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\Environment' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Environments🌀CbEnvironmentNameRcb()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Repos\\ListDeploymentBranchPolicies\\Response\\Applicationjson\\H200', 'ApiClients\\Client\\Github\\Schema\\DeploymentBranchPolicy' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Environments🌀CbEnvironmentNameRcb🌀DeploymentDashBranchDashPolicies()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\ShortBlob' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Git🌀Blobs()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\Blob' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Git🌀Blobs🌀CbFileShaRcb()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\GitCommit' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Git🌀Commits()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\GitRef' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Git🌀MatchingRefs🌀CbRefRcb()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\GitTag' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Git🌀Tags()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\GitTree' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Git🌀Trees()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\Hook' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Hooks()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\Import' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Import()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\PorterAuthor' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Import🌀Authors()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\PorterLargeFile' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Import🌀LargeFiles()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\IssueComment' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Issues🌀Comments()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\IssueEvent' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Issues🌀Events()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\IssueEventForIssue' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Issues🌀CbIssueNumberRcb🌀Events()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\Label' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Issues🌀CbIssueNumberRcb🌀Labels()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\TimelineIssueEvents' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Issues🌀CbIssueNumberRcb🌀Timeline()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\DeployKey' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Keys()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\Language' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Languages()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\LicenseContent' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀License()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\MergedUpstream' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀MergeUpstream()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\Milestone' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Milestones()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Activity\\MarkRepoNotificationsAsRead\\Response\\Applicationjson\\H202' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Notifications()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\Page' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Pages()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\PageBuild', 'ApiClients\\Client\\Github\\Schema\\PageBuildStatus' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Pages🌀Builds()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\PageDeployment' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Pages🌀Deployment()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\PagesHealthCheck' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Pages🌀Health()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\PullRequest' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Pulls()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\PullRequestReviewComment' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Pulls🌀Comments()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\DiffEntry' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Pulls🌀CbPullNumberRcb🌀Files()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\PullRequestMergeResult' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Pulls🌀CbPullNumberRcb🌀Merge()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\PullRequestReviewRequest' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Pulls🌀CbPullNumberRcb🌀RequestedReviewers()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\PullRequestReview' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Pulls🌀CbPullNumberRcb🌀Reviews()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\ReviewComment' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Pulls🌀CbPullNumberRcb🌀Reviews🌀CbReviewIdRcb🌀Comments()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\ContentFile' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Readme()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\Release' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Releases()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\ReleaseAsset' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Releases🌀Assets🌀CbAssetIdRcb()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\ReleaseNotesContent' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Releases🌀GenerateNotes()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\SecretScanningAlert' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀SecretScanning🌀Alerts()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\SecretScanningLocation' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀SecretDashScanning🌀Alerts🌀CbAlertNumberRcb🌀Locations()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Activity\\ListStargazersForRepo\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Stargazers()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Repos\\GetCodeFrequencyStats\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Stats🌀CodeFrequency()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\CommitActivity' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Stats🌀CommitActivity()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\ContributorActivity' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Stats🌀Contributors()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\ParticipationStats' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Stats🌀Participation()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\RepositorySubscription' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Subscription()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\Tag' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Tags()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\TagProtection' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Tags🌀Protection()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\Topic' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Topics()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\CloneTraffic' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Traffic🌀Clones()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\ContentTraffic' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Traffic🌀Popular🌀Paths()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\ReferrerTraffic' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Traffic🌀Popular🌀Referrers()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\ViewTraffic' => $this->getObjectMapperOperation🌀Repos🌀CbOwnerRcb🌀CbRepoRcb🌀Traffic🌀Views()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Search\\Code\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Search🌀Code()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Search\\Commits\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Search🌀Commits()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Search\\IssuesAndPullRequests\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Search🌀Issues()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Search\\Labels\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Search🌀Labels()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Search\\Repos\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Search🌀Repositories()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Search\\Topics\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Search🌀Topics()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Search\\Users\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Search🌀Users()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Users\\GetAuthenticated\\Response\\Applicationjson\\H200', 'ApiClients\\Client\\Github\\Schema\\PrivateUser' => $this->getObjectMapperOperation🌀User()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Codespaces\\ListSecretsForAuthenticatedUser\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀User🌀Codespaces🌀Secrets()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\CodespacesUserPublicKey' => $this->getObjectMapperOperation🌀User🌀Codespaces🌀Secrets🌀PublicKey()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\CodespacesSecret' => $this->getObjectMapperOperation🌀User🌀Codespaces🌀Secrets🌀CbSecretNameRcb()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\CodespaceExportDetails' => $this->getObjectMapperOperation🌀User🌀Codespaces🌀CbCodespaceNameRcb🌀Exports()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\CodespaceWithFullRepository' => $this->getObjectMapperOperation🌀User🌀Codespaces🌀CbCodespaceNameRcb🌀Publish()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\Email' => $this->getObjectMapperOperation🌀User🌀Email🌀Visibility()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\GpgKey' => $this->getObjectMapperOperation🌀User🌀GpgKeys()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Apps\\ListInstallationReposForAuthenticatedUser\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀User🌀Installations🌀CbInstallationIdRcb🌀Repositories()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\Key' => $this->getObjectMapperOperation🌀User🌀Keys()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\UserMarketplacePurchase' => $this->getObjectMapperOperation🌀User🌀MarketplacePurchases()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\SshSigningKey' => $this->getObjectMapperOperation🌀User🌀SshSigningKeys()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\StarredRepository' => $this->getObjectMapperOperation🌀User🌀Starred()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\Hovercard' => $this->getObjectMapperOperation🌀Users🌀CbUsernameRcb🌀Hovercard()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\KeySimple' => $this->getObjectMapperOperation🌀Users🌀CbUsernameRcb🌀Keys()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Activity\\ListReposStarredByUser\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Users🌀CbUsernameRcb🌀Starred()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\Operation\\Meta\\GetAllVersions\\Response\\Applicationjson\\H200' => $this->getObjectMapperOperation🌀Versions()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\WebhookBranchProtectionRuleCreated', 'ApiClients\\Client\\Github\\Schema\\WebhookBranchProtectionRuleDeleted', 'ApiClients\\Client\\Github\\Schema\\WebhookBranchProtectionRuleEdited' => $this->getObjectMapperWebHook🌀BranchProtectionRule()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\WebhookCheckRunCompleted', 'ApiClients\\Client\\Github\\Schema\\WebhookCheckRunCompletedFormEncoded', 'ApiClients\\Client\\Github\\Schema\\WebhookCheckRunCreated', 'ApiClients\\Client\\Github\\Schema\\WebhookCheckRunCreatedFormEncoded', 'ApiClients\\Client\\Github\\Schema\\WebhookCheckRunRequestedAction', 'ApiClients\\Client\\Github\\Schema\\WebhookCheckRunRequestedActionFormEncoded', 'ApiClients\\Client\\Github\\Schema\\WebhookCheckRunRerequested', 'ApiClients\\Client\\Github\\Schema\\WebhookCheckRunRerequestedFormEncoded' => $this->getObjectMapperWebHook🌀CheckRun()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\WebhookCheckSuiteCompleted', 'ApiClients\\Client\\Github\\Schema\\WebhookCheckSuiteRequested', 'ApiClients\\Client\\Github\\Schema\\WebhookCheckSuiteRerequested' => $this->getObjectMapperWebHook🌀CheckSuite()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\WebhookCodeScanningAlertAppearedInBranch', 'ApiClients\\Client\\Github\\Schema\\WebhookCodeScanningAlertClosedByUser', 'ApiClients\\Client\\Github\\Schema\\WebhookCodeScanningAlertCreated', 'ApiClients\\Client\\Github\\Schema\\WebhookCodeScanningAlertFixed', 'ApiClients\\Client\\Github\\Schema\\WebhookCodeScanningAlertReopened', 'ApiClients\\Client\\Github\\Schema\\WebhookCodeScanningAlertReopenedByUser' => $this->getObjectMapperWebHook🌀CodeScanningAlert()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\WebhookCommitCommentCreated' => $this->getObjectMapperWebHook🌀CommitComment()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\WebhookCreate' => $this->getObjectMapperWebHook🌀Create()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\WebhookDelete' => $this->getObjectMapperWebHook🌀Delete()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\WebhookDependabotAlertCreated', 'ApiClients\\Client\\Github\\Schema\\WebhookDependabotAlertDismissed', 'ApiClients\\Client\\Github\\Schema\\WebhookDependabotAlertFixed', 'ApiClients\\Client\\Github\\Schema\\WebhookDependabotAlertReintroduced', 'ApiClients\\Client\\Github\\Schema\\WebhookDependabotAlertReopened' => $this->getObjectMapperWebHook🌀DependabotAlert()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\WebhookDeployKeyCreated', 'ApiClients\\Client\\Github\\Schema\\WebhookDeployKeyDeleted' => $this->getObjectMapperWebHook🌀DeployKey()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\WebhookDeploymentCreated' => $this->getObjectMapperWebHook🌀Deployment()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\WebhookDeploymentStatusCreated' => $this->getObjectMapperWebHook🌀DeploymentStatus()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\WebhookDiscussionAnswered', 'ApiClients\\Client\\Github\\Schema\\WebhookDiscussionCategoryChanged', 'ApiClients\\Client\\Github\\Schema\\WebhookDiscussionCreated', 'ApiClients\\Client\\Github\\Schema\\WebhookDiscussionDeleted', 'ApiClients\\Client\\Github\\Schema\\WebhookDiscussionEdited', 'ApiClients\\Client\\Github\\Schema\\WebhookDiscussionLabeled', 'ApiClients\\Client\\Github\\Schema\\WebhookDiscussionLocked', 'ApiClients\\Client\\Github\\Schema\\WebhookDiscussionPinned', 'ApiClients\\Client\\Github\\Schema\\WebhookDiscussionTransferred', 'ApiClients\\Client\\Github\\Schema\\WebhookDiscussionUnanswered', 'ApiClients\\Client\\Github\\Schema\\WebhookDiscussionUnlabeled', 'ApiClients\\Client\\Github\\Schema\\WebhookDiscussionUnlocked', 'ApiClients\\Client\\Github\\Schema\\WebhookDiscussionUnpinned' => $this->getObjectMapperWebHook🌀Discussion()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\WebhookDiscussionCommentCreated', 'ApiClients\\Client\\Github\\Schema\\WebhookDiscussionCommentDeleted', 'ApiClients\\Client\\Github\\Schema\\WebhookDiscussionCommentEdited' => $this->getObjectMapperWebHook🌀DiscussionComment()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\WebhookFork' => $this->getObjectMapperWebHook🌀Fork()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\WebhookGithubAppAuthorizationRevoked' => $this->getObjectMapperWebHook🌀GithubAppAuthorization()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\WebhookGollum' => $this->getObjectMapperWebHook🌀Gollum()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\WebhookInstallationCreated', 'ApiClients\\Client\\Github\\Schema\\WebhookInstallationDeleted', 'ApiClients\\Client\\Github\\Schema\\WebhookInstallationNewPermissionsAccepted', 'ApiClients\\Client\\Github\\Schema\\WebhookInstallationSuspend', 'ApiClients\\Client\\Github\\Schema\\WebhookInstallationUnsuspend' => $this->getObjectMapperWebHook🌀Installation()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\WebhookInstallationRepositoriesAdded', 'ApiClients\\Client\\Github\\Schema\\WebhookInstallationRepositoriesRemoved' => $this->getObjectMapperWebHook🌀InstallationRepositories()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\WebhookInstallationTargetRenamed' => $this->getObjectMapperWebHook🌀InstallationTarget()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\WebhookIssueCommentCreated', 'ApiClients\\Client\\Github\\Schema\\WebhookIssueCommentDeleted', 'ApiClients\\Client\\Github\\Schema\\WebhookIssueCommentEdited' => $this->getObjectMapperWebHook🌀IssueComment()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\WebhookIssuesAssigned', 'ApiClients\\Client\\Github\\Schema\\WebhookIssuesClosed', 'ApiClients\\Client\\Github\\Schema\\WebhookIssuesDeleted', 'ApiClients\\Client\\Github\\Schema\\WebhookIssuesDemilestoned', 'ApiClients\\Client\\Github\\Schema\\WebhookIssuesEdited', 'ApiClients\\Client\\Github\\Schema\\WebhookIssuesLabeled', 'ApiClients\\Client\\Github\\Schema\\WebhookIssuesLocked', 'ApiClients\\Client\\Github\\Schema\\WebhookIssuesMilestoned', 'ApiClients\\Client\\Github\\Schema\\WebhookIssuesOpened', 'ApiClients\\Client\\Github\\Schema\\WebhookIssuesPinned', 'ApiClients\\Client\\Github\\Schema\\WebhookIssuesReopened', 'ApiClients\\Client\\Github\\Schema\\WebhookIssuesTransferred', 'ApiClients\\Client\\Github\\Schema\\WebhookIssuesUnassigned', 'ApiClients\\Client\\Github\\Schema\\WebhookIssuesUnlabeled', 'ApiClients\\Client\\Github\\Schema\\WebhookIssuesUnlocked', 'ApiClients\\Client\\Github\\Schema\\WebhookIssuesUnpinned' => $this->getObjectMapperWebHook🌀Issues()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\WebhookLabelCreated', 'ApiClients\\Client\\Github\\Schema\\WebhookLabelDeleted', 'ApiClients\\Client\\Github\\Schema\\WebhookLabelEdited' => $this->getObjectMapperWebHook🌀Label()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\WebhookMarketplacePurchaseCancelled', 'ApiClients\\Client\\Github\\Schema\\WebhookMarketplacePurchaseChanged', 'ApiClients\\Client\\Github\\Schema\\WebhookMarketplacePurchasePendingChange', 'ApiClients\\Client\\Github\\Schema\\WebhookMarketplacePurchasePendingChangeCancelled', 'ApiClients\\Client\\Github\\Schema\\WebhookMarketplacePurchasePurchased' => $this->getObjectMapperWebHook🌀MarketplacePurchase()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\WebhookMemberAdded', 'ApiClients\\Client\\Github\\Schema\\WebhookMemberEdited', 'ApiClients\\Client\\Github\\Schema\\WebhookMemberRemoved' => $this->getObjectMapperWebHook🌀Member()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\WebhookMembershipAdded', 'ApiClients\\Client\\Github\\Schema\\WebhookMembershipRemoved' => $this->getObjectMapperWebHook🌀Membership()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\WebhookMergeGroupChecksRequested' => $this->getObjectMapperWebHook🌀MergeGroup()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\WebhookMetaDeleted' => $this->getObjectMapperWebHook🌀Meta()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\WebhookMilestoneClosed', 'ApiClients\\Client\\Github\\Schema\\WebhookMilestoneCreated', 'ApiClients\\Client\\Github\\Schema\\WebhookMilestoneDeleted', 'ApiClients\\Client\\Github\\Schema\\WebhookMilestoneEdited', 'ApiClients\\Client\\Github\\Schema\\WebhookMilestoneOpened' => $this->getObjectMapperWebHook🌀Milestone()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\WebhookOrgBlockBlocked', 'ApiClients\\Client\\Github\\Schema\\WebhookOrgBlockUnblocked' => $this->getObjectMapperWebHook🌀OrgBlock()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\WebhookOrganizationDeleted', 'ApiClients\\Client\\Github\\Schema\\WebhookOrganizationMemberAdded', 'ApiClients\\Client\\Github\\Schema\\WebhookOrganizationMemberInvited', 'ApiClients\\Client\\Github\\Schema\\WebhookOrganizationMemberRemoved', 'ApiClients\\Client\\Github\\Schema\\WebhookOrganizationRenamed' => $this->getObjectMapperWebHook🌀Organization()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\WebhookPackagePublished', 'ApiClients\\Client\\Github\\Schema\\WebhookPackageUpdated' => $this->getObjectMapperWebHook🌀Package()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\WebhookPageBuild' => $this->getObjectMapperWebHook🌀PageBuild()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\WebhookPing', 'ApiClients\\Client\\Github\\Schema\\WebhookPingFormEncoded' => $this->getObjectMapperWebHook🌀Ping()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\WebhookProjectCardConverted', 'ApiClients\\Client\\Github\\Schema\\WebhookProjectCardCreated', 'ApiClients\\Client\\Github\\Schema\\WebhookProjectCardDeleted', 'ApiClients\\Client\\Github\\Schema\\WebhookProjectCardEdited', 'ApiClients\\Client\\Github\\Schema\\WebhookProjectCardMoved' => $this->getObjectMapperWebHook🌀ProjectCard()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\WebhookProjectClosed', 'ApiClients\\Client\\Github\\Schema\\WebhookProjectCreated', 'ApiClients\\Client\\Github\\Schema\\WebhookProjectDeleted', 'ApiClients\\Client\\Github\\Schema\\WebhookProjectEdited', 'ApiClients\\Client\\Github\\Schema\\WebhookProjectReopened' => $this->getObjectMapperWebHook🌀Project()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\WebhookProjectColumnCreated', 'ApiClients\\Client\\Github\\Schema\\WebhookProjectColumnDeleted', 'ApiClients\\Client\\Github\\Schema\\WebhookProjectColumnEdited', 'ApiClients\\Client\\Github\\Schema\\WebhookProjectColumnMoved' => $this->getObjectMapperWebHook🌀ProjectColumn()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\WebhookProjectsV2ProjectClosed', 'ApiClients\\Client\\Github\\Schema\\WebhookProjectsV2ProjectCreated', 'ApiClients\\Client\\Github\\Schema\\WebhookProjectsV2ProjectEdited', 'ApiClients\\Client\\Github\\Schema\\WebhookProjectsV2ProjectReopened' => $this->getObjectMapperWebHook🌀ProjectsV2()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\WebhookProjectsV2ItemArchived', 'ApiClients\\Client\\Github\\Schema\\WebhookProjectsV2ItemConverted', 'ApiClients\\Client\\Github\\Schema\\WebhookProjectsV2ItemCreated', 'ApiClients\\Client\\Github\\Schema\\WebhookProjectsV2ItemDeleted', 'ApiClients\\Client\\Github\\Schema\\WebhookProjectsV2ItemEdited', 'ApiClients\\Client\\Github\\Schema\\WebhookProjectsV2ItemReordered', 'ApiClients\\Client\\Github\\Schema\\WebhookProjectsV2ItemRestored' => $this->getObjectMapperWebHook🌀ProjectsV2Item()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\WebhookPublic' => $this->getObjectMapperWebHook🌀Public_()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\WebhookPullRequestAssigned', 'ApiClients\\Client\\Github\\Schema\\WebhookPullRequestAutoMergeDisabled', 'ApiClients\\Client\\Github\\Schema\\WebhookPullRequestAutoMergeEnabled', 'ApiClients\\Client\\Github\\Schema\\WebhookPullRequestClosed', 'ApiClients\\Client\\Github\\Schema\\WebhookPullRequestConvertedToDraft', 'ApiClients\\Client\\Github\\Schema\\WebhookPullRequestDemilestoned', 'ApiClients\\Client\\Github\\Schema\\WebhookPullRequestDequeued', 'ApiClients\\Client\\Github\\Schema\\WebhookPullRequestEdited', 'ApiClients\\Client\\Github\\Schema\\WebhookPullRequestEnqueued', 'ApiClients\\Client\\Github\\Schema\\WebhookPullRequestLabeled', 'ApiClients\\Client\\Github\\Schema\\WebhookPullRequestLocked', 'ApiClients\\Client\\Github\\Schema\\WebhookPullRequestMilestoned', 'ApiClients\\Client\\Github\\Schema\\WebhookPullRequestOpened', 'ApiClients\\Client\\Github\\Schema\\WebhookPullRequestReadyForReview', 'ApiClients\\Client\\Github\\Schema\\WebhookPullRequestReopened', 'ApiClients\\Client\\Github\\Schema\\WebhookPullRequestReviewRequestRemoved', 'ApiClients\\Client\\Github\\Schema\\WebhookPullRequestReviewRequested', 'ApiClients\\Client\\Github\\Schema\\WebhookPullRequestSynchronize', 'ApiClients\\Client\\Github\\Schema\\WebhookPullRequestUnassigned', 'ApiClients\\Client\\Github\\Schema\\WebhookPullRequestUnlabeled', 'ApiClients\\Client\\Github\\Schema\\WebhookPullRequestUnlocked' => $this->getObjectMapperWebHook🌀PullRequest()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\WebhookPullRequestReviewCommentCreated', 'ApiClients\\Client\\Github\\Schema\\WebhookPullRequestReviewCommentDeleted', 'ApiClients\\Client\\Github\\Schema\\WebhookPullRequestReviewCommentEdited' => $this->getObjectMapperWebHook🌀PullRequestReviewComment()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\WebhookPullRequestReviewDismissed', 'ApiClients\\Client\\Github\\Schema\\WebhookPullRequestReviewEdited', 'ApiClients\\Client\\Github\\Schema\\WebhookPullRequestReviewSubmitted' => $this->getObjectMapperWebHook🌀PullRequestReview()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\WebhookPullRequestReviewThreadResolved', 'ApiClients\\Client\\Github\\Schema\\WebhookPullRequestReviewThreadUnresolved' => $this->getObjectMapperWebHook🌀PullRequestReviewThread()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\WebhookPush' => $this->getObjectMapperWebHook🌀Push()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\WebhookRegistryPackagePublished', 'ApiClients\\Client\\Github\\Schema\\WebhookRegistryPackageUpdated' => $this->getObjectMapperWebHook🌀RegistryPackage()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\WebhookReleaseCreated', 'ApiClients\\Client\\Github\\Schema\\WebhookReleaseDeleted', 'ApiClients\\Client\\Github\\Schema\\WebhookReleaseEdited', 'ApiClients\\Client\\Github\\Schema\\WebhookReleasePrereleased', 'ApiClients\\Client\\Github\\Schema\\WebhookReleasePublished', 'ApiClients\\Client\\Github\\Schema\\WebhookReleaseReleased', 'ApiClients\\Client\\Github\\Schema\\WebhookReleaseUnpublished' => $this->getObjectMapperWebHook🌀Release()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\WebhookRepositoryArchived', 'ApiClients\\Client\\Github\\Schema\\WebhookRepositoryCreated', 'ApiClients\\Client\\Github\\Schema\\WebhookRepositoryDeleted', 'ApiClients\\Client\\Github\\Schema\\WebhookRepositoryEdited', 'ApiClients\\Client\\Github\\Schema\\WebhookRepositoryPrivatized', 'ApiClients\\Client\\Github\\Schema\\WebhookRepositoryPublicized', 'ApiClients\\Client\\Github\\Schema\\WebhookRepositoryRenamed', 'ApiClients\\Client\\Github\\Schema\\WebhookRepositoryTransferred', 'ApiClients\\Client\\Github\\Schema\\WebhookRepositoryUnarchived' => $this->getObjectMapperWebHook🌀Repository()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\WebhookRepositoryDispatchSample' => $this->getObjectMapperWebHook🌀RepositoryDispatch()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\WebhookRepositoryImport' => $this->getObjectMapperWebHook🌀RepositoryImport()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\WebhookRepositoryVulnerabilityAlertCreate', 'ApiClients\\Client\\Github\\Schema\\WebhookRepositoryVulnerabilityAlertDismiss', 'ApiClients\\Client\\Github\\Schema\\WebhookRepositoryVulnerabilityAlertReopen', 'ApiClients\\Client\\Github\\Schema\\WebhookRepositoryVulnerabilityAlertResolve' => $this->getObjectMapperWebHook🌀RepositoryVulnerabilityAlert()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\WebhookSecretScanningAlertCreated', 'ApiClients\\Client\\Github\\Schema\\WebhookSecretScanningAlertReopened', 'ApiClients\\Client\\Github\\Schema\\WebhookSecretScanningAlertResolved', 'ApiClients\\Client\\Github\\Schema\\WebhookSecretScanningAlertRevoked' => $this->getObjectMapperWebHook🌀SecretScanningAlert()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\WebhookSecretScanningAlertLocationCreated', 'ApiClients\\Client\\Github\\Schema\\WebhookSecretScanningAlertLocationCreatedFormEncoded' => $this->getObjectMapperWebHook🌀SecretScanningAlertLocation()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\WebhookSecurityAdvisoryPublished', 'ApiClients\\Client\\Github\\Schema\\WebhookSecurityAdvisoryUpdated', 'ApiClients\\Client\\Github\\Schema\\WebhookSecurityAdvisoryWithdrawn' => $this->getObjectMapperWebHook🌀SecurityAdvisory()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\WebhookSecurityAndAnalysis' => $this->getObjectMapperWebHook🌀SecurityAndAnalysis()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\WebhookSponsorshipCancelled', 'ApiClients\\Client\\Github\\Schema\\WebhookSponsorshipCreated', 'ApiClients\\Client\\Github\\Schema\\WebhookSponsorshipEdited', 'ApiClients\\Client\\Github\\Schema\\WebhookSponsorshipPendingCancellation', 'ApiClients\\Client\\Github\\Schema\\WebhookSponsorshipPendingTierChange', 'ApiClients\\Client\\Github\\Schema\\WebhookSponsorshipTierChanged' => $this->getObjectMapperWebHook🌀Sponsorship()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\WebhookStarCreated', 'ApiClients\\Client\\Github\\Schema\\WebhookStarDeleted' => $this->getObjectMapperWebHook🌀Star()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\WebhookStatus' => $this->getObjectMapperWebHook🌀Status()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\WebhookTeamAdd' => $this->getObjectMapperWebHook🌀TeamAdd()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\WebhookTeamAddedToRepository', 'ApiClients\\Client\\Github\\Schema\\WebhookTeamCreated', 'ApiClients\\Client\\Github\\Schema\\WebhookTeamDeleted', 'ApiClients\\Client\\Github\\Schema\\WebhookTeamEdited', 'ApiClients\\Client\\Github\\Schema\\WebhookTeamRemovedFromRepository' => $this->getObjectMapperWebHook🌀Team()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\WebhookWatchStarted' => $this->getObjectMapperWebHook🌀Watch()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\WebhookWorkflowDispatch' => $this->getObjectMapperWebHook🌀WorkflowDispatch()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\WebhookWorkflowJobCompleted', 'ApiClients\\Client\\Github\\Schema\\WebhookWorkflowJobInProgress', 'ApiClients\\Client\\Github\\Schema\\WebhookWorkflowJobQueued', 'ApiClients\\Client\\Github\\Schema\\WebhookWorkflowJobWaiting' => $this->getObjectMapperWebHook🌀WorkflowJob()->serializeObject($object), + 'ApiClients\\Client\\Github\\Schema\\WebhookWorkflowRunCompleted', 'ApiClients\\Client\\Github\\Schema\\WebhookWorkflowRunInProgress', 'ApiClients\\Client\\Github\\Schema\\WebhookWorkflowRunRequested' => $this->getObjectMapperWebHook🌀WorkflowRun()->serializeObject($object), }; } public function serializeObjects(iterable $payloads) : \EventSauce\ObjectHydrator\IterableList