diff --git a/clients/GitHub/etc/openapi-client-generator.state b/clients/GitHub/etc/openapi-client-generator.state index 0defd3eb6d8..8bb52824af2 100644 --- a/clients/GitHub/etc/openapi-client-generator.state +++ b/clients/GitHub/etc/openapi-client-generator.state @@ -1,5 +1,5 @@ { - "specHash": "9cd6c8e7bead01c0c83af26875ff027b", + "specHash": "975ed3e1d762d10ff749fca3c2105b5a", "generatedFiles": { "files": [ { @@ -176,7 +176,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/OrganizationSecretScanningAlert.php", - "hash": "3618e654d47b21ad2c077b808a4049ed" + "hash": "54b6ee9579532fc997cf803999339876" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Actor.php", @@ -440,7 +440,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CodeScanningOrganizationAlertItems.php", - "hash": "f9e47f362a94c6dde74f8c7ac403eab5" + "hash": "79ad80bd4d1d12130ad047a3fdbdfb5e" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CodespaceMachine.php", @@ -848,11 +848,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CodeScanningAlertItems.php", - "hash": "5b6e09e37ceaed376dc1ebd56d3c15b2" + "hash": "6fe4546b93ddd809225a4019d0cf97ac" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CodeScanningAlert.php", - "hash": "7cb087c5ce4eb62822fbde23a3badfac" + "hash": "c5464c5d0e939f2bb7c3b591e5589824" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CodeScanningAlertSetState.php", @@ -1328,7 +1328,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/SecretScanningAlert.php", - "hash": "a42a1cee5991db08c5e89ae66fc5ebd0" + "hash": "d44cebe128925c61a91f7a80dbfcf9f8" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/SecretScanningAlertResolutionComment.php", @@ -1628,11 +1628,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertClosedByUser.php", - "hash": "4b8833d38eb509de39d34cca6f7c7ff5" + "hash": "fc1795c7795ef5b0eaa9a8ce947cf362" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertCreated.php", - "hash": "5824635ffd8c3f59e09c0aa1bbd2470d" + "hash": "47e6e06436094bd4e734cfe87ede3574" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertFixed.php", @@ -3352,7 +3352,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertClosedByUser\/Alert.php", - "hash": "38c854f3de72f7810179e918f031ac10" + "hash": "c9dc98310b56a50af04753f14600ce76" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertClosedByUser\/Alert\/Rule.php", @@ -3364,7 +3364,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertCreated\/Alert.php", - "hash": "2c862c36988ab608ebecfe26ee3ed2fc" + "hash": "15b1bae34ce8f1aadcaf93564c20d23b" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertCreated\/Alert\/Tool.php", @@ -5560,7 +5560,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Orgs.php", - "hash": "fb57ccbdc48e55ebd107262fd35da447" + "hash": "69c5de1d9c2ea9c9f4a47c99a158f37c" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Actions.php", @@ -5596,7 +5596,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Repos.php", - "hash": "f86b83693ea93e0e58523ea351016002" + "hash": "db17b23c5ac1efafd63ff36b1638e622" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Billing.php", @@ -24348,7 +24348,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Orgs.php", - "hash": "254036f9fbac1f1fef4d47c0ac4a1073" + "hash": "1bc691d9679fa961a5ccc46d0709bc50" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/RateLimit.php", @@ -24356,7 +24356,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Repos.php", - "hash": "5dd0f11097043ed3c3a06483ed906506" + "hash": "67d056bfd2d37dafcadec7322e9fb26b" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Users.php", @@ -24624,7 +24624,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Orgs.php", - "hash": "4059dd99657a10c4b9b37faf52aacc34" + "hash": "f38931e8b155a6c9dce5e8fcd2394c6b" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Packages.php", @@ -24632,7 +24632,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Repos.php", - "hash": "12b09c2e771cd10bde5a786238107288" + "hash": "82ae876f21fbe0e2cf915364acb7c738" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Activity.php", @@ -24852,15 +24852,15 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Six.php", - "hash": "29cca7635a6ae094716f95605ed2ef49" + "hash": "1f657d72925483e30400b4d03125ecaa" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Seven.php", - "hash": "cee75c72f4cf24374fc5ecf5f40abdb0" + "hash": "d344dc282b0dbc9a24f0a51d85a03ba7" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Eight.php", - "hash": "78ea6ac926677ffd02d2d2380f7bf45b" + "hash": "57353099b84fbd36b63a51d7a3a99dd7" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Nine.php", @@ -24956,11 +24956,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Six.php", - "hash": "4cf5eb8d6b9243befa96df8588ede644" + "hash": "a5061ea4823a62a9b695f2069666686c" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Seven.php", - "hash": "d5e736b608a30e5e23fd33620e7adf6d" + "hash": "be6f6537f1f4b57686f13d4657a37b03" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Eight.php", @@ -25992,7 +25992,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/CodeScanning\/Alerts\/AlertNumber.php", - "hash": "582517257072505879a986b37f247563" + "hash": "d3d328d9566c5a2a8937d46d4f5343b8" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/CodeScanning\/Alerts\/AlertNumber\/Instances.php", @@ -26572,7 +26572,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/SecretScanning\/Alerts\/AlertNumber.php", - "hash": "816594a45f59467d1c0c1447df669a32" + "hash": "dac9a838f10b5e36fb6a376819afc53e" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/SecretScanning\/Alerts\/AlertNumber\/Locations.php", @@ -27048,7 +27048,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrators.php", - "hash": "b18e385c22f18997f0e67844fffe5f75" + "hash": "627acdf6598fb53e73251e26d698c749" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/OrganizationSimpleWebhooks.php", @@ -27628,11 +27628,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/PHPStan\/ClientCallReturnTypes.php", - "hash": "7239ab56003d1fbe57bbb031a994720c" + "hash": "0d3db6688c9fae3081f04b53c53152cc" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Types\/ClientCallReturnTypes.php", - "hash": "ee331eaf657a4f78ca06869e4b0e6ecc" + "hash": "5c629eef52f39ab563b41d080fb37095" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/..\/etc\/phpstan-extension.neon", @@ -27940,7 +27940,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/CodeScanningAlert.php", - "hash": "7bb41a0c0b98973219dcd554c186333b" + "hash": "c7a7d16d9c1f03ce6f5868653ee9bfa2" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/CommitComment.php", @@ -31848,7 +31848,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Orgs\/GetOrgRulesetHistory.php", - "hash": "50adf3d1b110a6650689293b138266f5" + "hash": "8cd135bd54f7a5ade611c9f98125e4dd" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Orgs\/GetOrgRulesetHistoryTest.php", @@ -31860,7 +31860,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Orgs\/GetOrgRulesetHistoryListing.php", - "hash": "6b09d075bd9bc0993de72fe64ef15b7c" + "hash": "398b2b63c498b272f9cd4709a231eadd" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Orgs\/GetOrgRulesetHistoryListingTest.php", @@ -31872,7 +31872,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Orgs\/GetOrgRulesetVersion.php", - "hash": "fb58dd072af0f4e3f5dd9384d1059571" + "hash": "d21d60ea43d328a1f0dc6a1d0f77349b" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Orgs\/GetOrgRulesetVersionTest.php", @@ -31884,7 +31884,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Repos\/GetRepoRulesetHistory.php", - "hash": "8f23ace7c2d1f6ef5fb7addf001ceb7a" + "hash": "26a61998e619e5e3aced1506b498229b" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Repos\/GetRepoRulesetHistoryTest.php", @@ -31896,7 +31896,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Repos\/GetRepoRulesetHistoryListing.php", - "hash": "31ca89fbc35b18f48c7f41e10d6aeefd" + "hash": "3138ad5a249e83a2022614098ed10446" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Repos\/GetRepoRulesetHistoryListingTest.php", @@ -31908,7 +31908,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Repos\/GetRepoRulesetVersion.php", - "hash": "88ecf5ec825eddae81f9dac5cb31c77d" + "hash": "81d878dd0f139aa330e217e763e40c04" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Repos\/GetRepoRulesetVersionTest.php", @@ -31941,6 +31941,10 @@ { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Rulesets\/RulesetId\/History\/VersionId.php", "hash": "96515e82566b8efd7d1a8ff104df85aa" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertClosedByUser\/Alert\/DismissalApprovedBy.php", + "hash": "2d3e43a91657c1977300fdbc36d37723" } ] }, diff --git a/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/CodeScanning/Alerts/AlertNumber.php b/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/CodeScanning/Alerts/AlertNumber.php index ca8d2d428c5..7cc473187c2 100644 --- a/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/CodeScanning/Alerts/AlertNumber.php +++ b/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/CodeScanning/Alerts/AlertNumber.php @@ -266,6 +266,26 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Code $properties['mostRecentInstance'] = $value; after_mostRecentInstance: + + $value = $payload['dismissal_approved_by'] ?? null; + + if ($value === null) { + $properties['dismissalApprovedBy'] = null; + goto after_dismissalApprovedBy; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'dismissalApprovedBy'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['dismissalApprovedBy'] = $value; + + after_dismissalApprovedBy: } catch (Throwable $exception) { throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\CodeScanningAlert', $exception, stack: $this->hydrationStack); } @@ -1269,6 +1289,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema $mostRecentInstance = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CodeScanningAlertInstance($mostRecentInstance); after_mostRecentInstance: $result['most_recent_instance'] = $mostRecentInstance; + $dismissalApprovedBy = $object->dismissalApprovedBy; + + if ($dismissalApprovedBy === null) { + goto after_dismissalApprovedBy; + } + + $dismissalApprovedBy = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($dismissalApprovedBy); + after_dismissalApprovedBy: $result['dismissal_approved_by'] = $dismissalApprovedBy; + return $result; } diff --git a/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/SecretScanning/Alerts/AlertNumber.php b/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/SecretScanning/Alerts/AlertNumber.php index cb80205f647..b8bf142a833 100644 --- a/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/SecretScanning/Alerts/AlertNumber.php +++ b/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/SecretScanning/Alerts/AlertNumber.php @@ -344,6 +344,17 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Secr $properties['multiRepo'] = $value; after_multiRepo: + + $value = $payload['is_base64_encoded'] ?? null; + + if ($value === null) { + $properties['isBaseSixtyFourEncoded'] = null; + goto after_isBaseSixtyFourEncoded; + } + + $properties['isBaseSixtyFourEncoded'] = $value; + + after_isBaseSixtyFourEncoded: } catch (Throwable $exception) { throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SecretScanningAlert', $exception, stack: $this->hydrationStack); } @@ -968,6 +979,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_multiRepo: $result['multi_repo'] = $multiRepo; + $isBaseSixtyFourEncoded = $object->isBaseSixtyFourEncoded; + + if ($isBaseSixtyFourEncoded === null) { + goto after_isBaseSixtyFourEncoded; + } + + after_isBaseSixtyFourEncoded: $result['is_base64_encoded'] = $isBaseSixtyFourEncoded; + return $result; } diff --git a/clients/GitHub/src/Internal/Hydrator/WebHook/CodeScanningAlert.php b/clients/GitHub/src/Internal/Hydrator/WebHook/CodeScanningAlert.php index 1c85351cb68..5d636147b60 100644 --- a/clients/GitHub/src/Internal/Hydrator/WebHook/CodeScanningAlert.php +++ b/clients/GitHub/src/Internal/Hydrator/WebHook/CodeScanningAlert.php @@ -23,6 +23,7 @@ use ApiClients\Client\GitHub\Schema\WebhookCodeScanningAlertAppearedInBranch\Alert\Rule; use ApiClients\Client\GitHub\Schema\WebhookCodeScanningAlertAppearedInBranch\Alert\Tool; use ApiClients\Client\GitHub\Schema\WebhookCodeScanningAlertClosedByUser; +use ApiClients\Client\GitHub\Schema\WebhookCodeScanningAlertClosedByUser\Alert\DismissalApprovedBy; use ApiClients\Client\GitHub\Schema\WebhookCodeScanningAlertCreated; use ApiClients\Client\GitHub\Schema\WebhookCodeScanningAlertFixed; use ApiClients\Client\GitHub\Schema\WebhookCodeScanningAlertReopened; @@ -88,6 +89,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\WebhookCodeScanningAlertClosedByUser\Alert\MostRecentInstance\Message' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookCodeScanningAlertClosedByUser⚡️Alert⚡️MostRecentInstance⚡️Message($payload), 'ApiClients\Client\GitHub\Schema\WebhookCodeScanningAlertClosedByUser\Alert\Rule' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookCodeScanningAlertClosedByUser⚡️Alert⚡️Rule($payload), 'ApiClients\Client\GitHub\Schema\WebhookCodeScanningAlertClosedByUser\Alert\Tool' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookCodeScanningAlertClosedByUser⚡️Alert⚡️Tool($payload), + 'ApiClients\Client\GitHub\Schema\WebhookCodeScanningAlertClosedByUser\Alert\DismissalApprovedBy' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookCodeScanningAlertClosedByUser⚡️Alert⚡️DismissalApprovedBy($payload), 'ApiClients\Client\GitHub\Schema\WebhookCodeScanningAlertCreated' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookCodeScanningAlertCreated($payload), 'ApiClients\Client\GitHub\Schema\WebhookCodeScanningAlertCreated\Alert' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookCodeScanningAlertCreated⚡️Alert($payload), 'ApiClients\Client\GitHub\Schema\WebhookCodeScanningAlertCreated\Alert\MostRecentInstance' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookCodeScanningAlertCreated⚡️Alert⚡️MostRecentInstance($payload), @@ -4641,6 +4643,26 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh $properties['url'] = $value; after_url: + + $value = $payload['dismissal_approved_by'] ?? null; + + if ($value === null) { + $properties['dismissalApprovedBy'] = null; + goto after_dismissalApprovedBy; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'dismissalApprovedBy'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookCodeScanningAlertClosedByUser⚡️Alert⚡️DismissalApprovedBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['dismissalApprovedBy'] = $value; + + after_dismissalApprovedBy: } catch (Throwable $exception) { throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\WebhookCodeScanningAlertClosedByUser\Alert', $exception, stack: $this->hydrationStack); } @@ -5316,6 +5338,267 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh } } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookCodeScanningAlertClosedByUser⚡️Alert⚡️DismissalApprovedBy(array $payload): DismissalApprovedBy + { + $properties = []; + $missingFields = []; + try { + $value = $payload['avatar_url'] ?? null; + + if ($value === null) { + $properties['avatarUrl'] = null; + goto after_avatarUrl; + } + + $properties['avatarUrl'] = $value; + + after_avatarUrl: + + $value = $payload['deleted'] ?? null; + + if ($value === null) { + $properties['deleted'] = null; + goto after_deleted; + } + + $properties['deleted'] = $value; + + after_deleted: + + $value = $payload['email'] ?? null; + + if ($value === null) { + $properties['email'] = null; + goto after_email; + } + + $properties['email'] = $value; + + after_email: + + $value = $payload['events_url'] ?? null; + + if ($value === null) { + $properties['eventsUrl'] = null; + goto after_eventsUrl; + } + + $properties['eventsUrl'] = $value; + + after_eventsUrl: + + $value = $payload['followers_url'] ?? null; + + if ($value === null) { + $properties['followersUrl'] = null; + goto after_followersUrl; + } + + $properties['followersUrl'] = $value; + + after_followersUrl: + + $value = $payload['following_url'] ?? null; + + if ($value === null) { + $properties['followingUrl'] = null; + goto after_followingUrl; + } + + $properties['followingUrl'] = $value; + + after_followingUrl: + + $value = $payload['gists_url'] ?? null; + + if ($value === null) { + $properties['gistsUrl'] = null; + goto after_gistsUrl; + } + + $properties['gistsUrl'] = $value; + + after_gistsUrl: + + $value = $payload['gravatar_id'] ?? null; + + if ($value === null) { + $properties['gravatarId'] = null; + goto after_gravatarId; + } + + $properties['gravatarId'] = $value; + + after_gravatarId: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $properties['htmlUrl'] = null; + goto after_htmlUrl; + } + + $properties['htmlUrl'] = $value; + + after_htmlUrl: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['login'] ?? null; + + if ($value === null) { + $missingFields[] = 'login'; + goto after_login; + } + + $properties['login'] = $value; + + after_login: + + $value = $payload['name'] ?? null; + + if ($value === null) { + $properties['name'] = null; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $properties['nodeId'] = null; + goto after_nodeId; + } + + $properties['nodeId'] = $value; + + after_nodeId: + + $value = $payload['organizations_url'] ?? null; + + if ($value === null) { + $properties['organizationsUrl'] = null; + goto after_organizationsUrl; + } + + $properties['organizationsUrl'] = $value; + + after_organizationsUrl: + + $value = $payload['received_events_url'] ?? null; + + if ($value === null) { + $properties['receivedEventsUrl'] = null; + goto after_receivedEventsUrl; + } + + $properties['receivedEventsUrl'] = $value; + + after_receivedEventsUrl: + + $value = $payload['repos_url'] ?? null; + + if ($value === null) { + $properties['reposUrl'] = null; + goto after_reposUrl; + } + + $properties['reposUrl'] = $value; + + after_reposUrl: + + $value = $payload['site_admin'] ?? null; + + if ($value === null) { + $properties['siteAdmin'] = null; + goto after_siteAdmin; + } + + $properties['siteAdmin'] = $value; + + after_siteAdmin: + + $value = $payload['starred_url'] ?? null; + + if ($value === null) { + $properties['starredUrl'] = null; + goto after_starredUrl; + } + + $properties['starredUrl'] = $value; + + after_starredUrl: + + $value = $payload['subscriptions_url'] ?? null; + + if ($value === null) { + $properties['subscriptionsUrl'] = null; + goto after_subscriptionsUrl; + } + + $properties['subscriptionsUrl'] = $value; + + after_subscriptionsUrl: + + $value = $payload['type'] ?? null; + + if ($value === null) { + $properties['type'] = null; + goto after_type; + } + + $properties['type'] = $value; + + after_type: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $properties['url'] = null; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['user_view_type'] ?? null; + + if ($value === null) { + $properties['userViewType'] = null; + goto after_userViewType; + } + + $properties['userViewType'] = $value; + + after_userViewType: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\WebhookCodeScanningAlertClosedByUser\Alert\DismissalApprovedBy', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(DismissalApprovedBy::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new DismissalApprovedBy(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\WebhookCodeScanningAlertClosedByUser\Alert\DismissalApprovedBy', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookCodeScanningAlertCreated(array $payload): WebhookCodeScanningAlertCreated { $properties = []; @@ -5684,6 +5967,17 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh $properties['url'] = $value; after_url: + + $value = $payload['dismissal_approved_by'] ?? null; + + if ($value === null) { + $missingFields[] = 'dismissal_approved_by'; + goto after_dismissalApprovedBy; + } + + $properties['dismissalApprovedBy'] = $value; + + after_dismissalApprovedBy: } catch (Throwable $exception) { throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\WebhookCodeScanningAlertCreated\Alert', $exception, stack: $this->hydrationStack); } @@ -8699,6 +8993,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\WebhookCodeScanningAlertClosedByUser\Alert\MostRecentInstance\Message' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookCodeScanningAlertClosedByUser⚡️Alert⚡️MostRecentInstance⚡️Message($object), 'ApiClients\Client\GitHub\Schema\WebhookCodeScanningAlertClosedByUser\Alert\Rule' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookCodeScanningAlertClosedByUser⚡️Alert⚡️Rule($object), 'ApiClients\Client\GitHub\Schema\WebhookCodeScanningAlertClosedByUser\Alert\Tool' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookCodeScanningAlertClosedByUser⚡️Alert⚡️Tool($object), + 'ApiClients\Client\GitHub\Schema\WebhookCodeScanningAlertClosedByUser\Alert\DismissalApprovedBy' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookCodeScanningAlertClosedByUser⚡️Alert⚡️DismissalApprovedBy($object), 'ApiClients\Client\GitHub\Schema\WebhookCodeScanningAlertCreated' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookCodeScanningAlertCreated($object), 'ApiClients\Client\GitHub\Schema\WebhookCodeScanningAlertCreated\Alert' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookCodeScanningAlertCreated⚡️Alert($object), 'ApiClients\Client\GitHub\Schema\WebhookCodeScanningAlertCreated\Alert\MostRecentInstance' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookCodeScanningAlertCreated⚡️Alert⚡️MostRecentInstance($object), @@ -11102,6 +11397,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema $url = $object->url; after_url: $result['url'] = $url; + $dismissalApprovedBy = $object->dismissalApprovedBy; + + if ($dismissalApprovedBy === null) { + goto after_dismissalApprovedBy; + } + + $dismissalApprovedBy = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookCodeScanningAlertClosedByUser⚡️Alert⚡️DismissalApprovedBy($dismissalApprovedBy); + after_dismissalApprovedBy: $result['dismissal_approved_by'] = $dismissalApprovedBy; + return $result; } @@ -11508,6 +11812,180 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookCodeScanningAlertClosedByUser⚡️Alert⚡️DismissalApprovedBy(mixed $object): mixed + { + assert($object instanceof DismissalApprovedBy); + $result = []; + + $avatarUrl = $object->avatarUrl; + + if ($avatarUrl === null) { + goto after_avatarUrl; + } + + after_avatarUrl: $result['avatar_url'] = $avatarUrl; + + $deleted = $object->deleted; + + if ($deleted === null) { + goto after_deleted; + } + + after_deleted: $result['deleted'] = $deleted; + + $email = $object->email; + + if ($email === null) { + goto after_email; + } + + after_email: $result['email'] = $email; + + $eventsUrl = $object->eventsUrl; + + if ($eventsUrl === null) { + goto after_eventsUrl; + } + + after_eventsUrl: $result['events_url'] = $eventsUrl; + + $followersUrl = $object->followersUrl; + + if ($followersUrl === null) { + goto after_followersUrl; + } + + after_followersUrl: $result['followers_url'] = $followersUrl; + + $followingUrl = $object->followingUrl; + + if ($followingUrl === null) { + goto after_followingUrl; + } + + after_followingUrl: $result['following_url'] = $followingUrl; + + $gistsUrl = $object->gistsUrl; + + if ($gistsUrl === null) { + goto after_gistsUrl; + } + + after_gistsUrl: $result['gists_url'] = $gistsUrl; + + $gravatarId = $object->gravatarId; + + if ($gravatarId === null) { + goto after_gravatarId; + } + + after_gravatarId: $result['gravatar_id'] = $gravatarId; + + $htmlUrl = $object->htmlUrl; + + if ($htmlUrl === null) { + goto after_htmlUrl; + } + + after_htmlUrl: $result['html_url'] = $htmlUrl; + + $id = $object->id; + after_id: $result['id'] = $id; + + $login = $object->login; + after_login: $result['login'] = $login; + + $name = $object->name; + + if ($name === null) { + goto after_name; + } + + after_name: $result['name'] = $name; + + $nodeId = $object->nodeId; + + if ($nodeId === null) { + goto after_nodeId; + } + + after_nodeId: $result['node_id'] = $nodeId; + + $organizationsUrl = $object->organizationsUrl; + + if ($organizationsUrl === null) { + goto after_organizationsUrl; + } + + after_organizationsUrl: $result['organizations_url'] = $organizationsUrl; + + $receivedEventsUrl = $object->receivedEventsUrl; + + if ($receivedEventsUrl === null) { + goto after_receivedEventsUrl; + } + + after_receivedEventsUrl: $result['received_events_url'] = $receivedEventsUrl; + + $reposUrl = $object->reposUrl; + + if ($reposUrl === null) { + goto after_reposUrl; + } + + after_reposUrl: $result['repos_url'] = $reposUrl; + + $siteAdmin = $object->siteAdmin; + + if ($siteAdmin === null) { + goto after_siteAdmin; + } + + after_siteAdmin: $result['site_admin'] = $siteAdmin; + + $starredUrl = $object->starredUrl; + + if ($starredUrl === null) { + goto after_starredUrl; + } + + after_starredUrl: $result['starred_url'] = $starredUrl; + + $subscriptionsUrl = $object->subscriptionsUrl; + + if ($subscriptionsUrl === null) { + goto after_subscriptionsUrl; + } + + after_subscriptionsUrl: $result['subscriptions_url'] = $subscriptionsUrl; + + $type = $object->type; + + if ($type === null) { + goto after_type; + } + + after_type: $result['type'] = $type; + + $url = $object->url; + + if ($url === null) { + goto after_url; + } + + after_url: $result['url'] = $url; + + $userViewType = $object->userViewType; + + if ($userViewType === null) { + goto after_userViewType; + } + + after_userViewType: $result['user_view_type'] = $userViewType; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookCodeScanningAlertCreated(mixed $object): mixed { assert($object instanceof WebhookCodeScanningAlertCreated); @@ -11652,6 +12130,9 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema $url = $object->url; after_url: $result['url'] = $url; + $dismissalApprovedBy = $object->dismissalApprovedBy; + after_dismissalApprovedBy: $result['dismissal_approved_by'] = $dismissalApprovedBy; + return $result; } diff --git a/clients/GitHub/src/Internal/Hydrators.php b/clients/GitHub/src/Internal/Hydrators.php index 2f76de6a1e1..c3888352872 100644 --- a/clients/GitHub/src/Internal/Hydrators.php +++ b/clients/GitHub/src/Internal/Hydrators.php @@ -1051,7 +1051,7 @@ public function hydrateObject(string $className, array $payload): object '\\ApiClients\\Client\\GitHub\\Schema\\WebhookBranchProtectionRuleCreated', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksRule', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookBranchProtectionRuleDeleted', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookBranchProtectionRuleEdited', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookBranchProtectionRuleEdited\\Changes', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookBranchProtectionRuleEdited\\Changes\\AdminEnforced', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookBranchProtectionRuleEdited\\Changes\\AuthorizedActorNames', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookBranchProtectionRuleEdited\\Changes\\AuthorizedActorsOnly', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookBranchProtectionRuleEdited\\Changes\\AuthorizedDismissalActorsOnly', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookBranchProtectionRuleEdited\\Changes\\LinearHistoryRequirementEnforcementLevel', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookBranchProtectionRuleEdited\\Changes\\LockBranchEnforcementLevel', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookBranchProtectionRuleEdited\\Changes\\LockAllowsForkSync', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookBranchProtectionRuleEdited\\Changes\\PullRequestReviewsEnforcementLevel', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookBranchProtectionRuleEdited\\Changes\\RequireLastPushApproval', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookBranchProtectionRuleEdited\\Changes\\RequiredStatusChecks', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookBranchProtectionRuleEdited\\Changes\\RequiredStatusChecksEnforcementLevel' => $this->getObjectMapperWebHook🪝BranchProtectionRule()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckRunCompleted', '\\ApiClients\\Client\\GitHub\\Schema\\CheckRunWithSimpleCheckSuite', '\\ApiClients\\Client\\GitHub\\Schema\\SimpleCheckSuite', '\\ApiClients\\Client\\GitHub\\Schema\\CheckRunWithSimpleCheckSuite\\Output', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckRunCompletedFormEncoded', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckRunCreated', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckRunCreatedFormEncoded', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckRunRequestedAction', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckRunRequestedAction\\RequestedAction', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckRunRequestedActionFormEncoded', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckRunRerequested', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckRunRerequestedFormEncoded' => $this->getObjectMapperWebHook🪝CheckRun()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckSuiteCompleted', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckSuiteCompleted\\CheckSuite', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckSuiteCompleted\\CheckSuite\\App', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckSuiteCompleted\\CheckSuite\\App\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckSuiteCompleted\\CheckSuite\\App\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckSuiteCompleted\\CheckSuite\\HeadCommit', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckSuiteCompleted\\CheckSuite\\HeadCommit\\Author', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckSuiteCompleted\\CheckSuite\\HeadCommit\\Committer', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckSuiteRequested', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckSuiteRequested\\CheckSuite', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckSuiteRequested\\CheckSuite\\App', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckSuiteRequested\\CheckSuite\\App\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckSuiteRequested\\CheckSuite\\App\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckSuiteRequested\\CheckSuite\\HeadCommit', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckSuiteRequested\\CheckSuite\\HeadCommit\\Author', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckSuiteRequested\\CheckSuite\\HeadCommit\\Committer', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckSuiteRerequested', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckSuiteRerequested\\CheckSuite', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckSuiteRerequested\\CheckSuite\\App', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckSuiteRerequested\\CheckSuite\\App\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckSuiteRerequested\\CheckSuite\\App\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckSuiteRerequested\\CheckSuite\\HeadCommit', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckSuiteRerequested\\CheckSuite\\HeadCommit\\Author', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckSuiteRerequested\\CheckSuite\\HeadCommit\\Committer' => $this->getObjectMapperWebHook🪝CheckSuite()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertAppearedInBranch', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertAppearedInBranch\\Alert', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertAppearedInBranch\\Alert\\DismissedBy', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertAppearedInBranch\\Alert\\MostRecentInstance', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertAppearedInBranch\\Alert\\MostRecentInstance\\Location', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertAppearedInBranch\\Alert\\MostRecentInstance\\Message', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertAppearedInBranch\\Alert\\Rule', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertAppearedInBranch\\Alert\\Tool', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertClosedByUser', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertClosedByUser\\Alert', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertClosedByUser\\Alert\\DismissedBy', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertClosedByUser\\Alert\\MostRecentInstance', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertClosedByUser\\Alert\\MostRecentInstance\\Location', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertClosedByUser\\Alert\\MostRecentInstance\\Message', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertClosedByUser\\Alert\\Rule', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertClosedByUser\\Alert\\Tool', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertCreated', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertCreated\\Alert', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertCreated\\Alert\\MostRecentInstance', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertCreated\\Alert\\MostRecentInstance\\Location', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertCreated\\Alert\\MostRecentInstance\\Message', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertCreated\\Alert\\Rule', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertCreated\\Alert\\Tool', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertFixed', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertFixed\\Alert', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertFixed\\Alert\\DismissedBy', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertFixed\\Alert\\MostRecentInstance', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertFixed\\Alert\\MostRecentInstance\\Location', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertFixed\\Alert\\MostRecentInstance\\Message', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertFixed\\Alert\\Rule', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertFixed\\Alert\\Tool', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertReopened', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertReopened\\Alert', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertReopened\\Alert\\DismissedBy', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertReopened\\Alert\\MostRecentInstance', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertReopened\\Alert\\MostRecentInstance\\Location', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertReopened\\Alert\\MostRecentInstance\\Message', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertReopened\\Alert\\Rule', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertReopened\\Alert\\Tool', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertReopenedByUser', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertReopenedByUser\\Alert', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertReopenedByUser\\Alert\\MostRecentInstance', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertReopenedByUser\\Alert\\MostRecentInstance\\Location', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertReopenedByUser\\Alert\\MostRecentInstance\\Message', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertReopenedByUser\\Alert\\Rule', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertReopenedByUser\\Alert\\Tool' => $this->getObjectMapperWebHook🪝CodeScanningAlert()->hydrateObject($className, $payload), + '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertAppearedInBranch', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertAppearedInBranch\\Alert', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertAppearedInBranch\\Alert\\DismissedBy', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertAppearedInBranch\\Alert\\MostRecentInstance', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertAppearedInBranch\\Alert\\MostRecentInstance\\Location', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertAppearedInBranch\\Alert\\MostRecentInstance\\Message', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertAppearedInBranch\\Alert\\Rule', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertAppearedInBranch\\Alert\\Tool', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertClosedByUser', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertClosedByUser\\Alert', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertClosedByUser\\Alert\\DismissedBy', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertClosedByUser\\Alert\\MostRecentInstance', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertClosedByUser\\Alert\\MostRecentInstance\\Location', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertClosedByUser\\Alert\\MostRecentInstance\\Message', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertClosedByUser\\Alert\\Rule', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertClosedByUser\\Alert\\Tool', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertClosedByUser\\Alert\\DismissalApprovedBy', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertCreated', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertCreated\\Alert', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertCreated\\Alert\\MostRecentInstance', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertCreated\\Alert\\MostRecentInstance\\Location', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertCreated\\Alert\\MostRecentInstance\\Message', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertCreated\\Alert\\Rule', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertCreated\\Alert\\Tool', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertFixed', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertFixed\\Alert', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertFixed\\Alert\\DismissedBy', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertFixed\\Alert\\MostRecentInstance', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertFixed\\Alert\\MostRecentInstance\\Location', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertFixed\\Alert\\MostRecentInstance\\Message', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertFixed\\Alert\\Rule', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertFixed\\Alert\\Tool', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertReopened', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertReopened\\Alert', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertReopened\\Alert\\DismissedBy', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertReopened\\Alert\\MostRecentInstance', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertReopened\\Alert\\MostRecentInstance\\Location', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertReopened\\Alert\\MostRecentInstance\\Message', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertReopened\\Alert\\Rule', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertReopened\\Alert\\Tool', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertReopenedByUser', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertReopenedByUser\\Alert', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertReopenedByUser\\Alert\\MostRecentInstance', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertReopenedByUser\\Alert\\MostRecentInstance\\Location', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertReopenedByUser\\Alert\\MostRecentInstance\\Message', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertReopenedByUser\\Alert\\Rule', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertReopenedByUser\\Alert\\Tool' => $this->getObjectMapperWebHook🪝CodeScanningAlert()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCommitCommentCreated', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCommitCommentCreated\\Comment', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCommitCommentCreated\\Comment\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCommitCommentCreated\\Comment\\User' => $this->getObjectMapperWebHook🪝CommitComment()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCreate' => $this->getObjectMapperWebHook🪝Create()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCustomPropertyCreated', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCustomPropertyDeleted', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCustomPropertyDeleted\\Definition', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCustomPropertyUpdated' => $this->getObjectMapperWebHook🪝CustomProperty()->hydrateObject($className, $payload), @@ -1429,7 +1429,7 @@ public function serializeObjectOfType(object $object, string $className): mixed '\\ApiClients\\Client\\GitHub\\Schema\\WebhookBranchProtectionRuleCreated', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksRule', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookBranchProtectionRuleDeleted', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookBranchProtectionRuleEdited', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookBranchProtectionRuleEdited\\Changes', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookBranchProtectionRuleEdited\\Changes\\AdminEnforced', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookBranchProtectionRuleEdited\\Changes\\AuthorizedActorNames', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookBranchProtectionRuleEdited\\Changes\\AuthorizedActorsOnly', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookBranchProtectionRuleEdited\\Changes\\AuthorizedDismissalActorsOnly', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookBranchProtectionRuleEdited\\Changes\\LinearHistoryRequirementEnforcementLevel', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookBranchProtectionRuleEdited\\Changes\\LockBranchEnforcementLevel', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookBranchProtectionRuleEdited\\Changes\\LockAllowsForkSync', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookBranchProtectionRuleEdited\\Changes\\PullRequestReviewsEnforcementLevel', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookBranchProtectionRuleEdited\\Changes\\RequireLastPushApproval', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookBranchProtectionRuleEdited\\Changes\\RequiredStatusChecks', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookBranchProtectionRuleEdited\\Changes\\RequiredStatusChecksEnforcementLevel' => $this->getObjectMapperWebHook🪝BranchProtectionRule()->serializeObject($object), '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckRunCompleted', '\\ApiClients\\Client\\GitHub\\Schema\\CheckRunWithSimpleCheckSuite', '\\ApiClients\\Client\\GitHub\\Schema\\SimpleCheckSuite', '\\ApiClients\\Client\\GitHub\\Schema\\CheckRunWithSimpleCheckSuite\\Output', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckRunCompletedFormEncoded', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckRunCreated', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckRunCreatedFormEncoded', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckRunRequestedAction', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckRunRequestedAction\\RequestedAction', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckRunRequestedActionFormEncoded', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckRunRerequested', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckRunRerequestedFormEncoded' => $this->getObjectMapperWebHook🪝CheckRun()->serializeObject($object), '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckSuiteCompleted', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckSuiteCompleted\\CheckSuite', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckSuiteCompleted\\CheckSuite\\App', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckSuiteCompleted\\CheckSuite\\App\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckSuiteCompleted\\CheckSuite\\App\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckSuiteCompleted\\CheckSuite\\HeadCommit', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckSuiteCompleted\\CheckSuite\\HeadCommit\\Author', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckSuiteCompleted\\CheckSuite\\HeadCommit\\Committer', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckSuiteRequested', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckSuiteRequested\\CheckSuite', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckSuiteRequested\\CheckSuite\\App', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckSuiteRequested\\CheckSuite\\App\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckSuiteRequested\\CheckSuite\\App\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckSuiteRequested\\CheckSuite\\HeadCommit', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckSuiteRequested\\CheckSuite\\HeadCommit\\Author', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckSuiteRequested\\CheckSuite\\HeadCommit\\Committer', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckSuiteRerequested', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckSuiteRerequested\\CheckSuite', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckSuiteRerequested\\CheckSuite\\App', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckSuiteRerequested\\CheckSuite\\App\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckSuiteRerequested\\CheckSuite\\App\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckSuiteRerequested\\CheckSuite\\HeadCommit', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckSuiteRerequested\\CheckSuite\\HeadCommit\\Author', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCheckSuiteRerequested\\CheckSuite\\HeadCommit\\Committer' => $this->getObjectMapperWebHook🪝CheckSuite()->serializeObject($object), - '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertAppearedInBranch', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertAppearedInBranch\\Alert', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertAppearedInBranch\\Alert\\DismissedBy', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertAppearedInBranch\\Alert\\MostRecentInstance', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertAppearedInBranch\\Alert\\MostRecentInstance\\Location', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertAppearedInBranch\\Alert\\MostRecentInstance\\Message', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertAppearedInBranch\\Alert\\Rule', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertAppearedInBranch\\Alert\\Tool', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertClosedByUser', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertClosedByUser\\Alert', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertClosedByUser\\Alert\\DismissedBy', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertClosedByUser\\Alert\\MostRecentInstance', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertClosedByUser\\Alert\\MostRecentInstance\\Location', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertClosedByUser\\Alert\\MostRecentInstance\\Message', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertClosedByUser\\Alert\\Rule', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertClosedByUser\\Alert\\Tool', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertCreated', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertCreated\\Alert', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertCreated\\Alert\\MostRecentInstance', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertCreated\\Alert\\MostRecentInstance\\Location', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertCreated\\Alert\\MostRecentInstance\\Message', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertCreated\\Alert\\Rule', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertCreated\\Alert\\Tool', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertFixed', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertFixed\\Alert', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertFixed\\Alert\\DismissedBy', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertFixed\\Alert\\MostRecentInstance', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertFixed\\Alert\\MostRecentInstance\\Location', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertFixed\\Alert\\MostRecentInstance\\Message', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertFixed\\Alert\\Rule', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertFixed\\Alert\\Tool', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertReopened', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertReopened\\Alert', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertReopened\\Alert\\DismissedBy', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertReopened\\Alert\\MostRecentInstance', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertReopened\\Alert\\MostRecentInstance\\Location', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertReopened\\Alert\\MostRecentInstance\\Message', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertReopened\\Alert\\Rule', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertReopened\\Alert\\Tool', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertReopenedByUser', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertReopenedByUser\\Alert', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertReopenedByUser\\Alert\\MostRecentInstance', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertReopenedByUser\\Alert\\MostRecentInstance\\Location', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertReopenedByUser\\Alert\\MostRecentInstance\\Message', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertReopenedByUser\\Alert\\Rule', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertReopenedByUser\\Alert\\Tool' => $this->getObjectMapperWebHook🪝CodeScanningAlert()->serializeObject($object), + '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertAppearedInBranch', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertAppearedInBranch\\Alert', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertAppearedInBranch\\Alert\\DismissedBy', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertAppearedInBranch\\Alert\\MostRecentInstance', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertAppearedInBranch\\Alert\\MostRecentInstance\\Location', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertAppearedInBranch\\Alert\\MostRecentInstance\\Message', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertAppearedInBranch\\Alert\\Rule', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertAppearedInBranch\\Alert\\Tool', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertClosedByUser', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertClosedByUser\\Alert', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertClosedByUser\\Alert\\DismissedBy', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertClosedByUser\\Alert\\MostRecentInstance', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertClosedByUser\\Alert\\MostRecentInstance\\Location', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertClosedByUser\\Alert\\MostRecentInstance\\Message', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertClosedByUser\\Alert\\Rule', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertClosedByUser\\Alert\\Tool', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertClosedByUser\\Alert\\DismissalApprovedBy', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertCreated', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertCreated\\Alert', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertCreated\\Alert\\MostRecentInstance', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertCreated\\Alert\\MostRecentInstance\\Location', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertCreated\\Alert\\MostRecentInstance\\Message', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertCreated\\Alert\\Rule', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertCreated\\Alert\\Tool', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertFixed', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertFixed\\Alert', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertFixed\\Alert\\DismissedBy', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertFixed\\Alert\\MostRecentInstance', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertFixed\\Alert\\MostRecentInstance\\Location', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertFixed\\Alert\\MostRecentInstance\\Message', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertFixed\\Alert\\Rule', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertFixed\\Alert\\Tool', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertReopened', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertReopened\\Alert', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertReopened\\Alert\\DismissedBy', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertReopened\\Alert\\MostRecentInstance', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertReopened\\Alert\\MostRecentInstance\\Location', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertReopened\\Alert\\MostRecentInstance\\Message', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertReopened\\Alert\\Rule', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertReopened\\Alert\\Tool', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertReopenedByUser', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertReopenedByUser\\Alert', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertReopenedByUser\\Alert\\MostRecentInstance', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertReopenedByUser\\Alert\\MostRecentInstance\\Location', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertReopenedByUser\\Alert\\MostRecentInstance\\Message', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertReopenedByUser\\Alert\\Rule', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCodeScanningAlertReopenedByUser\\Alert\\Tool' => $this->getObjectMapperWebHook🪝CodeScanningAlert()->serializeObject($object), '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCommitCommentCreated', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCommitCommentCreated\\Comment', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCommitCommentCreated\\Comment\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCommitCommentCreated\\Comment\\User' => $this->getObjectMapperWebHook🪝CommitComment()->serializeObject($object), '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCreate' => $this->getObjectMapperWebHook🪝Create()->serializeObject($object), '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCustomPropertyCreated', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCustomPropertyDeleted', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCustomPropertyDeleted\\Definition', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookCustomPropertyUpdated' => $this->getObjectMapperWebHook🪝CustomProperty()->serializeObject($object), diff --git a/clients/GitHub/src/Internal/Operator/Orgs/GetOrgRulesetHistory.php b/clients/GitHub/src/Internal/Operator/Orgs/GetOrgRulesetHistory.php index 9c79e5070e3..af3ef69a228 100644 --- a/clients/GitHub/src/Internal/Operator/Orgs/GetOrgRulesetHistory.php +++ b/clients/GitHub/src/Internal/Operator/Orgs/GetOrgRulesetHistory.php @@ -24,7 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $org, int $rulesetId, int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHub\Internal\Operation\Orgs\GetOrgRulesetHistory($this->responseSchemaValidator, $this->hydrator, $org, $rulesetId, $perPage, $page); diff --git a/clients/GitHub/src/Internal/Operator/Orgs/GetOrgRulesetHistoryListing.php b/clients/GitHub/src/Internal/Operator/Orgs/GetOrgRulesetHistoryListing.php index 713fa48c327..9e27bc4196a 100644 --- a/clients/GitHub/src/Internal/Operator/Orgs/GetOrgRulesetHistoryListing.php +++ b/clients/GitHub/src/Internal/Operator/Orgs/GetOrgRulesetHistoryListing.php @@ -24,7 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $org, int $rulesetId, int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHub\Internal\Operation\Orgs\GetOrgRulesetHistoryListing($this->responseSchemaValidator, $this->hydrator, $org, $rulesetId, $perPage, $page); diff --git a/clients/GitHub/src/Internal/Operator/Orgs/GetOrgRulesetVersion.php b/clients/GitHub/src/Internal/Operator/Orgs/GetOrgRulesetVersion.php index 133695990e3..60c5ed3df36 100644 --- a/clients/GitHub/src/Internal/Operator/Orgs/GetOrgRulesetVersion.php +++ b/clients/GitHub/src/Internal/Operator/Orgs/GetOrgRulesetVersion.php @@ -24,6 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } + /** @return */ public function call(string $org, int $rulesetId, int $versionId): RulesetVersion { $operation = new \ApiClients\Client\GitHub\Internal\Operation\Orgs\GetOrgRulesetVersion($this->responseSchemaValidator, $this->hydrator, $org, $rulesetId, $versionId); diff --git a/clients/GitHub/src/Internal/Operator/Repos/GetRepoRulesetHistory.php b/clients/GitHub/src/Internal/Operator/Repos/GetRepoRulesetHistory.php index c3777318a97..32df0c6bb9d 100644 --- a/clients/GitHub/src/Internal/Operator/Repos/GetRepoRulesetHistory.php +++ b/clients/GitHub/src/Internal/Operator/Repos/GetRepoRulesetHistory.php @@ -24,7 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $owner, string $repo, int $rulesetId, int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHub\Internal\Operation\Repos\GetRepoRulesetHistory($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $rulesetId, $perPage, $page); diff --git a/clients/GitHub/src/Internal/Operator/Repos/GetRepoRulesetHistoryListing.php b/clients/GitHub/src/Internal/Operator/Repos/GetRepoRulesetHistoryListing.php index b22f9b4a78a..787a64c11da 100644 --- a/clients/GitHub/src/Internal/Operator/Repos/GetRepoRulesetHistoryListing.php +++ b/clients/GitHub/src/Internal/Operator/Repos/GetRepoRulesetHistoryListing.php @@ -24,7 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $owner, string $repo, int $rulesetId, int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHub\Internal\Operation\Repos\GetRepoRulesetHistoryListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $rulesetId, $perPage, $page); diff --git a/clients/GitHub/src/Internal/Operator/Repos/GetRepoRulesetVersion.php b/clients/GitHub/src/Internal/Operator/Repos/GetRepoRulesetVersion.php index 1aad4d4954b..46e65b28a43 100644 --- a/clients/GitHub/src/Internal/Operator/Repos/GetRepoRulesetVersion.php +++ b/clients/GitHub/src/Internal/Operator/Repos/GetRepoRulesetVersion.php @@ -24,6 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } + /** @return */ public function call(string $owner, string $repo, int $rulesetId, int $versionId): RulesetVersion { $operation = new \ApiClients\Client\GitHub\Internal\Operation\Repos\GetRepoRulesetVersion($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $rulesetId, $versionId); diff --git a/clients/GitHub/src/Internal/Router/Get/Eight.php b/clients/GitHub/src/Internal/Router/Get/Eight.php index 442fde936c1..a28a03c09e1 100644 --- a/clients/GitHub/src/Internal/Router/Get/Eight.php +++ b/clients/GitHub/src/Internal/Router/Get/Eight.php @@ -38,7 +38,7 @@ public function __construct(private Routers $routers) { } - /** @return Observable||Observable|Observable|Observable|Observable|Observable|Observable|Schema\RulesetVersion|Observable|WithoutBody */ + /** @return Observable||Observable|Observable|Observable|Observable|Observable|Observable|Observable|WithoutBody */ public function call(string $call, array $params, array $pathChunks): iterable|ApiInsightsSummaryStats|PackageVersion|TeamRepository|WithoutBody|OidcCustomSubRepo|Ok|Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListJobsForWorkflowRun\Response\ApplicationJson\Ok\Application\Json|WorkflowRunUsage|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListWorkflowRuns\Response\ApplicationJson\Ok\Application\Json|WorkflowUsage|ProtectedBranchAdminEnforced|ProtectedBranchPullRequestReview|StatusCheckPolicy|BranchRestrictionPolicy|CodeScanningAutofix|CodeScanningCodeqlDatabase|CodeScanningVariantAnalysis|DeploymentStatus|DeploymentBranchPolicy|\ApiClients\Client\GitHub\Schema\Operations\Repos\ListCustomDeploymentRuleIntegrations\Response\ApplicationJson\Ok|DeploymentProtectionRule|ActionsPublicKey|ActionsSecret|ActionsVariable|HookDelivery|PullRequestReview|RulesetVersion { if ($pathChunks[0] === '') { diff --git a/clients/GitHub/src/Internal/Router/Get/Orgs.php b/clients/GitHub/src/Internal/Router/Get/Orgs.php index 266ef0406ce..f4f50ddfbb1 100644 --- a/clients/GitHub/src/Internal/Router/Get/Orgs.php +++ b/clients/GitHub/src/Internal/Router/Get/Orgs.php @@ -1022,7 +1022,7 @@ public function getCustomProperty(array $params): CustomProperty return $operator->call($arguments['org'], $arguments['custom_property_name']); } - /** @return iterable */ + /** @return Observable */ public function getOrgRulesetHistory(array $params): iterable { $arguments = []; @@ -1082,6 +1082,7 @@ public function getWebhookDelivery(array $params): HookDelivery return $operator->call($arguments['org'], $arguments['hook_id'], $arguments['delivery_id']); } + /** @return */ public function getOrgRulesetVersion(array $params): RulesetVersion { $arguments = []; diff --git a/clients/GitHub/src/Internal/Router/Get/Repos.php b/clients/GitHub/src/Internal/Router/Get/Repos.php index ff618e61c10..1fd8f1d5d07 100644 --- a/clients/GitHub/src/Internal/Router/Get/Repos.php +++ b/clients/GitHub/src/Internal/Router/Get/Repos.php @@ -2803,7 +2803,7 @@ public function getRepoRuleSuite(array $params): RuleSuite return $operator->call($arguments['owner'], $arguments['repo'], $arguments['rule_suite_id']); } - /** @return iterable */ + /** @return Observable */ public function getRepoRulesetHistory(array $params): iterable { $arguments = []; @@ -3190,6 +3190,7 @@ public function getWebhookDelivery(array $params): HookDelivery return $operator->call($arguments['owner'], $arguments['repo'], $arguments['hook_id'], $arguments['delivery_id']); } + /** @return */ public function getRepoRulesetVersion(array $params): RulesetVersion { $arguments = []; diff --git a/clients/GitHub/src/Internal/Router/Get/Seven.php b/clients/GitHub/src/Internal/Router/Get/Seven.php index 0079fc4b427..9586971df58 100644 --- a/clients/GitHub/src/Internal/Router/Get/Seven.php +++ b/clients/GitHub/src/Internal/Router/Get/Seven.php @@ -64,7 +64,7 @@ public function __construct(private Routers $routers) { } - /** @return Observable||Observable|Observable|Schema\RulesetVersion|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Schema\BasicError|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Schema\ConvertedNoteToIssueIssueEvent|Schema\TimelineCommentEvent|Schema\TimelineCrossReferencedEvent|Schema\TimelineCommittedEvent|Schema\TimelineReviewedEvent|Schema\TimelineLineCommentedEvent|Schema\TimelineCommitCommentedEvent|Schema\TimelineAssignedIssueEvent|Schema\TimelineUnassignedIssueEvent|Schema\StateChangeIssueEvent>|Observable|Observable|Observable|Observable|Observable|Observable|iterable|Observable|Observable */ + /** @return Observable||Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Schema\BasicError|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Schema\ConvertedNoteToIssueIssueEvent|Schema\TimelineCommentEvent|Schema\TimelineCrossReferencedEvent|Schema\TimelineCommittedEvent|Schema\TimelineReviewedEvent|Schema\TimelineLineCommentedEvent|Schema\TimelineCommitCommentedEvent|Schema\TimelineAssignedIssueEvent|Schema\TimelineUnassignedIssueEvent|Schema\StateChangeIssueEvent>|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ public function call(string $call, array $params, array $pathChunks): iterable|Ok|Json|OidcCustomSub|\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\ListLabelsForSelfHostedRunnerForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelectedReposForOrgVariable\Response\ApplicationJson\Ok\Application\Json|WithoutBody|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Dependabot\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok\Application\Json|HookDelivery|RulesetVersion|TeamDiscussion|TeamMembership|TeamProject|Artifact|ActionsCacheUsageByRepository|Job|ActionsWorkflowAccessToRepository|SelectedActions|ActionsGetDefaultWorkflowPermissions|Runner|WorkflowRun|ActionsPublicKey|ActionsSecret|ActionsVariable|Workflow|BranchProtection|\ApiClients\Client\GitHub\Schema\Operations\Checks\ListForSuite\Response\ApplicationJson\Ok|CodeScanningAlert|CodeScanningAnalysis|CodeScanningSarifsStatus|CodespacesPublicKey|RepoCodespacesSecret|RepositoryCollaboratorPermission|\ApiClients\Client\GitHub\Schema\Operations\Checks\ListForRef\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Checks\ListSuitesForRef\Response\ApplicationJson\Ok|CombinedCommitStatus|BasicError|DependabotAlert|DependabotPublicKey|DependabotSecret|\ApiClients\Client\GitHub\Schema\Operations\Repos\ListDeploymentBranchPolicies\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetAllDeploymentProtectionRules\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListEnvironmentSecrets\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListEnvironmentVariables\Response\ApplicationJson\Ok\Application\Json|Blob|GitCommit|GitRef|GitTag|GitTree|WebhookConfig|IssueComment|IssueEvent|PageBuild|PagesDeploymentStatus|PullRequestReviewComment|PullRequestReviewRequest|ReleaseAsset|Release|RuleSuite|SecretScanningAlert|TeamDiscussionComment|PackageVersion { if ($pathChunks[0] === '') { diff --git a/clients/GitHub/src/Internal/Router/Get/Six.php b/clients/GitHub/src/Internal/Router/Get/Six.php index ba9a4b3506c..336d0318838 100644 --- a/clients/GitHub/src/Internal/Router/Get/Six.php +++ b/clients/GitHub/src/Internal/Router/Get/Six.php @@ -82,7 +82,7 @@ public function __construct(private Routers $routers) { } - /** @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|Schema\Operations\Repos\GetCodeFrequencyStats\Response\ApplicationJson\Accepted\Application\Json|Observable|Schema\Operations\Repos\GetCommitActivityStats\Response\ApplicationJson\Accepted\Application\Json|Observable|Schema\Operations\Repos\GetContributorsStats\Response\ApplicationJson\Accepted\Application\Json|Observable|Observable|Observable|Observable|Observable */ + /** @return Observable||Observable|Observable|WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Schema\Operations\Repos\GetCodeFrequencyStats\Response\ApplicationJson\Accepted\Application\Json|Observable|Schema\Operations\Repos\GetCommitActivityStats\Response\ApplicationJson\Accepted\Application\Json|Observable|Schema\Operations\Repos\GetContributorsStats\Response\ApplicationJson\Accepted\Application\Json|Observable|Observable|Observable|Observable|Observable */ public function call(string $call, array $params, array $pathChunks): iterable|CodeSecurityConfiguration|WithoutBody|BillingUsageReport|ActionsCacheUsageOrgEnterprise|Ok|ActionsHostedRunnerLimits|\ApiClients\Client\GitHub\Schema\Operations\Actions\GetHostedRunnersMachineSpecsForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\GetHostedRunnersPlatformsForOrg\Response\ApplicationJson\Ok|ActionsHostedRunner|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelectedRepositoriesEnabledGithubActionsOrganization\Response\ApplicationJson\Ok|SelectedActions|ActionsGetDefaultWorkflowPermissions|RunnerGroupsOrg|Runner|ActionsPublicKey|OrganizationActionsSecret|OrganizationActionsVariable|CodespacesPublicKey|CodespacesOrgSecret|\ApiClients\Client\GitHub\Schema\Operations\Copilot\ListCopilotSeats\Response\ApplicationJson\Ok|DependabotPublicKey|OrganizationDependabotSecret|WebhookConfig|ApiInsightsSummaryStats|Json|CopilotSeatDetails|Package|CustomProperty|RuleSuite|ActionsBillingUsage|PackagesBillingUsage|CombinedBillingUsage|NetworkConfiguration|NetworkSettings|ProjectCollaboratorPermission|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListArtifactsForRepo\Response\ApplicationJson\Ok|ActionsCacheList|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoOrganizationSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoOrganizationVariables\Response\ApplicationJson\Ok|ActionsRepositoryPermissions|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelfHostedRunnersForRepo\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListWorkflowRunsForRepo\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoSecrets\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoVariables\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoWorkflows\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Repos\ListAttestations\Response\ApplicationJson\Ok\Application\Json|Autolink|BranchWithProtection|BasicError|CheckRun|CheckSuite|CodeScanningDefaultSetup|CodeownersErrors|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListDevcontainersInRepositoryForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\RepoMachinesForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\PreFlightWithRepoForAuthenticatedUser\Response\ApplicationJson\Ok|CodespacesPermissionsCheckForDevcontainer|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListRepoSecrets\Response\ApplicationJson\Ok|CommitComment|Commit|CommunityProfile|CommitComparison|ContentDirectory|ContentFile|ContentSymlink|ContentSubmodule|\ApiClients\Client\GitHub\Schema\Operations\Dependabot\ListRepoSecrets\Response\ApplicationJson\Ok|DependencyGraphSpdxSbom|Deployment|Environment|Hook|Issue|DeployKey|Label|Milestone|PagesHealthCheck|EmptyObject|PullRequest|Release|RepositoryRuleset|SecretScanningScanHistory|RepositoryAdvisory|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetCodeFrequencyStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetCommitActivityStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetContributorsStats\Response\ApplicationJson\Accepted\Application\Json|ParticipationStats|CloneTraffic|ViewTraffic|TeamRepository|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListRepositoriesForSecretForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|CodespaceExportDetails { if ($pathChunks[0] === '') { diff --git a/clients/GitHub/src/Internal/Router/List/Orgs.php b/clients/GitHub/src/Internal/Router/List/Orgs.php index a4be2b2720b..7ac3254bfe2 100644 --- a/clients/GitHub/src/Internal/Router/List/Orgs.php +++ b/clients/GitHub/src/Internal/Router/List/Orgs.php @@ -759,7 +759,7 @@ public function listPatGrantRepositoriesListing(array $params): iterable } while (count($items) > 0); } - /** @return iterable */ + /** @return Observable */ public function getOrgRulesetHistoryListing(array $params): iterable { $arguments = []; diff --git a/clients/GitHub/src/Internal/Router/List/Repos.php b/clients/GitHub/src/Internal/Router/List/Repos.php index 544e998eb3f..e576cfa9673 100644 --- a/clients/GitHub/src/Internal/Router/List/Repos.php +++ b/clients/GitHub/src/Internal/Router/List/Repos.php @@ -1342,7 +1342,7 @@ public function getBranchRulesListing(array $params): iterable } while (count($items) > 0); } - /** @return iterable */ + /** @return Observable */ public function getRepoRulesetHistoryListing(array $params): iterable { $arguments = []; diff --git a/clients/GitHub/src/Internal/Router/List/Seven.php b/clients/GitHub/src/Internal/Router/List/Seven.php index dd3fb2c9071..a8309d40b42 100644 --- a/clients/GitHub/src/Internal/Router/List/Seven.php +++ b/clients/GitHub/src/Internal/Router/List/Seven.php @@ -14,7 +14,7 @@ public function __construct(private Routers $routers) { } - /** @return Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Schema\BasicError|Observable|Observable|Observable|Observable|Observable|Schema\ConvertedNoteToIssueIssueEvent|Schema\TimelineCommentEvent|Schema\TimelineCrossReferencedEvent|Schema\TimelineCommittedEvent|Schema\TimelineReviewedEvent|Schema\TimelineLineCommentedEvent|Schema\TimelineCommitCommentedEvent|Schema\TimelineAssignedIssueEvent|Schema\TimelineUnassignedIssueEvent|Schema\StateChangeIssueEvent>|Observable|Observable|Observable|Observable|Observable|Observable|iterable */ + /** @return Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Schema\BasicError|Observable|Observable|Observable|Observable|Observable|Schema\ConvertedNoteToIssueIssueEvent|Schema\TimelineCommentEvent|Schema\TimelineCrossReferencedEvent|Schema\TimelineCommittedEvent|Schema\TimelineReviewedEvent|Schema\TimelineLineCommentedEvent|Schema\TimelineCommitCommentedEvent|Schema\TimelineAssignedIssueEvent|Schema\TimelineUnassignedIssueEvent|Schema\StateChangeIssueEvent>|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ public function call(string $call, array $params, array $pathChunks): iterable|BasicError { if ($pathChunks[0] === '') { diff --git a/clients/GitHub/src/Internal/Router/List/Six.php b/clients/GitHub/src/Internal/Router/List/Six.php index 574246accf7..ae0a19daabf 100644 --- a/clients/GitHub/src/Internal/Router/List/Six.php +++ b/clients/GitHub/src/Internal/Router/List/Six.php @@ -15,7 +15,7 @@ public function __construct(private Routers $routers) { } - /** @return Observable|Observable|Observable|Observable|Observable|WithoutBody|Observable|iterable|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|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/Operation/Orgs.php b/clients/GitHub/src/Operation/Orgs.php index dd7957c52a1..8e1fef05e46 100644 --- a/clients/GitHub/src/Operation/Orgs.php +++ b/clients/GitHub/src/Operation/Orgs.php @@ -499,18 +499,19 @@ public function removePublicMembershipForAuthenticatedUser(string $org, string $ return $this->operators->orgs👷RemovePublicMembershipForAuthenticatedUser()->call($org, $username); } - /** @return iterable */ + /** @return Observable */ public function getOrgRulesetHistory(string $org, int $rulesetId, int $perPage, int $page): iterable { return $this->operators->orgs👷GetOrgRulesetHistory()->call($org, $rulesetId, $perPage, $page); } - /** @return iterable */ + /** @return Observable */ public function getOrgRulesetHistoryListing(string $org, int $rulesetId, int $perPage, int $page): iterable { return $this->operators->orgs👷GetOrgRulesetHistoryListing()->call($org, $rulesetId, $perPage, $page); } + /** @return */ public function getOrgRulesetVersion(string $org, int $rulesetId, int $versionId): RulesetVersion { return $this->operators->orgs👷GetOrgRulesetVersion()->call($org, $rulesetId, $versionId); diff --git a/clients/GitHub/src/Operation/Repos.php b/clients/GitHub/src/Operation/Repos.php index 145057aecdb..c41e5ca5711 100644 --- a/clients/GitHub/src/Operation/Repos.php +++ b/clients/GitHub/src/Operation/Repos.php @@ -1218,18 +1218,19 @@ public function deleteRepoRuleset(string $owner, string $repo, int $rulesetId): return $this->operators->repos👷DeleteRepoRuleset()->call($owner, $repo, $rulesetId); } - /** @return iterable */ + /** @return Observable */ public function getRepoRulesetHistory(string $owner, string $repo, int $rulesetId, int $perPage, int $page): iterable { return $this->operators->repos👷GetRepoRulesetHistory()->call($owner, $repo, $rulesetId, $perPage, $page); } - /** @return iterable */ + /** @return Observable */ public function getRepoRulesetHistoryListing(string $owner, string $repo, int $rulesetId, int $perPage, int $page): iterable { return $this->operators->repos👷GetRepoRulesetHistoryListing()->call($owner, $repo, $rulesetId, $perPage, $page); } + /** @return */ public function getRepoRulesetVersion(string $owner, string $repo, int $rulesetId, int $versionId): RulesetVersion { return $this->operators->repos👷GetRepoRulesetVersion()->call($owner, $repo, $rulesetId, $versionId); diff --git a/clients/GitHub/src/PHPStan/ClientCallReturnTypes.php b/clients/GitHub/src/PHPStan/ClientCallReturnTypes.php index 750197c9611..1ce8d6c82ed 100644 --- a/clients/GitHub/src/PHPStan/ClientCallReturnTypes.php +++ b/clients/GitHub/src/PHPStan/ClientCallReturnTypes.php @@ -1520,15 +1520,15 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method } if ($call === 'GET /orgs/{org}/rulesets/{ruleset_id}/history') { - return $this->typeResolver->resolve('iterable'); + return $this->typeResolver->resolve('Observable'); } if ($call === 'LIST /orgs/{org}/rulesets/{ruleset_id}/history') { - return $this->typeResolver->resolve('iterable'); + return $this->typeResolver->resolve('Observable'); } if ($call === 'GET /orgs/{org}/rulesets/{ruleset_id}/history/{version_id}') { - return $this->typeResolver->resolve('Schema\\RulesetVersion'); + return $this->typeResolver->resolve(''); } if ($call === 'GET /orgs/{org}/secret-scanning/alerts') { @@ -3752,15 +3752,15 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method } if ($call === 'GET /repos/{owner}/{repo}/rulesets/{ruleset_id}/history') { - return $this->typeResolver->resolve('iterable'); + return $this->typeResolver->resolve('Observable'); } if ($call === 'LIST /repos/{owner}/{repo}/rulesets/{ruleset_id}/history') { - return $this->typeResolver->resolve('iterable'); + return $this->typeResolver->resolve('Observable'); } if ($call === 'GET /repos/{owner}/{repo}/rulesets/{ruleset_id}/history/{version_id}') { - return $this->typeResolver->resolve('Schema\\RulesetVersion'); + return $this->typeResolver->resolve(''); } if ($call === 'GET /repos/{owner}/{repo}/secret-scanning/alerts') { diff --git a/clients/GitHub/src/Schema/CodeScanningAlert.php b/clients/GitHub/src/Schema/CodeScanningAlert.php index 0b8e4e0e3f0..40569289410 100644 --- a/clients/GitHub/src/Schema/CodeScanningAlert.php +++ b/clients/GitHub/src/Schema/CodeScanningAlert.php @@ -473,6 +473,181 @@ "description": "Classifications that have been applied to the file that triggered the alert.\\nFor example identifying it as documentation, or a generated file." } } + }, + "dismissal_approved_by": { + "anyOf": [ + { + "type": "null" + }, + { + "title": "Simple User", + "required": [ + "avatar_url", + "events_url", + "followers_url", + "following_url", + "gists_url", + "gravatar_id", + "html_url", + "id", + "node_id", + "login", + "organizations_url", + "received_events_url", + "repos_url", + "site_admin", + "starred_url", + "subscriptions_url", + "type", + "url" + ], + "type": "object", + "properties": { + "name": { + "type": [ + "string", + "null" + ] + }, + "email": { + "type": [ + "string", + "null" + ] + }, + "login": { + "type": "string", + "examples": [ + "octocat" + ] + }, + "id": { + "type": "integer", + "format": "int64", + "examples": [ + 1 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDQ6VXNlcjE=" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif" + ] + }, + "gravatar_id": { + "type": [ + "string", + "null" + ], + "examples": [ + "41d064eb2195891e12d0413f63227ea7" + ] + }, + "url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat" + ] + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/octocat" + ] + }, + "followers_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/followers" + ] + }, + "following_url": { + "type": "string", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}" + ] + }, + "gists_url": { + "type": "string", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}" + ] + }, + "starred_url": { + "type": "string", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}" + ] + }, + "subscriptions_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions" + ] + }, + "organizations_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs" + ] + }, + "repos_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/repos" + ] + }, + "events_url": { + "type": "string", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}" + ] + }, + "received_events_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events" + ] + }, + "type": { + "type": "string", + "examples": [ + "User" + ] + }, + "site_admin": { + "type": "boolean" + }, + "starred_at": { + "type": "string", + "examples": [ + "\\"2020-07-09T00:17:55Z\\"" + ] + }, + "user_view_type": { + "type": "string", + "examples": [ + "public" + ] + } + }, + "description": "A GitHub user." + } + ] } } }'; @@ -552,6 +727,30 @@ "generated", "generated" ] + }, + "dismissal_approved_by": { + "name": "generated", + "email": "generated", + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", + "gravatar_id": "41d064eb2195891e12d0413f63227ea7", + "url": "https:\\/\\/api.github.com\\/users\\/octocat", + "html_url": "https:\\/\\/github.com\\/octocat", + "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", + "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", + "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", + "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", + "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", + "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", + "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", + "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", + "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", + "type": "User", + "site_admin": false, + "starred_at": "\\"2020-07-09T00:17:55Z\\"", + "user_view_type": "public" } }'; @@ -578,7 +777,8 @@ public function __construct(public int $number, #[MapFrom('created_at')] public string|null $dismissedAt, #[MapFrom('dismissed_reason')] public string|null $dismissedReason, #[MapFrom('dismissed_comment')] public string|null $dismissedComment, public Schema\CodeScanningAlertRule $rule, public Schema\CodeScanningAnalysisTool $tool, #[MapFrom('most_recent_instance')] - public Schema\CodeScanningAlertInstance $mostRecentInstance,) + public Schema\CodeScanningAlertInstance $mostRecentInstance, #[MapFrom('dismissal_approved_by')] + public Schema\SimpleUser|null $dismissalApprovedBy,) { } } diff --git a/clients/GitHub/src/Schema/CodeScanningAlertItems.php b/clients/GitHub/src/Schema/CodeScanningAlertItems.php index b2420b7948b..65061ae938d 100644 --- a/clients/GitHub/src/Schema/CodeScanningAlertItems.php +++ b/clients/GitHub/src/Schema/CodeScanningAlertItems.php @@ -473,6 +473,181 @@ "description": "Classifications that have been applied to the file that triggered the alert.\\nFor example identifying it as documentation, or a generated file." } } + }, + "dismissal_approved_by": { + "anyOf": [ + { + "type": "null" + }, + { + "title": "Simple User", + "required": [ + "avatar_url", + "events_url", + "followers_url", + "following_url", + "gists_url", + "gravatar_id", + "html_url", + "id", + "node_id", + "login", + "organizations_url", + "received_events_url", + "repos_url", + "site_admin", + "starred_url", + "subscriptions_url", + "type", + "url" + ], + "type": "object", + "properties": { + "name": { + "type": [ + "string", + "null" + ] + }, + "email": { + "type": [ + "string", + "null" + ] + }, + "login": { + "type": "string", + "examples": [ + "octocat" + ] + }, + "id": { + "type": "integer", + "format": "int64", + "examples": [ + 1 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDQ6VXNlcjE=" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif" + ] + }, + "gravatar_id": { + "type": [ + "string", + "null" + ], + "examples": [ + "41d064eb2195891e12d0413f63227ea7" + ] + }, + "url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat" + ] + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/octocat" + ] + }, + "followers_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/followers" + ] + }, + "following_url": { + "type": "string", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}" + ] + }, + "gists_url": { + "type": "string", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}" + ] + }, + "starred_url": { + "type": "string", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}" + ] + }, + "subscriptions_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions" + ] + }, + "organizations_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs" + ] + }, + "repos_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/repos" + ] + }, + "events_url": { + "type": "string", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}" + ] + }, + "received_events_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events" + ] + }, + "type": { + "type": "string", + "examples": [ + "User" + ] + }, + "site_admin": { + "type": "boolean" + }, + "starred_at": { + "type": "string", + "examples": [ + "\\"2020-07-09T00:17:55Z\\"" + ] + }, + "user_view_type": { + "type": "string", + "examples": [ + "public" + ] + } + }, + "description": "A GitHub user." + } + ] } } }'; @@ -552,6 +727,30 @@ "generated", "generated" ] + }, + "dismissal_approved_by": { + "name": "generated", + "email": "generated", + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", + "gravatar_id": "41d064eb2195891e12d0413f63227ea7", + "url": "https:\\/\\/api.github.com\\/users\\/octocat", + "html_url": "https:\\/\\/github.com\\/octocat", + "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", + "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", + "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", + "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", + "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", + "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", + "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", + "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", + "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", + "type": "User", + "site_admin": false, + "starred_at": "\\"2020-07-09T00:17:55Z\\"", + "user_view_type": "public" } }'; @@ -578,7 +777,8 @@ public function __construct(public int $number, #[MapFrom('created_at')] public string|null $dismissedAt, #[MapFrom('dismissed_reason')] public string|null $dismissedReason, #[MapFrom('dismissed_comment')] public string|null $dismissedComment, public Schema\CodeScanningAlertRuleSummary $rule, public Schema\CodeScanningAnalysisTool $tool, #[MapFrom('most_recent_instance')] - public Schema\CodeScanningAlertInstance $mostRecentInstance,) + public Schema\CodeScanningAlertInstance $mostRecentInstance, #[MapFrom('dismissal_approved_by')] + public Schema\SimpleUser|null $dismissalApprovedBy,) { } } diff --git a/clients/GitHub/src/Schema/CodeScanningOrganizationAlertItems.php b/clients/GitHub/src/Schema/CodeScanningOrganizationAlertItems.php index 443b92b9dc1..c01129d5339 100644 --- a/clients/GitHub/src/Schema/CodeScanningOrganizationAlertItems.php +++ b/clients/GitHub/src/Schema/CodeScanningOrganizationAlertItems.php @@ -1025,6 +1025,181 @@ } }, "description": "A GitHub repository." + }, + "dismissal_approved_by": { + "anyOf": [ + { + "type": "null" + }, + { + "title": "Simple User", + "required": [ + "avatar_url", + "events_url", + "followers_url", + "following_url", + "gists_url", + "gravatar_id", + "html_url", + "id", + "node_id", + "login", + "organizations_url", + "received_events_url", + "repos_url", + "site_admin", + "starred_url", + "subscriptions_url", + "type", + "url" + ], + "type": "object", + "properties": { + "name": { + "type": [ + "string", + "null" + ] + }, + "email": { + "type": [ + "string", + "null" + ] + }, + "login": { + "type": "string", + "examples": [ + "octocat" + ] + }, + "id": { + "type": "integer", + "format": "int64", + "examples": [ + 1 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDQ6VXNlcjE=" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif" + ] + }, + "gravatar_id": { + "type": [ + "string", + "null" + ], + "examples": [ + "41d064eb2195891e12d0413f63227ea7" + ] + }, + "url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat" + ] + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/octocat" + ] + }, + "followers_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/followers" + ] + }, + "following_url": { + "type": "string", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}" + ] + }, + "gists_url": { + "type": "string", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}" + ] + }, + "starred_url": { + "type": "string", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}" + ] + }, + "subscriptions_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions" + ] + }, + "organizations_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs" + ] + }, + "repos_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/repos" + ] + }, + "events_url": { + "type": "string", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}" + ] + }, + "received_events_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events" + ] + }, + "type": { + "type": "string", + "examples": [ + "User" + ] + }, + "site_admin": { + "type": "boolean" + }, + "starred_at": { + "type": "string", + "examples": [ + "\\"2020-07-09T00:17:55Z\\"" + ] + }, + "user_view_type": { + "type": "string", + "examples": [ + "public" + ] + } + }, + "description": "A GitHub user." + } + ] } } }'; @@ -1175,6 +1350,30 @@ "teams_url": "https:\\/\\/api.github.com\\/repos\\/octocat\\/Hello-World\\/teams", "trees_url": "https:\\/\\/api.github.com\\/repos\\/octocat\\/Hello-World\\/git\\/trees{\\/sha}", "hooks_url": "https:\\/\\/api.github.com\\/repos\\/octocat\\/Hello-World\\/hooks" + }, + "dismissal_approved_by": { + "name": "generated", + "email": "generated", + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", + "gravatar_id": "41d064eb2195891e12d0413f63227ea7", + "url": "https:\\/\\/api.github.com\\/users\\/octocat", + "html_url": "https:\\/\\/github.com\\/octocat", + "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", + "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", + "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", + "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", + "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", + "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", + "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", + "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", + "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", + "type": "User", + "site_admin": false, + "starred_at": "\\"2020-07-09T00:17:55Z\\"", + "user_view_type": "public" } }'; @@ -1202,7 +1401,8 @@ public function __construct(public int $number, #[MapFrom('created_at')] public string|null $dismissedAt, #[MapFrom('dismissed_reason')] public string|null $dismissedReason, #[MapFrom('dismissed_comment')] public string|null $dismissedComment, public Schema\CodeScanningAlertRuleSummary $rule, public Schema\CodeScanningAnalysisTool $tool, #[MapFrom('most_recent_instance')] - public Schema\CodeScanningAlertInstance $mostRecentInstance, public Schema\SimpleRepository $repository,) + public Schema\CodeScanningAlertInstance $mostRecentInstance, public Schema\SimpleRepository $repository, #[MapFrom('dismissal_approved_by')] + public Schema\SimpleUser|null $dismissalApprovedBy,) { } } diff --git a/clients/GitHub/src/Schema/OrganizationSecretScanningAlert.php b/clients/GitHub/src/Schema/OrganizationSecretScanningAlert.php index d4a4599e5ed..03902a4fdc7 100644 --- a/clients/GitHub/src/Schema/OrganizationSecretScanningAlert.php +++ b/clients/GitHub/src/Schema/OrganizationSecretScanningAlert.php @@ -1237,6 +1237,13 @@ "null" ], "description": "Whether the detected secret was found in multiple repositories in the same organization or enterprise." + }, + "is_base64_encoded": { + "type": [ + "boolean", + "null" + ], + "description": "A boolean value representing whether or not alert is base64 encoded" } } }'; @@ -1406,7 +1413,8 @@ "resolution_comment": "generated", "validity": "unknown", "publicly_leaked": false, - "multi_repo": false + "multi_repo": false, + "is_base64_encoded": false }'; /** @@ -1432,6 +1440,7 @@ * validity: The token status as of the latest validity check. * publiclyLeaked: Whether the secret was publicly leaked. * multiRepo: Whether the detected secret was found in multiple repositories in the same organization or enterprise. + * isBaseSixtyFourEncoded: A boolean value representing whether or not alert is base64 encoded */ public function __construct(public int|null $number, #[MapFrom('created_at')] public string|null $createdAt, #[MapFrom('updated_at')] @@ -1451,7 +1460,8 @@ public function __construct(public int|null $number, #[MapFrom('created_at')] public string|null $pushProtectionBypassRequestHtmlUrl, #[MapFrom('resolution_comment')] public string|null $resolutionComment, public string|null $validity, #[MapFrom('publicly_leaked')] public bool|null $publiclyLeaked, #[MapFrom('multi_repo')] - public bool|null $multiRepo,) + public bool|null $multiRepo, #[MapFrom('is_base64_encoded')] + public bool|null $isBaseSixtyFourEncoded,) { } } diff --git a/clients/GitHub/src/Schema/SecretScanningAlert.php b/clients/GitHub/src/Schema/SecretScanningAlert.php index 99c2ef33e80..092a39eecd6 100644 --- a/clients/GitHub/src/Schema/SecretScanningAlert.php +++ b/clients/GitHub/src/Schema/SecretScanningAlert.php @@ -686,6 +686,13 @@ "null" ], "description": "Whether the detected secret was found in multiple repositories under the same organization or enterprise." + }, + "is_base64_encoded": { + "type": [ + "boolean", + "null" + ], + "description": "A boolean value representing whether or not alert is base64 encoded" } } }'; @@ -784,7 +791,8 @@ "push_protection_bypass_request_html_url": "https:\\/\\/example.com\\/", "validity": "unknown", "publicly_leaked": false, - "multi_repo": false + "multi_repo": false, + "is_base64_encoded": false }'; /** @@ -809,6 +817,7 @@ * validity: The token status as of the latest validity check. * publiclyLeaked: Whether the detected secret was publicly leaked. * multiRepo: Whether the detected secret was found in multiple repositories under the same organization or enterprise. + * isBaseSixtyFourEncoded: A boolean value representing whether or not alert is base64 encoded */ public function __construct(public int|null $number, #[MapFrom('created_at')] public string|null $createdAt, #[MapFrom('updated_at')] @@ -828,7 +837,8 @@ public function __construct(public int|null $number, #[MapFrom('created_at')] public string|null $pushProtectionBypassRequestComment, #[MapFrom('push_protection_bypass_request_html_url')] public string|null $pushProtectionBypassRequestHtmlUrl, public string|null $validity, #[MapFrom('publicly_leaked')] public bool|null $publiclyLeaked, #[MapFrom('multi_repo')] - public bool|null $multiRepo,) + public bool|null $multiRepo, #[MapFrom('is_base64_encoded')] + public bool|null $isBaseSixtyFourEncoded,) { } } diff --git a/clients/GitHub/src/Schema/WebhookCodeScanningAlertClosedByUser.php b/clients/GitHub/src/Schema/WebhookCodeScanningAlertClosedByUser.php index 07f6ecb780a..54569d65be6 100644 --- a/clients/GitHub/src/Schema/WebhookCodeScanningAlertClosedByUser.php +++ b/clients/GitHub/src/Schema/WebhookCodeScanningAlertClosedByUser.php @@ -361,6 +361,105 @@ "url": { "type": "string", "format": "uri" + }, + "dismissal_approved_by": { + "title": "User", + "required": [ + "login", + "id" + ], + "type": [ + "object", + "null" + ], + "properties": { + "avatar_url": { + "type": "string", + "format": "uri" + }, + "deleted": { + "type": "boolean" + }, + "email": { + "type": [ + "string", + "null" + ] + }, + "events_url": { + "type": "string", + "format": "uri-template" + }, + "followers_url": { + "type": "string", + "format": "uri" + }, + "following_url": { + "type": "string", + "format": "uri-template" + }, + "gists_url": { + "type": "string", + "format": "uri-template" + }, + "gravatar_id": { + "type": "string" + }, + "html_url": { + "type": "string", + "format": "uri" + }, + "id": { + "type": "integer" + }, + "login": { + "type": "string" + }, + "name": { + "type": "string" + }, + "node_id": { + "type": "string" + }, + "organizations_url": { + "type": "string", + "format": "uri" + }, + "received_events_url": { + "type": "string", + "format": "uri" + }, + "repos_url": { + "type": "string", + "format": "uri" + }, + "site_admin": { + "type": "boolean" + }, + "starred_url": { + "type": "string", + "format": "uri-template" + }, + "subscriptions_url": { + "type": "string", + "format": "uri" + }, + "type": { + "enum": [ + "Bot", + "User", + "Organization" + ], + "type": "string" + }, + "url": { + "type": "string", + "format": "uri" + }, + "user_view_type": { + "type": "string" + } + } } }, "description": "The code scanning alert involved in the event." @@ -2320,7 +2419,31 @@ "name": "generated", "version": "generated" }, - "url": "https:\\/\\/example.com\\/" + "url": "https:\\/\\/example.com\\/", + "dismissal_approved_by": { + "avatar_url": "https:\\/\\/example.com\\/", + "deleted": false, + "email": "generated", + "events_url": "generated", + "followers_url": "https:\\/\\/example.com\\/", + "following_url": "generated", + "gists_url": "generated", + "gravatar_id": "generated", + "html_url": "https:\\/\\/example.com\\/", + "id": 2, + "login": "generated", + "name": "generated", + "node_id": "generated", + "organizations_url": "https:\\/\\/example.com\\/", + "received_events_url": "https:\\/\\/example.com\\/", + "repos_url": "https:\\/\\/example.com\\/", + "site_admin": false, + "starred_url": "generated", + "subscriptions_url": "https:\\/\\/example.com\\/", + "type": "Organization", + "url": "https:\\/\\/example.com\\/", + "user_view_type": "generated" + } }, "commit_oid": "generated", "enterprise": { diff --git a/clients/GitHub/src/Schema/WebhookCodeScanningAlertClosedByUser/Alert.php b/clients/GitHub/src/Schema/WebhookCodeScanningAlertClosedByUser/Alert.php index c0d5bab68b8..7a8e42eacc0 100644 --- a/clients/GitHub/src/Schema/WebhookCodeScanningAlertClosedByUser/Alert.php +++ b/clients/GitHub/src/Schema/WebhookCodeScanningAlertClosedByUser/Alert.php @@ -343,6 +343,105 @@ "url": { "type": "string", "format": "uri" + }, + "dismissal_approved_by": { + "title": "User", + "required": [ + "login", + "id" + ], + "type": [ + "object", + "null" + ], + "properties": { + "avatar_url": { + "type": "string", + "format": "uri" + }, + "deleted": { + "type": "boolean" + }, + "email": { + "type": [ + "string", + "null" + ] + }, + "events_url": { + "type": "string", + "format": "uri-template" + }, + "followers_url": { + "type": "string", + "format": "uri" + }, + "following_url": { + "type": "string", + "format": "uri-template" + }, + "gists_url": { + "type": "string", + "format": "uri-template" + }, + "gravatar_id": { + "type": "string" + }, + "html_url": { + "type": "string", + "format": "uri" + }, + "id": { + "type": "integer" + }, + "login": { + "type": "string" + }, + "name": { + "type": "string" + }, + "node_id": { + "type": "string" + }, + "organizations_url": { + "type": "string", + "format": "uri" + }, + "received_events_url": { + "type": "string", + "format": "uri" + }, + "repos_url": { + "type": "string", + "format": "uri" + }, + "site_admin": { + "type": "boolean" + }, + "starred_url": { + "type": "string", + "format": "uri-template" + }, + "subscriptions_url": { + "type": "string", + "format": "uri" + }, + "type": { + "enum": [ + "Bot", + "User", + "Organization" + ], + "type": "string" + }, + "url": { + "type": "string", + "format": "uri" + }, + "user_view_type": { + "type": "string" + } + } } }, "description": "The code scanning alert involved in the event." @@ -419,7 +518,31 @@ "name": "generated", "version": "generated" }, - "url": "https:\\/\\/example.com\\/" + "url": "https:\\/\\/example.com\\/", + "dismissal_approved_by": { + "avatar_url": "https:\\/\\/example.com\\/", + "deleted": false, + "email": "generated", + "events_url": "generated", + "followers_url": "https:\\/\\/example.com\\/", + "following_url": "generated", + "gists_url": "generated", + "gravatar_id": "generated", + "html_url": "https:\\/\\/example.com\\/", + "id": 2, + "login": "generated", + "name": "generated", + "node_id": "generated", + "organizations_url": "https:\\/\\/example.com\\/", + "received_events_url": "https:\\/\\/example.com\\/", + "repos_url": "https:\\/\\/example.com\\/", + "site_admin": false, + "starred_url": "generated", + "subscriptions_url": "https:\\/\\/example.com\\/", + "type": "Organization", + "url": "https:\\/\\/example.com\\/", + "user_view_type": "generated" + } }'; /** @@ -440,7 +563,8 @@ public function __construct(#[MapFrom('created_at')] public string|null $dismissedReason, #[MapFrom('fixed_at')] public string $fixedAt, #[MapFrom('html_url')] public string $htmlUrl, #[MapFrom('most_recent_instance')] - public Schema\WebhookCodeScanningAlertClosedByUser\Alert\MostRecentInstance|null $mostRecentInstance, public int $number, public Schema\WebhookCodeScanningAlertClosedByUser\Alert\Rule $rule, public string $state, public Schema\WebhookCodeScanningAlertClosedByUser\Alert\Tool $tool, public string $url,) + public Schema\WebhookCodeScanningAlertClosedByUser\Alert\MostRecentInstance|null $mostRecentInstance, public int $number, public Schema\WebhookCodeScanningAlertClosedByUser\Alert\Rule $rule, public string $state, public Schema\WebhookCodeScanningAlertClosedByUser\Alert\Tool $tool, public string $url, #[MapFrom('dismissal_approved_by')] + public Schema\WebhookCodeScanningAlertClosedByUser\Alert\DismissalApprovedBy|null $dismissalApprovedBy,) { } } diff --git a/clients/GitHub/src/Schema/WebhookCodeScanningAlertClosedByUser/Alert/DismissalApprovedBy.php b/clients/GitHub/src/Schema/WebhookCodeScanningAlertClosedByUser/Alert/DismissalApprovedBy.php new file mode 100644 index 00000000000..f2c0f547cf3 --- /dev/null +++ b/clients/GitHub/src/Schema/WebhookCodeScanningAlertClosedByUser/Alert/DismissalApprovedBy.php @@ -0,0 +1,11 @@ +call('GET /orgs/{org}/rulesets/{ruleset_id}')); assertType('', $client->call('PUT /orgs/{org}/rulesets/{ruleset_id}')); assertType('', $client->call('DELETE /orgs/{org}/rulesets/{ruleset_id}')); -assertType('iterable', $client->call('GET /orgs/{org}/rulesets/{ruleset_id}/history')); -assertType('iterable', $client->call('LIST /orgs/{org}/rulesets/{ruleset_id}/history')); -assertType('Schema\\RulesetVersion', $client->call('GET /orgs/{org}/rulesets/{ruleset_id}/history/{version_id}')); +assertType('Observable', $client->call('GET /orgs/{org}/rulesets/{ruleset_id}/history')); +assertType('Observable', $client->call('LIST /orgs/{org}/rulesets/{ruleset_id}/history')); +assertType('', $client->call('GET /orgs/{org}/rulesets/{ruleset_id}/history/{version_id}')); assertType('Observable', $client->call('GET /orgs/{org}/secret-scanning/alerts')); assertType('Observable', $client->call('LIST /orgs/{org}/secret-scanning/alerts')); assertType('Observable', $client->call('GET /orgs/{org}/security-advisories')); @@ -944,9 +944,9 @@ function authHeader(): string assertType('', $client->call('GET /repos/{owner}/{repo}/rulesets/{ruleset_id}')); assertType('', $client->call('PUT /repos/{owner}/{repo}/rulesets/{ruleset_id}')); assertType('', $client->call('DELETE /repos/{owner}/{repo}/rulesets/{ruleset_id}')); -assertType('iterable', $client->call('GET /repos/{owner}/{repo}/rulesets/{ruleset_id}/history')); -assertType('iterable', $client->call('LIST /repos/{owner}/{repo}/rulesets/{ruleset_id}/history')); -assertType('Schema\\RulesetVersion', $client->call('GET /repos/{owner}/{repo}/rulesets/{ruleset_id}/history/{version_id}')); +assertType('Observable', $client->call('GET /repos/{owner}/{repo}/rulesets/{ruleset_id}/history')); +assertType('Observable', $client->call('LIST /repos/{owner}/{repo}/rulesets/{ruleset_id}/history')); +assertType('', $client->call('GET /repos/{owner}/{repo}/rulesets/{ruleset_id}/history/{version_id}')); assertType('Observable|WithoutBody', $client->call('GET /repos/{owner}/{repo}/secret-scanning/alerts')); assertType('Observable|WithoutBody', $client->call('LIST /repos/{owner}/{repo}/secret-scanning/alerts')); assertType('', $client->call('GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}')); diff --git a/etc/specs/GitHub/current.spec.yaml b/etc/specs/GitHub/current.spec.yaml index bdf7dc607c9..b5ce0a08b9a 100644 --- a/etc/specs/GitHub/current.spec.yaml +++ b/etc/specs/GitHub/current.spec.yaml @@ -71911,6 +71911,12 @@ components: - 'null' description: Whether the detected secret was found in multiple repositories in the same organization or enterprise. + is_base64_encoded: + type: + - boolean + - 'null' + description: A boolean value representing whether or not alert is base64 + encoded actor: title: Actor description: Actor @@ -75536,6 +75542,10 @@ components: "$ref": "#/components/schemas/code-scanning-alert-instance" repository: "$ref": "#/components/schemas/simple-repository" + dismissal_approved_by: + anyOf: + - type: 'null' + - "$ref": "#/components/schemas/simple-user" required: - number - created_at @@ -84610,6 +84620,10 @@ components: "$ref": "#/components/schemas/code-scanning-analysis-tool" most_recent_instance: "$ref": "#/components/schemas/code-scanning-alert-instance" + dismissal_approved_by: + anyOf: + - type: 'null' + - "$ref": "#/components/schemas/simple-user" required: - number - created_at @@ -84715,6 +84729,10 @@ components: "$ref": "#/components/schemas/code-scanning-analysis-tool" most_recent_instance: "$ref": "#/components/schemas/code-scanning-alert-instance" + dismissal_approved_by: + anyOf: + - type: 'null' + - "$ref": "#/components/schemas/simple-user" required: - number - created_at @@ -91921,6 +91939,12 @@ components: - 'null' description: Whether the detected secret was found in multiple repositories under the same organization or enterprise. + is_base64_encoded: + type: + - boolean + - 'null' + description: A boolean value representing whether or not alert is base64 + encoded secret-scanning-alert-resolution-comment: description: An optional comment when closing an alert. Cannot be updated or deleted. Must be `null` when changing `state` to `open`. @@ -107748,6 +107772,77 @@ components: url: type: string format: uri + dismissal_approved_by: + title: User + type: + - object + - 'null' + properties: + avatar_url: + type: string + format: uri + deleted: + type: boolean + email: + type: + - string + - 'null' + events_url: + type: string + format: uri-template + followers_url: + type: string + format: uri + following_url: + type: string + format: uri-template + gists_url: + type: string + format: uri-template + gravatar_id: + type: string + html_url: + type: string + format: uri + id: + type: integer + login: + type: string + name: + type: string + node_id: + type: string + organizations_url: + type: string + format: uri + received_events_url: + type: string + format: uri + repos_url: + type: string + format: uri + site_admin: + type: boolean + starred_url: + type: string + format: uri-template + subscriptions_url: + type: string + format: uri + type: + type: string + enum: + - Bot + - User + - Organization + url: + type: string + format: uri + user_view_type: + type: string + required: + - login + - id required: - number - created_at @@ -107973,6 +108068,9 @@ components: url: type: string format: uri + dismissal_approved_by: + type: + - 'null' required: - number - created_at