From e315b94c5a666223a136fba21bb22a458fe0decb Mon Sep 17 00:00:00 2001 From: WyriHaximus <147145+WyriHaximus@users.noreply.github.com> Date: Thu, 28 Nov 2024 17:18:37 +0000 Subject: [PATCH] [GitHub] Update to 1.1.4-315e5678f61e5340f76bae356b2788b6 from 1.1.4-9737a21f44d34768b2b336a00c312699 Detected Schema changes: --- clients/GitHub/README.md | 128 + .../GitHub/etc/openapi-client-generator.state | 352 +- .../Operation/Repos/Owner/Repo/Issues.php | 101 + .../Owner/Repo/Issues/Events/EventId.php | 101 + .../Repos/Owner/Repo/Issues/IssueNumber.php | 101 + .../Repo/Issues/IssueNumber/Assignees.php | 101 + .../Repo/Issues/IssueNumber/SubIssue.php | 4412 ++++++++++++++++ .../Repo/Issues/IssueNumber/SubIssues.php | 4345 ++++++++++++++++ .../Issues/IssueNumber/SubIssues/Priority.php | 4432 +++++++++++++++++ .../Hydrator/WebHook/IssueComment.php | 354 ++ .../src/Internal/Hydrator/WebHook/Issues.php | 1401 ++++++ .../Internal/Hydrator/WebHook/SubIssues.php | 101 + clients/GitHub/src/Internal/Hydrators.php | 42 +- .../Internal/Operation/Issues/AddSubIssue.php | 101 + .../Operation/Issues/ListSubIssues.php | 102 + .../Operation/Issues/ListSubIssuesListing.php | 102 + .../Operation/Issues/RemoveSubIssue.php | 98 + .../Operation/Issues/ReprioritizeSubIssue.php | 101 + .../Internal/Operator/Issues/AddSubIssue.php | 40 + .../Operator/Issues/ListSubIssues.php | 41 + .../Operator/Issues/ListSubIssuesListing.php | 41 + .../Operator/Issues/RemoveSubIssue.php | 40 + .../Operator/Issues/ReprioritizeSubIssue.php | 40 + .../Operator/Repos/GetOrgRuleSuites.php | 2 +- .../Repos/GetOrgRuleSuitesListing.php | 2 +- .../SecretScanning/GetScanHistory.php | 1 + clients/GitHub/src/Internal/Operators.php | 50 + .../src/Internal/Router/Delete/Issues.php | 26 + .../src/Internal/Router/Delete/Seven.php | 5 + .../GitHub/src/Internal/Router/Get/Five.php | 2 +- .../GitHub/src/Internal/Router/Get/Issues.php | 39 + .../GitHub/src/Internal/Router/Get/Repos.php | 2 +- .../Internal/Router/Get/SecretScanning.php | 1 + .../GitHub/src/Internal/Router/Get/Seven.php | 6 +- .../GitHub/src/Internal/Router/Get/Six.php | 2 +- .../GitHub/src/Internal/Router/List/Five.php | 2 +- .../src/Internal/Router/List/Issues.php | 45 + .../GitHub/src/Internal/Router/List/Repos.php | 2 +- .../GitHub/src/Internal/Router/List/Seven.php | 6 +- .../src/Internal/Router/Patch/Eight.php | 14 +- .../src/Internal/Router/Patch/Issues.php | 26 + .../src/Internal/Router/Post/Issues.php | 26 + .../GitHub/src/Internal/Router/Post/Seven.php | 6 +- clients/GitHub/src/Operation/Issues.php | 27 + clients/GitHub/src/Operation/Repos.php | 4 +- .../GitHub/src/Operation/SecretScanning.php | 1 + .../src/PHPStan/ClientCallReturnTypes.php | 26 +- .../Tiet0DDE7646/Tiet0D084088.php} | 32 +- .../Tiet31CBB446/TietE4F4DE72.php | 43 + .../Tiet8EAAD608/Tiet696E0ABB.php} | 32 +- clients/GitHub/src/Schema/Event.php | 25 + clients/GitHub/src/Schema/Event/Payload.php | 25 + clients/GitHub/src/Schema/Issue.php | 28 +- clients/GitHub/src/Schema/IssueEvent.php | 25 + .../src/Schema/IssueSearchResultItem.php | 28 +- .../SubIssuesSummary.php | 11 + .../AddSubIssue/Request/ApplicationJson.php | 43 + .../Request/ApplicationJson.php | 36 + .../Request/ApplicationJson.php | 50 + .../Response/ApplicationJson/Ok.php | 30 + .../GitHub/src/Schema/SubIssuesSummary.php | 11 + .../Schema/TimelineCrossReferencedEvent.php | 25 + .../TimelineCrossReferencedEvent/Source.php | 25 + .../GitHub/src/Schema/TimelineIssueEvents.php | 20 + .../src/Schema/WebhookIssueCommentCreated.php | 25 + .../WebhookIssueCommentCreated/Issue.php | 28 +- .../Issue/SubIssuesSummary.php | 11 + .../src/Schema/WebhookIssueCommentDeleted.php | 25 + .../WebhookIssueCommentDeleted/Issue.php | 28 +- .../Issue/SubIssuesSummary.php | 11 + .../src/Schema/WebhookIssueCommentEdited.php | 25 + .../WebhookIssueCommentEdited/Issue.php | 2 +- .../Issue/SubIssuesSummary.php | 11 + .../src/Schema/WebhookIssuesAssigned.php | 25 + .../GitHub/src/Schema/WebhookIssuesClosed.php | 25 + .../src/Schema/WebhookIssuesClosed/Issue.php | 28 +- .../Issue/SubIssuesSummary.php | 11 + .../src/Schema/WebhookIssuesDeleted.php | 25 + .../src/Schema/WebhookIssuesDeleted/Issue.php | 28 +- .../Issue/SubIssuesSummary.php | 11 + .../src/Schema/WebhookIssuesDemilestoned.php | 25 + .../WebhookIssuesDemilestoned/Issue.php | 28 +- .../Issue/SubIssuesSummary.php | 11 + .../GitHub/src/Schema/WebhookIssuesEdited.php | 25 + .../src/Schema/WebhookIssuesEdited/Issue.php | 28 +- .../Issue/SubIssuesSummary.php | 11 + .../src/Schema/WebhookIssuesLabeled.php | 25 + .../src/Schema/WebhookIssuesLabeled/Issue.php | 28 +- .../Issue/SubIssuesSummary.php | 11 + .../GitHub/src/Schema/WebhookIssuesLocked.php | 25 + .../src/Schema/WebhookIssuesLocked/Issue.php | 28 +- .../Issue/SubIssuesSummary.php | 11 + .../src/Schema/WebhookIssuesMilestoned.php | 25 + .../Schema/WebhookIssuesMilestoned/Issue.php | 28 +- .../Issue/SubIssuesSummary.php | 11 + .../GitHub/src/Schema/WebhookIssuesOpened.php | 50 + .../Schema/WebhookIssuesOpened/Changes.php | 25 + .../WebhookIssuesOpened/Changes/OldIssue.php | 28 +- .../Changes/OldIssue/SubIssuesSummary.php | 11 + .../src/Schema/WebhookIssuesOpened/Issue.php | 28 +- .../Issue/SubIssuesSummary.php | 11 + .../GitHub/src/Schema/WebhookIssuesPinned.php | 25 + .../src/Schema/WebhookIssuesReopened.php | 25 + .../Schema/WebhookIssuesReopened/Issue.php | 28 +- .../Issue/SubIssuesSummary.php | 11 + .../src/Schema/WebhookIssuesTransferred.php | 50 + .../WebhookIssuesTransferred/Changes.php | 25 + .../Changes/NewIssue.php | 2 +- .../Changes/NewIssue/SubIssuesSummary.php | 11 + .../src/Schema/WebhookIssuesUnassigned.php | 25 + .../src/Schema/WebhookIssuesUnlabeled.php | 25 + .../src/Schema/WebhookIssuesUnlocked.php | 25 + .../Schema/WebhookIssuesUnlocked/Issue.php | 28 +- .../Issue/SubIssuesSummary.php | 11 + .../src/Schema/WebhookIssuesUnpinned.php | 25 + .../WebhookSubIssuesParentIssueAdded.php | 50 + .../WebhookSubIssuesParentIssueRemoved.php | 50 + .../Schema/WebhookSubIssuesSubIssueAdded.php | 50 + .../WebhookSubIssuesSubIssueRemoved.php | 50 + clients/GitHub/src/Schema/WebhooksIssue.php | 2 +- .../Schema/WebhooksIssue/SubIssuesSummary.php | 11 + clients/GitHub/src/Schema/WebhooksIssue2.php | 2 +- .../WebhooksIssue2/SubIssuesSummary.php | 11 + .../Operation/Issues/AddSubIssueTest.php | 201 + .../Issues/ListSubIssuesListingTest.php | 107 + .../Operation/Issues/ListSubIssuesTest.php | 99 + .../Operation/Issues/RemoveSubIssueTest.php | 165 + .../Issues/ReprioritizeSubIssueTest.php | 201 + .../tests/Types/ClientCallReturnTypes.php | 11 +- etc/specs/GitHub/current.spec.yaml | 517 ++ 130 files changed, 19980 insertions(+), 144 deletions(-) create mode 100644 clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/IssueNumber/SubIssue.php create mode 100644 clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/IssueNumber/SubIssues.php create mode 100644 clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/IssueNumber/SubIssues/Priority.php create mode 100644 clients/GitHub/src/Internal/Operation/Issues/AddSubIssue.php create mode 100644 clients/GitHub/src/Internal/Operation/Issues/ListSubIssues.php create mode 100644 clients/GitHub/src/Internal/Operation/Issues/ListSubIssuesListing.php create mode 100644 clients/GitHub/src/Internal/Operation/Issues/RemoveSubIssue.php create mode 100644 clients/GitHub/src/Internal/Operation/Issues/ReprioritizeSubIssue.php create mode 100644 clients/GitHub/src/Internal/Operator/Issues/AddSubIssue.php create mode 100644 clients/GitHub/src/Internal/Operator/Issues/ListSubIssues.php create mode 100644 clients/GitHub/src/Internal/Operator/Issues/ListSubIssuesListing.php create mode 100644 clients/GitHub/src/Internal/Operator/Issues/RemoveSubIssue.php create mode 100644 clients/GitHub/src/Internal/Operator/Issues/ReprioritizeSubIssue.php rename clients/GitHub/src/Schema/AliasAbstract/{Tiet7D50F94B/Tiet93FD5D40/TietCDF55A71/TietB32D1513.php => Tiet4E41CFE9/TietB1CF9F2A/Tiet0DDE7646/Tiet0D084088.php} (98%) create mode 100644 clients/GitHub/src/Schema/AliasAbstract/Tiet5229E490/Tiet0081962F/Tiet31CBB446/TietE4F4DE72.php rename clients/GitHub/src/Schema/AliasAbstract/{Tiet868EAB0B/Tiet2FD1C368/Tiet9B7A081D/TietA036CC78.php => Tiet8C745C5B/Tiet730AD13B/Tiet8EAAD608/Tiet696E0ABB.php} (98%) create mode 100644 clients/GitHub/src/Schema/IssueSearchResultItem/SubIssuesSummary.php create mode 100644 clients/GitHub/src/Schema/Issues/AddSubIssue/Request/ApplicationJson.php create mode 100644 clients/GitHub/src/Schema/Issues/RemoveSubIssue/Request/ApplicationJson.php create mode 100644 clients/GitHub/src/Schema/Issues/ReprioritizeSubIssue/Request/ApplicationJson.php create mode 100644 clients/GitHub/src/Schema/SubIssuesSummary.php create mode 100644 clients/GitHub/src/Schema/WebhookIssueCommentCreated/Issue/SubIssuesSummary.php create mode 100644 clients/GitHub/src/Schema/WebhookIssueCommentDeleted/Issue/SubIssuesSummary.php create mode 100644 clients/GitHub/src/Schema/WebhookIssueCommentEdited/Issue/SubIssuesSummary.php create mode 100644 clients/GitHub/src/Schema/WebhookIssuesClosed/Issue/SubIssuesSummary.php create mode 100644 clients/GitHub/src/Schema/WebhookIssuesDeleted/Issue/SubIssuesSummary.php create mode 100644 clients/GitHub/src/Schema/WebhookIssuesDemilestoned/Issue/SubIssuesSummary.php create mode 100644 clients/GitHub/src/Schema/WebhookIssuesEdited/Issue/SubIssuesSummary.php create mode 100644 clients/GitHub/src/Schema/WebhookIssuesLabeled/Issue/SubIssuesSummary.php create mode 100644 clients/GitHub/src/Schema/WebhookIssuesLocked/Issue/SubIssuesSummary.php create mode 100644 clients/GitHub/src/Schema/WebhookIssuesMilestoned/Issue/SubIssuesSummary.php create mode 100644 clients/GitHub/src/Schema/WebhookIssuesOpened/Changes/OldIssue/SubIssuesSummary.php create mode 100644 clients/GitHub/src/Schema/WebhookIssuesOpened/Issue/SubIssuesSummary.php create mode 100644 clients/GitHub/src/Schema/WebhookIssuesReopened/Issue/SubIssuesSummary.php create mode 100644 clients/GitHub/src/Schema/WebhookIssuesTransferred/Changes/NewIssue/SubIssuesSummary.php create mode 100644 clients/GitHub/src/Schema/WebhookIssuesUnlocked/Issue/SubIssuesSummary.php create mode 100644 clients/GitHub/src/Schema/WebhooksIssue/SubIssuesSummary.php create mode 100644 clients/GitHub/src/Schema/WebhooksIssue2/SubIssuesSummary.php create mode 100644 clients/GitHub/tests/Internal/Operation/Issues/AddSubIssueTest.php create mode 100644 clients/GitHub/tests/Internal/Operation/Issues/ListSubIssuesListingTest.php create mode 100644 clients/GitHub/tests/Internal/Operation/Issues/ListSubIssuesTest.php create mode 100644 clients/GitHub/tests/Internal/Operation/Issues/RemoveSubIssueTest.php create mode 100644 clients/GitHub/tests/Internal/Operation/Issues/ReprioritizeSubIssueTest.php diff --git a/clients/GitHub/README.md b/clients/GitHub/README.md index 1704682c6cc..27acfcd3c1a 100644 --- a/clients/GitHub/README.md +++ b/clients/GitHub/README.md @@ -19149,6 +19149,134 @@ $client->operations()->reactions()->deleteForIssue( owner: 'generated', You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/reactions/reactions#delete-an-issue-reaction). +### issues/remove-sub-issue + +Remove sub-issue + +Using the `call` method: +```php +$client->call('DELETE /repos/{owner}/{repo}/issues/{issue_number}/sub_issue', [ + 'owner' => 'generated', + 'repo' => 'generated', + 'issue_number' => 12, +]); +``` + +Operations method: +```php +$client->operations()->issues()->removeSubIssue( owner: 'generated', + repo: 'generated', + issue_number: 12, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/issues/sub-issues#remove-sub-issue). + + +### issues/list-sub-issues + +List sub-issues + +Using the `call` method: +```php +$client->call('GET /repos/{owner}/{repo}/issues/{issue_number}/sub_issues', [ + 'owner' => 'generated', + 'repo' => 'generated', + 'issue_number' => 12, + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->issues()->listSubIssues( owner: 'generated', + repo: 'generated', + issue_number: 12, + per_page: 8, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/issues/sub-issues#list-sub-issues). + + +### issues/list-sub-issues + +List sub-issues + +Using the `call` method: +```php +$client->call('LIST /repos/{owner}/{repo}/issues/{issue_number}/sub_issues', [ + 'owner' => 'generated', + 'repo' => 'generated', + 'issue_number' => 12, + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->issues()->listSubIssuesListing( owner: 'generated', + repo: 'generated', + issue_number: 12, + per_page: 8, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/issues/sub-issues#list-sub-issues). + + +### issues/add-sub-issue + +Add sub-issue + +Using the `call` method: +```php +$client->call('POST /repos/{owner}/{repo}/issues/{issue_number}/sub_issues', [ + 'owner' => 'generated', + 'repo' => 'generated', + 'issue_number' => 12, +]); +``` + +Operations method: +```php +$client->operations()->issues()->addSubIssue( owner: 'generated', + repo: 'generated', + issue_number: 12, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/issues/sub-issues#add-sub-issue). + + +### issues/reprioritize-sub-issue + +Reprioritize sub-issue + +Using the `call` method: +```php +$client->call('PATCH /repos/{owner}/{repo}/issues/{issue_number}/sub_issues/priority', [ + 'owner' => 'generated', + 'repo' => 'generated', + 'issue_number' => 12, +]); +``` + +Operations method: +```php +$client->operations()->issues()->reprioritizeSubIssue( owner: 'generated', + repo: 'generated', + issue_number: 12, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/issues/sub-issues#reprioritize-sub-issue). + + ### issues/list-events-for-timeline List timeline events for an issue diff --git a/clients/GitHub/etc/openapi-client-generator.state b/clients/GitHub/etc/openapi-client-generator.state index 2f0696b78df..bba6a6697ae 100644 --- a/clients/GitHub/etc/openapi-client-generator.state +++ b/clients/GitHub/etc/openapi-client-generator.state @@ -1,5 +1,5 @@ { - "specHash": "9737a21f44d34768b2b336a00c312699", + "specHash": "315e5678f61e5340f76bae356b2788b6", "generatedFiles": { "files": [ { @@ -196,7 +196,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Issue.php", - "hash": "92a8ce0473ad003bcdabba2da2193ff7" + "hash": "1683cc71fcddef2b84ff30fee78b98a5" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/IssueComment.php", @@ -204,7 +204,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Event.php", - "hash": "3541e7c8ccba9d44493ed77f97085544" + "hash": "7c5b70c046446fd58bc9e6a9f4e7e167" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/LinkWithType.php", @@ -1136,7 +1136,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/IssueEvent.php", - "hash": "f3073e31bdcff58a5a704f4b099f50a5" + "hash": "60232cd90afe561e4a58a7ef4b8bf727" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/LabeledIssueEvent.php", @@ -1212,7 +1212,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/TimelineCrossReferencedEvent.php", - "hash": "72eb72377cc738b8b07dd535083152ea" + "hash": "2ac95f63dbc9e7b2254082fdd9316a4f" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/TimelineCommittedEvent.php", @@ -1248,7 +1248,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/TimelineIssueEvents.php", - "hash": "702242108d4efdfac1d3276e44d5a3f9" + "hash": "a0eabb7433a24ca8c4db2cefdf7b4b50" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/DeployKey.php", @@ -1456,7 +1456,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/IssueSearchResultItem.php", - "hash": "fe3a4203048354d2747b4684a47a07a7" + "hash": "24027f0eae1b6dd53dcf4b88cbdaa2f8" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/LabelSearchResultItem.php", @@ -1824,79 +1824,79 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssueCommentCreated.php", - "hash": "4832cb2ca4227dc0c213d5e95314ff9a" + "hash": "e52f5e494a6f0040f221ffe2e0cb8dd0" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssueCommentDeleted.php", - "hash": "6c080568ae7aa057511bfeb05e740604" + "hash": "8c835a6a5054ff98cf7014636c781e2f" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssueCommentEdited.php", - "hash": "27a44873ac4b31abf5b7545e95313392" + "hash": "c9da91fa26e3c77613209f80846a10f7" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesAssigned.php", - "hash": "30b334393b4afaa35220f9a8f4c1237b" + "hash": "a898d270a0edde04e34304ef3641c4a5" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesClosed.php", - "hash": "6d0b4081859fc1726515e984f1f7ff23" + "hash": "15ab6666996aafab793d7effd0ffcfb3" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesDeleted.php", - "hash": "fe76b7cd776b9f89a94499000f67a317" + "hash": "ae131b79ff4e0e6d315a8fd48772936d" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesDemilestoned.php", - "hash": "c8a85c432235f055f4d90d241edf57a9" + "hash": "85e1f7968c248328297b483f98ec0b48" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesEdited.php", - "hash": "203217b36344e038e0c3d42d4745ef49" + "hash": "1b27b97b364178a221313a8862d53e44" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesLabeled.php", - "hash": "d786987df24f20f77526aa4b6930d42f" + "hash": "c39f4bd0f1d7c5b6d95588b184b7e19c" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesLocked.php", - "hash": "8b24a6316ad333a08c38f5c26346b5f1" + "hash": "f76c6360ae4d7e219180b414ce9e7927" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesMilestoned.php", - "hash": "63c0ef32730b2103301e42a0f21c79d0" + "hash": "ba1d7d116727e74e3b903079f6bb0192" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesOpened.php", - "hash": "92e8465ab61409a98c993b3e92fa91fb" + "hash": "605bca09e335949efeab739fd763f7e2" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesPinned.php", - "hash": "88e7e872746fadb8bd151c79e5cc5400" + "hash": "4015c085ad77dd3b3a604301b31fc977" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesReopened.php", - "hash": "0627459694136a5b80673d69422a786f" + "hash": "0eb217a216204e4eb334ed9ee8012047" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesTransferred.php", - "hash": "3ee90688ae1cb41cb033ecb52f225042" + "hash": "742138572576aa9d4cfb88a07508ab2c" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesUnassigned.php", - "hash": "eac85e1e10cd82dc6b48e9195a852c92" + "hash": "77439009575c067ab43d1e37ba657a4b" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesUnlabeled.php", - "hash": "68dce3a0c87672e1f8e8f81044f2da89" + "hash": "03b7fabef8764a195bfe49a8788b4bc6" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesUnlocked.php", - "hash": "6b01526428a40eb215cc43d74ae2e10f" + "hash": "e6d48bf068781c5560ca151f2b289d31" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesUnpinned.php", - "hash": "4c7dd83cf6919c4b3da25982b0fb28d4" + "hash": "de34943a889121e62c313cbdef45dc59" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookLabelCreated.php", @@ -2584,7 +2584,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Event\/Payload.php", - "hash": "673137e9db2f68be0ed51a8dbc69462b" + "hash": "79db4535500bd00c251cbd52598ffa9e" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Event\/Payload\/Pages.php", @@ -3100,7 +3100,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/TimelineCrossReferencedEvent\/Source.php", - "hash": "039ad3d417889aa333e859bc8dfe0651" + "hash": "38c0c81c5983ab4cd3574d59603d7ce8" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/TimelineReviewedEvent\/Links.php", @@ -3500,7 +3500,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssueCommentCreated\/Issue.php", - "hash": "de10b17a7a5dac5024c16454398f0e5f" + "hash": "7026286b894fcb43ef78586a626f5f3d" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssueCommentCreated\/Issue\/Assignee.php", @@ -3520,7 +3520,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssueCommentDeleted\/Issue.php", - "hash": "84b4cc551f3976c2b0065be4854e8de5" + "hash": "c6c7df5a0e69faec4e2c407da6608a00" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssueCommentDeleted\/Issue\/PerformedViaGithubApp.php", @@ -3528,7 +3528,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssueCommentEdited\/Issue.php", - "hash": "d3e6de6750b740d0b7779406765cbc60" + "hash": "c5e6b6e195bd454e183f5d316cee3a43" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssueCommentEdited\/Issue\/PerformedViaGithubApp.php", @@ -3540,7 +3540,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesClosed\/Issue.php", - "hash": "4e08fdc3fab9956d4888674aa80cff51" + "hash": "13be4c82b3d7d3579e2e6338d02ea4fe" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesClosed\/Issue\/PerformedViaGithubApp.php", @@ -3548,7 +3548,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesDeleted\/Issue.php", - "hash": "83d19c0ee6df8171481bc28af07cb166" + "hash": "b2dd88e6f4f69c2af12e38ab4cb89c9b" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesDeleted\/Issue\/Milestone.php", @@ -3560,7 +3560,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesDemilestoned\/Issue.php", - "hash": "bb3b0a8a43fa4001a0a31e54c5b6d72b" + "hash": "787cb942d88b0b242834d2df7c9fd9ce" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesDemilestoned\/Issue\/PerformedViaGithubApp.php", @@ -3576,7 +3576,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesEdited\/Issue.php", - "hash": "6670ae0990679df241d64d70efcad70c" + "hash": "f22848f387cc2544d5cd848b729fdc92" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesEdited\/Issue\/PerformedViaGithubApp.php", @@ -3584,7 +3584,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesLabeled\/Issue.php", - "hash": "53b10665c9e0b1c61f36677432dfad34" + "hash": "ee30d98c7a259c79242ef9b05ffeb4fb" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesLabeled\/Issue\/PerformedViaGithubApp.php", @@ -3592,7 +3592,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesLocked\/Issue.php", - "hash": "8b1919e9ea10637cb6627491cf0c3122" + "hash": "3d97a15a132bf42abb8009364e29358f" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesLocked\/Issue\/PerformedViaGithubApp.php", @@ -3600,7 +3600,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesMilestoned\/Issue.php", - "hash": "b15129a16f910d655858acfdb0063677" + "hash": "e8cc9c6b937ee34d0d379e78b76c3edb" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesMilestoned\/Issue\/PerformedViaGithubApp.php", @@ -3608,11 +3608,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesOpened\/Changes.php", - "hash": "ffd8cb125fe1d61c246e74c2867fd85f" + "hash": "432a57dfdbbc432b786d8e189ea05d68" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesOpened\/Changes\/OldIssue.php", - "hash": "0f876b0c5abca1937b80fd5ced13ec12" + "hash": "cf95f432af535a7329544ce2d8498e77" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesOpened\/Changes\/OldRepository.php", @@ -3620,11 +3620,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesOpened\/Issue.php", - "hash": "56344d0ab151b662a5be174dcf220933" + "hash": "28508c790fc929d88f75debe602cb60c" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesReopened\/Issue.php", - "hash": "ef3b5853c92dc25deb4a6b2d741d2161" + "hash": "d29323e948b5147f0c30b80e9d48e27b" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesReopened\/Issue\/PerformedViaGithubApp.php", @@ -3632,7 +3632,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesTransferred\/Changes.php", - "hash": "1421eae9cddb0e8e56a5577582748e0b" + "hash": "f1a860890548856022c2d3b7cada69ae" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesTransferred\/Changes\/NewRepository.php", @@ -5376,7 +5376,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Operations\/Search\/IssuesAndPullRequests\/Response\/ApplicationJson\/Ok.php", - "hash": "72fc02238d088ee47c77bbb28de48db7" + "hash": "bd083655b71bf85207994e79201682fb" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Operations\/Search\/Labels\/Response\/ApplicationJson\/Ok.php", @@ -5532,7 +5532,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/SecretScanning.php", - "hash": "d256eddb1323712000b7ad0c09fb0e61" + "hash": "b253cd61e8874afe2c5394eb970bd8b6" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Activity.php", @@ -5548,7 +5548,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Issues.php", - "hash": "12a610122c61833cfb13699e5e7e01b6" + "hash": "a564ebaae7c66ed66ba4f270099de3cf" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Licenses.php", @@ -5596,11 +5596,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Repos.php", - "hash": "71373185b17b6975b19d11a0407e6ea4" + "hash": "e08ac16d8c8ddb3d082c30c06392777c" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Billing.php", - "hash": "109c702326dc8aca867d2bb5df05cd70" + "hash": "bd76e67580f50aeab0ee75c4756b986a" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Teams.php", @@ -9244,11 +9244,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesTransferred\/Changes\/NewIssue.php", - "hash": "f7570ab8c19126f3ae73d4d01a837b61" + "hash": "342e94a4b37288b1d50626a6cc7c0815" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesUnlocked\/Issue.php", - "hash": "da8c5073e9786d3630d1a127c3e607ca" + "hash": "6d4fb0c9a20d1ea784f2fa08bd54c1d6" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookPullRequestReviewThreadResolved\/PullRequest\/Base\/Repo.php", @@ -24344,7 +24344,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Issues.php", - "hash": "240fe320e53a771b9df5ce721e5efb3e" + "hash": "6f56da7cc422b24bd72624f99f8d3459" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Licenses.php", @@ -24360,7 +24360,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Repos.php", - "hash": "d26efb518f23065d4b1c0308d402ca71" + "hash": "aba5e648fd688e82d05fc311741523d4" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Users.php", @@ -24404,7 +24404,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/SecretScanning.php", - "hash": "24954a17b37ea6e88c89d328055a79e2" + "hash": "dffa3ec1289d153acc0a8324215d4ec5" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Actions.php", @@ -24516,7 +24516,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Post\/Issues.php", - "hash": "6b28e67b820bdc56536aa9bfb812ff3f" + "hash": "b73947ce9fb2650d56d62ddd8db8a1bc" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Post\/Pulls.php", @@ -24584,7 +24584,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Patch\/Issues.php", - "hash": "8bfffe230e2ef55601e1c858dd1ad7ab" + "hash": "bd3cd52db296723ed2645567674d6a24" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Patch\/Pulls.php", @@ -24620,7 +24620,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Issues.php", - "hash": "68177dac6998d98b39d7a64e6e5fe1e7" + "hash": "76fed67d0b37e9644cc2435e63964266" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Migrations.php", @@ -24636,7 +24636,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Repos.php", - "hash": "724e619f2b4a9d54e0e8ec2f0f0b76aa" + "hash": "f5ea065b264c97d6797480a75792ec1a" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Activity.php", @@ -24744,7 +24744,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Issues.php", - "hash": "1f593957b3f3a2be9aed663099b0b52d" + "hash": "976b81d4a4693dab65aa5d495ece36b8" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Pulls.php", @@ -24852,15 +24852,15 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Five.php", - "hash": "d95ad1cb6006db96eb6fda889b4d8eeb" + "hash": "1ce432fd322550bce04d7db17e97a08e" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Six.php", - "hash": "7721476acd3546b040ab9e8b6f716725" + "hash": "2efc037dceec2d934880567dac3d5fdb" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Seven.php", - "hash": "025bbc0a0f6449b998880d880eb2fed5" + "hash": "515d113bfcaeab39cdb9022aab604a33" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Eight.php", @@ -24896,7 +24896,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Post\/Seven.php", - "hash": "17ef6781d8af38b93c68f1c0fe459ec9" + "hash": "d8aa4a7b4957f5e330b4fecec00b97e7" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Post\/Eight.php", @@ -24936,7 +24936,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Patch\/Eight.php", - "hash": "2339e82f55f1c5766e4129dc33ae570c" + "hash": "e467d3113de1a5cbd8d67398d6184f97" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Patch\/Two.php", @@ -24956,7 +24956,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Five.php", - "hash": "e0e0edd78ca43521f4d27baf48465b67" + "hash": "123f6a936ba8096442dac832830411c2" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Six.php", @@ -24964,7 +24964,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Seven.php", - "hash": "8d182326244702f6bb410dd6fb0ac9b1" + "hash": "df521fa68f2950fed9b9789c3f847041" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Eight.php", @@ -24992,7 +24992,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Seven.php", - "hash": "eb1b6fc01745b0ea129737b92c6b1730" + "hash": "43168d2c2f251ae741817f0d9e537fe4" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Six.php", @@ -25060,7 +25060,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operators.php", - "hash": "4f3696b56971d48511d0d7392d5f6318" + "hash": "6e90b7a113f2db9a28235884041f9b3c" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Root.php", @@ -26324,7 +26324,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Issues.php", - "hash": "30e5656d91f9b8a5b6641d8f4b275366" + "hash": "8ac78c8f8fdca7c8e0ccb53a491b456f" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Issues\/Comments.php", @@ -26344,15 +26344,15 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Issues\/Events\/EventId.php", - "hash": "01d338b2cbc502cd2fe8d9bb61f1dd17" + "hash": "cc1134975091aa4b20422188fa564760" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Issues\/IssueNumber.php", - "hash": "e6794c544cf4e421991d0031098cec83" + "hash": "c5e10e162a323078f1ccfe94cf6ce48b" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Issues\/IssueNumber\/Assignees.php", - "hash": "d4661a6d83ba87137b1ca2b6071def91" + "hash": "187dfd743bdd27aabd74f3fb85416782" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Issues\/IssueNumber\/Assignees\/Assignee.php", @@ -27052,7 +27052,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrators.php", - "hash": "7b5ed4b34f449fd5c6aab74644d30fea" + "hash": "79dba7a8edc842d649a369ef04e742e9" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/OrganizationSimpleWebhooks.php", @@ -27252,7 +27252,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Repos\/GetOrgRuleSuites.php", - "hash": "c26c5661d7b3f3c6dda70f8a4d9e06f1" + "hash": "98435bee3f35ac90def0a3bf7d4429ed" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Repos\/GetOrgRuleSuitesTest.php", @@ -27264,7 +27264,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Repos\/GetOrgRuleSuitesListing.php", - "hash": "21c7d5dba50a9f431b7da2d3120a7e67" + "hash": "e387a9327dc8f8c753690aa7d70948cc" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Repos\/GetOrgRuleSuitesListingTest.php", @@ -27636,11 +27636,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/PHPStan\/ClientCallReturnTypes.php", - "hash": "d31ec056435b92793797c7b29c21435d" + "hash": "37b661017e22bbf5b31534aa9bc4b3da" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Types\/ClientCallReturnTypes.php", - "hash": "5c79351e58d53ddaabcf4b292d950b90" + "hash": "3cbfb3883582a25a77f91cadadf8ee4a" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/..\/etc\/phpstan-extension.neon", @@ -28028,11 +28028,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/IssueComment.php", - "hash": "d8df29888d3eb8231bda6610af86d159" + "hash": "3fceb826939ae1c6f38d797d074cadc2" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/Issues.php", - "hash": "252b75c8cdd0957d010fbffae814ed54" + "hash": "77a1897ebb48b245e2fce887d55c8778" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/Label.php", @@ -28888,7 +28888,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhooksIssue.php", - "hash": "de83e3efcaeb6228da5e9357ab051e4c" + "hash": "c7e16d65509e3f8e3036feacfe5327aa" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhooksMilestone.php", @@ -28896,7 +28896,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhooksIssue2.php", - "hash": "cc7cb0595dd5adafed20f91f4ef6fd8d" + "hash": "42fb72ba6339511a860b8c8c040069e9" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhooksIssueComment\/User.php", @@ -30176,19 +30176,19 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookSubIssuesParentIssueAdded.php", - "hash": "0f8e9704e887d28208ea6cd4f3912279" + "hash": "e8bfc6823b8b4994b8bf533dad3e9bdc" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookSubIssuesParentIssueRemoved.php", - "hash": "ec9113d8a0a705c06d34d4ae013f8f81" + "hash": "6f6a27f9242abcbe7bc6e87fb98ea78e" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookSubIssuesSubIssueAdded.php", - "hash": "e727467d224b4502fce503a8620ec265" + "hash": "0a2d156207938b086ea97bdc7ced985f" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookSubIssuesSubIssueRemoved.php", - "hash": "2f9fe237ea68017ae5b8cf3a8ee36193" + "hash": "12197c4de3202da88b4251798dd17241" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/GlobalAdvisory\/Epss.php", @@ -30204,7 +30204,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/SubIssues.php", - "hash": "3807baab4162c46297810850208b3ae8" + "hash": "09c561171930421b3f9dfc610e4b0095" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CvssSeverities.php", @@ -30442,14 +30442,6 @@ "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet536805C4\/Tiet88923449\/Tiet8D7DF436\/Tiet2E07D018.php", "hash": "49a60081bd9f2562ce7be84613814794" }, - { - "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet868EAB0B\/Tiet2FD1C368\/Tiet9B7A081D\/TietA036CC78.php", - "hash": "7cc6217aa4572812875519dcbc36244a" - }, - { - "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet7D50F94B\/Tiet93FD5D40\/TietCDF55A71\/TietB32D1513.php", - "hash": "9af8ce7722ab1d40cb97b297360ef840" - }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet9BB7FDE7\/Tiet7C408E87\/TietF0A7E59F\/Tiet74AED450.php", "hash": "8977388033f1fd6f417e3de630e8b93e" @@ -31028,7 +31020,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/SecretScanning\/GetScanHistory.php", - "hash": "cd61e938552ca8b38bd550eee0c78bb9" + "hash": "b990d413bf3db99538b3b46b7fbc93d7" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/SecretScanning\/GetScanHistoryTest.php", @@ -31049,6 +31041,178 @@ { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/SecretScanning\/ScanHistory.php", "hash": "916814549b3ac22b327f6584f1a22a18" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Issues\/RemoveSubIssue.php", + "hash": "febc52bdca32e312ce27f408a4498fe1" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Issues\/RemoveSubIssue.php", + "hash": "562b423ebbd7386a533ec6432e89ef57" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Issues\/RemoveSubIssueTest.php", + "hash": "35f835d1eb520b8caf1e0dc4ba414b2c" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Issues\/ListSubIssues.php", + "hash": "ac0b7397ac09ea7ea7f3fcc2289a4c94" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Issues\/ListSubIssues.php", + "hash": "c82ca46e2bbdc84d13cb00af5e2aee29" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Issues\/ListSubIssuesTest.php", + "hash": "b0db2699d4b3f5612e843f72d9be5126" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Issues\/ListSubIssuesListing.php", + "hash": "8653e85640454edc87cb72d5442b91d9" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Issues\/ListSubIssuesListing.php", + "hash": "d45c1b4569edb45e2d2b8c21453a4318" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Issues\/ListSubIssuesListingTest.php", + "hash": "51be16053d593f0eb744cddd38af511e" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Issues\/AddSubIssue.php", + "hash": "98210afcd5324b5a657562fac912cee1" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Issues\/AddSubIssue.php", + "hash": "f9b1f25c76aa81fba345e2d0421dfec6" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Issues\/AddSubIssueTest.php", + "hash": "d83ec5d1ecb9d121663939d0fb58cb50" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Issues\/ReprioritizeSubIssue.php", + "hash": "ee2ffe2a3c8b83e22a48cec67b4ffd9d" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Issues\/ReprioritizeSubIssue.php", + "hash": "41244efd13e59369e569d1d295b9c306" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Issues\/ReprioritizeSubIssueTest.php", + "hash": "e98318c0d5939319bfb1879a5efe41e7" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet5229E490\/Tiet0081962F\/Tiet31CBB446\/TietE4F4DE72.php", + "hash": "a9b57812a6ad1c57a9701b4ce1d911a9" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/IssueSearchResultItem\/SubIssuesSummary.php", + "hash": "f960f8301e5ddc1cd922c17bd4ea88d8" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhooksIssue\/SubIssuesSummary.php", + "hash": "b925cccfc19ad1240c1cfe969c087548" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhooksIssue2\/SubIssuesSummary.php", + "hash": "4996da08c8b675e0cd5ab000b16f4004" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssueCommentCreated\/Issue\/SubIssuesSummary.php", + "hash": "b146b6d24a9f2dffb4120be031bc6be9" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssueCommentDeleted\/Issue\/SubIssuesSummary.php", + "hash": "6f9b1cda1f221546b16ef3a0cafd705d" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssueCommentEdited\/Issue\/SubIssuesSummary.php", + "hash": "67d5405753a5b3f0c4083367d6f9e50f" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesClosed\/Issue\/SubIssuesSummary.php", + "hash": "de6c4464cdb4965701ff8821c952c7b0" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesDeleted\/Issue\/SubIssuesSummary.php", + "hash": "072f9c1111bac480ced95b3b19065fe4" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesDemilestoned\/Issue\/SubIssuesSummary.php", + "hash": "4e4987e3660801f137be9696355b271d" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesEdited\/Issue\/SubIssuesSummary.php", + "hash": "817352f58d0635678af35555f9544df3" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesLabeled\/Issue\/SubIssuesSummary.php", + "hash": "7aaa7cb8f2038b0f0677748cf9f66799" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesLocked\/Issue\/SubIssuesSummary.php", + "hash": "14394f8a38186e81c8207c3e304522bd" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesMilestoned\/Issue\/SubIssuesSummary.php", + "hash": "c330d0d073288e445ff1497434ee219d" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesOpened\/Changes\/OldIssue\/SubIssuesSummary.php", + "hash": "93ad4d794b18599d5519779bcb9f6b0f" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesOpened\/Issue\/SubIssuesSummary.php", + "hash": "8d28fc111f20de947aa2e5089e5a8d9c" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesReopened\/Issue\/SubIssuesSummary.php", + "hash": "d4dec44a9ae8e7fc7937a723bc72734a" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesTransferred\/Changes\/NewIssue\/SubIssuesSummary.php", + "hash": "46d207727234f96e9692a392391522c6" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesUnlocked\/Issue\/SubIssuesSummary.php", + "hash": "3dffeaa7bd47993500006c98093a2c8b" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/SubIssuesSummary.php", + "hash": "5e03098959ea72eb3dcadea3cc3439d5" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet8C745C5B\/Tiet730AD13B\/Tiet8EAAD608\/Tiet696E0ABB.php", + "hash": "1dcf5026aa7bd0c777cb0111d3966e96" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet4E41CFE9\/TietB1CF9F2A\/Tiet0DDE7646\/Tiet0D084088.php", + "hash": "d3b75dd77cb24fd3b3d3c0a840aaf96f" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Issues\/RemoveSubIssue\/Request\/ApplicationJson.php", + "hash": "fed7e09e911d1079c96e5092e7eb6a50" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Issues\/AddSubIssue\/Request\/ApplicationJson.php", + "hash": "8483e49e7e67beba5ad140861e0728e7" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Issues\/ReprioritizeSubIssue\/Request\/ApplicationJson.php", + "hash": "fd74d73ac6fc0fb22009d0cc356a94dd" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Issues\/IssueNumber\/SubIssue.php", + "hash": "2537b206db308fc601750c0994f01d5d" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Issues\/IssueNumber\/SubIssues.php", + "hash": "ffae08a15478c089800129527baf3cde" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Issues\/IssueNumber\/SubIssues\/Priority.php", + "hash": "8f937489bfbe5b1a84bcfd618c6d9d21" } ] }, diff --git a/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues.php b/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues.php index 236446c788f..7bfc37b9894 100644 --- a/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues.php +++ b/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues.php @@ -16,6 +16,7 @@ use ApiClients\Client\GitHub\Schema\Repository\Permissions; use ApiClients\Client\GitHub\Schema\ScimError; use ApiClients\Client\GitHub\Schema\SimpleUser; +use ApiClients\Client\GitHub\Schema\SubIssuesSummary; use ApiClients\Client\GitHub\Schema\ValidationError; use EventSauce\ObjectHydrator\IterableList; use EventSauce\ObjectHydrator\ObjectMapper; @@ -64,6 +65,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\Integration' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Integration($payload), 'ApiClients\Client\GitHub\Schema\Integration\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Integration⚡️Permissions($payload), 'ApiClients\Client\GitHub\Schema\ReactionRollup' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️ReactionRollup($payload), + 'ApiClients\Client\GitHub\Schema\SubIssuesSummary' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SubIssuesSummary($payload), 'ApiClients\Client\GitHub\Schema\ScimError' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️ScimError($payload), 'ApiClients\Client\GitHub\Schema\Operations\SecretScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Operations⚡️SecretScanning⚡️ListAlertsForEnterprise⚡️Response⚡️ApplicationJson⚡️ServiceUnavailable($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), @@ -635,6 +637,26 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Issu $properties['reactions'] = $value; after_reactions: + + $value = $payload['sub_issues_summary'] ?? null; + + if ($value === null) { + $properties['subIssuesSummary'] = null; + goto after_subIssuesSummary; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'subIssuesSummary'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SubIssuesSummary($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['subIssuesSummary'] = $value; + + after_subIssuesSummary: } catch (Throwable $exception) { throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\Issue', $exception, stack: $this->hydrationStack); } @@ -2866,6 +2888,58 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Reac } } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SubIssuesSummary(array $payload): SubIssuesSummary + { + $properties = []; + $missingFields = []; + try { + $value = $payload['total'] ?? null; + + if ($value === null) { + $missingFields[] = 'total'; + goto after_total; + } + + $properties['total'] = $value; + + after_total: + + $value = $payload['completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'completed'; + goto after_completed; + } + + $properties['completed'] = $value; + + after_completed: + + $value = $payload['percent_completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'percent_completed'; + goto after_percentCompleted; + } + + $properties['percentCompleted'] = $value; + + after_percentCompleted: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(SubIssuesSummary::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new SubIssuesSummary(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️ScimError(array $payload): ScimError { $properties = []; @@ -3046,6 +3120,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\Integration' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Integration($object), 'ApiClients\Client\GitHub\Schema\Integration\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Integration⚡️Permissions($object), 'ApiClients\Client\GitHub\Schema\ReactionRollup' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️ReactionRollup($object), + 'ApiClients\Client\GitHub\Schema\SubIssuesSummary' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SubIssuesSummary($object), 'ApiClients\Client\GitHub\Schema\ScimError' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️ScimError($object), 'ApiClients\Client\GitHub\Schema\Operations\SecretScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Operations⚡️SecretScanning⚡️ListAlertsForEnterprise⚡️Response⚡️ApplicationJson⚡️ServiceUnavailable($object), default => throw new LogicException("No serialization defined for $className"), @@ -3393,6 +3468,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema $reactions = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️ReactionRollup($reactions); after_reactions: $result['reactions'] = $reactions; + $subIssuesSummary = $object->subIssuesSummary; + + if ($subIssuesSummary === null) { + goto after_subIssuesSummary; + } + + $subIssuesSummary = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SubIssuesSummary($subIssuesSummary); + after_subIssuesSummary: $result['sub_issues_summary'] = $subIssuesSummary; + return $result; } @@ -4341,6 +4425,23 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SubIssuesSummary(mixed $object): mixed + { + assert($object instanceof SubIssuesSummary); + $result = []; + + $total = $object->total; + after_total: $result['total'] = $total; + + $completed = $object->completed; + after_completed: $result['completed'] = $completed; + + $percentCompleted = $object->percentCompleted; + after_percentCompleted: $result['percent_completed'] = $percentCompleted; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️ScimError(mixed $object): mixed { assert($object instanceof ScimError); diff --git a/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/Events/EventId.php b/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/Events/EventId.php index 2d3a99353f1..2ff96667f23 100644 --- a/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/Events/EventId.php +++ b/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/Events/EventId.php @@ -20,6 +20,7 @@ use ApiClients\Client\GitHub\Schema\Repository; use ApiClients\Client\GitHub\Schema\Repository\Permissions; use ApiClients\Client\GitHub\Schema\SimpleUser; +use ApiClients\Client\GitHub\Schema\SubIssuesSummary; use ApiClients\Client\GitHub\Schema\Team; use ApiClients\Client\GitHub\Schema\TeamSimple; use EventSauce\ObjectHydrator\IterableList; @@ -68,6 +69,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\Integration' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Integration($payload), 'ApiClients\Client\GitHub\Schema\Integration\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Integration⚡️Permissions($payload), 'ApiClients\Client\GitHub\Schema\ReactionRollup' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️ReactionRollup($payload), + 'ApiClients\Client\GitHub\Schema\SubIssuesSummary' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SubIssuesSummary($payload), 'ApiClients\Client\GitHub\Schema\IssueEventLabel' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueEventLabel($payload), 'ApiClients\Client\GitHub\Schema\Team' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Team($payload), 'ApiClients\Client\GitHub\Schema\Team\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Team⚡️Permissions($payload), @@ -1170,6 +1172,26 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Issu $properties['reactions'] = $value; after_reactions: + + $value = $payload['sub_issues_summary'] ?? null; + + if ($value === null) { + $properties['subIssuesSummary'] = null; + goto after_subIssuesSummary; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'subIssuesSummary'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SubIssuesSummary($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['subIssuesSummary'] = $value; + + after_subIssuesSummary: } catch (Throwable $exception) { throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\Issue', $exception, stack: $this->hydrationStack); } @@ -3140,6 +3162,58 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Reac } } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SubIssuesSummary(array $payload): SubIssuesSummary + { + $properties = []; + $missingFields = []; + try { + $value = $payload['total'] ?? null; + + if ($value === null) { + $missingFields[] = 'total'; + goto after_total; + } + + $properties['total'] = $value; + + after_total: + + $value = $payload['completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'completed'; + goto after_completed; + } + + $properties['completed'] = $value; + + after_completed: + + $value = $payload['percent_completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'percent_completed'; + goto after_percentCompleted; + } + + $properties['percentCompleted'] = $value; + + after_percentCompleted: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(SubIssuesSummary::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new SubIssuesSummary(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueEventLabel(array $payload): IssueEventLabel { $properties = []; @@ -3932,6 +4006,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\Integration' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Integration($object), 'ApiClients\Client\GitHub\Schema\Integration\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Integration⚡️Permissions($object), 'ApiClients\Client\GitHub\Schema\ReactionRollup' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️ReactionRollup($object), + 'ApiClients\Client\GitHub\Schema\SubIssuesSummary' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SubIssuesSummary($object), 'ApiClients\Client\GitHub\Schema\IssueEventLabel' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueEventLabel($object), 'ApiClients\Client\GitHub\Schema\Team' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Team($object), 'ApiClients\Client\GitHub\Schema\Team\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Team⚡️Permissions($object), @@ -4488,6 +4563,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema $reactions = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️ReactionRollup($reactions); after_reactions: $result['reactions'] = $reactions; + $subIssuesSummary = $object->subIssuesSummary; + + if ($subIssuesSummary === null) { + goto after_subIssuesSummary; + } + + $subIssuesSummary = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SubIssuesSummary($subIssuesSummary); + after_subIssuesSummary: $result['sub_issues_summary'] = $subIssuesSummary; + return $result; } @@ -5337,6 +5421,23 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SubIssuesSummary(mixed $object): mixed + { + assert($object instanceof SubIssuesSummary); + $result = []; + + $total = $object->total; + after_total: $result['total'] = $total; + + $completed = $object->completed; + after_completed: $result['completed'] = $completed; + + $percentCompleted = $object->percentCompleted; + after_percentCompleted: $result['percent_completed'] = $percentCompleted; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueEventLabel(mixed $object): mixed { assert($object instanceof IssueEventLabel); diff --git a/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/IssueNumber.php b/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/IssueNumber.php index cd13d0ff748..b530f10f608 100644 --- a/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/IssueNumber.php +++ b/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/IssueNumber.php @@ -15,6 +15,7 @@ use ApiClients\Client\GitHub\Schema\Repository; use ApiClients\Client\GitHub\Schema\Repository\Permissions; use ApiClients\Client\GitHub\Schema\SimpleUser; +use ApiClients\Client\GitHub\Schema\SubIssuesSummary; use ApiClients\Client\GitHub\Schema\ValidationError; use EventSauce\ObjectHydrator\IterableList; use EventSauce\ObjectHydrator\ObjectMapper; @@ -61,6 +62,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\Integration' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Integration($payload), 'ApiClients\Client\GitHub\Schema\Integration\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Integration⚡️Permissions($payload), 'ApiClients\Client\GitHub\Schema\ReactionRollup' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️ReactionRollup($payload), + 'ApiClients\Client\GitHub\Schema\SubIssuesSummary' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SubIssuesSummary($payload), 'ApiClients\Client\GitHub\Schema\BasicError' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️BasicError($payload), 'ApiClients\Client\GitHub\Schema\ValidationError' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️ValidationError($payload), 'ApiClients\Client\GitHub\Schema\Operations\SecretScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Operations⚡️SecretScanning⚡️ListAlertsForEnterprise⚡️Response⚡️ApplicationJson⚡️ServiceUnavailable($payload), @@ -518,6 +520,26 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Issu $properties['reactions'] = $value; after_reactions: + + $value = $payload['sub_issues_summary'] ?? null; + + if ($value === null) { + $properties['subIssuesSummary'] = null; + goto after_subIssuesSummary; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'subIssuesSummary'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SubIssuesSummary($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['subIssuesSummary'] = $value; + + after_subIssuesSummary: } catch (Throwable $exception) { throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\Issue', $exception, stack: $this->hydrationStack); } @@ -2749,6 +2771,58 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Reac } } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SubIssuesSummary(array $payload): SubIssuesSummary + { + $properties = []; + $missingFields = []; + try { + $value = $payload['total'] ?? null; + + if ($value === null) { + $missingFields[] = 'total'; + goto after_total; + } + + $properties['total'] = $value; + + after_total: + + $value = $payload['completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'completed'; + goto after_completed; + } + + $properties['completed'] = $value; + + after_completed: + + $value = $payload['percent_completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'percent_completed'; + goto after_percentCompleted; + } + + $properties['percentCompleted'] = $value; + + after_percentCompleted: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(SubIssuesSummary::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new SubIssuesSummary(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️BasicError(array $payload): BasicError { $properties = []; @@ -2957,6 +3031,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\Integration' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Integration($object), 'ApiClients\Client\GitHub\Schema\Integration\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Integration⚡️Permissions($object), 'ApiClients\Client\GitHub\Schema\ReactionRollup' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️ReactionRollup($object), + 'ApiClients\Client\GitHub\Schema\SubIssuesSummary' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SubIssuesSummary($object), 'ApiClients\Client\GitHub\Schema\BasicError' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️BasicError($object), 'ApiClients\Client\GitHub\Schema\ValidationError' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️ValidationError($object), 'ApiClients\Client\GitHub\Schema\Operations\SecretScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Operations⚡️SecretScanning⚡️ListAlertsForEnterprise⚡️Response⚡️ApplicationJson⚡️ServiceUnavailable($object), @@ -3236,6 +3311,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema $reactions = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️ReactionRollup($reactions); after_reactions: $result['reactions'] = $reactions; + $subIssuesSummary = $object->subIssuesSummary; + + if ($subIssuesSummary === null) { + goto after_subIssuesSummary; + } + + $subIssuesSummary = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SubIssuesSummary($subIssuesSummary); + after_subIssuesSummary: $result['sub_issues_summary'] = $subIssuesSummary; + return $result; } @@ -4184,6 +4268,23 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SubIssuesSummary(mixed $object): mixed + { + assert($object instanceof SubIssuesSummary); + $result = []; + + $total = $object->total; + after_total: $result['total'] = $total; + + $completed = $object->completed; + after_completed: $result['completed'] = $completed; + + $percentCompleted = $object->percentCompleted; + after_percentCompleted: $result['percent_completed'] = $percentCompleted; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️BasicError(mixed $object): mixed { assert($object instanceof BasicError); diff --git a/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/IssueNumber/Assignees.php b/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/IssueNumber/Assignees.php index 985ded552a5..e9dd3e2d082 100644 --- a/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/IssueNumber/Assignees.php +++ b/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/IssueNumber/Assignees.php @@ -13,6 +13,7 @@ use ApiClients\Client\GitHub\Schema\Repository; use ApiClients\Client\GitHub\Schema\Repository\Permissions; use ApiClients\Client\GitHub\Schema\SimpleUser; +use ApiClients\Client\GitHub\Schema\SubIssuesSummary; use EventSauce\ObjectHydrator\IterableList; use EventSauce\ObjectHydrator\ObjectMapper; use EventSauce\ObjectHydrator\PropertySerializers\SerializeArrayItems; @@ -58,6 +59,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\Integration' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Integration($payload), 'ApiClients\Client\GitHub\Schema\Integration\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Integration⚡️Permissions($payload), 'ApiClients\Client\GitHub\Schema\ReactionRollup' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️ReactionRollup($payload), + 'ApiClients\Client\GitHub\Schema\SubIssuesSummary' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SubIssuesSummary($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), }; } @@ -512,6 +514,26 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Issu $properties['reactions'] = $value; after_reactions: + + $value = $payload['sub_issues_summary'] ?? null; + + if ($value === null) { + $properties['subIssuesSummary'] = null; + goto after_subIssuesSummary; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'subIssuesSummary'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SubIssuesSummary($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['subIssuesSummary'] = $value; + + after_subIssuesSummary: } catch (Throwable $exception) { throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\Issue', $exception, stack: $this->hydrationStack); } @@ -2743,6 +2765,58 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Reac } } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SubIssuesSummary(array $payload): SubIssuesSummary + { + $properties = []; + $missingFields = []; + try { + $value = $payload['total'] ?? null; + + if ($value === null) { + $missingFields[] = 'total'; + goto after_total; + } + + $properties['total'] = $value; + + after_total: + + $value = $payload['completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'completed'; + goto after_completed; + } + + $properties['completed'] = $value; + + after_completed: + + $value = $payload['percent_completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'percent_completed'; + goto after_percentCompleted; + } + + $properties['percentCompleted'] = $value; + + after_percentCompleted: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(SubIssuesSummary::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new SubIssuesSummary(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + } + private function serializeViaTypeMap(string $accessor, object $object, array $payloadToTypeMap): array { foreach ($payloadToTypeMap as $payloadType => [$valueType, $method]) { @@ -2784,6 +2858,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\Integration' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Integration($object), 'ApiClients\Client\GitHub\Schema\Integration\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Integration⚡️Permissions($object), 'ApiClients\Client\GitHub\Schema\ReactionRollup' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️ReactionRollup($object), + 'ApiClients\Client\GitHub\Schema\SubIssuesSummary' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SubIssuesSummary($object), default => throw new LogicException("No serialization defined for $className"), }; } catch (Throwable $exception) { @@ -3060,6 +3135,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema $reactions = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️ReactionRollup($reactions); after_reactions: $result['reactions'] = $reactions; + $subIssuesSummary = $object->subIssuesSummary; + + if ($subIssuesSummary === null) { + goto after_subIssuesSummary; + } + + $subIssuesSummary = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SubIssuesSummary($subIssuesSummary); + after_subIssuesSummary: $result['sub_issues_summary'] = $subIssuesSummary; + return $result; } @@ -4008,6 +4092,23 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SubIssuesSummary(mixed $object): mixed + { + assert($object instanceof SubIssuesSummary); + $result = []; + + $total = $object->total; + after_total: $result['total'] = $total; + + $completed = $object->completed; + after_completed: $result['completed'] = $completed; + + $percentCompleted = $object->percentCompleted; + after_percentCompleted: $result['percent_completed'] = $percentCompleted; + + return $result; + } + /** * @param class-string $className * @param iterable $payloads; diff --git a/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/IssueNumber/SubIssue.php b/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/IssueNumber/SubIssue.php new file mode 100644 index 00000000000..f3fd8236504 --- /dev/null +++ b/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/IssueNumber/SubIssue.php @@ -0,0 +1,4412 @@ + $className + * + * @return T + * + * @template T of object + */ + public function hydrateObject(string $className, array $payload): object + { + return match ($className) { + 'ApiClients\Client\GitHub\Schema\Issue' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Issue($payload), + 'ApiClients\Client\GitHub\Schema\SimpleUser' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($payload), + 'ApiClients\Client\GitHub\Schema\Milestone' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Milestone($payload), + 'ApiClients\Client\GitHub\Schema\Issue\PullRequest' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Issue⚡️PullRequest($payload), + 'ApiClients\Client\GitHub\Schema\Repository' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repository($payload), + 'ApiClients\Client\GitHub\Schema\LicenseSimple' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️LicenseSimple($payload), + 'ApiClients\Client\GitHub\Schema\Repository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repository⚡️Permissions($payload), + 'ApiClients\Client\GitHub\Schema\Integration' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Integration($payload), + 'ApiClients\Client\GitHub\Schema\Integration\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Integration⚡️Permissions($payload), + 'ApiClients\Client\GitHub\Schema\ReactionRollup' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️ReactionRollup($payload), + 'ApiClients\Client\GitHub\Schema\SubIssuesSummary' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SubIssuesSummary($payload), + 'ApiClients\Client\GitHub\Schema\BasicError' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️BasicError($payload), + 'ApiClients\Client\GitHub\Schema\ScimError' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️ScimError($payload), + default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), + }; + } + + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Issue(array $payload): Issue + { + $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_nodeId; + } + + $properties['nodeId'] = $value; + + after_nodeId: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['repository_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'repository_url'; + goto after_repositoryUrl; + } + + $properties['repositoryUrl'] = $value; + + after_repositoryUrl: + + $value = $payload['labels_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'labels_url'; + goto after_labelsUrl; + } + + $properties['labelsUrl'] = $value; + + after_labelsUrl: + + $value = $payload['comments_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'comments_url'; + goto after_commentsUrl; + } + + $properties['commentsUrl'] = $value; + + after_commentsUrl: + + $value = $payload['events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'events_url'; + goto after_eventsUrl; + } + + $properties['eventsUrl'] = $value; + + after_eventsUrl: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_htmlUrl; + } + + $properties['htmlUrl'] = $value; + + after_htmlUrl: + + $value = $payload['number'] ?? null; + + if ($value === null) { + $missingFields[] = 'number'; + goto after_number; + } + + $properties['number'] = $value; + + after_number: + + $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) { + $properties['stateReason'] = null; + goto after_stateReason; + } + + $properties['stateReason'] = $value; + + after_stateReason: + + $value = $payload['title'] ?? null; + + if ($value === null) { + $missingFields[] = 'title'; + goto after_title; + } + + $properties['title'] = $value; + + after_title: + + $value = $payload['body'] ?? null; + + if ($value === null) { + $properties['body'] = null; + goto after_body; + } + + $properties['body'] = $value; + + after_body: + + $value = $payload['user'] ?? null; + + if ($value === null) { + $properties['user'] = null; + goto after_user; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'user'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['user'] = $value; + + after_user: + + $value = $payload['labels'] ?? null; + + if ($value === null) { + $missingFields[] = 'labels'; + goto after_labels; + } + + $properties['labels'] = $value; + + after_labels: + + $value = $payload['assignee'] ?? null; + + if ($value === null) { + $properties['assignee'] = null; + goto after_assignee; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'assignee'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['assignee'] = $value; + + after_assignee: + + $value = $payload['assignees'] ?? null; + + if ($value === null) { + $properties['assignees'] = null; + goto after_assignees; + } + + $properties['assignees'] = $value; + + after_assignees: + + $value = $payload['milestone'] ?? null; + + if ($value === null) { + $properties['milestone'] = null; + goto after_milestone; + } + + 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_milestone: + + $value = $payload['locked'] ?? null; + + if ($value === null) { + $missingFields[] = 'locked'; + goto after_locked; + } + + $properties['locked'] = $value; + + after_locked: + + $value = $payload['active_lock_reason'] ?? null; + + if ($value === null) { + $properties['activeLockReason'] = null; + goto after_activeLockReason; + } + + $properties['activeLockReason'] = $value; + + after_activeLockReason: + + $value = $payload['comments'] ?? null; + + if ($value === null) { + $missingFields[] = 'comments'; + goto after_comments; + } + + $properties['comments'] = $value; + + after_comments: + + $value = $payload['pull_request'] ?? null; + + if ($value === null) { + $properties['pullRequest'] = null; + goto after_pullRequest; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'pullRequest'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Issue⚡️PullRequest($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['pullRequest'] = $value; + + after_pullRequest: + + $value = $payload['closed_at'] ?? null; + + if ($value === null) { + $properties['closedAt'] = null; + goto after_closedAt; + } + + $properties['closedAt'] = $value; + + after_closedAt: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'created_at'; + goto after_createdAt; + } + + $properties['createdAt'] = $value; + + after_createdAt: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'updated_at'; + goto after_updatedAt; + } + + $properties['updatedAt'] = $value; + + after_updatedAt: + + $value = $payload['draft'] ?? null; + + if ($value === null) { + $properties['draft'] = null; + goto after_draft; + } + + $properties['draft'] = $value; + + after_draft: + + $value = $payload['closed_by'] ?? null; + + if ($value === null) { + $properties['closedBy'] = null; + goto after_closedBy; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'closedBy'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['closedBy'] = $value; + + after_closedBy: + + $value = $payload['body_html'] ?? null; + + if ($value === null) { + $properties['bodyHtml'] = null; + goto after_bodyHtml; + } + + $properties['bodyHtml'] = $value; + + after_bodyHtml: + + $value = $payload['body_text'] ?? null; + + if ($value === null) { + $properties['bodyText'] = null; + goto after_bodyText; + } + + $properties['bodyText'] = $value; + + after_bodyText: + + $value = $payload['timeline_url'] ?? null; + + if ($value === null) { + $properties['timelineUrl'] = null; + goto after_timelineUrl; + } + + $properties['timelineUrl'] = $value; + + after_timelineUrl: + + $value = $payload['repository'] ?? null; + + if ($value === null) { + $properties['repository'] = null; + 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['performed_via_github_app'] ?? null; + + if ($value === null) { + $properties['performedViaGithubApp'] = null; + goto after_performedViaGithubApp; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'performedViaGithubApp'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Integration($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['performedViaGithubApp'] = $value; + + after_performedViaGithubApp: + + $value = $payload['author_association'] ?? null; + + if ($value === null) { + $missingFields[] = 'author_association'; + goto after_authorAssociation; + } + + $properties['authorAssociation'] = $value; + + after_authorAssociation: + + $value = $payload['reactions'] ?? null; + + if ($value === null) { + $properties['reactions'] = null; + goto after_reactions; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'reactions'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️ReactionRollup($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['reactions'] = $value; + + after_reactions: + + $value = $payload['sub_issues_summary'] ?? null; + + if ($value === null) { + $properties['subIssuesSummary'] = null; + goto after_subIssuesSummary; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'subIssuesSummary'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SubIssuesSummary($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['subIssuesSummary'] = $value; + + after_subIssuesSummary: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\Issue', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(Issue::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new Issue(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\Issue', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser(array $payload): SimpleUser + { + $properties = []; + $missingFields = []; + try { + $value = $payload['name'] ?? null; + + if ($value === null) { + $properties['name'] = null; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['email'] ?? null; + + if ($value === null) { + $properties['email'] = null; + 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_nodeId; + } + + $properties['nodeId'] = $value; + + after_nodeId: + + $value = $payload['avatar_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'avatar_url'; + goto after_avatarUrl; + } + + $properties['avatarUrl'] = $value; + + after_avatarUrl: + + $value = $payload['gravatar_id'] ?? null; + + if ($value === null) { + $properties['gravatarId'] = null; + goto after_gravatarId; + } + + $properties['gravatarId'] = $value; + + after_gravatarId: + + $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_htmlUrl; + } + + $properties['htmlUrl'] = $value; + + after_htmlUrl: + + $value = $payload['followers_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'followers_url'; + goto after_followersUrl; + } + + $properties['followersUrl'] = $value; + + after_followersUrl: + + $value = $payload['following_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'following_url'; + goto after_followingUrl; + } + + $properties['followingUrl'] = $value; + + after_followingUrl: + + $value = $payload['gists_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'gists_url'; + goto after_gistsUrl; + } + + $properties['gistsUrl'] = $value; + + after_gistsUrl: + + $value = $payload['starred_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'starred_url'; + goto after_starredUrl; + } + + $properties['starredUrl'] = $value; + + after_starredUrl: + + $value = $payload['subscriptions_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscriptions_url'; + goto after_subscriptionsUrl; + } + + $properties['subscriptionsUrl'] = $value; + + after_subscriptionsUrl: + + $value = $payload['organizations_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'organizations_url'; + goto after_organizationsUrl; + } + + $properties['organizationsUrl'] = $value; + + after_organizationsUrl: + + $value = $payload['repos_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'repos_url'; + goto after_reposUrl; + } + + $properties['reposUrl'] = $value; + + after_reposUrl: + + $value = $payload['events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'events_url'; + goto after_eventsUrl; + } + + $properties['eventsUrl'] = $value; + + after_eventsUrl: + + $value = $payload['received_events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'received_events_url'; + goto after_receivedEventsUrl; + } + + $properties['receivedEventsUrl'] = $value; + + after_receivedEventsUrl: + + $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_siteAdmin; + } + + $properties['siteAdmin'] = $value; + + after_siteAdmin: + + $value = $payload['starred_at'] ?? null; + + if ($value === null) { + $properties['starredAt'] = null; + goto after_starredAt; + } + + $properties['starredAt'] = $value; + + after_starredAt: + + $value = $payload['user_view_type'] ?? null; + + if ($value === null) { + $properties['userViewType'] = null; + goto after_userViewType; + } + + $properties['userViewType'] = $value; + + after_userViewType: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUser', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(SimpleUser::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new SimpleUser(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUser', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Milestone(array $payload): Milestone + { + $properties = []; + $missingFields = []; + try { + $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_htmlUrl; + } + + $properties['htmlUrl'] = $value; + + after_htmlUrl: + + $value = $payload['labels_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'labels_url'; + goto after_labelsUrl; + } + + $properties['labelsUrl'] = $value; + + after_labelsUrl: + + $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_nodeId; + } + + $properties['nodeId'] = $value; + + after_nodeId: + + $value = $payload['number'] ?? null; + + if ($value === null) { + $missingFields[] = 'number'; + goto after_number; + } + + $properties['number'] = $value; + + after_number: + + $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['description'] ?? null; + + if ($value === null) { + $properties['description'] = null; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['creator'] ?? null; + + if ($value === null) { + $properties['creator'] = null; + 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['open_issues'] ?? null; + + if ($value === null) { + $missingFields[] = 'open_issues'; + goto after_openIssues; + } + + $properties['openIssues'] = $value; + + after_openIssues: + + $value = $payload['closed_issues'] ?? null; + + if ($value === null) { + $missingFields[] = 'closed_issues'; + goto after_closedIssues; + } + + $properties['closedIssues'] = $value; + + after_closedIssues: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'created_at'; + goto after_createdAt; + } + + $properties['createdAt'] = $value; + + after_createdAt: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'updated_at'; + goto after_updatedAt; + } + + $properties['updatedAt'] = $value; + + after_updatedAt: + + $value = $payload['closed_at'] ?? null; + + if ($value === null) { + $properties['closedAt'] = null; + goto after_closedAt; + } + + $properties['closedAt'] = $value; + + after_closedAt: + + $value = $payload['due_on'] ?? null; + + if ($value === null) { + $properties['dueOn'] = null; + goto after_dueOn; + } + + $properties['dueOn'] = $value; + + after_dueOn: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\Milestone', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(Milestone::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new Milestone(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\Milestone', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Issue⚡️PullRequest(array $payload): PullRequest + { + $properties = []; + $missingFields = []; + try { + $value = $payload['merged_at'] ?? null; + + if ($value === null) { + $properties['mergedAt'] = null; + goto after_mergedAt; + } + + $properties['mergedAt'] = $value; + + after_mergedAt: + + $value = $payload['diff_url'] ?? null; + + if ($value === null) { + $properties['diffUrl'] = null; + goto after_diffUrl; + } + + $properties['diffUrl'] = $value; + + after_diffUrl: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $properties['htmlUrl'] = null; + goto after_htmlUrl; + } + + $properties['htmlUrl'] = $value; + + after_htmlUrl: + + $value = $payload['patch_url'] ?? null; + + if ($value === null) { + $properties['patchUrl'] = null; + goto after_patchUrl; + } + + $properties['patchUrl'] = $value; + + after_patchUrl: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $properties['url'] = null; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\Issue\PullRequest', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(PullRequest::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new PullRequest(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\Issue\PullRequest', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repository(array $payload): 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_nodeId; + } + + $properties['nodeId'] = $value; + + after_nodeId: + + $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_fullName; + } + + $properties['fullName'] = $value; + + after_fullName: + + $value = $payload['license'] ?? null; + + if ($value === null) { + $properties['license'] = null; + goto after_license; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'license'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️LicenseSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['license'] = $value; + + after_license: + + $value = $payload['forks'] ?? null; + + if ($value === null) { + $missingFields[] = 'forks'; + goto after_forks; + } + + $properties['forks'] = $value; + + after_forks: + + $value = $payload['permissions'] ?? null; + + if ($value === null) { + $properties['permissions'] = null; + 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_htmlUrl; + } + + $properties['htmlUrl'] = $value; + + after_htmlUrl: + + $value = $payload['description'] ?? null; + + if ($value === null) { + $properties['description'] = null; + 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_archiveUrl; + } + + $properties['archiveUrl'] = $value; + + after_archiveUrl: + + $value = $payload['assignees_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'assignees_url'; + goto after_assigneesUrl; + } + + $properties['assigneesUrl'] = $value; + + after_assigneesUrl: + + $value = $payload['blobs_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'blobs_url'; + goto after_blobsUrl; + } + + $properties['blobsUrl'] = $value; + + after_blobsUrl: + + $value = $payload['branches_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'branches_url'; + goto after_branchesUrl; + } + + $properties['branchesUrl'] = $value; + + after_branchesUrl: + + $value = $payload['collaborators_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'collaborators_url'; + goto after_collaboratorsUrl; + } + + $properties['collaboratorsUrl'] = $value; + + after_collaboratorsUrl: + + $value = $payload['comments_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'comments_url'; + goto after_commentsUrl; + } + + $properties['commentsUrl'] = $value; + + after_commentsUrl: + + $value = $payload['commits_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'commits_url'; + goto after_commitsUrl; + } + + $properties['commitsUrl'] = $value; + + after_commitsUrl: + + $value = $payload['compare_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'compare_url'; + goto after_compareUrl; + } + + $properties['compareUrl'] = $value; + + after_compareUrl: + + $value = $payload['contents_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'contents_url'; + goto after_contentsUrl; + } + + $properties['contentsUrl'] = $value; + + after_contentsUrl: + + $value = $payload['contributors_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'contributors_url'; + goto after_contributorsUrl; + } + + $properties['contributorsUrl'] = $value; + + after_contributorsUrl: + + $value = $payload['deployments_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'deployments_url'; + goto after_deploymentsUrl; + } + + $properties['deploymentsUrl'] = $value; + + after_deploymentsUrl: + + $value = $payload['downloads_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'downloads_url'; + goto after_downloadsUrl; + } + + $properties['downloadsUrl'] = $value; + + after_downloadsUrl: + + $value = $payload['events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'events_url'; + goto after_eventsUrl; + } + + $properties['eventsUrl'] = $value; + + after_eventsUrl: + + $value = $payload['forks_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'forks_url'; + goto after_forksUrl; + } + + $properties['forksUrl'] = $value; + + after_forksUrl: + + $value = $payload['git_commits_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_commits_url'; + goto after_gitCommitsUrl; + } + + $properties['gitCommitsUrl'] = $value; + + after_gitCommitsUrl: + + $value = $payload['git_refs_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_refs_url'; + goto after_gitRefsUrl; + } + + $properties['gitRefsUrl'] = $value; + + after_gitRefsUrl: + + $value = $payload['git_tags_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_tags_url'; + goto after_gitTagsUrl; + } + + $properties['gitTagsUrl'] = $value; + + after_gitTagsUrl: + + $value = $payload['git_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_url'; + goto after_gitUrl; + } + + $properties['gitUrl'] = $value; + + after_gitUrl: + + $value = $payload['issue_comment_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issue_comment_url'; + goto after_issueCommentUrl; + } + + $properties['issueCommentUrl'] = $value; + + after_issueCommentUrl: + + $value = $payload['issue_events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issue_events_url'; + goto after_issueEventsUrl; + } + + $properties['issueEventsUrl'] = $value; + + after_issueEventsUrl: + + $value = $payload['issues_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issues_url'; + goto after_issuesUrl; + } + + $properties['issuesUrl'] = $value; + + after_issuesUrl: + + $value = $payload['keys_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'keys_url'; + goto after_keysUrl; + } + + $properties['keysUrl'] = $value; + + after_keysUrl: + + $value = $payload['labels_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'labels_url'; + goto after_labelsUrl; + } + + $properties['labelsUrl'] = $value; + + after_labelsUrl: + + $value = $payload['languages_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'languages_url'; + goto after_languagesUrl; + } + + $properties['languagesUrl'] = $value; + + after_languagesUrl: + + $value = $payload['merges_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'merges_url'; + goto after_mergesUrl; + } + + $properties['mergesUrl'] = $value; + + after_mergesUrl: + + $value = $payload['milestones_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'milestones_url'; + goto after_milestonesUrl; + } + + $properties['milestonesUrl'] = $value; + + after_milestonesUrl: + + $value = $payload['notifications_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'notifications_url'; + goto after_notificationsUrl; + } + + $properties['notificationsUrl'] = $value; + + after_notificationsUrl: + + $value = $payload['pulls_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'pulls_url'; + goto after_pullsUrl; + } + + $properties['pullsUrl'] = $value; + + after_pullsUrl: + + $value = $payload['releases_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'releases_url'; + goto after_releasesUrl; + } + + $properties['releasesUrl'] = $value; + + after_releasesUrl: + + $value = $payload['ssh_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'ssh_url'; + goto after_sshUrl; + } + + $properties['sshUrl'] = $value; + + after_sshUrl: + + $value = $payload['stargazers_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'stargazers_url'; + goto after_stargazersUrl; + } + + $properties['stargazersUrl'] = $value; + + after_stargazersUrl: + + $value = $payload['statuses_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'statuses_url'; + goto after_statusesUrl; + } + + $properties['statusesUrl'] = $value; + + after_statusesUrl: + + $value = $payload['subscribers_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscribers_url'; + goto after_subscribersUrl; + } + + $properties['subscribersUrl'] = $value; + + after_subscribersUrl: + + $value = $payload['subscription_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscription_url'; + goto after_subscriptionUrl; + } + + $properties['subscriptionUrl'] = $value; + + after_subscriptionUrl: + + $value = $payload['tags_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'tags_url'; + goto after_tagsUrl; + } + + $properties['tagsUrl'] = $value; + + after_tagsUrl: + + $value = $payload['teams_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'teams_url'; + goto after_teamsUrl; + } + + $properties['teamsUrl'] = $value; + + after_teamsUrl: + + $value = $payload['trees_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'trees_url'; + goto after_treesUrl; + } + + $properties['treesUrl'] = $value; + + after_treesUrl: + + $value = $payload['clone_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'clone_url'; + goto after_cloneUrl; + } + + $properties['cloneUrl'] = $value; + + after_cloneUrl: + + $value = $payload['mirror_url'] ?? null; + + if ($value === null) { + $properties['mirrorUrl'] = null; + goto after_mirrorUrl; + } + + $properties['mirrorUrl'] = $value; + + after_mirrorUrl: + + $value = $payload['hooks_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'hooks_url'; + goto after_hooksUrl; + } + + $properties['hooksUrl'] = $value; + + after_hooksUrl: + + $value = $payload['svn_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'svn_url'; + goto after_svnUrl; + } + + $properties['svnUrl'] = $value; + + after_svnUrl: + + $value = $payload['homepage'] ?? null; + + if ($value === null) { + $properties['homepage'] = null; + goto after_homepage; + } + + $properties['homepage'] = $value; + + after_homepage: + + $value = $payload['language'] ?? null; + + if ($value === null) { + $properties['language'] = null; + goto after_language; + } + + $properties['language'] = $value; + + after_language: + + $value = $payload['forks_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'forks_count'; + goto after_forksCount; + } + + $properties['forksCount'] = $value; + + after_forksCount: + + $value = $payload['stargazers_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'stargazers_count'; + goto after_stargazersCount; + } + + $properties['stargazersCount'] = $value; + + after_stargazersCount: + + $value = $payload['watchers_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'watchers_count'; + goto after_watchersCount; + } + + $properties['watchersCount'] = $value; + + after_watchersCount: + + $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_defaultBranch; + } + + $properties['defaultBranch'] = $value; + + after_defaultBranch: + + $value = $payload['open_issues_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'open_issues_count'; + goto after_openIssuesCount; + } + + $properties['openIssuesCount'] = $value; + + after_openIssuesCount: + + $value = $payload['is_template'] ?? null; + + if ($value === null) { + $properties['isTemplate'] = null; + goto after_isTemplate; + } + + $properties['isTemplate'] = $value; + + after_isTemplate: + + $value = $payload['topics'] ?? null; + + if ($value === null) { + $properties['topics'] = null; + goto after_topics; + } + + $properties['topics'] = $value; + + after_topics: + + $value = $payload['has_issues'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_issues'; + goto after_hasIssues; + } + + $properties['hasIssues'] = $value; + + after_hasIssues: + + $value = $payload['has_projects'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_projects'; + goto after_hasProjects; + } + + $properties['hasProjects'] = $value; + + after_hasProjects: + + $value = $payload['has_wiki'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_wiki'; + goto after_hasWiki; + } + + $properties['hasWiki'] = $value; + + after_hasWiki: + + $value = $payload['has_pages'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_pages'; + goto after_hasPages; + } + + $properties['hasPages'] = $value; + + after_hasPages: + + $value = $payload['has_downloads'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_downloads'; + goto after_hasDownloads; + } + + $properties['hasDownloads'] = $value; + + after_hasDownloads: + + $value = $payload['has_discussions'] ?? null; + + if ($value === null) { + $properties['hasDiscussions'] = null; + goto after_hasDiscussions; + } + + $properties['hasDiscussions'] = $value; + + after_hasDiscussions: + + $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) { + $properties['visibility'] = null; + goto after_visibility; + } + + $properties['visibility'] = $value; + + after_visibility: + + $value = $payload['pushed_at'] ?? null; + + if ($value === null) { + $properties['pushedAt'] = null; + goto after_pushedAt; + } + + $properties['pushedAt'] = $value; + + after_pushedAt: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $properties['createdAt'] = null; + goto after_createdAt; + } + + $properties['createdAt'] = $value; + + after_createdAt: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $properties['updatedAt'] = null; + goto after_updatedAt; + } + + $properties['updatedAt'] = $value; + + after_updatedAt: + + $value = $payload['allow_rebase_merge'] ?? null; + + if ($value === null) { + $properties['allowRebaseMerge'] = null; + goto after_allowRebaseMerge; + } + + $properties['allowRebaseMerge'] = $value; + + after_allowRebaseMerge: + + $value = $payload['temp_clone_token'] ?? null; + + if ($value === null) { + $properties['tempCloneToken'] = null; + goto after_tempCloneToken; + } + + $properties['tempCloneToken'] = $value; + + after_tempCloneToken: + + $value = $payload['allow_squash_merge'] ?? null; + + if ($value === null) { + $properties['allowSquashMerge'] = null; + goto after_allowSquashMerge; + } + + $properties['allowSquashMerge'] = $value; + + after_allowSquashMerge: + + $value = $payload['allow_auto_merge'] ?? null; + + if ($value === null) { + $properties['allowAutoMerge'] = null; + goto after_allowAutoMerge; + } + + $properties['allowAutoMerge'] = $value; + + after_allowAutoMerge: + + $value = $payload['delete_branch_on_merge'] ?? null; + + if ($value === null) { + $properties['deleteBranchOnMerge'] = null; + goto after_deleteBranchOnMerge; + } + + $properties['deleteBranchOnMerge'] = $value; + + after_deleteBranchOnMerge: + + $value = $payload['allow_update_branch'] ?? null; + + if ($value === null) { + $properties['allowUpdateBranch'] = null; + goto after_allowUpdateBranch; + } + + $properties['allowUpdateBranch'] = $value; + + after_allowUpdateBranch: + + $value = $payload['use_squash_pr_title_as_default'] ?? null; + + if ($value === null) { + $properties['useSquashPrTitleAsDefault'] = null; + goto after_useSquashPrTitleAsDefault; + } + + $properties['useSquashPrTitleAsDefault'] = $value; + + after_useSquashPrTitleAsDefault: + + $value = $payload['squash_merge_commit_title'] ?? null; + + if ($value === null) { + $properties['squashMergeCommitTitle'] = null; + goto after_squashMergeCommitTitle; + } + + $properties['squashMergeCommitTitle'] = $value; + + after_squashMergeCommitTitle: + + $value = $payload['squash_merge_commit_message'] ?? null; + + if ($value === null) { + $properties['squashMergeCommitMessage'] = null; + goto after_squashMergeCommitMessage; + } + + $properties['squashMergeCommitMessage'] = $value; + + after_squashMergeCommitMessage: + + $value = $payload['merge_commit_title'] ?? null; + + if ($value === null) { + $properties['mergeCommitTitle'] = null; + goto after_mergeCommitTitle; + } + + $properties['mergeCommitTitle'] = $value; + + after_mergeCommitTitle: + + $value = $payload['merge_commit_message'] ?? null; + + if ($value === null) { + $properties['mergeCommitMessage'] = null; + goto after_mergeCommitMessage; + } + + $properties['mergeCommitMessage'] = $value; + + after_mergeCommitMessage: + + $value = $payload['allow_merge_commit'] ?? null; + + if ($value === null) { + $properties['allowMergeCommit'] = null; + goto after_allowMergeCommit; + } + + $properties['allowMergeCommit'] = $value; + + after_allowMergeCommit: + + $value = $payload['allow_forking'] ?? null; + + if ($value === null) { + $properties['allowForking'] = null; + goto after_allowForking; + } + + $properties['allowForking'] = $value; + + after_allowForking: + + $value = $payload['web_commit_signoff_required'] ?? null; + + if ($value === null) { + $properties['webCommitSignoffRequired'] = null; + goto after_webCommitSignoffRequired; + } + + $properties['webCommitSignoffRequired'] = $value; + + after_webCommitSignoffRequired: + + $value = $payload['open_issues'] ?? null; + + if ($value === null) { + $missingFields[] = 'open_issues'; + goto after_openIssues; + } + + $properties['openIssues'] = $value; + + after_openIssues: + + $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) { + $properties['masterBranch'] = null; + goto after_masterBranch; + } + + $properties['masterBranch'] = $value; + + after_masterBranch: + + $value = $payload['starred_at'] ?? null; + + if ($value === null) { + $properties['starredAt'] = null; + goto after_starredAt; + } + + $properties['starredAt'] = $value; + + after_starredAt: + + $value = $payload['anonymous_access_enabled'] ?? null; + + if ($value === null) { + $properties['anonymousAccessEnabled'] = null; + goto after_anonymousAccessEnabled; + } + + $properties['anonymousAccessEnabled'] = $value; + + after_anonymousAccessEnabled: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\Repository', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(Repository::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new Repository(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\Repository', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️LicenseSimple(array $payload): LicenseSimple + { + $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['url'] ?? null; + + if ($value === null) { + $properties['url'] = null; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['spdx_id'] ?? null; + + if ($value === null) { + $properties['spdxId'] = null; + goto after_spdxId; + } + + $properties['spdxId'] = $value; + + after_spdxId: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_nodeId; + } + + $properties['nodeId'] = $value; + + after_nodeId: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $properties['htmlUrl'] = null; + goto after_htmlUrl; + } + + $properties['htmlUrl'] = $value; + + after_htmlUrl: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\LicenseSimple', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(LicenseSimple::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new LicenseSimple(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\LicenseSimple', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repository⚡️Permissions(array $payload): 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) { + $properties['triage'] = null; + 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) { + $properties['maintain'] = null; + 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(Permissions::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new Permissions(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\Repository\Permissions', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Integration(array $payload): Integration + { + $properties = []; + $missingFields = []; + try { + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['slug'] ?? null; + + if ($value === null) { + $properties['slug'] = null; + goto after_slug; + } + + $properties['slug'] = $value; + + after_slug: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_nodeId; + } + + $properties['nodeId'] = $value; + + after_nodeId: + + $value = $payload['client_id'] ?? null; + + if ($value === null) { + $properties['clientId'] = null; + goto after_clientId; + } + + $properties['clientId'] = $value; + + after_clientId: + + $value = $payload['owner'] ?? null; + + if ($value === null) { + $properties['owner'] = null; + 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['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['description'] ?? null; + + if ($value === null) { + $properties['description'] = null; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['external_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'external_url'; + goto after_externalUrl; + } + + $properties['externalUrl'] = $value; + + after_externalUrl: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_htmlUrl; + } + + $properties['htmlUrl'] = $value; + + after_htmlUrl: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'created_at'; + goto after_createdAt; + } + + $properties['createdAt'] = $value; + + after_createdAt: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'updated_at'; + goto after_updatedAt; + } + + $properties['updatedAt'] = $value; + + after_updatedAt: + + $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⚡️Integration⚡️Permissions($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['permissions'] = $value; + + after_permissions: + + $value = $payload['events'] ?? null; + + if ($value === null) { + $missingFields[] = 'events'; + goto after_events; + } + + $properties['events'] = $value; + + after_events: + + $value = $payload['installations_count'] ?? null; + + if ($value === null) { + $properties['installationsCount'] = null; + goto after_installationsCount; + } + + $properties['installationsCount'] = $value; + + after_installationsCount: + + $value = $payload['client_secret'] ?? null; + + if ($value === null) { + $properties['clientSecret'] = null; + goto after_clientSecret; + } + + $properties['clientSecret'] = $value; + + after_clientSecret: + + $value = $payload['webhook_secret'] ?? null; + + if ($value === null) { + $properties['webhookSecret'] = null; + goto after_webhookSecret; + } + + $properties['webhookSecret'] = $value; + + after_webhookSecret: + + $value = $payload['pem'] ?? null; + + if ($value === null) { + $properties['pem'] = null; + goto after_pem; + } + + $properties['pem'] = $value; + + after_pem: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\Integration', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(Integration::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new Integration(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\Integration', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Integration⚡️Permissions(array $payload): \ApiClients\Client\GitHub\Schema\Integration\Permissions + { + $properties = []; + $missingFields = []; + try { + $value = $payload['issues'] ?? null; + + if ($value === null) { + $properties['issues'] = null; + goto after_issues; + } + + $properties['issues'] = $value; + + after_issues: + + $value = $payload['checks'] ?? null; + + if ($value === null) { + $properties['checks'] = null; + goto after_checks; + } + + $properties['checks'] = $value; + + after_checks: + + $value = $payload['metadata'] ?? null; + + if ($value === null) { + $properties['metadata'] = null; + goto after_metadata; + } + + $properties['metadata'] = $value; + + after_metadata: + + $value = $payload['contents'] ?? null; + + if ($value === null) { + $properties['contents'] = null; + goto after_contents; + } + + $properties['contents'] = $value; + + after_contents: + + $value = $payload['deployments'] ?? null; + + if ($value === null) { + $properties['deployments'] = null; + goto after_deployments; + } + + $properties['deployments'] = $value; + + after_deployments: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\Integration\Permissions', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\GitHub\Schema\Integration\Permissions::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\GitHub\Schema\Integration\Permissions(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\Integration\Permissions', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️ReactionRollup(array $payload): ReactionRollup + { + $properties = []; + $missingFields = []; + try { + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['total_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'total_count'; + goto after_totalCount; + } + + $properties['totalCount'] = $value; + + after_totalCount: + + $value = $payload['+1'] ?? null; + + if ($value === null) { + $missingFields[] = '+1'; + goto after_plusOne; + } + + $properties['plusOne'] = $value; + + after_plusOne: + + $value = $payload['-1'] ?? null; + + if ($value === null) { + $missingFields[] = '-1'; + goto after_minOne; + } + + $properties['minOne'] = $value; + + after_minOne: + + $value = $payload['laugh'] ?? null; + + if ($value === null) { + $missingFields[] = 'laugh'; + goto after_laugh; + } + + $properties['laugh'] = $value; + + after_laugh: + + $value = $payload['confused'] ?? null; + + if ($value === null) { + $missingFields[] = 'confused'; + goto after_confused; + } + + $properties['confused'] = $value; + + after_confused: + + $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['eyes'] ?? null; + + if ($value === null) { + $missingFields[] = 'eyes'; + goto after_eyes; + } + + $properties['eyes'] = $value; + + after_eyes: + + $value = $payload['rocket'] ?? null; + + if ($value === null) { + $missingFields[] = 'rocket'; + goto after_rocket; + } + + $properties['rocket'] = $value; + + after_rocket: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\ReactionRollup', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(ReactionRollup::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new ReactionRollup(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\ReactionRollup', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SubIssuesSummary(array $payload): SubIssuesSummary + { + $properties = []; + $missingFields = []; + try { + $value = $payload['total'] ?? null; + + if ($value === null) { + $missingFields[] = 'total'; + goto after_total; + } + + $properties['total'] = $value; + + after_total: + + $value = $payload['completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'completed'; + goto after_completed; + } + + $properties['completed'] = $value; + + after_completed: + + $value = $payload['percent_completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'percent_completed'; + goto after_percentCompleted; + } + + $properties['percentCompleted'] = $value; + + after_percentCompleted: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(SubIssuesSummary::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new SubIssuesSummary(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️BasicError(array $payload): BasicError + { + $properties = []; + $missingFields = []; + try { + $value = $payload['message'] ?? null; + + if ($value === null) { + $properties['message'] = null; + goto after_message; + } + + $properties['message'] = $value; + + after_message: + + $value = $payload['documentation_url'] ?? null; + + if ($value === null) { + $properties['documentationUrl'] = null; + goto after_documentationUrl; + } + + $properties['documentationUrl'] = $value; + + after_documentationUrl: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $properties['url'] = null; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['status'] ?? null; + + if ($value === null) { + $properties['status'] = null; + goto after_status; + } + + $properties['status'] = $value; + + after_status: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\BasicError', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(BasicError::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new BasicError(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\BasicError', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️ScimError(array $payload): ScimError + { + $properties = []; + $missingFields = []; + try { + $value = $payload['message'] ?? null; + + if ($value === null) { + $properties['message'] = null; + goto after_message; + } + + $properties['message'] = $value; + + after_message: + + $value = $payload['documentation_url'] ?? null; + + if ($value === null) { + $properties['documentationUrl'] = null; + goto after_documentationUrl; + } + + $properties['documentationUrl'] = $value; + + after_documentationUrl: + + $value = $payload['detail'] ?? null; + + if ($value === null) { + $properties['detail'] = null; + goto after_detail; + } + + $properties['detail'] = $value; + + after_detail: + + $value = $payload['status'] ?? null; + + if ($value === null) { + $properties['status'] = null; + goto after_status; + } + + $properties['status'] = $value; + + after_status: + + $value = $payload['scim_type'] ?? null; + + if ($value === null) { + $properties['scimType'] = null; + goto after_scimType; + } + + $properties['scimType'] = $value; + + after_scimType: + + $value = $payload['schemas'] ?? null; + + if ($value === null) { + $properties['schemas'] = null; + goto after_schemas; + } + + $properties['schemas'] = $value; + + after_schemas: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\ScimError', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(ScimError::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new ScimError(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\ScimError', $exception, stack: $this->hydrationStack); + } + } + + private function serializeViaTypeMap(string $accessor, object $object, array $payloadToTypeMap): array + { + foreach ($payloadToTypeMap as $payloadType => [$valueType, $method]) { + if (is_a($object, $valueType)) { + return [$accessor => $payloadType] + $this->{$method}($object); + } + } + + throw new LogicException('No type mapped for object of class: ' . $object::class); + } + + public function serializeObject(object $object): mixed + { + return $this->serializeObjectOfType($object, $object::class); + } + + /** + * @param T $object + * @param class-string $className + * + * @template T + */ + public function serializeObjectOfType(object $object, string $className): mixed + { + try { + 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\Issue' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Issue($object), + 'ApiClients\Client\GitHub\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($object), + 'ApiClients\Client\GitHub\Schema\Milestone' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Milestone($object), + 'ApiClients\Client\GitHub\Schema\Issue\PullRequest' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Issue⚡️PullRequest($object), + 'ApiClients\Client\GitHub\Schema\Repository' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repository($object), + 'ApiClients\Client\GitHub\Schema\LicenseSimple' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️LicenseSimple($object), + 'ApiClients\Client\GitHub\Schema\Repository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repository⚡️Permissions($object), + 'ApiClients\Client\GitHub\Schema\Integration' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Integration($object), + 'ApiClients\Client\GitHub\Schema\Integration\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Integration⚡️Permissions($object), + 'ApiClients\Client\GitHub\Schema\ReactionRollup' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️ReactionRollup($object), + 'ApiClients\Client\GitHub\Schema\SubIssuesSummary' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SubIssuesSummary($object), + 'ApiClients\Client\GitHub\Schema\BasicError' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️BasicError($object), + 'ApiClients\Client\GitHub\Schema\ScimError' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️ScimError($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 SerializeArrayItems(...[]); + } + + return $serializer->serialize($value, $this); + } + + private function serializeValueRamsey⚡️Uuid⚡️UuidInterface(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new SerializeUuidToString(...[]); + } + + return $serializer->serialize($value, $this); + } + + private function serializeValueDateTime(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new SerializeDateTime(...[]); + } + + return $serializer->serialize($value, $this); + } + + private function serializeValueDateTimeImmutable(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new SerializeDateTime(...[]); + } + + return $serializer->serialize($value, $this); + } + + private function serializeValueDateTimeInterface(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new SerializeDateTime(...[]); + } + + return $serializer->serialize($value, $this); + } + + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Issue(mixed $object): mixed + { + assert($object instanceof Issue); + $result = []; + + $id = $object->id; + after_id: $result['id'] = $id; + + $nodeId = $object->nodeId; + after_nodeId: $result['node_id'] = $nodeId; + + $url = $object->url; + after_url: $result['url'] = $url; + + $repositoryUrl = $object->repositoryUrl; + after_repositoryUrl: $result['repository_url'] = $repositoryUrl; + + $labelsUrl = $object->labelsUrl; + after_labelsUrl: $result['labels_url'] = $labelsUrl; + + $commentsUrl = $object->commentsUrl; + after_commentsUrl: $result['comments_url'] = $commentsUrl; + + $eventsUrl = $object->eventsUrl; + after_eventsUrl: $result['events_url'] = $eventsUrl; + + $htmlUrl = $object->htmlUrl; + after_htmlUrl: $result['html_url'] = $htmlUrl; + + $number = $object->number; + after_number: $result['number'] = $number; + + $state = $object->state; + after_state: $result['state'] = $state; + + $stateReason = $object->stateReason; + + if ($stateReason === null) { + goto after_stateReason; + } + + after_stateReason: $result['state_reason'] = $stateReason; + + $title = $object->title; + after_title: $result['title'] = $title; + + $body = $object->body; + + if ($body === null) { + goto after_body; + } + + after_body: $result['body'] = $body; + + $user = $object->user; + + if ($user === null) { + goto after_user; + } + + $user = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($user); + after_user: $result['user'] = $user; + + $labels = $object->labels; + static $labelsSerializer0; + + if ($labelsSerializer0 === null) { + $labelsSerializer0 = new SerializeArrayItems(...[]); + } + + $labels = $labelsSerializer0->serialize($labels, $this); + after_labels: $result['labels'] = $labels; + + $assignee = $object->assignee; + + if ($assignee === null) { + goto after_assignee; + } + + $assignee = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($assignee); + after_assignee: $result['assignee'] = $assignee; + + $assignees = $object->assignees; + + if ($assignees === null) { + goto after_assignees; + } + + static $assigneesSerializer0; + + if ($assigneesSerializer0 === null) { + $assigneesSerializer0 = new SerializeArrayItems(...[]); + } + + $assignees = $assigneesSerializer0->serialize($assignees, $this); + after_assignees: $result['assignees'] = $assignees; + + $milestone = $object->milestone; + + if ($milestone === null) { + goto after_milestone; + } + + $milestone = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Milestone($milestone); + after_milestone: $result['milestone'] = $milestone; + + $locked = $object->locked; + after_locked: $result['locked'] = $locked; + + $activeLockReason = $object->activeLockReason; + + if ($activeLockReason === null) { + goto after_activeLockReason; + } + + after_activeLockReason: $result['active_lock_reason'] = $activeLockReason; + + $comments = $object->comments; + after_comments: $result['comments'] = $comments; + + $pullRequest = $object->pullRequest; + + if ($pullRequest === null) { + goto after_pullRequest; + } + + $pullRequest = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Issue⚡️PullRequest($pullRequest); + after_pullRequest: $result['pull_request'] = $pullRequest; + + $closedAt = $object->closedAt; + + if ($closedAt === null) { + goto after_closedAt; + } + + after_closedAt: $result['closed_at'] = $closedAt; + + $createdAt = $object->createdAt; + after_createdAt: $result['created_at'] = $createdAt; + + $updatedAt = $object->updatedAt; + after_updatedAt: $result['updated_at'] = $updatedAt; + + $draft = $object->draft; + + if ($draft === null) { + goto after_draft; + } + + after_draft: $result['draft'] = $draft; + + $closedBy = $object->closedBy; + + if ($closedBy === null) { + goto after_closedBy; + } + + $closedBy = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($closedBy); + after_closedBy: $result['closed_by'] = $closedBy; + + $bodyHtml = $object->bodyHtml; + + if ($bodyHtml === null) { + goto after_bodyHtml; + } + + after_bodyHtml: $result['body_html'] = $bodyHtml; + + $bodyText = $object->bodyText; + + if ($bodyText === null) { + goto after_bodyText; + } + + after_bodyText: $result['body_text'] = $bodyText; + + $timelineUrl = $object->timelineUrl; + + if ($timelineUrl === null) { + goto after_timelineUrl; + } + + after_timelineUrl: $result['timeline_url'] = $timelineUrl; + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + + $repository = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + $performedViaGithubApp = $object->performedViaGithubApp; + + if ($performedViaGithubApp === null) { + goto after_performedViaGithubApp; + } + + $performedViaGithubApp = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Integration($performedViaGithubApp); + after_performedViaGithubApp: $result['performed_via_github_app'] = $performedViaGithubApp; + + $authorAssociation = $object->authorAssociation; + after_authorAssociation: $result['author_association'] = $authorAssociation; + + $reactions = $object->reactions; + + if ($reactions === null) { + goto after_reactions; + } + + $reactions = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️ReactionRollup($reactions); + after_reactions: $result['reactions'] = $reactions; + + $subIssuesSummary = $object->subIssuesSummary; + + if ($subIssuesSummary === null) { + goto after_subIssuesSummary; + } + + $subIssuesSummary = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SubIssuesSummary($subIssuesSummary); + after_subIssuesSummary: $result['sub_issues_summary'] = $subIssuesSummary; + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser(mixed $object): mixed + { + assert($object instanceof SimpleUser); + $result = []; + + $name = $object->name; + + if ($name === null) { + goto after_name; + } + + after_name: $result['name'] = $name; + + $email = $object->email; + + if ($email === null) { + goto after_email; + } + + after_email: $result['email'] = $email; + + $login = $object->login; + after_login: $result['login'] = $login; + + $id = $object->id; + after_id: $result['id'] = $id; + + $nodeId = $object->nodeId; + after_nodeId: $result['node_id'] = $nodeId; + + $avatarUrl = $object->avatarUrl; + after_avatarUrl: $result['avatar_url'] = $avatarUrl; + + $gravatarId = $object->gravatarId; + + if ($gravatarId === null) { + goto after_gravatarId; + } + + after_gravatarId: $result['gravatar_id'] = $gravatarId; + + $url = $object->url; + after_url: $result['url'] = $url; + + $htmlUrl = $object->htmlUrl; + after_htmlUrl: $result['html_url'] = $htmlUrl; + + $followersUrl = $object->followersUrl; + after_followersUrl: $result['followers_url'] = $followersUrl; + + $followingUrl = $object->followingUrl; + after_followingUrl: $result['following_url'] = $followingUrl; + + $gistsUrl = $object->gistsUrl; + after_gistsUrl: $result['gists_url'] = $gistsUrl; + + $starredUrl = $object->starredUrl; + after_starredUrl: $result['starred_url'] = $starredUrl; + + $subscriptionsUrl = $object->subscriptionsUrl; + after_subscriptionsUrl: $result['subscriptions_url'] = $subscriptionsUrl; + + $organizationsUrl = $object->organizationsUrl; + after_organizationsUrl: $result['organizations_url'] = $organizationsUrl; + + $reposUrl = $object->reposUrl; + after_reposUrl: $result['repos_url'] = $reposUrl; + + $eventsUrl = $object->eventsUrl; + after_eventsUrl: $result['events_url'] = $eventsUrl; + + $receivedEventsUrl = $object->receivedEventsUrl; + after_receivedEventsUrl: $result['received_events_url'] = $receivedEventsUrl; + + $type = $object->type; + after_type: $result['type'] = $type; + + $siteAdmin = $object->siteAdmin; + after_siteAdmin: $result['site_admin'] = $siteAdmin; + + $starredAt = $object->starredAt; + + if ($starredAt === null) { + goto after_starredAt; + } + + after_starredAt: $result['starred_at'] = $starredAt; + + $userViewType = $object->userViewType; + + if ($userViewType === null) { + goto after_userViewType; + } + + after_userViewType: $result['user_view_type'] = $userViewType; + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Milestone(mixed $object): mixed + { + assert($object instanceof Milestone); + $result = []; + + $url = $object->url; + after_url: $result['url'] = $url; + + $htmlUrl = $object->htmlUrl; + after_htmlUrl: $result['html_url'] = $htmlUrl; + + $labelsUrl = $object->labelsUrl; + after_labelsUrl: $result['labels_url'] = $labelsUrl; + + $id = $object->id; + after_id: $result['id'] = $id; + + $nodeId = $object->nodeId; + after_nodeId: $result['node_id'] = $nodeId; + + $number = $object->number; + after_number: $result['number'] = $number; + + $state = $object->state; + after_state: $result['state'] = $state; + + $title = $object->title; + after_title: $result['title'] = $title; + + $description = $object->description; + + if ($description === null) { + goto after_description; + } + + after_description: $result['description'] = $description; + + $creator = $object->creator; + + if ($creator === null) { + goto after_creator; + } + + $creator = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($creator); + after_creator: $result['creator'] = $creator; + + $openIssues = $object->openIssues; + after_openIssues: $result['open_issues'] = $openIssues; + + $closedIssues = $object->closedIssues; + after_closedIssues: $result['closed_issues'] = $closedIssues; + + $createdAt = $object->createdAt; + after_createdAt: $result['created_at'] = $createdAt; + + $updatedAt = $object->updatedAt; + after_updatedAt: $result['updated_at'] = $updatedAt; + + $closedAt = $object->closedAt; + + if ($closedAt === null) { + goto after_closedAt; + } + + after_closedAt: $result['closed_at'] = $closedAt; + + $dueOn = $object->dueOn; + + if ($dueOn === null) { + goto after_dueOn; + } + + after_dueOn: $result['due_on'] = $dueOn; + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Issue⚡️PullRequest(mixed $object): mixed + { + assert($object instanceof PullRequest); + $result = []; + + $mergedAt = $object->mergedAt; + + if ($mergedAt === null) { + goto after_mergedAt; + } + + after_mergedAt: $result['merged_at'] = $mergedAt; + + $diffUrl = $object->diffUrl; + + if ($diffUrl === null) { + goto after_diffUrl; + } + + after_diffUrl: $result['diff_url'] = $diffUrl; + + $htmlUrl = $object->htmlUrl; + + if ($htmlUrl === null) { + goto after_htmlUrl; + } + + after_htmlUrl: $result['html_url'] = $htmlUrl; + + $patchUrl = $object->patchUrl; + + if ($patchUrl === null) { + goto after_patchUrl; + } + + after_patchUrl: $result['patch_url'] = $patchUrl; + + $url = $object->url; + + if ($url === null) { + goto after_url; + } + + after_url: $result['url'] = $url; + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repository(mixed $object): mixed + { + assert($object instanceof Repository); + $result = []; + + $id = $object->id; + after_id: $result['id'] = $id; + + $nodeId = $object->nodeId; + after_nodeId: $result['node_id'] = $nodeId; + + $name = $object->name; + after_name: $result['name'] = $name; + + $fullName = $object->fullName; + after_fullName: $result['full_name'] = $fullName; + + $license = $object->license; + + if ($license === null) { + goto after_license; + } + + $license = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️LicenseSimple($license); + after_license: $result['license'] = $license; + + $forks = $object->forks; + after_forks: $result['forks'] = $forks; + + $permissions = $object->permissions; + + if ($permissions === null) { + goto after_permissions; + } + + $permissions = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repository⚡️Permissions($permissions); + after_permissions: $result['permissions'] = $permissions; + + $owner = $object->owner; + $owner = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($owner); + after_owner: $result['owner'] = $owner; + + $private = $object->private; + after_private: $result['private'] = $private; + + $htmlUrl = $object->htmlUrl; + after_htmlUrl: $result['html_url'] = $htmlUrl; + + $description = $object->description; + + if ($description === null) { + goto after_description; + } + + after_description: $result['description'] = $description; + + $fork = $object->fork; + after_fork: $result['fork'] = $fork; + + $url = $object->url; + after_url: $result['url'] = $url; + + $archiveUrl = $object->archiveUrl; + after_archiveUrl: $result['archive_url'] = $archiveUrl; + + $assigneesUrl = $object->assigneesUrl; + after_assigneesUrl: $result['assignees_url'] = $assigneesUrl; + + $blobsUrl = $object->blobsUrl; + after_blobsUrl: $result['blobs_url'] = $blobsUrl; + + $branchesUrl = $object->branchesUrl; + after_branchesUrl: $result['branches_url'] = $branchesUrl; + + $collaboratorsUrl = $object->collaboratorsUrl; + after_collaboratorsUrl: $result['collaborators_url'] = $collaboratorsUrl; + + $commentsUrl = $object->commentsUrl; + after_commentsUrl: $result['comments_url'] = $commentsUrl; + + $commitsUrl = $object->commitsUrl; + after_commitsUrl: $result['commits_url'] = $commitsUrl; + + $compareUrl = $object->compareUrl; + after_compareUrl: $result['compare_url'] = $compareUrl; + + $contentsUrl = $object->contentsUrl; + after_contentsUrl: $result['contents_url'] = $contentsUrl; + + $contributorsUrl = $object->contributorsUrl; + after_contributorsUrl: $result['contributors_url'] = $contributorsUrl; + + $deploymentsUrl = $object->deploymentsUrl; + after_deploymentsUrl: $result['deployments_url'] = $deploymentsUrl; + + $downloadsUrl = $object->downloadsUrl; + after_downloadsUrl: $result['downloads_url'] = $downloadsUrl; + + $eventsUrl = $object->eventsUrl; + after_eventsUrl: $result['events_url'] = $eventsUrl; + + $forksUrl = $object->forksUrl; + after_forksUrl: $result['forks_url'] = $forksUrl; + + $gitCommitsUrl = $object->gitCommitsUrl; + after_gitCommitsUrl: $result['git_commits_url'] = $gitCommitsUrl; + + $gitRefsUrl = $object->gitRefsUrl; + after_gitRefsUrl: $result['git_refs_url'] = $gitRefsUrl; + + $gitTagsUrl = $object->gitTagsUrl; + after_gitTagsUrl: $result['git_tags_url'] = $gitTagsUrl; + + $gitUrl = $object->gitUrl; + after_gitUrl: $result['git_url'] = $gitUrl; + + $issueCommentUrl = $object->issueCommentUrl; + after_issueCommentUrl: $result['issue_comment_url'] = $issueCommentUrl; + + $issueEventsUrl = $object->issueEventsUrl; + after_issueEventsUrl: $result['issue_events_url'] = $issueEventsUrl; + + $issuesUrl = $object->issuesUrl; + after_issuesUrl: $result['issues_url'] = $issuesUrl; + + $keysUrl = $object->keysUrl; + after_keysUrl: $result['keys_url'] = $keysUrl; + + $labelsUrl = $object->labelsUrl; + after_labelsUrl: $result['labels_url'] = $labelsUrl; + + $languagesUrl = $object->languagesUrl; + after_languagesUrl: $result['languages_url'] = $languagesUrl; + + $mergesUrl = $object->mergesUrl; + after_mergesUrl: $result['merges_url'] = $mergesUrl; + + $milestonesUrl = $object->milestonesUrl; + after_milestonesUrl: $result['milestones_url'] = $milestonesUrl; + + $notificationsUrl = $object->notificationsUrl; + after_notificationsUrl: $result['notifications_url'] = $notificationsUrl; + + $pullsUrl = $object->pullsUrl; + after_pullsUrl: $result['pulls_url'] = $pullsUrl; + + $releasesUrl = $object->releasesUrl; + after_releasesUrl: $result['releases_url'] = $releasesUrl; + + $sshUrl = $object->sshUrl; + after_sshUrl: $result['ssh_url'] = $sshUrl; + + $stargazersUrl = $object->stargazersUrl; + after_stargazersUrl: $result['stargazers_url'] = $stargazersUrl; + + $statusesUrl = $object->statusesUrl; + after_statusesUrl: $result['statuses_url'] = $statusesUrl; + + $subscribersUrl = $object->subscribersUrl; + after_subscribersUrl: $result['subscribers_url'] = $subscribersUrl; + + $subscriptionUrl = $object->subscriptionUrl; + after_subscriptionUrl: $result['subscription_url'] = $subscriptionUrl; + + $tagsUrl = $object->tagsUrl; + after_tagsUrl: $result['tags_url'] = $tagsUrl; + + $teamsUrl = $object->teamsUrl; + after_teamsUrl: $result['teams_url'] = $teamsUrl; + + $treesUrl = $object->treesUrl; + after_treesUrl: $result['trees_url'] = $treesUrl; + + $cloneUrl = $object->cloneUrl; + after_cloneUrl: $result['clone_url'] = $cloneUrl; + + $mirrorUrl = $object->mirrorUrl; + + if ($mirrorUrl === null) { + goto after_mirrorUrl; + } + + after_mirrorUrl: $result['mirror_url'] = $mirrorUrl; + + $hooksUrl = $object->hooksUrl; + after_hooksUrl: $result['hooks_url'] = $hooksUrl; + + $svnUrl = $object->svnUrl; + after_svnUrl: $result['svn_url'] = $svnUrl; + + $homepage = $object->homepage; + + if ($homepage === null) { + goto after_homepage; + } + + after_homepage: $result['homepage'] = $homepage; + + $language = $object->language; + + if ($language === null) { + goto after_language; + } + + after_language: $result['language'] = $language; + + $forksCount = $object->forksCount; + after_forksCount: $result['forks_count'] = $forksCount; + + $stargazersCount = $object->stargazersCount; + after_stargazersCount: $result['stargazers_count'] = $stargazersCount; + + $watchersCount = $object->watchersCount; + after_watchersCount: $result['watchers_count'] = $watchersCount; + + $size = $object->size; + after_size: $result['size'] = $size; + + $defaultBranch = $object->defaultBranch; + after_defaultBranch: $result['default_branch'] = $defaultBranch; + + $openIssuesCount = $object->openIssuesCount; + after_openIssuesCount: $result['open_issues_count'] = $openIssuesCount; + + $isTemplate = $object->isTemplate; + + if ($isTemplate === null) { + goto after_isTemplate; + } + + after_isTemplate: $result['is_template'] = $isTemplate; + + $topics = $object->topics; + + if ($topics === null) { + goto after_topics; + } + + static $topicsSerializer0; + + if ($topicsSerializer0 === null) { + $topicsSerializer0 = new SerializeArrayItems(...[]); + } + + $topics = $topicsSerializer0->serialize($topics, $this); + after_topics: $result['topics'] = $topics; + + $hasIssues = $object->hasIssues; + after_hasIssues: $result['has_issues'] = $hasIssues; + + $hasProjects = $object->hasProjects; + after_hasProjects: $result['has_projects'] = $hasProjects; + + $hasWiki = $object->hasWiki; + after_hasWiki: $result['has_wiki'] = $hasWiki; + + $hasPages = $object->hasPages; + after_hasPages: $result['has_pages'] = $hasPages; + + $hasDownloads = $object->hasDownloads; + after_hasDownloads: $result['has_downloads'] = $hasDownloads; + + $hasDiscussions = $object->hasDiscussions; + + if ($hasDiscussions === null) { + goto after_hasDiscussions; + } + + after_hasDiscussions: $result['has_discussions'] = $hasDiscussions; + + $archived = $object->archived; + after_archived: $result['archived'] = $archived; + + $disabled = $object->disabled; + after_disabled: $result['disabled'] = $disabled; + + $visibility = $object->visibility; + + if ($visibility === null) { + goto after_visibility; + } + + after_visibility: $result['visibility'] = $visibility; + + $pushedAt = $object->pushedAt; + + if ($pushedAt === null) { + goto after_pushedAt; + } + + after_pushedAt: $result['pushed_at'] = $pushedAt; + + $createdAt = $object->createdAt; + + if ($createdAt === null) { + goto after_createdAt; + } + + after_createdAt: $result['created_at'] = $createdAt; + + $updatedAt = $object->updatedAt; + + if ($updatedAt === null) { + goto after_updatedAt; + } + + after_updatedAt: $result['updated_at'] = $updatedAt; + + $allowRebaseMerge = $object->allowRebaseMerge; + + if ($allowRebaseMerge === null) { + goto after_allowRebaseMerge; + } + + after_allowRebaseMerge: $result['allow_rebase_merge'] = $allowRebaseMerge; + + $tempCloneToken = $object->tempCloneToken; + + if ($tempCloneToken === null) { + goto after_tempCloneToken; + } + + after_tempCloneToken: $result['temp_clone_token'] = $tempCloneToken; + + $allowSquashMerge = $object->allowSquashMerge; + + if ($allowSquashMerge === null) { + goto after_allowSquashMerge; + } + + after_allowSquashMerge: $result['allow_squash_merge'] = $allowSquashMerge; + + $allowAutoMerge = $object->allowAutoMerge; + + if ($allowAutoMerge === null) { + goto after_allowAutoMerge; + } + + after_allowAutoMerge: $result['allow_auto_merge'] = $allowAutoMerge; + + $deleteBranchOnMerge = $object->deleteBranchOnMerge; + + if ($deleteBranchOnMerge === null) { + goto after_deleteBranchOnMerge; + } + + after_deleteBranchOnMerge: $result['delete_branch_on_merge'] = $deleteBranchOnMerge; + + $allowUpdateBranch = $object->allowUpdateBranch; + + if ($allowUpdateBranch === null) { + goto after_allowUpdateBranch; + } + + after_allowUpdateBranch: $result['allow_update_branch'] = $allowUpdateBranch; + + $useSquashPrTitleAsDefault = $object->useSquashPrTitleAsDefault; + + if ($useSquashPrTitleAsDefault === null) { + goto after_useSquashPrTitleAsDefault; + } + + after_useSquashPrTitleAsDefault: $result['use_squash_pr_title_as_default'] = $useSquashPrTitleAsDefault; + + $squashMergeCommitTitle = $object->squashMergeCommitTitle; + + if ($squashMergeCommitTitle === null) { + goto after_squashMergeCommitTitle; + } + + after_squashMergeCommitTitle: $result['squash_merge_commit_title'] = $squashMergeCommitTitle; + + $squashMergeCommitMessage = $object->squashMergeCommitMessage; + + if ($squashMergeCommitMessage === null) { + goto after_squashMergeCommitMessage; + } + + after_squashMergeCommitMessage: $result['squash_merge_commit_message'] = $squashMergeCommitMessage; + + $mergeCommitTitle = $object->mergeCommitTitle; + + if ($mergeCommitTitle === null) { + goto after_mergeCommitTitle; + } + + after_mergeCommitTitle: $result['merge_commit_title'] = $mergeCommitTitle; + + $mergeCommitMessage = $object->mergeCommitMessage; + + if ($mergeCommitMessage === null) { + goto after_mergeCommitMessage; + } + + after_mergeCommitMessage: $result['merge_commit_message'] = $mergeCommitMessage; + + $allowMergeCommit = $object->allowMergeCommit; + + if ($allowMergeCommit === null) { + goto after_allowMergeCommit; + } + + after_allowMergeCommit: $result['allow_merge_commit'] = $allowMergeCommit; + + $allowForking = $object->allowForking; + + if ($allowForking === null) { + goto after_allowForking; + } + + after_allowForking: $result['allow_forking'] = $allowForking; + + $webCommitSignoffRequired = $object->webCommitSignoffRequired; + + if ($webCommitSignoffRequired === null) { + goto after_webCommitSignoffRequired; + } + + after_webCommitSignoffRequired: $result['web_commit_signoff_required'] = $webCommitSignoffRequired; + + $openIssues = $object->openIssues; + after_openIssues: $result['open_issues'] = $openIssues; + + $watchers = $object->watchers; + after_watchers: $result['watchers'] = $watchers; + + $masterBranch = $object->masterBranch; + + if ($masterBranch === null) { + goto after_masterBranch; + } + + after_masterBranch: $result['master_branch'] = $masterBranch; + + $starredAt = $object->starredAt; + + if ($starredAt === null) { + goto after_starredAt; + } + + after_starredAt: $result['starred_at'] = $starredAt; + + $anonymousAccessEnabled = $object->anonymousAccessEnabled; + + if ($anonymousAccessEnabled === null) { + goto after_anonymousAccessEnabled; + } + + after_anonymousAccessEnabled: $result['anonymous_access_enabled'] = $anonymousAccessEnabled; + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️LicenseSimple(mixed $object): mixed + { + assert($object instanceof LicenseSimple); + $result = []; + + $key = $object->key; + after_key: $result['key'] = $key; + + $name = $object->name; + after_name: $result['name'] = $name; + + $url = $object->url; + + if ($url === null) { + goto after_url; + } + + after_url: $result['url'] = $url; + + $spdxId = $object->spdxId; + + if ($spdxId === null) { + goto after_spdxId; + } + + after_spdxId: $result['spdx_id'] = $spdxId; + + $nodeId = $object->nodeId; + after_nodeId: $result['node_id'] = $nodeId; + + $htmlUrl = $object->htmlUrl; + + if ($htmlUrl === null) { + goto after_htmlUrl; + } + + after_htmlUrl: $result['html_url'] = $htmlUrl; + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repository⚡️Permissions(mixed $object): mixed + { + assert($object instanceof Permissions); + $result = []; + + $admin = $object->admin; + after_admin: $result['admin'] = $admin; + + $pull = $object->pull; + after_pull: $result['pull'] = $pull; + + $triage = $object->triage; + + if ($triage === null) { + goto after_triage; + } + + after_triage: $result['triage'] = $triage; + + $push = $object->push; + after_push: $result['push'] = $push; + + $maintain = $object->maintain; + + if ($maintain === null) { + goto after_maintain; + } + + after_maintain: $result['maintain'] = $maintain; + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Integration(mixed $object): mixed + { + assert($object instanceof Integration); + $result = []; + + $id = $object->id; + after_id: $result['id'] = $id; + + $slug = $object->slug; + + if ($slug === null) { + goto after_slug; + } + + after_slug: $result['slug'] = $slug; + + $nodeId = $object->nodeId; + after_nodeId: $result['node_id'] = $nodeId; + + $clientId = $object->clientId; + + if ($clientId === null) { + goto after_clientId; + } + + after_clientId: $result['client_id'] = $clientId; + + $owner = $object->owner; + + if ($owner === null) { + goto after_owner; + } + + $owner = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($owner); + after_owner: $result['owner'] = $owner; + + $name = $object->name; + after_name: $result['name'] = $name; + + $description = $object->description; + + if ($description === null) { + goto after_description; + } + + after_description: $result['description'] = $description; + + $externalUrl = $object->externalUrl; + after_externalUrl: $result['external_url'] = $externalUrl; + + $htmlUrl = $object->htmlUrl; + after_htmlUrl: $result['html_url'] = $htmlUrl; + + $createdAt = $object->createdAt; + after_createdAt: $result['created_at'] = $createdAt; + + $updatedAt = $object->updatedAt; + after_updatedAt: $result['updated_at'] = $updatedAt; + + $permissions = $object->permissions; + $permissions = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Integration⚡️Permissions($permissions); + after_permissions: $result['permissions'] = $permissions; + + $events = $object->events; + static $eventsSerializer0; + + if ($eventsSerializer0 === null) { + $eventsSerializer0 = new SerializeArrayItems(...[]); + } + + $events = $eventsSerializer0->serialize($events, $this); + after_events: $result['events'] = $events; + + $installationsCount = $object->installationsCount; + + if ($installationsCount === null) { + goto after_installationsCount; + } + + after_installationsCount: $result['installations_count'] = $installationsCount; + + $clientSecret = $object->clientSecret; + + if ($clientSecret === null) { + goto after_clientSecret; + } + + after_clientSecret: $result['client_secret'] = $clientSecret; + + $webhookSecret = $object->webhookSecret; + + if ($webhookSecret === null) { + goto after_webhookSecret; + } + + after_webhookSecret: $result['webhook_secret'] = $webhookSecret; + + $pem = $object->pem; + + if ($pem === null) { + goto after_pem; + } + + after_pem: $result['pem'] = $pem; + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Integration⚡️Permissions(mixed $object): mixed + { + assert($object instanceof \ApiClients\Client\GitHub\Schema\Integration\Permissions); + $result = []; + + $issues = $object->issues; + + if ($issues === null) { + goto after_issues; + } + + after_issues: $result['issues'] = $issues; + + $checks = $object->checks; + + if ($checks === null) { + goto after_checks; + } + + after_checks: $result['checks'] = $checks; + + $metadata = $object->metadata; + + if ($metadata === null) { + goto after_metadata; + } + + after_metadata: $result['metadata'] = $metadata; + + $contents = $object->contents; + + if ($contents === null) { + goto after_contents; + } + + after_contents: $result['contents'] = $contents; + + $deployments = $object->deployments; + + if ($deployments === null) { + goto after_deployments; + } + + after_deployments: $result['deployments'] = $deployments; + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️ReactionRollup(mixed $object): mixed + { + assert($object instanceof ReactionRollup); + $result = []; + + $url = $object->url; + after_url: $result['url'] = $url; + + $totalCount = $object->totalCount; + after_totalCount: $result['total_count'] = $totalCount; + + $plusOne = $object->plusOne; + after_plusOne: $result['+1'] = $plusOne; + + $minOne = $object->minOne; + after_minOne: $result['-1'] = $minOne; + + $laugh = $object->laugh; + after_laugh: $result['laugh'] = $laugh; + + $confused = $object->confused; + after_confused: $result['confused'] = $confused; + + $heart = $object->heart; + after_heart: $result['heart'] = $heart; + + $hooray = $object->hooray; + after_hooray: $result['hooray'] = $hooray; + + $eyes = $object->eyes; + after_eyes: $result['eyes'] = $eyes; + + $rocket = $object->rocket; + after_rocket: $result['rocket'] = $rocket; + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SubIssuesSummary(mixed $object): mixed + { + assert($object instanceof SubIssuesSummary); + $result = []; + + $total = $object->total; + after_total: $result['total'] = $total; + + $completed = $object->completed; + after_completed: $result['completed'] = $completed; + + $percentCompleted = $object->percentCompleted; + after_percentCompleted: $result['percent_completed'] = $percentCompleted; + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️BasicError(mixed $object): mixed + { + assert($object instanceof BasicError); + $result = []; + + $message = $object->message; + + if ($message === null) { + goto after_message; + } + + after_message: $result['message'] = $message; + + $documentationUrl = $object->documentationUrl; + + if ($documentationUrl === null) { + goto after_documentationUrl; + } + + after_documentationUrl: $result['documentation_url'] = $documentationUrl; + + $url = $object->url; + + if ($url === null) { + goto after_url; + } + + after_url: $result['url'] = $url; + + $status = $object->status; + + if ($status === null) { + goto after_status; + } + + after_status: $result['status'] = $status; + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️ScimError(mixed $object): mixed + { + assert($object instanceof ScimError); + $result = []; + + $message = $object->message; + + if ($message === null) { + goto after_message; + } + + after_message: $result['message'] = $message; + + $documentationUrl = $object->documentationUrl; + + if ($documentationUrl === null) { + goto after_documentationUrl; + } + + after_documentationUrl: $result['documentation_url'] = $documentationUrl; + + $detail = $object->detail; + + if ($detail === null) { + goto after_detail; + } + + after_detail: $result['detail'] = $detail; + + $status = $object->status; + + if ($status === null) { + goto after_status; + } + + after_status: $result['status'] = $status; + + $scimType = $object->scimType; + + if ($scimType === null) { + goto after_scimType; + } + + after_scimType: $result['scim_type'] = $scimType; + + $schemas = $object->schemas; + + if ($schemas === null) { + goto after_schemas; + } + + static $schemasSerializer0; + + if ($schemasSerializer0 === null) { + $schemasSerializer0 = new SerializeArrayItems(...[]); + } + + $schemas = $schemasSerializer0->serialize($schemas, $this); + after_schemas: $result['schemas'] = $schemas; + + return $result; + } + + /** + * @param class-string $className + * @param iterable $payloads; + * + * @return IterableList + * + * @throws UnableToHydrateObject + * + * @template T + */ + public function hydrateObjects(string $className, iterable $payloads): IterableList + { + return new IterableList($this->doHydrateObjects($className, $payloads)); + } + + private function doHydrateObjects(string $className, iterable $payloads): Generator + { + foreach ($payloads as $index => $payload) { + yield $index => $this->hydrateObject($className, $payload); + } + } + + /** + * @param class-string $className + * @param iterable $payloads; + * + * @return IterableList + * + * @throws UnableToSerializeObject + * + * @template T + */ + public function serializeObjects(iterable $payloads): IterableList + { + return new IterableList($this->doSerializeObjects($payloads)); + } + + private function doSerializeObjects(iterable $objects): Generator + { + foreach ($objects as $index => $object) { + yield $index => $this->serializeObject($object); + } + } +} diff --git a/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/IssueNumber/SubIssues.php b/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/IssueNumber/SubIssues.php new file mode 100644 index 00000000000..21463533ddf --- /dev/null +++ b/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/IssueNumber/SubIssues.php @@ -0,0 +1,4345 @@ + $className + * + * @return T + * + * @template T of object + */ + public function hydrateObject(string $className, array $payload): object + { + return match ($className) { + 'ApiClients\Client\GitHub\Schema\BasicError' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️BasicError($payload), + 'ApiClients\Client\GitHub\Schema\Issue' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Issue($payload), + 'ApiClients\Client\GitHub\Schema\SimpleUser' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($payload), + 'ApiClients\Client\GitHub\Schema\Milestone' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Milestone($payload), + 'ApiClients\Client\GitHub\Schema\Issue\PullRequest' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Issue⚡️PullRequest($payload), + 'ApiClients\Client\GitHub\Schema\Repository' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repository($payload), + 'ApiClients\Client\GitHub\Schema\LicenseSimple' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️LicenseSimple($payload), + 'ApiClients\Client\GitHub\Schema\Repository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repository⚡️Permissions($payload), + 'ApiClients\Client\GitHub\Schema\Integration' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Integration($payload), + 'ApiClients\Client\GitHub\Schema\Integration\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Integration⚡️Permissions($payload), + 'ApiClients\Client\GitHub\Schema\ReactionRollup' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️ReactionRollup($payload), + 'ApiClients\Client\GitHub\Schema\SubIssuesSummary' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SubIssuesSummary($payload), + 'ApiClients\Client\GitHub\Schema\ValidationError' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️ValidationError($payload), + default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), + }; + } + + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️BasicError(array $payload): BasicError + { + $properties = []; + $missingFields = []; + try { + $value = $payload['message'] ?? null; + + if ($value === null) { + $properties['message'] = null; + goto after_message; + } + + $properties['message'] = $value; + + after_message: + + $value = $payload['documentation_url'] ?? null; + + if ($value === null) { + $properties['documentationUrl'] = null; + goto after_documentationUrl; + } + + $properties['documentationUrl'] = $value; + + after_documentationUrl: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $properties['url'] = null; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['status'] ?? null; + + if ($value === null) { + $properties['status'] = null; + goto after_status; + } + + $properties['status'] = $value; + + after_status: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\BasicError', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(BasicError::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new BasicError(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\BasicError', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Issue(array $payload): Issue + { + $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_nodeId; + } + + $properties['nodeId'] = $value; + + after_nodeId: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['repository_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'repository_url'; + goto after_repositoryUrl; + } + + $properties['repositoryUrl'] = $value; + + after_repositoryUrl: + + $value = $payload['labels_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'labels_url'; + goto after_labelsUrl; + } + + $properties['labelsUrl'] = $value; + + after_labelsUrl: + + $value = $payload['comments_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'comments_url'; + goto after_commentsUrl; + } + + $properties['commentsUrl'] = $value; + + after_commentsUrl: + + $value = $payload['events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'events_url'; + goto after_eventsUrl; + } + + $properties['eventsUrl'] = $value; + + after_eventsUrl: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_htmlUrl; + } + + $properties['htmlUrl'] = $value; + + after_htmlUrl: + + $value = $payload['number'] ?? null; + + if ($value === null) { + $missingFields[] = 'number'; + goto after_number; + } + + $properties['number'] = $value; + + after_number: + + $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) { + $properties['stateReason'] = null; + goto after_stateReason; + } + + $properties['stateReason'] = $value; + + after_stateReason: + + $value = $payload['title'] ?? null; + + if ($value === null) { + $missingFields[] = 'title'; + goto after_title; + } + + $properties['title'] = $value; + + after_title: + + $value = $payload['body'] ?? null; + + if ($value === null) { + $properties['body'] = null; + goto after_body; + } + + $properties['body'] = $value; + + after_body: + + $value = $payload['user'] ?? null; + + if ($value === null) { + $properties['user'] = null; + goto after_user; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'user'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['user'] = $value; + + after_user: + + $value = $payload['labels'] ?? null; + + if ($value === null) { + $missingFields[] = 'labels'; + goto after_labels; + } + + $properties['labels'] = $value; + + after_labels: + + $value = $payload['assignee'] ?? null; + + if ($value === null) { + $properties['assignee'] = null; + goto after_assignee; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'assignee'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['assignee'] = $value; + + after_assignee: + + $value = $payload['assignees'] ?? null; + + if ($value === null) { + $properties['assignees'] = null; + goto after_assignees; + } + + $properties['assignees'] = $value; + + after_assignees: + + $value = $payload['milestone'] ?? null; + + if ($value === null) { + $properties['milestone'] = null; + goto after_milestone; + } + + 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_milestone: + + $value = $payload['locked'] ?? null; + + if ($value === null) { + $missingFields[] = 'locked'; + goto after_locked; + } + + $properties['locked'] = $value; + + after_locked: + + $value = $payload['active_lock_reason'] ?? null; + + if ($value === null) { + $properties['activeLockReason'] = null; + goto after_activeLockReason; + } + + $properties['activeLockReason'] = $value; + + after_activeLockReason: + + $value = $payload['comments'] ?? null; + + if ($value === null) { + $missingFields[] = 'comments'; + goto after_comments; + } + + $properties['comments'] = $value; + + after_comments: + + $value = $payload['pull_request'] ?? null; + + if ($value === null) { + $properties['pullRequest'] = null; + goto after_pullRequest; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'pullRequest'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Issue⚡️PullRequest($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['pullRequest'] = $value; + + after_pullRequest: + + $value = $payload['closed_at'] ?? null; + + if ($value === null) { + $properties['closedAt'] = null; + goto after_closedAt; + } + + $properties['closedAt'] = $value; + + after_closedAt: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'created_at'; + goto after_createdAt; + } + + $properties['createdAt'] = $value; + + after_createdAt: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'updated_at'; + goto after_updatedAt; + } + + $properties['updatedAt'] = $value; + + after_updatedAt: + + $value = $payload['draft'] ?? null; + + if ($value === null) { + $properties['draft'] = null; + goto after_draft; + } + + $properties['draft'] = $value; + + after_draft: + + $value = $payload['closed_by'] ?? null; + + if ($value === null) { + $properties['closedBy'] = null; + goto after_closedBy; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'closedBy'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['closedBy'] = $value; + + after_closedBy: + + $value = $payload['body_html'] ?? null; + + if ($value === null) { + $properties['bodyHtml'] = null; + goto after_bodyHtml; + } + + $properties['bodyHtml'] = $value; + + after_bodyHtml: + + $value = $payload['body_text'] ?? null; + + if ($value === null) { + $properties['bodyText'] = null; + goto after_bodyText; + } + + $properties['bodyText'] = $value; + + after_bodyText: + + $value = $payload['timeline_url'] ?? null; + + if ($value === null) { + $properties['timelineUrl'] = null; + goto after_timelineUrl; + } + + $properties['timelineUrl'] = $value; + + after_timelineUrl: + + $value = $payload['repository'] ?? null; + + if ($value === null) { + $properties['repository'] = null; + 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['performed_via_github_app'] ?? null; + + if ($value === null) { + $properties['performedViaGithubApp'] = null; + goto after_performedViaGithubApp; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'performedViaGithubApp'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Integration($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['performedViaGithubApp'] = $value; + + after_performedViaGithubApp: + + $value = $payload['author_association'] ?? null; + + if ($value === null) { + $missingFields[] = 'author_association'; + goto after_authorAssociation; + } + + $properties['authorAssociation'] = $value; + + after_authorAssociation: + + $value = $payload['reactions'] ?? null; + + if ($value === null) { + $properties['reactions'] = null; + goto after_reactions; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'reactions'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️ReactionRollup($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['reactions'] = $value; + + after_reactions: + + $value = $payload['sub_issues_summary'] ?? null; + + if ($value === null) { + $properties['subIssuesSummary'] = null; + goto after_subIssuesSummary; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'subIssuesSummary'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SubIssuesSummary($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['subIssuesSummary'] = $value; + + after_subIssuesSummary: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\Issue', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(Issue::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new Issue(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\Issue', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser(array $payload): SimpleUser + { + $properties = []; + $missingFields = []; + try { + $value = $payload['name'] ?? null; + + if ($value === null) { + $properties['name'] = null; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['email'] ?? null; + + if ($value === null) { + $properties['email'] = null; + 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_nodeId; + } + + $properties['nodeId'] = $value; + + after_nodeId: + + $value = $payload['avatar_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'avatar_url'; + goto after_avatarUrl; + } + + $properties['avatarUrl'] = $value; + + after_avatarUrl: + + $value = $payload['gravatar_id'] ?? null; + + if ($value === null) { + $properties['gravatarId'] = null; + goto after_gravatarId; + } + + $properties['gravatarId'] = $value; + + after_gravatarId: + + $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_htmlUrl; + } + + $properties['htmlUrl'] = $value; + + after_htmlUrl: + + $value = $payload['followers_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'followers_url'; + goto after_followersUrl; + } + + $properties['followersUrl'] = $value; + + after_followersUrl: + + $value = $payload['following_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'following_url'; + goto after_followingUrl; + } + + $properties['followingUrl'] = $value; + + after_followingUrl: + + $value = $payload['gists_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'gists_url'; + goto after_gistsUrl; + } + + $properties['gistsUrl'] = $value; + + after_gistsUrl: + + $value = $payload['starred_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'starred_url'; + goto after_starredUrl; + } + + $properties['starredUrl'] = $value; + + after_starredUrl: + + $value = $payload['subscriptions_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscriptions_url'; + goto after_subscriptionsUrl; + } + + $properties['subscriptionsUrl'] = $value; + + after_subscriptionsUrl: + + $value = $payload['organizations_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'organizations_url'; + goto after_organizationsUrl; + } + + $properties['organizationsUrl'] = $value; + + after_organizationsUrl: + + $value = $payload['repos_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'repos_url'; + goto after_reposUrl; + } + + $properties['reposUrl'] = $value; + + after_reposUrl: + + $value = $payload['events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'events_url'; + goto after_eventsUrl; + } + + $properties['eventsUrl'] = $value; + + after_eventsUrl: + + $value = $payload['received_events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'received_events_url'; + goto after_receivedEventsUrl; + } + + $properties['receivedEventsUrl'] = $value; + + after_receivedEventsUrl: + + $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_siteAdmin; + } + + $properties['siteAdmin'] = $value; + + after_siteAdmin: + + $value = $payload['starred_at'] ?? null; + + if ($value === null) { + $properties['starredAt'] = null; + goto after_starredAt; + } + + $properties['starredAt'] = $value; + + after_starredAt: + + $value = $payload['user_view_type'] ?? null; + + if ($value === null) { + $properties['userViewType'] = null; + goto after_userViewType; + } + + $properties['userViewType'] = $value; + + after_userViewType: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUser', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(SimpleUser::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new SimpleUser(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUser', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Milestone(array $payload): Milestone + { + $properties = []; + $missingFields = []; + try { + $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_htmlUrl; + } + + $properties['htmlUrl'] = $value; + + after_htmlUrl: + + $value = $payload['labels_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'labels_url'; + goto after_labelsUrl; + } + + $properties['labelsUrl'] = $value; + + after_labelsUrl: + + $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_nodeId; + } + + $properties['nodeId'] = $value; + + after_nodeId: + + $value = $payload['number'] ?? null; + + if ($value === null) { + $missingFields[] = 'number'; + goto after_number; + } + + $properties['number'] = $value; + + after_number: + + $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['description'] ?? null; + + if ($value === null) { + $properties['description'] = null; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['creator'] ?? null; + + if ($value === null) { + $properties['creator'] = null; + 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['open_issues'] ?? null; + + if ($value === null) { + $missingFields[] = 'open_issues'; + goto after_openIssues; + } + + $properties['openIssues'] = $value; + + after_openIssues: + + $value = $payload['closed_issues'] ?? null; + + if ($value === null) { + $missingFields[] = 'closed_issues'; + goto after_closedIssues; + } + + $properties['closedIssues'] = $value; + + after_closedIssues: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'created_at'; + goto after_createdAt; + } + + $properties['createdAt'] = $value; + + after_createdAt: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'updated_at'; + goto after_updatedAt; + } + + $properties['updatedAt'] = $value; + + after_updatedAt: + + $value = $payload['closed_at'] ?? null; + + if ($value === null) { + $properties['closedAt'] = null; + goto after_closedAt; + } + + $properties['closedAt'] = $value; + + after_closedAt: + + $value = $payload['due_on'] ?? null; + + if ($value === null) { + $properties['dueOn'] = null; + goto after_dueOn; + } + + $properties['dueOn'] = $value; + + after_dueOn: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\Milestone', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(Milestone::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new Milestone(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\Milestone', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Issue⚡️PullRequest(array $payload): PullRequest + { + $properties = []; + $missingFields = []; + try { + $value = $payload['merged_at'] ?? null; + + if ($value === null) { + $properties['mergedAt'] = null; + goto after_mergedAt; + } + + $properties['mergedAt'] = $value; + + after_mergedAt: + + $value = $payload['diff_url'] ?? null; + + if ($value === null) { + $properties['diffUrl'] = null; + goto after_diffUrl; + } + + $properties['diffUrl'] = $value; + + after_diffUrl: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $properties['htmlUrl'] = null; + goto after_htmlUrl; + } + + $properties['htmlUrl'] = $value; + + after_htmlUrl: + + $value = $payload['patch_url'] ?? null; + + if ($value === null) { + $properties['patchUrl'] = null; + goto after_patchUrl; + } + + $properties['patchUrl'] = $value; + + after_patchUrl: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $properties['url'] = null; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\Issue\PullRequest', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(PullRequest::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new PullRequest(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\Issue\PullRequest', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repository(array $payload): 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_nodeId; + } + + $properties['nodeId'] = $value; + + after_nodeId: + + $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_fullName; + } + + $properties['fullName'] = $value; + + after_fullName: + + $value = $payload['license'] ?? null; + + if ($value === null) { + $properties['license'] = null; + goto after_license; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'license'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️LicenseSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['license'] = $value; + + after_license: + + $value = $payload['forks'] ?? null; + + if ($value === null) { + $missingFields[] = 'forks'; + goto after_forks; + } + + $properties['forks'] = $value; + + after_forks: + + $value = $payload['permissions'] ?? null; + + if ($value === null) { + $properties['permissions'] = null; + 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_htmlUrl; + } + + $properties['htmlUrl'] = $value; + + after_htmlUrl: + + $value = $payload['description'] ?? null; + + if ($value === null) { + $properties['description'] = null; + 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_archiveUrl; + } + + $properties['archiveUrl'] = $value; + + after_archiveUrl: + + $value = $payload['assignees_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'assignees_url'; + goto after_assigneesUrl; + } + + $properties['assigneesUrl'] = $value; + + after_assigneesUrl: + + $value = $payload['blobs_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'blobs_url'; + goto after_blobsUrl; + } + + $properties['blobsUrl'] = $value; + + after_blobsUrl: + + $value = $payload['branches_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'branches_url'; + goto after_branchesUrl; + } + + $properties['branchesUrl'] = $value; + + after_branchesUrl: + + $value = $payload['collaborators_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'collaborators_url'; + goto after_collaboratorsUrl; + } + + $properties['collaboratorsUrl'] = $value; + + after_collaboratorsUrl: + + $value = $payload['comments_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'comments_url'; + goto after_commentsUrl; + } + + $properties['commentsUrl'] = $value; + + after_commentsUrl: + + $value = $payload['commits_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'commits_url'; + goto after_commitsUrl; + } + + $properties['commitsUrl'] = $value; + + after_commitsUrl: + + $value = $payload['compare_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'compare_url'; + goto after_compareUrl; + } + + $properties['compareUrl'] = $value; + + after_compareUrl: + + $value = $payload['contents_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'contents_url'; + goto after_contentsUrl; + } + + $properties['contentsUrl'] = $value; + + after_contentsUrl: + + $value = $payload['contributors_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'contributors_url'; + goto after_contributorsUrl; + } + + $properties['contributorsUrl'] = $value; + + after_contributorsUrl: + + $value = $payload['deployments_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'deployments_url'; + goto after_deploymentsUrl; + } + + $properties['deploymentsUrl'] = $value; + + after_deploymentsUrl: + + $value = $payload['downloads_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'downloads_url'; + goto after_downloadsUrl; + } + + $properties['downloadsUrl'] = $value; + + after_downloadsUrl: + + $value = $payload['events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'events_url'; + goto after_eventsUrl; + } + + $properties['eventsUrl'] = $value; + + after_eventsUrl: + + $value = $payload['forks_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'forks_url'; + goto after_forksUrl; + } + + $properties['forksUrl'] = $value; + + after_forksUrl: + + $value = $payload['git_commits_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_commits_url'; + goto after_gitCommitsUrl; + } + + $properties['gitCommitsUrl'] = $value; + + after_gitCommitsUrl: + + $value = $payload['git_refs_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_refs_url'; + goto after_gitRefsUrl; + } + + $properties['gitRefsUrl'] = $value; + + after_gitRefsUrl: + + $value = $payload['git_tags_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_tags_url'; + goto after_gitTagsUrl; + } + + $properties['gitTagsUrl'] = $value; + + after_gitTagsUrl: + + $value = $payload['git_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_url'; + goto after_gitUrl; + } + + $properties['gitUrl'] = $value; + + after_gitUrl: + + $value = $payload['issue_comment_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issue_comment_url'; + goto after_issueCommentUrl; + } + + $properties['issueCommentUrl'] = $value; + + after_issueCommentUrl: + + $value = $payload['issue_events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issue_events_url'; + goto after_issueEventsUrl; + } + + $properties['issueEventsUrl'] = $value; + + after_issueEventsUrl: + + $value = $payload['issues_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issues_url'; + goto after_issuesUrl; + } + + $properties['issuesUrl'] = $value; + + after_issuesUrl: + + $value = $payload['keys_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'keys_url'; + goto after_keysUrl; + } + + $properties['keysUrl'] = $value; + + after_keysUrl: + + $value = $payload['labels_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'labels_url'; + goto after_labelsUrl; + } + + $properties['labelsUrl'] = $value; + + after_labelsUrl: + + $value = $payload['languages_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'languages_url'; + goto after_languagesUrl; + } + + $properties['languagesUrl'] = $value; + + after_languagesUrl: + + $value = $payload['merges_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'merges_url'; + goto after_mergesUrl; + } + + $properties['mergesUrl'] = $value; + + after_mergesUrl: + + $value = $payload['milestones_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'milestones_url'; + goto after_milestonesUrl; + } + + $properties['milestonesUrl'] = $value; + + after_milestonesUrl: + + $value = $payload['notifications_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'notifications_url'; + goto after_notificationsUrl; + } + + $properties['notificationsUrl'] = $value; + + after_notificationsUrl: + + $value = $payload['pulls_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'pulls_url'; + goto after_pullsUrl; + } + + $properties['pullsUrl'] = $value; + + after_pullsUrl: + + $value = $payload['releases_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'releases_url'; + goto after_releasesUrl; + } + + $properties['releasesUrl'] = $value; + + after_releasesUrl: + + $value = $payload['ssh_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'ssh_url'; + goto after_sshUrl; + } + + $properties['sshUrl'] = $value; + + after_sshUrl: + + $value = $payload['stargazers_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'stargazers_url'; + goto after_stargazersUrl; + } + + $properties['stargazersUrl'] = $value; + + after_stargazersUrl: + + $value = $payload['statuses_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'statuses_url'; + goto after_statusesUrl; + } + + $properties['statusesUrl'] = $value; + + after_statusesUrl: + + $value = $payload['subscribers_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscribers_url'; + goto after_subscribersUrl; + } + + $properties['subscribersUrl'] = $value; + + after_subscribersUrl: + + $value = $payload['subscription_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscription_url'; + goto after_subscriptionUrl; + } + + $properties['subscriptionUrl'] = $value; + + after_subscriptionUrl: + + $value = $payload['tags_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'tags_url'; + goto after_tagsUrl; + } + + $properties['tagsUrl'] = $value; + + after_tagsUrl: + + $value = $payload['teams_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'teams_url'; + goto after_teamsUrl; + } + + $properties['teamsUrl'] = $value; + + after_teamsUrl: + + $value = $payload['trees_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'trees_url'; + goto after_treesUrl; + } + + $properties['treesUrl'] = $value; + + after_treesUrl: + + $value = $payload['clone_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'clone_url'; + goto after_cloneUrl; + } + + $properties['cloneUrl'] = $value; + + after_cloneUrl: + + $value = $payload['mirror_url'] ?? null; + + if ($value === null) { + $properties['mirrorUrl'] = null; + goto after_mirrorUrl; + } + + $properties['mirrorUrl'] = $value; + + after_mirrorUrl: + + $value = $payload['hooks_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'hooks_url'; + goto after_hooksUrl; + } + + $properties['hooksUrl'] = $value; + + after_hooksUrl: + + $value = $payload['svn_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'svn_url'; + goto after_svnUrl; + } + + $properties['svnUrl'] = $value; + + after_svnUrl: + + $value = $payload['homepage'] ?? null; + + if ($value === null) { + $properties['homepage'] = null; + goto after_homepage; + } + + $properties['homepage'] = $value; + + after_homepage: + + $value = $payload['language'] ?? null; + + if ($value === null) { + $properties['language'] = null; + goto after_language; + } + + $properties['language'] = $value; + + after_language: + + $value = $payload['forks_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'forks_count'; + goto after_forksCount; + } + + $properties['forksCount'] = $value; + + after_forksCount: + + $value = $payload['stargazers_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'stargazers_count'; + goto after_stargazersCount; + } + + $properties['stargazersCount'] = $value; + + after_stargazersCount: + + $value = $payload['watchers_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'watchers_count'; + goto after_watchersCount; + } + + $properties['watchersCount'] = $value; + + after_watchersCount: + + $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_defaultBranch; + } + + $properties['defaultBranch'] = $value; + + after_defaultBranch: + + $value = $payload['open_issues_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'open_issues_count'; + goto after_openIssuesCount; + } + + $properties['openIssuesCount'] = $value; + + after_openIssuesCount: + + $value = $payload['is_template'] ?? null; + + if ($value === null) { + $properties['isTemplate'] = null; + goto after_isTemplate; + } + + $properties['isTemplate'] = $value; + + after_isTemplate: + + $value = $payload['topics'] ?? null; + + if ($value === null) { + $properties['topics'] = null; + goto after_topics; + } + + $properties['topics'] = $value; + + after_topics: + + $value = $payload['has_issues'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_issues'; + goto after_hasIssues; + } + + $properties['hasIssues'] = $value; + + after_hasIssues: + + $value = $payload['has_projects'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_projects'; + goto after_hasProjects; + } + + $properties['hasProjects'] = $value; + + after_hasProjects: + + $value = $payload['has_wiki'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_wiki'; + goto after_hasWiki; + } + + $properties['hasWiki'] = $value; + + after_hasWiki: + + $value = $payload['has_pages'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_pages'; + goto after_hasPages; + } + + $properties['hasPages'] = $value; + + after_hasPages: + + $value = $payload['has_downloads'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_downloads'; + goto after_hasDownloads; + } + + $properties['hasDownloads'] = $value; + + after_hasDownloads: + + $value = $payload['has_discussions'] ?? null; + + if ($value === null) { + $properties['hasDiscussions'] = null; + goto after_hasDiscussions; + } + + $properties['hasDiscussions'] = $value; + + after_hasDiscussions: + + $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) { + $properties['visibility'] = null; + goto after_visibility; + } + + $properties['visibility'] = $value; + + after_visibility: + + $value = $payload['pushed_at'] ?? null; + + if ($value === null) { + $properties['pushedAt'] = null; + goto after_pushedAt; + } + + $properties['pushedAt'] = $value; + + after_pushedAt: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $properties['createdAt'] = null; + goto after_createdAt; + } + + $properties['createdAt'] = $value; + + after_createdAt: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $properties['updatedAt'] = null; + goto after_updatedAt; + } + + $properties['updatedAt'] = $value; + + after_updatedAt: + + $value = $payload['allow_rebase_merge'] ?? null; + + if ($value === null) { + $properties['allowRebaseMerge'] = null; + goto after_allowRebaseMerge; + } + + $properties['allowRebaseMerge'] = $value; + + after_allowRebaseMerge: + + $value = $payload['temp_clone_token'] ?? null; + + if ($value === null) { + $properties['tempCloneToken'] = null; + goto after_tempCloneToken; + } + + $properties['tempCloneToken'] = $value; + + after_tempCloneToken: + + $value = $payload['allow_squash_merge'] ?? null; + + if ($value === null) { + $properties['allowSquashMerge'] = null; + goto after_allowSquashMerge; + } + + $properties['allowSquashMerge'] = $value; + + after_allowSquashMerge: + + $value = $payload['allow_auto_merge'] ?? null; + + if ($value === null) { + $properties['allowAutoMerge'] = null; + goto after_allowAutoMerge; + } + + $properties['allowAutoMerge'] = $value; + + after_allowAutoMerge: + + $value = $payload['delete_branch_on_merge'] ?? null; + + if ($value === null) { + $properties['deleteBranchOnMerge'] = null; + goto after_deleteBranchOnMerge; + } + + $properties['deleteBranchOnMerge'] = $value; + + after_deleteBranchOnMerge: + + $value = $payload['allow_update_branch'] ?? null; + + if ($value === null) { + $properties['allowUpdateBranch'] = null; + goto after_allowUpdateBranch; + } + + $properties['allowUpdateBranch'] = $value; + + after_allowUpdateBranch: + + $value = $payload['use_squash_pr_title_as_default'] ?? null; + + if ($value === null) { + $properties['useSquashPrTitleAsDefault'] = null; + goto after_useSquashPrTitleAsDefault; + } + + $properties['useSquashPrTitleAsDefault'] = $value; + + after_useSquashPrTitleAsDefault: + + $value = $payload['squash_merge_commit_title'] ?? null; + + if ($value === null) { + $properties['squashMergeCommitTitle'] = null; + goto after_squashMergeCommitTitle; + } + + $properties['squashMergeCommitTitle'] = $value; + + after_squashMergeCommitTitle: + + $value = $payload['squash_merge_commit_message'] ?? null; + + if ($value === null) { + $properties['squashMergeCommitMessage'] = null; + goto after_squashMergeCommitMessage; + } + + $properties['squashMergeCommitMessage'] = $value; + + after_squashMergeCommitMessage: + + $value = $payload['merge_commit_title'] ?? null; + + if ($value === null) { + $properties['mergeCommitTitle'] = null; + goto after_mergeCommitTitle; + } + + $properties['mergeCommitTitle'] = $value; + + after_mergeCommitTitle: + + $value = $payload['merge_commit_message'] ?? null; + + if ($value === null) { + $properties['mergeCommitMessage'] = null; + goto after_mergeCommitMessage; + } + + $properties['mergeCommitMessage'] = $value; + + after_mergeCommitMessage: + + $value = $payload['allow_merge_commit'] ?? null; + + if ($value === null) { + $properties['allowMergeCommit'] = null; + goto after_allowMergeCommit; + } + + $properties['allowMergeCommit'] = $value; + + after_allowMergeCommit: + + $value = $payload['allow_forking'] ?? null; + + if ($value === null) { + $properties['allowForking'] = null; + goto after_allowForking; + } + + $properties['allowForking'] = $value; + + after_allowForking: + + $value = $payload['web_commit_signoff_required'] ?? null; + + if ($value === null) { + $properties['webCommitSignoffRequired'] = null; + goto after_webCommitSignoffRequired; + } + + $properties['webCommitSignoffRequired'] = $value; + + after_webCommitSignoffRequired: + + $value = $payload['open_issues'] ?? null; + + if ($value === null) { + $missingFields[] = 'open_issues'; + goto after_openIssues; + } + + $properties['openIssues'] = $value; + + after_openIssues: + + $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) { + $properties['masterBranch'] = null; + goto after_masterBranch; + } + + $properties['masterBranch'] = $value; + + after_masterBranch: + + $value = $payload['starred_at'] ?? null; + + if ($value === null) { + $properties['starredAt'] = null; + goto after_starredAt; + } + + $properties['starredAt'] = $value; + + after_starredAt: + + $value = $payload['anonymous_access_enabled'] ?? null; + + if ($value === null) { + $properties['anonymousAccessEnabled'] = null; + goto after_anonymousAccessEnabled; + } + + $properties['anonymousAccessEnabled'] = $value; + + after_anonymousAccessEnabled: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\Repository', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(Repository::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new Repository(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\Repository', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️LicenseSimple(array $payload): LicenseSimple + { + $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['url'] ?? null; + + if ($value === null) { + $properties['url'] = null; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['spdx_id'] ?? null; + + if ($value === null) { + $properties['spdxId'] = null; + goto after_spdxId; + } + + $properties['spdxId'] = $value; + + after_spdxId: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_nodeId; + } + + $properties['nodeId'] = $value; + + after_nodeId: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $properties['htmlUrl'] = null; + goto after_htmlUrl; + } + + $properties['htmlUrl'] = $value; + + after_htmlUrl: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\LicenseSimple', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(LicenseSimple::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new LicenseSimple(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\LicenseSimple', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repository⚡️Permissions(array $payload): 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) { + $properties['triage'] = null; + 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) { + $properties['maintain'] = null; + 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(Permissions::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new Permissions(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\Repository\Permissions', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Integration(array $payload): Integration + { + $properties = []; + $missingFields = []; + try { + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['slug'] ?? null; + + if ($value === null) { + $properties['slug'] = null; + goto after_slug; + } + + $properties['slug'] = $value; + + after_slug: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_nodeId; + } + + $properties['nodeId'] = $value; + + after_nodeId: + + $value = $payload['client_id'] ?? null; + + if ($value === null) { + $properties['clientId'] = null; + goto after_clientId; + } + + $properties['clientId'] = $value; + + after_clientId: + + $value = $payload['owner'] ?? null; + + if ($value === null) { + $properties['owner'] = null; + 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['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['description'] ?? null; + + if ($value === null) { + $properties['description'] = null; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['external_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'external_url'; + goto after_externalUrl; + } + + $properties['externalUrl'] = $value; + + after_externalUrl: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_htmlUrl; + } + + $properties['htmlUrl'] = $value; + + after_htmlUrl: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'created_at'; + goto after_createdAt; + } + + $properties['createdAt'] = $value; + + after_createdAt: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'updated_at'; + goto after_updatedAt; + } + + $properties['updatedAt'] = $value; + + after_updatedAt: + + $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⚡️Integration⚡️Permissions($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['permissions'] = $value; + + after_permissions: + + $value = $payload['events'] ?? null; + + if ($value === null) { + $missingFields[] = 'events'; + goto after_events; + } + + $properties['events'] = $value; + + after_events: + + $value = $payload['installations_count'] ?? null; + + if ($value === null) { + $properties['installationsCount'] = null; + goto after_installationsCount; + } + + $properties['installationsCount'] = $value; + + after_installationsCount: + + $value = $payload['client_secret'] ?? null; + + if ($value === null) { + $properties['clientSecret'] = null; + goto after_clientSecret; + } + + $properties['clientSecret'] = $value; + + after_clientSecret: + + $value = $payload['webhook_secret'] ?? null; + + if ($value === null) { + $properties['webhookSecret'] = null; + goto after_webhookSecret; + } + + $properties['webhookSecret'] = $value; + + after_webhookSecret: + + $value = $payload['pem'] ?? null; + + if ($value === null) { + $properties['pem'] = null; + goto after_pem; + } + + $properties['pem'] = $value; + + after_pem: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\Integration', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(Integration::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new Integration(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\Integration', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Integration⚡️Permissions(array $payload): \ApiClients\Client\GitHub\Schema\Integration\Permissions + { + $properties = []; + $missingFields = []; + try { + $value = $payload['issues'] ?? null; + + if ($value === null) { + $properties['issues'] = null; + goto after_issues; + } + + $properties['issues'] = $value; + + after_issues: + + $value = $payload['checks'] ?? null; + + if ($value === null) { + $properties['checks'] = null; + goto after_checks; + } + + $properties['checks'] = $value; + + after_checks: + + $value = $payload['metadata'] ?? null; + + if ($value === null) { + $properties['metadata'] = null; + goto after_metadata; + } + + $properties['metadata'] = $value; + + after_metadata: + + $value = $payload['contents'] ?? null; + + if ($value === null) { + $properties['contents'] = null; + goto after_contents; + } + + $properties['contents'] = $value; + + after_contents: + + $value = $payload['deployments'] ?? null; + + if ($value === null) { + $properties['deployments'] = null; + goto after_deployments; + } + + $properties['deployments'] = $value; + + after_deployments: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\Integration\Permissions', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\GitHub\Schema\Integration\Permissions::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\GitHub\Schema\Integration\Permissions(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\Integration\Permissions', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️ReactionRollup(array $payload): ReactionRollup + { + $properties = []; + $missingFields = []; + try { + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['total_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'total_count'; + goto after_totalCount; + } + + $properties['totalCount'] = $value; + + after_totalCount: + + $value = $payload['+1'] ?? null; + + if ($value === null) { + $missingFields[] = '+1'; + goto after_plusOne; + } + + $properties['plusOne'] = $value; + + after_plusOne: + + $value = $payload['-1'] ?? null; + + if ($value === null) { + $missingFields[] = '-1'; + goto after_minOne; + } + + $properties['minOne'] = $value; + + after_minOne: + + $value = $payload['laugh'] ?? null; + + if ($value === null) { + $missingFields[] = 'laugh'; + goto after_laugh; + } + + $properties['laugh'] = $value; + + after_laugh: + + $value = $payload['confused'] ?? null; + + if ($value === null) { + $missingFields[] = 'confused'; + goto after_confused; + } + + $properties['confused'] = $value; + + after_confused: + + $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['eyes'] ?? null; + + if ($value === null) { + $missingFields[] = 'eyes'; + goto after_eyes; + } + + $properties['eyes'] = $value; + + after_eyes: + + $value = $payload['rocket'] ?? null; + + if ($value === null) { + $missingFields[] = 'rocket'; + goto after_rocket; + } + + $properties['rocket'] = $value; + + after_rocket: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\ReactionRollup', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(ReactionRollup::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new ReactionRollup(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\ReactionRollup', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SubIssuesSummary(array $payload): SubIssuesSummary + { + $properties = []; + $missingFields = []; + try { + $value = $payload['total'] ?? null; + + if ($value === null) { + $missingFields[] = 'total'; + goto after_total; + } + + $properties['total'] = $value; + + after_total: + + $value = $payload['completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'completed'; + goto after_completed; + } + + $properties['completed'] = $value; + + after_completed: + + $value = $payload['percent_completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'percent_completed'; + goto after_percentCompleted; + } + + $properties['percentCompleted'] = $value; + + after_percentCompleted: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(SubIssuesSummary::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new SubIssuesSummary(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️ValidationError(array $payload): ValidationError + { + $properties = []; + $missingFields = []; + try { + $value = $payload['message'] ?? null; + + if ($value === null) { + $missingFields[] = 'message'; + goto after_message; + } + + $properties['message'] = $value; + + after_message: + + $value = $payload['documentation_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'documentation_url'; + goto after_documentationUrl; + } + + $properties['documentationUrl'] = $value; + + after_documentationUrl: + + $value = $payload['errors'] ?? null; + + if ($value === null) { + $properties['errors'] = null; + goto after_errors; + } + + $properties['errors'] = $value; + + after_errors: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\ValidationError', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(ValidationError::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new ValidationError(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\ValidationError', $exception, stack: $this->hydrationStack); + } + } + + private function serializeViaTypeMap(string $accessor, object $object, array $payloadToTypeMap): array + { + foreach ($payloadToTypeMap as $payloadType => [$valueType, $method]) { + if (is_a($object, $valueType)) { + return [$accessor => $payloadType] + $this->{$method}($object); + } + } + + throw new LogicException('No type mapped for object of class: ' . $object::class); + } + + public function serializeObject(object $object): mixed + { + return $this->serializeObjectOfType($object, $object::class); + } + + /** + * @param T $object + * @param class-string $className + * + * @template T + */ + public function serializeObjectOfType(object $object, string $className): mixed + { + try { + 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\BasicError' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️BasicError($object), + 'ApiClients\Client\GitHub\Schema\Issue' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Issue($object), + 'ApiClients\Client\GitHub\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($object), + 'ApiClients\Client\GitHub\Schema\Milestone' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Milestone($object), + 'ApiClients\Client\GitHub\Schema\Issue\PullRequest' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Issue⚡️PullRequest($object), + 'ApiClients\Client\GitHub\Schema\Repository' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repository($object), + 'ApiClients\Client\GitHub\Schema\LicenseSimple' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️LicenseSimple($object), + 'ApiClients\Client\GitHub\Schema\Repository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repository⚡️Permissions($object), + 'ApiClients\Client\GitHub\Schema\Integration' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Integration($object), + 'ApiClients\Client\GitHub\Schema\Integration\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Integration⚡️Permissions($object), + 'ApiClients\Client\GitHub\Schema\ReactionRollup' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️ReactionRollup($object), + 'ApiClients\Client\GitHub\Schema\SubIssuesSummary' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SubIssuesSummary($object), + 'ApiClients\Client\GitHub\Schema\ValidationError' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️ValidationError($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 SerializeArrayItems(...[]); + } + + return $serializer->serialize($value, $this); + } + + private function serializeValueRamsey⚡️Uuid⚡️UuidInterface(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new SerializeUuidToString(...[]); + } + + return $serializer->serialize($value, $this); + } + + private function serializeValueDateTime(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new SerializeDateTime(...[]); + } + + return $serializer->serialize($value, $this); + } + + private function serializeValueDateTimeImmutable(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new SerializeDateTime(...[]); + } + + return $serializer->serialize($value, $this); + } + + private function serializeValueDateTimeInterface(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new SerializeDateTime(...[]); + } + + return $serializer->serialize($value, $this); + } + + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️BasicError(mixed $object): mixed + { + assert($object instanceof BasicError); + $result = []; + + $message = $object->message; + + if ($message === null) { + goto after_message; + } + + after_message: $result['message'] = $message; + + $documentationUrl = $object->documentationUrl; + + if ($documentationUrl === null) { + goto after_documentationUrl; + } + + after_documentationUrl: $result['documentation_url'] = $documentationUrl; + + $url = $object->url; + + if ($url === null) { + goto after_url; + } + + after_url: $result['url'] = $url; + + $status = $object->status; + + if ($status === null) { + goto after_status; + } + + after_status: $result['status'] = $status; + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Issue(mixed $object): mixed + { + assert($object instanceof Issue); + $result = []; + + $id = $object->id; + after_id: $result['id'] = $id; + + $nodeId = $object->nodeId; + after_nodeId: $result['node_id'] = $nodeId; + + $url = $object->url; + after_url: $result['url'] = $url; + + $repositoryUrl = $object->repositoryUrl; + after_repositoryUrl: $result['repository_url'] = $repositoryUrl; + + $labelsUrl = $object->labelsUrl; + after_labelsUrl: $result['labels_url'] = $labelsUrl; + + $commentsUrl = $object->commentsUrl; + after_commentsUrl: $result['comments_url'] = $commentsUrl; + + $eventsUrl = $object->eventsUrl; + after_eventsUrl: $result['events_url'] = $eventsUrl; + + $htmlUrl = $object->htmlUrl; + after_htmlUrl: $result['html_url'] = $htmlUrl; + + $number = $object->number; + after_number: $result['number'] = $number; + + $state = $object->state; + after_state: $result['state'] = $state; + + $stateReason = $object->stateReason; + + if ($stateReason === null) { + goto after_stateReason; + } + + after_stateReason: $result['state_reason'] = $stateReason; + + $title = $object->title; + after_title: $result['title'] = $title; + + $body = $object->body; + + if ($body === null) { + goto after_body; + } + + after_body: $result['body'] = $body; + + $user = $object->user; + + if ($user === null) { + goto after_user; + } + + $user = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($user); + after_user: $result['user'] = $user; + + $labels = $object->labels; + static $labelsSerializer0; + + if ($labelsSerializer0 === null) { + $labelsSerializer0 = new SerializeArrayItems(...[]); + } + + $labels = $labelsSerializer0->serialize($labels, $this); + after_labels: $result['labels'] = $labels; + + $assignee = $object->assignee; + + if ($assignee === null) { + goto after_assignee; + } + + $assignee = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($assignee); + after_assignee: $result['assignee'] = $assignee; + + $assignees = $object->assignees; + + if ($assignees === null) { + goto after_assignees; + } + + static $assigneesSerializer0; + + if ($assigneesSerializer0 === null) { + $assigneesSerializer0 = new SerializeArrayItems(...[]); + } + + $assignees = $assigneesSerializer0->serialize($assignees, $this); + after_assignees: $result['assignees'] = $assignees; + + $milestone = $object->milestone; + + if ($milestone === null) { + goto after_milestone; + } + + $milestone = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Milestone($milestone); + after_milestone: $result['milestone'] = $milestone; + + $locked = $object->locked; + after_locked: $result['locked'] = $locked; + + $activeLockReason = $object->activeLockReason; + + if ($activeLockReason === null) { + goto after_activeLockReason; + } + + after_activeLockReason: $result['active_lock_reason'] = $activeLockReason; + + $comments = $object->comments; + after_comments: $result['comments'] = $comments; + + $pullRequest = $object->pullRequest; + + if ($pullRequest === null) { + goto after_pullRequest; + } + + $pullRequest = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Issue⚡️PullRequest($pullRequest); + after_pullRequest: $result['pull_request'] = $pullRequest; + + $closedAt = $object->closedAt; + + if ($closedAt === null) { + goto after_closedAt; + } + + after_closedAt: $result['closed_at'] = $closedAt; + + $createdAt = $object->createdAt; + after_createdAt: $result['created_at'] = $createdAt; + + $updatedAt = $object->updatedAt; + after_updatedAt: $result['updated_at'] = $updatedAt; + + $draft = $object->draft; + + if ($draft === null) { + goto after_draft; + } + + after_draft: $result['draft'] = $draft; + + $closedBy = $object->closedBy; + + if ($closedBy === null) { + goto after_closedBy; + } + + $closedBy = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($closedBy); + after_closedBy: $result['closed_by'] = $closedBy; + + $bodyHtml = $object->bodyHtml; + + if ($bodyHtml === null) { + goto after_bodyHtml; + } + + after_bodyHtml: $result['body_html'] = $bodyHtml; + + $bodyText = $object->bodyText; + + if ($bodyText === null) { + goto after_bodyText; + } + + after_bodyText: $result['body_text'] = $bodyText; + + $timelineUrl = $object->timelineUrl; + + if ($timelineUrl === null) { + goto after_timelineUrl; + } + + after_timelineUrl: $result['timeline_url'] = $timelineUrl; + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + + $repository = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + $performedViaGithubApp = $object->performedViaGithubApp; + + if ($performedViaGithubApp === null) { + goto after_performedViaGithubApp; + } + + $performedViaGithubApp = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Integration($performedViaGithubApp); + after_performedViaGithubApp: $result['performed_via_github_app'] = $performedViaGithubApp; + + $authorAssociation = $object->authorAssociation; + after_authorAssociation: $result['author_association'] = $authorAssociation; + + $reactions = $object->reactions; + + if ($reactions === null) { + goto after_reactions; + } + + $reactions = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️ReactionRollup($reactions); + after_reactions: $result['reactions'] = $reactions; + + $subIssuesSummary = $object->subIssuesSummary; + + if ($subIssuesSummary === null) { + goto after_subIssuesSummary; + } + + $subIssuesSummary = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SubIssuesSummary($subIssuesSummary); + after_subIssuesSummary: $result['sub_issues_summary'] = $subIssuesSummary; + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser(mixed $object): mixed + { + assert($object instanceof SimpleUser); + $result = []; + + $name = $object->name; + + if ($name === null) { + goto after_name; + } + + after_name: $result['name'] = $name; + + $email = $object->email; + + if ($email === null) { + goto after_email; + } + + after_email: $result['email'] = $email; + + $login = $object->login; + after_login: $result['login'] = $login; + + $id = $object->id; + after_id: $result['id'] = $id; + + $nodeId = $object->nodeId; + after_nodeId: $result['node_id'] = $nodeId; + + $avatarUrl = $object->avatarUrl; + after_avatarUrl: $result['avatar_url'] = $avatarUrl; + + $gravatarId = $object->gravatarId; + + if ($gravatarId === null) { + goto after_gravatarId; + } + + after_gravatarId: $result['gravatar_id'] = $gravatarId; + + $url = $object->url; + after_url: $result['url'] = $url; + + $htmlUrl = $object->htmlUrl; + after_htmlUrl: $result['html_url'] = $htmlUrl; + + $followersUrl = $object->followersUrl; + after_followersUrl: $result['followers_url'] = $followersUrl; + + $followingUrl = $object->followingUrl; + after_followingUrl: $result['following_url'] = $followingUrl; + + $gistsUrl = $object->gistsUrl; + after_gistsUrl: $result['gists_url'] = $gistsUrl; + + $starredUrl = $object->starredUrl; + after_starredUrl: $result['starred_url'] = $starredUrl; + + $subscriptionsUrl = $object->subscriptionsUrl; + after_subscriptionsUrl: $result['subscriptions_url'] = $subscriptionsUrl; + + $organizationsUrl = $object->organizationsUrl; + after_organizationsUrl: $result['organizations_url'] = $organizationsUrl; + + $reposUrl = $object->reposUrl; + after_reposUrl: $result['repos_url'] = $reposUrl; + + $eventsUrl = $object->eventsUrl; + after_eventsUrl: $result['events_url'] = $eventsUrl; + + $receivedEventsUrl = $object->receivedEventsUrl; + after_receivedEventsUrl: $result['received_events_url'] = $receivedEventsUrl; + + $type = $object->type; + after_type: $result['type'] = $type; + + $siteAdmin = $object->siteAdmin; + after_siteAdmin: $result['site_admin'] = $siteAdmin; + + $starredAt = $object->starredAt; + + if ($starredAt === null) { + goto after_starredAt; + } + + after_starredAt: $result['starred_at'] = $starredAt; + + $userViewType = $object->userViewType; + + if ($userViewType === null) { + goto after_userViewType; + } + + after_userViewType: $result['user_view_type'] = $userViewType; + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Milestone(mixed $object): mixed + { + assert($object instanceof Milestone); + $result = []; + + $url = $object->url; + after_url: $result['url'] = $url; + + $htmlUrl = $object->htmlUrl; + after_htmlUrl: $result['html_url'] = $htmlUrl; + + $labelsUrl = $object->labelsUrl; + after_labelsUrl: $result['labels_url'] = $labelsUrl; + + $id = $object->id; + after_id: $result['id'] = $id; + + $nodeId = $object->nodeId; + after_nodeId: $result['node_id'] = $nodeId; + + $number = $object->number; + after_number: $result['number'] = $number; + + $state = $object->state; + after_state: $result['state'] = $state; + + $title = $object->title; + after_title: $result['title'] = $title; + + $description = $object->description; + + if ($description === null) { + goto after_description; + } + + after_description: $result['description'] = $description; + + $creator = $object->creator; + + if ($creator === null) { + goto after_creator; + } + + $creator = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($creator); + after_creator: $result['creator'] = $creator; + + $openIssues = $object->openIssues; + after_openIssues: $result['open_issues'] = $openIssues; + + $closedIssues = $object->closedIssues; + after_closedIssues: $result['closed_issues'] = $closedIssues; + + $createdAt = $object->createdAt; + after_createdAt: $result['created_at'] = $createdAt; + + $updatedAt = $object->updatedAt; + after_updatedAt: $result['updated_at'] = $updatedAt; + + $closedAt = $object->closedAt; + + if ($closedAt === null) { + goto after_closedAt; + } + + after_closedAt: $result['closed_at'] = $closedAt; + + $dueOn = $object->dueOn; + + if ($dueOn === null) { + goto after_dueOn; + } + + after_dueOn: $result['due_on'] = $dueOn; + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Issue⚡️PullRequest(mixed $object): mixed + { + assert($object instanceof PullRequest); + $result = []; + + $mergedAt = $object->mergedAt; + + if ($mergedAt === null) { + goto after_mergedAt; + } + + after_mergedAt: $result['merged_at'] = $mergedAt; + + $diffUrl = $object->diffUrl; + + if ($diffUrl === null) { + goto after_diffUrl; + } + + after_diffUrl: $result['diff_url'] = $diffUrl; + + $htmlUrl = $object->htmlUrl; + + if ($htmlUrl === null) { + goto after_htmlUrl; + } + + after_htmlUrl: $result['html_url'] = $htmlUrl; + + $patchUrl = $object->patchUrl; + + if ($patchUrl === null) { + goto after_patchUrl; + } + + after_patchUrl: $result['patch_url'] = $patchUrl; + + $url = $object->url; + + if ($url === null) { + goto after_url; + } + + after_url: $result['url'] = $url; + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repository(mixed $object): mixed + { + assert($object instanceof Repository); + $result = []; + + $id = $object->id; + after_id: $result['id'] = $id; + + $nodeId = $object->nodeId; + after_nodeId: $result['node_id'] = $nodeId; + + $name = $object->name; + after_name: $result['name'] = $name; + + $fullName = $object->fullName; + after_fullName: $result['full_name'] = $fullName; + + $license = $object->license; + + if ($license === null) { + goto after_license; + } + + $license = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️LicenseSimple($license); + after_license: $result['license'] = $license; + + $forks = $object->forks; + after_forks: $result['forks'] = $forks; + + $permissions = $object->permissions; + + if ($permissions === null) { + goto after_permissions; + } + + $permissions = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repository⚡️Permissions($permissions); + after_permissions: $result['permissions'] = $permissions; + + $owner = $object->owner; + $owner = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($owner); + after_owner: $result['owner'] = $owner; + + $private = $object->private; + after_private: $result['private'] = $private; + + $htmlUrl = $object->htmlUrl; + after_htmlUrl: $result['html_url'] = $htmlUrl; + + $description = $object->description; + + if ($description === null) { + goto after_description; + } + + after_description: $result['description'] = $description; + + $fork = $object->fork; + after_fork: $result['fork'] = $fork; + + $url = $object->url; + after_url: $result['url'] = $url; + + $archiveUrl = $object->archiveUrl; + after_archiveUrl: $result['archive_url'] = $archiveUrl; + + $assigneesUrl = $object->assigneesUrl; + after_assigneesUrl: $result['assignees_url'] = $assigneesUrl; + + $blobsUrl = $object->blobsUrl; + after_blobsUrl: $result['blobs_url'] = $blobsUrl; + + $branchesUrl = $object->branchesUrl; + after_branchesUrl: $result['branches_url'] = $branchesUrl; + + $collaboratorsUrl = $object->collaboratorsUrl; + after_collaboratorsUrl: $result['collaborators_url'] = $collaboratorsUrl; + + $commentsUrl = $object->commentsUrl; + after_commentsUrl: $result['comments_url'] = $commentsUrl; + + $commitsUrl = $object->commitsUrl; + after_commitsUrl: $result['commits_url'] = $commitsUrl; + + $compareUrl = $object->compareUrl; + after_compareUrl: $result['compare_url'] = $compareUrl; + + $contentsUrl = $object->contentsUrl; + after_contentsUrl: $result['contents_url'] = $contentsUrl; + + $contributorsUrl = $object->contributorsUrl; + after_contributorsUrl: $result['contributors_url'] = $contributorsUrl; + + $deploymentsUrl = $object->deploymentsUrl; + after_deploymentsUrl: $result['deployments_url'] = $deploymentsUrl; + + $downloadsUrl = $object->downloadsUrl; + after_downloadsUrl: $result['downloads_url'] = $downloadsUrl; + + $eventsUrl = $object->eventsUrl; + after_eventsUrl: $result['events_url'] = $eventsUrl; + + $forksUrl = $object->forksUrl; + after_forksUrl: $result['forks_url'] = $forksUrl; + + $gitCommitsUrl = $object->gitCommitsUrl; + after_gitCommitsUrl: $result['git_commits_url'] = $gitCommitsUrl; + + $gitRefsUrl = $object->gitRefsUrl; + after_gitRefsUrl: $result['git_refs_url'] = $gitRefsUrl; + + $gitTagsUrl = $object->gitTagsUrl; + after_gitTagsUrl: $result['git_tags_url'] = $gitTagsUrl; + + $gitUrl = $object->gitUrl; + after_gitUrl: $result['git_url'] = $gitUrl; + + $issueCommentUrl = $object->issueCommentUrl; + after_issueCommentUrl: $result['issue_comment_url'] = $issueCommentUrl; + + $issueEventsUrl = $object->issueEventsUrl; + after_issueEventsUrl: $result['issue_events_url'] = $issueEventsUrl; + + $issuesUrl = $object->issuesUrl; + after_issuesUrl: $result['issues_url'] = $issuesUrl; + + $keysUrl = $object->keysUrl; + after_keysUrl: $result['keys_url'] = $keysUrl; + + $labelsUrl = $object->labelsUrl; + after_labelsUrl: $result['labels_url'] = $labelsUrl; + + $languagesUrl = $object->languagesUrl; + after_languagesUrl: $result['languages_url'] = $languagesUrl; + + $mergesUrl = $object->mergesUrl; + after_mergesUrl: $result['merges_url'] = $mergesUrl; + + $milestonesUrl = $object->milestonesUrl; + after_milestonesUrl: $result['milestones_url'] = $milestonesUrl; + + $notificationsUrl = $object->notificationsUrl; + after_notificationsUrl: $result['notifications_url'] = $notificationsUrl; + + $pullsUrl = $object->pullsUrl; + after_pullsUrl: $result['pulls_url'] = $pullsUrl; + + $releasesUrl = $object->releasesUrl; + after_releasesUrl: $result['releases_url'] = $releasesUrl; + + $sshUrl = $object->sshUrl; + after_sshUrl: $result['ssh_url'] = $sshUrl; + + $stargazersUrl = $object->stargazersUrl; + after_stargazersUrl: $result['stargazers_url'] = $stargazersUrl; + + $statusesUrl = $object->statusesUrl; + after_statusesUrl: $result['statuses_url'] = $statusesUrl; + + $subscribersUrl = $object->subscribersUrl; + after_subscribersUrl: $result['subscribers_url'] = $subscribersUrl; + + $subscriptionUrl = $object->subscriptionUrl; + after_subscriptionUrl: $result['subscription_url'] = $subscriptionUrl; + + $tagsUrl = $object->tagsUrl; + after_tagsUrl: $result['tags_url'] = $tagsUrl; + + $teamsUrl = $object->teamsUrl; + after_teamsUrl: $result['teams_url'] = $teamsUrl; + + $treesUrl = $object->treesUrl; + after_treesUrl: $result['trees_url'] = $treesUrl; + + $cloneUrl = $object->cloneUrl; + after_cloneUrl: $result['clone_url'] = $cloneUrl; + + $mirrorUrl = $object->mirrorUrl; + + if ($mirrorUrl === null) { + goto after_mirrorUrl; + } + + after_mirrorUrl: $result['mirror_url'] = $mirrorUrl; + + $hooksUrl = $object->hooksUrl; + after_hooksUrl: $result['hooks_url'] = $hooksUrl; + + $svnUrl = $object->svnUrl; + after_svnUrl: $result['svn_url'] = $svnUrl; + + $homepage = $object->homepage; + + if ($homepage === null) { + goto after_homepage; + } + + after_homepage: $result['homepage'] = $homepage; + + $language = $object->language; + + if ($language === null) { + goto after_language; + } + + after_language: $result['language'] = $language; + + $forksCount = $object->forksCount; + after_forksCount: $result['forks_count'] = $forksCount; + + $stargazersCount = $object->stargazersCount; + after_stargazersCount: $result['stargazers_count'] = $stargazersCount; + + $watchersCount = $object->watchersCount; + after_watchersCount: $result['watchers_count'] = $watchersCount; + + $size = $object->size; + after_size: $result['size'] = $size; + + $defaultBranch = $object->defaultBranch; + after_defaultBranch: $result['default_branch'] = $defaultBranch; + + $openIssuesCount = $object->openIssuesCount; + after_openIssuesCount: $result['open_issues_count'] = $openIssuesCount; + + $isTemplate = $object->isTemplate; + + if ($isTemplate === null) { + goto after_isTemplate; + } + + after_isTemplate: $result['is_template'] = $isTemplate; + + $topics = $object->topics; + + if ($topics === null) { + goto after_topics; + } + + static $topicsSerializer0; + + if ($topicsSerializer0 === null) { + $topicsSerializer0 = new SerializeArrayItems(...[]); + } + + $topics = $topicsSerializer0->serialize($topics, $this); + after_topics: $result['topics'] = $topics; + + $hasIssues = $object->hasIssues; + after_hasIssues: $result['has_issues'] = $hasIssues; + + $hasProjects = $object->hasProjects; + after_hasProjects: $result['has_projects'] = $hasProjects; + + $hasWiki = $object->hasWiki; + after_hasWiki: $result['has_wiki'] = $hasWiki; + + $hasPages = $object->hasPages; + after_hasPages: $result['has_pages'] = $hasPages; + + $hasDownloads = $object->hasDownloads; + after_hasDownloads: $result['has_downloads'] = $hasDownloads; + + $hasDiscussions = $object->hasDiscussions; + + if ($hasDiscussions === null) { + goto after_hasDiscussions; + } + + after_hasDiscussions: $result['has_discussions'] = $hasDiscussions; + + $archived = $object->archived; + after_archived: $result['archived'] = $archived; + + $disabled = $object->disabled; + after_disabled: $result['disabled'] = $disabled; + + $visibility = $object->visibility; + + if ($visibility === null) { + goto after_visibility; + } + + after_visibility: $result['visibility'] = $visibility; + + $pushedAt = $object->pushedAt; + + if ($pushedAt === null) { + goto after_pushedAt; + } + + after_pushedAt: $result['pushed_at'] = $pushedAt; + + $createdAt = $object->createdAt; + + if ($createdAt === null) { + goto after_createdAt; + } + + after_createdAt: $result['created_at'] = $createdAt; + + $updatedAt = $object->updatedAt; + + if ($updatedAt === null) { + goto after_updatedAt; + } + + after_updatedAt: $result['updated_at'] = $updatedAt; + + $allowRebaseMerge = $object->allowRebaseMerge; + + if ($allowRebaseMerge === null) { + goto after_allowRebaseMerge; + } + + after_allowRebaseMerge: $result['allow_rebase_merge'] = $allowRebaseMerge; + + $tempCloneToken = $object->tempCloneToken; + + if ($tempCloneToken === null) { + goto after_tempCloneToken; + } + + after_tempCloneToken: $result['temp_clone_token'] = $tempCloneToken; + + $allowSquashMerge = $object->allowSquashMerge; + + if ($allowSquashMerge === null) { + goto after_allowSquashMerge; + } + + after_allowSquashMerge: $result['allow_squash_merge'] = $allowSquashMerge; + + $allowAutoMerge = $object->allowAutoMerge; + + if ($allowAutoMerge === null) { + goto after_allowAutoMerge; + } + + after_allowAutoMerge: $result['allow_auto_merge'] = $allowAutoMerge; + + $deleteBranchOnMerge = $object->deleteBranchOnMerge; + + if ($deleteBranchOnMerge === null) { + goto after_deleteBranchOnMerge; + } + + after_deleteBranchOnMerge: $result['delete_branch_on_merge'] = $deleteBranchOnMerge; + + $allowUpdateBranch = $object->allowUpdateBranch; + + if ($allowUpdateBranch === null) { + goto after_allowUpdateBranch; + } + + after_allowUpdateBranch: $result['allow_update_branch'] = $allowUpdateBranch; + + $useSquashPrTitleAsDefault = $object->useSquashPrTitleAsDefault; + + if ($useSquashPrTitleAsDefault === null) { + goto after_useSquashPrTitleAsDefault; + } + + after_useSquashPrTitleAsDefault: $result['use_squash_pr_title_as_default'] = $useSquashPrTitleAsDefault; + + $squashMergeCommitTitle = $object->squashMergeCommitTitle; + + if ($squashMergeCommitTitle === null) { + goto after_squashMergeCommitTitle; + } + + after_squashMergeCommitTitle: $result['squash_merge_commit_title'] = $squashMergeCommitTitle; + + $squashMergeCommitMessage = $object->squashMergeCommitMessage; + + if ($squashMergeCommitMessage === null) { + goto after_squashMergeCommitMessage; + } + + after_squashMergeCommitMessage: $result['squash_merge_commit_message'] = $squashMergeCommitMessage; + + $mergeCommitTitle = $object->mergeCommitTitle; + + if ($mergeCommitTitle === null) { + goto after_mergeCommitTitle; + } + + after_mergeCommitTitle: $result['merge_commit_title'] = $mergeCommitTitle; + + $mergeCommitMessage = $object->mergeCommitMessage; + + if ($mergeCommitMessage === null) { + goto after_mergeCommitMessage; + } + + after_mergeCommitMessage: $result['merge_commit_message'] = $mergeCommitMessage; + + $allowMergeCommit = $object->allowMergeCommit; + + if ($allowMergeCommit === null) { + goto after_allowMergeCommit; + } + + after_allowMergeCommit: $result['allow_merge_commit'] = $allowMergeCommit; + + $allowForking = $object->allowForking; + + if ($allowForking === null) { + goto after_allowForking; + } + + after_allowForking: $result['allow_forking'] = $allowForking; + + $webCommitSignoffRequired = $object->webCommitSignoffRequired; + + if ($webCommitSignoffRequired === null) { + goto after_webCommitSignoffRequired; + } + + after_webCommitSignoffRequired: $result['web_commit_signoff_required'] = $webCommitSignoffRequired; + + $openIssues = $object->openIssues; + after_openIssues: $result['open_issues'] = $openIssues; + + $watchers = $object->watchers; + after_watchers: $result['watchers'] = $watchers; + + $masterBranch = $object->masterBranch; + + if ($masterBranch === null) { + goto after_masterBranch; + } + + after_masterBranch: $result['master_branch'] = $masterBranch; + + $starredAt = $object->starredAt; + + if ($starredAt === null) { + goto after_starredAt; + } + + after_starredAt: $result['starred_at'] = $starredAt; + + $anonymousAccessEnabled = $object->anonymousAccessEnabled; + + if ($anonymousAccessEnabled === null) { + goto after_anonymousAccessEnabled; + } + + after_anonymousAccessEnabled: $result['anonymous_access_enabled'] = $anonymousAccessEnabled; + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️LicenseSimple(mixed $object): mixed + { + assert($object instanceof LicenseSimple); + $result = []; + + $key = $object->key; + after_key: $result['key'] = $key; + + $name = $object->name; + after_name: $result['name'] = $name; + + $url = $object->url; + + if ($url === null) { + goto after_url; + } + + after_url: $result['url'] = $url; + + $spdxId = $object->spdxId; + + if ($spdxId === null) { + goto after_spdxId; + } + + after_spdxId: $result['spdx_id'] = $spdxId; + + $nodeId = $object->nodeId; + after_nodeId: $result['node_id'] = $nodeId; + + $htmlUrl = $object->htmlUrl; + + if ($htmlUrl === null) { + goto after_htmlUrl; + } + + after_htmlUrl: $result['html_url'] = $htmlUrl; + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repository⚡️Permissions(mixed $object): mixed + { + assert($object instanceof Permissions); + $result = []; + + $admin = $object->admin; + after_admin: $result['admin'] = $admin; + + $pull = $object->pull; + after_pull: $result['pull'] = $pull; + + $triage = $object->triage; + + if ($triage === null) { + goto after_triage; + } + + after_triage: $result['triage'] = $triage; + + $push = $object->push; + after_push: $result['push'] = $push; + + $maintain = $object->maintain; + + if ($maintain === null) { + goto after_maintain; + } + + after_maintain: $result['maintain'] = $maintain; + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Integration(mixed $object): mixed + { + assert($object instanceof Integration); + $result = []; + + $id = $object->id; + after_id: $result['id'] = $id; + + $slug = $object->slug; + + if ($slug === null) { + goto after_slug; + } + + after_slug: $result['slug'] = $slug; + + $nodeId = $object->nodeId; + after_nodeId: $result['node_id'] = $nodeId; + + $clientId = $object->clientId; + + if ($clientId === null) { + goto after_clientId; + } + + after_clientId: $result['client_id'] = $clientId; + + $owner = $object->owner; + + if ($owner === null) { + goto after_owner; + } + + $owner = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($owner); + after_owner: $result['owner'] = $owner; + + $name = $object->name; + after_name: $result['name'] = $name; + + $description = $object->description; + + if ($description === null) { + goto after_description; + } + + after_description: $result['description'] = $description; + + $externalUrl = $object->externalUrl; + after_externalUrl: $result['external_url'] = $externalUrl; + + $htmlUrl = $object->htmlUrl; + after_htmlUrl: $result['html_url'] = $htmlUrl; + + $createdAt = $object->createdAt; + after_createdAt: $result['created_at'] = $createdAt; + + $updatedAt = $object->updatedAt; + after_updatedAt: $result['updated_at'] = $updatedAt; + + $permissions = $object->permissions; + $permissions = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Integration⚡️Permissions($permissions); + after_permissions: $result['permissions'] = $permissions; + + $events = $object->events; + static $eventsSerializer0; + + if ($eventsSerializer0 === null) { + $eventsSerializer0 = new SerializeArrayItems(...[]); + } + + $events = $eventsSerializer0->serialize($events, $this); + after_events: $result['events'] = $events; + + $installationsCount = $object->installationsCount; + + if ($installationsCount === null) { + goto after_installationsCount; + } + + after_installationsCount: $result['installations_count'] = $installationsCount; + + $clientSecret = $object->clientSecret; + + if ($clientSecret === null) { + goto after_clientSecret; + } + + after_clientSecret: $result['client_secret'] = $clientSecret; + + $webhookSecret = $object->webhookSecret; + + if ($webhookSecret === null) { + goto after_webhookSecret; + } + + after_webhookSecret: $result['webhook_secret'] = $webhookSecret; + + $pem = $object->pem; + + if ($pem === null) { + goto after_pem; + } + + after_pem: $result['pem'] = $pem; + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Integration⚡️Permissions(mixed $object): mixed + { + assert($object instanceof \ApiClients\Client\GitHub\Schema\Integration\Permissions); + $result = []; + + $issues = $object->issues; + + if ($issues === null) { + goto after_issues; + } + + after_issues: $result['issues'] = $issues; + + $checks = $object->checks; + + if ($checks === null) { + goto after_checks; + } + + after_checks: $result['checks'] = $checks; + + $metadata = $object->metadata; + + if ($metadata === null) { + goto after_metadata; + } + + after_metadata: $result['metadata'] = $metadata; + + $contents = $object->contents; + + if ($contents === null) { + goto after_contents; + } + + after_contents: $result['contents'] = $contents; + + $deployments = $object->deployments; + + if ($deployments === null) { + goto after_deployments; + } + + after_deployments: $result['deployments'] = $deployments; + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️ReactionRollup(mixed $object): mixed + { + assert($object instanceof ReactionRollup); + $result = []; + + $url = $object->url; + after_url: $result['url'] = $url; + + $totalCount = $object->totalCount; + after_totalCount: $result['total_count'] = $totalCount; + + $plusOne = $object->plusOne; + after_plusOne: $result['+1'] = $plusOne; + + $minOne = $object->minOne; + after_minOne: $result['-1'] = $minOne; + + $laugh = $object->laugh; + after_laugh: $result['laugh'] = $laugh; + + $confused = $object->confused; + after_confused: $result['confused'] = $confused; + + $heart = $object->heart; + after_heart: $result['heart'] = $heart; + + $hooray = $object->hooray; + after_hooray: $result['hooray'] = $hooray; + + $eyes = $object->eyes; + after_eyes: $result['eyes'] = $eyes; + + $rocket = $object->rocket; + after_rocket: $result['rocket'] = $rocket; + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SubIssuesSummary(mixed $object): mixed + { + assert($object instanceof SubIssuesSummary); + $result = []; + + $total = $object->total; + after_total: $result['total'] = $total; + + $completed = $object->completed; + after_completed: $result['completed'] = $completed; + + $percentCompleted = $object->percentCompleted; + after_percentCompleted: $result['percent_completed'] = $percentCompleted; + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️ValidationError(mixed $object): mixed + { + assert($object instanceof ValidationError); + $result = []; + + $message = $object->message; + after_message: $result['message'] = $message; + + $documentationUrl = $object->documentationUrl; + after_documentationUrl: $result['documentation_url'] = $documentationUrl; + + $errors = $object->errors; + + if ($errors === null) { + goto after_errors; + } + + static $errorsSerializer0; + + if ($errorsSerializer0 === null) { + $errorsSerializer0 = new SerializeArrayItems(...[]); + } + + $errors = $errorsSerializer0->serialize($errors, $this); + after_errors: $result['errors'] = $errors; + + return $result; + } + + /** + * @param class-string $className + * @param iterable $payloads; + * + * @return IterableList + * + * @throws UnableToHydrateObject + * + * @template T + */ + public function hydrateObjects(string $className, iterable $payloads): IterableList + { + return new IterableList($this->doHydrateObjects($className, $payloads)); + } + + private function doHydrateObjects(string $className, iterable $payloads): Generator + { + foreach ($payloads as $index => $payload) { + yield $index => $this->hydrateObject($className, $payload); + } + } + + /** + * @param class-string $className + * @param iterable $payloads; + * + * @return IterableList + * + * @throws UnableToSerializeObject + * + * @template T + */ + public function serializeObjects(iterable $payloads): IterableList + { + return new IterableList($this->doSerializeObjects($payloads)); + } + + private function doSerializeObjects(iterable $objects): Generator + { + foreach ($objects as $index => $object) { + yield $index => $this->serializeObject($object); + } + } +} diff --git a/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/IssueNumber/SubIssues/Priority.php b/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/IssueNumber/SubIssues/Priority.php new file mode 100644 index 00000000000..85adad397b8 --- /dev/null +++ b/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/IssueNumber/SubIssues/Priority.php @@ -0,0 +1,4432 @@ + $className + * + * @return T + * + * @template T of object + */ + public function hydrateObject(string $className, array $payload): object + { + return match ($className) { + 'ApiClients\Client\GitHub\Schema\Issue' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Issue($payload), + 'ApiClients\Client\GitHub\Schema\SimpleUser' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($payload), + 'ApiClients\Client\GitHub\Schema\Milestone' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Milestone($payload), + 'ApiClients\Client\GitHub\Schema\Issue\PullRequest' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Issue⚡️PullRequest($payload), + 'ApiClients\Client\GitHub\Schema\Repository' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repository($payload), + 'ApiClients\Client\GitHub\Schema\LicenseSimple' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️LicenseSimple($payload), + 'ApiClients\Client\GitHub\Schema\Repository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repository⚡️Permissions($payload), + 'ApiClients\Client\GitHub\Schema\Integration' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Integration($payload), + 'ApiClients\Client\GitHub\Schema\Integration\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Integration⚡️Permissions($payload), + 'ApiClients\Client\GitHub\Schema\ReactionRollup' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️ReactionRollup($payload), + 'ApiClients\Client\GitHub\Schema\SubIssuesSummary' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SubIssuesSummary($payload), + 'ApiClients\Client\GitHub\Schema\BasicError' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️BasicError($payload), + 'ApiClients\Client\GitHub\Schema\ValidationErrorSimple' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️ValidationErrorSimple($payload), + 'ApiClients\Client\GitHub\Schema\Operations\SecretScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Operations⚡️SecretScanning⚡️ListAlertsForEnterprise⚡️Response⚡️ApplicationJson⚡️ServiceUnavailable($payload), + default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), + }; + } + + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Issue(array $payload): Issue + { + $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_nodeId; + } + + $properties['nodeId'] = $value; + + after_nodeId: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['repository_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'repository_url'; + goto after_repositoryUrl; + } + + $properties['repositoryUrl'] = $value; + + after_repositoryUrl: + + $value = $payload['labels_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'labels_url'; + goto after_labelsUrl; + } + + $properties['labelsUrl'] = $value; + + after_labelsUrl: + + $value = $payload['comments_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'comments_url'; + goto after_commentsUrl; + } + + $properties['commentsUrl'] = $value; + + after_commentsUrl: + + $value = $payload['events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'events_url'; + goto after_eventsUrl; + } + + $properties['eventsUrl'] = $value; + + after_eventsUrl: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_htmlUrl; + } + + $properties['htmlUrl'] = $value; + + after_htmlUrl: + + $value = $payload['number'] ?? null; + + if ($value === null) { + $missingFields[] = 'number'; + goto after_number; + } + + $properties['number'] = $value; + + after_number: + + $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) { + $properties['stateReason'] = null; + goto after_stateReason; + } + + $properties['stateReason'] = $value; + + after_stateReason: + + $value = $payload['title'] ?? null; + + if ($value === null) { + $missingFields[] = 'title'; + goto after_title; + } + + $properties['title'] = $value; + + after_title: + + $value = $payload['body'] ?? null; + + if ($value === null) { + $properties['body'] = null; + goto after_body; + } + + $properties['body'] = $value; + + after_body: + + $value = $payload['user'] ?? null; + + if ($value === null) { + $properties['user'] = null; + goto after_user; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'user'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['user'] = $value; + + after_user: + + $value = $payload['labels'] ?? null; + + if ($value === null) { + $missingFields[] = 'labels'; + goto after_labels; + } + + $properties['labels'] = $value; + + after_labels: + + $value = $payload['assignee'] ?? null; + + if ($value === null) { + $properties['assignee'] = null; + goto after_assignee; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'assignee'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['assignee'] = $value; + + after_assignee: + + $value = $payload['assignees'] ?? null; + + if ($value === null) { + $properties['assignees'] = null; + goto after_assignees; + } + + $properties['assignees'] = $value; + + after_assignees: + + $value = $payload['milestone'] ?? null; + + if ($value === null) { + $properties['milestone'] = null; + goto after_milestone; + } + + 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_milestone: + + $value = $payload['locked'] ?? null; + + if ($value === null) { + $missingFields[] = 'locked'; + goto after_locked; + } + + $properties['locked'] = $value; + + after_locked: + + $value = $payload['active_lock_reason'] ?? null; + + if ($value === null) { + $properties['activeLockReason'] = null; + goto after_activeLockReason; + } + + $properties['activeLockReason'] = $value; + + after_activeLockReason: + + $value = $payload['comments'] ?? null; + + if ($value === null) { + $missingFields[] = 'comments'; + goto after_comments; + } + + $properties['comments'] = $value; + + after_comments: + + $value = $payload['pull_request'] ?? null; + + if ($value === null) { + $properties['pullRequest'] = null; + goto after_pullRequest; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'pullRequest'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Issue⚡️PullRequest($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['pullRequest'] = $value; + + after_pullRequest: + + $value = $payload['closed_at'] ?? null; + + if ($value === null) { + $properties['closedAt'] = null; + goto after_closedAt; + } + + $properties['closedAt'] = $value; + + after_closedAt: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'created_at'; + goto after_createdAt; + } + + $properties['createdAt'] = $value; + + after_createdAt: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'updated_at'; + goto after_updatedAt; + } + + $properties['updatedAt'] = $value; + + after_updatedAt: + + $value = $payload['draft'] ?? null; + + if ($value === null) { + $properties['draft'] = null; + goto after_draft; + } + + $properties['draft'] = $value; + + after_draft: + + $value = $payload['closed_by'] ?? null; + + if ($value === null) { + $properties['closedBy'] = null; + goto after_closedBy; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'closedBy'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['closedBy'] = $value; + + after_closedBy: + + $value = $payload['body_html'] ?? null; + + if ($value === null) { + $properties['bodyHtml'] = null; + goto after_bodyHtml; + } + + $properties['bodyHtml'] = $value; + + after_bodyHtml: + + $value = $payload['body_text'] ?? null; + + if ($value === null) { + $properties['bodyText'] = null; + goto after_bodyText; + } + + $properties['bodyText'] = $value; + + after_bodyText: + + $value = $payload['timeline_url'] ?? null; + + if ($value === null) { + $properties['timelineUrl'] = null; + goto after_timelineUrl; + } + + $properties['timelineUrl'] = $value; + + after_timelineUrl: + + $value = $payload['repository'] ?? null; + + if ($value === null) { + $properties['repository'] = null; + 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['performed_via_github_app'] ?? null; + + if ($value === null) { + $properties['performedViaGithubApp'] = null; + goto after_performedViaGithubApp; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'performedViaGithubApp'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Integration($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['performedViaGithubApp'] = $value; + + after_performedViaGithubApp: + + $value = $payload['author_association'] ?? null; + + if ($value === null) { + $missingFields[] = 'author_association'; + goto after_authorAssociation; + } + + $properties['authorAssociation'] = $value; + + after_authorAssociation: + + $value = $payload['reactions'] ?? null; + + if ($value === null) { + $properties['reactions'] = null; + goto after_reactions; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'reactions'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️ReactionRollup($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['reactions'] = $value; + + after_reactions: + + $value = $payload['sub_issues_summary'] ?? null; + + if ($value === null) { + $properties['subIssuesSummary'] = null; + goto after_subIssuesSummary; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'subIssuesSummary'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SubIssuesSummary($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['subIssuesSummary'] = $value; + + after_subIssuesSummary: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\Issue', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(Issue::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new Issue(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\Issue', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser(array $payload): SimpleUser + { + $properties = []; + $missingFields = []; + try { + $value = $payload['name'] ?? null; + + if ($value === null) { + $properties['name'] = null; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['email'] ?? null; + + if ($value === null) { + $properties['email'] = null; + 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_nodeId; + } + + $properties['nodeId'] = $value; + + after_nodeId: + + $value = $payload['avatar_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'avatar_url'; + goto after_avatarUrl; + } + + $properties['avatarUrl'] = $value; + + after_avatarUrl: + + $value = $payload['gravatar_id'] ?? null; + + if ($value === null) { + $properties['gravatarId'] = null; + goto after_gravatarId; + } + + $properties['gravatarId'] = $value; + + after_gravatarId: + + $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_htmlUrl; + } + + $properties['htmlUrl'] = $value; + + after_htmlUrl: + + $value = $payload['followers_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'followers_url'; + goto after_followersUrl; + } + + $properties['followersUrl'] = $value; + + after_followersUrl: + + $value = $payload['following_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'following_url'; + goto after_followingUrl; + } + + $properties['followingUrl'] = $value; + + after_followingUrl: + + $value = $payload['gists_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'gists_url'; + goto after_gistsUrl; + } + + $properties['gistsUrl'] = $value; + + after_gistsUrl: + + $value = $payload['starred_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'starred_url'; + goto after_starredUrl; + } + + $properties['starredUrl'] = $value; + + after_starredUrl: + + $value = $payload['subscriptions_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscriptions_url'; + goto after_subscriptionsUrl; + } + + $properties['subscriptionsUrl'] = $value; + + after_subscriptionsUrl: + + $value = $payload['organizations_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'organizations_url'; + goto after_organizationsUrl; + } + + $properties['organizationsUrl'] = $value; + + after_organizationsUrl: + + $value = $payload['repos_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'repos_url'; + goto after_reposUrl; + } + + $properties['reposUrl'] = $value; + + after_reposUrl: + + $value = $payload['events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'events_url'; + goto after_eventsUrl; + } + + $properties['eventsUrl'] = $value; + + after_eventsUrl: + + $value = $payload['received_events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'received_events_url'; + goto after_receivedEventsUrl; + } + + $properties['receivedEventsUrl'] = $value; + + after_receivedEventsUrl: + + $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_siteAdmin; + } + + $properties['siteAdmin'] = $value; + + after_siteAdmin: + + $value = $payload['starred_at'] ?? null; + + if ($value === null) { + $properties['starredAt'] = null; + goto after_starredAt; + } + + $properties['starredAt'] = $value; + + after_starredAt: + + $value = $payload['user_view_type'] ?? null; + + if ($value === null) { + $properties['userViewType'] = null; + goto after_userViewType; + } + + $properties['userViewType'] = $value; + + after_userViewType: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUser', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(SimpleUser::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new SimpleUser(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SimpleUser', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Milestone(array $payload): Milestone + { + $properties = []; + $missingFields = []; + try { + $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_htmlUrl; + } + + $properties['htmlUrl'] = $value; + + after_htmlUrl: + + $value = $payload['labels_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'labels_url'; + goto after_labelsUrl; + } + + $properties['labelsUrl'] = $value; + + after_labelsUrl: + + $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_nodeId; + } + + $properties['nodeId'] = $value; + + after_nodeId: + + $value = $payload['number'] ?? null; + + if ($value === null) { + $missingFields[] = 'number'; + goto after_number; + } + + $properties['number'] = $value; + + after_number: + + $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['description'] ?? null; + + if ($value === null) { + $properties['description'] = null; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['creator'] ?? null; + + if ($value === null) { + $properties['creator'] = null; + 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['open_issues'] ?? null; + + if ($value === null) { + $missingFields[] = 'open_issues'; + goto after_openIssues; + } + + $properties['openIssues'] = $value; + + after_openIssues: + + $value = $payload['closed_issues'] ?? null; + + if ($value === null) { + $missingFields[] = 'closed_issues'; + goto after_closedIssues; + } + + $properties['closedIssues'] = $value; + + after_closedIssues: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'created_at'; + goto after_createdAt; + } + + $properties['createdAt'] = $value; + + after_createdAt: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'updated_at'; + goto after_updatedAt; + } + + $properties['updatedAt'] = $value; + + after_updatedAt: + + $value = $payload['closed_at'] ?? null; + + if ($value === null) { + $properties['closedAt'] = null; + goto after_closedAt; + } + + $properties['closedAt'] = $value; + + after_closedAt: + + $value = $payload['due_on'] ?? null; + + if ($value === null) { + $properties['dueOn'] = null; + goto after_dueOn; + } + + $properties['dueOn'] = $value; + + after_dueOn: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\Milestone', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(Milestone::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new Milestone(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\Milestone', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Issue⚡️PullRequest(array $payload): PullRequest + { + $properties = []; + $missingFields = []; + try { + $value = $payload['merged_at'] ?? null; + + if ($value === null) { + $properties['mergedAt'] = null; + goto after_mergedAt; + } + + $properties['mergedAt'] = $value; + + after_mergedAt: + + $value = $payload['diff_url'] ?? null; + + if ($value === null) { + $properties['diffUrl'] = null; + goto after_diffUrl; + } + + $properties['diffUrl'] = $value; + + after_diffUrl: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $properties['htmlUrl'] = null; + goto after_htmlUrl; + } + + $properties['htmlUrl'] = $value; + + after_htmlUrl: + + $value = $payload['patch_url'] ?? null; + + if ($value === null) { + $properties['patchUrl'] = null; + goto after_patchUrl; + } + + $properties['patchUrl'] = $value; + + after_patchUrl: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $properties['url'] = null; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\Issue\PullRequest', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(PullRequest::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new PullRequest(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\Issue\PullRequest', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repository(array $payload): 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_nodeId; + } + + $properties['nodeId'] = $value; + + after_nodeId: + + $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_fullName; + } + + $properties['fullName'] = $value; + + after_fullName: + + $value = $payload['license'] ?? null; + + if ($value === null) { + $properties['license'] = null; + goto after_license; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'license'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️LicenseSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['license'] = $value; + + after_license: + + $value = $payload['forks'] ?? null; + + if ($value === null) { + $missingFields[] = 'forks'; + goto after_forks; + } + + $properties['forks'] = $value; + + after_forks: + + $value = $payload['permissions'] ?? null; + + if ($value === null) { + $properties['permissions'] = null; + 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_htmlUrl; + } + + $properties['htmlUrl'] = $value; + + after_htmlUrl: + + $value = $payload['description'] ?? null; + + if ($value === null) { + $properties['description'] = null; + 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_archiveUrl; + } + + $properties['archiveUrl'] = $value; + + after_archiveUrl: + + $value = $payload['assignees_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'assignees_url'; + goto after_assigneesUrl; + } + + $properties['assigneesUrl'] = $value; + + after_assigneesUrl: + + $value = $payload['blobs_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'blobs_url'; + goto after_blobsUrl; + } + + $properties['blobsUrl'] = $value; + + after_blobsUrl: + + $value = $payload['branches_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'branches_url'; + goto after_branchesUrl; + } + + $properties['branchesUrl'] = $value; + + after_branchesUrl: + + $value = $payload['collaborators_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'collaborators_url'; + goto after_collaboratorsUrl; + } + + $properties['collaboratorsUrl'] = $value; + + after_collaboratorsUrl: + + $value = $payload['comments_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'comments_url'; + goto after_commentsUrl; + } + + $properties['commentsUrl'] = $value; + + after_commentsUrl: + + $value = $payload['commits_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'commits_url'; + goto after_commitsUrl; + } + + $properties['commitsUrl'] = $value; + + after_commitsUrl: + + $value = $payload['compare_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'compare_url'; + goto after_compareUrl; + } + + $properties['compareUrl'] = $value; + + after_compareUrl: + + $value = $payload['contents_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'contents_url'; + goto after_contentsUrl; + } + + $properties['contentsUrl'] = $value; + + after_contentsUrl: + + $value = $payload['contributors_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'contributors_url'; + goto after_contributorsUrl; + } + + $properties['contributorsUrl'] = $value; + + after_contributorsUrl: + + $value = $payload['deployments_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'deployments_url'; + goto after_deploymentsUrl; + } + + $properties['deploymentsUrl'] = $value; + + after_deploymentsUrl: + + $value = $payload['downloads_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'downloads_url'; + goto after_downloadsUrl; + } + + $properties['downloadsUrl'] = $value; + + after_downloadsUrl: + + $value = $payload['events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'events_url'; + goto after_eventsUrl; + } + + $properties['eventsUrl'] = $value; + + after_eventsUrl: + + $value = $payload['forks_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'forks_url'; + goto after_forksUrl; + } + + $properties['forksUrl'] = $value; + + after_forksUrl: + + $value = $payload['git_commits_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_commits_url'; + goto after_gitCommitsUrl; + } + + $properties['gitCommitsUrl'] = $value; + + after_gitCommitsUrl: + + $value = $payload['git_refs_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_refs_url'; + goto after_gitRefsUrl; + } + + $properties['gitRefsUrl'] = $value; + + after_gitRefsUrl: + + $value = $payload['git_tags_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_tags_url'; + goto after_gitTagsUrl; + } + + $properties['gitTagsUrl'] = $value; + + after_gitTagsUrl: + + $value = $payload['git_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_url'; + goto after_gitUrl; + } + + $properties['gitUrl'] = $value; + + after_gitUrl: + + $value = $payload['issue_comment_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issue_comment_url'; + goto after_issueCommentUrl; + } + + $properties['issueCommentUrl'] = $value; + + after_issueCommentUrl: + + $value = $payload['issue_events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issue_events_url'; + goto after_issueEventsUrl; + } + + $properties['issueEventsUrl'] = $value; + + after_issueEventsUrl: + + $value = $payload['issues_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issues_url'; + goto after_issuesUrl; + } + + $properties['issuesUrl'] = $value; + + after_issuesUrl: + + $value = $payload['keys_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'keys_url'; + goto after_keysUrl; + } + + $properties['keysUrl'] = $value; + + after_keysUrl: + + $value = $payload['labels_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'labels_url'; + goto after_labelsUrl; + } + + $properties['labelsUrl'] = $value; + + after_labelsUrl: + + $value = $payload['languages_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'languages_url'; + goto after_languagesUrl; + } + + $properties['languagesUrl'] = $value; + + after_languagesUrl: + + $value = $payload['merges_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'merges_url'; + goto after_mergesUrl; + } + + $properties['mergesUrl'] = $value; + + after_mergesUrl: + + $value = $payload['milestones_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'milestones_url'; + goto after_milestonesUrl; + } + + $properties['milestonesUrl'] = $value; + + after_milestonesUrl: + + $value = $payload['notifications_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'notifications_url'; + goto after_notificationsUrl; + } + + $properties['notificationsUrl'] = $value; + + after_notificationsUrl: + + $value = $payload['pulls_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'pulls_url'; + goto after_pullsUrl; + } + + $properties['pullsUrl'] = $value; + + after_pullsUrl: + + $value = $payload['releases_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'releases_url'; + goto after_releasesUrl; + } + + $properties['releasesUrl'] = $value; + + after_releasesUrl: + + $value = $payload['ssh_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'ssh_url'; + goto after_sshUrl; + } + + $properties['sshUrl'] = $value; + + after_sshUrl: + + $value = $payload['stargazers_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'stargazers_url'; + goto after_stargazersUrl; + } + + $properties['stargazersUrl'] = $value; + + after_stargazersUrl: + + $value = $payload['statuses_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'statuses_url'; + goto after_statusesUrl; + } + + $properties['statusesUrl'] = $value; + + after_statusesUrl: + + $value = $payload['subscribers_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscribers_url'; + goto after_subscribersUrl; + } + + $properties['subscribersUrl'] = $value; + + after_subscribersUrl: + + $value = $payload['subscription_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscription_url'; + goto after_subscriptionUrl; + } + + $properties['subscriptionUrl'] = $value; + + after_subscriptionUrl: + + $value = $payload['tags_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'tags_url'; + goto after_tagsUrl; + } + + $properties['tagsUrl'] = $value; + + after_tagsUrl: + + $value = $payload['teams_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'teams_url'; + goto after_teamsUrl; + } + + $properties['teamsUrl'] = $value; + + after_teamsUrl: + + $value = $payload['trees_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'trees_url'; + goto after_treesUrl; + } + + $properties['treesUrl'] = $value; + + after_treesUrl: + + $value = $payload['clone_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'clone_url'; + goto after_cloneUrl; + } + + $properties['cloneUrl'] = $value; + + after_cloneUrl: + + $value = $payload['mirror_url'] ?? null; + + if ($value === null) { + $properties['mirrorUrl'] = null; + goto after_mirrorUrl; + } + + $properties['mirrorUrl'] = $value; + + after_mirrorUrl: + + $value = $payload['hooks_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'hooks_url'; + goto after_hooksUrl; + } + + $properties['hooksUrl'] = $value; + + after_hooksUrl: + + $value = $payload['svn_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'svn_url'; + goto after_svnUrl; + } + + $properties['svnUrl'] = $value; + + after_svnUrl: + + $value = $payload['homepage'] ?? null; + + if ($value === null) { + $properties['homepage'] = null; + goto after_homepage; + } + + $properties['homepage'] = $value; + + after_homepage: + + $value = $payload['language'] ?? null; + + if ($value === null) { + $properties['language'] = null; + goto after_language; + } + + $properties['language'] = $value; + + after_language: + + $value = $payload['forks_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'forks_count'; + goto after_forksCount; + } + + $properties['forksCount'] = $value; + + after_forksCount: + + $value = $payload['stargazers_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'stargazers_count'; + goto after_stargazersCount; + } + + $properties['stargazersCount'] = $value; + + after_stargazersCount: + + $value = $payload['watchers_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'watchers_count'; + goto after_watchersCount; + } + + $properties['watchersCount'] = $value; + + after_watchersCount: + + $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_defaultBranch; + } + + $properties['defaultBranch'] = $value; + + after_defaultBranch: + + $value = $payload['open_issues_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'open_issues_count'; + goto after_openIssuesCount; + } + + $properties['openIssuesCount'] = $value; + + after_openIssuesCount: + + $value = $payload['is_template'] ?? null; + + if ($value === null) { + $properties['isTemplate'] = null; + goto after_isTemplate; + } + + $properties['isTemplate'] = $value; + + after_isTemplate: + + $value = $payload['topics'] ?? null; + + if ($value === null) { + $properties['topics'] = null; + goto after_topics; + } + + $properties['topics'] = $value; + + after_topics: + + $value = $payload['has_issues'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_issues'; + goto after_hasIssues; + } + + $properties['hasIssues'] = $value; + + after_hasIssues: + + $value = $payload['has_projects'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_projects'; + goto after_hasProjects; + } + + $properties['hasProjects'] = $value; + + after_hasProjects: + + $value = $payload['has_wiki'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_wiki'; + goto after_hasWiki; + } + + $properties['hasWiki'] = $value; + + after_hasWiki: + + $value = $payload['has_pages'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_pages'; + goto after_hasPages; + } + + $properties['hasPages'] = $value; + + after_hasPages: + + $value = $payload['has_downloads'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_downloads'; + goto after_hasDownloads; + } + + $properties['hasDownloads'] = $value; + + after_hasDownloads: + + $value = $payload['has_discussions'] ?? null; + + if ($value === null) { + $properties['hasDiscussions'] = null; + goto after_hasDiscussions; + } + + $properties['hasDiscussions'] = $value; + + after_hasDiscussions: + + $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) { + $properties['visibility'] = null; + goto after_visibility; + } + + $properties['visibility'] = $value; + + after_visibility: + + $value = $payload['pushed_at'] ?? null; + + if ($value === null) { + $properties['pushedAt'] = null; + goto after_pushedAt; + } + + $properties['pushedAt'] = $value; + + after_pushedAt: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $properties['createdAt'] = null; + goto after_createdAt; + } + + $properties['createdAt'] = $value; + + after_createdAt: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $properties['updatedAt'] = null; + goto after_updatedAt; + } + + $properties['updatedAt'] = $value; + + after_updatedAt: + + $value = $payload['allow_rebase_merge'] ?? null; + + if ($value === null) { + $properties['allowRebaseMerge'] = null; + goto after_allowRebaseMerge; + } + + $properties['allowRebaseMerge'] = $value; + + after_allowRebaseMerge: + + $value = $payload['temp_clone_token'] ?? null; + + if ($value === null) { + $properties['tempCloneToken'] = null; + goto after_tempCloneToken; + } + + $properties['tempCloneToken'] = $value; + + after_tempCloneToken: + + $value = $payload['allow_squash_merge'] ?? null; + + if ($value === null) { + $properties['allowSquashMerge'] = null; + goto after_allowSquashMerge; + } + + $properties['allowSquashMerge'] = $value; + + after_allowSquashMerge: + + $value = $payload['allow_auto_merge'] ?? null; + + if ($value === null) { + $properties['allowAutoMerge'] = null; + goto after_allowAutoMerge; + } + + $properties['allowAutoMerge'] = $value; + + after_allowAutoMerge: + + $value = $payload['delete_branch_on_merge'] ?? null; + + if ($value === null) { + $properties['deleteBranchOnMerge'] = null; + goto after_deleteBranchOnMerge; + } + + $properties['deleteBranchOnMerge'] = $value; + + after_deleteBranchOnMerge: + + $value = $payload['allow_update_branch'] ?? null; + + if ($value === null) { + $properties['allowUpdateBranch'] = null; + goto after_allowUpdateBranch; + } + + $properties['allowUpdateBranch'] = $value; + + after_allowUpdateBranch: + + $value = $payload['use_squash_pr_title_as_default'] ?? null; + + if ($value === null) { + $properties['useSquashPrTitleAsDefault'] = null; + goto after_useSquashPrTitleAsDefault; + } + + $properties['useSquashPrTitleAsDefault'] = $value; + + after_useSquashPrTitleAsDefault: + + $value = $payload['squash_merge_commit_title'] ?? null; + + if ($value === null) { + $properties['squashMergeCommitTitle'] = null; + goto after_squashMergeCommitTitle; + } + + $properties['squashMergeCommitTitle'] = $value; + + after_squashMergeCommitTitle: + + $value = $payload['squash_merge_commit_message'] ?? null; + + if ($value === null) { + $properties['squashMergeCommitMessage'] = null; + goto after_squashMergeCommitMessage; + } + + $properties['squashMergeCommitMessage'] = $value; + + after_squashMergeCommitMessage: + + $value = $payload['merge_commit_title'] ?? null; + + if ($value === null) { + $properties['mergeCommitTitle'] = null; + goto after_mergeCommitTitle; + } + + $properties['mergeCommitTitle'] = $value; + + after_mergeCommitTitle: + + $value = $payload['merge_commit_message'] ?? null; + + if ($value === null) { + $properties['mergeCommitMessage'] = null; + goto after_mergeCommitMessage; + } + + $properties['mergeCommitMessage'] = $value; + + after_mergeCommitMessage: + + $value = $payload['allow_merge_commit'] ?? null; + + if ($value === null) { + $properties['allowMergeCommit'] = null; + goto after_allowMergeCommit; + } + + $properties['allowMergeCommit'] = $value; + + after_allowMergeCommit: + + $value = $payload['allow_forking'] ?? null; + + if ($value === null) { + $properties['allowForking'] = null; + goto after_allowForking; + } + + $properties['allowForking'] = $value; + + after_allowForking: + + $value = $payload['web_commit_signoff_required'] ?? null; + + if ($value === null) { + $properties['webCommitSignoffRequired'] = null; + goto after_webCommitSignoffRequired; + } + + $properties['webCommitSignoffRequired'] = $value; + + after_webCommitSignoffRequired: + + $value = $payload['open_issues'] ?? null; + + if ($value === null) { + $missingFields[] = 'open_issues'; + goto after_openIssues; + } + + $properties['openIssues'] = $value; + + after_openIssues: + + $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) { + $properties['masterBranch'] = null; + goto after_masterBranch; + } + + $properties['masterBranch'] = $value; + + after_masterBranch: + + $value = $payload['starred_at'] ?? null; + + if ($value === null) { + $properties['starredAt'] = null; + goto after_starredAt; + } + + $properties['starredAt'] = $value; + + after_starredAt: + + $value = $payload['anonymous_access_enabled'] ?? null; + + if ($value === null) { + $properties['anonymousAccessEnabled'] = null; + goto after_anonymousAccessEnabled; + } + + $properties['anonymousAccessEnabled'] = $value; + + after_anonymousAccessEnabled: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\Repository', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(Repository::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new Repository(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\Repository', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️LicenseSimple(array $payload): LicenseSimple + { + $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['url'] ?? null; + + if ($value === null) { + $properties['url'] = null; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['spdx_id'] ?? null; + + if ($value === null) { + $properties['spdxId'] = null; + goto after_spdxId; + } + + $properties['spdxId'] = $value; + + after_spdxId: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_nodeId; + } + + $properties['nodeId'] = $value; + + after_nodeId: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $properties['htmlUrl'] = null; + goto after_htmlUrl; + } + + $properties['htmlUrl'] = $value; + + after_htmlUrl: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\LicenseSimple', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(LicenseSimple::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new LicenseSimple(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\LicenseSimple', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repository⚡️Permissions(array $payload): 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) { + $properties['triage'] = null; + 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) { + $properties['maintain'] = null; + 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(Permissions::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new Permissions(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\Repository\Permissions', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Integration(array $payload): Integration + { + $properties = []; + $missingFields = []; + try { + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['slug'] ?? null; + + if ($value === null) { + $properties['slug'] = null; + goto after_slug; + } + + $properties['slug'] = $value; + + after_slug: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_nodeId; + } + + $properties['nodeId'] = $value; + + after_nodeId: + + $value = $payload['client_id'] ?? null; + + if ($value === null) { + $properties['clientId'] = null; + goto after_clientId; + } + + $properties['clientId'] = $value; + + after_clientId: + + $value = $payload['owner'] ?? null; + + if ($value === null) { + $properties['owner'] = null; + 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['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['description'] ?? null; + + if ($value === null) { + $properties['description'] = null; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['external_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'external_url'; + goto after_externalUrl; + } + + $properties['externalUrl'] = $value; + + after_externalUrl: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_htmlUrl; + } + + $properties['htmlUrl'] = $value; + + after_htmlUrl: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'created_at'; + goto after_createdAt; + } + + $properties['createdAt'] = $value; + + after_createdAt: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'updated_at'; + goto after_updatedAt; + } + + $properties['updatedAt'] = $value; + + after_updatedAt: + + $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⚡️Integration⚡️Permissions($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['permissions'] = $value; + + after_permissions: + + $value = $payload['events'] ?? null; + + if ($value === null) { + $missingFields[] = 'events'; + goto after_events; + } + + $properties['events'] = $value; + + after_events: + + $value = $payload['installations_count'] ?? null; + + if ($value === null) { + $properties['installationsCount'] = null; + goto after_installationsCount; + } + + $properties['installationsCount'] = $value; + + after_installationsCount: + + $value = $payload['client_secret'] ?? null; + + if ($value === null) { + $properties['clientSecret'] = null; + goto after_clientSecret; + } + + $properties['clientSecret'] = $value; + + after_clientSecret: + + $value = $payload['webhook_secret'] ?? null; + + if ($value === null) { + $properties['webhookSecret'] = null; + goto after_webhookSecret; + } + + $properties['webhookSecret'] = $value; + + after_webhookSecret: + + $value = $payload['pem'] ?? null; + + if ($value === null) { + $properties['pem'] = null; + goto after_pem; + } + + $properties['pem'] = $value; + + after_pem: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\Integration', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(Integration::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new Integration(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\Integration', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Integration⚡️Permissions(array $payload): \ApiClients\Client\GitHub\Schema\Integration\Permissions + { + $properties = []; + $missingFields = []; + try { + $value = $payload['issues'] ?? null; + + if ($value === null) { + $properties['issues'] = null; + goto after_issues; + } + + $properties['issues'] = $value; + + after_issues: + + $value = $payload['checks'] ?? null; + + if ($value === null) { + $properties['checks'] = null; + goto after_checks; + } + + $properties['checks'] = $value; + + after_checks: + + $value = $payload['metadata'] ?? null; + + if ($value === null) { + $properties['metadata'] = null; + goto after_metadata; + } + + $properties['metadata'] = $value; + + after_metadata: + + $value = $payload['contents'] ?? null; + + if ($value === null) { + $properties['contents'] = null; + goto after_contents; + } + + $properties['contents'] = $value; + + after_contents: + + $value = $payload['deployments'] ?? null; + + if ($value === null) { + $properties['deployments'] = null; + goto after_deployments; + } + + $properties['deployments'] = $value; + + after_deployments: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\Integration\Permissions', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\GitHub\Schema\Integration\Permissions::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\GitHub\Schema\Integration\Permissions(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\Integration\Permissions', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️ReactionRollup(array $payload): ReactionRollup + { + $properties = []; + $missingFields = []; + try { + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['total_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'total_count'; + goto after_totalCount; + } + + $properties['totalCount'] = $value; + + after_totalCount: + + $value = $payload['+1'] ?? null; + + if ($value === null) { + $missingFields[] = '+1'; + goto after_plusOne; + } + + $properties['plusOne'] = $value; + + after_plusOne: + + $value = $payload['-1'] ?? null; + + if ($value === null) { + $missingFields[] = '-1'; + goto after_minOne; + } + + $properties['minOne'] = $value; + + after_minOne: + + $value = $payload['laugh'] ?? null; + + if ($value === null) { + $missingFields[] = 'laugh'; + goto after_laugh; + } + + $properties['laugh'] = $value; + + after_laugh: + + $value = $payload['confused'] ?? null; + + if ($value === null) { + $missingFields[] = 'confused'; + goto after_confused; + } + + $properties['confused'] = $value; + + after_confused: + + $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['eyes'] ?? null; + + if ($value === null) { + $missingFields[] = 'eyes'; + goto after_eyes; + } + + $properties['eyes'] = $value; + + after_eyes: + + $value = $payload['rocket'] ?? null; + + if ($value === null) { + $missingFields[] = 'rocket'; + goto after_rocket; + } + + $properties['rocket'] = $value; + + after_rocket: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\ReactionRollup', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(ReactionRollup::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new ReactionRollup(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\ReactionRollup', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SubIssuesSummary(array $payload): SubIssuesSummary + { + $properties = []; + $missingFields = []; + try { + $value = $payload['total'] ?? null; + + if ($value === null) { + $missingFields[] = 'total'; + goto after_total; + } + + $properties['total'] = $value; + + after_total: + + $value = $payload['completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'completed'; + goto after_completed; + } + + $properties['completed'] = $value; + + after_completed: + + $value = $payload['percent_completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'percent_completed'; + goto after_percentCompleted; + } + + $properties['percentCompleted'] = $value; + + after_percentCompleted: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(SubIssuesSummary::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new SubIssuesSummary(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️BasicError(array $payload): BasicError + { + $properties = []; + $missingFields = []; + try { + $value = $payload['message'] ?? null; + + if ($value === null) { + $properties['message'] = null; + goto after_message; + } + + $properties['message'] = $value; + + after_message: + + $value = $payload['documentation_url'] ?? null; + + if ($value === null) { + $properties['documentationUrl'] = null; + goto after_documentationUrl; + } + + $properties['documentationUrl'] = $value; + + after_documentationUrl: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $properties['url'] = null; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['status'] ?? null; + + if ($value === null) { + $properties['status'] = null; + goto after_status; + } + + $properties['status'] = $value; + + after_status: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\BasicError', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(BasicError::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new BasicError(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\BasicError', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️ValidationErrorSimple(array $payload): ValidationErrorSimple + { + $properties = []; + $missingFields = []; + try { + $value = $payload['message'] ?? null; + + if ($value === null) { + $missingFields[] = 'message'; + goto after_message; + } + + $properties['message'] = $value; + + after_message: + + $value = $payload['documentation_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'documentation_url'; + goto after_documentationUrl; + } + + $properties['documentationUrl'] = $value; + + after_documentationUrl: + + $value = $payload['errors'] ?? null; + + if ($value === null) { + $properties['errors'] = null; + goto after_errors; + } + + $properties['errors'] = $value; + + after_errors: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\ValidationErrorSimple', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(ValidationErrorSimple::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new ValidationErrorSimple(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\ValidationErrorSimple', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Operations⚡️SecretScanning⚡️ListAlertsForEnterprise⚡️Response⚡️ApplicationJson⚡️ServiceUnavailable(array $payload): ServiceUnavailable + { + $properties = []; + $missingFields = []; + try { + $value = $payload['code'] ?? null; + + if ($value === null) { + $properties['code'] = null; + goto after_code; + } + + $properties['code'] = $value; + + after_code: + + $value = $payload['message'] ?? null; + + if ($value === null) { + $properties['message'] = null; + goto after_message; + } + + $properties['message'] = $value; + + after_message: + + $value = $payload['documentation_url'] ?? null; + + if ($value === null) { + $properties['documentationUrl'] = null; + goto after_documentationUrl; + } + + $properties['documentationUrl'] = $value; + + after_documentationUrl: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\Operations\SecretScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(ServiceUnavailable::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new ServiceUnavailable(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\Operations\SecretScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable', $exception, stack: $this->hydrationStack); + } + } + + private function serializeViaTypeMap(string $accessor, object $object, array $payloadToTypeMap): array + { + foreach ($payloadToTypeMap as $payloadType => [$valueType, $method]) { + if (is_a($object, $valueType)) { + return [$accessor => $payloadType] + $this->{$method}($object); + } + } + + throw new LogicException('No type mapped for object of class: ' . $object::class); + } + + public function serializeObject(object $object): mixed + { + return $this->serializeObjectOfType($object, $object::class); + } + + /** + * @param T $object + * @param class-string $className + * + * @template T + */ + public function serializeObjectOfType(object $object, string $className): mixed + { + try { + 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\Issue' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Issue($object), + 'ApiClients\Client\GitHub\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($object), + 'ApiClients\Client\GitHub\Schema\Milestone' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Milestone($object), + 'ApiClients\Client\GitHub\Schema\Issue\PullRequest' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Issue⚡️PullRequest($object), + 'ApiClients\Client\GitHub\Schema\Repository' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repository($object), + 'ApiClients\Client\GitHub\Schema\LicenseSimple' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️LicenseSimple($object), + 'ApiClients\Client\GitHub\Schema\Repository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repository⚡️Permissions($object), + 'ApiClients\Client\GitHub\Schema\Integration' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Integration($object), + 'ApiClients\Client\GitHub\Schema\Integration\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Integration⚡️Permissions($object), + 'ApiClients\Client\GitHub\Schema\ReactionRollup' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️ReactionRollup($object), + 'ApiClients\Client\GitHub\Schema\SubIssuesSummary' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SubIssuesSummary($object), + 'ApiClients\Client\GitHub\Schema\BasicError' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️BasicError($object), + 'ApiClients\Client\GitHub\Schema\ValidationErrorSimple' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️ValidationErrorSimple($object), + 'ApiClients\Client\GitHub\Schema\Operations\SecretScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Operations⚡️SecretScanning⚡️ListAlertsForEnterprise⚡️Response⚡️ApplicationJson⚡️ServiceUnavailable($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 SerializeArrayItems(...[]); + } + + return $serializer->serialize($value, $this); + } + + private function serializeValueRamsey⚡️Uuid⚡️UuidInterface(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new SerializeUuidToString(...[]); + } + + return $serializer->serialize($value, $this); + } + + private function serializeValueDateTime(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new SerializeDateTime(...[]); + } + + return $serializer->serialize($value, $this); + } + + private function serializeValueDateTimeImmutable(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new SerializeDateTime(...[]); + } + + return $serializer->serialize($value, $this); + } + + private function serializeValueDateTimeInterface(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new SerializeDateTime(...[]); + } + + return $serializer->serialize($value, $this); + } + + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Issue(mixed $object): mixed + { + assert($object instanceof Issue); + $result = []; + + $id = $object->id; + after_id: $result['id'] = $id; + + $nodeId = $object->nodeId; + after_nodeId: $result['node_id'] = $nodeId; + + $url = $object->url; + after_url: $result['url'] = $url; + + $repositoryUrl = $object->repositoryUrl; + after_repositoryUrl: $result['repository_url'] = $repositoryUrl; + + $labelsUrl = $object->labelsUrl; + after_labelsUrl: $result['labels_url'] = $labelsUrl; + + $commentsUrl = $object->commentsUrl; + after_commentsUrl: $result['comments_url'] = $commentsUrl; + + $eventsUrl = $object->eventsUrl; + after_eventsUrl: $result['events_url'] = $eventsUrl; + + $htmlUrl = $object->htmlUrl; + after_htmlUrl: $result['html_url'] = $htmlUrl; + + $number = $object->number; + after_number: $result['number'] = $number; + + $state = $object->state; + after_state: $result['state'] = $state; + + $stateReason = $object->stateReason; + + if ($stateReason === null) { + goto after_stateReason; + } + + after_stateReason: $result['state_reason'] = $stateReason; + + $title = $object->title; + after_title: $result['title'] = $title; + + $body = $object->body; + + if ($body === null) { + goto after_body; + } + + after_body: $result['body'] = $body; + + $user = $object->user; + + if ($user === null) { + goto after_user; + } + + $user = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($user); + after_user: $result['user'] = $user; + + $labels = $object->labels; + static $labelsSerializer0; + + if ($labelsSerializer0 === null) { + $labelsSerializer0 = new SerializeArrayItems(...[]); + } + + $labels = $labelsSerializer0->serialize($labels, $this); + after_labels: $result['labels'] = $labels; + + $assignee = $object->assignee; + + if ($assignee === null) { + goto after_assignee; + } + + $assignee = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($assignee); + after_assignee: $result['assignee'] = $assignee; + + $assignees = $object->assignees; + + if ($assignees === null) { + goto after_assignees; + } + + static $assigneesSerializer0; + + if ($assigneesSerializer0 === null) { + $assigneesSerializer0 = new SerializeArrayItems(...[]); + } + + $assignees = $assigneesSerializer0->serialize($assignees, $this); + after_assignees: $result['assignees'] = $assignees; + + $milestone = $object->milestone; + + if ($milestone === null) { + goto after_milestone; + } + + $milestone = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Milestone($milestone); + after_milestone: $result['milestone'] = $milestone; + + $locked = $object->locked; + after_locked: $result['locked'] = $locked; + + $activeLockReason = $object->activeLockReason; + + if ($activeLockReason === null) { + goto after_activeLockReason; + } + + after_activeLockReason: $result['active_lock_reason'] = $activeLockReason; + + $comments = $object->comments; + after_comments: $result['comments'] = $comments; + + $pullRequest = $object->pullRequest; + + if ($pullRequest === null) { + goto after_pullRequest; + } + + $pullRequest = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Issue⚡️PullRequest($pullRequest); + after_pullRequest: $result['pull_request'] = $pullRequest; + + $closedAt = $object->closedAt; + + if ($closedAt === null) { + goto after_closedAt; + } + + after_closedAt: $result['closed_at'] = $closedAt; + + $createdAt = $object->createdAt; + after_createdAt: $result['created_at'] = $createdAt; + + $updatedAt = $object->updatedAt; + after_updatedAt: $result['updated_at'] = $updatedAt; + + $draft = $object->draft; + + if ($draft === null) { + goto after_draft; + } + + after_draft: $result['draft'] = $draft; + + $closedBy = $object->closedBy; + + if ($closedBy === null) { + goto after_closedBy; + } + + $closedBy = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($closedBy); + after_closedBy: $result['closed_by'] = $closedBy; + + $bodyHtml = $object->bodyHtml; + + if ($bodyHtml === null) { + goto after_bodyHtml; + } + + after_bodyHtml: $result['body_html'] = $bodyHtml; + + $bodyText = $object->bodyText; + + if ($bodyText === null) { + goto after_bodyText; + } + + after_bodyText: $result['body_text'] = $bodyText; + + $timelineUrl = $object->timelineUrl; + + if ($timelineUrl === null) { + goto after_timelineUrl; + } + + after_timelineUrl: $result['timeline_url'] = $timelineUrl; + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + + $repository = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + $performedViaGithubApp = $object->performedViaGithubApp; + + if ($performedViaGithubApp === null) { + goto after_performedViaGithubApp; + } + + $performedViaGithubApp = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Integration($performedViaGithubApp); + after_performedViaGithubApp: $result['performed_via_github_app'] = $performedViaGithubApp; + + $authorAssociation = $object->authorAssociation; + after_authorAssociation: $result['author_association'] = $authorAssociation; + + $reactions = $object->reactions; + + if ($reactions === null) { + goto after_reactions; + } + + $reactions = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️ReactionRollup($reactions); + after_reactions: $result['reactions'] = $reactions; + + $subIssuesSummary = $object->subIssuesSummary; + + if ($subIssuesSummary === null) { + goto after_subIssuesSummary; + } + + $subIssuesSummary = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SubIssuesSummary($subIssuesSummary); + after_subIssuesSummary: $result['sub_issues_summary'] = $subIssuesSummary; + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser(mixed $object): mixed + { + assert($object instanceof SimpleUser); + $result = []; + + $name = $object->name; + + if ($name === null) { + goto after_name; + } + + after_name: $result['name'] = $name; + + $email = $object->email; + + if ($email === null) { + goto after_email; + } + + after_email: $result['email'] = $email; + + $login = $object->login; + after_login: $result['login'] = $login; + + $id = $object->id; + after_id: $result['id'] = $id; + + $nodeId = $object->nodeId; + after_nodeId: $result['node_id'] = $nodeId; + + $avatarUrl = $object->avatarUrl; + after_avatarUrl: $result['avatar_url'] = $avatarUrl; + + $gravatarId = $object->gravatarId; + + if ($gravatarId === null) { + goto after_gravatarId; + } + + after_gravatarId: $result['gravatar_id'] = $gravatarId; + + $url = $object->url; + after_url: $result['url'] = $url; + + $htmlUrl = $object->htmlUrl; + after_htmlUrl: $result['html_url'] = $htmlUrl; + + $followersUrl = $object->followersUrl; + after_followersUrl: $result['followers_url'] = $followersUrl; + + $followingUrl = $object->followingUrl; + after_followingUrl: $result['following_url'] = $followingUrl; + + $gistsUrl = $object->gistsUrl; + after_gistsUrl: $result['gists_url'] = $gistsUrl; + + $starredUrl = $object->starredUrl; + after_starredUrl: $result['starred_url'] = $starredUrl; + + $subscriptionsUrl = $object->subscriptionsUrl; + after_subscriptionsUrl: $result['subscriptions_url'] = $subscriptionsUrl; + + $organizationsUrl = $object->organizationsUrl; + after_organizationsUrl: $result['organizations_url'] = $organizationsUrl; + + $reposUrl = $object->reposUrl; + after_reposUrl: $result['repos_url'] = $reposUrl; + + $eventsUrl = $object->eventsUrl; + after_eventsUrl: $result['events_url'] = $eventsUrl; + + $receivedEventsUrl = $object->receivedEventsUrl; + after_receivedEventsUrl: $result['received_events_url'] = $receivedEventsUrl; + + $type = $object->type; + after_type: $result['type'] = $type; + + $siteAdmin = $object->siteAdmin; + after_siteAdmin: $result['site_admin'] = $siteAdmin; + + $starredAt = $object->starredAt; + + if ($starredAt === null) { + goto after_starredAt; + } + + after_starredAt: $result['starred_at'] = $starredAt; + + $userViewType = $object->userViewType; + + if ($userViewType === null) { + goto after_userViewType; + } + + after_userViewType: $result['user_view_type'] = $userViewType; + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Milestone(mixed $object): mixed + { + assert($object instanceof Milestone); + $result = []; + + $url = $object->url; + after_url: $result['url'] = $url; + + $htmlUrl = $object->htmlUrl; + after_htmlUrl: $result['html_url'] = $htmlUrl; + + $labelsUrl = $object->labelsUrl; + after_labelsUrl: $result['labels_url'] = $labelsUrl; + + $id = $object->id; + after_id: $result['id'] = $id; + + $nodeId = $object->nodeId; + after_nodeId: $result['node_id'] = $nodeId; + + $number = $object->number; + after_number: $result['number'] = $number; + + $state = $object->state; + after_state: $result['state'] = $state; + + $title = $object->title; + after_title: $result['title'] = $title; + + $description = $object->description; + + if ($description === null) { + goto after_description; + } + + after_description: $result['description'] = $description; + + $creator = $object->creator; + + if ($creator === null) { + goto after_creator; + } + + $creator = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($creator); + after_creator: $result['creator'] = $creator; + + $openIssues = $object->openIssues; + after_openIssues: $result['open_issues'] = $openIssues; + + $closedIssues = $object->closedIssues; + after_closedIssues: $result['closed_issues'] = $closedIssues; + + $createdAt = $object->createdAt; + after_createdAt: $result['created_at'] = $createdAt; + + $updatedAt = $object->updatedAt; + after_updatedAt: $result['updated_at'] = $updatedAt; + + $closedAt = $object->closedAt; + + if ($closedAt === null) { + goto after_closedAt; + } + + after_closedAt: $result['closed_at'] = $closedAt; + + $dueOn = $object->dueOn; + + if ($dueOn === null) { + goto after_dueOn; + } + + after_dueOn: $result['due_on'] = $dueOn; + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Issue⚡️PullRequest(mixed $object): mixed + { + assert($object instanceof PullRequest); + $result = []; + + $mergedAt = $object->mergedAt; + + if ($mergedAt === null) { + goto after_mergedAt; + } + + after_mergedAt: $result['merged_at'] = $mergedAt; + + $diffUrl = $object->diffUrl; + + if ($diffUrl === null) { + goto after_diffUrl; + } + + after_diffUrl: $result['diff_url'] = $diffUrl; + + $htmlUrl = $object->htmlUrl; + + if ($htmlUrl === null) { + goto after_htmlUrl; + } + + after_htmlUrl: $result['html_url'] = $htmlUrl; + + $patchUrl = $object->patchUrl; + + if ($patchUrl === null) { + goto after_patchUrl; + } + + after_patchUrl: $result['patch_url'] = $patchUrl; + + $url = $object->url; + + if ($url === null) { + goto after_url; + } + + after_url: $result['url'] = $url; + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repository(mixed $object): mixed + { + assert($object instanceof Repository); + $result = []; + + $id = $object->id; + after_id: $result['id'] = $id; + + $nodeId = $object->nodeId; + after_nodeId: $result['node_id'] = $nodeId; + + $name = $object->name; + after_name: $result['name'] = $name; + + $fullName = $object->fullName; + after_fullName: $result['full_name'] = $fullName; + + $license = $object->license; + + if ($license === null) { + goto after_license; + } + + $license = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️LicenseSimple($license); + after_license: $result['license'] = $license; + + $forks = $object->forks; + after_forks: $result['forks'] = $forks; + + $permissions = $object->permissions; + + if ($permissions === null) { + goto after_permissions; + } + + $permissions = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repository⚡️Permissions($permissions); + after_permissions: $result['permissions'] = $permissions; + + $owner = $object->owner; + $owner = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($owner); + after_owner: $result['owner'] = $owner; + + $private = $object->private; + after_private: $result['private'] = $private; + + $htmlUrl = $object->htmlUrl; + after_htmlUrl: $result['html_url'] = $htmlUrl; + + $description = $object->description; + + if ($description === null) { + goto after_description; + } + + after_description: $result['description'] = $description; + + $fork = $object->fork; + after_fork: $result['fork'] = $fork; + + $url = $object->url; + after_url: $result['url'] = $url; + + $archiveUrl = $object->archiveUrl; + after_archiveUrl: $result['archive_url'] = $archiveUrl; + + $assigneesUrl = $object->assigneesUrl; + after_assigneesUrl: $result['assignees_url'] = $assigneesUrl; + + $blobsUrl = $object->blobsUrl; + after_blobsUrl: $result['blobs_url'] = $blobsUrl; + + $branchesUrl = $object->branchesUrl; + after_branchesUrl: $result['branches_url'] = $branchesUrl; + + $collaboratorsUrl = $object->collaboratorsUrl; + after_collaboratorsUrl: $result['collaborators_url'] = $collaboratorsUrl; + + $commentsUrl = $object->commentsUrl; + after_commentsUrl: $result['comments_url'] = $commentsUrl; + + $commitsUrl = $object->commitsUrl; + after_commitsUrl: $result['commits_url'] = $commitsUrl; + + $compareUrl = $object->compareUrl; + after_compareUrl: $result['compare_url'] = $compareUrl; + + $contentsUrl = $object->contentsUrl; + after_contentsUrl: $result['contents_url'] = $contentsUrl; + + $contributorsUrl = $object->contributorsUrl; + after_contributorsUrl: $result['contributors_url'] = $contributorsUrl; + + $deploymentsUrl = $object->deploymentsUrl; + after_deploymentsUrl: $result['deployments_url'] = $deploymentsUrl; + + $downloadsUrl = $object->downloadsUrl; + after_downloadsUrl: $result['downloads_url'] = $downloadsUrl; + + $eventsUrl = $object->eventsUrl; + after_eventsUrl: $result['events_url'] = $eventsUrl; + + $forksUrl = $object->forksUrl; + after_forksUrl: $result['forks_url'] = $forksUrl; + + $gitCommitsUrl = $object->gitCommitsUrl; + after_gitCommitsUrl: $result['git_commits_url'] = $gitCommitsUrl; + + $gitRefsUrl = $object->gitRefsUrl; + after_gitRefsUrl: $result['git_refs_url'] = $gitRefsUrl; + + $gitTagsUrl = $object->gitTagsUrl; + after_gitTagsUrl: $result['git_tags_url'] = $gitTagsUrl; + + $gitUrl = $object->gitUrl; + after_gitUrl: $result['git_url'] = $gitUrl; + + $issueCommentUrl = $object->issueCommentUrl; + after_issueCommentUrl: $result['issue_comment_url'] = $issueCommentUrl; + + $issueEventsUrl = $object->issueEventsUrl; + after_issueEventsUrl: $result['issue_events_url'] = $issueEventsUrl; + + $issuesUrl = $object->issuesUrl; + after_issuesUrl: $result['issues_url'] = $issuesUrl; + + $keysUrl = $object->keysUrl; + after_keysUrl: $result['keys_url'] = $keysUrl; + + $labelsUrl = $object->labelsUrl; + after_labelsUrl: $result['labels_url'] = $labelsUrl; + + $languagesUrl = $object->languagesUrl; + after_languagesUrl: $result['languages_url'] = $languagesUrl; + + $mergesUrl = $object->mergesUrl; + after_mergesUrl: $result['merges_url'] = $mergesUrl; + + $milestonesUrl = $object->milestonesUrl; + after_milestonesUrl: $result['milestones_url'] = $milestonesUrl; + + $notificationsUrl = $object->notificationsUrl; + after_notificationsUrl: $result['notifications_url'] = $notificationsUrl; + + $pullsUrl = $object->pullsUrl; + after_pullsUrl: $result['pulls_url'] = $pullsUrl; + + $releasesUrl = $object->releasesUrl; + after_releasesUrl: $result['releases_url'] = $releasesUrl; + + $sshUrl = $object->sshUrl; + after_sshUrl: $result['ssh_url'] = $sshUrl; + + $stargazersUrl = $object->stargazersUrl; + after_stargazersUrl: $result['stargazers_url'] = $stargazersUrl; + + $statusesUrl = $object->statusesUrl; + after_statusesUrl: $result['statuses_url'] = $statusesUrl; + + $subscribersUrl = $object->subscribersUrl; + after_subscribersUrl: $result['subscribers_url'] = $subscribersUrl; + + $subscriptionUrl = $object->subscriptionUrl; + after_subscriptionUrl: $result['subscription_url'] = $subscriptionUrl; + + $tagsUrl = $object->tagsUrl; + after_tagsUrl: $result['tags_url'] = $tagsUrl; + + $teamsUrl = $object->teamsUrl; + after_teamsUrl: $result['teams_url'] = $teamsUrl; + + $treesUrl = $object->treesUrl; + after_treesUrl: $result['trees_url'] = $treesUrl; + + $cloneUrl = $object->cloneUrl; + after_cloneUrl: $result['clone_url'] = $cloneUrl; + + $mirrorUrl = $object->mirrorUrl; + + if ($mirrorUrl === null) { + goto after_mirrorUrl; + } + + after_mirrorUrl: $result['mirror_url'] = $mirrorUrl; + + $hooksUrl = $object->hooksUrl; + after_hooksUrl: $result['hooks_url'] = $hooksUrl; + + $svnUrl = $object->svnUrl; + after_svnUrl: $result['svn_url'] = $svnUrl; + + $homepage = $object->homepage; + + if ($homepage === null) { + goto after_homepage; + } + + after_homepage: $result['homepage'] = $homepage; + + $language = $object->language; + + if ($language === null) { + goto after_language; + } + + after_language: $result['language'] = $language; + + $forksCount = $object->forksCount; + after_forksCount: $result['forks_count'] = $forksCount; + + $stargazersCount = $object->stargazersCount; + after_stargazersCount: $result['stargazers_count'] = $stargazersCount; + + $watchersCount = $object->watchersCount; + after_watchersCount: $result['watchers_count'] = $watchersCount; + + $size = $object->size; + after_size: $result['size'] = $size; + + $defaultBranch = $object->defaultBranch; + after_defaultBranch: $result['default_branch'] = $defaultBranch; + + $openIssuesCount = $object->openIssuesCount; + after_openIssuesCount: $result['open_issues_count'] = $openIssuesCount; + + $isTemplate = $object->isTemplate; + + if ($isTemplate === null) { + goto after_isTemplate; + } + + after_isTemplate: $result['is_template'] = $isTemplate; + + $topics = $object->topics; + + if ($topics === null) { + goto after_topics; + } + + static $topicsSerializer0; + + if ($topicsSerializer0 === null) { + $topicsSerializer0 = new SerializeArrayItems(...[]); + } + + $topics = $topicsSerializer0->serialize($topics, $this); + after_topics: $result['topics'] = $topics; + + $hasIssues = $object->hasIssues; + after_hasIssues: $result['has_issues'] = $hasIssues; + + $hasProjects = $object->hasProjects; + after_hasProjects: $result['has_projects'] = $hasProjects; + + $hasWiki = $object->hasWiki; + after_hasWiki: $result['has_wiki'] = $hasWiki; + + $hasPages = $object->hasPages; + after_hasPages: $result['has_pages'] = $hasPages; + + $hasDownloads = $object->hasDownloads; + after_hasDownloads: $result['has_downloads'] = $hasDownloads; + + $hasDiscussions = $object->hasDiscussions; + + if ($hasDiscussions === null) { + goto after_hasDiscussions; + } + + after_hasDiscussions: $result['has_discussions'] = $hasDiscussions; + + $archived = $object->archived; + after_archived: $result['archived'] = $archived; + + $disabled = $object->disabled; + after_disabled: $result['disabled'] = $disabled; + + $visibility = $object->visibility; + + if ($visibility === null) { + goto after_visibility; + } + + after_visibility: $result['visibility'] = $visibility; + + $pushedAt = $object->pushedAt; + + if ($pushedAt === null) { + goto after_pushedAt; + } + + after_pushedAt: $result['pushed_at'] = $pushedAt; + + $createdAt = $object->createdAt; + + if ($createdAt === null) { + goto after_createdAt; + } + + after_createdAt: $result['created_at'] = $createdAt; + + $updatedAt = $object->updatedAt; + + if ($updatedAt === null) { + goto after_updatedAt; + } + + after_updatedAt: $result['updated_at'] = $updatedAt; + + $allowRebaseMerge = $object->allowRebaseMerge; + + if ($allowRebaseMerge === null) { + goto after_allowRebaseMerge; + } + + after_allowRebaseMerge: $result['allow_rebase_merge'] = $allowRebaseMerge; + + $tempCloneToken = $object->tempCloneToken; + + if ($tempCloneToken === null) { + goto after_tempCloneToken; + } + + after_tempCloneToken: $result['temp_clone_token'] = $tempCloneToken; + + $allowSquashMerge = $object->allowSquashMerge; + + if ($allowSquashMerge === null) { + goto after_allowSquashMerge; + } + + after_allowSquashMerge: $result['allow_squash_merge'] = $allowSquashMerge; + + $allowAutoMerge = $object->allowAutoMerge; + + if ($allowAutoMerge === null) { + goto after_allowAutoMerge; + } + + after_allowAutoMerge: $result['allow_auto_merge'] = $allowAutoMerge; + + $deleteBranchOnMerge = $object->deleteBranchOnMerge; + + if ($deleteBranchOnMerge === null) { + goto after_deleteBranchOnMerge; + } + + after_deleteBranchOnMerge: $result['delete_branch_on_merge'] = $deleteBranchOnMerge; + + $allowUpdateBranch = $object->allowUpdateBranch; + + if ($allowUpdateBranch === null) { + goto after_allowUpdateBranch; + } + + after_allowUpdateBranch: $result['allow_update_branch'] = $allowUpdateBranch; + + $useSquashPrTitleAsDefault = $object->useSquashPrTitleAsDefault; + + if ($useSquashPrTitleAsDefault === null) { + goto after_useSquashPrTitleAsDefault; + } + + after_useSquashPrTitleAsDefault: $result['use_squash_pr_title_as_default'] = $useSquashPrTitleAsDefault; + + $squashMergeCommitTitle = $object->squashMergeCommitTitle; + + if ($squashMergeCommitTitle === null) { + goto after_squashMergeCommitTitle; + } + + after_squashMergeCommitTitle: $result['squash_merge_commit_title'] = $squashMergeCommitTitle; + + $squashMergeCommitMessage = $object->squashMergeCommitMessage; + + if ($squashMergeCommitMessage === null) { + goto after_squashMergeCommitMessage; + } + + after_squashMergeCommitMessage: $result['squash_merge_commit_message'] = $squashMergeCommitMessage; + + $mergeCommitTitle = $object->mergeCommitTitle; + + if ($mergeCommitTitle === null) { + goto after_mergeCommitTitle; + } + + after_mergeCommitTitle: $result['merge_commit_title'] = $mergeCommitTitle; + + $mergeCommitMessage = $object->mergeCommitMessage; + + if ($mergeCommitMessage === null) { + goto after_mergeCommitMessage; + } + + after_mergeCommitMessage: $result['merge_commit_message'] = $mergeCommitMessage; + + $allowMergeCommit = $object->allowMergeCommit; + + if ($allowMergeCommit === null) { + goto after_allowMergeCommit; + } + + after_allowMergeCommit: $result['allow_merge_commit'] = $allowMergeCommit; + + $allowForking = $object->allowForking; + + if ($allowForking === null) { + goto after_allowForking; + } + + after_allowForking: $result['allow_forking'] = $allowForking; + + $webCommitSignoffRequired = $object->webCommitSignoffRequired; + + if ($webCommitSignoffRequired === null) { + goto after_webCommitSignoffRequired; + } + + after_webCommitSignoffRequired: $result['web_commit_signoff_required'] = $webCommitSignoffRequired; + + $openIssues = $object->openIssues; + after_openIssues: $result['open_issues'] = $openIssues; + + $watchers = $object->watchers; + after_watchers: $result['watchers'] = $watchers; + + $masterBranch = $object->masterBranch; + + if ($masterBranch === null) { + goto after_masterBranch; + } + + after_masterBranch: $result['master_branch'] = $masterBranch; + + $starredAt = $object->starredAt; + + if ($starredAt === null) { + goto after_starredAt; + } + + after_starredAt: $result['starred_at'] = $starredAt; + + $anonymousAccessEnabled = $object->anonymousAccessEnabled; + + if ($anonymousAccessEnabled === null) { + goto after_anonymousAccessEnabled; + } + + after_anonymousAccessEnabled: $result['anonymous_access_enabled'] = $anonymousAccessEnabled; + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️LicenseSimple(mixed $object): mixed + { + assert($object instanceof LicenseSimple); + $result = []; + + $key = $object->key; + after_key: $result['key'] = $key; + + $name = $object->name; + after_name: $result['name'] = $name; + + $url = $object->url; + + if ($url === null) { + goto after_url; + } + + after_url: $result['url'] = $url; + + $spdxId = $object->spdxId; + + if ($spdxId === null) { + goto after_spdxId; + } + + after_spdxId: $result['spdx_id'] = $spdxId; + + $nodeId = $object->nodeId; + after_nodeId: $result['node_id'] = $nodeId; + + $htmlUrl = $object->htmlUrl; + + if ($htmlUrl === null) { + goto after_htmlUrl; + } + + after_htmlUrl: $result['html_url'] = $htmlUrl; + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repository⚡️Permissions(mixed $object): mixed + { + assert($object instanceof Permissions); + $result = []; + + $admin = $object->admin; + after_admin: $result['admin'] = $admin; + + $pull = $object->pull; + after_pull: $result['pull'] = $pull; + + $triage = $object->triage; + + if ($triage === null) { + goto after_triage; + } + + after_triage: $result['triage'] = $triage; + + $push = $object->push; + after_push: $result['push'] = $push; + + $maintain = $object->maintain; + + if ($maintain === null) { + goto after_maintain; + } + + after_maintain: $result['maintain'] = $maintain; + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Integration(mixed $object): mixed + { + assert($object instanceof Integration); + $result = []; + + $id = $object->id; + after_id: $result['id'] = $id; + + $slug = $object->slug; + + if ($slug === null) { + goto after_slug; + } + + after_slug: $result['slug'] = $slug; + + $nodeId = $object->nodeId; + after_nodeId: $result['node_id'] = $nodeId; + + $clientId = $object->clientId; + + if ($clientId === null) { + goto after_clientId; + } + + after_clientId: $result['client_id'] = $clientId; + + $owner = $object->owner; + + if ($owner === null) { + goto after_owner; + } + + $owner = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($owner); + after_owner: $result['owner'] = $owner; + + $name = $object->name; + after_name: $result['name'] = $name; + + $description = $object->description; + + if ($description === null) { + goto after_description; + } + + after_description: $result['description'] = $description; + + $externalUrl = $object->externalUrl; + after_externalUrl: $result['external_url'] = $externalUrl; + + $htmlUrl = $object->htmlUrl; + after_htmlUrl: $result['html_url'] = $htmlUrl; + + $createdAt = $object->createdAt; + after_createdAt: $result['created_at'] = $createdAt; + + $updatedAt = $object->updatedAt; + after_updatedAt: $result['updated_at'] = $updatedAt; + + $permissions = $object->permissions; + $permissions = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Integration⚡️Permissions($permissions); + after_permissions: $result['permissions'] = $permissions; + + $events = $object->events; + static $eventsSerializer0; + + if ($eventsSerializer0 === null) { + $eventsSerializer0 = new SerializeArrayItems(...[]); + } + + $events = $eventsSerializer0->serialize($events, $this); + after_events: $result['events'] = $events; + + $installationsCount = $object->installationsCount; + + if ($installationsCount === null) { + goto after_installationsCount; + } + + after_installationsCount: $result['installations_count'] = $installationsCount; + + $clientSecret = $object->clientSecret; + + if ($clientSecret === null) { + goto after_clientSecret; + } + + after_clientSecret: $result['client_secret'] = $clientSecret; + + $webhookSecret = $object->webhookSecret; + + if ($webhookSecret === null) { + goto after_webhookSecret; + } + + after_webhookSecret: $result['webhook_secret'] = $webhookSecret; + + $pem = $object->pem; + + if ($pem === null) { + goto after_pem; + } + + after_pem: $result['pem'] = $pem; + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Integration⚡️Permissions(mixed $object): mixed + { + assert($object instanceof \ApiClients\Client\GitHub\Schema\Integration\Permissions); + $result = []; + + $issues = $object->issues; + + if ($issues === null) { + goto after_issues; + } + + after_issues: $result['issues'] = $issues; + + $checks = $object->checks; + + if ($checks === null) { + goto after_checks; + } + + after_checks: $result['checks'] = $checks; + + $metadata = $object->metadata; + + if ($metadata === null) { + goto after_metadata; + } + + after_metadata: $result['metadata'] = $metadata; + + $contents = $object->contents; + + if ($contents === null) { + goto after_contents; + } + + after_contents: $result['contents'] = $contents; + + $deployments = $object->deployments; + + if ($deployments === null) { + goto after_deployments; + } + + after_deployments: $result['deployments'] = $deployments; + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️ReactionRollup(mixed $object): mixed + { + assert($object instanceof ReactionRollup); + $result = []; + + $url = $object->url; + after_url: $result['url'] = $url; + + $totalCount = $object->totalCount; + after_totalCount: $result['total_count'] = $totalCount; + + $plusOne = $object->plusOne; + after_plusOne: $result['+1'] = $plusOne; + + $minOne = $object->minOne; + after_minOne: $result['-1'] = $minOne; + + $laugh = $object->laugh; + after_laugh: $result['laugh'] = $laugh; + + $confused = $object->confused; + after_confused: $result['confused'] = $confused; + + $heart = $object->heart; + after_heart: $result['heart'] = $heart; + + $hooray = $object->hooray; + after_hooray: $result['hooray'] = $hooray; + + $eyes = $object->eyes; + after_eyes: $result['eyes'] = $eyes; + + $rocket = $object->rocket; + after_rocket: $result['rocket'] = $rocket; + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SubIssuesSummary(mixed $object): mixed + { + assert($object instanceof SubIssuesSummary); + $result = []; + + $total = $object->total; + after_total: $result['total'] = $total; + + $completed = $object->completed; + after_completed: $result['completed'] = $completed; + + $percentCompleted = $object->percentCompleted; + after_percentCompleted: $result['percent_completed'] = $percentCompleted; + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️BasicError(mixed $object): mixed + { + assert($object instanceof BasicError); + $result = []; + + $message = $object->message; + + if ($message === null) { + goto after_message; + } + + after_message: $result['message'] = $message; + + $documentationUrl = $object->documentationUrl; + + if ($documentationUrl === null) { + goto after_documentationUrl; + } + + after_documentationUrl: $result['documentation_url'] = $documentationUrl; + + $url = $object->url; + + if ($url === null) { + goto after_url; + } + + after_url: $result['url'] = $url; + + $status = $object->status; + + if ($status === null) { + goto after_status; + } + + after_status: $result['status'] = $status; + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️ValidationErrorSimple(mixed $object): mixed + { + assert($object instanceof ValidationErrorSimple); + $result = []; + + $message = $object->message; + after_message: $result['message'] = $message; + + $documentationUrl = $object->documentationUrl; + after_documentationUrl: $result['documentation_url'] = $documentationUrl; + + $errors = $object->errors; + + if ($errors === null) { + goto after_errors; + } + + static $errorsSerializer0; + + if ($errorsSerializer0 === null) { + $errorsSerializer0 = new SerializeArrayItems(...[]); + } + + $errors = $errorsSerializer0->serialize($errors, $this); + after_errors: $result['errors'] = $errors; + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Operations⚡️SecretScanning⚡️ListAlertsForEnterprise⚡️Response⚡️ApplicationJson⚡️ServiceUnavailable(mixed $object): mixed + { + assert($object instanceof ServiceUnavailable); + $result = []; + + $code = $object->code; + + if ($code === null) { + goto after_code; + } + + after_code: $result['code'] = $code; + + $message = $object->message; + + if ($message === null) { + goto after_message; + } + + after_message: $result['message'] = $message; + + $documentationUrl = $object->documentationUrl; + + if ($documentationUrl === null) { + goto after_documentationUrl; + } + + after_documentationUrl: $result['documentation_url'] = $documentationUrl; + + return $result; + } + + /** + * @param class-string $className + * @param iterable $payloads; + * + * @return IterableList + * + * @throws UnableToHydrateObject + * + * @template T + */ + public function hydrateObjects(string $className, iterable $payloads): IterableList + { + return new IterableList($this->doHydrateObjects($className, $payloads)); + } + + private function doHydrateObjects(string $className, iterable $payloads): Generator + { + foreach ($payloads as $index => $payload) { + yield $index => $this->hydrateObject($className, $payload); + } + } + + /** + * @param class-string $className + * @param iterable $payloads; + * + * @return IterableList + * + * @throws UnableToSerializeObject + * + * @template T + */ + public function serializeObjects(iterable $payloads): IterableList + { + return new IterableList($this->doSerializeObjects($payloads)); + } + + private function doSerializeObjects(iterable $objects): Generator + { + foreach ($objects as $index => $object) { + yield $index => $this->serializeObject($object); + } + } +} diff --git a/clients/GitHub/src/Internal/Hydrator/WebHook/IssueComment.php b/clients/GitHub/src/Internal/Hydrator/WebHook/IssueComment.php index 269cf54d717..58357019076 100644 --- a/clients/GitHub/src/Internal/Hydrator/WebHook/IssueComment.php +++ b/clients/GitHub/src/Internal/Hydrator/WebHook/IssueComment.php @@ -25,6 +25,7 @@ use ApiClients\Client\GitHub\Schema\WebhookIssueCommentCreated\Issue\PerformedViaGithubApp; use ApiClients\Client\GitHub\Schema\WebhookIssueCommentCreated\Issue\PerformedViaGithubApp\Owner; use ApiClients\Client\GitHub\Schema\WebhookIssueCommentCreated\Issue\PullRequest; +use ApiClients\Client\GitHub\Schema\WebhookIssueCommentCreated\Issue\SubIssuesSummary; use ApiClients\Client\GitHub\Schema\WebhookIssueCommentDeleted; use ApiClients\Client\GitHub\Schema\WebhookIssueCommentEdited; use ApiClients\Client\GitHub\Schema\WebhooksChanges; @@ -83,6 +84,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\WebhookIssueCommentCreated\Issue\PerformedViaGithubApp\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssueCommentCreated⚡️Issue⚡️PerformedViaGithubApp⚡️Permissions($payload), 'ApiClients\Client\GitHub\Schema\WebhookIssueCommentCreated\Issue\PullRequest' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssueCommentCreated⚡️Issue⚡️PullRequest($payload), 'ApiClients\Client\GitHub\Schema\WebhookIssueCommentCreated\Issue\Reactions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssueCommentCreated⚡️Issue⚡️Reactions($payload), + 'ApiClients\Client\GitHub\Schema\WebhookIssueCommentCreated\Issue\SubIssuesSummary' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssueCommentCreated⚡️Issue⚡️SubIssuesSummary($payload), 'ApiClients\Client\GitHub\Schema\WebhookIssueCommentCreated\Issue\User' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssueCommentCreated⚡️Issue⚡️User($payload), 'ApiClients\Client\GitHub\Schema\OrganizationSimpleWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️OrganizationSimpleWebhooks($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks($payload), @@ -104,6 +106,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\WebhookIssueCommentDeleted\Issue\PerformedViaGithubApp\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Issue⚡️PerformedViaGithubApp⚡️Permissions($payload), 'ApiClients\Client\GitHub\Schema\WebhookIssueCommentDeleted\Issue\PullRequest' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Issue⚡️PullRequest($payload), 'ApiClients\Client\GitHub\Schema\WebhookIssueCommentDeleted\Issue\Reactions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Issue⚡️Reactions($payload), + 'ApiClients\Client\GitHub\Schema\WebhookIssueCommentDeleted\Issue\SubIssuesSummary' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Issue⚡️SubIssuesSummary($payload), 'ApiClients\Client\GitHub\Schema\WebhookIssueCommentDeleted\Issue\User' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Issue⚡️User($payload), 'ApiClients\Client\GitHub\Schema\WebhookIssueCommentEdited' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssueCommentEdited($payload), 'ApiClients\Client\GitHub\Schema\WebhooksChanges' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksChanges($payload), @@ -117,6 +120,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\WebhookIssueCommentEdited\Issue\PerformedViaGithubApp\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssueCommentEdited⚡️Issue⚡️PerformedViaGithubApp⚡️Permissions($payload), 'ApiClients\Client\GitHub\Schema\WebhookIssueCommentEdited\Issue\PullRequest' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssueCommentEdited⚡️Issue⚡️PullRequest($payload), 'ApiClients\Client\GitHub\Schema\WebhookIssueCommentEdited\Issue\Reactions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssueCommentEdited⚡️Issue⚡️Reactions($payload), + 'ApiClients\Client\GitHub\Schema\WebhookIssueCommentEdited\Issue\SubIssuesSummary' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssueCommentEdited⚡️Issue⚡️SubIssuesSummary($payload), 'ApiClients\Client\GitHub\Schema\WebhookIssueCommentEdited\Issue\User' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssueCommentEdited⚡️Issue⚡️User($payload), 'ApiClients\Client\GitHub\Schema\WebhooksIssue\Milestone\Creator' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksIssue⚡️Milestone⚡️Creator($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\CustomProperties' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($payload), @@ -127,6 +131,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\WebhooksIssue\PerformedViaGithubApp' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksIssue⚡️PerformedViaGithubApp($payload), 'ApiClients\Client\GitHub\Schema\WebhooksIssue\PullRequest' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksIssue⚡️PullRequest($payload), 'ApiClients\Client\GitHub\Schema\WebhooksIssue\Reactions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksIssue⚡️Reactions($payload), + 'ApiClients\Client\GitHub\Schema\WebhooksIssue\SubIssuesSummary' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksIssue⚡️SubIssuesSummary($payload), 'ApiClients\Client\GitHub\Schema\WebhooksIssue\User' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksIssue⚡️User($payload), 'ApiClients\Client\GitHub\Schema\WebhooksIssue\PerformedViaGithubApp\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksIssue⚡️PerformedViaGithubApp⚡️Owner($payload), 'ApiClients\Client\GitHub\Schema\WebhooksIssue\PerformedViaGithubApp\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksIssue⚡️PerformedViaGithubApp⚡️Permissions($payload), @@ -1904,6 +1909,26 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh after_repositoryUrl: + $value = $payload['sub_issues_summary'] ?? null; + + if ($value === null) { + $properties['subIssuesSummary'] = null; + goto after_subIssuesSummary; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'subIssuesSummary'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssueCommentCreated⚡️Issue⚡️SubIssuesSummary($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['subIssuesSummary'] = $value; + + after_subIssuesSummary: + $value = $payload['state'] ?? null; if ($value === null) { @@ -3767,6 +3792,58 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh } } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssueCommentCreated⚡️Issue⚡️SubIssuesSummary(array $payload): SubIssuesSummary + { + $properties = []; + $missingFields = []; + try { + $value = $payload['total'] ?? null; + + if ($value === null) { + $missingFields[] = 'total'; + goto after_total; + } + + $properties['total'] = $value; + + after_total: + + $value = $payload['completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'completed'; + goto after_completed; + } + + $properties['completed'] = $value; + + after_completed: + + $value = $payload['percent_completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'percent_completed'; + goto after_percentCompleted; + } + + $properties['percentCompleted'] = $value; + + after_percentCompleted: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\WebhookIssueCommentCreated\Issue\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(SubIssuesSummary::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new SubIssuesSummary(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\WebhookIssueCommentCreated\Issue\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssueCommentCreated⚡️Issue⚡️User(array $payload): \ApiClients\Client\GitHub\Schema\WebhookIssueCommentCreated\Issue\User { $properties = []; @@ -7837,6 +7914,26 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh after_repositoryUrl: + $value = $payload['sub_issues_summary'] ?? null; + + if ($value === null) { + $properties['subIssuesSummary'] = null; + goto after_subIssuesSummary; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'subIssuesSummary'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Issue⚡️SubIssuesSummary($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['subIssuesSummary'] = $value; + + after_subIssuesSummary: + $value = $payload['state'] ?? null; if ($value === null) { @@ -9700,6 +9797,58 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh } } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Issue⚡️SubIssuesSummary(array $payload): \ApiClients\Client\GitHub\Schema\WebhookIssueCommentDeleted\Issue\SubIssuesSummary + { + $properties = []; + $missingFields = []; + try { + $value = $payload['total'] ?? null; + + if ($value === null) { + $missingFields[] = 'total'; + goto after_total; + } + + $properties['total'] = $value; + + after_total: + + $value = $payload['completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'completed'; + goto after_completed; + } + + $properties['completed'] = $value; + + after_completed: + + $value = $payload['percent_completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'percent_completed'; + goto after_percentCompleted; + } + + $properties['percentCompleted'] = $value; + + after_percentCompleted: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\WebhookIssueCommentDeleted\Issue\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\GitHub\Schema\WebhookIssueCommentDeleted\Issue\SubIssuesSummary::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\GitHub\Schema\WebhookIssueCommentDeleted\Issue\SubIssuesSummary(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\WebhookIssueCommentDeleted\Issue\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Issue⚡️User(array $payload): \ApiClients\Client\GitHub\Schema\WebhookIssueCommentDeleted\Issue\User { $properties = []; @@ -10523,6 +10672,26 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh after_repositoryUrl: + $value = $payload['sub_issues_summary'] ?? null; + + if ($value === null) { + $properties['subIssuesSummary'] = null; + goto after_subIssuesSummary; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'subIssuesSummary'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksIssue⚡️SubIssuesSummary($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['subIssuesSummary'] = $value; + + after_subIssuesSummary: + $value = $payload['state'] ?? null; if ($value === null) { @@ -12386,6 +12555,58 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh } } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssueCommentEdited⚡️Issue⚡️SubIssuesSummary(array $payload): \ApiClients\Client\GitHub\Schema\WebhookIssueCommentEdited\Issue\SubIssuesSummary + { + $properties = []; + $missingFields = []; + try { + $value = $payload['total'] ?? null; + + if ($value === null) { + $missingFields[] = 'total'; + goto after_total; + } + + $properties['total'] = $value; + + after_total: + + $value = $payload['completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'completed'; + goto after_completed; + } + + $properties['completed'] = $value; + + after_completed: + + $value = $payload['percent_completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'percent_completed'; + goto after_percentCompleted; + } + + $properties['percentCompleted'] = $value; + + after_percentCompleted: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\WebhookIssueCommentEdited\Issue\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\GitHub\Schema\WebhookIssueCommentEdited\Issue\SubIssuesSummary::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\GitHub\Schema\WebhookIssueCommentEdited\Issue\SubIssuesSummary(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\WebhookIssueCommentEdited\Issue\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssueCommentEdited⚡️Issue⚡️User(array $payload): \ApiClients\Client\GitHub\Schema\WebhookIssueCommentEdited\Issue\User { $properties = []; @@ -14430,6 +14651,58 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh } } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksIssue⚡️SubIssuesSummary(array $payload): \ApiClients\Client\GitHub\Schema\WebhooksIssue\SubIssuesSummary + { + $properties = []; + $missingFields = []; + try { + $value = $payload['total'] ?? null; + + if ($value === null) { + $missingFields[] = 'total'; + goto after_total; + } + + $properties['total'] = $value; + + after_total: + + $value = $payload['completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'completed'; + goto after_completed; + } + + $properties['completed'] = $value; + + after_completed: + + $value = $payload['percent_completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'percent_completed'; + goto after_percentCompleted; + } + + $properties['percentCompleted'] = $value; + + after_percentCompleted: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\WebhooksIssue\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\GitHub\Schema\WebhooksIssue\SubIssuesSummary::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\GitHub\Schema\WebhooksIssue\SubIssuesSummary(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\WebhooksIssue\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksIssue⚡️User(array $payload): \ApiClients\Client\GitHub\Schema\WebhooksIssue\User { $properties = []; @@ -15405,6 +15678,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\WebhookIssueCommentCreated\Issue\PerformedViaGithubApp\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssueCommentCreated⚡️Issue⚡️PerformedViaGithubApp⚡️Permissions($object), 'ApiClients\Client\GitHub\Schema\WebhookIssueCommentCreated\Issue\PullRequest' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssueCommentCreated⚡️Issue⚡️PullRequest($object), 'ApiClients\Client\GitHub\Schema\WebhookIssueCommentCreated\Issue\Reactions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssueCommentCreated⚡️Issue⚡️Reactions($object), + 'ApiClients\Client\GitHub\Schema\WebhookIssueCommentCreated\Issue\SubIssuesSummary' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssueCommentCreated⚡️Issue⚡️SubIssuesSummary($object), 'ApiClients\Client\GitHub\Schema\WebhookIssueCommentCreated\Issue\User' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssueCommentCreated⚡️Issue⚡️User($object), 'ApiClients\Client\GitHub\Schema\OrganizationSimpleWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️OrganizationSimpleWebhooks($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks($object), @@ -15426,6 +15700,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\WebhookIssueCommentDeleted\Issue\PerformedViaGithubApp\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Issue⚡️PerformedViaGithubApp⚡️Permissions($object), 'ApiClients\Client\GitHub\Schema\WebhookIssueCommentDeleted\Issue\PullRequest' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Issue⚡️PullRequest($object), 'ApiClients\Client\GitHub\Schema\WebhookIssueCommentDeleted\Issue\Reactions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Issue⚡️Reactions($object), + 'ApiClients\Client\GitHub\Schema\WebhookIssueCommentDeleted\Issue\SubIssuesSummary' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Issue⚡️SubIssuesSummary($object), 'ApiClients\Client\GitHub\Schema\WebhookIssueCommentDeleted\Issue\User' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Issue⚡️User($object), 'ApiClients\Client\GitHub\Schema\WebhookIssueCommentEdited' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssueCommentEdited($object), 'ApiClients\Client\GitHub\Schema\WebhooksChanges' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksChanges($object), @@ -15439,6 +15714,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\WebhookIssueCommentEdited\Issue\PerformedViaGithubApp\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssueCommentEdited⚡️Issue⚡️PerformedViaGithubApp⚡️Permissions($object), 'ApiClients\Client\GitHub\Schema\WebhookIssueCommentEdited\Issue\PullRequest' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssueCommentEdited⚡️Issue⚡️PullRequest($object), 'ApiClients\Client\GitHub\Schema\WebhookIssueCommentEdited\Issue\Reactions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssueCommentEdited⚡️Issue⚡️Reactions($object), + 'ApiClients\Client\GitHub\Schema\WebhookIssueCommentEdited\Issue\SubIssuesSummary' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssueCommentEdited⚡️Issue⚡️SubIssuesSummary($object), 'ApiClients\Client\GitHub\Schema\WebhookIssueCommentEdited\Issue\User' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssueCommentEdited⚡️Issue⚡️User($object), default => throw new LogicException("No serialization defined for $className"), }; @@ -16295,6 +16571,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema $repositoryUrl = $object->repositoryUrl; after_repositoryUrl: $result['repository_url'] = $repositoryUrl; + $subIssuesSummary = $object->subIssuesSummary; + + if ($subIssuesSummary === null) { + goto after_subIssuesSummary; + } + + $subIssuesSummary = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssueCommentCreated⚡️Issue⚡️SubIssuesSummary($subIssuesSummary); + after_subIssuesSummary: $result['sub_issues_summary'] = $subIssuesSummary; + $state = $object->state; if ($state === null) { @@ -17411,6 +17696,23 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssueCommentCreated⚡️Issue⚡️SubIssuesSummary(mixed $object): mixed + { + assert($object instanceof SubIssuesSummary); + $result = []; + + $total = $object->total; + after_total: $result['total'] = $total; + + $completed = $object->completed; + after_completed: $result['completed'] = $completed; + + $percentCompleted = $object->percentCompleted; + after_percentCompleted: $result['percent_completed'] = $percentCompleted; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssueCommentCreated⚡️Issue⚡️User(mixed $object): mixed { assert($object instanceof \ApiClients\Client\GitHub\Schema\WebhookIssueCommentCreated\Issue\User); @@ -19583,6 +19885,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema $repositoryUrl = $object->repositoryUrl; after_repositoryUrl: $result['repository_url'] = $repositoryUrl; + $subIssuesSummary = $object->subIssuesSummary; + + if ($subIssuesSummary === null) { + goto after_subIssuesSummary; + } + + $subIssuesSummary = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Issue⚡️SubIssuesSummary($subIssuesSummary); + after_subIssuesSummary: $result['sub_issues_summary'] = $subIssuesSummary; + $state = $object->state; if ($state === null) { @@ -20699,6 +21010,23 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Issue⚡️SubIssuesSummary(mixed $object): mixed + { + assert($object instanceof \ApiClients\Client\GitHub\Schema\WebhookIssueCommentDeleted\Issue\SubIssuesSummary); + $result = []; + + $total = $object->total; + after_total: $result['total'] = $total; + + $completed = $object->completed; + after_completed: $result['completed'] = $completed; + + $percentCompleted = $object->percentCompleted; + after_percentCompleted: $result['percent_completed'] = $percentCompleted; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Issue⚡️User(mixed $object): mixed { assert($object instanceof \ApiClients\Client\GitHub\Schema\WebhookIssueCommentDeleted\Issue\User); @@ -21102,6 +21430,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema $repositoryUrl = $object->repositoryUrl; after_repositoryUrl: $result['repository_url'] = $repositoryUrl; + $subIssuesSummary = $object->subIssuesSummary; + + if ($subIssuesSummary === null) { + goto after_subIssuesSummary; + } + + $subIssuesSummary = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksIssue⚡️SubIssuesSummary($subIssuesSummary); + after_subIssuesSummary: $result['sub_issues_summary'] = $subIssuesSummary; + $state = $object->state; if ($state === null) { @@ -22218,6 +22555,23 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssueCommentEdited⚡️Issue⚡️SubIssuesSummary(mixed $object): mixed + { + assert($object instanceof \ApiClients\Client\GitHub\Schema\WebhookIssueCommentEdited\Issue\SubIssuesSummary); + $result = []; + + $total = $object->total; + after_total: $result['total'] = $total; + + $completed = $object->completed; + after_completed: $result['completed'] = $completed; + + $percentCompleted = $object->percentCompleted; + after_percentCompleted: $result['percent_completed'] = $percentCompleted; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssueCommentEdited⚡️Issue⚡️User(mixed $object): mixed { assert($object instanceof \ApiClients\Client\GitHub\Schema\WebhookIssueCommentEdited\Issue\User); diff --git a/clients/GitHub/src/Internal/Hydrator/WebHook/Issues.php b/clients/GitHub/src/Internal/Hydrator/WebHook/Issues.php index fb647470159..96ef32f6a90 100644 --- a/clients/GitHub/src/Internal/Hydrator/WebHook/Issues.php +++ b/clients/GitHub/src/Internal/Hydrator/WebHook/Issues.php @@ -46,6 +46,7 @@ use ApiClients\Client\GitHub\Schema\WebhooksIssue\PerformedViaGithubApp\Permissions; use ApiClients\Client\GitHub\Schema\WebhooksIssue\PullRequest; use ApiClients\Client\GitHub\Schema\WebhooksIssue\Reactions; +use ApiClients\Client\GitHub\Schema\WebhooksIssue\SubIssuesSummary; use ApiClients\Client\GitHub\Schema\WebhooksIssue\User; use ApiClients\Client\GitHub\Schema\WebhooksIssue2; use ApiClients\Client\GitHub\Schema\WebhooksLabel; @@ -100,6 +101,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\WebhooksIssue\PerformedViaGithubApp\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksIssue⚡️PerformedViaGithubApp⚡️Permissions($payload), 'ApiClients\Client\GitHub\Schema\WebhooksIssue\PullRequest' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksIssue⚡️PullRequest($payload), 'ApiClients\Client\GitHub\Schema\WebhooksIssue\Reactions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksIssue⚡️Reactions($payload), + 'ApiClients\Client\GitHub\Schema\WebhooksIssue\SubIssuesSummary' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksIssue⚡️SubIssuesSummary($payload), 'ApiClients\Client\GitHub\Schema\WebhooksIssue\User' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksIssue⚡️User($payload), 'ApiClients\Client\GitHub\Schema\OrganizationSimpleWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️OrganizationSimpleWebhooks($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks($payload), @@ -119,6 +121,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\WebhookIssuesClosed\Issue\PerformedViaGithubApp\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesClosed⚡️Issue⚡️PerformedViaGithubApp⚡️Permissions($payload), 'ApiClients\Client\GitHub\Schema\WebhookIssuesClosed\Issue\PullRequest' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesClosed⚡️Issue⚡️PullRequest($payload), 'ApiClients\Client\GitHub\Schema\WebhookIssuesClosed\Issue\Reactions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesClosed⚡️Issue⚡️Reactions($payload), + 'ApiClients\Client\GitHub\Schema\WebhookIssuesClosed\Issue\SubIssuesSummary' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesClosed⚡️Issue⚡️SubIssuesSummary($payload), 'ApiClients\Client\GitHub\Schema\WebhookIssuesClosed\Issue\User' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesClosed⚡️Issue⚡️User($payload), 'ApiClients\Client\GitHub\Schema\WebhookIssuesDeleted' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesDeleted($payload), 'ApiClients\Client\GitHub\Schema\WebhookIssuesDeleted\Issue' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesDeleted⚡️Issue($payload), @@ -130,6 +133,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\WebhookIssuesDeleted\Issue\PerformedViaGithubApp\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesDeleted⚡️Issue⚡️PerformedViaGithubApp⚡️Permissions($payload), 'ApiClients\Client\GitHub\Schema\WebhookIssuesDeleted\Issue\PullRequest' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesDeleted⚡️Issue⚡️PullRequest($payload), 'ApiClients\Client\GitHub\Schema\WebhookIssuesDeleted\Issue\Reactions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesDeleted⚡️Issue⚡️Reactions($payload), + 'ApiClients\Client\GitHub\Schema\WebhookIssuesDeleted\Issue\SubIssuesSummary' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesDeleted⚡️Issue⚡️SubIssuesSummary($payload), 'ApiClients\Client\GitHub\Schema\WebhookIssuesDeleted\Issue\User' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesDeleted⚡️Issue⚡️User($payload), 'ApiClients\Client\GitHub\Schema\WebhookIssuesDemilestoned' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesDemilestoned($payload), 'ApiClients\Client\GitHub\Schema\WebhookIssuesDemilestoned\Issue' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesDemilestoned⚡️Issue($payload), @@ -141,6 +145,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\WebhookIssuesDemilestoned\Issue\PerformedViaGithubApp\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesDemilestoned⚡️Issue⚡️PerformedViaGithubApp⚡️Permissions($payload), 'ApiClients\Client\GitHub\Schema\WebhookIssuesDemilestoned\Issue\PullRequest' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesDemilestoned⚡️Issue⚡️PullRequest($payload), 'ApiClients\Client\GitHub\Schema\WebhookIssuesDemilestoned\Issue\Reactions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesDemilestoned⚡️Issue⚡️Reactions($payload), + 'ApiClients\Client\GitHub\Schema\WebhookIssuesDemilestoned\Issue\SubIssuesSummary' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesDemilestoned⚡️Issue⚡️SubIssuesSummary($payload), 'ApiClients\Client\GitHub\Schema\WebhookIssuesDemilestoned\Issue\User' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesDemilestoned⚡️Issue⚡️User($payload), 'ApiClients\Client\GitHub\Schema\WebhooksMilestone' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksMilestone($payload), 'ApiClients\Client\GitHub\Schema\WebhooksMilestone\Creator' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksMilestone⚡️Creator($payload), @@ -157,6 +162,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\WebhookIssuesEdited\Issue\PerformedViaGithubApp\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesEdited⚡️Issue⚡️PerformedViaGithubApp⚡️Permissions($payload), 'ApiClients\Client\GitHub\Schema\WebhookIssuesEdited\Issue\PullRequest' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesEdited⚡️Issue⚡️PullRequest($payload), 'ApiClients\Client\GitHub\Schema\WebhookIssuesEdited\Issue\Reactions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesEdited⚡️Issue⚡️Reactions($payload), + 'ApiClients\Client\GitHub\Schema\WebhookIssuesEdited\Issue\SubIssuesSummary' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesEdited⚡️Issue⚡️SubIssuesSummary($payload), 'ApiClients\Client\GitHub\Schema\WebhookIssuesEdited\Issue\User' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesEdited⚡️Issue⚡️User($payload), 'ApiClients\Client\GitHub\Schema\WebhooksLabel' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksLabel($payload), 'ApiClients\Client\GitHub\Schema\WebhookIssuesLabeled' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesLabeled($payload), @@ -169,6 +175,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\WebhookIssuesLabeled\Issue\PerformedViaGithubApp\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesLabeled⚡️Issue⚡️PerformedViaGithubApp⚡️Permissions($payload), 'ApiClients\Client\GitHub\Schema\WebhookIssuesLabeled\Issue\PullRequest' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesLabeled⚡️Issue⚡️PullRequest($payload), 'ApiClients\Client\GitHub\Schema\WebhookIssuesLabeled\Issue\Reactions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesLabeled⚡️Issue⚡️Reactions($payload), + 'ApiClients\Client\GitHub\Schema\WebhookIssuesLabeled\Issue\SubIssuesSummary' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesLabeled⚡️Issue⚡️SubIssuesSummary($payload), 'ApiClients\Client\GitHub\Schema\WebhookIssuesLabeled\Issue\User' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesLabeled⚡️Issue⚡️User($payload), 'ApiClients\Client\GitHub\Schema\WebhookIssuesLocked' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesLocked($payload), 'ApiClients\Client\GitHub\Schema\WebhookIssuesLocked\Issue' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesLocked⚡️Issue($payload), @@ -180,6 +187,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\WebhookIssuesLocked\Issue\PerformedViaGithubApp\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesLocked⚡️Issue⚡️PerformedViaGithubApp⚡️Permissions($payload), 'ApiClients\Client\GitHub\Schema\WebhookIssuesLocked\Issue\PullRequest' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesLocked⚡️Issue⚡️PullRequest($payload), 'ApiClients\Client\GitHub\Schema\WebhookIssuesLocked\Issue\Reactions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesLocked⚡️Issue⚡️Reactions($payload), + 'ApiClients\Client\GitHub\Schema\WebhookIssuesLocked\Issue\SubIssuesSummary' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesLocked⚡️Issue⚡️SubIssuesSummary($payload), 'ApiClients\Client\GitHub\Schema\WebhookIssuesLocked\Issue\User' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesLocked⚡️Issue⚡️User($payload), 'ApiClients\Client\GitHub\Schema\WebhookIssuesMilestoned' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesMilestoned($payload), 'ApiClients\Client\GitHub\Schema\WebhookIssuesMilestoned\Issue' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesMilestoned⚡️Issue($payload), @@ -191,6 +199,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\WebhookIssuesMilestoned\Issue\PerformedViaGithubApp\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesMilestoned⚡️Issue⚡️PerformedViaGithubApp⚡️Permissions($payload), 'ApiClients\Client\GitHub\Schema\WebhookIssuesMilestoned\Issue\PullRequest' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesMilestoned⚡️Issue⚡️PullRequest($payload), 'ApiClients\Client\GitHub\Schema\WebhookIssuesMilestoned\Issue\Reactions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesMilestoned⚡️Issue⚡️Reactions($payload), + 'ApiClients\Client\GitHub\Schema\WebhookIssuesMilestoned\Issue\SubIssuesSummary' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesMilestoned⚡️Issue⚡️SubIssuesSummary($payload), 'ApiClients\Client\GitHub\Schema\WebhookIssuesMilestoned\Issue\User' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesMilestoned⚡️Issue⚡️User($payload), 'ApiClients\Client\GitHub\Schema\WebhookIssuesOpened' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesOpened($payload), 'ApiClients\Client\GitHub\Schema\WebhookIssuesOpened\Changes' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesOpened⚡️Changes($payload), @@ -203,6 +212,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\WebhookIssuesOpened\Changes\OldIssue\PerformedViaGithubApp\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesOpened⚡️Changes⚡️OldIssue⚡️PerformedViaGithubApp⚡️Permissions($payload), 'ApiClients\Client\GitHub\Schema\WebhookIssuesOpened\Changes\OldIssue\PullRequest' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesOpened⚡️Changes⚡️OldIssue⚡️PullRequest($payload), 'ApiClients\Client\GitHub\Schema\WebhookIssuesOpened\Changes\OldIssue\Reactions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesOpened⚡️Changes⚡️OldIssue⚡️Reactions($payload), + 'ApiClients\Client\GitHub\Schema\WebhookIssuesOpened\Changes\OldIssue\SubIssuesSummary' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesOpened⚡️Changes⚡️OldIssue⚡️SubIssuesSummary($payload), 'ApiClients\Client\GitHub\Schema\WebhookIssuesOpened\Changes\OldIssue\User' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesOpened⚡️Changes⚡️OldIssue⚡️User($payload), 'ApiClients\Client\GitHub\Schema\WebhookIssuesOpened\Changes\OldRepository' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesOpened⚡️Changes⚡️OldRepository($payload), 'ApiClients\Client\GitHub\Schema\WebhookIssuesOpened\Changes\OldRepository\License' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesOpened⚡️Changes⚡️OldRepository⚡️License($payload), @@ -217,6 +227,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\WebhookIssuesOpened\Issue\PerformedViaGithubApp\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesOpened⚡️Issue⚡️PerformedViaGithubApp⚡️Permissions($payload), 'ApiClients\Client\GitHub\Schema\WebhookIssuesOpened\Issue\PullRequest' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesOpened⚡️Issue⚡️PullRequest($payload), 'ApiClients\Client\GitHub\Schema\WebhookIssuesOpened\Issue\Reactions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesOpened⚡️Issue⚡️Reactions($payload), + 'ApiClients\Client\GitHub\Schema\WebhookIssuesOpened\Issue\SubIssuesSummary' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesOpened⚡️Issue⚡️SubIssuesSummary($payload), 'ApiClients\Client\GitHub\Schema\WebhookIssuesOpened\Issue\User' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesOpened⚡️Issue⚡️User($payload), 'ApiClients\Client\GitHub\Schema\WebhookIssuesPinned' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesPinned($payload), 'ApiClients\Client\GitHub\Schema\WebhooksIssue2' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksIssue2($payload), @@ -228,6 +239,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\WebhooksIssue2\PerformedViaGithubApp\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksIssue2⚡️PerformedViaGithubApp⚡️Permissions($payload), 'ApiClients\Client\GitHub\Schema\WebhooksIssue2\PullRequest' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksIssue2⚡️PullRequest($payload), 'ApiClients\Client\GitHub\Schema\WebhooksIssue2\Reactions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksIssue2⚡️Reactions($payload), + 'ApiClients\Client\GitHub\Schema\WebhooksIssue2\SubIssuesSummary' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksIssue2⚡️SubIssuesSummary($payload), 'ApiClients\Client\GitHub\Schema\WebhooksIssue2\User' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksIssue2⚡️User($payload), 'ApiClients\Client\GitHub\Schema\WebhookIssuesReopened' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesReopened($payload), 'ApiClients\Client\GitHub\Schema\WebhookIssuesReopened\Issue' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesReopened⚡️Issue($payload), @@ -239,6 +251,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\WebhookIssuesReopened\Issue\PerformedViaGithubApp\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesReopened⚡️Issue⚡️PerformedViaGithubApp⚡️Permissions($payload), 'ApiClients\Client\GitHub\Schema\WebhookIssuesReopened\Issue\PullRequest' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesReopened⚡️Issue⚡️PullRequest($payload), 'ApiClients\Client\GitHub\Schema\WebhookIssuesReopened\Issue\Reactions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesReopened⚡️Issue⚡️Reactions($payload), + 'ApiClients\Client\GitHub\Schema\WebhookIssuesReopened\Issue\SubIssuesSummary' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesReopened⚡️Issue⚡️SubIssuesSummary($payload), 'ApiClients\Client\GitHub\Schema\WebhookIssuesReopened\Issue\User' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesReopened⚡️Issue⚡️User($payload), 'ApiClients\Client\GitHub\Schema\WebhookIssuesTransferred' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesTransferred($payload), 'ApiClients\Client\GitHub\Schema\WebhookIssuesTransferred\Changes' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesTransferred⚡️Changes($payload), @@ -251,6 +264,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\WebhookIssuesTransferred\Changes\NewIssue\PerformedViaGithubApp\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesTransferred⚡️Changes⚡️NewIssue⚡️PerformedViaGithubApp⚡️Permissions($payload), 'ApiClients\Client\GitHub\Schema\WebhookIssuesTransferred\Changes\NewIssue\PullRequest' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesTransferred⚡️Changes⚡️NewIssue⚡️PullRequest($payload), 'ApiClients\Client\GitHub\Schema\WebhookIssuesTransferred\Changes\NewIssue\Reactions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesTransferred⚡️Changes⚡️NewIssue⚡️Reactions($payload), + 'ApiClients\Client\GitHub\Schema\WebhookIssuesTransferred\Changes\NewIssue\SubIssuesSummary' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesTransferred⚡️Changes⚡️NewIssue⚡️SubIssuesSummary($payload), 'ApiClients\Client\GitHub\Schema\WebhookIssuesTransferred\Changes\NewIssue\User' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesTransferred⚡️Changes⚡️NewIssue⚡️User($payload), 'ApiClients\Client\GitHub\Schema\WebhookIssuesTransferred\Changes\NewRepository' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesTransferred⚡️Changes⚡️NewRepository($payload), 'ApiClients\Client\GitHub\Schema\WebhookIssuesTransferred\Changes\NewRepository\License' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesTransferred⚡️Changes⚡️NewRepository⚡️License($payload), @@ -269,6 +283,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\WebhookIssuesUnlocked\Issue\PerformedViaGithubApp\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesUnlocked⚡️Issue⚡️PerformedViaGithubApp⚡️Permissions($payload), 'ApiClients\Client\GitHub\Schema\WebhookIssuesUnlocked\Issue\PullRequest' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesUnlocked⚡️Issue⚡️PullRequest($payload), 'ApiClients\Client\GitHub\Schema\WebhookIssuesUnlocked\Issue\Reactions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesUnlocked⚡️Issue⚡️Reactions($payload), + 'ApiClients\Client\GitHub\Schema\WebhookIssuesUnlocked\Issue\SubIssuesSummary' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesUnlocked⚡️Issue⚡️SubIssuesSummary($payload), 'ApiClients\Client\GitHub\Schema\WebhookIssuesUnlocked\Issue\User' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesUnlocked⚡️Issue⚡️User($payload), 'ApiClients\Client\GitHub\Schema\WebhookIssuesUnpinned' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesUnpinned($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\CustomProperties' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($payload), @@ -1182,6 +1197,26 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh after_repositoryUrl: + $value = $payload['sub_issues_summary'] ?? null; + + if ($value === null) { + $properties['subIssuesSummary'] = null; + goto after_subIssuesSummary; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'subIssuesSummary'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksIssue⚡️SubIssuesSummary($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['subIssuesSummary'] = $value; + + after_subIssuesSummary: + $value = $payload['state'] ?? null; if ($value === null) { @@ -3045,6 +3080,58 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh } } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksIssue⚡️SubIssuesSummary(array $payload): SubIssuesSummary + { + $properties = []; + $missingFields = []; + try { + $value = $payload['total'] ?? null; + + if ($value === null) { + $missingFields[] = 'total'; + goto after_total; + } + + $properties['total'] = $value; + + after_total: + + $value = $payload['completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'completed'; + goto after_completed; + } + + $properties['completed'] = $value; + + after_completed: + + $value = $payload['percent_completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'percent_completed'; + goto after_percentCompleted; + } + + $properties['percentCompleted'] = $value; + + after_percentCompleted: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\WebhooksIssue\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(SubIssuesSummary::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new SubIssuesSummary(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\WebhooksIssue\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksIssue⚡️User(array $payload): User { $properties = []; @@ -6788,6 +6875,26 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh after_repositoryUrl: + $value = $payload['sub_issues_summary'] ?? null; + + if ($value === null) { + $properties['subIssuesSummary'] = null; + goto after_subIssuesSummary; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'subIssuesSummary'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesClosed⚡️Issue⚡️SubIssuesSummary($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['subIssuesSummary'] = $value; + + after_subIssuesSummary: + $value = $payload['state'] ?? null; if ($value === null) { @@ -8651,6 +8758,58 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh } } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesClosed⚡️Issue⚡️SubIssuesSummary(array $payload): \ApiClients\Client\GitHub\Schema\WebhookIssuesClosed\Issue\SubIssuesSummary + { + $properties = []; + $missingFields = []; + try { + $value = $payload['total'] ?? null; + + if ($value === null) { + $missingFields[] = 'total'; + goto after_total; + } + + $properties['total'] = $value; + + after_total: + + $value = $payload['completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'completed'; + goto after_completed; + } + + $properties['completed'] = $value; + + after_completed: + + $value = $payload['percent_completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'percent_completed'; + goto after_percentCompleted; + } + + $properties['percentCompleted'] = $value; + + after_percentCompleted: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\WebhookIssuesClosed\Issue\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\GitHub\Schema\WebhookIssuesClosed\Issue\SubIssuesSummary::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\GitHub\Schema\WebhookIssuesClosed\Issue\SubIssuesSummary(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\WebhookIssuesClosed\Issue\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesClosed⚡️Issue⚡️User(array $payload): \ApiClients\Client\GitHub\Schema\WebhookIssuesClosed\Issue\User { $properties = []; @@ -9365,6 +9524,26 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh after_repositoryUrl: + $value = $payload['sub_issues_summary'] ?? null; + + if ($value === null) { + $properties['subIssuesSummary'] = null; + goto after_subIssuesSummary; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'subIssuesSummary'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesDeleted⚡️Issue⚡️SubIssuesSummary($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['subIssuesSummary'] = $value; + + after_subIssuesSummary: + $value = $payload['state'] ?? null; if ($value === null) { @@ -11228,6 +11407,58 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh } } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesDeleted⚡️Issue⚡️SubIssuesSummary(array $payload): \ApiClients\Client\GitHub\Schema\WebhookIssuesDeleted\Issue\SubIssuesSummary + { + $properties = []; + $missingFields = []; + try { + $value = $payload['total'] ?? null; + + if ($value === null) { + $missingFields[] = 'total'; + goto after_total; + } + + $properties['total'] = $value; + + after_total: + + $value = $payload['completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'completed'; + goto after_completed; + } + + $properties['completed'] = $value; + + after_completed: + + $value = $payload['percent_completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'percent_completed'; + goto after_percentCompleted; + } + + $properties['percentCompleted'] = $value; + + after_percentCompleted: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\WebhookIssuesDeleted\Issue\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\GitHub\Schema\WebhookIssuesDeleted\Issue\SubIssuesSummary::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\GitHub\Schema\WebhookIssuesDeleted\Issue\SubIssuesSummary(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\WebhookIssuesDeleted\Issue\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesDeleted⚡️Issue⚡️User(array $payload): \ApiClients\Client\GitHub\Schema\WebhookIssuesDeleted\Issue\User { $properties = []; @@ -11962,6 +12193,26 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh after_repositoryUrl: + $value = $payload['sub_issues_summary'] ?? null; + + if ($value === null) { + $properties['subIssuesSummary'] = null; + goto after_subIssuesSummary; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'subIssuesSummary'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesDemilestoned⚡️Issue⚡️SubIssuesSummary($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['subIssuesSummary'] = $value; + + after_subIssuesSummary: + $value = $payload['state'] ?? null; if ($value === null) { @@ -13814,6 +14065,58 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh } } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesDemilestoned⚡️Issue⚡️SubIssuesSummary(array $payload): \ApiClients\Client\GitHub\Schema\WebhookIssuesDemilestoned\Issue\SubIssuesSummary + { + $properties = []; + $missingFields = []; + try { + $value = $payload['total'] ?? null; + + if ($value === null) { + $missingFields[] = 'total'; + goto after_total; + } + + $properties['total'] = $value; + + after_total: + + $value = $payload['completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'completed'; + goto after_completed; + } + + $properties['completed'] = $value; + + after_completed: + + $value = $payload['percent_completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'percent_completed'; + goto after_percentCompleted; + } + + $properties['percentCompleted'] = $value; + + after_percentCompleted: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\WebhookIssuesDemilestoned\Issue\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\GitHub\Schema\WebhookIssuesDemilestoned\Issue\SubIssuesSummary::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\GitHub\Schema\WebhookIssuesDemilestoned\Issue\SubIssuesSummary(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\WebhookIssuesDemilestoned\Issue\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesDemilestoned⚡️Issue⚡️User(array $payload): \ApiClients\Client\GitHub\Schema\WebhookIssuesDemilestoned\Issue\User { $properties = []; @@ -15152,6 +15455,26 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh after_repositoryUrl: + $value = $payload['sub_issues_summary'] ?? null; + + if ($value === null) { + $properties['subIssuesSummary'] = null; + goto after_subIssuesSummary; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'subIssuesSummary'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesEdited⚡️Issue⚡️SubIssuesSummary($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['subIssuesSummary'] = $value; + + after_subIssuesSummary: + $value = $payload['state'] ?? null; if ($value === null) { @@ -17015,6 +17338,58 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh } } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesEdited⚡️Issue⚡️SubIssuesSummary(array $payload): \ApiClients\Client\GitHub\Schema\WebhookIssuesEdited\Issue\SubIssuesSummary + { + $properties = []; + $missingFields = []; + try { + $value = $payload['total'] ?? null; + + if ($value === null) { + $missingFields[] = 'total'; + goto after_total; + } + + $properties['total'] = $value; + + after_total: + + $value = $payload['completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'completed'; + goto after_completed; + } + + $properties['completed'] = $value; + + after_completed: + + $value = $payload['percent_completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'percent_completed'; + goto after_percentCompleted; + } + + $properties['percentCompleted'] = $value; + + after_percentCompleted: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\WebhookIssuesEdited\Issue\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\GitHub\Schema\WebhookIssuesEdited\Issue\SubIssuesSummary::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\GitHub\Schema\WebhookIssuesEdited\Issue\SubIssuesSummary(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\WebhookIssuesEdited\Issue\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesEdited⚡️Issue⚡️User(array $payload): \ApiClients\Client\GitHub\Schema\WebhookIssuesEdited\Issue\User { $properties = []; @@ -17845,6 +18220,26 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh after_repositoryUrl: + $value = $payload['sub_issues_summary'] ?? null; + + if ($value === null) { + $properties['subIssuesSummary'] = null; + goto after_subIssuesSummary; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'subIssuesSummary'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesLabeled⚡️Issue⚡️SubIssuesSummary($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['subIssuesSummary'] = $value; + + after_subIssuesSummary: + $value = $payload['state'] ?? null; if ($value === null) { @@ -19708,6 +20103,58 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh } } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesLabeled⚡️Issue⚡️SubIssuesSummary(array $payload): \ApiClients\Client\GitHub\Schema\WebhookIssuesLabeled\Issue\SubIssuesSummary + { + $properties = []; + $missingFields = []; + try { + $value = $payload['total'] ?? null; + + if ($value === null) { + $missingFields[] = 'total'; + goto after_total; + } + + $properties['total'] = $value; + + after_total: + + $value = $payload['completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'completed'; + goto after_completed; + } + + $properties['completed'] = $value; + + after_completed: + + $value = $payload['percent_completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'percent_completed'; + goto after_percentCompleted; + } + + $properties['percentCompleted'] = $value; + + after_percentCompleted: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\WebhookIssuesLabeled\Issue\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\GitHub\Schema\WebhookIssuesLabeled\Issue\SubIssuesSummary::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\GitHub\Schema\WebhookIssuesLabeled\Issue\SubIssuesSummary(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\WebhookIssuesLabeled\Issue\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesLabeled⚡️Issue⚡️User(array $payload): \ApiClients\Client\GitHub\Schema\WebhookIssuesLabeled\Issue\User { $properties = []; @@ -20422,6 +20869,26 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh after_repositoryUrl: + $value = $payload['sub_issues_summary'] ?? null; + + if ($value === null) { + $properties['subIssuesSummary'] = null; + goto after_subIssuesSummary; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'subIssuesSummary'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesLocked⚡️Issue⚡️SubIssuesSummary($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['subIssuesSummary'] = $value; + + after_subIssuesSummary: + $value = $payload['state'] ?? null; if ($value === null) { @@ -22285,6 +22752,58 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh } } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesLocked⚡️Issue⚡️SubIssuesSummary(array $payload): \ApiClients\Client\GitHub\Schema\WebhookIssuesLocked\Issue\SubIssuesSummary + { + $properties = []; + $missingFields = []; + try { + $value = $payload['total'] ?? null; + + if ($value === null) { + $missingFields[] = 'total'; + goto after_total; + } + + $properties['total'] = $value; + + after_total: + + $value = $payload['completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'completed'; + goto after_completed; + } + + $properties['completed'] = $value; + + after_completed: + + $value = $payload['percent_completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'percent_completed'; + goto after_percentCompleted; + } + + $properties['percentCompleted'] = $value; + + after_percentCompleted: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\WebhookIssuesLocked\Issue\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\GitHub\Schema\WebhookIssuesLocked\Issue\SubIssuesSummary::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\GitHub\Schema\WebhookIssuesLocked\Issue\SubIssuesSummary(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\WebhookIssuesLocked\Issue\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesLocked⚡️Issue⚡️User(array $payload): \ApiClients\Client\GitHub\Schema\WebhookIssuesLocked\Issue\User { $properties = []; @@ -23019,6 +23538,26 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh after_repositoryUrl: + $value = $payload['sub_issues_summary'] ?? null; + + if ($value === null) { + $properties['subIssuesSummary'] = null; + goto after_subIssuesSummary; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'subIssuesSummary'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesMilestoned⚡️Issue⚡️SubIssuesSummary($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['subIssuesSummary'] = $value; + + after_subIssuesSummary: + $value = $payload['state'] ?? null; if ($value === null) { @@ -24871,6 +25410,58 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh } } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesMilestoned⚡️Issue⚡️SubIssuesSummary(array $payload): \ApiClients\Client\GitHub\Schema\WebhookIssuesMilestoned\Issue\SubIssuesSummary + { + $properties = []; + $missingFields = []; + try { + $value = $payload['total'] ?? null; + + if ($value === null) { + $missingFields[] = 'total'; + goto after_total; + } + + $properties['total'] = $value; + + after_total: + + $value = $payload['completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'completed'; + goto after_completed; + } + + $properties['completed'] = $value; + + after_completed: + + $value = $payload['percent_completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'percent_completed'; + goto after_percentCompleted; + } + + $properties['percentCompleted'] = $value; + + after_percentCompleted: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\WebhookIssuesMilestoned\Issue\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\GitHub\Schema\WebhookIssuesMilestoned\Issue\SubIssuesSummary::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\GitHub\Schema\WebhookIssuesMilestoned\Issue\SubIssuesSummary(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\WebhookIssuesMilestoned\Issue\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesMilestoned⚡️Issue⚡️User(array $payload): \ApiClients\Client\GitHub\Schema\WebhookIssuesMilestoned\Issue\User { $properties = []; @@ -25664,6 +26255,26 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh after_repositoryUrl: + $value = $payload['sub_issues_summary'] ?? null; + + if ($value === null) { + $properties['subIssuesSummary'] = null; + goto after_subIssuesSummary; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'subIssuesSummary'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesOpened⚡️Changes⚡️OldIssue⚡️SubIssuesSummary($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['subIssuesSummary'] = $value; + + after_subIssuesSummary: + $value = $payload['state'] ?? null; if ($value === null) { @@ -27527,6 +28138,58 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh } } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesOpened⚡️Changes⚡️OldIssue⚡️SubIssuesSummary(array $payload): \ApiClients\Client\GitHub\Schema\WebhookIssuesOpened\Changes\OldIssue\SubIssuesSummary + { + $properties = []; + $missingFields = []; + try { + $value = $payload['total'] ?? null; + + if ($value === null) { + $missingFields[] = 'total'; + goto after_total; + } + + $properties['total'] = $value; + + after_total: + + $value = $payload['completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'completed'; + goto after_completed; + } + + $properties['completed'] = $value; + + after_completed: + + $value = $payload['percent_completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'percent_completed'; + goto after_percentCompleted; + } + + $properties['percentCompleted'] = $value; + + after_percentCompleted: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\WebhookIssuesOpened\Changes\OldIssue\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\GitHub\Schema\WebhookIssuesOpened\Changes\OldIssue\SubIssuesSummary::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\GitHub\Schema\WebhookIssuesOpened\Changes\OldIssue\SubIssuesSummary(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\WebhookIssuesOpened\Changes\OldIssue\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesOpened⚡️Changes⚡️OldIssue⚡️User(array $payload): \ApiClients\Client\GitHub\Schema\WebhookIssuesOpened\Changes\OldIssue\User { $properties = []; @@ -29567,6 +30230,26 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh after_repositoryUrl: + $value = $payload['sub_issues_summary'] ?? null; + + if ($value === null) { + $properties['subIssuesSummary'] = null; + goto after_subIssuesSummary; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'subIssuesSummary'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesOpened⚡️Issue⚡️SubIssuesSummary($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['subIssuesSummary'] = $value; + + after_subIssuesSummary: + $value = $payload['state'] ?? null; if ($value === null) { @@ -31430,6 +32113,58 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh } } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesOpened⚡️Issue⚡️SubIssuesSummary(array $payload): \ApiClients\Client\GitHub\Schema\WebhookIssuesOpened\Issue\SubIssuesSummary + { + $properties = []; + $missingFields = []; + try { + $value = $payload['total'] ?? null; + + if ($value === null) { + $missingFields[] = 'total'; + goto after_total; + } + + $properties['total'] = $value; + + after_total: + + $value = $payload['completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'completed'; + goto after_completed; + } + + $properties['completed'] = $value; + + after_completed: + + $value = $payload['percent_completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'percent_completed'; + goto after_percentCompleted; + } + + $properties['percentCompleted'] = $value; + + after_percentCompleted: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\WebhookIssuesOpened\Issue\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\GitHub\Schema\WebhookIssuesOpened\Issue\SubIssuesSummary::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\GitHub\Schema\WebhookIssuesOpened\Issue\SubIssuesSummary(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\WebhookIssuesOpened\Issue\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesOpened⚡️Issue⚡️User(array $payload): \ApiClients\Client\GitHub\Schema\WebhookIssuesOpened\Issue\User { $properties = []; @@ -32144,6 +32879,26 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh after_repositoryUrl: + $value = $payload['sub_issues_summary'] ?? null; + + if ($value === null) { + $properties['subIssuesSummary'] = null; + goto after_subIssuesSummary; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'subIssuesSummary'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksIssue2⚡️SubIssuesSummary($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['subIssuesSummary'] = $value; + + after_subIssuesSummary: + $value = $payload['state'] ?? null; if ($value === null) { @@ -34007,6 +34762,58 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh } } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksIssue2⚡️SubIssuesSummary(array $payload): \ApiClients\Client\GitHub\Schema\WebhooksIssue2\SubIssuesSummary + { + $properties = []; + $missingFields = []; + try { + $value = $payload['total'] ?? null; + + if ($value === null) { + $missingFields[] = 'total'; + goto after_total; + } + + $properties['total'] = $value; + + after_total: + + $value = $payload['completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'completed'; + goto after_completed; + } + + $properties['completed'] = $value; + + after_completed: + + $value = $payload['percent_completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'percent_completed'; + goto after_percentCompleted; + } + + $properties['percentCompleted'] = $value; + + after_percentCompleted: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\WebhooksIssue2\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\GitHub\Schema\WebhooksIssue2\SubIssuesSummary::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\GitHub\Schema\WebhooksIssue2\SubIssuesSummary(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\WebhooksIssue2\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksIssue2⚡️User(array $payload): \ApiClients\Client\GitHub\Schema\WebhooksIssue2\User { $properties = []; @@ -34721,6 +35528,26 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh after_repositoryUrl: + $value = $payload['sub_issues_summary'] ?? null; + + if ($value === null) { + $properties['subIssuesSummary'] = null; + goto after_subIssuesSummary; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'subIssuesSummary'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesReopened⚡️Issue⚡️SubIssuesSummary($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['subIssuesSummary'] = $value; + + after_subIssuesSummary: + $value = $payload['state'] ?? null; if ($value === null) { @@ -36573,6 +37400,58 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh } } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesReopened⚡️Issue⚡️SubIssuesSummary(array $payload): \ApiClients\Client\GitHub\Schema\WebhookIssuesReopened\Issue\SubIssuesSummary + { + $properties = []; + $missingFields = []; + try { + $value = $payload['total'] ?? null; + + if ($value === null) { + $missingFields[] = 'total'; + goto after_total; + } + + $properties['total'] = $value; + + after_total: + + $value = $payload['completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'completed'; + goto after_completed; + } + + $properties['completed'] = $value; + + after_completed: + + $value = $payload['percent_completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'percent_completed'; + goto after_percentCompleted; + } + + $properties['percentCompleted'] = $value; + + after_percentCompleted: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\WebhookIssuesReopened\Issue\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\GitHub\Schema\WebhookIssuesReopened\Issue\SubIssuesSummary::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\GitHub\Schema\WebhookIssuesReopened\Issue\SubIssuesSummary(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\WebhookIssuesReopened\Issue\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesReopened⚡️Issue⚡️User(array $payload): \ApiClients\Client\GitHub\Schema\WebhookIssuesReopened\Issue\User { $properties = []; @@ -37366,6 +38245,26 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh after_repositoryUrl: + $value = $payload['sub_issues_summary'] ?? null; + + if ($value === null) { + $properties['subIssuesSummary'] = null; + goto after_subIssuesSummary; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'subIssuesSummary'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksIssue2⚡️SubIssuesSummary($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['subIssuesSummary'] = $value; + + after_subIssuesSummary: + $value = $payload['state'] ?? null; if ($value === null) { @@ -39229,6 +40128,58 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh } } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesTransferred⚡️Changes⚡️NewIssue⚡️SubIssuesSummary(array $payload): \ApiClients\Client\GitHub\Schema\WebhookIssuesTransferred\Changes\NewIssue\SubIssuesSummary + { + $properties = []; + $missingFields = []; + try { + $value = $payload['total'] ?? null; + + if ($value === null) { + $missingFields[] = 'total'; + goto after_total; + } + + $properties['total'] = $value; + + after_total: + + $value = $payload['completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'completed'; + goto after_completed; + } + + $properties['completed'] = $value; + + after_completed: + + $value = $payload['percent_completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'percent_completed'; + goto after_percentCompleted; + } + + $properties['percentCompleted'] = $value; + + after_percentCompleted: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\WebhookIssuesTransferred\Changes\NewIssue\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\GitHub\Schema\WebhookIssuesTransferred\Changes\NewIssue\SubIssuesSummary::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\GitHub\Schema\WebhookIssuesTransferred\Changes\NewIssue\SubIssuesSummary(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\WebhookIssuesTransferred\Changes\NewIssue\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesTransferred⚡️Changes⚡️NewIssue⚡️User(array $payload): \ApiClients\Client\GitHub\Schema\WebhookIssuesTransferred\Changes\NewIssue\User { $properties = []; @@ -42020,6 +42971,26 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh after_repositoryUrl: + $value = $payload['sub_issues_summary'] ?? null; + + if ($value === null) { + $properties['subIssuesSummary'] = null; + goto after_subIssuesSummary; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'subIssuesSummary'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesUnlocked⚡️Issue⚡️SubIssuesSummary($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['subIssuesSummary'] = $value; + + after_subIssuesSummary: + $value = $payload['state'] ?? null; if ($value === null) { @@ -43883,6 +44854,58 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh } } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesUnlocked⚡️Issue⚡️SubIssuesSummary(array $payload): \ApiClients\Client\GitHub\Schema\WebhookIssuesUnlocked\Issue\SubIssuesSummary + { + $properties = []; + $missingFields = []; + try { + $value = $payload['total'] ?? null; + + if ($value === null) { + $missingFields[] = 'total'; + goto after_total; + } + + $properties['total'] = $value; + + after_total: + + $value = $payload['completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'completed'; + goto after_completed; + } + + $properties['completed'] = $value; + + after_completed: + + $value = $payload['percent_completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'percent_completed'; + goto after_percentCompleted; + } + + $properties['percentCompleted'] = $value; + + after_percentCompleted: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\WebhookIssuesUnlocked\Issue\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\GitHub\Schema\WebhookIssuesUnlocked\Issue\SubIssuesSummary::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\GitHub\Schema\WebhookIssuesUnlocked\Issue\SubIssuesSummary(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\WebhookIssuesUnlocked\Issue\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesUnlocked⚡️Issue⚡️User(array $payload): \ApiClients\Client\GitHub\Schema\WebhookIssuesUnlocked\Issue\User { $properties = []; @@ -44398,6 +45421,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\WebhooksIssue\PerformedViaGithubApp\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksIssue⚡️PerformedViaGithubApp⚡️Permissions($object), 'ApiClients\Client\GitHub\Schema\WebhooksIssue\PullRequest' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksIssue⚡️PullRequest($object), 'ApiClients\Client\GitHub\Schema\WebhooksIssue\Reactions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksIssue⚡️Reactions($object), + 'ApiClients\Client\GitHub\Schema\WebhooksIssue\SubIssuesSummary' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksIssue⚡️SubIssuesSummary($object), 'ApiClients\Client\GitHub\Schema\WebhooksIssue\User' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksIssue⚡️User($object), 'ApiClients\Client\GitHub\Schema\OrganizationSimpleWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️OrganizationSimpleWebhooks($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks($object), @@ -44417,6 +45441,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\WebhookIssuesClosed\Issue\PerformedViaGithubApp\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesClosed⚡️Issue⚡️PerformedViaGithubApp⚡️Permissions($object), 'ApiClients\Client\GitHub\Schema\WebhookIssuesClosed\Issue\PullRequest' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesClosed⚡️Issue⚡️PullRequest($object), 'ApiClients\Client\GitHub\Schema\WebhookIssuesClosed\Issue\Reactions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesClosed⚡️Issue⚡️Reactions($object), + 'ApiClients\Client\GitHub\Schema\WebhookIssuesClosed\Issue\SubIssuesSummary' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesClosed⚡️Issue⚡️SubIssuesSummary($object), 'ApiClients\Client\GitHub\Schema\WebhookIssuesClosed\Issue\User' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesClosed⚡️Issue⚡️User($object), 'ApiClients\Client\GitHub\Schema\WebhookIssuesDeleted' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesDeleted($object), 'ApiClients\Client\GitHub\Schema\WebhookIssuesDeleted\Issue' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesDeleted⚡️Issue($object), @@ -44428,6 +45453,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\WebhookIssuesDeleted\Issue\PerformedViaGithubApp\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesDeleted⚡️Issue⚡️PerformedViaGithubApp⚡️Permissions($object), 'ApiClients\Client\GitHub\Schema\WebhookIssuesDeleted\Issue\PullRequest' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesDeleted⚡️Issue⚡️PullRequest($object), 'ApiClients\Client\GitHub\Schema\WebhookIssuesDeleted\Issue\Reactions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesDeleted⚡️Issue⚡️Reactions($object), + 'ApiClients\Client\GitHub\Schema\WebhookIssuesDeleted\Issue\SubIssuesSummary' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesDeleted⚡️Issue⚡️SubIssuesSummary($object), 'ApiClients\Client\GitHub\Schema\WebhookIssuesDeleted\Issue\User' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesDeleted⚡️Issue⚡️User($object), 'ApiClients\Client\GitHub\Schema\WebhookIssuesDemilestoned' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesDemilestoned($object), 'ApiClients\Client\GitHub\Schema\WebhookIssuesDemilestoned\Issue' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesDemilestoned⚡️Issue($object), @@ -44439,6 +45465,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\WebhookIssuesDemilestoned\Issue\PerformedViaGithubApp\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesDemilestoned⚡️Issue⚡️PerformedViaGithubApp⚡️Permissions($object), 'ApiClients\Client\GitHub\Schema\WebhookIssuesDemilestoned\Issue\PullRequest' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesDemilestoned⚡️Issue⚡️PullRequest($object), 'ApiClients\Client\GitHub\Schema\WebhookIssuesDemilestoned\Issue\Reactions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesDemilestoned⚡️Issue⚡️Reactions($object), + 'ApiClients\Client\GitHub\Schema\WebhookIssuesDemilestoned\Issue\SubIssuesSummary' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesDemilestoned⚡️Issue⚡️SubIssuesSummary($object), 'ApiClients\Client\GitHub\Schema\WebhookIssuesDemilestoned\Issue\User' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesDemilestoned⚡️Issue⚡️User($object), 'ApiClients\Client\GitHub\Schema\WebhooksMilestone' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksMilestone($object), 'ApiClients\Client\GitHub\Schema\WebhooksMilestone\Creator' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksMilestone⚡️Creator($object), @@ -44455,6 +45482,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\WebhookIssuesEdited\Issue\PerformedViaGithubApp\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesEdited⚡️Issue⚡️PerformedViaGithubApp⚡️Permissions($object), 'ApiClients\Client\GitHub\Schema\WebhookIssuesEdited\Issue\PullRequest' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesEdited⚡️Issue⚡️PullRequest($object), 'ApiClients\Client\GitHub\Schema\WebhookIssuesEdited\Issue\Reactions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesEdited⚡️Issue⚡️Reactions($object), + 'ApiClients\Client\GitHub\Schema\WebhookIssuesEdited\Issue\SubIssuesSummary' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesEdited⚡️Issue⚡️SubIssuesSummary($object), 'ApiClients\Client\GitHub\Schema\WebhookIssuesEdited\Issue\User' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesEdited⚡️Issue⚡️User($object), 'ApiClients\Client\GitHub\Schema\WebhooksLabel' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksLabel($object), 'ApiClients\Client\GitHub\Schema\WebhookIssuesLabeled' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesLabeled($object), @@ -44467,6 +45495,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\WebhookIssuesLabeled\Issue\PerformedViaGithubApp\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesLabeled⚡️Issue⚡️PerformedViaGithubApp⚡️Permissions($object), 'ApiClients\Client\GitHub\Schema\WebhookIssuesLabeled\Issue\PullRequest' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesLabeled⚡️Issue⚡️PullRequest($object), 'ApiClients\Client\GitHub\Schema\WebhookIssuesLabeled\Issue\Reactions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesLabeled⚡️Issue⚡️Reactions($object), + 'ApiClients\Client\GitHub\Schema\WebhookIssuesLabeled\Issue\SubIssuesSummary' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesLabeled⚡️Issue⚡️SubIssuesSummary($object), 'ApiClients\Client\GitHub\Schema\WebhookIssuesLabeled\Issue\User' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesLabeled⚡️Issue⚡️User($object), 'ApiClients\Client\GitHub\Schema\WebhookIssuesLocked' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesLocked($object), 'ApiClients\Client\GitHub\Schema\WebhookIssuesLocked\Issue' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesLocked⚡️Issue($object), @@ -44478,6 +45507,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\WebhookIssuesLocked\Issue\PerformedViaGithubApp\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesLocked⚡️Issue⚡️PerformedViaGithubApp⚡️Permissions($object), 'ApiClients\Client\GitHub\Schema\WebhookIssuesLocked\Issue\PullRequest' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesLocked⚡️Issue⚡️PullRequest($object), 'ApiClients\Client\GitHub\Schema\WebhookIssuesLocked\Issue\Reactions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesLocked⚡️Issue⚡️Reactions($object), + 'ApiClients\Client\GitHub\Schema\WebhookIssuesLocked\Issue\SubIssuesSummary' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesLocked⚡️Issue⚡️SubIssuesSummary($object), 'ApiClients\Client\GitHub\Schema\WebhookIssuesLocked\Issue\User' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesLocked⚡️Issue⚡️User($object), 'ApiClients\Client\GitHub\Schema\WebhookIssuesMilestoned' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesMilestoned($object), 'ApiClients\Client\GitHub\Schema\WebhookIssuesMilestoned\Issue' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesMilestoned⚡️Issue($object), @@ -44489,6 +45519,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\WebhookIssuesMilestoned\Issue\PerformedViaGithubApp\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesMilestoned⚡️Issue⚡️PerformedViaGithubApp⚡️Permissions($object), 'ApiClients\Client\GitHub\Schema\WebhookIssuesMilestoned\Issue\PullRequest' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesMilestoned⚡️Issue⚡️PullRequest($object), 'ApiClients\Client\GitHub\Schema\WebhookIssuesMilestoned\Issue\Reactions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesMilestoned⚡️Issue⚡️Reactions($object), + 'ApiClients\Client\GitHub\Schema\WebhookIssuesMilestoned\Issue\SubIssuesSummary' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesMilestoned⚡️Issue⚡️SubIssuesSummary($object), 'ApiClients\Client\GitHub\Schema\WebhookIssuesMilestoned\Issue\User' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesMilestoned⚡️Issue⚡️User($object), 'ApiClients\Client\GitHub\Schema\WebhookIssuesOpened' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesOpened($object), 'ApiClients\Client\GitHub\Schema\WebhookIssuesOpened\Changes' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesOpened⚡️Changes($object), @@ -44501,6 +45532,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\WebhookIssuesOpened\Changes\OldIssue\PerformedViaGithubApp\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesOpened⚡️Changes⚡️OldIssue⚡️PerformedViaGithubApp⚡️Permissions($object), 'ApiClients\Client\GitHub\Schema\WebhookIssuesOpened\Changes\OldIssue\PullRequest' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesOpened⚡️Changes⚡️OldIssue⚡️PullRequest($object), 'ApiClients\Client\GitHub\Schema\WebhookIssuesOpened\Changes\OldIssue\Reactions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesOpened⚡️Changes⚡️OldIssue⚡️Reactions($object), + 'ApiClients\Client\GitHub\Schema\WebhookIssuesOpened\Changes\OldIssue\SubIssuesSummary' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesOpened⚡️Changes⚡️OldIssue⚡️SubIssuesSummary($object), 'ApiClients\Client\GitHub\Schema\WebhookIssuesOpened\Changes\OldIssue\User' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesOpened⚡️Changes⚡️OldIssue⚡️User($object), 'ApiClients\Client\GitHub\Schema\WebhookIssuesOpened\Changes\OldRepository' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesOpened⚡️Changes⚡️OldRepository($object), 'ApiClients\Client\GitHub\Schema\WebhookIssuesOpened\Changes\OldRepository\License' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesOpened⚡️Changes⚡️OldRepository⚡️License($object), @@ -44515,6 +45547,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\WebhookIssuesOpened\Issue\PerformedViaGithubApp\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesOpened⚡️Issue⚡️PerformedViaGithubApp⚡️Permissions($object), 'ApiClients\Client\GitHub\Schema\WebhookIssuesOpened\Issue\PullRequest' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesOpened⚡️Issue⚡️PullRequest($object), 'ApiClients\Client\GitHub\Schema\WebhookIssuesOpened\Issue\Reactions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesOpened⚡️Issue⚡️Reactions($object), + 'ApiClients\Client\GitHub\Schema\WebhookIssuesOpened\Issue\SubIssuesSummary' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesOpened⚡️Issue⚡️SubIssuesSummary($object), 'ApiClients\Client\GitHub\Schema\WebhookIssuesOpened\Issue\User' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesOpened⚡️Issue⚡️User($object), 'ApiClients\Client\GitHub\Schema\WebhookIssuesPinned' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesPinned($object), 'ApiClients\Client\GitHub\Schema\WebhooksIssue2' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksIssue2($object), @@ -44526,6 +45559,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\WebhooksIssue2\PerformedViaGithubApp\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksIssue2⚡️PerformedViaGithubApp⚡️Permissions($object), 'ApiClients\Client\GitHub\Schema\WebhooksIssue2\PullRequest' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksIssue2⚡️PullRequest($object), 'ApiClients\Client\GitHub\Schema\WebhooksIssue2\Reactions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksIssue2⚡️Reactions($object), + 'ApiClients\Client\GitHub\Schema\WebhooksIssue2\SubIssuesSummary' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksIssue2⚡️SubIssuesSummary($object), 'ApiClients\Client\GitHub\Schema\WebhooksIssue2\User' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksIssue2⚡️User($object), 'ApiClients\Client\GitHub\Schema\WebhookIssuesReopened' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesReopened($object), 'ApiClients\Client\GitHub\Schema\WebhookIssuesReopened\Issue' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesReopened⚡️Issue($object), @@ -44537,6 +45571,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\WebhookIssuesReopened\Issue\PerformedViaGithubApp\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesReopened⚡️Issue⚡️PerformedViaGithubApp⚡️Permissions($object), 'ApiClients\Client\GitHub\Schema\WebhookIssuesReopened\Issue\PullRequest' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesReopened⚡️Issue⚡️PullRequest($object), 'ApiClients\Client\GitHub\Schema\WebhookIssuesReopened\Issue\Reactions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesReopened⚡️Issue⚡️Reactions($object), + 'ApiClients\Client\GitHub\Schema\WebhookIssuesReopened\Issue\SubIssuesSummary' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesReopened⚡️Issue⚡️SubIssuesSummary($object), 'ApiClients\Client\GitHub\Schema\WebhookIssuesReopened\Issue\User' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesReopened⚡️Issue⚡️User($object), 'ApiClients\Client\GitHub\Schema\WebhookIssuesTransferred' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesTransferred($object), 'ApiClients\Client\GitHub\Schema\WebhookIssuesTransferred\Changes' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesTransferred⚡️Changes($object), @@ -44549,6 +45584,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\WebhookIssuesTransferred\Changes\NewIssue\PerformedViaGithubApp\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesTransferred⚡️Changes⚡️NewIssue⚡️PerformedViaGithubApp⚡️Permissions($object), 'ApiClients\Client\GitHub\Schema\WebhookIssuesTransferred\Changes\NewIssue\PullRequest' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesTransferred⚡️Changes⚡️NewIssue⚡️PullRequest($object), 'ApiClients\Client\GitHub\Schema\WebhookIssuesTransferred\Changes\NewIssue\Reactions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesTransferred⚡️Changes⚡️NewIssue⚡️Reactions($object), + 'ApiClients\Client\GitHub\Schema\WebhookIssuesTransferred\Changes\NewIssue\SubIssuesSummary' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesTransferred⚡️Changes⚡️NewIssue⚡️SubIssuesSummary($object), 'ApiClients\Client\GitHub\Schema\WebhookIssuesTransferred\Changes\NewIssue\User' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesTransferred⚡️Changes⚡️NewIssue⚡️User($object), 'ApiClients\Client\GitHub\Schema\WebhookIssuesTransferred\Changes\NewRepository' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesTransferred⚡️Changes⚡️NewRepository($object), 'ApiClients\Client\GitHub\Schema\WebhookIssuesTransferred\Changes\NewRepository\License' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesTransferred⚡️Changes⚡️NewRepository⚡️License($object), @@ -44567,6 +45603,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\WebhookIssuesUnlocked\Issue\PerformedViaGithubApp\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesUnlocked⚡️Issue⚡️PerformedViaGithubApp⚡️Permissions($object), 'ApiClients\Client\GitHub\Schema\WebhookIssuesUnlocked\Issue\PullRequest' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesUnlocked⚡️Issue⚡️PullRequest($object), 'ApiClients\Client\GitHub\Schema\WebhookIssuesUnlocked\Issue\Reactions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesUnlocked⚡️Issue⚡️Reactions($object), + 'ApiClients\Client\GitHub\Schema\WebhookIssuesUnlocked\Issue\SubIssuesSummary' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesUnlocked⚡️Issue⚡️SubIssuesSummary($object), 'ApiClients\Client\GitHub\Schema\WebhookIssuesUnlocked\Issue\User' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesUnlocked⚡️Issue⚡️User($object), 'ApiClients\Client\GitHub\Schema\WebhookIssuesUnpinned' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesUnpinned($object), default => throw new LogicException("No serialization defined for $className"), @@ -45079,6 +46116,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema $repositoryUrl = $object->repositoryUrl; after_repositoryUrl: $result['repository_url'] = $repositoryUrl; + $subIssuesSummary = $object->subIssuesSummary; + + if ($subIssuesSummary === null) { + goto after_subIssuesSummary; + } + + $subIssuesSummary = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksIssue⚡️SubIssuesSummary($subIssuesSummary); + after_subIssuesSummary: $result['sub_issues_summary'] = $subIssuesSummary; + $state = $object->state; if ($state === null) { @@ -46195,6 +47241,23 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksIssue⚡️SubIssuesSummary(mixed $object): mixed + { + assert($object instanceof SubIssuesSummary); + $result = []; + + $total = $object->total; + after_total: $result['total'] = $total; + + $completed = $object->completed; + after_completed: $result['completed'] = $completed; + + $percentCompleted = $object->percentCompleted; + after_percentCompleted: $result['percent_completed'] = $percentCompleted; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksIssue⚡️User(mixed $object): mixed { assert($object instanceof User); @@ -48193,6 +49256,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema $repositoryUrl = $object->repositoryUrl; after_repositoryUrl: $result['repository_url'] = $repositoryUrl; + $subIssuesSummary = $object->subIssuesSummary; + + if ($subIssuesSummary === null) { + goto after_subIssuesSummary; + } + + $subIssuesSummary = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesClosed⚡️Issue⚡️SubIssuesSummary($subIssuesSummary); + after_subIssuesSummary: $result['sub_issues_summary'] = $subIssuesSummary; + $state = $object->state; if ($state === null) { @@ -49309,6 +50381,23 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesClosed⚡️Issue⚡️SubIssuesSummary(mixed $object): mixed + { + assert($object instanceof \ApiClients\Client\GitHub\Schema\WebhookIssuesClosed\Issue\SubIssuesSummary); + $result = []; + + $total = $object->total; + after_total: $result['total'] = $total; + + $completed = $object->completed; + after_completed: $result['completed'] = $completed; + + $percentCompleted = $object->percentCompleted; + after_percentCompleted: $result['percent_completed'] = $percentCompleted; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesClosed⚡️Issue⚡️User(mixed $object): mixed { assert($object instanceof \ApiClients\Client\GitHub\Schema\WebhookIssuesClosed\Issue\User); @@ -49676,6 +50765,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema $repositoryUrl = $object->repositoryUrl; after_repositoryUrl: $result['repository_url'] = $repositoryUrl; + $subIssuesSummary = $object->subIssuesSummary; + + if ($subIssuesSummary === null) { + goto after_subIssuesSummary; + } + + $subIssuesSummary = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesDeleted⚡️Issue⚡️SubIssuesSummary($subIssuesSummary); + after_subIssuesSummary: $result['sub_issues_summary'] = $subIssuesSummary; + $state = $object->state; if ($state === null) { @@ -50792,6 +51890,23 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesDeleted⚡️Issue⚡️SubIssuesSummary(mixed $object): mixed + { + assert($object instanceof \ApiClients\Client\GitHub\Schema\WebhookIssuesDeleted\Issue\SubIssuesSummary); + $result = []; + + $total = $object->total; + after_total: $result['total'] = $total; + + $completed = $object->completed; + after_completed: $result['completed'] = $completed; + + $percentCompleted = $object->percentCompleted; + after_percentCompleted: $result['percent_completed'] = $percentCompleted; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesDeleted⚡️Issue⚡️User(mixed $object): mixed { assert($object instanceof \ApiClients\Client\GitHub\Schema\WebhookIssuesDeleted\Issue\User); @@ -51168,6 +52283,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema $repositoryUrl = $object->repositoryUrl; after_repositoryUrl: $result['repository_url'] = $repositoryUrl; + $subIssuesSummary = $object->subIssuesSummary; + + if ($subIssuesSummary === null) { + goto after_subIssuesSummary; + } + + $subIssuesSummary = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesDemilestoned⚡️Issue⚡️SubIssuesSummary($subIssuesSummary); + after_subIssuesSummary: $result['sub_issues_summary'] = $subIssuesSummary; + $state = $object->state; if ($state === null) { @@ -52276,6 +53400,23 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesDemilestoned⚡️Issue⚡️SubIssuesSummary(mixed $object): mixed + { + assert($object instanceof \ApiClients\Client\GitHub\Schema\WebhookIssuesDemilestoned\Issue\SubIssuesSummary); + $result = []; + + $total = $object->total; + after_total: $result['total'] = $total; + + $completed = $object->completed; + after_completed: $result['completed'] = $completed; + + $percentCompleted = $object->percentCompleted; + after_percentCompleted: $result['percent_completed'] = $percentCompleted; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesDemilestoned⚡️Issue⚡️User(mixed $object): mixed { assert($object instanceof \ApiClients\Client\GitHub\Schema\WebhookIssuesDemilestoned\Issue\User); @@ -52955,6 +54096,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema $repositoryUrl = $object->repositoryUrl; after_repositoryUrl: $result['repository_url'] = $repositoryUrl; + $subIssuesSummary = $object->subIssuesSummary; + + if ($subIssuesSummary === null) { + goto after_subIssuesSummary; + } + + $subIssuesSummary = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesEdited⚡️Issue⚡️SubIssuesSummary($subIssuesSummary); + after_subIssuesSummary: $result['sub_issues_summary'] = $subIssuesSummary; + $state = $object->state; if ($state === null) { @@ -54071,6 +55221,23 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesEdited⚡️Issue⚡️SubIssuesSummary(mixed $object): mixed + { + assert($object instanceof \ApiClients\Client\GitHub\Schema\WebhookIssuesEdited\Issue\SubIssuesSummary); + $result = []; + + $total = $object->total; + after_total: $result['total'] = $total; + + $completed = $object->completed; + after_completed: $result['completed'] = $completed; + + $percentCompleted = $object->percentCompleted; + after_percentCompleted: $result['percent_completed'] = $percentCompleted; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesEdited⚡️Issue⚡️User(mixed $object): mixed { assert($object instanceof \ApiClients\Client\GitHub\Schema\WebhookIssuesEdited\Issue\User); @@ -54481,6 +55648,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema $repositoryUrl = $object->repositoryUrl; after_repositoryUrl: $result['repository_url'] = $repositoryUrl; + $subIssuesSummary = $object->subIssuesSummary; + + if ($subIssuesSummary === null) { + goto after_subIssuesSummary; + } + + $subIssuesSummary = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesLabeled⚡️Issue⚡️SubIssuesSummary($subIssuesSummary); + after_subIssuesSummary: $result['sub_issues_summary'] = $subIssuesSummary; + $state = $object->state; if ($state === null) { @@ -55597,6 +56773,23 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesLabeled⚡️Issue⚡️SubIssuesSummary(mixed $object): mixed + { + assert($object instanceof \ApiClients\Client\GitHub\Schema\WebhookIssuesLabeled\Issue\SubIssuesSummary); + $result = []; + + $total = $object->total; + after_total: $result['total'] = $total; + + $completed = $object->completed; + after_completed: $result['completed'] = $completed; + + $percentCompleted = $object->percentCompleted; + after_percentCompleted: $result['percent_completed'] = $percentCompleted; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesLabeled⚡️Issue⚡️User(mixed $object): mixed { assert($object instanceof \ApiClients\Client\GitHub\Schema\WebhookIssuesLabeled\Issue\User); @@ -55959,6 +57152,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema $repositoryUrl = $object->repositoryUrl; after_repositoryUrl: $result['repository_url'] = $repositoryUrl; + $subIssuesSummary = $object->subIssuesSummary; + + if ($subIssuesSummary === null) { + goto after_subIssuesSummary; + } + + $subIssuesSummary = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesLocked⚡️Issue⚡️SubIssuesSummary($subIssuesSummary); + after_subIssuesSummary: $result['sub_issues_summary'] = $subIssuesSummary; + $state = $object->state; if ($state === null) { @@ -57075,6 +58277,23 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesLocked⚡️Issue⚡️SubIssuesSummary(mixed $object): mixed + { + assert($object instanceof \ApiClients\Client\GitHub\Schema\WebhookIssuesLocked\Issue\SubIssuesSummary); + $result = []; + + $total = $object->total; + after_total: $result['total'] = $total; + + $completed = $object->completed; + after_completed: $result['completed'] = $completed; + + $percentCompleted = $object->percentCompleted; + after_percentCompleted: $result['percent_completed'] = $percentCompleted; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesLocked⚡️Issue⚡️User(mixed $object): mixed { assert($object instanceof \ApiClients\Client\GitHub\Schema\WebhookIssuesLocked\Issue\User); @@ -57446,6 +58665,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema $repositoryUrl = $object->repositoryUrl; after_repositoryUrl: $result['repository_url'] = $repositoryUrl; + $subIssuesSummary = $object->subIssuesSummary; + + if ($subIssuesSummary === null) { + goto after_subIssuesSummary; + } + + $subIssuesSummary = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesMilestoned⚡️Issue⚡️SubIssuesSummary($subIssuesSummary); + after_subIssuesSummary: $result['sub_issues_summary'] = $subIssuesSummary; + $state = $object->state; if ($state === null) { @@ -58554,6 +59782,23 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesMilestoned⚡️Issue⚡️SubIssuesSummary(mixed $object): mixed + { + assert($object instanceof \ApiClients\Client\GitHub\Schema\WebhookIssuesMilestoned\Issue\SubIssuesSummary); + $result = []; + + $total = $object->total; + after_total: $result['total'] = $total; + + $completed = $object->completed; + after_completed: $result['completed'] = $completed; + + $percentCompleted = $object->percentCompleted; + after_percentCompleted: $result['percent_completed'] = $percentCompleted; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesMilestoned⚡️Issue⚡️User(mixed $object): mixed { assert($object instanceof \ApiClients\Client\GitHub\Schema\WebhookIssuesMilestoned\Issue\User); @@ -58951,6 +60196,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema $repositoryUrl = $object->repositoryUrl; after_repositoryUrl: $result['repository_url'] = $repositoryUrl; + $subIssuesSummary = $object->subIssuesSummary; + + if ($subIssuesSummary === null) { + goto after_subIssuesSummary; + } + + $subIssuesSummary = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesOpened⚡️Changes⚡️OldIssue⚡️SubIssuesSummary($subIssuesSummary); + after_subIssuesSummary: $result['sub_issues_summary'] = $subIssuesSummary; + $state = $object->state; if ($state === null) { @@ -60067,6 +61321,23 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesOpened⚡️Changes⚡️OldIssue⚡️SubIssuesSummary(mixed $object): mixed + { + assert($object instanceof \ApiClients\Client\GitHub\Schema\WebhookIssuesOpened\Changes\OldIssue\SubIssuesSummary); + $result = []; + + $total = $object->total; + after_total: $result['total'] = $total; + + $completed = $object->completed; + after_completed: $result['completed'] = $completed; + + $percentCompleted = $object->percentCompleted; + after_percentCompleted: $result['percent_completed'] = $percentCompleted; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesOpened⚡️Changes⚡️OldIssue⚡️User(mixed $object): mixed { assert($object instanceof \ApiClients\Client\GitHub\Schema\WebhookIssuesOpened\Changes\OldIssue\User); @@ -61034,6 +62305,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema $repositoryUrl = $object->repositoryUrl; after_repositoryUrl: $result['repository_url'] = $repositoryUrl; + $subIssuesSummary = $object->subIssuesSummary; + + if ($subIssuesSummary === null) { + goto after_subIssuesSummary; + } + + $subIssuesSummary = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesOpened⚡️Issue⚡️SubIssuesSummary($subIssuesSummary); + after_subIssuesSummary: $result['sub_issues_summary'] = $subIssuesSummary; + $state = $object->state; if ($state === null) { @@ -62150,6 +63430,23 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesOpened⚡️Issue⚡️SubIssuesSummary(mixed $object): mixed + { + assert($object instanceof \ApiClients\Client\GitHub\Schema\WebhookIssuesOpened\Issue\SubIssuesSummary); + $result = []; + + $total = $object->total; + after_total: $result['total'] = $total; + + $completed = $object->completed; + after_completed: $result['completed'] = $completed; + + $percentCompleted = $object->percentCompleted; + after_percentCompleted: $result['percent_completed'] = $percentCompleted; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesOpened⚡️Issue⚡️User(mixed $object): mixed { assert($object instanceof \ApiClients\Client\GitHub\Schema\WebhookIssuesOpened\Issue\User); @@ -62517,6 +63814,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema $repositoryUrl = $object->repositoryUrl; after_repositoryUrl: $result['repository_url'] = $repositoryUrl; + $subIssuesSummary = $object->subIssuesSummary; + + if ($subIssuesSummary === null) { + goto after_subIssuesSummary; + } + + $subIssuesSummary = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksIssue2⚡️SubIssuesSummary($subIssuesSummary); + after_subIssuesSummary: $result['sub_issues_summary'] = $subIssuesSummary; + $state = $object->state; if ($state === null) { @@ -63633,6 +64939,23 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksIssue2⚡️SubIssuesSummary(mixed $object): mixed + { + assert($object instanceof \ApiClients\Client\GitHub\Schema\WebhooksIssue2\SubIssuesSummary); + $result = []; + + $total = $object->total; + after_total: $result['total'] = $total; + + $completed = $object->completed; + after_completed: $result['completed'] = $completed; + + $percentCompleted = $object->percentCompleted; + after_percentCompleted: $result['percent_completed'] = $percentCompleted; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksIssue2⚡️User(mixed $object): mixed { assert($object instanceof \ApiClients\Client\GitHub\Schema\WebhooksIssue2\User); @@ -64000,6 +65323,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema $repositoryUrl = $object->repositoryUrl; after_repositoryUrl: $result['repository_url'] = $repositoryUrl; + $subIssuesSummary = $object->subIssuesSummary; + + if ($subIssuesSummary === null) { + goto after_subIssuesSummary; + } + + $subIssuesSummary = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesReopened⚡️Issue⚡️SubIssuesSummary($subIssuesSummary); + after_subIssuesSummary: $result['sub_issues_summary'] = $subIssuesSummary; + $state = $object->state; after_state: $result['state'] = $state; @@ -65103,6 +66435,23 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesReopened⚡️Issue⚡️SubIssuesSummary(mixed $object): mixed + { + assert($object instanceof \ApiClients\Client\GitHub\Schema\WebhookIssuesReopened\Issue\SubIssuesSummary); + $result = []; + + $total = $object->total; + after_total: $result['total'] = $total; + + $completed = $object->completed; + after_completed: $result['completed'] = $completed; + + $percentCompleted = $object->percentCompleted; + after_percentCompleted: $result['percent_completed'] = $percentCompleted; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesReopened⚡️Issue⚡️User(mixed $object): mixed { assert($object instanceof \ApiClients\Client\GitHub\Schema\WebhookIssuesReopened\Issue\User); @@ -65490,6 +66839,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema $repositoryUrl = $object->repositoryUrl; after_repositoryUrl: $result['repository_url'] = $repositoryUrl; + $subIssuesSummary = $object->subIssuesSummary; + + if ($subIssuesSummary === null) { + goto after_subIssuesSummary; + } + + $subIssuesSummary = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksIssue2⚡️SubIssuesSummary($subIssuesSummary); + after_subIssuesSummary: $result['sub_issues_summary'] = $subIssuesSummary; + $state = $object->state; if ($state === null) { @@ -66606,6 +67964,23 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesTransferred⚡️Changes⚡️NewIssue⚡️SubIssuesSummary(mixed $object): mixed + { + assert($object instanceof \ApiClients\Client\GitHub\Schema\WebhookIssuesTransferred\Changes\NewIssue\SubIssuesSummary); + $result = []; + + $total = $object->total; + after_total: $result['total'] = $total; + + $completed = $object->completed; + after_completed: $result['completed'] = $completed; + + $percentCompleted = $object->percentCompleted; + after_percentCompleted: $result['percent_completed'] = $percentCompleted; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesTransferred⚡️Changes⚡️NewIssue⚡️User(mixed $object): mixed { assert($object instanceof \ApiClients\Client\GitHub\Schema\WebhookIssuesTransferred\Changes\NewIssue\User); @@ -67905,6 +69280,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema $repositoryUrl = $object->repositoryUrl; after_repositoryUrl: $result['repository_url'] = $repositoryUrl; + $subIssuesSummary = $object->subIssuesSummary; + + if ($subIssuesSummary === null) { + goto after_subIssuesSummary; + } + + $subIssuesSummary = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesUnlocked⚡️Issue⚡️SubIssuesSummary($subIssuesSummary); + after_subIssuesSummary: $result['sub_issues_summary'] = $subIssuesSummary; + $state = $object->state; if ($state === null) { @@ -69021,6 +70405,23 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesUnlocked⚡️Issue⚡️SubIssuesSummary(mixed $object): mixed + { + assert($object instanceof \ApiClients\Client\GitHub\Schema\WebhookIssuesUnlocked\Issue\SubIssuesSummary); + $result = []; + + $total = $object->total; + after_total: $result['total'] = $total; + + $completed = $object->completed; + after_completed: $result['completed'] = $completed; + + $percentCompleted = $object->percentCompleted; + after_percentCompleted: $result['percent_completed'] = $percentCompleted; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesUnlocked⚡️Issue⚡️User(mixed $object): mixed { assert($object instanceof \ApiClients\Client\GitHub\Schema\WebhookIssuesUnlocked\Issue\User); diff --git a/clients/GitHub/src/Internal/Hydrator/WebHook/SubIssues.php b/clients/GitHub/src/Internal/Hydrator/WebHook/SubIssues.php index 84ba0be8bfd..59aa268d8ec 100644 --- a/clients/GitHub/src/Internal/Hydrator/WebHook/SubIssues.php +++ b/clients/GitHub/src/Internal/Hydrator/WebHook/SubIssues.php @@ -19,6 +19,7 @@ use ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner; use ApiClients\Client\GitHub\Schema\SimpleInstallation; use ApiClients\Client\GitHub\Schema\SimpleUser; +use ApiClients\Client\GitHub\Schema\SubIssuesSummary; use ApiClients\Client\GitHub\Schema\WebhookSubIssuesParentIssueAdded; use ApiClients\Client\GitHub\Schema\WebhookSubIssuesParentIssueRemoved; use ApiClients\Client\GitHub\Schema\WebhookSubIssuesSubIssueAdded; @@ -69,6 +70,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\Integration' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Integration($payload), 'ApiClients\Client\GitHub\Schema\Integration\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Integration⚡️Permissions($payload), 'ApiClients\Client\GitHub\Schema\ReactionRollup' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️ReactionRollup($payload), + 'ApiClients\Client\GitHub\Schema\SubIssuesSummary' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SubIssuesSummary($payload), 'ApiClients\Client\GitHub\Schema\SimpleInstallation' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleInstallation($payload), 'ApiClients\Client\GitHub\Schema\OrganizationSimpleWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️OrganizationSimpleWebhooks($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks($payload), @@ -726,6 +728,26 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Issu $properties['reactions'] = $value; after_reactions: + + $value = $payload['sub_issues_summary'] ?? null; + + if ($value === null) { + $properties['subIssuesSummary'] = null; + goto after_subIssuesSummary; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'subIssuesSummary'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SubIssuesSummary($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['subIssuesSummary'] = $value; + + after_subIssuesSummary: } catch (Throwable $exception) { throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\Issue', $exception, stack: $this->hydrationStack); } @@ -2957,6 +2979,58 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Reac } } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SubIssuesSummary(array $payload): SubIssuesSummary + { + $properties = []; + $missingFields = []; + try { + $value = $payload['total'] ?? null; + + if ($value === null) { + $missingFields[] = 'total'; + goto after_total; + } + + $properties['total'] = $value; + + after_total: + + $value = $payload['completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'completed'; + goto after_completed; + } + + $properties['completed'] = $value; + + after_completed: + + $value = $payload['percent_completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'percent_completed'; + goto after_percentCompleted; + } + + $properties['percentCompleted'] = $value; + + after_percentCompleted: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(SubIssuesSummary::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new SubIssuesSummary(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleInstallation(array $payload): SimpleInstallation { $properties = []; @@ -6319,6 +6393,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\Integration' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Integration($object), 'ApiClients\Client\GitHub\Schema\Integration\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Integration⚡️Permissions($object), 'ApiClients\Client\GitHub\Schema\ReactionRollup' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️ReactionRollup($object), + 'ApiClients\Client\GitHub\Schema\SubIssuesSummary' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SubIssuesSummary($object), 'ApiClients\Client\GitHub\Schema\SimpleInstallation' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleInstallation($object), 'ApiClients\Client\GitHub\Schema\OrganizationSimpleWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️OrganizationSimpleWebhooks($object), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks($object), @@ -6670,6 +6745,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema $reactions = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️ReactionRollup($reactions); after_reactions: $result['reactions'] = $reactions; + $subIssuesSummary = $object->subIssuesSummary; + + if ($subIssuesSummary === null) { + goto after_subIssuesSummary; + } + + $subIssuesSummary = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SubIssuesSummary($subIssuesSummary); + after_subIssuesSummary: $result['sub_issues_summary'] = $subIssuesSummary; + return $result; } @@ -7618,6 +7702,23 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SubIssuesSummary(mixed $object): mixed + { + assert($object instanceof SubIssuesSummary); + $result = []; + + $total = $object->total; + after_total: $result['total'] = $total; + + $completed = $object->completed; + after_completed: $result['completed'] = $completed; + + $percentCompleted = $object->percentCompleted; + after_percentCompleted: $result['percent_completed'] = $percentCompleted; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleInstallation(mixed $object): mixed { assert($object instanceof SimpleInstallation); diff --git a/clients/GitHub/src/Internal/Hydrators.php b/clients/GitHub/src/Internal/Hydrators.php index f225e3e8c2e..096bca01f0f 100644 --- a/clients/GitHub/src/Internal/Hydrators.php +++ b/clients/GitHub/src/Internal/Hydrators.php @@ -453,6 +453,9 @@ final class Hydrators implements ObjectMapper private Internal\Hydrator\Operation\Repos\Owner\Repo\Issues\IssueNumber\Lock|null $operation🌀Repos🌀Owner🌀Repo🌀Issues🌀IssueNumber🌀Lock = null; private Internal\Hydrator\Operation\Repos\Owner\Repo\Issues\IssueNumber\Reactions|null $operation🌀Repos🌀Owner🌀Repo🌀Issues🌀IssueNumber🌀Reactions = null; private Internal\Hydrator\Operation\Repos\Owner\Repo\Issues\IssueNumber\Reactions\ReactionId|null $operation🌀Repos🌀Owner🌀Repo🌀Issues🌀IssueNumber🌀Reactions🌀ReactionId = null; + private Internal\Hydrator\Operation\Repos\Owner\Repo\Issues\IssueNumber\SubIssue|null $operation🌀Repos🌀Owner🌀Repo🌀Issues🌀IssueNumber🌀SubIssue = null; + private Internal\Hydrator\Operation\Repos\Owner\Repo\Issues\IssueNumber\SubIssues|null $operation🌀Repos🌀Owner🌀Repo🌀Issues🌀IssueNumber🌀SubIssues = null; + private Internal\Hydrator\Operation\Repos\Owner\Repo\Issues\IssueNumber\SubIssues\Priority|null $operation🌀Repos🌀Owner🌀Repo🌀Issues🌀IssueNumber🌀SubIssues🌀Priority = null; private Internal\Hydrator\Operation\Repos\Owner\Repo\Issues\IssueNumber\Timeline|null $operation🌀Repos🌀Owner🌀Repo🌀Issues🌀IssueNumber🌀Timeline = null; private Internal\Hydrator\Operation\Repos\Owner\Repo\Keys|null $operation🌀Repos🌀Owner🌀Repo🌀Keys = null; private Internal\Hydrator\Operation\Repos\Owner\Repo\Keys\KeyId|null $operation🌀Repos🌀Owner🌀Repo🌀Keys🌀KeyId = null; @@ -940,7 +943,7 @@ public function hydrateObject(string $className, array $payload): object '\\ApiClients\\Client\\GitHub\\Schema\\Operations\\Repos\\RedeliverWebhookDelivery\\Response\\ApplicationJson\\Accepted\\Application\\Json' => $this->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Hooks🌀HookId🌀Deliveries🌀DeliveryId🌀Attempts()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHub\\Schema\\Import' => $this->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Import()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHub\\Schema\\PorterAuthor' => $this->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Import🌀Authors🌀AuthorId()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\GitHub\\Schema\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\Issue\\PullRequest' => $this->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues()->hydrateObject($className, $payload), + '\\ApiClients\\Client\\GitHub\\Schema\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\SubIssuesSummary' => $this->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHub\\Schema\\IssueComment' => $this->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues🌀Comments🌀CommentId()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHub\\Schema\\IssueEvent', '\\ApiClients\\Client\\GitHub\\Schema\\IssueEventLabel', '\\ApiClients\\Client\\GitHub\\Schema\\Team', '\\ApiClients\\Client\\GitHub\\Schema\\Team\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\IssueEventDismissedReview', '\\ApiClients\\Client\\GitHub\\Schema\\IssueEventMilestone', '\\ApiClients\\Client\\GitHub\\Schema\\IssueEventProjectCard', '\\ApiClients\\Client\\GitHub\\Schema\\IssueEventRename' => $this->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues🌀Events🌀EventId()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHub\\Schema\\DeployKey' => $this->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Keys()->hydrateObject($className, $payload), @@ -1030,8 +1033,8 @@ public function hydrateObject(string $className, array $payload): 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()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHub\\Schema\\WebhookInstallationRepositoriesAdded', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookInstallationRepositoriesRemoved' => $this->getObjectMapperWebHook🪝InstallationRepositories()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHub\\Schema\\WebhookInstallationTargetRenamed', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookInstallationTargetRenamed\\Account', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookInstallationTargetRenamed\\Changes', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookInstallationTargetRenamed\\Changes\\Login', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookInstallationTargetRenamed\\Changes\\Slug' => $this->getObjectMapperWebHook🪝InstallationTarget()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentCreated', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentCreated\\Comment', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentCreated\\Comment\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentCreated\\Comment\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentCreated\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentCreated\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentCreated\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentCreated\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentCreated\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentCreated\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentCreated\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentCreated\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentCreated\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentCreated\\Issue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentDeleted', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssueComment', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssueComment\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssueComment\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentDeleted\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentDeleted\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentDeleted\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentDeleted\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentDeleted\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentDeleted\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentDeleted\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentDeleted\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentDeleted\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentDeleted\\Issue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentEdited', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksChanges', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksChanges\\Body', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentEdited\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentEdited\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentEdited\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentEdited\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentEdited\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentEdited\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentEdited\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentEdited\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentEdited\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentEdited\\Issue\\User' => $this->getObjectMapperWebHook🪝IssueComment()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesAssigned', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesClosed', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesClosed\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesClosed\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesClosed\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesClosed\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesClosed\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesClosed\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesClosed\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesClosed\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesClosed\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesClosed\\Issue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDeleted', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDeleted\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDeleted\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDeleted\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDeleted\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDeleted\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDeleted\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDeleted\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDeleted\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDeleted\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDeleted\\Issue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDemilestoned', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDemilestoned\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDemilestoned\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDemilestoned\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDemilestoned\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDemilestoned\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDemilestoned\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDemilestoned\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDemilestoned\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDemilestoned\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDemilestoned\\Issue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksMilestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksMilestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Changes', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Changes\\Body', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Changes\\Title', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Issue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLabeled', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLabeled\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLabeled\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLabeled\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLabeled\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLabeled\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLabeled\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLabeled\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLabeled\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLabeled\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLabeled\\Issue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLocked', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLocked\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLocked\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLocked\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLocked\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLocked\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLocked\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLocked\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLocked\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLocked\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLocked\\Issue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesMilestoned', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesMilestoned\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesMilestoned\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesMilestoned\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesMilestoned\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesMilestoned\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesMilestoned\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesMilestoned\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesMilestoned\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesMilestoned\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesMilestoned\\Issue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldRepository', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldRepository\\CustomProperties', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldRepository\\License', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldRepository\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldRepository\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Issue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesPinned', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue2', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue2\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue2\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue2\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue2\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue2\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue2\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue2\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue2\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue2\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesReopened', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesReopened\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesReopened\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesReopened\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesReopened\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesReopened\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesReopened\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesReopened\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesReopened\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesReopened\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesReopened\\Issue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewRepository', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewRepository\\CustomProperties', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewRepository\\License', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewRepository\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewRepository\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnassigned', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksUserMannequin', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlabeled', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlocked', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlocked\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlocked\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlocked\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlocked\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlocked\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlocked\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlocked\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlocked\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlocked\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlocked\\Issue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnpinned' => $this->getObjectMapperWebHook🪝Issues()->hydrateObject($className, $payload), + '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentCreated', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentCreated\\Comment', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentCreated\\Comment\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentCreated\\Comment\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentCreated\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentCreated\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentCreated\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentCreated\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentCreated\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentCreated\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentCreated\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentCreated\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentCreated\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentCreated\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentCreated\\Issue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentDeleted', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssueComment', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssueComment\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssueComment\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentDeleted\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentDeleted\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentDeleted\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentDeleted\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentDeleted\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentDeleted\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentDeleted\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentDeleted\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentDeleted\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentDeleted\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentDeleted\\Issue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentEdited', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksChanges', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksChanges\\Body', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentEdited\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentEdited\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentEdited\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentEdited\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentEdited\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentEdited\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentEdited\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentEdited\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentEdited\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentEdited\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentEdited\\Issue\\User' => $this->getObjectMapperWebHook🪝IssueComment()->hydrateObject($className, $payload), + '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesAssigned', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesClosed', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesClosed\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesClosed\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesClosed\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesClosed\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesClosed\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesClosed\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesClosed\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesClosed\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesClosed\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesClosed\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesClosed\\Issue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDeleted', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDeleted\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDeleted\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDeleted\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDeleted\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDeleted\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDeleted\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDeleted\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDeleted\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDeleted\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDeleted\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDeleted\\Issue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDemilestoned', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDemilestoned\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDemilestoned\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDemilestoned\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDemilestoned\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDemilestoned\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDemilestoned\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDemilestoned\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDemilestoned\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDemilestoned\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDemilestoned\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDemilestoned\\Issue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksMilestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksMilestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Changes', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Changes\\Body', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Changes\\Title', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Issue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLabeled', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLabeled\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLabeled\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLabeled\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLabeled\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLabeled\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLabeled\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLabeled\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLabeled\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLabeled\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLabeled\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLabeled\\Issue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLocked', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLocked\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLocked\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLocked\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLocked\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLocked\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLocked\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLocked\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLocked\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLocked\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLocked\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLocked\\Issue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesMilestoned', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesMilestoned\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesMilestoned\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesMilestoned\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesMilestoned\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesMilestoned\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesMilestoned\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesMilestoned\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesMilestoned\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesMilestoned\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesMilestoned\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesMilestoned\\Issue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldRepository', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldRepository\\CustomProperties', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldRepository\\License', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldRepository\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldRepository\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Issue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesPinned', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue2', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue2\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue2\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue2\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue2\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue2\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue2\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue2\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue2\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue2\\SubIssuesSummary', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue2\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesReopened', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesReopened\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesReopened\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesReopened\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesReopened\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesReopened\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesReopened\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesReopened\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesReopened\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesReopened\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesReopened\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesReopened\\Issue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewRepository', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewRepository\\CustomProperties', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewRepository\\License', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewRepository\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewRepository\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnassigned', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksUserMannequin', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlabeled', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlocked', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlocked\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlocked\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlocked\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlocked\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlocked\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlocked\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlocked\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlocked\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlocked\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlocked\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlocked\\Issue\\User', '\\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', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookLabelEdited\\Changes', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookLabelEdited\\Changes\\Color', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookLabelEdited\\Changes\\Description', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookLabelEdited\\Changes\\Name' => $this->getObjectMapperWebHook🪝Label()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHub\\Schema\\WebhookMarketplacePurchaseCancelled', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksMarketplacePurchase', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksMarketplacePurchase\\Account', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksMarketplacePurchase\\Plan', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksPreviousMarketplacePurchase', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksPreviousMarketplacePurchase\\Account', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksPreviousMarketplacePurchase\\Plan', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookMarketplacePurchaseChanged', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookMarketplacePurchaseChanged\\PreviousMarketplacePurchase', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookMarketplacePurchaseChanged\\PreviousMarketplacePurchase\\Account', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookMarketplacePurchaseChanged\\PreviousMarketplacePurchase\\Plan', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookMarketplacePurchasePendingChange', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookMarketplacePurchasePendingChange\\PreviousMarketplacePurchase', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookMarketplacePurchasePendingChange\\PreviousMarketplacePurchase\\Account', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookMarketplacePurchasePendingChange\\PreviousMarketplacePurchase\\Plan', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookMarketplacePurchasePendingChangeCancelled', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookMarketplacePurchasePendingChangeCancelled\\MarketplacePurchase', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookMarketplacePurchasePendingChangeCancelled\\MarketplacePurchase\\Account', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookMarketplacePurchasePendingChangeCancelled\\MarketplacePurchase\\Plan', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookMarketplacePurchasePurchased' => $this->getObjectMapperWebHook🪝MarketplacePurchase()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHub\\Schema\\WebhookMemberAdded', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookMemberAdded\\Changes', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookMemberAdded\\Changes\\Permission', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookMemberAdded\\Changes\\RoleName', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookMemberEdited', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookMemberEdited\\Changes', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookMemberEdited\\Changes\\OldPermission', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookMemberEdited\\Changes\\Permission', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookMemberRemoved' => $this->getObjectMapperWebHook🪝Member()->hydrateObject($className, $payload), @@ -1301,7 +1304,7 @@ public function serializeObjectOfType(object $object, string $className): mixed '\\ApiClients\\Client\\GitHub\\Schema\\Operations\\Repos\\RedeliverWebhookDelivery\\Response\\ApplicationJson\\Accepted\\Application\\Json' => $this->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Hooks🌀HookId🌀Deliveries🌀DeliveryId🌀Attempts()->serializeObject($object), '\\ApiClients\\Client\\GitHub\\Schema\\Import' => $this->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Import()->serializeObject($object), '\\ApiClients\\Client\\GitHub\\Schema\\PorterAuthor' => $this->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Import🌀Authors🌀AuthorId()->serializeObject($object), - '\\ApiClients\\Client\\GitHub\\Schema\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\Issue\\PullRequest' => $this->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues()->serializeObject($object), + '\\ApiClients\\Client\\GitHub\\Schema\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\SubIssuesSummary' => $this->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues()->serializeObject($object), '\\ApiClients\\Client\\GitHub\\Schema\\IssueComment' => $this->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues🌀Comments🌀CommentId()->serializeObject($object), '\\ApiClients\\Client\\GitHub\\Schema\\IssueEvent', '\\ApiClients\\Client\\GitHub\\Schema\\IssueEventLabel', '\\ApiClients\\Client\\GitHub\\Schema\\Team', '\\ApiClients\\Client\\GitHub\\Schema\\Team\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\IssueEventDismissedReview', '\\ApiClients\\Client\\GitHub\\Schema\\IssueEventMilestone', '\\ApiClients\\Client\\GitHub\\Schema\\IssueEventProjectCard', '\\ApiClients\\Client\\GitHub\\Schema\\IssueEventRename' => $this->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues🌀Events🌀EventId()->serializeObject($object), '\\ApiClients\\Client\\GitHub\\Schema\\DeployKey' => $this->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Keys()->serializeObject($object), @@ -1391,8 +1394,8 @@ public function serializeObjectOfType(object $object, string $className): mixed '\\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', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookInstallationTargetRenamed\\Account', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookInstallationTargetRenamed\\Changes', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookInstallationTargetRenamed\\Changes\\Login', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookInstallationTargetRenamed\\Changes\\Slug' => $this->getObjectMapperWebHook🪝InstallationTarget()->serializeObject($object), - '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentCreated', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentCreated\\Comment', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentCreated\\Comment\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentCreated\\Comment\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentCreated\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentCreated\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentCreated\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentCreated\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentCreated\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentCreated\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentCreated\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentCreated\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentCreated\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentCreated\\Issue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentDeleted', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssueComment', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssueComment\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssueComment\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentDeleted\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentDeleted\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentDeleted\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentDeleted\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentDeleted\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentDeleted\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentDeleted\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentDeleted\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentDeleted\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentDeleted\\Issue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentEdited', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksChanges', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksChanges\\Body', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentEdited\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentEdited\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentEdited\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentEdited\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentEdited\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentEdited\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentEdited\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentEdited\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentEdited\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentEdited\\Issue\\User' => $this->getObjectMapperWebHook🪝IssueComment()->serializeObject($object), - '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesAssigned', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesClosed', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesClosed\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesClosed\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesClosed\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesClosed\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesClosed\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesClosed\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesClosed\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesClosed\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesClosed\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesClosed\\Issue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDeleted', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDeleted\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDeleted\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDeleted\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDeleted\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDeleted\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDeleted\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDeleted\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDeleted\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDeleted\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDeleted\\Issue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDemilestoned', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDemilestoned\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDemilestoned\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDemilestoned\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDemilestoned\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDemilestoned\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDemilestoned\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDemilestoned\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDemilestoned\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDemilestoned\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDemilestoned\\Issue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksMilestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksMilestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Changes', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Changes\\Body', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Changes\\Title', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Issue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLabeled', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLabeled\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLabeled\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLabeled\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLabeled\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLabeled\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLabeled\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLabeled\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLabeled\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLabeled\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLabeled\\Issue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLocked', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLocked\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLocked\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLocked\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLocked\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLocked\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLocked\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLocked\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLocked\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLocked\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLocked\\Issue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesMilestoned', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesMilestoned\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesMilestoned\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesMilestoned\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesMilestoned\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesMilestoned\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesMilestoned\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesMilestoned\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesMilestoned\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesMilestoned\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesMilestoned\\Issue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldRepository', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldRepository\\CustomProperties', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldRepository\\License', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldRepository\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldRepository\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Issue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesPinned', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue2', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue2\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue2\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue2\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue2\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue2\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue2\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue2\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue2\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue2\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesReopened', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesReopened\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesReopened\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesReopened\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesReopened\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesReopened\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesReopened\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesReopened\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesReopened\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesReopened\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesReopened\\Issue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewRepository', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewRepository\\CustomProperties', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewRepository\\License', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewRepository\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewRepository\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnassigned', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksUserMannequin', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlabeled', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlocked', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlocked\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlocked\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlocked\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlocked\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlocked\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlocked\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlocked\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlocked\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlocked\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlocked\\Issue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnpinned' => $this->getObjectMapperWebHook🪝Issues()->serializeObject($object), + '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentCreated', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentCreated\\Comment', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentCreated\\Comment\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentCreated\\Comment\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentCreated\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentCreated\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentCreated\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentCreated\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentCreated\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentCreated\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentCreated\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentCreated\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentCreated\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentCreated\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentCreated\\Issue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentDeleted', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssueComment', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssueComment\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssueComment\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentDeleted\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentDeleted\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentDeleted\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentDeleted\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentDeleted\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentDeleted\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentDeleted\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentDeleted\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentDeleted\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentDeleted\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentDeleted\\Issue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentEdited', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksChanges', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksChanges\\Body', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentEdited\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentEdited\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentEdited\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentEdited\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentEdited\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentEdited\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentEdited\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentEdited\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentEdited\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentEdited\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssueCommentEdited\\Issue\\User' => $this->getObjectMapperWebHook🪝IssueComment()->serializeObject($object), + '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesAssigned', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesClosed', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesClosed\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesClosed\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesClosed\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesClosed\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesClosed\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesClosed\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesClosed\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesClosed\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesClosed\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesClosed\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesClosed\\Issue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDeleted', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDeleted\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDeleted\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDeleted\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDeleted\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDeleted\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDeleted\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDeleted\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDeleted\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDeleted\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDeleted\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDeleted\\Issue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDemilestoned', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDemilestoned\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDemilestoned\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDemilestoned\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDemilestoned\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDemilestoned\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDemilestoned\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDemilestoned\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDemilestoned\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDemilestoned\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDemilestoned\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesDemilestoned\\Issue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksMilestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksMilestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Changes', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Changes\\Body', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Changes\\Title', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesEdited\\Issue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLabeled', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLabeled\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLabeled\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLabeled\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLabeled\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLabeled\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLabeled\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLabeled\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLabeled\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLabeled\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLabeled\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLabeled\\Issue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLocked', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLocked\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLocked\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLocked\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLocked\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLocked\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLocked\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLocked\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLocked\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLocked\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLocked\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesLocked\\Issue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesMilestoned', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesMilestoned\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesMilestoned\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesMilestoned\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesMilestoned\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesMilestoned\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesMilestoned\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesMilestoned\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesMilestoned\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesMilestoned\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesMilestoned\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesMilestoned\\Issue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldRepository', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldRepository\\CustomProperties', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldRepository\\License', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldRepository\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Changes\\OldRepository\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesOpened\\Issue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesPinned', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue2', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue2\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue2\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue2\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue2\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue2\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue2\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue2\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue2\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue2\\SubIssuesSummary', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksIssue2\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesReopened', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesReopened\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesReopened\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesReopened\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesReopened\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesReopened\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesReopened\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesReopened\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesReopened\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesReopened\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesReopened\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesReopened\\Issue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewRepository', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewRepository\\CustomProperties', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewRepository\\License', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewRepository\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesTransferred\\Changes\\NewRepository\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnassigned', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksUserMannequin', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlabeled', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlocked', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlocked\\Issue', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlocked\\Issue\\Assignee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlocked\\Issue\\Milestone', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlocked\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlocked\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlocked\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlocked\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlocked\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlocked\\Issue\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlocked\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookIssuesUnlocked\\Issue\\User', '\\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', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookLabelEdited\\Changes', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookLabelEdited\\Changes\\Color', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookLabelEdited\\Changes\\Description', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookLabelEdited\\Changes\\Name' => $this->getObjectMapperWebHook🪝Label()->serializeObject($object), '\\ApiClients\\Client\\GitHub\\Schema\\WebhookMarketplacePurchaseCancelled', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksMarketplacePurchase', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksMarketplacePurchase\\Account', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksMarketplacePurchase\\Plan', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksPreviousMarketplacePurchase', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksPreviousMarketplacePurchase\\Account', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksPreviousMarketplacePurchase\\Plan', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookMarketplacePurchaseChanged', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookMarketplacePurchaseChanged\\PreviousMarketplacePurchase', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookMarketplacePurchaseChanged\\PreviousMarketplacePurchase\\Account', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookMarketplacePurchaseChanged\\PreviousMarketplacePurchase\\Plan', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookMarketplacePurchasePendingChange', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookMarketplacePurchasePendingChange\\PreviousMarketplacePurchase', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookMarketplacePurchasePendingChange\\PreviousMarketplacePurchase\\Account', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookMarketplacePurchasePendingChange\\PreviousMarketplacePurchase\\Plan', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookMarketplacePurchasePendingChangeCancelled', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookMarketplacePurchasePendingChangeCancelled\\MarketplacePurchase', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookMarketplacePurchasePendingChangeCancelled\\MarketplacePurchase\\Account', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookMarketplacePurchasePendingChangeCancelled\\MarketplacePurchase\\Plan', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookMarketplacePurchasePurchased' => $this->getObjectMapperWebHook🪝MarketplacePurchase()->serializeObject($object), '\\ApiClients\\Client\\GitHub\\Schema\\WebhookMemberAdded', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookMemberAdded\\Changes', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookMemberAdded\\Changes\\Permission', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookMemberAdded\\Changes\\RoleName', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookMemberEdited', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookMemberEdited\\Changes', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookMemberEdited\\Changes\\OldPermission', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookMemberEdited\\Changes\\Permission', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookMemberRemoved' => $this->getObjectMapperWebHook🪝Member()->serializeObject($object), @@ -5433,6 +5436,33 @@ public function getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues🌀 return $this->operation🌀Repos🌀Owner🌀Repo🌀Issues🌀IssueNumber🌀Reactions🌀ReactionId; } + public function getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues🌀IssueNumber🌀SubIssue(): Internal\Hydrator\Operation\Repos\Owner\Repo\Issues\IssueNumber\SubIssue + { + if ($this->operation🌀Repos🌀Owner🌀Repo🌀Issues🌀IssueNumber🌀SubIssue instanceof Internal\Hydrator\Operation\Repos\Owner\Repo\Issues\IssueNumber\SubIssue === false) { + $this->operation🌀Repos🌀Owner🌀Repo🌀Issues🌀IssueNumber🌀SubIssue = new Internal\Hydrator\Operation\Repos\Owner\Repo\Issues\IssueNumber\SubIssue(); + } + + return $this->operation🌀Repos🌀Owner🌀Repo🌀Issues🌀IssueNumber🌀SubIssue; + } + + public function getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues🌀IssueNumber🌀SubIssues(): Internal\Hydrator\Operation\Repos\Owner\Repo\Issues\IssueNumber\SubIssues + { + if ($this->operation🌀Repos🌀Owner🌀Repo🌀Issues🌀IssueNumber🌀SubIssues instanceof Internal\Hydrator\Operation\Repos\Owner\Repo\Issues\IssueNumber\SubIssues === false) { + $this->operation🌀Repos🌀Owner🌀Repo🌀Issues🌀IssueNumber🌀SubIssues = new Internal\Hydrator\Operation\Repos\Owner\Repo\Issues\IssueNumber\SubIssues(); + } + + return $this->operation🌀Repos🌀Owner🌀Repo🌀Issues🌀IssueNumber🌀SubIssues; + } + + public function getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues🌀IssueNumber🌀SubIssues🌀Priority(): Internal\Hydrator\Operation\Repos\Owner\Repo\Issues\IssueNumber\SubIssues\Priority + { + if ($this->operation🌀Repos🌀Owner🌀Repo🌀Issues🌀IssueNumber🌀SubIssues🌀Priority instanceof Internal\Hydrator\Operation\Repos\Owner\Repo\Issues\IssueNumber\SubIssues\Priority === false) { + $this->operation🌀Repos🌀Owner🌀Repo🌀Issues🌀IssueNumber🌀SubIssues🌀Priority = new Internal\Hydrator\Operation\Repos\Owner\Repo\Issues\IssueNumber\SubIssues\Priority(); + } + + return $this->operation🌀Repos🌀Owner🌀Repo🌀Issues🌀IssueNumber🌀SubIssues🌀Priority; + } + public function getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues🌀IssueNumber🌀Timeline(): Internal\Hydrator\Operation\Repos\Owner\Repo\Issues\IssueNumber\Timeline { if ($this->operation🌀Repos🌀Owner🌀Repo🌀Issues🌀IssueNumber🌀Timeline instanceof Internal\Hydrator\Operation\Repos\Owner\Repo\Issues\IssueNumber\Timeline === false) { diff --git a/clients/GitHub/src/Internal/Operation/Issues/AddSubIssue.php b/clients/GitHub/src/Internal/Operation/Issues/AddSubIssue.php new file mode 100644 index 00000000000..487eb7f55f9 --- /dev/null +++ b/clients/GitHub/src/Internal/Operation/Issues/AddSubIssue.php @@ -0,0 +1,101 @@ +owner = $owner; + $this->repo = $repo; + $this->issueNumber = $issueNumber; + } + + public function createRequest(array $data): RequestInterface + { + $this->requestSchemaValidator->validate($data, Reader::readFromJson(Schema\Issues\AddSubIssue\Request\ApplicationJson::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + return new Request('POST', str_replace(['{owner}', '{repo}', '{issue_number}'], [$this->owner, $this->repo, $this->issueNumber], '/repos/{owner}/{repo}/issues/{issue_number}/sub_issues'), ['Content-Type' => 'application/json'], json_encode($data)); + } + + public function createResponse(ResponseInterface $response): Schema\Issue + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 201: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\Issue::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + return $this->hydrator->hydrateObject(Schema\Issue::class, $body); + /** + * Forbidden + **/ + + case 403: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(403, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + /** + * Gone + **/ + + case 410: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(410, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + /** + * Validation failed, or the endpoint has been spammed. + **/ + + case 422: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\ValidationError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\ValidationError(422, $this->hydrator->hydrateObject(Schema\ValidationError::class, $body)); + /** + * Resource not found + **/ + + case 404: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(404, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHub/src/Internal/Operation/Issues/ListSubIssues.php b/clients/GitHub/src/Internal/Operation/Issues/ListSubIssues.php new file mode 100644 index 00000000000..ba7ff8ee1c8 --- /dev/null +++ b/clients/GitHub/src/Internal/Operation/Issues/ListSubIssues.php @@ -0,0 +1,102 @@ +owner = $owner; + $this->repo = $repo; + $this->issueNumber = $issueNumber; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request('GET', str_replace(['{owner}', '{repo}', '{issue_number}', '{per_page}', '{page}'], [$this->owner, $this->repo, $this->issueNumber, $this->perPage, $this->page], '/repos/{owner}/{repo}/issues/{issue_number}/sub_issues' . '?per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\Issue { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\Issue::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\Issue::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + /** + * Resource not found + **/ + + case 404: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(404, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + /** + * Gone + **/ + + case 410: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(410, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHub/src/Internal/Operation/Issues/ListSubIssuesListing.php b/clients/GitHub/src/Internal/Operation/Issues/ListSubIssuesListing.php new file mode 100644 index 00000000000..5223ca748a0 --- /dev/null +++ b/clients/GitHub/src/Internal/Operation/Issues/ListSubIssuesListing.php @@ -0,0 +1,102 @@ +owner = $owner; + $this->repo = $repo; + $this->issueNumber = $issueNumber; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request('GET', str_replace(['{owner}', '{repo}', '{issue_number}', '{per_page}', '{page}'], [$this->owner, $this->repo, $this->issueNumber, $this->perPage, $this->page], '/repos/{owner}/{repo}/issues/{issue_number}/sub_issues' . '?per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\Issue { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\Issue::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\Issue::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + /** + * Resource not found + **/ + + case 404: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(404, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + /** + * Gone + **/ + + case 410: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(410, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHub/src/Internal/Operation/Issues/RemoveSubIssue.php b/clients/GitHub/src/Internal/Operation/Issues/RemoveSubIssue.php new file mode 100644 index 00000000000..6ab3685e43c --- /dev/null +++ b/clients/GitHub/src/Internal/Operation/Issues/RemoveSubIssue.php @@ -0,0 +1,98 @@ +owner = $owner; + $this->repo = $repo; + $this->issueNumber = $issueNumber; + } + + public function createRequest(array $data): RequestInterface + { + $this->requestSchemaValidator->validate($data, Reader::readFromJson(Schema\Issues\RemoveSubIssue\Request\ApplicationJson::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + return new Request('DELETE', str_replace(['{owner}', '{repo}', '{issue_number}'], [$this->owner, $this->repo, $this->issueNumber], '/repos/{owner}/{repo}/issues/{issue_number}/sub_issue'), ['Content-Type' => 'application/json'], json_encode($data)); + } + + public function createResponse(ResponseInterface $response): Schema\Issue + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\Issue::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + return $this->hydrator->hydrateObject(Schema\Issue::class, $body); + /** + * Bad Request + **/ + + case 400: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(400, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + /** + * Resource not found + **/ + + case 404: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(404, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + } + + break; + case 'application/scim+json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Bad Request + **/ + case 400: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\ScimError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\ScimError(400, $this->hydrator->hydrateObject(Schema\ScimError::class, $body)); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHub/src/Internal/Operation/Issues/ReprioritizeSubIssue.php b/clients/GitHub/src/Internal/Operation/Issues/ReprioritizeSubIssue.php new file mode 100644 index 00000000000..90be2ea6872 --- /dev/null +++ b/clients/GitHub/src/Internal/Operation/Issues/ReprioritizeSubIssue.php @@ -0,0 +1,101 @@ +owner = $owner; + $this->repo = $repo; + $this->issueNumber = $issueNumber; + } + + public function createRequest(array $data): RequestInterface + { + $this->requestSchemaValidator->validate($data, Reader::readFromJson(Schema\Issues\ReprioritizeSubIssue\Request\ApplicationJson::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + return new Request('PATCH', str_replace(['{owner}', '{repo}', '{issue_number}'], [$this->owner, $this->repo, $this->issueNumber], '/repos/{owner}/{repo}/issues/{issue_number}/sub_issues/priority'), ['Content-Type' => 'application/json'], json_encode($data)); + } + + public function createResponse(ResponseInterface $response): Schema\Issue + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\Issue::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + return $this->hydrator->hydrateObject(Schema\Issue::class, $body); + /** + * Forbidden + **/ + + case 403: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(403, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + /** + * Resource not found + **/ + + case 404: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(404, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + /** + * Validation failed, or the endpoint has been spammed. + **/ + + case 422: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\ValidationErrorSimple::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\ValidationErrorSimple(422, $this->hydrator->hydrateObject(Schema\ValidationErrorSimple::class, $body)); + /** + * Service unavailable + **/ + + case 503: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\Operations\SecretScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\Operations\SecretScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable(503, $this->hydrator->hydrateObject(Schema\Operations\SecretScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable::class, $body)); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHub/src/Internal/Operator/Issues/AddSubIssue.php b/clients/GitHub/src/Internal/Operator/Issues/AddSubIssue.php new file mode 100644 index 00000000000..cc91c8e3fa6 --- /dev/null +++ b/clients/GitHub/src/Internal/Operator/Issues/AddSubIssue.php @@ -0,0 +1,40 @@ +requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $owner, $repo, $issueNumber); + $request = $operation->createRequest($params); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Issue { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHub/src/Internal/Operator/Issues/ListSubIssues.php b/clients/GitHub/src/Internal/Operator/Issues/ListSubIssues.php new file mode 100644 index 00000000000..062750d6b81 --- /dev/null +++ b/clients/GitHub/src/Internal/Operator/Issues/ListSubIssues.php @@ -0,0 +1,41 @@ + */ + public function call(string $owner, string $repo, int $issueNumber, int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHub\Internal\Operation\Issues\ListSubIssues($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $issueNumber, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHub/src/Internal/Operator/Issues/ListSubIssuesListing.php b/clients/GitHub/src/Internal/Operator/Issues/ListSubIssuesListing.php new file mode 100644 index 00000000000..199121d8d86 --- /dev/null +++ b/clients/GitHub/src/Internal/Operator/Issues/ListSubIssuesListing.php @@ -0,0 +1,41 @@ + */ + public function call(string $owner, string $repo, int $issueNumber, int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHub\Internal\Operation\Issues\ListSubIssuesListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $issueNumber, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHub/src/Internal/Operator/Issues/RemoveSubIssue.php b/clients/GitHub/src/Internal/Operator/Issues/RemoveSubIssue.php new file mode 100644 index 00000000000..d67b7062c9c --- /dev/null +++ b/clients/GitHub/src/Internal/Operator/Issues/RemoveSubIssue.php @@ -0,0 +1,40 @@ +requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $owner, $repo, $issueNumber); + $request = $operation->createRequest($params); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Issue { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHub/src/Internal/Operator/Issues/ReprioritizeSubIssue.php b/clients/GitHub/src/Internal/Operator/Issues/ReprioritizeSubIssue.php new file mode 100644 index 00000000000..d46a25ce427 --- /dev/null +++ b/clients/GitHub/src/Internal/Operator/Issues/ReprioritizeSubIssue.php @@ -0,0 +1,40 @@ +requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $owner, $repo, $issueNumber); + $request = $operation->createRequest($params); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Issue { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHub/src/Internal/Operator/Repos/GetOrgRuleSuites.php b/clients/GitHub/src/Internal/Operator/Repos/GetOrgRuleSuites.php index 4725c7832f2..31b78f5aa7a 100644 --- a/clients/GitHub/src/Internal/Operator/Repos/GetOrgRuleSuites.php +++ b/clients/GitHub/src/Internal/Operator/Repos/GetOrgRuleSuites.php @@ -24,7 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $org, string $ref, string $repositoryName, string $actorName, string $timePeriod = 'day', string $ruleSuiteResult = 'all', int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHub\Internal\Operation\Repos\GetOrgRuleSuites($this->responseSchemaValidator, $this->hydrator, $org, $ref, $repositoryName, $actorName, $timePeriod, $ruleSuiteResult, $perPage, $page); diff --git a/clients/GitHub/src/Internal/Operator/Repos/GetOrgRuleSuitesListing.php b/clients/GitHub/src/Internal/Operator/Repos/GetOrgRuleSuitesListing.php index 69c91b848ad..12557cfcfd5 100644 --- a/clients/GitHub/src/Internal/Operator/Repos/GetOrgRuleSuitesListing.php +++ b/clients/GitHub/src/Internal/Operator/Repos/GetOrgRuleSuitesListing.php @@ -24,7 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $org, string $ref, string $repositoryName, string $actorName, string $timePeriod = 'day', string $ruleSuiteResult = 'all', int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHub\Internal\Operation\Repos\GetOrgRuleSuitesListing($this->responseSchemaValidator, $this->hydrator, $org, $ref, $repositoryName, $actorName, $timePeriod, $ruleSuiteResult, $perPage, $page); diff --git a/clients/GitHub/src/Internal/Operator/SecretScanning/GetScanHistory.php b/clients/GitHub/src/Internal/Operator/SecretScanning/GetScanHistory.php index 19d0e814383..3ac490ab45c 100644 --- a/clients/GitHub/src/Internal/Operator/SecretScanning/GetScanHistory.php +++ b/clients/GitHub/src/Internal/Operator/SecretScanning/GetScanHistory.php @@ -25,6 +25,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } + /** @return */ public function call(string $owner, string $repo): SecretScanningScanHistory|WithoutBody { $operation = new \ApiClients\Client\GitHub\Internal\Operation\SecretScanning\GetScanHistory($this->responseSchemaValidator, $this->hydrator, $owner, $repo); diff --git a/clients/GitHub/src/Internal/Operators.php b/clients/GitHub/src/Internal/Operators.php index 513d86fb5b4..9fc0b1a9fba 100644 --- a/clients/GitHub/src/Internal/Operators.php +++ b/clients/GitHub/src/Internal/Operators.php @@ -784,6 +784,11 @@ final class Operators private Internal\Operator\Reactions\ListForIssueListing|null $reactions👷ListForIssueListing = null; private Internal\Operator\Reactions\CreateForIssue|null $reactions👷CreateForIssue = null; private Internal\Operator\Reactions\DeleteForIssue|null $reactions👷DeleteForIssue = null; + private Internal\Operator\Issues\RemoveSubIssue|null $issues👷RemoveSubIssue = null; + private Internal\Operator\Issues\ListSubIssues|null $issues👷ListSubIssues = null; + private Internal\Operator\Issues\ListSubIssuesListing|null $issues👷ListSubIssuesListing = null; + private Internal\Operator\Issues\AddSubIssue|null $issues👷AddSubIssue = null; + private Internal\Operator\Issues\ReprioritizeSubIssue|null $issues👷ReprioritizeSubIssue = null; private Internal\Operator\Issues\ListEventsForTimeline|null $issues👷ListEventsForTimeline = null; private Internal\Operator\Issues\ListEventsForTimelineListing|null $issues👷ListEventsForTimelineListing = null; private Internal\Operator\Repos\ListDeployKeys|null $repos👷ListDeployKeys = null; @@ -8137,6 +8142,51 @@ public function reactions👷DeleteForIssue(): Internal\Operator\Reactions\Delet return $this->reactions👷DeleteForIssue; } + public function issues👷RemoveSubIssue(): Internal\Operator\Issues\RemoveSubIssue + { + if ($this->issues👷RemoveSubIssue instanceof Internal\Operator\Issues\RemoveSubIssue === false) { + $this->issues👷RemoveSubIssue = new Internal\Operator\Issues\RemoveSubIssue($this->browser, $this->authentication, $this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues🌀IssueNumber🌀SubIssue()); + } + + return $this->issues👷RemoveSubIssue; + } + + public function issues👷ListSubIssues(): Internal\Operator\Issues\ListSubIssues + { + if ($this->issues👷ListSubIssues instanceof Internal\Operator\Issues\ListSubIssues === false) { + $this->issues👷ListSubIssues = new Internal\Operator\Issues\ListSubIssues($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues🌀IssueNumber🌀SubIssues()); + } + + return $this->issues👷ListSubIssues; + } + + public function issues👷ListSubIssuesListing(): Internal\Operator\Issues\ListSubIssuesListing + { + if ($this->issues👷ListSubIssuesListing instanceof Internal\Operator\Issues\ListSubIssuesListing === false) { + $this->issues👷ListSubIssuesListing = new Internal\Operator\Issues\ListSubIssuesListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues🌀IssueNumber🌀SubIssues()); + } + + return $this->issues👷ListSubIssuesListing; + } + + public function issues👷AddSubIssue(): Internal\Operator\Issues\AddSubIssue + { + if ($this->issues👷AddSubIssue instanceof Internal\Operator\Issues\AddSubIssue === false) { + $this->issues👷AddSubIssue = new Internal\Operator\Issues\AddSubIssue($this->browser, $this->authentication, $this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues🌀IssueNumber🌀SubIssues()); + } + + return $this->issues👷AddSubIssue; + } + + public function issues👷ReprioritizeSubIssue(): Internal\Operator\Issues\ReprioritizeSubIssue + { + if ($this->issues👷ReprioritizeSubIssue instanceof Internal\Operator\Issues\ReprioritizeSubIssue === false) { + $this->issues👷ReprioritizeSubIssue = new Internal\Operator\Issues\ReprioritizeSubIssue($this->browser, $this->authentication, $this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues🌀IssueNumber🌀SubIssues🌀Priority()); + } + + return $this->issues👷ReprioritizeSubIssue; + } + public function issues👷ListEventsForTimeline(): Internal\Operator\Issues\ListEventsForTimeline { if ($this->issues👷ListEventsForTimeline instanceof Internal\Operator\Issues\ListEventsForTimeline === false) { diff --git a/clients/GitHub/src/Internal/Router/Delete/Issues.php b/clients/GitHub/src/Internal/Router/Delete/Issues.php index 8b2cf913513..d07c17c4684 100644 --- a/clients/GitHub/src/Internal/Router/Delete/Issues.php +++ b/clients/GitHub/src/Internal/Router/Delete/Issues.php @@ -130,6 +130,32 @@ public function unlock(array $params): WithoutBody return $operator->call($arguments['owner'], $arguments['repo'], $arguments['issue_number']); } + public function removeSubIssue(array $params): Issue + { + $arguments = []; + if (array_key_exists('owner', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: owner'); + } + + $arguments['owner'] = $params['owner']; + unset($params['owner']); + if (array_key_exists('repo', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: repo'); + } + + $arguments['repo'] = $params['repo']; + unset($params['repo']); + if (array_key_exists('issue_number', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: issue_number'); + } + + $arguments['issue_number'] = $params['issue_number']; + unset($params['issue_number']); + $operator = new Internal\Operator\Issues\RemoveSubIssue($this->browser, $this->authentication, $this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues🌀IssueNumber🌀SubIssue()); + + return $operator->call($arguments['owner'], $arguments['repo'], $arguments['issue_number'], $params); + } + /** @return */ public function deleteLabel(array $params): WithoutBody { diff --git a/clients/GitHub/src/Internal/Router/Delete/Seven.php b/clients/GitHub/src/Internal/Router/Delete/Seven.php index 58f7787ce2b..20bd064d13f 100644 --- a/clients/GitHub/src/Internal/Router/Delete/Seven.php +++ b/clients/GitHub/src/Internal/Router/Delete/Seven.php @@ -19,6 +19,7 @@ public function __construct(private Routers $routers) { } + /** @return |Schema\Issue */ public function call(string $call, array $params, array $pathChunks): WithoutBody|Json|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\DeleteFromOrganization\Response\ApplicationJson\Accepted\Application\Json|CodeScanningAnalysisDeletion|Issue|BasicError|PullRequestSimple { if ($pathChunks[0] === '') { @@ -195,6 +196,10 @@ public function call(string $call, array $params, array $pathChunks): WithoutBod if ($call === 'DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock') { return $this->routers->internal🔀Router🔀Delete🔀Issues()->unlock($params); } + } elseif ($pathChunks[6] === 'sub_issue') { + if ($call === 'DELETE /repos/{owner}/{repo}/issues/{issue_number}/sub_issue') { + return $this->routers->internal🔀Router🔀Delete🔀Issues()->removeSubIssue($params); + } } } } elseif ($pathChunks[4] === 'pulls') { diff --git a/clients/GitHub/src/Internal/Router/Get/Five.php b/clients/GitHub/src/Internal/Router/Get/Five.php index c8f2e6041db..4ac4c3b22e0 100644 --- a/clients/GitHub/src/Internal/Router/Get/Five.php +++ b/clients/GitHub/src/Internal/Router/Get/Five.php @@ -51,7 +51,7 @@ public function __construct(private Routers $routers) { } - /** @return |Observable|Observable|Observable|WithoutBody|Observable|Observable|Observable|Schema\BasicError|Observable|Observable|Observable|Observable|Observable|iterable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ + /** @return |Observable|Observable|Observable|WithoutBody|Observable|Observable|Observable|Schema\BasicError|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ public function call(string $call, array $params, array $pathChunks): HookDelivery|iterable|WithoutBody|GistComment|MarketplacePurchase|BasicError|ThreadSubscription|ActionsOrganizationPermissions|Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelfHostedRunnersForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListOrgSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListOrgVariables\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Orgs\ListAttestations\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListOrgSecrets\Response\ApplicationJson\Ok|CopilotOrganizationDetails|\ApiClients\Client\GitHub\Schema\Operations\Dependabot\ListOrgSecrets\Response\ApplicationJson\Ok|OrgHook|OrgMembership|Migration|OrganizationRole|RepositoryRuleset|TeamFull|ProjectCard|CheckAutomatedSecurityFixes|CodeSecurityConfigurationForRepository|Json|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetAllEnvironments\Response\ApplicationJson\Ok|Import|Installation|InteractionLimitResponse|One|Language|LicenseContent|Page|\ApiClients\Client\GitHub\Schema\Operations\Repos\CheckPrivateVulnerabilityReporting\Response\ApplicationJson\Ok|ContentFile|SimpleUser|Stargazer|RepositorySubscription|Topic|TeamDiscussion|TeamMembership|TeamProject|CodespacesUserPublicKey|CodespacesSecret|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\CodespaceMachinesForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Apps\ListInstallationReposForAuthenticatedUser\Response\ApplicationJson\Ok|Package|\ApiClients\Client\GitHub\Schema\Operations\Users\ListAttestations\Response\ApplicationJson\Ok|EmptyObject { if ($pathChunks[0] === '') { diff --git a/clients/GitHub/src/Internal/Router/Get/Issues.php b/clients/GitHub/src/Internal/Router/Get/Issues.php index 48a7718e288..324e3cb0a0f 100644 --- a/clients/GitHub/src/Internal/Router/Get/Issues.php +++ b/clients/GitHub/src/Internal/Router/Get/Issues.php @@ -800,6 +800,45 @@ public function listLabelsOnIssue(array $params): iterable|BasicError return $operator->call($arguments['owner'], $arguments['repo'], $arguments['issue_number'], $arguments['per_page'], $arguments['page']); } + /** @return iterable */ + public function listSubIssues(array $params): iterable + { + $arguments = []; + if (array_key_exists('owner', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: owner'); + } + + $arguments['owner'] = $params['owner']; + unset($params['owner']); + if (array_key_exists('repo', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: repo'); + } + + $arguments['repo'] = $params['repo']; + unset($params['repo']); + if (array_key_exists('issue_number', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: issue_number'); + } + + $arguments['issue_number'] = $params['issue_number']; + unset($params['issue_number']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + $operator = new Internal\Operator\Issues\ListSubIssues($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues🌀IssueNumber🌀SubIssues()); + + return $operator->call($arguments['owner'], $arguments['repo'], $arguments['issue_number'], $arguments['per_page'], $arguments['page']); + } + /** @return Observable */ public function listEventsForTimeline(array $params): iterable { diff --git a/clients/GitHub/src/Internal/Router/Get/Repos.php b/clients/GitHub/src/Internal/Router/Get/Repos.php index 0862f1e42fe..f30529c7a7e 100644 --- a/clients/GitHub/src/Internal/Router/Get/Repos.php +++ b/clients/GitHub/src/Internal/Router/Get/Repos.php @@ -309,7 +309,7 @@ public function listForUser(array $params): iterable return $operator->call($arguments['username'], $arguments['direction'], $arguments['type'], $arguments['sort'], $arguments['per_page'], $arguments['page']); } - /** @return iterable */ + /** @return Observable */ public function getOrgRuleSuites(array $params): iterable { $arguments = []; diff --git a/clients/GitHub/src/Internal/Router/Get/SecretScanning.php b/clients/GitHub/src/Internal/Router/Get/SecretScanning.php index 3f44f79c72c..c6abaf69736 100644 --- a/clients/GitHub/src/Internal/Router/Get/SecretScanning.php +++ b/clients/GitHub/src/Internal/Router/Get/SecretScanning.php @@ -283,6 +283,7 @@ public function listAlertsForRepo(array $params): iterable|WithoutBody return $operator->call($arguments['owner'], $arguments['repo'], $arguments['state'], $arguments['secret_type'], $arguments['resolution'], $arguments['before'], $arguments['after'], $arguments['validity'], $arguments['sort'], $arguments['direction'], $arguments['page'], $arguments['per_page'], $arguments['is_publicly_leaked'], $arguments['is_multi_repo']); } + /** @return */ public function getScanHistory(array $params): SecretScanningScanHistory|WithoutBody { $arguments = []; diff --git a/clients/GitHub/src/Internal/Router/Get/Seven.php b/clients/GitHub/src/Internal/Router/Get/Seven.php index a8637e9b33c..37556ffbcb9 100644 --- a/clients/GitHub/src/Internal/Router/Get/Seven.php +++ b/clients/GitHub/src/Internal/Router/Get/Seven.php @@ -63,7 +63,7 @@ public function __construct(private Routers $routers) { } - /** @return Observable|Observable||Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Schema\BasicError|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Schema\ConvertedNoteToIssueIssueEvent|Schema\TimelineCommentEvent|Schema\TimelineCrossReferencedEvent|Schema\TimelineCommittedEvent|Schema\TimelineReviewedEvent|Schema\TimelineLineCommentedEvent|Schema\TimelineCommitCommentedEvent|Schema\TimelineAssignedIssueEvent|Schema\TimelineUnassignedIssueEvent|Schema\StateChangeIssueEvent>|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ + /** @return Observable|Observable||Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Schema\BasicError|Observable|Observable|Observable|Observable|Observable|Observable|Observable|iterable|Schema\ConvertedNoteToIssueIssueEvent|Schema\TimelineCommentEvent|Schema\TimelineCrossReferencedEvent|Schema\TimelineCommittedEvent|Schema\TimelineReviewedEvent|Schema\TimelineLineCommentedEvent|Schema\TimelineCommitCommentedEvent|Schema\TimelineAssignedIssueEvent|Schema\TimelineUnassignedIssueEvent|Schema\StateChangeIssueEvent>|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ public function call(string $call, array $params, array $pathChunks): iterable|OidcCustomSub|Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelfHostedRunnersInGroupForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListLabelsForSelfHostedRunnerForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok|Json|WithoutBody|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Dependabot\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok\Application\Json|HookDelivery|TeamDiscussion|TeamMembership|TeamProject|Artifact|ActionsCacheUsageByRepository|Job|ActionsWorkflowAccessToRepository|SelectedActions|ActionsGetDefaultWorkflowPermissions|Runner|WorkflowRun|ActionsPublicKey|ActionsSecret|ActionsVariable|Workflow|BranchProtection|\ApiClients\Client\GitHub\Schema\Operations\Checks\ListForSuite\Response\ApplicationJson\Ok|CodeScanningAlert|CodeScanningAnalysis|CodeScanningSarifsStatus|CodespacesPublicKey|RepoCodespacesSecret|RepositoryCollaboratorPermission|\ApiClients\Client\GitHub\Schema\Operations\Checks\ListForRef\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Checks\ListSuitesForRef\Response\ApplicationJson\Ok|CombinedCommitStatus|BasicError|DependabotAlert|DependabotPublicKey|DependabotSecret|\ApiClients\Client\GitHub\Schema\Operations\Repos\ListDeploymentBranchPolicies\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetAllDeploymentProtectionRules\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListEnvironmentSecrets\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListEnvironmentVariables\Response\ApplicationJson\Ok\Application\Json|Blob|GitCommit|GitRef|GitTag|GitTree|WebhookConfig|IssueComment|IssueEvent|PageBuild|PagesDeploymentStatus|PullRequestReviewComment|PullRequestReviewRequest|ReleaseAsset|Release|RuleSuite|SecretScanningAlert|TeamDiscussionComment|PackageVersion { if ($pathChunks[0] === '') { @@ -552,6 +552,10 @@ public function call(string $call, array $params, array $pathChunks): iterable|O if ($call === 'GET /repos/{owner}/{repo}/issues/{issue_number}/reactions') { return $this->routers->internal🔀Router🔀Get🔀Reactions()->listForIssue($params); } + } elseif ($pathChunks[6] === 'sub_issues') { + if ($call === 'GET /repos/{owner}/{repo}/issues/{issue_number}/sub_issues') { + return $this->routers->internal🔀Router🔀Get🔀Issues()->listSubIssues($params); + } } elseif ($pathChunks[6] === 'timeline') { if ($call === 'GET /repos/{owner}/{repo}/issues/{issue_number}/timeline') { return $this->routers->internal🔀Router🔀Get🔀Issues()->listEventsForTimeline($params); diff --git a/clients/GitHub/src/Internal/Router/Get/Six.php b/clients/GitHub/src/Internal/Router/Get/Six.php index 5cd0bddd5f5..48b11e3354e 100644 --- a/clients/GitHub/src/Internal/Router/Get/Six.php +++ b/clients/GitHub/src/Internal/Router/Get/Six.php @@ -78,7 +78,7 @@ public function __construct(private Routers $routers) { } - /** @return |Observable|Observable|Observable|WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Schema\SecretScanningScanHistory|\ApiClients\Tools\OpenApiClient\Utils\Response\WithoutBody|Observable|Schema\Operations\Repos\GetCodeFrequencyStats\Response\ApplicationJson\Accepted\Application\Json|Observable|Schema\Operations\Repos\GetCommitActivityStats\Response\ApplicationJson\Accepted\Application\Json|Observable|Schema\Operations\Repos\GetContributorsStats\Response\ApplicationJson\Accepted\Application\Json|Observable|Observable|Observable|Observable|Observable */ + /** @return |Observable|Observable|Observable|WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Schema\Operations\Repos\GetCodeFrequencyStats\Response\ApplicationJson\Accepted\Application\Json|Observable|Schema\Operations\Repos\GetCommitActivityStats\Response\ApplicationJson\Accepted\Application\Json|Observable|Schema\Operations\Repos\GetContributorsStats\Response\ApplicationJson\Accepted\Application\Json|Observable|Observable|Observable|Observable|Observable */ public function call(string $call, array $params, array $pathChunks): Ok|iterable|BillingUsageReport|ActionsCacheUsageOrgEnterprise|\ApiClients\Client\GitHub\Schema\Operations\Actions\GetActionsCacheUsageByRepoForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelectedRepositoriesEnabledGithubActionsOrganization\Response\ApplicationJson\Ok|SelectedActions|ActionsGetDefaultWorkflowPermissions|RunnerGroupsOrg|Runner|ActionsPublicKey|OrganizationActionsSecret|OrganizationActionsVariable|WithoutBody|CodeSecurityConfiguration|CodespacesPublicKey|CodespacesOrgSecret|\ApiClients\Client\GitHub\Schema\Operations\Copilot\ListCopilotSeats\Response\ApplicationJson\Ok|DependabotPublicKey|OrganizationDependabotSecret|WebhookConfig|ApiInsightsSummaryStats|Json|CopilotSeatDetails|Package|CustomProperty|RuleSuite|ActionsBillingUsage|PackagesBillingUsage|CombinedBillingUsage|ProjectCollaboratorPermission|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListArtifactsForRepo\Response\ApplicationJson\Ok|ActionsCacheList|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoOrganizationSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoOrganizationVariables\Response\ApplicationJson\Ok|ActionsRepositoryPermissions|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelfHostedRunnersForRepo\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListWorkflowRunsForRepo\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoSecrets\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoVariables\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoWorkflows\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Repos\ListAttestations\Response\ApplicationJson\Ok\Application\Json|Autolink|BranchWithProtection|BasicError|CheckRun|CheckSuite|CodeScanningDefaultSetup|CodeownersErrors|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListDevcontainersInRepositoryForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\RepoMachinesForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\PreFlightWithRepoForAuthenticatedUser\Response\ApplicationJson\Ok|CodespacesPermissionsCheckForDevcontainer|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListRepoSecrets\Response\ApplicationJson\Ok|CommitComment|Commit|CommunityProfile|CommitComparison|ContentDirectory|ContentFile|ContentSymlink|ContentSubmodule|\ApiClients\Client\GitHub\Schema\Operations\Dependabot\ListRepoSecrets\Response\ApplicationJson\Ok|DependencyGraphSpdxSbom|Deployment|Environment|Hook|Issue|DeployKey|Label|Milestone|PagesHealthCheck|EmptyObject|PullRequest|Release|RepositoryRuleset|SecretScanningScanHistory|RepositoryAdvisory|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetCodeFrequencyStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetCommitActivityStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetContributorsStats\Response\ApplicationJson\Accepted\Application\Json|ParticipationStats|CloneTraffic|ViewTraffic|TeamRepository|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListRepositoriesForSecretForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|CodespaceExportDetails { if ($pathChunks[0] === '') { diff --git a/clients/GitHub/src/Internal/Router/List/Five.php b/clients/GitHub/src/Internal/Router/List/Five.php index 0555e3c34f4..fb1ba1d4709 100644 --- a/clients/GitHub/src/Internal/Router/List/Five.php +++ b/clients/GitHub/src/Internal/Router/List/Five.php @@ -16,7 +16,7 @@ public function __construct(private Routers $routers) { } - /** @return Observable|Observable|Observable|Observable|Schema\BasicError|WithoutBody|Observable|Observable|iterable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ + /** @return Observable|Observable|Observable|Observable|Schema\BasicError|WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ public function call(string $call, array $params, array $pathChunks): iterable|BasicError|WithoutBody { if ($pathChunks[0] === '') { diff --git a/clients/GitHub/src/Internal/Router/List/Issues.php b/clients/GitHub/src/Internal/Router/List/Issues.php index 198d4575047..36efed10fd6 100644 --- a/clients/GitHub/src/Internal/Router/List/Issues.php +++ b/clients/GitHub/src/Internal/Router/List/Issues.php @@ -610,6 +610,51 @@ public function listLabelsOnIssueListing(array $params): iterable|BasicError } while (count($items) > 0); } + /** @return iterable */ + public function listSubIssuesListing(array $params): iterable + { + $arguments = []; + if (array_key_exists('owner', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: owner'); + } + + $arguments['owner'] = $params['owner']; + unset($params['owner']); + if (array_key_exists('repo', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: repo'); + } + + $arguments['repo'] = $params['repo']; + unset($params['repo']); + if (array_key_exists('issue_number', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: issue_number'); + } + + $arguments['issue_number'] = $params['issue_number']; + unset($params['issue_number']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + $arguments['page'] = 1; + do { + $operator = new Internal\Operator\Issues\ListSubIssuesListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues🌀IssueNumber🌀SubIssues()); + $items = [...$operator->call($arguments['owner'], $arguments['repo'], $arguments['issue_number'], $arguments['per_page'], $arguments['page'])]; + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + /** @return Observable */ public function listEventsForTimelineListing(array $params): iterable { diff --git a/clients/GitHub/src/Internal/Router/List/Repos.php b/clients/GitHub/src/Internal/Router/List/Repos.php index cc6052f4609..9a727c8045a 100644 --- a/clients/GitHub/src/Internal/Router/List/Repos.php +++ b/clients/GitHub/src/Internal/Router/List/Repos.php @@ -259,7 +259,7 @@ public function listForUserListing(array $params): iterable } while (count($items) > 0); } - /** @return iterable */ + /** @return Observable */ public function getOrgRuleSuitesListing(array $params): iterable { $arguments = []; diff --git a/clients/GitHub/src/Internal/Router/List/Seven.php b/clients/GitHub/src/Internal/Router/List/Seven.php index 4fe1f14988d..103c2d20b23 100644 --- a/clients/GitHub/src/Internal/Router/List/Seven.php +++ b/clients/GitHub/src/Internal/Router/List/Seven.php @@ -14,7 +14,7 @@ public function __construct(private Routers $routers) { } - /** @return Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Schema\BasicError|Observable|Observable|Observable|Observable|Schema\ConvertedNoteToIssueIssueEvent|Schema\TimelineCommentEvent|Schema\TimelineCrossReferencedEvent|Schema\TimelineCommittedEvent|Schema\TimelineReviewedEvent|Schema\TimelineLineCommentedEvent|Schema\TimelineCommitCommentedEvent|Schema\TimelineAssignedIssueEvent|Schema\TimelineUnassignedIssueEvent|Schema\StateChangeIssueEvent>|Observable|Observable|Observable|Observable|Observable|Observable */ + /** @return Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Schema\BasicError|Observable|Observable|Observable|Observable|iterable|Schema\ConvertedNoteToIssueIssueEvent|Schema\TimelineCommentEvent|Schema\TimelineCrossReferencedEvent|Schema\TimelineCommittedEvent|Schema\TimelineReviewedEvent|Schema\TimelineLineCommentedEvent|Schema\TimelineCommitCommentedEvent|Schema\TimelineAssignedIssueEvent|Schema\TimelineUnassignedIssueEvent|Schema\StateChangeIssueEvent>|Observable|Observable|Observable|Observable|Observable|Observable */ public function call(string $call, array $params, array $pathChunks): iterable|BasicError { if ($pathChunks[0] === '') { @@ -137,6 +137,10 @@ public function call(string $call, array $params, array $pathChunks): iterable|B if ($call === 'LIST /repos/{owner}/{repo}/issues/{issue_number}/reactions') { return $this->routers->internal🔀Router🔀List🔀Reactions()->listForIssueListing($params); } + } elseif ($pathChunks[6] === 'sub_issues') { + if ($call === 'LIST /repos/{owner}/{repo}/issues/{issue_number}/sub_issues') { + return $this->routers->internal🔀Router🔀List🔀Issues()->listSubIssuesListing($params); + } } elseif ($pathChunks[6] === 'timeline') { if ($call === 'LIST /repos/{owner}/{repo}/issues/{issue_number}/timeline') { return $this->routers->internal🔀Router🔀List🔀Issues()->listEventsForTimelineListing($params); diff --git a/clients/GitHub/src/Internal/Router/Patch/Eight.php b/clients/GitHub/src/Internal/Router/Patch/Eight.php index 6942b177eef..f90701aa124 100644 --- a/clients/GitHub/src/Internal/Router/Patch/Eight.php +++ b/clients/GitHub/src/Internal/Router/Patch/Eight.php @@ -5,6 +5,7 @@ namespace ApiClients\Client\GitHub\Internal\Router\Patch; use ApiClients\Client\GitHub\Internal\Routers; +use ApiClients\Client\GitHub\Schema\Issue; use ApiClients\Client\GitHub\Schema\ProtectedBranchPullRequestReview; use ApiClients\Client\GitHub\Schema\StatusCheckPolicy; use ApiClients\Tools\OpenApiClient\Utils\Response\WithoutBody; @@ -16,7 +17,8 @@ public function __construct(private Routers $routers) { } - public function call(string $call, array $params, array $pathChunks): ProtectedBranchPullRequestReview|StatusCheckPolicy|WithoutBody + /** @return |Schema\Issue */ + public function call(string $call, array $params, array $pathChunks): ProtectedBranchPullRequestReview|StatusCheckPolicy|WithoutBody|Issue { if ($pathChunks[0] === '') { if ($pathChunks[1] === 'repos') { @@ -46,6 +48,16 @@ public function call(string $call, array $params, array $pathChunks): ProtectedB } } } + } elseif ($pathChunks[4] === 'issues') { + if ($pathChunks[5] === '{issue_number}') { + if ($pathChunks[6] === 'sub_issues') { + if ($pathChunks[7] === 'priority') { + if ($call === 'PATCH /repos/{owner}/{repo}/issues/{issue_number}/sub_issues/priority') { + return $this->routers->internal🔀Router🔀Patch🔀Issues()->reprioritizeSubIssue($params); + } + } + } + } } } } diff --git a/clients/GitHub/src/Internal/Router/Patch/Issues.php b/clients/GitHub/src/Internal/Router/Patch/Issues.php index 6de38d304d1..657352afb33 100644 --- a/clients/GitHub/src/Internal/Router/Patch/Issues.php +++ b/clients/GitHub/src/Internal/Router/Patch/Issues.php @@ -130,4 +130,30 @@ public function updateComment(array $params): IssueComment return $operator->call($arguments['owner'], $arguments['repo'], $arguments['comment_id'], $params); } + + public function reprioritizeSubIssue(array $params): Issue + { + $arguments = []; + if (array_key_exists('owner', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: owner'); + } + + $arguments['owner'] = $params['owner']; + unset($params['owner']); + if (array_key_exists('repo', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: repo'); + } + + $arguments['repo'] = $params['repo']; + unset($params['repo']); + if (array_key_exists('issue_number', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: issue_number'); + } + + $arguments['issue_number'] = $params['issue_number']; + unset($params['issue_number']); + $operator = new Internal\Operator\Issues\ReprioritizeSubIssue($this->browser, $this->authentication, $this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues🌀IssueNumber🌀SubIssues🌀Priority()); + + return $operator->call($arguments['owner'], $arguments['repo'], $arguments['issue_number'], $params); + } } diff --git a/clients/GitHub/src/Internal/Router/Post/Issues.php b/clients/GitHub/src/Internal/Router/Post/Issues.php index de34b343a21..744f55d7529 100644 --- a/clients/GitHub/src/Internal/Router/Post/Issues.php +++ b/clients/GitHub/src/Internal/Router/Post/Issues.php @@ -167,4 +167,30 @@ public function addLabels(array $params): iterable|BasicError return $operator->call($arguments['owner'], $arguments['repo'], $arguments['issue_number'], $params); } + + public function addSubIssue(array $params): Issue + { + $arguments = []; + if (array_key_exists('owner', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: owner'); + } + + $arguments['owner'] = $params['owner']; + unset($params['owner']); + if (array_key_exists('repo', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: repo'); + } + + $arguments['repo'] = $params['repo']; + unset($params['repo']); + if (array_key_exists('issue_number', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: issue_number'); + } + + $arguments['issue_number'] = $params['issue_number']; + unset($params['issue_number']); + $operator = new Internal\Operator\Issues\AddSubIssue($this->browser, $this->authentication, $this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues🌀IssueNumber🌀SubIssues()); + + return $operator->call($arguments['owner'], $arguments['repo'], $arguments['issue_number'], $params); + } } diff --git a/clients/GitHub/src/Internal/Router/Post/Seven.php b/clients/GitHub/src/Internal/Router/Post/Seven.php index a218394394b..96ed9a4e40d 100644 --- a/clients/GitHub/src/Internal/Router/Post/Seven.php +++ b/clients/GitHub/src/Internal/Router/Post/Seven.php @@ -35,7 +35,7 @@ public function __construct(private Routers $routers) { } - /** @return |Observable|Schema\BasicError */ + /** @return |Observable|Schema\BasicError|Schema\Issue */ public function call(string $call, array $params, array $pathChunks): Ok|Json|WithoutBody|Created|AuthenticationToken|BranchWithProtection|EmptyObject|CodeScanningVariantAnalysis|Reaction|CommitComment|DeploymentStatus|DeploymentBranchPolicy|DeploymentProtectionRule|Issue|IssueComment|iterable|BasicError|Codespace|PullRequestReviewComment|PullRequestSimple|PullRequestReview|ReleaseAsset|\ApiClients\Client\GitHub\Schema\Operations\SecurityAdvisories\CreateRepositoryAdvisoryCveRequest\Response\ApplicationJson\Accepted\Application\Json|FullRepository { if ($pathChunks[0] === '') { @@ -194,6 +194,10 @@ public function call(string $call, array $params, array $pathChunks): Ok|Json|Wi if ($call === 'POST /repos/{owner}/{repo}/issues/{issue_number}/reactions') { return $this->routers->internal🔀Router🔀Post🔀Reactions()->createForIssue($params); } + } elseif ($pathChunks[6] === 'sub_issues') { + if ($call === 'POST /repos/{owner}/{repo}/issues/{issue_number}/sub_issues') { + return $this->routers->internal🔀Router🔀Post🔀Issues()->addSubIssue($params); + } } } } elseif ($pathChunks[4] === 'pulls') { diff --git a/clients/GitHub/src/Operation/Issues.php b/clients/GitHub/src/Operation/Issues.php index 8fcee35dc26..232c78b5279 100644 --- a/clients/GitHub/src/Operation/Issues.php +++ b/clients/GitHub/src/Operation/Issues.php @@ -236,6 +236,33 @@ public function unlock(string $owner, string $repo, int $issueNumber): WithoutBo return $this->operators->issues👷Unlock()->call($owner, $repo, $issueNumber); } + public function removeSubIssue(string $owner, string $repo, int $issueNumber, array $params): Issue + { + return $this->operators->issues👷RemoveSubIssue()->call($owner, $repo, $issueNumber, $params); + } + + /** @return iterable */ + public function listSubIssues(string $owner, string $repo, int $issueNumber, int $perPage, int $page): iterable + { + return $this->operators->issues👷ListSubIssues()->call($owner, $repo, $issueNumber, $perPage, $page); + } + + /** @return iterable */ + public function listSubIssuesListing(string $owner, string $repo, int $issueNumber, int $perPage, int $page): iterable + { + return $this->operators->issues👷ListSubIssuesListing()->call($owner, $repo, $issueNumber, $perPage, $page); + } + + public function addSubIssue(string $owner, string $repo, int $issueNumber, array $params): Issue + { + return $this->operators->issues👷AddSubIssue()->call($owner, $repo, $issueNumber, $params); + } + + public function reprioritizeSubIssue(string $owner, string $repo, int $issueNumber, array $params): Issue + { + return $this->operators->issues👷ReprioritizeSubIssue()->call($owner, $repo, $issueNumber, $params); + } + /** @return Observable */ public function listEventsForTimeline(string $owner, string $repo, int $issueNumber, int $perPage, int $page): iterable { diff --git a/clients/GitHub/src/Operation/Repos.php b/clients/GitHub/src/Operation/Repos.php index 6971259f346..00083046fd2 100644 --- a/clients/GitHub/src/Operation/Repos.php +++ b/clients/GitHub/src/Operation/Repos.php @@ -107,13 +107,13 @@ public function createOrgRuleset(string $org, array $params): RepositoryRuleset return $this->operators->repos👷CreateOrgRuleset()->call($org, $params); } - /** @return iterable */ + /** @return Observable */ public function getOrgRuleSuites(string $org, string $ref, string $repositoryName, string $actorName, string $timePeriod, string $ruleSuiteResult, int $perPage, int $page): iterable { return $this->operators->repos👷GetOrgRuleSuites()->call($org, $ref, $repositoryName, $actorName, $timePeriod, $ruleSuiteResult, $perPage, $page); } - /** @return iterable */ + /** @return Observable */ public function getOrgRuleSuitesListing(string $org, string $ref, string $repositoryName, string $actorName, string $timePeriod, string $ruleSuiteResult, int $perPage, int $page): iterable { return $this->operators->repos👷GetOrgRuleSuitesListing()->call($org, $ref, $repositoryName, $actorName, $timePeriod, $ruleSuiteResult, $perPage, $page); diff --git a/clients/GitHub/src/Operation/SecretScanning.php b/clients/GitHub/src/Operation/SecretScanning.php index d0552e22982..fe593fd18b0 100644 --- a/clients/GitHub/src/Operation/SecretScanning.php +++ b/clients/GitHub/src/Operation/SecretScanning.php @@ -77,6 +77,7 @@ public function createPushProtectionBypass(string $owner, string $repo, array $p return $this->operators->secretScanning👷CreatePushProtectionBypass()->call($owner, $repo, $params); } + /** @return */ public function getScanHistory(string $owner, string $repo): SecretScanningScanHistory|WithoutBody { return $this->operators->secretScanning👷GetScanHistory()->call($owner, $repo); diff --git a/clients/GitHub/src/PHPStan/ClientCallReturnTypes.php b/clients/GitHub/src/PHPStan/ClientCallReturnTypes.php index a82b9ecfe75..9cecfc4ad3d 100644 --- a/clients/GitHub/src/PHPStan/ClientCallReturnTypes.php +++ b/clients/GitHub/src/PHPStan/ClientCallReturnTypes.php @@ -1428,11 +1428,11 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method } if ($call === 'GET /orgs/{org}/rulesets/rule-suites') { - return $this->typeResolver->resolve('iterable'); + return $this->typeResolver->resolve('Observable'); } if ($call === 'LIST /orgs/{org}/rulesets/rule-suites') { - return $this->typeResolver->resolve('iterable'); + return $this->typeResolver->resolve('Observable'); } if ($call === 'GET /orgs/{org}/rulesets/rule-suites/{rule_suite_id}') { @@ -3135,6 +3135,26 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method return $this->typeResolver->resolve(''); } + if ($call === 'DELETE /repos/{owner}/{repo}/issues/{issue_number}/sub_issue') { + return $this->typeResolver->resolve('Schema\\Issue'); + } + + if ($call === 'GET /repos/{owner}/{repo}/issues/{issue_number}/sub_issues') { + return $this->typeResolver->resolve('iterable'); + } + + if ($call === 'LIST /repos/{owner}/{repo}/issues/{issue_number}/sub_issues') { + return $this->typeResolver->resolve('iterable'); + } + + if ($call === 'POST /repos/{owner}/{repo}/issues/{issue_number}/sub_issues') { + return $this->typeResolver->resolve('Schema\\Issue'); + } + + if ($call === 'PATCH /repos/{owner}/{repo}/issues/{issue_number}/sub_issues/priority') { + return $this->typeResolver->resolve('Schema\\Issue'); + } + if ($call === 'GET /repos/{owner}/{repo}/issues/{issue_number}/timeline') { return $this->typeResolver->resolve('Observable'); } @@ -3644,7 +3664,7 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method } if ($call === 'GET /repos/{owner}/{repo}/secret-scanning/scan-history') { - return $this->typeResolver->resolve('Schema\\SecretScanningScanHistory|\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody'); + return $this->typeResolver->resolve(''); } if ($call === 'GET /repos/{owner}/{repo}/security-advisories') { diff --git a/clients/GitHub/src/Schema/AliasAbstract/Tiet7D50F94B/Tiet93FD5D40/TietCDF55A71/TietB32D1513.php b/clients/GitHub/src/Schema/AliasAbstract/Tiet4E41CFE9/TietB1CF9F2A/Tiet0DDE7646/Tiet0D084088.php similarity index 98% rename from clients/GitHub/src/Schema/AliasAbstract/Tiet7D50F94B/Tiet93FD5D40/TietCDF55A71/TietB32D1513.php rename to clients/GitHub/src/Schema/AliasAbstract/Tiet4E41CFE9/TietB1CF9F2A/Tiet0DDE7646/Tiet0D084088.php index d5691e5748c..0d60243034d 100644 --- a/clients/GitHub/src/Schema/AliasAbstract/Tiet7D50F94B/Tiet93FD5D40/TietCDF55A71/TietB32D1513.php +++ b/clients/GitHub/src/Schema/AliasAbstract/Tiet4E41CFE9/TietB1CF9F2A/Tiet0DDE7646/Tiet0D084088.php @@ -2,12 +2,12 @@ declare(strict_types=1); -namespace ApiClients\Client\GitHub\Schema\AliasAbstract\Tiet7D50F94B\Tiet93FD5D40\TietCDF55A71; +namespace ApiClients\Client\GitHub\Schema\AliasAbstract\Tiet4E41CFE9\TietB1CF9F2A\Tiet0DDE7646; use ApiClients\Client\GitHub\Schema; use EventSauce\ObjectHydrator\MapFrom; -abstract readonly class TietB32D1513 +abstract readonly class Tiet0D084088 { public const SCHEMA_JSON = '{ "title": "Issue", @@ -1114,6 +1114,26 @@ "type": "string", "format": "uri" }, + "sub_issues_summary": { + "title": "Sub-issues Summary", + "required": [ + "total", + "completed", + "percent_completed" + ], + "type": "object", + "properties": { + "total": { + "type": "integer" + }, + "completed": { + "type": "integer" + }, + "percent_completed": { + "type": "integer" + } + } + }, "state": { "enum": [ "open", @@ -1497,6 +1517,11 @@ "url": "https:\\/\\/example.com\\/" }, "repository_url": "https:\\/\\/example.com\\/", + "sub_issues_summary": { + "total": 5, + "completed": 9, + "percent_completed": 17 + }, "state": "open", "state_reason": "generated", "timeline_url": "https:\\/\\/example.com\\/", @@ -1550,7 +1575,8 @@ public function __construct(#[MapFrom('active_lock_reason')] public string $nodeId, public int $number, #[MapFrom('performed_via_github_app')] public Schema\WebhooksIssue2\PerformedViaGithubApp|null $performedViaGithubApp, #[MapFrom('pull_request')] public Schema\WebhooksIssue2\PullRequest|null $pullRequest, public Schema\WebhooksIssue2\Reactions $reactions, #[MapFrom('repository_url')] - public string $repositoryUrl, public string|null $state, #[MapFrom('state_reason')] + public string $repositoryUrl, #[MapFrom('sub_issues_summary')] + public Schema\WebhooksIssue2\SubIssuesSummary|null $subIssuesSummary, public string|null $state, #[MapFrom('state_reason')] public string|null $stateReason, #[MapFrom('timeline_url')] public string|null $timelineUrl, public string $title, #[MapFrom('updated_at')] public string $updatedAt, public string $url, public Schema\WebhooksIssue2\User|null $user,) diff --git a/clients/GitHub/src/Schema/AliasAbstract/Tiet5229E490/Tiet0081962F/Tiet31CBB446/TietE4F4DE72.php b/clients/GitHub/src/Schema/AliasAbstract/Tiet5229E490/Tiet0081962F/Tiet31CBB446/TietE4F4DE72.php new file mode 100644 index 00000000000..520445a2645 --- /dev/null +++ b/clients/GitHub/src/Schema/AliasAbstract/Tiet5229E490/Tiet0081962F/Tiet31CBB446/TietE4F4DE72.php @@ -0,0 +1,43 @@ + 'application/json'], json_encode(json_decode(Schema\Issue::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('POST', '/repos/generated/generated/issues/12/sub_issues', Argument::type('array'), json_encode(json_decode(Schema\Issues\AddSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Internal\Operation\Issues\AddSubIssue::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['issue_number'] = 12; + + return $data; + })(json_decode(Schema\Issues\AddSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true))); + } + + /** @test */ + public function operations_httpCode_201_requestContentType_application_json_responseContentType_application_json_zero(): void + { + $response = new Response(201, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\Issue::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('POST', '/repos/generated/generated/issues/12/sub_issues', Argument::type('array'), json_encode(json_decode(Schema\Issues\AddSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->issues()->addSubIssue('generated', 'generated', 12, json_decode(Schema\Issues\AddSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)); + } + + /** @test */ + public function call_httpCode_403_requestContentType_application_json_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(403, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('POST', '/repos/generated/generated/issues/12/sub_issues', Argument::type('array'), json_encode(json_decode(Schema\Issues\AddSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Internal\Operation\Issues\AddSubIssue::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['issue_number'] = 12; + + return $data; + })(json_decode(Schema\Issues\AddSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true))); + } + + /** @test */ + public function operations_httpCode_403_requestContentType_application_json_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(403, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('POST', '/repos/generated/generated/issues/12/sub_issues', Argument::type('array'), json_encode(json_decode(Schema\Issues\AddSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->issues()->addSubIssue('generated', 'generated', 12, json_decode(Schema\Issues\AddSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)); + } + + /** @test */ + public function call_httpCode_410_requestContentType_application_json_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(410, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('POST', '/repos/generated/generated/issues/12/sub_issues', Argument::type('array'), json_encode(json_decode(Schema\Issues\AddSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Internal\Operation\Issues\AddSubIssue::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['issue_number'] = 12; + + return $data; + })(json_decode(Schema\Issues\AddSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true))); + } + + /** @test */ + public function operations_httpCode_410_requestContentType_application_json_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(410, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('POST', '/repos/generated/generated/issues/12/sub_issues', Argument::type('array'), json_encode(json_decode(Schema\Issues\AddSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->issues()->addSubIssue('generated', 'generated', 12, json_decode(Schema\Issues\AddSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)); + } + + /** @test */ + public function call_httpCode_422_requestContentType_application_json_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\ValidationError::class); + $response = new Response(422, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\ValidationError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('POST', '/repos/generated/generated/issues/12/sub_issues', Argument::type('array'), json_encode(json_decode(Schema\Issues\AddSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Internal\Operation\Issues\AddSubIssue::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['issue_number'] = 12; + + return $data; + })(json_decode(Schema\Issues\AddSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true))); + } + + /** @test */ + public function operations_httpCode_422_requestContentType_application_json_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\ValidationError::class); + $response = new Response(422, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\ValidationError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('POST', '/repos/generated/generated/issues/12/sub_issues', Argument::type('array'), json_encode(json_decode(Schema\Issues\AddSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->issues()->addSubIssue('generated', 'generated', 12, json_decode(Schema\Issues\AddSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)); + } + + /** @test */ + public function call_httpCode_404_requestContentType_application_json_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('POST', '/repos/generated/generated/issues/12/sub_issues', Argument::type('array'), json_encode(json_decode(Schema\Issues\AddSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Internal\Operation\Issues\AddSubIssue::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['issue_number'] = 12; + + return $data; + })(json_decode(Schema\Issues\AddSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true))); + } + + /** @test */ + public function operations_httpCode_404_requestContentType_application_json_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('POST', '/repos/generated/generated/issues/12/sub_issues', Argument::type('array'), json_encode(json_decode(Schema\Issues\AddSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->issues()->addSubIssue('generated', 'generated', 12, json_decode(Schema\Issues\AddSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)); + } +} diff --git a/clients/GitHub/tests/Internal/Operation/Issues/ListSubIssuesListingTest.php b/clients/GitHub/tests/Internal/Operation/Issues/ListSubIssuesListingTest.php new file mode 100644 index 00000000000..b5f6160ed20 --- /dev/null +++ b/clients/GitHub/tests/Internal/Operation/Issues/ListSubIssuesListingTest.php @@ -0,0 +1,107 @@ + 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/issues/12/sub_issues?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Internal\Operation\Issues\ListSubIssuesListing::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['issue_number'] = 12; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_404_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/issues/12/sub_issues?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->issues()->listSubIssuesListing('generated', 'generated', 12, 8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_410_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(410, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/issues/12/sub_issues?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Internal\Operation\Issues\ListSubIssuesListing::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['issue_number'] = 12; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_410_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(410, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/issues/12/sub_issues?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->issues()->listSubIssuesListing('generated', 'generated', 12, 8, 1); + foreach ($result as $item) { + } + } +} diff --git a/clients/GitHub/tests/Internal/Operation/Issues/ListSubIssuesTest.php b/clients/GitHub/tests/Internal/Operation/Issues/ListSubIssuesTest.php new file mode 100644 index 00000000000..5f1ec86bf4e --- /dev/null +++ b/clients/GitHub/tests/Internal/Operation/Issues/ListSubIssuesTest.php @@ -0,0 +1,99 @@ + 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/issues/12/sub_issues?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Internal\Operation\Issues\ListSubIssues::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['issue_number'] = 12; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + } + + /** @test */ + public function operations_httpCode_404_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/issues/12/sub_issues?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->issues()->listSubIssues('generated', 'generated', 12, 8, 1); + } + + /** @test */ + public function call_httpCode_410_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(410, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/issues/12/sub_issues?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Internal\Operation\Issues\ListSubIssues::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['issue_number'] = 12; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + } + + /** @test */ + public function operations_httpCode_410_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(410, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/issues/12/sub_issues?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->issues()->listSubIssues('generated', 'generated', 12, 8, 1); + } +} diff --git a/clients/GitHub/tests/Internal/Operation/Issues/RemoveSubIssueTest.php b/clients/GitHub/tests/Internal/Operation/Issues/RemoveSubIssueTest.php new file mode 100644 index 00000000000..2253678b7ce --- /dev/null +++ b/clients/GitHub/tests/Internal/Operation/Issues/RemoveSubIssueTest.php @@ -0,0 +1,165 @@ + 'application/json'], json_encode(json_decode(Schema\Issue::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('DELETE', '/repos/generated/generated/issues/12/sub_issue', Argument::type('array'), json_encode(json_decode(Schema\Issues\RemoveSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Internal\Operation\Issues\RemoveSubIssue::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['issue_number'] = 12; + + return $data; + })(json_decode(Schema\Issues\RemoveSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true))); + } + + /** @test */ + public function operations_httpCode_200_requestContentType_application_json_responseContentType_application_json_zero(): void + { + $response = new Response(200, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\Issue::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('DELETE', '/repos/generated/generated/issues/12/sub_issue', Argument::type('array'), json_encode(json_decode(Schema\Issues\RemoveSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->issues()->removeSubIssue('generated', 'generated', 12, json_decode(Schema\Issues\RemoveSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)); + } + + /** @test */ + public function call_httpCode_400_requestContentType_application_json_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(400, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('DELETE', '/repos/generated/generated/issues/12/sub_issue', Argument::type('array'), json_encode(json_decode(Schema\Issues\RemoveSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Internal\Operation\Issues\RemoveSubIssue::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['issue_number'] = 12; + + return $data; + })(json_decode(Schema\Issues\RemoveSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true))); + } + + /** @test */ + public function operations_httpCode_400_requestContentType_application_json_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(400, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('DELETE', '/repos/generated/generated/issues/12/sub_issue', Argument::type('array'), json_encode(json_decode(Schema\Issues\RemoveSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->issues()->removeSubIssue('generated', 'generated', 12, json_decode(Schema\Issues\RemoveSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)); + } + + /** @test */ + public function call_httpCode_400_requestContentType_application_json_responseContentType_application_scim_json_zero(): void + { + self::expectException(ErrorSchemas\ScimError::class); + $response = new Response(400, ['Content-Type' => 'application/scim+json'], json_encode(json_decode(Schema\ScimError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('DELETE', '/repos/generated/generated/issues/12/sub_issue', Argument::type('array'), json_encode(json_decode(Schema\Issues\RemoveSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Internal\Operation\Issues\RemoveSubIssue::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['issue_number'] = 12; + + return $data; + })(json_decode(Schema\Issues\RemoveSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true))); + } + + /** @test */ + public function operations_httpCode_400_requestContentType_application_json_responseContentType_application_scim_json_zero(): void + { + self::expectException(ErrorSchemas\ScimError::class); + $response = new Response(400, ['Content-Type' => 'application/scim+json'], json_encode(json_decode(Schema\ScimError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('DELETE', '/repos/generated/generated/issues/12/sub_issue', Argument::type('array'), json_encode(json_decode(Schema\Issues\RemoveSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->issues()->removeSubIssue('generated', 'generated', 12, json_decode(Schema\Issues\RemoveSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)); + } + + /** @test */ + public function call_httpCode_404_requestContentType_application_json_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('DELETE', '/repos/generated/generated/issues/12/sub_issue', Argument::type('array'), json_encode(json_decode(Schema\Issues\RemoveSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Internal\Operation\Issues\RemoveSubIssue::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['issue_number'] = 12; + + return $data; + })(json_decode(Schema\Issues\RemoveSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true))); + } + + /** @test */ + public function operations_httpCode_404_requestContentType_application_json_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('DELETE', '/repos/generated/generated/issues/12/sub_issue', Argument::type('array'), json_encode(json_decode(Schema\Issues\RemoveSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->issues()->removeSubIssue('generated', 'generated', 12, json_decode(Schema\Issues\RemoveSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)); + } +} diff --git a/clients/GitHub/tests/Internal/Operation/Issues/ReprioritizeSubIssueTest.php b/clients/GitHub/tests/Internal/Operation/Issues/ReprioritizeSubIssueTest.php new file mode 100644 index 00000000000..f4b3ee0f355 --- /dev/null +++ b/clients/GitHub/tests/Internal/Operation/Issues/ReprioritizeSubIssueTest.php @@ -0,0 +1,201 @@ + 'application/json'], json_encode(json_decode(Schema\Issue::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('PATCH', '/repos/generated/generated/issues/12/sub_issues/priority', Argument::type('array'), json_encode(json_decode(Schema\Issues\ReprioritizeSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Internal\Operation\Issues\ReprioritizeSubIssue::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['issue_number'] = 12; + + return $data; + })(json_decode(Schema\Issues\ReprioritizeSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true))); + } + + /** @test */ + public function operations_httpCode_200_requestContentType_application_json_responseContentType_application_json_zero(): void + { + $response = new Response(200, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\Issue::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('PATCH', '/repos/generated/generated/issues/12/sub_issues/priority', Argument::type('array'), json_encode(json_decode(Schema\Issues\ReprioritizeSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->issues()->reprioritizeSubIssue('generated', 'generated', 12, json_decode(Schema\Issues\ReprioritizeSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)); + } + + /** @test */ + public function call_httpCode_403_requestContentType_application_json_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(403, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('PATCH', '/repos/generated/generated/issues/12/sub_issues/priority', Argument::type('array'), json_encode(json_decode(Schema\Issues\ReprioritizeSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Internal\Operation\Issues\ReprioritizeSubIssue::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['issue_number'] = 12; + + return $data; + })(json_decode(Schema\Issues\ReprioritizeSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true))); + } + + /** @test */ + public function operations_httpCode_403_requestContentType_application_json_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(403, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('PATCH', '/repos/generated/generated/issues/12/sub_issues/priority', Argument::type('array'), json_encode(json_decode(Schema\Issues\ReprioritizeSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->issues()->reprioritizeSubIssue('generated', 'generated', 12, json_decode(Schema\Issues\ReprioritizeSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)); + } + + /** @test */ + public function call_httpCode_404_requestContentType_application_json_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('PATCH', '/repos/generated/generated/issues/12/sub_issues/priority', Argument::type('array'), json_encode(json_decode(Schema\Issues\ReprioritizeSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Internal\Operation\Issues\ReprioritizeSubIssue::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['issue_number'] = 12; + + return $data; + })(json_decode(Schema\Issues\ReprioritizeSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true))); + } + + /** @test */ + public function operations_httpCode_404_requestContentType_application_json_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('PATCH', '/repos/generated/generated/issues/12/sub_issues/priority', Argument::type('array'), json_encode(json_decode(Schema\Issues\ReprioritizeSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->issues()->reprioritizeSubIssue('generated', 'generated', 12, json_decode(Schema\Issues\ReprioritizeSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)); + } + + /** @test */ + public function call_httpCode_422_requestContentType_application_json_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\ValidationErrorSimple::class); + $response = new Response(422, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\ValidationErrorSimple::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('PATCH', '/repos/generated/generated/issues/12/sub_issues/priority', Argument::type('array'), json_encode(json_decode(Schema\Issues\ReprioritizeSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Internal\Operation\Issues\ReprioritizeSubIssue::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['issue_number'] = 12; + + return $data; + })(json_decode(Schema\Issues\ReprioritizeSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true))); + } + + /** @test */ + public function operations_httpCode_422_requestContentType_application_json_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\ValidationErrorSimple::class); + $response = new Response(422, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\ValidationErrorSimple::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('PATCH', '/repos/generated/generated/issues/12/sub_issues/priority', Argument::type('array'), json_encode(json_decode(Schema\Issues\ReprioritizeSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->issues()->reprioritizeSubIssue('generated', 'generated', 12, json_decode(Schema\Issues\ReprioritizeSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)); + } + + /** @test */ + public function call_httpCode_503_requestContentType_application_json_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\Operations\SecretScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable::class); + $response = new Response(503, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\Operations\SecretScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('PATCH', '/repos/generated/generated/issues/12/sub_issues/priority', Argument::type('array'), json_encode(json_decode(Schema\Issues\ReprioritizeSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Internal\Operation\Issues\ReprioritizeSubIssue::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['issue_number'] = 12; + + return $data; + })(json_decode(Schema\Issues\ReprioritizeSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true))); + } + + /** @test */ + public function operations_httpCode_503_requestContentType_application_json_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\Operations\SecretScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable::class); + $response = new Response(503, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\Operations\SecretScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('PATCH', '/repos/generated/generated/issues/12/sub_issues/priority', Argument::type('array'), json_encode(json_decode(Schema\Issues\ReprioritizeSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->issues()->reprioritizeSubIssue('generated', 'generated', 12, json_decode(Schema\Issues\ReprioritizeSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)); + } +} diff --git a/clients/GitHub/tests/Types/ClientCallReturnTypes.php b/clients/GitHub/tests/Types/ClientCallReturnTypes.php index 00bf3746980..77cb5f7a53e 100644 --- a/clients/GitHub/tests/Types/ClientCallReturnTypes.php +++ b/clients/GitHub/tests/Types/ClientCallReturnTypes.php @@ -363,8 +363,8 @@ function authHeader(): string assertType('Observable', $client->call('GET /orgs/{org}/rulesets')); assertType('Observable', $client->call('LIST /orgs/{org}/rulesets')); assertType('', $client->call('POST /orgs/{org}/rulesets')); -assertType('iterable', $client->call('GET /orgs/{org}/rulesets/rule-suites')); -assertType('iterable', $client->call('LIST /orgs/{org}/rulesets/rule-suites')); +assertType('Observable', $client->call('GET /orgs/{org}/rulesets/rule-suites')); +assertType('Observable', $client->call('LIST /orgs/{org}/rulesets/rule-suites')); assertType('', $client->call('GET /orgs/{org}/rulesets/rule-suites/{rule_suite_id}')); assertType('', $client->call('GET /orgs/{org}/rulesets/{ruleset_id}')); assertType('', $client->call('PUT /orgs/{org}/rulesets/{ruleset_id}')); @@ -790,6 +790,11 @@ function authHeader(): string assertType('Observable', $client->call('LIST /repos/{owner}/{repo}/issues/{issue_number}/reactions')); assertType('', $client->call('POST /repos/{owner}/{repo}/issues/{issue_number}/reactions')); assertType('', $client->call('DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}')); +assertType('Schema\\Issue', $client->call('DELETE /repos/{owner}/{repo}/issues/{issue_number}/sub_issue')); +assertType('iterable', $client->call('GET /repos/{owner}/{repo}/issues/{issue_number}/sub_issues')); +assertType('iterable', $client->call('LIST /repos/{owner}/{repo}/issues/{issue_number}/sub_issues')); +assertType('Schema\\Issue', $client->call('POST /repos/{owner}/{repo}/issues/{issue_number}/sub_issues')); +assertType('Schema\\Issue', $client->call('PATCH /repos/{owner}/{repo}/issues/{issue_number}/sub_issues/priority')); assertType('Observable', $client->call('GET /repos/{owner}/{repo}/issues/{issue_number}/timeline')); assertType('Observable', $client->call('LIST /repos/{owner}/{repo}/issues/{issue_number}/timeline')); assertType('Observable', $client->call('GET /repos/{owner}/{repo}/keys')); @@ -917,7 +922,7 @@ function authHeader(): string assertType('Observable|WithoutBody', $client->call('GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations')); assertType('Observable|WithoutBody', $client->call('LIST /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations')); assertType('', $client->call('POST /repos/{owner}/{repo}/secret-scanning/push-protection-bypasses')); -assertType('Schema\\SecretScanningScanHistory|\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody', $client->call('GET /repos/{owner}/{repo}/secret-scanning/scan-history')); +assertType('', $client->call('GET /repos/{owner}/{repo}/secret-scanning/scan-history')); assertType('Observable', $client->call('GET /repos/{owner}/{repo}/security-advisories')); assertType('', $client->call('POST /repos/{owner}/{repo}/security-advisories')); assertType('', $client->call('POST /repos/{owner}/{repo}/security-advisories/reports')); diff --git a/etc/specs/GitHub/current.spec.yaml b/etc/specs/GitHub/current.spec.yaml index 99fa3815e79..16071898afe 100644 --- a/etc/specs/GitHub/current.spec.yaml +++ b/etc/specs/GitHub/current.spec.yaml @@ -33697,6 +33697,255 @@ paths: enabledForGitHubApps: true category: reactions subcategory: reactions + "/repos/{owner}/{repo}/issues/{issue_number}/sub_issue": + delete: + summary: Remove sub-issue + description: |- + You can use the REST API to remove a sub-issue from an issue. + Removing content too quickly using this endpoint may result in secondary rate limiting. + For more information, see "[Rate limits for the API](https://docs.github.com/rest/using-the-rest-api/rate-limits-for-the-rest-api#about-secondary-rate-limits)" + and "[Best practices for using the REST API](https://docs.github.com/rest/guides/best-practices-for-using-the-rest-api)." + This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)." + - **`application/vnd.github.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass a specific media type. + - **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`. + - **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`. + - **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`. + tags: + - issues + operationId: issues/remove-sub-issue + externalDocs: + description: API method documentation + url: https://docs.github.com/rest/issues/sub-issues#remove-sub-issue + parameters: + - "$ref": "#/components/parameters/owner" + - "$ref": "#/components/parameters/repo" + - "$ref": "#/components/parameters/issue-number" + requestBody: + required: true + content: + application/json: + schema: + type: object + properties: + sub_issue_id: + type: integer + description: The sub-issue to remove + required: + - sub_issue_id + examples: + default: + value: + sub_issue_id: 6 + responses: + '200': + description: Response + content: + application/json: + schema: + "$ref": "#/components/schemas/issue" + examples: + default: + "$ref": "#/components/examples/issue" + headers: + Location: + example: https://api.github.com/repos/octocat/Hello-World/issues/1/sub-issue + schema: + type: string + '400': + "$ref": "#/components/responses/bad_request" + '404': + "$ref": "#/components/responses/not_found" + x-github: + triggersNotification: true + githubCloudOnly: false + enabledForGitHubApps: true + category: issues + subcategory: sub-issues + "/repos/{owner}/{repo}/issues/{issue_number}/sub_issues": + get: + summary: List sub-issues + description: |- + You can use the REST API to list the sub-issues on an issue. + + This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)." + + - **`application/vnd.github.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type. + - **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`. + - **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`. + - **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`. + tags: + - issues + operationId: issues/list-sub-issues + externalDocs: + description: API method documentation + url: https://docs.github.com/rest/issues/sub-issues#list-sub-issues + parameters: + - "$ref": "#/components/parameters/owner" + - "$ref": "#/components/parameters/repo" + - "$ref": "#/components/parameters/issue-number" + - "$ref": "#/components/parameters/per-page" + - "$ref": "#/components/parameters/page" + responses: + '200': + description: Response + content: + application/json: + schema: + type: array + items: + "$ref": "#/components/schemas/issue" + examples: + default: + "$ref": "#/components/examples/issue-items" + headers: + Link: + "$ref": "#/components/headers/link" + '404': + "$ref": "#/components/responses/not_found" + '410': + "$ref": "#/components/responses/gone" + x-github: + githubCloudOnly: false + enabledForGitHubApps: true + category: issues + subcategory: sub-issues + post: + summary: Add sub-issue + description: |- + You can use the REST API to add sub-issues to issues. + + Creating content too quickly using this endpoint may result in secondary rate limiting. + For more information, see "[Rate limits for the API](https://docs.github.com/rest/using-the-rest-api/rate-limits-for-the-rest-api#about-secondary-rate-limits)" + and "[Best practices for using the REST API](https://docs.github.com/rest/guides/best-practices-for-using-the-rest-api)." + + This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)." + + - **`application/vnd.github.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type. + - **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`. + - **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`. + - **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`. + tags: + - issues + operationId: issues/add-sub-issue + externalDocs: + description: API method documentation + url: https://docs.github.com/rest/issues/sub-issues#add-sub-issue + parameters: + - "$ref": "#/components/parameters/owner" + - "$ref": "#/components/parameters/repo" + - "$ref": "#/components/parameters/issue-number" + requestBody: + required: true + content: + application/json: + schema: + type: object + properties: + sub_issue_id: + type: integer + description: The sub-issue to add + replace_parent: + type: boolean + description: Option that, when true, instructs the operation to + replace the sub-issues current parent issue + required: + - sub_issue_id + examples: + default: + value: + sub_issue_id: 1 + responses: + '201': + description: Response + content: + application/json: + schema: + "$ref": "#/components/schemas/issue" + examples: + default: + "$ref": "#/components/examples/issue" + headers: + Location: + example: https://api.github.com/repos/octocat/Hello-World/issues/sub-issues/1 + schema: + type: string + '403': + "$ref": "#/components/responses/forbidden" + '410': + "$ref": "#/components/responses/gone" + '422': + "$ref": "#/components/responses/validation_failed" + '404': + "$ref": "#/components/responses/not_found" + x-github: + githubCloudOnly: false + enabledForGitHubApps: true + category: issues + subcategory: sub-issues + "/repos/{owner}/{repo}/issues/{issue_number}/sub_issues/priority": + patch: + summary: Reprioritize sub-issue + description: You can use the REST API to reprioritize a sub-issue to a different + position in the parent list. + tags: + - issues + operationId: issues/reprioritize-sub-issue + externalDocs: + description: API method documentation + url: https://docs.github.com/rest/issues/sub-issues#reprioritize-sub-issue + parameters: + - "$ref": "#/components/parameters/owner" + - "$ref": "#/components/parameters/repo" + - "$ref": "#/components/parameters/issue-number" + requestBody: + required: true + content: + application/json: + schema: + type: object + properties: + sub_issue_id: + type: integer + description: The id of the sub-issue to reprioritize + after_id: + type: integer + description: The id of the sub-issue to be prioritized after (either + positional argument after OR before should be specified). + before_id: + type: integer + description: The id of the sub-issue to be prioritized before (either + positional argument after OR before should be specified). + required: + - sub_issue_id + examples: + default: + value: + sub_issue_id: 6 + after_id: 5 + responses: + '200': + description: Response + content: + application/json: + schema: + "$ref": "#/components/schemas/issue" + examples: + default: + "$ref": "#/components/examples/issue" + '403': + "$ref": "#/components/responses/forbidden" + '404': + "$ref": "#/components/responses/not_found" + '422': + "$ref": "#/components/responses/validation_failed_simple" + '503': + "$ref": "#/components/responses/service_unavailable" + x-github: + triggersNotification: true + githubCloudOnly: false + enabledForGitHubApps: true + category: issues + subcategory: sub-issues "/repos/{owner}/{repo}/issues/{issue_number}/timeline": get: summary: List timeline events for an issue @@ -70355,6 +70604,20 @@ components: - hooray - eyes - rocket + sub-issues-summary: + title: Sub-issues Summary + type: object + properties: + total: + type: integer + completed: + type: integer + percent_completed: + type: integer + required: + - total + - completed + - percent_completed issue: title: Issue description: Issues are a great way to keep track of tasks, enhancements, and @@ -70549,6 +70812,8 @@ components: "$ref": "#/components/schemas/author-association" reactions: "$ref": "#/components/schemas/reaction-rollup" + sub_issues_summary: + "$ref": "#/components/schemas/sub-issues-summary" required: - assignee - closed_at @@ -90285,6 +90550,20 @@ components: type: - string - 'null' + sub_issues_summary: + title: Sub-issues Summary + type: object + properties: + total: + type: integer + completed: + type: integer + percent_completed: + type: integer + required: + - total + - completed + - percent_completed state: type: string state_reason: @@ -95398,6 +95677,20 @@ components: repository_url: type: string format: uri + sub_issues_summary: + title: Sub-issues Summary + type: object + properties: + total: + type: integer + completed: + type: integer + percent_completed: + type: integer + required: + - total + - completed + - percent_completed state: description: State of the issue; either 'open' or 'closed' type: string @@ -96464,6 +96757,20 @@ components: repository_url: type: string format: uri + sub_issues_summary: + title: Sub-issues Summary + type: object + properties: + total: + type: integer + completed: + type: integer + percent_completed: + type: integer + required: + - total + - completed + - percent_completed state: description: State of the issue; either 'open' or 'closed' type: string @@ -113954,6 +114261,20 @@ components: repository_url: type: string format: uri + sub_issues_summary: + title: Sub-issues Summary + type: object + properties: + total: + type: integer + completed: + type: integer + percent_completed: + type: integer + required: + - total + - completed + - percent_completed state: description: State of the issue; either 'open' or 'closed' type: string @@ -115151,6 +115472,20 @@ components: repository_url: type: string format: uri + sub_issues_summary: + title: Sub-issues Summary + type: object + properties: + total: + type: integer + completed: + type: integer + percent_completed: + type: integer + required: + - total + - completed + - percent_completed state: description: State of the issue; either 'open' or 'closed' type: string @@ -116355,6 +116690,20 @@ components: repository_url: type: string format: uri + sub_issues_summary: + title: Sub-issues Summary + type: object + properties: + total: + type: integer + completed: + type: integer + percent_completed: + type: integer + required: + - total + - completed + - percent_completed state: description: State of the issue; either 'open' or 'closed' type: string @@ -117584,6 +117933,20 @@ components: repository_url: type: string format: uri + sub_issues_summary: + title: Sub-issues Summary + type: object + properties: + total: + type: integer + completed: + type: integer + percent_completed: + type: integer + required: + - total + - completed + - percent_completed state: description: State of the issue; either 'open' or 'closed' type: string @@ -118672,6 +119035,20 @@ components: repository_url: type: string format: uri + sub_issues_summary: + title: Sub-issues Summary + type: object + properties: + total: + type: integer + completed: + type: integer + percent_completed: + type: integer + required: + - total + - completed + - percent_completed state: description: State of the issue; either 'open' or 'closed' type: string @@ -119641,6 +120018,20 @@ components: repository_url: type: string format: uri + sub_issues_summary: + title: Sub-issues Summary + type: object + properties: + total: + type: integer + completed: + type: integer + percent_completed: + type: integer + required: + - total + - completed + - percent_completed state: description: State of the issue; either 'open' or 'closed' type: string @@ -120592,6 +120983,20 @@ components: repository_url: type: string format: uri + sub_issues_summary: + title: Sub-issues Summary + type: object + properties: + total: + type: integer + completed: + type: integer + percent_completed: + type: integer + required: + - total + - completed + - percent_completed state: description: State of the issue; either 'open' or 'closed' type: string @@ -121545,6 +121950,20 @@ components: repository_url: type: string format: uri + sub_issues_summary: + title: Sub-issues Summary + type: object + properties: + total: + type: integer + completed: + type: integer + percent_completed: + type: integer + required: + - total + - completed + - percent_completed state: description: State of the issue; either 'open' or 'closed' type: string @@ -122522,6 +122941,20 @@ components: repository_url: type: string format: uri + sub_issues_summary: + title: Sub-issues Summary + type: object + properties: + total: + type: integer + completed: + type: integer + percent_completed: + type: integer + required: + - total + - completed + - percent_completed state: description: State of the issue; either 'open' or 'closed' type: string @@ -123468,6 +123901,20 @@ components: repository_url: type: string format: uri + sub_issues_summary: + title: Sub-issues Summary + type: object + properties: + total: + type: integer + completed: + type: integer + percent_completed: + type: integer + required: + - total + - completed + - percent_completed state: description: State of the issue; either 'open' or 'closed' type: string @@ -124396,6 +124843,20 @@ components: repository_url: type: string format: uri + sub_issues_summary: + title: Sub-issues Summary + type: object + properties: + total: + type: integer + completed: + type: integer + percent_completed: + type: integer + required: + - total + - completed + - percent_completed state: description: State of the issue; either 'open' or 'closed' type: string @@ -125804,6 +126265,20 @@ components: repository_url: type: string format: uri + sub_issues_summary: + title: Sub-issues Summary + type: object + properties: + total: + type: integer + completed: + type: integer + percent_completed: + type: integer + required: + - total + - completed + - percent_completed state: description: State of the issue; either 'open' or 'closed' type: string @@ -126801,6 +127276,20 @@ components: repository_url: type: string format: uri + sub_issues_summary: + title: Sub-issues Summary + type: object + properties: + total: + type: integer + completed: + type: integer + percent_completed: + type: integer + required: + - total + - completed + - percent_completed state: description: State of the issue; either 'open' or 'closed' type: string @@ -127725,6 +128214,20 @@ components: repository_url: type: string format: uri + sub_issues_summary: + title: Sub-issues Summary + type: object + properties: + total: + type: integer + completed: + type: integer + percent_completed: + type: integer + required: + - total + - completed + - percent_completed state: description: State of the issue; either 'open' or 'closed' type: string @@ -129239,6 +129742,20 @@ components: repository_url: type: string format: uri + sub_issues_summary: + title: Sub-issues Summary + type: object + properties: + total: + type: integer + completed: + type: integer + percent_completed: + type: integer + required: + - total + - completed + - percent_completed state: description: State of the issue; either 'open' or 'closed' type: string