From 915dd24efecc6359893175249fe9d81467a240ed Mon Sep 17 00:00:00 2001 From: WyriHaximus <147145+WyriHaximus@users.noreply.github.com> Date: Thu, 13 Feb 2025 09:05:27 +0000 Subject: [PATCH] [GitHubEnterprise-3.13] Update to 1.1.4-50b5f868629d9d1260dbd8cc8a0f7a02 from 1.1.4-21328c477fcf59892ec22f32ff4cf8b7 Detected Schema changes: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ``` ├─┬Paths │ ├─┬/scim/v2/enterprises/{enterprise}/Groups │ │ └─┬GET │ │ └─┬Parameters │ │ └──[🔀] description (39648:22) │ └─┬/scim/v2/enterprises/{enterprise}/Users │ └─┬GET │ └─┬Parameters │ └──[🔀] description (40000:22) └─┬Components ├─┬code-scanning-organization-alert-items │ └──[➖] properties (69402:9)❌ ├─┬webhook-code-scanning-alert-closed-by-user │ └─┬alert │ └──[➖] properties (101849:13)❌ ├─┬webhook-code-scanning-alert-created │ └─┬alert │ └──[➖] properties (102145:13)❌ ├─┬code-scanning-alert │ └──[➖] properties (80243:9)❌ └─┬code-scanning-alert-items └──[➖] properties (80134:9)❌ ``` | Document Element | Total Changes | Breaking Changes | |------------------|---------------|------------------| | paths | 2 | 0 | | components | 5 | 5 | Date: 02/13/25 | Commit: New: etc/specs/GitHubEnterprise-3.13/previous.spec.yaml, Original: etc/specs/GitHubEnterprise-3.13/current.spec.yaml - ❌ **BREAKING Changes**: _5_ out of _7_ - **Modifications**: _2_ - **Removals**: _5_ - **Breaking Removals**: _5_ ERROR: breaking changes discovered --- .../etc/openapi-client-generator.state | 44 +- .../Repo/CodeScanning/Alerts/AlertNumber.php | 29 ++ .../Hydrator/WebHook/CodeScanningAlert.php | 481 ++++++++++++++++++ .../src/Internal/Hydrators.php | 4 +- .../ListProvisionedGroupsEnterprise.php | 2 +- .../ListProvisionedIdentitiesEnterprise.php | 2 +- .../ListProvisionedGroupsEnterprise.php | 1 - .../ListProvisionedIdentitiesEnterprise.php | 1 - .../Internal/Router/Get/EnterpriseAdmin.php | 2 - .../src/Internal/Router/Get/Six.php | 2 +- .../src/Operation/EnterpriseAdmin.php | 2 - .../src/PHPStan/ClientCallReturnTypes.php | 4 +- .../src/Schema/CodeScanningAlert.php | 202 +++++++- .../src/Schema/CodeScanningAlertItems.php | 202 +++++++- .../CodeScanningOrganizationAlertItems.php | 202 +++++++- .../WebhookCodeScanningAlertClosedByUser.php | 125 ++++- .../Alert.php | 128 ++++- .../Alert/DismissalApprovedBy.php | 11 + .../WebhookCodeScanningAlertCreated.php | 8 +- .../WebhookCodeScanningAlertCreated/Alert.php | 11 +- .../tests/Types/ClientCallReturnTypes.php | 4 +- .../GitHubEnterprise-3.13/current.spec.yaml | 92 +++- 22 files changed, 1512 insertions(+), 47 deletions(-) create mode 100644 clients/GitHubEnterprise-3.13/src/Schema/WebhookCodeScanningAlertClosedByUser/Alert/DismissalApprovedBy.php diff --git a/clients/GitHubEnterprise-3.13/etc/openapi-client-generator.state b/clients/GitHubEnterprise-3.13/etc/openapi-client-generator.state index 326fd85f8da..963daa396d0 100644 --- a/clients/GitHubEnterprise-3.13/etc/openapi-client-generator.state +++ b/clients/GitHubEnterprise-3.13/etc/openapi-client-generator.state @@ -1,5 +1,5 @@ { - "specHash": "21328c477fcf59892ec22f32ff4cf8b7", + "specHash": "50b5f868629d9d1260dbd8cc8a0f7a02", "generatedFiles": { "files": [ { @@ -10744,11 +10744,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Operation\/EnterpriseAdmin\/ListProvisionedGroupsEnterprise.php", - "hash": "cd460736f3e3abe46d504126639546d7" + "hash": "d28f69c1e3c09046f6a78b699678cef2" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Operator\/EnterpriseAdmin\/ListProvisionedGroupsEnterprise.php", - "hash": "75b7740fb512adfb41a711553a784db0" + "hash": "5ebd59b377fa56da84093860b074238a" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/tests\/\/Internal\/Operation\/EnterpriseAdmin\/ListProvisionedGroupsEnterpriseTest.php", @@ -10816,11 +10816,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Operation\/EnterpriseAdmin\/ListProvisionedIdentitiesEnterprise.php", - "hash": "b90351000c7f39f737091d5d80284d4a" + "hash": "0b8571674a875ea95ef2d0c307e220d9" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Operator\/EnterpriseAdmin\/ListProvisionedIdentitiesEnterprise.php", - "hash": "613713434ca904649774a4361befc2fc" + "hash": "612cab6a7bf4459cf097650381dd5e75" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/tests\/\/Internal\/Operation\/EnterpriseAdmin\/ListProvisionedIdentitiesEnterpriseTest.php", @@ -13576,7 +13576,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/CodeScanningOrganizationAlertItems.php", - "hash": "cd2b59f249bc7889c9d9245622b5241e" + "hash": "e674ba3352541619423099d9a6fa5595" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/EnterpriseSecurityAnalysisSettings.php", @@ -14404,7 +14404,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/CodeScanningAlertItems.php", - "hash": "ea117ee1658273317edbd008f9fa79fe" + "hash": "a055e77b208109dad8014223cee5b045" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/CodeScanningAlertRule.php", @@ -14412,7 +14412,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/CodeScanningAlert.php", - "hash": "1dbea3fe5ef1597bffc0883c6460472c" + "hash": "6a469a2139757b48de5c1a72323e3b0e" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/CodeScanningAlertSetState.php", @@ -16128,11 +16128,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertClosedByUser.php", - "hash": "7fd8121f5fec135b015c400b7c590ab4" + "hash": "c53b9f50e628ac40c9e82da6904f5e7b" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertCreated.php", - "hash": "f652331fa25d70854c24d1dafd219101" + "hash": "eded890de51aaed6e5e00bba829d5f65" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertFixed.php", @@ -22404,7 +22404,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertClosedByUser\/Alert.php", - "hash": "61e223de721d161fa7481d7d06825e0e" + "hash": "dd174930a9e564e98847905a8c5928de" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet68F621CA\/Tiet1BC17E38\/TietE93CD08C\/TietADDD8B6D.php", @@ -22444,7 +22444,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertCreated\/Alert.php", - "hash": "08de7759babf89a934fa0c83a9e9be32" + "hash": "936e60c31acbb751c5998300a73e0d30" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertCreated\/Alert\/Tool.php", @@ -26404,7 +26404,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Router\/Get\/EnterpriseAdmin.php", - "hash": "801992ac075569c0e94b45dcad3b8b4e" + "hash": "e38ca79cf72a9ce8e17d8fd2b95704ca" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Router\/Get\/SecurityAdvisories.php", @@ -26936,7 +26936,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Six.php", - "hash": "fb8d914498dc8ddad6eaa4249ed98e34" + "hash": "50d790ea7d404c399793f46285dec6a4" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Two.php", @@ -27148,11 +27148,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/PHPStan\/ClientCallReturnTypes.php", - "hash": "2fb5474325448bccbcb22bb7d1158ea1" + "hash": "f324c61f921af29dd138e579e680742d" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/tests\/\/Types\/ClientCallReturnTypes.php", - "hash": "54beea339c8099994a522e19c9c55b8c" + "hash": "ca7adf5daf67b5004f0909656cca8349" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/..\/etc\/phpstan-extension.neon", @@ -27168,7 +27168,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Operation\/EnterpriseAdmin.php", - "hash": "3969d0c96e854589ccfd64812d38dcba" + "hash": "d0f6cc583f7b5b3c98ebbcc1a07a01b3" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Operation\/SecurityAdvisories.php", @@ -28720,7 +28720,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/CodeScanning\/Alerts\/AlertNumber.php", - "hash": "ac4cca3714a6f496147c1997ae7234b0" + "hash": "b9452bc32629313c2650579a65f77f38" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/CodeScanning\/Alerts\/AlertNumber\/Instances.php", @@ -29684,7 +29684,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/CodeScanningAlert.php", - "hash": "c4af9cb1ff959a410e9570afdd27508e" + "hash": "c26b2d8da129630380b31d51be373718" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/CommitComment.php", @@ -29932,7 +29932,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Hydrators.php", - "hash": "151d6e808352d3ce2a34abb1d984740b" + "hash": "99414eaacd7b74f08980cadd8c36e384" }, { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/ApiOverview\/Domains\/ActionsInbound.php", @@ -29957,6 +29957,10 @@ { "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/TietEAB1E353\/TietA691FF98\/TietCADB7922\/TietA4382CA1.php", "hash": "c57517b93469a1558cb104c0b535b6c4" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertClosedByUser\/Alert\/DismissalApprovedBy.php", + "hash": "b21a2b229d82f916d8ec095470db0021" } ] }, diff --git a/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/Operation/Repos/Owner/Repo/CodeScanning/Alerts/AlertNumber.php b/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/Operation/Repos/Owner/Repo/CodeScanning/Alerts/AlertNumber.php index ff437ba424a..ac16c1c6208 100644 --- a/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/Operation/Repos/Owner/Repo/CodeScanning/Alerts/AlertNumber.php +++ b/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/Operation/Repos/Owner/Repo/CodeScanning/Alerts/AlertNumber.php @@ -266,6 +266,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema $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⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['dismissalApprovedBy'] = $value; + + after_dismissalApprovedBy: } catch (Throwable $exception) { throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\CodeScanningAlert', $exception, stack: $this->hydrationStack); } @@ -1269,6 +1289,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ $mostRecentInstance = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️CodeScanningAlertInstance($mostRecentInstance); after_mostRecentInstance: $result['most_recent_instance'] = $mostRecentInstance; + $dismissalApprovedBy = $object->dismissalApprovedBy; + + if ($dismissalApprovedBy === null) { + goto after_dismissalApprovedBy; + } + + $dismissalApprovedBy = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUser($dismissalApprovedBy); + after_dismissalApprovedBy: $result['dismissal_approved_by'] = $dismissalApprovedBy; + return $result; } diff --git a/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/WebHook/CodeScanningAlert.php b/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/WebHook/CodeScanningAlert.php index 4a75b918fa9..f1af0fa684d 100644 --- a/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/WebHook/CodeScanningAlert.php +++ b/clients/GitHubEnterprise-3.13/src/Internal/Hydrator/WebHook/CodeScanningAlert.php @@ -23,6 +23,7 @@ use ApiClients\Client\GitHubEnterprise\Schema\WebhookCodeScanningAlertAppearedInBranch\Alert\Rule; use ApiClients\Client\GitHubEnterprise\Schema\WebhookCodeScanningAlertAppearedInBranch\Alert\Tool; use ApiClients\Client\GitHubEnterprise\Schema\WebhookCodeScanningAlertClosedByUser; +use ApiClients\Client\GitHubEnterprise\Schema\WebhookCodeScanningAlertClosedByUser\Alert\DismissalApprovedBy; use ApiClients\Client\GitHubEnterprise\Schema\WebhookCodeScanningAlertCreated; use ApiClients\Client\GitHubEnterprise\Schema\WebhookCodeScanningAlertFixed; use ApiClients\Client\GitHubEnterprise\Schema\WebhookCodeScanningAlertReopened; @@ -88,6 +89,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterprise\Schema\WebhookCodeScanningAlertClosedByUser\Alert\MostRecentInstance\Message' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhookCodeScanningAlertClosedByUser⚡️Alert⚡️MostRecentInstance⚡️Message($payload), 'ApiClients\Client\GitHubEnterprise\Schema\WebhookCodeScanningAlertClosedByUser\Alert\Rule' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhookCodeScanningAlertClosedByUser⚡️Alert⚡️Rule($payload), 'ApiClients\Client\GitHubEnterprise\Schema\WebhookCodeScanningAlertClosedByUser\Alert\Tool' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhookCodeScanningAlertClosedByUser⚡️Alert⚡️Tool($payload), + 'ApiClients\Client\GitHubEnterprise\Schema\WebhookCodeScanningAlertClosedByUser\Alert\DismissalApprovedBy' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhookCodeScanningAlertClosedByUser⚡️Alert⚡️DismissalApprovedBy($payload), 'ApiClients\Client\GitHubEnterprise\Schema\WebhookCodeScanningAlertCreated' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhookCodeScanningAlertCreated($payload), 'ApiClients\Client\GitHubEnterprise\Schema\WebhookCodeScanningAlertCreated\Alert' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhookCodeScanningAlertCreated⚡️Alert($payload), 'ApiClients\Client\GitHubEnterprise\Schema\WebhookCodeScanningAlertCreated\Alert\MostRecentInstance' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhookCodeScanningAlertCreated⚡️Alert⚡️MostRecentInstance($payload), @@ -4641,6 +4643,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema $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⚡️GitHubEnterprise⚡️Schema⚡️WebhookCodeScanningAlertClosedByUser⚡️Alert⚡️DismissalApprovedBy($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['dismissalApprovedBy'] = $value; + + after_dismissalApprovedBy: } catch (Throwable $exception) { throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\WebhookCodeScanningAlertClosedByUser\Alert', $exception, stack: $this->hydrationStack); } @@ -5316,6 +5338,267 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema } } + private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️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\GitHubEnterprise\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\GitHubEnterprise\Schema\WebhookCodeScanningAlertClosedByUser\Alert\DismissalApprovedBy', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhookCodeScanningAlertCreated(array $payload): WebhookCodeScanningAlertCreated { $properties = []; @@ -5684,6 +5967,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema $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\GitHubEnterprise\Schema\WebhookCodeScanningAlertCreated\Alert', $exception, stack: $this->hydrationStack); } @@ -8699,6 +8993,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterprise\Schema\WebhookCodeScanningAlertClosedByUser\Alert\MostRecentInstance\Message' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhookCodeScanningAlertClosedByUser⚡️Alert⚡️MostRecentInstance⚡️Message($object), 'ApiClients\Client\GitHubEnterprise\Schema\WebhookCodeScanningAlertClosedByUser\Alert\Rule' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhookCodeScanningAlertClosedByUser⚡️Alert⚡️Rule($object), 'ApiClients\Client\GitHubEnterprise\Schema\WebhookCodeScanningAlertClosedByUser\Alert\Tool' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhookCodeScanningAlertClosedByUser⚡️Alert⚡️Tool($object), + 'ApiClients\Client\GitHubEnterprise\Schema\WebhookCodeScanningAlertClosedByUser\Alert\DismissalApprovedBy' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhookCodeScanningAlertClosedByUser⚡️Alert⚡️DismissalApprovedBy($object), 'ApiClients\Client\GitHubEnterprise\Schema\WebhookCodeScanningAlertCreated' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhookCodeScanningAlertCreated($object), 'ApiClients\Client\GitHubEnterprise\Schema\WebhookCodeScanningAlertCreated\Alert' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhookCodeScanningAlertCreated⚡️Alert($object), 'ApiClients\Client\GitHubEnterprise\Schema\WebhookCodeScanningAlertCreated\Alert\MostRecentInstance' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhookCodeScanningAlertCreated⚡️Alert⚡️MostRecentInstance($object), @@ -11102,6 +11397,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ $url = $object->url; after_url: $result['url'] = $url; + $dismissalApprovedBy = $object->dismissalApprovedBy; + + if ($dismissalApprovedBy === null) { + goto after_dismissalApprovedBy; + } + + $dismissalApprovedBy = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhookCodeScanningAlertClosedByUser⚡️Alert⚡️DismissalApprovedBy($dismissalApprovedBy); + after_dismissalApprovedBy: $result['dismissal_approved_by'] = $dismissalApprovedBy; + return $result; } @@ -11508,6 +11812,180 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️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⚡️GitHubEnterprise⚡️Schema⚡️WebhookCodeScanningAlertCreated(mixed $object): mixed { assert($object instanceof WebhookCodeScanningAlertCreated); @@ -11652,6 +12130,9 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡ $url = $object->url; after_url: $result['url'] = $url; + $dismissalApprovedBy = $object->dismissalApprovedBy; + after_dismissalApprovedBy: $result['dismissal_approved_by'] = $dismissalApprovedBy; + return $result; } diff --git a/clients/GitHubEnterprise-3.13/src/Internal/Hydrators.php b/clients/GitHubEnterprise-3.13/src/Internal/Hydrators.php index 701b038a181..3cd46ca85b4 100644 --- a/clients/GitHubEnterprise-3.13/src/Internal/Hydrators.php +++ b/clients/GitHubEnterprise-3.13/src/Internal/Hydrators.php @@ -961,7 +961,7 @@ public function hydrateObject(string $className, array $payload): object '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCacheSync' => $this->getObjectMapperWebHook🪝CacheSync()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCheckRunCompleted', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\CheckRunWithSimpleCheckSuite', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\SimpleCheckSuite', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\CheckRunWithSimpleCheckSuite\\Output', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCheckRunCompletedFormEncoded', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCheckRunCreated', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCheckRunCreatedFormEncoded', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCheckRunRequestedAction', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCheckRunRequestedAction\\RequestedAction', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCheckRunRequestedActionFormEncoded', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCheckRunRerequested', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCheckRunRerequestedFormEncoded' => $this->getObjectMapperWebHook🪝CheckRun()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCheckSuiteCompleted', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCheckSuiteCompleted\\CheckSuite', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCheckSuiteCompleted\\CheckSuite\\App', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCheckSuiteCompleted\\CheckSuite\\App\\Owner', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCheckSuiteCompleted\\CheckSuite\\App\\Permissions', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCheckSuiteCompleted\\CheckSuite\\HeadCommit', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCheckSuiteCompleted\\CheckSuite\\HeadCommit\\Author', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCheckSuiteCompleted\\CheckSuite\\HeadCommit\\Committer', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCheckSuiteRequested', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCheckSuiteRequested\\CheckSuite', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCheckSuiteRequested\\CheckSuite\\App', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCheckSuiteRequested\\CheckSuite\\App\\Owner', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCheckSuiteRequested\\CheckSuite\\App\\Permissions', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCheckSuiteRequested\\CheckSuite\\HeadCommit', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCheckSuiteRequested\\CheckSuite\\HeadCommit\\Author', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCheckSuiteRequested\\CheckSuite\\HeadCommit\\Committer', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCheckSuiteRerequested', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCheckSuiteRerequested\\CheckSuite', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCheckSuiteRerequested\\CheckSuite\\App', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCheckSuiteRerequested\\CheckSuite\\App\\Owner', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCheckSuiteRerequested\\CheckSuite\\App\\Permissions', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCheckSuiteRerequested\\CheckSuite\\HeadCommit', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCheckSuiteRerequested\\CheckSuite\\HeadCommit\\Author', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCheckSuiteRerequested\\CheckSuite\\HeadCommit\\Committer' => $this->getObjectMapperWebHook🪝CheckSuite()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertAppearedInBranch', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertAppearedInBranch\\Alert', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertAppearedInBranch\\Alert\\DismissedBy', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertAppearedInBranch\\Alert\\MostRecentInstance', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertAppearedInBranch\\Alert\\MostRecentInstance\\Location', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertAppearedInBranch\\Alert\\MostRecentInstance\\Message', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertAppearedInBranch\\Alert\\Rule', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertAppearedInBranch\\Alert\\Tool', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertClosedByUser', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertClosedByUser\\Alert', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertClosedByUser\\Alert\\DismissedBy', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertClosedByUser\\Alert\\MostRecentInstance', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertClosedByUser\\Alert\\MostRecentInstance\\Location', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertClosedByUser\\Alert\\MostRecentInstance\\Message', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertClosedByUser\\Alert\\Rule', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertClosedByUser\\Alert\\Tool', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertCreated', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertCreated\\Alert', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertCreated\\Alert\\MostRecentInstance', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertCreated\\Alert\\MostRecentInstance\\Location', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertCreated\\Alert\\MostRecentInstance\\Message', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertCreated\\Alert\\Rule', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertCreated\\Alert\\Tool', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertFixed', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertFixed\\Alert', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertFixed\\Alert\\DismissedBy', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertFixed\\Alert\\MostRecentInstance', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertFixed\\Alert\\MostRecentInstance\\Location', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertFixed\\Alert\\MostRecentInstance\\Message', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertFixed\\Alert\\Rule', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertFixed\\Alert\\Tool', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertReopened', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertReopened\\Alert', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertReopened\\Alert\\DismissedBy', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertReopened\\Alert\\MostRecentInstance', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertReopened\\Alert\\MostRecentInstance\\Location', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertReopened\\Alert\\MostRecentInstance\\Message', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertReopened\\Alert\\Rule', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertReopened\\Alert\\Tool', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertReopenedByUser', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertReopenedByUser\\Alert', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertReopenedByUser\\Alert\\MostRecentInstance', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertReopenedByUser\\Alert\\MostRecentInstance\\Location', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertReopenedByUser\\Alert\\MostRecentInstance\\Message', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertReopenedByUser\\Alert\\Rule', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertReopenedByUser\\Alert\\Tool' => $this->getObjectMapperWebHook🪝CodeScanningAlert()->hydrateObject($className, $payload), + '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertAppearedInBranch', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertAppearedInBranch\\Alert', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertAppearedInBranch\\Alert\\DismissedBy', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertAppearedInBranch\\Alert\\MostRecentInstance', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertAppearedInBranch\\Alert\\MostRecentInstance\\Location', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertAppearedInBranch\\Alert\\MostRecentInstance\\Message', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertAppearedInBranch\\Alert\\Rule', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertAppearedInBranch\\Alert\\Tool', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertClosedByUser', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertClosedByUser\\Alert', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertClosedByUser\\Alert\\DismissedBy', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertClosedByUser\\Alert\\MostRecentInstance', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertClosedByUser\\Alert\\MostRecentInstance\\Location', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertClosedByUser\\Alert\\MostRecentInstance\\Message', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertClosedByUser\\Alert\\Rule', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertClosedByUser\\Alert\\Tool', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertClosedByUser\\Alert\\DismissalApprovedBy', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertCreated', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertCreated\\Alert', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertCreated\\Alert\\MostRecentInstance', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertCreated\\Alert\\MostRecentInstance\\Location', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertCreated\\Alert\\MostRecentInstance\\Message', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertCreated\\Alert\\Rule', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertCreated\\Alert\\Tool', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertFixed', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertFixed\\Alert', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertFixed\\Alert\\DismissedBy', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertFixed\\Alert\\MostRecentInstance', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertFixed\\Alert\\MostRecentInstance\\Location', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertFixed\\Alert\\MostRecentInstance\\Message', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertFixed\\Alert\\Rule', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertFixed\\Alert\\Tool', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertReopened', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertReopened\\Alert', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertReopened\\Alert\\DismissedBy', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertReopened\\Alert\\MostRecentInstance', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertReopened\\Alert\\MostRecentInstance\\Location', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertReopened\\Alert\\MostRecentInstance\\Message', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertReopened\\Alert\\Rule', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertReopened\\Alert\\Tool', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertReopenedByUser', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertReopenedByUser\\Alert', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertReopenedByUser\\Alert\\MostRecentInstance', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertReopenedByUser\\Alert\\MostRecentInstance\\Location', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertReopenedByUser\\Alert\\MostRecentInstance\\Message', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertReopenedByUser\\Alert\\Rule', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertReopenedByUser\\Alert\\Tool' => $this->getObjectMapperWebHook🪝CodeScanningAlert()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCommitCommentCreated', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCommitCommentCreated\\Comment', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCommitCommentCreated\\Comment\\Reactions', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCommitCommentCreated\\Comment\\User' => $this->getObjectMapperWebHook🪝CommitComment()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCreate' => $this->getObjectMapperWebHook🪝Create()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookDelete' => $this->getObjectMapperWebHook🪝Delete()->hydrateObject($className, $payload), @@ -1303,7 +1303,7 @@ public function serializeObjectOfType(object $object, string $className): mixed '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCacheSync' => $this->getObjectMapperWebHook🪝CacheSync()->serializeObject($object), '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCheckRunCompleted', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\CheckRunWithSimpleCheckSuite', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\SimpleCheckSuite', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\CheckRunWithSimpleCheckSuite\\Output', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCheckRunCompletedFormEncoded', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCheckRunCreated', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCheckRunCreatedFormEncoded', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCheckRunRequestedAction', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCheckRunRequestedAction\\RequestedAction', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCheckRunRequestedActionFormEncoded', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCheckRunRerequested', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCheckRunRerequestedFormEncoded' => $this->getObjectMapperWebHook🪝CheckRun()->serializeObject($object), '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCheckSuiteCompleted', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCheckSuiteCompleted\\CheckSuite', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCheckSuiteCompleted\\CheckSuite\\App', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCheckSuiteCompleted\\CheckSuite\\App\\Owner', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCheckSuiteCompleted\\CheckSuite\\App\\Permissions', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCheckSuiteCompleted\\CheckSuite\\HeadCommit', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCheckSuiteCompleted\\CheckSuite\\HeadCommit\\Author', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCheckSuiteCompleted\\CheckSuite\\HeadCommit\\Committer', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCheckSuiteRequested', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCheckSuiteRequested\\CheckSuite', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCheckSuiteRequested\\CheckSuite\\App', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCheckSuiteRequested\\CheckSuite\\App\\Owner', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCheckSuiteRequested\\CheckSuite\\App\\Permissions', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCheckSuiteRequested\\CheckSuite\\HeadCommit', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCheckSuiteRequested\\CheckSuite\\HeadCommit\\Author', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCheckSuiteRequested\\CheckSuite\\HeadCommit\\Committer', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCheckSuiteRerequested', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCheckSuiteRerequested\\CheckSuite', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCheckSuiteRerequested\\CheckSuite\\App', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCheckSuiteRerequested\\CheckSuite\\App\\Owner', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCheckSuiteRerequested\\CheckSuite\\App\\Permissions', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCheckSuiteRerequested\\CheckSuite\\HeadCommit', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCheckSuiteRerequested\\CheckSuite\\HeadCommit\\Author', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCheckSuiteRerequested\\CheckSuite\\HeadCommit\\Committer' => $this->getObjectMapperWebHook🪝CheckSuite()->serializeObject($object), - '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertAppearedInBranch', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertAppearedInBranch\\Alert', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertAppearedInBranch\\Alert\\DismissedBy', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertAppearedInBranch\\Alert\\MostRecentInstance', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertAppearedInBranch\\Alert\\MostRecentInstance\\Location', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertAppearedInBranch\\Alert\\MostRecentInstance\\Message', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertAppearedInBranch\\Alert\\Rule', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertAppearedInBranch\\Alert\\Tool', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertClosedByUser', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertClosedByUser\\Alert', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertClosedByUser\\Alert\\DismissedBy', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertClosedByUser\\Alert\\MostRecentInstance', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertClosedByUser\\Alert\\MostRecentInstance\\Location', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertClosedByUser\\Alert\\MostRecentInstance\\Message', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertClosedByUser\\Alert\\Rule', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertClosedByUser\\Alert\\Tool', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertCreated', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertCreated\\Alert', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertCreated\\Alert\\MostRecentInstance', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertCreated\\Alert\\MostRecentInstance\\Location', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertCreated\\Alert\\MostRecentInstance\\Message', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertCreated\\Alert\\Rule', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertCreated\\Alert\\Tool', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertFixed', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertFixed\\Alert', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertFixed\\Alert\\DismissedBy', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertFixed\\Alert\\MostRecentInstance', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertFixed\\Alert\\MostRecentInstance\\Location', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertFixed\\Alert\\MostRecentInstance\\Message', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertFixed\\Alert\\Rule', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertFixed\\Alert\\Tool', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertReopened', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertReopened\\Alert', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertReopened\\Alert\\DismissedBy', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertReopened\\Alert\\MostRecentInstance', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertReopened\\Alert\\MostRecentInstance\\Location', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertReopened\\Alert\\MostRecentInstance\\Message', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertReopened\\Alert\\Rule', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertReopened\\Alert\\Tool', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertReopenedByUser', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertReopenedByUser\\Alert', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertReopenedByUser\\Alert\\MostRecentInstance', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertReopenedByUser\\Alert\\MostRecentInstance\\Location', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertReopenedByUser\\Alert\\MostRecentInstance\\Message', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertReopenedByUser\\Alert\\Rule', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertReopenedByUser\\Alert\\Tool' => $this->getObjectMapperWebHook🪝CodeScanningAlert()->serializeObject($object), + '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertAppearedInBranch', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertAppearedInBranch\\Alert', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertAppearedInBranch\\Alert\\DismissedBy', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertAppearedInBranch\\Alert\\MostRecentInstance', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertAppearedInBranch\\Alert\\MostRecentInstance\\Location', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertAppearedInBranch\\Alert\\MostRecentInstance\\Message', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertAppearedInBranch\\Alert\\Rule', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertAppearedInBranch\\Alert\\Tool', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertClosedByUser', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertClosedByUser\\Alert', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertClosedByUser\\Alert\\DismissedBy', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertClosedByUser\\Alert\\MostRecentInstance', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertClosedByUser\\Alert\\MostRecentInstance\\Location', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertClosedByUser\\Alert\\MostRecentInstance\\Message', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertClosedByUser\\Alert\\Rule', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertClosedByUser\\Alert\\Tool', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertClosedByUser\\Alert\\DismissalApprovedBy', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertCreated', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertCreated\\Alert', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertCreated\\Alert\\MostRecentInstance', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertCreated\\Alert\\MostRecentInstance\\Location', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertCreated\\Alert\\MostRecentInstance\\Message', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertCreated\\Alert\\Rule', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertCreated\\Alert\\Tool', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertFixed', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertFixed\\Alert', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertFixed\\Alert\\DismissedBy', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertFixed\\Alert\\MostRecentInstance', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertFixed\\Alert\\MostRecentInstance\\Location', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertFixed\\Alert\\MostRecentInstance\\Message', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertFixed\\Alert\\Rule', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertFixed\\Alert\\Tool', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertReopened', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertReopened\\Alert', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertReopened\\Alert\\DismissedBy', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertReopened\\Alert\\MostRecentInstance', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertReopened\\Alert\\MostRecentInstance\\Location', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertReopened\\Alert\\MostRecentInstance\\Message', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertReopened\\Alert\\Rule', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertReopened\\Alert\\Tool', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertReopenedByUser', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertReopenedByUser\\Alert', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertReopenedByUser\\Alert\\MostRecentInstance', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertReopenedByUser\\Alert\\MostRecentInstance\\Location', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertReopenedByUser\\Alert\\MostRecentInstance\\Message', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertReopenedByUser\\Alert\\Rule', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCodeScanningAlertReopenedByUser\\Alert\\Tool' => $this->getObjectMapperWebHook🪝CodeScanningAlert()->serializeObject($object), '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCommitCommentCreated', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCommitCommentCreated\\Comment', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCommitCommentCreated\\Comment\\Reactions', '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCommitCommentCreated\\Comment\\User' => $this->getObjectMapperWebHook🪝CommitComment()->serializeObject($object), '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookCreate' => $this->getObjectMapperWebHook🪝Create()->serializeObject($object), '\\ApiClients\\Client\\GitHubEnterprise\\Schema\\WebhookDelete' => $this->getObjectMapperWebHook🪝Delete()->serializeObject($object), diff --git a/clients/GitHubEnterprise-3.13/src/Internal/Operation/EnterpriseAdmin/ListProvisionedGroupsEnterprise.php b/clients/GitHubEnterprise-3.13/src/Internal/Operation/EnterpriseAdmin/ListProvisionedGroupsEnterprise.php index 47caae5b40c..1f18d593bc3 100644 --- a/clients/GitHubEnterprise-3.13/src/Internal/Operation/EnterpriseAdmin/ListProvisionedGroupsEnterprise.php +++ b/clients/GitHubEnterprise-3.13/src/Internal/Operation/EnterpriseAdmin/ListProvisionedGroupsEnterprise.php @@ -23,7 +23,7 @@ final class ListProvisionedGroupsEnterprise { public const OPERATION_ID = 'enterprise-admin/list-provisioned-groups-enterprise'; public const OPERATION_MATCH = 'GET /scim/v2/enterprises/{enterprise}/Groups'; - /**If specified, only results that match the specified filter will be returned. Multiple filters are not supported. Possible filters are `externalId`, `id`, and `displayName`. For example, `?filter='externalId eq "9138790-10932-109120392-12321"'`. **/ + /**If specified, only results that match the specified filter will be returned. Multiple filters are not supported. Possible filters are `externalId`, `id`, and `displayName`. For example, `?filter=externalId eq "9138790-10932-109120392-12321"`. **/ private string $filter; /**Excludes the specified attribute from being returned in the results. Using this parameter can speed up response time. **/ private string $excludedAttributes; diff --git a/clients/GitHubEnterprise-3.13/src/Internal/Operation/EnterpriseAdmin/ListProvisionedIdentitiesEnterprise.php b/clients/GitHubEnterprise-3.13/src/Internal/Operation/EnterpriseAdmin/ListProvisionedIdentitiesEnterprise.php index 48736e79ef5..10f502e7364 100644 --- a/clients/GitHubEnterprise-3.13/src/Internal/Operation/EnterpriseAdmin/ListProvisionedIdentitiesEnterprise.php +++ b/clients/GitHubEnterprise-3.13/src/Internal/Operation/EnterpriseAdmin/ListProvisionedIdentitiesEnterprise.php @@ -23,7 +23,7 @@ final class ListProvisionedIdentitiesEnterprise { public const OPERATION_ID = 'enterprise-admin/list-provisioned-identities-enterprise'; public const OPERATION_MATCH = 'GET /scim/v2/enterprises/{enterprise}/Users'; - /**If specified, only results that match the specified filter will be returned. Multiple filters are not supported. Possible filters are `userName`, `externalId`, `id`, and `displayName`. For example, `?filter='externalId eq "9138790-10932-109120392-12321"'`. **/ + /**If specified, only results that match the specified filter will be returned. Multiple filters are not supported. Possible filters are `userName`, `externalId`, `id`, and `displayName`. For example, `?filter=externalId eq "9138790-10932-109120392-12321"`. **/ private string $filter; /**The slug version of the enterprise name. You can also substitute this value with the enterprise id. **/ private string $enterprise; diff --git a/clients/GitHubEnterprise-3.13/src/Internal/Operator/EnterpriseAdmin/ListProvisionedGroupsEnterprise.php b/clients/GitHubEnterprise-3.13/src/Internal/Operator/EnterpriseAdmin/ListProvisionedGroupsEnterprise.php index 0b938d14897..4eeb755ec5d 100644 --- a/clients/GitHubEnterprise-3.13/src/Internal/Operator/EnterpriseAdmin/ListProvisionedGroupsEnterprise.php +++ b/clients/GitHubEnterprise-3.13/src/Internal/Operator/EnterpriseAdmin/ListProvisionedGroupsEnterprise.php @@ -25,7 +25,6 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return */ public function call(string $filter, string $excludedAttributes, string $enterprise, int $startIndex = 1, int $count = 30): ScimEnterpriseGroupList|WithoutBody { $operation = new \ApiClients\Client\GitHubEnterprise\Internal\Operation\EnterpriseAdmin\ListProvisionedGroupsEnterprise($this->responseSchemaValidator, $this->hydrator, $filter, $excludedAttributes, $enterprise, $startIndex, $count); diff --git a/clients/GitHubEnterprise-3.13/src/Internal/Operator/EnterpriseAdmin/ListProvisionedIdentitiesEnterprise.php b/clients/GitHubEnterprise-3.13/src/Internal/Operator/EnterpriseAdmin/ListProvisionedIdentitiesEnterprise.php index 9d765474662..397fdf6ac2b 100644 --- a/clients/GitHubEnterprise-3.13/src/Internal/Operator/EnterpriseAdmin/ListProvisionedIdentitiesEnterprise.php +++ b/clients/GitHubEnterprise-3.13/src/Internal/Operator/EnterpriseAdmin/ListProvisionedIdentitiesEnterprise.php @@ -25,7 +25,6 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return */ public function call(string $filter, string $enterprise, int $startIndex = 1, int $count = 30): ScimEnterpriseUserList|WithoutBody { $operation = new \ApiClients\Client\GitHubEnterprise\Internal\Operation\EnterpriseAdmin\ListProvisionedIdentitiesEnterprise($this->responseSchemaValidator, $this->hydrator, $filter, $enterprise, $startIndex, $count); diff --git a/clients/GitHubEnterprise-3.13/src/Internal/Router/Get/EnterpriseAdmin.php b/clients/GitHubEnterprise-3.13/src/Internal/Router/Get/EnterpriseAdmin.php index 73c3a6912d1..4b0e691adad 100644 --- a/clients/GitHubEnterprise-3.13/src/Internal/Router/Get/EnterpriseAdmin.php +++ b/clients/GitHubEnterprise-3.13/src/Internal/Router/Get/EnterpriseAdmin.php @@ -690,7 +690,6 @@ public function getPreReceiveHookForRepo(array $params): RepositoryPreReceiveHoo return $operator->call($arguments['owner'], $arguments['repo'], $arguments['pre_receive_hook_id']); } - /** @return */ public function listProvisionedGroupsEnterprise(array $params): ScimEnterpriseGroupList|WithoutBody { $arguments = []; @@ -729,7 +728,6 @@ public function listProvisionedGroupsEnterprise(array $params): ScimEnterpriseGr return $operator->call($arguments['filter'], $arguments['excludedAttributes'], $arguments['enterprise'], $arguments['startIndex'], $arguments['count']); } - /** @return */ public function listProvisionedIdentitiesEnterprise(array $params): ScimEnterpriseUserList|WithoutBody { $arguments = []; diff --git a/clients/GitHubEnterprise-3.13/src/Internal/Router/Get/Six.php b/clients/GitHubEnterprise-3.13/src/Internal/Router/Get/Six.php index eb0bdb15668..49b02da7eed 100644 --- a/clients/GitHubEnterprise-3.13/src/Internal/Router/Get/Six.php +++ b/clients/GitHubEnterprise-3.13/src/Internal/Router/Get/Six.php @@ -69,7 +69,7 @@ public function __construct(private Routers $routers) { } - /** @return |Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|WithoutBody|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|Observable|Observable|Observable|Observable|Observable|WithoutBody|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|Schema\ScimEnterpriseGroupList|\ApiClients\Tools\OpenApiClient\Utils\Response\WithoutBody|Schema\ScimEnterpriseUserList|Observable|Observable|Observable|Observable */ public function call(string $call, array $params, array $pathChunks): PreReceiveEnvironmentDownloadStatus|ActionsCacheUsageOrgEnterprise|ActionsCacheUsagePolicyEnterprise|Ok|SelectedActions|ActionsGetDefaultWorkflowPermissions|RunnerGroupsEnterprise|iterable|Runner|AdvancedSecurityActiveCommitters|\ApiClients\Client\GitHubEnterprise\Schema\Operations\EnterpriseAdmin\GetManageConfigApplyEvents\Response\ApplicationJson\Ok|WithoutBody|GhesLicenseCheck|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\GetActionsCacheUsageByRepoForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListSelectedRepositoriesEnabledGithubActionsOrganization\Response\ApplicationJson\Ok|RunnerGroupsOrg|ActionsPublicKey|OrganizationActionsSecret|OrganizationActionsVariable|DependabotPublicKey|OrganizationDependabotSecret|WebhookConfig|Package|CustomProperty|RuleSuite|ExternalGroups|ProjectCollaboratorPermission|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListArtifactsForRepo\Response\ApplicationJson\Ok|ActionsCacheList|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListRepoOrganizationSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListRepoOrganizationVariables\Response\ApplicationJson\Ok|ActionsRepositoryPermissions|Json|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListWorkflowRunsForRepo\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListRepoSecrets\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListRepoVariables\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListRepoWorkflows\Response\ApplicationJson\Ok|Autolink|BranchWithProtection|BasicError|CheckRun|CheckSuite|CodeScanningDefaultSetup|CodeownersErrors|CommitComment|Commit|CommitComparison|ContentDirectory|ContentFile|ContentSymlink|ContentSubmodule|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Dependabot\ListRepoSecrets\Response\ApplicationJson\Ok|DependencyGraphSpdxSbom|Deployment|Environment|Hook|Issue|DeployKey|Label|Milestone|RepositoryPreReceiveHook|PullRequest|Release|RepositoryRuleset|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Repos\GetCodeFrequencyStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Repos\GetCommitActivityStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Repos\GetContributorsStats\Response\ApplicationJson\Accepted\Application\Json|ParticipationStats|ScimEnterpriseGroupList|ScimEnterpriseUserList|TeamRepository { if ($pathChunks[0] === '') { diff --git a/clients/GitHubEnterprise-3.13/src/Operation/EnterpriseAdmin.php b/clients/GitHubEnterprise-3.13/src/Operation/EnterpriseAdmin.php index e6ec8e2cc49..6bb235b1340 100644 --- a/clients/GitHubEnterprise-3.13/src/Operation/EnterpriseAdmin.php +++ b/clients/GitHubEnterprise-3.13/src/Operation/EnterpriseAdmin.php @@ -777,7 +777,6 @@ public function updatePreReceiveHookEnforcementForRepo(string $owner, string $re return $this->operators->enterpriseAdmin👷UpdatePreReceiveHookEnforcementForRepo()->call($owner, $repo, $preReceiveHookId, $params); } - /** @return */ public function listProvisionedGroupsEnterprise(string $filter, string $excludedAttributes, string $enterprise, int $startIndex, int $count): ScimEnterpriseGroupList|WithoutBody { return $this->operators->enterpriseAdmin👷ListProvisionedGroupsEnterprise()->call($filter, $excludedAttributes, $enterprise, $startIndex, $count); @@ -813,7 +812,6 @@ public function updateAttributeForEnterpriseGroup(string $scimGroupId, string $e return $this->operators->enterpriseAdmin👷UpdateAttributeForEnterpriseGroup()->call($scimGroupId, $enterprise, $params); } - /** @return */ public function listProvisionedIdentitiesEnterprise(string $filter, string $enterprise, int $startIndex, int $count): ScimEnterpriseUserList|WithoutBody { return $this->operators->enterpriseAdmin👷ListProvisionedIdentitiesEnterprise()->call($filter, $enterprise, $startIndex, $count); diff --git a/clients/GitHubEnterprise-3.13/src/PHPStan/ClientCallReturnTypes.php b/clients/GitHubEnterprise-3.13/src/PHPStan/ClientCallReturnTypes.php index e42785fc5cb..701c3faab12 100644 --- a/clients/GitHubEnterprise-3.13/src/PHPStan/ClientCallReturnTypes.php +++ b/clients/GitHubEnterprise-3.13/src/PHPStan/ClientCallReturnTypes.php @@ -3792,7 +3792,7 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method } if ($call === 'GET /scim/v2/enterprises/{enterprise}/Groups') { - return $this->typeResolver->resolve(''); + return $this->typeResolver->resolve('Schema\\ScimEnterpriseGroupList|\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody'); } if ($call === 'POST /scim/v2/enterprises/{enterprise}/Groups') { @@ -3816,7 +3816,7 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method } if ($call === 'GET /scim/v2/enterprises/{enterprise}/Users') { - return $this->typeResolver->resolve(''); + return $this->typeResolver->resolve('Schema\\ScimEnterpriseUserList|\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody'); } if ($call === 'POST /scim/v2/enterprises/{enterprise}/Users') { diff --git a/clients/GitHubEnterprise-3.13/src/Schema/CodeScanningAlert.php b/clients/GitHubEnterprise-3.13/src/Schema/CodeScanningAlert.php index d82dd63f085..bb850d2b62c 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/CodeScanningAlert.php +++ b/clients/GitHubEnterprise-3.13/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/GitHubEnterprise-3.13/src/Schema/CodeScanningAlertItems.php b/clients/GitHubEnterprise-3.13/src/Schema/CodeScanningAlertItems.php index 8aff16f9480..06dea634d71 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/CodeScanningAlertItems.php +++ b/clients/GitHubEnterprise-3.13/src/Schema/CodeScanningAlertItems.php @@ -455,6 +455,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." + } + ] } } }'; @@ -531,6 +706,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" } }'; @@ -557,7 +756,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/GitHubEnterprise-3.13/src/Schema/CodeScanningOrganizationAlertItems.php b/clients/GitHubEnterprise-3.13/src/Schema/CodeScanningOrganizationAlertItems.php index 2807ca299db..922d8439fda 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/CodeScanningOrganizationAlertItems.php +++ b/clients/GitHubEnterprise-3.13/src/Schema/CodeScanningOrganizationAlertItems.php @@ -1007,6 +1007,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." + } + ] } } }'; @@ -1154,6 +1329,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" } }'; @@ -1181,7 +1380,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/GitHubEnterprise-3.13/src/Schema/WebhookCodeScanningAlertClosedByUser.php b/clients/GitHubEnterprise-3.13/src/Schema/WebhookCodeScanningAlertClosedByUser.php index eee13ca6f10..006da45ef23 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/WebhookCodeScanningAlertClosedByUser.php +++ b/clients/GitHubEnterprise-3.13/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/GitHubEnterprise-3.13/src/Schema/WebhookCodeScanningAlertClosedByUser/Alert.php b/clients/GitHubEnterprise-3.13/src/Schema/WebhookCodeScanningAlertClosedByUser/Alert.php index 07b44bb34f4..6bac27bc3da 100644 --- a/clients/GitHubEnterprise-3.13/src/Schema/WebhookCodeScanningAlertClosedByUser/Alert.php +++ b/clients/GitHubEnterprise-3.13/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/GitHubEnterprise-3.13/src/Schema/WebhookCodeScanningAlertClosedByUser/Alert/DismissalApprovedBy.php b/clients/GitHubEnterprise-3.13/src/Schema/WebhookCodeScanningAlertClosedByUser/Alert/DismissalApprovedBy.php new file mode 100644 index 00000000000..5706ab89b3a --- /dev/null +++ b/clients/GitHubEnterprise-3.13/src/Schema/WebhookCodeScanningAlertClosedByUser/Alert/DismissalApprovedBy.php @@ -0,0 +1,11 @@ +', $client->call('STREAM /repos/{owner}/{repo}/zipball/{ref}')); assertType('', $client->call('POST /repos/{template_owner}/{template_repo}/generate')); assertType('Observable|WithoutBody', $client->call('GET /repositories')); -assertType('', $client->call('GET /scim/v2/enterprises/{enterprise}/Groups')); +assertType('Schema\\ScimEnterpriseGroupList|\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody', $client->call('GET /scim/v2/enterprises/{enterprise}/Groups')); assertType('', $client->call('POST /scim/v2/enterprises/{enterprise}/Groups')); assertType('', $client->call('GET /scim/v2/enterprises/{enterprise}/Groups/{scim_group_id}')); assertType('', $client->call('PUT /scim/v2/enterprises/{enterprise}/Groups/{scim_group_id}')); assertType('', $client->call('DELETE /scim/v2/enterprises/{enterprise}/Groups/{scim_group_id}')); assertType('', $client->call('PATCH /scim/v2/enterprises/{enterprise}/Groups/{scim_group_id}')); -assertType('', $client->call('GET /scim/v2/enterprises/{enterprise}/Users')); +assertType('Schema\\ScimEnterpriseUserList|\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody', $client->call('GET /scim/v2/enterprises/{enterprise}/Users')); assertType('', $client->call('POST /scim/v2/enterprises/{enterprise}/Users')); assertType('', $client->call('GET /scim/v2/enterprises/{enterprise}/Users/{scim_user_id}')); assertType('', $client->call('PUT /scim/v2/enterprises/{enterprise}/Users/{scim_user_id}')); diff --git a/etc/specs/GitHubEnterprise-3.13/current.spec.yaml b/etc/specs/GitHubEnterprise-3.13/current.spec.yaml index de898c7c032..31e800985f5 100644 --- a/etc/specs/GitHubEnterprise-3.13/current.spec.yaml +++ b/etc/specs/GitHubEnterprise-3.13/current.spec.yaml @@ -39647,7 +39647,7 @@ paths: - name: filter description: If specified, only results that match the specified filter will be returned. Multiple filters are not supported. Possible filters are `externalId`, - `id`, and `displayName`. For example, `?filter='externalId eq "9138790-10932-109120392-12321"'`. + `id`, and `displayName`. For example, `?filter=externalId eq "9138790-10932-109120392-12321"`. in: query required: false schema: @@ -39999,8 +39999,8 @@ paths: - name: filter description: If specified, only results that match the specified filter will be returned. Multiple filters are not supported. Possible filters are `userName`, - `externalId`, `id`, and `displayName`. For example, `?filter='externalId - eq "9138790-10932-109120392-12321"'`. + `externalId`, `id`, and `displayName`. For example, `?filter=externalId + eq "9138790-10932-109120392-12321"`. in: query required: false schema: @@ -69399,6 +69399,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 @@ -80127,6 +80131,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 @@ -80232,6 +80240,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 @@ -101834,6 +101846,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 @@ -102059,6 +102142,9 @@ components: url: type: string format: uri + dismissal_approved_by: + type: + - 'null' required: - number - created_at