diff --git a/clients/GitHub/README.md b/clients/GitHub/README.md index 57ddd0726e7..645715809d6 100644 --- a/clients/GitHub/README.md +++ b/clients/GitHub/README.md @@ -6394,6 +6394,90 @@ $client->operations()->orgs()->listInvitationTeamsListing( org: 'generate You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/orgs/members#list-organization-invitation-teams). +### orgs/list-issue-types + +List issue types for an organization + +Using the `call` method: +```php +$client->call('GET /orgs/{org}/issue-types', [ + 'org' => 'generated', +]); +``` + +Operations method: +```php +$client->operations()->orgs()->listIssueTypes( org: 'generated', +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/orgs/issue-types#list-issue-types-for-an-organization). + + +### orgs/create-issue-type + +Create issue type for an organization + +Using the `call` method: +```php +$client->call('POST /orgs/{org}/issue-types', [ + 'org' => 'generated', +]); +``` + +Operations method: +```php +$client->operations()->orgs()->createIssueType( org: 'generated', +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/orgs/issue-types#create-issue-type-for-an-organization). + + +### orgs/update-issue-type + +Update issue type for an organization + +Using the `call` method: +```php +$client->call('PUT /orgs/{org}/issue-types/{issue_type_id}', [ + 'org' => 'generated', + 'issue_type_id' => 13, +]); +``` + +Operations method: +```php +$client->operations()->orgs()->updateIssueType( org: 'generated', + issue_type_id: 13, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/orgs/issue-types#update-issue-type-for-an-organization). + + +### orgs/delete-issue-type + +Delete issue type for an organization + +Using the `call` method: +```php +$client->call('DELETE /orgs/{org}/issue-types/{issue_type_id}', [ + 'org' => 'generated', + 'issue_type_id' => 13, +]); +``` + +Operations method: +```php +$client->operations()->orgs()->deleteIssueType( org: 'generated', + issue_type_id: 13, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/orgs/issue-types#delete-issue-type-for-an-organization). + + ### issues/list-for-org List organization issues assigned to the authenticated user @@ -6403,6 +6487,7 @@ Using the `call` method: $client->call('GET /orgs/{org}/issues', [ 'org' => 'generated', 'labels' => 'generated', + 'type' => 'generated', 'since' => '1970-01-01T00:00:00+00:00', 'filter' => 'generated', 'state' => 'generated', @@ -6417,6 +6502,7 @@ Operations method: ```php $client->operations()->issues()->listForOrg( org: 'generated', labels: 'generated', + type: 'generated', since: '1970-01-01T00:00:00+00:00', filter: 'generated', state: 'generated', @@ -6439,6 +6525,7 @@ Using the `call` method: $client->call('LIST /orgs/{org}/issues', [ 'org' => 'generated', 'labels' => 'generated', + 'type' => 'generated', 'since' => '1970-01-01T00:00:00+00:00', 'filter' => 'generated', 'state' => 'generated', @@ -6453,6 +6540,7 @@ Operations method: ```php $client->operations()->issues()->listForOrgListing( org: 'generated', labels: 'generated', + type: 'generated', since: '1970-01-01T00:00:00+00:00', filter: 'generated', state: 'generated', @@ -18782,6 +18870,7 @@ $client->call('GET /repos/{owner}/{repo}/issues', [ 'repo' => 'generated', 'milestone' => 'generated', 'assignee' => 'generated', + 'type' => 'generated', 'creator' => 'generated', 'mentioned' => 'generated', 'labels' => 'generated', @@ -18800,6 +18889,7 @@ $client->operations()->issues()->listForRepo( owner: 'generated', repo: 'generated', milestone: 'generated', assignee: 'generated', + type: 'generated', creator: 'generated', mentioned: 'generated', labels: 'generated', @@ -18826,6 +18916,7 @@ $client->call('LIST /repos/{owner}/{repo}/issues', [ 'repo' => 'generated', 'milestone' => 'generated', 'assignee' => 'generated', + 'type' => 'generated', 'creator' => 'generated', 'mentioned' => 'generated', 'labels' => 'generated', @@ -18844,6 +18935,7 @@ $client->operations()->issues()->listForRepoListing( owner: 'generated', repo: 'generated', milestone: 'generated', assignee: 'generated', + type: 'generated', creator: 'generated', mentioned: 'generated', labels: 'generated', diff --git a/clients/GitHub/etc/openapi-client-generator.state b/clients/GitHub/etc/openapi-client-generator.state index efd7bcf4445..6cad3009449 100644 --- a/clients/GitHub/etc/openapi-client-generator.state +++ b/clients/GitHub/etc/openapi-client-generator.state @@ -1,5 +1,5 @@ { - "specHash": "6b88df041143c890905098eb26e5a9a4", + "specHash": "808b83641f5a6cdecf73cd52f50366e7", "generatedFiles": { "files": [ { @@ -84,11 +84,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/AppPermissions.php", - "hash": "a0b779ba9cd59b4cbc11323bab42857b" + "hash": "fe9d6426db6e930df03aad84a75e3842" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Installation.php", - "hash": "e33aeb3b57927488275d4ab581d0d9e4" + "hash": "e576a3ae07c2f4b07ab44826d26d2d77" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/LicenseSimple.php", @@ -100,15 +100,15 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/InstallationToken.php", - "hash": "2bd85294eba5c72f01b55a9d526c3775" + "hash": "248c2783ef8a36175ab609e0ea816555" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/ScopedInstallation.php", - "hash": "8eede8aed72c0aa3bae10744e3d97069" + "hash": "527e679c0a3fda0ab4eed0b1d022537c" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Authorization.php", - "hash": "368da61f9bfbeeeb8a1eaca98e177c05" + "hash": "7dd8c2a546e9d6e49af106ed9e89a3ef" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CodeOfConduct.php", @@ -196,7 +196,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Issue.php", - "hash": "97938b7af1ccd9745e480b15b4b7bdac" + "hash": "d3eb491b5dc095da502cc854aa29ff77" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/IssueComment.php", @@ -204,7 +204,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Event.php", - "hash": "e4d79e332bf5ebdf4ebdb15321843f33" + "hash": "e2fcd3710e2e3d7bf8345a3df781be55" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/LinkWithType.php", @@ -1136,7 +1136,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/IssueEvent.php", - "hash": "13485b84e7e185c35e3acc73aa15a55c" + "hash": "f06a40db5e419e3fcdb305dae0e4c72f" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/LabeledIssueEvent.php", @@ -1212,7 +1212,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/TimelineCrossReferencedEvent.php", - "hash": "6711f5ecfe09899873a2b82c008de2c6" + "hash": "a01717b15d623db42d8ee70c49d04b31" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/TimelineCommittedEvent.php", @@ -1248,7 +1248,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/TimelineIssueEvents.php", - "hash": "e2c4d81d76712b9794f1ba47b6193a5a" + "hash": "d6caa48a0596dff990fcfba497607e68" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/DeployKey.php", @@ -1456,7 +1456,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/IssueSearchResultItem.php", - "hash": "c5affc7930aa2af5e662dd95a231797c" + "hash": "638b3ce946aea36dd33fae48d464d15c" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/LabelSearchResultItem.php", @@ -1792,27 +1792,27 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookInstallationCreated.php", - "hash": "d411bc6cf7eef6bf54d6428a56bd2df9" + "hash": "fe1aa5a804935e1bd33a519162c27b26" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookInstallationDeleted.php", - "hash": "8940d8020823f74b12f5441fafff628a" + "hash": "cf2b7742430b0d72693bcd9dd0c3966a" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookInstallationNewPermissionsAccepted.php", - "hash": "bde7e206618869905d77a6bf74eacd8b" + "hash": "1362d4ad8232000da1ca066e590aa6d5" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookInstallationRepositoriesAdded.php", - "hash": "08a814808b1ef2e3c0520e792240696c" + "hash": "a06be6ea5b0baab63e52a77e3582e28d" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookInstallationRepositoriesRemoved.php", - "hash": "9199fa88a2926d1bd459972414978004" + "hash": "ae8459cf5206dbf275aac915fa84ad2c" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookInstallationSuspend.php", - "hash": "b2c6b80c0ab3781135ff10bec4572815" + "hash": "a254c07a935590b219de357587213716" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookInstallationTargetRenamed.php", @@ -1820,83 +1820,83 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookInstallationUnsuspend.php", - "hash": "1ce35200121104f320133001f7a7ef36" + "hash": "865a3c82f55d8e494eecd9ca397353bd" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssueCommentCreated.php", - "hash": "4dff2d6ffd2faf52f6a937dd047e8c48" + "hash": "10ffc59bfebd8a2af33b0228464dc98c" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssueCommentDeleted.php", - "hash": "6384e22520185de210e4dfed9890f1c1" + "hash": "c96417dda0ef5f32d372237fbe0b9931" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssueCommentEdited.php", - "hash": "0cd8b9da71e2eadd4125117ddb87555d" + "hash": "cd793080f316dc2a85ecde31f253833b" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesAssigned.php", - "hash": "a898d270a0edde04e34304ef3641c4a5" + "hash": "1f9da9c9fb040de5cedea5c6eb0bc590" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesClosed.php", - "hash": "15ab6666996aafab793d7effd0ffcfb3" + "hash": "fb42ee19630f6100b24e907c1559c71d" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesDeleted.php", - "hash": "ae131b79ff4e0e6d315a8fd48772936d" + "hash": "7d72fb7902dbe806c53e4e2e41d82573" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesDemilestoned.php", - "hash": "85e1f7968c248328297b483f98ec0b48" + "hash": "0e78b17a1664a12c049b80c2b213b482" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesEdited.php", - "hash": "1b27b97b364178a221313a8862d53e44" + "hash": "87242c1701e1c4d9a577e19e53dd1c71" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesLabeled.php", - "hash": "c39f4bd0f1d7c5b6d95588b184b7e19c" + "hash": "28211c43c606cf5964ac733ee19c0db7" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesLocked.php", - "hash": "f76c6360ae4d7e219180b414ce9e7927" + "hash": "1a763258c50a301edf631e76839f000b" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesMilestoned.php", - "hash": "ba1d7d116727e74e3b903079f6bb0192" + "hash": "daf694ae9d0642b5ead5a7215a4fb310" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesOpened.php", - "hash": "605bca09e335949efeab739fd763f7e2" + "hash": "968fff152274273c336cc82094463dba" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesPinned.php", - "hash": "4015c085ad77dd3b3a604301b31fc977" + "hash": "77a408f1bb84db49c34e773f14f359f0" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesReopened.php", - "hash": "0eb217a216204e4eb334ed9ee8012047" + "hash": "b87887a4326bbc8ded8e72d4e668d890" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesTransferred.php", - "hash": "742138572576aa9d4cfb88a07508ab2c" + "hash": "be476b1631df90f66d881908c1431028" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesUnassigned.php", - "hash": "77439009575c067ab43d1e37ba657a4b" + "hash": "8eb6734114963679c1acda3baa9c8a00" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesUnlabeled.php", - "hash": "03b7fabef8764a195bfe49a8788b4bc6" + "hash": "f55b8ef1577eb7053741d5f5f73a835e" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesUnlocked.php", - "hash": "e6d48bf068781c5560ca151f2b289d31" + "hash": "5601a52b178ff4053315340c2d724197" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesUnpinned.php", - "hash": "de34943a889121e62c313cbdef45dc59" + "hash": "9ef3f5ad10583b511cdf5279ef8bd1bc" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookLabelCreated.php", @@ -2584,7 +2584,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Event\/Payload.php", - "hash": "f944bbe8c6eac566369fa5c6463b6ba3" + "hash": "45997a9fa36e33164f6368c2b3364021" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Event\/Payload\/Pages.php", @@ -3100,7 +3100,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/TimelineCrossReferencedEvent\/Source.php", - "hash": "36077a9e567b6c0336e38c7285f58689" + "hash": "a6af36f9356a5c36768da6fdd5536e29" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/TimelineReviewedEvent\/Links.php", @@ -3500,7 +3500,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssueCommentCreated\/Issue.php", - "hash": "7026286b894fcb43ef78586a626f5f3d" + "hash": "bb09bd39cbf0644b57d273dfc967abb8" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssueCommentCreated\/Issue\/Assignee.php", @@ -3520,7 +3520,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssueCommentDeleted\/Issue.php", - "hash": "c6c7df5a0e69faec4e2c407da6608a00" + "hash": "282a0a15c2245f094ed36612a59349e1" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssueCommentDeleted\/Issue\/PerformedViaGithubApp.php", @@ -3528,7 +3528,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssueCommentEdited\/Issue.php", - "hash": "c5e6b6e195bd454e183f5d316cee3a43" + "hash": "fecf1b4af72eff84ffd324218a6c64ad" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssueCommentEdited\/Issue\/PerformedViaGithubApp.php", @@ -3540,7 +3540,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesClosed\/Issue.php", - "hash": "13be4c82b3d7d3579e2e6338d02ea4fe" + "hash": "93974f89c9fcf3005381f9f2793d4551" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesClosed\/Issue\/PerformedViaGithubApp.php", @@ -3548,7 +3548,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesDeleted\/Issue.php", - "hash": "b2dd88e6f4f69c2af12e38ab4cb89c9b" + "hash": "387ced925103c62254795b37b1e02377" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesDeleted\/Issue\/Milestone.php", @@ -3560,7 +3560,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesDemilestoned\/Issue.php", - "hash": "787cb942d88b0b242834d2df7c9fd9ce" + "hash": "02980b8e21a20c52b6e1e4c74c50efd0" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesDemilestoned\/Issue\/PerformedViaGithubApp.php", @@ -3576,7 +3576,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesEdited\/Issue.php", - "hash": "f22848f387cc2544d5cd848b729fdc92" + "hash": "ea1c696a6bdb0d0e43d42f1a1097c961" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesEdited\/Issue\/PerformedViaGithubApp.php", @@ -3584,7 +3584,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesLabeled\/Issue.php", - "hash": "ee30d98c7a259c79242ef9b05ffeb4fb" + "hash": "168d947c08e21698bde56941e6ab6334" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesLabeled\/Issue\/PerformedViaGithubApp.php", @@ -3592,7 +3592,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesLocked\/Issue.php", - "hash": "3d97a15a132bf42abb8009364e29358f" + "hash": "0694f15c2876299a652edf7e94dc6422" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesLocked\/Issue\/PerformedViaGithubApp.php", @@ -3600,7 +3600,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesMilestoned\/Issue.php", - "hash": "e8cc9c6b937ee34d0d379e78b76c3edb" + "hash": "b238f1a709fa3838bc950e07b873ce95" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesMilestoned\/Issue\/PerformedViaGithubApp.php", @@ -3620,11 +3620,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesOpened\/Issue.php", - "hash": "28508c790fc929d88f75debe602cb60c" + "hash": "35e0174f4ee93cd1328dda0cf0ef46a6" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesReopened\/Issue.php", - "hash": "d29323e948b5147f0c30b80e9d48e27b" + "hash": "3283d2a3385ab03dd40d8cbf8b87a5ab" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesReopened\/Issue\/PerformedViaGithubApp.php", @@ -3632,7 +3632,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesTransferred\/Changes.php", - "hash": "f1a860890548856022c2d3b7cada69ae" + "hash": "8bdb8ae85acb75bee2bf4d7bc56cc5c0" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesTransferred\/Changes\/NewRepository.php", @@ -4348,7 +4348,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Apps\/CreateInstallationAccessToken\/Request\/ApplicationJson.php", - "hash": "70e4dec56af2d415c396e8ebe8c12d7f" + "hash": "bdc9c782ca3c3b6f714e5dbe3e8a70f0" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Apps\/DeleteAuthorization\/Request\/ApplicationJson.php", @@ -4360,7 +4360,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Apps\/ScopeToken\/Request\/ApplicationJson.php", - "hash": "2a3e45dcc2d0ca4b54876090f104da4c" + "hash": "d5c0e90b2cb02ac41739312a4db0a6a7" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Operations\/SecretScanning\/ListAlertsForEnterprise\/Response\/ApplicationJson\/ServiceUnavailable.php", @@ -4572,7 +4572,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Operations\/Orgs\/ListAppInstallations\/Response\/ApplicationJson\/Ok.php", - "hash": "eb1ee954258552e2ac60d77695c99eb0" + "hash": "392be96f450779bd853b8289ed7c4c08" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Operations\/Interactions\/GetRestrictionsForOrg\/Response\/ApplicationJson\/Ok.php", @@ -5132,7 +5132,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Issues\/Create\/Request\/ApplicationJson.php", - "hash": "7fbb74ddb6ce41034235f2778b9ee33d" + "hash": "58d9cbfc582af8b196b8c88b0f0d48fe" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Issues\/Create\/Request\/ApplicationJson\/Labels\/One.php", @@ -5148,7 +5148,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Issues\/Update\/Request\/ApplicationJson.php", - "hash": "4e4502e57019266889727a161fe0ae4a" + "hash": "fbf6609d1b12d0daa1e76dfec693c212" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Issues\/AddAssignees\/Request\/ApplicationJson.php", @@ -5376,7 +5376,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Operations\/Search\/IssuesAndPullRequests\/Response\/ApplicationJson\/Ok.php", - "hash": "b84a128bac471ac647ab965e8cd2c632" + "hash": "180e0922e7337cf682407c28219490c5" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Operations\/Search\/Labels\/Response\/ApplicationJson\/Ok.php", @@ -5500,11 +5500,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/ClientInterface.php", - "hash": "75c53e33fe2f0f9a5d71a9cc04c9b9b0" + "hash": "ddea5c9c485dfa810a5deb15f2cd0c6c" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Client.php", - "hash": "477d6c73a7800c8981041af6ac7d5085" + "hash": "bb91aa697bbc17401d5320471a98c987" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/OperationsInterface.php", @@ -5548,7 +5548,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Issues.php", - "hash": "0cb6f33663c50fe44bb16e57678fa623" + "hash": "83469cbec0e660cb4cedcd2a9201bc41" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Licenses.php", @@ -5560,7 +5560,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Orgs.php", - "hash": "1da6aef59f5343f7ec09b996f9b78773" + "hash": "eafb3bc49f410fd2608a4b5db1174d08" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Actions.php", @@ -9240,11 +9240,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesTransferred\/Changes\/NewIssue.php", - "hash": "342e94a4b37288b1d50626a6cc7c0815" + "hash": "ab8b16e234757db8356337fe56192f66" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesUnlocked\/Issue.php", - "hash": "6d4fb0c9a20d1ea784f2fa08bd54c1d6" + "hash": "355990ac75d0ed64f92eab6ccde5fce2" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookPullRequestReviewThreadResolved\/PullRequest\/Base\/Repo.php", @@ -11108,11 +11108,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Operations\/Apps\/ListInstallationsForAuthenticatedUser\/Response\/ApplicationJson\/Ok.php", - "hash": "0325e7310ac5234cb58e94797962d49c" + "hash": "782491865f3b206d9afabd96aa774582" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Operations\/Apps\/ListInstallationsForAuthenticatedUser\/Response\/ApplicationJson\/Ok\/Application\/Json.php", - "hash": "790d22bb5226e124234be24f4ce8e117" + "hash": "1eac64de9899ed67b15984f1f7bf061f" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/TietFA125E0A\/TietE31E9C15\/Tiet5F33BC89\/Tiet9EE2A17F.php", @@ -14300,27 +14300,27 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Issues\/ListForOrg.php", - "hash": "5b4dec314d995613359b1fbbf82c9d6a" + "hash": "76dc78e19772742404c047fbcb9e6d44" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Issues\/ListForOrg.php", - "hash": "03cee7f9b662a1daec8801538ed22ca0" + "hash": "183280b671de7938327078af3ebffd29" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Issues\/ListForOrgTest.php", - "hash": "4ca61ca5c5d49c95927a4ed46a8dbe26" + "hash": "a3368440b03911f5083231f561270003" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Issues\/ListForOrgListing.php", - "hash": "5ab8881b27e1e0afde7290b9a5da5732" + "hash": "989db3aa3d3c0dcbc53b1f216e393a2a" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Issues\/ListForOrgListing.php", - "hash": "4f3c8e1e71da29c7ccdb040541b8d066" + "hash": "00ef28eef2e88dabefcc6e36b9293df0" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Issues\/ListForOrgListingTest.php", - "hash": "db69eea12632adb095b32de92e90626b" + "hash": "051a15348ed7b2e3e03a5522659e923e" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Orgs\/ListMembers.php", @@ -19216,27 +19216,27 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Issues\/ListForRepo.php", - "hash": "638b85189652c21fbbbc608a913dffe0" + "hash": "2b307183e032d49b28d2f1538f66a0b9" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Issues\/ListForRepo.php", - "hash": "a3891640c819e3967beed0428a0e7811" + "hash": "599ae7a0c9e34acfa02a6c07ca8f3246" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Issues\/ListForRepoTest.php", - "hash": "a1a52cf933945421181909cf5836f135" + "hash": "36a6da90e2e03a4789da8f51d299fc8c" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Issues\/ListForRepoListing.php", - "hash": "9fca807d87ee88ab51ea4f042740a8d0" + "hash": "336474be1594604289b3794e281ddd27" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Issues\/ListForRepoListing.php", - "hash": "a82b2bf7308a034882ff2d354605d4e4" + "hash": "1aefbdbc3e69263ac048e371da008172" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Issues\/ListForRepoListingTest.php", - "hash": "758a2e68db86751c0da39f99de76dd5f" + "hash": "9faa428f8fc10863874d030d59f30c35" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Issues\/Create.php", @@ -24324,7 +24324,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Issues.php", - "hash": "3eae340a9f0f93509717648f24474e04" + "hash": "5524daffaa3c2319b9b09dce3ec9f252" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Licenses.php", @@ -24332,7 +24332,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Orgs.php", - "hash": "96eb32bd69d1b2662b65a40c33366d8e" + "hash": "4239599c21c71f5fc54a6e9d089301a4" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/RateLimit.php", @@ -24436,7 +24436,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Post\/Orgs.php", - "hash": "aab55b98f2b34fb53b59e3c3c230daf3" + "hash": "2c11e03a592bad87f6bb12a4d580c7e9" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Post\/Migrations.php", @@ -24600,7 +24600,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Issues.php", - "hash": "83278779a8c70284b1225d30d5ab3d8b" + "hash": "d9cebed1823ae968436da35899feda8b" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Migrations.php", @@ -24692,7 +24692,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Orgs.php", - "hash": "266c20bdaba2041563f13ed256e63e48" + "hash": "9413f15c95bb3779ad5a4b5d1c7a06f6" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Teams.php", @@ -24752,7 +24752,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Put\/Orgs.php", - "hash": "f216337da6ea505b2938bd94df3bda5c" + "hash": "adf00daf7173993f45a50f968a11e592" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Put\/Codespaces.php", @@ -24828,11 +24828,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Four.php", - "hash": "18a08639d99cec6fb1771a5fd26fd9e4" + "hash": "362b1b8309bf627fec638eb0b155281b" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Five.php", - "hash": "f5ec8d2962554a8e1637fe776cd73689" + "hash": "dbfb613b4f6c535e5c90cac507a0939d" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Six.php", @@ -24856,7 +24856,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Post\/Four.php", - "hash": "c0a4568cdfce7d871a323f6a36b3b3f7" + "hash": "58f962b54c6ad5b2b7550bee6176d36b" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Post\/Six.php", @@ -24932,11 +24932,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Four.php", - "hash": "0bd1bbcad8e6f0a66a2ee13388a836ac" + "hash": "abfb7bcc621e7b5acd65ee1f3ae87bfa" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Five.php", - "hash": "7516af6b41f8a9d3b475684f306347be" + "hash": "6cf900ad2dd7d8c4a6b67af7c06120d4" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Six.php", @@ -24964,7 +24964,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Five.php", - "hash": "c41bc57f877914abf6e513e7ee9a28ee" + "hash": "3e3810430ec82d3f3bd6c316d8906e08" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Three.php", @@ -24992,7 +24992,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Put\/Five.php", - "hash": "0a742f9138ec72f53ae49632d0c48ed3" + "hash": "7a8f8a77aa149161b97e0ea057d28605" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Put\/Four.php", @@ -25040,7 +25040,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operators.php", - "hash": "bdb4e179632891ccd085cbe66ebe0a34" + "hash": "f2ceef7e71ccd284a09ce93ae9c220ff" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Root.php", @@ -26304,7 +26304,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Issues.php", - "hash": "6d8c34a61d5efd8d3b162c60a0b830a4" + "hash": "467d7721c15206e0d8ee833fd4b7a64f" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Issues\/Comments.php", @@ -26324,15 +26324,15 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Issues\/Events\/EventId.php", - "hash": "8cd84814d3d7cc28c34ab927a7359735" + "hash": "841ffcf7c5e3c447ddf840a9ee690c3a" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Issues\/IssueNumber.php", - "hash": "52e42b2c6b21784fc48d51a57d61e31c" + "hash": "e7f9beb818eddec6ddf21f79d3a89433" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Issues\/IssueNumber\/Assignees.php", - "hash": "2f822da358a65a8feced4d7ee7b0caf6" + "hash": "fb6c37296d4b839eb1758e1155166c5d" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Issues\/IssueNumber\/Assignees\/Assignee.php", @@ -27032,7 +27032,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrators.php", - "hash": "e3c5299adad34a9748b81a04602c8bf3" + "hash": "3a2874257b56d756d8a77df78cb41ed2" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/OrganizationSimpleWebhooks.php", @@ -27612,11 +27612,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/PHPStan\/ClientCallReturnTypes.php", - "hash": "0d3db6688c9fae3081f04b53c53152cc" + "hash": "44eccde38011241f8697895fb62ffceb" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Types\/ClientCallReturnTypes.php", - "hash": "5c629eef52f39ab563b41d080fb37095" + "hash": "ddcb6cf595ecdff3a8e701126c96a48f" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/..\/etc\/phpstan-extension.neon", @@ -28004,11 +28004,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/IssueComment.php", - "hash": "87317eb722980a30843ad49ab0eff2d5" + "hash": "97ad52456a6a00899b7404e969c1d7a5" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/Issues.php", - "hash": "77a1897ebb48b245e2fce887d55c8778" + "hash": "dc9c2dfe3a3aa4364434212e630c4b94" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/Label.php", @@ -28836,7 +28836,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhooksIssue.php", - "hash": "c7e16d65509e3f8e3036feacfe5327aa" + "hash": "90b0552ad401548bef035dee374710d8" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhooksMilestone.php", @@ -28844,7 +28844,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhooksIssue2.php", - "hash": "42fb72ba6339511a860b8c8c040069e9" + "hash": "35c06c9eb61e1bd2a006071793b7029a" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhooksIssueComment\/User.php", @@ -30024,19 +30024,19 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookSubIssuesParentIssueAdded.php", - "hash": "0997af6da47af64249af5c0237bbb786" + "hash": "18f1b278d46e2848d1944d9d171dd3da" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookSubIssuesParentIssueRemoved.php", - "hash": "ae3d094a0362036b5de4f0b5fd7ff4d0" + "hash": "100e3dfdf747aff08ed40cd4a59b5a2c" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookSubIssuesSubIssueAdded.php", - "hash": "c50fbf0cb96352fc91ed99e8bf50fc21" + "hash": "50a575e3ac4132d54c60c3b29b8cd25f" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookSubIssuesSubIssueRemoved.php", - "hash": "db66dffc1ae5c37caab143e773344f72" + "hash": "ca5a9b95c1dfc2faa8792d30b0305e5a" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/ApiOverview\/Domains\/ArtifactAttestations.php", @@ -30048,7 +30048,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/SubIssues.php", - "hash": "28f5a5f54bab3870fd0a5e333e175e5a" + "hash": "8c6a4e36b586649fbed750938f0140f8" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CvssSeverities.php", @@ -30406,10 +30406,6 @@ "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet3360D974\/Tiet0A1EBE3C\/TietCBE4EB4F\/TietC368D360.php", "hash": "34b1735a7d9902387ccc1395af4437c9" }, - { - "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet69A6FC90\/TietEF30F65A\/Tiet9798C033\/Tiet5960D0A8.php", - "hash": "ad0ae713799e089543ac4722ef405ffb" - }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet66F4412D\/TietFC2046E3\/TietB3D959E1\/Tiet27911EDC.php", "hash": "e941f7964b7bdc49c3392db3e915dd7e" @@ -30962,14 +30958,6 @@ "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": "da9a309a91862ce1c2430db5325c1040" @@ -30984,15 +30972,15 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Issues\/IssueNumber\/SubIssue.php", - "hash": "58849edbbac491fa7aceac3d27b002c8" + "hash": "c2b30cc098399fb6b9ba2b9c4a3b0894" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Issues\/IssueNumber\/SubIssues.php", - "hash": "98673c3a75c63ccf4282cf7a1d57cd43" + "hash": "887b664d99c3c569521e16a5e67be573" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Issues\/IssueNumber\/SubIssues\/Priority.php", - "hash": "ffd5978df2928a8efbbf1ea3ada3acb3" + "hash": "a678e70593c65992df00817863fc89c7" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CodeScanningDefaultSetupOptions.php", @@ -31004,7 +30992,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CustomPropertySetPayload.php", - "hash": "6e651111d80718a6372d4e88de3a8094" + "hash": "93a86861fdb805a781f94b63afcaab7b" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet9EC65F6E\/Tiet54735A02\/Tiet6044DE21\/Tiet16F5868C.php", @@ -31933,6 +31921,86 @@ { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/TietE8D41C9A\/Tiet1255E585\/Tiet44FA9DEE\/Tiet93E2B36C.php", "hash": "2fce70a0a22b2db105029f1c0f441123" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Orgs\/ListIssueTypes.php", + "hash": "e93a08db33f5410c891acc353fa29d9d" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Orgs\/ListIssueTypes.php", + "hash": "6aa64ea3ef3bfd6f2429e22019391afc" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Orgs\/ListIssueTypesTest.php", + "hash": "feec297eba4b4cc765c9a5d2c9105fa3" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Orgs\/CreateIssueType.php", + "hash": "fa9cb2506a1372433fb44426a4ef01f1" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Orgs\/CreateIssueType.php", + "hash": "cfec27a5dbe42bd623409bde67e85cd4" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Orgs\/CreateIssueTypeTest.php", + "hash": "ee4187729c95a72d6ca0eca4127e0f19" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Orgs\/UpdateIssueType.php", + "hash": "28788c71e06a185045a06bd70e9319fb" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Orgs\/UpdateIssueType.php", + "hash": "fa6033a19652032ea140998e04137498" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Orgs\/UpdateIssueTypeTest.php", + "hash": "38825795e3ea7bf34b1ab17a56b27004" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Orgs\/DeleteIssueType.php", + "hash": "617b45c8b1812c5e4902ea86dc7cb155" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Orgs\/DeleteIssueType.php", + "hash": "cdc083d2c072a4e1e3d6f0d434b56841" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Orgs\/DeleteIssueTypeTest.php", + "hash": "064f323dd9a8c525ecd8dca05a5eddf4" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/IssueType.php", + "hash": "f5647521ca4df74db6852252edf288aa" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/OrganizationCreateIssueType.php", + "hash": "ddea1eeea8db4c925e19a200883df908" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/OrganizationUpdateIssueType.php", + "hash": "c2f9012dffad12da9912f5cd5b72100d" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet51EA4D6F\/TietC18C5433\/Tiet6E6BD4C9\/Tiet4D9F7CB9.php", + "hash": "a12dc4e621611694d6e8ccdb01775487" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet92ECB3DF\/TietC4FE48EB\/Tiet11EC6BBE\/Tiet10BB8537.php", + "hash": "3755fc2c007437d925b983c0a3627abe" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/TietA6754E69\/Tiet89E7A5A9\/Tiet4D165B48\/TietE1DB3DED.php", + "hash": "c89806b236adf1322783af79e47ef519" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/IssueTypes.php", + "hash": "e2cb45d34e9090fd40204618bb74e0ee" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/IssueTypes\/IssueTypeId.php", + "hash": "798b4eb7766bbca405a34f68c911a681" } ] }, diff --git a/clients/GitHub/src/Client.php b/clients/GitHub/src/Client.php index a3fc319f1b6..7e97cf85137 100644 --- a/clients/GitHub/src/Client.php +++ b/clients/GitHub/src/Client.php @@ -27,7 +27,7 @@ public function __construct(AuthenticationInterface $authentication, Browser $br } // phpcs:disable - public function call(string $call, array $params = []): \ApiClients\Client\GitHub\Schema\Root|iterable|\ApiClients\Client\GitHub\Schema\GlobalAdvisory|\ApiClients\Client\GitHub\Schema\Integration|\ApiClients\Client\GitHub\Schema\WebhookConfig|\ApiClients\Client\GitHub\Schema\HookDelivery|\ApiClients\Client\GitHub\Schema\Operations\Apps\RedeliverWebhookDelivery\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Tools\OpenApiClient\Utils\Response\WithoutBody|\ApiClients\Client\GitHub\Schema\Installation|\ApiClients\Client\GitHub\Schema\InstallationToken|\ApiClients\Client\GitHub\Schema\Authorization|\ApiClients\Client\GitHub\Schema\ClassroomAssignment|\ApiClients\Client\GitHub\Schema\Classroom|\ApiClients\Client\GitHub\Schema\CodeOfConduct|\ApiClients\Client\GitHub\Schema\Operations\Emojis\Get\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\CodeSecurityConfiguration|\ApiClients\Client\GitHub\Schema\Operations\CodeSecurity\AttachEnterpriseConfiguration\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\CodeSecurity\SetConfigurationAsDefaultForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Feed|\ApiClients\Client\GitHub\Schema\GistSimple|\ApiClients\Client\GitHub\Schema\GistComment|\ApiClients\Client\GitHub\Schema\BaseGist|\ApiClients\Client\GitHub\Schema\GitignoreTemplate|\ApiClients\Client\GitHub\Schema\Operations\Apps\ListReposAccessibleToInstallation\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\License|string|\ApiClients\Client\GitHub\Schema\MarketplacePurchase|\ApiClients\Client\GitHub\Schema\ApiOverview|\ApiClients\Client\GitHub\Schema\BasicError|\ApiClients\Client\GitHub\Schema\Operations\Activity\MarkNotificationsAsRead\Response\ApplicationJson\Accepted|\ApiClients\Client\GitHub\Schema\Thread|\ApiClients\Client\GitHub\Schema\ThreadSubscription|\Psr\Http\Message\ResponseInterface|\ApiClients\Client\GitHub\Schema\BillingUsageReport|\ApiClients\Client\GitHub\Schema\OrganizationFull|\ApiClients\Client\GitHub\Schema\Operations\Orgs\Delete\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\ActionsCacheUsageOrgEnterprise|\ApiClients\Client\GitHub\Schema\Operations\Actions\GetActionsCacheUsageByRepoForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListHostedRunnersForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\ActionsHostedRunner|\ApiClients\Client\GitHub\Schema\Operations\Actions\GetHostedRunnersGithubOwnedImagesForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\GetHostedRunnersPartnerImagesForOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\ActionsHostedRunnerLimits|\ApiClients\Client\GitHub\Schema\Operations\Actions\GetHostedRunnersMachineSpecsForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\GetHostedRunnersPlatformsForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\OidcCustomSub|\ApiClients\Client\GitHub\Schema\EmptyObject|\ApiClients\Client\GitHub\Schema\ActionsOrganizationPermissions|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelectedRepositoriesEnabledGithubActionsOrganization\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\SelectedActions|\ApiClients\Client\GitHub\Schema\ActionsGetDefaultWorkflowPermissions|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelfHostedRunnerGroupsForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\RunnerGroupsOrg|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListGithubHostedRunnersInGroupForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoAccessToSelfHostedRunnerGroupInOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelfHostedRunnersInGroupForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelfHostedRunnersForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\GenerateRunnerJitconfigForOrg\Response\ApplicationJson\Created|\ApiClients\Client\GitHub\Schema\AuthenticationToken|\ApiClients\Client\GitHub\Schema\Runner|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListLabelsForSelfHostedRunnerForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\RemoveAllCustomLabelsFromSelfHostedRunnerForOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListOrgSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\ActionsPublicKey|\ApiClients\Client\GitHub\Schema\OrganizationActionsSecret|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListOrgVariables\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\OrganizationActionsVariable|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelectedReposForOrgVariable\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Orgs\ListAttestations\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\CodeSecurity\AttachConfiguration\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\CodeSecurity\SetConfigurationAsDefault\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListInOrganization\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListOrgSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\CodespacesPublicKey|\ApiClients\Client\GitHub\Schema\CodespacesOrgSecret|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\CopilotOrganizationDetails|\ApiClients\Client\GitHub\Schema\Operations\Copilot\ListCopilotSeats\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Copilot\AddCopilotSeatsForTeams\Response\ApplicationJson\Created|\ApiClients\Client\GitHub\Schema\Operations\Copilot\CancelCopilotSeatAssignmentForTeams\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Copilot\AddCopilotSeatsForUsers\Response\ApplicationJson\Created|\ApiClients\Client\GitHub\Schema\Operations\Copilot\CancelCopilotSeatAssignmentForUsers\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Dependabot\ListOrgSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\DependabotPublicKey|\ApiClients\Client\GitHub\Schema\OrganizationDependabotSecret|\ApiClients\Client\GitHub\Schema\Operations\Dependabot\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\OrgHook|\ApiClients\Client\GitHub\Schema\Operations\Orgs\RedeliverWebhookDelivery\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\ApiInsightsSummaryStats|\ApiClients\Client\GitHub\Schema\Operations\Orgs\ListAppInstallations\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\InteractionLimitResponse|\ApiClients\Client\GitHub\Schema\Operations\Interactions\GetRestrictionsForOrg\Response\ApplicationJson\Ok\Application\Json\One|\ApiClients\Client\GitHub\Schema\OrganizationInvitation|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\GetCodespacesForUserInOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\DeleteFromOrganization\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Codespace|\ApiClients\Client\GitHub\Schema\CopilotSeatDetails|\ApiClients\Client\GitHub\Schema\OrgMembership|\ApiClients\Client\GitHub\Schema\Migration|\ApiClients\Client\GitHub\Schema\Operations\Orgs\ListOrgRoles\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\OrganizationRole|\ApiClients\Client\GitHub\Schema\Operations\Orgs\ConvertMemberToOutsideCollaborator\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Package|\ApiClients\Client\GitHub\Schema\PackageVersion|\ApiClients\Client\GitHub\Schema\Operations\Orgs\ReviewPatGrantRequestsInBulk\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Orgs\UpdatePatAccesses\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\PrivateRegistries\ListOrgPrivateRegistries\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\OrgPrivateRegistryConfigurationWithSelectedRepositories|\ApiClients\Client\GitHub\Schema\Operations\PrivateRegistries\GetOrgPublicKey\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\OrgPrivateRegistryConfiguration|\ApiClients\Client\GitHub\Schema\Project|\ApiClients\Client\GitHub\Schema\CustomProperty|\ApiClients\Client\GitHub\Schema\FullRepository|\ApiClients\Client\GitHub\Schema\RepositoryRuleset|\ApiClients\Client\GitHub\Schema\RuleSuite|\ApiClients\Client\GitHub\Schema\RulesetVersion|\ApiClients\Client\GitHub\Schema\ActionsBillingUsage|\ApiClients\Client\GitHub\Schema\PackagesBillingUsage|\ApiClients\Client\GitHub\Schema\CombinedBillingUsage|\ApiClients\Client\GitHub\Schema\Operations\HostedCompute\ListNetworkConfigurationsForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\NetworkConfiguration|\ApiClients\Client\GitHub\Schema\NetworkSettings|\ApiClients\Client\GitHub\Schema\TeamFull|\ApiClients\Client\GitHub\Schema\TeamDiscussion|\ApiClients\Client\GitHub\Schema\TeamDiscussionComment|\ApiClients\Client\GitHub\Schema\Reaction|\ApiClients\Client\GitHub\Schema\TeamMembership|\ApiClients\Client\GitHub\Schema\TeamProject|\ApiClients\Client\GitHub\Schema\TeamRepository|\ApiClients\Client\GitHub\Schema\ProjectCard|\ApiClients\Client\GitHub\Schema\Operations\Projects\MoveCard\Response\ApplicationJson\Created\Application\Json|\ApiClients\Client\GitHub\Schema\ProjectColumn|\ApiClients\Client\GitHub\Schema\Operations\Projects\MoveColumn\Response\ApplicationJson\Created\Application\Json|\ApiClients\Client\GitHub\Schema\ProjectCollaboratorPermission|\ApiClients\Client\GitHub\Schema\RateLimitOverview|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListArtifactsForRepo\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Artifact|\ApiClients\Client\GitHub\Schema\ActionsCacheUsageByRepository|\ApiClients\Client\GitHub\Schema\ActionsCacheList|\ApiClients\Client\GitHub\Schema\Job|\ApiClients\Client\GitHub\Schema\OidcCustomSubRepo|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoOrganizationSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoOrganizationVariables\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\ActionsRepositoryPermissions|\ApiClients\Client\GitHub\Schema\ActionsWorkflowAccessToRepository|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelfHostedRunnersForRepo\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\RemoveAllCustomLabelsFromSelfHostedRunnerForRepo\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListWorkflowRunsForRepo\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\WorkflowRun|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListWorkflowRunArtifacts\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListJobsForWorkflowRunAttempt\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListJobsForWorkflowRun\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\WorkflowRunUsage|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoSecrets\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\ActionsSecret|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoVariables\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\ActionsVariable|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoWorkflows\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Workflow|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListWorkflowRuns\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\WorkflowUsage|\ApiClients\Client\GitHub\Schema\Operations\Repos\CreateAttestation\Response\ApplicationJson\Created|\ApiClients\Client\GitHub\Schema\Operations\Repos\ListAttestations\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Autolink|\ApiClients\Client\GitHub\Schema\CheckAutomatedSecurityFixes|\ApiClients\Client\GitHub\Schema\BranchWithProtection|\ApiClients\Client\GitHub\Schema\BranchProtection|\ApiClients\Client\GitHub\Schema\ProtectedBranch|\ApiClients\Client\GitHub\Schema\ProtectedBranchAdminEnforced|\ApiClients\Client\GitHub\Schema\ProtectedBranchPullRequestReview|\ApiClients\Client\GitHub\Schema\StatusCheckPolicy|\ApiClients\Client\GitHub\Schema\BranchRestrictionPolicy|\ApiClients\Client\GitHub\Schema\CheckRun|\ApiClients\Client\GitHub\Schema\CheckSuite|\ApiClients\Client\GitHub\Schema\CheckSuitePreference|\ApiClients\Client\GitHub\Schema\Operations\Checks\ListForSuite\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\CodeScanningAlert|\ApiClients\Client\GitHub\Schema\CodeScanningAutofix|\ApiClients\Client\GitHub\Schema\CodeScanningAutofixCommitsResponse|\ApiClients\Client\GitHub\Schema\CodeScanningAnalysis|\ApiClients\Client\GitHub\Schema\CodeScanningAnalysisDeletion|\ApiClients\Client\GitHub\Schema\CodeScanningCodeqlDatabase|\ApiClients\Client\GitHub\Schema\CodeScanningVariantAnalysis|\ApiClients\Client\GitHub\Schema\CodeScanningVariantAnalysisRepoTask|\ApiClients\Client\GitHub\Schema\CodeScanningDefaultSetup|\ApiClients\Client\GitHub\Schema\CodeScanningDefaultSetupUpdateResponse|\ApiClients\Client\GitHub\Schema\CodeScanningSarifsReceipt|\ApiClients\Client\GitHub\Schema\CodeScanningSarifsStatus|\ApiClients\Client\GitHub\Schema\CodeSecurityConfigurationForRepository|\ApiClients\Client\GitHub\Schema\CodeownersErrors|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListInRepositoryForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\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|\ApiClients\Client\GitHub\Schema\CodespacesPermissionsCheckForDevcontainer|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListRepoSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\RepoCodespacesSecret|\ApiClients\Client\GitHub\Schema\RepositoryInvitation|\ApiClients\Client\GitHub\Schema\RepositoryCollaboratorPermission|\ApiClients\Client\GitHub\Schema\CommitComment|\ApiClients\Client\GitHub\Schema\Commit|\ApiClients\Client\GitHub\Schema\Operations\Checks\ListForRef\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Checks\ListSuitesForRef\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\CombinedCommitStatus|\ApiClients\Client\GitHub\Schema\CommunityProfile|\ApiClients\Client\GitHub\Schema\CommitComparison|\ApiClients\Client\GitHub\Schema\ContentDirectory|\ApiClients\Client\GitHub\Schema\ContentFile|\ApiClients\Client\GitHub\Schema\ContentSymlink|\ApiClients\Client\GitHub\Schema\ContentSubmodule|\ApiClients\Client\GitHub\Schema\FileCommit|\ApiClients\Client\GitHub\Schema\DependabotAlert|\ApiClients\Client\GitHub\Schema\Operations\Dependabot\ListRepoSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\DependabotSecret|\ApiClients\Client\GitHub\Schema\DependencyGraphSpdxSbom|\ApiClients\Client\GitHub\Schema\Operations\DependencyGraph\CreateRepositorySnapshot\Response\ApplicationJson\Created|\ApiClients\Client\GitHub\Schema\Deployment|\ApiClients\Client\GitHub\Schema\Operations\Repos\CreateDeployment\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\DeploymentStatus|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetAllEnvironments\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Environment|\ApiClients\Client\GitHub\Schema\Operations\Repos\ListDeploymentBranchPolicies\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\DeploymentBranchPolicy|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetAllDeploymentProtectionRules\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\DeploymentProtectionRule|\ApiClients\Client\GitHub\Schema\Operations\Repos\ListCustomDeploymentRuleIntegrations\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|\ApiClients\Client\GitHub\Schema\ShortBlob|\ApiClients\Client\GitHub\Schema\Blob|\ApiClients\Client\GitHub\Schema\GitCommit|\ApiClients\Client\GitHub\Schema\GitRef|\ApiClients\Client\GitHub\Schema\GitTag|\ApiClients\Client\GitHub\Schema\GitTree|\ApiClients\Client\GitHub\Schema\Hook|\ApiClients\Client\GitHub\Schema\Operations\Repos\RedeliverWebhookDelivery\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Import|\ApiClients\Client\GitHub\Schema\PorterAuthor|\ApiClients\Client\GitHub\Schema\Operations\Interactions\GetRestrictionsForRepo\Response\ApplicationJson\Ok\Application\Json\One|\ApiClients\Client\GitHub\Schema\Issue|\ApiClients\Client\GitHub\Schema\IssueComment|\ApiClients\Client\GitHub\Schema\IssueEvent|\ApiClients\Client\GitHub\Schema\DeployKey|\ApiClients\Client\GitHub\Schema\Label|\ApiClients\Client\GitHub\Schema\Language|\ApiClients\Client\GitHub\Schema\LicenseContent|\ApiClients\Client\GitHub\Schema\MergedUpstream|\ApiClients\Client\GitHub\Schema\Milestone|\ApiClients\Client\GitHub\Schema\Operations\Activity\MarkRepoNotificationsAsRead\Response\ApplicationJson\Accepted|\ApiClients\Client\GitHub\Schema\Page|\ApiClients\Client\GitHub\Schema\PageBuildStatus|\ApiClients\Client\GitHub\Schema\PageBuild|\ApiClients\Client\GitHub\Schema\PageDeployment|\ApiClients\Client\GitHub\Schema\PagesDeploymentStatus|\ApiClients\Client\GitHub\Schema\PagesHealthCheck|\ApiClients\Client\GitHub\Schema\Operations\Repos\CheckPrivateVulnerabilityReporting\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\PullRequest|\ApiClients\Client\GitHub\Schema\PullRequestReviewComment|\ApiClients\Client\GitHub\Schema\PullRequestMergeResult|\ApiClients\Client\GitHub\Schema\PullRequestReviewRequest|\ApiClients\Client\GitHub\Schema\PullRequestSimple|\ApiClients\Client\GitHub\Schema\PullRequestReview|\ApiClients\Client\GitHub\Schema\Operations\Pulls\UpdateBranch\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Release|\ApiClients\Client\GitHub\Schema\ReleaseAsset|\ApiClients\Client\GitHub\Schema\ReleaseNotesContent|\ApiClients\Client\GitHub\Schema\SecretScanningAlert|\ApiClients\Client\GitHub\Schema\SecretScanningPushProtectionBypass|\ApiClients\Client\GitHub\Schema\SecretScanningScanHistory|\ApiClients\Client\GitHub\Schema\RepositoryAdvisory|\ApiClients\Client\GitHub\Schema\Operations\SecurityAdvisories\CreateRepositoryAdvisoryCveRequest\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\SimpleUser|\ApiClients\Client\GitHub\Schema\Stargazer|\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|\ApiClients\Client\GitHub\Schema\ParticipationStats|\ApiClients\Client\GitHub\Schema\Status|\ApiClients\Client\GitHub\Schema\RepositorySubscription|\ApiClients\Client\GitHub\Schema\TagProtection|\ApiClients\Client\GitHub\Schema\Topic|\ApiClients\Client\GitHub\Schema\CloneTraffic|\ApiClients\Client\GitHub\Schema\ViewTraffic|\ApiClients\Client\GitHub\Schema\MinimalRepository|\ApiClients\Client\GitHub\Schema\Operations\Search\Code\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Search\Commits\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Search\IssuesAndPullRequests\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Search\Labels\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Search\Repos\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Search\Topics\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Search\Users\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\PrivateUser|\ApiClients\Client\GitHub\Schema\PublicUser|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListSecretsForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\CodespacesUserPublicKey|\ApiClients\Client\GitHub\Schema\CodespacesSecret|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListRepositoriesForSecretForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\DeleteForAuthenticatedUser\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\CodespaceExportDetails|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\CodespaceMachinesForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\CodespaceWithFullRepository|\ApiClients\Client\GitHub\Schema\GpgKey|\ApiClients\Client\GitHub\Schema\Operations\Apps\ListInstallationsForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Apps\ListInstallationReposForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Interactions\GetRestrictionsForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json\One|\ApiClients\Client\GitHub\Schema\Key|\ApiClients\Client\GitHub\Schema\SshSigningKey|\ApiClients\Client\GitHub\Schema\Operations\Users\ListAttestations\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Hovercard|\ApiClients\Client\GitHub\Schema\StarredRepository|\ApiClients\Client\GitHub\Schema\Repository + public function call(string $call, array $params = []): \ApiClients\Client\GitHub\Schema\Root|iterable|\ApiClients\Client\GitHub\Schema\GlobalAdvisory|\ApiClients\Client\GitHub\Schema\Integration|\ApiClients\Client\GitHub\Schema\WebhookConfig|\ApiClients\Client\GitHub\Schema\HookDelivery|\ApiClients\Client\GitHub\Schema\Operations\Apps\RedeliverWebhookDelivery\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Tools\OpenApiClient\Utils\Response\WithoutBody|\ApiClients\Client\GitHub\Schema\Installation|\ApiClients\Client\GitHub\Schema\InstallationToken|\ApiClients\Client\GitHub\Schema\Authorization|\ApiClients\Client\GitHub\Schema\ClassroomAssignment|\ApiClients\Client\GitHub\Schema\Classroom|\ApiClients\Client\GitHub\Schema\CodeOfConduct|\ApiClients\Client\GitHub\Schema\Operations\Emojis\Get\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\CodeSecurityConfiguration|\ApiClients\Client\GitHub\Schema\Operations\CodeSecurity\AttachEnterpriseConfiguration\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\CodeSecurity\SetConfigurationAsDefaultForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Feed|\ApiClients\Client\GitHub\Schema\GistSimple|\ApiClients\Client\GitHub\Schema\GistComment|\ApiClients\Client\GitHub\Schema\BaseGist|\ApiClients\Client\GitHub\Schema\GitignoreTemplate|\ApiClients\Client\GitHub\Schema\Operations\Apps\ListReposAccessibleToInstallation\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\License|string|\ApiClients\Client\GitHub\Schema\MarketplacePurchase|\ApiClients\Client\GitHub\Schema\ApiOverview|\ApiClients\Client\GitHub\Schema\BasicError|\ApiClients\Client\GitHub\Schema\Operations\Activity\MarkNotificationsAsRead\Response\ApplicationJson\Accepted|\ApiClients\Client\GitHub\Schema\Thread|\ApiClients\Client\GitHub\Schema\ThreadSubscription|\Psr\Http\Message\ResponseInterface|\ApiClients\Client\GitHub\Schema\BillingUsageReport|\ApiClients\Client\GitHub\Schema\OrganizationFull|\ApiClients\Client\GitHub\Schema\Operations\Orgs\Delete\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\ActionsCacheUsageOrgEnterprise|\ApiClients\Client\GitHub\Schema\Operations\Actions\GetActionsCacheUsageByRepoForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListHostedRunnersForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\ActionsHostedRunner|\ApiClients\Client\GitHub\Schema\Operations\Actions\GetHostedRunnersGithubOwnedImagesForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\GetHostedRunnersPartnerImagesForOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\ActionsHostedRunnerLimits|\ApiClients\Client\GitHub\Schema\Operations\Actions\GetHostedRunnersMachineSpecsForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\GetHostedRunnersPlatformsForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\OidcCustomSub|\ApiClients\Client\GitHub\Schema\EmptyObject|\ApiClients\Client\GitHub\Schema\ActionsOrganizationPermissions|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelectedRepositoriesEnabledGithubActionsOrganization\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\SelectedActions|\ApiClients\Client\GitHub\Schema\ActionsGetDefaultWorkflowPermissions|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelfHostedRunnerGroupsForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\RunnerGroupsOrg|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListGithubHostedRunnersInGroupForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoAccessToSelfHostedRunnerGroupInOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelfHostedRunnersInGroupForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelfHostedRunnersForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\GenerateRunnerJitconfigForOrg\Response\ApplicationJson\Created|\ApiClients\Client\GitHub\Schema\AuthenticationToken|\ApiClients\Client\GitHub\Schema\Runner|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListLabelsForSelfHostedRunnerForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\RemoveAllCustomLabelsFromSelfHostedRunnerForOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListOrgSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\ActionsPublicKey|\ApiClients\Client\GitHub\Schema\OrganizationActionsSecret|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListOrgVariables\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\OrganizationActionsVariable|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelectedReposForOrgVariable\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Orgs\ListAttestations\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\CodeSecurity\AttachConfiguration\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\CodeSecurity\SetConfigurationAsDefault\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListInOrganization\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListOrgSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\CodespacesPublicKey|\ApiClients\Client\GitHub\Schema\CodespacesOrgSecret|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\CopilotOrganizationDetails|\ApiClients\Client\GitHub\Schema\Operations\Copilot\ListCopilotSeats\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Copilot\AddCopilotSeatsForTeams\Response\ApplicationJson\Created|\ApiClients\Client\GitHub\Schema\Operations\Copilot\CancelCopilotSeatAssignmentForTeams\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Copilot\AddCopilotSeatsForUsers\Response\ApplicationJson\Created|\ApiClients\Client\GitHub\Schema\Operations\Copilot\CancelCopilotSeatAssignmentForUsers\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Dependabot\ListOrgSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\DependabotPublicKey|\ApiClients\Client\GitHub\Schema\OrganizationDependabotSecret|\ApiClients\Client\GitHub\Schema\Operations\Dependabot\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\OrgHook|\ApiClients\Client\GitHub\Schema\Operations\Orgs\RedeliverWebhookDelivery\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\ApiInsightsSummaryStats|\ApiClients\Client\GitHub\Schema\Operations\Orgs\ListAppInstallations\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\InteractionLimitResponse|\ApiClients\Client\GitHub\Schema\Operations\Interactions\GetRestrictionsForOrg\Response\ApplicationJson\Ok\Application\Json\One|\ApiClients\Client\GitHub\Schema\OrganizationInvitation|\ApiClients\Client\GitHub\Schema\IssueType|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\GetCodespacesForUserInOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\DeleteFromOrganization\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Codespace|\ApiClients\Client\GitHub\Schema\CopilotSeatDetails|\ApiClients\Client\GitHub\Schema\OrgMembership|\ApiClients\Client\GitHub\Schema\Migration|\ApiClients\Client\GitHub\Schema\Operations\Orgs\ListOrgRoles\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\OrganizationRole|\ApiClients\Client\GitHub\Schema\Operations\Orgs\ConvertMemberToOutsideCollaborator\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Package|\ApiClients\Client\GitHub\Schema\PackageVersion|\ApiClients\Client\GitHub\Schema\Operations\Orgs\ReviewPatGrantRequestsInBulk\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Orgs\UpdatePatAccesses\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\PrivateRegistries\ListOrgPrivateRegistries\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\OrgPrivateRegistryConfigurationWithSelectedRepositories|\ApiClients\Client\GitHub\Schema\Operations\PrivateRegistries\GetOrgPublicKey\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\OrgPrivateRegistryConfiguration|\ApiClients\Client\GitHub\Schema\Project|\ApiClients\Client\GitHub\Schema\CustomProperty|\ApiClients\Client\GitHub\Schema\FullRepository|\ApiClients\Client\GitHub\Schema\RepositoryRuleset|\ApiClients\Client\GitHub\Schema\RuleSuite|\ApiClients\Client\GitHub\Schema\RulesetVersion|\ApiClients\Client\GitHub\Schema\ActionsBillingUsage|\ApiClients\Client\GitHub\Schema\PackagesBillingUsage|\ApiClients\Client\GitHub\Schema\CombinedBillingUsage|\ApiClients\Client\GitHub\Schema\Operations\HostedCompute\ListNetworkConfigurationsForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\NetworkConfiguration|\ApiClients\Client\GitHub\Schema\NetworkSettings|\ApiClients\Client\GitHub\Schema\TeamFull|\ApiClients\Client\GitHub\Schema\TeamDiscussion|\ApiClients\Client\GitHub\Schema\TeamDiscussionComment|\ApiClients\Client\GitHub\Schema\Reaction|\ApiClients\Client\GitHub\Schema\TeamMembership|\ApiClients\Client\GitHub\Schema\TeamProject|\ApiClients\Client\GitHub\Schema\TeamRepository|\ApiClients\Client\GitHub\Schema\ProjectCard|\ApiClients\Client\GitHub\Schema\Operations\Projects\MoveCard\Response\ApplicationJson\Created\Application\Json|\ApiClients\Client\GitHub\Schema\ProjectColumn|\ApiClients\Client\GitHub\Schema\Operations\Projects\MoveColumn\Response\ApplicationJson\Created\Application\Json|\ApiClients\Client\GitHub\Schema\ProjectCollaboratorPermission|\ApiClients\Client\GitHub\Schema\RateLimitOverview|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListArtifactsForRepo\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Artifact|\ApiClients\Client\GitHub\Schema\ActionsCacheUsageByRepository|\ApiClients\Client\GitHub\Schema\ActionsCacheList|\ApiClients\Client\GitHub\Schema\Job|\ApiClients\Client\GitHub\Schema\OidcCustomSubRepo|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoOrganizationSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoOrganizationVariables\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\ActionsRepositoryPermissions|\ApiClients\Client\GitHub\Schema\ActionsWorkflowAccessToRepository|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelfHostedRunnersForRepo\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\RemoveAllCustomLabelsFromSelfHostedRunnerForRepo\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListWorkflowRunsForRepo\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\WorkflowRun|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListWorkflowRunArtifacts\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListJobsForWorkflowRunAttempt\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListJobsForWorkflowRun\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\WorkflowRunUsage|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoSecrets\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\ActionsSecret|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoVariables\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\ActionsVariable|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoWorkflows\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Workflow|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListWorkflowRuns\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\WorkflowUsage|\ApiClients\Client\GitHub\Schema\Operations\Repos\CreateAttestation\Response\ApplicationJson\Created|\ApiClients\Client\GitHub\Schema\Operations\Repos\ListAttestations\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Autolink|\ApiClients\Client\GitHub\Schema\CheckAutomatedSecurityFixes|\ApiClients\Client\GitHub\Schema\BranchWithProtection|\ApiClients\Client\GitHub\Schema\BranchProtection|\ApiClients\Client\GitHub\Schema\ProtectedBranch|\ApiClients\Client\GitHub\Schema\ProtectedBranchAdminEnforced|\ApiClients\Client\GitHub\Schema\ProtectedBranchPullRequestReview|\ApiClients\Client\GitHub\Schema\StatusCheckPolicy|\ApiClients\Client\GitHub\Schema\BranchRestrictionPolicy|\ApiClients\Client\GitHub\Schema\CheckRun|\ApiClients\Client\GitHub\Schema\CheckSuite|\ApiClients\Client\GitHub\Schema\CheckSuitePreference|\ApiClients\Client\GitHub\Schema\Operations\Checks\ListForSuite\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\CodeScanningAlert|\ApiClients\Client\GitHub\Schema\CodeScanningAutofix|\ApiClients\Client\GitHub\Schema\CodeScanningAutofixCommitsResponse|\ApiClients\Client\GitHub\Schema\CodeScanningAnalysis|\ApiClients\Client\GitHub\Schema\CodeScanningAnalysisDeletion|\ApiClients\Client\GitHub\Schema\CodeScanningCodeqlDatabase|\ApiClients\Client\GitHub\Schema\CodeScanningVariantAnalysis|\ApiClients\Client\GitHub\Schema\CodeScanningVariantAnalysisRepoTask|\ApiClients\Client\GitHub\Schema\CodeScanningDefaultSetup|\ApiClients\Client\GitHub\Schema\CodeScanningDefaultSetupUpdateResponse|\ApiClients\Client\GitHub\Schema\CodeScanningSarifsReceipt|\ApiClients\Client\GitHub\Schema\CodeScanningSarifsStatus|\ApiClients\Client\GitHub\Schema\CodeSecurityConfigurationForRepository|\ApiClients\Client\GitHub\Schema\CodeownersErrors|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListInRepositoryForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\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|\ApiClients\Client\GitHub\Schema\CodespacesPermissionsCheckForDevcontainer|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListRepoSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\RepoCodespacesSecret|\ApiClients\Client\GitHub\Schema\RepositoryInvitation|\ApiClients\Client\GitHub\Schema\RepositoryCollaboratorPermission|\ApiClients\Client\GitHub\Schema\CommitComment|\ApiClients\Client\GitHub\Schema\Commit|\ApiClients\Client\GitHub\Schema\Operations\Checks\ListForRef\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Checks\ListSuitesForRef\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\CombinedCommitStatus|\ApiClients\Client\GitHub\Schema\CommunityProfile|\ApiClients\Client\GitHub\Schema\CommitComparison|\ApiClients\Client\GitHub\Schema\ContentDirectory|\ApiClients\Client\GitHub\Schema\ContentFile|\ApiClients\Client\GitHub\Schema\ContentSymlink|\ApiClients\Client\GitHub\Schema\ContentSubmodule|\ApiClients\Client\GitHub\Schema\FileCommit|\ApiClients\Client\GitHub\Schema\DependabotAlert|\ApiClients\Client\GitHub\Schema\Operations\Dependabot\ListRepoSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\DependabotSecret|\ApiClients\Client\GitHub\Schema\DependencyGraphSpdxSbom|\ApiClients\Client\GitHub\Schema\Operations\DependencyGraph\CreateRepositorySnapshot\Response\ApplicationJson\Created|\ApiClients\Client\GitHub\Schema\Deployment|\ApiClients\Client\GitHub\Schema\Operations\Repos\CreateDeployment\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\DeploymentStatus|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetAllEnvironments\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Environment|\ApiClients\Client\GitHub\Schema\Operations\Repos\ListDeploymentBranchPolicies\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\DeploymentBranchPolicy|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetAllDeploymentProtectionRules\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\DeploymentProtectionRule|\ApiClients\Client\GitHub\Schema\Operations\Repos\ListCustomDeploymentRuleIntegrations\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|\ApiClients\Client\GitHub\Schema\ShortBlob|\ApiClients\Client\GitHub\Schema\Blob|\ApiClients\Client\GitHub\Schema\GitCommit|\ApiClients\Client\GitHub\Schema\GitRef|\ApiClients\Client\GitHub\Schema\GitTag|\ApiClients\Client\GitHub\Schema\GitTree|\ApiClients\Client\GitHub\Schema\Hook|\ApiClients\Client\GitHub\Schema\Operations\Repos\RedeliverWebhookDelivery\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Import|\ApiClients\Client\GitHub\Schema\PorterAuthor|\ApiClients\Client\GitHub\Schema\Operations\Interactions\GetRestrictionsForRepo\Response\ApplicationJson\Ok\Application\Json\One|\ApiClients\Client\GitHub\Schema\Issue|\ApiClients\Client\GitHub\Schema\IssueComment|\ApiClients\Client\GitHub\Schema\IssueEvent|\ApiClients\Client\GitHub\Schema\DeployKey|\ApiClients\Client\GitHub\Schema\Label|\ApiClients\Client\GitHub\Schema\Language|\ApiClients\Client\GitHub\Schema\LicenseContent|\ApiClients\Client\GitHub\Schema\MergedUpstream|\ApiClients\Client\GitHub\Schema\Milestone|\ApiClients\Client\GitHub\Schema\Operations\Activity\MarkRepoNotificationsAsRead\Response\ApplicationJson\Accepted|\ApiClients\Client\GitHub\Schema\Page|\ApiClients\Client\GitHub\Schema\PageBuildStatus|\ApiClients\Client\GitHub\Schema\PageBuild|\ApiClients\Client\GitHub\Schema\PageDeployment|\ApiClients\Client\GitHub\Schema\PagesDeploymentStatus|\ApiClients\Client\GitHub\Schema\PagesHealthCheck|\ApiClients\Client\GitHub\Schema\Operations\Repos\CheckPrivateVulnerabilityReporting\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\PullRequest|\ApiClients\Client\GitHub\Schema\PullRequestReviewComment|\ApiClients\Client\GitHub\Schema\PullRequestMergeResult|\ApiClients\Client\GitHub\Schema\PullRequestReviewRequest|\ApiClients\Client\GitHub\Schema\PullRequestSimple|\ApiClients\Client\GitHub\Schema\PullRequestReview|\ApiClients\Client\GitHub\Schema\Operations\Pulls\UpdateBranch\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Release|\ApiClients\Client\GitHub\Schema\ReleaseAsset|\ApiClients\Client\GitHub\Schema\ReleaseNotesContent|\ApiClients\Client\GitHub\Schema\SecretScanningAlert|\ApiClients\Client\GitHub\Schema\SecretScanningPushProtectionBypass|\ApiClients\Client\GitHub\Schema\SecretScanningScanHistory|\ApiClients\Client\GitHub\Schema\RepositoryAdvisory|\ApiClients\Client\GitHub\Schema\Operations\SecurityAdvisories\CreateRepositoryAdvisoryCveRequest\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\SimpleUser|\ApiClients\Client\GitHub\Schema\Stargazer|\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|\ApiClients\Client\GitHub\Schema\ParticipationStats|\ApiClients\Client\GitHub\Schema\Status|\ApiClients\Client\GitHub\Schema\RepositorySubscription|\ApiClients\Client\GitHub\Schema\TagProtection|\ApiClients\Client\GitHub\Schema\Topic|\ApiClients\Client\GitHub\Schema\CloneTraffic|\ApiClients\Client\GitHub\Schema\ViewTraffic|\ApiClients\Client\GitHub\Schema\MinimalRepository|\ApiClients\Client\GitHub\Schema\Operations\Search\Code\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Search\Commits\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Search\IssuesAndPullRequests\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Search\Labels\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Search\Repos\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Search\Topics\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Search\Users\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\PrivateUser|\ApiClients\Client\GitHub\Schema\PublicUser|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListSecretsForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\CodespacesUserPublicKey|\ApiClients\Client\GitHub\Schema\CodespacesSecret|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListRepositoriesForSecretForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\DeleteForAuthenticatedUser\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\CodespaceExportDetails|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\CodespaceMachinesForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\CodespaceWithFullRepository|\ApiClients\Client\GitHub\Schema\GpgKey|\ApiClients\Client\GitHub\Schema\Operations\Apps\ListInstallationsForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Apps\ListInstallationReposForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Interactions\GetRestrictionsForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json\One|\ApiClients\Client\GitHub\Schema\Key|\ApiClients\Client\GitHub\Schema\SshSigningKey|\ApiClients\Client\GitHub\Schema\Operations\Users\ListAttestations\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Hovercard|\ApiClients\Client\GitHub\Schema\StarredRepository|\ApiClients\Client\GitHub\Schema\Repository { [$method, $path] = explode(' ', $call); $pathChunks = explode('/', $path); diff --git a/clients/GitHub/src/ClientInterface.php b/clients/GitHub/src/ClientInterface.php index 0db0e04ff44..99bc0862ec3 100644 --- a/clients/GitHub/src/ClientInterface.php +++ b/clients/GitHub/src/ClientInterface.php @@ -7,7 +7,7 @@ interface ClientInterface { // phpcs:disable - public function call(string $call, array $params = []): \ApiClients\Client\GitHub\Schema\Root|iterable|\ApiClients\Client\GitHub\Schema\GlobalAdvisory|\ApiClients\Client\GitHub\Schema\Integration|\ApiClients\Client\GitHub\Schema\WebhookConfig|\ApiClients\Client\GitHub\Schema\HookDelivery|\ApiClients\Client\GitHub\Schema\Operations\Apps\RedeliverWebhookDelivery\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Tools\OpenApiClient\Utils\Response\WithoutBody|\ApiClients\Client\GitHub\Schema\Installation|\ApiClients\Client\GitHub\Schema\InstallationToken|\ApiClients\Client\GitHub\Schema\Authorization|\ApiClients\Client\GitHub\Schema\ClassroomAssignment|\ApiClients\Client\GitHub\Schema\Classroom|\ApiClients\Client\GitHub\Schema\CodeOfConduct|\ApiClients\Client\GitHub\Schema\Operations\Emojis\Get\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\CodeSecurityConfiguration|\ApiClients\Client\GitHub\Schema\Operations\CodeSecurity\AttachEnterpriseConfiguration\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\CodeSecurity\SetConfigurationAsDefaultForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Feed|\ApiClients\Client\GitHub\Schema\GistSimple|\ApiClients\Client\GitHub\Schema\GistComment|\ApiClients\Client\GitHub\Schema\BaseGist|\ApiClients\Client\GitHub\Schema\GitignoreTemplate|\ApiClients\Client\GitHub\Schema\Operations\Apps\ListReposAccessibleToInstallation\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\License|string|\ApiClients\Client\GitHub\Schema\MarketplacePurchase|\ApiClients\Client\GitHub\Schema\ApiOverview|\ApiClients\Client\GitHub\Schema\BasicError|\ApiClients\Client\GitHub\Schema\Operations\Activity\MarkNotificationsAsRead\Response\ApplicationJson\Accepted|\ApiClients\Client\GitHub\Schema\Thread|\ApiClients\Client\GitHub\Schema\ThreadSubscription|\Psr\Http\Message\ResponseInterface|\ApiClients\Client\GitHub\Schema\BillingUsageReport|\ApiClients\Client\GitHub\Schema\OrganizationFull|\ApiClients\Client\GitHub\Schema\Operations\Orgs\Delete\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\ActionsCacheUsageOrgEnterprise|\ApiClients\Client\GitHub\Schema\Operations\Actions\GetActionsCacheUsageByRepoForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListHostedRunnersForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\ActionsHostedRunner|\ApiClients\Client\GitHub\Schema\Operations\Actions\GetHostedRunnersGithubOwnedImagesForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\GetHostedRunnersPartnerImagesForOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\ActionsHostedRunnerLimits|\ApiClients\Client\GitHub\Schema\Operations\Actions\GetHostedRunnersMachineSpecsForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\GetHostedRunnersPlatformsForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\OidcCustomSub|\ApiClients\Client\GitHub\Schema\EmptyObject|\ApiClients\Client\GitHub\Schema\ActionsOrganizationPermissions|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelectedRepositoriesEnabledGithubActionsOrganization\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\SelectedActions|\ApiClients\Client\GitHub\Schema\ActionsGetDefaultWorkflowPermissions|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelfHostedRunnerGroupsForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\RunnerGroupsOrg|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListGithubHostedRunnersInGroupForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoAccessToSelfHostedRunnerGroupInOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelfHostedRunnersInGroupForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelfHostedRunnersForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\GenerateRunnerJitconfigForOrg\Response\ApplicationJson\Created|\ApiClients\Client\GitHub\Schema\AuthenticationToken|\ApiClients\Client\GitHub\Schema\Runner|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListLabelsForSelfHostedRunnerForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\RemoveAllCustomLabelsFromSelfHostedRunnerForOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListOrgSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\ActionsPublicKey|\ApiClients\Client\GitHub\Schema\OrganizationActionsSecret|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListOrgVariables\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\OrganizationActionsVariable|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelectedReposForOrgVariable\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Orgs\ListAttestations\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\CodeSecurity\AttachConfiguration\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\CodeSecurity\SetConfigurationAsDefault\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListInOrganization\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListOrgSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\CodespacesPublicKey|\ApiClients\Client\GitHub\Schema\CodespacesOrgSecret|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\CopilotOrganizationDetails|\ApiClients\Client\GitHub\Schema\Operations\Copilot\ListCopilotSeats\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Copilot\AddCopilotSeatsForTeams\Response\ApplicationJson\Created|\ApiClients\Client\GitHub\Schema\Operations\Copilot\CancelCopilotSeatAssignmentForTeams\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Copilot\AddCopilotSeatsForUsers\Response\ApplicationJson\Created|\ApiClients\Client\GitHub\Schema\Operations\Copilot\CancelCopilotSeatAssignmentForUsers\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Dependabot\ListOrgSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\DependabotPublicKey|\ApiClients\Client\GitHub\Schema\OrganizationDependabotSecret|\ApiClients\Client\GitHub\Schema\Operations\Dependabot\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\OrgHook|\ApiClients\Client\GitHub\Schema\Operations\Orgs\RedeliverWebhookDelivery\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\ApiInsightsSummaryStats|\ApiClients\Client\GitHub\Schema\Operations\Orgs\ListAppInstallations\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\InteractionLimitResponse|\ApiClients\Client\GitHub\Schema\Operations\Interactions\GetRestrictionsForOrg\Response\ApplicationJson\Ok\Application\Json\One|\ApiClients\Client\GitHub\Schema\OrganizationInvitation|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\GetCodespacesForUserInOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\DeleteFromOrganization\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Codespace|\ApiClients\Client\GitHub\Schema\CopilotSeatDetails|\ApiClients\Client\GitHub\Schema\OrgMembership|\ApiClients\Client\GitHub\Schema\Migration|\ApiClients\Client\GitHub\Schema\Operations\Orgs\ListOrgRoles\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\OrganizationRole|\ApiClients\Client\GitHub\Schema\Operations\Orgs\ConvertMemberToOutsideCollaborator\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Package|\ApiClients\Client\GitHub\Schema\PackageVersion|\ApiClients\Client\GitHub\Schema\Operations\Orgs\ReviewPatGrantRequestsInBulk\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Orgs\UpdatePatAccesses\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\PrivateRegistries\ListOrgPrivateRegistries\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\OrgPrivateRegistryConfigurationWithSelectedRepositories|\ApiClients\Client\GitHub\Schema\Operations\PrivateRegistries\GetOrgPublicKey\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\OrgPrivateRegistryConfiguration|\ApiClients\Client\GitHub\Schema\Project|\ApiClients\Client\GitHub\Schema\CustomProperty|\ApiClients\Client\GitHub\Schema\FullRepository|\ApiClients\Client\GitHub\Schema\RepositoryRuleset|\ApiClients\Client\GitHub\Schema\RuleSuite|\ApiClients\Client\GitHub\Schema\RulesetVersion|\ApiClients\Client\GitHub\Schema\ActionsBillingUsage|\ApiClients\Client\GitHub\Schema\PackagesBillingUsage|\ApiClients\Client\GitHub\Schema\CombinedBillingUsage|\ApiClients\Client\GitHub\Schema\Operations\HostedCompute\ListNetworkConfigurationsForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\NetworkConfiguration|\ApiClients\Client\GitHub\Schema\NetworkSettings|\ApiClients\Client\GitHub\Schema\TeamFull|\ApiClients\Client\GitHub\Schema\TeamDiscussion|\ApiClients\Client\GitHub\Schema\TeamDiscussionComment|\ApiClients\Client\GitHub\Schema\Reaction|\ApiClients\Client\GitHub\Schema\TeamMembership|\ApiClients\Client\GitHub\Schema\TeamProject|\ApiClients\Client\GitHub\Schema\TeamRepository|\ApiClients\Client\GitHub\Schema\ProjectCard|\ApiClients\Client\GitHub\Schema\Operations\Projects\MoveCard\Response\ApplicationJson\Created\Application\Json|\ApiClients\Client\GitHub\Schema\ProjectColumn|\ApiClients\Client\GitHub\Schema\Operations\Projects\MoveColumn\Response\ApplicationJson\Created\Application\Json|\ApiClients\Client\GitHub\Schema\ProjectCollaboratorPermission|\ApiClients\Client\GitHub\Schema\RateLimitOverview|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListArtifactsForRepo\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Artifact|\ApiClients\Client\GitHub\Schema\ActionsCacheUsageByRepository|\ApiClients\Client\GitHub\Schema\ActionsCacheList|\ApiClients\Client\GitHub\Schema\Job|\ApiClients\Client\GitHub\Schema\OidcCustomSubRepo|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoOrganizationSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoOrganizationVariables\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\ActionsRepositoryPermissions|\ApiClients\Client\GitHub\Schema\ActionsWorkflowAccessToRepository|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelfHostedRunnersForRepo\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\RemoveAllCustomLabelsFromSelfHostedRunnerForRepo\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListWorkflowRunsForRepo\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\WorkflowRun|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListWorkflowRunArtifacts\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListJobsForWorkflowRunAttempt\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListJobsForWorkflowRun\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\WorkflowRunUsage|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoSecrets\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\ActionsSecret|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoVariables\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\ActionsVariable|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoWorkflows\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Workflow|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListWorkflowRuns\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\WorkflowUsage|\ApiClients\Client\GitHub\Schema\Operations\Repos\CreateAttestation\Response\ApplicationJson\Created|\ApiClients\Client\GitHub\Schema\Operations\Repos\ListAttestations\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Autolink|\ApiClients\Client\GitHub\Schema\CheckAutomatedSecurityFixes|\ApiClients\Client\GitHub\Schema\BranchWithProtection|\ApiClients\Client\GitHub\Schema\BranchProtection|\ApiClients\Client\GitHub\Schema\ProtectedBranch|\ApiClients\Client\GitHub\Schema\ProtectedBranchAdminEnforced|\ApiClients\Client\GitHub\Schema\ProtectedBranchPullRequestReview|\ApiClients\Client\GitHub\Schema\StatusCheckPolicy|\ApiClients\Client\GitHub\Schema\BranchRestrictionPolicy|\ApiClients\Client\GitHub\Schema\CheckRun|\ApiClients\Client\GitHub\Schema\CheckSuite|\ApiClients\Client\GitHub\Schema\CheckSuitePreference|\ApiClients\Client\GitHub\Schema\Operations\Checks\ListForSuite\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\CodeScanningAlert|\ApiClients\Client\GitHub\Schema\CodeScanningAutofix|\ApiClients\Client\GitHub\Schema\CodeScanningAutofixCommitsResponse|\ApiClients\Client\GitHub\Schema\CodeScanningAnalysis|\ApiClients\Client\GitHub\Schema\CodeScanningAnalysisDeletion|\ApiClients\Client\GitHub\Schema\CodeScanningCodeqlDatabase|\ApiClients\Client\GitHub\Schema\CodeScanningVariantAnalysis|\ApiClients\Client\GitHub\Schema\CodeScanningVariantAnalysisRepoTask|\ApiClients\Client\GitHub\Schema\CodeScanningDefaultSetup|\ApiClients\Client\GitHub\Schema\CodeScanningDefaultSetupUpdateResponse|\ApiClients\Client\GitHub\Schema\CodeScanningSarifsReceipt|\ApiClients\Client\GitHub\Schema\CodeScanningSarifsStatus|\ApiClients\Client\GitHub\Schema\CodeSecurityConfigurationForRepository|\ApiClients\Client\GitHub\Schema\CodeownersErrors|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListInRepositoryForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\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|\ApiClients\Client\GitHub\Schema\CodespacesPermissionsCheckForDevcontainer|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListRepoSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\RepoCodespacesSecret|\ApiClients\Client\GitHub\Schema\RepositoryInvitation|\ApiClients\Client\GitHub\Schema\RepositoryCollaboratorPermission|\ApiClients\Client\GitHub\Schema\CommitComment|\ApiClients\Client\GitHub\Schema\Commit|\ApiClients\Client\GitHub\Schema\Operations\Checks\ListForRef\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Checks\ListSuitesForRef\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\CombinedCommitStatus|\ApiClients\Client\GitHub\Schema\CommunityProfile|\ApiClients\Client\GitHub\Schema\CommitComparison|\ApiClients\Client\GitHub\Schema\ContentDirectory|\ApiClients\Client\GitHub\Schema\ContentFile|\ApiClients\Client\GitHub\Schema\ContentSymlink|\ApiClients\Client\GitHub\Schema\ContentSubmodule|\ApiClients\Client\GitHub\Schema\FileCommit|\ApiClients\Client\GitHub\Schema\DependabotAlert|\ApiClients\Client\GitHub\Schema\Operations\Dependabot\ListRepoSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\DependabotSecret|\ApiClients\Client\GitHub\Schema\DependencyGraphSpdxSbom|\ApiClients\Client\GitHub\Schema\Operations\DependencyGraph\CreateRepositorySnapshot\Response\ApplicationJson\Created|\ApiClients\Client\GitHub\Schema\Deployment|\ApiClients\Client\GitHub\Schema\Operations\Repos\CreateDeployment\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\DeploymentStatus|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetAllEnvironments\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Environment|\ApiClients\Client\GitHub\Schema\Operations\Repos\ListDeploymentBranchPolicies\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\DeploymentBranchPolicy|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetAllDeploymentProtectionRules\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\DeploymentProtectionRule|\ApiClients\Client\GitHub\Schema\Operations\Repos\ListCustomDeploymentRuleIntegrations\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|\ApiClients\Client\GitHub\Schema\ShortBlob|\ApiClients\Client\GitHub\Schema\Blob|\ApiClients\Client\GitHub\Schema\GitCommit|\ApiClients\Client\GitHub\Schema\GitRef|\ApiClients\Client\GitHub\Schema\GitTag|\ApiClients\Client\GitHub\Schema\GitTree|\ApiClients\Client\GitHub\Schema\Hook|\ApiClients\Client\GitHub\Schema\Operations\Repos\RedeliverWebhookDelivery\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Import|\ApiClients\Client\GitHub\Schema\PorterAuthor|\ApiClients\Client\GitHub\Schema\Operations\Interactions\GetRestrictionsForRepo\Response\ApplicationJson\Ok\Application\Json\One|\ApiClients\Client\GitHub\Schema\Issue|\ApiClients\Client\GitHub\Schema\IssueComment|\ApiClients\Client\GitHub\Schema\IssueEvent|\ApiClients\Client\GitHub\Schema\DeployKey|\ApiClients\Client\GitHub\Schema\Label|\ApiClients\Client\GitHub\Schema\Language|\ApiClients\Client\GitHub\Schema\LicenseContent|\ApiClients\Client\GitHub\Schema\MergedUpstream|\ApiClients\Client\GitHub\Schema\Milestone|\ApiClients\Client\GitHub\Schema\Operations\Activity\MarkRepoNotificationsAsRead\Response\ApplicationJson\Accepted|\ApiClients\Client\GitHub\Schema\Page|\ApiClients\Client\GitHub\Schema\PageBuildStatus|\ApiClients\Client\GitHub\Schema\PageBuild|\ApiClients\Client\GitHub\Schema\PageDeployment|\ApiClients\Client\GitHub\Schema\PagesDeploymentStatus|\ApiClients\Client\GitHub\Schema\PagesHealthCheck|\ApiClients\Client\GitHub\Schema\Operations\Repos\CheckPrivateVulnerabilityReporting\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\PullRequest|\ApiClients\Client\GitHub\Schema\PullRequestReviewComment|\ApiClients\Client\GitHub\Schema\PullRequestMergeResult|\ApiClients\Client\GitHub\Schema\PullRequestReviewRequest|\ApiClients\Client\GitHub\Schema\PullRequestSimple|\ApiClients\Client\GitHub\Schema\PullRequestReview|\ApiClients\Client\GitHub\Schema\Operations\Pulls\UpdateBranch\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Release|\ApiClients\Client\GitHub\Schema\ReleaseAsset|\ApiClients\Client\GitHub\Schema\ReleaseNotesContent|\ApiClients\Client\GitHub\Schema\SecretScanningAlert|\ApiClients\Client\GitHub\Schema\SecretScanningPushProtectionBypass|\ApiClients\Client\GitHub\Schema\SecretScanningScanHistory|\ApiClients\Client\GitHub\Schema\RepositoryAdvisory|\ApiClients\Client\GitHub\Schema\Operations\SecurityAdvisories\CreateRepositoryAdvisoryCveRequest\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\SimpleUser|\ApiClients\Client\GitHub\Schema\Stargazer|\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|\ApiClients\Client\GitHub\Schema\ParticipationStats|\ApiClients\Client\GitHub\Schema\Status|\ApiClients\Client\GitHub\Schema\RepositorySubscription|\ApiClients\Client\GitHub\Schema\TagProtection|\ApiClients\Client\GitHub\Schema\Topic|\ApiClients\Client\GitHub\Schema\CloneTraffic|\ApiClients\Client\GitHub\Schema\ViewTraffic|\ApiClients\Client\GitHub\Schema\MinimalRepository|\ApiClients\Client\GitHub\Schema\Operations\Search\Code\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Search\Commits\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Search\IssuesAndPullRequests\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Search\Labels\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Search\Repos\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Search\Topics\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Search\Users\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\PrivateUser|\ApiClients\Client\GitHub\Schema\PublicUser|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListSecretsForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\CodespacesUserPublicKey|\ApiClients\Client\GitHub\Schema\CodespacesSecret|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListRepositoriesForSecretForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\DeleteForAuthenticatedUser\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\CodespaceExportDetails|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\CodespaceMachinesForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\CodespaceWithFullRepository|\ApiClients\Client\GitHub\Schema\GpgKey|\ApiClients\Client\GitHub\Schema\Operations\Apps\ListInstallationsForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Apps\ListInstallationReposForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Interactions\GetRestrictionsForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json\One|\ApiClients\Client\GitHub\Schema\Key|\ApiClients\Client\GitHub\Schema\SshSigningKey|\ApiClients\Client\GitHub\Schema\Operations\Users\ListAttestations\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Hovercard|\ApiClients\Client\GitHub\Schema\StarredRepository|\ApiClients\Client\GitHub\Schema\Repository; + public function call(string $call, array $params = []): \ApiClients\Client\GitHub\Schema\Root|iterable|\ApiClients\Client\GitHub\Schema\GlobalAdvisory|\ApiClients\Client\GitHub\Schema\Integration|\ApiClients\Client\GitHub\Schema\WebhookConfig|\ApiClients\Client\GitHub\Schema\HookDelivery|\ApiClients\Client\GitHub\Schema\Operations\Apps\RedeliverWebhookDelivery\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Tools\OpenApiClient\Utils\Response\WithoutBody|\ApiClients\Client\GitHub\Schema\Installation|\ApiClients\Client\GitHub\Schema\InstallationToken|\ApiClients\Client\GitHub\Schema\Authorization|\ApiClients\Client\GitHub\Schema\ClassroomAssignment|\ApiClients\Client\GitHub\Schema\Classroom|\ApiClients\Client\GitHub\Schema\CodeOfConduct|\ApiClients\Client\GitHub\Schema\Operations\Emojis\Get\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\CodeSecurityConfiguration|\ApiClients\Client\GitHub\Schema\Operations\CodeSecurity\AttachEnterpriseConfiguration\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\CodeSecurity\SetConfigurationAsDefaultForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Feed|\ApiClients\Client\GitHub\Schema\GistSimple|\ApiClients\Client\GitHub\Schema\GistComment|\ApiClients\Client\GitHub\Schema\BaseGist|\ApiClients\Client\GitHub\Schema\GitignoreTemplate|\ApiClients\Client\GitHub\Schema\Operations\Apps\ListReposAccessibleToInstallation\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\License|string|\ApiClients\Client\GitHub\Schema\MarketplacePurchase|\ApiClients\Client\GitHub\Schema\ApiOverview|\ApiClients\Client\GitHub\Schema\BasicError|\ApiClients\Client\GitHub\Schema\Operations\Activity\MarkNotificationsAsRead\Response\ApplicationJson\Accepted|\ApiClients\Client\GitHub\Schema\Thread|\ApiClients\Client\GitHub\Schema\ThreadSubscription|\Psr\Http\Message\ResponseInterface|\ApiClients\Client\GitHub\Schema\BillingUsageReport|\ApiClients\Client\GitHub\Schema\OrganizationFull|\ApiClients\Client\GitHub\Schema\Operations\Orgs\Delete\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\ActionsCacheUsageOrgEnterprise|\ApiClients\Client\GitHub\Schema\Operations\Actions\GetActionsCacheUsageByRepoForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListHostedRunnersForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\ActionsHostedRunner|\ApiClients\Client\GitHub\Schema\Operations\Actions\GetHostedRunnersGithubOwnedImagesForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\GetHostedRunnersPartnerImagesForOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\ActionsHostedRunnerLimits|\ApiClients\Client\GitHub\Schema\Operations\Actions\GetHostedRunnersMachineSpecsForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\GetHostedRunnersPlatformsForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\OidcCustomSub|\ApiClients\Client\GitHub\Schema\EmptyObject|\ApiClients\Client\GitHub\Schema\ActionsOrganizationPermissions|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelectedRepositoriesEnabledGithubActionsOrganization\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\SelectedActions|\ApiClients\Client\GitHub\Schema\ActionsGetDefaultWorkflowPermissions|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelfHostedRunnerGroupsForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\RunnerGroupsOrg|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListGithubHostedRunnersInGroupForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoAccessToSelfHostedRunnerGroupInOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelfHostedRunnersInGroupForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelfHostedRunnersForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\GenerateRunnerJitconfigForOrg\Response\ApplicationJson\Created|\ApiClients\Client\GitHub\Schema\AuthenticationToken|\ApiClients\Client\GitHub\Schema\Runner|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListLabelsForSelfHostedRunnerForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\RemoveAllCustomLabelsFromSelfHostedRunnerForOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListOrgSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\ActionsPublicKey|\ApiClients\Client\GitHub\Schema\OrganizationActionsSecret|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListOrgVariables\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\OrganizationActionsVariable|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelectedReposForOrgVariable\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Orgs\ListAttestations\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\CodeSecurity\AttachConfiguration\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\CodeSecurity\SetConfigurationAsDefault\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListInOrganization\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListOrgSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\CodespacesPublicKey|\ApiClients\Client\GitHub\Schema\CodespacesOrgSecret|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\CopilotOrganizationDetails|\ApiClients\Client\GitHub\Schema\Operations\Copilot\ListCopilotSeats\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Copilot\AddCopilotSeatsForTeams\Response\ApplicationJson\Created|\ApiClients\Client\GitHub\Schema\Operations\Copilot\CancelCopilotSeatAssignmentForTeams\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Copilot\AddCopilotSeatsForUsers\Response\ApplicationJson\Created|\ApiClients\Client\GitHub\Schema\Operations\Copilot\CancelCopilotSeatAssignmentForUsers\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Dependabot\ListOrgSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\DependabotPublicKey|\ApiClients\Client\GitHub\Schema\OrganizationDependabotSecret|\ApiClients\Client\GitHub\Schema\Operations\Dependabot\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\OrgHook|\ApiClients\Client\GitHub\Schema\Operations\Orgs\RedeliverWebhookDelivery\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\ApiInsightsSummaryStats|\ApiClients\Client\GitHub\Schema\Operations\Orgs\ListAppInstallations\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\InteractionLimitResponse|\ApiClients\Client\GitHub\Schema\Operations\Interactions\GetRestrictionsForOrg\Response\ApplicationJson\Ok\Application\Json\One|\ApiClients\Client\GitHub\Schema\OrganizationInvitation|\ApiClients\Client\GitHub\Schema\IssueType|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\GetCodespacesForUserInOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\DeleteFromOrganization\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Codespace|\ApiClients\Client\GitHub\Schema\CopilotSeatDetails|\ApiClients\Client\GitHub\Schema\OrgMembership|\ApiClients\Client\GitHub\Schema\Migration|\ApiClients\Client\GitHub\Schema\Operations\Orgs\ListOrgRoles\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\OrganizationRole|\ApiClients\Client\GitHub\Schema\Operations\Orgs\ConvertMemberToOutsideCollaborator\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Package|\ApiClients\Client\GitHub\Schema\PackageVersion|\ApiClients\Client\GitHub\Schema\Operations\Orgs\ReviewPatGrantRequestsInBulk\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Orgs\UpdatePatAccesses\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\PrivateRegistries\ListOrgPrivateRegistries\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\OrgPrivateRegistryConfigurationWithSelectedRepositories|\ApiClients\Client\GitHub\Schema\Operations\PrivateRegistries\GetOrgPublicKey\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\OrgPrivateRegistryConfiguration|\ApiClients\Client\GitHub\Schema\Project|\ApiClients\Client\GitHub\Schema\CustomProperty|\ApiClients\Client\GitHub\Schema\FullRepository|\ApiClients\Client\GitHub\Schema\RepositoryRuleset|\ApiClients\Client\GitHub\Schema\RuleSuite|\ApiClients\Client\GitHub\Schema\RulesetVersion|\ApiClients\Client\GitHub\Schema\ActionsBillingUsage|\ApiClients\Client\GitHub\Schema\PackagesBillingUsage|\ApiClients\Client\GitHub\Schema\CombinedBillingUsage|\ApiClients\Client\GitHub\Schema\Operations\HostedCompute\ListNetworkConfigurationsForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\NetworkConfiguration|\ApiClients\Client\GitHub\Schema\NetworkSettings|\ApiClients\Client\GitHub\Schema\TeamFull|\ApiClients\Client\GitHub\Schema\TeamDiscussion|\ApiClients\Client\GitHub\Schema\TeamDiscussionComment|\ApiClients\Client\GitHub\Schema\Reaction|\ApiClients\Client\GitHub\Schema\TeamMembership|\ApiClients\Client\GitHub\Schema\TeamProject|\ApiClients\Client\GitHub\Schema\TeamRepository|\ApiClients\Client\GitHub\Schema\ProjectCard|\ApiClients\Client\GitHub\Schema\Operations\Projects\MoveCard\Response\ApplicationJson\Created\Application\Json|\ApiClients\Client\GitHub\Schema\ProjectColumn|\ApiClients\Client\GitHub\Schema\Operations\Projects\MoveColumn\Response\ApplicationJson\Created\Application\Json|\ApiClients\Client\GitHub\Schema\ProjectCollaboratorPermission|\ApiClients\Client\GitHub\Schema\RateLimitOverview|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListArtifactsForRepo\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Artifact|\ApiClients\Client\GitHub\Schema\ActionsCacheUsageByRepository|\ApiClients\Client\GitHub\Schema\ActionsCacheList|\ApiClients\Client\GitHub\Schema\Job|\ApiClients\Client\GitHub\Schema\OidcCustomSubRepo|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoOrganizationSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoOrganizationVariables\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\ActionsRepositoryPermissions|\ApiClients\Client\GitHub\Schema\ActionsWorkflowAccessToRepository|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelfHostedRunnersForRepo\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\RemoveAllCustomLabelsFromSelfHostedRunnerForRepo\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListWorkflowRunsForRepo\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\WorkflowRun|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListWorkflowRunArtifacts\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListJobsForWorkflowRunAttempt\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListJobsForWorkflowRun\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\WorkflowRunUsage|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoSecrets\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\ActionsSecret|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoVariables\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\ActionsVariable|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoWorkflows\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Workflow|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListWorkflowRuns\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\WorkflowUsage|\ApiClients\Client\GitHub\Schema\Operations\Repos\CreateAttestation\Response\ApplicationJson\Created|\ApiClients\Client\GitHub\Schema\Operations\Repos\ListAttestations\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Autolink|\ApiClients\Client\GitHub\Schema\CheckAutomatedSecurityFixes|\ApiClients\Client\GitHub\Schema\BranchWithProtection|\ApiClients\Client\GitHub\Schema\BranchProtection|\ApiClients\Client\GitHub\Schema\ProtectedBranch|\ApiClients\Client\GitHub\Schema\ProtectedBranchAdminEnforced|\ApiClients\Client\GitHub\Schema\ProtectedBranchPullRequestReview|\ApiClients\Client\GitHub\Schema\StatusCheckPolicy|\ApiClients\Client\GitHub\Schema\BranchRestrictionPolicy|\ApiClients\Client\GitHub\Schema\CheckRun|\ApiClients\Client\GitHub\Schema\CheckSuite|\ApiClients\Client\GitHub\Schema\CheckSuitePreference|\ApiClients\Client\GitHub\Schema\Operations\Checks\ListForSuite\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\CodeScanningAlert|\ApiClients\Client\GitHub\Schema\CodeScanningAutofix|\ApiClients\Client\GitHub\Schema\CodeScanningAutofixCommitsResponse|\ApiClients\Client\GitHub\Schema\CodeScanningAnalysis|\ApiClients\Client\GitHub\Schema\CodeScanningAnalysisDeletion|\ApiClients\Client\GitHub\Schema\CodeScanningCodeqlDatabase|\ApiClients\Client\GitHub\Schema\CodeScanningVariantAnalysis|\ApiClients\Client\GitHub\Schema\CodeScanningVariantAnalysisRepoTask|\ApiClients\Client\GitHub\Schema\CodeScanningDefaultSetup|\ApiClients\Client\GitHub\Schema\CodeScanningDefaultSetupUpdateResponse|\ApiClients\Client\GitHub\Schema\CodeScanningSarifsReceipt|\ApiClients\Client\GitHub\Schema\CodeScanningSarifsStatus|\ApiClients\Client\GitHub\Schema\CodeSecurityConfigurationForRepository|\ApiClients\Client\GitHub\Schema\CodeownersErrors|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListInRepositoryForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\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|\ApiClients\Client\GitHub\Schema\CodespacesPermissionsCheckForDevcontainer|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListRepoSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\RepoCodespacesSecret|\ApiClients\Client\GitHub\Schema\RepositoryInvitation|\ApiClients\Client\GitHub\Schema\RepositoryCollaboratorPermission|\ApiClients\Client\GitHub\Schema\CommitComment|\ApiClients\Client\GitHub\Schema\Commit|\ApiClients\Client\GitHub\Schema\Operations\Checks\ListForRef\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Checks\ListSuitesForRef\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\CombinedCommitStatus|\ApiClients\Client\GitHub\Schema\CommunityProfile|\ApiClients\Client\GitHub\Schema\CommitComparison|\ApiClients\Client\GitHub\Schema\ContentDirectory|\ApiClients\Client\GitHub\Schema\ContentFile|\ApiClients\Client\GitHub\Schema\ContentSymlink|\ApiClients\Client\GitHub\Schema\ContentSubmodule|\ApiClients\Client\GitHub\Schema\FileCommit|\ApiClients\Client\GitHub\Schema\DependabotAlert|\ApiClients\Client\GitHub\Schema\Operations\Dependabot\ListRepoSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\DependabotSecret|\ApiClients\Client\GitHub\Schema\DependencyGraphSpdxSbom|\ApiClients\Client\GitHub\Schema\Operations\DependencyGraph\CreateRepositorySnapshot\Response\ApplicationJson\Created|\ApiClients\Client\GitHub\Schema\Deployment|\ApiClients\Client\GitHub\Schema\Operations\Repos\CreateDeployment\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\DeploymentStatus|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetAllEnvironments\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Environment|\ApiClients\Client\GitHub\Schema\Operations\Repos\ListDeploymentBranchPolicies\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\DeploymentBranchPolicy|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetAllDeploymentProtectionRules\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\DeploymentProtectionRule|\ApiClients\Client\GitHub\Schema\Operations\Repos\ListCustomDeploymentRuleIntegrations\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|\ApiClients\Client\GitHub\Schema\ShortBlob|\ApiClients\Client\GitHub\Schema\Blob|\ApiClients\Client\GitHub\Schema\GitCommit|\ApiClients\Client\GitHub\Schema\GitRef|\ApiClients\Client\GitHub\Schema\GitTag|\ApiClients\Client\GitHub\Schema\GitTree|\ApiClients\Client\GitHub\Schema\Hook|\ApiClients\Client\GitHub\Schema\Operations\Repos\RedeliverWebhookDelivery\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Import|\ApiClients\Client\GitHub\Schema\PorterAuthor|\ApiClients\Client\GitHub\Schema\Operations\Interactions\GetRestrictionsForRepo\Response\ApplicationJson\Ok\Application\Json\One|\ApiClients\Client\GitHub\Schema\Issue|\ApiClients\Client\GitHub\Schema\IssueComment|\ApiClients\Client\GitHub\Schema\IssueEvent|\ApiClients\Client\GitHub\Schema\DeployKey|\ApiClients\Client\GitHub\Schema\Label|\ApiClients\Client\GitHub\Schema\Language|\ApiClients\Client\GitHub\Schema\LicenseContent|\ApiClients\Client\GitHub\Schema\MergedUpstream|\ApiClients\Client\GitHub\Schema\Milestone|\ApiClients\Client\GitHub\Schema\Operations\Activity\MarkRepoNotificationsAsRead\Response\ApplicationJson\Accepted|\ApiClients\Client\GitHub\Schema\Page|\ApiClients\Client\GitHub\Schema\PageBuildStatus|\ApiClients\Client\GitHub\Schema\PageBuild|\ApiClients\Client\GitHub\Schema\PageDeployment|\ApiClients\Client\GitHub\Schema\PagesDeploymentStatus|\ApiClients\Client\GitHub\Schema\PagesHealthCheck|\ApiClients\Client\GitHub\Schema\Operations\Repos\CheckPrivateVulnerabilityReporting\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\PullRequest|\ApiClients\Client\GitHub\Schema\PullRequestReviewComment|\ApiClients\Client\GitHub\Schema\PullRequestMergeResult|\ApiClients\Client\GitHub\Schema\PullRequestReviewRequest|\ApiClients\Client\GitHub\Schema\PullRequestSimple|\ApiClients\Client\GitHub\Schema\PullRequestReview|\ApiClients\Client\GitHub\Schema\Operations\Pulls\UpdateBranch\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Release|\ApiClients\Client\GitHub\Schema\ReleaseAsset|\ApiClients\Client\GitHub\Schema\ReleaseNotesContent|\ApiClients\Client\GitHub\Schema\SecretScanningAlert|\ApiClients\Client\GitHub\Schema\SecretScanningPushProtectionBypass|\ApiClients\Client\GitHub\Schema\SecretScanningScanHistory|\ApiClients\Client\GitHub\Schema\RepositoryAdvisory|\ApiClients\Client\GitHub\Schema\Operations\SecurityAdvisories\CreateRepositoryAdvisoryCveRequest\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\SimpleUser|\ApiClients\Client\GitHub\Schema\Stargazer|\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|\ApiClients\Client\GitHub\Schema\ParticipationStats|\ApiClients\Client\GitHub\Schema\Status|\ApiClients\Client\GitHub\Schema\RepositorySubscription|\ApiClients\Client\GitHub\Schema\TagProtection|\ApiClients\Client\GitHub\Schema\Topic|\ApiClients\Client\GitHub\Schema\CloneTraffic|\ApiClients\Client\GitHub\Schema\ViewTraffic|\ApiClients\Client\GitHub\Schema\MinimalRepository|\ApiClients\Client\GitHub\Schema\Operations\Search\Code\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Search\Commits\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Search\IssuesAndPullRequests\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Search\Labels\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Search\Repos\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Search\Topics\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Search\Users\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\PrivateUser|\ApiClients\Client\GitHub\Schema\PublicUser|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListSecretsForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\CodespacesUserPublicKey|\ApiClients\Client\GitHub\Schema\CodespacesSecret|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListRepositoriesForSecretForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\DeleteForAuthenticatedUser\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\CodespaceExportDetails|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\CodespaceMachinesForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\CodespaceWithFullRepository|\ApiClients\Client\GitHub\Schema\GpgKey|\ApiClients\Client\GitHub\Schema\Operations\Apps\ListInstallationsForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Apps\ListInstallationReposForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Interactions\GetRestrictionsForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json\One|\ApiClients\Client\GitHub\Schema\Key|\ApiClients\Client\GitHub\Schema\SshSigningKey|\ApiClients\Client\GitHub\Schema\Operations\Users\ListAttestations\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Hovercard|\ApiClients\Client\GitHub\Schema\StarredRepository|\ApiClients\Client\GitHub\Schema\Repository; public function operations(): OperationsInterface; diff --git a/clients/GitHub/src/Internal/Hydrator/Operation/Orgs/Org/IssueTypes.php b/clients/GitHub/src/Internal/Hydrator/Operation/Orgs/Org/IssueTypes.php new file mode 100644 index 00000000000..abb439af1e3 --- /dev/null +++ b/clients/GitHub/src/Internal/Hydrator/Operation/Orgs/Org/IssueTypes.php @@ -0,0 +1,537 @@ + $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\IssueType' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType($payload), + 'ApiClients\Client\GitHub\Schema\ValidationErrorSimple' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️ValidationErrorSimple($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⚡️IssueType(array $payload): IssueType + { + $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['description'] ?? null; + + if ($value === null) { + $properties['description'] = null; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['color'] ?? null; + + if ($value === null) { + $properties['color'] = null; + goto after_color; + } + + $properties['color'] = $value; + + after_color: + + $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['is_enabled'] ?? null; + + if ($value === null) { + $properties['isEnabled'] = null; + goto after_isEnabled; + } + + $properties['isEnabled'] = $value; + + after_isEnabled: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\IssueType', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(IssueType::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new IssueType(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\IssueType', $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 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\IssueType' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType($object), + 'ApiClients\Client\GitHub\Schema\ValidationErrorSimple' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️ValidationErrorSimple($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⚡️IssueType(mixed $object): mixed + { + assert($object instanceof IssueType); + $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; + + $description = $object->description; + + if ($description === null) { + goto after_description; + } + + after_description: $result['description'] = $description; + + $color = $object->color; + + if ($color === null) { + goto after_color; + } + + after_color: $result['color'] = $color; + + $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; + + $isEnabled = $object->isEnabled; + + if ($isEnabled === null) { + goto after_isEnabled; + } + + after_isEnabled: $result['is_enabled'] = $isEnabled; + + 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; + } + + /** + * @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/Orgs/Org/IssueTypes/IssueTypeId.php b/clients/GitHub/src/Internal/Hydrator/Operation/Orgs/Org/IssueTypes/IssueTypeId.php new file mode 100644 index 00000000000..d41f29f2f2b --- /dev/null +++ b/clients/GitHub/src/Internal/Hydrator/Operation/Orgs/Org/IssueTypes/IssueTypeId.php @@ -0,0 +1,537 @@ + $className + * + * @return T + * + * @template T of object + */ + public function hydrateObject(string $className, array $payload): object + { + return match ($className) { + 'ApiClients\Client\GitHub\Schema\IssueType' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType($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), + default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), + }; + } + + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType(array $payload): IssueType + { + $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['description'] ?? null; + + if ($value === null) { + $properties['description'] = null; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['color'] ?? null; + + if ($value === null) { + $properties['color'] = null; + goto after_color; + } + + $properties['color'] = $value; + + after_color: + + $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['is_enabled'] ?? null; + + if ($value === null) { + $properties['isEnabled'] = null; + goto after_isEnabled; + } + + $properties['isEnabled'] = $value; + + after_isEnabled: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\IssueType', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(IssueType::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new IssueType(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\IssueType', $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 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\IssueType' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType($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), + 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⚡️IssueType(mixed $object): mixed + { + assert($object instanceof IssueType); + $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; + + $description = $object->description; + + if ($description === null) { + goto after_description; + } + + after_description: $result['description'] = $description; + + $color = $object->color; + + if ($color === null) { + goto after_color; + } + + after_color: $result['color'] = $color; + + $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; + + $isEnabled = $object->isEnabled; + + if ($isEnabled === null) { + goto after_isEnabled; + } + + after_isEnabled: $result['is_enabled'] = $isEnabled; + + 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; + } + + /** + * @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.php b/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues.php index 87247e2b550..41d93efe380 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 @@ -9,6 +9,7 @@ use ApiClients\Client\GitHub\Schema\Integration; use ApiClients\Client\GitHub\Schema\Issue; use ApiClients\Client\GitHub\Schema\Issue\PullRequest; +use ApiClients\Client\GitHub\Schema\IssueType; use ApiClients\Client\GitHub\Schema\LicenseSimple; use ApiClients\Client\GitHub\Schema\Milestone; use ApiClients\Client\GitHub\Schema\Operations\SecretScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable; @@ -60,6 +61,7 @@ public function hydrateObject(string $className, array $payload): object '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\IssueType' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType($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), @@ -568,6 +570,26 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Issu after_timelineUrl: + $value = $payload['type'] ?? null; + + if ($value === null) { + $properties['type'] = null; + goto after_type; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'type'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['type'] = $value; + + after_type: + $value = $payload['repository'] ?? null; if ($value === null) { @@ -1212,6 +1234,113 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Issu } } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType(array $payload): IssueType + { + $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['description'] ?? null; + + if ($value === null) { + $properties['description'] = null; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['color'] ?? null; + + if ($value === null) { + $properties['color'] = null; + goto after_color; + } + + $properties['color'] = $value; + + after_color: + + $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['is_enabled'] ?? null; + + if ($value === null) { + $properties['isEnabled'] = null; + goto after_isEnabled; + } + + $properties['isEnabled'] = $value; + + after_isEnabled: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\IssueType', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(IssueType::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new IssueType(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\IssueType', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repository(array $payload): Repository { $properties = []; @@ -3119,6 +3248,7 @@ public function serializeObjectOfType(object $object, string $className): mixed '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\IssueType' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType($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), @@ -3443,6 +3573,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_timelineUrl: $result['timeline_url'] = $timelineUrl; + $type = $object->type; + + if ($type === null) { + goto after_type; + } + + $type = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType($type); + after_type: $result['type'] = $type; + $repository = $object->repository; if ($repository === null) { @@ -3709,6 +3848,63 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType(mixed $object): mixed + { + assert($object instanceof IssueType); + $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; + + $description = $object->description; + + if ($description === null) { + goto after_description; + } + + after_description: $result['description'] = $description; + + $color = $object->color; + + if ($color === null) { + goto after_color; + } + + after_color: $result['color'] = $color; + + $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; + + $isEnabled = $object->isEnabled; + + if ($isEnabled === null) { + goto after_isEnabled; + } + + after_isEnabled: $result['is_enabled'] = $isEnabled; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repository(mixed $object): mixed { assert($object instanceof Repository); 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 b21ca444728..e02f9eaaee6 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 @@ -15,6 +15,7 @@ use ApiClients\Client\GitHub\Schema\IssueEventMilestone; use ApiClients\Client\GitHub\Schema\IssueEventProjectCard; use ApiClients\Client\GitHub\Schema\IssueEventRename; +use ApiClients\Client\GitHub\Schema\IssueType; use ApiClients\Client\GitHub\Schema\LicenseSimple; use ApiClients\Client\GitHub\Schema\Milestone; use ApiClients\Client\GitHub\Schema\ReactionRollup; @@ -64,6 +65,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\Issue' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Issue($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\IssueType' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType($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), @@ -1103,6 +1105,26 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Issu after_timelineUrl: + $value = $payload['type'] ?? null; + + if ($value === null) { + $properties['type'] = null; + goto after_type; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'type'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['type'] = $value; + + after_type: + $value = $payload['repository'] ?? null; if ($value === null) { @@ -1486,6 +1508,113 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Issu } } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType(array $payload): IssueType + { + $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['description'] ?? null; + + if ($value === null) { + $properties['description'] = null; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['color'] ?? null; + + if ($value === null) { + $properties['color'] = null; + goto after_color; + } + + $properties['color'] = $value; + + after_color: + + $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['is_enabled'] ?? null; + + if ($value === null) { + $properties['isEnabled'] = null; + goto after_isEnabled; + } + + $properties['isEnabled'] = $value; + + after_isEnabled: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\IssueType', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(IssueType::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new IssueType(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\IssueType', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repository(array $payload): Repository { $properties = []; @@ -4005,6 +4134,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\Issue' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Issue($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\IssueType' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType($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), @@ -4538,6 +4668,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_timelineUrl: $result['timeline_url'] = $timelineUrl; + $type = $object->type; + + if ($type === null) { + goto after_type; + } + + $type = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType($type); + after_type: $result['type'] = $type; + $repository = $object->repository; if ($repository === null) { @@ -4705,6 +4844,63 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType(mixed $object): mixed + { + assert($object instanceof IssueType); + $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; + + $description = $object->description; + + if ($description === null) { + goto after_description; + } + + after_description: $result['description'] = $description; + + $color = $object->color; + + if ($color === null) { + goto after_color; + } + + after_color: $result['color'] = $color; + + $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; + + $isEnabled = $object->isEnabled; + + if ($isEnabled === null) { + goto after_isEnabled; + } + + after_isEnabled: $result['is_enabled'] = $isEnabled; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repository(mixed $object): mixed { assert($object instanceof Repository); 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 cb9b89ddc50..628a231f9db 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 @@ -9,6 +9,7 @@ use ApiClients\Client\GitHub\Schema\Integration; use ApiClients\Client\GitHub\Schema\Issue; use ApiClients\Client\GitHub\Schema\Issue\PullRequest; +use ApiClients\Client\GitHub\Schema\IssueType; use ApiClients\Client\GitHub\Schema\LicenseSimple; use ApiClients\Client\GitHub\Schema\Milestone; use ApiClients\Client\GitHub\Schema\Operations\SecretScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable; @@ -57,6 +58,7 @@ public function hydrateObject(string $className, array $payload): object '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\IssueType' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType($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), @@ -451,6 +453,26 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Issu after_timelineUrl: + $value = $payload['type'] ?? null; + + if ($value === null) { + $properties['type'] = null; + goto after_type; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'type'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['type'] = $value; + + after_type: + $value = $payload['repository'] ?? null; if ($value === null) { @@ -1095,6 +1117,113 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Issu } } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType(array $payload): IssueType + { + $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['description'] ?? null; + + if ($value === null) { + $properties['description'] = null; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['color'] ?? null; + + if ($value === null) { + $properties['color'] = null; + goto after_color; + } + + $properties['color'] = $value; + + after_color: + + $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['is_enabled'] ?? null; + + if ($value === null) { + $properties['isEnabled'] = null; + goto after_isEnabled; + } + + $properties['isEnabled'] = $value; + + after_isEnabled: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\IssueType', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(IssueType::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new IssueType(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\IssueType', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repository(array $payload): Repository { $properties = []; @@ -3030,6 +3159,7 @@ public function serializeObjectOfType(object $object, string $className): mixed '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\IssueType' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType($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), @@ -3286,6 +3416,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_timelineUrl: $result['timeline_url'] = $timelineUrl; + $type = $object->type; + + if ($type === null) { + goto after_type; + } + + $type = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType($type); + after_type: $result['type'] = $type; + $repository = $object->repository; if ($repository === null) { @@ -3552,6 +3691,63 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType(mixed $object): mixed + { + assert($object instanceof IssueType); + $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; + + $description = $object->description; + + if ($description === null) { + goto after_description; + } + + after_description: $result['description'] = $description; + + $color = $object->color; + + if ($color === null) { + goto after_color; + } + + after_color: $result['color'] = $color; + + $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; + + $isEnabled = $object->isEnabled; + + if ($isEnabled === null) { + goto after_isEnabled; + } + + after_isEnabled: $result['is_enabled'] = $isEnabled; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repository(mixed $object): mixed { assert($object instanceof Repository); 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 f043e668591..b37df1b3065 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 @@ -8,6 +8,7 @@ use ApiClients\Client\GitHub\Schema\Integration; use ApiClients\Client\GitHub\Schema\Issue; use ApiClients\Client\GitHub\Schema\Issue\PullRequest; +use ApiClients\Client\GitHub\Schema\IssueType; use ApiClients\Client\GitHub\Schema\LicenseSimple; use ApiClients\Client\GitHub\Schema\Milestone; use ApiClients\Client\GitHub\Schema\ReactionRollup; @@ -54,6 +55,7 @@ public function hydrateObject(string $className, array $payload): object '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\IssueType' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType($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), @@ -445,6 +447,26 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Issu after_timelineUrl: + $value = $payload['type'] ?? null; + + if ($value === null) { + $properties['type'] = null; + goto after_type; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'type'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['type'] = $value; + + after_type: + $value = $payload['repository'] ?? null; if ($value === null) { @@ -1089,6 +1111,113 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Issu } } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType(array $payload): IssueType + { + $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['description'] ?? null; + + if ($value === null) { + $properties['description'] = null; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['color'] ?? null; + + if ($value === null) { + $properties['color'] = null; + goto after_color; + } + + $properties['color'] = $value; + + after_color: + + $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['is_enabled'] ?? null; + + if ($value === null) { + $properties['isEnabled'] = null; + goto after_isEnabled; + } + + $properties['isEnabled'] = $value; + + after_isEnabled: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\IssueType', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(IssueType::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new IssueType(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\IssueType', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repository(array $payload): Repository { $properties = []; @@ -2857,6 +2986,7 @@ public function serializeObjectOfType(object $object, string $className): mixed '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\IssueType' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType($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), @@ -3110,6 +3240,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_timelineUrl: $result['timeline_url'] = $timelineUrl; + $type = $object->type; + + if ($type === null) { + goto after_type; + } + + $type = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType($type); + after_type: $result['type'] = $type; + $repository = $object->repository; if ($repository === null) { @@ -3376,6 +3515,63 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType(mixed $object): mixed + { + assert($object instanceof IssueType); + $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; + + $description = $object->description; + + if ($description === null) { + goto after_description; + } + + after_description: $result['description'] = $description; + + $color = $object->color; + + if ($color === null) { + goto after_color; + } + + after_color: $result['color'] = $color; + + $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; + + $isEnabled = $object->isEnabled; + + if ($isEnabled === null) { + goto after_isEnabled; + } + + after_isEnabled: $result['is_enabled'] = $isEnabled; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repository(mixed $object): mixed { assert($object instanceof Repository); 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 index 3f0bdf088aa..aaa5e5c2713 100644 --- 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 @@ -9,6 +9,7 @@ use ApiClients\Client\GitHub\Schema\Integration; use ApiClients\Client\GitHub\Schema\Issue; use ApiClients\Client\GitHub\Schema\Issue\PullRequest; +use ApiClients\Client\GitHub\Schema\IssueType; use ApiClients\Client\GitHub\Schema\LicenseSimple; use ApiClients\Client\GitHub\Schema\Milestone; use ApiClients\Client\GitHub\Schema\ReactionRollup; @@ -56,6 +57,7 @@ public function hydrateObject(string $className, array $payload): object '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\IssueType' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType($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), @@ -449,6 +451,26 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Issu after_timelineUrl: + $value = $payload['type'] ?? null; + + if ($value === null) { + $properties['type'] = null; + goto after_type; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'type'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['type'] = $value; + + after_type: + $value = $payload['repository'] ?? null; if ($value === null) { @@ -1093,6 +1115,113 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Issu } } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType(array $payload): IssueType + { + $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['description'] ?? null; + + if ($value === null) { + $properties['description'] = null; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['color'] ?? null; + + if ($value === null) { + $properties['color'] = null; + goto after_color; + } + + $properties['color'] = $value; + + after_color: + + $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['is_enabled'] ?? null; + + if ($value === null) { + $properties['isEnabled'] = null; + goto after_isEnabled; + } + + $properties['isEnabled'] = $value; + + after_isEnabled: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\IssueType', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(IssueType::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new IssueType(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\IssueType', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repository(array $payload): Repository { $properties = []; @@ -3009,6 +3138,7 @@ public function serializeObjectOfType(object $object, string $className): mixed '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\IssueType' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType($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), @@ -3264,6 +3394,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_timelineUrl: $result['timeline_url'] = $timelineUrl; + $type = $object->type; + + if ($type === null) { + goto after_type; + } + + $type = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType($type); + after_type: $result['type'] = $type; + $repository = $object->repository; if ($repository === null) { @@ -3530,6 +3669,63 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType(mixed $object): mixed + { + assert($object instanceof IssueType); + $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; + + $description = $object->description; + + if ($description === null) { + goto after_description; + } + + after_description: $result['description'] = $description; + + $color = $object->color; + + if ($color === null) { + goto after_color; + } + + after_color: $result['color'] = $color; + + $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; + + $isEnabled = $object->isEnabled; + + if ($isEnabled === null) { + goto after_isEnabled; + } + + after_isEnabled: $result['is_enabled'] = $isEnabled; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repository(mixed $object): mixed { assert($object instanceof Repository); 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 index 4798f9c04a3..ec9b8bdcba8 100644 --- 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 @@ -9,6 +9,7 @@ use ApiClients\Client\GitHub\Schema\Integration; use ApiClients\Client\GitHub\Schema\Issue; use ApiClients\Client\GitHub\Schema\Issue\PullRequest; +use ApiClients\Client\GitHub\Schema\IssueType; use ApiClients\Client\GitHub\Schema\LicenseSimple; use ApiClients\Client\GitHub\Schema\Milestone; use ApiClients\Client\GitHub\Schema\ReactionRollup; @@ -57,6 +58,7 @@ public function hydrateObject(string $className, array $payload): object '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\IssueType' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType($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), @@ -512,6 +514,26 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Issu after_timelineUrl: + $value = $payload['type'] ?? null; + + if ($value === null) { + $properties['type'] = null; + goto after_type; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'type'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['type'] = $value; + + after_type: + $value = $payload['repository'] ?? null; if ($value === null) { @@ -1156,6 +1178,113 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Issu } } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType(array $payload): IssueType + { + $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['description'] ?? null; + + if ($value === null) { + $properties['description'] = null; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['color'] ?? null; + + if ($value === null) { + $properties['color'] = null; + goto after_color; + } + + $properties['color'] = $value; + + after_color: + + $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['is_enabled'] ?? null; + + if ($value === null) { + $properties['isEnabled'] = null; + goto after_isEnabled; + } + + $properties['isEnabled'] = $value; + + after_isEnabled: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\IssueType', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(IssueType::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new IssueType(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\IssueType', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repository(array $payload): Repository { $properties = []; @@ -2977,6 +3106,7 @@ public function serializeObjectOfType(object $object, string $className): mixed '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\IssueType' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType($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), @@ -3271,6 +3401,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_timelineUrl: $result['timeline_url'] = $timelineUrl; + $type = $object->type; + + if ($type === null) { + goto after_type; + } + + $type = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType($type); + after_type: $result['type'] = $type; + $repository = $object->repository; if ($repository === null) { @@ -3537,6 +3676,63 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType(mixed $object): mixed + { + assert($object instanceof IssueType); + $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; + + $description = $object->description; + + if ($description === null) { + goto after_description; + } + + after_description: $result['description'] = $description; + + $color = $object->color; + + if ($color === null) { + goto after_color; + } + + after_color: $result['color'] = $color; + + $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; + + $isEnabled = $object->isEnabled; + + if ($isEnabled === null) { + goto after_isEnabled; + } + + after_isEnabled: $result['is_enabled'] = $isEnabled; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repository(mixed $object): mixed { assert($object instanceof Repository); 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 index 5ec8686afad..92054f2ecbf 100644 --- 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 @@ -9,6 +9,7 @@ use ApiClients\Client\GitHub\Schema\Integration; use ApiClients\Client\GitHub\Schema\Issue; use ApiClients\Client\GitHub\Schema\Issue\PullRequest; +use ApiClients\Client\GitHub\Schema\IssueType; use ApiClients\Client\GitHub\Schema\LicenseSimple; use ApiClients\Client\GitHub\Schema\Milestone; use ApiClients\Client\GitHub\Schema\Operations\SecretScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable; @@ -57,6 +58,7 @@ public function hydrateObject(string $className, array $payload): object '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\IssueType' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType($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), @@ -451,6 +453,26 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Issu after_timelineUrl: + $value = $payload['type'] ?? null; + + if ($value === null) { + $properties['type'] = null; + goto after_type; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'type'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['type'] = $value; + + after_type: + $value = $payload['repository'] ?? null; if ($value === null) { @@ -1095,6 +1117,113 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Issu } } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType(array $payload): IssueType + { + $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['description'] ?? null; + + if ($value === null) { + $properties['description'] = null; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['color'] ?? null; + + if ($value === null) { + $properties['color'] = null; + goto after_color; + } + + $properties['color'] = $value; + + after_color: + + $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['is_enabled'] ?? null; + + if ($value === null) { + $properties['isEnabled'] = null; + goto after_isEnabled; + } + + $properties['isEnabled'] = $value; + + after_isEnabled: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\IssueType', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(IssueType::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new IssueType(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\IssueType', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repository(array $payload): Repository { $properties = []; @@ -3030,6 +3159,7 @@ public function serializeObjectOfType(object $object, string $className): mixed '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\IssueType' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType($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), @@ -3286,6 +3416,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_timelineUrl: $result['timeline_url'] = $timelineUrl; + $type = $object->type; + + if ($type === null) { + goto after_type; + } + + $type = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType($type); + after_type: $result['type'] = $type; + $repository = $object->repository; if ($repository === null) { @@ -3552,6 +3691,63 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType(mixed $object): mixed + { + assert($object instanceof IssueType); + $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; + + $description = $object->description; + + if ($description === null) { + goto after_description; + } + + after_description: $result['description'] = $description; + + $color = $object->color; + + if ($color === null) { + goto after_color; + } + + after_color: $result['color'] = $color; + + $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; + + $isEnabled = $object->isEnabled; + + if ($isEnabled === null) { + goto after_isEnabled; + } + + after_isEnabled: $result['is_enabled'] = $isEnabled; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repository(mixed $object): mixed { assert($object instanceof Repository); diff --git a/clients/GitHub/src/Internal/Hydrator/WebHook/IssueComment.php b/clients/GitHub/src/Internal/Hydrator/WebHook/IssueComment.php index a397382f809..ac6eb0a1bc8 100644 --- a/clients/GitHub/src/Internal/Hydrator/WebHook/IssueComment.php +++ b/clients/GitHub/src/Internal/Hydrator/WebHook/IssueComment.php @@ -8,6 +8,7 @@ use ApiClients\Client\GitHub\Schema\EnterpriseWebhooks; use ApiClients\Client\GitHub\Schema\Integration; use ApiClients\Client\GitHub\Schema\Integration\Permissions; +use ApiClients\Client\GitHub\Schema\IssueType; use ApiClients\Client\GitHub\Schema\LicenseSimple; use ApiClients\Client\GitHub\Schema\OrganizationSimpleWebhooks; use ApiClients\Client\GitHub\Schema\RepositoryWebhooks; @@ -84,6 +85,7 @@ public function hydrateObject(string $className, array $payload): object '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\IssueType' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType($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), @@ -1716,6 +1718,26 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh after_title: + $value = $payload['type'] ?? null; + + if ($value === null) { + $properties['type'] = null; + goto after_type; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'type'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['type'] = $value; + + after_type: + $value = $payload['updated_at'] ?? null; if ($value === null) { @@ -3587,6 +3609,113 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh } } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType(array $payload): IssueType + { + $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['description'] ?? null; + + if ($value === null) { + $properties['description'] = null; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['color'] ?? null; + + if ($value === null) { + $properties['color'] = null; + goto after_color; + } + + $properties['color'] = $value; + + after_color: + + $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['is_enabled'] ?? null; + + if ($value === null) { + $properties['isEnabled'] = null; + goto after_isEnabled; + } + + $properties['isEnabled'] = $value; + + after_isEnabled: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\IssueType', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(IssueType::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new IssueType(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\IssueType', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssueCommentCreated⚡️Issue⚡️User(array $payload): \ApiClients\Client\GitHub\Schema\WebhookIssueCommentCreated\Issue\User { $properties = []; @@ -7982,6 +8111,26 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh after_title: + $value = $payload['type'] ?? null; + + if ($value === null) { + $properties['type'] = null; + goto after_type; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'type'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['type'] = $value; + + after_type: + $value = $payload['updated_at'] ?? null; if ($value === null) { @@ -10740,6 +10889,26 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh after_title: + $value = $payload['type'] ?? null; + + if ($value === null) { + $properties['type'] = null; + goto after_type; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'type'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['type'] = $value; + + after_type: + $value = $payload['updated_at'] ?? null; if ($value === null) { @@ -15682,6 +15851,7 @@ public function serializeObjectOfType(object $object, string $className): mixed '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\IssueType' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType($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), @@ -16510,6 +16680,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema $title = $object->title; after_title: $result['title'] = $title; + $type = $object->type; + + if ($type === null) { + goto after_type; + } + + $type = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType($type); + after_type: $result['type'] = $type; + $updatedAt = $object->updatedAt; after_updatedAt: $result['updated_at'] = $updatedAt; @@ -17616,6 +17795,63 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType(mixed $object): mixed + { + assert($object instanceof IssueType); + $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; + + $description = $object->description; + + if ($description === null) { + goto after_description; + } + + after_description: $result['description'] = $description; + + $color = $object->color; + + if ($color === null) { + goto after_color; + } + + after_color: $result['color'] = $color; + + $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; + + $isEnabled = $object->isEnabled; + + if ($isEnabled === null) { + goto after_isEnabled; + } + + after_isEnabled: $result['is_enabled'] = $isEnabled; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssueCommentCreated⚡️Issue⚡️User(mixed $object): mixed { assert($object instanceof \ApiClients\Client\GitHub\Schema\WebhookIssueCommentCreated\Issue\User); @@ -19923,6 +20159,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema $title = $object->title; after_title: $result['title'] = $title; + $type = $object->type; + + if ($type === null) { + goto after_type; + } + + $type = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType($type); + after_type: $result['type'] = $type; + $updatedAt = $object->updatedAt; after_updatedAt: $result['updated_at'] = $updatedAt; @@ -21468,6 +21713,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema $title = $object->title; after_title: $result['title'] = $title; + $type = $object->type; + + if ($type === null) { + goto after_type; + } + + $type = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType($type); + after_type: $result['type'] = $type; + $updatedAt = $object->updatedAt; after_updatedAt: $result['updated_at'] = $updatedAt; diff --git a/clients/GitHub/src/Internal/Hydrator/WebHook/Issues.php b/clients/GitHub/src/Internal/Hydrator/WebHook/Issues.php index 96ef32f6a90..2628c90068d 100644 --- a/clients/GitHub/src/Internal/Hydrator/WebHook/Issues.php +++ b/clients/GitHub/src/Internal/Hydrator/WebHook/Issues.php @@ -5,6 +5,7 @@ namespace ApiClients\Client\GitHub\Internal\Hydrator\WebHook; use ApiClients\Client\GitHub\Schema\EnterpriseWebhooks; +use ApiClients\Client\GitHub\Schema\IssueType; use ApiClients\Client\GitHub\Schema\LicenseSimple; use ApiClients\Client\GitHub\Schema\OrganizationSimpleWebhooks; use ApiClients\Client\GitHub\Schema\RepositoryWebhooks; @@ -102,6 +103,7 @@ public function hydrateObject(string $className, array $payload): object '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\IssueType' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType($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), @@ -1261,6 +1263,26 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh after_title: + $value = $payload['type'] ?? null; + + if ($value === null) { + $properties['type'] = null; + goto after_type; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'type'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['type'] = $value; + + after_type: + $value = $payload['updated_at'] ?? null; if ($value === null) { @@ -3132,6 +3154,113 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh } } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType(array $payload): IssueType + { + $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['description'] ?? null; + + if ($value === null) { + $properties['description'] = null; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['color'] ?? null; + + if ($value === null) { + $properties['color'] = null; + goto after_color; + } + + $properties['color'] = $value; + + after_color: + + $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['is_enabled'] ?? null; + + if ($value === null) { + $properties['isEnabled'] = null; + goto after_isEnabled; + } + + $properties['isEnabled'] = $value; + + after_isEnabled: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\IssueType', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(IssueType::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new IssueType(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\IssueType', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksIssue⚡️User(array $payload): User { $properties = []; @@ -6939,6 +7068,26 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh after_title: + $value = $payload['type'] ?? null; + + if ($value === null) { + $properties['type'] = null; + goto after_type; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'type'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['type'] = $value; + + after_type: + $value = $payload['updated_at'] ?? null; if ($value === null) { @@ -9588,6 +9737,26 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh after_title: + $value = $payload['type'] ?? null; + + if ($value === null) { + $properties['type'] = null; + goto after_type; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'type'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['type'] = $value; + + after_type: + $value = $payload['updated_at'] ?? null; if ($value === null) { @@ -12257,6 +12426,26 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh after_title: + $value = $payload['type'] ?? null; + + if ($value === null) { + $properties['type'] = null; + goto after_type; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'type'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['type'] = $value; + + after_type: + $value = $payload['updated_at'] ?? null; if ($value === null) { @@ -15508,6 +15697,26 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh after_timelineUrl: + $value = $payload['type'] ?? null; + + if ($value === null) { + $properties['type'] = null; + goto after_type; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'type'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['type'] = $value; + + after_type: + $value = $payload['title'] ?? null; if ($value === null) { @@ -18273,6 +18482,26 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh after_timelineUrl: + $value = $payload['type'] ?? null; + + if ($value === null) { + $properties['type'] = null; + goto after_type; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'type'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['type'] = $value; + + after_type: + $value = $payload['title'] ?? null; if ($value === null) { @@ -20922,6 +21151,26 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh after_timelineUrl: + $value = $payload['type'] ?? null; + + if ($value === null) { + $properties['type'] = null; + goto after_type; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'type'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['type'] = $value; + + after_type: + $value = $payload['title'] ?? null; if ($value === null) { @@ -23602,6 +23851,26 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh after_title: + $value = $payload['type'] ?? null; + + if ($value === null) { + $properties['type'] = null; + goto after_type; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'type'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['type'] = $value; + + after_type: + $value = $payload['updated_at'] ?? null; if ($value === null) { @@ -30294,6 +30563,26 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh after_title: + $value = $payload['type'] ?? null; + + if ($value === null) { + $properties['type'] = null; + goto after_type; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'type'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['type'] = $value; + + after_type: + $value = $payload['updated_at'] ?? null; if ($value === null) { @@ -32943,6 +33232,26 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh after_title: + $value = $payload['type'] ?? null; + + if ($value === null) { + $properties['type'] = null; + goto after_type; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'type'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['type'] = $value; + + after_type: + $value = $payload['updated_at'] ?? null; if ($value === null) { @@ -35633,6 +35942,26 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh $properties['user'] = $value; after_user: + + $value = $payload['type'] ?? null; + + if ($value === null) { + $properties['type'] = null; + goto after_type; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'type'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['type'] = $value; + + after_type: } catch (Throwable $exception) { throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\WebhookIssuesReopened\Issue', $exception, stack: $this->hydrationStack); } @@ -38309,6 +38638,26 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh after_title: + $value = $payload['type'] ?? null; + + if ($value === null) { + $properties['type'] = null; + goto after_type; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'type'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['type'] = $value; + + after_type: + $value = $payload['updated_at'] ?? null; if ($value === null) { @@ -43035,6 +43384,26 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh after_title: + $value = $payload['type'] ?? null; + + if ($value === null) { + $properties['type'] = null; + goto after_type; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'type'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['type'] = $value; + + after_type: + $value = $payload['updated_at'] ?? null; if ($value === null) { @@ -45422,6 +45791,7 @@ public function serializeObjectOfType(object $object, string $className): mixed '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\IssueType' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType($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), @@ -46152,6 +46522,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema $title = $object->title; after_title: $result['title'] = $title; + $type = $object->type; + + if ($type === null) { + goto after_type; + } + + $type = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType($type); + after_type: $result['type'] = $type; + $updatedAt = $object->updatedAt; after_updatedAt: $result['updated_at'] = $updatedAt; @@ -47258,6 +47637,63 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType(mixed $object): mixed + { + assert($object instanceof IssueType); + $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; + + $description = $object->description; + + if ($description === null) { + goto after_description; + } + + after_description: $result['description'] = $description; + + $color = $object->color; + + if ($color === null) { + goto after_color; + } + + after_color: $result['color'] = $color; + + $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; + + $isEnabled = $object->isEnabled; + + if ($isEnabled === null) { + goto after_isEnabled; + } + + after_isEnabled: $result['is_enabled'] = $isEnabled; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhooksIssue⚡️User(mixed $object): mixed { assert($object instanceof User); @@ -49292,6 +49728,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema $title = $object->title; after_title: $result['title'] = $title; + $type = $object->type; + + if ($type === null) { + goto after_type; + } + + $type = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType($type); + after_type: $result['type'] = $type; + $updatedAt = $object->updatedAt; after_updatedAt: $result['updated_at'] = $updatedAt; @@ -50801,6 +51246,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema $title = $object->title; after_title: $result['title'] = $title; + $type = $object->type; + + if ($type === null) { + goto after_type; + } + + $type = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType($type); + after_type: $result['type'] = $type; + $updatedAt = $object->updatedAt; after_updatedAt: $result['updated_at'] = $updatedAt; @@ -52319,6 +52773,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema $title = $object->title; after_title: $result['title'] = $title; + $type = $object->type; + + if ($type === null) { + goto after_type; + } + + $type = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType($type); + after_type: $result['type'] = $type; + $updatedAt = $object->updatedAt; after_updatedAt: $result['updated_at'] = $updatedAt; @@ -54129,6 +54592,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_timelineUrl: $result['timeline_url'] = $timelineUrl; + $type = $object->type; + + if ($type === null) { + goto after_type; + } + + $type = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType($type); + after_type: $result['type'] = $type; + $title = $object->title; after_title: $result['title'] = $title; @@ -55681,6 +56153,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_timelineUrl: $result['timeline_url'] = $timelineUrl; + $type = $object->type; + + if ($type === null) { + goto after_type; + } + + $type = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType($type); + after_type: $result['type'] = $type; + $title = $object->title; after_title: $result['title'] = $title; @@ -57185,6 +57666,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_timelineUrl: $result['timeline_url'] = $timelineUrl; + $type = $object->type; + + if ($type === null) { + goto after_type; + } + + $type = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType($type); + after_type: $result['type'] = $type; + $title = $object->title; after_title: $result['title'] = $title; @@ -58701,6 +59191,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema $title = $object->title; after_title: $result['title'] = $title; + $type = $object->type; + + if ($type === null) { + goto after_type; + } + + $type = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType($type); + after_type: $result['type'] = $type; + $updatedAt = $object->updatedAt; after_updatedAt: $result['updated_at'] = $updatedAt; @@ -62341,6 +62840,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema $title = $object->title; after_title: $result['title'] = $title; + $type = $object->type; + + if ($type === null) { + goto after_type; + } + + $type = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType($type); + after_type: $result['type'] = $type; + $updatedAt = $object->updatedAt; after_updatedAt: $result['updated_at'] = $updatedAt; @@ -63850,6 +64358,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema $title = $object->title; after_title: $result['title'] = $title; + $type = $object->type; + + if ($type === null) { + goto after_type; + } + + $type = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType($type); + after_type: $result['type'] = $type; + $updatedAt = $object->updatedAt; after_updatedAt: $result['updated_at'] = $updatedAt; @@ -65369,6 +65886,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema $user = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookIssuesReopened⚡️Issue⚡️User($user); after_user: $result['user'] = $user; + $type = $object->type; + + if ($type === null) { + goto after_type; + } + + $type = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType($type); + after_type: $result['type'] = $type; + return $result; } @@ -66875,6 +67401,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema $title = $object->title; after_title: $result['title'] = $title; + $type = $object->type; + + if ($type === null) { + goto after_type; + } + + $type = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType($type); + after_type: $result['type'] = $type; + $updatedAt = $object->updatedAt; after_updatedAt: $result['updated_at'] = $updatedAt; @@ -69316,6 +69851,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema $title = $object->title; after_title: $result['title'] = $title; + $type = $object->type; + + if ($type === null) { + goto after_type; + } + + $type = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType($type); + after_type: $result['type'] = $type; + $updatedAt = $object->updatedAt; after_updatedAt: $result['updated_at'] = $updatedAt; diff --git a/clients/GitHub/src/Internal/Hydrator/WebHook/SubIssues.php b/clients/GitHub/src/Internal/Hydrator/WebHook/SubIssues.php index 21aac4778d5..f89d969cd66 100644 --- a/clients/GitHub/src/Internal/Hydrator/WebHook/SubIssues.php +++ b/clients/GitHub/src/Internal/Hydrator/WebHook/SubIssues.php @@ -8,6 +8,7 @@ use ApiClients\Client\GitHub\Schema\Integration; use ApiClients\Client\GitHub\Schema\Issue; use ApiClients\Client\GitHub\Schema\Issue\PullRequest; +use ApiClients\Client\GitHub\Schema\IssueType; use ApiClients\Client\GitHub\Schema\LicenseSimple; use ApiClients\Client\GitHub\Schema\Milestone; use ApiClients\Client\GitHub\Schema\OrganizationSimpleWebhooks; @@ -64,6 +65,7 @@ public function hydrateObject(string $className, array $payload): object '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\IssueType' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType($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), @@ -658,6 +660,26 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Issu after_timelineUrl: + $value = $payload['type'] ?? null; + + if ($value === null) { + $properties['type'] = null; + goto after_type; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'type'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['type'] = $value; + + after_type: + $value = $payload['repository'] ?? null; if ($value === null) { @@ -1302,6 +1324,113 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Issu } } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType(array $payload): IssueType + { + $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['description'] ?? null; + + if ($value === null) { + $properties['description'] = null; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['color'] ?? null; + + if ($value === null) { + $properties['color'] = null; + goto after_color; + } + + $properties['color'] = $value; + + after_color: + + $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['is_enabled'] ?? null; + + if ($value === null) { + $properties['isEnabled'] = null; + goto after_isEnabled; + } + + $properties['isEnabled'] = $value; + + after_isEnabled: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\IssueType', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(IssueType::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new IssueType(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\IssueType', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repository(array $payload): Repository { $properties = []; @@ -6391,6 +6520,7 @@ public function serializeObjectOfType(object $object, string $className): mixed '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\IssueType' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType($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), @@ -6719,6 +6849,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_timelineUrl: $result['timeline_url'] = $timelineUrl; + $type = $object->type; + + if ($type === null) { + goto after_type; + } + + $type = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType($type); + after_type: $result['type'] = $type; + $repository = $object->repository; if ($repository === null) { @@ -6985,6 +7124,63 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️IssueType(mixed $object): mixed + { + assert($object instanceof IssueType); + $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; + + $description = $object->description; + + if ($description === null) { + goto after_description; + } + + after_description: $result['description'] = $description; + + $color = $object->color; + + if ($color === null) { + goto after_color; + } + + after_color: $result['color'] = $color; + + $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; + + $isEnabled = $object->isEnabled; + + if ($isEnabled === null) { + goto after_isEnabled; + } + + after_isEnabled: $result['is_enabled'] = $isEnabled; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Repository(mixed $object): mixed { assert($object instanceof Repository); diff --git a/clients/GitHub/src/Internal/Hydrators.php b/clients/GitHub/src/Internal/Hydrators.php index 67f8f26fb31..2e73d035e07 100644 --- a/clients/GitHub/src/Internal/Hydrators.php +++ b/clients/GitHub/src/Internal/Hydrators.php @@ -177,6 +177,8 @@ final class Hydrators implements ObjectMapper private Internal\Hydrator\Operation\Orgs\Org\Invitations|null $operation🌀Orgs🌀Org🌀Invitations = null; private Internal\Hydrator\Operation\Orgs\Org\Invitations\InvitationId|null $operation🌀Orgs🌀Org🌀Invitations🌀InvitationId = null; private Internal\Hydrator\Operation\Orgs\Org\Invitations\InvitationId\Teams|null $operation🌀Orgs🌀Org🌀Invitations🌀InvitationId🌀Teams = null; + private Internal\Hydrator\Operation\Orgs\Org\IssueTypes|null $operation🌀Orgs🌀Org🌀IssueTypes = null; + private Internal\Hydrator\Operation\Orgs\Org\IssueTypes\IssueTypeId|null $operation🌀Orgs🌀Org🌀IssueTypes🌀IssueTypeId = null; private Internal\Hydrator\Operation\Orgs\Org\Issues|null $operation🌀Orgs🌀Org🌀Issues = null; private Internal\Hydrator\Operation\Orgs\Org\Members|null $operation🌀Orgs🌀Org🌀Members = null; private Internal\Hydrator\Operation\Orgs\Org\Members\Username|null $operation🌀Orgs🌀Org🌀Members🌀Username = null; @@ -850,6 +852,7 @@ public function hydrateObject(string $className, array $payload): object '\\ApiClients\\Client\\GitHub\\Schema\\Operations\\Orgs\\ListAppInstallations\\Response\\ApplicationJson\\Ok' => $this->getObjectMapperOperation🌀Orgs🌀Org🌀Installations()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHub\\Schema\\InteractionLimitResponse' => $this->getObjectMapperOperation🌀Orgs🌀Org🌀InteractionLimits()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHub\\Schema\\OrganizationInvitation' => $this->getObjectMapperOperation🌀Orgs🌀Org🌀Invitations()->hydrateObject($className, $payload), + '\\ApiClients\\Client\\GitHub\\Schema\\IssueType' => $this->getObjectMapperOperation🌀Orgs🌀Org🌀IssueTypes()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHub\\Schema\\Operations\\Codespaces\\GetCodespacesForUserInOrg\\Response\\ApplicationJson\\Ok\\Application\\Json' => $this->getObjectMapperOperation🌀Orgs🌀Org🌀Members🌀Username🌀Codespaces()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHub\\Schema\\Operations\\Codespaces\\DeleteFromOrganization\\Response\\ApplicationJson\\Accepted\\Application\\Json' => $this->getObjectMapperOperation🌀Orgs🌀Org🌀Members🌀Username🌀Codespaces🌀CodespaceName()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHub\\Schema\\Codespace', '\\ApiClients\\Client\\GitHub\\Schema\\CodespaceMachine', '\\ApiClients\\Client\\GitHub\\Schema\\Codespace\\GitStatus', '\\ApiClients\\Client\\GitHub\\Schema\\Codespace\\RuntimeConstraints' => $this->getObjectMapperOperation🌀Orgs🌀Org🌀Members🌀Username🌀Codespaces🌀CodespaceName🌀Stop()->hydrateObject($className, $payload), @@ -1228,6 +1231,7 @@ public function serializeObjectOfType(object $object, string $className): mixed '\\ApiClients\\Client\\GitHub\\Schema\\Operations\\Orgs\\ListAppInstallations\\Response\\ApplicationJson\\Ok' => $this->getObjectMapperOperation🌀Orgs🌀Org🌀Installations()->serializeObject($object), '\\ApiClients\\Client\\GitHub\\Schema\\InteractionLimitResponse' => $this->getObjectMapperOperation🌀Orgs🌀Org🌀InteractionLimits()->serializeObject($object), '\\ApiClients\\Client\\GitHub\\Schema\\OrganizationInvitation' => $this->getObjectMapperOperation🌀Orgs🌀Org🌀Invitations()->serializeObject($object), + '\\ApiClients\\Client\\GitHub\\Schema\\IssueType' => $this->getObjectMapperOperation🌀Orgs🌀Org🌀IssueTypes()->serializeObject($object), '\\ApiClients\\Client\\GitHub\\Schema\\Operations\\Codespaces\\GetCodespacesForUserInOrg\\Response\\ApplicationJson\\Ok\\Application\\Json' => $this->getObjectMapperOperation🌀Orgs🌀Org🌀Members🌀Username🌀Codespaces()->serializeObject($object), '\\ApiClients\\Client\\GitHub\\Schema\\Operations\\Codespaces\\DeleteFromOrganization\\Response\\ApplicationJson\\Accepted\\Application\\Json' => $this->getObjectMapperOperation🌀Orgs🌀Org🌀Members🌀Username🌀Codespaces🌀CodespaceName()->serializeObject($object), '\\ApiClients\\Client\\GitHub\\Schema\\Codespace', '\\ApiClients\\Client\\GitHub\\Schema\\CodespaceMachine', '\\ApiClients\\Client\\GitHub\\Schema\\Codespace\\GitStatus', '\\ApiClients\\Client\\GitHub\\Schema\\Codespace\\RuntimeConstraints' => $this->getObjectMapperOperation🌀Orgs🌀Org🌀Members🌀Username🌀Codespaces🌀CodespaceName🌀Stop()->serializeObject($object), @@ -3008,6 +3012,24 @@ public function getObjectMapperOperation🌀Orgs🌀Org🌀Invitations🌀Invita return $this->operation🌀Orgs🌀Org🌀Invitations🌀InvitationId🌀Teams; } + public function getObjectMapperOperation🌀Orgs🌀Org🌀IssueTypes(): Internal\Hydrator\Operation\Orgs\Org\IssueTypes + { + if ($this->operation🌀Orgs🌀Org🌀IssueTypes instanceof Internal\Hydrator\Operation\Orgs\Org\IssueTypes === false) { + $this->operation🌀Orgs🌀Org🌀IssueTypes = new Internal\Hydrator\Operation\Orgs\Org\IssueTypes(); + } + + return $this->operation🌀Orgs🌀Org🌀IssueTypes; + } + + public function getObjectMapperOperation🌀Orgs🌀Org🌀IssueTypes🌀IssueTypeId(): Internal\Hydrator\Operation\Orgs\Org\IssueTypes\IssueTypeId + { + if ($this->operation🌀Orgs🌀Org🌀IssueTypes🌀IssueTypeId instanceof Internal\Hydrator\Operation\Orgs\Org\IssueTypes\IssueTypeId === false) { + $this->operation🌀Orgs🌀Org🌀IssueTypes🌀IssueTypeId = new Internal\Hydrator\Operation\Orgs\Org\IssueTypes\IssueTypeId(); + } + + return $this->operation🌀Orgs🌀Org🌀IssueTypes🌀IssueTypeId; + } + public function getObjectMapperOperation🌀Orgs🌀Org🌀Issues(): Internal\Hydrator\Operation\Orgs\Org\Issues { if ($this->operation🌀Orgs🌀Org🌀Issues instanceof Internal\Hydrator\Operation\Orgs\Org\Issues === false) { diff --git a/clients/GitHub/src/Internal/Operation/Issues/ListForOrg.php b/clients/GitHub/src/Internal/Operation/Issues/ListForOrg.php index 8e71951e02f..296512d0481 100644 --- a/clients/GitHub/src/Internal/Operation/Issues/ListForOrg.php +++ b/clients/GitHub/src/Internal/Operation/Issues/ListForOrg.php @@ -29,6 +29,8 @@ final class ListForOrg private string $org; /**A list of comma separated label names. Example: `bug,ui,@high` **/ private string $labels; + /**Can be the name of an issue type. **/ + private string $type; /**Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. **/ private string $since; /**Indicates which sorts of issues to return. `assigned` means issues assigned to you. `created` means issues created by you. `mentioned` means issues mentioning you. `subscribed` means issues you're subscribed to updates for. `all` or `repos` means all issues you can see, regardless of participation or creation. **/ @@ -44,10 +46,11 @@ final class ListForOrg /**The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." **/ private int $page; - public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Orgs\Org\Issues $hydrator, string $org, string $labels, string $since, string $filter = 'assigned', string $state = 'open', string $sort = 'created', string $direction = 'desc', int $perPage = 30, int $page = 1) + public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Orgs\Org\Issues $hydrator, string $org, string $labels, string $type, string $since, string $filter = 'assigned', string $state = 'open', string $sort = 'created', string $direction = 'desc', int $perPage = 30, int $page = 1) { $this->org = $org; $this->labels = $labels; + $this->type = $type; $this->since = $since; $this->filter = $filter; $this->state = $state; @@ -59,7 +62,7 @@ public function __construct(private readonly SchemaValidator $responseSchemaVali public function createRequest(): RequestInterface { - return new Request('GET', str_replace(['{org}', '{labels}', '{since}', '{filter}', '{state}', '{sort}', '{direction}', '{per_page}', '{page}'], [$this->org, $this->labels, $this->since, $this->filter, $this->state, $this->sort, $this->direction, $this->perPage, $this->page], '/orgs/{org}/issues' . '?labels={labels}&since={since}&filter={filter}&state={state}&sort={sort}&direction={direction}&per_page={per_page}&page={page}')); + return new Request('GET', str_replace(['{org}', '{labels}', '{type}', '{since}', '{filter}', '{state}', '{sort}', '{direction}', '{per_page}', '{page}'], [$this->org, $this->labels, $this->type, $this->since, $this->filter, $this->state, $this->sort, $this->direction, $this->perPage, $this->page], '/orgs/{org}/issues' . '?labels={labels}&type={type}&since={since}&filter={filter}&state={state}&sort={sort}&direction={direction}&per_page={per_page}&page={page}')); } /** @return Observable */ diff --git a/clients/GitHub/src/Internal/Operation/Issues/ListForOrgListing.php b/clients/GitHub/src/Internal/Operation/Issues/ListForOrgListing.php index 2aef7fe3261..16a4f532fb6 100644 --- a/clients/GitHub/src/Internal/Operation/Issues/ListForOrgListing.php +++ b/clients/GitHub/src/Internal/Operation/Issues/ListForOrgListing.php @@ -29,6 +29,8 @@ final class ListForOrgListing private string $org; /**A list of comma separated label names. Example: `bug,ui,@high` **/ private string $labels; + /**Can be the name of an issue type. **/ + private string $type; /**Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. **/ private string $since; /**Indicates which sorts of issues to return. `assigned` means issues assigned to you. `created` means issues created by you. `mentioned` means issues mentioning you. `subscribed` means issues you're subscribed to updates for. `all` or `repos` means all issues you can see, regardless of participation or creation. **/ @@ -44,10 +46,11 @@ final class ListForOrgListing /**The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." **/ private int $page; - public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Orgs\Org\Issues $hydrator, string $org, string $labels, string $since, string $filter = 'assigned', string $state = 'open', string $sort = 'created', string $direction = 'desc', int $perPage = 30, int $page = 1) + public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Orgs\Org\Issues $hydrator, string $org, string $labels, string $type, string $since, string $filter = 'assigned', string $state = 'open', string $sort = 'created', string $direction = 'desc', int $perPage = 30, int $page = 1) { $this->org = $org; $this->labels = $labels; + $this->type = $type; $this->since = $since; $this->filter = $filter; $this->state = $state; @@ -59,7 +62,7 @@ public function __construct(private readonly SchemaValidator $responseSchemaVali public function createRequest(): RequestInterface { - return new Request('GET', str_replace(['{org}', '{labels}', '{since}', '{filter}', '{state}', '{sort}', '{direction}', '{per_page}', '{page}'], [$this->org, $this->labels, $this->since, $this->filter, $this->state, $this->sort, $this->direction, $this->perPage, $this->page], '/orgs/{org}/issues' . '?labels={labels}&since={since}&filter={filter}&state={state}&sort={sort}&direction={direction}&per_page={per_page}&page={page}')); + return new Request('GET', str_replace(['{org}', '{labels}', '{type}', '{since}', '{filter}', '{state}', '{sort}', '{direction}', '{per_page}', '{page}'], [$this->org, $this->labels, $this->type, $this->since, $this->filter, $this->state, $this->sort, $this->direction, $this->perPage, $this->page], '/orgs/{org}/issues' . '?labels={labels}&type={type}&since={since}&filter={filter}&state={state}&sort={sort}&direction={direction}&per_page={per_page}&page={page}')); } /** @return Observable */ diff --git a/clients/GitHub/src/Internal/Operation/Issues/ListForRepo.php b/clients/GitHub/src/Internal/Operation/Issues/ListForRepo.php index 4e839ccdc66..f22f852a1ef 100644 --- a/clients/GitHub/src/Internal/Operation/Issues/ListForRepo.php +++ b/clients/GitHub/src/Internal/Operation/Issues/ListForRepo.php @@ -33,6 +33,8 @@ final class ListForRepo private string $milestone; /**Can be the name of a user. Pass in `none` for issues with no assigned user, and `*` for issues assigned to any user. **/ private string $assignee; + /**Can be the name of an issue type. If the string `*` is passed, issues with any type are accepted. If the string `none` is passed, issues without type are returned. **/ + private string $type; /**The user that created the issue. **/ private string $creator; /**A user that's mentioned in the issue. **/ @@ -52,12 +54,13 @@ final class ListForRepo /**The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." **/ private int $page; - public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Repos\Owner\Repo\Issues $hydrator, string $owner, string $repo, string $milestone, string $assignee, string $creator, string $mentioned, string $labels, string $since, string $state = 'open', string $sort = 'created', string $direction = 'desc', int $perPage = 30, int $page = 1) + public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Repos\Owner\Repo\Issues $hydrator, string $owner, string $repo, string $milestone, string $assignee, string $type, string $creator, string $mentioned, string $labels, string $since, string $state = 'open', string $sort = 'created', string $direction = 'desc', int $perPage = 30, int $page = 1) { $this->owner = $owner; $this->repo = $repo; $this->milestone = $milestone; $this->assignee = $assignee; + $this->type = $type; $this->creator = $creator; $this->mentioned = $mentioned; $this->labels = $labels; @@ -71,7 +74,7 @@ public function __construct(private readonly SchemaValidator $responseSchemaVali public function createRequest(): RequestInterface { - return new Request('GET', str_replace(['{owner}', '{repo}', '{milestone}', '{assignee}', '{creator}', '{mentioned}', '{labels}', '{since}', '{state}', '{sort}', '{direction}', '{per_page}', '{page}'], [$this->owner, $this->repo, $this->milestone, $this->assignee, $this->creator, $this->mentioned, $this->labels, $this->since, $this->state, $this->sort, $this->direction, $this->perPage, $this->page], '/repos/{owner}/{repo}/issues' . '?milestone={milestone}&assignee={assignee}&creator={creator}&mentioned={mentioned}&labels={labels}&since={since}&state={state}&sort={sort}&direction={direction}&per_page={per_page}&page={page}')); + return new Request('GET', str_replace(['{owner}', '{repo}', '{milestone}', '{assignee}', '{type}', '{creator}', '{mentioned}', '{labels}', '{since}', '{state}', '{sort}', '{direction}', '{per_page}', '{page}'], [$this->owner, $this->repo, $this->milestone, $this->assignee, $this->type, $this->creator, $this->mentioned, $this->labels, $this->since, $this->state, $this->sort, $this->direction, $this->perPage, $this->page], '/repos/{owner}/{repo}/issues' . '?milestone={milestone}&assignee={assignee}&type={type}&creator={creator}&mentioned={mentioned}&labels={labels}&since={since}&state={state}&sort={sort}&direction={direction}&per_page={per_page}&page={page}')); } /** @return Observable|Schema\BasicError */ diff --git a/clients/GitHub/src/Internal/Operation/Issues/ListForRepoListing.php b/clients/GitHub/src/Internal/Operation/Issues/ListForRepoListing.php index e06e75b5cf3..96f118b5460 100644 --- a/clients/GitHub/src/Internal/Operation/Issues/ListForRepoListing.php +++ b/clients/GitHub/src/Internal/Operation/Issues/ListForRepoListing.php @@ -33,6 +33,8 @@ final class ListForRepoListing private string $milestone; /**Can be the name of a user. Pass in `none` for issues with no assigned user, and `*` for issues assigned to any user. **/ private string $assignee; + /**Can be the name of an issue type. If the string `*` is passed, issues with any type are accepted. If the string `none` is passed, issues without type are returned. **/ + private string $type; /**The user that created the issue. **/ private string $creator; /**A user that's mentioned in the issue. **/ @@ -52,12 +54,13 @@ final class ListForRepoListing /**The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." **/ private int $page; - public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Repos\Owner\Repo\Issues $hydrator, string $owner, string $repo, string $milestone, string $assignee, string $creator, string $mentioned, string $labels, string $since, string $state = 'open', string $sort = 'created', string $direction = 'desc', int $perPage = 30, int $page = 1) + public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Repos\Owner\Repo\Issues $hydrator, string $owner, string $repo, string $milestone, string $assignee, string $type, string $creator, string $mentioned, string $labels, string $since, string $state = 'open', string $sort = 'created', string $direction = 'desc', int $perPage = 30, int $page = 1) { $this->owner = $owner; $this->repo = $repo; $this->milestone = $milestone; $this->assignee = $assignee; + $this->type = $type; $this->creator = $creator; $this->mentioned = $mentioned; $this->labels = $labels; @@ -71,7 +74,7 @@ public function __construct(private readonly SchemaValidator $responseSchemaVali public function createRequest(): RequestInterface { - return new Request('GET', str_replace(['{owner}', '{repo}', '{milestone}', '{assignee}', '{creator}', '{mentioned}', '{labels}', '{since}', '{state}', '{sort}', '{direction}', '{per_page}', '{page}'], [$this->owner, $this->repo, $this->milestone, $this->assignee, $this->creator, $this->mentioned, $this->labels, $this->since, $this->state, $this->sort, $this->direction, $this->perPage, $this->page], '/repos/{owner}/{repo}/issues' . '?milestone={milestone}&assignee={assignee}&creator={creator}&mentioned={mentioned}&labels={labels}&since={since}&state={state}&sort={sort}&direction={direction}&per_page={per_page}&page={page}')); + return new Request('GET', str_replace(['{owner}', '{repo}', '{milestone}', '{assignee}', '{type}', '{creator}', '{mentioned}', '{labels}', '{since}', '{state}', '{sort}', '{direction}', '{per_page}', '{page}'], [$this->owner, $this->repo, $this->milestone, $this->assignee, $this->type, $this->creator, $this->mentioned, $this->labels, $this->since, $this->state, $this->sort, $this->direction, $this->perPage, $this->page], '/repos/{owner}/{repo}/issues' . '?milestone={milestone}&assignee={assignee}&type={type}&creator={creator}&mentioned={mentioned}&labels={labels}&since={since}&state={state}&sort={sort}&direction={direction}&per_page={per_page}&page={page}')); } /** @return Observable|Schema\BasicError */ diff --git a/clients/GitHub/src/Internal/Operation/Orgs/CreateIssueType.php b/clients/GitHub/src/Internal/Operation/Orgs/CreateIssueType.php new file mode 100644 index 00000000000..07bb31176e0 --- /dev/null +++ b/clients/GitHub/src/Internal/Operation/Orgs/CreateIssueType.php @@ -0,0 +1,79 @@ +org = $org; + } + + public function createRequest(array $data): RequestInterface + { + $this->requestSchemaValidator->validate($data, Reader::readFromJson(Schema\OrganizationCreateIssueType::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + return new Request('POST', str_replace(['{org}'], [$this->org], '/orgs/{org}/issue-types'), ['Content-Type' => 'application/json'], json_encode($data)); + } + + public function createResponse(ResponseInterface $response): Schema\IssueType + { + $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\IssueType::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + return $this->hydrator->hydrateObject(Schema\IssueType::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)); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHub/src/Internal/Operation/Orgs/DeleteIssueType.php b/clients/GitHub/src/Internal/Operation/Orgs/DeleteIssueType.php new file mode 100644 index 00000000000..f3926633110 --- /dev/null +++ b/clients/GitHub/src/Internal/Operation/Orgs/DeleteIssueType.php @@ -0,0 +1,80 @@ +org = $org; + $this->issueTypeId = $issueTypeId; + } + + public function createRequest(): RequestInterface + { + return new Request('DELETE', str_replace(['{org}', '{issue_type_id}'], [$this->org, $this->issueTypeId], '/orgs/{org}/issue-types/{issue_type_id}')); + } + + public function createResponse(ResponseInterface $response): WithoutBody + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * 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)); + /** + * 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; + } + + switch ($code) { + /** + * Response + **/ + case 204: + return new WithoutBody(204, []); + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHub/src/Internal/Operation/Orgs/ListIssueTypes.php b/clients/GitHub/src/Internal/Operation/Orgs/ListIssueTypes.php new file mode 100644 index 00000000000..74248eb39a3 --- /dev/null +++ b/clients/GitHub/src/Internal/Operation/Orgs/ListIssueTypes.php @@ -0,0 +1,82 @@ +org = $org; + } + + public function createRequest(): RequestInterface + { + return new Request('GET', str_replace(['{org}'], [$this->org], '/orgs/{org}/issue-types')); + } + + /** @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\IssueType { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\IssueType::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\IssueType::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)); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHub/src/Internal/Operation/Orgs/UpdateIssueType.php b/clients/GitHub/src/Internal/Operation/Orgs/UpdateIssueType.php new file mode 100644 index 00000000000..e754c4b2a9c --- /dev/null +++ b/clients/GitHub/src/Internal/Operation/Orgs/UpdateIssueType.php @@ -0,0 +1,82 @@ +org = $org; + $this->issueTypeId = $issueTypeId; + } + + public function createRequest(array $data): RequestInterface + { + $this->requestSchemaValidator->validate($data, Reader::readFromJson(Schema\OrganizationUpdateIssueType::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + return new Request('PUT', str_replace(['{org}', '{issue_type_id}'], [$this->org, $this->issueTypeId], '/orgs/{org}/issue-types/{issue_type_id}'), ['Content-Type' => 'application/json'], json_encode($data)); + } + + public function createResponse(ResponseInterface $response): Schema\IssueType + { + $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\IssueType::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + return $this->hydrator->hydrateObject(Schema\IssueType::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)); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHub/src/Internal/Operator/Issues/ListForOrg.php b/clients/GitHub/src/Internal/Operator/Issues/ListForOrg.php index 9daabe34e51..520072547d7 100644 --- a/clients/GitHub/src/Internal/Operator/Issues/ListForOrg.php +++ b/clients/GitHub/src/Internal/Operator/Issues/ListForOrg.php @@ -24,10 +24,10 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return Observable */ - public function call(string $org, string $labels, string $since, string $filter = 'assigned', string $state = 'open', string $sort = 'created', string $direction = 'desc', int $perPage = 30, int $page = 1): iterable + /** @return iterable */ + public function call(string $org, string $labels, string $type, string $since, string $filter = 'assigned', string $state = 'open', string $sort = 'created', string $direction = 'desc', int $perPage = 30, int $page = 1): iterable { - $operation = new \ApiClients\Client\GitHub\Internal\Operation\Issues\ListForOrg($this->responseSchemaValidator, $this->hydrator, $org, $labels, $since, $filter, $state, $sort, $direction, $perPage, $page); + $operation = new \ApiClients\Client\GitHub\Internal\Operation\Issues\ListForOrg($this->responseSchemaValidator, $this->hydrator, $org, $labels, $type, $since, $filter, $state, $sort, $direction, $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); diff --git a/clients/GitHub/src/Internal/Operator/Issues/ListForOrgListing.php b/clients/GitHub/src/Internal/Operator/Issues/ListForOrgListing.php index eef343389ef..6a66921fb3c 100644 --- a/clients/GitHub/src/Internal/Operator/Issues/ListForOrgListing.php +++ b/clients/GitHub/src/Internal/Operator/Issues/ListForOrgListing.php @@ -24,10 +24,10 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return Observable */ - public function call(string $org, string $labels, string $since, string $filter = 'assigned', string $state = 'open', string $sort = 'created', string $direction = 'desc', int $perPage = 30, int $page = 1): iterable + /** @return iterable */ + public function call(string $org, string $labels, string $type, string $since, string $filter = 'assigned', string $state = 'open', string $sort = 'created', string $direction = 'desc', int $perPage = 30, int $page = 1): iterable { - $operation = new \ApiClients\Client\GitHub\Internal\Operation\Issues\ListForOrgListing($this->responseSchemaValidator, $this->hydrator, $org, $labels, $since, $filter, $state, $sort, $direction, $perPage, $page); + $operation = new \ApiClients\Client\GitHub\Internal\Operation\Issues\ListForOrgListing($this->responseSchemaValidator, $this->hydrator, $org, $labels, $type, $since, $filter, $state, $sort, $direction, $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); diff --git a/clients/GitHub/src/Internal/Operator/Issues/ListForRepo.php b/clients/GitHub/src/Internal/Operator/Issues/ListForRepo.php index 6366b7f4f39..de02538b6b8 100644 --- a/clients/GitHub/src/Internal/Operator/Issues/ListForRepo.php +++ b/clients/GitHub/src/Internal/Operator/Issues/ListForRepo.php @@ -25,10 +25,10 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return Observable|Schema\BasicError */ - public function call(string $owner, string $repo, string $milestone, string $assignee, string $creator, string $mentioned, string $labels, string $since, string $state = 'open', string $sort = 'created', string $direction = 'desc', int $perPage = 30, int $page = 1): iterable|BasicError + /** @return iterable|Schema\BasicError */ + public function call(string $owner, string $repo, string $milestone, string $assignee, string $type, string $creator, string $mentioned, string $labels, string $since, string $state = 'open', string $sort = 'created', string $direction = 'desc', int $perPage = 30, int $page = 1): iterable|BasicError { - $operation = new \ApiClients\Client\GitHub\Internal\Operation\Issues\ListForRepo($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $milestone, $assignee, $creator, $mentioned, $labels, $since, $state, $sort, $direction, $perPage, $page); + $operation = new \ApiClients\Client\GitHub\Internal\Operation\Issues\ListForRepo($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $milestone, $assignee, $type, $creator, $mentioned, $labels, $since, $state, $sort, $direction, $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|BasicError { return $operation->createResponse($response); diff --git a/clients/GitHub/src/Internal/Operator/Issues/ListForRepoListing.php b/clients/GitHub/src/Internal/Operator/Issues/ListForRepoListing.php index f93b1a3dadd..e23c0e2f89f 100644 --- a/clients/GitHub/src/Internal/Operator/Issues/ListForRepoListing.php +++ b/clients/GitHub/src/Internal/Operator/Issues/ListForRepoListing.php @@ -25,10 +25,10 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return Observable|Schema\BasicError */ - public function call(string $owner, string $repo, string $milestone, string $assignee, string $creator, string $mentioned, string $labels, string $since, string $state = 'open', string $sort = 'created', string $direction = 'desc', int $perPage = 30, int $page = 1): iterable|BasicError + /** @return iterable|Schema\BasicError */ + public function call(string $owner, string $repo, string $milestone, string $assignee, string $type, string $creator, string $mentioned, string $labels, string $since, string $state = 'open', string $sort = 'created', string $direction = 'desc', int $perPage = 30, int $page = 1): iterable|BasicError { - $operation = new \ApiClients\Client\GitHub\Internal\Operation\Issues\ListForRepoListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $milestone, $assignee, $creator, $mentioned, $labels, $since, $state, $sort, $direction, $perPage, $page); + $operation = new \ApiClients\Client\GitHub\Internal\Operation\Issues\ListForRepoListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $milestone, $assignee, $type, $creator, $mentioned, $labels, $since, $state, $sort, $direction, $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|BasicError { return $operation->createResponse($response); diff --git a/clients/GitHub/src/Internal/Operator/Orgs/CreateIssueType.php b/clients/GitHub/src/Internal/Operator/Orgs/CreateIssueType.php new file mode 100644 index 00000000000..843afb4824f --- /dev/null +++ b/clients/GitHub/src/Internal/Operator/Orgs/CreateIssueType.php @@ -0,0 +1,40 @@ +requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $org); + $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): IssueType { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHub/src/Internal/Operator/Orgs/DeleteIssueType.php b/clients/GitHub/src/Internal/Operator/Orgs/DeleteIssueType.php new file mode 100644 index 00000000000..78c9f72623f --- /dev/null +++ b/clients/GitHub/src/Internal/Operator/Orgs/DeleteIssueType.php @@ -0,0 +1,40 @@ +responseSchemaValidator, $this->hydrator, $org, $issueTypeId); + $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): WithoutBody { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHub/src/Internal/Operator/Orgs/ListIssueTypes.php b/clients/GitHub/src/Internal/Operator/Orgs/ListIssueTypes.php new file mode 100644 index 00000000000..f31601f4c45 --- /dev/null +++ b/clients/GitHub/src/Internal/Operator/Orgs/ListIssueTypes.php @@ -0,0 +1,41 @@ + */ + public function call(string $org): iterable + { + $operation = new \ApiClients\Client\GitHub\Internal\Operation\Orgs\ListIssueTypes($this->responseSchemaValidator, $this->hydrator, $org); + $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/Orgs/UpdateIssueType.php b/clients/GitHub/src/Internal/Operator/Orgs/UpdateIssueType.php new file mode 100644 index 00000000000..5bb008fcec5 --- /dev/null +++ b/clients/GitHub/src/Internal/Operator/Orgs/UpdateIssueType.php @@ -0,0 +1,40 @@ +requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $org, $issueTypeId); + $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): IssueType { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHub/src/Internal/Operators.php b/clients/GitHub/src/Internal/Operators.php index b378b3e7b8e..666f6cba461 100644 --- a/clients/GitHub/src/Internal/Operators.php +++ b/clients/GitHub/src/Internal/Operators.php @@ -285,6 +285,10 @@ final class Operators private Internal\Operator\Orgs\CancelInvitation|null $orgs👷CancelInvitation = null; private Internal\Operator\Orgs\ListInvitationTeams|null $orgs👷ListInvitationTeams = null; private Internal\Operator\Orgs\ListInvitationTeamsListing|null $orgs👷ListInvitationTeamsListing = null; + private Internal\Operator\Orgs\ListIssueTypes|null $orgs👷ListIssueTypes = null; + private Internal\Operator\Orgs\CreateIssueType|null $orgs👷CreateIssueType = null; + private Internal\Operator\Orgs\UpdateIssueType|null $orgs👷UpdateIssueType = null; + private Internal\Operator\Orgs\DeleteIssueType|null $orgs👷DeleteIssueType = null; private Internal\Operator\Issues\ListForOrg|null $issues👷ListForOrg = null; private Internal\Operator\Issues\ListForOrgListing|null $issues👷ListForOrgListing = null; private Internal\Operator\Orgs\ListMembers|null $orgs👷ListMembers = null; @@ -3683,6 +3687,42 @@ public function orgs👷ListInvitationTeamsListing(): Internal\Operator\Orgs\Lis return $this->orgs👷ListInvitationTeamsListing; } + public function orgs👷ListIssueTypes(): Internal\Operator\Orgs\ListIssueTypes + { + if ($this->orgs👷ListIssueTypes instanceof Internal\Operator\Orgs\ListIssueTypes === false) { + $this->orgs👷ListIssueTypes = new Internal\Operator\Orgs\ListIssueTypes($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀IssueTypes()); + } + + return $this->orgs👷ListIssueTypes; + } + + public function orgs👷CreateIssueType(): Internal\Operator\Orgs\CreateIssueType + { + if ($this->orgs👷CreateIssueType instanceof Internal\Operator\Orgs\CreateIssueType === false) { + $this->orgs👷CreateIssueType = new Internal\Operator\Orgs\CreateIssueType($this->browser, $this->authentication, $this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀IssueTypes()); + } + + return $this->orgs👷CreateIssueType; + } + + public function orgs👷UpdateIssueType(): Internal\Operator\Orgs\UpdateIssueType + { + if ($this->orgs👷UpdateIssueType instanceof Internal\Operator\Orgs\UpdateIssueType === false) { + $this->orgs👷UpdateIssueType = new Internal\Operator\Orgs\UpdateIssueType($this->browser, $this->authentication, $this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀IssueTypes🌀IssueTypeId()); + } + + return $this->orgs👷UpdateIssueType; + } + + public function orgs👷DeleteIssueType(): Internal\Operator\Orgs\DeleteIssueType + { + if ($this->orgs👷DeleteIssueType instanceof Internal\Operator\Orgs\DeleteIssueType === false) { + $this->orgs👷DeleteIssueType = new Internal\Operator\Orgs\DeleteIssueType($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀IssueTypes🌀IssueTypeId()); + } + + return $this->orgs👷DeleteIssueType; + } + public function issues👷ListForOrg(): Internal\Operator\Issues\ListForOrg { if ($this->issues👷ListForOrg instanceof Internal\Operator\Issues\ListForOrg === false) { diff --git a/clients/GitHub/src/Internal/Router/Delete/Five.php b/clients/GitHub/src/Internal/Router/Delete/Five.php index e33fb29880c..012196d3f9f 100644 --- a/clients/GitHub/src/Internal/Router/Delete/Five.php +++ b/clients/GitHub/src/Internal/Router/Delete/Five.php @@ -14,6 +14,7 @@ public function __construct(private Routers $routers) { } + /** @return |\ApiClients\Tools\OpenApiClient\Utils\Response\WithoutBody */ public function call(string $call, array $params, array $pathChunks): WithoutBody { if ($pathChunks[0] === '') { @@ -67,6 +68,12 @@ public function call(string $call, array $params, array $pathChunks): WithoutBod return $this->routers->internal🔀Router🔀Delete🔀Orgs()->cancelInvitation($params); } } + } elseif ($pathChunks[3] === 'issue-types') { + if ($pathChunks[4] === '{issue_type_id}') { + if ($call === 'DELETE /orgs/{org}/issue-types/{issue_type_id}') { + return $this->routers->internal🔀Router🔀Delete🔀Orgs()->deleteIssueType($params); + } + } } elseif ($pathChunks[3] === 'members') { if ($pathChunks[4] === '{username}') { if ($call === 'DELETE /orgs/{org}/members/{username}') { diff --git a/clients/GitHub/src/Internal/Router/Delete/Orgs.php b/clients/GitHub/src/Internal/Router/Delete/Orgs.php index f6f76412338..f2fe6bebaba 100644 --- a/clients/GitHub/src/Internal/Router/Delete/Orgs.php +++ b/clients/GitHub/src/Internal/Router/Delete/Orgs.php @@ -83,6 +83,26 @@ public function cancelInvitation(array $params): WithoutBody return $operator->call($arguments['org'], $arguments['invitation_id']); } + public function deleteIssueType(array $params): WithoutBody + { + $arguments = []; + if (array_key_exists('org', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: org'); + } + + $arguments['org'] = $params['org']; + unset($params['org']); + if (array_key_exists('issue_type_id', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: issue_type_id'); + } + + $arguments['issue_type_id'] = $params['issue_type_id']; + unset($params['issue_type_id']); + $operator = new Internal\Operator\Orgs\DeleteIssueType($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀IssueTypes🌀IssueTypeId()); + + return $operator->call($arguments['org'], $arguments['issue_type_id']); + } + /** @return */ public function removeMember(array $params): WithoutBody { diff --git a/clients/GitHub/src/Internal/Router/Get/Five.php b/clients/GitHub/src/Internal/Router/Get/Five.php index ce6e9d9bba2..84f327a919c 100644 --- a/clients/GitHub/src/Internal/Router/Get/Five.php +++ b/clients/GitHub/src/Internal/Router/Get/Five.php @@ -52,7 +52,7 @@ public function __construct(private Routers $routers) { } - /** @return |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|Observable */ + /** @return |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|iterable|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|Ok|ActionsOrganizationPermissions|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelfHostedRunnerGroupsForOrg\Response\ApplicationJson\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|\ApiClients\Client\GitHub\Schema\Operations\PrivateRegistries\GetOrgPublicKey\Response\ApplicationJson\Ok|OrgPrivateRegistryConfiguration|RepositoryRuleset|\ApiClients\Client\GitHub\Schema\Operations\HostedCompute\ListNetworkConfigurationsForOrg\Response\ApplicationJson\Ok|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\Application\Json|EmptyObject { if ($pathChunks[0] === '') { diff --git a/clients/GitHub/src/Internal/Router/Get/Four.php b/clients/GitHub/src/Internal/Router/Get/Four.php index d71ce945fa2..01b5a2d6b3a 100644 --- a/clients/GitHub/src/Internal/Router/Get/Four.php +++ b/clients/GitHub/src/Internal/Router/Get/Four.php @@ -34,7 +34,7 @@ public function __construct(private Routers $routers) { } - /** @return |Observable|Observable|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|Observable|Observable|Observable|Observable|Observable */ + /** @return |Observable|Observable|Observable|Observable|Observable|WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|Observable|iterable|iterable|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): WebhookConfig|iterable|Installation|WithoutBody|GistSimple|GitignoreTemplate|MarketplacePurchase|Thread|Ok|\ApiClients\Client\GitHub\Schema\Operations\Orgs\ListAppInstallations\Response\ApplicationJson\Ok|InteractionLimitResponse|One|\ApiClients\Client\GitHub\Schema\Operations\Orgs\ListOrgRoles\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\PrivateRegistries\ListOrgPrivateRegistries\Response\ApplicationJson\Ok|ProjectColumn|FullRepository|BasicError|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListSecretsForAuthenticatedUser\Response\ApplicationJson\Ok|Codespace|GpgKey|Key|Migration|SshSigningKey|Hovercard|StarredRepository|Repository { if ($pathChunks[0] === '') { @@ -168,6 +168,10 @@ public function call(string $call, array $params, array $pathChunks): WebhookCon if ($call === 'GET /orgs/{org}/invitations') { return $this->routers->internal🔀Router🔀Get🔀Orgs()->listPendingInvitations($params); } + } elseif ($pathChunks[3] === 'issue-types') { + if ($call === 'GET /orgs/{org}/issue-types') { + return $this->routers->internal🔀Router🔀Get🔀Orgs()->listIssueTypes($params); + } } elseif ($pathChunks[3] === 'issues') { if ($call === 'GET /orgs/{org}/issues') { return $this->routers->internal🔀Router🔀Get🔀Issues()->listForOrg($params); diff --git a/clients/GitHub/src/Internal/Router/Get/Issues.php b/clients/GitHub/src/Internal/Router/Get/Issues.php index 6462ce7a2d6..d7703946383 100644 --- a/clients/GitHub/src/Internal/Router/Get/Issues.php +++ b/clients/GitHub/src/Internal/Router/Get/Issues.php @@ -164,7 +164,7 @@ public function listForAuthenticatedUser(array $params): iterable|WithoutBody return $operator->call($arguments['labels'], $arguments['since'], $arguments['filter'], $arguments['state'], $arguments['sort'], $arguments['direction'], $arguments['per_page'], $arguments['page']); } - /** @return Observable */ + /** @return iterable */ public function listForOrg(array $params): iterable { $arguments = []; @@ -180,6 +180,12 @@ public function listForOrg(array $params): iterable $arguments['labels'] = $params['labels']; unset($params['labels']); + if (array_key_exists('type', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: type'); + } + + $arguments['type'] = $params['type']; + unset($params['type']); if (array_key_exists('since', $params) === false) { throw new InvalidArgumentException('Missing mandatory field: since'); } @@ -224,7 +230,7 @@ public function listForOrg(array $params): iterable unset($params['page']); $operator = new Internal\Operator\Issues\ListForOrg($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Issues()); - return $operator->call($arguments['org'], $arguments['labels'], $arguments['since'], $arguments['filter'], $arguments['state'], $arguments['sort'], $arguments['direction'], $arguments['per_page'], $arguments['page']); + return $operator->call($arguments['org'], $arguments['labels'], $arguments['type'], $arguments['since'], $arguments['filter'], $arguments['state'], $arguments['sort'], $arguments['direction'], $arguments['per_page'], $arguments['page']); } /** @return Observable */ @@ -260,7 +266,7 @@ public function listAssignees(array $params): iterable return $operator->call($arguments['owner'], $arguments['repo'], $arguments['per_page'], $arguments['page']); } - /** @return Observable|Schema\BasicError */ + /** @return iterable|Schema\BasicError */ public function listForRepo(array $params): iterable|BasicError { $arguments = []; @@ -288,6 +294,12 @@ public function listForRepo(array $params): iterable|BasicError $arguments['assignee'] = $params['assignee']; unset($params['assignee']); + if (array_key_exists('type', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: type'); + } + + $arguments['type'] = $params['type']; + unset($params['type']); if (array_key_exists('creator', $params) === false) { throw new InvalidArgumentException('Missing mandatory field: creator'); } @@ -344,7 +356,7 @@ public function listForRepo(array $params): iterable|BasicError unset($params['page']); $operator = new Internal\Operator\Issues\ListForRepo($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues()); - return $operator->call($arguments['owner'], $arguments['repo'], $arguments['milestone'], $arguments['assignee'], $arguments['creator'], $arguments['mentioned'], $arguments['labels'], $arguments['since'], $arguments['state'], $arguments['sort'], $arguments['direction'], $arguments['per_page'], $arguments['page']); + return $operator->call($arguments['owner'], $arguments['repo'], $arguments['milestone'], $arguments['assignee'], $arguments['type'], $arguments['creator'], $arguments['mentioned'], $arguments['labels'], $arguments['since'], $arguments['state'], $arguments['sort'], $arguments['direction'], $arguments['per_page'], $arguments['page']); } /** @return Observable */ diff --git a/clients/GitHub/src/Internal/Router/Get/Orgs.php b/clients/GitHub/src/Internal/Router/Get/Orgs.php index 98065731d5e..e73fe71188f 100644 --- a/clients/GitHub/src/Internal/Router/Get/Orgs.php +++ b/clients/GitHub/src/Internal/Router/Get/Orgs.php @@ -233,6 +233,21 @@ public function listPendingInvitations(array $params): iterable return $operator->call($arguments['org'], $arguments['per_page'], $arguments['page'], $arguments['role'], $arguments['invitation_source']); } + /** @return iterable */ + public function listIssueTypes(array $params): iterable + { + $arguments = []; + if (array_key_exists('org', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: org'); + } + + $arguments['org'] = $params['org']; + unset($params['org']); + $operator = new Internal\Operator\Orgs\ListIssueTypes($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀IssueTypes()); + + return $operator->call($arguments['org']); + } + /** @return Observable */ public function listMembers(array $params): iterable { diff --git a/clients/GitHub/src/Internal/Router/List/Five.php b/clients/GitHub/src/Internal/Router/List/Five.php index 8da240fa0c8..5ac79186514 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|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|Observable|Observable */ + /** @return Observable|Observable|Schema\BasicError|WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|iterable|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/Four.php b/clients/GitHub/src/Internal/Router/List/Four.php index 45048521c93..d5268bc55ef 100644 --- a/clients/GitHub/src/Internal/Router/List/Four.php +++ b/clients/GitHub/src/Internal/Router/List/Four.php @@ -15,7 +15,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|Observable|Observable|Observable|Observable */ + /** @return Observable|Observable|Observable|WithoutBody|Observable|Observable|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 */ public function call(string $call, array $params, array $pathChunks): iterable|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 c77cd8ba6c6..1200e179ed0 100644 --- a/clients/GitHub/src/Internal/Router/List/Issues.php +++ b/clients/GitHub/src/Internal/Router/List/Issues.php @@ -85,7 +85,7 @@ public function listForAuthenticatedUserListing(array $params): iterable|Without } while (count($items) > 0); } - /** @return Observable */ + /** @return iterable */ public function listForOrgListing(array $params): iterable { $arguments = []; @@ -101,6 +101,12 @@ public function listForOrgListing(array $params): iterable $arguments['labels'] = $params['labels']; unset($params['labels']); + if (array_key_exists('type', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: type'); + } + + $arguments['type'] = $params['type']; + unset($params['type']); if (array_key_exists('since', $params) === false) { throw new InvalidArgumentException('Missing mandatory field: since'); } @@ -146,7 +152,7 @@ public function listForOrgListing(array $params): iterable $arguments['page'] = 1; do { $operator = new Internal\Operator\Issues\ListForOrgListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Issues()); - $items = [...$operator->call($arguments['org'], $arguments['labels'], $arguments['since'], $arguments['filter'], $arguments['state'], $arguments['sort'], $arguments['direction'], $arguments['per_page'], $arguments['page'])]; + $items = [...$operator->call($arguments['org'], $arguments['labels'], $arguments['type'], $arguments['since'], $arguments['filter'], $arguments['state'], $arguments['sort'], $arguments['direction'], $arguments['per_page'], $arguments['page'])]; yield from $items; @@ -280,7 +286,7 @@ public function listAssigneesListing(array $params): iterable } while (count($items) > 0); } - /** @return Observable|Schema\BasicError */ + /** @return iterable|Schema\BasicError */ public function listForRepoListing(array $params): iterable|BasicError { $arguments = []; @@ -308,6 +314,12 @@ public function listForRepoListing(array $params): iterable|BasicError $arguments['assignee'] = $params['assignee']; unset($params['assignee']); + if (array_key_exists('type', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: type'); + } + + $arguments['type'] = $params['type']; + unset($params['type']); if (array_key_exists('creator', $params) === false) { throw new InvalidArgumentException('Missing mandatory field: creator'); } @@ -365,7 +377,7 @@ public function listForRepoListing(array $params): iterable|BasicError $arguments['page'] = 1; do { $operator = new Internal\Operator\Issues\ListForRepoListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues()); - $items = [...$operator->call($arguments['owner'], $arguments['repo'], $arguments['milestone'], $arguments['assignee'], $arguments['creator'], $arguments['mentioned'], $arguments['labels'], $arguments['since'], $arguments['state'], $arguments['sort'], $arguments['direction'], $arguments['per_page'], $arguments['page'])]; + $items = [...$operator->call($arguments['owner'], $arguments['repo'], $arguments['milestone'], $arguments['assignee'], $arguments['type'], $arguments['creator'], $arguments['mentioned'], $arguments['labels'], $arguments['since'], $arguments['state'], $arguments['sort'], $arguments['direction'], $arguments['per_page'], $arguments['page'])]; yield from $items; diff --git a/clients/GitHub/src/Internal/Router/Post/Four.php b/clients/GitHub/src/Internal/Router/Post/Four.php index cca2723a7a6..daa675b5179 100644 --- a/clients/GitHub/src/Internal/Router/Post/Four.php +++ b/clients/GitHub/src/Internal/Router/Post/Four.php @@ -10,6 +10,7 @@ use ApiClients\Client\GitHub\Schema\FullRepository; use ApiClients\Client\GitHub\Schema\GistComment; use ApiClients\Client\GitHub\Schema\Integration; +use ApiClients\Client\GitHub\Schema\IssueType; use ApiClients\Client\GitHub\Schema\Migration; use ApiClients\Client\GitHub\Schema\Operations\Orgs\ReviewPatGrantRequestsInBulk\Response\ApplicationJson\Accepted\Application\Json; use ApiClients\Client\GitHub\Schema\OrganizationInvitation; @@ -29,7 +30,8 @@ public function __construct(private Routers $routers) { } - public function call(string $call, array $params, array $pathChunks): Integration|Authorization|GistComment|WithoutBody|BaseGist|OrgHook|OrganizationInvitation|Migration|Json|\ApiClients\Client\GitHub\Schema\Operations\Orgs\UpdatePatAccesses\Response\ApplicationJson\Accepted\Application\Json|OrgPrivateRegistryConfigurationWithSelectedRepositories|Project|FullRepository|RepositoryRuleset|TeamFull|ProjectColumn|TeamDiscussion + /** @return |Schema\IssueType */ + public function call(string $call, array $params, array $pathChunks): Integration|Authorization|GistComment|WithoutBody|BaseGist|OrgHook|OrganizationInvitation|IssueType|Migration|Json|\ApiClients\Client\GitHub\Schema\Operations\Orgs\UpdatePatAccesses\Response\ApplicationJson\Accepted\Application\Json|OrgPrivateRegistryConfigurationWithSelectedRepositories|Project|FullRepository|RepositoryRuleset|TeamFull|ProjectColumn|TeamDiscussion { if ($pathChunks[0] === '') { if ($pathChunks[1] === 'app-manifests') { @@ -70,6 +72,10 @@ public function call(string $call, array $params, array $pathChunks): Integratio if ($call === 'POST /orgs/{org}/invitations') { return $this->routers->internal🔀Router🔀Post🔀Orgs()->createInvitation($params); } + } elseif ($pathChunks[3] === 'issue-types') { + if ($call === 'POST /orgs/{org}/issue-types') { + return $this->routers->internal🔀Router🔀Post🔀Orgs()->createIssueType($params); + } } elseif ($pathChunks[3] === 'migrations') { if ($call === 'POST /orgs/{org}/migrations') { return $this->routers->internal🔀Router🔀Post🔀Migrations()->startForOrg($params); diff --git a/clients/GitHub/src/Internal/Router/Post/Orgs.php b/clients/GitHub/src/Internal/Router/Post/Orgs.php index ff0afd058ed..ddc5b9268fe 100644 --- a/clients/GitHub/src/Internal/Router/Post/Orgs.php +++ b/clients/GitHub/src/Internal/Router/Post/Orgs.php @@ -5,6 +5,7 @@ namespace ApiClients\Client\GitHub\Internal\Router\Post; use ApiClients\Client\GitHub\Internal; +use ApiClients\Client\GitHub\Schema\IssueType; use ApiClients\Client\GitHub\Schema\Operations\Orgs\ReviewPatGrantRequestsInBulk\Response\ApplicationJson\Accepted\Application\Json; use ApiClients\Client\GitHub\Schema\OrganizationInvitation; use ApiClients\Client\GitHub\Schema\OrgHook; @@ -52,6 +53,20 @@ public function createInvitation(array $params): OrganizationInvitation return $operator->call($arguments['org'], $params); } + public function createIssueType(array $params): IssueType + { + $arguments = []; + if (array_key_exists('org', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: org'); + } + + $arguments['org'] = $params['org']; + unset($params['org']); + $operator = new Internal\Operator\Orgs\CreateIssueType($this->browser, $this->authentication, $this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀IssueTypes()); + + return $operator->call($arguments['org'], $params); + } + /** @return */ public function reviewPatGrantRequestsInBulk(array $params): Json { diff --git a/clients/GitHub/src/Internal/Router/Put/Five.php b/clients/GitHub/src/Internal/Router/Put/Five.php index 6f2fca7daa7..bc4035be5c6 100644 --- a/clients/GitHub/src/Internal/Router/Put/Five.php +++ b/clients/GitHub/src/Internal/Router/Put/Five.php @@ -8,6 +8,7 @@ use ApiClients\Client\GitHub\Schema\EmptyObject; use ApiClients\Client\GitHub\Schema\Import; use ApiClients\Client\GitHub\Schema\InteractionLimitResponse; +use ApiClients\Client\GitHub\Schema\IssueType; use ApiClients\Client\GitHub\Schema\Operations\Activity\MarkRepoNotificationsAsRead\Response\ApplicationJson\Accepted; use ApiClients\Client\GitHub\Schema\Operations\Orgs\ConvertMemberToOutsideCollaborator\Response\ApplicationJson\Accepted\Application\Json; use ApiClients\Client\GitHub\Schema\OrgMembership; @@ -25,7 +26,8 @@ public function __construct(private Routers $routers) { } - public function call(string $call, array $params, array $pathChunks): WithoutBody|ThreadSubscription|OrgMembership|Json|RepositoryRuleset|Import|InteractionLimitResponse|Accepted|RepositorySubscription|Topic|TeamMembership|EmptyObject + /** @return |Schema\IssueType */ + public function call(string $call, array $params, array $pathChunks): WithoutBody|ThreadSubscription|IssueType|OrgMembership|Json|RepositoryRuleset|Import|InteractionLimitResponse|Accepted|RepositorySubscription|Topic|TeamMembership|EmptyObject { if ($pathChunks[0] === '') { if ($pathChunks[1] === 'app') { @@ -68,6 +70,12 @@ public function call(string $call, array $params, array $pathChunks): WithoutBod return $this->routers->internal🔀Router🔀Put🔀Codespaces()->setCodespacesAccess($params); } } + } elseif ($pathChunks[3] === 'issue-types') { + if ($pathChunks[4] === '{issue_type_id}') { + if ($call === 'PUT /orgs/{org}/issue-types/{issue_type_id}') { + return $this->routers->internal🔀Router🔀Put🔀Orgs()->updateIssueType($params); + } + } } elseif ($pathChunks[3] === 'memberships') { if ($pathChunks[4] === '{username}') { if ($call === 'PUT /orgs/{org}/memberships/{username}') { diff --git a/clients/GitHub/src/Internal/Router/Put/Orgs.php b/clients/GitHub/src/Internal/Router/Put/Orgs.php index 046e1e77af8..d30ccafb114 100644 --- a/clients/GitHub/src/Internal/Router/Put/Orgs.php +++ b/clients/GitHub/src/Internal/Router/Put/Orgs.php @@ -6,6 +6,7 @@ use ApiClients\Client\GitHub\Internal; use ApiClients\Client\GitHub\Schema\CustomProperty; +use ApiClients\Client\GitHub\Schema\IssueType; use ApiClients\Client\GitHub\Schema\Operations\Orgs\ConvertMemberToOutsideCollaborator\Response\ApplicationJson\Accepted\Application\Json; use ApiClients\Client\GitHub\Schema\OrgMembership; use ApiClients\Contracts\HTTP\Headers\AuthenticationInterface; @@ -43,6 +44,26 @@ public function blockUser(array $params): WithoutBody return $operator->call($arguments['org'], $arguments['username']); } + public function updateIssueType(array $params): IssueType + { + $arguments = []; + if (array_key_exists('org', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: org'); + } + + $arguments['org'] = $params['org']; + unset($params['org']); + if (array_key_exists('issue_type_id', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: issue_type_id'); + } + + $arguments['issue_type_id'] = $params['issue_type_id']; + unset($params['issue_type_id']); + $operator = new Internal\Operator\Orgs\UpdateIssueType($this->browser, $this->authentication, $this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀IssueTypes🌀IssueTypeId()); + + return $operator->call($arguments['org'], $arguments['issue_type_id'], $params); + } + /** @return */ public function setMembershipForUser(array $params): OrgMembership { diff --git a/clients/GitHub/src/Operation/Issues.php b/clients/GitHub/src/Operation/Issues.php index 85481627bd7..fa15b3dae4b 100644 --- a/clients/GitHub/src/Operation/Issues.php +++ b/clients/GitHub/src/Operation/Issues.php @@ -32,16 +32,16 @@ public function listListing(string $labels, string $since, bool $collab, bool $o return $this->operators->issues👷ListListing()->call($labels, $since, $collab, $orgs, $owned, $pulls, $filter, $state, $sort, $direction, $perPage, $page); } - /** @return Observable */ - public function listForOrg(string $org, string $labels, string $since, string $filter, string $state, string $sort, string $direction, int $perPage, int $page): iterable + /** @return iterable */ + public function listForOrg(string $org, string $labels, string $type, string $since, string $filter, string $state, string $sort, string $direction, int $perPage, int $page): iterable { - return $this->operators->issues👷ListForOrg()->call($org, $labels, $since, $filter, $state, $sort, $direction, $perPage, $page); + return $this->operators->issues👷ListForOrg()->call($org, $labels, $type, $since, $filter, $state, $sort, $direction, $perPage, $page); } - /** @return Observable */ - public function listForOrgListing(string $org, string $labels, string $since, string $filter, string $state, string $sort, string $direction, int $perPage, int $page): iterable + /** @return iterable */ + public function listForOrgListing(string $org, string $labels, string $type, string $since, string $filter, string $state, string $sort, string $direction, int $perPage, int $page): iterable { - return $this->operators->issues👷ListForOrgListing()->call($org, $labels, $since, $filter, $state, $sort, $direction, $perPage, $page); + return $this->operators->issues👷ListForOrgListing()->call($org, $labels, $type, $since, $filter, $state, $sort, $direction, $perPage, $page); } /** @return Observable */ @@ -62,16 +62,16 @@ public function checkUserCanBeAssigned(string $owner, string $repo, string $assi return $this->operators->issues👷CheckUserCanBeAssigned()->call($owner, $repo, $assignee); } - /** @return Observable|Schema\BasicError */ - public function listForRepo(string $owner, string $repo, string $milestone, string $assignee, string $creator, string $mentioned, string $labels, string $since, string $state, string $sort, string $direction, int $perPage, int $page): iterable|BasicError + /** @return iterable|Schema\BasicError */ + public function listForRepo(string $owner, string $repo, string $milestone, string $assignee, string $type, string $creator, string $mentioned, string $labels, string $since, string $state, string $sort, string $direction, int $perPage, int $page): iterable|BasicError { - return $this->operators->issues👷ListForRepo()->call($owner, $repo, $milestone, $assignee, $creator, $mentioned, $labels, $since, $state, $sort, $direction, $perPage, $page); + return $this->operators->issues👷ListForRepo()->call($owner, $repo, $milestone, $assignee, $type, $creator, $mentioned, $labels, $since, $state, $sort, $direction, $perPage, $page); } - /** @return Observable|Schema\BasicError */ - public function listForRepoListing(string $owner, string $repo, string $milestone, string $assignee, string $creator, string $mentioned, string $labels, string $since, string $state, string $sort, string $direction, int $perPage, int $page): iterable|BasicError + /** @return iterable|Schema\BasicError */ + public function listForRepoListing(string $owner, string $repo, string $milestone, string $assignee, string $type, string $creator, string $mentioned, string $labels, string $since, string $state, string $sort, string $direction, int $perPage, int $page): iterable|BasicError { - return $this->operators->issues👷ListForRepoListing()->call($owner, $repo, $milestone, $assignee, $creator, $mentioned, $labels, $since, $state, $sort, $direction, $perPage, $page); + return $this->operators->issues👷ListForRepoListing()->call($owner, $repo, $milestone, $assignee, $type, $creator, $mentioned, $labels, $since, $state, $sort, $direction, $perPage, $page); } /** @return */ diff --git a/clients/GitHub/src/Operation/Orgs.php b/clients/GitHub/src/Operation/Orgs.php index cc6dcda86bd..ddfd753bc02 100644 --- a/clients/GitHub/src/Operation/Orgs.php +++ b/clients/GitHub/src/Operation/Orgs.php @@ -8,6 +8,7 @@ use ApiClients\Client\GitHub\Schema; use ApiClients\Client\GitHub\Schema\CustomProperty; use ApiClients\Client\GitHub\Schema\HookDelivery; +use ApiClients\Client\GitHub\Schema\IssueType; use ApiClients\Client\GitHub\Schema\Operations\Orgs\Delete\Response\ApplicationJson\Accepted\Application\Json; use ApiClients\Client\GitHub\Schema\Operations\Orgs\ListAttestations\Response\ApplicationJson\Ok; use ApiClients\Client\GitHub\Schema\OrganizationFull; @@ -211,6 +212,27 @@ public function listInvitationTeamsListing(string $org, int $invitationId, int $ return $this->operators->orgs👷ListInvitationTeamsListing()->call($org, $invitationId, $perPage, $page); } + /** @return iterable */ + public function listIssueTypes(string $org): iterable + { + return $this->operators->orgs👷ListIssueTypes()->call($org); + } + + public function createIssueType(string $org, array $params): IssueType + { + return $this->operators->orgs👷CreateIssueType()->call($org, $params); + } + + public function updateIssueType(string $org, int $issueTypeId, array $params): IssueType + { + return $this->operators->orgs👷UpdateIssueType()->call($org, $issueTypeId, $params); + } + + public function deleteIssueType(string $org, int $issueTypeId): WithoutBody + { + return $this->operators->orgs👷DeleteIssueType()->call($org, $issueTypeId); + } + /** @return Observable */ public function listMembers(string $org, string $filter, string $role, int $perPage, int $page): iterable { diff --git a/clients/GitHub/src/PHPStan/ClientCallReturnTypes.php b/clients/GitHub/src/PHPStan/ClientCallReturnTypes.php index 1ce8d6c82ed..33c093b299c 100644 --- a/clients/GitHub/src/PHPStan/ClientCallReturnTypes.php +++ b/clients/GitHub/src/PHPStan/ClientCallReturnTypes.php @@ -1139,12 +1139,28 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method return $this->typeResolver->resolve('Observable'); } + if ($call === 'GET /orgs/{org}/issue-types') { + return $this->typeResolver->resolve('iterable'); + } + + if ($call === 'POST /orgs/{org}/issue-types') { + return $this->typeResolver->resolve('Schema\\IssueType'); + } + + if ($call === 'PUT /orgs/{org}/issue-types/{issue_type_id}') { + return $this->typeResolver->resolve('Schema\\IssueType'); + } + + if ($call === 'DELETE /orgs/{org}/issue-types/{issue_type_id}') { + return $this->typeResolver->resolve('\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody'); + } + if ($call === 'GET /orgs/{org}/issues') { - return $this->typeResolver->resolve('Observable'); + return $this->typeResolver->resolve('iterable'); } if ($call === 'LIST /orgs/{org}/issues') { - return $this->typeResolver->resolve('Observable'); + return $this->typeResolver->resolve('iterable'); } if ($call === 'GET /orgs/{org}/members') { @@ -3104,11 +3120,11 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method } if ($call === 'GET /repos/{owner}/{repo}/issues') { - return $this->typeResolver->resolve('Observable|Schema\\BasicError'); + return $this->typeResolver->resolve('iterable|Schema\\BasicError'); } if ($call === 'LIST /repos/{owner}/{repo}/issues') { - return $this->typeResolver->resolve('Observable|Schema\\BasicError'); + return $this->typeResolver->resolve('iterable|Schema\\BasicError'); } if ($call === 'POST /repos/{owner}/{repo}/issues') { diff --git a/clients/GitHub/src/Schema/AliasAbstract/Tiet8C745C5B/Tiet730AD13B/Tiet8EAAD608/Tiet696E0ABB.php b/clients/GitHub/src/Schema/AliasAbstract/Tiet51EA4D6F/TietC18C5433/Tiet6E6BD4C9/Tiet4D9F7CB9.php similarity index 95% rename from clients/GitHub/src/Schema/AliasAbstract/Tiet8C745C5B/Tiet730AD13B/Tiet8EAAD608/Tiet696E0ABB.php rename to clients/GitHub/src/Schema/AliasAbstract/Tiet51EA4D6F/TietC18C5433/Tiet6E6BD4C9/Tiet4D9F7CB9.php index f0d75327c01..df8c30349e0 100644 --- a/clients/GitHub/src/Schema/AliasAbstract/Tiet8C745C5B/Tiet730AD13B/Tiet8EAAD608/Tiet696E0ABB.php +++ b/clients/GitHub/src/Schema/AliasAbstract/Tiet51EA4D6F/TietC18C5433/Tiet6E6BD4C9/Tiet4D9F7CB9.php @@ -2,12 +2,12 @@ declare(strict_types=1); -namespace ApiClients\Client\GitHub\Schema\AliasAbstract\Tiet8C745C5B\Tiet730AD13B\Tiet8EAAD608; +namespace ApiClients\Client\GitHub\Schema\AliasAbstract\Tiet51EA4D6F\TietC18C5433\Tiet6E6BD4C9; use ApiClients\Client\GitHub\Schema; use EventSauce\ObjectHydrator\MapFrom; -abstract readonly class Tiet696E0ABB +abstract readonly class Tiet4D9F7CB9 { public const SCHEMA_JSON = '{ "title": "Issue", @@ -1162,6 +1162,73 @@ "type": "string", "description": "Title of the issue" }, + "type": { + "title": "Issue Type", + "required": [ + "id", + "node_id", + "name", + "description" + ], + "type": [ + "object", + "null" + ], + "properties": { + "id": { + "type": "integer", + "description": "The unique identifier of the issue type." + }, + "node_id": { + "type": "string", + "description": "The node identifier of the issue type." + }, + "name": { + "type": "string", + "description": "The name of the issue type." + }, + "description": { + "type": [ + "string", + "null" + ], + "description": "The description of the issue type." + }, + "color": { + "enum": [ + "gray", + "blue", + "green", + "yellow", + "orange", + "red", + "pink", + "purple", + null + ], + "type": [ + "string", + "null" + ], + "description": "The color of the issue type." + }, + "created_at": { + "type": "string", + "description": "The time the issue type created.", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "description": "The time the issue type last updated.", + "format": "date-time" + }, + "is_enabled": { + "type": "boolean", + "description": "The enabled state of the issue type." + } + }, + "description": "The type of issue." + }, "updated_at": { "type": "string", "format": "date-time" @@ -1533,6 +1600,16 @@ "state_reason": "generated", "timeline_url": "https:\\/\\/example.com\\/", "title": "generated", + "type": { + "id": 2, + "node_id": "generated", + "name": "generated", + "description": "generated", + "color": "gray", + "created_at": "1970-01-01T00:00:00+00:00", + "updated_at": "1970-01-01T00:00:00+00:00", + "is_enabled": false + }, "updated_at": "1970-01-01T00:00:00+00:00", "url": "https:\\/\\/example.com\\/", "user": { @@ -1568,6 +1645,7 @@ * performedViaGithubApp: GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub. * state: State of the issue; either 'open' or 'closed' * title: Title of the issue + * type: The type of issue. * url: URL for the issue */ public function __construct(#[MapFrom('active_lock_reason')] @@ -1585,7 +1663,7 @@ public function __construct(#[MapFrom('active_lock_reason')] public string $repositoryUrl, #[MapFrom('sub_issues_summary')] public Schema\WebhooksIssue\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|null $timelineUrl, public string $title, public Schema\IssueType|null $type, #[MapFrom('updated_at')] public string $updatedAt, public string $url, public Schema\WebhooksIssue\User|null $user,) { } diff --git a/clients/GitHub/src/Schema/AliasAbstract/Tiet4E41CFE9/TietB1CF9F2A/Tiet0DDE7646/Tiet0D084088.php b/clients/GitHub/src/Schema/AliasAbstract/Tiet92ECB3DF/TietC4FE48EB/Tiet11EC6BBE/Tiet10BB8537.php similarity index 95% rename from clients/GitHub/src/Schema/AliasAbstract/Tiet4E41CFE9/TietB1CF9F2A/Tiet0DDE7646/Tiet0D084088.php rename to clients/GitHub/src/Schema/AliasAbstract/Tiet92ECB3DF/TietC4FE48EB/Tiet11EC6BBE/Tiet10BB8537.php index 0d60243034d..f1d1d0e6af8 100644 --- a/clients/GitHub/src/Schema/AliasAbstract/Tiet4E41CFE9/TietB1CF9F2A/Tiet0DDE7646/Tiet0D084088.php +++ b/clients/GitHub/src/Schema/AliasAbstract/Tiet92ECB3DF/TietC4FE48EB/Tiet11EC6BBE/Tiet10BB8537.php @@ -2,12 +2,12 @@ declare(strict_types=1); -namespace ApiClients\Client\GitHub\Schema\AliasAbstract\Tiet4E41CFE9\TietB1CF9F2A\Tiet0DDE7646; +namespace ApiClients\Client\GitHub\Schema\AliasAbstract\Tiet92ECB3DF\TietC4FE48EB\Tiet11EC6BBE; use ApiClients\Client\GitHub\Schema; use EventSauce\ObjectHydrator\MapFrom; -abstract readonly class Tiet0D084088 +abstract readonly class Tiet10BB8537 { public const SCHEMA_JSON = '{ "title": "Issue", @@ -1156,6 +1156,73 @@ "type": "string", "description": "Title of the issue" }, + "type": { + "title": "Issue Type", + "required": [ + "id", + "node_id", + "name", + "description" + ], + "type": [ + "object", + "null" + ], + "properties": { + "id": { + "type": "integer", + "description": "The unique identifier of the issue type." + }, + "node_id": { + "type": "string", + "description": "The node identifier of the issue type." + }, + "name": { + "type": "string", + "description": "The name of the issue type." + }, + "description": { + "type": [ + "string", + "null" + ], + "description": "The description of the issue type." + }, + "color": { + "enum": [ + "gray", + "blue", + "green", + "yellow", + "orange", + "red", + "pink", + "purple", + null + ], + "type": [ + "string", + "null" + ], + "description": "The color of the issue type." + }, + "created_at": { + "type": "string", + "description": "The time the issue type created.", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "description": "The time the issue type last updated.", + "format": "date-time" + }, + "is_enabled": { + "type": "boolean", + "description": "The enabled state of the issue type." + } + }, + "description": "The type of issue." + }, "updated_at": { "type": "string", "format": "date-time" @@ -1526,6 +1593,16 @@ "state_reason": "generated", "timeline_url": "https:\\/\\/example.com\\/", "title": "generated", + "type": { + "id": 2, + "node_id": "generated", + "name": "generated", + "description": "generated", + "color": "gray", + "created_at": "1970-01-01T00:00:00+00:00", + "updated_at": "1970-01-01T00:00:00+00:00", + "is_enabled": false + }, "updated_at": "1970-01-01T00:00:00+00:00", "url": "https:\\/\\/example.com\\/", "user": { @@ -1561,6 +1638,7 @@ * performedViaGithubApp: GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub. * state: State of the issue; either 'open' or 'closed' * title: Title of the issue + * type: The type of issue. * url: URL for the issue */ public function __construct(#[MapFrom('active_lock_reason')] @@ -1578,7 +1656,7 @@ public function __construct(#[MapFrom('active_lock_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|null $timelineUrl, public string $title, public Schema\IssueType|null $type, #[MapFrom('updated_at')] public string $updatedAt, public string $url, public Schema\WebhooksIssue2\User|null $user,) { } diff --git a/clients/GitHub/src/Schema/AliasAbstract/Tiet69A6FC90/TietEF30F65A/Tiet9798C033/Tiet5960D0A8.php b/clients/GitHub/src/Schema/AliasAbstract/TietA6754E69/Tiet89E7A5A9/Tiet4D165B48/TietE1DB3DED.php similarity index 99% rename from clients/GitHub/src/Schema/AliasAbstract/Tiet69A6FC90/TietEF30F65A/Tiet9798C033/Tiet5960D0A8.php rename to clients/GitHub/src/Schema/AliasAbstract/TietA6754E69/Tiet89E7A5A9/Tiet4D165B48/TietE1DB3DED.php index f168a25ecf7..d47b89e20db 100644 --- a/clients/GitHub/src/Schema/AliasAbstract/Tiet69A6FC90/TietEF30F65A/Tiet9798C033/Tiet5960D0A8.php +++ b/clients/GitHub/src/Schema/AliasAbstract/TietA6754E69/Tiet89E7A5A9/Tiet4D165B48/TietE1DB3DED.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace ApiClients\Client\GitHub\Schema\AliasAbstract\Tiet69A6FC90\TietEF30F65A\Tiet9798C033; +namespace ApiClients\Client\GitHub\Schema\AliasAbstract\TietA6754E69\Tiet89E7A5A9\Tiet4D165B48; use EventSauce\ObjectHydrator\MapFrom; -abstract readonly class Tiet5960D0A8 +abstract readonly class TietE1DB3DED { public const SCHEMA_JSON = '{ "required": [ @@ -411,7 +411,7 @@ "write" ], "type": "string", - "description": "The leve of permission to grant the access token to manage Dependabot secrets." + "description": "The level of permission to grant the access token to manage Dependabot secrets." }, "deployments": { "enum": [ diff --git a/clients/GitHub/src/Schema/AppPermissions.php b/clients/GitHub/src/Schema/AppPermissions.php index 009399de7dc..df04ee85ecf 100644 --- a/clients/GitHub/src/Schema/AppPermissions.php +++ b/clients/GitHub/src/Schema/AppPermissions.php @@ -58,7 +58,7 @@ "write" ], "type": "string", - "description": "The leve of permission to grant the access token to manage Dependabot secrets." + "description": "The level of permission to grant the access token to manage Dependabot secrets." }, "deployments": { "enum": [ @@ -462,7 +462,7 @@ * checks: The level of permission to grant the access token for checks on code. * codespaces: The level of permission to grant the access token to create, edit, delete, and list Codespaces. * contents: The level of permission to grant the access token for repository contents, commits, branches, downloads, releases, and merges. - * dependabotSecrets: The leve of permission to grant the access token to manage Dependabot secrets. + * dependabotSecrets: The level of permission to grant the access token to manage Dependabot secrets. * deployments: The level of permission to grant the access token for deployments and deployment statuses. * environments: The level of permission to grant the access token for managing repository environments. * issues: The level of permission to grant the access token for issues and related comments, assignees, labels, and milestones. diff --git a/clients/GitHub/src/Schema/Apps/CreateInstallationAccessToken/Request/ApplicationJson.php b/clients/GitHub/src/Schema/Apps/CreateInstallationAccessToken/Request/ApplicationJson.php index 083a992ded0..9145c2290e9 100644 --- a/clients/GitHub/src/Schema/Apps/CreateInstallationAccessToken/Request/ApplicationJson.php +++ b/clients/GitHub/src/Schema/Apps/CreateInstallationAccessToken/Request/ApplicationJson.php @@ -82,7 +82,7 @@ "write" ], "type": "string", - "description": "The leve of permission to grant the access token to manage Dependabot secrets." + "description": "The level of permission to grant the access token to manage Dependabot secrets." }, "deployments": { "enum": [ diff --git a/clients/GitHub/src/Schema/Apps/ScopeToken/Request/ApplicationJson.php b/clients/GitHub/src/Schema/Apps/ScopeToken/Request/ApplicationJson.php index b0ca7eb9d2f..5971f90d67c 100644 --- a/clients/GitHub/src/Schema/Apps/ScopeToken/Request/ApplicationJson.php +++ b/clients/GitHub/src/Schema/Apps/ScopeToken/Request/ApplicationJson.php @@ -106,7 +106,7 @@ "write" ], "type": "string", - "description": "The leve of permission to grant the access token to manage Dependabot secrets." + "description": "The level of permission to grant the access token to manage Dependabot secrets." }, "deployments": { "enum": [ diff --git a/clients/GitHub/src/Schema/Authorization.php b/clients/GitHub/src/Schema/Authorization.php index 9758d1b2fec..0adb059eee7 100644 --- a/clients/GitHub/src/Schema/Authorization.php +++ b/clients/GitHub/src/Schema/Authorization.php @@ -349,7 +349,7 @@ "write" ], "type": "string", - "description": "The leve of permission to grant the access token to manage Dependabot secrets." + "description": "The level of permission to grant the access token to manage Dependabot secrets." }, "deployments": { "enum": [ diff --git a/clients/GitHub/src/Schema/CustomPropertySetPayload.php b/clients/GitHub/src/Schema/CustomPropertySetPayload.php index 6c1c36fce50..ea4237abce5 100644 --- a/clients/GitHub/src/Schema/CustomPropertySetPayload.php +++ b/clients/GitHub/src/Schema/CustomPropertySetPayload.php @@ -69,6 +69,21 @@ "type": "string" }, "description": "An ordered list of the allowed values of the property.\\nThe property can have up to 200 allowed values." + }, + "values_editable_by": { + "enum": [ + "org_actors", + "org_and_repo_actors", + null + ], + "type": [ + "string", + "null" + ], + "description": "Who can edit the values of the property", + "examples": [ + "org_actors" + ] } }, "description": "Custom property set payload" @@ -80,7 +95,8 @@ "required": false, "default_value": null, "description": "generated", - "allowed_values": null + "allowed_values": null, + "values_editable_by": "org_actors" }'; /** @@ -90,11 +106,13 @@ * description: Short description of the property * allowedValues: An ordered list of the allowed values of the property. The property can have up to 200 allowed values. + * valuesEditableBy: Who can edit the values of the property */ public function __construct(#[MapFrom('value_type')] public string $valueType, public bool|null $required, #[MapFrom('default_value')] public string|array|null $defaultValue, public string|null $description, #[MapFrom('allowed_values')] - public array|null $allowedValues,) + public array|null $allowedValues, #[MapFrom('values_editable_by')] + public string|null $valuesEditableBy,) { } } diff --git a/clients/GitHub/src/Schema/Event.php b/clients/GitHub/src/Schema/Event.php index ac3f8c0f09a..e1350c8b865 100644 --- a/clients/GitHub/src/Schema/Event.php +++ b/clients/GitHub/src/Schema/Event.php @@ -1394,6 +1394,73 @@ "type": "string", "format": "uri" }, + "type": { + "title": "Issue Type", + "required": [ + "id", + "node_id", + "name", + "description" + ], + "type": [ + "object", + "null" + ], + "properties": { + "id": { + "type": "integer", + "description": "The unique identifier of the issue type." + }, + "node_id": { + "type": "string", + "description": "The node identifier of the issue type." + }, + "name": { + "type": "string", + "description": "The name of the issue type." + }, + "description": { + "type": [ + "string", + "null" + ], + "description": "The description of the issue type." + }, + "color": { + "enum": [ + "gray", + "blue", + "green", + "yellow", + "orange", + "red", + "pink", + "purple", + null + ], + "type": [ + "string", + "null" + ], + "description": "The color of the issue type." + }, + "created_at": { + "type": "string", + "description": "The time the issue type created.", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "description": "The time the issue type last updated.", + "format": "date-time" + }, + "is_enabled": { + "type": "boolean", + "description": "The enabled state of the issue type." + } + }, + "description": "The type of issue." + }, "repository": { "title": "Repository", "required": [ @@ -3814,6 +3881,16 @@ "body_html": "generated", "body_text": "generated", "timeline_url": "https:\\/\\/example.com\\/", + "type": { + "id": 2, + "node_id": "generated", + "name": "generated", + "description": "generated", + "color": "gray", + "created_at": "1970-01-01T00:00:00+00:00", + "updated_at": "1970-01-01T00:00:00+00:00", + "is_enabled": false + }, "repository": { "id": 42, "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5", diff --git a/clients/GitHub/src/Schema/Event/Payload.php b/clients/GitHub/src/Schema/Event/Payload.php index 77cf82235f6..b01d6090131 100644 --- a/clients/GitHub/src/Schema/Event/Payload.php +++ b/clients/GitHub/src/Schema/Event/Payload.php @@ -1277,6 +1277,73 @@ "type": "string", "format": "uri" }, + "type": { + "title": "Issue Type", + "required": [ + "id", + "node_id", + "name", + "description" + ], + "type": [ + "object", + "null" + ], + "properties": { + "id": { + "type": "integer", + "description": "The unique identifier of the issue type." + }, + "node_id": { + "type": "string", + "description": "The node identifier of the issue type." + }, + "name": { + "type": "string", + "description": "The name of the issue type." + }, + "description": { + "type": [ + "string", + "null" + ], + "description": "The description of the issue type." + }, + "color": { + "enum": [ + "gray", + "blue", + "green", + "yellow", + "orange", + "red", + "pink", + "purple", + null + ], + "type": [ + "string", + "null" + ], + "description": "The color of the issue type." + }, + "created_at": { + "type": "string", + "description": "The time the issue type created.", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "description": "The time the issue type last updated.", + "format": "date-time" + }, + "is_enabled": { + "type": "boolean", + "description": "The enabled state of the issue type." + } + }, + "description": "The type of issue." + }, "repository": { "title": "Repository", "required": [ @@ -3660,6 +3727,16 @@ "body_html": "generated", "body_text": "generated", "timeline_url": "https:\\/\\/example.com\\/", + "type": { + "id": 2, + "node_id": "generated", + "name": "generated", + "description": "generated", + "color": "gray", + "created_at": "1970-01-01T00:00:00+00:00", + "updated_at": "1970-01-01T00:00:00+00:00", + "is_enabled": false + }, "repository": { "id": 42, "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5", diff --git a/clients/GitHub/src/Schema/Installation.php b/clients/GitHub/src/Schema/Installation.php index 6be546f6fec..ee808ed0416 100644 --- a/clients/GitHub/src/Schema/Installation.php +++ b/clients/GitHub/src/Schema/Installation.php @@ -401,7 +401,7 @@ "write" ], "type": "string", - "description": "The leve of permission to grant the access token to manage Dependabot secrets." + "description": "The level of permission to grant the access token to manage Dependabot secrets." }, "deployments": { "enum": [ diff --git a/clients/GitHub/src/Schema/InstallationToken.php b/clients/GitHub/src/Schema/InstallationToken.php index 85e93e8ab41..b45cf289bb3 100644 --- a/clients/GitHub/src/Schema/InstallationToken.php +++ b/clients/GitHub/src/Schema/InstallationToken.php @@ -73,7 +73,7 @@ "write" ], "type": "string", - "description": "The leve of permission to grant the access token to manage Dependabot secrets." + "description": "The level of permission to grant the access token to manage Dependabot secrets." }, "deployments": { "enum": [ diff --git a/clients/GitHub/src/Schema/Issue.php b/clients/GitHub/src/Schema/Issue.php index 976efb46000..efdd5312714 100644 --- a/clients/GitHub/src/Schema/Issue.php +++ b/clients/GitHub/src/Schema/Issue.php @@ -1272,6 +1272,73 @@ "type": "string", "format": "uri" }, + "type": { + "title": "Issue Type", + "required": [ + "id", + "node_id", + "name", + "description" + ], + "type": [ + "object", + "null" + ], + "properties": { + "id": { + "type": "integer", + "description": "The unique identifier of the issue type." + }, + "node_id": { + "type": "string", + "description": "The node identifier of the issue type." + }, + "name": { + "type": "string", + "description": "The name of the issue type." + }, + "description": { + "type": [ + "string", + "null" + ], + "description": "The description of the issue type." + }, + "color": { + "enum": [ + "gray", + "blue", + "green", + "yellow", + "orange", + "red", + "pink", + "purple", + null + ], + "type": [ + "string", + "null" + ], + "description": "The color of the issue type." + }, + "created_at": { + "type": "string", + "description": "The time the issue type created.", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "description": "The time the issue type last updated.", + "format": "date-time" + }, + "is_enabled": { + "type": "boolean", + "description": "The enabled state of the issue type." + } + }, + "description": "The type of issue." + }, "repository": { "title": "Repository", "required": [ @@ -2879,6 +2946,16 @@ "body_html": "generated", "body_text": "generated", "timeline_url": "https:\\/\\/example.com\\/", + "type": { + "id": 2, + "node_id": "generated", + "name": "generated", + "description": "generated", + "color": "gray", + "created_at": "1970-01-01T00:00:00+00:00", + "updated_at": "1970-01-01T00:00:00+00:00", + "is_enabled": false + }, "repository": { "id": 42, "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5", @@ -3071,6 +3148,7 @@ * title: Title of the issue * body: Contents of the issue * labels: Labels to associate with this issue; pass one or more label names to replace the set of labels on this issue; send an empty array to clear all labels from the issue; note that the labels are silently dropped for users without push access to the repository + * type: The type of issue. * repository: A repository on GitHub. * authorAssociation: How the author is associated with the repository. */ @@ -3090,7 +3168,7 @@ public function __construct(public int $id, #[MapFrom('node_id')] public Schema\SimpleUser|null $closedBy, #[MapFrom('body_html')] public string|null $bodyHtml, #[MapFrom('body_text')] public string|null $bodyText, #[MapFrom('timeline_url')] - public string|null $timelineUrl, public Schema\Repository|null $repository, #[MapFrom('performed_via_github_app')] + public string|null $timelineUrl, public Schema\IssueType|null $type, public Schema\Repository|null $repository, #[MapFrom('performed_via_github_app')] public Schema\Integration|null $performedViaGithubApp, #[MapFrom('author_association')] public string $authorAssociation, public Schema\ReactionRollup|null $reactions, #[MapFrom('sub_issues_summary')] public Schema\SubIssuesSummary|null $subIssuesSummary,) diff --git a/clients/GitHub/src/Schema/IssueEvent.php b/clients/GitHub/src/Schema/IssueEvent.php index 84233e69438..eae6c3cf74b 100644 --- a/clients/GitHub/src/Schema/IssueEvent.php +++ b/clients/GitHub/src/Schema/IssueEvent.php @@ -1517,6 +1517,73 @@ "type": "string", "format": "uri" }, + "type": { + "title": "Issue Type", + "required": [ + "id", + "node_id", + "name", + "description" + ], + "type": [ + "object", + "null" + ], + "properties": { + "id": { + "type": "integer", + "description": "The unique identifier of the issue type." + }, + "node_id": { + "type": "string", + "description": "The node identifier of the issue type." + }, + "name": { + "type": "string", + "description": "The name of the issue type." + }, + "description": { + "type": [ + "string", + "null" + ], + "description": "The description of the issue type." + }, + "color": { + "enum": [ + "gray", + "blue", + "green", + "yellow", + "orange", + "red", + "pink", + "purple", + null + ], + "type": [ + "string", + "null" + ], + "description": "The color of the issue type." + }, + "created_at": { + "type": "string", + "description": "The time the issue type created.", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "description": "The time the issue type last updated.", + "format": "date-time" + }, + "is_enabled": { + "type": "boolean", + "description": "The enabled state of the issue type." + } + }, + "description": "The type of issue." + }, "repository": { "title": "Repository", "required": [ @@ -4640,6 +4707,16 @@ "body_html": "generated", "body_text": "generated", "timeline_url": "https:\\/\\/example.com\\/", + "type": { + "id": 2, + "node_id": "generated", + "name": "generated", + "description": "generated", + "color": "gray", + "created_at": "1970-01-01T00:00:00+00:00", + "updated_at": "1970-01-01T00:00:00+00:00", + "is_enabled": false + }, "repository": { "id": 42, "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5", diff --git a/clients/GitHub/src/Schema/IssueSearchResultItem.php b/clients/GitHub/src/Schema/IssueSearchResultItem.php index 1200970bccf..b904f1b3aab 100644 --- a/clients/GitHub/src/Schema/IssueSearchResultItem.php +++ b/clients/GitHub/src/Schema/IssueSearchResultItem.php @@ -2068,6 +2068,73 @@ "type": "string", "format": "uri" }, + "type": { + "title": "Issue Type", + "required": [ + "id", + "node_id", + "name", + "description" + ], + "type": [ + "object", + "null" + ], + "properties": { + "id": { + "type": "integer", + "description": "The unique identifier of the issue type." + }, + "node_id": { + "type": "string", + "description": "The node identifier of the issue type." + }, + "name": { + "type": "string", + "description": "The name of the issue type." + }, + "description": { + "type": [ + "string", + "null" + ], + "description": "The description of the issue type." + }, + "color": { + "enum": [ + "gray", + "blue", + "green", + "yellow", + "orange", + "red", + "pink", + "purple", + null + ], + "type": [ + "string", + "null" + ], + "description": "The color of the issue type." + }, + "created_at": { + "type": "string", + "description": "The time the issue type created.", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "description": "The time the issue type last updated.", + "format": "date-time" + }, + "is_enabled": { + "type": "boolean", + "description": "The enabled state of the issue type." + } + }, + "description": "The type of issue." + }, "performed_via_github_app": { "anyOf": [ { @@ -2881,6 +2948,16 @@ "body_html": "generated", "body_text": "generated", "timeline_url": "https:\\/\\/example.com\\/", + "type": { + "id": 2, + "node_id": "generated", + "name": "generated", + "description": "generated", + "color": "gray", + "created_at": "1970-01-01T00:00:00+00:00", + "updated_at": "1970-01-01T00:00:00+00:00", + "is_enabled": false + }, "performed_via_github_app": { "id": 37, "slug": "probot-owners", @@ -2926,6 +3003,7 @@ /** * authorAssociation: How the author is associated with the repository. * repository: A repository on GitHub. + * type: The type of issue. */ public function __construct(public string $url, #[MapFrom('repository_url')] public string $repositoryUrl, #[MapFrom('labels_url')] @@ -2945,7 +3023,7 @@ public function __construct(public string $url, #[MapFrom('repository_url')] public string $authorAssociation, public bool|null $draft, public Schema\Repository|null $repository, #[MapFrom('body_html')] public string|null $bodyHtml, #[MapFrom('body_text')] public string|null $bodyText, #[MapFrom('timeline_url')] - public string|null $timelineUrl, #[MapFrom('performed_via_github_app')] + public string|null $timelineUrl, public Schema\IssueType|null $type, #[MapFrom('performed_via_github_app')] public Schema\Integration|null $performedViaGithubApp, public Schema\ReactionRollup|null $reactions,) { } diff --git a/clients/GitHub/src/Schema/IssueType.php b/clients/GitHub/src/Schema/IssueType.php new file mode 100644 index 00000000000..c2e171d709f --- /dev/null +++ b/clients/GitHub/src/Schema/IssueType.php @@ -0,0 +1,108 @@ +prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/issues?labels=generated&since=1970-01-01T00:00:00+00:00&filter=generated&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/orgs/generated/issues?labels=generated&type=generated&since=1970-01-01T00:00:00+00:00&filter=generated&state=generated&sort=generated&direction=generated&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\ListForOrgListing::OPERATION_MATCH, (static function (array $data): array { $data['org'] = 'generated'; $data['labels'] = 'generated'; + $data['type'] = 'generated'; $data['since'] = '1970-01-01T00:00:00+00:00'; $data['filter'] = 'generated'; $data['state'] = 'generated'; @@ -60,9 +61,9 @@ public function operations_httpCode_404_responseContentType_application_json_zer $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/issues?labels=generated&since=1970-01-01T00:00:00+00:00&filter=generated&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/orgs/generated/issues?labels=generated&type=generated&since=1970-01-01T00:00:00+00:00&filter=generated&state=generated&sort=generated&direction=generated&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()->listForOrgListing('generated', 'generated', '1970-01-01T00:00:00+00:00', 'generated', 'generated', 'generated', 'generated', 8, 1); + $result = $client->operations()->issues()->listForOrgListing('generated', 'generated', 'generated', '1970-01-01T00:00:00+00:00', 'generated', 'generated', 'generated', 'generated', 8, 1); foreach ($result as $item) { } } diff --git a/clients/GitHub/tests/Internal/Operation/Issues/ListForOrgTest.php b/clients/GitHub/tests/Internal/Operation/Issues/ListForOrgTest.php index a7782c991cf..6c20138de93 100644 --- a/clients/GitHub/tests/Internal/Operation/Issues/ListForOrgTest.php +++ b/clients/GitHub/tests/Internal/Operation/Issues/ListForOrgTest.php @@ -31,11 +31,12 @@ public function call_httpCode_404_responseContentType_application_json_zero(): v $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/issues?labels=generated&since=1970-01-01T00:00:00+00:00&filter=generated&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/orgs/generated/issues?labels=generated&type=generated&since=1970-01-01T00:00:00+00:00&filter=generated&state=generated&sort=generated&direction=generated&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\ListForOrg::OPERATION_MATCH, (static function (array $data): array { $data['org'] = 'generated'; $data['labels'] = 'generated'; + $data['type'] = 'generated'; $data['since'] = '1970-01-01T00:00:00+00:00'; $data['filter'] = 'generated'; $data['state'] = 'generated'; @@ -58,8 +59,8 @@ public function operations_httpCode_404_responseContentType_application_json_zer $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/issues?labels=generated&since=1970-01-01T00:00:00+00:00&filter=generated&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/orgs/generated/issues?labels=generated&type=generated&since=1970-01-01T00:00:00+00:00&filter=generated&state=generated&sort=generated&direction=generated&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()->listForOrg('generated', 'generated', '1970-01-01T00:00:00+00:00', 'generated', 'generated', 'generated', 'generated', 8, 1); + $result = $client->operations()->issues()->listForOrg('generated', 'generated', 'generated', '1970-01-01T00:00:00+00:00', 'generated', 'generated', 'generated', 'generated', 8, 1); } } diff --git a/clients/GitHub/tests/Internal/Operation/Issues/ListForRepoListingTest.php b/clients/GitHub/tests/Internal/Operation/Issues/ListForRepoListingTest.php index d426b7c936b..a689c7ce6cd 100644 --- a/clients/GitHub/tests/Internal/Operation/Issues/ListForRepoListingTest.php +++ b/clients/GitHub/tests/Internal/Operation/Issues/ListForRepoListingTest.php @@ -30,13 +30,14 @@ public function call_httpCode_301_responseContentType_application_json_zero(): v $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?milestone=generated&assignee=generated&creator=generated&mentioned=generated&labels=generated&since=1970-01-01T00:00:00+00:00&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/issues?milestone=generated&assignee=generated&type=generated&creator=generated&mentioned=generated&labels=generated&since=1970-01-01T00:00:00+00:00&state=generated&sort=generated&direction=generated&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\ListForRepoListing::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['milestone'] = 'generated'; $data['assignee'] = 'generated'; + $data['type'] = 'generated'; $data['creator'] = 'generated'; $data['mentioned'] = 'generated'; $data['labels'] = 'generated'; @@ -62,9 +63,9 @@ public function operations_httpCode_301_responseContentType_application_json_zer $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?milestone=generated&assignee=generated&creator=generated&mentioned=generated&labels=generated&since=1970-01-01T00:00:00+00:00&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/issues?milestone=generated&assignee=generated&type=generated&creator=generated&mentioned=generated&labels=generated&since=1970-01-01T00:00:00+00:00&state=generated&sort=generated&direction=generated&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()->listForRepoListing('generated', 'generated', 'generated', 'generated', 'generated', 'generated', 'generated', '1970-01-01T00:00:00+00:00', 'generated', 'generated', 'generated', 8, 1); + $result = $client->operations()->issues()->listForRepoListing('generated', 'generated', 'generated', 'generated', 'generated', 'generated', 'generated', 'generated', '1970-01-01T00:00:00+00:00', 'generated', 'generated', 'generated', 8, 1); foreach ($result as $item) { } } @@ -79,13 +80,14 @@ public function call_httpCode_422_responseContentType_application_json_zero(): v $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?milestone=generated&assignee=generated&creator=generated&mentioned=generated&labels=generated&since=1970-01-01T00:00:00+00:00&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/issues?milestone=generated&assignee=generated&type=generated&creator=generated&mentioned=generated&labels=generated&since=1970-01-01T00:00:00+00:00&state=generated&sort=generated&direction=generated&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\ListForRepoListing::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['milestone'] = 'generated'; $data['assignee'] = 'generated'; + $data['type'] = 'generated'; $data['creator'] = 'generated'; $data['mentioned'] = 'generated'; $data['labels'] = 'generated'; @@ -112,9 +114,9 @@ public function operations_httpCode_422_responseContentType_application_json_zer $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?milestone=generated&assignee=generated&creator=generated&mentioned=generated&labels=generated&since=1970-01-01T00:00:00+00:00&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/issues?milestone=generated&assignee=generated&type=generated&creator=generated&mentioned=generated&labels=generated&since=1970-01-01T00:00:00+00:00&state=generated&sort=generated&direction=generated&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()->listForRepoListing('generated', 'generated', 'generated', 'generated', 'generated', 'generated', 'generated', '1970-01-01T00:00:00+00:00', 'generated', 'generated', 'generated', 8, 1); + $result = $client->operations()->issues()->listForRepoListing('generated', 'generated', 'generated', 'generated', 'generated', 'generated', 'generated', 'generated', '1970-01-01T00:00:00+00:00', 'generated', 'generated', 'generated', 8, 1); foreach ($result as $item) { } } @@ -129,13 +131,14 @@ public function call_httpCode_404_responseContentType_application_json_zero(): v $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?milestone=generated&assignee=generated&creator=generated&mentioned=generated&labels=generated&since=1970-01-01T00:00:00+00:00&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/issues?milestone=generated&assignee=generated&type=generated&creator=generated&mentioned=generated&labels=generated&since=1970-01-01T00:00:00+00:00&state=generated&sort=generated&direction=generated&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\ListForRepoListing::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['milestone'] = 'generated'; $data['assignee'] = 'generated'; + $data['type'] = 'generated'; $data['creator'] = 'generated'; $data['mentioned'] = 'generated'; $data['labels'] = 'generated'; @@ -162,9 +165,9 @@ public function operations_httpCode_404_responseContentType_application_json_zer $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?milestone=generated&assignee=generated&creator=generated&mentioned=generated&labels=generated&since=1970-01-01T00:00:00+00:00&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/issues?milestone=generated&assignee=generated&type=generated&creator=generated&mentioned=generated&labels=generated&since=1970-01-01T00:00:00+00:00&state=generated&sort=generated&direction=generated&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()->listForRepoListing('generated', 'generated', 'generated', 'generated', 'generated', 'generated', 'generated', '1970-01-01T00:00:00+00:00', 'generated', 'generated', 'generated', 8, 1); + $result = $client->operations()->issues()->listForRepoListing('generated', 'generated', 'generated', 'generated', 'generated', 'generated', 'generated', 'generated', '1970-01-01T00:00:00+00:00', 'generated', 'generated', 'generated', 8, 1); foreach ($result as $item) { } } diff --git a/clients/GitHub/tests/Internal/Operation/Issues/ListForRepoTest.php b/clients/GitHub/tests/Internal/Operation/Issues/ListForRepoTest.php index 84ccd20112c..1daa50e1a74 100644 --- a/clients/GitHub/tests/Internal/Operation/Issues/ListForRepoTest.php +++ b/clients/GitHub/tests/Internal/Operation/Issues/ListForRepoTest.php @@ -30,13 +30,14 @@ public function call_httpCode_301_responseContentType_application_json_zero(): v $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?milestone=generated&assignee=generated&creator=generated&mentioned=generated&labels=generated&since=1970-01-01T00:00:00+00:00&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/issues?milestone=generated&assignee=generated&type=generated&creator=generated&mentioned=generated&labels=generated&since=1970-01-01T00:00:00+00:00&state=generated&sort=generated&direction=generated&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\ListForRepo::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['milestone'] = 'generated'; $data['assignee'] = 'generated'; + $data['type'] = 'generated'; $data['creator'] = 'generated'; $data['mentioned'] = 'generated'; $data['labels'] = 'generated'; @@ -60,9 +61,9 @@ public function operations_httpCode_301_responseContentType_application_json_zer $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?milestone=generated&assignee=generated&creator=generated&mentioned=generated&labels=generated&since=1970-01-01T00:00:00+00:00&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/issues?milestone=generated&assignee=generated&type=generated&creator=generated&mentioned=generated&labels=generated&since=1970-01-01T00:00:00+00:00&state=generated&sort=generated&direction=generated&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()->listForRepo('generated', 'generated', 'generated', 'generated', 'generated', 'generated', 'generated', '1970-01-01T00:00:00+00:00', 'generated', 'generated', 'generated', 8, 1); + $result = $client->operations()->issues()->listForRepo('generated', 'generated', 'generated', 'generated', 'generated', 'generated', 'generated', 'generated', '1970-01-01T00:00:00+00:00', 'generated', 'generated', 'generated', 8, 1); } /** @test */ @@ -75,13 +76,14 @@ public function call_httpCode_422_responseContentType_application_json_zero(): v $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?milestone=generated&assignee=generated&creator=generated&mentioned=generated&labels=generated&since=1970-01-01T00:00:00+00:00&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/issues?milestone=generated&assignee=generated&type=generated&creator=generated&mentioned=generated&labels=generated&since=1970-01-01T00:00:00+00:00&state=generated&sort=generated&direction=generated&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\ListForRepo::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['milestone'] = 'generated'; $data['assignee'] = 'generated'; + $data['type'] = 'generated'; $data['creator'] = 'generated'; $data['mentioned'] = 'generated'; $data['labels'] = 'generated'; @@ -106,9 +108,9 @@ public function operations_httpCode_422_responseContentType_application_json_zer $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?milestone=generated&assignee=generated&creator=generated&mentioned=generated&labels=generated&since=1970-01-01T00:00:00+00:00&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/issues?milestone=generated&assignee=generated&type=generated&creator=generated&mentioned=generated&labels=generated&since=1970-01-01T00:00:00+00:00&state=generated&sort=generated&direction=generated&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()->listForRepo('generated', 'generated', 'generated', 'generated', 'generated', 'generated', 'generated', '1970-01-01T00:00:00+00:00', 'generated', 'generated', 'generated', 8, 1); + $result = $client->operations()->issues()->listForRepo('generated', 'generated', 'generated', 'generated', 'generated', 'generated', 'generated', 'generated', '1970-01-01T00:00:00+00:00', 'generated', 'generated', 'generated', 8, 1); } /** @test */ @@ -121,13 +123,14 @@ public function call_httpCode_404_responseContentType_application_json_zero(): v $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?milestone=generated&assignee=generated&creator=generated&mentioned=generated&labels=generated&since=1970-01-01T00:00:00+00:00&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/issues?milestone=generated&assignee=generated&type=generated&creator=generated&mentioned=generated&labels=generated&since=1970-01-01T00:00:00+00:00&state=generated&sort=generated&direction=generated&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\ListForRepo::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['milestone'] = 'generated'; $data['assignee'] = 'generated'; + $data['type'] = 'generated'; $data['creator'] = 'generated'; $data['mentioned'] = 'generated'; $data['labels'] = 'generated'; @@ -152,8 +155,8 @@ public function operations_httpCode_404_responseContentType_application_json_zer $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?milestone=generated&assignee=generated&creator=generated&mentioned=generated&labels=generated&since=1970-01-01T00:00:00+00:00&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/issues?milestone=generated&assignee=generated&type=generated&creator=generated&mentioned=generated&labels=generated&since=1970-01-01T00:00:00+00:00&state=generated&sort=generated&direction=generated&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()->listForRepo('generated', 'generated', 'generated', 'generated', 'generated', 'generated', 'generated', '1970-01-01T00:00:00+00:00', 'generated', 'generated', 'generated', 8, 1); + $result = $client->operations()->issues()->listForRepo('generated', 'generated', 'generated', 'generated', 'generated', 'generated', 'generated', 'generated', '1970-01-01T00:00:00+00:00', 'generated', 'generated', 'generated', 8, 1); } } diff --git a/clients/GitHub/tests/Internal/Operation/Orgs/CreateIssueTypeTest.php b/clients/GitHub/tests/Internal/Operation/Orgs/CreateIssueTypeTest.php new file mode 100644 index 00000000000..d09550958ea --- /dev/null +++ b/clients/GitHub/tests/Internal/Operation/Orgs/CreateIssueTypeTest.php @@ -0,0 +1,123 @@ + 'application/json'], json_encode(json_decode(Schema\IssueType::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', '/orgs/generated/issue-types', Argument::type('array'), json_encode(json_decode(Schema\OrganizationCreateIssueType::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Internal\Operation\Orgs\CreateIssueType::OPERATION_MATCH, (static function (array $data): array { + $data['org'] = 'generated'; + + return $data; + })(json_decode(Schema\OrganizationCreateIssueType::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\IssueType::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', '/orgs/generated/issue-types', Argument::type('array'), json_encode(json_decode(Schema\OrganizationCreateIssueType::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->orgs()->createIssueType('generated', json_decode(Schema\OrganizationCreateIssueType::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', '/orgs/generated/issue-types', Argument::type('array'), json_encode(json_decode(Schema\OrganizationCreateIssueType::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Internal\Operation\Orgs\CreateIssueType::OPERATION_MATCH, (static function (array $data): array { + $data['org'] = 'generated'; + + return $data; + })(json_decode(Schema\OrganizationCreateIssueType::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', '/orgs/generated/issue-types', Argument::type('array'), json_encode(json_decode(Schema\OrganizationCreateIssueType::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->orgs()->createIssueType('generated', json_decode(Schema\OrganizationCreateIssueType::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('POST', '/orgs/generated/issue-types', Argument::type('array'), json_encode(json_decode(Schema\OrganizationCreateIssueType::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Internal\Operation\Orgs\CreateIssueType::OPERATION_MATCH, (static function (array $data): array { + $data['org'] = 'generated'; + + return $data; + })(json_decode(Schema\OrganizationCreateIssueType::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('POST', '/orgs/generated/issue-types', Argument::type('array'), json_encode(json_decode(Schema\OrganizationCreateIssueType::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->orgs()->createIssueType('generated', json_decode(Schema\OrganizationCreateIssueType::SCHEMA_EXAMPLE_DATA, true)); + } +} diff --git a/clients/GitHub/tests/Internal/Operation/Orgs/DeleteIssueTypeTest.php b/clients/GitHub/tests/Internal/Operation/Orgs/DeleteIssueTypeTest.php new file mode 100644 index 00000000000..ac3798091a7 --- /dev/null +++ b/clients/GitHub/tests/Internal/Operation/Orgs/DeleteIssueTypeTest.php @@ -0,0 +1,128 @@ + '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('DELETE', '/orgs/generated/issue-types/13', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Internal\Operation\Orgs\DeleteIssueType::OPERATION_MATCH, (static function (array $data): array { + $data['org'] = 'generated'; + $data['issue_type_id'] = 13; + + return $data; + })([])); + } + + /** @test */ + public function operations_httpCode_422_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('DELETE', '/orgs/generated/issue-types/13', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->orgs()->deleteIssueType('generated', 13); + } + + /** @test */ + public function call_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('DELETE', '/orgs/generated/issue-types/13', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Internal\Operation\Orgs\DeleteIssueType::OPERATION_MATCH, (static function (array $data): array { + $data['org'] = 'generated'; + $data['issue_type_id'] = 13; + + 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('DELETE', '/orgs/generated/issue-types/13', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->orgs()->deleteIssueType('generated', 13); + } + + /** @test */ + public function call_httpCode_204_empty(): void + { + $response = new Response(204, []); + $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', '/orgs/generated/issue-types/13', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Internal\Operation\Orgs\DeleteIssueType::OPERATION_MATCH, (static function (array $data): array { + $data['org'] = 'generated'; + $data['issue_type_id'] = 13; + + return $data; + })([])); + } + + /** @test */ + public function operations_httpCode_204_empty(): void + { + $response = new Response(204, []); + $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', '/orgs/generated/issue-types/13', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->orgs()->deleteIssueType('generated', 13); + self::assertArrayHasKey('code', $result); + self::assertSame(204, $result['code']); + } +} diff --git a/clients/GitHub/tests/Internal/Operation/Orgs/ListIssueTypesTest.php b/clients/GitHub/tests/Internal/Operation/Orgs/ListIssueTypesTest.php new file mode 100644 index 00000000000..f2c64695abe --- /dev/null +++ b/clients/GitHub/tests/Internal/Operation/Orgs/ListIssueTypesTest.php @@ -0,0 +1,57 @@ + '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', '/orgs/generated/issue-types', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Internal\Operation\Orgs\ListIssueTypes::OPERATION_MATCH, (static function (array $data): array { + $data['org'] = 'generated'; + + 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', '/orgs/generated/issue-types', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->orgs()->listIssueTypes('generated'); + } +} diff --git a/clients/GitHub/tests/Internal/Operation/Orgs/UpdateIssueTypeTest.php b/clients/GitHub/tests/Internal/Operation/Orgs/UpdateIssueTypeTest.php new file mode 100644 index 00000000000..59d728b5b84 --- /dev/null +++ b/clients/GitHub/tests/Internal/Operation/Orgs/UpdateIssueTypeTest.php @@ -0,0 +1,126 @@ + 'application/json'], json_encode(json_decode(Schema\IssueType::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('PUT', '/orgs/generated/issue-types/13', Argument::type('array'), json_encode(json_decode(Schema\OrganizationUpdateIssueType::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Internal\Operation\Orgs\UpdateIssueType::OPERATION_MATCH, (static function (array $data): array { + $data['org'] = 'generated'; + $data['issue_type_id'] = 13; + + return $data; + })(json_decode(Schema\OrganizationUpdateIssueType::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\IssueType::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('PUT', '/orgs/generated/issue-types/13', Argument::type('array'), json_encode(json_decode(Schema\OrganizationUpdateIssueType::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->orgs()->updateIssueType('generated', 13, json_decode(Schema\OrganizationUpdateIssueType::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('PUT', '/orgs/generated/issue-types/13', Argument::type('array'), json_encode(json_decode(Schema\OrganizationUpdateIssueType::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Internal\Operation\Orgs\UpdateIssueType::OPERATION_MATCH, (static function (array $data): array { + $data['org'] = 'generated'; + $data['issue_type_id'] = 13; + + return $data; + })(json_decode(Schema\OrganizationUpdateIssueType::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('PUT', '/orgs/generated/issue-types/13', Argument::type('array'), json_encode(json_decode(Schema\OrganizationUpdateIssueType::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->orgs()->updateIssueType('generated', 13, json_decode(Schema\OrganizationUpdateIssueType::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('PUT', '/orgs/generated/issue-types/13', Argument::type('array'), json_encode(json_decode(Schema\OrganizationUpdateIssueType::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Internal\Operation\Orgs\UpdateIssueType::OPERATION_MATCH, (static function (array $data): array { + $data['org'] = 'generated'; + $data['issue_type_id'] = 13; + + return $data; + })(json_decode(Schema\OrganizationUpdateIssueType::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('PUT', '/orgs/generated/issue-types/13', Argument::type('array'), json_encode(json_decode(Schema\OrganizationUpdateIssueType::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->orgs()->updateIssueType('generated', 13, json_decode(Schema\OrganizationUpdateIssueType::SCHEMA_EXAMPLE_DATA, true)); + } +} diff --git a/clients/GitHub/tests/Types/ClientCallReturnTypes.php b/clients/GitHub/tests/Types/ClientCallReturnTypes.php index eb38a4b0582..966a5c52145 100644 --- a/clients/GitHub/tests/Types/ClientCallReturnTypes.php +++ b/clients/GitHub/tests/Types/ClientCallReturnTypes.php @@ -291,8 +291,12 @@ function authHeader(): string assertType('', $client->call('DELETE /orgs/{org}/invitations/{invitation_id}')); assertType('Observable', $client->call('GET /orgs/{org}/invitations/{invitation_id}/teams')); assertType('Observable', $client->call('LIST /orgs/{org}/invitations/{invitation_id}/teams')); -assertType('Observable', $client->call('GET /orgs/{org}/issues')); -assertType('Observable', $client->call('LIST /orgs/{org}/issues')); +assertType('iterable', $client->call('GET /orgs/{org}/issue-types')); +assertType('Schema\\IssueType', $client->call('POST /orgs/{org}/issue-types')); +assertType('Schema\\IssueType', $client->call('PUT /orgs/{org}/issue-types/{issue_type_id}')); +assertType('\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody', $client->call('DELETE /orgs/{org}/issue-types/{issue_type_id}')); +assertType('iterable', $client->call('GET /orgs/{org}/issues')); +assertType('iterable', $client->call('LIST /orgs/{org}/issues')); assertType('Observable', $client->call('GET /orgs/{org}/members')); assertType('Observable', $client->call('LIST /orgs/{org}/members')); assertType('', $client->call('GET /orgs/{org}/members/{username}')); @@ -782,8 +786,8 @@ function authHeader(): string assertType('Observable', $client->call('LIST /repos/{owner}/{repo}/invitations')); assertType('', $client->call('DELETE /repos/{owner}/{repo}/invitations/{invitation_id}')); assertType('', $client->call('PATCH /repos/{owner}/{repo}/invitations/{invitation_id}')); -assertType('Observable|Schema\\BasicError', $client->call('GET /repos/{owner}/{repo}/issues')); -assertType('Observable|Schema\\BasicError', $client->call('LIST /repos/{owner}/{repo}/issues')); +assertType('iterable|Schema\\BasicError', $client->call('GET /repos/{owner}/{repo}/issues')); +assertType('iterable|Schema\\BasicError', $client->call('LIST /repos/{owner}/{repo}/issues')); assertType('', $client->call('POST /repos/{owner}/{repo}/issues')); assertType('Observable', $client->call('GET /repos/{owner}/{repo}/issues/comments')); assertType('Observable', $client->call('LIST /repos/{owner}/{repo}/issues/comments')); diff --git a/etc/specs/GitHub/current.spec.yaml b/etc/specs/GitHub/current.spec.yaml index 528b69180fb..485cc3a6735 100644 --- a/etc/specs/GitHub/current.spec.yaml +++ b/etc/specs/GitHub/current.spec.yaml @@ -11626,6 +11626,160 @@ paths: enabledForGitHubApps: true category: orgs subcategory: members + "/orgs/{org}/issue-types": + get: + summary: List issue types for an organization + description: Lists all issue types for an organization. + tags: + - orgs + operationId: orgs/list-issue-types + externalDocs: + description: API method documentation + url: https://docs.github.com/rest/orgs/issue-types#list-issue-types-for-an-organization + parameters: + - "$ref": "#/components/parameters/org" + responses: + '200': + description: Response + content: + application/json: + schema: + type: array + items: + "$ref": "#/components/schemas/issue-type" + examples: + default: + "$ref": "#/components/examples/issue-type-items" + '404': + "$ref": "#/components/responses/not_found" + x-github: + githubCloudOnly: false + enabledForGitHubApps: true + category: orgs + subcategory: issue-types + post: + summary: Create issue type for an organization + description: |- + Create a new issue type for an organization. + + You can find out more about issue types in [Managing issue types in an organization](https://docs.github.com/issues/tracking-your-work-with-issues/configuring-issues/managing-issue-types-in-an-organization). + tags: + - orgs + operationId: orgs/create-issue-type + externalDocs: + description: API method documentation + url: https://docs.github.com/rest/orgs/issue-types#create-issue-type-for-an-organization + parameters: + - "$ref": "#/components/parameters/org" + requestBody: + required: true + content: + application/json: + schema: + "$ref": "#/components/schemas/organization-create-issue-type" + examples: + default: + value: + name: Epic + description: An issue type for a multi-week tracking of work + is_enabled: true + color: green + is_private: true + responses: + '200': + description: Response + content: + application/json: + schema: + "$ref": "#/components/schemas/issue-type" + examples: + default: + "$ref": "#/components/examples/issue-type" + '404': + "$ref": "#/components/responses/not_found" + '422': + "$ref": "#/components/responses/validation_failed_simple" + x-github: + githubCloudOnly: false + enabledForGitHubApps: true + category: orgs + subcategory: issue-types + "/orgs/{org}/issue-types/{issue_type_id}": + put: + summary: Update issue type for an organization + description: |- + Updates an issue type for an organization. + + You can find out more about issue types in [Managing issue types in an organization](https://docs.github.com/issues/tracking-your-work-with-issues/configuring-issues/managing-issue-types-in-an-organization). + tags: + - orgs + operationId: orgs/update-issue-type + externalDocs: + description: API method documentation + url: https://docs.github.com/rest/orgs/issue-types#update-issue-type-for-an-organization + parameters: + - "$ref": "#/components/parameters/org" + - "$ref": "#/components/parameters/issue-type-id" + requestBody: + required: true + content: + application/json: + schema: + "$ref": "#/components/schemas/organization-update-issue-type" + examples: + default: + value: + name: Epic + description: An issue type for a multi-week tracking of work + is_enabled: true + color: green + is_private: true + responses: + '200': + description: Response + content: + application/json: + schema: + "$ref": "#/components/schemas/issue-type" + examples: + default: + "$ref": "#/components/examples/issue-type" + '404': + "$ref": "#/components/responses/not_found" + '422': + "$ref": "#/components/responses/validation_failed_simple" + x-github: + githubCloudOnly: false + enabledForGitHubApps: true + category: orgs + subcategory: issue-types + delete: + summary: Delete issue type for an organization + description: |- + Deletes an issue type for an organization. + + You can find out more about issue types in [Managing issue types in an organization](https://docs.github.com/issues/tracking-your-work-with-issues/configuring-issues/managing-issue-types-in-an-organization). + tags: + - orgs + operationId: orgs/delete-issue-type + externalDocs: + description: API method documentation + url: https://docs.github.com/rest/orgs/issue-types#delete-issue-type-for-an-organization + parameters: + - "$ref": "#/components/parameters/org" + - "$ref": "#/components/parameters/issue-type-id" + responses: + '204': + description: Response + '422': + "$ref": "#/components/responses/validation_failed_simple" + '404': + "$ref": "#/components/responses/not_found" + x-github: + githubCloudOnly: false + enabledForGitHubApps: true + category: orgs + subcategory: issue-types "/orgs/{org}/issues": get: summary: List organization issues assigned to the authenticated user @@ -11679,6 +11833,12 @@ paths: - all default: open - "$ref": "#/components/parameters/labels" + - name: type + description: Can be the name of an issue type. + in: query + required: false + schema: + type: string - name: sort description: What to sort results by. in: query @@ -14275,6 +14435,10 @@ paths: description: |- Creates new or updates existing custom properties defined for an organization in a batch. + If the property already exists, the existing property will be replaced with the new values. + Missing optional values will fall back to default values, previous values will be overwritten. + E.g. if a property exists with `values_editable_by: org_and_repo_actors` and it's updated without specifying `values_editable_by`, it will be updated to default value `org_actors`. + To use this endpoint, the authenticated user must be one of: - An administrator for the organization. - A user, or a user on a team, with the fine-grained permission of `custom_properties_org_definitions_manager` in the organization. @@ -33990,6 +34154,14 @@ paths: required: false schema: type: string + - name: type + description: Can be the name of an issue type. If the string `*` is passed, + issues with any type are accepted. If the string `none` is passed, issues + without type are returned. + in: query + required: false + schema: + type: string - name: creator description: The user that created the issue. in: query @@ -34130,6 +34302,13 @@ paths: are silently dropped otherwise._' items: type: string + type: + type: + - string + - 'null' + description: The name of the issue type to associate with this issue. + examples: + - Epic required: - title examples: @@ -34739,6 +34918,14 @@ paths: push access to the repository, assignee changes are silently dropped. items: type: string + type: + type: + - string + - 'null' + description: The name of the issue type to associate with this issue + or use `null` to remove the current issue type. + examples: + - Epic examples: default: value: @@ -69234,7 +69421,7 @@ components: - write dependabot_secrets: type: string - description: The leve of permission to grant the access token to manage + description: The level of permission to grant the access token to manage Dependabot secrets. enum: - read @@ -72219,6 +72406,58 @@ components: - url - created_at - updated_at + issue-type: + title: Issue Type + description: The type of issue. + type: + - object + - 'null' + properties: + id: + type: integer + description: The unique identifier of the issue type. + node_id: + type: string + description: The node identifier of the issue type. + name: + type: string + description: The name of the issue type. + description: + type: + - string + - 'null' + description: The description of the issue type. + color: + type: + - string + - 'null' + description: The color of the issue type. + enum: + - gray + - blue + - green + - yellow + - orange + - red + - pink + - purple + - + created_at: + type: string + description: The time the issue type created. + format: date-time + updated_at: + type: string + description: The time the issue type last updated. + format: date-time + is_enabled: + type: boolean + description: The enabled state of the issue type. + required: + - id + - node_id + - name + - description author-association: title: author_association type: string @@ -72468,6 +72707,8 @@ components: timeline_url: type: string format: uri + type: + "$ref": "#/components/schemas/issue-type" repository: "$ref": "#/components/schemas/repository" performed_via_github_app: @@ -77272,6 +77513,80 @@ components: "$ref": "#/components/schemas/interaction-expiry" required: - limit + organization-create-issue-type: + type: object + properties: + name: + description: Name of the issue type. + type: string + is_enabled: + description: Whether or not the issue type is enabled at the organization + level. + type: boolean + is_private: + description: Whether or not the issue type is restricted to issues in private + repositories. + type: boolean + description: + description: Description of the issue type. + type: + - string + - 'null' + color: + description: Color for the issue type. + type: + - string + - 'null' + enum: + - gray + - blue + - green + - yellow + - orange + - red + - pink + - purple + - + required: + - name + - is_enabled + organization-update-issue-type: + type: object + properties: + name: + description: Name of the issue type. + type: string + is_enabled: + description: Whether or not the issue type is enabled at the organization + level. + type: boolean + is_private: + description: Whether or not the issue type is restricted to issues in private + repositories. + type: boolean + description: + description: Description of the issue type. + type: + - string + - 'null' + color: + description: Color for the issue type. + type: + - string + - 'null' + enum: + - gray + - blue + - green + - yellow + - orange + - red + - pink + - purple + - + required: + - name + - is_enabled org-membership: title: Org Membership description: Org Membership @@ -78258,6 +78573,17 @@ components: description: |- An ordered list of the allowed values of the property. The property can have up to 200 allowed values. + values_editable_by: + type: + - string + - 'null' + enum: + - org_actors + - org_and_repo_actors + - + description: Who can edit the values of the property + examples: + - org_actors required: - value_type custom-property-value: @@ -93505,6 +93831,8 @@ components: timeline_url: type: string format: uri + type: + "$ref": "#/components/schemas/issue-type" performed_via_github_app: anyOf: - type: 'null' @@ -98497,6 +98825,8 @@ components: title: description: Title of the issue type: string + type: + "$ref": "#/components/schemas/issue-type" updated_at: type: string format: date-time @@ -99577,6 +99907,8 @@ components: title: description: Title of the issue type: string + type: + "$ref": "#/components/schemas/issue-type" updated_at: type: string format: date-time @@ -117219,6 +117551,8 @@ components: title: description: Title of the issue type: string + type: + "$ref": "#/components/schemas/issue-type" updated_at: type: string format: date-time @@ -118430,6 +118764,8 @@ components: title: description: Title of the issue type: string + type: + "$ref": "#/components/schemas/issue-type" updated_at: type: string format: date-time @@ -119648,6 +119984,8 @@ components: title: description: Title of the issue type: string + type: + "$ref": "#/components/schemas/issue-type" updated_at: type: string format: date-time @@ -120891,6 +121229,8 @@ components: title: description: Title of the issue type: string + type: + "$ref": "#/components/schemas/issue-type" updated_at: type: string format: date-time @@ -121993,6 +122333,8 @@ components: title: description: Title of the issue type: string + type: + "$ref": "#/components/schemas/issue-type" updated_at: type: string format: date-time @@ -122976,6 +123318,8 @@ components: title: description: Title of the issue type: string + type: + "$ref": "#/components/schemas/issue-type" updated_at: type: string format: date-time @@ -123938,6 +124282,8 @@ components: timeline_url: type: string format: uri + type: + "$ref": "#/components/schemas/issue-type" title: description: Title of the issue type: string @@ -124905,6 +125251,8 @@ components: timeline_url: type: string format: uri + type: + "$ref": "#/components/schemas/issue-type" title: description: Title of the issue type: string @@ -125896,6 +126244,8 @@ components: timeline_url: type: string format: uri + type: + "$ref": "#/components/schemas/issue-type" title: description: Title of the issue type: string @@ -126859,6 +127209,8 @@ components: title: description: Title of the issue type: string + type: + "$ref": "#/components/schemas/issue-type" updated_at: type: string format: date-time @@ -129223,6 +129575,8 @@ components: title: description: Title of the issue type: string + type: + "$ref": "#/components/schemas/issue-type" updated_at: type: string format: date-time @@ -130314,6 +130668,8 @@ components: format: uri user_view_type: type: string + type: + "$ref": "#/components/schemas/issue-type" organization: "$ref": "#/components/schemas/organization-simple-webhooks" repository: @@ -131172,6 +131528,8 @@ components: title: description: Title of the issue type: string + type: + "$ref": "#/components/schemas/issue-type" updated_at: type: string format: date-time @@ -132700,6 +133058,8 @@ components: title: description: Title of the issue type: string + type: + "$ref": "#/components/schemas/issue-type" updated_at: type: string format: date-time @@ -209743,6 +210103,28 @@ components: members_url: https://api.github.com/teams/1/members{/member} repositories_url: https://api.github.com/teams/1/repos parent: + issue-type-items: + value: + - id: 410 + node_id: IT_kwDNAd3NAZo + name: Task + description: A specific piece of work + created_at: '2024-12-11T14:39:09Z' + updated_at: '2024-12-11T14:39:09Z' + - id: 411 + node_id: IT_kwDNAd3NAZs + name: Bug + description: An unexpected problem or behavior + created_at: '2024-12-11T14:39:09Z' + updated_at: '2024-12-11T14:39:09Z' + issue-type: + value: + id: 410 + node_id: IT_kwDNAd3NAZo + name: Task + description: A specific piece of work + created_at: '2024-12-11T14:39:09Z' + updated_at: '2024-12-11T14:39:09Z' codespace: value: id: 1 @@ -230338,6 +230720,13 @@ components: required: true schema: type: integer + issue-type-id: + name: issue_type_id + description: The unique identifier of the issue type. + in: path + required: true + schema: + type: integer codespace-name: name: codespace_name in: path